From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32406 invoked by alias); 5 Sep 2012 01:54:53 -0000 Received: (qmail 32262 invoked by uid 22791); 5 Sep 2012 01:54:51 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-qa0-f48.google.com (HELO mail-qa0-f48.google.com) (209.85.216.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 05 Sep 2012 01:54:29 +0000 Received: by qady1 with SMTP id y1so111845qad.0 for ; Tue, 04 Sep 2012 18:54:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.175.204 with SMTP id bb12mr8885413qab.14.1346810068967; Tue, 04 Sep 2012 18:54:28 -0700 (PDT) Received: by 10.49.81.146 with HTTP; Tue, 4 Sep 2012 18:54:28 -0700 (PDT) Date: Wed, 05 Sep 2012 01:54:00 -0000 Message-ID: Subject: how to get kernel global data dynamically ? From: John Smith To: 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/msg00000.txt.bz2 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!