diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2013-11-12 17:25:33 +0000 | 
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2013-11-12 17:25:33 +0000 | 
| commit | 3561791104e5399ef9bcd45b3be0755dcde3464d (patch) | |
| tree | b9aa1d1064fb25a0f2313d9a7964c862c0b7b354 /contrib/llvm/tools/lldb/source/Interpreter/OptionGroupFormat.cpp | |
| parent | 43a3230ade8b170222e4d0378c40afa93908d2aa (diff) | |
| parent | f21a844f60ae6c74fcf1fddca32461acce3c1ee0 (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Interpreter/OptionGroupFormat.cpp')
| -rw-r--r-- | contrib/llvm/tools/lldb/source/Interpreter/OptionGroupFormat.cpp | 12 | 
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/llvm/tools/lldb/source/Interpreter/OptionGroupFormat.cpp b/contrib/llvm/tools/lldb/source/Interpreter/OptionGroupFormat.cpp index 790cbb668fa1..5cae3788f3bf 100644 --- a/contrib/llvm/tools/lldb/source/Interpreter/OptionGroupFormat.cpp +++ b/contrib/llvm/tools/lldb/source/Interpreter/OptionGroupFormat.cpp @@ -42,10 +42,10 @@ OptionGroupFormat::~OptionGroupFormat ()  static OptionDefinition   g_option_table[] =  { -{ LLDB_OPT_SET_1, false, "format"    ,'f', required_argument, NULL, 0, eArgTypeFormat   , "Specify a format to be used for display."}, -{ LLDB_OPT_SET_2, false, "gdb-format",'G', required_argument, NULL, 0, eArgTypeGDBFormat, "Specify a format using a GDB format specifier string."}, -{ LLDB_OPT_SET_3, false, "size"      ,'s', required_argument, NULL, 0, eArgTypeByteSize , "The size in bytes to use when displaying with the selected format."}, -{ LLDB_OPT_SET_4, false, "count"     ,'c', required_argument, NULL, 0, eArgTypeCount    , "The number of total items to display."}, +{ LLDB_OPT_SET_1, false, "format"    ,'f', OptionParser::eRequiredArgument, NULL, 0, eArgTypeFormat   , "Specify a format to be used for display."}, +{ LLDB_OPT_SET_2, false, "gdb-format",'G', OptionParser::eRequiredArgument, NULL, 0, eArgTypeGDBFormat, "Specify a format using a GDB format specifier string."}, +{ LLDB_OPT_SET_3, false, "size"      ,'s', OptionParser::eRequiredArgument, NULL, 0, eArgTypeByteSize , "The size in bytes to use when displaying with the selected format."}, +{ LLDB_OPT_SET_4, false, "count"     ,'c', OptionParser::eRequiredArgument, NULL, 0, eArgTypeCount    , "The number of total items to display."},  };  uint32_t @@ -158,7 +158,9 @@ OptionGroupFormat::SetOptionValue (CommandInterpreter &interpreter,                  else                  {                      // Byte size is disabled, make sure it wasn't specified -                    if (byte_size > 0) +                    // but if this is an address, it's actually necessary to +                    // specify one so don't error out +                    if (byte_size > 0 && format != lldb::eFormatAddressInfo)                      {                          error.SetErrorString ("this command doesn't support specifying a byte size");                          return error;  | 
