From: oza Pawandeep <oza.pawandeep@gmail.com>
To: John Smith <horserivers@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: how to get kernel global data dynamically ?
Date: Wed, 05 Sep 2012 05:36:00 -0000 [thread overview]
Message-ID: <CAK1A=4xJLSJ_Rg+Qdx+HL4GW4zBs4a9pgG-L16Qr+Kz10Qo2jg@mail.gmail.com> (raw)
In-Reply-To: <CAJR88ph_-qQEqRGkrkr3ZJCfcJSqODJC_d7YdKLfmZyHURRZpg@mail.gmail.com>
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 <horserivers@gmail.com> 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!
prev parent reply other threads:[~2012-09-05 5:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 1:54 John Smith
2012-09-05 5:36 ` oza Pawandeep [this message]
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='CAK1A=4xJLSJ_Rg+Qdx+HL4GW4zBs4a9pgG-L16Qr+Kz10Qo2jg@mail.gmail.com' \
--to=oza.pawandeep@gmail.com \
--cc=gdb@sourceware.org \
--cc=horserivers@gmail.com \
/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).