debugger: Always show zeroes on no thread's instructions positions

This commit is contained in:
Eladash 2020-06-13 23:37:56 +03:00 committed by Ivan
parent 5d0066029f
commit 5bc4f9df0d

View File

@ -82,10 +82,9 @@ void debugger_list::ShowAddress(u32 addr, bool force)
if (!cpu)
{
u32 pc = m_pc;
for (uint i = 0; i < m_item_count; ++i, pc += 4)
for (uint i = 0; i < m_item_count; ++i)
{
item(i)->setText(qstr(fmt::format(" [%08x] ?? ?? ?? ??:", pc)));
item(i)->setText(qstr(fmt::format(" [%08x] ?? ?? ?? ??:", 0)));
item(i)->setForeground(default_foreground);
item(i)->setBackground(default_background);
}