summaryrefslogtreecommitdiffstats
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
author ajrhacker <ajrhacker@users.noreply.github.com>2017-03-03 20:30:11 -0500
committer GitHub <noreply@github.com>2017-03-03 20:30:11 -0500
commit64636a15836f33a35eeb15c33a44d6b32a2fe078 (patch)
treeb060ffd1a2f4f2f7e497246a0aaf1e74bfdc0571 /src/emu/debug/debugcmd.cpp
parentf7d628133615e18be22f7687ad4942ec90d3ca94 (diff)
parent234ad468eb149060282b5d3a8c0d76e3570057a4 (diff)
Merge pull request #2114 from npwoods/fix_more
Fixed a few more issues broken similarly to 'bpset'
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index 0309aab25be..131eb2b8f8f 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -1302,11 +1302,11 @@ void debugger_commands::execute_wpset(int ref, const std::vector<std::string> &p
/* param 4 is the condition */
parsed_expression condition(&space->device().debug()->symtable());
- if (!debug_command_parameter_expression(params[3], condition))
+ if (params.size() > 3 && !debug_command_parameter_expression(params[3], condition))
return;
/* param 5 is the action */
- if (!debug_command_parameter_command(action = params[4].c_str()))
+ if (params.size() > 4 && !debug_command_parameter_command(action = params[4].c_str()))
return;
/* set the watchpoint */
@@ -1444,11 +1444,11 @@ void debugger_commands::execute_rpset(int ref, const std::vector<std::string> &p
/* param 1 is the condition */
parsed_expression condition(&cpu->debug()->symtable());
- if (!debug_command_parameter_expression(params[0], condition))
+ if (params.size() > 0 && !debug_command_parameter_expression(params[0], condition))
return;
/* param 2 is the action */
- if (!debug_command_parameter_command(action = params[1].c_str()))
+ if (params.size() > 1 && !debug_command_parameter_command(action = params[1].c_str()))
return;
/* set the breakpoint */