Message ID | 20241029113343.3945855-1-klaus.gerlicher@intel.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ED980385840A for <patchwork@sourceware.org>; Tue, 29 Oct 2024 11:34:37 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by sourceware.org (Postfix) with ESMTPS id A91833858C98 for <gdb-patches@sourceware.org>; Tue, 29 Oct 2024 11:33:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A91833858C98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A91833858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730201640; cv=none; b=uEm4J7V8n72KdQ3GaSf7fwg5w0NYCyxww+e7o0ZUpIjfEWTQdKGZxZtcTuGXoOVjeWT+0mZx45otIFbpHjVzxMZ7GJ2ImDgXr88qUCEj1syifI3YA0nN6KDfhOBOB8HtIqnLD+0ywpp7dnaE7U4EBA83sYBue/QaZqHTyjpy3ZE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730201640; c=relaxed/simple; bh=c6yTgGHYce9QxDH1d4SUoGKKW/V3PcPAM6ogyxAjqMY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=xtdOdFRk8ToB7In7KGpfMK6Dlwp0TwnYGSYYDChZnwdOgvg/qnQHxhils6rjbfwlQWmE30MkoMU9f3UcFMMMHsXoxfZpxiMHS/Si9u8wsYEE9s0R85Lb8n3K2bSeYC+m6dizhbb12STNaAtgVKZPFvovEeA1W3jMnO0Uu/8yWKo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1730201638; x=1761737638; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=c6yTgGHYce9QxDH1d4SUoGKKW/V3PcPAM6ogyxAjqMY=; b=MfnoWOnAr8HDI+VTq05MGIa/rBP/8IHmYslNjOryKw+ljEFLEecewVo4 AHT1ibzy/zpQFpNAaJFD6vVdbc7h0Xn/CYYw0wvkrZf2bewHvHD6dJI4/ 76OkXwI278vowOax0EBOebMuvJqYmfnvu6/xX9lbhWX7QAQsmKTWlx0+T 5zeZemQeKmkU3f7AlZt4fQ3hRQQKI3glp3041CPzQ7oFGaltw7dJQp3bI wz4nV6Oy1JCyROczVIa7fDap/SvqgAGDWI7U3KNvX6tYNXyDIQe8l7ih0 FvY2oV+3TyP/4+FSNMbqlCZpy7wciDTdFCrHmr6gj20IEbt3XzpH7huYh g==; X-CSE-ConnectionGUID: CyZjRI3aRMWj9xBbpU05dg== X-CSE-MsgGUID: 7wnocSQ5SzWt6681fZjavw== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="47297026" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="47297026" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2024 04:33:57 -0700 X-CSE-ConnectionGUID: XECB9bTeSpedbXN//kky+Q== X-CSE-MsgGUID: LoexE1d9QEyjWSvR60g1Gg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,241,1725346800"; d="scan'208";a="81842399" Received: from dut1513dg2mrb.igk.intel.com (HELO localhost) ([10.102.46.197]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2024 04:33:56 -0700 From: Klaus Gerlicher <klaus.gerlicher@intel.com> To: gdb-patches@sourceware.org, aburgess@redhat.com, blarsen@redhat.com, eliz@gnu.org Subject: [PATCH v7 0/2] gdb: setting BP with multiple locations only displays one location Date: Tue, 29 Oct 2024 11:33:41 +0000 Message-Id: <20241029113343.3945855-1-klaus.gerlicher@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
Series |
gdb: setting BP with multiple locations only displays one location
|
|
Message
Klaus Gerlicher
Oct. 29, 2024, 11:33 a.m. UTC
From: "Gerlicher, Klaus" <klaus.gerlicher@intel.com>
Hi Andrew, Guinevere, all,
Thanks for all of your feedback on V6.
V6 of this series is here:
https://inbox.sourceware.org/gdb-patches/20240930060102.752079-1-klaus.gerlicher@intel.com/
V7 addresses the following suggestions from Andrew:
For the first patch (20240930060102.752079-2-klaus.gerlicher@intel.com):
- harden tests: matching linespec now when possible. This adds a locspec option
where required.
- explain gdb_breakpoint option a bit more (regex).
- remove a stale comment
- use -wrap and some fill pattern and correct some wrong regex in
gdb_test_multiple regexes
- replace [string compare ] with eq/ne comparisons.
For the 2nd patch (20240930060102.752079-3-klaus.gerlicher@intel.com):
- fix NEWS
- move the new setting under breakpoint commands.
- fix some printf format identifiers (%u -> %d)
- fix GNU style issues, I found some more not so obvious ones. Using
clang-format is sometimes not very helpful.
- fix one explicit nullptr comparison
- fix styled_line oversights.
- add some internationalisation
- add wraps where Andrew suggested. I have no idea how to test these...
- output "in inferior" instead of "on inferior"
Thanks
Klaus
Gerlicher, Klaus (2):
gdb: extend gdb_breakpoint for multiple locations
gdb, breakpoint: output multiple bp locations
gdb/NEWS | 4 +
gdb/breakpoint.c | 135 +++++++++++++----
gdb/doc/gdb.texinfo | 45 +++++-
gdb/testsuite/gdb.ada/bp_inlined_func.exp | 4 +-
gdb/testsuite/gdb.ada/homonym.exp | 8 +-
gdb/testsuite/gdb.ada/operator_bp.exp | 18 +--
.../gdb.base/condbreak-multi-context.exp | 22 ++-
gdb/testsuite/gdb.base/ctxobj.exp | 4 +-
gdb/testsuite/gdb.base/dtrace-probe.exp | 4 +-
gdb/testsuite/gdb.base/foll-fork.exp | 7 +-
gdb/testsuite/gdb.base/msym-bp-shl.exp | 4 +-
gdb/testsuite/gdb.base/msym-bp.exp | 2 +-
.../run-control-while-bg-execution.exp | 2 +-
gdb/testsuite/gdb.base/solib-symbol.exp | 4 +-
gdb/testsuite/gdb.base/stap-probe.exp | 8 +-
gdb/testsuite/gdb.base/step-over-exit.exp | 2 +-
gdb/testsuite/gdb.cp/breakpoint-locs.exp | 2 +-
gdb/testsuite/gdb.cp/ena-dis-br-range.exp | 4 +-
gdb/testsuite/gdb.cp/mb-ctor.exp | 8 +-
gdb/testsuite/gdb.cp/mb-inline.exp | 8 +-
gdb/testsuite/gdb.cp/mb-templates.exp | 13 +-
gdb/testsuite/gdb.cp/meth-typedefs.exp | 2 +-
gdb/testsuite/gdb.cp/ovldbreak.exp | 10 +-
gdb/testsuite/gdb.cp/paramless.exp | 4 +-
gdb/testsuite/gdb.cp/templates.exp | 22 +--
gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp | 20 +--
.../gdb.dwarf2/dw2-skip-prologue.exp | 2 +-
gdb/testsuite/gdb.linespec/break-asm-file.exp | 4 +-
gdb/testsuite/gdb.linespec/cpcompletion.exp | 2 +
gdb/testsuite/gdb.linespec/linespec.exp | 22 +--
gdb/testsuite/gdb.linespec/multiple-locs.cc | 41 +++++
gdb/testsuite/gdb.linespec/multiple-locs.exp | 57 +++++++
.../mi-breakpoint-multiple-locations.exp | 4 +-
.../gdb.mi/user-selected-context-sync.exp | 16 +-
.../gdb.multi/bp-thread-specific.exp | 6 +-
.../gdb.multi/inferior-specific-bp.exp | 3 +-
.../gdb.multi/multi-target-continue.exp | 3 +-
.../gdb.multi/multi-target-ping-pong-next.exp | 6 +-
gdb/testsuite/gdb.opt/inline-break.exp | 23 ++-
gdb/testsuite/gdb.python/py-bp-locations.exp | 2 +-
gdb/testsuite/gdb.python/py-breakpoint.exp | 3 +-
gdb/testsuite/lib/completion-support.exp | 3 +
gdb/testsuite/lib/gdb.exp | 143 +++++++++++++++---
43 files changed, 480 insertions(+), 226 deletions(-)
create mode 100644 gdb/testsuite/gdb.linespec/multiple-locs.cc
create mode 100644 gdb/testsuite/gdb.linespec/multiple-locs.exp