llvm-project/lldb
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
..
cmake [cmake] Fix standalone+LLVM_LINK_LLVM_DYLIB builds (pr36687) 2018-03-14 10:08:21 +00:00
docs Fix error in QEnableErrorStrings gdb-remote docs 2018-04-05 15:17:43 +00:00
examples Added a BSD archive tool. 2018-04-02 17:20:21 +00:00
include/lldb Change PlatformPosix::DoLoadImage to use a UtilityFunction. 2018-04-17 20:44:47 +00:00
lit Fix compilation error caused by tgmath.h. 2018-04-09 17:32:56 +00:00
lldb.xcodeproj Fix the xcode project for the Args -> Utility move. 2018-04-17 20:35:00 +00:00
lldb.xcworkspace Fix a typo in the gtest build target for Debug configuration. 2018-04-10 17:49:56 +00:00
packages/Python/lldbsuite Report more precise error message when attach fails 2018-04-18 11:56:21 +00:00
resources
scripts [Commands] Expose statistics through the SBAPI. 2018-04-16 22:55:34 +00:00
source Report more precise error message when attach fails 2018-04-18 11:56:21 +00:00
test [dotest] Use in-tree dsymutil on Darwin 2018-04-12 09:25:32 +00:00
third_party/Python/module *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
tools Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
unittests Move Args.cpp from Interpreter to Utility 2018-04-17 18:53:35 +00:00
utils *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
www [docs] Add LLDB_TEST_USE_CUSTOM_C_COMPILER and LLDB_TEST_USE_CUSTOM_CXX_COMPILER to the build and test hmtl pages 2018-04-12 23:29:49 +00:00
.arcconfig Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
.clang-format Updated .clang-format rules so bring LLDB in line with LLVM standards. 2016-09-06 17:19:00 +00:00
.gitignore [dotest] Remove crashinfo hook 2018-01-10 10:18:47 +00:00
CMakeLists.txt [lit] Update how clang and other binaries are found in per-configuration directories 2018-02-21 00:05:51 +00:00
CODE_OWNERS.txt Remove Sean Callanan from the CODE_OWNERS, he won't have time 2017-11-01 01:38:42 +00:00
INSTALL.txt Changed builld-llvm.py to use .json files 2017-02-23 02:21:34 +00:00
LICENSE.TXT
use_lldb_suite_root.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00