diff --git a/run b/run index c38fc4f..02abb25 100755 --- a/run +++ b/run @@ -575,7 +575,7 @@ Path resolution is similar to --baremetal. parser.add_argument( '--userland-before', default=defaults['userland_before'], help='''\ -Pass these Krguments to the QEMU user mode CLI before the program to execute. +Pass these arguments to the QEMU user mode CLI before the program to execute. This is required with --userland since arguments that come at the end are interpreted as command line arguments to that executable. ''' diff --git a/test-gdb b/test-gdb index 4f63d4c..3840fe4 100755 --- a/test-gdb +++ b/test-gdb @@ -1,6 +1,13 @@ #!/usr/bin/env bash set -eux for emulator in --qemu --gem5; do + # Userland. + # TODO make work. + #./run --arch x86_64 --background --userland add "$emulator" --wait-gdb & + #./run-gdb --arch x86_64 --userland add "$emulator" --test "$@" + #wait + + # Baremetal. ./run --arch arm --background --baremetal add "$emulator" --wait-gdb & ./run-gdb --arch arm --baremetal add "$emulator" --test "$@" wait diff --git a/userland/add.py b/userland/add.py new file mode 120000 index 0000000..5b1d1e0 --- /dev/null +++ b/userland/add.py @@ -0,0 +1 @@ +../baremetal/add.py \ No newline at end of file