Add new debug architecture version

Teach gdb about a new debug architecture version for AArch64 (0x11).

No user-visible changes.

Regression-tested on aarch64-linux Ubuntu 20.04/22.04.

Signed-off-by: Luis Machado <luis.machado@arm.com>
This commit is contained in:
Luis Machado
2023-04-25 09:17:43 +01:00
parent b4617f7904
commit dc449cb963
2 changed files with 4 additions and 0 deletions

View File

@@ -59,6 +59,8 @@
#define AARCH64_DEBUG_ARCH_V8_2 0x8
#define AARCH64_DEBUG_ARCH_V8_4 0x9
#define AARCH64_DEBUG_ARCH_V8_8 0x10
/* Armv8.9 debug architecture. */
#define AARCH64_DEBUG_ARCH_V8_9 0x11
/* ptrace expects control registers to be formatted as follows:

View File

@@ -234,6 +234,8 @@ compatible_debug_arch (unsigned int debug_arch)
return true;
if (debug_arch == AARCH64_DEBUG_ARCH_V8_8)
return true;
if (debug_arch == AARCH64_DEBUG_ARCH_V8_9)
return true;
return false;
}