mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gdb: stub for testing userland
Not working because cannot find, requires moving --userland to common.py
This commit is contained in:
2
run
2
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.
|
||||
'''
|
||||
|
||||
7
test-gdb
7
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
|
||||
|
||||
1
userland/add.py
Symbolic link
1
userland/add.py
Symbolic link
@@ -0,0 +1 @@
|
||||
../baremetal/add.py
|
||||
Reference in New Issue
Block a user