summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectSettings.h
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-01-21 01:45:18 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-01-21 01:45:18 +0000
commit5928f64e2cc44375ec20521a5c5308aeaa7f9ce5 (patch)
tree93a18b7a9d118add78cefbdfffc8d3c73d33f665 /lldb/source/Commands/CommandObjectSettings.h
parent6b10d5470eb7572a562859b9881069a2eb24ee38 (diff)
downloadbcm5719-llvm-5928f64e2cc44375ec20521a5c5308aeaa7f9ce5.tar.gz
bcm5719-llvm-5928f64e2cc44375ec20521a5c5308aeaa7f9ce5.zip
Followup check in for http://llvm.org/viewvc/llvm-project?rev=148491&view=rev,
where we changed the CommandObjectSettingsSet object impl to require raw command string. Do the same for CommandObjectSettingsReplace class and add two test cases; one for the "settings replace" command and the other to ensure that completion for variable name still works. llvm-svn: 148615
Diffstat (limited to 'lldb/source/Commands/CommandObjectSettings.h')
-rw-r--r--lldb/source/Commands/CommandObjectSettings.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectSettings.h b/lldb/source/Commands/CommandObjectSettings.h
index 057c86841bc..b83af5eb98e 100644
--- a/lldb/source/Commands/CommandObjectSettings.h
+++ b/lldb/source/Commands/CommandObjectSettings.h
@@ -212,7 +212,19 @@ public:
virtual bool
Execute (Args& command,
- CommandReturnObject &result);
+ CommandReturnObject &result)
+ { return false; }
+
+ virtual bool
+ WantsRawCommandString() { return true; }
+
+ // Overrides base class's behavior where WantsCompletion = !WantsRawCommandString.
+ virtual bool
+ WantsCompletion() { return true; }
+
+ virtual bool
+ ExecuteRawCommandString (const char *raw_command,
+ CommandReturnObject &result);
virtual int
HandleArgumentCompletion (Args &input,
OpenPOWER on IntegriCloud