Two working methods for module_init GDB step debugging!

Not perfect, but doable.
This commit is contained in:
Ciro Santilli
2018-04-15 10:55:59 +01:00
parent 3cc33a8fe8
commit ae780f6750
3 changed files with 128 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
|`-a` |`ARCH` |Run architecture `ARCH`.
|`-c` |`NCPUS` |Emulate `NCPUS` guest CPUs.
|`-D` | |Run GDB on the emulator itself.
|`-d` | |Run in debug mode, expect a GDB connection to guest.
|`-d` | |Wait for GDB to connect before starting execution.
|`-E` |`CMDSTR` |Replace the normal init with a minimal init that just evals
with given `CMDSTR` bash command string. Example:
`-E 'insmod /hello.ko;'`