X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fsparc-nat.c;h=dff0f5215657c853a5150140f9782497bc486a54;hb=b76f3a42371cb0d83a1128a434852447da76b5e9;hp=86a6b5a20a9476bbfa590ff3dcdea93cd26b1e75;hpb=222312d359fe0a68f8583ba315583ee8cc94f252;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c index 86a6b5a20a..dff0f52156 100644 --- a/gdb/sparc-nat.c +++ b/gdb/sparc-nat.c @@ -1,6 +1,6 @@ /* Native-dependent code for SPARC. - Copyright (C) 2003-2018 Free Software Foundation, Inc. + Copyright (C) 2003-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -24,7 +24,7 @@ #include #include -#include "gdb_wait.h" +#include "gdbsupport/gdb_wait.h" #ifdef HAVE_MACHINE_REG_H #include #endif @@ -149,7 +149,7 @@ sparc_fetch_inferior_registers (struct regcache *regcache, int regnum) belong to the selected thread (the LWP could be in the middle of executing the thread switch code). - These functions should instead be paramaterized with an explicit + These functions should instead be parameterized with an explicit object (struct regcache, struct thread_info?) into which the LWPs registers can be written. */ pid = get_ptrace_pid (regcache->ptid ()); @@ -158,7 +158,7 @@ sparc_fetch_inferior_registers (struct regcache *regcache, int regnum) { gdb_byte zero[8] = { 0 }; - regcache_raw_supply (regcache, SPARC_G0_REGNUM, &zero); + regcache->raw_supply (SPARC_G0_REGNUM, &zero); return; } @@ -252,7 +252,7 @@ sparc_store_inferior_registers (struct regcache *regcache, int regnum) TARGET_OBJECT_WCOOKIE. Fetch StackGhost Per-Process XOR cookie. */ enum target_xfer_status -sparc_xfer_wcookie (struct target_ops *ops, enum target_object object, +sparc_xfer_wcookie (enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) @@ -274,7 +274,7 @@ sparc_xfer_wcookie (struct target_ops *ops, enum target_object object, later). Since release 3.6, OpenBSD uses a fully randomized cookie. */ { - int pid = ptid_get_pid (inferior_ptid); + int pid = inferior_ptid.pid (); /* Sanity check. The proper type for a cookie is register_t, but we can't assume that this type exists on all systems supported @@ -305,10 +305,11 @@ sparc_xfer_wcookie (struct target_ops *ops, enum target_object object, } +void _initialize_sparc_nat (); void -_initialize_sparc_nat (void) +_initialize_sparc_nat () { - /* Deafult to using SunOS 4 register sets. */ + /* Default to using SunOS 4 register sets. */ if (sparc_gregmap == NULL) sparc_gregmap = &sparc32_sunos4_gregmap; if (sparc_fpregmap == NULL)