* a29k-tdep.c (get_saved_register): Allow PC to be modified

when innermost frame is selected, but not in outer frames.
PR 9012
This commit is contained in:
Mark Alexander 1996-07-17 06:52:31 +00:00
parent 9676e4461a
commit 48b497edfe
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
* a29k-tdep.c (get_saved_register): Allow PC to be modified
when innermost frame is selected, but not in outer frames.
Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
* command.c (do_setshow_command): Don't segfault when showing

View File

@ -688,7 +688,7 @@ get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lvalp)
*lvalp = not_lval;
return;
}
else if (regnum == PC_REGNUM)
else if (regnum == PC_REGNUM && frame->next != NULL)
{
if (raw_buffer != NULL)
{