aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-01-19 03:23:56 -0800
committerH.J. Lu <hjl.tools@gmail.com>2018-01-19 03:23:56 -0800
commit4ba8500d63991518aefef86474576de565e00237 (patch)
tree143d752c8f0244812621ee2a09cd2bbb5b08071c /gdb/rs6000-nat.c
parentb8cc0ceb40868b1d4d42854e4d89372aa5aef921 (diff)
parentc935ff02abfbf5bb80aa043340f7d101aac262f2 (diff)
downloadgdb-users/hjl/linux/release/2.29.51.0.1.zip
gdb-users/hjl/linux/release/2.29.51.0.1.tar.gz
gdb-users/hjl/linux/release/2.29.51.0.1.tar.bz2
Merge remote-tracking branch 'origin/users/hjl/linux/master' into users/hjl/linux/appliedusers/hjl/linux/release/2.29.51.0.1users/hjl/linux/applied
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 833cf01..8c54dc2 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -1,6 +1,6 @@
/* IBM RS/6000 native-dependent code for GDB, the GNU debugger.
- Copyright (C) 1986-2017 Free Software Foundation, Inc.
+ Copyright (C) 1986-2018 Free Software Foundation, Inc.
This file is part of GDB.
@@ -161,7 +161,7 @@ rs6000_ptrace64 (int req, int id, long long addr, int data, void *buf)
static void
fetch_register (struct regcache *regcache, int regno)
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
int addr[PPC_MAX_REGISTER_SIZE];
int nr, isfloat;
pid_t pid = ptid_get_pid (regcache_get_ptid (regcache));
@@ -220,7 +220,7 @@ fetch_register (struct regcache *regcache, int regno)
static void
store_register (struct regcache *regcache, int regno)
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
int addr[PPC_MAX_REGISTER_SIZE];
int nr, isfloat;
pid_t pid = ptid_get_pid (regcache_get_ptid (regcache));
@@ -281,7 +281,7 @@ static void
rs6000_fetch_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regno)
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
if (regno != -1)
fetch_register (regcache, regno);
@@ -324,7 +324,7 @@ static void
rs6000_store_inferior_registers (struct target_ops *ops,
struct regcache *regcache, int regno)
{
- struct gdbarch *gdbarch = get_regcache_arch (regcache);
+ struct gdbarch *gdbarch = regcache->arch ();
if (regno != -1)
store_register (regcache, regno);
@@ -655,8 +655,6 @@ rs6000_xfer_shared_libraries
}
}
-void _initialize_rs6000_nat (void);
-
void
_initialize_rs6000_nat (void)
{