This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: multithreaded remote debugging
- From: "Frank van Eijkelenburg" <frank dot van dot eijkelenburg at technolution dot nl>
- To: "Daniel Jacobowitz" <drow at mvista dot com>
- Cc: "Gnu Debugger mailing list" <gdb at sources dot redhat dot com>
- Date: Fri, 17 Jan 2003 16:28:17 +0100
- Subject: RE: multithreaded remote debugging
- Reply-to: <frank dot van dot eijkelenburg at technolution dot nl>
> On Fri, Jan 17, 2003 at 04:09:33PM +0100, Frank van Eijkelenburg wrote:
> > libthread_db.so.1 is installed on the target. I have a copy of the
> > application on the host. Actually its the same file as the
> target uses. I
> > mount the directory with the application from the host at the
> target. Do I
> > have to tell gdb where to find some directories?
>
> Sometimes, but it doesn't seem to be the problem here. I think your
> binary has had some symbols removed, or something similar. GDB is
> looking for "__pthread_threads_events" and not finding it.
>
> Are you running GDB with the file being debugged? Does it have symbol
> information? The "in ??" is suspicious.
>
I'm not sure what you mean, but can you make your conlusions with this log:
(gdb) list
923 int iPoll = 0;
924
925 DebugInit(RmTrace, RmPanicHandler);
926
927 printf("Starting Terminal application %s\n", VERSION
VERSION_TEXT DEBUG_TEXT);
928
929 WritePID();
930
931 /* Catch Ctrl-C. Stop the program when it occurs. */
932 signal(SIGINT, SignalHandler);
(gdb) info line 923
Line 923 of "../src/sbiimain.c" starts at address 0x204926c <main+48> and
ends at 0x2049274 <main+56>.
(gdb) info symbol 0x204926c
main + 48 in section .text
(gdb)