diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-04-08 21:56:10 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-04-08 21:56:10 +0000 |
commit | 4443bd8373866e76ec700a8bb3f5df8a50ba3714 (patch) | |
tree | 9b8a010feedc37eff9c2dcde41f59f484c9f0418 /gdb/d10v-tdep.c | |
parent | a66624bc3e854775dc9857ce23ead38b741f9dbe (diff) | |
download | gdb-4443bd8373866e76ec700a8bb3f5df8a50ba3714.zip gdb-4443bd8373866e76ec700a8bb3f5df8a50ba3714.tar.gz gdb-4443bd8373866e76ec700a8bb3f5df8a50ba3714.tar.bz2 |
2003-04-08 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
* gdbarch.h, gdbarch.c: Re-generate.
* d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
(d10v_gdbarch_init): Do not set saved_pc_after_call.
* infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
conditionally, use frame_pc_unwind as an alternative. Add
comments.
* arch-utils.c (init_frame_pc_default): Only call
SAVED_PC_AFTER_CALL when available.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r-- | gdb/d10v-tdep.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index 5e94de4..4ae8099 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -488,17 +488,6 @@ d10v_extract_struct_value_address (struct regcache *regcache) return (addr | DMEM_START); } -/* Immediately after a function call, return the saved pc. We can't - use frame->return_pc beause that is determined by reading R13 off - the stack and that may not be written yet. */ - -static CORE_ADDR -d10v_saved_pc_after_call (struct frame_info *frame) -{ - return ((read_register (LR_REGNUM) << 2) - | IMEM_START); -} - static int check_prologue (unsigned short op) { @@ -1700,7 +1689,6 @@ d10v_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_frame_args_skip (gdbarch, 0); set_gdbarch_frameless_function_invocation (gdbarch, frameless_look_for_prologue); - set_gdbarch_saved_pc_after_call (gdbarch, d10v_saved_pc_after_call); set_gdbarch_frame_num_args (gdbarch, frame_num_args_unknown); set_gdbarch_stack_align (gdbarch, d10v_stack_align); |