Pretty-printers for libstdc++ ============================= Follow the instructions at the following URL, and your std::strings will print like strings, etc.: http://gcc.gnu.org/onlinedocs/libstdc++/manual/debug.html How to make a std::string: ========================== (From #gdb) SamB: (gdb) p $a=(std::allocator*)malloc(sizeof(std::allocator)) (gdb) p $a->allocator() (gdb) p $s=(std::string*)malloc(sizeof(std::string)) (gdb) p $s->basic_string("foo",*$a) (gdb) p *$s $20 = "foo" std::string is mostly the only tricky class as it is just an alias name for basic_string.... Again, with just the input: p $a=(std::allocator*)malloc(sizeof(std::allocator)) p $a->allocator() p $s=(std::string*)malloc(sizeof(std::string)) p $s->basic_string("foo",*$a) p *$s