From: Simon Marchi Date: Thu, 29 May 2025 15:13:08 +0000 (-0400) Subject: gdb, gdbsupport: fix all `;;` instances X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc5237a2632c5fca868feebc1ac4974be5dda4a3;p=thirdparty%2Fbinutils-gdb.git gdb, gdbsupport: fix all `;;` instances I forgot to fix a `;;` typo when pushing a previous patch. Fix it, and fix all the other instances I could find in the code base. Change-Id: I298f9ffb1a5157925076ef67b439579b1aeeaa2b --- diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c index 404d8fe6297..defd828934e 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -702,7 +702,7 @@ print_variant_part (const variant_part &part, name = "?"; else { - name = type->field (part.discriminant_index).name ();; + name = type->field (part.discriminant_index).name (); discr_type = type->field (part.discriminant_index).type (); } diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 71a83860b40..19c4a7b48ad 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -2465,7 +2465,7 @@ fbsd_nat_get_siginfo (ptid_t ptid, siginfo_t *siginfo) if (ptrace (PT_LWPINFO, pid, (caddr_t) &pl, sizeof pl) == -1) return false; if (!(pl.pl_flags & PL_FLAG_SI)) - return false;; + return false; *siginfo = pl.pl_siginfo; return (true); } diff --git a/gdb/linespec.c b/gdb/linespec.c index 9d6fec81783..824afd90983 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -1016,7 +1016,7 @@ linespec_lexer_consume_token (linespec_parser *parser) if (*parser->lexer.stream != '\0') { parser->completion_quote_char = '\0'; - parser->completion_quote_end = NULL;; + parser->completion_quote_end = NULL; } } diff --git a/gdb/maint.c b/gdb/maint.c index 0526fffe24a..e017d05ef41 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -1168,7 +1168,7 @@ maintenance_set_command_time_cmd (const char *args, int from_tty, { warning (_("\ per-thread run time information not available on this platform")); - already_warned = true;; + already_warned = true; } #endif } diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 6659c5a41e5..b2df42e5078 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2394,7 +2394,7 @@ printf_c_string (struct ui_file *stream, const char *format, } else { - CORE_ADDR tem = value_as_address (value);; + CORE_ADDR tem = value_as_address (value); if (tem == 0) { diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index 19cd576d0c3..5dd3f1e1ddd 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -2578,7 +2578,7 @@ record_btrace_maybe_mark_async_event const std::vector &no_history) { bool more_moving = !moving.empty (); - bool more_no_history = !no_history.empty ();; + bool more_no_history = !no_history.empty (); if (!more_moving && !more_no_history) return; diff --git a/gdbsupport/poison.h b/gdbsupport/poison.h index 791a18f28a9..a91ee5d1c6b 100644 --- a/gdbsupport/poison.h +++ b/gdbsupport/poison.h @@ -183,7 +183,7 @@ xnewvar (size_t s) { static_assert (IsMallocable::value, "Trying to use XNEWVAR with a \ non-POD data type."); - return XNEWVAR (T, s);; + return XNEWVAR (T, s); } #undef XNEWVAR