[Lldb-commits] [lldb] [lldb][AArch64] Add Guarded Control Stack registers (PR #123720)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 24 00:54:02 PST 2025


================
@@ -2,8 +2,8 @@
 #include <sys/auxv.h>
 #include <sys/prctl.h>
 
-#ifndef HWCAP2_GCS
-#define HWCAP2_GCS (1UL << 63)
+#ifndef HWCAP_GCS
+#define HWCAP_GCS (1UL << 32)
----------------
DavidSpickett wrote:

Yes that is strange. Initially it was a HWCAP2 value but it was moved for some reason. I think this is just the documentation being out of sync because the tests use HWCAP - https://github.com/torvalds/linux/blob/master/tools/testing/selftests/arm64/signal/test_signals.c#L30. As does my code.

I've asked the person who wrote the GCS support to confirm whether this is the case.

https://github.com/llvm/llvm-project/pull/123720


More information about the lldb-commits mailing list