aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-thread-db.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-01-31 14:15:30 -0700
committerTom Tromey <tromey@adacore.com>2025-03-21 09:26:48 -0600
commit45e4b960fd9517db11e4bdcf489ad14f39bdddf4 (patch)
tree2d0249ebb96c6fde3e2f66b986b8175b805aa8c0 /gdb/linux-thread-db.c
parent05f5f4f2746c2ee1346baaa58a0719e48fe84cc3 (diff)
downloadbinutils-45e4b960fd9517db11e4bdcf489ad14f39bdddf4.zip
binutils-45e4b960fd9517db11e4bdcf489ad14f39bdddf4.tar.gz
binutils-45e4b960fd9517db11e4bdcf489ad14f39bdddf4.tar.bz2
Do not use warning_pre_print in linux-thread-db.c
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>
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r--gdb/linux-thread-db.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
index 9d84187..f946c2a 100644
--- a/gdb/linux-thread-db.c
+++ b/gdb/linux-thread-db.c
@@ -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: "));