From 33a02ed91a20a83ab912cb7f0403af819c62a0ab Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 21 Jan 2018 17:47:07 +0000 Subject: [PATCH] tests/A64/unicorn: Print interrupt number when InterruptHook is hit --- tests/A64/unicorn_emu/unicorn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/A64/unicorn_emu/unicorn.cpp b/tests/A64/unicorn_emu/unicorn.cpp index 4dac1343..ccb1feea 100644 --- a/tests/A64/unicorn_emu/unicorn.cpp +++ b/tests/A64/unicorn_emu/unicorn.cpp @@ -149,7 +149,7 @@ void Unicorn::DumpMemoryInformation() { CHECKED(uc_free(regions)); } -void Unicorn::InterruptHook(uc_engine* uc, u32, void* user_data) { +void Unicorn::InterruptHook(uc_engine* uc, u32 int_number, void* user_data) { Unicorn* this_ = reinterpret_cast(user_data); u32 esr; @@ -163,7 +163,7 @@ void Unicorn::InterruptHook(uc_engine* uc, u32, void* user_data) { this_->testenv.CallSVC(iss); break; default: - ASSERT_MSG(false, "Unhandled interrupt"); + ASSERT_MSG(false, "Unhandled interrupt: int_number: %#x, esr: %#x", int_number, esr); } }