llvm-project/lldb/include/lldb
Leonard Mosescu e1bb51789d Add a new SBTarget::LoadCore() overload which surfaces errors if the load fails
There was no way to find out what's wrong if SBProcess SBTarget::LoadCore(const char *core_file) failed. 
Additionally, the implementation was unconditionally setting sb_process, so it wasn't even possible to check if the return SBProcess is valid.

This change adds a new overload which surfaces the errors and also returns a valid SBProcess only if the core load succeeds:

SBProcess SBTarget::LoadCore(const char *core_file, SBError &error);

Differential Revision: https://reviews.llvm.org/D48049

llvm-svn: 334439
2018-06-11 21:19:26 +00:00
..
API Add a new SBTarget::LoadCore() overload which surfaces errors if the load fails 2018-06-11 21:19:26 +00:00
Breakpoint Typo fixes. 2018-05-29 09:10:46 +00:00
Core Added missing include to LoadedModuleInfoList.h 2018-06-08 02:00:27 +00:00
DataFormatters Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
Expression Enable AUTOBRIEF in doxygen configuration. 2018-05-02 16:55:16 +00:00
Host Editline: make #include <codecvt> conditional 2018-06-11 09:32:58 +00:00
Initialization *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Interpreter Enable AUTOBRIEF in doxygen configuration. 2018-05-02 16:55:16 +00:00
Symbol [DWARF] Add (empty) DebugNamesDWARFIndex class and a setting to control its use 2018-06-06 11:35:23 +00:00
Target Typo fixes. 2018-05-29 09:10:46 +00:00
Utility [FileSpec] Re-implmenet removeLastPathComponent 2018-05-30 13:03:16 +00:00
lldb-defines.h Actually use = delete to mark constructors and operators we want to not exist. Just declaring them as private works, but it can confuse certain tools as it doesn't actually declare intent, and the C++11 way is more expressive anyway, so this is pure win 2016-10-26 18:12:52 +00:00
lldb-enumerations.h [lldb, process] Fix occasional hang when launching a process in LLDB 2018-06-01 19:14:53 +00:00
lldb-forward.h General cleanup to minimize the .debug_types patch 2018-05-09 16:42:53 +00:00
lldb-private-defines.h Enable AUTOBRIEF in doxygen configuration. 2018-05-02 16:55:16 +00:00
lldb-private-enumerations.h Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
lldb-private-forward.h Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
lldb-private-interfaces.h Change the ABI class to have a weak pointer to its Process; 2017-06-29 02:57:03 +00:00
lldb-private-types.h Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
lldb-private.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldb-public.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
lldb-types.h Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
lldb-versioning.h Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00