From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id /FwxGtojkmKR4AgAWB0awg (envelope-from ) for ; Sat, 28 May 2022 09:30:02 -0400 Received: by simark.ca (Postfix, from userid 112) id 348E51E221; Sat, 28 May 2022 09:30:02 -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=tpBxc27q; 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 6B8881E01D for ; Sat, 28 May 2022 09:30:01 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C7E70384F01E for ; Sat, 28 May 2022 13:30:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7E70384F01E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1653744600; bh=b6l4nN/vgShcP8Jg9UT8lFxzOx7JKnxhIHw0qlx4eZA=; 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=tpBxc27qZYy5l3Dgxtj09MZFjto5wV7w9OkzWP9urcM5qBz3ekeJ/hOn8xf8M05MO JFXRvlx2hLJMAGZF0/yboA+N3JWWxqk+gUopENg2q5F9KOf7GzT6K1URjwNZEWxvzP g/ImSXMi7QXIbClTMDsQWhai6ckjUA/nWVRFpZt8= Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 6EF3F3857C48 for ; Sat, 28 May 2022 13:29:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6EF3F3857C48 Received: by mail-wr1-x431.google.com with SMTP id x17so19828wrg.6 for ; Sat, 28 May 2022 06:29:40 -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=b6l4nN/vgShcP8Jg9UT8lFxzOx7JKnxhIHw0qlx4eZA=; b=OtoxDcBdZ2sJtOBBj7k3+tBKL9jaP6Lro5jnbYfA1jADd4vTGo1w2zcLIoToUKAJa4 VkHW9dXXk1pgxGH6eqCplGxAha6rOK+N0YVoKnnMASfPR6CrkdPkL9/q8qsIupwF0yDW wd9jEoHD+tu7paTpG0SNzscbYFoNffex4YTxMMGW8tp2ftJsKO+BBhksYlLGLM8pw1wu E1cVWJhEAamkBMCUhmB1qMBtndkCdymyUp972g3bseLtIKGAcK6QjiLl+9MTKUyVu1PI jjLc/zoZwOCRzKjrj3DMEm0R2JgcTninaTJnNFyoKZRqZWyYZKCAqjq0UXC3kTWLghzo ZT9Q== X-Gm-Message-State: AOAM5318bfYV2km88oWVYtaqj8BQr8UMhyKace5ztRXA88otMe9FE96F 5OCDEsOB5JEu3uwLG48wIRojJU0OJYYT X-Google-Smtp-Source: ABdhPJyTXM3Izm35h0dRxHmSINYm1rZLsH9aYysoqJCnv69TgLRdTocuHbY2OhSbV8kUatfrSuBMgg== X-Received: by 2002:adf:d1a1:0:b0:210:2a5a:7b88 with SMTP id w1-20020adfd1a1000000b002102a5a7b88mr1440306wrc.160.1653744579194; Sat, 28 May 2022 06:29:39 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 06:29:38 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [PATCH v2 1/3] gdb/python doc: Add register_unwinder to code example Date: Sat, 28 May 2022 15:29:03 +0200 Message-Id: <20220528132905.3886575-1-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: Paulo Neves Cc: Paulo Neves Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" It is now clear in the example code that an unwinder needs to be registered to be used. --- gdb/doc/python.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index cb5283e03c0..5b7fba798a9 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2814,6 +2814,8 @@ class MyUnwinder(Unwinder): # Return the result: return unwind_info +# To use an unwinder it needs to be registered and enabled. +gdb.unwinder.register_unwinder (, MyUnwinder, replace=) @end smallexample @subheading Registering a Unwinder -- 2.25.1