From 39d36a123e02665bd6fab06f3e9481cfde0e0c4a Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 8 May 2006 15:39:13 +0000 Subject: [PATCH] * gdb/solib-target.c (solib_target_remove_one_solib): Correct loop logic. --- ChangeLog.csl | 5 +++++ gdb/solib-target.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog.csl b/ChangeLog.csl index 99dfb1cdfa8..f1c9837711c 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,8 @@ +2006-05-08 Daniel Jacobowitz + + * gdb/solib-target.c (solib_target_remove_one_solib): Correct loop + logic. + 2006-04-24 Daniel Jacobowitz * arm-tdep.c (thumb_heuristic_function_start): New function. diff --git a/gdb/solib-target.c b/gdb/solib-target.c index 8c60237d7df..74be9a18881 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -219,8 +219,7 @@ solib_target_remove_one_solib (char *soname, CORE_ADDR textSeg, if (!solibs_fetched) return; - slot = &solib_start; - while (*slot) + for (slot = &solib_start; *slot != NULL; slot = &(*slot)->next) { if (textSeg != ~(CORE_ADDR) 0 && textSeg != (*slot)->lm_info->textSeg) continue; -- 2.47.2