X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Flinux-sparc-low.c;h=5a601ee304c8f3d8ccddd45337dbd5c738265219;hb=4c5aa8e0b1b4439f73ef1f82344e408b989f85df;hp=54a849c61ae0bcab5b8dacf551734f095bba0c42;hpb=fbec8956077503e04f7adeae7f40037fc834edaa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbserver/linux-sparc-low.c b/gdb/gdbserver/linux-sparc-low.c index 54a849c61a..5a601ee304 100644 --- a/gdb/gdbserver/linux-sparc-low.c +++ b/gdb/gdbserver/linux-sparc-low.c @@ -1,5 +1,5 @@ /* Low level interface to ptrace, for the remote server for GDB. - Copyright (C) 1995-2015 Free Software Foundation, Inc. + Copyright (C) 1995-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -223,18 +223,6 @@ sparc_store_fpregset (struct regcache *regcache, const void *buf) supply_register (regcache, i, ((char *) buf) + sparc_regmap[i]); } -extern int debug_threads; - -static CORE_ADDR -sparc_get_pc (struct regcache *regcache) -{ - unsigned long pc; - collect_register_by_name (regcache, "pc", &pc); - if (debug_threads) - debug_printf ("stop pc is %08lx\n", pc); - return pc; -} - static const gdb_byte sparc_breakpoint[INSN_SIZE] = { 0x91, 0xd0, 0x20, 0x01 }; @@ -315,12 +303,12 @@ struct linux_target_ops the_low_target = { sparc_cannot_fetch_register, sparc_cannot_store_register, NULL, /* fetch_register */ - sparc_get_pc, + linux_get_pc_64bit, /* No sparc_set_pc is needed. */ NULL, NULL, /* breakpoint_kind_from_pc */ sparc_sw_breakpoint_from_kind, - NULL, /* breakpoint_reinsert_addr */ + NULL, /* get_next_pcs */ 0, sparc_breakpoint_at, NULL, /* supports_z_point_type */