mirror of
https://github.com/tstack/lnav.git
synced 2024-09-11 13:05:51 +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);
|
snprintf(pid_str, sizeof(pid_str), "--pid=%d", lnav_pid);
|
||||||
execlp("gdb", "gdb", pid_str, nullptr);
|
execlp("gdb", "gdb", pid_str, nullptr);
|
||||||
|
|
||||||
snprintf(pid_str, sizeof(pid_str),
|
snprintf(pid_str, sizeof(pid_str), "%d", lnav_pid);
|
||||||
"--attach-pid=%d", lnav_pid);
|
execlp("lldb", "lldb", "--attach-pid", pid_str, nullptr);
|
||||||
execlp("lldb", "lldb", pid_str, nullptr);
|
|
||||||
|
|
||||||
fprintf(stderr, "Could not attach gdb or lldb, exiting.\n");
|
fprintf(stderr, "Could not attach gdb or lldb, exiting.\n");
|
||||||
_exit(1);
|
_exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user