[tooling] Remove old GDB workarounds

GDB works far better now with QEMU's `-S` flag. No longer does it
complain about changing the target from 32 to 64 bits. Get rid of the
old `waiting` loop and `sleep` call in the GDB config for the kernel.

Tags: debugging
This commit is contained in:
Justin C. Miller
2020-05-24 19:50:45 -07:00
parent 774f6fc334
commit cc9cde9bfe
3 changed files with 8 additions and 8 deletions

10
qemu.sh
View File

@@ -3,6 +3,7 @@
build="$(dirname $0)/build"
assets="$(dirname $0)/assets"
debug=""
debugtarget="${build}/jsix.elf"
flash_name="ovmf_vars"
gfx="-nographic"
kvm=""
@@ -10,8 +11,13 @@ cpu="Broadwell,+pdpe1gb"
for arg in $@; do
case "${arg}" in
--debugboot)
debug="-s -S"
debugtarget="${build}/boot/boot.efi"
flash_name="ovmf_vars_d"
;;
--debug)
debug="-s"
debug="-s -S"
flash_name="ovmf_vars_d"
;;
--gfx)
@@ -37,7 +43,7 @@ fi
if [[ -n $TMUX ]]; then
if [[ -n $debug ]]; then
tmux split-window "gdb ${build}/jsix.elf" &
tmux split-window -h "gdb ${debugtarget}" &
else
tmux split-window -l 10 "sleep 1; telnet localhost 45454" &
fi