GDB printing for std::shared_pointer
Posted: Sun Aug 23, 2020 6:46 pm
Count value is not getting printed for shared pointers.
Setup :
CodeLite : 14.0.2
GDB : GNU gdb (GDB) 8.1
GDB might not have the issue as i can print this directly from the debug terminal of the CodeLite.
-stack-list-variables --thread 1 --frame 0 --all-values
DEBUG>>-stack-list-variables --thread 1 --frame 0 --all-values
DEBUG>>^done,variables=[{name="p1",value="std::shared_ptr<int> (use count 2, weak count 0) = {get() = 0xf32020}"},{name="p2",value="std::shared_ptr<int> (use count 2, weak count 0) = {get() = 0xf32020}"}]
Please help here.
BR,Rajdeep
Setup :
CodeLite : 14.0.2
GDB : GNU gdb (GDB) 8.1
GDB might not have the issue as i can print this directly from the debug terminal of the CodeLite.
-stack-list-variables --thread 1 --frame 0 --all-values
DEBUG>>-stack-list-variables --thread 1 --frame 0 --all-values
DEBUG>>^done,variables=[{name="p1",value="std::shared_ptr<int> (use count 2, weak count 0) = {get() = 0xf32020}"},{name="p2",value="std::shared_ptr<int> (use count 2, weak count 0) = {get() = 0xf32020}"}]
Please help here.
BR,Rajdeep