`backtrace' implemented on MIPS?

Mike Frysinger vapier@gentoo.org
Tue Feb 22 03:27:00 GMT 2011

On Monday, February 21, 2011 21:46:50 Pan ruochen wrote:
> $mips-linux-gcc -EL -O2 test_backtrace.c
> / # ./a.out 6
> backtrace() returned 1 addresses
> [0x7ff54868]
> The results were totally different from thoes on x86.
> $gcc test_backtrace.c
> $./a.out 6
> backtrace() returned 11 addresses

you didnt use options that were even close.  optimization will obviously make 
a huge difference.

i dont know enough about mips to know whether you need to further do things 
like -fno-omit-frame-pointer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20110222/907eee47/attachment.sig>

More information about the Libc-help mailing list