History

Handle system exceptions in the scheduler.

arr committed 10 years ago

Commit 4f6417b1 parent 266fad62 files · +23 −16Browse files

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

Unified · Split

src/vm/thread.cpp+1−1
@@ -252,7 +252,7 @@ vm_thread_state_t vm_thread_t::execute(vm_t &virtual_machine, const uint32_t qua · 251 unmodified lines
252 catch (const unhandled_user_exception &uue)252 catch (const unhandled_user_exception &uue)
253 {253 {
254 // [TODO] Store the exception254 // [TODO] Store the exception
255 std::printf("%s - %s in %s at %d\n", uue.what(), uue.exception_id, uue.module_name, uue.program_counter);255 std::printf("%s - %s in %s at instruction %d\n", uue.what(), uue.exception_id, uue.module_name, uue.program_counter);
256 _registers.current_thread_state = vm_thread_state_t::broken;256 _registers.current_thread_state = vm_thread_state_t::broken;
257 }257 }
258 catch (const index_out_of_range_memory &ioor)258 catch (const index_out_of_range_memory &ioor)