diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2020-02-24 10:04:16 -0500 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2020-02-24 23:37:04 +0100 |
commit | eefda18227a2faeacbd5420cb482fa8b5836283b (patch) | |
tree | 197807b5585d8eb5682d626657ef6dd8661644e5 /lldb/source/Commands/CommandObjectProcess.cpp | |
parent | 698078257285a044110620d7dab2fb4451a3fa29 (diff) | |
download | llvm-eefda18227a2faeacbd5420cb482fa8b5836283b.zip llvm-eefda18227a2faeacbd5420cb482fa8b5836283b.tar.gz llvm-eefda18227a2faeacbd5420cb482fa8b5836283b.tar.bz2 |
[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 <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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())); |