diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 32912ea..4c9e82d 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1575,13 +1575,12 @@ svr4_same (struct so_list *gdb, struct so_list *inferior) if (! strcmp (gdb->so_original_name, inferior->so_original_name)) return 1; - /* On Solaris, when starting inferior we think that - dynamic linker is /usr/lib/ld.so.1, but later on, - the table of loaded shared libraries contains - /lib/ld.so.1. - Sometimes one file is a link to another, but sometimes - they have identical content, but are not linked to each - other. */ + /* On Solaris, when starting inferior we think that dynamic linker is + /usr/lib/ld.so.1, but later on, the table of loaded shared libraries + contains /lib/ld.so.1. Sometimes one file is a link to another, but + sometimes they have identical content, but are not linked to each + other. We don't restrict this check for Solaris, but the chances + of running into this situation elsewhere are very low. */ if (strcmp (gdb->so_original_name, "/usr/lib/ld.so.1") == 0 && strcmp (inferior->so_original_name, "/lib/ld.so.1") == 0) return 1; diff --git a/gdb/solist.h b/gdb/solist.h index 915b137..01f734f 100644 --- a/gdb/solist.h +++ b/gdb/solist.h @@ -115,9 +115,9 @@ struct target_so_ops const domain_enum domain, struct symtab **symtab); - /* Given two so_list, first from GDB thread list and another - present in the list returned by current_sos, return 1 if - they are equal -- referring to the same library. */ + /* Given two so_list objects, one from the GDB thread list + and another from the list returned by current_sos, return 1 + if they represent the same library. */ int (*same) (struct so_list *gdb, struct so_list *inferior); };