From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ULhpFfcjkmKR4AgAWB0awg (envelope-from ) for ; Sat, 28 May 2022 09:30:31 -0400 Received: by simark.ca (Postfix, from userid 112) id 53DA71E221; Sat, 28 May 2022 09:30:31 -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=I/PvfrB/; 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 D0ED71E01D for ; Sat, 28 May 2022 09:30:30 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F2639385E02C for ; Sat, 28 May 2022 13:30:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2639385E02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1653744630; bh=0j1v8lF3Kh5+OiXDsRWo5aLUJZuJkf3x6kOzbokX8aY=; 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=I/PvfrB/R6tTZOUS98xX7HWLRJeA6HcGi7NIY9wK35bqF0Oy/B47CJBmxn4nAilMD M/RnmYXLHEUvaVQjtPZD/40oXv16SBuAdILmZT87HEdABQ1VL8fStW2NW9FQOBPz29 wOvppSso7y3xy2bYxILStmpVVuNI7bHZS1th2Zho= 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) To: gdb-patches@sourceware.org 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-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: Paulo Neves 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 | 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