This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdbserver + arm nommu


Hi all,
  I am able to debug a program using gdb-6.4 and
gdb-6.4/gdbserver. Many thanks to Daniel for his
precious suggestions.
  Currently I am trying to debug a multi-threaded
program using the same gdbserver. I have compiled
uClibc with the pThread debugging enabled and then 
statically linked gdbserver with libthread_db.a 
and the program with libpthread.a, as my target
doesn't support dynamic linking (no shared lib
support, even toolchain cannot create .so files). 
  Now when I try to debug a program, it kills at 
'pthread_create' line. Between 'info th' from the gdb
running on host lists only the main process as a
thread. I checked with gdbserver and it supports many
of the q-packets and thread related packets.
  In this case gdb at host is supposed to refer the
exactly same 'pthread symbols' as target is, but it
cannot. Even I cannot try solib-absolute-prefix  
or solib-search-path, since there are no corresponding
.so (libthread_db.so) files generated at host. Hence
looking at the scenario, is this causing my program to
terminate? and is there any way to tell gdb the
'pthread symbols' statically? 

Thanks in advance,
Mangesh Edake. 

 
--- Daniel Jacobowitz <drow@false.org> wrote:

> On Sat, Nov 18, 2006 at 06:05:01AM -0800, Mangesh
> Edake wrote:
> > 
> > Hi,
> >    I looked for the patches provided by nathan. I
> > found those patches are for m68k and apply to the
> > files gdb/m68k-tdep.c and gdb/m68klinux-tdep.c
> 
> Those patches have nothing to do with this.
> 
> If you can't try CVS HEAD, see if it works, and tell
> us what
> happens if it doesn't work, then I'm sorry but we
> can't help
> you.
> 
> > There is no patch for ARM for gdb-6.x to make
> > gdbserver work on ARM platform. So we have decided
> to
> > continue with gdb-5.2.1 as it is patched. Now in
> this
> > case I have arm-elf-gdb version 6.4 and gdbserver
> that
> > will run on ARM board is from gdb-5.2.1, so will
> this 
> > create any problems due to version mismatch going
> > further?  
> 
> It should be fine.
> 
> -- 
> Daniel Jacobowitz
> CodeSourcery
> 



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]