summaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2012-01-12 15:39:28 +0000
committerPedro Alves <pedro@codesourcery.com>2012-01-12 15:39:28 +0000
commit7e3dc1f41b1ede605c12f569a53485378a337779 (patch)
treed681fbe7cff3349b72268cba1f63f76d30698f7c /gdb/i386-tdep.c
parent4cc4e73e87f07edb7a57293d4ce9546ab6f31cc6 (diff)
downloadgdb-7e3dc1f41b1ede605c12f569a53485378a337779.tar.gz
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).
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index a612ca6aa32..549297e701c 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -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;