aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/OptionGroupFormat.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-04-28 20:55:26 +0000
committerGreg Clayton <gclayton@apple.com>2011-04-28 20:55:26 +0000
commit68ebae61d1e51c2741c14bc9f1995270c84f51a6 (patch)
tree3b8d40d496747c4526cba0082267cd09c590d698 /lldb/source/Interpreter/OptionGroupFormat.cpp
parentd36bdb5208dc7a9d7eab8e210606d459976d7fb3 (diff)
downloadllvm-68ebae61d1e51c2741c14bc9f1995270c84f51a6.zip
llvm-68ebae61d1e51c2741c14bc9f1995270c84f51a6.tar.gz
llvm-68ebae61d1e51c2741c14bc9f1995270c84f51a6.tar.bz2
Added the ability to specify dumping options (show types, show location,
depth control, pointer depth, and more) when dumping memory and viewing as a type. llvm-svn: 130436
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupFormat.cpp')
-rw-r--r--lldb/source/Interpreter/OptionGroupFormat.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/OptionGroupFormat.cpp b/lldb/source/Interpreter/OptionGroupFormat.cpp
index 0bc29ee..213255e 100644
--- a/lldb/source/Interpreter/OptionGroupFormat.cpp
+++ b/lldb/source/Interpreter/OptionGroupFormat.cpp
@@ -17,8 +17,14 @@
using namespace lldb;
using namespace lldb_private;
-OptionGroupFormat::OptionGroupFormat(lldb::Format default_format) :
- m_format (default_format, default_format)
+OptionGroupFormat::OptionGroupFormat(lldb::Format default_format,
+ uint32_t default_byte_size,
+ bool byte_size_prefix_ok) :
+ m_format (default_format,
+ default_format,
+ default_byte_size,
+ default_byte_size,
+ byte_size_prefix_ok)
{
}
@@ -47,8 +53,8 @@ OptionGroupFormat::GetDefinitions ()
Error
OptionGroupFormat::SetOptionValue (CommandInterpreter &interpreter,
- uint32_t option_idx,
- const char *option_arg)
+ uint32_t option_idx,
+ const char *option_arg)
{
Error error;
char short_option = (char) g_option_table[option_idx].short_option;