diff options
Diffstat (limited to 'gdb/x86-linux-nat.h')
-rw-r--r-- | gdb/x86-linux-nat.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/x86-linux-nat.h b/gdb/x86-linux-nat.h index a62cc4d..c455653 100644 --- a/gdb/x86-linux-nat.h +++ b/gdb/x86-linux-nat.h @@ -92,4 +92,15 @@ private: extern ps_err_e x86_linux_get_thread_area (pid_t pid, void *addr, unsigned int *base_addr); +/* Fetch the value of the shadow stack pointer register from process/thread + TID and store it to GDB's register cache. */ + +extern void x86_linux_fetch_ssp (regcache *regcache, const int tid); + +/* Read the value of the shadow stack pointer from GDB's register cache + and store it in the shadow stack pointer register of process/thread TID. + Throw an error in case of failure. */ + +extern void x86_linux_store_ssp (const regcache *regcache, const int tid); + #endif /* GDB_X86_LINUX_NAT_H */ |