Manual contradicts itself regarding second command line argument

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Manual contradicts itself regarding second command line argument

Mark H Weaver
Section 2.1 of "Debugging with GDB" states:

       gdb PROGRAM 1234

  would attach GDB to process '1234' (unless you also have a file named
  '1234'; GDB does check for a core file first).

and section 2.1.1 states:

  [...] If the second argument begins with a decimal digit, GDB will
  first attempt to attach to it as a process, and if that fails, attempt
  to open it as a corefile.

They contradict each other regarding the order of the checks.

       Mark
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] doc: fix false claim about second argument to gdb (was: Manual contradicts itself regarding second command line argument)

Eli Zaretskii
> From: Simon Marchi <[hidden email]>
> Date: Tue, 18 Jun 2019 10:51:03 -0400
>
> -You can, instead, specify a process ID as a second argument, if you want
> -to debug a running process:
> +You can, instead, specify a process ID as a second argument or using option
> +@code{-p}, if you want to debug a running process:

"specify ... or using ..." is incorrect English.  I guess you meant
"use"?

No other comments, thanks.  (I didn't look at the code to see if the
description is factually correct.)