[Lldb-commits] [PATCH] D66034: Detects whether RESOURCE_TYPE_IO is defined.

Haibo Huang via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 9 15:49:21 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL368496: Detects whether RESOURCE_TYPE_IO is defined. (authored by hhb, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D66034?vs=214465&id=214472#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66034/new/

https://reviews.llvm.org/D66034

Files:
  lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp


Index: lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp
===================================================================
--- lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp
+++ lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp
@@ -313,6 +313,8 @@
           subcode_desc = nullptr;
           subcode_label = "unused";
           break;
+#if defined(RESOURCE_TYPE_IO)
+       // RESOURCE_TYPE_IO is introduced in macOS SDK 10.12.
         case RESOURCE_TYPE_IO:
           exc_desc = "EXC_RESOURCE RESOURCE_TYPE_IO";
           snprintf(code_desc_buf, sizeof(code_desc_buf), "%d MB",
@@ -320,6 +322,7 @@
           snprintf(subcode_desc_buf, sizeof(subcode_desc_buf), "%d MB",
             (int)EXC_RESOURCE_IO_OBSERVED(m_exc_subcode));;
           break;
+#endif
         }
       }
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66034.214472.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190809/664833fa/attachment.bin>


More information about the lldb-commits mailing list