llvm-project/lldb/source/Plugins
Pavel Labath acebc43799 Report more precise error message when attach fails
Summary:
If the remote stub sends a specific error message instead of just a E??
code, we can use this to display a more informative error message
instead of just the generic "unable to attach" message.

I write a test for this using the SB API.
On the console this will show up like:
(lldb) process attach ...
error: attach failed: <STUB-MESSAGE>

if the stub supports error messages, or:
error: attach failed: Error ??

if it doesn't.

Reviewers: jingham, JDevlieghere

Subscribers: lldb-commits

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

llvm-svn: 330247
2018-04-18 11:56:21 +00:00
..
ABI [lldb][PPC64] Fixed vector and struct return value 2018-02-16 09:29:41 +00:00
Architecture Re-add change for https://reviews.llvm.org/D42582 with added directories. 2018-03-12 21:17:04 +00:00
Disassembler Check existence of each required component during construction of LLVMCDisassembler. 2018-01-11 12:06:22 +00:00
DynamicLoader Advanced guessing of rendezvous breakpoint (resubmit) 2018-01-11 03:46:35 +00:00
ExpressionParser Use the DWARF linkage name when importing C++ methods. 2018-03-27 19:40:50 +00:00
Instruction [LLDB] Initial version of PPC64 InstEmulation 2018-02-27 18:42:46 +00:00
InstrumentationRuntime Upstreaming a patch from Github: When evaluation user expressions, ignore InstrumentationRuntime breakpoints. (#235) 2017-07-13 04:35:27 +00:00
JITLoader Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Language [DataFormatters] Implement summary for __NSDictionary0. 2018-03-14 23:09:36 +00:00
LanguageRuntime Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
MemoryHistory Rename Error -> Status. 2017-05-12 04:51:55 +00:00
ObjectContainer Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
ObjectFile Re-land: [lldb] Use vFlash commands when writing to target's flash memory regions 2018-03-20 11:56:24 +00:00
OperatingSystem Prevent deadlock in OS Plugins 2018-04-13 10:25:23 +00:00
Platform Change PlatformPosix::DoLoadImage to use a UtilityFunction. 2018-04-17 20:44:47 +00:00
Process Report more precise error message when attach fails 2018-04-18 11:56:21 +00:00
ScriptInterpreter s/LLVM_ON_WIN32/_WIN32/, lldb 2018-04-10 13:33:45 +00:00
StructuredData Move Args::StringTo*** functions to a new OptionArgParser class 2018-04-10 09:03:59 +00:00
SymbolFile Reapply "Cleanup DWARFCompileUnit and DWARFUnit in preparation for adding DWARFTypeUnit". 2018-04-14 11:12:52 +00:00
SymbolVendor We have two sources for path remapping information that we get out 2018-01-12 22:42:45 +00:00
SystemRuntime Move StructuredData from Core to Utility 2017-06-27 10:45:31 +00:00
UnwindAssembly Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
CMakeLists.txt Move StopInfoOverride callback to the new architecture plugin 2017-10-25 21:05:31 +00:00