This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Backtrace sentinel
- From: Shaun Jackman <sjackman at gmail dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 4 May 2005 20:51:16 -0700
- Subject: Backtrace sentinel
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
On an arm-elf emedded system immediately after a load the $pc is set
to the start address, but the $lr is set to some arbitrary value --
say zero. A backtrace gives...
(gdb) bt
#0 start () at ../../../../../libgloss/arm/crt0.S:32
#1 0x00000000 in ?? ()
Is there a sentinel value I can put in the $lr so that I can give gdb
enough informatino to stop the backtrace?
Thanks,
Shaun