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)


_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to