This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug cli/21681] New: Provide a way for GDB to conveniently attach to processes by name


https://sourceware.org/bugzilla/show_bug.cgi?id=21681

            Bug ID: 21681
           Summary: Provide a way for GDB to conveniently attach to
                    processes by name
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: simon.marchi at ericsson dot com
  Target Milestone: ---

lldb allows you to attach to processes by name if there's no ambiguity, I think
that's quite convenient.  If there is some ambiguity, it shows you something
like this:

(lldb) attach gdb
error: attach failed: more than one process named gdb:
PID    PARENT USER       TRIPLE                   ARGUMENTS
====== ====== ========== ======================== ============================
43851  43820  simark     x86_64-apple-macosx      ./gdb
43784  43572  simark     x86_64-apple-macosx      ./gdb
--data-directory=data-directory /Users/simark/test

You can do "attach <name>" on the command line, or you can do "lldb -n <name>"
from the shell.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]