]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Do not use warning_pre_print in linux-thread-db.c
authorTom Tromey <tromey@adacore.com>
Fri, 31 Jan 2025 21:15:30 +0000 (14:15 -0700)
committerTom Tromey <tromey@adacore.com>
Fri, 21 Mar 2025 15:26:48 +0000 (09:26 -0600)
linux-thread-db.c may print "warning_pre_print" before displaying an
error message.  This seems like a mistake to me, and furthermore I
think it's best to be as sparing as possible with uses of
warning_pre_print, so this patch removes the prefix.

Reviewed-By: Keith Seitz <keiths@redhat.com>
gdb/linux-thread-db.c

index 9d84187a9ad0897ced25c7639e92ebb2e1e96746..f946c2a3e7330c02081594c04ee93406f1862adb 100644 (file)
@@ -778,9 +778,6 @@ check_thread_db (struct thread_db_info *info, bool log_progress)
     }
   catch (const gdb_exception_error &except)
     {
-      if (warning_pre_print)
-       gdb_puts (warning_pre_print, gdb_stderr);
-
       exception_fprintf (gdb_stderr, except,
                         _("libthread_db integrity checks failed: "));