mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Rename missing print_argv to command_line_arguments on README
Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/140
This commit is contained in:
@@ -2996,7 +2996,7 @@ First build `gdbserver` into the root filesystem:
|
||||
Then on guest, to debug link:userland/linux/rand_check.c[]:
|
||||
|
||||
....
|
||||
./gdbserver.sh ./c/print_argv.out asdf qwer
|
||||
./gdbserver.sh ./c/command_line_arguments.out asdf qwer
|
||||
....
|
||||
|
||||
Source: link:rootfs_overlay/lkmc/gdbserver.sh[].
|
||||
@@ -3010,7 +3010,7 @@ And on host:
|
||||
or alternatively with the path to the executable itself:
|
||||
|
||||
....
|
||||
./run --gdbserver --userland "$(./getvar userland_build_dir)/c/print_argv.out"
|
||||
./run --gdbserver --userland "$(./getvar userland_build_dir)/c/command_line_arguments.out"
|
||||
....
|
||||
|
||||
Bibliography: https://reverseengineering.stackexchange.com/questions/8829/cross-debugging-for-arm-mips-elf-with-qemu-toolchain/16214#16214
|
||||
@@ -3991,7 +3991,7 @@ Let's run link:userland/c/command_line_arguments.c[] built with the Buildroot to
|
||||
Output:
|
||||
|
||||
....
|
||||
/path/to/linux-kernel-module-cheat/out/userland/default/x86_64/c/print_argv.out
|
||||
/path/to/linux-kernel-module-cheat/out/userland/default/x86_64/c/command_line_arguments.out
|
||||
asdf
|
||||
qw er
|
||||
....
|
||||
|
||||
Reference in New Issue
Block a user