From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8345 invoked by alias); 18 Jun 2019 00:06:23 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 8337 invoked by uid 89); 18 Jun 2019 00:06:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.1 spammy=H*Ad:U*bug-gdb, H*r:4.89, H*r:bug-gdb@gnu.org, HTo:U*bug-gdb X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Jun 2019 00:06:21 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hd1dk-0001Iw-B6 for gdb@sourceware.org; Mon, 17 Jun 2019 20:06:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42069) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hd1dj-0006OD-Nr for bug-gdb@gnu.org; Mon, 17 Jun 2019 20:06:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hd1di-0001II-Uf for bug-gdb@gnu.org; Mon, 17 Jun 2019 20:06:19 -0400 Received: from world.peace.net ([64.112.178.59]:54054) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hd1di-0001I0-RY for bug-gdb@gnu.org; Mon, 17 Jun 2019 20:06:18 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hd1dh-0006H8-Lt; Mon, 17 Jun 2019 20:06:17 -0400 From: Mark H Weaver To: bug-gdb@gnu.org Subject: Manual contradicts itself regarding second command line argument User-Agent: Emacs/26.2 (x86_64-pc-linux-gnu) Date: Tue, 18 Jun 2019 00:06:00 -0000 Message-ID: <87imt321yr.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.112.178.59 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-SW-Source: 2019-06/txt/msg00047.txt.bz2 Section 2.1 of "Debugging with GDB" states: 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 section 2.1.1 states: [...] 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. They contradict each other regarding the order of the checks. Mark