summaryrefslogtreecommitdiff
path: root/gdb/symtab.h
Commit message (Collapse)AuthorAgeFilesLines
* * symtab.h (struct symbol): Make section short, not unsigned short.Jim Kingdon1994-01-161-2/+9
|
* * symtab.h (struct symbol, general_symbol_info, minimal_symbol,John Gilmore1994-01-121-25/+35
| | | | | | | partial_symbol): Shrink the storage sizes of symbols, by making enums into 1-byte bitfields when compiled __GNUC__, moving all the enums and small ints to the end of each struct to improve alignment, and switching the section number from int to unsigned short.
* * dbxread.c: Move default definition of GCC_COMPILED_FLAG_SYMBOLJim Kingdon1993-12-271-1/+11
| | | | | | | | | | from here . . . * symtab.h: . . . to here. * dbxread.c (record_minimal_symbol): Move check for gcc{,2}_compiled. and __gnu_compiled* from here . . . * minsyms.c (prim_record_minimal_symbol_and_info): . . . to here. * minsyms.c (prim_record_minimal_symbol): Call prim_record_minimal_symbol_and_info rather than duplicating code.
* * symtab.c, symtab.h, source.c: Change find_line_pc_range to takeJim Kingdon1993-11-021-9/+12
| | | | | | | a struct symtab_and_line argument, rather than a symtab and a line. Re-write it to be based on the address rather than bogusly adding one to the line number and hoping that has something to do with the end of the line.
* * minsyms.c, symtab.h (lookup_next_minimal_symbol): New function.Jim Kingdon1993-09-081-0/+2
| | | | * dbxread.c (process_one_symbol): Use it.
* * symtab.h (struct linetable), xcoffread.c (arrange_linetable):Jim Kingdon1993-09-011-10/+14
| | | | | | | | | | | | | | | Revise comments re linetable sorting. * buildsym.c (compare_line_numbers): Sort by pc, not by line. * coffread.c: Tell end_symtab to sort the line table. * coffread.c: Re-work a lot of the coff-specific stuff to use stuff in buildsym.c. This includes coff_finish_block, coff_context_stack, coff_local_symbols, coff_file_symbols, coff_global_symbols, coff_end_symtab and coff_add_symbol_to_list. (read_enum_type): Deal with it now that we have a "struct pending" not a "struct coff_pending". * buildsym.c (end_symtab): Don't realloc subfile->linetable.
* * frame.h, symtab.h, findvar.c (read_var_value): Change baseregJim Kingdon1993-08-241-25/+19
| | | | | | support to use LOC_BASEREG rather than SYMBOL_BASEREG_VALID. * dwarfread.c: Use LOC_BASEREG where appropriate. * Various: Support LOC_BASEREG and LOC_BASEREG_ARG.
* * frame.h, symtab.h: Revise comments regarding baseregs.Jim Kingdon1993-08-211-8/+19
|
* Make breakpoint_re_set_one work with overloaded member functions,Peter Schauer1993-07-191-1/+1
| | | | | | | | | | | | | `b 123' and `b foo' if foo is a static function. * symtab.c (decode_line_1, decode_line_2): New argument `canonical' to return canonical line specs if requested by the caller. * breakpoint.c, source.c, symtab.c, symtab.h: Change prototypes and callers accordingly. * symtab.c (build_canonical_line_spec): New helper function which constructs the canonical line spec. * breakpoint.c (break_command_1): Use canonical line spec instead of command string as addr_string if necessary. * source.c (line_info): Fix storage leak.
* * symtab.c (decode_line_1): Use end of block to figure out whetherJim Kingdon1993-07-121-2/+2
| | | | | | | | | | | | | | | | | | val.end is in the same function, not minimal symbols. * source.c (line_info): Add a few more wrap_here's. * i386-tdep.c (i386_follow_jump): Do byteswapping where needed and don't make assumptions about sizes of host data types. * blockframe.c, symtab.h (find_pc_partial_function): New arg endaddr. * infrun.c, breakpoint.c, printcmd.c: Change callers. * printcmd.c (containing_function_bounds): Remove. * printcmd.c (disassemble_command): Use find_pc_partial_function, not containing_function_bounds. * infcmd.c (step_1): Use find_pc_partial_function rather than trying to roll our own. Move check for a pc between SIGTRAMP_START and SIGTRAMP_END in find_pc_partial_function, not step_1.
* * infcmd.c (run_stack_dummy): New argument name.Jim Kingdon1993-07-081-3/+11
| | | | | | Change error message in (another) attempt to make it comprehensible. * valops.c (call_function_by_hand): Pass name to run_stack_dummy. * symtab.h: Declare demangle and asm_demangle since macros use them.
* * symtab.h: Add comments about line numbers.Jim Kingdon1993-06-291-4/+8
|
* * symtab.h (struct symtab, line_charpos): Fix comment.Jim Kingdon1993-06-291-35/+37
| | | | * source.c (identify_source_line): Fix off by one bug with line.
* * source.c (line_info): If --fullname, display the source.Jim Kingdon1993-05-261-2/+22
| | | | | | | | (identify_source_line), callers: Take pc as argument, rather than assuming innermost frame (emacs doesn't use this, so no one ever noticed). * symtab.h: Declare frame_file_full_name. * main.c: Don't.
* Doc fixes to previous doc fixes.Jim Kingdon1993-04-231-2/+2
|
* Thu Apr 22 14:50:05 1993 Jim Kingdon (kingdon@cygnus.com)Jim Kingdon1993-04-221-8/+12
| | | | | | | | | | | | | | | | | | | | | * symtab.h: Fix LOC_REF_ARG comment. Wed Apr 22 20:21:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) and Jim Kingdon (kingdon@cygnus.com) * stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a LOC_REGPARM symbol. * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments. symfile.c (compare_symbols): Don't check first character; STRCMP does that. * stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for structures that are passed by address in a register. * symtab.h (enum address_class): Add LOC_REGPARM_ADDR. * findvar.c (read_var_value), printcmd.c (address_info, print_frame_args), stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol), * symtab.c (lookup_block_symbol): Deal with it.
* * symtab.h: Clean up SYMBOL_VALUE comments.Jim Kingdon1993-04-221-37/+30
|
* Remove chill sanitizations, which are no longer necessary.Fred Fish1993-04-161-21/+2
|
* More doc fixesJim Kingdon1993-04-161-1/+3
|
* * symtab.{c,h}: Doc fixes (remove symseg references, last relevantJim Kingdon1993-04-161-39/+39
| | | | in gdb 2.8!).
* * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physnamePeter Schauer1993-04-081-3/+35
| | | | | | | | | is a C++ destructor. * symtab.c (gdb_mangle_name): Use it. * symtab.c (find_methods): Do not add destructors to choice list for constructors. * symtab.c (decode_line_1): Make breakpoints on destructors work for gcc-2.x again.
* * symtab.h (struct linetable_entry): Remove confusing comment.John Gilmore1993-03-231-29/+136
|
* * defs.h (STRCMP, STREQ, STREQN): New macros.Fred Fish1992-12-231-192/+402
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * defs.h (demangle_and_match): Remove prototype. * dwarfread.c (STREQ, STREQN): Remove macros, replaced with STREQ and STREQN defined in defs.h. * dwarfread.c (set_cu_language): For completely unknown languages, try to deduce the language from the filename. Retain behavior that for known languages we don't know how to handle, we use language_unknown. * dwarfread.c (enum_type, symthesize_typedef): Initialize language and demangled name fields in symbol. * dwarfread.c, mipsread.c, partial-stab.h: For all usages of ADD_PSYMBOL_TO_LIST, add language and objfile parameters. * dwarfread.c (new_symbol): Attempt to demangle C++ symbol names and cache the results in SYMBOL_DEMANGLED_NAME for the symbol. * elfread.c (STREQ): Remove macro, use STREQ defined in defs.h. Replace usages throughout. * elfread.c (demangle.h): Include. * elfread.c (record_minimal_symbol): Remove prototype and function. * gdbtypes.h, symtab.h (B_SET, B_CLR, B_TST, B_TYPE, B_BYTES, B_CLRALL): Moved from symtab.h to gdbtypes.h. * infcmd.c (jump_command): Remove code to demangle name and add it to a cleanup list. Now just use SYMBOL_DEMANGLED_NAME. * minsyms.c (demangle.h): Include. * minsyms.c (lookup_minimal_symbol): Indent comment to match code. * minsyms.c (install_minimal_symbols): Attempt to demangle symbol names as C++ names, and cache them in SYMBOL_DEMANGLED_NAME. * mipsread.c (psymtab_language): Add static variable. * stabsread.c (demangle.h): Include. * stabsread.c (define_symbol): Attempt to demangle C++ symbol names and cache them in the SYMBOL_DEMANGLED_NAME field. * stack.c (return_command): Remove explicit demangling of name and use of cleanups. Just use SYMBOL_DEMANGLED_NAME. * symfile.c (demangle.h): Include. * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list): Fix to match macros in symfile.h and allow them to be compiled if INLINE_ADD_PSYMBOL is not true. * symfile.h (INLINE_ADD_PSYMBOL): Default to true if not set. * symfile.h (ADD_PSYMBOL_*): Add language and objfile parameters. Add code to demangle and cache C++ symbol names. Use macro form if INLINE_ADD_PSYMBOL is true, otherwise use C function form. * symmisc.c (add_psymbol_to_list, add_psymbol_addr_to_list): Remove, also defined in symfile.c, which we already fixed. * symtab.c (expensive_mangler): Remove prototype and function. * symtab.c (find_methods): Remove physnames parameter and fix prototype to match. * symtab.c (completion_list_add_symbol): Name changed to completion_list_add_name. * symtab.c (COMPLETION_LIST_ADD_SYMBOL): New macro, adds both the normal symbol name and the cached C++ demangled name. * symtab.c (lookup_demangled_partial_symbol, lookup_demangled_block_symbol): Remove prototypes and functions. * symtab.c (lookup_symbol): Remove use of expensive_mangler, use lookup_block_symbol instead of lookup_demangled_block_symbol. Remove code to try demangling names and matching them. * symtab.c (lookup_partial_symbol, lookup_block_symbol): Fix to try matching the cached demangled name if no match is found using the regular symbol name. * symtab.c (find_methods): Remove unused physnames array. * symtab.c (name_match, NAME_MATCH): Remove function and macro, replaced with SYMBOL_MATCHES_REGEXP from symtab.h. * symtab.c (completion_list_add_symbol): Rewrite to use cached C++ demangled symbol names. * symtab.h: Much reformatting of structures and such to add whitespace to make them more readable, and make them more consistent with other gdb structure definitions. * symtab.h (general_symbol_info): New struct containing fields common to all symbols. * symtab.h (SYMBOL_LANGUAGE, SYMBOL_DEMANGLED_NAME, SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME, SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP, MSYMBOL_INFO, MSYMBOL_TYPE): New macros. * symtab. (struct minimal_symbol, struct partial_symbol, struct symbol): Use general_symbol_info struct. * utils.c (demangle_and_match): Remove, no longer used. * valops.c (demangle.h): Include. * xcoffexec.c (eq): Remove macro, replace usages with STREQ. * blockframe.c, breakpoint.c, c-exp.y, c-valprint.c, dbxread.c, infcmd.c, m2-exp.y, minsyms.c, objfiles.h, solib.c, stack.c, symmisc.c, symtab.c, valops.c: Replace references to minimal symbol fields with appropriate macros. * breakpoint.c, buildsym.c, c-exp.y, c-typeprint.c, c-valprint.c, coffread.c, command.c, convex-tdep.c, cp-valprint.c, dbxread.c, demangle.c, elfread.c, energize.c, environ.c, exec.c, gdbtypes.c, i960-tdep.c, infrun.c, infrun-hacked.c, language.c, main.c, minsyms.c, mipsread.c, partial-stab.h, remote-es1800.c, remote-nindy.c, remote-udi.c, rs6000-tdep.c, solib.c, source.c, sparc-pinsn.c, stabsread.c, standalone.c, state.c, stuff.c, symfile.c, symmisc.c, symtab.c, symtab.h, tm-sysv4.h, tm-ultra3.h, values.c, xcoffexec.c, xcoffread.c: Replace strcmp and strncmp usages with STREQ, STREQN, or STRCMP as appropriate. * breakpoint.c, buildsym.c, c-typeprint.c, expprint.c, findvar.c, mipsread.c, printcmd.c, source.c, stabsread.c, stack.c, symmisc.c, tm-29k.h, valops.c, values.c: Replace SYMBOL_NAME references with SYMBOL_SOURCE_NAME or SYMBOL_LINKAGE_NAME as appropriate. * buildsym.c (start_subfile, patch_subfile_names): Default the source language to what can be deduced from the filename. * buildsym.c (end_symtab): Update the source language in the allocated symtab to match what we have been using. * buildsym.h (struct subfile): Add a language field. * c-typeprint.c (c_print_type): Remove code to do explicit demangling. * dbxread.c (psymtab_language): Add static variable. * dbxread.c (start_psymtab): Initialize psymtab_language using deduce_language_from_filename.
* A ton of changes to improve C++ debugging. See ChangeLog.Per Bothner1992-09-041-0/+28
|
* Relocate symbols using an array of section_offsets, rather than aJohn Gilmore1992-07-041-4/+20
| | | | | single `addr' or `offset'. This makes Solaris-2 support work, and permits better VxWorks (and maybe xcoff) support later. See ChangeLog.
* * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,Fred Fish1992-07-041-1/+1
| | | | | | | | | | | | | core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c, eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c, i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c, infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c, putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c, sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c, tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Remove "(void)" casts from function calls where the return value is ignored, in accordance with GNU coding standards.
* * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,Fred Fish1992-06-291-4/+20
| | | | | | | | | | | | | | | | | | symtab.h, tm-i386v4.h, valprint.c, values.c: Lint. * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c, findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c, putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c, values.c: Replace bcopy() use with memcpy(), which is more standard and can take advantage of gcc's builtin functions for increased performance. * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c, ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h, target.c, values.c: Replace bzero() use with memset(), which is more standard and can take advantage of gcc's builtin functions for increased performance. * i386-tdep.c, main.c, valprint.c: Replace bcmp() use with memcmp(), which is more standard and can take advantage of gcc's builtin functions for increased performance.
* * symtab.h (struct symbol): Add aux_value union for preservingFred Fish1992-06-131-19/+18
| | | | | | | | | an additional per-symbol value. * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID): Add defines. * frame.h (FRAME_GET_BASEREG_VALUE): Provide default definition. * findvar.c (read_var_value): Use SYMBOL_BASEREG if valid. * printcmd.c (address_info): Use SYMBOL_BASEREG if valid. * symmisc.c (print_symbol): Use SYMBOL_BASEREG if valid.
* Changes to implement the -mapped and -readnow options for commands thatFred Fish1992-03-181-437/+198
| | | | read symbol tables.
* Oodles of changes. The most important is adding support for stabsPer Bothner1991-12-231-3/+15
| | | | encapsulated in mips ecoff. See ChangeLog for the gory details.
* * command.h, defs.h, eval.h, expression.h, remote-sa.sparc.c,Stu Grossman1991-12-191-14/+14
| | | | | sparc-tdep.c, symtab.h, target.h, value.h, vx-share/ptrace.h, vx-share/xdr_ptrace.h, vx-share/xdr_rdb.h: ANSIfy enums.
* Make structs work on DECstation (sigh)John Gilmore1991-11-281-1/+2
|
* Improve G++ debugging support.John Gilmore1991-11-271-22/+4
|
* * defs.h: Incorporate param.h. All users changed.John Gilmore1991-11-211-7/+1
| | | | | | | | | | | * 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.
* Add defines so that parsers produced by SVR4 versions of yacc can coexistFred Fish1991-11-191-74/+91
| | | | | | in the same executable without collision (c-exp.y, m2-exp.y). Add forward delaration of function returning pointer to shut up compiler warnings about conversion of int to pointer (symtab.h).
* Add tracking of object files (that contain symbols) to gdb.John Gilmore1991-11-091-15/+11
| | | | | This includes a "struct objfile" that owns symtabs and psymtabs that were read in from that binary file. See ChangeLog.
* * buildsym.c: Break out initial malloc sizes.John Gilmore1991-10-271-5/+2
| | | | | | | | | | | | | (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.
* Various fixes to improve g++ debugging. See ChangeLog.Per Bothner1991-10-261-5/+7
|
* Add three new builtin types (builtin_type_long_double, builtin_type_complex,Fred Fish1991-10-241-0/+3
| | | | | and builtin_type_double_complex). Also add and use various TARGET_<TYPE>_BIT macros to indicate the sizes of various types on the target machine.
* Remove the object file specific fields from the partial symbol tableFred Fish1991-10-241-46/+37
| | | | | structure and replace them with a pointer to private data for each different flavor of object file reader to initialize appropriately.
* Make it run on wingnut (88k, DGUX). Complete list of changes in the ChangeLog.Jim Kingdon1991-05-031-0/+7
|
* The list of changes is too long to fit in the cvs log (since it truncates!).Jim Kingdon1991-05-021-0/+15
| | | | Look at the ChangeLog for Apr 30 and May 1.
* Tue Apr 30 13:13:33 1991 Michael Tiemann (tiemann at cygint.cygnus.com)Michael Tiemann1991-04-301-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.
* * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_longJim Kingdon1991-04-261-2/+21
| | | | | regardless of LONG_LONG. symtab.c, symtab.h (allocate_stub_method): New function.
* * symtab.c (free_symtab): Declare as exported void fn now.John Gilmore1991-04-191-0/+3
|
* * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): NewJohn Gilmore1991-04-131-0/+5
| | | | | defines for the blocks of a blockvector that contain global and file-static symbols and the first of the smaller scope contours.
* Initial revisionK. Richard Pixley1991-03-281-0/+884
|
* Initial revisionJohn Gilmore1990-09-051-371/+0
|
* gdb-3.3gdb-3.32012-06-031-26/+53
|
* gdb-3.1gdb-3.12012-06-031-4/+65
|