diff options
-rw-r--r-- | src/target/armv8.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/armv8.c b/src/target/armv8.c index e736937..88b9320 100644 --- a/src/target/armv8.c +++ b/src/target/armv8.c @@ -1753,7 +1753,8 @@ const struct command_registration armv8_command_handlers[] = { const char *armv8_get_gdb_arch(struct target *target) { - return "aarch64"; + struct arm *arm = target_to_arm(target); + return arm->core_state == ARM_STATE_AARCH64 ? "aarch64" : "arm"; } int armv8_get_gdb_reg_list(struct target *target, |