Home | History | Annotate | Download | only in gdb

Lines Matching refs:objfile

69 static void dbx_symfile_init (struct objfile *);
71 static void dbx_new_init (struct objfile *);
73 static void dbx_symfile_read (struct objfile *, symfile_add_flags);
75 static void dbx_symfile_finish (struct objfile *);
100 hung off the objfile structure. */
103 dbx_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags)
105 read_stabs_symtab (objfile, symfile_flags);
113 dbx_new_init (struct objfile *ignore)
122 It is passed a struct objfile which contains, among other things,
136 dbx_symfile_init (struct objfile *objfile)
139 bfd *sym_bfd = objfile->obfd.get ();
145 dbx_objfile_data_key.emplace (objfile);
147 DBX_TEXT_SECTION (objfile) = bfd_get_section_by_name (sym_bfd, ".text");
148 DBX_DATA_SECTION (objfile) = bfd_get_section_by_name (sym_bfd, ".data");
149 DBX_BSS_SECTION (objfile) = bfd_get_section_by_name (sym_bfd, ".bss");
160 DBX_TEXT_ADDR (objfile) = bfd_section_vma (text_sect);
161 DBX_TEXT_SIZE (objfile) = bfd_section_size (text_sect);
163 DBX_SYMBOL_SIZE (objfile) = obj_symbol_entry_size (sym_bfd);
164 DBX_SYMCOUNT (objfile) = bfd_get_symcount (sym_bfd);
165 DBX_SYMTAB_OFFSET (objfile) = SYMBOL_TABLE_OFFSET;
168 When we blow away the objfile the string table goes away as well.
185 DBX_STRINGTAB_SIZE (objfile) = 0;
186 DBX_STRINGTAB (objfile) = NULL;
205 DBX_STRINGTAB_SIZE (objfile) = 0;
206 DBX_STRINGTAB (objfile) = NULL;
217 DBX_STRINGTAB_SIZE (objfile) = bfd_h_get_32 (sym_bfd, size_temp);
219 if (DBX_STRINGTAB_SIZE (objfile) < sizeof (size_temp)
220 || DBX_STRINGTAB_SIZE (objfile) > bfd_get_size (sym_bfd))
222 DBX_STRINGTAB_SIZE (objfile));
224 DBX_STRINGTAB (objfile) =
225 (char *) obstack_alloc (&objfile->objfile_obstack,
226 DBX_STRINGTAB_SIZE (objfile));
227 OBJSTAT (objfile, sz_strtab += DBX_STRINGTAB_SIZE (objfile));
234 val = bfd_read (DBX_STRINGTAB (objfile),
235 DBX_STRINGTAB_SIZE (objfile),
237 if (val != DBX_STRINGTAB_SIZE (objfile))
244 objfile. I.E, we are in the process of discarding all symbol information
245 for an objfile, freeing up all memory held for it, and unlinking the
246 objfile struct from the global list of known objfiles. */
249 dbx_symfile_finish (struct objfile *objfile)