From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id B2wON3bH2mY1/iEAWB0awg (envelope-from ) for ; Fri, 06 Sep 2024 05:12:22 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=he5dt+ZO; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D8E4E1E353; Fri, 6 Sep 2024 05:12:22 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-12.8 required=5.0 tests=ARC_SIGNED,ARC_VALID, BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id EB7231E22B for ; Fri, 6 Sep 2024 05:12:21 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5C6B7384A49C for ; Fri, 6 Sep 2024 09:12:21 +0000 (GMT) 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 30079384A84E for ; Fri, 6 Sep 2024 09:11:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 30079384A84E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 30079384A84E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725613877; cv=none; b=Ffh6giliuDv4JRUUGE+ZThgljvvxd5iQ63Dj38mBr5UtUzgRIJeBRPIS6XiwKhCb1+MGm8/GFUt0vhj0RKT5s9auDCFRd6JqPbZbpBSfqq3Z3f54Xsl/q76qsU9z74/1IbIGASxiY7O8m9V62eDXOIsX5DlS0YOQU8kdMiMo1YY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725613877; c=relaxed/simple; bh=GG+4iW/zYzc3amWPKBCzsfU61Nq4bHyKs5EjtU3gzBU=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=t9YQU/8PCvIjjyflztVXv2I+fN6TS7mCW3oye8V3sN/7cf1utDggozHV/JKBH+L3iykx1/EMtLaLBQRIk8UdihgJWxEcroO8HueKlcrfpkyhLhobSCfwpcACYZy3GC6ex5MFePSjzfZgp9+GIDkCq0abonZ+Z9gXWkMfP2x2+Ws= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725613872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QbR86/8r5QKnOJNVFcjwuHjEoMeGngtposCY0O0tz54=; b=he5dt+ZO4v24P5KfQIU83DC7EAQzhQvL6wKINfySNNGZwyNZF3hRsb5hD5swh8Gu/l1pkg hPMWctrRgmOK8gu0bgRRaQNQqMKDKiLQUHtACR+yVeBzswlafvxaMu3sLd008OTU17+lbM 81bvr7VOrmc6eDVuKt8w64V4hlakJd0= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-284-VEjXMK32PoaKiTHk5WOGwg-1; Fri, 06 Sep 2024 05:11:11 -0400 X-MC-Unique: VEjXMK32PoaKiTHk5WOGwg-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-374b385b146so817999f8f.0 for ; Fri, 06 Sep 2024 02:11:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725613869; x=1726218669; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QbR86/8r5QKnOJNVFcjwuHjEoMeGngtposCY0O0tz54=; b=QBUACRGvuQGB8cRQwIGrrBkpYidPB4qee0dp9N+woQo7Wx5U/7ME6tRrDhNj1yG3EU eOTDNDTdCeBO5ve/ZcKFGHqOQh46qCa0YEWr7cDRCu3IUNT3WT5I7b6AvmeyZpNQ4mXt CJieC3osg7vC/sQ/skMJINFYb7b8kRvgt/2aBlncLS9ovwzFYVhmQUgA806q7Iv4+18x mZkgD17/Tl3RA2lJ911WfLljyMhNpdwvNy6/0d6Eqm/oucM44yAS2GdFnuVqNy5AxQo1 GysZrk2Aa1NQBXx3wmMBSpkVmZVaxeKz0Q32RPD2OhtkxQunCTCIHdRukuQNFV+ivrgR s7kA== X-Gm-Message-State: AOJu0YzI4TXXxm+pjd2dIqohqplPckeA7OBJsebwD4W2oxz+uMASBFCV LRGo095G1E5QVASYHFF6HvN/klMZrj9h1tHvbCsbc61kG6f1ce2WW3rUFgn9xKEcl8Sfzq7mGpF 0Z9LWrvJutqbXhIl5betJtT2hYUhoBpg+i+BmAfte5ejMjGX/5e2fBh9nZ8Mjd1uWAymvUqu3Gk +9OJtFNhG8bXKAVMsgZ4ervn0e83n/46MP95Fv/4uwscA= X-Received: by 2002:adf:cd8b:0:b0:374:c621:3d67 with SMTP id ffacd0b85a97d-378895db8f5mr1174435f8f.24.1725613869236; Fri, 06 Sep 2024 02:11:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJI72R+GFNJcH57EAy+EOrVeEdoI827RIKqPMxhf1DKgVzyXp0eH0GpYdqbkJ2U8aLkuGpGw== X-Received: by 2002:adf:cd8b:0:b0:374:c621:3d67 with SMTP id ffacd0b85a97d-378895db8f5mr1174374f8f.24.1725613867716; Fri, 06 Sep 2024 02:11:07 -0700 (PDT) Received: from localhost (178.126.90.146.dyn.plus.net. [146.90.126.178]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-374c5ae48e4sm14377654f8f.90.2024.09.06.02.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 02:11:07 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv13 1/6] gdb: make breakpoint_debug_printf global Date: Fri, 6 Sep 2024 10:10:58 +0100 Message-Id: <8e095150ee46042f6b2347674ae30a17c1090a22.1725613660.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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~public-inbox=simark.ca@sourceware.org This commit makes breakpoint_debug_printf available outside of breakpoint.c. In a later commit I'll want to use this macro from another file. This is just a refactor, there should be no user visible changes after this commit. --- gdb/breakpoint.c | 9 ++------- gdb/breakpoint.h | 8 ++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index fa19674abbd..fe1ac605d8a 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -574,13 +574,8 @@ show_always_inserted_mode (struct ui_file *file, int from_tty, value); } -/* True if breakpoint debug output is enabled. */ -static bool debug_breakpoint = false; - -/* Print a "breakpoint" debug statement. */ -#define breakpoint_debug_printf(fmt, ...) \ - debug_prefixed_printf_cond (debug_breakpoint, "breakpoint", fmt, \ - ##__VA_ARGS__) +/* See breakpoint.h. */ +bool debug_breakpoint = false; /* "show debug breakpoint" implementation. */ static void diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index 6294029c4d2..064165374fd 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -46,6 +46,14 @@ struct linespec_result; struct linespec_sals; struct inferior; +/* True if breakpoint debug output is enabled. */ +extern bool debug_breakpoint; + +/* Print a "breakpoint" debug statement. */ +#define breakpoint_debug_printf(fmt, ...) \ + debug_prefixed_printf_cond (debug_breakpoint, "breakpoint", fmt, \ + ##__VA_ARGS__) + /* Enum for exception-handling support in 'catch throw', 'catch rethrow', 'catch catch' and the MI equivalent. */ -- 2.25.4