diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2022-06-11 19:57:50 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2022-06-11 19:58:09 -0400 |
commit | 842b7cfc579490962ea2b1e2c987a2ea33e38b84 (patch) | |
tree | fb239ef4e79eeb14701efff1dc222f85662f30e9 /src/emu/debug | |
parent | f44b654efd11608e80bb007e7123754963b8b169 (diff) |
Prevent debugger commands from being evaluated when they are assignment expressions and only supposed to be validated at the moment
Diffstat (limited to 'src/emu/debug')
-rw-r--r-- | src/emu/debug/debugcon.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/debug/debugcon.cpp b/src/emu/debug/debugcon.cpp index 508c2377f54..92f62c9909b 100644 --- a/src/emu/debug/debugcon.cpp +++ b/src/emu/debug/debugcon.cpp @@ -388,7 +388,9 @@ CMDERR debugger_console::internal_parse_command(std::string_view command, bool e { try { - parsed_expression(visible_symtable(), command_or_expr).execute(); + parsed_expression expr(visible_symtable(), command_or_expr); + if (execute) + expr.execute(); } catch (expression_error &err) { |