Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* teaching gdb about new types?
@ 2011-04-29 18:36 Richard Silverman
  2011-04-29 18:57 ` Paul Koning
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Silverman @ 2011-04-29 18:36 UTC (permalink / raw)
  To: GDB Mailing List

Hello,

This seems as if it should be simple, but I can't find an answer.  I would like to teach gdb about new types relevant to the program being debugged, which are not among the debugging info in the program.  A concrete example: I have a program which uses pthreads from libc.  It calls:

        int pthread_cond_wait(pthread_cond_t *restrict cond,
            pthread_mutex_t *restrict mutex);

... and the argument types are defined in system header files.  But libc.so has no debugging info, so gdb doesn't know about these types, and can't interpret the arguments for me.  How can I teach gdb about these types?

Thanks,

- Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-10 23:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-29 18:36 teaching gdb about new types? Richard Silverman
2011-04-29 18:57 ` Paul Koning
2011-04-29 20:43   ` Richard Silverman
2011-04-29 20:53     ` Paul Koning
2011-04-30  3:02       ` Richard Silverman
2011-05-10 23:42         ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox