This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: multithreaded remote debugging
On Fri, Jan 17, 2003 at 04:28:17PM +0100, Frank van Eijkelenburg wrote:
> > 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)
Try:
nm <binary> | grep __pthread_threads_events
nm <libpthread.a> | grep __pthread_threads_events
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer