aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsread.c
AgeCommit message (Collapse)AuthorFilesLines
1992-01-30Various fixed triggered by trying to do the right thing wrtPer Bothner1-83/+147
to external symbols in mips ecoff binaries. See ChangeLog.
1992-01-28Handle debug symbols in dynamically loaded (relocated) code:John Gilmore1-122/+174
* dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass offset to process_one_symbol. (process_one_symbol): Take new offset parameter. Add it into appropriate symbol types to relocate symbols to loaded addresses. Handle all possible symbol types, and complain() about types that we don't expect to see. * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to process_one_symbol (FIXME, should pass real offset). Misc bugfixes: * breakpoint.c (resolve_sal_pc): Split out code to resolve a sal's PC value. (set_breakpoint, break_command_1, until_break_command, catch_command_1, breakpoint_re_set_one): Use it. (breakpoint_re_set_one): Disable bkpts that don't re-set cleanly. (breakpoint_re_set): Mention breakpoint number in error messages. * symtab.h (resolve_sal_pc): Declare. * infcmd.c (jump_command): Use resolve_sal_pc. * source.c (find_source_lines): Avoid "Source file is more recent than executable" when bfd_get_mtime gives 0. (list_command): Shorten "FILE, line N" to "FILE:N". * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
1991-12-23Oodles of changes. The most important is adding support for stabsPer Bothner1-658/+579
encapsulated in mips ecoff. See ChangeLog for the gory details.
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-28Make structs work on DECstation (sigh)John Gilmore1-3/+8
1991-11-27Fix syntax errors.John Gilmore1-2/+3
1991-11-27Improve G++ debugging support.John Gilmore1-35/+37
1991-11-21* defs.h: Incorporate param.h. All users changed.John Gilmore1-8/+8
* 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-09Add tracking of object files (that contain symbols) to gdb.John Gilmore1-23/+30
This includes a "struct objfile" that owns symtabs and psymtabs that were read in from that binary file. See ChangeLog.
1991-11-01* mipsread.c (read_mips_symtab, read_the_mips_symtab): Use realJohn Gilmore1-3/+6
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.
1991-10-26* symfile.c (syms_from_bfd): New routine.John Gilmore1-20/+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-24Remove the object file specific fields from the partial symbol tableFred Fish1-36/+51
structure and replace them with a pointer to private data for each different flavor of object file reader to initialize appropriately.
1991-09-19* mipsread.c (_initialize_mipsread): Avoid usingJohn Gilmore1-1/+7
builtin_type_void at initialize time. (mipscoff_symfile_read): use it now.
1991-09-19* symfile.c (allocate_symtab): New fn, consolidates the workJohn Gilmore1-9/+30
of allocating and initializing a new struct symtab. Set the language of the symtab based on its filename extension. * symfile.h: Declare it. * mipsread.c (new_symtab): Use it. Minor formatting changes. * dbxread.c (end_symtab): Use it. * mipsread.c (parse_symbol, case stParam and stProc): Add #if 0'd code for saving types of parameters with each function definition. * dbxread.c (define_symbol, function and parameter cases): Ditto. (read_dbx_symtab, case N_DEFD): Ignore. (read_enum_type): Recognize FALSE/TRUE enum as Modula-2 BOOLEAN type. (read_range_type): Rename MAX_OF_TYPE to MAX_OF_C_TYPE, etc. #if 0 out its uses, though, since they set a dead value. * coffread.c (end_symtab): Use allocate_symtab. (process_coff_symbol): #if 0'd for functions and params as above. (read_enum_type): Recognize Modula-2 BOOLEAN.
1991-09-17Fix signed vs. unsigned char bug in parse_lines().Stu Grossman1-215/+229
1991-07-19Make mipsread.c handle static symbols, both in psymtabs and symtabs.John Gilmore1-83/+169
1991-07-09 * core.c (memory_error): Reword error msg to mislead less.John Gilmore1-34/+52
* mips-pinsn.c (print_insn_arg 'd'): Print $ with reg name. * mipsread.c (read_mips_symtab, read_the_mips_symtab, parse_partial_symbols): Use newer BFD internals (external_filehdr and external_aouthdr), byte-swap the fields that we care about before using them, and make the file header data local to read_the_mips_symtab rather than global.
1991-05-13 * mipsread.c: Rather than keeping count of how many symtabsJohn Gilmore1-113/+113
and psymtabs we have, for sorting purposes, count them when we need to sort. This fixes bug in rereading of symbol tables.
1991-05-03 Mips bringup and general cleanupJohn Gilmore1-234/+0
* cplus-dem.c: Move CPLUS_MARKER define to after defs.h. * infptrace.c (PT_WRITE_D, PT_READ_D): Use correct values. (This still doesn't seem to make MIPS bkpts work.) * mipsread.c: Remove dup "Reading symbol data..." msg. (symbol_file_command, add_file_command): Remove, obsol. * printcmd.c (ptype_command): Say "an enum" rather than "a enum". Wrap output appropriately. * stack.c (locals_info, catch_info, args_info): Check selected_frame rather than target_has_stack or coredumping. * valprint.c (type_print_varspec_suffix): Wrap "ptype" output of enums appropriately.
1991-04-20 * mipsread.c (parse_symbol): Set startup_file_{start,end} ifJim Kingdon1-0/+5
entry_point is in current file.
1991-04-19*** empty log message ***Jim Kingdon1-1/+3
1991-04-13 * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): NewJohn Gilmore1-20/+27
defines for the blocks of a blockvector that contain global and file-static symbols and the first of the smaller scope contours. * mipsread.c: Use them. * coffread.c (end_psymtab): Free named symtabs and psymtabs for a file, once a new symtab has been read for it. * mipsread.c: FIXME. We need to do the same for MIPS, but it looks harder to determine the top-level block before it's been queued to the psymtab list.
1991-03-28Initial revisionK. Richard Pixley1-0/+2879