aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
AgeCommit message (Collapse)AuthorFilesLines
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.
1998-12-16CARP:Andrew Cagney1-0/+36
Swap the GDB builtin types when ever the architecture changes.
1998-12-16* gdbtypes.c (build_gdbtypes): New function.Andrew Cagney1-4/+12
(_initialize_gdbtypes): Call.
1998-10-161998-10-16 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda1-15/+21
* command.c copying.c copying.awk core-aout.c core-regset.c corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c symmisc.c valarith.c: Add prototypes. * defs.h: Add prototype for utils.c::do_run_cleanups. * gdbtypes.c: Add prototypes. (make_pointer_type): Add braces to remove nested if-else ambiguity. (make_reference_type): Ditto. * printcmd.c (printf_command): Initialize 'f' and 'string' at function startup to suppress possibly-used-before-initialized warning. * remote-utils.c: Add prototypes. (sr_pollchar): Add braces to remove nested if-else ambiguity. * ser-tcp.c: Add prototypes. (wait_for): Add braces to remove nested if-else ambiguity. (tcp_readchar): Ditto. * ser-unix.c: Add prototypes. (get_tty_state): Don't define errno here. (get_tty_state): Don't define errno here. (hardwire_readchar): Only define 't' if we are compiling in a Cygwin environment. * symtab.c: Add prototypes. (find_methods): Add braces to remove nested if-else ambiguity. (search_symbols): Set 'i' to an initial value to suppress a possibly-used-before-initialized warning. * valops.c: Add prototypes. (value_cast): Set 'eltype2' to an initial value to suppress a possibly-used-before-initialized warning. (value_of_variable): Add braces to remove nested if-else ambiguity. (value_of_this): Ditto. * valprint.c: Add prototypes. (print_floating): Add braces to remove nested if-else ambiguity. Looks like a big change, but it is really just a lot of small stuff. In the cases where GCC was flagging a possible use-before-initialized warning on variables, it turned out that these were being used properly but GCC couldn't see that.
1998-06-16* PR 15693 fix.Frank Ch. Eigler1-0/+10
Wed Jun 10 18:04:35 1998 Frank Ch. Eigler <fche@cygnus.com> * gdbtypes.c (get_discrete_bounds): Assign unsigned type flag for all-positive enum. (create_set_type): Ditto for all-positive set values. * values.c (unpack_field_as_long): Check for typedef in struct field unpacking.
1998-06-10 * c-exp.y: Fix problems with parsing "'foo.bar'::func". Some languagesStu Grossman1-8/+8
allow symbols with dots. * gdbtypes.c (check_stub_method): Cosmetic. Use more descriptive names for parameters. start-sanitize-java * jv-exp.y: Parser now accepts primitive types. * (parse_number): Use correct ifdef for scanf long double support. * jv-lang.c (java_array_type): Initial cut at array support. end-sanitize-java * language.c language.h (set_language): Now returns previous language. * symtab.c (find_methods): Make static. Cosmetic changes, including indentation, and adding descriptive comments. Move local variable defs into the block they are used in. * Don't call check_stub_method any more. Use gdb_mangle_name to generate the full method name. find_method doesn't need all the other goobldegook that check_stub_method does. * (gdb_mangle_name): Use more descriptive names for parameters. Fix comment. start-sanitize-java * (lookup_partial_symbol lookup_block_symbol): Check for java to ensure we can find mangled names. end-sanitize-java * (decode_line_1): Move local variable defs into the block they are used in. (Improves code readability.)
1998-05-04* Fixes for chill PR 15681Frank Ch. Eigler1-0/+3
Fri May 1 19:51:32 1998 Frank Ch. Eigler <fche@cygnus.com> * stabsread.c (read_one_struct_field): Do not override supplied bitfield size for a range type value. * gdbtypes.c (create_range_type): For a range with positive lower limit, declare range type as unsigned.
1998-03-20Add builtin explicitly sized 8, 16, 32, 64 and 128 bit int andAndrew Cagney1-0/+54
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.
1998-02-17Tue Feb 17 14:28:33 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>Jason Molenda1-1/+1
* acconfig.h: FORCE_MMCHECK changed to MMCHECK_FORCE. * configure.in: Ditto. * configure: Regenerated. Tue Feb 17 14:07:34 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> * gdbtypes.c (check_typedef): Do not try to resolve the length of a type which has TYPE_FLAG_TARGET_STUB set, if the target type has set TYPE_FLAG_TARGET_STUB as well. Patches from Peter.
1996-12-14 * c-exp.y (qualified_name): Replace explicit check for validPeter Schauer1-1/+30
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-07-26See gdb ChangeLog entry with header:Fred Fish1-6/+21
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. :-(
1996-06-26 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)Wilfried Moser1-0/+4
is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type. * ch-exp.c (calculate_array_length): Function removed.
1996-04-24 Add new support for parsing cfront stabs.Dawn Perchik1-1/+195
1996-01-29 * ch-valprint.c (calculate_array_length): New function to determineWilfried Moser1-2/+12
the length of an array type (see comment). (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an array type is zero, call calculate_array_length. * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): They values may not be sorted. Scan all entries and set the real lower and
1996-01-12 * symfile.c (decrement_reading_symtab): New function.Per Bothner1-3/+10
* symfile.c, symtab.h (currently_reading_symtab): New variable. * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab. * gdbtypes.c (check_typedef): Don't call lookup_symbol if currently_reading_symtab (since that could infinitely recurse). This fixes PR chill/8793.
1995-12-21 * defs.h: Delete extraneous whitespace at end of file.Fred Fish1-0/+2
* symfile.h: Move #include of demangle.h outside conditional. * objfiles.h (struct objstats, OBJSTAT, OBJSTATS): New struct and macros to hold per-objfile statistics for internal instrumentation. (struct objfile): Add OBJSTATS member, which is optional. * buildsym.h (next_symbol_text_func): Now takes objfile argument. Also update copyright to 1995. * dbxread.c (dbx_next_symbol_text): Now takes objfile argument. (dbx_symfile_init, coffstab_build_psymtabs, elfstab_build_psymtabs, stabsect_build_psymtabs): Accumulate string table size. (dbx_next_symbol_text, read_dbx_symtab, read_ofile_symtab): Accumulate number of stabs symbols read. * dwarfread.c (new_symbol, symthesize_typedef): Accumulate number of full symbols created. * gdbtypes.c (alloc_type): Accumulate number of types. * maint.c (maintenance_print_statistics): New function. * mdebugread.c (mdebug_next_symbol_text): Now takes objfile argument. * minsyms.c (prim_record_minimal_symbol_and_info): Accumulate number of minimal symbols read. * os9kread.c (read_os9k_psymtab): next_symbol_text takes objfile arg. * partial-stab.h: next_symbol_text takes objfile arg. * stabsread.c (error_type, STABS_CONTINUE): Now takes objfile arg and uses it to call next_symbol_text. * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list): Accumulate number of partial symbols created. * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Accumulate number of partial symbols created. * symmisc.c (print_objfile_statistics): Print the per-objfile internal instrumentation statistics gathered. * xcoffread.c (xcoff_next_symbol_text): Now takes objfile argument.
1995-12-11 * valops.c (value_cast): Handle casts to and from TYPE_CODE_CHAR.Per Bothner1-2/+6
* ch-exp.c (match_integer_literal): Fix long long support. * gdbtypes.c (get_discrete_bounds): Make TYPE_LENGTH (type) == sizeof (LONGEST) case work OK.
1995-12-06 * gdbtypes.c (check_stub_method): Make sure we get back a functionBrendan Kehoe1-6/+8
string in the demangled name before we try to use it. fixes gdb/8306 (Mentor, ser/med)
1995-12-01 * gdbtypes.c (check_stub_type): Removed; no longes needed.Per Bothner1-7/+0
* ch-exp.c (expect, parse_call): Tweak error messages.
1995-11-30 * gdbtypes.h (enum type_code): Added TYPE_CODE_TYPEDEF.Per Bothner1-60/+74
(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-20 * gdbtypes.c (get_discrete_bounds): Fix typo.Per Bothner1-1/+1
1995-10-05 * gdbtypes.c (get_discrete_bounds): New function.Per Bothner1-17/+46
(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-09-19 * gdbtypes.c (create_set_type): Set TYPE_LENGTH in bytes, not bits.Per Bothner1-3/+3
* valops.c (value_bitstring): TYPE_LENGTH is bytes, not bits. * gdbtypes.c (force_to_range_type): Calculate upper limit of TYPE_CODE_CHAR depending on TYPE_LENGTH (instead of just using 255).
1995-08-19 * gdbtypes.c (recursive_dump_type): Add dont_print_type_obstackPeter Schauer1-1/+31
to inhibit infinite recursion when printing aggregate types.
1995-08-02Update FSF address.Fred Fish1-1/+1
1995-08-01* configure.in: Check for working mmap, ansi headers, string.h,J.T. Conklin1-1/+1
strings.h, and memory.h. * configure: Regenerated. * gdb_stat.h: New file, "portable" <sys/stat.h>. * gdb_string.h: New file, "portable" <string.h>. * altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c, convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c, gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c, i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c, mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c, rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c, symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c, ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h" instead of <sys/stat.h>. * alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c, ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c, core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c, dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c, exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c, fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c, inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c, m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c, monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c, printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c, remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c, remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c, remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c, remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c, remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c, solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c, symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c, valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include "gdb_string.h" instead of <string.h>. * gdbtk.c: Likewise. * config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h, sparc/xm-sun4os4.h (HAVE_MMAP): Removed. * config/xm-lynx.h, config/i386/xm-ptx.h, config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h, config/mips/xm-irix3.h, config/mips/xm-mips.h, config/mips/xm-news-mips.h, config/mips/xm-riscos.h, config/pa/hppah.h, config/rs6000/xm-rs6000.h, config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h, config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h, config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed. * config/mips/xm-irix3.h, config/mips/xm-mips.h, config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-03-29 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUBPer Bothner1-6/+15
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.