This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v1.99 0/6] Make register fetch/store implementations use ptid from regcache
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Sat, 11 Mar 2017 12:03:48 -0500
- Subject: [PATCH v1.99 0/6] Make register fetch/store implementations use ptid from regcache
- Authentication-results: sourceware.org; auth=none
This is almost a v2 of:
Pass ptid to target_ops register methods
https://sourceware.org/ml/gdb-patches/2017-03/msg00100.html
but since the work can be done incrementally (unlike the original version), I'd
like to make sure that the idea is good before proceeding with all the changes.
I've only done changes to a few target files for the moment and will do the
others if these look good..
Simon Marchi (6):
Introduce regcache_get_ptid
Add asserts in target_fetch/store_registers
amd64-linux-nat: Use ptid from regcache instead of inferior_ptid
aarc64-linux-nat: Use ptid from regcache instead of inferior_ptid
aix-thread: Use ptid from regcache instead of inferior_ptid
alpha-bsd-nat: Use ptid from regcache instead of inferior_ptid
gdb/aarch64-linux-nat.c | 8 ++++----
gdb/aix-thread.c | 14 +++++++-------
gdb/alpha-bsd-nat.c | 12 ++++++------
gdb/amd64-linux-nat.c | 8 ++++----
gdb/regcache.c | 10 ++++++++++
gdb/regcache.h | 4 ++++
gdb/target.c | 4 ++++
7 files changed, 39 insertions(+), 21 deletions(-)
--
2.12.0