summaryrefslogtreecommitdiffstats
path: root/libpdbg/p8chip.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-12-04 13:15:16 +1100
committerAlistair Popple <alistair@popple.id.au>2017-12-08 11:22:09 +1100
commit5f815d7a742eaebe01d44251db833b8051f393aa (patch)
tree0c23107ede525f761ebbcb2b17a8bb99188f12a2 /libpdbg/p8chip.c
parent07aa13ea742ee447d7b5d5c295116510f2918119 (diff)
downloadpdbg-5f815d7a742eaebe01d44251db833b8051f393aa.tar.gz
pdbg-5f815d7a742eaebe01d44251db833b8051f393aa.zip
Refactor for an exportable API
The existing API between libpdbg and pdbg was poorly defined. Other programs are beginning to utilise libpdbg so a more strictly defined API would be beneficial. This patch introduces a new header (libpdbg.h) which includes the definition of a public API for libpdbg and updates pdbg to only depend on this. Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/p8chip.c')
-rw-r--r--libpdbg/p8chip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpdbg/p8chip.c b/libpdbg/p8chip.c
index 51de7b9..8944a72 100644
--- a/libpdbg/p8chip.c
+++ b/libpdbg/p8chip.c
@@ -230,7 +230,7 @@ static int p8_ram_setup(struct thread *thread)
return 1;
}
- if (!(thread_status(thread) & THREAD_STATUS_ACTIVE))
+ if (!(thread->status & THREAD_STATUS_ACTIVE))
return 2;
/* Activate RAM mode */
OpenPOWER on IntegriCloud