This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] bsd-uthread: Use ptid from regcache instead of inferior_ptid
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 22 Mar 2017 11:22:04 -0400
- Subject: [binutils-gdb] bsd-uthread: Use ptid from regcache instead of inferior_ptid
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 317cd4925a9d6ef6f8752a771cb56e85ddfb30f0 ***
Author: Simon Marchi <simon.marchi@polymtl.ca>
Branch: master
Commit: 317cd4925a9d6ef6f8752a771cb56e85ddfb30f0
bsd-uthread: Use ptid from regcache instead of inferior_ptid
This is one of the rare to_fetch/store_registers implementations that will
still rely (for now) on inferior_ptid (because of the memory read/write
operations). We therefore have to add a save/restore of inferior_ptid. We'll
be able to remove it when we make the memory operations accept the ptid as a
parameter.
gdb/ChangeLog:
* bsd-uthread.c (bsd_uthread_fetch_registers,
bsd_uthread_store_registers): Use ptid from regcache, set and
restore inferior_ptid.