This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Add new cmd line parameter "--pid" for attach.
- From: Michael Snyder <msnyder at redhat dot com>
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 07 Jan 2002 11:02:50 -0800
- Subject: Re: [RFA] Add new cmd line parameter "--pid" for attach.
- Organization: Red Hat, Inc.
- References: <Pine.SUN.3.91.1020107111652.9979A-100000@is>
Eli Zaretskii wrote:
>
> On Sun, 6 Jan 2002, Michael Snyder wrote:
>
> > Eli Zaretskii wrote:
> > >
> > > > Date: Sat, 05 Jan 2002 13:07:42 -0800
> > > > From: Michael Snyder <msnyder@redhat.com>
> > > >
> > > > + @item -pid @ver{number}
> > > > + @itemx -p @var{number}
> > > > + @cindex @code{--pid}
> > > > + @cindex @code{-p}
> > > > + Use @var{number} as a process ID to attach to.
> > > > +
> > > > + @item -p @var{number}
> > > > + 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}.
> > >
> > > This seems to describe the new option twice. You probably meant to
> > > merge the two description parts, and eliminate the second "@item -p".
> >
> > Actually, I just copied what was there already for the --core option.
>
> I'm not sure what you mean. I looked in gdb.texinfo, and all I see for
> "--core" there is this:
>
> @item -core @var{file}
> @itemx -c @var{file}
> @cindex @code{--core}
> @cindex @code{-c}
> Use file @var{file} as a core dump to examine.
>
> This doesn't describe --core twice, and doesn't use @item -c twice.
Look at the next lines after that.