diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-08-05 10:39:15 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-08-12 11:30:44 -0400 |
commit | 37ef6d976a777f186568f2b629f04a6bd9706ed7 (patch) | |
tree | c352034dd7a9c455e5ef2a4c76e11140e4b998c3 /gdb/python/py-instruction.c | |
parent | 91f378ddd0f3c51a29190b337abd9ebd06726f0b (diff) | |
download | binutils-37ef6d976a777f186568f2b629f04a6bd9706ed7.zip binutils-37ef6d976a777f186568f2b629f04a6bd9706ed7.tar.gz binutils-37ef6d976a777f186568f2b629f04a6bd9706ed7.tar.bz2 |
gdb/amd-dbgapi-target: adjust to amd-dbgapi 0.75.0
amd-dbgapi 0.75 (from ROCm release 6.2.0) brings a few backwards
incompatible changes. Adjust the amd-dbgapi target code accordingly.
Given that the AMD GPU port in upstream GDB today is of limited use
(it's still missing important pieces), we don't really care about
supporting amd-dbgapi versions other than the latest stable one, so no
effort is made to keep compatibility with versions 6.1.2 and older.
The changes are:
- AMD_DBGAPI_EXCEPTION_WAVE_APERTURE_VIOLATION was renamed to
AMD_DBGAPI_EXCEPTION_WAVE_ADDRESS_ERROR (the old name still exists
but is deprecated), use the latter.
- In the callbacks structure, the get_os_pid callback was replaced with
client_process_get_info, which is more general and extensible.
Convert our get_os_pid to a new, equivalent, client_process_get_info
callback. Handle the new AMD_DBGAPI_CLIENT_PROCESS_INFO_CORE_STATE
query, but just return "not available".
- The xfer_global_memory callback was added to the callbacks structure,
add that new callback.
- Update configure.ac to check for amd-dbgapi >= 0.75.0.
Change-Id: If012398cf55ebf6146b007f6b4e8395dd48ef981
Approved-By: Lancelot Six <lancelot.six@amd.com>
Reviewed-By: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
Diffstat (limited to 'gdb/python/py-instruction.c')
0 files changed, 0 insertions, 0 deletions