ops[2].atom = op;
simgrid::dwarf::ExpressionStack stack;
-
try {
simgrid::dwarf::execute(ops, 3, state, stack);
- }
- catch(std::runtime_error& e) {
+ } catch (const simgrid::dwarf::evaluation_error&) {
fprintf(stderr,"Expression evaluation error");
}
try {
ops[0].atom = DW_OP_drop;
simgrid::dwarf::execute(ops, 1, state, stack);
- } catch (simgrid::dwarf::evaluation_error& e) {
+ } catch (const simgrid::dwarf::evaluation_error&) {
caught_ex = true;
}
if (not caught_ex)
assert(stack.top() == a);
assert(stack.top(1) == b);
- }
- catch(std::runtime_error& e) {
+ } catch (const simgrid::dwarf::evaluation_error&) {
fprintf(stderr,"Expression evaluation error");
}
}
assert(stack.size() == 1);
assert(stack.top() == foo);
- }
- catch(std::runtime_error& e) {
+ } catch (const simgrid::dwarf::evaluation_error&) {
fprintf(stderr,"Expression evaluation error");
}
}