public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: John Smith <horserivers@gmail.com>
To: gdb@sourceware.org
Subject: how to get kernel global data dynamically ?
Date: Wed, 05 Sep 2012 01:54:00 -0000	[thread overview]
Message-ID: <CAJR88ph_-qQEqRGkrkr3ZJCfcJSqODJC_d7YdKLfmZyHURRZpg@mail.gmail.com> (raw)

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!

             reply	other threads:[~2012-09-05  1:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-05  1:54 John Smith [this message]
2012-09-05  5:36 ` oza Pawandeep

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJR88ph_-qQEqRGkrkr3ZJCfcJSqODJC_d7YdKLfmZyHURRZpg@mail.gmail.com \
    --to=horserivers@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).