summaryrefslogtreecommitdiffstats
path: root/libpdbg/operations.h
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-12-05 13:31:07 +1100
committerAlistair Popple <alistair@popple.id.au>2017-12-06 11:19:36 +1100
commit07aa13ea742ee447d7b5d5c295116510f2918119 (patch)
treef71c357b32870a8a1a11fb78f2693f988f1eb9ff /libpdbg/operations.h
parent6b4b13bc13d0f49665113328a2657964ad905a77 (diff)
downloadpdbg-07aa13ea742ee447d7b5d5c295116510f2918119.tar.gz
pdbg-07aa13ea742ee447d7b5d5c295116510f2918119.zip
Rename struct target to struct pdbg_target
In preparation for a better defined libpdbg API rename "struct target" to something less generic so that we can export the name. Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/operations.h')
-rw-r--r--libpdbg/operations.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/libpdbg/operations.h b/libpdbg/operations.h
index b555fc6..e4a9411 100644
--- a/libpdbg/operations.h
+++ b/libpdbg/operations.h
@@ -33,8 +33,8 @@
#define FSI2PIB_BASE 0x1000
/* Alter display unit functions */
-int adu_getmem(struct target *target, uint64_t addr, uint8_t *output, uint64_t size);
-int adu_putmem(struct target *target, uint64_t start_addr, uint8_t *input, uint64_t size);
+int adu_getmem(struct pdbg_target *target, uint64_t addr, uint8_t *output, uint64_t size);
+int adu_putmem(struct pdbg_target *target, uint64_t start_addr, uint8_t *input, uint64_t size);
/* Functions to ram instructions */
#define THREAD_STATUS_DISABLED PPC_BIT(0)
@@ -65,17 +65,17 @@ int ram_getmsr(struct thread *thread, uint64_t *value);
int ram_putmsr(struct thread *thread, uint64_t value);
int ram_getmem(struct thread *thread, uint64_t addr, uint64_t *value);
uint64_t thread_status(struct thread *thread);
-int ram_stop_thread(struct target *thread);
-int ram_step_thread(struct target *thread, int count);
-int ram_start_thread(struct target *thread);
-int ram_sreset_thread(struct target *thread);
-void fsi_destroy(struct target *target);
+int ram_stop_thread(struct pdbg_target *thread);
+int ram_step_thread(struct pdbg_target *thread, int count);
+int ram_start_thread(struct pdbg_target *thread);
+int ram_sreset_thread(struct pdbg_target *thread);
+void fsi_destroy(struct pdbg_target *target);
-int htm_stop(struct target *target);
-int htm_start(struct target *target);
-int htm_status(struct target *target);
-int htm_reset(struct target *target, uint64_t *base, uint64_t *size);
-int htm_dump(struct target *target, uint64_t, const char *);
+int htm_stop(struct pdbg_target *target);
+int htm_start(struct pdbg_target *target);
+int htm_status(struct pdbg_target *target);
+int htm_reset(struct pdbg_target *target, uint64_t *base, uint64_t *size);
+int htm_dump(struct pdbg_target *target, uint64_t, const char *);
/* GDB server functionality */
int gdbserver_start(uint16_t port);
OpenPOWER on IntegriCloud