예제 #1
0
파일: xref.cpp 프로젝트: GrimDerp/medusa
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();
}
예제 #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);
}