gdb: stub for testing userland

Not working because cannot find, requires moving --userland to common.py
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-11-15 00:00:03 +00:00
parent 95c1800b0e
commit 1fda6357c3
3 changed files with 9 additions and 1 deletions

2
run
View File

@@ -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.
'''

View File

@@ -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

1
userland/add.py Symbolic link
View File

@@ -0,0 +1 @@
../baremetal/add.py