I'm using
- Netbeans C++ 8.0.2
- clang++ (Ubuntu clang version 3.6.0-2ubuntu1 (tags/RELEASE_360/final) (based on LLVM 3.6.0))
- gdb (GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9)
In my "C++ Simple Tests," whenever I inspect a variable that is a shared_ptr, all I see for value is:
std::shared_ptr (count 1, weak 0) 0x64d3a0
or similar. There is no way to drill down to the value of what it's actually pointing to. Even if the tree view in the variables window shows one of the expander icons, it disappears when I click it. When I try dereferencing it or calling its get()
function in "expressions" window, I get an error messages:
Could not find operator*.
and
Cannot evaluate function -- may be inlined
respectively.
If I create a reference to the value in the actual program, it not only allows me to drill down into the reference, but the shared_ptr can then be drilled down as well (which seems fishy to me). I tried -g3
and -ggdb
but it made no difference.
Is there a debug version of the standard library (is libcxx the default?), or a setting somewhere that might improve the situation? Or maybe a way to list the private members/raw view in the variables window, so I could dereference the underlying pointer myself?