Take a look at ErrorChecking.h in llvm, it contains some useful macros for using expected and error<br><div class="gmail_quote"><div dir="ltr">On Mon, May 8, 2017 at 5:42 AM Kamil Rytarowski via Phabricator via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org">lldb-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">krytarowski added inline comments.<br>
<br>
<br>
================<br>
Comment at: unittests/tools/lldb-server/inferior/thread_inferior.cpp:21<br>
+<br>
+  asm volatile ("int3");<br>
+  delay = false;<br>
----------------<br>
int3 is specific to x86.<br>
<br>
Some instructions to emit software breakpoint in other architectures:<br>
<a href="https://github.com/NetBSD/src/commit/c215d1b7d6c1385720b27fd45189b5dea6d6e4aa" rel="noreferrer" target="_blank">https://github.com/NetBSD/src/commit/c215d1b7d6c1385720b27fd45189b5dea6d6e4aa</a><br>
<br>
Also there is a support for threads, this is not as portable as it could be. The simplest example could be without them, and threads in debuggee could be tested in dedicated regression tests. This will help out to sort bugs with threads from other features.<br>
<br>
<br>
================<br>
Comment at: unittests/tools/lldb-server/tests/MessageObjects.cpp:16<br>
+  pid = stoi(elements["pid"], nullptr, 16);<br>
+  parent_pid = stoi(elements["parent-pid"], nullptr, 16);<br>
+  real_uid = stoi(elements["real-uid"], nullptr, 16);<br>
----------------<br>
labath wrote:<br>
> StringRef::getAsInteger<br>
`std::stoi` throws exceptions<br>
<br>
<br>
<a href="https://reviews.llvm.org/D32930" rel="noreferrer" target="_blank">https://reviews.llvm.org/D32930</a><br>
<br>
<br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br>
</blockquote></div>