forked from Imagelibrary/binutils-gdb
export dwarf2_reg_to_regnum_or_error
This exports a utility function, dwarf2_reg_to_regnum_or_error, that was previously private to dwarf2loc.c. gdb/ChangeLog 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com> * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare. * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from translate_register. Now public. (dwarf2_compile_expr_to_ax): Update.
This commit is contained in:
@@ -222,4 +222,12 @@ extern struct call_site_chain *call_site_find_chain (struct gdbarch *gdbarch,
|
||||
CORE_ADDR caller_pc,
|
||||
CORE_ADDR callee_pc);
|
||||
|
||||
/* A helper function to convert a DWARF register to an arch register.
|
||||
ARCH is the architecture.
|
||||
DWARF_REG is the register.
|
||||
This will throw an exception if the DWARF register cannot be
|
||||
translated to an architecture register. */
|
||||
|
||||
extern int dwarf2_reg_to_regnum_or_error (struct gdbarch *arch, int dwarf_reg);
|
||||
|
||||
#endif /* dwarf2loc.h */
|
||||
|
||||
Reference in New Issue
Block a user