Lines Matching defs:so

205    static int solib_map_sections (struct so_list *so)
227 struct so_list *so = (struct so_list *) arg; /* catch_errors bogon */
235 filename = tilde_expand (so->so_name);
255 so->abfd = abfd;
258 /* copy full path name into so_name, so that later symbol_file_add
262 strcpy (so->so_name, scratch_pathname);
269 if (build_section_table (abfd, &so->sections, &so->sections_end))
275 for (p = so->sections; p < so->sections_end; p++)
280 TARGET_SO_RELOCATE_SECTION_ADDRESSES (so, p);
283 so->textsection = p;
299 void free_so (struct so_list *so)
315 free_so (struct so_list *so)
319 if (so->sections)
320 xfree (so->sections);
322 if (so->abfd)
324 bfd_filename = bfd_get_filename (so->abfd);
325 if (! bfd_close (so->abfd))
333 TARGET_SO_FREE_SO (so);
335 xfree (so);
352 struct so_list *so = (struct so_list *) arg; /* catch_errs bogon */
356 ALL_OBJFILES (so->objfile)
358 if (strcmp (so->objfile->name, so->so_name) == 0)
362 sap = build_section_addr_info_from_section_table (so->sections,
363 so->sections_end);
365 so->objfile = symbol_file_add (so->so_name, so->from_tty,
400 processes we've just attached to, so that's okay. */
469 it's still loaded, so we don't need to do anything. Delete
493 sections from so->abfd; remove them. */
522 section table. Do this immediately after mapping the object so
645 struct so_list *so = NULL; /* link map state variable */
662 for (so = so_list_head; so; so = so->next)
664 if (so->so_name[0])
675 so->textsection != NULL
677 (LONGEST) so->textsection->addr,
681 so->textsection != NULL
683 (LONGEST) so->textsection->endaddr,
686 printf_unfiltered ("%-12s", so->symbols_loaded ? "Yes" : "No");
687 printf_unfiltered ("%s\n", so->so_name);
720 struct so_list *so = 0; /* link map state variable */
722 for (so = so_list_head; so; so = so->next)
726 for (p = so->sections; p < so->sections_end; p++)
729 return (so->so_name);
748 until after the program starts, so we'd better not try to insert
755 as soon as the process begins execution, so there's no need to
757 bp_shlib_event breakpoint, so if we put it off, we'll never get
767 struct so_list *so = so_list_head;
768 so_list_head = so->next;
769 if (so->abfd)
770 remove_target_sections (so->abfd);
771 free_so (so);
818 code. Return 1 if so, 0 otherwise.