ROCm / ROCgdb

This is ROCgdb, the ROCm source-level debugger for Linux, based on GDB, the GNU source-level debugger.
https://rocm.docs.amd.com/projects/ROCgdb/en/latest/
GNU General Public License v2.0
50 stars 9 forks source link

Multi-inferior support #1

Closed simark closed 3 weeks ago

simark commented 4 years ago

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.

jpsamaroo commented 3 years ago

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

simark commented 3 years ago

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

simark commented 3 weeks ago

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