mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +00:00
PPU debugger: Show stack address of each function
This commit is contained in:
parent
c98ec4d014
commit
dc25a3fa2a
9 changed files with 16 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue