Skip to content

Commit 1fda635

Browse files
committed
gdb: stub for testing userland
Not working because cannot find, requires moving --userland to common.py
1 parent 95c1800 commit 1fda635

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ Path resolution is similar to --baremetal.
575575
parser.add_argument(
576576
'--userland-before', default=defaults['userland_before'],
577577
help='''\
578-
Pass these Krguments to the QEMU user mode CLI before the program to execute.
578+
Pass these arguments to the QEMU user mode CLI before the program to execute.
579579
This is required with --userland since arguments that come at the end are interpreted
580580
as command line arguments to that executable.
581581
'''

test-gdb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/usr/bin/env bash
22
set -eux
33
for emulator in --qemu --gem5; do
4+
# Userland.
5+
# TODO make work.
6+
#./run --arch x86_64 --background --userland add "$emulator" --wait-gdb &
7+
#./run-gdb --arch x86_64 --userland add "$emulator" --test "$@"
8+
#wait
9+
10+
# Baremetal.
411
./run --arch arm --background --baremetal add "$emulator" --wait-gdb &
512
./run-gdb --arch arm --baremetal add "$emulator" --test "$@"
613
wait

userland/add.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../baremetal/add.py

0 commit comments

Comments
 (0)