mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 10:21:21 +00:00
Debugger: Prevent possible "current instruction" duplication when the thread is running
This commit is contained in:
parent
7baf959975
commit
591159c4a9
@ -159,6 +159,7 @@ void debugger_list::ShowAddress(u32 addr, bool select_addr, bool direct)
|
||||
{
|
||||
const bool is_spu = m_cpu->id_type() == 2;
|
||||
const u32 address_limits = (is_spu ? 0x3fffc : ~3);
|
||||
const u32 current_pc = m_cpu->get_pc();
|
||||
m_start_addr &= address_limits;
|
||||
u32 pc = m_start_addr;
|
||||
|
||||
@ -166,7 +167,7 @@ void debugger_list::ShowAddress(u32 addr, bool select_addr, bool direct)
|
||||
{
|
||||
QListWidgetItem* list_item = item(i);
|
||||
|
||||
if (pc == m_cpu->get_pc())
|
||||
if (pc == current_pc)
|
||||
{
|
||||
list_item->setForeground(m_text_color_pc);
|
||||
list_item->setBackground(m_color_pc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user