diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2018-11-01 15:08:21 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2019-01-08 10:00:09 +0000 |
commit | 3799eded676183eba05c146f7b2ae8dbf4a02ee1 (patch) | |
tree | 0bef1f3e72a1d03347beb2598547ff9731202e8e /src/target/arm.h | |
parent | 5c941edc7b0d6e0bed596293d81867453d1462e9 (diff) | |
download | riscv-openocd-3799eded676183eba05c146f7b2ae8dbf4a02ee1.zip riscv-openocd-3799eded676183eba05c146f7b2ae8dbf4a02ee1.tar.gz riscv-openocd-3799eded676183eba05c146f7b2ae8dbf4a02ee1.tar.bz2 |
target/aarch64: add support for multi-architecture gdb
GDB can be built for multi-architecture through the command
./configure --enable-targets=all && make
Such multi-architecture GDB requires the target's architecture to
be selected either manually by the user through the GDB command
"set architecture" or automatically by the target description sent
by the remote target (i.e. OpenOCD).
Commit e65acd889c61a424c7bd72fdee5d6a3aee1d8504 ("gdb_server: add
support for architecture element") already provides the required
infrastructure to support multi-architecture gdb.
aarch64-linux-gnu-gdb 8.2 uses "aarch64" as default architecture,
but also supports the value "aarch64:ilp32" and all the values
supported by arm-none-eabi-gdb.
These values can be displayed on arm gdb prompt by typing
"set architecture " followed by a TAB for autocompletion.
Set the gdb architecture value for aarch64 target to "aarch64".
Change-Id: I63e9769f47d8e73f048eb84fa73e082dd1c8e52c
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/4755
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/arm.h')
-rw-r--r-- | src/target/arm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/arm.h b/src/target/arm.h index 10a053c..ea83d38 100644 --- a/src/target/arm.h +++ b/src/target/arm.h @@ -267,6 +267,7 @@ const char *arm_get_gdb_arch(struct target *target); int arm_get_gdb_reg_list(struct target *target, struct reg **reg_list[], int *reg_list_size, enum target_register_class reg_class); +const char *armv8_get_gdb_arch(struct target *target); int armv8_get_gdb_reg_list(struct target *target, struct reg **reg_list[], int *reg_list_size, enum target_register_class reg_class); |