From 66bf6ffa87154b002475e48bc3e3b7ba14060efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Marques?= Date: Tue, 22 Oct 2019 18:04:39 +0100 Subject: Catch polymorphic exceptions by reference (#352) --- riscv/interactive.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'riscv/interactive.cc') diff --git a/riscv/interactive.cc b/riscv/interactive.cc index 40c53bf..405bf35 100644 --- a/riscv/interactive.cc +++ b/riscv/interactive.cc @@ -108,7 +108,7 @@ void sim_t::interactive() else fprintf(stderr, "Unknown command %s\n", cmd.c_str()); } - catch(trap_t t) {} + catch(trap_t& t) {} } ctrlc_pressed = false; } @@ -411,7 +411,7 @@ void sim_t::interactive_until(const std::string& cmd, const std::vector