summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug
diff options
context:
space:
mode:
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
commit842b7cfc579490962ea2b1e2c987a2ea33e38b84 (patch)
treefb239ef4e79eeb14701efff1dc222f85662f30e9 /src/emu/debug
parentf44b654efd11608e80bb007e7123754963b8b169 (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.cpp4
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)
{