[binutils-gdb] gdb: fix typo gcs_availabe

Matthieu Longo via Gdb-cvs <[email protected]> Mon, 8 Jun 2026 08:34:46 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=748350ae9e20d4698527c57bb3d3d76a33242cab

commit 748350ae9e20d4698527c57bb3d3d76a33242cab
Author: Matthieu Longo <[email protected]>
Date:   Wed May 20 11:46:56 2026 +0100

    gdb: fix typo gcs_availabe
    
    Approved-by: Thiago Jung Bauermann <[email protected]>

Diff:
---
 gdb/aarch64-linux-tdep.c | 6 +++---
 gdb/arch/aarch64.h       | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c
index ae21b029276..f11eccc1bc1 100644
--- a/gdb/aarch64-linux-tdep.c
+++ b/gdb/aarch64-linux-tdep.c
@@ -261,7 +261,7 @@ struct aarch64_linux_sigframe
   bool zt_available = false;
 
   /* True if we have a GCS entry in the signal context, false otherwise.  */
-  bool gcs_availabe = false;
+  bool gcs_available = false;
   /* The Guarded Control Stack Pointer Register.  */
   uint64_t gcspr;
   /* Flags indicating which GCS features are enabled for the thread.  */
@@ -584,7 +584,7 @@ aarch64_linux_read_signal_frame_info (const frame_info_ptr &this_frame,
 
 	    signal_frame.gcs_features_enabled
 	      = extract_unsigned_integer (buf, byte_order);
-	    signal_frame.gcs_availabe = true;
+	    signal_frame.gcs_available = true;
 	    section += size;
 	    break;
 	  }
@@ -787,7 +787,7 @@ aarch64_linux_sigframe_init (const struct tramp_frame *self,
 
   /* Restore the GCS registers, if the target supports it and if there is
      an entry for them.  */
-  if (signal_frame.gcs_availabe && tdep->has_gcs_linux ())
+  if (signal_frame.gcs_available && tdep->has_gcs_linux ())
     {
       /* Restore GCSPR.  */
       trad_frame_set_reg_value (this_cache, tdep->gcs_reg_base,
diff --git a/gdb/arch/aarch64.h b/gdb/arch/aarch64.h
index c9a89ac4098..cf7318cbe74 100644
--- a/gdb/arch/aarch64.h
+++ b/gdb/arch/aarch64.h
@@ -97,6 +97,7 @@ namespace std
       /* SME2 feature.  */
       h = h << 1 | features.sme2;
 
+      /* GCS feature.  */
       h = h << 1 | features.gcs;
       h = h << 1 | features.gcs_linux;