refactor(build): 📦 Use single gdb-config command
This commit is contained in:
		
							parent
							
								
									2313b0cf97
								
							
						
					
					
						commit
						d6887bccee
					
				| 
						 | 
				
			
			@ -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]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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}" }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue