From 98bf411cb82a012f8a8151b8c413fad9cc8c903f Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 27 Mar 2007 19:02:42 +0000 Subject: * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to... (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p argument. Update all callers. (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum. (dwarf2_frame_set_eh_frame_regnum): Rename to... (dwarf2_frame_set_adjust_regnum): ...this. Update argument type. * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to... (dwarf2_frame_set_adjust_regnum): ...this. (dwarf2_frame_eh_frame_regnum): Delete prototype. * rs6000-tdep.c: Include "dwarf2-frame.h". (rs6000_adjust_frame_regnum): Define. (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder. Register rs6000_adjust_frame_regnum. * Makefile.in (rs6000-tdep.o): Update dependencies. --- gdb/dwarf2-frame.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'gdb/dwarf2-frame.h') diff --git a/gdb/dwarf2-frame.h b/gdb/dwarf2-frame.h index a92a79d244a..862273ba857 100644 --- a/gdb/dwarf2-frame.h +++ b/gdb/dwarf2-frame.h @@ -94,18 +94,13 @@ extern void int (*signal_frame_p) (struct gdbarch *, struct frame_info *)); -/* Set the architecture-specific mapping of .eh_frame register numbers to - DWARF register numbers. */ +/* Set the architecture-specific adjustment of .eh_frame and .debug_frame + register numbers. */ extern void - dwarf2_frame_set_eh_frame_regnum (struct gdbarch *gdbarch, - int (*eh_frame_regnum) (struct gdbarch *, - int)); - -/* Translate a .eh_frame register to DWARF register. */ - -extern int - dwarf2_frame_eh_frame_regnum (struct gdbarch *gdbarch, int regnum); + dwarf2_frame_set_adjust_regnum (struct gdbarch *gdbarch, + int (*adjust_regnum) (struct gdbarch *, + int, int)); /* Return the frame unwind methods for the function that contains PC, or NULL if it can't be handled by DWARF CFI frame unwinder. */ -- cgit v1.2.1