summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-31 22:22:06 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-31 22:22:06 +0000
commit8e9383d69c96e72e6fb30d72e8c35543cc1b5949 (patch)
treeaa2259dd46d400e6d7bfedf5ca642a00bc496ca6
parentfc8feb8137872d70d87f566888a099185e1cb3df (diff)
downloadbcm5719-llvm-8e9383d69c96e72e6fb30d72e8c35543cc1b5949.tar.gz
bcm5719-llvm-8e9383d69c96e72e6fb30d72e8c35543cc1b5949.zip
Revert 143359 and modify the test case to not include non-valid c identifier character.
llvm-svn: 143372
-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