From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id E2F16385355B for ; Fri, 3 Jun 2022 16:01:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E2F16385355B Received: by mail-lf1-x12f.google.com with SMTP id l30so13309261lfj.3 for ; Fri, 03 Jun 2022 09:01:51 -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=ANiufiU1UNulgH1FMqTUY4rUuGJFE2zDu9xsePFV7cY=; b=rcdthhyQ5rx7eEzr8zxToi2FdyPMBAUdbz8UBatL5Wf5vhJO63ibGgu79IX+90nbVR 2qBnnV/vdy6LsSm+xJ17gO+psfFh9HjYFHTn/QBBoFhaqSq873H8x4Pe1ZCps/Kt9ggv vplrkUCetON2iiPZnWPdpZXif2AZAiXax7t1rJ8HNcB/TpmwwIEQ3HG9op+3qT2eTr41 qQbHOeFMYEGDLdjLaPxBGAmOyCwv5UXv0dSeh+QbfwS+PDaFbyO+8bnPxt93dRCYoO++ EilXeSZ+3HBcJoO/qcUjzpPf6u16Cvcs/JO+7T1xWBYLU6mVG1FCSuh0ULfi9YJiorLk 6ULw== X-Gm-Message-State: AOAM53384dvZykGub5ufsSuiiIh8fiea9tQNWLV+FNMjkIaNlJ3lkgWr vsOCMx3UjIPsEYM0/8EMNj6GMcH9+w== X-Google-Smtp-Source: ABdhPJxm5Pln6GvVklrxxuqDruqNwd7OGog40NY5hdC28yxZX3vkxLpi9fPP4zLGERe3ICgftHIiKw== X-Received: by 2002:ac2:43c3:0:b0:479:1630:c6ed with SMTP id u3-20020ac243c3000000b004791630c6edmr3866644lfl.406.1654272110539; Fri, 03 Jun 2022 09:01:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 09:01:50 -0700 (PDT) From: Paulo Neves To: gdb-patches@sourceware.org Cc: Paulo Neves Subject: [PATCH v3 3/4] gdb/python doc: Fix confusion between gdb.unwinders and gdb.unwinder Date: Fri, 3 Jun 2022 18:01:38 +0200 Message-Id: <20220603160139.136115-3-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.8 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 Replace gdb.unwinders with gdb.unwinder. The gdb.unwinders module does not and trying to import it leads to errors. Other instances of the manual correctly refer to gdb.unwinder. --- gdb/doc/python.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 3e4833a4a41..e2821755851 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2794,7 +2794,7 @@ class. Derive your unwinder class from it and structure the code as follows: @smallexample -from gdb.unwinders import Unwinder +from gdb.unwinder import Unwinder class FrameId(object): def __init__(self, sp, pc): @@ -2835,7 +2835,7 @@ gdb.unwinder.register_unwinder (, MyUnwinder, replace=) An object file, a program space, and the @value{GDBN} proper can have unwinders registered with it. -The @code{gdb.unwinders} module provides the function to register a +The @code{gdb.unwinder} module provides the function to register a unwinder: @defun gdb.unwinder.register_unwinder (locus, unwinder, replace=False) -- 2.25.1