public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Document how GDB searches for files when using -s, -e, and -se options
@ 2022-06-21 16:47 Kevin Buettner
  0 siblings, 0 replies; only message in thread
From: Kevin Buettner @ 2022-06-21 16:47 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bfda149dc1b0376f8cb4c423790246794c7ee873

commit bfda149dc1b0376f8cb4c423790246794c7ee873
Author: Kevin Buettner <kevinb@redhat.com>
Date:   Thu Jun 2 15:26:38 2022 -0700

    Document how GDB searches for files when using -s, -e, and -se options
    
    GDB's documentation of the 'file' command says:
    
        If you do not specify a directory and the file is not found in the
        GDB working directory, GDB uses the environment variable PATH as a
        list of directories to search, just as the shell does when looking
        for a program to run.
    
    The same is true for files specified via commandline options -s, -e,
    and -se.
    
    This commit adds a cross reference to the file command for these options.

Diff:
---
 gdb/doc/gdb.texinfo | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index b3e995f166b..38ae249f62d 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -962,6 +962,11 @@ If @value{GDBN} has not been configured to included core file support,
 such as for most embedded targets, then it will complain about a second
 argument and ignore it.
 
+For the @samp{-s}, @samp{-e}, and @samp{-se} options, and their long
+form equivalents, the method used to search the file system for the
+symbol and/or executable file is the same as that used by the
+@code{file} command.  @xref{Files, ,file}.
+
 Many options have both long and short forms; both are shown in the
 following list.  @value{GDBN} also recognizes the long forms if you truncate
 them, so long as enough of the option is present to be unambiguous.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-21 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-21 16:47 [binutils-gdb] Document how GDB searches for files when using -s, -e, and -se options Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).