From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id c8tRKExmvmCsRwAAWB0awg (envelope-from ) for ; Mon, 07 Jun 2021 14:32:44 -0400 Received: by simark.ca (Postfix, from userid 112) id 9690A1F163; Mon, 7 Jun 2021 14:32:44 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C9A7E1E813 for ; Mon, 7 Jun 2021 14:32:43 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E54823896802 for ; Mon, 7 Jun 2021 18:32:42 +0000 (GMT) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 3718E3844019 for ; Mon, 7 Jun 2021 18:32:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3718E3844019 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wm1-x331.google.com with SMTP id l9so275571wms.1 for ; Mon, 07 Jun 2021 11:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TVLXI+JTkFZPneBqqYs4peOpnHWsp5aE2Nr6VmeJv4g=; b=FYeg2j+aw04HF1ynoASB9gmJOkkJ+iTGPSJPGiYy9KoBVmoRw2RaRZym4K8/5QOfRf vk68syNrgiQvhkymjxRr6Ww03unPmbbSnmCWKcPBepAfJ8IOR7b8SpkFlPmb2Bpn0nCB A4cXnycoHUTTtr/LYb37aqwF23ynBh5i+X+qLvN5cg9wJ4w25QbLyn8Qrqz1TuLT8xrZ 9OaY5XDGoA6pnoqSMRHSt2CBhvppMHwj4i+Us/7ENirdArn6r0BdtP/6yECM6zIaPC2D k+OoymdEQ4ECsZESa6STNyzqoJ+VncazHx6snsuay4XNj85JjjrZpHLJscYq1ju+eZg7 T6+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TVLXI+JTkFZPneBqqYs4peOpnHWsp5aE2Nr6VmeJv4g=; b=CgMlqEDe8UTSNewQQXvlOslKyo/vE9UWMmKwHermqLCbhIMH3YQ7jaJvgfgv3NYoIf 8bE+ACENRovrHYZ3VZuH2CxMIiqSHP/OkbAmAq3NAKwZ4I9+EBq1PJvuIzWg6cWDVwTp Su4LtpCsv4m6ayLvyNRCpFjXULou7pRxDeQ3iHcpEwxJzyk0CKQPNS6CwOl4nBLRCb9D 83jn799BJY5pg85Ybx3xno+K0R5EkVF64EIvYl7NMfu1SWIIuPErFC5+M25mBX0tXhel 1q+hZJ6iUmBzvVwTuhGcT0immPc/mqi0RchzMMU3GgRayt4yqJPVy+saQR/aGkbZFXYi okKA== X-Gm-Message-State: AOAM531SurAYyJfnwXVgwpYjnjKngIVEmZE2tPP0N9qgHHcLG0xG5OCv bYO77xQdAztt89X4ZnQUhKjPr4NeNN+tjA== X-Google-Smtp-Source: ABdhPJzeX0GG2BUbsDetGCiPGvdTa0hItmFk17s/iQ/1UvFUUciVc94s9dSe9n6gfLDkUl7qT79oPw== X-Received: by 2002:a05:600c:4f87:: with SMTP id n7mr5308573wmq.9.1623090750107; Mon, 07 Jun 2021 11:32:30 -0700 (PDT) Received: from localhost (host109-151-46-70.range109-151.btcentralplus.com. [109.151.46.70]) by smtp.gmail.com with ESMTPSA id m132sm15666647wmf.10.2021.06.07.11.32.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 11:32:29 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCHv3 0/5] "info sources" - group by objfile Date: Mon, 7 Jun 2021 19:32:22 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" In V3: - 'info sources' now indicates when an objfile has no debug information at all, this is a slight change of code, and an update to the commit message in patch #5. - the MI output is updated to include the same information, there are code changes, an update of the commit message, and changes to the documentation in patch #4. - all the other patches are unchanged. Thanks, Andrew --- Andrew Burgess (5): gdb: add new function quick_symbol_functions::has_unexpanded_symbols gdb: make struct output_source_filename_data more C++ like gdb/mi: add regexp filtering to -file-list-exec-source-files gdb/mi: add new --group-by-objfile flag for -file-list-exec-source-files gdb: change info sources to group results by objfile gdb/ChangeLog | 111 ++++++ gdb/NEWS | 31 ++ gdb/doc/ChangeLog | 15 + gdb/doc/gdb.texinfo | 176 +++++++-- gdb/dwarf2/read.c | 22 ++ gdb/mi/mi-cmd-file.c | 92 +++-- gdb/objfiles.h | 6 + gdb/psympriv.h | 2 + gdb/psymtab.c | 18 + gdb/quick-symbol.h | 6 + gdb/symfile-debug.c | 25 ++ gdb/symtab.c | 364 ++++++++++++------ gdb/symtab.h | 59 +++ gdb/testsuite/ChangeLog | 19 + .../gdb.base/info_sources_2-header.h | 28 ++ gdb/testsuite/gdb.base/info_sources_2-lib.c | 25 ++ gdb/testsuite/gdb.base/info_sources_2-test.c | 26 ++ gdb/testsuite/gdb.base/info_sources_2.exp | 169 ++++++++ gdb/testsuite/gdb.dwarf2/dw2-filename.exp | 2 +- gdb/testsuite/gdb.mi/mi-file.exp | 2 +- gdb/testsuite/gdb.mi/mi-info-sources-base.c | 23 ++ gdb/testsuite/gdb.mi/mi-info-sources.c | 25 ++ gdb/testsuite/gdb.mi/mi-info-sources.exp | 184 +++++++++ 23 files changed, 1239 insertions(+), 191 deletions(-) create mode 100644 gdb/testsuite/gdb.base/info_sources_2-header.h create mode 100644 gdb/testsuite/gdb.base/info_sources_2-lib.c create mode 100644 gdb/testsuite/gdb.base/info_sources_2-test.c create mode 100644 gdb/testsuite/gdb.base/info_sources_2.exp create mode 100644 gdb/testsuite/gdb.mi/mi-info-sources-base.c create mode 100644 gdb/testsuite/gdb.mi/mi-info-sources.c create mode 100644 gdb/testsuite/gdb.mi/mi-info-sources.exp -- 2.25.4