diff --git a/bin/chainboot/Makefile.toml b/bin/chainboot/Makefile.toml index 5070858..c4caa8d 100644 --- a/bin/chainboot/Makefile.toml +++ b/bin/chainboot/Makefile.toml @@ -44,7 +44,7 @@ disabled = true dependencies = ["build", "kernel-binary", "gdb-config"] env = { "RUST_GDB" = "${GDB}" } script = [ - "rust-gdb -x ${GDB_CONNECT_FILE} ${CHAINBOOT_ELF}" + "exec < /dev/tty && rust-gdb -x ${GDB_CONNECT_FILE} ${CHAINBOOT_ELF}" ] [tasks.sdcard] diff --git a/nucleus/Makefile.toml b/nucleus/Makefile.toml index 6779125..3e2fad7 100644 --- a/nucleus/Makefile.toml +++ b/nucleus/Makefile.toml @@ -44,12 +44,11 @@ script = [ ''' ] -# Problem: this eats STDIN! need to run in subshell or sth [tasks.gdb] dependencies = ["build", "kernel-binary", "gdb-config"] env = { "RUST_GDB" = "${GDB}" } script = [ - "rust-gdb -x ${GDB_CONNECT_FILE} ${KERNEL_ELF}" + "exec < /dev/tty && rust-gdb -x ${GDB_CONNECT_FILE} ${KERNEL_ELF}" ] [tasks.gdb-cb]