m_start[offset] = value;
return offset + 1;
}
- return std::numeric_limits<uint32_t>::max();
+ return UINT32_MAX;
}
uint32_t
return offset + sizeof (value);
}
- return std::numeric_limits<uint32_t>::max();
+ return UINT32_MAX;
}
uint32_t
return offset + sizeof (value);
}
- return std::numeric_limits<uint32_t>::max();
+ return UINT32_MAX;
}
uint32_t
return offset + sizeof (value);
}
- return std::numeric_limits<uint32_t>::max();
+ return UINT32_MAX;
}
//----------------------------------------------------------------------
assert(!"GetMax64 unhandled case!");
break;
}
- return std::numeric_limits<uint32_t>::max();
+ return UINT32_MAX;
}
uint32_t
memcpy (m_start + offset, src, src_len);
return offset + src_len;
}
- return std::numeric_limits<uint32_t>::max();
+ return UINT32_MAX;
}
uint32_t
{
if (cstr != nullptr)
return PutData (offset, cstr, strlen(cstr) + 1);
- return std::numeric_limits<uint32_t>::max();
+ return UINT32_MAX;
}
{
size_t num_instructions = m_instructions.size();
- uint32_t next_branch = std::numeric_limits<uint32_t>::max();
+ uint32_t next_branch = UINT32_MAX;
size_t i;
for (i = start; i < num_instructions; i++)
{
if (target.GetArchitecture().GetTriple().getArch() == llvm::Triple::hexagon)
{
// If we didn't find a branch, find the last packet start.
- if (next_branch == std::numeric_limits<uint32_t>::max())
+ if (next_branch == UINT32_MAX)
{
i = num_instructions - 1;
}
}
}
- if (next_branch == std::numeric_limits<uint32_t>::max())
+ if (next_branch == UINT32_MAX)
{
// We couldn't find the previous packet, so return start
next_branch = start;
InstructionList::GetIndexOfInstructionAtAddress (const Address &address)
{
size_t num_instructions = m_instructions.size();
- uint32_t index = std::numeric_limits<uint32_t>::max();
+ uint32_t index = UINT32_MAX;
for (size_t i = 0; i < num_instructions; i++)
{
if (m_instructions[i]->GetAddress() == address)
m_arch.GetByteOrder(),
m_arch.GetAddressByteSize());
const bool data_from_file = load_addr == LLDB_INVALID_ADDRESS;
- return DecodeInstructions(range.GetBaseAddress(), data, 0, std::numeric_limits<uint32_t>::max(), false,
+ return DecodeInstructions(range.GetBaseAddress(), data, 0, UINT32_MAX, false,
data_from_file);
}
else if (error_strm_ptr)
bool
SearchFilterForUnconstrainedSearches::ModulePasses (const FileSpec &module_spec)
{
- return (!m_target_sp->ModuleIsExcludedForUnconstrainedSearches(module_spec));
+ if (m_target_sp->ModuleIsExcludedForUnconstrainedSearches (module_spec))
+ return false;
+ else
+ return true;
}
bool
return true;
if (module_sp &&
- m_module_spec_list.FindFileIndex(0, module_sp->GetFileSpec(), false) != std::numeric_limits<uint32_t>::max())
+ m_module_spec_list.FindFileIndex(0, module_sp->GetFileSpec(), false) != UINT32_MAX)
return true;
else
return false;
if (m_module_spec_list.GetSize() == 0)
return true;
- if (m_module_spec_list.FindFileIndex(0, spec, true) != std::numeric_limits<uint32_t>::max())
+ if (m_module_spec_list.FindFileIndex(0, spec, true) != UINT32_MAX)
return true;
else
return false;
for (size_t i = 0; i < num_modules; i++)
{
Module* module = target_modules.GetModulePointerAtIndexUnlocked(i);
- if (m_module_spec_list.FindFileIndex(0, module->GetFileSpec(), false) != std::numeric_limits<uint32_t>::max())
+ if (m_module_spec_list.FindFileIndex(0, module->GetFileSpec(), false) != UINT32_MAX)
{
SymbolContext matchingContext(m_target_sp, module->shared_from_this());
Searcher::CallbackReturn shouldContinue;
bool
SearchFilterByModuleListAndCU::CompUnitPasses (FileSpec &fileSpec)
{
- return m_cu_spec_list.FindFileIndex(0, fileSpec, false) != std::numeric_limits<uint32_t>::max();
+ return m_cu_spec_list.FindFileIndex(0, fileSpec, false) != UINT32_MAX;
}
bool
SearchFilterByModuleListAndCU::CompUnitPasses (CompileUnit &compUnit)
{
- bool in_cu_list = m_cu_spec_list.FindFileIndex(0, compUnit, false) != std::numeric_limits<uint32_t>::max();
+ bool in_cu_list = m_cu_spec_list.FindFileIndex(0, compUnit, false) != UINT32_MAX;
if (in_cu_list)
{
ModuleSP module_sp(compUnit.GetModule());
{
lldb::ModuleSP module_sp = target_images.GetModuleAtIndexUnlocked(i);
if (no_modules_in_filter ||
- m_module_spec_list.FindFileIndex(0, module_sp->GetFileSpec(), false) != std::numeric_limits<uint32_t>::max())
+ m_module_spec_list.FindFileIndex(0, module_sp->GetFileSpec(), false) != UINT32_MAX)
{
SymbolContext matchingContext(m_target_sp, module_sp);
Searcher::CallbackReturn shouldContinue;
matchingContext.comp_unit = cu_sp.get();
if (matchingContext.comp_unit)
{
- if (m_cu_spec_list.FindFileIndex(0, *matchingContext.comp_unit, false) !=
- std::numeric_limits<uint32_t>::max())
+ if (m_cu_spec_list.FindFileIndex(0, *matchingContext.comp_unit, false) != UINT32_MAX)
{
shouldContinue = DoCUIteration(module_sp, matchingContext, searcher);
if (shouldContinue == Searcher::eCallbackReturnStop)