[Lldb-commits] [PATCH] D32930: New framework for lldb client-server communication tests.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Mon May 8 06:01:51 PDT 2017


Take a look at ErrorChecking.h in llvm, it contains some useful macros for
using expected and error
On Mon, May 8, 2017 at 5:42 AM Kamil Rytarowski via Phabricator via
lldb-commits <lldb-commits at lists.llvm.org> wrote:

> krytarowski added inline comments.
>
>
> ================
> Comment at: unittests/tools/lldb-server/inferior/thread_inferior.cpp:21
> +
> +  asm volatile ("int3");
> +  delay = false;
> ----------------
> int3 is specific to x86.
>
> Some instructions to emit software breakpoint in other architectures:
>
> https://github.com/NetBSD/src/commit/c215d1b7d6c1385720b27fd45189b5dea6d6e4aa
>
> 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.
>
>
> ================
> Comment at: unittests/tools/lldb-server/tests/MessageObjects.cpp:16
> +  pid = stoi(elements["pid"], nullptr, 16);
> +  parent_pid = stoi(elements["parent-pid"], nullptr, 16);
> +  real_uid = stoi(elements["real-uid"], nullptr, 16);
> ----------------
> labath wrote:
> > StringRef::getAsInteger
> `std::stoi` throws exceptions
>
>
> https://reviews.llvm.org/D32930
>
>
>
> _______________________________________________
> lldb-commits mailing list
> lldb-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170508/360fb0b9/attachment.html>


More information about the lldb-commits mailing list