History

Update UX for some scenarios. - PCs should be prefixed with an '@' - Function symbol printing in debugger - Disassemble command can now specify absolute PC to disassemble - Exception printing - md5sum program - prints new lines

arr committed 9 years ago

Commit 55b7ecc1 parent b6c3b7d5 files · +69 −56Browse files

Showing the changes to src/vm/thread.cpp (1 of 5 files). Show all

Unified · Split

src/vm/thread.cpp+1−1
@@ -239,7 +239,7 @@ vm_thread_state_t vm_thread_t::execute(vm_t &vm, const uint32_t quanta) · 238 unmodified lines
239239 catch (const unhandled_user_exception &uue)
240240 {
241241 _error_message = calloc_memory<char>(max_error_message);
242− const int ec = std::snprintf(_error_message, max_error_message, "%s - '%s' in %s at instruction %d", uue.what(), uue.exception_id, uue.module_name, uue.program_counter);
242+ const int ec = std::snprintf(_error_message, max_error_message, "%s in %s @%d\n %s", uue.what(), uue.module_name, uue.program_counter, uue.exception_id);
243243 assert(ec > 0 && ec < max_error_message);
244244 (void)ec;
245245 _registers.current_thread_state = vm_thread_state_t::broken;