diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-03-30 16:48:47 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-03-30 16:48:47 +0000 |
commit | f7060f859d2b845bf842397baeeafbb4fca2075e (patch) | |
tree | faac186b4249b9d5388b2af9af8e395f466c600c /gdb/arm-tdep.c | |
parent | 295bf0ffc74b3e51101f5b1765dd5f5e2405bd02 (diff) | |
download | gdb-f7060f859d2b845bf842397baeeafbb4fca2075e.zip gdb-f7060f859d2b845bf842397baeeafbb4fca2075e.tar.gz gdb-f7060f859d2b845bf842397baeeafbb4fca2075e.tar.bz2 |
* arm-tdep.c (thumb_scan_prologue): Don't try to analyze
the function at zero if we have no symbols.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index cb3c261..6b57465 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -466,9 +466,9 @@ thumb_scan_prologue (CORE_ADDR prev_pc, struct arm_prologue_cache *cache) prologue_end = sal.end; /* (probably means no prologue) */ } else - /* We're in the boondocks: allow for - 16 pushes, an add, and "mv fp,sp". */ - prologue_end = prologue_start + 40; + /* We're in the boondocks: we have no idea where the start of the + function is. */ + return; prologue_end = min (prologue_end, prev_pc); |