When I try to display the values of certain data structures(including STL and certain LLVM types like Instruction *) using Eclipse, it only gives me the address and not their contents. My eclipse is integrated with GDB. Please help.
Asked
Active
Viewed 135 times
2 Answers
2
You may need to set up pretty-printers for the various STL containers. See this link:
http://wiki.eclipse.org/CDT/User/FAQ#How_can_I_inspect_the_contents_of_STL_containers.3F

Russell Zahniser
- 16,188
- 39
- 30
0
The latest gdb (7.3) and latest GCC (4.6) made significant progress in displaying STL containers. Also, recent gdb are scriptable in python, and you could take advantage of that (to e.g. script gdb to pretty print your values).
NB: your question is very probably unrelated to Eclipse.

Basile Starynkevitch
- 223,805
- 18
- 296
- 547
-
I am using petty printer only to print the values but it still doesn't display the values of LLVM types like "Instruction *" – Adarsh Konchady Jan 27 '12 at 04:57
$3 = (llvm::SmallVectorImpl<