]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix AMD_DBGAPI_SCOPED_DEBUG_START_END wrong setting
authorPedro Alves <pedro@palves.net>
Fri, 17 Nov 2023 11:04:37 +0000 (11:04 +0000)
committerPedro Alves <pedro@palves.net>
Fri, 17 Nov 2023 11:15:09 +0000 (11:15 +0000)
The AMD_DBGAPI_SCOPED_DEBUG_START_END macro in gdb/amd-dbgapi-target.c
is incorrectly controlled by "set debug infrun", while it should be
controlled by "set debug amd-dbgapi" instead.  This commit fixes it.

Change-Id: I8ec2b1a4b9980c2d565a8aafd060ed070eeb3b29

gdb/amd-dbgapi-target.c

index 22c812628762207c3ff937b823f6a3486fb9b2e3..c03b64ce190883cb60be1fe45eca6e9afacb793a 100644 (file)
@@ -96,7 +96,7 @@ amd_dbgapi_lib_debug_module ()
 /* Print amd-dbgapi start/end debug statements.  */
 
 #define AMD_DBGAPI_SCOPED_DEBUG_START_END(fmt, ...) \
-    scoped_debug_start_end (debug_infrun, amd_dbgapi_debug_module (), \
+    scoped_debug_start_end (debug_amd_dbgapi, amd_dbgapi_debug_module (), \
                            fmt, ##__VA_ARGS__)
 
 /* inferior_created observer token.  */