From: Michael Snyder <msnyder@redhat.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Add new cmd line parameter "--pid" for attach.
Date: Thu, 10 Jan 2002 17:06:00 -0000 [thread overview]
Message-ID: <3C3E394C.7A1E6BA8@redhat.com> (raw)
In-Reply-To: <3C3E2FBD.3080108@cygnus.com>
[-- Attachment #1: Type: text/plain, Size: 472 bytes --]
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 <pid> vs <core> is decided.
How's this?
(I suppose next you'll be wanting something on the gcore command... <g>)
[-- Attachment #2: NEWS.patch --]
[-- Type: text/plain, Size: 1197 bytes --]
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*
next prev parent reply other threads:[~2002-01-11 1:06 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 19:25 Michael Snyder
2002-01-05 0:59 ` Eli Zaretskii
2002-01-05 13:12 ` Michael Snyder
2002-01-06 0:04 ` Eli Zaretskii
2002-01-06 21:26 ` Michael Snyder
2002-01-07 1:20 ` Eli Zaretskii
2002-01-07 11:07 ` Michael Snyder
2002-01-07 12:28 ` Eli Zaretskii
2002-01-07 13:39 ` Michael Snyder
2002-01-07 16:14 ` Michael Snyder
2002-01-08 0:53 ` Eli Zaretskii
2002-01-08 15:15 ` Michael Snyder
2002-01-07 18:55 ` Elena Zannoni
2002-01-08 15:15 ` Michael Snyder
2002-01-08 16:59 ` Andrew Cagney
2002-01-10 13:09 ` Elena Zannoni
2002-01-10 16:20 ` Andrew Cagney
2002-01-10 16:46 ` Elena Zannoni
2002-01-11 2:19 ` Richard Earnshaw
2002-01-10 17:06 ` Michael Snyder [this message]
2002-01-10 17:28 ` Andrew Cagney
2002-01-10 17:56 ` Frank Ch. Eigler
2002-01-11 12:26 ` Michael Snyder
2002-01-10 23:53 ` Eli Zaretskii
2002-01-10 13:13 ` Elena Zannoni
2002-01-10 14:49 ` Michael Snyder
2002-01-10 15:02 ` Michael Snyder
2002-01-10 23:23 ` Eli Zaretskii
2002-01-11 12:24 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C3E394C.7A1E6BA8@redhat.com \
--to=msnyder@redhat.com \
--cc=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox