From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28898 invoked by alias); 5 Sep 2012 05:36:14 -0000 Received: (qmail 28882 invoked by uid 22791); 5 Sep 2012 05:36:12 -0000 X-SWARE-Spam-Status: No, hits=-5.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 Sep 2012 05:35:52 +0000 Received: by wgbdr1 with SMTP id dr1so106979wgb.12 for ; Tue, 04 Sep 2012 22:35:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.100.35 with SMTP id ev3mr35382733wib.7.1346823351662; Tue, 04 Sep 2012 22:35:51 -0700 (PDT) Received: by 10.216.158.65 with HTTP; Tue, 4 Sep 2012 22:35:51 -0700 (PDT) In-Reply-To: References: Date: Wed, 05 Sep 2012 05:36:00 -0000 Message-ID: Subject: Re: how to get kernel global data dynamically ? From: oza Pawandeep To: John Smith Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2012-09/txt/msg00001.txt.bz2 there is a utility called 'crash utility' from redhat which is capable of debugging live linux kernel space; of course you can not set breakpoints/watchpoints, but certainly you should be able to query all kernel symbols. Regards, Oza. On Wed, Sep 5, 2012 at 7:24 AM, John Smith wrote: > hi, > > I got a segment fault when debug a process , so I > disassemble the code which cause the fault , and find the > instruction which fires the fault , > > this instruction is xlat ds:(%bx) , as you know , this > is a protect-mode addressing ,so I need to know the base > address responding to this ds descript , > > then I could calculate the linear address and catch its > memory data . > > > but , as you know too , gdb can not tell you the base address > responding to this ds descript , is anyone have some solutions > here ? > > > thanks!