* eval.c (evaluate_subexp): Clean up handling of
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 225758626dd326b1ec34962d8b78f62b471fa4b7..e11602b4dee6bf585b815097ed4c4373d6f94f08 100644 (file)
@@ -1,3 +1,385 @@
+Wed Feb  1 15:44:11 1995  Per Bothner  <bothner@kalessin.cygnus.com>
+
+       * eval.c (evaluate_subexp):  Clean up handling of
+       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.
+
+       * ch-valprint.c (chill_val_print):  On TYPE_CODE_STRING, don't
+       print address for non-'s'-formats.
+       * ch-typeprint.c, ch-valprint.c:  Use chill_varying_type instead
+       of chill_is_varying_struct.
+
+Wed Feb  1 13:27:33 1995  Stan Shebs  <shebs@andros.cygnus.com>
+
+       gcc -Wall lint.
+       * alpha-tdep.c (alpha_in_lenient_prologue): Comment out.
+       (after_prologue): Remove unused local b.
+       * procfs.c (thread.h): Include.
+       (pr_flag_table, pr_why_table, faults_table, siginfo_table): Use
+       nested braces in initializer.
+       * top.c (initialize_targets, initialize_utils): Declare.
+       (locate_arg, insert_args): Add parens around tested assignments.
+       * remote-utils.c (sr_scan_args): Remove decl of strtol.
+       * remote.c (thread.h): Include.
+       (remote_wait): Remove unused local p2.
+       * sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of
+       registers array.
+
+       defs.h (stdlib.h): Include.
+       (exit, perror, atoi, qsort, memcpy, memcmp): Don't declare.
+       (fclose, atof, malloc, realloc, free, strchr, strrchr, strstr,
+       strtok, strerror): Don't specify parameter types in declaration.
+
+Wed Feb  1 12:23:57 1995  Per Bothner  <bothner@kalessin.cygnus.com>
+
+       * ch-exp.y (value_string_element, string_primitive_value,
+       start_element, left_element, right_element, slice_size,
+       lower_element, upper_element, first_element):  Removed.
+       (value_string_slice, value_array_slice):  Replaced by ...
+       (slice):  New non-terminal, with working slice support.
+       (primitive_value_lparen, rparen):  New non-terminals.
+       (maybe_tuple_elements):  New non-terminal, to allow empty tuples.
+       (idtokentab):  Added "up".
+
+       * value.h (COERCE_VARYING_ARRAY):  New macro.
+       * valarith.c (value_subscript):  Use it.
+       * valops.c (value_cast):  Likewise.  Also, do nothing if already
+       correct type, and allow converting from/to range to/from scalar.
+
+       * valops.c, value.h (varying_to_slice, value_slice):  New functions.
+       * eval.c (OP_ARRAY):  Add cast for array element.
+       * expression.h (TERNOP_SLICE, TERNOP_SLICE_COUNT):  New exp_opcodes.
+       * valops.c (chill_varying_type):  Moved function frp, here ...
+       * gdbtypes.c (chill_varying_type), gdbtypes.h: ... to here.
+       * parse.c (length_of_subexp, prefixify_subexp):  Add support
+       for TERNOP_SLICE, TERNOP_SLICE_COUNT.
+       * expprint.c (print_subexp, dump_expression):  Likewise.
+       * eval.c (evaluate_subexp):  Likewise.
+
+       * eval.c (evaluate_subexp case MULTI_SUBSCRIPT):  Don't call
+       value_x_binop on a Chill varying string.
+
+Tue Jan 31 13:51:53 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * config/m68k/monitor.mt,
+       config/pa/{hppabsd.mt,hppahpux.mt,hppaosf.mt,hppapro.mt}: Put
+       depfiles in TDEPFILES not REMOTE_O.
+
+Tue Jan 31 11:14:44 1995  Steve Chamberlain  <sac@splat>
+
+       From nigel@algor.co.uk.
+       * ser-go32.c (dos_close): Don't crash if scb null.
+       (dos_sendbreak): New function.
+       (dos_ops): Point to dos_sendbreak.
+       (dos_info): Calculate COM number correctly.
+
+Tue Jan 31 09:40:11 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * xcoffread.c (process_xcoff_symbol): Use new variables
+       func_symbol_type and var_symbol_type as type of functions and
+       variables which don't have any stabs associated with them.
+       Reindent most of function.
+       (_initialize_xcoffread): Initialize *_symbol_type.
+
+       * xcoffread.c (read_xcoff_symtab): Reindent most of function.
+       Put C_HIDEXT symbols in the minimal symbols, rather than ignoring
+       them (this part commented out as I didn't quite get it to work).
+       (cs_to_section, find_targ_sec): New functions, to support above code.
+       * xcoffread.c (RECORD_MINIMAL_SYMBOL): Only skip '.' if it is
+       actually present.
+
+Mon Jan 30 17:34:24 1995  Stu Grossman  (grossman@cygnus.com)
+start-sanitize-gdbtk
+       * gdbtk.tcl (create_file_win):  Disable old popup menu for source
+       window.
+end-sanitize-gdbtk
+       * sparcl-tdep.c:  Add `sparclite' target for doing serial and udp
+       downloads to SPARClite demo boards.
+
+Sun Jan 29 09:43:22 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * remote.c, remote-pa.c: Remove #if 0'd icache code.  It has had
+       no hope of working as is for a long time (in particular, shebs' 27
+       Jan 95 change confuses the issue further--target_read_memory and
+       xfer_core_file do *not* do the same thing in this context).
+       Revise comment.
+
+Sat Jan 28 13:40:46 1995 Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
+
+       * elfread.c (elf_symtab_read):  Do not test BSF_GLOBAL for
+       procedure linkage table symbols, it is no longer set due to the
+       Jan 6 BFD change in bfd/elfcode.h.
+
+Fri Jan 27 17:08:06 1995  Stan Shebs  <shebs@andros.cygnus.com>
+
+       * top.c (use_windows): Clarify comments.
+
+       * convex-tdep.c (xfer_core_file): Comment out.
+       * config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
+       * remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
+        references to target_read_memory.
+       * gdbcore.h (xfer_core_file, core_open, core_detach): Remove
+       declarations.
+       * corelow.c (core_open, core_detach): Make static.
+
+       * arm-tdep.c: Make it compile.
+       (exec_file_command, xfer_core_file): Comment out.
+       (arm_print_insn): Remove, now in libopcodes.
+       (skip_prologue): Comment out most of body.
+       (arm_frame_find_saved_regs): Move here from tm-arm.h.
+       (_initialize_arm_tdep): Set tm_print_insn.
+       * config/arm/tm-arm.h: Remove old refs to first_object_file_end.
+       (XFER_CORE_FILE): Remove.
+       (FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.
+       
+Fri Jan 27 08:48:28 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.
+
+Thu Jan 26 18:24:41 1995  Jim Kingdon  <kingdon@deneb.cygnus.com>
+
+       * symtab.c (find_pc_line): When subtracting one to get a line
+       number, make sure not to end up with zero.
+
+       * remote-vx.c: Revert all of Kung's changes of 16 Jan.  The
+       problems with those changes were (a) the file didn't compile, (b)
+       they changed memset to bzero--memset is correct, (c) they took out
+       code to deal with boards lacking floating point, (d) who knows
+       what I didn't discover in a quick read.
+
+Thu Jan 26 17:32:54 1995  Stu Grossman  (grossman@cygnus.com)
+
+       * sparcl-tdep.c:  Clean up formatting and indentation.
+
+Thu Jan 26 10:49:59 1995  Steve Chamberlain  <sac@splat>
+
+       * remote-hms.c (hms_ops): Change ref of hr_load_image
+       to gr_load_image.
+       (dcache_flush, dcache_hit, dcache_value, dcache_fetch,
+       dcache_poke, dcache_init):  Deleted.
+       (hms_open, hms_resume, hms_fetch_word, hms_store_word):
+       Use dcache routines provided by remote-util.h
+
+Thu Jan 26 12:08:31 1995  Michael Meissner  <meissner@cygnus.com>
+
+       * configure.in: Add support for powerpc-*-eabi.
+
+       * powerpc/tm-ppc-eabi.h, powerpc/pcc-eabi.mt: New files for
+       PowerPC support.
+
+Wed Jan 25 18:13:14 1995  Per Bothner  <bothner@kalessin.cygnus.com>
+
+       * language.h (struct language_defn):  New field c_style_arrays.
+       * language.c (unknown_language_defn, auto_language_defn,
+       local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
+       asm_language_defn):  Set c_style_arrays to true.
+       * m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
+       f-lang.c (f_language_defn):  Set c_style_arrays to false.
+       * valops.c (value_string):  If c_style_array is not set,
+       allocate string in gdb (not inferior) using allocate_value.
+
+       * value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
+       Only call value_coerce_array if current_language->c_style_arrays.
+       * values.c:  Add #include "language.h".  (Needed for COERCE_ARRAY.)
+
+       * valops.c (chill_varying_type):  New predicate.
+       * valops.c (value_cast):  Support assigning a fixed string or array
+       to a variable string/array structure.
+
+       * valarith.c (value_subscripted_rvalue):  Extra parameter lowerbound.
+       Check index>=lowerbound, and then add lowerbound to index here,
+       instead of in caller.  Generalize to arbitrary lval_types.
+       (value_subscript):  Use enhanced value_subscripted_rvalue if
+       c_style_arrays is false (and index is in range).
+
+Wed Jan 25 18:23:46 1995  Stu Grossman  (grossman@cygnus.com)
+
+       * gdbtk.c (gdbtk_init):  Prevent segfault when gdbtk.tcl can't be
+       found.
+       * gdbtk.tcl:  Initialize expr_update_list() to prevent errors when
+       popping up expression window for the first time.
+
+Wed Jan 25 18:13:14 1995  Per Bothner  <bothner@kalessin.cygnus.com>
+
+       * eval.c (evaluate_subexp case OP_ARRAY):  Fix calls to memset:
+       TYPE_LENGTH is length in bytes, not bits.
+
+Wed Jan 25 08:19:35 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * infrun.c (proceed): Flush stdout before resuming inferior.
+       * infcmd.c (step_1), annotate.c (annotate_starting):
+       Don't bother to flush here.
+
+Wed Jan 25 01:11:21 1995  Jeff Law  (law@snake.cs.utah.edu)
+
+       * hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
+       by an ill-advised global search and replace.
+
+Tue Jan 24 12:10:28 1995  Stu Grossman  (grossman@cygnus.com)
+
+       * gdbtk.tcl (create_registers_window):  Work around a radiobutton
+       widget bug to make Options|Natural button work.
+
+       * gdbtk.c (gdb_disassemble):  Fix problem with source+assembly and
+       g++ caused by out-of-order pc's.
+       * gdbtk.tcl (files_command):  Remove duplicate file names.  Also,
+       add scrollbar.
+
+Mon Jan 23 17:21:09 1995  Stu Grossman  (grossman@cygnus.com)
+
+       * gdbtk.tcl:  Take .gdbtkinit if it exists.  Makes gdbtk match the
+       doc!
+
+Mon Jan 23 13:11:46 1995  Per Bothner  <bothner@kalessin.cygnus.com>
+
+       Add support for Chill bitstring literals (e.h. H'FF00').
+       * ch-exp.y (match_bitstring_literal):  Fix for proper endianness.
+       * expprint.c (print_subexp):  Don't call error on OP_BITSTRING,
+       just print B'<unimlemented>'.
+       * gdbtypes.c (create_set_type):  Fix bug in length calculation.
+       * valops.c, value.h (value_bitstring):  New function.
+       * eval.c (evaluate_subexp):  Implement support for OP_BITSTRING.
+
+       * ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
+       check that return type is non-void, and print in proper Chill syntax.
+
+Mon Jan 23 12:20:34 1995  Rob Savoye  <rob@darkstar.cygnus.com>
+
+       * Makefile.in: Remove references to remote-mon.c.
+       * remote-mon.c: remove. Replaced by rom68k-rom.c.
+       * rom68k-rom.c: Support for Rom68k monitor.
+
+Mon Jan 23 10:50:57 1995  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
+       gcc/ch/runtime not chillrt, since that is where the chill runtime
+       lives now.
+
+Mon Jan 23 00:06:57 1995  Steve Chamberlain  <sac@splat>
+
+       * remote-hms.c (hms_load): Delete.
+       (target_ops): Use hr_load_image.
+
+       * remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
+        Define memory_insert/remove_breakpoint.
+       * xm-go32.h: Remove redundant SIGs.
+       
+Thu Jan 19 20:26:58 1995  Steve Chamberlain  <sac@splat>
+
+       * ser-go32.c: Rewritten by nigel@algor.co.uk.
+
+Fri Jan 20 15:23:55 1995  Per Bothner  <bothner@kalessin.cygnus.com>
+
+       * expression.h (OP_LABELED):  New operator, for Chill
+       labeled structre tuples.
+       * ch-exp.y (tuple_element, named_record_element, tuple_elements):
+       New non-terminals, to handle labeled structure tuples.
+       (tuple):  Re-define using tuple_elements.
+       * eval.c (evaluate_labeled_field_init):  New function, to handle
+       initialization of structure fields, possibly using OP_LABELED.
+       (evaluate_subexp):  Use it.
+       * expprint.c (print_subexp case):  For OP_ARRAY, use Chill syntax
+       for Chill.  Handled OP_LABELED.
+       * parse.c (length_of_subexp, prefixify_subexp):  Handle OP_LABELED.
+
+       * eval.c (evaluate_subexp):  Handle Chill Powerset tuples.
+       * valarith.c (value_bit_index):  Just treat bitstring as represented
+       by an array of bytes.  Alignment is handled by compiler. 
+
+Wed Jan 18 19:00:29 1995  Stan Shebs  <shebs@andros.cygnus.com>
+
+       * h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
+       * sh-tdep.c (gdb_print_insn_sh): Ditto.
+
+Wed Jan 18 11:25:43 1995  Kung Hsu  <kung@mexican.cygnus.com>
+
+       * remote-os9k.c (rombug_open): Fix a bug in exception handling
+       command.
+       * remote-os9k.c (rombug_write_inferior_memory): reset buffer after
+       write.
+
+Tue Jan 17 09:48:38 1995  Jim Kingdon  <kingdon@lioth.cygnus.com>
+
+       * parse.c (_initialize_parse): Improve wording of names of
+       msym_*_symbol_type.
+
+Tue Jan 17 14:00:58 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
+
+       * config/mips/tm-mips.h (enum mips_fpu_type): New enum.
+       (mips_fpu): Change type to enum mips_fpu_type.
+       (FIX_CALL_DUMMY): Handle mips_fpu == MIPS_FPU_SINGLE.
+       * mips-tdep.c (mips_fpu): Change type to enum mips_fpu_type.
+       Don't initialize.
+       (mips_fpu_string): New static variable.
+       (mips_push_dummy_frame): Handle mips_fpu == MIPS_FPU_SINGLE.
+       (mips_pop_frame): Likewise.
+       (mips_extract_return_value): Likewise.
+       (mips_store_return_value): Likewise.
+       (mips_set_fpu_command): New static function.
+       (mips_show_fpu_command): New static function.
+       (_initialize_mips_tdep): Change handling of set/show mipsfpu.
+
+Tue Jan 17 09:48:38 1995  Jim Kingdon  <kingdon@lioth.cygnus.com>
+
+       * a29k-tdep.c (gdb_print_insn_a29k): Fix typo (&info -> info).
+
+       * parse.c (write_exp_msymbol): Use new variables
+       msym_*_symbol_type as type of msymbol expression.
+       (_initialize_parse): Initialize them.
+
 Mon Jan 16 18:11:03 1995  Stan Shebs  <shebs@andros.cygnus.com>
 
        General cleanup and simplication of disassembler interface.
@@ -54,8 +436,6 @@ Mon Jan 16 18:11:03 1995  Stan Shebs  <shebs@andros.cygnus.com>
        * printcmd.c (print_insn): New function, generic disassembler.
        * config/*/*.mt (TDEPFILES): Remove refs to *-pinsn.o.
 
-       * defs.h (query_hook, error_hook): Fix prototypes.
-
 Mon Jan 16 15:43:29 1995  Kung Hsu  <kung@mexican.cygnus.com>
 
        * Makefile.in: add new files remote-vx29k.c, config/a29k/tm-vx29k.h,
This page took 0.039761 seconds and 4 git commands to generate.