X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Fhppa-linux-nat.c;h=6d0de143ed59370eb72f431cbe774f81f808f63b;hb=cbda93a56a0af8d7787ff091caad64af1b2bd085;hp=31eeda8ee38736d3fb81778c08bdbb91ec67055f;hpb=0b30217134add051e159a192066a1e568ebd837f;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c index 31eeda8..6d0de14 100644 --- a/gdb/hppa-linux-nat.c +++ b/gdb/hppa-linux-nat.c @@ -1,6 +1,6 @@ /* Functions specific to running GDB native on HPPA running GNU/Linux. - Copyright (C) 2004-2012 Free Software Foundation, Inc. + Copyright (C) 2004-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -20,7 +20,6 @@ #include "defs.h" #include "gdbcore.h" #include "regcache.h" -#include "gdb_string.h" #include "inferior.h" #include "target.h" #include "linux-nat.h" @@ -224,9 +223,9 @@ fetch_register (struct regcache *regcache, int regno) } /* 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. */ errno = 0; val = ptrace (PTRACE_PEEKUSER, tid, hppa_linux_register_addr (regno, 0), 0); @@ -251,9 +250,9 @@ store_register (const struct regcache *regcache, int regno) return; /* 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. */ errno = 0; regcache_raw_collect (regcache, regno, &val);