aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
AgeCommit message (Collapse)AuthorFilesLines
1992-04-02Lint.John Gilmore1-19/+17
* symfile.c (add_symbol_file_command): Initialize mapped/readnow.
1992-03-27Mostly changes to dbxread.c to preserve stringtab's on a per-objfileFred Fish1-168/+81
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-54/+119
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-17/+30
using the new mmalloc package.
1992-02-22* xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.John Gilmore1-185/+157
* minsyms.c (install_minimal_symbols): Add bunches to any existing minsyms in the objfile. Avoid extra mallocation by working directly in the obstack. Remove ignored `mainline' parm. * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h, xcoffread.c: Change all callers. * FIXME: We should be able to eliminate MAINLINE from all the symbol readers now, with a small bit of work. * valops.c, value.h: Lint. * remote-vx.c: Add missing break; statement. Bugfix by Michael Sclafani, <sclafani@src.dec.com>.
1992-01-28Handle debug symbols in dynamically loaded (relocated) code:John Gilmore1-24/+76
* 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.
1992-01-28Oops, checked in version with the wrong stuff enabled. Turn it off...Stu Grossman1-2/+4
1992-01-28* dbxread.c (process_one_symbol): Make a first cut at handlingStu Grossman1-6/+13
symbol tables generated by Suns acc.
1992-01-13 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now thatPer Bothner1-5/+12
mips-tfile has been hacked to act more "traditionally." * dbxread.c: Fixed typo in comment.
1991-12-27More changes, mostly cleanups from the last set.Per Bothner1-18/+5
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-27Various changes to clean up ADD_PSYMBOL_TO_LIST and ADD_PSYMBOL_ADDR_TO_LISTFred Fish1-31/+0
usages.
1991-12-23Oodles of changes. The most important is adding support for stabsPer Bothner1-677/+83
encapsulated in mips ecoff. See ChangeLog for the gory details.
1991-11-21* defs.h: Incorporate param.h. All users changed.John Gilmore1-728/+149
* 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-10-27* buildsym.c: Break out initial malloc sizes.John Gilmore1-65/+4
(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-2595/+27
from dbxread.c, so they can be shared with xcoffread.c.
1991-10-26 Various fixes to improve g++ debugging. See ChangeLog.Per Bothner1-16/+29
1991-10-24Remove the object file specific fields from the partial symbol tableFred Fish1-15/+39
structure and replace them with a pointer to private data for each different flavor of object file reader to initialize appropriately.
1991-10-16* dbxread.c (read_dbx_symtab, process_one_symbol): HandleJohn Gilmore1-1/+4
Sequent N_FN_SEQ like everybody else's N_FN.
1991-10-15Changes from Fred Fish:John Gilmore1-49/+56
* tm-68k.h (FPI_REGNUM): Add. * infrun.c (child_create_inferior): flush stdout and stderr before forking. * configure.in: Handle amigados, amix hosts and targets. * inflow.c: Handle TIOCGLTC_BROKEN for Amiga. From Andreas Schwab: * values.c (show_convenience): Use printf_filtered. * main.c (define_command): Check result of lookup_command for exact match. (echo_command): Use printf_filtered, and force output out. * dbxread.c (read_enum_type): Avoid Modula-2 kludge that breaks C programs. * i387-tdep.c (double_to_i387): Fix typo for double_to_ieee_extended. * utils.c (_initialize_utils): If !ISATTY, don't paginate.
1991-10-04* coffread.c, dbxread.c, symfile.c, symmisc.c, symtab.h: RemoveJohn Gilmore1-14/+9
vestiges of typevectors, which were for symsegs and are no longer used. (From a question by Eliot Dresselhaus <dresselh@RFT30.nas.nasa.gov>).
1991-10-04* dbxread.c, coffread.c: static-ize functions that wereJohn Gilmore1-6/+6
gratuitiously external. (From Fred Fish.)
1991-10-04* c-exp.y: sym->class to SYMBOL_CLASS (sym).John Gilmore1-1/+1
* dbxread.c (dbx_lookup_type): Keep doubling size of typevector until it is large enough.
1991-10-03* dbxread.c (read_type): Handle error case slightly better.John Gilmore1-2/+4
Make complaint message not C++-specific. * symtab.c (lookup_symtab_1, lookup_symbol): "fatal" errors between symtabs and psymtabs become ordinary error()s. * dbxread.c (read_dbx_symtab): Relocate end_of_text_addr properly, making "end pc" correct in shared lib psymtabs. (From Guy Harris <guy@auspex.com>.)
1991-10-01* dbxread.c: Enable, but soften, const_vol_complaint.John Gilmore1-33/+18
(read_dbx_symtab): N_STSYM and N_LCSYM define static vars. Ditto Gould N_NBSTS and N_NBLCS. Also, all types in the psymtab should be file-scope, not global. (read_struct_type): Remove ancient multiple-inheritance warning. (read_range_type): Check base type, complain & patch if undefined.
1991-09-19* symfile.c (allocate_symtab): New fn, consolidates the workJohn Gilmore1-48/+91
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-08-19Fixed two C++ related bugs.Michael Tiemann1-53/+48
1991-07-19Eliminate LOC_EXTERNAL. Improve select_source_symtab. Bug fixes.John Gilmore1-21/+9
1991-05-30Roll in Tiemann changes for gcc -ansi. Fix assorted bugs. See ChangeLog.John Gilmore1-2/+4
1991-05-29Update bfd_h_get{short,long} to bfd_h_get{_16,_32} for basic type sizeJohn Gilmore1-14/+32
independence.
1991-05-02The list of changes is too long to fit in the cvs log (since it truncates!).Jim Kingdon1-15/+24
Look at the ChangeLog for Apr 30 and May 1.
1991-05-02Merge devo/bfd with GDB's bfd.John Gilmore1-2/+3
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-30Tue Apr 30 13:13:33 1991 Michael Tiemann (tiemann at cygint.cygnus.com)Michael Tiemann1-1/+1
* valprint.c (type_print_base): If the type being printed is a struct containing undefined types, print "<undefine type>" as the type instead of crashing. * values.c (value_headof): Get the vtable pointer taking TYPE_VPTR_BASETYPE into account. * symtab.c, symtab.h, dbxread.c: Fix various whitespace splotches.
1991-04-26 dbxread.c (read_type): If we get "##", don't lookup_function_typeJim Kingdon1-24/+31
and start clobbering it; allocate_stub_method instead. * dbxread.c (read_struct_type): Put "op$" instead of "operator" in the symbol table. * dbxread.c (read_struct_type): Set fcontext to 0 for normal member function. * dbxread.c (read_struct_type): Initialize name to 0. * dbxread.c (read_ofile_symtab, N_CATCH): Add offset to bufp->n_value. * dbxread.c (dbx_create_type): Zero TYPE_VPTR_BASETYPE. (read_struct_type): Don't bother to set TYPE_VTPR_{BASETYPE,FIELDNO} if it's just going to be {0,1}. * dbxread.c (virtual_context): Use TYPE_BASECLASS starting at 0 (yes, it's #if 0, but just in case...).
1991-04-24 * main.c (cd_command): Call dont_repeat.Jim Kingdon1-8/+18
* dbxread.c (read_struct_type): If const/volatile character is missing, don't complain, just continue. * dbxread.c (read_struct_type): Only try to read the fcontext if it is there. Also change "error_type " to "return error_type ". values.c (value_virtual_fn_field): If there is no fcontext, then do things the way GDB 3.x did. valops.c (search_struct_method): Add type to value_virtual_fn_field arguments. * dbxread.c (read_struct_type): Fix typo: *pp != '\0' -> **pp != '\0'.
1991-04-23*** empty log message ***Jim Kingdon1-0/+1
1991-04-19 * dbxread.c (end_symtab, end_psymtab): Change comments.John Gilmore1-1/+5
(initialize_dbxread): Call dbx_new_init() in case the first command is add-symbols.
1991-04-13 Permit symbols to be superseded when new symbol files haveJohn Gilmore1-9/+24
been read in, particularly for VxWorks. * dbxread.c (read_dbx_symtab): Allow N_SOL to cleanly take us back to the main file, as well as to include files. Also, put global functions into the global psymtab, to make "i fun" work. (end_psymtab): Free named symtabs and psymtabs for a file, once a new psymtab for it has been read.
1991-04-06*** empty log message ***John Gilmore1-2/+5
1991-04-05*** empty log message ***John Gilmore1-1/+4
1991-03-28Initial revisionK. Richard Pixley1-0/+5348
1990-09-05Initial revisionJohn Gilmore1-5476/+0
2012-06-03gdb-3.5gdb-3.51-28/+93
2012-06-03gdb-3.4gdb-3.41-37/+193
2012-06-03gdb-3.3gdb-3.31-641/+1343
2012-06-03gdb-3.1gdb-3.11-403/+1699
2012-06-03gdb-2.8.1gdb-2.8.11-12/+763
2012-06-03gdb-2.8gdb-2.81-861/+448
2012-06-03gdb-2.5.3gdb-2.5.31-0/+5
2012-06-03gdb-2.5.2gdb-2.5.21-88/+78
2012-06-03gdb-2.5.1gdb-2.5.11-38/+779