refactor(build): 📦 Use single gdb-config command

This commit is contained in:
Berkus Decker 2023-07-10 02:12:28 +03:00 committed by Berkus Decker
parent 2313b0cf97
commit d6887bccee
2 changed files with 3 additions and 10 deletions

View File

@ -176,8 +176,11 @@ script = [
'''
writefile ${GDB_CONNECT_FILE} "target extended-remote :5555\n"
appendfile ${GDB_CONNECT_FILE} "break *0x80000\n"
appendfile ${GDB_CONNECT_FILE} "break kernel_main\n"
echo Generated GDB config file
'''
]
#appendfile ${GDB_CONNECT_FILE} "continue\n"
## Generate zellij configuration file.
[tasks.zellij-config]

View File

@ -34,16 +34,6 @@ disabled = true
[tasks.zellij-cb-gdb]
disabled = true
[tasks.gdb-config]
script_runner = "@duckscript"
script = [
'''
writefile ${GDB_CONNECT_FILE} "target extended-remote :5555\n"
appendfile ${GDB_CONNECT_FILE} "break *0x80000\n"
appendfile ${GDB_CONNECT_FILE} "continue\n"
'''
]
[tasks.gdb]
dependencies = ["build", "kernel-binary", "gdb-config"]
env = { "RUST_GDB" = "${GDB}" }