This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
teaching gdb about new types?
- From: Richard Silverman <res at qoxp dot net>
- To: GDB Mailing List <gdb at sourceware dot org>
- Date: Fri, 29 Apr 2011 14:36:36 -0400 (EDT)
- Subject: teaching gdb about new types?
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