attach gdbserver to itself
Bin Chen
binary.chen@gmail.com
Thu Jan 25 02:29:00 GMT 2007
Daniel Jacobowitz wrote:
> On Wed, Jan 24, 2007 at 09:20:05PM +0800, Bin Chen wrote:
>
>> But I can do get the backtrace if I running the program through
>> gdbserver, not dynamic attach when fault.
>>
>
> That's probably because you aren't inside a called signal handler in
> that case.
>
>
>> Anyway, I will try to compile 6.6 to ARM platform, is it supported in
>> the release?
>>
>
> Yes, but you will have to set solib-absolute-prefix by hand or compile
> it using --with-sysroot (see the manual).
>
I know what happens now. Seems gdb need unstripped libc-2.3.2.so or
other important libs. The libs in my device rootfs are stripped so it
can't get the backtrace properly. After changing solib-absolute-prefix
to another unstripped version , the gdb can work now...
Something weird is that why manully start prog by gdbserver can get the
right result...
More information about the Gdb
mailing list