From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11890 invoked by alias); 5 Jan 2008 17:26:37 -0000 Received: (qmail 11877 invoked by uid 22791); 5 Jan 2008 17:26:36 -0000 X-Spam-Check-By: sourceware.org Received: from mu-out-0910.google.com (HELO mu-out-0910.google.com) (209.85.134.186) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 05 Jan 2008 17:26:17 +0000 Received: by mu-out-0910.google.com with SMTP id g7so4801384muf.0 for ; Sat, 05 Jan 2008 09:26:14 -0800 (PST) Received: by 10.78.159.7 with SMTP id h7mr21140766hue.17.1199553972832; Sat, 05 Jan 2008 09:26:12 -0800 (PST) Received: from ?88.210.73.245? ( [88.210.73.245]) by mx.google.com with ESMTPS id i4sm3149561nfh.36.2008.01.05.09.26.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 05 Jan 2008 09:26:10 -0800 (PST) Message-ID: <477FBD8C.8020907@portugalmail.pt> Date: Sat, 05 Jan 2008 17:26:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.13pre) Gecko/20071023 Thunderbird/1.5.0.14pre Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Eli Zaretskii CC: gdb-patches@sourceware.org Subject: Re: --pid and --core References: <477D122A.4060405@codesourcery.com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------090609000009000902030400" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00086.txt.bz2 This is a multi-part message in MIME format. --------------090609000009000902030400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 409 Eli Zaretskii wrote: >> Thanks, but please make the appropriate changes in the manual as >> well. It currently says: >> >> `-pid NUMBER' >> `-p NUMBER' >> Connect to process ID NUMBER, as with the `attach' command. If >> there is no such process, GDB will attempt to open a core file >> named NUMBER. > > In addition, this change also warrants a NEWS entry. > Like so ? -- Pedro Alves --------------090609000009000902030400 Content-Type: text/x-diff; name="pid_core_doc.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pid_core_doc.diff" Content-length: 1789 2008-01-05 Pedro Alves gdb/ * NEWS: Mention --pid and --core command line behaviour changes. 2008-01-05 Pedro Alves gdb/doc/ * gdb.texinfo (File Options): Remove mention of the attempt to open a core file with the -p option. Don't list -c as a valid option to attach to a process. --- gdb/NEWS | 7 +++++++ gdb/doc/gdb.texinfo | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) Index: src/gdb/NEWS =================================================================== --- src.orig/gdb/NEWS 2008-01-05 17:22:19.000000000 +0000 +++ src/gdb/NEWS 2008-01-05 17:24:16.000000000 +0000 @@ -3,6 +3,13 @@ *** Changes since GDB 6.7 +* Change in command line behavior -- corefiles vs. process ids. + + When the '-p NUMBER' or '--pid NUMBER' options are used, and + attaching to process NUMBER fails, GDB no longer attempts to open a + core file named NUMBER. Attaching to a program using the -c option + is no longer supported. Instead, use the '-p' or '--pid' options. + * New commands set print frame-arguments (all|scalars|none) Index: src/gdb/doc/gdb.texinfo =================================================================== --- src.orig/gdb/doc/gdb.texinfo 2008-01-05 17:22:19.000000000 +0000 +++ src/gdb/doc/gdb.texinfo 2008-01-05 17:23:56.000000000 +0000 @@ -942,14 +942,11 @@ file. @cindex @code{-c} Use file @var{file} as a core dump to examine. -@item -c @var{number} @item -pid @var{number} @itemx -p @var{number} @cindex @code{--pid} @cindex @code{-p} Connect to process ID @var{number}, as with the @code{attach} command. -If there is no such process, @value{GDBN} will attempt to open a core -file named @var{number}. @item -command @var{file} @itemx -x @var{file} --------------090609000009000902030400--