This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 1/2] GDB: S12Z: Add assertion
- From: John Darrington <john at darrington dot wattle dot id dot au>
- To: gdb-patches at sourceware dot org
- Cc: John Darrington <john at darrington dot wattle dot id dot au>
- Date: Mon, 12 Nov 2018 10:17:20 +0100
- Subject: [PATCH 1/2] GDB: S12Z: Add assertion
---
gdb/s12z-tdep.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdb/s12z-tdep.c b/gdb/s12z-tdep.c
index 79f5772035..bd0bd7c001 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). */
--
2.11.0