diff options
Diffstat (limited to 'gdb/nat')
-rw-r--r-- | gdb/nat/linux-procfs.c | 2 | ||||
-rw-r--r-- | gdb/nat/x86-linux-dregs.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/nat/linux-procfs.c b/gdb/nat/linux-procfs.c index 20708fa..1c236c5 100644 --- a/gdb/nat/linux-procfs.c +++ b/gdb/nat/linux-procfs.c @@ -240,7 +240,7 @@ linux_proc_tid_get_name (ptid_t ptid) char comm_path[100]; const char *comm_val; pid_t pid = ptid.pid (); - pid_t tid = ptid_lwp_p (ptid) ? ptid.lwp () : ptid.pid (); + pid_t tid = ptid.lwp_p () ? ptid.lwp () : ptid.pid (); xsnprintf (comm_path, sizeof (comm_path), "/proc/%ld/task/%ld/comm", (long) pid, (long) tid); diff --git a/gdb/nat/x86-linux-dregs.c b/gdb/nat/x86-linux-dregs.c index 8aa8717..5437fb4 100644 --- a/gdb/nat/x86-linux-dregs.c +++ b/gdb/nat/x86-linux-dregs.c @@ -43,7 +43,7 @@ x86_linux_dr_get (ptid_t ptid, int regnum) int tid; unsigned long value; - gdb_assert (ptid_lwp_p (ptid)); + gdb_assert (ptid.lwp_p ()); tid = ptid.lwp (); errno = 0; @@ -61,7 +61,7 @@ x86_linux_dr_set (ptid_t ptid, int regnum, unsigned long value) { int tid; - gdb_assert (ptid_lwp_p (ptid)); + gdb_assert (ptid.lwp_p ()); tid = ptid.lwp (); errno = 0; |