From 1fda6357c3c751e947b507d080045d68bc2e9376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Santilli=20=E5=85=AD=E5=9B=9B=E4=BA=8B=E4=BB=B6=20?= =?UTF-8?q?=E6=B3=95=E8=BD=AE=E5=8A=9F?= Date: Thu, 15 Nov 2018 00:00:03 +0000 Subject: [PATCH] gdb: stub for testing userland Not working because cannot find, requires moving --userland to common.py --- run | 2 +- test-gdb | 7 +++++++ userland/add.py | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) create mode 120000 userland/add.py 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