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
Diff Detail
Event Timeline
Good stuff. We just need a couple of changes to make this conform better with llvm guidelines.
include/lldb/Host/common/NativeProcessProtocol.h | ||
---|---|---|
73 | llvm::ArrayRef<int> signals | |
321 | 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 | ||
4 | I am pretty sure the CFLAGS_EXTRAS line is not necessary here. | |
packages/Python/lldbsuite/test/tools/lldb-server/signal-filtering/TestGdbRemote_QPassSignals.py | ||
74 | 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 | This is not a big deal, but in LLVM we generally don't put braces around blocks that fit on a single line. |
llvm::ArrayRef<int> signals