[Lldb-commits] [PATCH] D88682: [lldb] [Process/NetBSD] Fix crash on unsupported i386 regs

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 2 10:42:32 PDT 2020


mgorny marked 2 inline comments as done.
mgorny added inline comments.


================
Comment at: lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp:398
     assert(false && "Unhandled i386 register.");
-    return 0;
+    return -1;
   }
----------------
krytarowski wrote:
> Use `llvm_unreachable` ? Same in other places where we add similar `assert()`.
@labath, what is the recommended practice for LLDB? Should I just replace these asserts with `llvm_unreachable(message)`?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88682/new/

https://reviews.llvm.org/D88682



More information about the lldb-commits mailing list