Refine qemu gdb stub.
This commit is contained in:
parent
b15fc411b3
commit
9b9d9f5e5f
BIN
kernel_obj
BIN
kernel_obj
Binary file not shown.
|
@ -31,12 +31,5 @@ clean:
|
|||
qemu: kernel
|
||||
qemu-system-riscv64 -machine virt -smp 1 -bios none -kernel $(TEST_OBJ) -nographic -s -S
|
||||
|
||||
|
||||
# gdb: kernel
|
||||
# gdb-multiarch \
|
||||
# -ex "file $(TEST_OBJ)" \
|
||||
# -ex "set debug remote 1" \
|
||||
# -ex "target remote localhost:1234" \
|
||||
|
||||
gdb: kernel
|
||||
gdb-multiarch $(TEST_OBJ) -ex "target remote localhost:1234"
|
||||
gdb-multiarch -x rv.gdb
|
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
|
||||
|
||||
file ./build/kernel.elf
|
||||
set architecture riscv:rv64
|
||||
target remote localhost:1234
|
||||
set $pc = 0x80000000
|
Loading…
Reference in New Issue