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: Debugging pthread in ARM.


Just typing sharedlibrary I get all my libraries with symbols:
>From        To          Syms Read   Shared Object Library
0x40024f70  0x4002eff4
Yes         /app/arm/bitbaketmp/staging/arm-linux/lib/libpthread.so.0
0x4007cd60  0x400812f0
Yes         /app/arm/bitbaketmp/staging/arm-linux/lib/librt.so.1
0x400d0278  0x4015963c
Yes         /app/arm/bitbaketmp/cross/arm-linux/lib/libstdc++.so.6
0x4016c390  0x401d6ae8
Yes         /app/arm/bitbaketmp/staging/arm-linux/lib/libm.so.6
0x402179f8  0x4021df18
Yes         /app/arm/bitbaketmp/cross/arm-linux/lib/libgcc_s.so.1
0x4023bbb0  0x40310564
Yes         /app/arm/bitbaketmp/staging/arm-linux/lib/libc.so.6
0x40000740  0x4001491c
Yes         /app/arm/bitbaketmp/staging/arm-linux/lib/ld-linux.so.2


Nevertheless GDB is receiving a SIGNALKILL when I try to set a
breakpoint inside a thread.

You ask me for warnings, there are 2 things:

1. At Host side (gdb console):
(gdb) source prepare_gdb.gdb
0x40000740 in ?? ()

prepare_gdb.gdb is a script:

set $connected=0
shell sleep 1       
target remote 192.168.1.55:1234
set $connected=1
set solib-absolute-prefix /app/arm/bitbaketmp/staging/arm-linux/lib/
set
solib-search-path  /app/arm/bitbaketmp/staging/arm-linux/lib/:/app/arm/sc0504/Software/src/libarm9hardpin/debug/src/library/:/app/arm/bitbaketmp/cross/arm-linux/lib/:/app/arm/sc0504/Software/src/3rdParty/nana-2.5/arm/usr/lib/
continue 

2. At Target side (gdbserver)
gdb: error initializing thread_db library: version mismatch between
libthread_db and libpthread

Regards





> > 
> > Running the aplication in the PC, I get with command backtrace:
> > (gdb) [Thread debugging using libthread_db enabled]
> 
> That's normal.  Only native GDB prints this message.
> 
> > I guess the libraries for the ARM have no symbols charged. Do I need
> > them to debug my application?
> 
> I believe you need symbols for ld.so and libpthread.so.
> 
-- 
Jesus Gomez Rio


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