From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 103672 invoked by alias); 22 Sep 2015 17:56:17 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 103659 invoked by uid 89); 22 Sep 2015 17:56:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: e06smtp09.uk.ibm.com Received: from e06smtp09.uk.ibm.com (HELO e06smtp09.uk.ibm.com) (195.75.94.105) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 22 Sep 2015 17:56:15 +0000 Received: from /spool/local by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 22 Sep 2015 18:56:12 +0100 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp09.uk.ibm.com (192.168.101.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 22 Sep 2015 18:56:10 +0100 X-MailFrom: arnez@linux.vnet.ibm.com X-RcptTo: gdb@sourceware.org Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 338112190046 for ; Tue, 22 Sep 2015 18:55:41 +0100 (BST) Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t8MHuApd33620142 for ; Tue, 22 Sep 2015 17:56:10 GMT Received: from d06av07.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t8MHuAvf008768 for ; Tue, 22 Sep 2015 11:56:10 -0600 Received: from oc1027705133.ibm.com (dyn-9-152-212-195.boeblingen.de.ibm.com [9.152.212.195]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t8MHu90I008750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Sep 2015 11:56:09 -0600 From: Andreas Arnez To: Ales Novak Cc: gdb@sourceware.org, Peter Griffin , Michael Holzheu Subject: Re: gdb on Linux Kernel dumps (gdb-kdump) References: Date: Tue, 22 Sep 2015 17:56:00 -0000 In-Reply-To: (Ales Novak's message of "Thu, 17 Sep 2015 22:47:36 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15092217-0037-0000-0000-000003FE5FDE X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00017.txt.bz2 On Thu, Sep 17 2015, Ales Novak wrote: > Hello, > > as was discussed at Andreas Arnez's talk during the GNU Cauldron 2015, > it would be nice to be able to work with Linux kernel dumps using the > ordinary gdb. Agreed ;-) > [...] > > The gdb-kdump should be considered rather as a proof of concept, yet it > shows that enabling the kdumps in gdb should be principally easy. It is > able to open the x86_64 and s390x kdumps. I'd imagine that most of the > commands of the crash-utility could be reimplemented using the gdb's > Python interface. Right. As pointed out in the talk at the Cauldron, there are already a few examples in the Linux kernel source tree under "scripts/gdb". In addition, this post mentions another GDB-enhancing project for Linux kernel debugging, named "LKD": https://sourceware.org/ml/gdb-patches/2015-06/msg00040.html The LKD project focuses more on live debugging and thus might be a useful complement to gdb-kdump. > > The example session looks like that: > > [...] Very nice! > We'd be thankful for any comments! IMHO, it would be very useful if GDB had support for various Linux kernel dump formats and for the Linux kernel runtime. It seems that gdb-kdump covers both to some extent. So, how to continue? Would you be able to convert gdb-kdump into patches against upstream GDB and send those to the gdb-patches mailing list? -- Andreas