X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=main.go;h=dc1d25bcb4534b41a8fadf33bc163cb1182145c2;hb=3c4defb289a37002a924f12632426c5aab6a4f81;hp=64bbcb9f1add4435a593df7ec26591244014a518;hpb=d61f637ad6c624bdd77d1532cdd80ca142da08f1;p=src%2Fxds%2Fxds-gdb.git diff --git a/main.go b/main.go index 64bbcb9..dc1d25b 100644 --- a/main.go +++ b/main.go @@ -345,7 +345,7 @@ endloop: // Handle client tty / pts if clientPty != "" { - log.Infoln("Client tty detected: %v\n", clientPty) + log.Infoln("Client tty detected: %v", clientPty) cpFd, err := os.OpenFile(clientPty, os.O_RDWR, 0) if err != nil { @@ -446,8 +446,15 @@ endloop: go func() { for { sig := <-sigs + + // FIXME: skip Window Changed signal for now + if sig == syscall.SIGWINCH { + log.Debugf("SKIP signal Window Changed") + return + } + if err := gdb.SendSignal(sig); err != nil { - log.Errorf("Error while sending signal: %s", err.Error()) + log.Errorf("Error while sending signal %v : %s", sig, err.Error()) } } }() @@ -499,9 +506,9 @@ func loadConfigEnvFile(confFile, gdbCmdFile string) (map[string]string, string, xdsEnvFile := "xds-gdb.env" for _, d := range []string{ path.Join(curDir), - path.Join(curDir, "..", ".."), - path.Join(curDir, "../../target"), - path.Join(u.HomeDir, ".xds"), + path.Join(curDir, ".."), + path.Join(curDir, "target"), + path.Join(u.HomeDir, ".config", "xds"), } { confFile = path.Join(d, xdsEnvFile) log.Infof("Search config in %s", confFile)