summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-08-23 00:22:02 +0000
committerGreg Clayton <gclayton@apple.com>2012-08-23 00:22:02 +0000
commit754a9369db5d566ec4ec14139c3276bddfbe44c8 (patch)
treebfb8843822afb5a84543873d6ac35a237fd45995 /lldb/source/Interpreter/CommandObjectRegexCommand.cpp
parentbf493942b05b4c15aa93aab69c682ff7bdb44b45 (diff)
downloadbcm5719-llvm-754a9369db5d566ec4ec14139c3276bddfbe44c8.tar.gz
bcm5719-llvm-754a9369db5d566ec4ec14139c3276bddfbe44c8.zip
<rdar://problem/12022079>
Added a new "interpreter" properties to encapsulate any properties for the command interpreter. Right now this contains only "expand-regex-aliases", so you can now enable (disabled by default) the echoing of the command that a regular expression alias expands to: (lldb) b main Breakpoint created: 1: name = 'main', locations = 1 Note that the expanded regular expression command wasn't shown by default. You can enable it if you want to: (lldb) settings set interpreter.expand-regex-aliases true (lldb) b main breakpoint set --name 'main' Breakpoint created: 1: name = 'main', locations = 1 Also enabled auto completion for enumeration option values (OptionValueEnumeration) and for boolean option values (OptionValueBoolean). Fixed auto completion for settings names when nothing has been type (it should show all settings). llvm-svn: 162418
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectRegexCommand.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObjectRegexCommand.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
index de6faba4d87..27a67e5e02c 100644
--- a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
+++ b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
@@ -76,7 +76,8 @@ CommandObjectRegexCommand::DoExecute
}
}
// Interpret the new command and return this as the result!
- result.GetOutputStream().Printf("%s\n", new_command.c_str());
+ if (m_interpreter.GetExpandRegexAliases())
+ result.GetOutputStream().Printf("%s\n", new_command.c_str());
return m_interpreter.HandleCommand(new_command.c_str(), eLazyBoolCalculate, result);
}
}
OpenPOWER on IntegriCloud