[all-commits] [llvm/llvm-project] 71548d: Improve error msg in DNBProcessAttach if we can't ...
Jason Molenda via All-commits
all-commits at lists.llvm.org
Wed Jul 12 16:04:14 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 71548de4d885b74e7291db55e8705417ffd49c95
https://github.com/llvm/llvm-project/commit/71548de4d885b74e7291db55e8705417ffd49c95
Author: Jason Molenda <jason at molenda.com>
Date: 2023-07-12 (Wed, 12 Jul 2023)
Changed paths:
M lldb/tools/debugserver/source/DNB.cpp
Log Message:
-----------
Improve error msg in DNBProcessAttach if we can't stop inferior
When we attach to a process, we task_for_pid(), ptrace(), and then
we try to halt execution of the process and time out after thirty
seconds if we cannot interrupt it. At this point, we must assume
we have no control of the inferior process and the attach has failed.
The error message we return currently is "operation timed out"; this
change improves on that error message to make it more clear what is
going on. Thanks to Jim for pointing this out.
rdar://101152233
More information about the All-commits
mailing list