[lldb] Expose SBProcess::IsLiveDebugSession() (#203111)
Expose the existing `Process::IsLiveDebugSession()` through the SB API as `SBProcess::IsLiveDebugSession()`, letting clients distinguish a live debuggee from a post-mortem session such as a core file or minidump. It returns `false` when there is no underlying process, consistent with other `SBProcess` query methods.
This commit is contained in:
1 parent
ca42466690
commit
e9fbddf223
4 files changed
+44
No files matched your search
@@ -1354,6 +1354,15 @@ lldb::SBFileSpec SBProcess::GetCoreFile() {
|
||||
return SBFileSpec(core_file);
|
||||
}
|
||||
|
||||
bool SBProcess::IsLiveDebugSession() const {
|
||||
LLDB_INSTRUMENT_VA(this);
|
||||
|
||||
ProcessSP process_sp(GetSP());
|
||||
if (!process_sp)
|
||||
return false;
|
||||
return process_sp->IsLiveDebugSession();
|
||||
}
|
||||
|
||||
addr_t SBProcess::GetAddressMask(AddressMaskType type,
|
||||
AddressMaskRange addr_range) {
|
||||
LLDB_INSTRUMENT_VA(this, type, addr_range);
|
||||
|
||||
Reference in new issue
Block a user