summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-02-12 18:42:05 +0000
committerGreg Clayton <gclayton@apple.com>2013-02-12 18:42:05 +0000
commitd9010963457f5ec3f1e5838c9d64565088f0a15a (patch)
tree4fd85850d1b46fae1f4d507d435470806d5985da
parentcd9e4e6063d30776b1838cb5129370e9fbc31973 (diff)
downloadbcm5719-llvm-d9010963457f5ec3f1e5838c9d64565088f0a15a.tar.gz
bcm5719-llvm-d9010963457f5ec3f1e5838c9d64565088f0a15a.zip
<rdar://problem/13184389>
_regexp-list needs to treat "list -" as "source list -r" llvm-svn: 174987
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 240d37b165c..4ba0031806b 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -591,6 +591,7 @@ CommandInterpreter::LoadCommandDictionary ()
if (list_regex_cmd_ap->AddRegexCommand("^([0-9]+)[[:space:]]*$", "source list --line %1") &&
list_regex_cmd_ap->AddRegexCommand("^(.*[^[:space:]])[[:space:]]*:[[:space:]]*([[:digit:]]+)[[:space:]]*$", "source list --file '%1' --line %2") &&
list_regex_cmd_ap->AddRegexCommand("^\\*?(0x[[:xdigit:]]+)[[:space:]]*$", "source list --address %1") &&
+ list_regex_cmd_ap->AddRegexCommand("^-[[:space:]]*$", "source list --reverse") &&
list_regex_cmd_ap->AddRegexCommand("^(.+)$", "source list --name \"%1\"") &&
list_regex_cmd_ap->AddRegexCommand("^$", "source list"))
{
OpenPOWER on IntegriCloud