diff options
| author | Pavel Labath <labath@google.com> | 2017-06-19 12:47:50 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2017-06-19 12:47:50 +0000 |
| commit | 3508fc8cc518f2f62d38c351c90f7815f835c3e4 (patch) | |
| tree | b5f3493c3e24f3739b2e1d3a4da707e0c0405f72 /lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.h | |
| parent | cc1c112806556e75453e0c9a1dc0f4038aecb4ef (diff) | |
| download | bcm5719-llvm-3508fc8cc518f2f62d38c351c90f7815f835c3e4.tar.gz bcm5719-llvm-3508fc8cc518f2f62d38c351c90f7815f835c3e4.zip | |
Add pretty-printer for wait(2) statuses and modernize the code handling them
Summary:
A number of places were trying to decode the result of wait(). Add a simple
utility function that does that and a struct that encapsulates the
decoded result. Then also provide a pretty-printer for that class.
Reviewers: zturner, krytarowski, eugene
Subscribers: lldb-commits, mgorny
Differential Revision: https://reviews.llvm.org/D33998
llvm-svn: 305689
Diffstat (limited to 'lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.h')
| -rw-r--r-- | lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.h b/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.h index 758956e3dca..7a1303faea6 100644 --- a/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.h +++ b/lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.h @@ -123,7 +123,7 @@ private: void AttachToInferior(MainLoop &mainloop, lldb::pid_t pid, Status &error); void MonitorCallback(lldb::pid_t pid, int signal); - void MonitorExited(lldb::pid_t pid, int signal, int status); + void MonitorExited(lldb::pid_t pid, WaitStatus status); void MonitorSIGSTOP(lldb::pid_t pid); void MonitorSIGTRAP(lldb::pid_t pid); void MonitorSignal(lldb::pid_t pid, int signal); |

