aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2023-11-17 11:04:37 +0000
committerPedro Alves <pedro@palves.net>2023-11-17 11:15:09 +0000
commit74affa1bc070ff0530b2a1b92d8d9fbcae6024ec (patch)
tree9144d7fdd6b7d69a73d2545c5e1f3c1f99183b88
parent54294d7364b70902af1ee31b6dd4479b3c79ee55 (diff)
downloadbinutils-74affa1bc070ff0530b2a1b92d8d9fbcae6024ec.zip
binutils-74affa1bc070ff0530b2a1b92d8d9fbcae6024ec.tar.gz
binutils-74affa1bc070ff0530b2a1b92d8d9fbcae6024ec.tar.bz2
Fix AMD_DBGAPI_SCOPED_DEBUG_START_END wrong setting
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
-rw-r--r--gdb/amd-dbgapi-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/amd-dbgapi-target.c b/gdb/amd-dbgapi-target.c
index 22c8126..c03b64c 100644
--- a/gdb/amd-dbgapi-target.c
+++ b/gdb/amd-dbgapi-target.c
@@ -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. */