[Pdbg] [PATCH v3 08/13] libpdbg/p9chip: update thread status on stop, start, sreset
npiggin at gmail.com
Tue May 8 12:36:09 AEST 2018
On Tue, 08 May 2018 11:33:07 +1000
Alistair Popple <alistair at popple.id.au> wrote:
> On Wednesday, 2 May 2018 4:28:03 PM AEST Nicholas Piggin wrote:
> > Update thread->status when we expect it to change. This becomes more
> > important if we chain multiple operations together.
> Looks good. Do you think we need to do something similar on P8?
We possibly should, yeah. Not 100% sure what the best way to go is here.
If we miss an update or things change unexpectedly somewhere, we might
still see a stale value.
I'm wondering if we should make it a status call and just re-read it
from registers every time? (or at least the target backend can decide
whether it wants to cache and update or just re-read, etc)
More information about the Pdbg