MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / FetchSelectionInfo

Method FetchSelectionInfo

pcsx2-qt/Debugger/DisassemblyView.cpp:973–996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

971}
972
973QString DisassemblyView::FetchSelectionInfo(SelectionInfo selInfo)
974{
975 QString infoBlock;
976 for (u64 i = m_selectedAddressStart; i <= m_selectedAddressEnd; i += 4)
977 {
978 if (i != m_selectedAddressStart)
979 infoBlock += '\n';
980 if (selInfo == SelectionInfo::ADDRESS)
981 {
982 infoBlock += FilledQStringFromValue(static_cast<u32>(i), 16);
983 }
984 else if (selInfo == SelectionInfo::INSTRUCTIONTEXT)
985 {
986 DisassemblyLineInfo line;
987 m_disassemblyManager.getLine(static_cast<u32>(i), true, line);
988 infoBlock += QString("%1 %2").arg(line.name.c_str()).arg(line.params.c_str());
989 }
990 else // INSTRUCTIONHEX
991 {
992 infoBlock += FilledQStringFromValue(cpu().Read32(i), 16);
993 }
994 }
995 return infoBlock;
996}
997
998void DisassemblyView::gotoAddressAndSetFocus(u32 address)
999{

Callers

nothing calls this directly

Calls 5

FilledQStringFromValueFunction · 0.85
getLineMethod · 0.80
argMethod · 0.80
c_strMethod · 0.45
Read32Method · 0.45

Tested by

no test coverage detected