From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id D19AA3858D33 for ; Tue, 31 Jan 2023 18:07:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D19AA3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMv2H-0001uF-6l; Tue, 31 Jan 2023 13:07:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=tuhBjl1V2sCC6eum3spMIHaIpc/hRJ2/AXEZFeBiZDA=; b=Z5TjX1dsJFtZ M8YKXeOnnk5PxHlY+DBVURu41TFfoFjvk9a7atRCKFhjgGidhTDGBaEeKN6QXjqEl4zQnOUHYug7L tKJHbWp4UYp9//UnGkfLq2OUThjnNYVhRSuTHw2EuQQsa9rXieR3Azs2NeVvGhmphoXspcdnzD21b WBZbaAPq4WXM91ip4FVLFmZfkbeF7Rvt5L0xM2swNZoVy1M7WgGZD1dw2+w/i2CqRe+T+xCvy8JGI U0zSTw89P4LORZBurdGhEhpTgHt/bfC9Z+k6R6fAXPAFlF2WICMrUerZvWjkbbcN2gVBpcT8cZYr8 JW0/bgPvhaUOeGsLZeAbRg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMv2G-0003AL-Ka; Tue, 31 Jan 2023 13:07:12 -0500 Date: Tue, 31 Jan 2023 20:07:10 +0200 Message-Id: <83tu061stt.fsf@gnu.org> From: Eli Zaretskii To: Andrew Burgess Cc: gdb-patches@sourceware.org In-Reply-To: <78764570698177ecf049fdab759908ca88fd7bd3.1675185990.git.aburgess@redhat.com> (message from Andrew Burgess via Gdb-patches on Tue, 31 Jan 2023 17:27:07 +0000) Subject: Re: [PATCHv3 02/13] gdb/doc: extend the documentation for conditional breakpoints References: <78764570698177ecf049fdab759908ca88fd7bd3.1675185990.git.aburgess@redhat.com> X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Cc: Andrew Burgess > Date: Tue, 31 Jan 2023 17:27:07 +0000 > From: Andrew Burgess via Gdb-patches > > +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. This is okay, but should we perhaps tell the reader how to deal with these calamities? I presume there's something to say, otherwise why do we describe these situations? Thanks.