From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29835 invoked by alias); 14 Apr 2012 02:37:43 -0000 Received: (qmail 29784 invoked by uid 22791); 14 Apr 2012 02:37:43 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Apr 2012 02:37:29 +0000 From: "wiml at hhhh dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/13981] New: Documentation is contradictory about treatment of second (pid/corefile) arg Date: Sat, 14 Apr 2012 02:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: wiml at hhhh dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00023.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13981 Bug #: 13981 Summary: Documentation is contradictory about treatment of second (pid/corefile) arg Product: gdb Version: 7.4 Status: NEW Severity: minor Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: wiml@hhhh.org Classification: Unclassified This is kind of trivial, but: the GDB documentation (eg as found at http://sourceware.org/gdb/onlinedocs/gdb/index.html) states both: # gdb program 1234 would attach gdb to process 1234 (unless you also have a file named 1234; gdb does check for a core file first). and, a few pages later, # If the second argument begins with a decimal digit, gdb will first attempt to attach to it as a process, and if that fails, attempt to open it as a corefile. If you have a corefile whose name begins with a digit, you can prevent gdb from treating it as a pid by prefixing it with ./, e.g. ./12345. Presumably these can't both be true. (The version I'm reading from states its version as 7.4.0.20120413.) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.