This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Backtrace sentinel


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]