aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
AgeCommit message (Collapse)AuthorFilesLines
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-152002-01-15 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-0/+58
[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-20* gdbarch.sh (TARGET_CHAR_SIGNED): New macro.Jim Blandy1-1/+2
* gdbarch.c, gdbarch.h: Regenerated. * gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero, set the TYPE_FLAG_UNSIGNED bit on the type. * s390-tdep.c (s390_gdbarch_init): On the S/390, characters are unsigned by default. * rs6000-tdep.c (rs6000_gdbarch_init): Same for PowerPC and RS6000.
2001-12-12Approved by Jim Blandy:Fred Fish1-5/+5
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.
2001-12-12Approved by Jim Blandy:Fred Fish1-7/+59
2001-12-11 Fred Fish <fnf@redhat.com> * gdbtypes.c (print_bound_type): New function. (recursive_dump_type): Print type struct code values TYPE_CODE_BITSTRING, TYPE_CODE_COMPLEX, TYPE_CODE_TEMPLATE, and TYPE_CODE_TEMPLATE_ARG. (recursive_dump_type): Print type struct members upper_bound_type, lower_bound_type, cv_type, and as_type. Also always print the tagname member, even when it is NULL. * testsuite/gdb.base/maint.exp: Update to match changes in type dumping code.
2001-12-10Approved by Jim Blandy:Fred Fish1-2/+42
2001-12-09 Fred Fish <fnf@redhat.com> * gdbtypes.c (TYPE_FLAG_UNSIGNED, TYPE_FLAG_STUB): Use TYPE_UNSIGNED and TYPE_NOSIGN to determine when to print these rather than testing the bits directly. (TYPE_FLAG_NOSIGN, TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_PROTOTYPED, TYPE_FLAG_INCOMPLETE, TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE, TYPE_FLAG_VARARGS): Test for and print these bits as well.
2001-12-10Approved by Jim Blandy:Fred Fish1-2/+1
2001-12-09 Fred Fish <fnf@redhat.com> * gdbtypes.c (build_gdbtypes): For builtin_type_char, pass TYPE_FLAG_NOSIGN to init_type() rather than setting it after the type is created.
2001-12-10Approved by Jim Blandy:Fred Fish1-4/+2
2001-12-09 Fred Fish <fnf@redhat.com> * gdbtypes.c (allocate_stub_method): Replace hand crafted type initialization with call to the init_type() function.
2001-12-07 * gdbtypes.c (finish_cv_type): New function.Daniel Jacobowitz1-7/+52
(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/+69
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-1/+12
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-10-28* gdbtypes.c (_initialize_gdbtypes): Set floating-point type forMark Kettenis1-0/+1
builtin_type_i387_ext to floatformat_i387_ext.
2001-08-24* gdbtypes.h (builtin_type_ieee_single_big)Andrew Cagney1-0/+68
(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/+13
2001-07-08* gdbtypes.h (builtin_type_void_data_ptr): RenameAndrew Cagney1-3/+3
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-3/+31
* gdbtypes.c (builtin_type_void_func_ptr): Define the variable. (build_gdbtypes): Initialize it. (_initialize_gdbtypes): Swap it.
2001-04-30Always initialize `p'.Andrew Cagney1-0/+2
2001-04-27(Changes from Daniel Berlin, with revisions by Jim Blandy.)Jim Blandy1-5/+6
Abstract out operations specific to particular C++ ABI's, and invoke them through a function table. This removes the C++ ABI dependencies scattered throughout the code, and allows us to cleanly add support for new C++ ABI's. * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files. * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c, jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c: #include "cp-abi.h". These files all use functions now declared there. * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P): Deleted. These services are now provided by functions declared in cp-abi.h. * value.h (value_rtti_type, value_virtual_fn_field): Same. * values.c (value_virtual_fn_field): Same, for this definition. * valops.c (value_rtti_type): Same. * c-typeprint.c (c_type_print_base): Use the functions from "cp-abi.h", instead of the old macros, or hard-coded ABI-specific tests. * dbxread.c (record_minimal_symbol): Same. * gdbtypes.c (get_destructor_fn_field, virtual_base_index, virtual_base_index_skip_primaries): Same. * jv-typeprint.c (java_type_print_base): Same. * linespec.c (find_methods, decode_line_1): Same. * symtab.c (gdb_mangle_name): Same. * Makefile.in (SFILES): Add the new .c files mentioned above. (cp_abi_h): New variable. (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o. (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets. (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o, jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add dependency on $(cp_abi_h).
2001-03-20malloc() -> xmalloc.Andrew Cagney1-2/+1
Move malloc() decl to utils.c
2001-03-072001-03-06 J.T. Conklin <jtc@redback.com>J.T. Conklin1-1/+0
* symtab.h (decode_line_1): Removed declaration. * symfile.c (#include <assert.h>): Removed. * arch-utils.c (#include <ctype.h>): Removed. * c-typeprint.c: Likewise. * dbxread.c: Likewise. * gdbtypes.c: Likewise. * target.c: Likewise. * os9kread.c: Likewise. * c-valprint.c (#include "demangle.h"): Removed. * ch-typeprint.c: Likewise. * eval.c: Likewise. * f-typeprint.c: Likewise. * f-valprint.c: Likewise. * m2-typeprint.c: Likewise. * typeprint.c: Likewise. * p-typeprint.c: Likewise. * valarith.c: Likewise. * valprint.c: Likewise. * m2-typeprint.c (#include "gdb_string.h"): Removed. * nlmread.c: Likewise. * mdebugread.c (#include "gdb-stabs.h"): Removed. * minsyms.c: Likewise. * mipsread.c: Likewise. * nlmread.c: Likewise. * m2-typeprint.c (#include "obstack.h"): Removed. * m2-valprint.c: Likewise. * event-loop.c (#include <setjmp.h>): Removed.
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2000-12-15Replace free() with xfree().Kevin Buettner1-3/+3
2000-11-27* remote.c (remote_write_bytes): Add default case to switchAndrew Cagney1-0/+2
initializing ``todo''. Ditto for ``nr_bytes''. * top.c (catch_errors): Always initialize ``val''. * solib.c (info_sharedlibrary_command): Handle bfd_get_arch_size returning an unknown size. * gdbtypes.c (count_virtual_fns): Always initialize ``vfuncs''. * breakpoint.c (break_at_finish_at_depth_command_1): Initialise extra_args to NULL. (break_at_finish_command_1): Ditto.
2000-09-02Corrected spelling in comment: extention-> to extension.David Anderson1-1/+1
2000-08-25Fri Aug 25 12:11:21 2000 David Taylor <taylor@texas.cygnus.com>David Taylor1-1/+1
* symtab.c (search_symbols): Fix off by one error in index for initializing variables ourtype, ourtype2, ourtype3, and ourtype4. (symtab_symbol_info): fix similar off by one error. Fri Aug 25 12:03:15 2000 David Taylor <taylor@texas.cygnus.com> * gdbarch.sh (TARGET_ADDR_BIT): New macro for the number of bits in gdb's representation of a target address. * gdbarch.c, gdbarch.h: Regenerated. * gdbtypes.c (build_gdbtypes): Use TARGET_ADDR_BIT instead of TARGET_PTR_BIT when initializing builtin_type_CORE_ADDR. * printcmd.c (print_address_numeric): Use TARGET_ADDR_BIT instead of TARGET_PTR_BIT, because we're printing an address, not a pointer.
2000-07-30Protoization.Kevin Buettner1-175/+66
2000-07-17Cast integers into pointers before converting them into canonicalAndrew Cagney1-5/+4
addresses.
2000-07-09 * gdbtypes.c (is_ancestor): Infer type equivalence from nameNicholas Duffek1-3/+7
equivalence. (rank_one_type): Use strcmp instead of == to compare type names. Don't swap parm with arg when checking TYPE_CODE_REF types. * valops.c (find_overload_match): Fix indentation. Compare parameter rankings to 0..9, 10..99, and 100+ instead of 0, 10, and 100.
2000-05-28PARAMS removal.Kevin Buettner1-10/+10
2000-04-04C++ changes for 5.0, finally committed.Daniel Berlin1-4/+14
2000-04-03 * gdbtypes.c (safe_parse_type): New wrapper function to ignoreNicholas Duffek1-1/+26
error() during parse_and_eval_type(). (check_stub_method): Call safe_parse_type instead of parse_and_eval_type(). * wrapper.c (gdb_parse_and_eval_type): New wrapper function. (wrap_parse_and_eval_type): New support function. * wrapper.h (gdb_parse_and_eval_type): Prototype. (wrap_parse_and_eval_type): Prototype.
2000-03-28The set debug changesDaniel Berlin1-10/+12
2000-03-24FIx regressionDaniel Berlin1-2/+2
2000-03-13From Daniel Berlin:Andrew Cagney1-10/+23
Fix C++ overloading, add support for seeing through references.
2000-03-13Revert: ``Fix C++ overload support, see through references''.Andrew Cagney1-32/+26
Change also contained numerous white-space changes.
2000-03-10Fix C++ overload support, see through referencesDaniel Berlin1-26/+32
1999-12-14import gdb-1999-12-13 snapshotJason Molenda1-0/+23
1999-12-07import gdb-1999-12-06 snapshotJason Molenda1-1/+17
1999-11-02import gdb-1999-11-01 snapshotJason Molenda1-1/+2
1999-10-19import gdb-1999-10-18 snapshotJason Molenda1-0/+43
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-34/+32
1999-07-19import gdb-1999-07-19 snapshotJason Molenda1-0/+14
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-812/+828
1999-07-07import gdb-1999-07-07 pre reformatJason Molenda1-4/+8
1999-06-21import gdb-1999-06-21 snapshotJason Molenda1-1/+5
1999-06-14import gdb-1999-06-14 snapshotJason Molenda1-0/+31
1999-04-26import gdb-19990422 snapshotStan Shebs1-10/+5
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+2905
1999-04-16Initial creation of sourceware repositoryStan Shebs1-2955/+0
1998-12-28hp merge changes -- too numerous to mention here; see ChangeLog andDavid Taylor1-14/+927
ChangeLog-gdbtk for details.