diff options
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index dfbbc211929..de3d284a8c8 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -373,21 +373,22 @@ generic_prepare_to_proceed (int select_it) } -void +CORE_ADDR init_frame_pc_noop (int fromleaf, struct frame_info *prev) { - return; + /* Do nothing, implies return the same PC value. */ + return get_frame_pc (prev); } -void +CORE_ADDR init_frame_pc_default (int fromleaf, struct frame_info *prev) { if (fromleaf) - prev->pc = SAVED_PC_AFTER_CALL (get_next_frame (prev)); + return SAVED_PC_AFTER_CALL (get_next_frame (prev)); else if (get_next_frame (prev) != NULL) - prev->pc = FRAME_SAVED_PC (get_next_frame (prev)); + return FRAME_SAVED_PC (get_next_frame (prev)); else - prev->pc = read_pc (); + return read_pc (); } void |