From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id OIgGIJ4wmmKUIAoAWB0awg (envelope-from ) for ; Fri, 03 Jun 2022 12:02:38 -0400 Received: by simark.ca (Postfix, from userid 112) id 7F45D1E221; Fri, 3 Jun 2022 12:02:38 -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=kIgbg6zA; 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 0A3371E143 for ; Fri, 3 Jun 2022 12:02:38 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AD8023841454 for ; Fri, 3 Jun 2022 16:02:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD8023841454 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1654272157; bh=epFnWm9onPMQ6gpEjcshQ3yNckoMlAyyRIONIWE6AR4=; 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=kIgbg6zAMMdw7shZI3lTHOmJvMu8FZkWg0vA3v8rMZomuialGFdsn6lUZUOquFqai PNeyxWAp9F3wjxmFWFJhr5mnk5m5l7BF+mft7pQdi8JDI1uwQg6KDGMpCRgQuw+XBG 7TWQW2EXYNdChOKFpj5zfH06TZeeg9WvvGoclmnM= Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by sourceware.org (Postfix) with ESMTPS id EF7A23857352 for ; Fri, 3 Jun 2022 16:01:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EF7A23857352 Received: by mail-lf1-x12e.google.com with SMTP id t25so13292251lfg.7 for ; Fri, 03 Jun 2022 09:01:50 -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=epFnWm9onPMQ6gpEjcshQ3yNckoMlAyyRIONIWE6AR4=; b=xgd96e4MwvWy9eEgBpnYYluB1vx3uCzPx4uKWWQ40A4rmC4bSuUhSQHHiKdbxcdiFp twAxRmB6UjtcIwMBwsOBnBFsIfhHjYweurFcy7mxmWwD0i7JI2771j1nA5xsYgkF/2TR lTN4NufwCWa0zdcuNcywheNQFCmyjKIy9fMXIbWgBoKRt7tEvQBzc/9FrLcLlzgJTdPJ uaKuxWZ3A1+8ZyA4QMZw9Oz/Uuvuid0p7mETcqd6HO5kKFYg6T16IdximFjXX49A1b0s 5w5Us49mQdpTXjBlGrY8x2/ZjFJSjOm06yJGaqfhRvlP1oJJZONOcz20jBOrk0/a+yt2 l0lw== X-Gm-Message-State: AOAM531+HKb561VS424r18NUjqbdsYDEPg3CZLIB2pgzJvWJiYPArRWj jWxOVzYsZAHPA4yBDmA0SBtGawgONQ== X-Google-Smtp-Source: ABdhPJwORuCsTTYHsUWWRe9CEri1RPmYK+oYrnT1IpYRbAkYEwU8vf89QGbm3AHfLbZopY9pere/OA== X-Received: by 2002:a05:6512:1148:b0:478:98b7:c86e with SMTP id m8-20020a056512114800b0047898b7c86emr7182155lfg.338.1654272109637; Fri, 03 Jun 2022 09:01:49 -0700 (PDT) Received: from localhost.localdomain (85-128-83-172.static.ip.netia.com.pl. [85.128.83.172]) by smtp.gmail.com with ESMTPSA id x15-20020ac25dcf000000b0047255d210dbsm1654727lfq.10.2022.06.03.09.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 09:01:49 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [PATCH v3 2/4] gdb/python doc: Add enable property to the unwinder example Date: Fri, 3 Jun 2022 18:01:37 +0200 Message-Id: <20220603160139.136115-2-ptsneves@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220603160139.136115-1-ptsneves@gmail.com> References: <20220528115509.3865342-1-ptsneves@gmail.com> <20220603160139.136115-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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 228d515a817..3e4833a4a41 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2805,6 +2805,9 @@ class FrameId(object): class MyUnwinder(Unwinder): def __init__(....): super(MyUnwinder, self).__init___() + # If set to True the unwinder will be enabled. + # gdb or code may change this value. + self.enabled = def __call__(pending_frame): if not : -- 2.25.1