From: Simon Marchi Date: Thu, 30 Oct 2025 16:57:00 +0000 (-0400) Subject: gdb/solib-svr4: remove unnecessary assert and variable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e64a7c8623d823a5da4d0c45e0a8ce3265caabfd;p=thirdparty%2Fbinutils-gdb.git gdb/solib-svr4: remove unnecessary assert and variable I don't think this assert adds any value. Change-Id: Ibc12566f97bf9b7c091967a34b74d2b76c2b8e54 Cc: Lancelot SIX --- 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;