Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Remove unused str_backtrace_unavailable variable
@ 2026-05-01  7:31 Luis Machado
  2026-05-01 12:59 ` Tom Tromey
  2026-05-01 14:17 ` Simon Marchi
  0 siblings, 2 replies; 6+ messages in thread
From: Luis Machado @ 2026-05-01  7:31 UTC (permalink / raw)
  To: gdb-patches

The str_backtrace_unavailable variable is initialized but never
used anywhere in the codebase.
---
 gdb/bt-utils.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gdb/bt-utils.c b/gdb/bt-utils.c
index 7fc8d04f306..21a291c3df3 100644
--- a/gdb/bt-utils.c
+++ b/gdb/bt-utils.c
@@ -146,7 +146,6 @@ gdb_internal_backtrace_1 ()
 #endif
 
 static const char *str_backtrace = "----- Backtrace -----\n";
-static const char *str_backtrace_unavailable = "Backtrace unavailable\n";
 
 #endif /* GDB_PRINT_INTERNAL_BACKTRACE */
 
@@ -157,7 +156,6 @@ gdb_internal_backtrace_init_str ()
 {
 #ifdef GDB_PRINT_INTERNAL_BACKTRACE
   str_backtrace = _("----- Backtrace -----\n");
-  str_backtrace_unavailable = _("Backtrace unavailable\n");
 #endif
 }
 
-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-01 15:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-01  7:31 [PATCH] Remove unused str_backtrace_unavailable variable Luis Machado
2026-05-01 12:59 ` Tom Tromey
2026-05-01 14:17 ` Simon Marchi
2026-05-01 14:20   ` Luis
2026-05-01 15:50   ` Tom Tromey
2026-05-01 15:58     ` Machado, Luis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox