From f5656eadf4383cc733b96ff49ba8efbea6922ad3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 9 Nov 2012 19:58:03 +0000 Subject: * gdbarch.sh (target_gdbarch): Remove macro. (get_target_gdbarch): Rename to target_gdbarch. * gdbarch.c, gdbarch.h: Rebuild. * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c, arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c, darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c, filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c, ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c, linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c, mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c, mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c, nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c, procfs.c, progspace.c, ravenscar-thread.c, record.c, remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c, rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c, solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c, solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c, solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c, spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c, target-descriptions.c, target.c, target.h, tracepoint.c, windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c, common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c, python/py-inferior.c, python/python.c: Update. --- gdb/solib-sunos.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gdb/solib-sunos.c') diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c index b17ef8a..b8b3806 100644 --- a/gdb/solib-sunos.c +++ b/gdb/solib-sunos.c @@ -121,7 +121,7 @@ static char *main_name_list[] = #define SOLIB_EXTRACT_ADDRESS(MEMBER) \ extract_unsigned_integer (&(MEMBER), sizeof (MEMBER), \ - gdbarch_byte_order (target_gdbarch)) + gdbarch_byte_order (target_gdbarch ())) /* local data declarations */ @@ -141,7 +141,7 @@ static CORE_ADDR flag_addr; static CORE_ADDR lm_addr (struct so_list *so) { - enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch); + enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ()); int lm_addr_offset = offsetof (struct link_map, lm_addr); int lm_addr_size = fieldsize (struct link_map, lm_addr); @@ -152,7 +152,7 @@ lm_addr (struct so_list *so) static CORE_ADDR lm_next (struct so_list *so) { - enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch); + enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ()); int lm_next_offset = offsetof (struct link_map, lm_next); int lm_next_size = fieldsize (struct link_map, lm_next); @@ -164,7 +164,7 @@ lm_next (struct so_list *so) static CORE_ADDR lm_name (struct so_list *so) { - enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch); + enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ()); int lm_name_offset = offsetof (struct link_map, lm_name); int lm_name_size = fieldsize (struct link_map, lm_name); @@ -690,9 +690,9 @@ sunos_solib_create_inferior_hook (int from_tty) the GDB software break point list. Thus we have to adjust the PC here. */ - if (gdbarch_decr_pc_after_break (target_gdbarch)) + if (gdbarch_decr_pc_after_break (target_gdbarch ())) { - stop_pc -= gdbarch_decr_pc_after_break (target_gdbarch); + stop_pc -= gdbarch_decr_pc_after_break (target_gdbarch ()); regcache_write_pc (get_current_regcache (), stop_pc); } -- cgit v1.1