From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674058701; 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=WUGwHUbPKvjAqeCpFb0H8y+oncREQxbV7n+T1POL8Yk=; b=ZpUMTTclxNes2/eAHTf232WVMsba5eohE9IP3x4jwBdU5Ot551as7sUopbsgaWKxziJ96s GE/oYX22sgsttcAiT61aUcQndIr8WQJDQuXuryrvjzFmEAVG/xgH+mQZtXtKWJ5HdvYqV/ 5SvL0uNYfXd4L/XSI1a1j0eqTQ5WqUM= 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) From: Andrew Burgess 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-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 List-Id: 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