Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-10-01 Thread Derek Atkins
Dave, Dave Anderson <[EMAIL PROTECTED]> writes: > Configure the kernel with CONFIG_PHYSICAL_START less than > or equal to CONFIG_PHYSICAL_ALIGN. Upon rebuilding my FC7 > kernel with CONFIG_PHYSICAL_START changed from 16MB to 1MB, > with CONFIG_PHYSICAL_ALIGN left at 4MB, i.e.: > >CONFIG_PHYS

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-10-01 Thread Dave Anderson
Derek Atkins wrote: > Dave Anderson <[EMAIL PROTECTED]> writes: > > >>>Hi Eric and others, >>> >>>I think we might be running into the issues because i386, FC7 relocatable >>>kernel has been compiled for 16MB physical address but effectively it >>>runs at 4MB physical address. So kernel does not

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-10-01 Thread Derek Atkins
Dave Anderson <[EMAIL PROTECTED]> writes: >> Hi Eric and others, >> >> I think we might be running into the issues because i386, FC7 relocatable >> kernel has been compiled for 16MB physical address but effectively it >> runs at 4MB physical address. So kernel does not run at compiled address >> a

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-10-01 Thread Dave Anderson
Vivek Goyal wrote: > On Fri, Sep 28, 2007 at 05:40:33PM -0600, Eric W. Biederman wrote: > >>Derek Atkins <[EMAIL PROTECTED]> writes: >> >> >>>Well, gdb agrees with System.map, so I'm sure that gdb itself is >>>okay. It's certainly possible that that the kgdb stub is weird, >>>but /proc/kallsyms d

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-29 Thread Vivek Goyal
On Fri, Sep 28, 2007 at 05:40:33PM -0600, Eric W. Biederman wrote: > Derek Atkins <[EMAIL PROTECTED]> writes: > > > Well, gdb agrees with System.map, so I'm sure that gdb itself is > > okay. It's certainly possible that that the kgdb stub is weird, > > but /proc/kallsyms doesn't match System.map,

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-28 Thread Eric W. Biederman
Derek Atkins <[EMAIL PROTECTED]> writes: > Well, gdb agrees with System.map, so I'm sure that gdb itself is > okay. It's certainly possible that that the kgdb stub is weird, > but /proc/kallsyms doesn't match System.map, and THAT'S what's > confusing me most of all. Ok. So we must have a reloca

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-28 Thread Derek Atkins
[EMAIL PROTECTED] (Eric W. Biederman) writes: > Pete/Piet Delaney <[EMAIL PROTECTED]> writes: > >> 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 >

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-28 Thread Eric W. Biederman
Pete/Piet Delaney <[EMAIL PROTECTED]> writes: > 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

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-28 Thread Pete/Piet Delaney
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 origi

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-28 Thread Jason Wessel
Derek Atkins wrote: > Quoting Jason Wessel <[EMAIL PROTECTED]>: > >>> 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.

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-28 Thread Derek Atkins
Quoting Jason Wessel <[EMAIL PROTECTED]>: >> 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-s

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-28 Thread Jason Wessel
Derek Atkins wrote: > Hi, > > Jason Wessel <[EMAIL PROTECTED]> writes: > > >> I have not looked at the fedora kernels, but it would appear that if >> there was a shift that some part of the loader or some kernel patch has >> done a runtime relocation. >> > > Well, it appears to be the case,

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-28 Thread Derek Atkins
Hi, Jason Wessel <[EMAIL PROTECTED]> writes: > I have not looked at the fedora kernels, but it would appear that if > there was a shift that some part of the loader or some kernel patch has > done a runtime relocation. Well, it appears to be the case, but I've only tested that one symbol. I coul

Re: [Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-28 Thread Jason Wessel
I have not looked at the fedora kernels, but it would appear that if there was a shift that some part of the loader or some kernel patch has done a runtime relocation. If you knew for absolutely certain that everything was relocated with an offset, then you could simply load the symbols with an of

[Kgdb-bugreport] Problem getting kgdb to read kernel symbols. addresses shifted?

2007-09-27 Thread Derek Atkins
Hi everyone, I'm using Fedora 7; I've backported the 2.6.23-rc8-mm1 broken-out kgdb patches (git-kgdb.patch, git-kgdb-fixup.patch, kgdb-fix-docbook-and-kernel-doc-typos.patch, and kgdb-fix-help-text.patch) to the Fedora 2.6.22.5-76 kernel and I can connect just fine from my host system to the targ