aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1992-03-29LintJohn Gilmore19-97/+258
1992-03-29New host and target.John Gilmore2-0/+24
1992-03-29* Makefile.in (VERSION): Roll to 4.4.7.John Gilmore3-46/+57
(HFILES): Add call-cmds.h. * call-cmds.h: New header for command fns called by other files. * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info. (breakpoint_1): Remove unused type arg. Change callers.
1992-03-29Create and use macros for iterating on symtabs, psymtabs, msymbols.John Gilmore8-573/+215
* 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-29* target.c (nomemory): Now that higher levels examine errno, give EIO.John Gilmore6-45/+174
* tm-sparc.h: Don't #include <sun4/reg.h>. * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove dependency on <sun4/reg.h>. Start to handle cross-byte-order. * language.h: Avoid forward enum declaration. * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh, config/sun4os5.mt: New host and target. * defs.h (errno): #include <errno.h> rather than assuming int. From Pierre Willard.
1992-03-29Merged in latest RS6000 diffs from Metin G. Ozisik.Per Bothner19-120/+607
1992-03-29* config/sparc-elf.mt, hosts/sysv4.h: New config files.John Gilmore1-0/+66
1992-03-29* bout.c, coff-a29k.c, coff-i960.c: Lint.John Gilmore1-2/+2
* configure.in: Add new host and target configs. * elf.c (bfd_prstatus, bfd_fpregset): Avoid typename of register structs, which vary; just use member name. (elf_object_p, elf_core_file_p): Lint, fix comments. * config/sparc-elf.mt, hosts/sysv4.h: New config files.
1992-03-28Fix to use a single disposable copy of section header table and programFred Fish2-42/+39
header table entries.
1992-03-28Add OBJF_SYMS flag and use it to decide whether or not we have alreadyFred Fish3-51/+60
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.
1992-03-27Misc cleanups from code review.John Gilmore7-49/+48
1992-03-27More cleanups for gprof, especially with the '386 target.Sean Eric Fagan2-4/+10
1992-03-27Added support for building on/for an embedded 386 using encapsulated coff.Sean Eric Fagan1-1/+1
1992-03-27Put in stuff necessary for gprof to be built, cleaned up, etc.Sean Eric Fagan2-8/+69
1992-03-27Document requirements for calling mmcheck to install corruption checkingFred Fish3-0/+412
hooks and set up to enforce the requirements. However, we still allow unconditional installation until some complications are resolved.
1992-03-27Mostly changes to dbxread.c to preserve stringtab's on a per-objfileFred Fish5-261/+331
basis, for use in expanding psymtabs to full symtabs. See ChangeLog for other details.
1992-03-27Set MINIMIZE to 0 for a real release.John Gilmore1-0/+9
1992-03-26 * rs6000-pinsn.c: Make dis-assembly output more likePer Bothner1-50/+43
other targets: Don't print instruction in hex before the assembly; use print_address to print out jump destinations.
1992-03-26 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.Per Bothner4-0/+21
* cplus-dem.c: Support "Sc" meaning "signed char".
1992-03-25* configure.in: fix iris/iris3.Stu Grossman2-1/+5
1992-03-25 * command.c, main.c (various places): Use ctype.h macrosPer Bothner2-7/+15
(such as isupper(x)), instead of hard-wiring in ASCII-isms (such as (x >= 'A' && x <= 'Z')). (There are still more of these in other files.) * main.c (defined_command): Lower-case the user's new command before entering it. Needed because command lookup is case-insensitive (and also lower-cases). (Based on Metin's earlier patch.)
1992-03-25* history.c (stifle_history): Negative arg treated as zero.John Gilmore1-0/+4
1992-03-25re-add -rmK. Richard Pixley1-0/+4
1992-03-25aix and irix4 support.K. Richard Pixley2-2/+7
1992-03-25add stamp-rcs to allK. Richard Pixley1-0/+2
1992-03-25remove gas from rs6000 build, use aix host fragmentK. Richard Pixley2-0/+6
1992-03-25pass site_option to recursionsK. Richard Pixley2-4/+11
1992-03-25INSTALL_PROG -> INSTALLK. Richard Pixley1-0/+4
1992-03-25added standard targets, fixed install directoriesK. Richard Pixley1-0/+4
1992-03-25stuff from latest installK. Richard Pixley1-0/+4
1992-03-25remove srcdir from gdb.info ruleK. Richard Pixley2-1/+5
1992-03-25irix4 supportK. Richard Pixley1-0/+1
1992-03-25* infcmd.c (step_1): Call disable_longjmp_breakpoint at the rightStu Grossman1-1/+4
time.
1992-03-25* xm-mips.h: declare strdup for ultrix.Stu Grossman2-0/+6
1992-03-25Install some bug fixes from Brian Fox.John Gilmore2-28/+46
1992-03-25* mipsread.c (fixup_sigtramp): Make sure that current_objfile is setupStu Grossman1-0/+7
when calling new_symbol. * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of current_objfile.
1992-03-24add support for irix4K. Richard Pixley1-0/+41
1992-03-24 * config/rs6000.mh: Update (for Fred's new mmalloc)Per Bothner4-6/+14
flags to disable use of GNU malloc/mmalloc. * munch: Change SYSV rule to allow .text before the label, as well as after, to work for AIX. * gdbtypes.h: Minor clarifiction.
1992-03-24Fixed a place where dbx symbol name continuation was appearing in anMichael Tiemann2-0/+6
unexpected place, causing the `Trace' type in gperf/main.o to be mis-parsed.
1992-03-24* mips-tdep.c: include symfile.h and objfiles.h to fixStu Grossman2-1/+8
compilation errors.
1992-03-24* coff-msym.c (ecoff_swap_rfd_in): remove & for array ref.Stu Grossman2-1/+5
1992-03-23 * valops.c (value_struct_elt_for_reference): Added 'offset'Per Bothner1-0/+6
parameter to handle multiple inheritance. * eval.c, value.h: Update accordingly.
1992-03-21Many changes, most related to creating entry point information on a per-objfileFred Fish32-185/+458
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-20changed prms to send_prHeinz G. Seidl1-1/+1
1992-03-20More C++ improvements (pointers to members, qualified names). See ChangeLog.Per Bothner6-379/+574
1992-03-20Add .stmp-readline to all.cross...Stu Grossman2-2/+2
1992-03-20* Makefile.in (all.cross): Add .stmp-bfd.Stu Grossman2-11/+82
1992-03-19 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,Fred Fish10-310/+520
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-19Add and use definition for IN_SOLIB_TRAMPOLINE which allows wait_for_inferiorFred Fish2-0/+20
to test whether or not it has stepped into the glue that binds an application to a shared library routine.
1992-03-19 Some improvements to g++ debugging.Per Bothner4-54/+192
* symtab.c (list_symbols): demangle before pattern matching. * symtab.c: Other fixes to improve handing of operators. * valprint.c (type_print_base): Fix test for constructor. * values.c (value_static_field): Allow evaluation of CLASS::METHOD, returning a function pointer.