projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/tui: Link source and assembler scrolling .... again
[deliverable/binutils-gdb.git]
/
gdb
/
rs6000-nat.c
diff --git
a/gdb/rs6000-nat.c
b/gdb/rs6000-nat.c
index 31677c24c59954ca6413f4c39818cd4fc00de845..7c916090165b6f2ca5af656fa69cc9bcfb61ebaa 100644
(file)
--- 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.
/* IBM RS/6000 native-dependent code for GDB, the GNU debugger.
- Copyright (C) 1986-20
18
Free Software Foundation, Inc.
+ Copyright (C) 1986-20
20
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-191,7
+191,7
@@
fetch_register (struct regcache *regcache, int regno)
struct gdbarch *gdbarch = regcache->arch ();
int addr[PPC_MAX_REGISTER_SIZE];
int nr, isfloat;
struct gdbarch *gdbarch = regcache->arch ();
int addr[PPC_MAX_REGISTER_SIZE];
int nr, isfloat;
- pid_t pid =
ptid_get_pid (regcache->ptid ()
);
+ pid_t pid =
regcache->ptid ().pid (
);
/* Retrieved values may be -1, so infer errors from errno. */
errno = 0;
/* Retrieved values may be -1, so infer errors from errno. */
errno = 0;
@@
-250,7
+250,7
@@
store_register (struct regcache *regcache, int regno)
struct gdbarch *gdbarch = regcache->arch ();
int addr[PPC_MAX_REGISTER_SIZE];
int nr, isfloat;
struct gdbarch *gdbarch = regcache->arch ();
int addr[PPC_MAX_REGISTER_SIZE];
int nr, isfloat;
- pid_t pid =
ptid_get_pid (regcache->ptid ()
);
+ pid_t pid =
regcache->ptid ().pid (
);
/* Fetch the register's value from the register cache. */
regcache->raw_collect (regno, addr);
/* Fetch the register's value from the register cache. */
regcache->raw_collect (regno, addr);
@@
-393,7
+393,7
@@
rs6000_nat_target::xfer_partial (enum target_object object,
ULONGEST offset, ULONGEST len,
ULONGEST *xfered_len)
{
ULONGEST offset, ULONGEST len,
ULONGEST *xfered_len)
{
- pid_t pid =
ptid_get_pid (inferior_ptid
);
+ pid_t pid =
inferior_ptid.pid (
);
int arch64 = ARCH64 ();
switch (object)
int arch64 = ARCH64 ();
switch (object)
@@
-506,7
+506,7
@@
rs6000_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
do
{
do
{
- pid = waitpid (ptid
_get_pid (ptid
), &status, 0);
+ pid = waitpid (ptid
.pid (
), &status, 0);
save_errno = errno;
}
while (pid == -1 && errno == EINTR);
save_errno = errno;
}
while (pid == -1 && errno == EINTR);
@@
-526,7
+526,7
@@
rs6000_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
}
/* Ignore terminated detached child processes. */
}
/* Ignore terminated detached child processes. */
- if (!WIFSTOPPED (status) && pid !=
ptid_get_pid (inferior_ptid
))
+ if (!WIFSTOPPED (status) && pid !=
inferior_ptid.pid (
))
pid = -1;
}
while (pid == -1);
pid = -1;
}
while (pid == -1);
@@
-543,7
+543,7
@@
rs6000_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
else
store_waitstatus (ourstatus, status);
else
store_waitstatus (ourstatus, status);
- return p
id_to_ptid
(pid);
+ return p
tid_t
(pid);
}
\f
}
\f
@@
-611,7
+611,7
@@
rs6000_nat_target::create_inferior (const char *exec_file,
static gdb::byte_vector
rs6000_ptrace_ldinfo (ptid_t ptid)
{
static gdb::byte_vector
rs6000_ptrace_ldinfo (ptid_t ptid)
{
- const int pid = ptid
_get_pid (ptid
);
+ const int pid = ptid
.pid (
);
gdb::byte_vector ldi (1024);
int rc = -1;
gdb::byte_vector ldi (1024);
int rc = -1;
This page took
0.024363 seconds
and
4
git commands to generate.