From: Pete/Piet Delaney <pete@bluelane.com>
To: Jason Wessel <jason.wessel@windriver.com>
Cc: Derek Atkins <warlord@mit.edu>,
kgdb-bugreport@lists.sourceforge.net,
Dave Anderson <anderson@redhat.com>,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?
Date: Fri, 28 Sep 2007 14:45:05 -0700 [thread overview]
Message-ID: <46FD75E1.3090602@bluelane.com> (raw)
In-Reply-To: <46FD2CFB.9010404@windriver.com>
Jason Wessel wrote:
Shouldn't crash, kdump and kgdb take into consideration a
shift in the kernel so that gdb works normally?
Seems that having the kgdb stub knowledgeable of a shift
in the kernel might be easy to compensate for. Perhaps
just mapping all reads and writes that lie within the
original kernel segments to the shifted addresses.
-piet
> Derek Atkins wrote:
>> Quoting Jason Wessel <jason.wessel@windriver.com>:
>>
>>>> Um, okay..... How do I do that? My GDB Fu is weak here; how do I
>>>> tell gdb that the symbols in vmlinux are all offset? Or how do I
>>>> manipulate the vmlinux binary to offset the symbols?
>>>>
>>> Start gdb with no file. And do something like: add-symbol-file vmlinux
>>> 0xBFA00000
>> Um, where did you get "0xBFA0000" from? Unfortunately this didn't
>> work at all. I would think to get my numbers to work I'd need to
>> use 0xC0400000 to get sys_close to appear at 0xc047d341. And
>> viola, that seems to work! Or at least I got a reasonable breakpoint
>> from the 'target remote'
>
> It was an example. You had previously stated it was an offset of
> 0x600000 so it was a subtraction of 0x600000 from 0xc0000000.
>
> Jaosn.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Kgdb-bugreport mailing list
> Kgdb-bugreport@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
>
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next parent reply other threads:[~2007-09-28 21:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <sjmabr8j6d7.fsf@pgpdev.ihtfp.org>
[not found] ` <46FD03CD.9060404@windriver.com>
[not found] ` <sjmve9uj3d2.fsf@pgpdev.ihtfp.org>
[not found] ` <46FD1B6A.3000500@windriver.com>
[not found] ` <20070928114522.n0cdrcebykkgg408@webmail.mit.edu>
[not found] ` <46FD2CFB.9010404@windriver.com>
2007-09-28 21:45 ` Pete/Piet Delaney [this message]
2007-09-28 22:18 ` [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted? Eric W. Biederman
2007-09-28 23:29 ` Derek Atkins
2007-09-28 23:40 ` Eric W. Biederman
2007-09-28 23:58 ` Derek Atkins
2007-09-29 0:32 ` Pete/Piet Delaney
2007-09-30 5:38 ` Vivek Goyal
2007-10-01 13:35 ` Dave Anderson
2007-10-01 18:44 ` Derek Atkins
2007-10-01 19:03 ` Dave Anderson
2007-10-01 20:35 ` Derek Atkins
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=46FD75E1.3090602@bluelane.com \
--to=pete@bluelane.com \
--cc=anderson@redhat.com \
--cc=ebiederm@xmission.com \
--cc=jason.wessel@windriver.com \
--cc=kgdb-bugreport@lists.sourceforge.net \
--cc=warlord@mit.edu \
/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