mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
gdb: adjust gdbarch_tdep calls in nat files
Commit 345bd07cce33 ("gdb: fix gdbarch_tdep ODR violation") forgot to update the gdbarch_tdep calls in the native files other than x86-64 Linux. This patch updates them all (to the best of my knowledge). These are the files I was able to build-test: aarch64-linux-nat.c amd64-bsd-nat.c arm-linux-nat.c ppc-linux-nat.c windows-nat.c xtensa-linux-nat.c And these are the ones I could not build-test: aix-thread.c arm-netbsd-nat.c ppc-fbsd-nat.c ppc-netbsd-nat.c ia64-tdep.c (the part that needs libunwind) ppc-obsd-nat.c rs6000-nat.c If there are still some build problems related to gdbarch_tdep in them, they should be pretty obvious to fix. Change-Id: Iaa3d791a850e4432973757598e634e3da6061428
This commit is contained in:
@ -2485,6 +2485,7 @@ ia64_access_reg (unw_addr_space_t as, unw_regnum_t uw_regnum, unw_word_t *val,
|
||||
unw_word_t bsp, sof, cfm, psr, ip;
|
||||
struct frame_info *this_frame = (struct frame_info *) arg;
|
||||
struct gdbarch *gdbarch = get_frame_arch (this_frame);
|
||||
ia64_gdbarch_tdep *tdep = (ia64_gdbarch_tdep *) gdbarch_tdep (gdbarch);
|
||||
|
||||
/* We never call any libunwind routines that need to write registers. */
|
||||
gdb_assert (!write);
|
||||
@ -2506,7 +2507,7 @@ ia64_access_reg (unw_addr_space_t as, unw_regnum_t uw_regnum, unw_word_t *val,
|
||||
the current register frame. */
|
||||
bsp = get_frame_register_unsigned (this_frame, IA64_BSP_REGNUM);
|
||||
cfm = get_frame_register_unsigned (this_frame, IA64_CFM_REGNUM);
|
||||
sof = gdbarch_tdep (gdbarch)->size_of_register_frame (this_frame, cfm);
|
||||
sof = tdep->size_of_register_frame (this_frame, cfm);
|
||||
*val = ia64_rse_skip_regs (bsp, -sof);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user