From: Jeff Dike <jdike@ka...> - 2001-09-02 01:49:00
> The attached patch defines 2 gdb macros to simplify debugging of
Bleah, nice idea, but the implementation sucks.
What I think I want here is for there to be a perl script or something
between UML and gdb. It would initialize gdb, so the gdb crud that's
already there can be moved. It would also put a breakpoint someplace in
sys_init_module and do the module symbol reloading automagically when
that breakpoint is hit.
Also, mistral has a bunch of handy gdb init things. Someone should collect
all of these things in one place.
> Note: These macros do not follow FAQ 9.3 Debugging modules to 100%. It
> seems modules start at "module + module.size_of_struct", not "module +
> module.size_of_struct + 4".
Yeah, that seems to change now and then. That's why I recommend looking
at how the init_module address resolves symbolically.