This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Backtrace sentinel
- From: Daniel Jacobowitz <drow at false dot org>
- To: Shaun Jackman <sjackman at gmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 5 May 2005 09:07:46 -0400
- Subject: Re: Backtrace sentinel
- References: <7f45d93905050420516f23f74b@mail.gmail.com>
On Wed, May 04, 2005 at 08:51:16PM -0700, Shaun Jackman wrote:
> 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?
You should figure out why gdb is going past start. It should recognize
that _start is the entry point and stop automatically.
--
Daniel Jacobowitz
CodeSourcery, LLC