Message ID | 93c3968f10fcc7e2c85e1dae3cbbf1bcf122ea44.1674058359.git.aburgess@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BD309385AC39 for <patchwork@sourceware.org>; Wed, 18 Jan 2023 16:19:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD309385AC39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674058752; 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=h/64t132ftew4ADmVV2O08+kp36rCVNUueNxrMFY4SjeQ4npRfB+z1pxudtrrN+LI 3oPrthdSHE17u1pUdxbmWLowwQrBPJHgyv1SwAaCJviZWLJeP634u3TTlNtHObgjQo UKTGKAnOrd9mcFclGJa5jcfYwnxlSCQs0aG/flq8= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org 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 <gdb-patches@sourceware.org>; 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 <gdb-patches@sourceware.org>; 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 <aburgess@redhat.com> 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: <cover.1674058359.git.aburgess@redhat.com> References: <cover.1666341010.git.aburgess@redhat.com> <cover.1674058359.git.aburgess@redhat.com> 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Andrew Burgess <aburgess@redhat.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Infcalls from B/P conditions in multi-threaded inferiors
|
|
Commit Message
Andrew Burgess
Jan. 18, 2023, 4:17 p.m. UTC
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(+)
Comments
> Cc: Andrew Burgess <aburgess@redhat.com> > Date: Wed, 18 Jan 2023 16:17:58 +0000 > From: Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org> > > 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(+) This is okay, thanks.
On Wednesday, January 18, 2023 5:18 PM, Andrew Burgess wrote: > 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 It seems to me like this could be "... behaviour. If ...". Regards -Baris Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de> Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928
> Date: Thu, 19 Jan 2023 09:04:03 +0000 > From: "Aktemur, Tankut Baris via Gdb-patches" <gdb-patches@sourceware.org> > > > +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 > > It seems to me like this could be "... behaviour. If ...". And in any case it should be "behavior", as we use US English spelling.
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