diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-05-08 15:39:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-05-08 15:39:13 +0000 |
commit | 39d36a123e02665bd6fab06f3e9481cfde0e0c4a (patch) | |
tree | c2a7397bb774253b31f6f3fb018b003088d297b1 | |
parent | e92dbc6ad16c0bc60e8aceca9eb121b7c886cd44 (diff) | |
download | binutils-gdb-39d36a123e02665bd6fab06f3e9481cfde0e0c4a.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; |