aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
AgeCommit message (Collapse)AuthorFilesLines
1995-03-31 * stabsread.c (read_range_type): Remove FIXME comment aboutJim Kingdon1-2/+0
type-id (I presume this meant a number followed by = followed by a type) versus type number; Per fixed it.
1995-03-29 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUBPer Bothner1-2/+13
set, set TYPE_FLAG_TARGET_STUB. (check_stub_type): Recalculate TYPE_LENGTH for range type. * stabsread.c (read_range_type): If index type number is followed by '=', back up, call read_type. and assume we have a true range. * gdbtypes.h (TYPE_FLAG_TARGET_STUB): Update comment. This fixes PR 6632.
1995-03-25 * buildsym.c (patch_subfile_name): Update last_source_filePeter Schauer1-0/+6
with the real source file name. * dbxread.c (end_psymtab): Handle static functions in the SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename to lookup_minimal_symbol. (process_one_symbol): Ignore extra outermost context from SunPRO cc and acc. * stabsread.c (define_symbol): Do not complain for SunPRO static variable encoding if STATIC_TRANSFORM_NAME is defined. * sparc-tdep.c, config/sparc/tm-sun4sol2.h (sunpro_static_transform_name): Renamed from solaris_static_transform_name. * config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME): Define to sunpro_static_transform_name for acc 3.0 compiled executables. * procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS): Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults if defined. * procfs.c (info_proc_siginfo): Cast sip->si_addr to `unsigned long' and use `lx' format for printing it.
1995-03-16* stabsread.c (rs6000_builtin_type): Recognize types -31 to -34.Jim Kingdon1-1/+15
1995-02-12 * symtab.c (add_param_to_type): Remove (commented-out) function,Per Bothner1-21/+1
since that functionality has been re-written. * coffread.c: Remove commented-out add_param_to_type support. * mdebugread.c (parse_symbol): Likewise. * stabsread.c (define_symbol): Likewise.
1995-02-09 * config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.Jim Kingdon1-0/+24
* partial-stab.h: Call it. * stabsread.c (define_symbol) [STATIC_TRANSFORM_NAME]: Call STATIC_TRANSFORM_NAME to get the name and use minimal symbols to get the address. * sparc-tdep.c (solaris_static_transform_name): New function.
1995-01-13 * stabsread.c (read_enum_type): When pending enum symbols arePer Bothner1-5/+4
put into the enum type, they must be inserted in "backwards order, in case we've overflowed a struct pending buffer.
1995-01-07 * dbxread.c (process_one_symbol): Handle N_FUN symbolsPeter Schauer1-5/+57
for Sun acc 3.0 under SunOS4. Changes to improve handling of runtime common symbols under SunOS4. * minsyms.c (get_symbol_leading_char): New routine to determine the leading symbol character for an objfile. (prim_record_minimal_symbol_and_info, install_minimal_symbols): Use it. * objfiles.h (rt_common_objfile): New global, points to objfile containing the runtime common minimal symbols. * objfiles.c (free_objfile): Mark rt_common_objfile as unallocated before freeing it. * solib.c (allocate_rt_common_objfile): New routine to allocate an objfile for the runtime common minimal symbols. (solib_add_common_symbols): Allocate an objfile for the runtime common symbols if necessary and put common symbols into it. Clean up code and comments. (solib_add, special_symbol_handling): Cleanup comments regarding runtime common symbols. * stabsread.c (scan_file_globals_1): New routine, contains old scan_file_globals code. Checks if there are any unresolved global symbols before starting the expensive minimal symbol table search. (scan_file_globals): Now calls scan_file_globals_1 for the passed objfile and eventually for the runtime common objfile. Complains about any unresolved global symbols and removes them from the global symbol chain to avoid dangling pointers into the symbol table if the symbol table is reread.
1995-01-05 * stabsread.c (define_symbol): Handle `a' symbol type used forJeff Law1-0/+14
reference parameter passed in a register.
1994-10-29 * top.c (line_completion_function): Renamed fromPeter Schauer1-11/+2
symbol_completion_function, takes the line buffer and the point in the line buffer as additional arguments. (readline_line_completion_function): New function, interface between readline and line_completion_function. (init_main): Use it. (complete_command): Use line_completion_function instead of abusing rl_line_buffer. Free completion strings after printing them. * symtab.c (completion_list_add_name): Recheck for duplicates if we intend to add a modified symbol. * gdbtypes.h (cplus_struct_type): nfn_fields_total no longer includes the number of methods from the baseclasses. * stabsread.c (attach_fn_fields_to_type): No longer add the number of methods from the baseclasses to TYPE_NFN_FIELDS_TOTAL, the baseclass type might not have been completely filled in yet. * symtab.c (total_number_of_methods): New function to compute the total number of methods for a type, including the methods from baseclasses. (decode_line_1): Use it instead of TYPE_NFN_FIELDS_TOTAL to allocate the symbol array for find_methods. * stabsread.c (scan_file_globals): Add default case to minimal symbol type switch, to avoid gcc -Wall warnings. * config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Don't test for zero backchain pointer to recognize a signal handler frame, if read() gets interrupted by a signal, the backchain will be non zero. (SIG_FRAME_FP_OFFSET): Move to here from rs6000-tdep.c, improve comment. (SIG_FRAME_PC_OFFSET): New definition. (FRAME_SAVED_PC): Return saved pc from sigcontext if this is a signal handler frame. * rs6000-tdep.c (function_frame_info): Do not error out if we can't access the instructions. * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): New definition to get the function address from a function pointer. * valops.c (find_function_addr): Use it when calling a user function through a function pointer.
1994-10-06 * defs.h: If TARGET_BYTE_ORDER_SELECTABLE is defined by tm.h,Ian Lance Taylor1-6/+7
define TARGET_BYTE_ORDER as target_byte_order, and declare target_byte_order as an extern int, and define BITS_BIG_ENDIAN as a test of TARGET_BYTE_ORDER. * top.c: Several additions if TARGET_BYTE_ORDER_SELECTABLE is defined: (endianlist, target_byte_order): New variables. (set_endian, set_endian_big, set_endian_little): New functions. (show_endian): New function. (init_cmd_lists): Initialize endianlist. (init_main): Add commands ``set endian big'', ``set endian little'', and ``show endian''. * a29k-pinsn.c: Rewrite uses of TARGET_BYTE_ORDER and BITS_BIG_ENDIAN to switch at run time rather than at compile time. * coffread.c, dwarfread.c, findvar.c, mips-tdep.c: Likewise. * remote-os9k.c, stabsread.c, valarith.c, valprint.c: Likewise. * values.c: Likewise. * mips-tdep.c: Rewrite uses of GDB_TARGET_IS_MIPS64 to switch at run time rather than at compile time.
1994-09-17 * gdbtypes.h (TYPE_INDEX_TYPE): New macro.Per Bothner1-5/+0
* ch-typeprint.c, ch-valprint.c: Use TYPE_INDEX_TYPE. * ch-valprint.c (chill_val_print): Pass index type directly (instead of its TYPE_TARGET_TYPE) to print_type_scalar. * stabsread.c (read_type): Don't set TYPE_FLAG_TARGET_STUB if the index type is a stub.
1994-09-16 * stabsread.c (read_type): Handle stub types for bitstrings.Per Bothner1-5/+6
* stabsread.c (read_array_type): Check for stub domain type using TYPE_FLAG_STUB, not its length. * gdbtypes.c (create_set_type): Handle a stub domain type.
1994-08-19 * c-typeprint.c (c_print_type): Assume demangled argumentsPeter Schauer1-0/+9
if a '(' is found in varstring, Looking for ')' at the end of varstring did fail with demangled const member functions, which have a trailing `const'. * remote.c (get_offsets, putpkt): Change to `char' buffers, to avoid errors when compiling with DEC c89. (remote_wait): Cast to `char *' before passing buffer to fputs_filtered, to avoid errors when compiling with DEC c89. (remote_wait): Do not return inferior_pid by default, this statement is never reached, which causes warnings from some compilers. * stabsread.c (scan_file_globals): Ignore static minimal symbols. * symfile.c (load_command): If called with no argument, try to get the filename from the executable file. (generic_load): Remove check for NULL filename, it is done in load_command now.
1994-08-01Modified Files:Kung Hsu1-1/+1
stabsread.c ChangeLog * stabsread.c (read_type): Fix a bug in enum size calculation.
1994-07-14Modified Files:Kung Hsu1-1/+5
stabsread.c ChangeLog * stabsread.c (read_huge_number): handle large unsigned number for stabs generated by os9k C compiler.
1994-06-09Modified Files:Kung Hsu1-0/+1
remote-os9k.c stabsread.c * remote-os9k.c (rombuf_command): fix a bug accepting rombug output. * stabsread.c (read_struct_fields): os9k nested structure does not have terminating ';', instead it just get to ',' and bit position and length.
1994-05-05 Add partial support for g++ code compiled with -fvtable-thunks.Per Bothner1-1/+7
* c-valprint.c (c_val_print): Add vtblprint support when using thunks. * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of pointers (if using thunks) as well as array of structs (otherwise). * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global level, and make the latter non-static (so define_symbol can use it). * stabsread.c (define_symbol): If the type being defined is a pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name. * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt". * values.c (value_virtual_fn_field): Handle thunks. * values.c (value_headof): Minor efficiency hack. * values.c (value_headof): Incomplete thunk support. FIXME.
1994-04-26 * dbxread.c (record_minimal_symbol): Record the sectionStu Grossman1-0/+18
associated with the symbol to make dynmaic relocation work. * (dbx_symfile_read, process_one_symbol): Fixes to work around Solaris brain-damage which don't apply to relocatable object files. * (stabsect_build_psymtabs): New routine to read stabs out of an arbitrarily named section. * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just globals. * (nlm_symfile_read): Call stabsect_build_psymtabs to read the stabs out of the nlm. * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris brain-damage which don't apply to relocatable object files. * remote.c (putpkt): Improve error reporting and error handling. * stabsread.c (define_symbol, scan_file_globals): Record section info in sym.
1994-04-22 * stabsread.c (read_type): Call read_type, not nonexistentJim Kingdon1-1/+1
os9k_read_type.
1994-04-22Modified Files:Kung Hsu1-3/+7
ChangeLog remote-os9k.c os9kread.c stabsread.c * remote-os9k.c (rombug_fetch_registers): set trace mode correctly. * remote-os9k.c (rombug_read_inferior_memory): cache data in buffer. * os9kread,c (read_os9k_psymtab): process file symbol to truncate extra info. * os9kread.c (os9k_read_ofile_symtab): proper casting of args passed to process_one_symbol. * stabsread.c (read_type): process os9k functio prototype.
1994-03-26 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.Jim Kingdon1-4/+10
* stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to combining all 'p' and 'r' pairs into a LOC_REGPARM.
1994-03-24 * valops.c (value_at, value_at_lazy): Give error if we dereferenceJim Kingdon1-7/+12
a pointer to void. * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID. * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
1994-03-24 * stabsread.c (patch_block_stabs): Add comment about what happensJim Kingdon1-8/+7
if the definition is in another compilation unit from the stab.
1994-03-24 * stabsread.c (patch_block_stabs): Don't create LOC_OPTIMIZED_OUTJim Kingdon1-0/+9
symbols. Reverts change of 2 Apr 1993.
1994-03-23 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argumentJeff Law1-4/+7
for the structure's type. All callers changed. * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR for each structure argument rather than assuming it's either true or false for all structure arguments. * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only on the length structure passed, not the compiler used. * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional argument for the structure's type.
1994-03-10 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, alsoJim Kingdon1-1/+9
convert a LOC_ARG to a LOC_REF_ARG. Update code which combines 'p' and 'r' symbol descriptors into a single symbol to look for a LOC_REF_ARG. * README, config/sparc/tm-sparc.h: Update comments.
1994-03-10 * stabsread.c (common_block_end, fix_common_block): Stash theJim Kingdon1-2/+2
struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so as to not assume that a pointer fits in an enum.
1994-03-10Modified Files:Kung Hsu1-0/+1
ChangeLog os9kread.c stabsread.c remote-os9k.c symfile.c target.c * os9kread.c (fill_sym): check compiler verion number for pre- UltraC compiler. * os9kread.c (os9k_process_one_symbol): address of symbol is relative to section not module. * stabsread.c (define_symbol): add symbol type 's' as local symbol for os9k. * remote-os9k.c: add command 'set monitor_log' to turn on or off monitor logging. * remote-os9k.c: fix bug in delete breakpoint, single step trace. * remote-os9k.c: fix bug in 'set remotebaud' function. * remote-os9k.c (rombug_link): minimize checking so to improve speed. * symfile.c (symfile_command): check if failed to link, also make the command be able to accept more than one filenames. * target.c (target_link): check if failed to link with rombug.
1994-03-02 * os9kread.c (os9k_process_one_symbol): RenameJim Kingdon1-17/+96
VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK. * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not (CORE_ADDR)0, from target_link, since that is what it uses. Process name at end, not during parsing (like we did before Kung's change), so that -readnow and -mapped can appear anywhere. Make text_relocation a local variable. * config/i386/i386os9k.mt: Fix comment. * Makefile.in (ALLDEPFILES): Add remote-os9k.c. * os9kread.c: Put "comments" after #endif inside /* */. * stabsread.h: Add os9k_stabs variable. * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol): Set it. * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol descriptor in global_symbols not local_symbols. (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type descriptors. (read_type): If os9k_stabs, accept function parameters after 'f' type descriptor. (read_array_type): If os9k_stabs, don't expect index type and expect lower and upper to be separated by ',' not ';'. (read_enum_type): If os9k_stabs, read a number before the first enumeration constant. (os9k_init_type_vector): New function. (dbx_lookup_type): Call it when starting new type vector. * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION. * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol. * os9kstab.c: Removed. * Makefile.in: Update accordingly. * objfiles.c (objfile_relocate_data): Removed. * remote-os9k.c (rombug_wait): Call objfile_relocate not objfile_relocate_data. * objfiles.h, objfiles.c: Remove find_pc_objfile. * remote-os9k.c (rombug_wait): Call find_pc_section not find_pc_objfile. * main.c (quit_command): Check inferior_pid; revert Kung change. * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
1994-02-08 * README: Remove note about gcc warnings on alpha, these should bePeter Schauer1-1/+2
gone now. * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c, m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c remote-utils.c, stabsread.c: Include <string.h>. * regex.c: Include "defs.h", change re_comp argument to const char *. * infptrace.c (fetch_register, store_inferior_registers): Change regaddr to type CORE_ADDR. * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS): Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
1994-02-03 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the endJim Kingdon1-0/+8
of the type if present.
1994-02-02 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:Jim Kingdon1-11/+0
Change comments regarding TYPE_CODE_BOOL. * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL, regardless of the language. (value_true): Just call value_logical_not regardless of language. * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type): Remove #if 0'd code which makes some enums TYPE_CODE_BOOL. * language.h: Improve comment for la_builtin_type_vector. * m2-lang.c (_initialize_m2_language): Don't add any fields to builtin_type_m2_bool.
1994-01-25 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:Jim Kingdon1-2/+3
AIX can use ? instead of \ for continuation. Deal with it.
1994-01-03 * stabsread.c (read_type): Allow defining several type numbersJim Kingdon1-32/+40
at once (e.g. "(1,2)=(3,4)="...).
1994-01-03* stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).Jim Kingdon1-1/+1
1993-12-29 * stabsread.c (define_symbol): If we choose not to combineJim Kingdon1-9/+8
two symbols, don't just ignore the second (LOC_REGISTER) one. * printcmd.c (print_frame_args): If we have a LOC_ARG and a LOC_REGISTER, use the LOC_ARG not the LOC_REGISTER.
1993-12-28Modified Files:Kung Hsu1-2/+6
ChangeLog stabsread.c * stabsread.c (read_type): fix problem when reading static member of a class. caused by change to allow :: inside template instantiated name.
1993-12-25 * stabsread.c (define_symbol): Only combine a p/r pair into aJim Kingdon1-7/+18
LOC_REGPARM if REG_STRUCT_HAS_ADDR.
1993-12-24 * stabsread.c (read_type): Don't fall through 'S' case (the case itJim Kingdon1-0/+3
was falling though happened to do the thing thing ("break;") but that is hardly a good thing to assume).
1993-12-21 * ch-exp.y (match_dollar_tokens): Fix off-by-one bug.Per Bothner1-0/+9
* ch-lang.c (chill_is_varying_struct), ch-lang.h: New function. * ch-lang.c (chill_printstr): Use double quotes, not single quotes. * ch-typeprint.c (chill_type_print_base): Handle TYPE_CODE_BITSTRING. Improve printing of TYPE_CODE_STRING, TYPE_CODE_SET, and TYPE_CODE_STRUCT (including checking chill_is_varying_struct). Print TYPE_DUMMY_RANGE by printing its TYPE_TARGET_TYPE. Handle TYPE_CODE_ENUM. * ch-valprint.c (chill_val_print): Handle TYPE_CODE_BITSTRING. For TYPE_CODE_STRING, never print address. Handle VARYING strings. * gdbtypes.c (force_to_range_type): New. * gdbtypes.c (create_set_type): Make work, following Chill layout. * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND, TYPE_DUMMY_RANGE): New. * stabsread.c (read_type): Distinguish string and bitstring from char-array and set. * valarith.c (value_subscript), valops.c (value_coerce_array): Handle STRINGs as well as ARRAYs. * valarith.c (value_bit_index): Fix think. Use new macros.
1993-12-14 Implement support for Chill POWERSETs.Per Bothner1-0/+7
* ch-exp.y (operand_2): Implement 'Element IN PowerSet'. * ch-typeprint.c (chill_type_print_base): Handle POWERSETs. * ch-valprint.c (chill_val_print): Handle TYPE_CODE_SET. * eval.c (evaluate_subexp): Implement BINOP_IN. * expression.h (enum exp_opcode): Added BINOP_IN. * gdbtypes.c (create_set_type), gdbtypes.h: New function. * stabsread.c (read_type): If 'S', create a set type. * valarith.c (value_bit_index, value_in), value.h: New functions, for indexing in SETs.
1993-12-11 * stabsread.c (read_array_type): Allow negative array bounds,Fred Fish1-2/+2
without interpreting that to mean "adjustable." * ch-valprint.c (chill_val_print): Handle RANGE types. * ch-typeprint.c (chill_type_print_base): Handle BOOL. Handle variant records. Handle RANGE types.
1993-11-29Modified Files:Kung Hsu1-1/+1
ChangeLog stabsread.c * stabsread.c(read_struct_field): Fix the check when getting to member functions. (fix pr4000).
1993-11-15 * gdbtypes.h: Add TYPE_FLAG_TARGET_STUB.Jim Kingdon1-10/+33
* gdbtypes.c (check_stub_type): On TYPE_FLAG_TARGET_STUB, do what cleanup_undefined_types does for arrays, except we clear TYPE_FLAG_TARGET_STUB if we fix up the type. * stabsread.c (cleanup_undefined_types): Add comments about how doing arrays here is no longer the clean way to do it. (read_array_type): Set TYPE_FLAG_TARGET_STUB as well as calling add_undefined_type. * c-typeprint.c, ch-typeprint.c: Move call to check_stub_type outside switch so it happens for all type codes. * cp-valprint.c (cp_print_value_fields): Recurse to val_print, instead of c_val_print, so that check_stub_type gets called. * gdbtypes.h, gdbtypes.c, m2-lang.c, ch-lang.c, c-lang.c: Remove TYPE_FLAG_SIGNED. It was inconsistently set, never checked (except in recursive_dump_type), and is pointless.
1993-11-15 * stabsread.c: Remove #if 0'd dbx_class_complaint. We now handleJim Kingdon1-10/+0
this (more or less) gracefully, and complain() was never a good way of dealing with this.
1993-11-14 * stabsread.c (read_type): Skip the colon when reading aJim Kingdon1-3/+16
cross-reference. Only complain, not error_type, on unrecognized cross-reference types. error_type, not dump core, if the colon is missing.
1993-11-12Modified Files:Kung Hsu1-8/+24
ChangeLog stabsread.c * stabsread.c (patch_block_stabs, define_symbol, read_type): in g++ template instantiation, nested class can be part of the params, and '::' can gets into symbol or type names. This is to fix the problem. (fix pr3837)
1993-11-11 * printcmd.c (address_info): Use fprintf_symbol_filteredJeff Law1-0/+11
to print the symbol name. * stabsread.c (define_symbol): Handle cfront lossage for struct/union/enums and typedefs. * partial-stab.h (case N_BINCL): Update psymtab_language as appropriate when changing subfiles. (case N_SOL): Update psymtab_language as appropriate when changing subfiles. Add typedef for structs, unions, and enums when processing C++ files.
1993-11-08 * stabsread.c (read_one_struct_field): Don't give up on unknownJim Kingdon1-27/+33
visibility character, just shove it in fip->list->visibility. (read_baseclasses): Don't give up on unknown virtual or visibility characters, just assume a reasonable default, complain, and keep going. (attach_fields_to_type): Complain on unrecognized visibility. One result of all this is that '9' (VISIBILITY_IGNORE) can be used in a stab as well as being something which GDB uses internally.