diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2013-11-06 16:48:53 +0000 | 
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2013-11-06 16:48:53 +0000 | 
| commit | f21a844f60ae6c74fcf1fddca32461acce3c1ee0 (patch) | |
| tree | 56d79f94966870db1cecd65a7264510a25fd1cba /source/Commands/CommandObjectRegister.cpp | |
| parent | 37d22554be9f5a677dad2a95b7ef22fe59c66a8a (diff) | |
Notes
Diffstat (limited to 'source/Commands/CommandObjectRegister.cpp')
| -rw-r--r-- | source/Commands/CommandObjectRegister.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/source/Commands/CommandObjectRegister.cpp b/source/Commands/CommandObjectRegister.cpp index ba43f23f34acd..7cbfaa5d60fcc 100644 --- a/source/Commands/CommandObjectRegister.cpp +++ b/source/Commands/CommandObjectRegister.cpp @@ -98,7 +98,7 @@ public:              {                  strm.Indent (); -                bool prefix_with_altname = m_command_options.alternate_name; +                bool prefix_with_altname = (bool)m_command_options.alternate_name;                  bool prefix_with_name = !prefix_with_altname;                  reg_value.Dump(&strm, reg_info, prefix_with_name, prefix_with_altname, m_format_options.GetFormat(), 8);                  if ((reg_info->encoding == eEncodingUint) || (reg_info->encoding == eEncodingSint)) @@ -192,7 +192,7 @@ protected:                          if (!DumpRegisterSet (m_exe_ctx, strm, reg_ctx, set_idx))                          {                              if (errno) -                                result.AppendErrorWithFormat ("register read failed with errno: %d\n", errno); +                                result.AppendErrorWithFormat ("register read failed: %s\n", strerror(errno));                              else                                  result.AppendError ("unknown error while reading registers.\n");                              result.SetStatus (eReturnStatusFailed); @@ -351,9 +351,9 @@ protected:  const OptionDefinition  CommandObjectRegisterRead::CommandOptions::g_option_table[] =  { -    { LLDB_OPT_SET_ALL, false, "alternate", 'A', no_argument      , NULL, 0, eArgTypeNone      , "Display register names using the alternate register name if there is one."}, -    { LLDB_OPT_SET_1  , false, "set"      , 's', required_argument, NULL, 0, eArgTypeIndex     , "Specify which register sets to dump by index."}, -    { LLDB_OPT_SET_2  , false, "all"      , 'a', no_argument      , NULL, 0, eArgTypeNone      , "Show all register sets."}, +    { LLDB_OPT_SET_ALL, false, "alternate", 'A', OptionParser::eNoArgument      , NULL, 0, eArgTypeNone      , "Display register names using the alternate register name if there is one."}, +    { LLDB_OPT_SET_1  , false, "set"      , 's', OptionParser::eRequiredArgument, NULL, 0, eArgTypeIndex     , "Specify which register sets to dump by index."}, +    { LLDB_OPT_SET_2  , false, "all"      , 'a', OptionParser::eNoArgument      , NULL, 0, eArgTypeNone      , "Show all register sets."},  };  uint32_t  | 
