forked from Imagelibrary/binutils-gdb
Use C++17 [[fallthrough]] attribute
This changes gdb to use the C++17 [[fallthrough]] attribute rather than special comments. This was mostly done by script, but I neglected a few spellings and so also fixed it up by hand. I suspect this fixes the bug mentioned below, by switching to a standard approach that, presumably, clang supports. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=23159 Approved-By: John Baldwin <jhb@FreeBSD.org> Approved-By: Luis Machado <luis.machado@arm.com> Approved-By: Pedro Alves <pedro@palves.net>
This commit is contained in:
@@ -896,7 +896,7 @@ coff_symtab_read (minimal_symbol_reader &reader,
|
||||
backtraces, so filter them out (from phdm@macqel.be). */
|
||||
if (within_function)
|
||||
break;
|
||||
/* Fall through. */
|
||||
[[fallthrough]];
|
||||
case C_STAT:
|
||||
case C_THUMBLABEL:
|
||||
case C_THUMBSTAT:
|
||||
@@ -934,7 +934,7 @@ coff_symtab_read (minimal_symbol_reader &reader,
|
||||
that look like this. Ignore them. */
|
||||
break;
|
||||
/* For static symbols that don't start with '.'... */
|
||||
/* Fall through. */
|
||||
[[fallthrough]];
|
||||
case C_THUMBEXT:
|
||||
case C_THUMBEXTFUNC:
|
||||
case C_EXT:
|
||||
|
||||
Reference in New Issue
Block a user