llvm-project/lldb/source
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
..
API Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
Breakpoint Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
Commands Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
Core Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
DataFormatters Use exact equality for category language matching, for all languages, except those specifically mentioned. 2017-06-06 20:40:24 +00:00
Expression Move the codebase to use: DWARFCompileUnit -> DWARFUnit 2018-03-18 20:11:02 +00:00
Host Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
Initialization Don't use llvm::EnablePrettyStackTrace on macOS. 2017-12-02 00:11:18 +00:00
Interpreter Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
Plugins Report more precise error message when attach fails 2018-04-18 11:56:21 +00:00
Symbol Support template template parameters 2018-04-02 16:18:32 +00:00
Target Change PlatformPosix::DoLoadImage to use a UtilityFunction. 2018-04-17 20:44:47 +00:00
Utility Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp Run clang-format on lldb.cpp 2017-11-02 16:56:52 +00:00