From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YPK7Lf0byGMLlhkAWB0awg (envelope-from ) for ; Wed, 18 Jan 2023 11:19:09 -0500 Received: by simark.ca (Postfix, from userid 112) id B7FC41E128; Wed, 18 Jan 2023 11:19:09 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=WWUzXS0G; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 732A01E110 for ; Wed, 18 Jan 2023 11:19:09 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1D98238582BE for ; Wed, 18 Jan 2023 16:19:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D98238582BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674058749; bh=WUGwHUbPKvjAqeCpFb0H8y+oncREQxbV7n+T1POL8Yk=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=WWUzXS0GtC8YjhyAQeq9MQ5ozN7aO0psWCTJYiHSRq+IESlsR4+OeexoQHhaOK0vp 4syb212TtOP19XK9mZ+8gTpPwIfiX9HMd+Q39Ok4cIfMKq0DKcB6d7n0X5/W3u1nt7 RVJJ9uSsmqsLSMrEMC2oDZYRSyZg21bHHJQQXDo0= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 64CAB3858C30 for ; Wed, 18 Jan 2023 16:18:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 64CAB3858C30 Received: from mail-yb1-f198.google.com (mail-yb1-f198.google.com [209.85.219.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-354-Ua_3lsDrO_atHk9gqCXq2A-1; Wed, 18 Jan 2023 11:18:19 -0500 X-MC-Unique: Ua_3lsDrO_atHk9gqCXq2A-1 Received: by mail-yb1-f198.google.com with SMTP id 81-20020a250b54000000b007c002e178dfso28420068ybl.9 for ; Wed, 18 Jan 2023 08:18:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=WUGwHUbPKvjAqeCpFb0H8y+oncREQxbV7n+T1POL8Yk=; b=VlUW/sT92CW1zbX821FYHklT5cDVSx0yVffpNW71dro6kWkx5E5skoK5Ar7lGgsjvb Ro414xjpwQJPI1EfwKmuHSVBdG11YtRVLHZkbVpAvCxer34bhv0pjrZjiWwDSLKKaWB/ sM20ZlByIw/zqr/PL+jzTAow7TE4L9T5kCn50v5VnX/kZix4gkQE5UbQSPahqNU1iysT YGPB8z7nZ+7jDEelR1ZVvg1Y2/nkgO9FB7196g83wepZEw5JFONsOihDvNG36KwY1ENI HwCLnmxuA46i0cKpguC5myeSxYqJ5FaR7ThnYVZb1Y+OmRWkOLYAz1N0R06EdUI684+a sSQA== X-Gm-Message-State: AFqh2krzjEdrQ0ZuzqWQzfX9KoAArVAJTvih2pDi7cVCh49wcE+R+9e3 pFjz8GWsG3r633PdkEIOykFiLhCrFzw9UrG9j69CF6BbwV05VHgfOt3iUbFK5MSXSHnSTRw9UgU bSILPlV+IWF9ufS6hYWU3CddoUPxhI0LU3eQVi4RVd/wmV7CTLQg5mT61LwMAuxt5/1A6yu3bWw == X-Received: by 2002:a05:7500:510:b0:f0:f14:b4f4 with SMTP id j16-20020a057500051000b000f00f14b4f4mr553993gac.49.1674058699129; Wed, 18 Jan 2023 08:18:19 -0800 (PST) X-Google-Smtp-Source: AMrXdXttY0KDfoAs0Kyx5An4oL2iFvuTDt6EzDOPlVFb51UecqJ12O6l6tSH1xFAqC/XpxHnA/eYZw== X-Received: by 2002:a05:7500:510:b0:f0:f14:b4f4 with SMTP id j16-20020a057500051000b000f00f14b4f4mr553979gac.49.1674058698729; Wed, 18 Jan 2023 08:18:18 -0800 (PST) Received: from localhost (95.72.115.87.dyn.plus.net. [87.115.72.95]) by smtp.gmail.com with ESMTPSA id bq8-20020a05620a468800b00704c9015e68sm5597571qkb.116.2023.01.18.08.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 08:18:18 -0800 (PST) To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv2 02/13] gdb/doc: extend the documentation for conditional breakpoints Date: Wed, 18 Jan 2023 16:17:58 +0000 Message-Id: <93c3968f10fcc7e2c85e1dae3cbbf1bcf122ea44.1674058359.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.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrew Burgess via Gdb-patches Reply-To: Andrew Burgess Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" This documentation update adds more text to describe what happens if a conditional breakpoint calls an inferior function, and the inferior function is interrupted for some reason. --- gdb/doc/gdb.texinfo | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index e05813ff502..6ea173b5d0b 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -5713,6 +5713,17 @@ purpose of performing side effects when a breakpoint is reached (@pxref{Break Commands, ,Breakpoint Command Lists}). +If a breakpoint condition calls a function in your program, then it is +possible that your program could stop for some reason while in the +called function. For example, @value{GDBN} might hit a breakpoint in +the called function, or the called function may receive a signal +(e.g.@ a @code{SIGSEGV}) as a result of some undefined behaviour, if +this happens then @value{GDBN} will stop. Depending on the settings +@code{unwindonsignal} and @code{unwind-on-terminating-exception} +(@pxref{Calling,,Calling Program Functions}) @value{GDBN} may unwind +the stack back to the breakpoint location, or may leave the program at +the frame where the stop occurred. + Breakpoint conditions can also be evaluated on the target's side if the target supports it. Instead of evaluating the conditions locally, @value{GDBN} encodes the expression into an agent expression -- 2.25.4