gdb, gdbserver, gdbsupport: use [[noreturn]] instead of ATTRIBUTE_NORETURN

C++ 11 has a built-in attribute for this, no need to use a compat macro.

Change-Id: I90e4220d26e8f3949d91761f8a13cd9c37da3875
Reviewed-by: Lancelot Six <lancelot.six@amd.com>
This commit is contained in:
Simon Marchi
2024-07-16 16:02:12 -04:00
parent 9153eb8a7f
commit d9deb60b2e
26 changed files with 75 additions and 80 deletions

View File

@@ -1539,7 +1539,7 @@ static void remote_console_output (const char *msg, ui_file *stream);
static void remote_btrace_reset (remote_state *rs);
static void remote_unpush_and_throw (remote_target *target);
[[noreturn]] static void remote_unpush_and_throw (remote_target *target);
/* For "remote". */
@@ -6150,7 +6150,7 @@ remote_unpush_target (remote_target *target)
fileio_handles_invalidate_target (target);
}
static void ATTRIBUTE_NORETURN
[[noreturn]] static void
remote_unpush_and_throw (remote_target *target)
{
remote_unpush_target (target);