Displaced stepping debug: fetch the right regcache
authorPedro Alves <palves@redhat.com>
Tue, 7 Apr 2015 10:42:09 +0000 (11:42 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 7 Apr 2015 10:42:09 +0000 (11:42 +0100)
commitd9b67d9f4127191679c743d1f47d2421d6dcede7
tree5d451af55a624cfccbd0741fdadaa583a7600ae7
parent337532fab150dc531c92a31e179df96b98a619c0
Displaced stepping debug: fetch the right regcache

Although not currently possible in practice when we get here,
'resume_ptid' can also be a wildcard throughout this function.  It's
clearer to fetch the regcache using the thread's ptid.

gdb/ChangeLog:
2015-04-07  Pedro Alves  <pedro@codesourcery.com>

* infrun.c (resume) <displaced stepping debug output>: Get the
leader thread's regcache, not resume_ptid's.
gdb/ChangeLog
gdb/infrun.c