From: Mark Alexander Date: Wed, 17 Jul 1996 06:52:31 +0000 (+0000) Subject: * a29k-tdep.c (get_saved_register): Allow PC to be modified X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48b497edfecead47ddfd1295464a1b4aa443a0a8;p=binutils-gdb.git * a29k-tdep.c (get_saved_register): Allow PC to be modified when innermost frame is selected, but not in outer frames. PR 9012 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 05f9e81dff3..ceeec1209b7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Jul 16 23:47:04 1996 Mark Alexander + + * 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 diff --git a/gdb/a29k-tdep.c b/gdb/a29k-tdep.c index 1ef7971606c..696f28487a9 100644 --- a/gdb/a29k-tdep.c +++ b/gdb/a29k-tdep.c @@ -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) {