summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author ajrhacker <ajrhacker@users.noreply.github.com>2017-03-03 20:29:57 -0500
committer GitHub <noreply@github.com>2017-03-03 20:29:57 -0500
commitf7d628133615e18be22f7687ad4942ec90d3ca94 (patch)
tree0fd8d70896c4f582bc36094d31408c7790d19319
parentdd87284e28ec0d69fbecea0a26bc3b997022271b (diff)
parent4484da457e89e5848c704740f5610fa118197174 (diff)
Merge pull request #2113 from npwoods/fix_bpset
Fixing stupid error in the bpset command
-rw-r--r--src/emu/debug/debugcmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index 384da714f4e..0309aab25be 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -1144,11 +1144,11 @@ void debugger_commands::execute_bpset(int ref, const std::vector<std::string> &p
/* param 2 is the condition */
parsed_expression condition(&cpu->debug()->symtable());
- if (!debug_command_parameter_expression(params[1], condition))
+ if (params.size() > 1 && !debug_command_parameter_expression(params[1], condition))
return;
/* param 3 is the action */
- if (!debug_command_parameter_command(action = params[2].c_str()))
+ if (params.size() > 2 && !debug_command_parameter_command(action = params[2].c_str()))
return;
/* set the breakpoint */