From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Q+AKG3WvV2EfFAAAWB0awg (envelope-from ) for ; Fri, 01 Oct 2021 21:01:41 -0400 Received: by simark.ca (Postfix, from userid 112) id 5D8E31EDF7; Fri, 1 Oct 2021 21:01:41 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,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 C307F1E813 for ; Fri, 1 Oct 2021 21:01:40 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2AFE33857436 for ; Sat, 2 Oct 2021 01:01:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AFE33857436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1633136500; bh=+XyD2gnYe0lYrDlNxURYYnqGTGb/UrqdDA0eXWJ/v48=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=YOfhWHvHgcTC5eQTpreKF4RaynWv5sioA9HcNz4am7nLjiUkgTYVV1OqIbu8c7fZA T4JfPP0ZzamcGyPBHSDD5gZ/iUZ00zQiG1KvIexbVdXW7HQzXrVS54msnVsVALuo1a eQhh69dAAC1eZTvlUoIeYMcLcR79Sdhb0Dx78Nhs= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 326E83858417 for ; Sat, 2 Oct 2021 01:01:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 326E83858417 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-594-AJ2AazYSPTGgPuSkeZYq8w-1; Fri, 01 Oct 2021 21:01:20 -0400 X-MC-Unique: AJ2AazYSPTGgPuSkeZYq8w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 21D1D801E72 for ; Sat, 2 Oct 2021 01:01:20 +0000 (UTC) Received: from f34-1.lan (ovpn-112-47.phx2.redhat.com [10.3.112.47]) by smtp.corp.redhat.com (Postfix) with ESMTP id EECE31972D; Sat, 2 Oct 2021 01:01:19 +0000 (UTC) To: gdb-patches@sourceware.org Subject: [PATCH 0/2] Fix PR 28308 - dprintf breakpoints not working when run from script Date: Fri, 1 Oct 2021 18:00:52 -0700 Message-Id: <20211002010054.1546736-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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: Kevin Buettner via Gdb-patches Reply-To: Kevin Buettner Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" This series consists of two patches, a relatively short fix (with a long explanation) and a test case. Kevin Buettner (2): Fix PR 28308 - dprintf breakpoints not working when run from script Test case for Bug 28308 gdb/breakpoint.c | 13 +-- .../gdb.base/dprintf-execution-x-script.c | 53 ++++++++++ .../gdb.base/dprintf-execution-x-script.exp | 97 +++++++++++++++++++ .../gdb.base/dprintf-execution-x-script.gdb | 21 ++++ 4 files changed, 175 insertions(+), 9 deletions(-) create mode 100644 gdb/testsuite/gdb.base/dprintf-execution-x-script.c create mode 100644 gdb/testsuite/gdb.base/dprintf-execution-x-script.exp create mode 100644 gdb/testsuite/gdb.base/dprintf-execution-x-script.gdb -- 2.31.1