From f7060f859d2b845bf842397baeeafbb4fca2075e Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 30 Mar 2006 16:48:47 +0000 Subject: [PATCH] * arm-tdep.c (thumb_scan_prologue): Don't try to analyze the function at zero if we have no symbols. --- gdb/ChangeLog | 5 +++++ gdb/arm-tdep.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 799f7370837..8253c23e9fc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-03-30 Daniel Jacobowitz + + * arm-tdep.c (thumb_scan_prologue): Don't try to analyze + the function at zero if we have no symbols. + 2006-03-30 Adrien Kunysz * i386-stub.c (getpacket): Fix array overflow. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index cb3c2615910..6b574653f63 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); -- 2.30.2