aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorMichał Górny <mgorny@moritz.systems>2022-01-11 20:28:37 +0100
committerMichał Górny <mgorny@moritz.systems>2022-01-13 11:24:36 +0100
commit1e74e5e9e3b903af568de834deab29fa342c665a (patch)
tree314d50a3b645eecdebc918293e2fe23956c4f615 /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent1cbb456123a9e104d2a29c42f021ab537f18397b (diff)
downloadllvm-1e74e5e9e3b903af568de834deab29fa342c665a.zip
llvm-1e74e5e9e3b903af568de834deab29fa342c665a.tar.gz
llvm-1e74e5e9e3b903af568de834deab29fa342c665a.tar.bz2
[lldb] [llgs] Implement qXfer:siginfo:read
Implement the qXfer:siginfo:read that is used to read the siginfo_t (extended signal information) for the current thread. This is currently implemented on FreeBSD and Linux. Differential Revision: https://reviews.llvm.org/D117113
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index 02d2b33..74366d7 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -292,7 +292,8 @@ NativeProcessLinux::Extension
NativeProcessLinux::Factory::GetSupportedExtensions() const {
NativeProcessLinux::Extension supported =
Extension::multiprocess | Extension::fork | Extension::vfork |
- Extension::pass_signals | Extension::auxv | Extension::libraries_svr4;
+ Extension::pass_signals | Extension::auxv | Extension::libraries_svr4 |
+ Extension::siginfo_read;
#ifdef __aarch64__
// At this point we do not have a process so read auxv directly.
@@ -1622,7 +1623,7 @@ Status NativeProcessLinux::WriteMemory(lldb::addr_t addr, const void *buf,
return error;
}
-Status NativeProcessLinux::GetSignalInfo(lldb::tid_t tid, void *siginfo) {
+Status NativeProcessLinux::GetSignalInfo(lldb::tid_t tid, void *siginfo) const {
return PtraceWrapper(PTRACE_GETSIGINFO, tid, nullptr, siginfo);
}