diff options
Diffstat (limited to 'gdb/m32r-linux-nat.c')
-rw-r--r-- | gdb/m32r-linux-nat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/m32r-linux-nat.c b/gdb/m32r-linux-nat.c index e5f755b..70bd528 100644 --- a/gdb/m32r-linux-nat.c +++ b/gdb/m32r-linux-nat.c @@ -200,9 +200,9 @@ m32r_linux_fetch_inferior_registers (struct target_ops *ops, int tid; /* GNU/Linux LWP ID's are process ID's. */ - tid = TIDGET (inferior_ptid); + tid = ptid_get_lwp (inferior_ptid); if (tid == 0) - tid = PIDGET (inferior_ptid); /* Not a threaded program. */ + tid = ptid_get_pid (inferior_ptid); /* Not a threaded program. */ /* Use the PTRACE_GETREGS request whenever possible, since it transfers more registers in one system call, and we'll cache the @@ -227,8 +227,8 @@ m32r_linux_store_inferior_registers (struct target_ops *ops, int tid; /* GNU/Linux LWP ID's are process ID's. */ - if ((tid = TIDGET (inferior_ptid)) == 0) - tid = PIDGET (inferior_ptid); /* Not a threaded program. */ + if ((tid = ptid_get_lwp (inferior_ptid)) == 0) + tid = ptid_get_pid (inferior_ptid); /* Not a threaded program. */ /* Use the PTRACE_SETREGS request whenever possible, since it transfers more registers in one system call. */ |