From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YNosBxgOkmJz3QgAWB0awg (envelope-from ) for ; Sat, 28 May 2022 07:57:12 -0400 Received: by simark.ca (Postfix, from userid 112) id 1A3C71E221; Sat, 28 May 2022 07:57:12 -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=Q7TMC/oK; 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=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (server2.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 A86981E143 for ; Sat, 28 May 2022 07:57:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 59FCD38618A5 for ; Sat, 28 May 2022 11:57:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 59FCD38618A5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1653739031; bh=yQTFxUK/9TX3qn/fmFJy1tFJGiI36HXPcfbDf1OQ1xQ=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Q7TMC/oK5FEMksmrzPRyNHTLpy6UzX5N8QF2efNFCw3hUbae77mqR3N9YLci89Cfa Ob8v+gg/CWBXb5zQ0gnFpjBSkTHTxjsutBiizy9kMPeScsBr5Uy1qsH2KLI/1qPe0U Y+vqSEQzLU8l1wld8OtAxxINgDayOGKjpAg6rEUc= 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) To: gdb-patches@sourceware.org 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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Paulo Neves via Gdb-patches Reply-To: ptsneves@gmail.com Cc: Paulo Neves Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" 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