[Bug 33748] New: Poor error for attaching to nonexistent PID

Bug ID 33748
Summary Poor error for attaching to nonexistent PID
Product lldb
Version unspecified
Hardware Macintosh
OS MacOS X
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter jordan_rose@apple.com
CC llvm-bugs@lists.llvm.org

(lldb) process attach --pid 99999
error: attach failed: unable to attach

We can do better than this if we know the process doesn't exist vs. if it does
exist and LLDB couldn't attach to it for another reason. In my case it was a
typo rather than an obviously bogus PID, so a more descriptive message would
have helped.