diff options
author | Michał Górny <mgorny@moritz.systems> | 2021-03-29 17:05:30 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2021-04-24 11:08:33 +0200 |
commit | 6c37984ebaf4ee01df6a9b3f78e45f70dcd6fb33 (patch) | |
tree | ec43c115b6c54721218a02145f9bc0a002da4f02 /lldb/packages/Python/lldbsuite/test/lldbutil.py | |
parent | 312257688eb0c09a8e6915ced2acdf0bcbbad353 (diff) | |
download | llvm-6c37984ebaf4ee01df6a9b3f78e45f70dcd6fb33.zip llvm-6c37984ebaf4ee01df6a9b3f78e45f70dcd6fb33.tar.gz llvm-6c37984ebaf4ee01df6a9b3f78e45f70dcd6fb33.tar.bz2 |
[lldb] [gdb-remote server] Introduce new stop reasons for fork and vfork
Introduce three new stop reasons for fork, vfork and vforkdone events.
This includes server support for serializing fork/vfork events into
gdb-remote protocol. The stop infos for the two base events take a pair
of PID and TID for the newly forked process.
Differential Revision: https://reviews.llvm.org/D100196
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbutil.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbutil.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbutil.py b/lldb/packages/Python/lldbsuite/test/lldbutil.py index 5fff372..20a6d28 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbutil.py +++ b/lldb/packages/Python/lldbsuite/test/lldbutil.py @@ -252,6 +252,12 @@ def stop_reason_to_str(enum): return "watchpoint" elif enum == lldb.eStopReasonExec: return "exec" + elif enum == lldb.eStopReasonFork: + return "fork" + elif enum == lldb.eStopReasonVFork: + return "vfork" + elif enum == lldb.eStopReasonVForkDone: + return "vforkdone" elif enum == lldb.eStopReasonSignal: return "signal" elif enum == lldb.eStopReasonException: |