Esempio n. 1
0
bool XRefs::From(Address const& rTo, Address::List& rFromList) const
{
  auto const& rLeft = m_XRefs.left;
  auto itXRef = rLeft.find(rTo);

  for (; itXRef != std::end(rLeft) && itXRef->first == rTo; ++itXRef)
    rFromList.push_back(itXRef->second);

  return !rFromList.empty();
}
Esempio n. 2
0
void FormatDisassembly::operator()(Address::List const& rAddresses, u32 Flags)
{
  m_rPrintData.Clear();

  if (rAddresses.empty())
    return;

  m_rPrintData.PrependAddress(Flags & ShowAddress ? true : false);

  for (auto const& CurAddr : rAddresses)
    _Format(CurAddr, Flags);
}