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