From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ak/NMCHIbWB9bgAAWB0awg (envelope-from ) for ; Wed, 07 Apr 2021 10:56:33 -0400 Received: by simark.ca (Postfix, from userid 112) id B84E41E965; Wed, 7 Apr 2021 10:56:33 -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.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.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 14D8F1E54D for ; Wed, 7 Apr 2021 10:56:33 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9C0B4389FC20; Wed, 7 Apr 2021 14:56:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9C0B4389FC20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1617807392; bh=r28dK3LQWDFy76dcRdEs/BT7m7NBti0cYuidRa2Pln8=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=mE53Q/dXXmeEHwgf5rNvMvyVkbYj/5boum6hw7/T90YzezF1JWxcYa9rgP+/qI+bL CCZN8jICwwpzwZ4M3p3SaZOA2cmEhF2Tlx0L/hLvNq3y/26+EXYXTwtgKmfQ9AgTat 19AAAms7N/ha+CNDnCssYhiWpaqxTbpVNj1Lx+FM= Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by sourceware.org (Postfix) with ESMTPS id E34953858028 for ; Wed, 7 Apr 2021 14:56:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E34953858028 IronPort-SDR: ATNFxIlBpNtc6j75UJWyjNjc1A/eExrV4hIYFwYm42L98uk7IaHp9tmQjJYViLgaSvLcZjouAz YQviiGZFLdoQ== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="192864735" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="192864735" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 07:56:25 -0700 IronPort-SDR: yqRzZ6PEnY/4y5najbmyZqEt9jV97gSQQFY8NvV0x1YFaWjYZuKbyuovY+F1M/YGA/m5mmCewG ovLfn2Ed1a/g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="612956997" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by fmsmga005.fm.intel.com with ESMTP; 07 Apr 2021 07:56:23 -0700 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 137EuNOA012817; Wed, 7 Apr 2021 15:56:23 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id 137EuNbK011096; Wed, 7 Apr 2021 16:56:23 +0200 Received: (from taktemur@localhost) by ulvlx001.iul.intel.com with LOCAL id 137EuMGF011092; Wed, 7 Apr 2021 16:56:22 +0200 To: gdb-patches@sourceware.org Subject: [PATCH 0/4] Multi-context invalid breakpoint conditions and MI Date: Wed, 7 Apr 2021 16:55:55 +0200 Message-Id: X-Mailer: git-send-email 1.7.0.7 References: In-Reply-To: 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: , From: Tankut Baris Aktemur via Gdb-patches Reply-To: Tankut Baris Aktemur Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Hi, The starting point of this series is Jonah Graham's report at https://sourceware.org/pipermail/gdb-patches/2021-April/177498.html When a bad breakpoint condition is used, the MI command '-break-insert' inserts the breakpoint by disabling the breakpoint locations. This does not match the default CLI behavior, where the breakpoint would be rejected unless the user explicitly uses the '-force-condition' flag. This series attempts to fix the problem and align the MI behavior with CLI, together with some documentation update. Thanks Baris Tankut Baris Aktemur (4): gdb/doc: update the 'enabled' field's description for BP locations in MI testsuite, gdb.mi: fix duplicate test names in mi-break.exp gdb/breakpoint: add a 'force_condition' parameter to 'create_breakpoint' gdb/mi: add a '-b' flag to the '-break-insert' cmd to force the condition gdb/NEWS | 7 ++++++ gdb/breakpoint.c | 40 ++++++++++++++++++++++++++----- gdb/breakpoint.h | 6 +++++ gdb/doc/gdb.texinfo | 21 +++++++++++----- gdb/guile/scm-breakpoint.c | 2 +- gdb/mi/mi-cmd-break.c | 9 ++++++- gdb/python/py-breakpoint.c | 2 +- gdb/python/py-finishbreakpoint.c | 2 +- gdb/testsuite/gdb.mi/mi-break.exp | 39 ++++++++++++++++++++++++++---- 9 files changed, 108 insertions(+), 20 deletions(-) -- 2.17.1