diff options
author | Alistair Popple <alistair@popple.id.au> | 2018-05-24 13:42:49 +1000 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2018-05-24 13:42:49 +1000 |
commit | 070d7cd51ed14b5c9997524305004de0fbabb7da (patch) | |
tree | 6025dad79e0918c25aba6456ef30c3d7917d98c7 /libpdbg/target.h | |
parent | 9d8dfd7ea4a133c1c14198ba4a00df043ca1911b (diff) | |
download | pdbg-070d7cd51ed14b5c9997524305004de0fbabb7da.tar.gz pdbg-070d7cd51ed14b5c9997524305004de0fbabb7da.zip |
libpdbg: Abstract thread status
There is currently no abstraction of thread status between library and
application. It just passes the hardware specific values down. There is
also no interface exported in the library headers to read status.
This makes it difficult to implement more advanced functionality in the
application as there is no way hardware agnostic way to determine if a
thread is in powersave mode or not for example.
Instead introduce a hardware agnostic thread state so that we can implement
more advanced functionality such as automatically stopping threads if
required.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/target.h')
-rw-r--r-- | libpdbg/target.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpdbg/target.h b/libpdbg/target.h index 5541729..abdc0be 100644 --- a/libpdbg/target.h +++ b/libpdbg/target.h @@ -137,7 +137,7 @@ struct core { struct thread { struct pdbg_target target; - uint64_t status; + struct thread_state status; int id; int (*step)(struct thread *, int); int (*start)(struct thread *); |