From patchwork Mon Sep 30 06:01:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Gerlicher X-Patchwork-Id: 57487 Return-Path: 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 212BD3860764 for ; Mon, 30 Sep 2024 06:01:50 +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.14]) by sourceware.org (Postfix) with ESMTPS id 2B96E3858C41 for ; Mon, 30 Sep 2024 06:01:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B96E3858C41 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 2B96E3858C41 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.14 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727676077; cv=none; b=lf3wTzFluL73GwhRi2ioGd27i0q9Mvx53GVOlH3MuwKJbDbQf/rwfrVMGMW3w0M0Orf7ePxwzD/VRGPKVKPDe+CQ0Dx6vtikrMrfnTxY4MwHqTuqv0MQwe4aEKK/TZwYgJc/QwLhTdQQAYEtjDcFqk1C4DdfZJuVCSR6YFyE1lY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727676077; c=relaxed/simple; bh=XSAXR+9PnH8570sY6aIEHWHx9UXOVd5upRY1Y7JDF4w=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=YM4bFxhtLkBhWME9DNRC+4VNZAgSPL8ZWtoJcwco0kCulEKZLcc3EDBpawmo/8tm7BE+SSumR44vFZso0LMtenuvOQpvUNkp8AnYexmMxb4BvVK7Hdqv0qKgFS1SByZ9i0w86MNiPxz9omgoVpmfYbcOCyM43kppAcaUUVQQBhQ= 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=1727676075; x=1759212075; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=XSAXR+9PnH8570sY6aIEHWHx9UXOVd5upRY1Y7JDF4w=; b=SkpknF2YKKFq5YBeghz0T3fbqptubVToUICYZBWHth2vTLDClZk5e0Sa mmFF6TIh9UuPnPD4aRU4543TAY+E8PpRSMTKHF03Hns9Sn7zt0p+GWkNG 07M7C0Ac6392Zk2LPeYMvwRDanNPRKZ31mLrdav8ShqIQgf3LarM1iJ4x e9h79QqjHEzdUCi9Ms6w0u7eTGZpSVQ2EuQsFvfUlTx862noyXBytZ9qa JaRpSwLGrGTtXO6WOVdwLNceFkkAFp2zpR6LXTuYli0+SKIfUhZnK6lhF mLYG/TiAIpMV4Hy/a3nB0FkQrDSSQc6dHHj+xNZPGLgjRWDJJjpAc3szk w==; X-CSE-ConnectionGUID: rPfQMkAnTDi7M0ug4583sA== X-CSE-MsgGUID: oF10ll8DQOi6MDtc1aU+4Q== X-IronPort-AV: E=McAfee;i="6700,10204,11210"; a="30543096" X-IronPort-AV: E=Sophos;i="6.11,164,1725346800"; d="scan'208";a="30543096" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2024 23:01:13 -0700 X-CSE-ConnectionGUID: eUmgrUoMRNi2714Y1/Vf5w== X-CSE-MsgGUID: n/TkbeV6T3eiTg5xAf6BNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,164,1725346800"; d="scan'208";a="77268464" Received: from dut1043pvc.igk.intel.com (HELO localhost) ([10.211.176.232]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2024 23:01:11 -0700 From: Klaus Gerlicher To: gdb-patches@sourceware.org, blarsen@redhat.com Subject: [PATCH v6 0/2] gdb: setting BP with multiple locations only displays one location Date: Mon, 30 Sep 2024 06:01:00 +0000 Message-Id: <20240930060102.752079-1-klaus.gerlicher@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.1 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org From: "Gerlicher, Klaus" Hi Guinevere, Eli, all, V5 (https://sourceware.org/pipermail/gdb-patches/2024-September/211747.html) was showing a CI issue after parse_args is enforcing that all arguments are parsed. Using parse_some_args in this patch. Addressed the typos from the reviews of version V5. Thanks Klaus Gerlicher, Klaus (2): gdb: extend gdb_breakpoint for multiple locations gdb, breakpoint: output multiple bp locations gdb/NEWS | 5 + gdb/breakpoint.c | 125 ++++++++++++++---- 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 | 12 +- gdb/testsuite/gdb.cp/meth-typedefs.exp | 2 +- gdb/testsuite/gdb.cp/ovldbreak.exp | 8 +- gdb/testsuite/gdb.cp/paramless.exp | 4 +- gdb/testsuite/gdb.cp/templates.exp | 20 ++- 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 | 56 ++++++++ .../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 | 2 +- gdb/testsuite/lib/completion-support.exp | 3 + gdb/testsuite/lib/gdb.exp | 121 +++++++++++++++-- 43 files changed, 446 insertions(+), 222 deletions(-) create mode 100644 gdb/testsuite/gdb.linespec/multiple-locs.cc create mode 100644 gdb/testsuite/gdb.linespec/multiple-locs.exp