[lldb-dap] Report exit status message in lldb-dap, same as lldb cli (#89405)
Summary: When the target inferior process that is being debugged exits in lldb command line, it emits following message: `Process 4049526 exited with status = -1 (0xffffffff) debugserver died with signal SIGTERM` lldb-dap on the other hand does not emit a similar message. This PR adds the same status message to lldb-dap. Test Plan: In VSCode debug any target and hit stop mode, kill lldb-server and observe an exit status message similar to the following: Process 2167677 exited with status = -1 (0xffffffff) debugserver died with signal SIGTERM Reviewers: @jeffreytan81,@clayborg,@kusmour, Subscribers: Tasks: lldb-dap Tags:
This commit is contained in:
@@ -928,6 +928,14 @@ size_t SBProcess::WriteMemory(addr_t addr, const void *src, size_t src_len,
|
||||
return bytes_written;
|
||||
}
|
||||
|
||||
void SBProcess::GetStatus(SBStream &status) {
|
||||
LLDB_INSTRUMENT_VA(this, status);
|
||||
|
||||
ProcessSP process_sp(GetSP());
|
||||
if (process_sp)
|
||||
process_sp->GetStatus(status.ref());
|
||||
}
|
||||
|
||||
bool SBProcess::GetDescription(SBStream &description) {
|
||||
LLDB_INSTRUMENT_VA(this, description);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user