File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2996,7 +2996,7 @@ First build `gdbserver` into the root filesystem:
2996
2996
Then on guest, to debug link:userland/linux/rand_check.c[]:
2997
2997
2998
2998
....
2999
- ./gdbserver.sh ./c/print_argv .out asdf qwer
2999
+ ./gdbserver.sh ./c/command_line_arguments .out asdf qwer
3000
3000
....
3001
3001
3002
3002
Source: link:rootfs_overlay/lkmc/gdbserver.sh[].
@@ -3010,7 +3010,7 @@ And on host:
3010
3010
or alternatively with the path to the executable itself:
3011
3011
3012
3012
....
3013
- ./run --gdbserver --userland "$(./getvar userland_build_dir)/c/print_argv .out"
3013
+ ./run --gdbserver --userland "$(./getvar userland_build_dir)/c/command_line_arguments .out"
3014
3014
....
3015
3015
3016
3016
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
3991
3991
Output:
3992
3992
3993
3993
....
3994
- /path/to/linux-kernel-module-cheat/out/userland/default/x86_64/c/print_argv .out
3994
+ /path/to/linux-kernel-module-cheat/out/userland/default/x86_64/c/command_line_arguments .out
3995
3995
asdf
3996
3996
qw er
3997
3997
....
You can’t perform that action at this time.
0 commit comments