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 doesn't match

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 run at compiled

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

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, but I've only

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-symbol-file

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. And do something

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 just

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 relocatable

[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