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 gdb/16031] New: RFC: gdb: skip unnecessary check


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

            Bug ID: 16031
           Summary: RFC: gdb: skip unnecessary check
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: toralf.foerster at gmx dot de

GDB tried to attach to the process and failed. It then tried to treat the
identifier as a program in the current working directory. Arguably, it should
skip that latter check if the former found a valid process but still failed to
attach. 

$ sudo gdb /home/tfoerste/devel/linux/linux 15576 -n -batch -ex bt
warning: process 15576 is already traced by process 971
ptrace: Operation not permitted.
/home/tfoerste/15576: No such file or directory.
No stack. 

details: https://forums.gentoo.org/viewtopic-t-972012-highlight-.html

-- 
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]