aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSettings.h
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-01-19 19:22:41 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-01-19 19:22:41 +0000
commita28b89c700c5ec42efbf91b6294555a05e33c742 (patch)
tree797c122494eb35047377905c5aafb832f86e6aa4 /lldb/source/Commands/CommandObjectSettings.h
parent8ee108bf98844d86dc856b636294044b8b8d0873 (diff)
downloadllvm-a28b89c700c5ec42efbf91b6294555a05e33c742.zip
llvm-a28b89c700c5ec42efbf91b6294555a05e33c742.tar.gz
llvm-a28b89c700c5ec42efbf91b6294555a05e33c742.tar.bz2
rdar://problem/10712130
Fixed an issue where backtick char is not properly honored when setting the frame-format variable, like the following: (lldb) settings set frame-format frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name-with-args}${function.pc-offset}}}{ at ${line.file.basename}:${line.number}}\n (lldb) settings show frame-format frame-format (string) = "frame #${frame.index}: ${frame.pc}{ `${module.file.basename}{${function.name-with-args}${function.pc-offset}}}{` at ${line.file.basename}:${line.number}}\n" (lldb) o CommandObjectSettings.h/.cpp: Modify the command object impl to require raw command string instead of parsed command string, which also fixes an outstanding issue that customizing the prompt with trailing spaces doesn't work. o Args.cpp: During CommandInterpreter::HandleCommand(), there is a PreprocessCommand phase which already strips/processes pairs of backticks as an expression eval step. There's no need to treat a backtick as starting a quote. o TestAbbreviations.py and change_prompt.lldb: Fixed incorrect test case/logic. o TestSettings.py: Remove expectedFailure decorator. llvm-svn: 148491
Diffstat (limited to 'lldb/source/Commands/CommandObjectSettings.h')
-rw-r--r--lldb/source/Commands/CommandObjectSettings.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectSettings.h b/lldb/source/Commands/CommandObjectSettings.h
index 13f781f..e446da7 100644
--- a/lldb/source/Commands/CommandObjectSettings.h
+++ b/lldb/source/Commands/CommandObjectSettings.h
@@ -50,7 +50,15 @@ public:
virtual bool
Execute (Args& command,
- CommandReturnObject &result);
+ CommandReturnObject &result)
+ { return false; }
+
+ virtual bool
+ WantsRawCommandString() { return true; }
+
+ virtual bool
+ ExecuteRawCommandString (const char *raw_command,
+ CommandReturnObject &result);
virtual Options *
GetOptions ();