[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 6 16:10:35 PST 2017


clayborg requested changes to this revision.
clayborg added a comment.
This revision now requires changes to proceed.

Very close. Can we try to get UpdateAutomaticSignalFiltering out of lldb_private::Process as my inline comments suggest? It would be cleaner and I am not sure we actually need Process::UpdateAutomaticSignalFiltering() for all processes.



================
Comment at: include/lldb/Target/Process.h:3148
 
+  virtual Error UpdateAutomaticSignalFiltering();
+
----------------
Can we remove this and only have it in ProcessGDBRemote? Then we just call it when we need to in ProcessGDBRemote? This seems like something that ProcessGDBRemote should take care of without having Process knowing about it. Seems like a adding a call to ProcessGDBRemote::UpdateAutomaticSignalFiltering() can be done in ProcessGDBRemote::WillResume() and ProcessGDBRemote::DidLaunch() might do the trick? It seems like each process plug-in will have different needs regarding signals.


================
Comment at: source/Plugins/Process/gdb-remote/ProcessGDBRemote.h:401
+  Error UpdateAutomaticSignalFiltering() override;
+
 private:
----------------
Remove the override if we handle this in UpdateAutomaticSignalFiltering in specific to ProcessGDBRemote only?


https://reviews.llvm.org/D30520





More information about the lldb-commits mailing list