From: John Darrington Date: Thu, 8 Nov 2018 16:51:22 +0000 (+0100) Subject: GDB: S12Z: Add assertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b5227d1323e6ee2833f9ba44dea36f3c1c49179;p=binutils-gdb.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 f2b6f5633c0..252ef5817d0 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 79f5772035d..bd0bd7c0011 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). */