* config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
[binutils-gdb.git] / gdb / ChangeLog
index 11ec9979605194f95b867242935af38a4c9fd46d..de8d50be04a2375e9b922658d66a2ab8c27d3665 100644 (file)
@@ -1,3 +1,277 @@
+2002-01-28  Andrew Cagney  <ac131313@redhat.com>
+
+       * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
+       * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
+
+       * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
+       #ifdef INVALID_FLOAT.
+       * infcmd.c (do_registers_info): Ditto.
+       * values.c (unpack_double): Ditto.  Add comment.
+
+       * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
+       already commented out.
+
+2002-01-26  Andreas Schwab  <schwab@suse.de>
+
+       * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
+       * m68klinux-nat.c: Update ptrace interface for fetching/storing
+       registers and add support for PTRACE_GETREGS.
+
+2002-01-24  Andrew Cagney  <ac131313@redhat.com>
+
+       GDB 5.1.1 released from 5.1 branch.
+       * NEWS: Add 5.1.1 news.
+       * README: Sync with 5.1 branch.
+
+2002-01-23  Fred Fish  <fnf@redhat.com>
+
+       * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
+       stabstring on initial malloc.  Reallocing will copy it for us,
+       if necessary.
+
+2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
+
+        * Makefile.in (hpread_h): Delete. 
+        (HFILES_NO_SRCDIR): Remove hpread.h.
+        (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
+        (hpread.o): Update dependencies.
+        (hp-psymtab-read.o, hp-symtab-read.o): Remove.
+
+        * hp-psymtab-read.c: Remove file.
+        * hp-symtab-read.c: Remove file.
+        * hpread.h: Remove file.
+
+        * hpread.c: Merge all contents of hp-psymtab-read.c,
+        hp-symtab-read.c and hpread.h into this file, as it was prior to
+        January 1999.
+
+        * config/pa/hpux11w.mh, config/pa/hpux11.mh,
+        config/pa/hpux1020.mh, config/pa/hppaosf.mh, 
+        config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
+        Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
+
+2002-01-23  Elena Zannoni  <ezannoni@redhat.com>
+
+       * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
+       fill_gregset): Call gdbarch_tdep() just once, assign result to
+       variable and use that, instead of calling the function several
+       times.
+
+2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
+
+       * configure.host: Accept sparcv9 as alias for sparc64.
+       * configure.tgt: Likewise.
+
+2002-01-22  Kevin Buettner  <kevinb@redhat.com>
+
+       * solib-aix5.c (build_so_list_from_mapfile)
+       (aix5_relocate_main_executable): Fix xcalloc() calls so order of
+       arguments is not reversed.
+       * solib-sunos.c (sunos_relocate_main_executable): Likewise.
+       * solib-svr4.c (svr4_relocate_main_executable): Likewise.
+       
+2002-01-22  Elena Zannoni  <ezannoni@redhat.com>
+
+       * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
+       modified version of obsolete sh_fetch_pseudo_register.
+       (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
+       (sh4_register_read): New function.
+       (sh_pseudo_register_write): New function. Renamed and modified
+       version of obsolete sh_store_pseudo_register.
+       (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
+       (sh4_register_write): New function.
+       (sh_gdbarch_init): Remove setting of gdbarch function
+       fetch_pseudo_register and store_pseudo_register. Remove setting of
+       register_convert_to_raw, register_convert_to_virtual,
+       register_convertible.
+       (sh_sh4_register_convertible): Delete. No longer needed. All is
+       taken care by architecture specific functions
+       register_read/register_write.
+       (sh_sh4_register_convert_to_virtual): Make static.
+       (sh_sh4_register_convert_to_raw): Ditto.
+
+2002-01-22  Andrew Cagney  <ac131313@redhat.com>
+
+       * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
+       (floatformat_is_nan, floatformat_mantissa): Ditto.
+
+       * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
+       for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
+       builtin_type_ieee_double_little,
+       builtin_type_ieee_double_littlebyte_bigword,
+       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 and
+       builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
+
+2002-01-22  Corinna Vinschen  <vinschen@redhat.com>
+
+       * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
+       parameter.  Set frameless flag if it exists and depended of
+       whether the scanned function is frameless or not.
+       (xstormy16_skip_prologue): If function is frameless, return
+       result of xstormy16_scan_prologue().
+       (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
+       call.
+
+2002-01-21  Elena Zannoni  <ezannoni@redhat.com>
+
+       * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
+       sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
+       sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
+       sh_sh4_register_byte, sh_sh4_register_raw_size,
+       sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
+       sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
+       sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
+       sh_store_pseudo_register, sh_do_pseudo_register): Call
+       gdbarch_tdep() just once, assign result to variable and use that,
+       instead of calling the function several times.
+
+2002-01-20  Mark Kettenis  <kettenis@gnu.org>
+
+       * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
+       macros instead of LAST_FPU_CTRL_REGNUM.
+       (store_register): Likewise.
+
+2002-01-21  Jim Blandy  <jimb@redhat.com>
+
+       * infcmd.c (run_command): Check that the `exec' target layer's BFD
+       is up-to-date before running the program, not just when a program
+       exits.
+
+2002-01-21  Fred Fish  <fnf@redhat.com>
+
+       * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
+       when we have found all instructions we are looking for.
+
+2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
+
+       * arm-tdep.c (arm_register_name): New function.
+       (arm_registers_names): Make static.
+       * config/arm/tm-arm.h (arm_register_names): Delete declaration.
+       (arm_register_name): Declare.
+       (REGISTER_NAME): Use it.
+
+2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
+           Kevin Buettner  <kevinb@redhat.com>
+
+       Convert arm targets to new FRAME interface.
+       * arm-tdep.c (struct frame_extra_info): Remove fsr.
+       (arm_frame_find_save_regs): Delete.
+       (arm_frame_init_saved_regs): New.
+       (arm_init_extra_frame_info): Alloacte saved_regs as required.
+       Allocate extra_info as required.  Convert all uses of fsr.regs
+       to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
+       to use extra_info.
+       (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
+       (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
+       (check_prologue_cache, save_prologue_cache): Likewise.
+       (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
+       * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
+       (FRAME_FIND_SAVED_REGS): Delete.
+       (arm_frame_find_saved_regs): Delete prototype.
+       (arm_frame_init_saved_regs): New prototype.
+       (FRAME_INIT_SAVED_REGS): Define.
+
+2002-01-20  Andrew Cagney  <ac131313@redhat.com>
+
+       * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
+
+2002-01-20  Andrew Cagney  <ac131313@redhat.com>
+
+       From Jeff Law <law@redhat.com>:
+       * infttrace.c: Include <sys/pstat.h>.
+       (child_pid_to_exec_file): Revamp.  Use pstat call to get the
+       exec file if the ttrace equivalent fails.
+
+2002-01-20  Andrew Cagney  <ac131313@redhat.com>
+
+       * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
+       (closeLogFile): Ditto.
+
+2002-01-20  Michael Chastain  <mec@shout.net>
+
+       * top.c (print_gdb_version): Bump copyright year to 2002.
+
+2002-01-20  Andrew Cagney  <ac131313@redhat.com>
+
+       * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
+       Zannoni and Eli Zaretskii.
+
+2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
+
+       * 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-20  Andrew Cagney  <ac131313@redhat.com>
+
+       * remote-sim.c (gdbsim_open): Simplify code testing the macro
+       TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
+       byte-order selectable.
+       * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
+       * arch-utils.c: Ditto.
+       (set_endian): Ditto.
+       (set_endian_from_file): Ditto.
+       * gdbserver/low-sim.c (create_inferior): Ditto.
+       * gdbarch.sh: Ditto.
+       * gdbarch.h: Re-generate.
+       * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P): 
+       * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE): 
+       * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE): 
+       * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P): 
+       * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P): 
+       * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P): 
+       * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE): 
+       * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
+       macro definition.
+       * config/mips/tm-wince.h: Remove #undef of macro
+       TARGET_BYTE_ORDER_SELECTABLE.
+       * config/sh/tm-wince.h: Ditto.
+
+2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
+
+       * 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-20  Daniel Jacobowitz  <drow@mvista.com>
+
+       * f-typeprint.c: Delete unused function f_type_print_args.
+       * p-typeprint.c: Delete unused function pascal_type_print_args.
+
+2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
+
+       * 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-20  Andrew Cagney  <ac131313@redhat.com>
+
+       * configure.in (host_makefile_frag): Only require a host makefile
+       fragment when a native build.
+       * configure: Re-generate.
+
 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
 
        * doublest.h (floatformat_from_type): Declare.
        * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
        * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
        * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
-       * config/arc/tm-arc.h (IEEE_FLOAT): Ditto.
        * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
 
        * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.