public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [gdb/aarch64] Add new debug architecture version
@ 2023-04-25 14:22 Luis Machado
  2023-04-26  6:01 ` Luis Machado
  0 siblings, 1 reply; 2+ messages in thread
From: Luis Machado @ 2023-04-25 14:22 UTC (permalink / raw)
  To: gdb-patches

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>
---
 gdb/nat/aarch64-hw-point.h       | 2 ++
 gdb/nat/aarch64-linux-hw-point.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/gdb/nat/aarch64-hw-point.h b/gdb/nat/aarch64-hw-point.h
index f4662f7c782..c19681422da 100644
--- a/gdb/nat/aarch64-hw-point.h
+++ b/gdb/nat/aarch64-hw-point.h
@@ -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:
 
diff --git a/gdb/nat/aarch64-linux-hw-point.c b/gdb/nat/aarch64-linux-hw-point.c
index ccb47cd5aa2..8cf8b31530c 100644
--- a/gdb/nat/aarch64-linux-hw-point.c
+++ b/gdb/nat/aarch64-linux-hw-point.c
@@ -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;
 }
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [gdb/aarch64] Add new debug architecture version
  2023-04-25 14:22 [PATCH] [gdb/aarch64] Add new debug architecture version Luis Machado
@ 2023-04-26  6:01 ` Luis Machado
  0 siblings, 0 replies; 2+ messages in thread
From: Luis Machado @ 2023-04-26  6:01 UTC (permalink / raw)
  To: gdb-patches

On 4/25/23 15:22, Luis Machado via Gdb-patches wrote:
> 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>
> ---
>   gdb/nat/aarch64-hw-point.h       | 2 ++
>   gdb/nat/aarch64-linux-hw-point.c | 2 ++
>   2 files changed, 4 insertions(+)
> 
> diff --git a/gdb/nat/aarch64-hw-point.h b/gdb/nat/aarch64-hw-point.h
> index f4662f7c782..c19681422da 100644
> --- a/gdb/nat/aarch64-hw-point.h
> +++ b/gdb/nat/aarch64-hw-point.h
> @@ -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:
>   
> diff --git a/gdb/nat/aarch64-linux-hw-point.c b/gdb/nat/aarch64-linux-hw-point.c
> index ccb47cd5aa2..8cf8b31530c 100644
> --- a/gdb/nat/aarch64-linux-hw-point.c
> +++ b/gdb/nat/aarch64-linux-hw-point.c
> @@ -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;
>   }

Pushed now.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-26  6:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-25 14:22 [PATCH] [gdb/aarch64] Add new debug architecture version Luis Machado
2023-04-26  6:01 ` Luis Machado

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).