aboutsummaryrefslogtreecommitdiff
path: root/src/target/aarch64.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-12-20 21:13:58 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2021-04-11 21:34:30 +0100
commit0f06d943366154963c6f5eb70f52e70f64fe5c71 (patch)
tree80354d7b76c84458d974edc84cbc66771ff097e3 /src/target/aarch64.c
parent651b861d5d5f1e361faee37a10c7d7ce03aa6afa (diff)
downloadriscv-openocd-0f06d943366154963c6f5eb70f52e70f64fe5c71.zip
riscv-openocd-0f06d943366154963c6f5eb70f52e70f64fe5c71.tar.gz
riscv-openocd-0f06d943366154963c6f5eb70f52e70f64fe5c71.tar.bz2
mem_ap: allow GDB connections
The target mem_ap is a convenient way to access buses, memory and peripherals behind an ARM AP. The current implementation provides only access through OpenOCD commands, because GDB remote protocol has to interact with a CPU and has to operate on CPU states and registers. Using GDB to access the memory is welcome, because GDB can resolve the symbol's address from an ELF file and can nicely display the content of complex struct and data types. Extend mem_ap target with the bare minimal support for a remote GDB connection, by emulating a fake basic ARM core. It means that only a GDB that has support for ARM can be used (either 'aarch64', 'arm' or 'multiarch' GDB). This is not seen as a big limitation, because the mem_ap target is mainly used on ARM based devices. Add a minimalist register description for the fake CPU. Fill the field 'debug_reason' as expected by GDB server. Call the target halted event to reply to GDB halt requests. For backward compatibility, don't open the GDB port by default. If needed, it has to be specified at 'target create' or 'configure' with the flag '-gdb-port'. Change-Id: I5a1b7adb749746516f5d4ffc6193c47b70132364 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6034 Tested-by: jenkins
Diffstat (limited to 'src/target/aarch64.c')
0 files changed, 0 insertions, 0 deletions