From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17479 invoked by alias); 11 Jan 2002 01:06:17 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17302 invoked from network); 11 Jan 2002 01:06:12 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 11 Jan 2002 01:06:12 -0000 Received: from redhat.com (reddwarf.sfbay.redhat.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id RAA17726; Thu, 10 Jan 2002 17:06:10 -0800 (PST) Message-ID: <3C3E394C.7A1E6BA8@redhat.com> Date: Thu, 10 Jan 2002 17:06:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Cagney CC: gdb-patches@sources.redhat.com Subject: Re: [RFA] Add new cmd line parameter "--pid" for attach. References: <200201050321.g053L6l16505@reddwarf.cygnus.com> <15418.21637.258565.54021@localhost.cygnus.com> <3C3B70ED.D8256B4A@redhat.com> <3C3B95FD.50803@cygnus.com> <15421.63455.895750.313310@localhost.cygnus.com> <3C3E2FBD.3080108@cygnus.com> Content-Type: multipart/mixed; boundary="------------A67DF80BE18B7AF3FD751E62" X-SW-Source: 2002-01/txt/msg00266.txt.bz2 This is a multi-part message in MIME format. --------------A67DF80BE18B7AF3FD751E62 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 472 Andrew Cagney wrote: > > > "To remove a file called `-f' in the current directory, you could type > > either rm -- -f or rm ./-f " > > ``--''? Since when was ``--'' an option to rm? You'll be telling me > UNIX comes with colour LS next .... :-^ > > Yes. The use of ./1234 should be documented. So should (in the NEWS > file) the quiet switch of how vs is decided. How's this? (I suppose next you'll be wanting something on the gcore command... ) --------------A67DF80BE18B7AF3FD751E62 Content-Type: text/plain; charset=us-ascii; name="NEWS.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="NEWS.patch" Content-length: 1197 Index: NEWS =================================================================== RCS file: /cvs/src/src/gdb/NEWS,v retrieving revision 1.49 diff -c -3 -p -r1.49 NEWS *** NEWS 2002/01/06 15:02:00 1.49 --- NEWS 2002/01/11 01:04:44 *************** *** 3,8 **** --- 3,25 ---- *** Changes since GDB 5.1: + * New command line option + + GDB now accepts --pid or -p followed by a process id. + + * Change in command line behavior -- corefiles vs. process ids. + + There is a subtle behavior in the way in which GDB handles + command line arguments. The first non-flag argument is always + a program to debug, but the second non-flag argument may either + be a corefile or a process id. Previously, GDB would attempt to + open the second argument as a corefile, and if that failed, would + issue a superfluous error message and then attempt to attach it as + a process. Now, if the second argument begins with a non-digit, + it will be treated as a corefile. If it begins with a digit, + GDB will attempt to attach it as a process, and if no such process + is found, will then attempt to open it as a corefile. + * New native configurations x86 OpenBSD i[3456]86-*-openbsd* --------------A67DF80BE18B7AF3FD751E62--