List Info

Thread: Thread debugging. GDB for ARM.




Thread debugging. GDB for ARM.
user name
2007-05-14 08:17:30
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.jikusi.com
www.ikusi.es


Re: Thread debugging. GDB for ARM.
country flaguser name
United States
2007-05-14 08:28:05
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.ht
ml

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

Re: Thread debugging. GDB for ARM.
country flaguser name
United States
2007-05-14 09:35:53
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

RE: Thread debugging. GDB for ARM.
country flaguser name
United States
2007-05-14 13:23:34
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-ownersourceware.org [mailto:gdb-ownersourceware.org] On Behalf Of gomrioje
Sent: Monday, May 14, 2007 9:18 AM
To: gdbsourceware.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.jikusi.com
www.ikusi.es


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )