aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectMemory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectMemory.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp
index baf5d91..f93081d3 100644
--- a/lldb/source/Commands/CommandObjectMemory.cpp
+++ b/lldb/source/Commands/CommandObjectMemory.cpp
@@ -68,7 +68,7 @@ public:
case 'l':
error = m_num_per_line.SetValueFromString(option_value);
if (m_num_per_line.GetCurrentValue() == 0)
- error.SetErrorStringWithFormat(
+ error = Status::FromErrorStringWithFormat(
"invalid value for --num-per-line option '%s'",
option_value.str().c_str());
break;
@@ -176,7 +176,7 @@ public:
case eFormatBytesWithASCII:
if (byte_size_option_set) {
if (byte_size_value > 1)
- error.SetErrorStringWithFormat(
+ error = Status::FromErrorStringWithFormat(
"display format (bytes/bytes with ASCII) conflicts with the "
"specified byte size %" PRIu64 "\n"
"\tconsider using a different display format or don't specify "
@@ -913,12 +913,12 @@ public:
case 'c':
if (m_count.SetValueFromString(option_value).Fail())
- error.SetErrorString("unrecognized value for count");
+ error = Status::FromErrorString("unrecognized value for count");
break;
case 'o':
if (m_offset.SetValueFromString(option_value).Fail())
- error.SetErrorString("unrecognized value for dump-offset");
+ error = Status::FromErrorString("unrecognized value for dump-offset");
break;
default:
@@ -1150,16 +1150,16 @@ public:
FileSystem::Instance().Resolve(m_infile);
if (!FileSystem::Instance().Exists(m_infile)) {
m_infile.Clear();
- error.SetErrorStringWithFormat("input file does not exist: '%s'",
- option_value.str().c_str());
+ error = Status::FromErrorStringWithFormat(
+ "input file does not exist: '%s'", option_value.str().c_str());
}
break;
case 'o': {
if (option_value.getAsInteger(0, m_infile_offset)) {
m_infile_offset = 0;
- error.SetErrorStringWithFormat("invalid offset string '%s'",
- option_value.str().c_str());
+ error = Status::FromErrorStringWithFormat(
+ "invalid offset string '%s'", option_value.str().c_str());
}
} break;