From: John Darrington Date: Thu, 8 Nov 2018 16:51:22 +0000 (+0100) Subject: GDB: S12Z: Add assertion X-Git-Tag: users/ARM/embedded-binutils-master-2018q4~151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b5227d1323e6ee2833f9ba44dea36f3c1c49179;p=platform%2Fupstream%2Fbinutils.git GDB: S12Z: Add assertion gdb/ChangeLog: * s12z-tdep.c (s12z_frame_cache): Add an assertion. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f2b6f56..252ef58 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-11-19 John Darrington + + *s12z-tdep.c (s12z_frame_cache): Add an assertion. + 2018-11-19 Simon Marchi * infrun.c (displaced_step_inferior_state) : Remove. diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c index 79f5772..bd0bd7c 100644 --- a/gdb/s12z-tdep.c +++ b/gdb/s12z-tdep.c @@ -320,6 +320,7 @@ s12z_frame_cache (struct frame_info *this_frame, void **prologue_cache) } else { + gdb_assert (this_sp == this_sp_for_id); /* The stack pointer of the prev frame is frame_size greater than the stack pointer of this frame plus one address size (caused by the JSR or BSR). */