aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
AgeCommit message (Collapse)AuthorFilesLines
1992-03-27Mostly changes to dbxread.c to preserve stringtab's on a per-objfileFred Fish1-29/+12
basis, for use in expanding psymtabs to full symtabs. See ChangeLog for other details.
1992-03-19 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,Fred Fish1-18/+44
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().
1992-03-15Globs of changes. See the ChangeLog for details. Most related toFred Fish1-291/+342
using the new mmalloc package.
1992-02-20* coffread.c (decode_base_type): Pass long, not union.John Gilmore1-8/+7
Fix by Eric Valette, ev@chorus.fr.
1991-12-23Oodles of changes. The most important is adding support for stabsPer Bothner1-34/+32
encapsulated in mips ecoff. See ChangeLog for the gory details.
1991-12-04* coffread.c (coff_symfile_read): Avoid select_source_symtab,John Gilmore1-4/+0
since it is not needed and can cause errors when examining ".o" files. * symfile.c (compact_misc_function_vector): Handle empty vector.
1991-12-01 Changes due to include file renaming:Steve Chamberlain1-1/+1
* xcoffread.c: internalcoff.h ->coff/internal.c, coff-rs6000.h ->coff/rs6000.h * mipsread.c: coff-mips.h ->coff/mips.h * elfread.c: elf-common.h ->elf/common.h elf-external.h ->elf/external.h, elf-internal.h ->elf/internal.h * dwarfread.c dwarf.h ->elf/dwarf.h * dbxread.c: aout64.h ->aout/aout64.h stab.gnu.h ->aout/stab_gnu.h * coffread.c: internalcoff.h ->coff/internal.h * buildsym.c: stab.gnu.h ->aout/stab_gnu.h * depend Updated to take the above into account.
1991-11-27Improve G++ debugging support.John Gilmore1-0/+4
1991-11-21* defs.h: Incorporate param.h. All users changed.John Gilmore1-1/+0
* 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.
1991-11-18Remove tdesc stuff. Remove FRAME_CHAIN_COMBINE from all tm-*.h files,John Gilmore1-88/+7
since it was always defined exactly the same in all of them.
1991-11-12Remove internal gdb definition of fixed arg count concat() function andFred Fish1-5/+5
convert to use of variable arg count concat() in libiberty.
1991-11-09Add tracking of object files (that contain symbols) to gdb.John Gilmore1-19/+15
This includes a "struct objfile" that owns symtabs and psymtabs that were read in from that binary file. See ChangeLog.
1991-11-08Include coff-m88k.h rather than m88kbcs.hSteve Chamberlain1-1/+1
1991-11-07* coffread.c: Eliminate c_nsyms in favor of c_naux.John Gilmore1-12/+27
Complain if no auxents on .bf and .ef FCN symbols, and assume lots of line numbers. (init_linenos, enter_linenos): Use a sentinel at the end of the read-in linenos, to make for a fast, safe loop-end test.
1991-10-26* symfile.c (syms_from_bfd): New routine.John Gilmore1-4/+0
(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).
1991-10-25* coffread.c, coredep.c, i386-xdep.c: install patches forStu Grossman1-10/+13
SysV/386 3.2 from Mauro DePalma.
1991-10-04* dbxread.c, coffread.c: static-ize functions that wereJohn Gilmore1-3/+3
gratuitiously external. (From Fred Fish.)
1991-09-28 * coffread.c (coff_symfile_read): Use xmalloc, not malloc.John Gilmore1-46/+137
* 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.
1991-09-11* core.c (core_file_command): Print frame at coredump withJohn Gilmore1-2/+6
its level number, by calling print_stack_frame. * frame.h: Add selected_frame_level, print_stack_frame. * frame.h, stack.c: Remove print_sel_frame, print_selected_frame. * convex-tdep.c, convex-xdep.c, infcmd.c, inflow.c, infrun.c: Change print_sel_frame and print_selected_frame callers to print_stack_frame. * dbxread.c (read_ofile_symtab): Avoid empty else clause. * symfile.c (free_named_symtabs): Ditto. * main.c (main): wrap_here needs an arg. * solib.c (find_solib): Avoid memory access if _DYNAMIC is zero. (solib_add): Avoid noise. (solib_create_inferior_hook): Lint. (sharedlibrary_command): Move dont_repeat to here. * utils.c (error): Call wrap_here to force buffered output. Small patches from Peter Schauer: * coffread.c (start_symtab): Free any existing line_vector before malloc-ing new one. (read_coff_symtab): Ditto for type_vector. * source.c (lines_to_list): New variable, replacing function. (all uses): Use as variable. (_initialize_source): Add 'set listsize' and 'show listsize'. * utils.c (lines_to_list): Remove function. * stack.c (print_frame_info): Use as variable. * defs.h (lines_to_list): Remove declaration.
1991-08-22lintStu Grossman1-11/+10
1991-07-05Thu Jul 4 14:47:06 1991 John Gilmore (gnu at cygint.cygnus.com)John Gilmore1-15/+4
* configure.in, Makefile.in: Avoid rebuilding "depend" as much. Avoid declaring Makefile dependencies, because GNU Make stupidly tries to update it if we do. * coffread.c: Revise for minor changes to bfd internal coff indexes. * configure: If -template= is given a relative path, make it absolute before recurring in subdirectories.
1991-06-04Change GDB over to GNU General Public License version 2.John Gilmore1-6/+6
1991-05-29Update bfd_h_get{short,long} to bfd_h_get{_16,_32} for basic type sizeJohn Gilmore1-46/+46
independence.
1991-05-19configure changes and -opcode.h movement.K. Richard Pixley1-0/+5
1991-05-04Saber C (lint) cleanups, and a few bug fixes. See ChangeLog.John Gilmore1-1/+1
1991-05-03Make it run on wingnut (88k, DGUX). Complete list of changes in the ChangeLog.Jim Kingdon1-12/+56
1991-05-02The list of changes is too long to fit in the cvs log (since it truncates!).Jim Kingdon1-1/+9
Look at the ChangeLog for Apr 30 and May 1.
1991-05-02Merge devo/bfd with GDB's bfd.John Gilmore1-4/+10
Get getopt and obstack from -liberty rather than compiling them here. * coffread.c: turn a printf into a complain(), and try to deal more gracefully with botched-looking lineno pointers. * dbxread.c: Use bfd_get_symcount rather than bfd_get_symcount_upper_bound. Don't coredump on files with zero symbols in them (a BFD bug showed this one). * environ.c: Pass GNUTARGET into the parent (gdb) as well as the child.
1991-04-21 * coffread.c (find_linenos): Use LINESZ not sizeof (struct lineno).Jim Kingdon1-1/+10
* coffread.c (end_symtab): Initialize language, dirname, and fullname fields.
1991-04-20Fix comment (coff-encap -> dbx-in-coff).Jim Kingdon1-2/+2
1991-04-19 * coffread.c (read_coff_symtab): Check for "LF%" with all theJim Kingdon1-3/+14
other L*% things. * coffread.c (SDB_TYPE): New macro. various: Use it instead of checking against T_NULL.
1991-04-13 * coffread.c (end_psymtab): Free named symtabs and psymtabs forJohn Gilmore1-2/+5
a file, once a new symtab has been read for it. * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New defines for the blocks of a blockvector that contain global and file-static symbols and the first of the smaller scope contours. * symtab.c (lookup_symbol, find_pc_symtab, find_pc_line, decode_line_1, make_symbol_completion_list): Use the above. * coffread.c (end_symtab, patch_opaque_types): Ditto.
1991-03-28Initial revisionK. Richard Pixley1-0/+1969
1990-09-05Initial revisionJohn Gilmore1-2018/+0
2012-06-03gdb-3.5gdb-3.51-5/+15
2012-06-03gdb-3.4gdb-3.41-4/+2
2012-06-03gdb-3.3gdb-3.31-33/+91
2012-06-03gdb-3.1gdb-3.11-109/+210
2012-06-03gdb-2.8.1gdb-2.8.11-1/+1426
2012-06-03gdb-2.8gdb-2.81-1415/+8
2012-06-03gdb-2.5.1gdb-2.5.11-43/+16
2012-06-03gdb-2.4+.aux.coffgdb-2.4+.aux.coff1-0/+1860