Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Manual contradicts itself regarding second command line argument
@ 2019-06-18  0:06 Mark H Weaver
  2019-06-18 14:51 ` [PATCH] doc: fix false claim about second argument to gdb (was: Manual contradicts itself regarding second command line argument) Simon Marchi
  0 siblings, 1 reply; 4+ messages in thread
From: Mark H Weaver @ 2019-06-18  0:06 UTC (permalink / raw)
  To: bug-gdb

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-06-18 16:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-18  0:06 Manual contradicts itself regarding second command line argument Mark H Weaver
2019-06-18 14:51 ` [PATCH] doc: fix false claim about second argument to gdb (was: Manual contradicts itself regarding second command line argument) Simon Marchi
2019-06-18 16:14   ` Eli Zaretskii
2019-06-18 16:40     ` [PATCH] doc: fix false claim about second argument to gdb Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox