aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
AgeCommit message (Collapse)AuthorFilesLines
2002-03-23* gdbtypes.c (append_composite_type_field): New function.Andrew Cagney1-0/+10
(init_composite_type): New function. * gdbtypes.h (append_composite_type_field): Declare. (init_composite_type): Ditto.
2002-02-032002-02-01 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-0/+2
PR gdb/280 * gdbtypes.c (replace_type): New function. * gdbtypes.h (replace_type): Add prototype. * stabsread.c (read_type): Use replace_type.
2002-01-202002-01-20 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+1
* buildsym.c: Update copyright years. * c-typeprint.c: Likewise. * dwarf2read.c: Likewise. * f-typeprint.c: Likewise. * gdbtypes.c: Likewise. * gdbtypes.h: Likewise. * hp-symtab-read.c: Likewise. * hpread.c: Likewise. * mdebugread.c: Likewise. * p-typeprint.c: Likewise.
2002-01-202002-01-20 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-1/+3
* gdbtypes.h (struct cplus_struct_type): Add is_artificial to member function fields. Add accessor macro TYPE_FN_FIELD_ARTIFICIAL. * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods. * c-typeprint.c (c_type_print_base): Skip artificial member functions.
2002-01-202002-01-15 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-5/+7
* 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.
2002-01-152002-01-15 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-0/+5
[Based on work by Jim Blandy] * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export. (builtin_type_vec128): Export. * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD types. (builtin_type_vec128): New builtin type for 128 bit vector registers. (build_gdbtypes): Initialize builtin_type_v16qi and builtin_type_v8hi. Create the vec128 register builtin type structure. (build_builtin_type_vec128): New function. (_initialize_gdbtypes): Register builtin_type_v16qi and builtin_type_v8hi with gdbarch. Same for builtin_type_vec128. * rs6000-tdep.c (rs6000_register_virtual_type): Change type of AltiVec register to new builtin type.
2001-12-10Approved by Jim Blandy:Fred Fish1-16/+24
2001-12-09 Fred Fish <fnf@redhat.com> * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_CONST, TYPE_VOLATILE, TYPE_INCOMPLETE): Move macros that test the bits to location in file where the bits are defined. (TYPE_STUB, TYPE_TARGET_STUB, TYPE_STATIC, TYPE_PROTOTYPED, TYPE_CODE_SPACE, TYPE_DATA_SPACE): New test macros.
2001-12-09Approved by Jim Blandy:Fred Fish1-0/+6
2001-12-08 Fred Fish <fnf@redhat.com> * dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here. * gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to not collide with other flag bits.
2001-12-07 * gdbtypes.c (finish_cv_type): New function.Daniel Jacobowitz1-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.
2001-11-152001-11-14 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+36
Add address space identifiers to expression language for types. * c-exp.y (space_identifier, cv_with_space_id, const_or_volatile_or_space_identifier_noopt, const_or_volatile_or_space_identifier): New terminals. (ptype): Accept const_or_volatile_or_space_identifier. (typebase): Accept const_or_volatile_or_space_identifier. * c-typeprint.c (c_type_print_cv_qualifier): Rename to c_type_print_modifier. Handle address space modified types. * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE): New type flags. (struct type): Add new field as_type for addr-space qualified types. (TYPE_AS_TYPE): New macro, retrieves the chain of types that are identical to this one except for address-space qualification. * gdbtypes.c (alloc_type): Initialize new field 'as_type'. (address_space_name_to_int): New function. (address_space_int_to_name): New function. (make_type_with_address_space): New function. (make_cv_type): Handle as_type field of new struct type object. * parse.c (check_type_stack_depth): New function. (push_type_address_space): New function. (follow_types): Handle types with address-space qualifier. * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
2001-11-132001-11-13 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-0/+2
From Andrew Cagney <cagney@redhat.com>: * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare. * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize new builtin types.
2001-09-08* gdbtypes.h (struct block): Add forward declaration.Mark Kettenis1-0/+3
2001-09-05* gdbtypes.h (struct type): Doc fix.Jim Blandy1-15/+23
2001-08-24* gdbtypes.h (builtin_type_ieee_single_big)Andrew Cagney1-0/+18
(builtin_type_ieee_single_little, builtin_type_ieee_double_big) (builtin_type_ieee_double_little) (builtin_type_ieee_double_littlebyte_bigword) (builtin_type_i387_ext, builtin_type_m68881_ext) (builtin_type_i960_ext, builtin_type_m88110_ext) (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big) (builtin_type_arm_ext_littlebyte_bigword) (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little) (builtin_type_ia64_quad_big) (builtin_type_ia64_quad_little): Declare. * gdbtypes.c (builtin_type_ieee_single_big) (builtin_type_ieee_single_little, builtin_type_ieee_double_big) (builtin_type_ieee_double_little) (builtin_type_ieee_double_littlebyte_bigword) (builtin_type_i387_ext, builtin_type_m68881_ext) (builtin_type_i960_ext, builtin_type_m88110_ext) (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big) (builtin_type_arm_ext_littlebyte_bigword) (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little) (builtin_type_ia64_quad_big) (builtin_type_ia64_quad_little): Define. (_initialize_gdbtypes): Initialize builtin floatformat types.
2001-08-23Add TYPE_FLOATFORMAT().Andrew Cagney1-0/+6
2001-08-21* gdbtypes.h (struct type): Clarify meaning of field ``length''.Andrew Cagney1-6/+10
2001-07-08* gdbtypes.h (builtin_type_void_data_ptr): RenameAndrew Cagney1-3/+4
builtin_type_ptr. * gdbtypes.c (builtin_type_void_data_ptr): Update. (build_gdbtypes): Update. (_initialize_gdbtypes): Update. * values.c (value_as_pointer): Update. * utils.c (host_pointer_to_address): Update. (address_to_host_pointer): Update.
2001-07-06* gdbtypes.h (builtin_type_void_func_ptr): New builtin type.Jim Blandy1-0/+10
* gdbtypes.c (builtin_type_void_func_ptr): Define the variable. (build_gdbtypes): Initialize it. (_initialize_gdbtypes): Swap it.
2001-03-27* arch-utils.c (#include "gdbthread.h"): Removed.J.T. Conklin1-4/+0
(#include "symfile.h"): Removed. (XMALLOC): Removed unused macro. * breakpoint.c (tbreak_command): Removed local declaration. (awatch_command, do_enable_breakpoint, set_breakpoint_count): Remove duplicate declarations. (bpstat_should_step, bpstat_have_active_hw_watchpoints) (remove_solib_event_breakpoints): Fix indentation botch. * c-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * ch-exp.c (ch_terminal_match_float_literal, parse_expr) (parse_primval, parse_untyped_expr, parse_opt_untyped_expr): Removed duplicate declarations. * ch-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * corefile.c (#include "frame.h"): Removed (#include "symfile.h"): Removed. (#include "language.h"): Removed. * dbxread.c (#include "command.h"): Removed. * environ.c (#include "gdbcore.h"): Removed. * event-loop.c (#include "top.h"): Removed. * f-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. (#include "language.h"): Removed. (#include "typeprint.h"): Removed. (#include "frame.h"): Removed. * gdbtypes.h (print_type_scalar): Removed declaration. * infcmd.c (#include "completer.h"): Removed. * language.c (#include "frame.h"): Removed. * m2-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. (#include "language.h"): Removed. * m2-valprint.c (#include "valprint.h"): Removed. * p-typeprint.c (#include "command.h"): Removed. (#include "gdbcmd.h"): Removed. * p-valprint.c (#include "typeprint.h"): Removed. * parse.c (#include "linespec.h"): Removed. * regcache.c (#include "frame.h"): Removed. * remote.c (#include "frame.h"): Removed. (getpkt_sane): Make static. * source.c (#include "completer.h"): Removed. * stack.c (#include "symfile.h"): Removed. (#include "objfiles.h"): Removed. * symfile.c (#include "completer.h"): Removed. * tracepoint.c (#include "completer.h"): Removed. * values.c (#include "frame.h"): Removed. * varobj.c (#include "valprint.h"): Removed. * wrapper.c (#include "frame.h"): Removed. * memattr.c (create_mem_region): Removed unused variable. * remote-nrom.c: Removed spurious semicolon after init_nrom_ops. -------------------------------------------------------------------
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2001-03-01* gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.J.T. Conklin1-6/+5
(MAX_OF_TYPE): Wrap macro definition in parenthesis. (MIN_OF_TYPE): Likewise. * memattr.h (mem_access_mode): Removed extraneous trailing comma.
2000-09-02Corrected typo in comment: ofa -> of aDavid Anderson1-1/+1
2000-05-28PARAMS removal.Kevin Buettner1-93/+57
2000-03-13From Daniel Berlin:Andrew Cagney1-1/+3
Fix C++ overloading, add support for seeing through references.
2000-03-13Revert: ``Fix C++ overload support, see through references''.Andrew Cagney1-14/+13
Change also contained numerous white-space changes.
2000-03-10Fix C++ overload support, see through referencesDaniel Berlin1-13/+14
2000-02-02import gdb-2000-02-01 snapshotJason Molenda1-5/+4
1999-12-14import gdb-1999-12-13 snapshotJason Molenda1-1/+12
1999-12-07import gdb-1999-12-06 snapshotJason Molenda1-0/+6
1999-10-19import gdb-1999-10-18 snapshotJason Molenda1-0/+1
1999-07-19import gdb-1999-07-19 snapshotJason Molenda1-0/+2
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-385/+397
1999-06-21import gdb-1999-06-21 snapshotJason Molenda1-0/+5
1999-04-26import gdb-19990422 snapshotStan Shebs1-5/+0
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1135
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1129/+0
1998-12-28hp merge changes -- too numerous to mention here; see ChangeLog andDavid Taylor1-16/+305
ChangeLog-gdbtk for details.
1998-03-20Add builtin explicitly sized 8, 16, 32, 64 and 128 bit int andAndrew Cagney1-0/+15
unsigned types. Specify size of r5900 FSR using 32 bit unsigned type. Correctly format mips registers when some are not 64 bits in size Check that REGISTER_{RAW,VIRTUAL}_SIZE are consistent when the target specifies that no conversion is needed when moving from one to the other.
1997-08-05 * gdbtypes.h: Re-interpret struct field. Suppport address of static.Per Bothner1-22/+46
Add a bunch of macros. * coffread.c, dwarf2read.c, dwarfread.c, mdebugread.c, stabsread.c: Update to use new macros. * coffread.c, hpread.c, stabsread.c: Remove bugus TYPE_FIELD_VALUE. * value.h, values.c (value_static_field): New function. * cp-valprint.c, valops.c: Modify to use value_static_field.
1996-12-14 * c-exp.y (qualified_name): Replace explicit check for validPeter Schauer1-14/+16
destructor name with call to destructor_name_p. * c-lang.h, c-typeprint.c (cp_type_print_method_args): Removed, no longer needed. * c-typeprint.c (c_type_print_varspec_prefix, c_type_print_base): Replace remaining fprintf_unfiltered calls with their filtered variant. (c_type_print_base): Do not print return type for destructors from template classes. Replace cp_type_print_method_args with cplus_demangle call to get consistent type output for stubbed and unstubbed methods. * cp-valprint.c (cp_print_class_method): Replace cp_type_print_method_args with cplus_demangle call to get consistent type output for stubbed and unstubbed methods. * gdbtypes.c, gdbtypes.h (get_destructor_fn_field): New function to find the destructor field indices for a type. * gdbtypes.h (struct type): Clarify comments for vptr_basetype and arg_types fields. (struct fn_field): Remove args field, no longer used. * symtab.c (decode_line_1), valops.c (value_struct_elt, check_field_in): Use get_destructor_fn_field to find the destructor field indices instead of assuming that the compiler passes the member function fields in a specific order. * symtab.c (find_methods): Pass NULL instead of SYMBOL_BLOCK_VALUE to lookup_symbol. (list_symbol): Replace cp_type_print_method_args with cplus_demangle call in zapped out code and explain why this code is zapped out.
1996-10-15 * buildsym.c (finish_block): Treat LOC_BASEREG_ARG andStu Grossman1-0/+6
LOC_LOCAL_ARG as arguments so that GDB will know about function args declared this way. Mostly affects dwarf. * dwarfread.c (decode_die_type): Change default type from int to void. This allows GDB to recognize void functions. * (new_symbol): If AT_PROTOTYPED is present, set a flag in the type structure. * findvar.c (extract_floating store_floating): Clean up comments to reflect reality. * gdbtypes.h: Add TYPE_FLAG_PROTOTYPED so that we can tell if a function has a prototype. Currently, only dwarf supports this. * utils.c (floatformat_from_doublest): Fix logic error with converting from double to float. (It wasn't shifting mant_long if it had a hidden bit.) * v850-tdep.c: Add support for function calling. Fix some problems with debugging code w/o debug symbols. * config/v850/tm-v850.h: Ditto.
1996-07-26See gdb ChangeLog entry with header:Fred Fish1-0/+4
Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com> for a rather huge set of changes. I was going to put them here, but it made cvs dump core. :-(
1995-11-30 * gdbtypes.h (enum type_code): Added TYPE_CODE_TYPEDEF.Per Bothner1-9/+17
(check_typedef): New prototype. (CHECK_TYPEDEF): New macro. (TYPE_DUMMY_RANGE): Removed. * gdbtypes.c (get_discrete_bounds): Fix paren error; make more robust. (create_array_type): Don't force_to_range_type; users of the array are responsible for handling non-range index types. (create_set_type): Likewise. (force_to_range_type): Removed. (check_typedef): New function handles stub types and typedefs. (check_stub_type): Just call check_typedef. (To be removed.) (recursive_dump_type): Handle TYPE_CODE_TYPEDEF. * ch-lang.c (type_lower_upper): Use get_discrete_bounds. (evaluate_subexp_chill): Handle string repetition. Re-arrange to handle EVAL_AVOID_SIDE_EFFECTS better. * ch-typeprint.c (chill_type_print_base): Handle TYPE_CODE_TYPEDEF. Pass show=0 in recursive calls various places. (case TYPE_CODE_ARRAY): Don't require index type to have TYPE_CODE_RANGE. (case TYPE_CODE_RANGE): Don't need to support TYPE_DUMMY_RANGE. * gdbtypes.c, ch-lang.c, ch-typeprint.c (numerous places): Add check_typedef/CHECK_TYPEDEF as needed.
1995-10-05 * gdbtypes.c (get_discrete_bounds): New function.Per Bothner1-0/+2
(force_to_range_type): Use get_discrete_bounds. * gdbtypes.h (get_discrete_bounds): Add declaration. * valarith.c (value_bit_index): Generalize to use get_discrete_bounds. * ch-valprint.c (chill_val_print): Make (power)sets and bitstring support use get_discrete_bounds and generally be more robust. This fixes PR chill/8136.
1995-08-02Update FSF address.Fred Fish1-1/+1
1995-03-29 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUBPer Bothner1-2/+2
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-14 * gdbtypes.h (struct type): Fix comment about what units theJim Kingdon1-2/+10
TYPE_LENGTH is in.
1995-02-12 * buildsym.c (finish_block): If finishing a function without knownPer Bothner1-8/+1
parameter type info, set that from parameter symbols. * c-typeprint.c (c_type_print_varspec_suffix): For TYPE_CODE_FUNC, print parameter types, if available. * ch-typeprint.c (chill_type_print_base): Likewise. * gdbtypes.h (struct type): Remove function type field. (TYPE_FUNCTION_TYPE): Remove macro. We can't as simply re-use function types now that we're also storing parameter types. And the payoff is much less. * gdbtypes.c (make_function_type): Don't use/set TYPE_FUNCTION_TYPE. (recursive_dump_type): Don't print TYPE_FUNCTION_TYPE. * dwarfread.c (read_subroutine_type): Don't set TYPE_FUNCTION_TYPE.
1995-02-10 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition toStan Shebs1-1/+1
after, any host/target/native libraries. * dcache.c (insque, remque): Remove declarations. * gdbtypes.h (type_code): Remove trailing comma. From Peter Schauer: * xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef STATIC_NODEBUG_VARS inside case.
1995-02-02 * eval.c (evaluate_subexp): Clean up handling ofPer Bothner1-8/+1
OP_UNDETERMINED_ARGLIST (no backtracking, more general). * f-valprint.c (f_val_print): Print TYPE_CODE_STRING using LA_PRINT_STRING, and not val_print_string (which reads from inferior). * ch-lang.c (chill_is_varying_struct), ch-lang.h: Remve function duplicate function made redundant by chill_varying_type. Re-write of f77 string and complex number support: * language.h (struct language_defn): New fields string_lower_bound and string_char_type. * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn), language.c (unknown_language_defn, auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn), f-lang.c (f_language_defn), ch-lang.c (chill_language_defn): Set new fields. * gdbtypes.c (create_string_type): Use new string_char_type field. * valops.c (value_string): Use new string_lower_bound field. * defs.h (TARGET_COMPLEX_BIT, TARGET_DOUBLE_COMPLEX_BIT): Removed. * f-lang.c (f_create_fundamental_type, _initialize_f_language), m2-lang.c (m2_create_fundamental_type), gdbtypes.c (_initialize_gdbtypes): Set TYPE_TARGET_TYPE of complex types. Set their TYPE_CODEs to TYPE_CODE_COMPLEX. * mdebugread.c (mdebug_type_complex, mdebug_type_double_complex): Removed. Use builtin_type_complex and builtin_type_double_complex. * gdbtypes.h (enum type_code): Removed TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX. * c-typeprint.c, f-typeprint.c, f-valprint.c, eval.c: Removed uses of TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX. * gdbtypes.c, gdbtypes.h (f77_create_literal_complex_type, f77_create_literal_string_type): Removed. * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_MEMADDR, VALUE_SUBSTRING_MYADDR): Removed. * expression.h (enum exp_opcode): Rename OP_F77_LITERAL_COMPLEX to OP_COMPLEX. * parse.c: Update accordingly. * f-valprint.c (f77_print_cmplx): Removed. (f_val_print case TYPE_CODE_COMPLEX): Re-write to use print_floating. * f-exp.y (STRING_LITERAL): Use OP_STRING instead of OP_ARRAY. * eval.c (evaluate_subexp): For case OP_ARRAY, don't call f77_value_literal_string. * valops.c, value.h (f77_value_literal_string, f77_value_substring, f77_assign_from_literal_string, f77_assign_from_literal_complex): Removed. (value_assign): No longer need to handle literal types. * valops.c (f77_value_literal_complex), value.h: Re-written and renamed to value_literal_complex. Last arg is now a (complex) type. * valops.c (f77_cast_into_complex): Re-written and renamed to cast_into_complex. * eval.c (evaluate_subexp): Update accordingly.