From patchwork Wed Oct 30 10:28:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 3113831 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A4EB8BF924 for ; Wed, 30 Oct 2013 10:28:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 929222015E for ; Wed, 30 Oct 2013 10:28:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8132720148 for ; Wed, 30 Oct 2013 10:28:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753613Ab3J3K2i (ORCPT ); Wed, 30 Oct 2013 06:28:38 -0400 Received: from thoth.sbs.de ([192.35.17.2]:33028 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644Ab3J3K2i (ORCPT ); Wed, 30 Oct 2013 06:28:38 -0400 Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.13.6/8.13.6) with ESMTP id r9UAS7Ra010881; Wed, 30 Oct 2013 11:28:07 +0100 Received: from mchn199C.mchp.siemens.de ([139.25.40.156]) by mail1.siemens.de (8.13.6/8.13.6) with ESMTP id r9UAS5ko030308; Wed, 30 Oct 2013 11:28:06 +0100 Message-ID: <5270DF35.1040708@siemens.com> Date: Wed, 30 Oct 2013 11:28:05 +0100 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Andi Kleen CC: Andrew Morton , linux-kernel@vger.kernel.org, Jason Wessel , kgdb-bugreport@lists.sourceforge.net, Tom Tromey , Ben Widawsky , Borislav Petkov , Tatiana Al-Chueyr Martins , Michal Marek , linux-kbuild@vger.kernel.org Subject: Re: [PATCH v6 01/21] scripts/gdb: Add infrastructure References: <74596df6935455908a146314b9b42ae2d79f6712.1382950737.git.jan.kiszka@siemens.com> <20131030053521.GU29695@two.firstfloor.org> In-Reply-To: <20131030053521.GU29695@two.firstfloor.org> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 2013-10-30 06:35, Andi Kleen wrote: >> The loading mechanism is based on gdb loading for -gdb.py when >> opening . Therefore, this places a corresponding link to the >> main helper script into the output directory that contains vmlinux. > >> This feature depends on CONFIG_DEBUG_INFO. > > Could you make this a separate config option? Having the links for > people who don't use gdb would be ugly. > Like this? Will send an updated series soon, also adjusting the docs, just waiting for potential further comments. Jan diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 06344d9..d66a8f8 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -143,6 +143,17 @@ config DEBUG_INFO_REDUCED DEBUG_INFO build and compile times are reduced too. Only works with newer gcc versions. +config GDB_SCRIPTS + bool "Provide GDB scripts for kernel debugging" + select DEBUG_INFO + help + This creates the required links to GDB helper scripts in the + build directory. If you load vmlinux into gdb, the helper + scripts will be automatically imported by gdb as well, and + additional functions are available to analyze a Linux kernel + instance. See Documentation/gdb-kernel-debugging.txt for further + details. + config ENABLE_WARN_DEPRECATED bool "Enable __deprecated logic" default y