浏览代码

arm_unicorn: Log unmapped memory access address.

bunnei 8 年之前
父节点
当前提交
17af2937fe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/arm/unicorn/arm_unicorn.cpp

+ 1 - 1
src/core/arm/unicorn/arm_unicorn.cpp

@@ -52,7 +52,7 @@ static bool UnmappedMemoryHook(uc_engine* uc, uc_mem_type type, u64 addr, int si
                                void* user_data) {
     ARM_Interface::ThreadContext ctx{};
     Core::CPU().SaveContext(ctx);
-    ASSERT_MSG(false, "Attempted to read from unmapped memory");
+    ASSERT_MSG(false, "Attempted to read from unmapped memory: 0x%llx", addr);
     return {};
 }