summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp7
-rw-r--r--lldb/test/functionalities/command_regex/TestCommandRegex.py4
2 files changed, 9 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index e5c6e325d83..0b9e4db2450 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -1376,6 +1376,13 @@ CommandInterpreter::HandleCommand (const char *command_line,
}
}
break;
+
+ default:
+ result.AppendErrorWithFormat ("unknown command shorthand suffix: '%s'\n",
+ suffix.c_str());
+ result.SetStatus (eReturnStatusFailed);
+ return false;
+
}
}
}
diff --git a/lldb/test/functionalities/command_regex/TestCommandRegex.py b/lldb/test/functionalities/command_regex/TestCommandRegex.py
index 3cc34ac0ae0..c2fe66b1cbd 100644
--- a/lldb/test/functionalities/command_regex/TestCommandRegex.py
+++ b/lldb/test/functionalities/command_regex/TestCommandRegex.py
@@ -27,13 +27,13 @@ class CommandRegexTestCase(TestBase):
# Substitute 'Help!' for 'help' using the 'commands regex' mechanism.
child.expect_exact(prompt)
- child.sendline("command regex 'Help!'")
+ child.sendline("command regex 'Help__'")
child.expect_exact(regex_prompt)
child.sendline('s/^$/help/')
child.expect_exact(regex_prompt1)
child.sendline('')
# Help!
- child.sendline('Help!')
+ child.sendline('Help__')
# If we see the familiar 'help' output, the test is done.
child.expect('The following is a list of built-in, permanent debugger commands:')
OpenPOWER on IntegriCloud