X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fxtensa-linux-nat.c;h=097d7bd6f968cc9e1b014c8b406cfffa293de9b9;hb=5f23a08201ed01570b34f5cff99a95fc7b9e2fdb;hp=5ac29ee18baa9c22840384f6a1cc838bd4f5dbe5;hpb=34a79281e4bd5d1a7f1d22a5a5be1ac2db56a3fc;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/xtensa-linux-nat.c b/gdb/xtensa-linux-nat.c index 5ac29ee18b..097d7bd6f9 100644 --- a/gdb/xtensa-linux-nat.c +++ b/gdb/xtensa-linux-nat.c @@ -1,6 +1,6 @@ /* Xtensa GNU/Linux native support. - Copyright (C) 2007-2018 Free Software Foundation, Inc. + Copyright (C) 2007-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -28,7 +28,7 @@ #include #include #include -#include "gdb_wait.h" +#include "gdbsupport/gdb_wait.h" #include #include #include "nat/gdb_ptrace.h" @@ -202,7 +202,7 @@ supply_fpregset (struct regcache *regcache, static void fetch_gregs (struct regcache *regcache, int regnum) { - int tid = ptid_get_lwp (regcache->ptid ()); + int tid = regcache->ptid ().lwp (); gdb_gregset_t regs; int areg; @@ -221,7 +221,7 @@ fetch_gregs (struct regcache *regcache, int regnum) static void store_gregs (struct regcache *regcache, int regnum) { - int tid = ptid_get_lwp (regcache->ptid ()); + int tid = regcache->ptid ().lwp (); gdb_gregset_t regs; int areg; @@ -249,7 +249,7 @@ static int xtreg_high; static void fetch_xtregs (struct regcache *regcache, int regnum) { - int tid = ptid_get_lwp (regcache->ptid ()); + int tid = regcache->ptid ().lwp (); const xtensa_regtable_t *ptr; char xtregs [XTENSA_ELF_XTREG_SIZE]; @@ -264,7 +264,7 @@ fetch_xtregs (struct regcache *regcache, int regnum) static void store_xtregs (struct regcache *regcache, int regnum) { - int tid = ptid_get_lwp (regcache->ptid ()); + int tid = regcache->ptid ().lwp (); const xtensa_regtable_t *ptr; char xtregs [XTENSA_ELF_XTREG_SIZE];