diff options
| author | Vedant Kumar <vsk@apple.com> | 2017-12-08 01:09:39 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2017-12-08 01:09:39 +0000 |
| commit | b773e488c980bde0cb45ae061bf8c9a1058f897c (patch) | |
| tree | 76b10db0a5b432f671b3a05e565b144d7b299530 /lldb/source/Plugins/Process/Darwin/MachException.cpp | |
| parent | 0fb6faa0becbf5e4dadb1656f0d7aea286e1ad37 (diff) | |
| download | bcm5719-llvm-b773e488c980bde0cb45ae061bf8c9a1058f897c.tar.gz bcm5719-llvm-b773e488c980bde0cb45ae061bf8c9a1058f897c.zip | |
Remove extant references to g_message_mutex, NFC
Thanks to Jim Ingham for providing the explanation!
llvm-svn: 320126
Diffstat (limited to 'lldb/source/Plugins/Process/Darwin/MachException.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/Darwin/MachException.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lldb/source/Plugins/Process/Darwin/MachException.cpp b/lldb/source/Plugins/Process/Darwin/MachException.cpp index 7d956dfc650..3077535da6a 100644 --- a/lldb/source/Plugins/Process/Darwin/MachException.cpp +++ b/lldb/source/Plugins/Process/Darwin/MachException.cpp @@ -57,11 +57,6 @@ extern "C" kern_return_t catch_mach_exception_raise_state_identity( extern "C" boolean_t mach_exc_server(mach_msg_header_t *InHeadP, mach_msg_header_t *OutHeadP); -// Any access to the g_message variable should be done by locking the -// g_message_mutex first, using the g_message variable, then unlocking -// the g_message_mutex. See MachException::Message::CatchExceptionRaise() -// for sample code. - static MachException::Data *g_message = NULL; extern "C" kern_return_t catch_mach_exception_raise_state( @@ -279,9 +274,6 @@ void MachException::Message::Dump(Stream &stream) const { bool MachException::Message::CatchExceptionRaise(task_t task) { bool success = false; - // locker will keep a mutex locked until it goes out of scope - // PThreadMutex::Locker locker(&g_message_mutex); - // DNBLogThreaded("calling mach_exc_server"); state.task_port = task; g_message = &state; // The exc_server function is the MIG generated server handling function |

