[Lldb-commits] [lldb] r211124 - Those were not the right defines for memory errors, and the right defines aren't

Jim Ingham jingham at apple.com
Tue Jun 17 14:02:44 PDT 2014


Author: jingham
Date: Tue Jun 17 16:02:44 2014
New Revision: 211124

URL: http://llvm.org/viewvc/llvm-project?rev=211124&view=rev
Log:
Those were not the right defines for memory errors, and the right defines aren't
available.  So going back to a generic error instead.

<rdar://problem/17058708>

Modified:
    lldb/trunk/tools/debugserver/source/DNB.cpp

Modified: lldb/trunk/tools/debugserver/source/DNB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/DNB.cpp?rev=211124&r1=211123&r2=211124&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/DNB.cpp (original)
+++ lldb/trunk/tools/debugserver/source/DNB.cpp Tue Jun 17 16:02:44 2014
@@ -210,14 +210,7 @@ kqueue_thread (void *arg)
             if (exited)
             {
                 if (death_event.data & NOTE_EXIT_MEMORY)
-                {
-                    if (death_event.data & NOTE_VM_PRESSURE)
-                        DNBProcessSetExitInfo (child_pid, "Terminated due to Memory Pressure");
-                    else if (death_event.data & NOTE_VM_ERROR)
-                        DNBProcessSetExitInfo (child_pid, "Terminated due to Memory Error");
-                    else
-                        DNBProcessSetExitInfo (child_pid, "Terminated due to unknown Memory condition");
-                }
+                    DNBProcessSetExitInfo (child_pid, "Terminated due to memory issue");
                 else if (death_event.data & NOTE_EXIT_DECRYPTFAIL)
                     DNBProcessSetExitInfo (child_pid, "Terminated due to decrypt failure");
                 else if (death_event.data & NOTE_EXIT_CSERROR)





More information about the lldb-commits mailing list