diff options
-rw-r--r-- | ChangeLog.csl | 5 | ||||
-rw-r--r-- | 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 <dan@codesourcery.com> + + * gdb/solib-target.c (solib_target_remove_one_solib): Correct loop + logic. + 2006-04-24 Daniel Jacobowitz <dan@codesourcery.com> * 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; |