mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-11 10:41:41 +00:00
GDB Server: fix selecting ppu_thread
This commit is contained in:
parent
23bbeb7f8f
commit
91dcc3f60c
1 changed files with 4 additions and 4 deletions
|
@ -354,7 +354,8 @@ bool gdb_thread::select_thread(u64 id)
|
||||||
{
|
{
|
||||||
return (id == ALL_THREADS) || (id == ANY_THREAD) || (cpu.id == id);
|
return (id == ALL_THREADS) || (id == ANY_THREAD) || (cpu.id == id);
|
||||||
};
|
};
|
||||||
if (auto ppu = idm::select<ppu_thread>(on_select)) {
|
if (auto ppu = idm::select<named_thread<ppu_thread>>(on_select))
|
||||||
|
{
|
||||||
selected_thread = ppu.ptr;
|
selected_thread = ppu.ptr;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -497,9 +498,8 @@ bool gdb_thread::cmd_thread_info(gdb_cmd& cmd)
|
||||||
}
|
}
|
||||||
result += u64_to_padded_hex(static_cast<u64>(cpu.id));
|
result += u64_to_padded_hex(static_cast<u64>(cpu.id));
|
||||||
};
|
};
|
||||||
idm::select<ppu_thread>(on_select);
|
idm::select<named_thread<ppu_thread>>(on_select);
|
||||||
//idm::select<RawSPUThread>(on_select);
|
//idm::select<named_thread<spu_thread>>(on_select);
|
||||||
//idm::select<SPUThread>(on_select);
|
|
||||||
|
|
||||||
//todo: this may exceed max command length
|
//todo: this may exceed max command length
|
||||||
result = "m" + result + "l";
|
result = "m" + result + "l";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue