Changeset View
Changeset View
Standalone View
Standalone View
lldb/trunk/source/Commands/CommandObjectTarget.cpp
Show First 20 Lines • Show All 2,571 Lines • ▼ Show 20 Lines | DoExecute (Args& command, CommandReturnObject &result) override | ||||
uint32_t total_num_dumped = 0; | uint32_t total_num_dumped = 0; | ||||
uint32_t addr_byte_size = target->GetArchitecture().GetAddressByteSize(); | uint32_t addr_byte_size = target->GetArchitecture().GetAddressByteSize(); | ||||
result.GetOutputStream().SetAddressByteSize(addr_byte_size); | result.GetOutputStream().SetAddressByteSize(addr_byte_size); | ||||
result.GetErrorStream().SetAddressByteSize(addr_byte_size); | result.GetErrorStream().SetAddressByteSize(addr_byte_size); | ||||
if (command.GetArgumentCount() == 0) | if (command.GetArgumentCount() == 0) | ||||
{ | { | ||||
result.AppendErrorWithFormat ("\nSyntax: %s\n", m_cmd_syntax.c_str()); | result.AppendError ("file option must be specified."); | ||||
result.SetStatus (eReturnStatusFailed); | result.SetStatus (eReturnStatusFailed); | ||||
return result.Succeeded(); | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
// Dump specified images (by basename or fullpath) | // Dump specified images (by basename or fullpath) | ||||
const char *arg_cstr; | const char *arg_cstr; | ||||
for (int arg_idx = 0; (arg_cstr = command.GetArgumentAtIndex(arg_idx)) != NULL; ++arg_idx) | for (int arg_idx = 0; (arg_cstr = command.GetArgumentAtIndex(arg_idx)) != NULL; ++arg_idx) | ||||
{ | { | ||||
FileSpec file_spec(arg_cstr, false); | FileSpec file_spec(arg_cstr, false); | ||||
▲ Show 20 Lines • Show All 2,867 Lines • Show Last 20 Lines |