From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 9C8A7384189A for ; Sat, 28 May 2022 11:56:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9C8A7384189A Received: by mail-wr1-x434.google.com with SMTP id d26so3311579wrb.13 for ; Sat, 28 May 2022 04:56:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=yQTFxUK/9TX3qn/fmFJy1tFJGiI36HXPcfbDf1OQ1xQ=; b=FubalAhJWF+mUNEHcVjOwRE83qhj4sxx6pqRMQsMUHVthtcPp2n+P7tOvNxC3pL9LV oqs6pitnonwg6OejxZgg5fk57Yvlft587g3PcHdwuNEg8Ynwh4w9A/+Q+ufhVBqJyTgk EV5H2QdMWSeDtk5EF+MnTT59uHbzah/4Tu1GXlExg5LreV55YfCuO3BofBocvTStHMdT c54ZWrU3ooY9j3oviGwEY2ThCg9cm8bAFU0WM2KjLA0KOY3zO8o2U1couPzzOjKmWxBi Iazqt1cf0GGjikqepRwwEn1wNkiAZn5TxR0CKUJ5C9U32+eFXxhV4IecTkUhAVV3evkX DgmA== X-Gm-Message-State: AOAM531Nr8fnTXPnm/oaz4C7CiwACX7D7znwi4+vTEGRejD3nHkTHf22 szUmoS4LIwKU6xyJRDVjbH8UrQJKwsFD X-Google-Smtp-Source: ABdhPJwM8YMHUEwwKoM+hP3edJNNJ6sMP0MC3C7kVObAYcuPYELuwKDQ2t4lvcgcqh49fts8pgFOug== X-Received: by 2002:a5d:4845:0:b0:210:25fa:dc7c with SMTP id n5-20020a5d4845000000b0021025fadc7cmr2207355wrs.131.1653738963545; Sat, 28 May 2022 04:56:03 -0700 (PDT) Received: from localhost.localdomain (83.11.64.124.ipv4.supernova.orange.pl. [83.11.64.124]) by smtp.gmail.com with ESMTPSA id k15-20020a7bc30f000000b0039749b01ea7sm5467933wmj.32.2022.05.28.04.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 04:56:03 -0700 (PDT) From: Paulo Neves To: gdb-patches@sourceware.org Cc: Paulo Neves Subject: [PATCH 2/2] gdb/python doc: Add enable property to the unwinder example Date: Sat, 28 May 2022 13:55:09 +0200 Message-Id: <20220528115509.3865342-3-ptsneves@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220528115509.3865342-1-ptsneves@gmail.com> References: <20220528115509.3865342-1-ptsneves@gmail.com> Reply-To: ptsneves@gmail.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2022 11:56:05 -0000 The enable property is now also in the example code making it clear how it is used and how it influences the operation of an unwinder. --- gdb/doc/python.texi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 5b7fba798a9..cb148d9b0ea 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2796,6 +2796,10 @@ class FrameId(object): class MyUnwinder(Unwinder): def __init__(....): super(MyUnwinder, self).__init___() + # If set to True the unwinder will be enabled. + # If upon registration the enable property is True, the unwinder will be usable immediately. + # gdb or code may change value. + self.enabled = def __call__(pending_frame): if not : -- 2.25.1