From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 5251D3841882 for ; Sat, 28 May 2022 13:29:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5251D3841882 Received: by mail-wr1-x42c.google.com with SMTP id p10so9066060wrg.12 for ; Sat, 28 May 2022 06:29:47 -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=VGqRMoniymvfOCGJnEUhIAzIxhycXIQnpHcR5iKmCvY=; b=AAuC+Z0jjKV+rVNqK6Hz1/iFKIH2umfG4+QeHzc93rlPRPdUjAgo7wUdbbU0bowBHl azsj4wuBnVcAVvnvT+UUarw+/rUtyFZyKjXc+G6CLssYuI3Dqq/o5kNz69nfwhw+8ufW NLdFaabqxFIiOoVphF3S0YcheRWUCkB6OQe0psVi9l1aoDknRZyt3A+QPE6XQRqrDcxe e6+JifcK8gusb9SHG8YOB/p+HJH7di0FRTIuYrc16y9n9fSPgVNOJh4k1lw3daW5G97O yTSgr2+Fo8muo8qIj7RSNj+LWhDAz6h9IOn0GkfYTD6oh7FIlJJQdUbewPBz6B1V4U67 kuvQ== X-Gm-Message-State: AOAM532CbR6rH4z0iAUq8os+rXpCTctt9mcF+kqnv3L0glnXih0O0Jp3 hP1MsN4ufzORck7UsuT/iG8ca0xr30VZ X-Google-Smtp-Source: ABdhPJxVeqDlEvoshYqiXQZOYgq81SWjQPjiZymbuv02TIngrd9JL2V7140pGGWcsCg1jAYJkh6kAw== X-Received: by 2002:a05:6000:1a8c:b0:20c:bd6b:ecaf with SMTP id f12-20020a0560001a8c00b0020cbd6becafmr38710555wry.341.1653744586106; Sat, 28 May 2022 06:29:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 06:29:45 -0700 (PDT) From: Paulo Neves To: gdb-patches@sourceware.org Cc: Paulo Neves Subject: [PATCH v2 3/3] gdb/python doc: Fix confusion between gdb.unwinders and gdb.unwinder Date: Sat, 28 May 2022 15:29:05 +0200 Message-Id: <20220528132905.3886575-3-ptsneves@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220528132905.3886575-1-ptsneves@gmail.com> References: <20220528115509.3865342-1-ptsneves@gmail.com> <20220528132905.3886575-1-ptsneves@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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: Sat, 28 May 2022 13:29:48 -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 444e332d752..59232750099 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -2785,7 +2785,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): @@ -2828,7 +2828,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