From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CjvjEYMwmmKUIAoAWB0awg (envelope-from ) for ; Fri, 03 Jun 2022 12:02:11 -0400 Received: by simark.ca (Postfix, from userid 112) id 381DE1E221; Fri, 3 Jun 2022 12:02:11 -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=O5x5iCBg; 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 77B451E143 for ; Fri, 3 Jun 2022 12:02:10 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BE7953841443 for ; Fri, 3 Jun 2022 16:02:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE7953841443 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1654272129; bh=187nkCtUu+44QfiFc+FmA3ubfjfb9UTFuAJU4yNqrx8=; 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=O5x5iCBg7O7lN+FbYMcM290br88yNaF7pnqY5g0Y8xomyh4YGJLimVedLI5wMmx3j exGu4bKKqSWZDOISsEpE2A8ZKGD0dXeJPoak45U2EtIZs9tEKvFV8Ed/QvwfeaJfJD mgCwEWsEEHsEVtdGg21OX8kq2jHG1Oc1WYZgrxIg= Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id F39C1385023C for ; Fri, 3 Jun 2022 16:01:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F39C1385023C Received: by mail-lf1-x12a.google.com with SMTP id a15so13296644lfb.9 for ; Fri, 03 Jun 2022 09:01:49 -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=187nkCtUu+44QfiFc+FmA3ubfjfb9UTFuAJU4yNqrx8=; b=Fdj5kBMtvUYOJLgQH6M7SlswM9n+3xHALFhiE0SSApkZYIVaiOAoEF2uXluUovWhDs fX+Y8LImlVP1pe9HO9ILyEHUlLbHhTviXLOX/1Iuozg9GrfWnT7oavvRe3Hks6XAgaB/ WSBTJFoQrV9G0wgY8NVrcOjPdH0KecTohTioJ7wnrsqkiNBKh9DLsfyt3CI2+pJJP0go x4ovezIhCldRruK4WtdZua4YWwAY944gV6pCEAHIZf85jcwcF/Sks7Zp6K8WeBagRRNj bG7aHIgm9JSFO15R1c2bL8Xsn8GnNdNQNE6R346IMQfrFZdcupQPIkxCvdStpyvmh6YS YscA== X-Gm-Message-State: AOAM533mlB348wP2O709gBceQwfQvz1d8hGFCVTLjDD2VTuVsJmwre/n f3d35mh4Sn7zv4JTNl9UQnQPLA7wpQ== X-Google-Smtp-Source: ABdhPJwlzRyPboscuxBygeAuOJ36TFfi0JeslxTvVYOs7WJhq7zGIQ7Iw/VpVyPxLe+grBVVJTg7iw== X-Received: by 2002:a05:6512:3b8d:b0:478:f9f3:962b with SMTP id g13-20020a0565123b8d00b00478f9f3962bmr7453976lfv.169.1654272108613; Fri, 03 Jun 2022 09:01:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 09:01:48 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [PATCH v3 1/4] gdb/python doc: Add register_unwinder to code example Date: Fri, 3 Jun 2022 18:01:36 +0200 Message-Id: <20220603160139.136115-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 ba5a9b315e1..228d515a817 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2823,6 +2823,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