From: Philippe Waroquiers <philippe.waroquiers@skynet.be>
To: gdb-patches@sourceware.org
Cc: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Subject: [RFA 3/3] NEWS and documentation for new info sources [-d | -b] [--] [REGEXP] args
Date: Sun, 31 Mar 2019 19:08:00 -0000 [thread overview]
Message-ID: <20190331190803.7248-4-philippe.waroquiers@skynet.be> (raw)
In-Reply-To: <20190331190803.7248-1-philippe.waroquiers@skynet.be>
gdb/ChangeLog
2019-03-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* NEWS: Mention changes to info sources.
gdb/doc/ChangeLog
2019-03-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* gdb.texinfo (info sources): Document new args.
---
gdb/NEWS | 8 ++++++++
gdb/doc/gdb.texinfo | 9 +++++++++
2 files changed, 17 insertions(+)
diff --git a/gdb/NEWS b/gdb/NEWS
index 4bfa15becf..04b2b45909 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -16,6 +16,14 @@
* Support for Pointer Authentication on AArch64 Linux.
+* Changed commands
+
+info sources [-d | -b] [--] [REGEXP]
+ This command has now optional arguments to only print the files
+ whose names match REGEXP. The arguments -d and -b allow to
+ restrict matching respectively to the dirname and basename
+ parts of the files.
+
*** Changes in GDB 8.3
* GDB and GDBserver now support access to additional registers on
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index bb958cf25d..66068816cd 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -17985,6 +17985,15 @@ Print the names of all source files in your program for which there is
debugging information, organized into two lists: files whose symbols
have already been read, and files whose symbols will be read when needed.
+@item info sources [-d | -b] [--] [@var{regexp}]
+Like @samp{info sources}, but only print the names of the files
+matching the provided regexp.
+By default, the regexp is used to match anywhere in the filename.
+If -d, only files having a dirname matching regexp are shown.
+If -b, only files having a basename matching regexp are shown.
+The matching is case-sensitive, except on operating systems that
+have case-insensitive filesystem (e.g., MS-Windows).
+
@kindex info functions
@item info functions [-q]
Print the names and data types of all defined functions.
--
2.20.1
next prev parent reply other threads:[~2019-03-31 19:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-31 19:08 [RFA 0/3] new arguments [-d | -b] [--] [REGEXP] to info sources Philippe Waroquiers
2019-03-31 19:08 ` Philippe Waroquiers [this message]
2019-03-31 19:16 ` [RFA 3/3] NEWS and documentation for new info sources [-d | -b] [--] [REGEXP] args Eli Zaretskii
2019-03-31 19:08 ` [RFA 2/3] New test for 'info sources [-d | -b] [--] [REGEXP]' Philippe Waroquiers
2019-06-07 18:11 ` Tom Tromey
2019-03-31 19:08 ` [RFA 1/3] Implement info sources args [-d | -b] [--] [REGEXP] Philippe Waroquiers
2019-06-07 18:09 ` Tom Tromey
2019-04-18 4:18 ` PING Re: [RFA 0/3] new arguments [-d | -b] [--] [REGEXP] to info sources Philippe Waroquiers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190331190803.7248-4-philippe.waroquiers@skynet.be \
--to=philippe.waroquiers@skynet.be \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox