1
1
mirror of https://github.com/tstack/lnav.git synced 2024-08-17 00:40:30 +03:00

[lnav_log] fix lldb arguments

This commit is contained in:
Timothy Stack 2019-10-17 20:02:32 -07:00
parent 8b750c83f1
commit 10b8d64b03

View File

@ -422,9 +422,8 @@ static void sigabrt(int sig)
snprintf(pid_str, sizeof(pid_str), "--pid=%d", lnav_pid);
execlp("gdb", "gdb", pid_str, nullptr);
snprintf(pid_str, sizeof(pid_str),
"--attach-pid=%d", lnav_pid);
execlp("lldb", "lldb", pid_str, nullptr);
snprintf(pid_str, sizeof(pid_str), "%d", lnav_pid);
execlp("lldb", "lldb", "--attach-pid", pid_str, nullptr);
fprintf(stderr, "Could not attach gdb or lldb, exiting.\n");
_exit(1);