1
0

Move gdb listen address to params

This commit is contained in:
2018-11-25 14:53:56 +00:00
parent b6dc7e892f
commit 804e0b4879
2 changed files with 6 additions and 4 deletions

View File

@ -81,7 +81,7 @@ func interactive(q *qemu.QemuSystem) (err error) {
}
}
func debugHandler(kcfg config.KernelConfig, workPath string, kernRegex string,
func debugHandler(kcfg config.KernelConfig, workPath, kernRegex, gdb string,
dockerTimeout time.Duration) (err error) {
ka, err := config.ReadArtifactConfig(workPath + "/.out-of-tree.toml")
@ -103,8 +103,7 @@ func debugHandler(kcfg config.KernelConfig, workPath string, kernRegex string,
if err != nil {
return
}
gdb := "tcp::1234" // TODO param
q.Debug(gdb) // TODO param
q.Debug(gdb)
coloredGdbAddress := aurora.BgGreen(aurora.Black(gdb))
fmt.Printf("[*] gdb runned on %s\n", coloredGdbAddress)