diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-05-08 15:39:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-05-08 15:39:13 +0000 |
commit | 7aee0ced4105f18500c6b6e7741d3986ed26cbaa (patch) | |
tree | 00145d618b2b87bf63b40bb2d76f12c2b273b6b8 | |
parent | fa8481c75a4002b76672757d239ea7fb0e1e2753 (diff) | |
download | gdb-7aee0ced4105f18500c6b6e7741d3986ed26cbaa.tar.gz |
* gdb/solib-target.c (solib_target_remove_one_solib): Correct loop
logic.
-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; |