2 Nov 2009 23:14
Hack to get filename completion for the mod command
Bob Montgomery <bob.montgomery <at> hp.com>
2009-11-02 22:14:13 GMT
2009-11-02 22:14:13 GMT
The mod command won't do filename completion. Sometimes I set up a big ugly directory path for mod -S by starting with the dir command, using its filename completion to get the modules directory, and then command-line editing the dir command into a mod -S command before executing it. Ahem. This hacky patch allows crash to tell gdb that "mod" is a command that should get filename completion. It's pretty un-smart filename completion, e.g. doesn't know that sometimes it should be selecting from a list of modules instead of filenames, etc. And it messes with the separation of crash and gdb. But mod -S <tab><tab> seems to work. It does change the behavior of "crash> gdb help mod" and "crash> gdb mod". Bob Montgomery
The mod command won't do filename completion. Sometimes I set up a big ugly directory path for mod -S by starting with the dir command, using its filename completion to get the modules directory, and then command-line editing the dir command into a mod -S command before executing it. Ahem. This hacky patch allows crash to tell gdb that "mod" is a command that should get filename completion. It's pretty un-smart filename(Continue reading)
> But another question is in the (extremely) rare circumstance of a
> non-CONFIG_SMP kernel. In that case, the kt->__per_cpu_offset[] array
> would be all NULL, and the symbol_value("per_cpu__cpu_number")
> call would return the qualified unity-mapped address. So the
> virtual address calculation should work in x86_64_per_cpu_init(),
> and the loop wouldn't even be entered in x86_64_get_smp_cpus()
>
RSS Feed