mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
2003-03-10 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (gdbarch_unwind_pc): New method. * gdbarch.h, gdbarch.c: Regenerate. * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc, but use read_pc and FRAME_SAVED_PC as fall backs. (frame_saved_regs_pc_unwind): Delete function. (trad_frame_unwinder): Update. * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration. (struct frame_unwind): Update. * dummy-frame.c (dummy_frame_pc_unwind): Delete function. (dummy_frame_unwind): Update. * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function. (sentinel_frame_unwinder): Update. * d10v-tdep.c (d10v_frame_pc_unwind): Delete function. (d10v_frame_unwind): Update. (d10v_unwind_pc): New function. (d10v_gdbarch_init): Set unwind_pc. Index: doc/ChangeLog 2003-03-10 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Cross reference FRAME_SAVED_PC to unwind_pc. Document unwind_pc.
This commit is contained in:
@@ -70,17 +70,6 @@ sentinel_frame_register_unwind (struct frame_info *frame,
|
||||
}
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
sentinel_frame_pc_unwind (struct frame_info *frame,
|
||||
void **cache)
|
||||
{
|
||||
/* FIXME: cagney/2003-01-08: This should be using a per-architecture
|
||||
method that doesn't suffer from DECR_PC_AFTER_BREAK problems.
|
||||
Such a method would take unwind_cache, regcache and stop reason
|
||||
parameters. */
|
||||
return read_pc ();
|
||||
}
|
||||
|
||||
void
|
||||
sentinel_frame_id_unwind (struct frame_info *frame,
|
||||
void **cache,
|
||||
@@ -105,7 +94,6 @@ sentinel_frame_pop (struct frame_info *frame,
|
||||
const struct frame_unwind sentinel_frame_unwinder =
|
||||
{
|
||||
sentinel_frame_pop,
|
||||
sentinel_frame_pc_unwind,
|
||||
sentinel_frame_id_unwind,
|
||||
sentinel_frame_register_unwind
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user