mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
readme: document gem5 userland arm unexplicable jump
This commit is contained in:
@@ -2679,6 +2679,15 @@ First make sure that for your arch the kernel debugging on the given target work
|
||||
|
||||
Next, follow the exact same steps explained at <<gdb-step-debug-userland-non-init-without--d>>, but passing `-g` to every command as usual.
|
||||
|
||||
But then TODO (I'll still go crazy one of those days): for `arm`, while debugging `/myinsmod.out /hello.ko`, after then line:
|
||||
|
||||
....
|
||||
23 if (argc < 3) {
|
||||
24 params = "";
|
||||
....
|
||||
|
||||
I press `n`, it just runs the program until the end, instead of stopping on the next line of execution. The module does get inserted normally.
|
||||
|
||||
=== gem5 checkpoint
|
||||
|
||||
Analogous to QEMU's <<snapshot>>, but better since it can be started from inside the guest, so we can easily checkpoint after a specific guest event, e.g. just before `init` is done.
|
||||
|
||||
Reference in New Issue
Block a user