Hi Daniel, I tried on the latest release (2009q3-67) and I'm not getting the stack traces properly. Kindly help. Regards, Balaji ON ARM PLATFORM =============== [root@ip202ff:cisco#]uname -a Linux ip202ff 2.6.27.13-ip202ff-xc-178.2.0-picochip-2.0.3 #1 PREEMPT Thu Jan 28 13:02:39 GMT 2010 armv5tejl unknown [root@ip202ff:cisco#]./PrintDump Calling dummy calling print Trace IN Print_traceObtained 1 stack frames. 1 /lib/ld-linux.so.3 [0x40025000] [root@ip202ff:cisco#] ON BUILD SERVER ================ <<<<< Same code executed using gcc working fine>>>>> [balkani@ssevm32 ~]$ gcc -rdynamic stackprint.c [balkani@ssevm32 ~]$ ./a.out Calling dummy calling print Trace IN Print_traceObtained 5 stack frames. 5 ./a.out(print_trace+0x14) [0x8048660] ./a.out(dummy_function+0x1b) [0x8048712] ./a.out(main+0x31) [0x8048745] /lib/tls/libc.so.6(__libc_start_main+0xd3) [0x6bade3] ./a.out [0x80485c5] <<<<< Same code executed using ARM not working fine>>>>> [balkani@ssevm32 ~]$ arm-none-linux-gnueabi-gcc --version arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [balkani@ssevm32 ~]$ arm-none-linux-gnueabi-gcc stackprint.c [balkani@ssevm32 ~]$ mv a.out PrintDump [balkani@ssevm32 ~]$ file PrintDump PrintDump: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.16, dynamically linked (uses shared libs), not stripped [balkani@ssevm32 ~]$ scp PrintDump root@xxxxxxxxxxxxx:/opt/cisco root@xxxxxxxxxxxxx's password: PrintDump 100% 6585 6.4KB/s 00:00 -----Original Message----- From: Daniel Jacobowitz [mailto:dan@xxxxxxxxxxxxxxxx] Sent: Friday, March 05, 2010 7:27 PM To: Balaji Kani -X (balkani - WIPRO at Cisco) Cc: arm-gnu@xxxxxxxxxxxxxxxx Subject: [arm-gnu] Re: Stack Dump is not getting printing. On Fri, Mar 05, 2010 at 12:46:27PM +0530, Balaji Kani -X (balkani - WIPRO at Cisco) wrote: > I'm using Sourcery G++ Lite 2008q3-72 tool chain for my application. This version is too old for what you are trying to do. I recommend you try the most recent release. -- Daniel Jacobowitz CodeSourcery
Attachment:
stackPrint.c
Description: stackPrint.c