[lldb] [gdb-remote] Support getting siginfo via API

Add Thread::GetSiginfo() and SBThread::GetSiginfo() methods to retrieve
the siginfo value from server.

Differential Revision: https://reviews.llvm.org/D118055
This commit is contained in:
Michał Górny
2022-01-24 18:52:49 +01:00
parent a858e25f1c
commit ac666d1799
10 changed files with 181 additions and 0 deletions

View File

@@ -1317,3 +1317,12 @@ lldb_private::Thread *SBThread::operator->() {
lldb_private::Thread *SBThread::get() {
return m_opaque_sp->GetThreadSP().get();
}
SBValue SBThread::GetSiginfo() {
LLDB_INSTRUMENT_VA(this);
ThreadSP thread_sp = m_opaque_sp->GetThreadSP();
if (!thread_sp)
return SBValue();
return thread_sp->GetSiginfoValue();
}