* Thread debugging. GDB for ARM.
@ 2007-05-14 13:17 gomrioje
2007-05-14 13:28 ` Daniel Jacobowitz
2007-05-14 18:23 ` Williams, Allen
0 siblings, 2 replies; 4+ messages in thread
From: gomrioje @ 2007-05-14 13:17 UTC (permalink / raw)
To: gdb
Could you give me a hint about thread debugging running on arm?
My configuration:
Host Linux PC -> gdb
$ /usr/local/bin/gdb --version
GNU gdb 6.4.90
This GDB was configured as "--host=i686-linux --target=arm-linux"
Target ARM (AT91RM9200) -> gdbserver
# ./gdbserver --version
GNU gdbserver 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
gdbserver is free software, covered by the GNU General Public
License.
This gdbserver was configured as "arm-linux-gnu"
The thread library of gdbserver:
libthread_db.so.1->libthread_db-1.0.so
I am trying to debug a thread application (POSIX), using:
libpthread.so.0->libpthread-0.10.so
The problem is that I can not get into the threads code...
No breakpoints, nothing... but it works ok in the main process.
Could you help me?
--
Jesus Gomez Rio
R&D Technician
Design & Manufacturing Division
gomez.j@ikusi.com
www.ikusi.es
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Thread debugging. GDB for ARM.
2007-05-14 13:17 Thread debugging. GDB for ARM gomrioje
@ 2007-05-14 13:28 ` Daniel Jacobowitz
[not found] ` <435A66F076E8344FA6D3917739BD99A40162483D@srviku004.ikusi.net>
2007-05-14 18:23 ` Williams, Allen
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-05-14 13:28 UTC (permalink / raw)
To: gomrioje; +Cc: gdb
On Mon, May 14, 2007 at 03:17:30PM +0200, gomrioje wrote:
> Could you give me a hint about thread debugging running on arm?
Yes: the fine manual. The GDB documentation is online here:
http://sourceware.org/gdb/current/onlinedocs/gdb_toc.html
Take a look at the section "Using the gdbserver program". You
probably net "set solib-absolute-prefix" ("set sysroot" in the next
release of GDB).
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Thread debugging. GDB for ARM.
[not found] ` <435A66F076E8344FA6D3917739BD99A40162483D@srviku004.ikusi.net>
@ 2007-05-14 14:35 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-05-14 14:35 UTC (permalink / raw)
To: Gomez Rio, Jesús; +Cc: gdb
On Mon, May 14, 2007 at 04:16:50PM +0200, Gomez Rio, Jesús wrote:
> Thanks for the link.
> But I guess my problem is not described there.
> I have another message:
> Gdb: error initalizing thread_db library: version mismatch between libthread_db and libpthread
>
> I have read in the mailing list that both should have the same glibc.
> (what do you mean there?).
>
> In another hand, I am already pointing solib-absolute-prefix to the directory libraries.
If you're doing that, and getting the above error, then you are not
pointing to the correct libraries.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Thread debugging. GDB for ARM.
2007-05-14 13:17 Thread debugging. GDB for ARM gomrioje
2007-05-14 13:28 ` Daniel Jacobowitz
@ 2007-05-14 18:23 ` Williams, Allen
1 sibling, 0 replies; 4+ messages in thread
From: Williams, Allen @ 2007-05-14 18:23 UTC (permalink / raw)
To: gomez.j, gdb
Did you try the threads stuff in Section 4.9 of the documentation? I've never used arm, but it works for native debugging; although I guess this is a naïve suggestion;-)
-----Original Message-----
From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf Of gomrioje
Sent: Monday, May 14, 2007 9:18 AM
To: gdb@sourceware.org
Subject: Thread debugging. GDB for ARM.
Could you give me a hint about thread debugging running on arm?
My configuration:
Host Linux PC -> gdb
$ /usr/local/bin/gdb --version
GNU gdb 6.4.90
This GDB was configured as "--host=i686-linux --target=arm-linux"
Target ARM (AT91RM9200) -> gdbserver
# ./gdbserver --version
GNU gdbserver 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
gdbserver is free software, covered by the GNU General Public
License.
This gdbserver was configured as "arm-linux-gnu"
The thread library of gdbserver:
libthread_db.so.1->libthread_db-1.0.so
I am trying to debug a thread application (POSIX), using:
libpthread.so.0->libpthread-0.10.so
The problem is that I can not get into the threads code...
No breakpoints, nothing... but it works ok in the main process.
Could you help me?
--
Jesus Gomez Rio
R&D Technician
Design & Manufacturing Division
gomez.j@ikusi.com
www.ikusi.es
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-14 18:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-14 13:17 Thread debugging. GDB for ARM gomrioje
2007-05-14 13:28 ` Daniel Jacobowitz
[not found] ` <435A66F076E8344FA6D3917739BD99A40162483D@srviku004.ikusi.net>
2007-05-14 14:35 ` Daniel Jacobowitz
2007-05-14 18:23 ` Williams, Allen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox