From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A07EFC6FA8E for ; Mon, 27 Feb 2023 02:37:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230384AbjB0Cht (ORCPT ); Sun, 26 Feb 2023 21:37:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231721AbjB0ChX (ORCPT ); Sun, 26 Feb 2023 21:37:23 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F422A1E1FA; Sun, 26 Feb 2023 18:36:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6A1D5B80D14; Mon, 27 Feb 2023 02:10:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99DCBC4339B; Mon, 27 Feb 2023 02:10:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677463819; bh=gz6MIJbztcGH+L3KQ6T4FfPE4HmAJ6To4sMY8spiJGk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bCNpvUaOLassU/I9A+IEitiKSOVI96DUzB+yyOSNk+RSPqCkuObzpxYYjuZXHMBvT iSOW/iU+aHcTbCns5QU/tGpl/vaWN+xtPgBGhVPwdv8C1SFK4yni/xPiOOgLKdnhMS 4EGmj6GflJTBPokwVpptQ823Quz+Xg7+0/4FWfRrxEcY1YQbtWBz1cT7W1yCorNLBF dxPuV5OfumjDKMxOL0jyHKVjqWiddbw6TBT9S8kHf9x87/GXQQLiiSWEz3S3YdcGfA KFr4HEWmvPA4dIan0jhLU4im9m4+nv2gtE+GfR1+4g5leWcjNkgIPRPy9u+nc24pER cO9h4J8Dnry3g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jakob Koschel , Jonathan Corbet , Sasha Levin , linux-doc@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 08/19] docs/scripts/gdb: add necessary make scripts_gdb step Date: Sun, 26 Feb 2023 21:09:43 -0500 Message-Id: <20230227020957.1052252-8-sashal@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230227020957.1052252-1-sashal@kernel.org> References: <20230227020957.1052252-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jakob Koschel [ Upstream commit 6b219431037bf98c9efd49716aea9b68440477a3 ] In order to debug the kernel successfully with gdb you need to run 'make scripts_gdb' nowadays. This was changed with the following commit: Commit 67274c083438340ad16c ("scripts/gdb: delay generation of gdb constants.py") In order to have a complete guide for beginners this remark should be added to the offial documentation. Signed-off-by: Jakob Koschel Link: https://lore.kernel.org/r/20230112-documentation-gdb-v2-1-292785c43dc9@gmail.com Signed-off-by: Jonathan Corbet Signed-off-by: Sasha Levin --- Documentation/dev-tools/gdb-kernel-debugging.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/dev-tools/gdb-kernel-debugging.rst b/Documentation/dev-tools/gdb-kernel-debugging.rst index 4756f6b3a04e5..10cdd990b63d0 100644 --- a/Documentation/dev-tools/gdb-kernel-debugging.rst +++ b/Documentation/dev-tools/gdb-kernel-debugging.rst @@ -39,6 +39,10 @@ Setup this mode. In this case, you should build the kernel with CONFIG_RANDOMIZE_BASE disabled if the architecture supports KASLR. +- Build the gdb scripts (required on kernels v5.1 and above):: + + make scripts_gdb + - Enable the gdb stub of QEMU/KVM, either - at VM startup time by appending "-s" to the QEMU command line -- 2.39.0