From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YOeLHdhU2WOiayYAWB0awg (envelope-from ) for ; Tue, 31 Jan 2023 12:50:16 -0500 Received: by simark.ca (Postfix, from userid 112) id 766071E128; Tue, 31 Jan 2023 12:50:16 -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=UORe9Sgi; 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=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 301C41E112 for ; Tue, 31 Jan 2023 12:50:16 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7C1D63858C39 for ; Tue, 31 Jan 2023 17:50:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C1D63858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675187415; bh=YOqM371fnJuseZPG+vfR9ai3DSPN1m3S3lmdKNcrEsQ=; 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=UORe9Sgi8iqQ86/e4NKW7nq9Q6UjkOp+kKDXlh+naoTCdlr9+ZvnY7VWG7ETFCxNz /5+rs2rx0naSp70ATJlWMgrsQzMaMvb0rkYP4uwLgNQpORNNHyFtLDV2mw5xSRg5XE uYhHbHkK0UxLCKnzHPe45LX2aXkG1TegJkFA3vRs= 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 4008F3858404 for ; Tue, 31 Jan 2023 17:49:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4008F3858404 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-625-fgV4AsLUNd6mum8WZqZBSQ-1; Tue, 31 Jan 2023 12:27:25 -0500 X-MC-Unique: fgV4AsLUNd6mum8WZqZBSQ-1 Received: by mail-qk1-f197.google.com with SMTP id a3-20020a05620a438300b007069b068069so9460213qkp.2 for ; Tue, 31 Jan 2023 09:27:25 -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=YOqM371fnJuseZPG+vfR9ai3DSPN1m3S3lmdKNcrEsQ=; b=08jbd09CfU6YLqdsbXqxytJAbqf/xlgX5jole9U6Yhenby+sLi/6RvIdTPMckeOJEI Q2UCjYPhoS7btePd7kOjOL9pJfokdsEmICM+tTK+ZwikvLH+l8Ec53otWa1diyZ/G7SE ROkT0PvFSIpABwdsyTSI23tC2ZZ5nzlYXBgBRi+6FZMgbVrcsjYN/goEU0c/9ioirPmy ZS0EbUm0kJiZOERyzm9VF/N2HYrV6p3uj3CIIkt5K0NjSinO1TKBit74UWOqzqLvvkK9 0kBck5/UVA4uZr4rG27AI0YgkQ8NMymNOVIJxkj5Z3X2gWjNXtEPmP8uuZyEs3281k3C corg== X-Gm-Message-State: AO0yUKV6VyWifNpS86ilXIhDEuL+/Hr80XOYr/g8fZVJ2Hq5wu/T5t5T m5PVl1RtqS9UDwF5e2J0Kxvyv+1RXEv+lWbenSuld69Au88veOetIa/Bv2JzzO5sPerKWvo5+Uo tCXnfomGaFeK1KE7OMN7qTr0pTRulnHY+XjYgZsLe3Cyo16aWr3VdaYx56VllJJff1e8dGhdJWw == X-Received: by 2002:ac8:5956:0:b0:3b8:4144:fe72 with SMTP id 22-20020ac85956000000b003b84144fe72mr20946648qtz.9.1675186045306; Tue, 31 Jan 2023 09:27:25 -0800 (PST) X-Google-Smtp-Source: AK7set+YjOHcJ10eFWepkVTn3L1Mx9pP5+xUFq/9hytq7jzeMfa3fKehAf3JcKs0OOUxjm4Va7wlDg== X-Received: by 2002:ac8:5956:0:b0:3b8:4144:fe72 with SMTP id 22-20020ac85956000000b003b84144fe72mr20946618qtz.9.1675186045042; Tue, 31 Jan 2023 09:27:25 -0800 (PST) Received: from localhost (95.72.115.87.dyn.plus.net. [87.115.72.95]) by smtp.gmail.com with ESMTPSA id f10-20020ac8134a000000b003b9b4028d63sm921868qtj.80.2023.01.31.09.27.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 09:27:24 -0800 (PST) To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv3 02/13] gdb/doc: extend the documentation for conditional breakpoints Date: Tue, 31 Jan 2023 17:27:07 +0000 Message-Id: <78764570698177ecf049fdab759908ca88fd7bd3.1675185990.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 682f85387e5..dd8267f448f 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 behavior. 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