[Lldb-commits] [PATCH] D70023: [lldb] [Process/NetBSD] Copy watchpoints to newly-created threads

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Nov 23 02:31:28 PST 2019


mgorny added inline comments.


================
Comment at: lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp:254-255
+                 .CopyHardwareWatchpointsFrom(
+                     static_cast<NativeRegisterContextNetBSD &>(
+                         source.GetRegisterContext()));
+  if (!s.Fail()) {
----------------
labath wrote:
> I'd probably make a covariant override of `GetRegisterContext` which returns a `NativeRegisterContextNetBSD&`.
Thanks. I didn't know this was actually legal in C++.


================
Comment at: lldb/test/Shell/Watchpoint/netbsd-nouserdbregs.test:5
+# REQUIRES: native && system-netbsd && (target-x86 || target-x86_64) && !dbregs-set
+# RUN: %clang %p/Inputs/thread-dbreg.c -pthread -g -o %t.out
+# RUN: %lldb -b -o 'settings set interpreter.stop-command-source-on-error false' -s %s %t.out 2>&1 | FileCheck %s
----------------
labath wrote:
> mgorny wrote:
> > Note to self: try `%clang_host` as suggested in D70050.
> So, did you try it?
Sorry, I've forgotten about it. Done now. I presume I don't need `native` in REQUIRES now.

Will address remaining comments soonish.


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

https://reviews.llvm.org/D70023





More information about the lldb-commits mailing list