QPassSignals package allows lldb client to tell lldb-server to ignore certain types of signals and re-inject them back to inferior without stopping execution.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Good stuff. We just need a couple of changes to make this conform better with llvm guidelines.
include/lldb/Host/common/NativeProcessProtocol.h | ||
---|---|---|
72 ↗ | (On Diff #89462) | llvm::ArrayRef<int> signals |
320 ↗ | (On Diff #89462) | use of unordered_set is discouraged in llvm http://llvm.org/docs/ProgrammersManual.html#set-like-containers-std-set-smallset-setvector-etc. It sounds like this would be a good use-case for a llvm::DenseSet or potentially SmallSet. |
packages/Python/lldbsuite/test/tools/lldb-server/signal-filtering/Makefile | ||
3 ↗ | (On Diff #89462) | I am pretty sure the CFLAGS_EXTRAS line is not necessary here. |
packages/Python/lldbsuite/test/tools/lldb-server/signal-filtering/TestGdbRemote_QPassSignals.py | ||
73 ↗ | (On Diff #89462) | I really like how these tests are written. May suggest one more improvement:
This should verify that we actually pass the signals and not just swallow them silently. |
source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | ||
3097 ↗ | (On Diff #89462) | This is not a big deal, but in LLVM we generally don't put braces around blocks that fit on a single line. |