Re: [RFA] Add new cmd line parameter "--pid" for attach.

Michael Snyder
2002-01-05T21:12:37Z

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

Eli Zaretskii wrote:
>
> > Date: Fri, 4 Jan 2002 19:21:06 -0800
> > From: Michael Snyder <msnyder@cygnus.com>
> >
> > --command=FILE Execute GDB commands from FILE.\n\
> > --core=COREFILE Analyze the core dump COREFILE.\n\
> > + --pid=PID Attach to running process PID.\n\
> > ", stream);
>
> The new command-line option should be described in gdb.texinfo as
> well.

Sure. How's this?

[-- Attachment #2: pid.patch --]
[-- Type: text/plain, Size: 1033 bytes --]

2002-01-05 Michael Snyder <msnyder@redhat.com>

* gdb.texinfo (--pid): Document new command line option (attach).

Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.62
diff -p -r1.62 gdb.texinfo
*** gdb.texinfo 2001/12/30 03:52:20 1.62
--- gdb.texinfo 2002/01/05 21:10:15
*************** Connect to process ID @var{number}, as w
*** 851,856 ****
--- 851,867 ----
(unless there is a file in core-dump format named @var{number}, in which
case @samp{-c} specifies that file as a core dump to read).

+ @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}.
+
@item -command @var{file}
@itemx -x @var{file}
@cindex @code{--command}