This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Debugging pthread in ARM.
Thanks Daniel, I point solib-absolute, right now my libraries (info
sharedlibrary) are like that:
>From To Syms Read Shared Object Library
0x400284d8 0x400859a4
No /app/arm/bitbaketmp/staging/arm-linux/lib/libsqlite.so.0
0x4009b748 0x4009bdf8
No /app/arm/sc0504/Software/src/libarm9hardpin/debug/src/library/libarm9hardpin.so.0
0x400a5d60 0x400aa2f0
No /app/arm/bitbaketmp/staging/arm-linux/lib/librt.so.1
0x400c1f70 0x400cbff4
No /app/arm/bitbaketmp/staging/arm-linux/lib/libpthread.so.0
0x40153278 0x401dc63c
No /app/arm/bitbaketmp/cross/arm-linux/lib/libstdc++.so.6
0x401ef390 0x40259ae8
No /app/arm/bitbaketmp/staging/arm-linux/lib/libm.so.6
0x4029a9f8 0x402a0f18
No /app/arm/bitbaketmp/cross/arm-linux/lib/libgcc_s.so.1
0x402bebb0 0x40393564
No /app/arm/bitbaketmp/staging/arm-linux/lib/libc.so.6
0x40000740 0x4001491c
No /app/arm/bitbaketmp/staging/arm-linux/lib/ld-linux.so.2
(for other people reading:
http://sourceware.org/ml/gdb-patches/2007-01/msg00198.html)
Nevertheless, after that I have the same problem.
The response to: info threads is: 1 main....
Something that looks bizarre to me is that gdb converts in the console,
"info threads" to "info thread".
I have checked the threads are running. They have different PIDs, could
be a problem for gdb?
Regards,
On Tue, 2007-05-15 at 08:58 -0400, Daniel Jacobowitz wrote:
> On Tue, May 15, 2007 at 02:49:04PM +0200, gomrioje wrote:
> > - For the gdb (host):
> > set solib-absolute-prefix /dev/null/
> > set
> > solib-search-path /app/arm/debug/:/app/arm/bitbaketmp/staging/arm-linux/lib/
>
> Don't do that. Whatever told you to do it was wrong.
>
> You need to set solib-absolute-prefix to point at something that looks
> like your target's file system, that is, you should be able to add
> /lib/ld-linux.so.2 (or however your platform spells it) and find the
> dynamic linker at that path on the host.
>
--
Jesus Gomez Rio
R&D Technician
Design & Manufacturing Division
gomez.j@ikusi.com
www.ikusi.es
---