diff options
| author | Rashmica Gupta <rashmica.g@gmail.com> | 2018-11-02 11:46:41 +1100 |
|---|---|---|
| committer | Alistair Popple <alistair@popple.id.au> | 2018-11-02 14:37:05 +1100 |
| commit | 0b67c899a511bb0846b21ed0949356706da6e2b5 (patch) | |
| tree | e71d59b88f24096f7e17cd3c18b1d72aadbdc64d /libpdbg | |
| parent | f03a558e5dbd4fd7960dc1c4e1060fb2f150a606 (diff) | |
| download | pdbg-0b67c899a511bb0846b21ed0949356706da6e2b5.tar.gz pdbg-0b67c899a511bb0846b21ed0949356706da6e2b5.zip | |
pdbg/gdbserver: Add in basic skeleton for a gdbserver on p8
I have changed a few bits here and there but this patch is largely
authored by Alistair Popple.
Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg')
| -rw-r--r-- | libpdbg/libpdbg.h | 1 | ||||
| -rw-r--r-- | libpdbg/operations.h | 3 | ||||
| -rw-r--r-- | libpdbg/target.h | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h index c54e852..1977c75 100644 --- a/libpdbg/libpdbg.h +++ b/libpdbg/libpdbg.h @@ -139,6 +139,7 @@ struct thread_regs { }; int ram_putmsr(struct pdbg_target *target, uint64_t val); +int ram_getmem(struct pdbg_target *thread, uint64_t addr, uint64_t *value); int ram_putnia(struct pdbg_target *target, uint64_t val); int ram_putspr(struct pdbg_target *target, int spr, uint64_t val); int ram_putgpr(struct pdbg_target *target, int spr, uint64_t val); diff --git a/libpdbg/operations.h b/libpdbg/operations.h index 4a6db2f..dc5042a 100644 --- a/libpdbg/operations.h +++ b/libpdbg/operations.h @@ -70,9 +70,6 @@ #define MXSPR_SPR(opcode) (((opcode >> 16) & 0x1f) | ((opcode >> 6) & 0x3e0)) -/* GDB server functionality */ -int gdbserver_start(uint16_t port); - enum fsi_system_type {FSI_SYSTEM_P8, FSI_SYSTEM_P9W, FSI_SYSTEM_P9R, FSI_SYSTEM_P9Z}; enum chip_type get_chip_type(uint64_t chip_id); diff --git a/libpdbg/target.h b/libpdbg/target.h index c8da048..d1a6aec 100644 --- a/libpdbg/target.h +++ b/libpdbg/target.h @@ -165,4 +165,5 @@ struct chiplet { int (*getring)(struct chiplet *, uint64_t, int64_t, uint32_t[]); }; #define target_to_chiplet(x) container_of(x, struct chiplet, target) + #endif |

