From 07aa13ea742ee447d7b5d5c295116510f2918119 Mon Sep 17 00:00:00 2001 From: Alistair Popple Date: Tue, 5 Dec 2017 13:31:07 +1100 Subject: 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 --- libpdbg/operations.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'libpdbg/operations.h') 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); -- cgit v1.2.1