https://llvm.org/bugs/show_bug.cgi?id=23612

            Bug ID: 23612
           Summary: LLDB fails to detect attaching twice to the same
                    process
           Product: lldb
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev@cs.uiuc.edu
          Reporter: ravithejaw...@gmail.com
    Classification: Unclassified

While debugging with LLDB, if we try to attach to a process that is already
attached to the debugger, it does not detect that the user is trying to attach
twice to the same process. While this situation is detected in GDB which issues
a warning but LLDB kills the running process and when tries to reattach, it
fails since the process being requested is the same that it killed.

Steps to reproduce
1) Start debugging session with LLDB
2) Put breakpoint anywhere in the beggining
3) Run command "process attach <pid>" where pid is the launched process
4) There is a running process, kill it and attach?: [Y/n] Y
Process 21193 exited with status = 9 (0x00000009) 
error: Invalid arguments for 'process attach'.
Usage: process attach <cmd-options>

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to