aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
AgeCommit message (Collapse)AuthorFilesLines
1992-05-01* gdbtypes.c (make_{reference,pointer,function}_type): NewJohn Gilmore1-76/+48
functions which handle overwriting of forward-referenced types for stabs file reading. (lookup_{reference,pointer,function}_type): These just call the make_*_type functions with a null storage alloc parameter. * gdbtypes.h (make_{reference,pointer,function}_type): Declare. * xcoffread.c (smash_to_pointer_type): Remove, no longer used. * buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg. (dbx_alloc_type): Make it easier to understand. No funct change. (define_symbol: 't'): Don't put the typedef name into the name of the struct, union, or enum. Bugfix. (read_type: '*', '&', 'f'): Add comments. Use make_XXX_type routines to properly handle overwriting preallocated types so that forward references will work. (read_enum_type): Force enum values to file scope, due to bug in Sun compiler output. FIXME, fix later. Remove unused header_file_prev_index mechanism. It was already obsolete in gdb-3.5. These comments appeared in 3.5: /* This code was used before I knew about the instance codes. My first hypothesis is that it is not necessary now that instance codes are handled. */ * dbxread.c (add_new_header_file): Remove header_file_prev_index. * buildsym.h: Remove it and prev_index that saves it. * buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it. * solib.c (special_symbol_handling): When called from core files, must set up debug_addr. Don't print error messages, just return. * symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
1992-04-09buildsym.c: Fix parameter mis-match.Per Bothner1-1/+1
Check in ChangeLog (forgotten last night).
1992-04-09 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).Per Bothner1-0/+39
* buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary symbols for nameless types. And, handle `R' (register parameter type) for AIX. (an extension to existing stabstring grammar). * rs6000-xdep.c: Fix typo (= should have been ==).
1992-04-02* buildsym.c (read_struct_type): Avoid coredump when C++John Gilmore1-1/+1
abbreviated type name is messed up. Reported by Joe Buck. FIXME, we need to determine whether GDB or GCC needs to be smarter to correctly locate this type name. p*927 circumvention, needs real fix when Tiemann's back.
1992-03-29Create and use macros for iterating on symtabs, psymtabs, msymbols.John Gilmore1-13/+33
* minsyms.c (iterate_over_msymbols): Remove; clunky and slow. * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS. (patch_opaque_types): Avoid dummy args and result. * objfiles.c (have_partial_symbols, have_full_symbols, have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify. (iterate_over_objfiles, iterate_over_symtabs, iterate_over_psymtabs): Remove, clunky and slow. * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS, ALL_PSYMTABS, and ALL_MSYMBOLS macros. * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols, dump_objfile): Remove dummy args and results. Move filename comparisons to callers. (printsyms_command, printpsyms_command, printmsyms_command, printobjfiles_command): iterate_over_* => ALL_*. Compare filenames. * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab, lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info, list_symbols, make_symbol_completion_list): Replace explicit iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS. Eliminate Dijkstra flag crap, break out of loops with gotos. (lookup_symtab_1): Protect '/' tests from short filenames. (cplus_mangled_symbol): Move inline into lookup_symbol. * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack. (relocate_minimal_symbol): Move inline to vmap_symtab. (vmap_symtab): Replace iteration with ALL_OBJFILES, iterate_over_msymbols with ALL_MSYMBOLS. Misc cleanup prior to release. * dwarfread.c (dwarf_build_psymtabs): Remove mainline test. * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused. * mipsread.c: Add prototypes for all static functions. * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab, dump_blockvector, dump_block, dump_addrchass, dump_namespace, dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused. * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab, dump_blockvector, dump_block, dump_addrchass, dump_namespace, dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd unused copy! * buildsym.c (define_symbol): Handle global register variables (from Pierre Willard). Complain if register numbers are too large.
1992-03-29Merged in latest RS6000 diffs from Metin G. Ozisik.Per Bothner1-6/+6
1992-03-27Misc cleanups from code review.John Gilmore1-3/+0
1992-03-24Fixed a place where dbx symbol name continuation was appearing in anMichael Tiemann1-0/+1
unexpected place, causing the `Trace' type in gperf/main.o to be mis-parsed.
1992-03-21Many changes, most related to creating entry point information on a per-objfileFred Fish1-1/+2
basis. See comments in objfiles.h and details in ChangeLog. Also remove redundant definitions of FRAME_CHAIN_VALID from most of the tm-* files and use a default definition in frame.h.
1992-03-03Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)Michael Tiemann1-1/+0
* All GDB files that #include defs.h: Removed stdio.h. (defs.h): #include stdio.h. This has been tested by building GDBs for all targets hosted on Sun4. None of the build problems were related to stdio.h inclusion. (n.b. many configurations don't build for other reasons.)
1992-03-02More changes, mostly from IBM for rs6000. (See ChangeLog.)Per Bothner1-0/+2
1992-03-01More changes, mostly from IBM, for the rs6000. See ChangeLog.Per Bothner1-12/+22
1992-02-29Mostly rs6000 changes from IBM.Per Bothner1-0/+4
1992-02-22Saberlint.John Gilmore1-1/+0
* symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
1992-02-22* Check in Fred Fish's changes in these modules. FredJohn Gilmore1-209/+330
will make ChangeLog entries for all of them.
1992-02-07* buildsym.c (read_struct_type): Avoid double-bump of parse ptrJohn Gilmore1-3/+5
in the op$::OPERATOR. case. From Steven McCanne, <mccanne@horse.ee.lbl.gov>.
1992-01-27* buildsym.c (read_struct_type): Circumvent sun3 sunos "--" compiler bug.John Gilmore1-2/+4
* c-exp.y (yylex): `this' and `template' are only tokens in C++. * target.c (target_xfer_memory): Return errno in preference to EIO.
1992-01-20Fix demangling of destructors, and fix a minor indentation problem.Michael Tiemann1-1/+1
1992-01-07buildsym.c (cleanup_undefined_types): Add support for enums.Stu Grossman1-1/+5
This fixes the 'GDB internal error. cleanup_undefined_types with bad type' problem.
1991-12-27More changes, mostly cleanups from the last set.Per Bothner1-2/+2
Made some more progress in removing duplicate assembly opcode files. More improvements to how mipsread and to a lesser extent dbxread work. See the ChangeLog for details.
1991-12-23Oodles of changes. The most important is adding support for stabsPer Bothner1-24/+34
encapsulated in mips ecoff. See ChangeLog for the gory details.
1991-12-09Integrated quick fixes to C++ handling of static member functions andMichael Tiemann1-17/+19
stub methods. These changes are not complete in that a better implementation will be more maintainable, but they make it possible to debug groff with GDB.
1991-12-05Supply missing parenthesis (~line 1269).Fred Fish1-1/+1
1991-12-05Fix things pointed up by Fred Fish's test suite; see ChangeLog.John Gilmore1-77/+137
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-16/+34
1991-11-22SCO lint.John Gilmore1-1/+1
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-18Make changes needed to handle code which uses ANSI-mangled names (andMichael Tiemann1-5/+52
new G++ 1.95 dbxout output).
1991-11-12Fixes related to handling of C++ methods (handle destructorsPer Bothner1-13/+3
and parameters that are functions).
1991-11-12* Makefile.in: Add xcoffread.c, xcoffexec.c.John Gilmore1-0/+18
* xcoffread.c: New file for handling AIX mangled-coff files. * xconfig/rs6000, tconfig/rs6000: New files. * buildsym.c: Add hooks for xcoffread.c.
1991-11-09Remove Rs/6000 changes (patch_block_stabs) so it will link without.John Gilmore1-12/+0
1991-11-09Add tracking of object files (that contain symbols) to gdb.John Gilmore1-56/+205
This includes a "struct objfile" that owns symtabs and psymtabs that were read in from that binary file. See ChangeLog.
1991-11-04 * infrun.c: Fixed typo in comment.Per Bothner1-15/+17
* utils.c: All the v*fprintf emulation is now in libiberty, so we can get rid of some junk. * xm-sun3os4.h, xm-sun4os4.h, xconfig/decstation, xconfig/i386sco, xconfig/sun3os4, xconfig/sun4os4: Don`t need HAVE_STRSTR any more. * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL type operands, as used by branch instructions. * gmalloc.c: Fix prototype of memcpy. * elfread.c: Comment out register_addr, since it conflicts with the one in coredep.c. * buildsym.h: Remove extern declarations of two functions that are really static in buildsym.c. * tm-mips.h: Add symbolic names for more registers. * mips-xdep.c (store_inferior_registers): Use new register names. * xm-mips.h: Simplify REGISTER_U_ADDR, since it is now only used for core files, not ptrace. Therefore, the KERNEL_U_ADDR hack is no longer needed. The mapping to ptrace number is now in in mips-xdep.c. * mips-xdep.c: Define REGISTER_PTRACE_ADDR (using the mapping from the old REGISTER_U_ADDR), and use it in {fetch,store}_inferior_registers. * mipsread.c: Rename #include ecoff.h to new name coff-mips.h. * mips-tdep.c (mips_push_dummy_frame, mips_pop_frame): Save/restore FP regs correctly (?). * dbxread.c: Remove duplicate define_symbol and type_synonym_name (these had been previously moved to buildsym.c). Hence, define_symbol becomes extern instead of static. * buildsym.c (read_struct_type): Comment out bogus handling of C++ operator methods. Minor hacking of reading of class contexts. Make define_symbol non-static, so dbxread.c can call it.
1991-10-27* buildsym.c: Break out initial malloc sizes.John Gilmore1-33/+145
(record_line): Record directly in a subfile. Alloc on demand. (compare_line_numbers): Add from xcoffread.c. (end_symtab): New params say whether to sort pendings and linetable. Patch block stabs if defined. Shrink linetable before allocating the symtab. * buildsym.h: Delete line_vector* and prev_line_number. Add global_stabs and file_stabs for xcoffread. * dbxread.c (start_subfile): Move to buildsym. Change above calls. * symtab.h: LINETABLE(symtab) can now be null. Zap LINELIST. * symmisc.c, symtab.c: Cope with null LINETABLEs.
1991-10-26Break out symbol-table-building routinesJohn Gilmore1-0/+2791
from dbxread.c, so they can be shared with xcoffread.c.