From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) From: Paulo Neves To: gdb-patches@sourceware.org Cc: Paulo Neves 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-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, 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: Fri, 03 Jun 2022 16:01:53 -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 | 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