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:
parent
8b750c83f1
commit
10b8d64b03
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user