This is an archive of the discontinued LLVM Phabricator instance.

Handle EOF from `lldb-vscode`
ClosedPublic

Authored by jankratochvil on Jul 13 2019, 3:49 PM.

Details

Summary

Sometimes (when running lldb-vscode under strace) I get:

read(0, "", 16)                         = 0
read(0, "", 16)                         = 0
read(0, "", 16)                         = 0
...

Patch is obvious, isn't it? With this patch testcases finish properly even with strace:

read(0, "", 16)                         = 0
futex(0x1346508, FUTEX_WAKE_PRIVATE, 2147483647) = 0
stat("", 0x7ffe8f2634c8)                = -1 ENOENT (No such file or directory)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=9124, si_uid=1001, si_status=SIGINT, si_utime=1, si_stime=0} ---
close(4)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Diff Detail

Repository
rL LLVM

Event Timeline

jankratochvil created this revision.Jul 13 2019, 3:49 PM

Looks solid to me, but I'll defer to Greg to accept.

clayborg accepted this revision.Jul 15 2019, 5:52 PM
This revision is now accepted and ready to land.Jul 15 2019, 5:52 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 15 2019, 11:37 PM