aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-tdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/x86-tdep.h')
-rw-r--r--gdb/x86-tdep.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/x86-tdep.h b/gdb/x86-tdep.h
index 2b5853a..855d04b 100644
--- a/gdb/x86-tdep.h
+++ b/gdb/x86-tdep.h
@@ -1,6 +1,6 @@
/* Target-dependent code for X86-based targets.
- Copyright (C) 2018-2024 Free Software Foundation, Inc.
+ Copyright (C) 2018-2025 Free Software Foundation, Inc.
This file is part of GDB.
@@ -20,6 +20,15 @@
#ifndef GDB_X86_TDEP_H
#define GDB_X86_TDEP_H
+/* Fill SSP to the shadow stack pointer in GDB's REGCACHE. */
+
+extern void x86_supply_ssp (regcache *regcache, const uint64_t ssp);
+
+/* Collect the value of the shadow stack pointer in GDB's REGCACHE and
+ write it to SSP. */
+
+extern void x86_collect_ssp (const regcache *regcache, uint64_t &ssp);
+
/* Checks whether PC lies in an indirect branch thunk using registers
REGISTER_NAMES[LO] (inclusive) to REGISTER_NAMES[HI] (exclusive). */