]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
authorPedro Alves <palves@redhat.com>
Thu, 12 Jan 2012 15:48:49 +0000 (15:48 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 12 Jan 2012 15:48:49 +0000 (15:48 +0000)
available when %ebp is found to be zero (outermost).

gdb/ChangeLog
gdb/i386-tdep.c

index 15733aed4c3d9068971012849839b16a2e33f44d..50e1391f17bd89715093af97af7e9edb0d198db4 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-12  Pedro Alves  <palves@redhat.com>
+
+       * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
+       available when %ebp is found to be zero (outermost).
+
 2012-01-10  Doug Evans  <dje@google.com>
 
        * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
index a612ca6aa326a2538d8178e9a190cf04cb5e03b7..549297e701c9088336764ced85d21a4d6369261f 100644 (file)
@@ -1680,7 +1680,10 @@ i386_frame_cache_1 (struct frame_info *this_frame,
   get_frame_register (this_frame, I386_EBP_REGNUM, buf);
   cache->base = extract_unsigned_integer (buf, 4, byte_order);
   if (cache->base == 0)
-    return;
+    {
+      cache->base_p = 1;
+      return;
+    }
 
   /* For normal frames, %eip is stored at 4(%ebp).  */
   cache->saved_regs[I386_EIP_REGNUM] = 4;