aboutsummaryrefslogtreecommitdiff
path: root/gdb/s12z-tdep.c
diff options
context:
space:
mode:
authorJohn Darrington <john@darrington.wattle.id.au>2018-11-08 17:51:22 +0100
committerJohn Darrington <john@darrington.wattle.id.au>2018-11-20 07:36:24 +0100
commit7b5227d1323e6ee2833f9ba44dea36f3c1c49179 (patch)
tree6d030f9ec5015fc6992be53f97d165d2b771e348 /gdb/s12z-tdep.c
parentdbe4e6545ee6a02da1a081fb51becb2843353bad (diff)
downloadgdb-7b5227d1323e6ee2833f9ba44dea36f3c1c49179.zip
gdb-7b5227d1323e6ee2833f9ba44dea36f3c1c49179.tar.gz
gdb-7b5227d1323e6ee2833f9ba44dea36f3c1c49179.tar.bz2
GDB: S12Z: Add assertion
gdb/ChangeLog: * s12z-tdep.c (s12z_frame_cache): Add an assertion.
Diffstat (limited to 'gdb/s12z-tdep.c')
-rw-r--r--gdb/s12z-tdep.c1
1 files changed, 1 insertions, 0 deletions
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). */