From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 71F87384F02E for ; Sat, 28 May 2022 13:29:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 71F87384F02E Received: by mail-wr1-x42e.google.com with SMTP id h5so999853wrb.0 for ; Sat, 28 May 2022 06:29:46 -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:mime-version:content-transfer-encoding; bh=0j1v8lF3Kh5+OiXDsRWo5aLUJZuJkf3x6kOzbokX8aY=; b=vQzFNMFOv/9zyeQGbDDQta/VAC3eiiyQLFMuaKtMwtn5Fx43vqGL837cJjj+aDGp2R xoh7HqmdEwohW2dHPgIBqkJD62gE0rly20+u3n/d4nQQvjcUdnZTq0c1L33kGgq72+oU FZOZyOZb3V219bMqbLpk7hYobEwqLADIJ4JQKIFU0IHGW9IqJ5867xU4BJyW+8rHY7Dg 84s0dnkKAr0oEK/7KHcW580iowMWldnc0wYuumeHye4L2qA8Tj/ZqY8Bb7IjO1tnXPD0 Ai0tLpDqhkT4mdjFs1oVHmScQwClayRazlP5oTX0QPvbA9iX0cM+qoqomlQMMAxt2lZw 33vA== X-Gm-Message-State: AOAM530huqnAee3tsGd4QhRca11p1gaycE86/7dWZsFNAIt6MS6Ndy3V E/cagdnevOlA1chGfCoImgaSkqYGHpER X-Google-Smtp-Source: ABdhPJwELIWRUrG9v5GPsdFb33Bo+g/JA9i8h4YEY+I49ErT0Wvl7zX7oMfXxkdT1xB+QT7iXoJP+Q== X-Received: by 2002:a5d:4411:0:b0:210:287:e689 with SMTP id z17-20020a5d4411000000b002100287e689mr13748141wrq.89.1653744585260; Sat, 28 May 2022 06:29:45 -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 f18-20020a05600c4e9200b003942a244f40sm5790043wmq.25.2022.05.28.06.29.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 06:29:44 -0700 (PDT) From: Paulo Neves To: gdb-patches@sourceware.org Cc: Paulo Neves Subject: [PATCH v2 2/3] gdb/python doc: Add enable property to the unwinder example Date: Sat, 28 May 2022 15:29:04 +0200 Message-Id: <20220528132905.3886575-2-ptsneves@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220528132905.3886575-1-ptsneves@gmail.com> References: <20220528115509.3865342-1-ptsneves@gmail.com> <20220528132905.3886575-1-ptsneves@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.9 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 13:29:47 -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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 5b7fba798a9..444e332d752 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2796,6 +2796,11 @@ 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