diff options
author | 2024-08-05 10:39:15 -0400 | |
---|---|---|
committer | 2024-08-12 11:30:44 -0400 | |
commit | 37ef6d976a777f186568f2b629f04a6bd9706ed7 (patch) | |
tree | c352034dd7a9c455e5ef2a4c76e11140e4b998c3 /gdb/configure | |
parent | gdb: pass inferior to gdbarch_update_p (diff) | |
download | binutils-gdb-37ef6d976a777f186568f2b629f04a6bd9706ed7.tar.gz binutils-gdb-37ef6d976a777f186568f2b629f04a6bd9706ed7.tar.bz2 binutils-gdb-37ef6d976a777f186568f2b629f04a6bd9706ed7.zip |
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/configure')
-rwxr-xr-x | gdb/configure | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/configure b/gdb/configure index 62deef2f341..673dd6d90f6 100755 --- a/gdb/configure +++ b/gdb/configure @@ -24993,19 +24993,19 @@ if test "$gdb_require_amd_dbgapi" = true \ # version of the library. pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.68.0" >&5 -$as_echo_n "checking for amd-dbgapi >= 0.68.0... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd-dbgapi >= 0.75.0" >&5 +$as_echo_n "checking for amd-dbgapi >= 0.75.0... " >&6; } if test -n "$AMD_DBGAPI_CFLAGS"; then pkg_cv_AMD_DBGAPI_CFLAGS="$AMD_DBGAPI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_AMD_DBGAPI_CFLAGS=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.68.0" 2>/dev/null` + pkg_cv_AMD_DBGAPI_CFLAGS=`$PKG_CONFIG --cflags "amd-dbgapi >= 0.75.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -25017,12 +25017,12 @@ if test -n "$AMD_DBGAPI_LIBS"; then pkg_cv_AMD_DBGAPI_LIBS="$AMD_DBGAPI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.68.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.68.0") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"amd-dbgapi >= 0.75.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "amd-dbgapi >= 0.75.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_AMD_DBGAPI_LIBS=`$PKG_CONFIG --libs "amd-dbgapi >= 0.68.0" 2>/dev/null` + pkg_cv_AMD_DBGAPI_LIBS=`$PKG_CONFIG --libs "amd-dbgapi >= 0.75.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -25067,9 +25067,9 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1` + AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1` else - AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.68.0" 2>&1` + AMD_DBGAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "amd-dbgapi >= 0.75.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$AMD_DBGAPI_PKG_ERRORS" >&5 |