From 92b6d05aed7cbfa7ddb0c5dcc61318c69c03bc97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 1 Jan 2018 20:44:34 +0100 Subject: Fix how we pass exception Previous implementation reseted caught exception to type QtMipsException so we lost possibility to check for object type later on. --- qtmips_machine/qtmipsmachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp index 102dff0..6593dd0 100644 --- a/qtmips_machine/qtmipsmachine.cpp +++ b/qtmips_machine/qtmipsmachine.cpp @@ -94,7 +94,7 @@ void QtMipsMachine::step() { emit tick(); try { cr->step(); - } catch (QtMipsException e) { + } catch (QtMipsException &e) { run_t->stop(); set_status(ST_TRAPPED); emit program_trap(e); -- cgit v1.2.3