From e64a7c8623d823a5da4d0c45e0a8ce3265caabfd Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 30 Oct 2025 12:57:00 -0400 Subject: [PATCH] gdb/solib-svr4: remove unnecessary assert and variable I don't think this assert adds any value. Change-Id: Ibc12566f97bf9b7c091967a34b74d2b76c2b8e54 Cc: Lancelot SIX --- gdb/solib-svr4.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 7c4a8b274c4..b21987544a7 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -3631,9 +3631,6 @@ find_debug_base_for_solib (const solib *solib) /* This is always called for solibs with an associated objfile. */ gdb_assert (solib->objfile != nullptr); - svr4_info *info = get_svr4_info (solib->objfile->pspace ()); - gdb_assert (info != nullptr); - auto &lm_info = get_lm_info_svr4 (*solib); return lm_info.debug_base; -- 2.47.3