aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1992-04-03* Makefile.in (OBS): Compile mipsread.c for all targets now.John Gilmore5-22/+30
(VERSION): Bump to 4.4.85. * mipsread.c: Update for new include files. Lint. * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab. * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}: Don't need to bring in mipsread.o specially any more.
1992-04-03Don't need to bring in mipsread.o specially any more.John Gilmore4-4/+4
1992-04-03* mipsread.c (fixup_sigtramp): Also look for _sigtramp as a realStu Grossman4-36/+52
routine (for Irix-4.x). Make many funcs static and void. * mips-tdep.c (mips-frame-chain): Clean up, simplify. * (init_extra_frame_info): Don't trash cached value of frame pointer register. This fixes backtracing through routines that use alloca(). Generally clean up declarations of functions, and use typedefs and macros to reference data structures as appropriate. * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for proc_desc element.
1992-04-02Fix bug in values.c unpacking signed characters on hosts where the defaultFred Fish3-15/+43
character type is unsigned. Add some cases to the tables in procfs.c for constants defined in newer SVR4 systems and reorder the tests for ioctl support of resetting the inherit-on-fork flag to favor the latest method using PIOCRESET.
1992-04-02* buildsym.c (read_struct_type): Avoid coredump when C++John Gilmore2-1/+6
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-04-02Lint.John Gilmore10-41/+62
* symfile.c (add_symbol_file_command): Initialize mapped/readnow.
1992-04-01Many changes to procfs.c, mostly to expand the "info proc" command and toFred Fish6-125/+2140
fix a couple of small bugs. Changes to other files mostly to fix minor things pointed out by the SGI compiler. See ChangeLog for complete details.
1992-04-01Changes in procfs.c to fix bug with inferior's siginfo struct gettingFred Fish2-17/+84
needlessly stomped. Changes in elfread.c and solib.c to fix DWARF processing, broken by other recent changes.
1992-04-01* mipsread.c (parse_procedure): PDR.isym should get pointer toStu Grossman1-0/+5
function name, not .gdbinfo. symbol.
1992-04-01Keep sun4os5 config files now that Sun says it's OK.John Gilmore1-0/+2
1992-04-01(breakpoint_1): Fix prototype, this time for sure!John Gilmore1-1/+5
1992-03-31* Makefile.in: version->4.4.8Stu Grossman1-0/+2
1992-03-31* procfs.c (open_proc_file): Disable inherit-on-fork flag so thatStu Grossman2-0/+9
commands in .cshrc/.profile won't get traced.
1992-03-31* elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.John Gilmore2-1/+8
* exec.c (build_section_table): Don't abort if no sections. * sparc-tdep.c (single_step): Lint. * utils.c (mrealloc): Handle realloc (0, size) case here.
1992-03-31* Makefile.in (alldeps.mak): Config files are now *.m[ht] asStu Grossman2-1/+4
opposed to m[ht]-*!
1992-03-31* config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.Stu Grossman2-1/+3
1992-03-31* mipsread.c (parse_symbol, parse_procedure): Re-do the way thatStu Grossman4-110/+65
.gdbinfo. symbols are created. Move creation from parse_procedure to parse_symbol, where it is fairly easy to grow the symtab. This also fixes a symtab trashing bug on all mips-based systems. * (got_numargs, lookup_numargs, free_numargs): Delete. Not needed anymore. * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct mips_extra_func_info, and all the PROC_xxx macros that look at it.
1992-03-30c-exp.y: Add missing return type to yyparse() prototype.Per Bothner2-0/+5
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-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-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-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-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-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-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-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-20More C++ improvements (pointers to members, qualified names). See ChangeLog.Per Bothner6-379/+574
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.
1992-03-18Remove currently unused state.c and state.h files from list of filesFred Fish1-2/+0
to keep.
1992-03-18Changes to implement the -mapped and -readnow options for commands thatFred Fish11-621/+579
read symbol tables.
1992-03-15Remove unused file mtrace.awk, remove entries from .Sanitize forFred Fish2-8/+1
mtrace.awk and previously removed files.
1992-03-15These files are replaced by the mmalloc library.Fred Fish1-0/+3