From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id VG87L78TkmKY3ggAWB0awg (envelope-from ) for ; Sat, 28 May 2022 08:21:19 -0400 Received: by simark.ca (Postfix, from userid 112) id B2D9D1E221; Sat, 28 May 2022 08:21:19 -0400 (EDT) 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=a8VatuYb; 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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.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 383B01E143 for ; Sat, 28 May 2022 08:21:19 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB86B385041B for ; Sat, 28 May 2022 12:21:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB86B385041B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1653740478; bh=M+CQgU7svHYXRr1hYQzx8dGOk8QQkjWlDbOp9tgfUVo=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=a8VatuYbWGIC28YOjYz4ZgYT4EEf7IjrQGpSgB9mr7S1EFjrRRzwJqu5fP9TKHEvz eIosto86ezjfB/9BCarFRr+roF2E77GUDiObDjdvhZltPsYhj7l+YuBafF3v3W/ndX qLtDteDYjx0RPzMbQhiEY6DfTt7sMLa6Kde/ToAQ= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 6F5D63851C21 for ; Sat, 28 May 2022 12:20:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6F5D63851C21 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuvRC-000853-5k; Sat, 28 May 2022 08:20:58 -0400 Received: from [87.69.77.57] (port=1221 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 1nuvRB-000491-KJ; Sat, 28 May 2022 08:20:57 -0400 Date: Sat, 28 May 2022 15:20:54 +0300 Message-Id: <83tu99luft.fsf@gnu.org> To: ptsneves@gmail.com In-Reply-To: <20220528115509.3865342-2-ptsneves@gmail.com> (message from Paulo Neves via Gdb-patches on Sat, 28 May 2022 13:55:08 +0200) Subject: Re: [PATCH 1/2] gdb/python doc: Add register_unwinder to code example References: <20220528115509.3865342-1-ptsneves@gmail.com> <20220528115509.3865342-2-ptsneves@gmail.com> 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: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > Date: Sat, 28 May 2022 13:55:08 +0200 > From: Paulo Neves via Gdb-patches > Cc: Paulo Neves > > It is now clear in the example code that an unwinder needs to be > registered to be used. > --- > gdb/doc/python.texi | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi > index cb5283e03c0..5b7fba798a9 100644 > --- a/gdb/doc/python.texi > +++ b/gdb/doc/python.texi > @@ -2814,6 +2814,8 @@ class MyUnwinder(Unwinder): > # Return the result: > return unwind_info > > +# To use an unwinder it needs to be registered and enabled. > +gdb.unwinder.register_unwinder (, MyUnwinder, replace=) > @end smallexample Thanks, I think this needs to be reviewed by someone who knows how to program the Python unwinders. As far as Texinfo is concerned, this is fine.