aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-07-16 16:02:12 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2024-07-16 18:30:45 -0400
commitd9deb60b2e9e94b532f43a7d3ddddf5ddf6dbdd3 (patch)
treeb8897a470d1270148fdee39e16f54baa3907a079 /gdb/python
parent9153eb8a7f5449c9baa67b2349cdfc0a47104c9a (diff)
downloadgdb-d9deb60b2e9e94b532f43a7d3ddddf5ddf6dbdd3.zip
gdb-d9deb60b2e9e94b532f43a7d3ddddf5ddf6dbdd3.tar.gz
gdb-d9deb60b2e9e94b532f43a7d3ddddf5ddf6dbdd3.tar.bz2
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>
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/python-internal.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index f25cd3b..5db3088 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -948,7 +948,7 @@ private:
int gdbpy_print_python_errors_p (void);
void gdbpy_print_stack (void);
void gdbpy_print_stack_or_quit ();
-void gdbpy_handle_exception () ATTRIBUTE_NORETURN;
+[[noreturn]] void gdbpy_handle_exception ();
/* A wrapper around calling 'error'. Prefixes the error message with an
'Error occurred in Python' string. Use this in C++ code if we spot
@@ -958,8 +958,7 @@ void gdbpy_handle_exception () ATTRIBUTE_NORETURN;
This always calls error, and never returns. */
-void gdbpy_error (const char *fmt, ...)
- ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2);
+[[noreturn]] void gdbpy_error (const char *fmt, ...) ATTRIBUTE_PRINTF (1, 2);
gdbpy_ref<> python_string_to_unicode (PyObject *obj);
gdb::unique_xmalloc_ptr<char> unicode_to_target_string (PyObject *unicode_str);