[all-commits] [llvm/llvm-project] bb136f: Improve error messaging when debugserver fails to ...
Jason Molenda via All-commits
all-commits at lists.llvm.org
Wed Jul 12 15:02:08 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bb136f5b393c7c7fe821242d2734bbc5c7287560
https://github.com/llvm/llvm-project/commit/bb136f5b393c7c7fe821242d2734bbc5c7287560
Author: Jason Molenda <jason at molenda.com>
Date: 2023-07-12 (Wed, 12 Jul 2023)
Changed paths:
M lldb/tools/debugserver/source/DNB.cpp
M lldb/tools/debugserver/source/DNB.h
M lldb/tools/debugserver/source/MacOSX/MachProcess.h
M lldb/tools/debugserver/source/MacOSX/MachProcess.mm
M lldb/tools/debugserver/source/RNBRemote.cpp
Log Message:
-----------
Improve error messaging when debugserver fails to complete attaching
When debugserver is attaching to a process, it first task_for_pid()'s
and then ptrace(PT_ATTACHEXC)'s. When that ptrace() fails to complete,
we are in a semi-attached state that we need to give up from, and
our error reporting isn't ideal -- we can even claim that the process
is already being debugged (by ourselves).
Differential Revision: https://reviews.llvm.org/D155037
rdar://101152233
More information about the All-commits
mailing list