aboutsummaryrefslogtreecommitdiff
path: root/gdb/bt-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/bt-utils.h')
-rw-r--r--gdb/bt-utils.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/gdb/bt-utils.h b/gdb/bt-utils.h
index ec2d14a..c2fbe97 100644
--- a/gdb/bt-utils.h
+++ b/gdb/bt-utils.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2021-2024 Free Software Foundation, Inc.
+/* Copyright (C) 2021-2025 Free Software Foundation, Inc.
This file is part of GDB.
@@ -18,8 +18,8 @@
/* Support for printing a backtrace when GDB hits an error. This is not
for printing backtraces of the inferior, but backtraces of GDB itself. */
-#ifndef BT_UTILS_H
-#define BT_UTILS_H
+#ifndef GDB_BT_UTILS_H
+#define GDB_BT_UTILS_H
#ifdef HAVE_LIBBACKTRACE
# include "backtrace.h"
@@ -71,4 +71,13 @@ extern void gdb_internal_backtrace ();
extern void gdb_internal_backtrace_set_cmd (const char *args, int from_tty,
cmd_list_element *c);
-#endif /* BT_UTILS_H */
+/* Initialize language specific strings. */
+
+extern void gdb_internal_backtrace_init_str ();
+
+/* Print MSG to gdb_stderr or stderr in a way that is safe to do from an
+ interrupt handler. */
+
+extern void sig_write (const char *msg);
+
+#endif /* GDB_BT_UTILS_H */