summaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-06-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-06-141-20/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment. (struct main_type): Remove arg_types member. Update comments for struct field. (TYPE_ARG_TYPES): Remove. (TYPE_FN_FIELD_ARGS): Update. (smash_to_method_type): Update prototype. * c-typeprint.c (cp_type_print_method_args): Take method type instead of argument list. Use new argument layout. Simplify. (c_type_print_args): Use new argument layout. Simplify. (c_type_print_base): Update call to cp_type_print_method_args. * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type argument; use die->type instead. Update call to smash_to_method_type. (read_structure_scope): Update call to dwarf2_add_member_fn. * gdbtypes.c (allocate_stub_method): Update comment. (smash_to_method_type): Take new NARGS and VARARGS arguments. Use new argument layout. (check_stub_method): Use new argument layout. Don't count void as an argument. (print_arg_types): Update comments. Use new argument layout. (recursive_dump_type): Don't print arg_types member. * hpread.c (hpread_read_struct_type): Use new argument layout. (fixup_class_method_type): Likewise. (hpread_type_lookup): Likewise. * stabsread.c (read_type): Update calls to read_args and smash_to_method_type. (read_args): Use new argument layout. Simplify. * valops.c (typecmp): Use new argument layout. Update parameters and comments. Simplify. (hand_function_call): Use new argument layout. (search_struct_method): Update call to typecmp. (find_overload_match): Use new argument layout.
* 2002-05-14 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-05-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE. (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use TYPE_INSTANCE_FLAGS. (struct main_type): New. (struct type): Move most members to struct main_type. Change cv_type and as_type to new type_chain member. Add instance_flags. (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros. (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove. (finish_cv_type): Remove prototype. * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE. Set TYPE_CHAIN. (alloc_type_instance): New function. (smash_type): New function. (make_pointer_type, make_reference_type, make_function_type) (smash_to_member_type, smash_to_method_type): Call smash_type. (make_qualified_type): New function. (make_type_with_address_space): Call make_qualified_type. (make_cv_type): Likewise. (finish_cv_type): Remove unnecessary function. (replace_type): Update comment. Copy TYPE_MAIN_TYPE. (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS; remove TYPE_CV_TYPE and TYPE_AS_TYPE. * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS. * dwarf2read.c (read_structure_scope): Don't call finish_cv_type. * hpread.c (hpread_read_struct_type): Likewise. * stabsread.c (read_struct_type): Likewise. 2002-05-14 Daniel Jacobowitz <drow@mvista.com> * gdb.base/maint.exp (maint print type): Update for new type structure.
* 2002-05-06 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-05-091-4/+16
| | | | | | * stabsread.c (read_type): Add recognition for new attribute: "@V;" means that an array type is actually a vector. This is analogous to the vector flag that's been added to dwarf2.
* * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.Jim Blandy2002-05-041-5/+19
| | | | | (read_type): Doc fix. * gdbtypes.c (replace_type): Doc fix.
* * stabsread.c (multiply_defined_struct): New complaint.Jim Blandy2002-05-041-13/+78
| | | | | | | | | | | | | (read_struct_type): If the type we were passed isn't empty, or incomplete, don't read the new struct type into it; complain, and return the original type unchanged. Take a new `type_code' argument, which is the type code for the new type. (read_type): Rather than storing the type's type code here, pass it as an argument to read_struct_type, and let that take care of storing it. That way, we don't overwrite the original type code, so read_struct_type can use it to decide whether we're overwriting something we shouldn't. (complain_about_struct_wipeout): New function.
* 2002-03-20 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-03-211-3/+11
| | | | | | | | | | Fix PR gdb/422. * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX, FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX. * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for complex types. * stabsread.c (rs6000_builtin_type): Likewise. (read_sun_floating_type): Likewise.
* * stabsread.c (read_member_functions): Remove skip code for duplicatePeter Schauer2002-03-191-44/+24
| | | | | | constructor/destructor methods. Use standard parsing for these methods and just do not chain them to the list of methods after parsing.
* * stabsread.c (read_member_functions): Fix is_stub test forPeter Schauer2002-03-081-7/+24
| | | | static member functions, improve comment.
* * stabsread.c (error_type_complaint): Improve error message.Jim Blandy2002-02-201-1/+1
|
* * stabsread.c (error_type_complaint): Improve error message.Jim Blandy2002-02-201-1/+1
|
* * stabsread.c (read_type): Add code to parse Sun's syntax forJim Blandy2002-02-091-0/+75
| | | | prototyped function types.
* 2002-02-01 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-02-031-1/+7
| | | | | | | PR gdb/280 * gdbtypes.c (replace_type): New function. * gdbtypes.h (replace_type): Add prototype. * stabsread.c (read_type): Use replace_type.
* 2002-01-15 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-01-201-1/+2
| | | | | | | | | | | | | | | * gdbtypes.h (struct type): Fix whitespace. Remove obsolete comment. Add ``artificial'' to ``union field_location''. * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL. * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0. * mdebugread.c (parse_symbol): Likewise. * stabsread.c (define_symbol): Likewise. * hp-symtab-read.c (hpread_function_type): Likewise, instead of initializing TYPE_FIELD_BITPOS to n (obsolete). (hpread_doc_function_type): Likewise. * hpread.c (hpread_function_type): Likewise.
* 2001-01-15 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-01-151-2/+4
| | | | | * stabsread.c (read_type): Pass dbx_lookup_type (typenums) to make_cv_type.
* s/BIG_ENDIAN/BFD_ENDIAN_BIG/Andrew Cagney2002-01-051-1/+1
|
* 2002-01-04 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-01-041-2/+4
| | | | | | | | * stabsread.c: Update copyright years. From Debashis Mahata <debashis.mahata@wipro.com>: (read_struct_fields): Deal with Sun C compiler erroneous stab output for structs and unions.
* Approved by Jim Blandy:Fred Fish2001-12-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | 2001-12-11 Fred Fish <fnf@redhat.com> * c-typeprint.c (c_type_print_base): Use type flags access macros to test bits. * ch-typeprint.c (chill_type_print_base): Ditto. * ch-valprint.c (chill_val_print): Ditto. * d10v-tdep.c (d10v_pointer_to_address): Ditto. * dwarf2read.c (dwarf2_add_member_fn): Ditto. * dwarfread.c (read_structure_scope): Ditto. * gdbtypes.c (create_range_type): Dittol (create_set_type): Ditto. (check_typedef): Ditto. * jv-typeprint.c (java_type_print_base): Ditto. * p-typeprint.c (pascal_type_print_base): Ditto * p-valprint.c (pascal_val_print): Ditto. * stabsread.c (read_cfront_member_functions): Ditto. (read_member_functions): Ditto. (cleanup_undefined_types): Ditto. * valprint.c (val_print): Ditto. * valops.c (hand_function_call): Remove is_prototyped variable and just use type flag test macro directly.
* * stabsread.c (read_member_functions): Skip member functions whichDaniel Jacobowitz2001-12-071-0/+31
| | | | are duplicates of the callable constructor/destructor.
* * gdbtypes.c (finish_cv_type): New function.Daniel Jacobowitz2001-12-071-0/+2
| | | | | | | | | | | | (check_typedef): Remove ``register'' keyword from argument. Preserve const and volatile attributes across filling in opaque types. * gdbtypes.h (finish_cv_type): Add prototype. * hp-symtab-read.c (hpread_read_struct_type): Call finish_cv_type. * stabsread.c (read_struct_type): Likewise. * dwarf2read.c (read_structure_scope): Likewise. Remove redundant assignment to die->type.
* * doublest.h (store_floating, extract_floating): Add commentAndrew Cagney2001-09-241-1/+1
| | | | | | | | | | | | indicating these functions are deprecated. (extract_typed_floating, store_typed_floating): Declare. * doublest.c: Include "gdbtypes.h". (extract_typed_floating, store_typed_floating): Define. * stabsread.c (define_symbol): Use store_typed_floating. * valarith.c (value_binop): Ditto. * values.c (unpack_long): Use extract_typed_floating. (unpack_double): Ditto.
* 2001-08-08 Don Howard <dhoward@redhat.com>Don Howard2001-08-081-2/+2
| | | | | * stabsread.c (read_type): Add support for const and volatile modifiers.
* * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)Andrew Cagney2001-08-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) (HOST_LONG_DOUBLE_FORMAT, DOUBLEST) (floatformat_to_doublest, floatformat_from_doublest) (floatformat_is_negative, floatformat_is_nan) (floatformat_mantissa, store_floating) (extract_floating): Move declaration from here. * doublest.h: To here. New file. * utils.c (get_field, floatformat_to_doublest, put_field) (ldfrexp, floatformat_from_doublest, floatformat_is_negative) (floatformat_is_nan, floatformat_mantissa) (FLOATFORMAT_CHAR_BIT): Move from here. * doublest.c: To here. New file. * findvar.c (store_floating, extract_floating): Move from here. * doublest.c: To here. * Makefile.in (SFILES): Add doublest.c. (COMMON_OBS): Add doublest.o. (doublest.o): Specify dependencies. (doublest_h): Define. * config/m88k/tm-m88k.h: Include "doublest.h". * config/i960/tm-i960.h: Ditto. * config/i386/tm-symmetry.h: Ditto. * rs6000-tdep.c, valarith.c: Ditto. * valprint.c, stabsread.c, sh-tdep.c: Ditto. * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto. * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto. * alpha-tdep.c, ax.h, expression.h: Ditto. * sh-tdep.c, parse.c, top.c, value.h: Ditto. * Makefile.in (arm-tdep.o): Add $(doublest_h). (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto. (rs6000-tdep.o, stabsread.o, valarith.o): Ditto. (values.o, valprint.o, arm-linux-tdep.o): Ditto. (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto. (parser_defs_h): Ditto. (expression_h): Add $(doublest_h) and $(symtab_h).
* * stabsread.c (read_cpp_abbrev): Properly construct the names ofJim Blandy2001-03-241-1/+6
| | | | virtual function table pointer fields.
* * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macroAndrew Cagney2001-03-211-6/+9
| | | | | | | | | | | | | already defined. From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>: * stabsread.c (define_symbol): A parameter ('R'), a local ('r'), or a reference ('a') can be in a pseudo register. * infcmd.c (do_registers_info): Must take into account the pseudo registers to print their value. (registers_info): Likewise. * stack.c (frame_info): Likewise. * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+2
|
* Replace free() with xfree().Kevin Buettner2000-12-151-11/+11
|
* * stabsread.c (read_range_type): Properly construct complexJim Blandy2000-11-101-4/+8
| | | | type nodes.
* 2000-10-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-10-261-0/+21
| | | | | | | | | | * stabsread.c (define_symbol): Update comment. 2000-10-26 Pierre Muller <muller@ics.u-strasbg.fr> * stabsread.c (define_symbol): Set the type_name of the type of the new symbol to the symbol name for type symbol, if the language is Pascal.
* Protoization.Kevin Buettner2000-10-241-17/+5
|
* Protoization.gdb-post-protoization-2000-07-29Kevin Buettner2000-07-301-155/+65
|
* PARAMS removal.gdb-post-params-removal-2000-05-28Kevin Buettner2000-05-281-66/+50
|
* Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2000-05-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | * objfiles.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS, SECT_OFF_RODATA): Define as functions of OBJFILE. Add sect_index_text, sect_index_data, sect_index_rodata, sect_index_bss to objfile structure. * gdb-stabs.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS, SECT_OFF_RODATA): Remove. * objfiles.c (allocate_objfile): Initialize sect_index_{text,data,bss,rodata} to -1, for error detection. * symfile.c (default_symfile_offsets): Initialize sect_index_{text,data,bss,rodata} from bfd information. * xcoffread.c (xcoff_symfile_offsets): Ditto. * somread.c (som_symfile_offsets): Initialize sect_index_{text,data,bss,rodata}. * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hp-symtab-read.c, hpread.c, mdebugread.c, minsyms.c, mipsread.c, objfiles.c, os9kread.c, pa64solib.c, partial-stab.h, remote-os9k.c, remote-vx.c, remote.c, rs6000-nat.c, somsolib.c, stabsread.c, symfile.c, xcoffread.c: Update use of SECT_OFF_{TEXT,DATA,BSS,RODATA} to depend on the current objfile. * xcoffread.c: Add new field objfile to find_targ_sec_arg.
* Convert REG_STRUCT_HAS_ADDR to multi-arch. Use REG_STRUCT_HAS_ADDR_PAndrew Cagney2000-04-221-6/+4
| | | | in conversion.
* Clean up compiler warnings:Jim Kingdon2000-02-081-1/+1
| | | | | | | | | | | | | * bcache.h, bcache.c, c-valprint.c, coffread.c, stabsread.c, stack.c, valprint.c: Change variables to unsigned. * bcache.c: Rearrange to avoid warnings about variables not being set. * c-lang.c, ch-lang.c, f-lang.c, m2-lang.c: Include valprint.h rather than declaring print_max and repeat_count_threashold ourselves (incorrectly). * valprint.h: Do declare repeat_count_threashold. * ch-exp.c: Use default case for internal error. * findvar.c: Don't omit argument type. * symtab.c: Remove unused variable.
* import gdb-1999-12-06 snapshotJason Molenda1999-12-071-9/+9
|
* import gdb-1999-11-16 snapshotJason Molenda1999-11-171-9/+9
|
* import gdb-1999-08-23 snapshotJason Molenda1999-08-231-1/+2
|
* import gdb-1999-08-16 snapshotJason Molenda1999-08-161-1/+13
|
* import gdb-1999-08-02 snapshotJason Molenda1999-08-021-7/+19
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-1031/+1067
|
* import gdb-1999-07-07 pre reformatJason Molenda1999-07-071-0/+2
|
* import gdb-1999-05-25 snapshotJason Molenda1999-05-251-0/+2
|
* import gdb-19990422 snapshotStan Shebs1999-04-261-76/+79
|
* Initial revisionStan Shebs1999-04-161-0/+5207