From 620fa63a22c78940776e143a9d002572190af942 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 12 Jan 2012 15:39:36 +0000 Subject: [PATCH] 2012-01-12 Pedro Alves * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as available when %ebp is found to be zero (outermost). --- gdb/ChangeLog | 5 +++++ gdb/i386-tdep.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2bef9ee42b8..289f967d9f6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-01-12 Pedro Alves + + * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as + available when %ebp is found to be zero (outermost). + 2012-01-11 Andreas Tobler * common/gdb_assert.h (gdb_static_assert): Rename static_assert to 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; -- 2.30.2