aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
AgeCommit message (Collapse)AuthorFilesLines
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.
1993-11-08 * stabsread.c: Remove long_kludge_name code (it was already #if 0).Jim Kingdon1-95/+16
* stabsread.c (read_one_struct_field): Clean up comments to reflect Kung's change of 5 Nov 93.
1993-11-06Modified Files:Kung Hsu1-4/+13
gdbtypes.h stabsread.c cp-valprint.c ChangeLog * gdbtypes.h : add a field 'ignore_field_bits in cplus_specific, and macros to handle the bits. * stabsread.c (read_one_struct_field): add VISIBILITY_IGNORE, and for field of length 0, set this bit on. * cp-valprint.c (cp_print_value_fields): for VISIBILITY_IGNORE field, print <no value>.
1993-11-05 * stabsread.c (read_struct_fields): Accept either '$' or '.' asJim Kingdon1-5/+10
the character which introduces a cpp_abbrev or anonymous type.
1993-10-31 * values.c (unpack_long, unpack_double, value_from_double),Jim Kingdon1-1/+1
valarith.c (value_binop), stabsread.c (define_symbol): Use extract_floating and store_floating instead of SWAP_TARGET_AND_HOST.
1993-10-29 * defs.h, findvar.c (extract_floating, store_floating): New functions.Jim Kingdon1-8/+8
* Move SWAP_TARGET_AND_HOST from defs.h to findvar.c because it is now used only by extract_floating and store_floating. * valprint.c (print_floating): Use unsigned arithmetic. Use extract_unsigned_integer instead of SWAP_TARGET_AND_HOST. Change sizeof (float) to 4 and sizeof (double) to 8 (those are always the relevant sizes for this code, which is in #ifdef IEEE_FLOAT). * values.c (unpack_long, unpack_double, value_from_double), valarith.c (value_binop), stabsread.c (define_symbol): Use extract_floating and store_floating instead of SWAP_TARGET_AND_HOST. * config/m68k/tm-m68k.h, config/i960/tm-i960.h (REGISTER_CONVERT_*): Use extract_floating and store_floating. * config/m88k/tm-m88k.h: Add comments (it should be doing the same). * i386-tdep.c (i386_extract_return_value), * remote-nindy.c (nindy_store_registers): Use store_floating.
1993-10-23 * stabsread.c (define_symbol): Skip the whole thing about "pccJim Kingdon1-4/+8
promotion" on little-endian machines.
1993-10-20 * stabsread.c (define_symbol): When combining a LOC_ARG and aJim Kingdon1-0/+3
LOC_REGISTER, use the type from the LOC_REGISTER, not from the LOC_ARG.
1993-10-12 * stabsread.c (read_type): Treat a negative type number at the startJim Kingdon1-1/+2
of a type as a type reference, not as a definition of a type with "50=" omitted. This makes things work on the RS/6000 again (the 14 Sep 1993 change broke it).
1993-10-12 * stabsread.h, stabsread.c, dbxread.c (common_block*, copy_pending):Jim Kingdon1-0/+100
Move common block handling from dbxread.c to stabsread.c. Use the name from the BCOMM instead of the ECOMM. Allocate things on the symbol_obstack. * xcoffread.c (process_xcoff_symbol): Process C_BCOMM, C_ECOMM, and C_ECOML. On unrecognized storage classes, go ahead and call define_symbol (after the complaint). * dbxread.c (process_one_symbol): Don't relocate 'S' symbols by the text offset.
1993-10-12* stabsread.c: Fix comment about gcc 2.3.3 stab for long long int.Jim Kingdon1-2/+2
1993-10-05 * stabsread.c (read_range_type): Remove comment which recommendsJim Kingdon1-3/+1
distinguishing float from complex by the name.
1993-10-05 Changes to support alpha OSF/1 in native mode.Peter Schauer1-3/+7
* alpha-nat.c, alpha-tdep.c, config/alpha/alpha-osf1.mt, config/alpha/nm-alpha.h, config/alpha/tm-alpha.h, osfsolib.c: New files. * Makefile.in: Add new files and dependencies. * configure.in: Add alpha target. * config/alpha/alpha-osf1.mh (NATDEPFILES): Add osfsolib.o * config/alpha/alpha-osf1.mh (MH_CFLAGS): Remove, we can handle shared libraries now. * config/alpha/xm-alpha.h: Cleanup, get MAKEVA_* defines right. * defs.h (CORE_ADDR): Make its type overridable via CORE_ADDR_TYPE, provide `unsigned int' default. * breakpoint.c (breakpoint_auto_delete): Delete only if we really stopped for the breakpoint. * stabsread.c, stabsread.h (define_symbol): Change valu parameter to a CORE_ADDR. * stabsread.c (read_range_type): Handle the case where the lower bound overflows and the upper doesn't and the range is legal. * infrun.c (resume): Do not step a breakpoint instruction if CANNOT_STEP_BREAKPOINT is defined. * inferior.h (CALL_DUMMY_LOCATION): New variant AT_ENTRY_POINT. Now that we have the bp_call_dummy breakpoint the call dummy code is no longer needed. PUSH_DUMMY_FRAME, PUSH_ARGUMENTS and FIX_CALL_DUMMY can be used to set up everything for the dummy. The breakpoint for the dummy is set at the entry point and thats it. * blockframe.c (inside_entry_file, inside_entry_func): Do not stop backtraces if pc is in the call dummy at the entry point. * infcmd.c (run_stack_dummy): Handle AT_ENTRY_POINT case. Use the expected breakpoint pc when setting up the frame for set_momentary_breakpoint. * symfile.c (entry_point_address): New function for AT_ENTRY_POINT support. * valops.c (call_function_by_hand): Handle AT_ENTRY_POINT case.
1993-09-15 * stabsread.c (read_type): Process "s" (size) type attribute.Jim Kingdon1-13/+50
If type is defined to another type, copy the type.
1993-09-08some gcc lintK. Richard Pixley1-2/+2
1993-09-02 * symtab.c, symfile.c, c-exp.y, ch-exp.y, m2-exp.y, buildsym.c,Jim Kingdon1-7/+2
symfile.h, stabsread.c, minsyms.c, solib.c, nlmread.c, dwarfread.c partial-stab.h, symmisc.c, gdbtypes.c: Lint. Remove (or put inside #if) unused variables and labels. Fix unclosed comment. Deal with enumeration values unhandled in switch statements. Make sure non-void functions return values. Include appropriate headers. * dbxread.c (elfstab_build_psymtabs): Don't check for unsigned value < 0.
1993-09-01bcopy -> memcpyK. Richard Pixley1-1/+3
1993-08-09Moved the function hashname from stabsread.c to buildsym.c, sinceStan Shebs1-32/+0
it's a general-purpose function.
1993-07-26 * stabsread.c (rs6000_builtin_type): Make logical types beJim Kingdon1-3/+3
TYPE_CODE_BOOL.
1993-07-26* stabsread.c (rs6000_builtin_type): Make `logical' be TYPE_CODE_BOOL.Jim Kingdon1-1/+1
1993-07-14Tue Jul 13 14:03:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)Jim Kingdon1-14/+16
* stabsread.c (define_symbol): Make the caddr_t hack apply to `function returning foo' as well as `pointer to foo'. * remote.c [REMOTE_BREAKPOINT]: Use for breakpoint insn if defined. * config/m68k/tm-m68k.h: Define it. * mem-break.c, breakpoint.c: Improve comments. Tue Jul 13 13:35:31 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr) * config/m68k/tm-dpx2.h: Replace "tm-68k.h" with "m68k/tm-m68k.h". * config/m68k/xm-dpx2.h: Define HAVE_TERMIOS not HAVE_TERMIO.
1993-07-02 * gdbtypes.h (struct type): Add field tag_name.Jim Kingdon1-41/+10
* gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base): Use it. * {coff,dwarf,mips,stabs}read.c: Set it.
1993-06-25 * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.Jim Kingdon1-2/+1
* stabsread.c: Type -16 is 4 bytes.
1993-06-22 * stabsread.c: Include <ctype.h>.Jim Kingdon1-0/+2
1993-06-20 * stabsread.c (read_struct_fields): Don't call read_cpp_abbrev on $_.Jim Kingdon1-6/+9
(read_cpp_abbrev): Don't complain specially for $_. Also return 0 if we don't recognize the abbrev.
1993-05-31 * stabsread.c (read_type): Skip type attributes if present.Jim Kingdon1-15/+24
1993-05-31 * stabsread.c (read_huge_number): Don't accept '0' + radix as partJim Kingdon1-1/+1
of number, just through '0' + radix - 1.
1993-05-26 * stabsread.c (define_symbol, case 't'): Only set the name if itJim Kingdon1-73/+116
is not a pointer type. * stabsread.c (define_symbol): Clean up logic; move the read_type calls to inside the switch statement (this improves the error handling).
1993-05-25 * stabsread.c: Remove all uses of error(). Make error_type andJim Kingdon1-129/+227
read_type_number static. (define_symbol): Don't try to deal with a missing symbol descriptor which isn't followed by digit, '(', or '-'. * stabsread.h: Don't declare read_type_number here. * gdbtypes.h: Don't declare error_type here. * xcoffread.c: Remove NO_TYPEDEFS code.
1993-05-22 * stabsread.c: Remove most uses of lookup_fundamental_type.Jim Kingdon1-208/+350
(define_symbol): Use read_type for type of enum constant, not just read_type_number. Also don't call error(). (define_symbol): For unrecognized constant type, one complaint (the one from error_type) is enough. Don't make our own in addition. (define_symbol): Don't treat an N_FUN 'R' as a prototype. * gdbtypes.h: Doc fixes.
1993-05-21 * complaint.c: Make sure all complain() pass the address of the struct.Jim Kingdon1-3/+3
* xcoffread.c: Make sure all struct complaints are static not auto.