]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* arm-tdep.c (thumb_scan_prologue): Don't try to analyze
authorDaniel Jacobowitz <drow@false.org>
Thu, 30 Mar 2006 16:48:47 +0000 (16:48 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 30 Mar 2006 16:48:47 +0000 (16:48 +0000)
the function at zero if we have no symbols.

gdb/ChangeLog
gdb/arm-tdep.c

index 799f7370837bc9effbb4417cd63a286b32cbe806..8253c23e9fc81f84902e0a7d81b4e7f642c6ebac 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * 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  <a_kunysz@yahoo.com>
 
        * i386-stub.c (getpacket): Fix array overflow.
index cb3c2615910aafc793441ca30825d3e9935c9cd2..6b574653f63a24830c6842f5ff8d6054263df7e0 100644 (file)
@@ -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);