diff options
author | John Darrington <john@darrington.wattle.id.au> | 2018-11-08 17:51:22 +0100 |
---|---|---|
committer | John Darrington <john@darrington.wattle.id.au> | 2018-11-20 07:36:24 +0100 |
commit | 7b5227d1323e6ee2833f9ba44dea36f3c1c49179 (patch) | |
tree | 6d030f9ec5015fc6992be53f97d165d2b771e348 /gdb/s12z-tdep.c | |
parent | dbe4e6545ee6a02da1a081fb51becb2843353bad (diff) | |
download | gdb-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.c | 1 |
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). */ |