[Lldb-commits] [PATCH] D58228: [lldb] [lldb-server] Catch and report errors from main loop
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Feb 14 05:52:23 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL354030: [lldb] [lldb-server] Catch and report errors from main loop (authored by mgorny, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D58228?vs=186812&id=186830#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58228/new/
https://reviews.llvm.org/D58228
Files:
lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp
Index: lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp
===================================================================
--- lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp
+++ lldb/trunk/tools/lldb-server/lldb-gdbserver.cpp
@@ -533,7 +533,12 @@
return 1;
}
- mainloop.Run();
+ Status ret = mainloop.Run();
+ if (ret.Fail()) {
+ fprintf(stderr, "lldb-server terminating due to error: %s\n",
+ ret.AsCString());
+ return 1;
+ }
fprintf(stderr, "lldb-server exiting...\n");
return 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58228.186830.patch
Type: text/x-patch
Size: 523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190214/96567fcf/attachment.bin>
More information about the lldb-commits
mailing list