[Lldb-commits] [PATCH] D88796: [lldb] Initial version of FreeBSD remote process plugin

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 6 06:55:14 PDT 2020


labath added inline comments.


================
Comment at: lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp:269-375
+  Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_PLATFORM));
+  LLDB_LOG(log, "target {0}", target);
+
+  // If we're a remote host, use standard behavior from parent class.
+  if (!IsHost()) {
+    printf("pare\n");
+    return PlatformPOSIX::DebugProcess(launch_info, debugger, target, error);
----------------
krytarowski wrote:
> labath wrote:
> > I think it's time for a switcheroo -- move this code into PlatformPOSIX::DebugProcess, and move that function into PlatformDarwin.
> Please defer any refactoring to a separate, follow up commit. Here is a lot of room for code deduplication, at least for ELF platforms.
I wasn't explicit in that, but I certainly did not mean for that change to be folded into this patch. That said, preparatory patches are generally better than follow-up changes for these kinds of things. Doing it later means that the commit will be larger than necessary (and creates the risk of the change not materializing).


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

https://reviews.llvm.org/D88796



More information about the lldb-commits mailing list