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/arch-utils.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/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 712b03e..cba0175 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -383,7 +383,7 @@ init_frame_pc_noop (int fromleaf, struct frame_info *prev) CORE_ADDR init_frame_pc_default (int fromleaf, struct frame_info *prev) { - if (fromleaf) + if (fromleaf && SAVED_PC_AFTER_CALL_P ()) return SAVED_PC_AFTER_CALL (get_next_frame (prev)); else if (get_next_frame (prev) != NULL) return DEPRECATED_FRAME_SAVED_PC (get_next_frame (prev)); |