This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Eli Zaretskii wrote:
> 
> > Date: Mon, 07 Jan 2002 11:02:50 -0800
> > From: Michael Snyder <msnyder@redhat.com>
> > >
> > >    @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.
> 
> You mean, this?
> 
>     @item -c @var{number}
>     Connect to process ID @var{number}, as with the @code{attach} command
> 
> If so, it's not entirely the same: the first -c says "-c FILE", the
> second says "-c NUMBER".  In your case, both say "-p NUMBER", so I
> think it's confusing to have both of them.

OK, how's this?
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.68
diff -p -r1.68 gdb.texinfo
*** gdb.texinfo	2002/01/07 09:28:43	1.68
--- gdb.texinfo	2002/01/08 00:12:51
*************** file.
*** 937,945 ****
  Use file @var{file} as a core dump to examine.
  
  @item -c @var{number}
! Connect to process ID @var{number}, as with the @code{attach} command
! (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 -command @var{file}
  @itemx -x @var{file}
--- 937,949 ----
  Use file @var{file} as a core dump to examine.
  
  @item -c @var{number}
! @item -pid @ver{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}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]