ROCgdb icon indicating copy to clipboard operation
ROCgdb copied to clipboard

Multi-inferior support

Open simark opened this issue 5 years ago • 2 comments

I don't know if multi-inferior support (multiple Linux processes using the GPU) is on your roadmap, at some point, but as I am reading the code to understand how GDB interacts with the library, I spotted this that would need to be changed:

https://github.com/ROCm-Developer-Tools/ROCgdb/blob/amd-master/gdb/rocm-tdep.c#L615

get_rocm_inferior_info gets the info for the current inferior, which may not be the inferior the event is for. It would be necessary to know to which inferior the event applies, look it up, and possibly pass it down to other functions.

simark avatar Jan 10 '20 19:01 simark

@simark could this potentially be the cause of #5 ?

jpsamaroo avatar Feb 03 '21 21:02 jpsamaroo

I don't think so, you mentioned having multiple threads, not multiple inferiors (processes) under the same gdb.

simark avatar Feb 04 '21 14:02 simark

Not relevant anymore. Code has changed a lot since. Multi-inferior is supported on the devices that allow it.

simark avatar Aug 12 '24 15:08 simark