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 4008F3858404 for ; Tue, 31 Jan 2023 17:49:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4008F3858404 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=1675187349; 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=YOqM371fnJuseZPG+vfR9ai3DSPN1m3S3lmdKNcrEsQ=; b=L8sepHvj4Xz69v06y2Is5MwIj81raxV8Zh2SMQMBXdzsbYwkv3p4E4LfNV5Mh4HRfbtnnD iTDduXvJbNUVZ3u2qee+ttW1mj6JuD9M5sOiMd/4IHeRMzASZqIkVODH6JxsI90aZO9hjI DyR0P32w3jX8hMNmiP5zYDQhufb1F1k= 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) From: Andrew Burgess 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-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 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