fix: 🐛 Allow executing gdb from cargo-make
It was failing before because no tty was available.
This commit is contained in:
parent
fc90fde4f0
commit
886cd0a18d
|
@ -44,7 +44,7 @@ disabled = true
|
||||||
dependencies = ["build", "kernel-binary", "gdb-config"]
|
dependencies = ["build", "kernel-binary", "gdb-config"]
|
||||||
env = { "RUST_GDB" = "${GDB}" }
|
env = { "RUST_GDB" = "${GDB}" }
|
||||||
script = [
|
script = [
|
||||||
"rust-gdb -x ${GDB_CONNECT_FILE} ${CHAINBOOT_ELF}"
|
"exec < /dev/tty && rust-gdb -x ${GDB_CONNECT_FILE} ${CHAINBOOT_ELF}"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tasks.sdcard]
|
[tasks.sdcard]
|
||||||
|
|
|
@ -44,12 +44,11 @@ script = [
|
||||||
'''
|
'''
|
||||||
]
|
]
|
||||||
|
|
||||||
# Problem: this eats STDIN! need to run in subshell or sth
|
|
||||||
[tasks.gdb]
|
[tasks.gdb]
|
||||||
dependencies = ["build", "kernel-binary", "gdb-config"]
|
dependencies = ["build", "kernel-binary", "gdb-config"]
|
||||||
env = { "RUST_GDB" = "${GDB}" }
|
env = { "RUST_GDB" = "${GDB}" }
|
||||||
script = [
|
script = [
|
||||||
"rust-gdb -x ${GDB_CONNECT_FILE} ${KERNEL_ELF}"
|
"exec < /dev/tty && rust-gdb -x ${GDB_CONNECT_FILE} ${KERNEL_ELF}"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tasks.gdb-cb]
|
[tasks.gdb-cb]
|
||||||
|
|
Loading…
Reference in New Issue