GDB capabilities for exploring STL classes



Hi *

I often use gdb to debug my programs under linux. But I can't obtain
all information that I want to know about some program's data. For
example for STL stream classes gdb emits such message "<incomplete
type>". Or how can see the contents of vector or list classes without
some "magic" and annoying enormous type conversion statements? How can
I get information about all internals of stl classes? Should I somehow
recompile libstdc++ with debug flags or recompile my progs with some
specific debug flags? Or gdb can't do such things at all?

Thanks in advance.

.



Relevant Pages

  • Re: Firewire blues
    ... I compiled a kernel with exactly the same options that you cited below. ... it entering the debugger and waiting for the remote gdb attach. ... When I try to attach from the debug machine, ...
    (freebsd-hackers)
  • dnrd 2.10 dos
    ... There are various problems with dnrd's dns request and reply functions, ... GDB is free software, covered by the GNU General Public License, and you are ... ERROR: Couldn't kill dnrd: No such process ... Debug: initialising master DNS database ...
    (Bugtraq)
  • Re: Apache2, mod_python and nss_ldap: Coredump...
    ... On 10 nov 2005, at 12.54, Johan Ström wrote: ... so that all symbols and debug info are preserved ... > However, I've noticed one thing, if I run gdb httpd and then run - ...
    (freebsd-stable)
  • Re: FreeBSD 7.0 Beta, RC, RELEASE (amd64) freezes with dummynet enabled
    ... I have some screenshots from debug console after the ... [GDB will not be able to debug user-mode threads: ... KDB: enter: manual escape to debugger ... I disabled the polling, for my suprise, the server didn`t crashed after some minutes, but after 1 hour, but crushed, maybe only a coincidence, but maybe not. ...
    (freebsd-current)
  • [UNIX] DNRD Contains Security Vulnerabilities (Request, Reply)
    ... DNRD version 2.10 ... GNU gdb 5.0rh-5 Red Hat Linux 7.1 ... Type "show warranty" for details. ... Debug: initialising master DNS database ...
    (Securiteam)