[binutils-gdb] gdb, btrace: fix wrong #endif comments
Markus Metzger
mmetzger@sourceware.org
Wed Jun 10 04:56:57 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=205b8647a090d49a4d994196207989ecfe4cb9e7
commit 205b8647a090d49a4d994196207989ecfe4cb9e7
Author: Markus Metzger <markus.t.metzger@intel.com>
Date: Mon May 4 06:49:34 2026 +0000
gdb, btrace: fix wrong #endif comments
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diff:
---
gdb/btrace.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gdb/btrace.c b/gdb/btrace.c
index 6a8f0f549d1..965e2654c7d 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -1283,7 +1283,7 @@ decode_interrupt_vector (const uint8_t vector)
return nullptr;
}
-#endif /* defined (LIBIPT_VERSION >= 0x201) */
+#endif /* (LIBIPT_VERSION >= 0x201) */
/* Handle instruction decode events (libipt-v2). */
@@ -1596,7 +1596,7 @@ handle_pt_insn_events (struct btrace_thread_info *btinfo,
handle_pt_aux_insn (btinfo, aux_string, pc);
break;
}
-#endif /* defined (LIBIPT_VERSION >= 0x201) */
+#endif /* (LIBIPT_VERSION >= 0x201) */
}
}
#endif /* defined (HAVE_PT_INSN_EVENT) */
@@ -3011,7 +3011,7 @@ pt_print_packet (const struct pt_packet *packet)
packet->payload.ptw.payload,
packet->payload.ptw.ip ? (" ip") : (""));
break;
-#endif /* defined (LIBIPT_VERSION >= 0x200) */
+#endif /* (LIBIPT_VERSION >= 0x200) */
#if (LIBIPT_VERSION >= 0x201)
case ppt_cfe:
@@ -3024,7 +3024,7 @@ pt_print_packet (const struct pt_packet *packet)
gdb_printf (("evd %u: 0x%" PRIx64 ""), packet->payload.evd.type,
packet->payload.evd.payload);
break;
-#endif /* defined (LIBIPT_VERSION >= 0x201) */
+#endif /* (LIBIPT_VERSION >= 0x201) */
}
}
More information about the Gdb-cvs
mailing list