From eefda18227a2faeacbd5420cb482fa8b5836283b Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Mon, 24 Feb 2020 10:04:16 -0500 Subject: [lldb/Plugins] Move SBTarget::GetExtendedCrashInformation to SBProcess This patch moves the SB API method GetExtendedCrashInformation from SBTarget to SBProcess since it only makes sense to call this method on a sane process which might not be the case on a SBTarget object. It also addresses some feedbacks received after landing the first patch for the 'crash-info' feature. Differential Revision: https://reviews.llvm.org/D75049 Signed-off-by: Med Ismail Bennani --- lldb/source/Commands/CommandObjectProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 4ee085e..504aec4 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -1283,7 +1283,7 @@ protected: } auto expected_crash_info = - platform_sp->FetchExtendedCrashInformation(process->GetTarget()); + platform_sp->FetchExtendedCrashInformation(*process); if (!expected_crash_info) { result.AppendError(llvm::toString(expected_crash_info.takeError())); -- cgit v1.1