From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23089 invoked by alias); 25 Feb 2010 06:10:50 -0000 Received: (qmail 23070 invoked by uid 22791); 25 Feb 2010 06:10:48 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from mail-pw0-f41.google.com (HELO mail-pw0-f41.google.com) (209.85.160.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Feb 2010 06:10:44 +0000 Received: by pwj7 with SMTP id 7so5589114pwj.0 for ; Wed, 24 Feb 2010 22:10:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.60.15 with SMTP id i15mr357308wfa.240.1267078243208; Wed, 24 Feb 2010 22:10:43 -0800 (PST) In-Reply-To: <20100224131545.951db05e.akpm@linux-foundation.org> References: <4B829750.90107@gmail.com> <20100224131545.951db05e.akpm@linux-foundation.org> From: Hui Zhu Date: Thu, 25 Feb 2010 06:10:00 -0000 Message-ID: Subject: Re: [PATCH 0/2] markup_oops.pl and GDB: Let GDB can handle kernel oops stack message To: Andrew Morton Cc: Arjan van de Ven , ozan@pardus.org.tr, Matthew Wilcox , linux-kernel@vger.kernel.org, gdb-patches ml , Michal Marek , Jason Wessel Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00615.txt.bz2 On Thu, Feb 25, 2010 at 05:15, Andrew Morton wrote: > On Mon, 22 Feb 2010 22:40:16 +0800 Hui Zhu wrote: > >> So I make a patch for markup_oops.pl to make it can convert the oops >> message to GDB command. >> And make a patch for GDB to add a new target empty which level is same >> with corelow target. It can save the memory and reg operation command's >> value and send it to GDB as the inferior's value. Then GDB can parse the >> oops message directly. > > How useful is the kernel patch when one is using an unpatched gdb? > For that status, I have 2 ways to handle it: 1. Change the "target empty" to other target, like "target remote localhost:1234". Then the remote target displace the empty target. It can be use. 2. In http://lkml.org/lkml/2010/1/3/28, there is a program called s2c, it can convert some special message to a core file. Then gdb can parse core file. If you think we need it, I can make it input the gdb commands. Thanks, Hui