From: Thiago Jung Bauermann Date: Wed, 12 Feb 2025 23:55:01 +0000 (-0300) Subject: NOTFORUPSTREAM Fix for default_get_shadow_stack_pointer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9bfddaad319dd5f9aee24b6d5ab608f5aaaf403;p=thirdparty%2Fbinutils-gdb.git NOTFORUPSTREAM Fix for default_get_shadow_stack_pointer I suggested this change in review comments on v3 of the Intel CET patch series, and it will likely be present in v4. It's in this branch because it affects the AArch64 GCS patch series. --- diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 20e00782ccf..c86df72a6d8 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -1224,6 +1224,7 @@ std::optional default_get_shadow_stack_pointer (gdbarch *gdbarch, regcache *regcache, bool &shadow_stack_enabled) { + shadow_stack_enabled = false; return {}; }