diff options
author | Tom Tromey <tom@tromey.com> | 2018-06-11 12:14:34 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-03 11:36:44 -0600 |
commit | cc6bcb548d67a5a0a7223d81bd43c299312320c8 (patch) | |
tree | 205be2c55d1a8f204d8e7d0b3d14a69b2253f0b1 /gdb/sparc-ravenscar-thread.c | |
parent | e38504b39279fa86cbb2c4a45ab8ec34e3aef90b (diff) | |
download | gdb-cc6bcb548d67a5a0a7223d81bd43c299312320c8.zip gdb-cc6bcb548d67a5a0a7223d81bd43c299312320c8.tar.gz gdb-cc6bcb548d67a5a0a7223d81bd43c299312320c8.tar.bz2 |
Remove ptid_get_tid
This removes ptid_get_tid in favor of calling the ptid_t::tid method.
gdb/ChangeLog
2018-07-03 Tom Tromey <tom@tromey.com>
* common/ptid.c (ptid_get_tid): Remove.
* common/ptid.h (ptid_get_tid): Don't declare.
* ada-tasks.c: Update.
* aix-thread.c: Update.
* bsd-uthread.c: Update.
* darwin-nat.c: Update.
* fbsd-nat.c: Update.
* i386-darwin-nat.c: Update.
* infrun.c: Update.
* linux-tdep.c: Update.
* nto-procfs.c: Update.
* ppc-ravenscar-thread.c: Update.
* python/py-infthread.c: Update.
* ravenscar-thread.c: Update.
* sol-thread.c: Update.
* sparc-ravenscar-thread.c: Update.
* windows-nat.c: Update.
gdb/gdbserver/ChangeLog
2018-07-03 Tom Tromey <tom@tromey.com>
* target.c: Update.
Diffstat (limited to 'gdb/sparc-ravenscar-thread.c')
-rw-r--r-- | gdb/sparc-ravenscar-thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/sparc-ravenscar-thread.c b/gdb/sparc-ravenscar-thread.c index 0b4d68a..b076232 100644 --- a/gdb/sparc-ravenscar-thread.c +++ b/gdb/sparc-ravenscar-thread.c @@ -112,7 +112,7 @@ sparc_ravenscar_fetch_registers (struct regcache *regcache, int regnum) ULONGEST stack_address; /* The tid is the thread_id field, which is a pointer to the thread. */ - thread_descriptor_address = (CORE_ADDR) ptid_get_tid (inferior_ptid); + thread_descriptor_address = (CORE_ADDR) inferior_ptid.tid (); /* Read the saved SP in the context buffer. */ current_address = thread_descriptor_address @@ -162,7 +162,7 @@ sparc_ravenscar_store_registers (struct regcache *regcache, int regnum) if (register_in_thread_descriptor_p (regnum)) register_address = - ptid_get_tid (inferior_ptid) + sparc_register_offsets [regnum]; + inferior_ptid.tid () + sparc_register_offsets [regnum]; else if (register_on_stack_p (regnum)) { regcache_cooked_read_unsigned (regcache, SPARC_SP_REGNUM, |