From patchwork Sun Mar 31 19:08:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Waroquiers X-Patchwork-Id: 32108 Received: (qmail 82827 invoked by alias); 31 Mar 2019 19:08:19 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 82643 invoked by uid 89); 31 Mar 2019 19:08:17 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS, URIBL_BLOCKED autolearn=ham version=3.3.1 spammy=organized, @samp, samp, HContent-Transfer-Encoding:8bit X-HELO: mailsec112.isp.belgacom.be Received: from mailsec112.isp.belgacom.be (HELO mailsec112.isp.belgacom.be) (195.238.20.108) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 31 Mar 2019 19:08:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1554059296; x=1585595296; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SMN16jglH1EpTTEaByjWtEaPeCB/M5eGAkDAOI5yD8s=; b=GULEOZQ1MVaZsIE5EW4K5dkiOBiJ/YP5Lk422xUFMS3IH/s2fuDR3lDn zA5l2AXUkxENvh5AThcckhI74wn3lg==; Received: from 212.135-131-109.adsl-dyn.isp.belgacom.be (HELO md.home) ([109.131.135.212]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 31 Mar 2019 21:08:09 +0200 From: Philippe Waroquiers To: gdb-patches@sourceware.org Cc: Philippe Waroquiers Subject: [RFA 3/3] NEWS and documentation for new info sources [-d | -b] [--] [REGEXP] args Date: Sun, 31 Mar 2019 21:08:03 +0200 Message-Id: <20190331190803.7248-4-philippe.waroquiers@skynet.be> In-Reply-To: <20190331190803.7248-1-philippe.waroquiers@skynet.be> References: <20190331190803.7248-1-philippe.waroquiers@skynet.be> MIME-Version: 1.0 X-IsSubscribed: yes gdb/ChangeLog 2019-03-31 Philippe Waroquiers * NEWS: Mention changes to info sources. gdb/doc/ChangeLog 2019-03-31 Philippe Waroquiers * 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.