PPU debugger: Show stack address of each function

This commit is contained in:
Eladash 2020-07-03 07:56:55 +03:00 committed by Megamouse
parent c98ec4d014
commit dc25a3fa2a
9 changed files with 16 additions and 16 deletions

View file

@ -17,15 +17,15 @@ void call_stack_list::UpdateCPUData(std::weak_ptr<cpu_thread> cpu, std::shared_p
this->cpu = cpu;
}
void call_stack_list::HandleUpdate(std::vector<u32> call_stack)
void call_stack_list::HandleUpdate(std::vector<std::pair<u32, u32>> call_stack)
{
clear();
for (auto addr : call_stack)
for (const auto& addr : call_stack)
{
const QString call_stack_item_text = qstr(fmt::format("0x%08llx", addr));
const QString call_stack_item_text = qstr(fmt::format("0x%08llx (r1=0x%08llx)", addr.first, addr.second));
QListWidgetItem* callStackItem = new QListWidgetItem(call_stack_item_text);
callStackItem->setData(Qt::UserRole, { addr });
callStackItem->setData(Qt::UserRole, { addr.first });
addItem(callStackItem);
}
}