From 5431e59882d100759640dbaa5c0477ec1f4d046b Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Tue, 8 Jun 2021 01:32:37 -0700 Subject: [PATCH] updated vmprofiler and fixed a bug with instruction fetchs... --- dependencies/vmprofiler | 2 +- src/vmemu_t.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dependencies/vmprofiler b/dependencies/vmprofiler index c8ff24a..1fad857 160000 --- a/dependencies/vmprofiler +++ b/dependencies/vmprofiler @@ -1 +1 @@ -Subproject commit c8ff24a8b44466dd2a9e2e342c83774b61004eb5 +Subproject commit 1fad85707785843ec96b7d052a601aad69b47213 diff --git a/src/vmemu_t.cpp b/src/vmemu_t.cpp index f76ba4e..c65d7eb 100644 --- a/src/vmemu_t.cpp +++ b/src/vmemu_t.cpp @@ -89,6 +89,9 @@ namespace vm { std::printf( "failed on uc_emu_start() with error returned %u: %s\n", err, uc_strerror( err ) ); + for ( auto &[ code_block, uc_code_block_context ] : code_blocks ) + entries.push_back( code_block ); + return false; } @@ -141,10 +144,8 @@ namespace vm if ( ( err = uc_emu_start( uc, rip, NULL, NULL, NULL ) ) ) { std::printf( "failed on uc_emu_start() with error returned %u: %s\n", err, uc_strerror( err ) ); - return false; } - return true; };