attach gdbserver to itself

Bin Chen binary.chen@gmail.com
Wed Jan 24 13:20:00 GMT 2007


Daniel Jacobowitz wrote:
> On Wed, Jan 24, 2007 at 08:55:59PM +0800, Bin Chen wrote:
>   
>> binch@binary-ubuntu:~/work/Project/code/app_engine/APWifiCtrl$ 
>> arm_v4t_le-gdb src/wifictrld -x cmd
>> GNU gdb 6.0 (MontaVista 6.0-11.0.6.0401382 2004-10-08)
>>     
>
> You're using MontaVista's (modified) version of GDB.  I strongly
> recommend you contact them with any problems you may have.
>
>   
>> (gdb) bt
>> #0  0x4002c8f0 in wait () from 
>> /home/binch/work/Project/image/src/docimage/lib/libpthread.so.0
>> #1  0x0000d680 in segv_handler(int) (no=11) at wifictrld.cpp:88
>> #2  0x4002b570 in pthread_barrierattr_setpshared () from 
>> /home/binch/work/Project/image/src/docimage/lib/libpthread.so.0
>> #3  0x0000d680 in segv_handler(int) (no=-1) at wifictrld.cpp:88
>> Previous frame inner to this frame (corrupt stack?)
>>     
>
> This means that your version of GDB does not support backtracing
> through signal handlers - a common problem.  I believe the current
> FSF release of GDB (version 6.6) does this better.
>
>   
But I can do get the backtrace if I running the program through 
gdbserver, not dynamic attach when fault.

Anyway, I will try to compile 6.6 to ARM platform, is it supported in 
the release?



More information about the Gdb mailing list