GDB: S12Z: Add assertion

gdb/ChangeLog:

	* s12z-tdep.c (s12z_frame_cache): Add an assertion.
This commit is contained in:
John Darrington 2018-11-08 17:51:22 +01:00
parent dbe4e6545e
commit 7b5227d132
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2018-11-19 John Darrington <john@darrington.wattle.id.au>
*s12z-tdep.c (s12z_frame_cache): Add an assertion.
2018-11-19 Simon Marchi <simon.marchi@polymtl.ca>
* infrun.c (displaced_step_inferior_state) <next>: Remove.

View File

@ -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). */