summaryrefslogtreecommitdiffstats
path: root/gdb/symfile.c
Commit message (Collapse)AuthorAgeFilesLines
* Lint.John Gilmore1992-04-021-13/+14
| | | | * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
* Merged in latest RS6000 diffs from Metin G. Ozisik.Per Bothner1992-03-291-1/+1
|
* Add OBJF_SYMS flag and use it to decide whether or not we have alreadyFred Fish1992-03-281-51/+44
| | | | | | | tried to read symbols from a file, for mapped objfiles. This fixes a memory leak (actually a constant memory growth) due to reading symbol files with no debug info and thus generating no psymtabs or symtabs. Most typically happened with shared libraries.
* * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,Fred Fish1992-03-191-87/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | elfread.c (coff_symfile_finish): Add function, prototype, and add to the xxxx_sym_fns struct for each file type. Also reformat the xxxx_sym_fns vector to a standard format and add comments. * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c, elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read): Pass pointer to struct objfile rather than pointer to sym_fns. Change references inside each function accordingly. Allocate any symbol file specific info in the per-objfile memory region. * dbxread.c (free_and_init_header_files): Break function into free_header_files(), called from dbx_symfile_finish(), and init_header_files(), called from dbx_new_init(). * dbxread.c (dbx_new_init): Move deallocation things to new dbx_symfile_finish function. * elfread.c (elf_new_init): Call buildsym_new_init(). * objfiles.c (free_objfile): Call the appropriate symfile_finish() routine for the objfile before deallocating other stuff. * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg. * symfile.h: Move struct sym_fns to before struct objfile def. Add sym_finish function pointer and change prototypes of other function pointers to reflect passing struct objfile pointer rather than struct sym_fns pointer. * symfile.c: Remove now obsolete symtab_fns pointer. * symfile.c (symfile_init): Renamed to find_sym_fns, and now only locates the correct sym_fns struct for the given objfile. * symfile.c (syms_from_objfile, symbol_file_add): Restructured for better support of mapped symbol tables. * symfile.c (symbol_file_command): Remove obsolete code using symfile_fns. * symfile.h: Remove duplicate declarations for symfile_objfile, entry_point, and object_files. * target.c (target_info): Compare symfile_objfile to NULL. * xcoffread.c (aixcoff_new_init): Move deallocation stuff to aixcoff_symfile_finish().
* Changes to implement the -mapped and -readnow options for commands thatFred Fish1992-03-181-77/+134
| | | | read symbol tables.
* Globs of changes. See the ChangeLog for details. Most related toFred Fish1992-03-151-89/+62
| | | | using the new mmalloc package.
* * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.John Gilmore1992-02-271-14/+26
| | | | | | | | | | | * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE. * symtab.c (find_pc_symtab): Handle having no objfiles. * infcmd.c: Fix comment. * objfiles.c (free_all_objfiles): Add. * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add. * symfile.c (symbol_file_command): free all objfiles when specifying a new symbol file. (reread_symbols): Stat the file name, don't fstat the descriptor.
* * symfile.c (symbol_file_command): strcmp => !strcmp.John Gilmore1992-02-221-2/+2
| | | | | | | | | | * breakpoint.h: Move prototypes to follow enum definition they need. * breakpoint.c, infrun.c: Lint. * printcmd.c: Use `enum enable' rather than `enum display_status'. * mipsread.c: First pass at making it compile with the new objfile changes. Probably seriously broken still, but it compiles. FIXME.
* * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,Stu Grossman1992-02-221-486/+338
| | | | | | | | | breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h, mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for stepping (and nexting) through longjmp(). Also, cleanup breakpoint handling quite a bit by creating explicit breakpoint types instead of using magic breakpoint numbers. Makefile.in: Update version to 4.4.3
* Various fixed triggered by trying to do the right thing wrtPer Bothner1992-01-301-3/+49
| | | | to external symbols in mips ecoff binaries. See ChangeLog.
* * Makefile.in: VERSION 4.2.96.John Gilmore1991-12-041-13/+66
| | | | | | | | | | | | | | | | | | * main.c (initialize_main): Revise command descriptions. * command.c (show_user): `info user' -> `show user'. * symtab.c (_initialize_symtab): Typo in `info types' desc. * coffread.c (coff_symfile_read): Avoid select_source_symtab, since it is not needed and can cause errors when examining ".o"s. (read_coff_symtab, decode_base_type): Use complain, not printf. Print symbol name, not its number. Remove "#if defined(clipper) #define BELIEVE_PCC_PROMOTION", which someday should go in a clipper target config file. * symfile.c (compact_misc_function_vector): Handle empty vector. (complain, clear_complaints, syms_from_objfile): Fix complaint formatting. * xcoffexec.c: Change syms_from_objfile caller.
* * coffread.c (coff_symfile_read): Avoid select_source_symtab,John Gilmore1991-12-041-3/+4
| | | | | | | since it is not needed and can cause errors when examining ".o" files. * symfile.c (compact_misc_function_vector): Handle empty vector.
* * defs.h: Incorporate param.h. All users changed.John Gilmore1991-11-211-87/+295
| | | | | | | | | | | * param-no-tm.h: Change users to define TM_FILE_OVERRIDE instead. * param.h, param-no-tm.h: Removed. * Update copyrights in all changed files. * dbxread.c, dwarfread.c, inflow.c, infrun.c, m2-exp.y, putenv.c, solib.c, symtab.h, tm-umax.h, valprint.c: Lint. * tm-convex.h, tm-hp300hpux.h, tm-merlin.h, tm-sparc.h, xm-merlin.h: Avoid host include files in target descriptions. * getpagesize.h: Removed, libiberty copes now.
* * mipsread.c (read_mips_symtab, read_the_mips_symtab): Use realJohn Gilmore1991-11-011-5/+10
| | | | | | | | | | | filename with error messages. * stack.c (frame_select_command): Rename to select_frame_command to avoid "fr" and "fra" having nonunique completions. * symfile.c (sort_symtab_syms): Ignore sort of zero symtab *. (symfile_init): Print file format name when unable to handle it. (free_named_symtabs): Use BLOCKVECTOR rather than obsolete BLOCKLIST. * symmisc.c (free_symtab): Only free linetable if nonzero. * symtab.h: Remove obsolete BLOCKLIST macros.
* * symfile.c (syms_from_bfd): New routine.John Gilmore1991-10-261-24/+79
| | | | | | | (add_symbol_file): Call it to do the real work. (syms_from_bfd): Initialize entry_point before calling symfile_init. * symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c: Avoid declaring or setting entry_point (symfile.h & symfile.c cope).
* * coffread.c (coff_symfile_read): Use xmalloc, not malloc.John Gilmore1991-09-281-11/+59
| | | | | | | | | | | | | | | * language.c, printcmd.c: Lint. * language.h (get_frame_language): Declare. * saber.suppress: update. * stack.c (find_relative_frame): Remove complex code that was #if 0'd, stick with simple code. Lint. * saber.suppress: Update a bit. * symfile.c (add_symbol_file_command): Add "?" to question. * utils.c (parse_escape): Avoid \a due to bdead compilers. * value.h: Declare typedef_print. * valprint.c (val_print, type_print_base): TYPE_CODE_RANGE less kludgey.
* lintStu Grossman1991-08-221-36/+43
|
* Roll in Tiemann changes for gcc -ansi. Fix assorted bugs. See ChangeLog.John Gilmore1991-05-301-1/+4
|
* The list of changes is too long to fit in the cvs log (since it truncates!).Jim Kingdon1991-05-021-2/+4
| | | | Look at the ChangeLog for Apr 30 and May 1.
* * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type.Jim Kingdon1991-04-261-6/+16
| | | | | Return void not int. (also declarations in symfile.h and value.h). Deal with multiple inheritance.
* * blockframe.c, frame.h (reinit_frame_cache): New function.Jim Kingdon1991-04-241-0/+8
| | | | | solib.c (solib_add), symfile.c ({,add_}symbol_file_command): Use it.
* * symfile.c (symbol_file_add): Add comment.Jim Kingdon1991-04-221-4/+5
| | | | solib.c (solib_add): Don't malloc name passed to symbol_file_add.
* * symfile.c: Rename add_syms_command to add_symbol_file_command.Jim Kingdon1991-04-191-4/+4
| | | | | (_initialize_symfile, add_syms_addr_command): Rename add-syms to add-symbol-file.
* * symfile.c (clear_symtab_users_once, cashier_psymtab,John Gilmore1991-04-191-0/+186
| | | | free_named_symtabs): Move these routines from symmisc.c.
* Permit symbols to be superseded when new symbol files haveJohn Gilmore1991-04-131-5/+11
| | | | | | | | | been read in, particularly for VxWorks. * symfile.c (symbol_file_add): Use filtered printing and wrap it. If we have wiped out any old symbol tables, clean up at end of symbol reading. (symbol_file_command): Don't reference symfile_fns if it's zero.
* Initial revisionK. Richard Pixley1991-03-281-0/+746
OpenPOWER on IntegriCloud