* win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is flushed
[binutils-gdb.git] / gdb / ChangeLog
index a281c445d7514845ed099f4bb69552c85560c489..85cbd2a576cdd6bd4c878030594d31f4fdc1d46b 100644 (file)
@@ -1,3 +1,137 @@
+2000-06-03  Christopher Faylor  <cgf@cygnus.com>
+
+       * win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is
+       flushed before deleting and restoring it.
+       (safe_symbol_file_add): Ensure that gdb_stderr is flushed before
+       reassigning it.
+       (handle_load_dll): Split into two functions so that WFI can handle
+       shared library events.
+       (child_solib_loaded_library_pathname): New function.
+       (child_clear_solibs): New function.  Clears shared library list.
+       (child_solib_add): New function.  Adds shared library symbols.
+       (dll_symbol_command): New function.  Handles "dll-symbol" command.
+       (info_dll_command): New function.  Handles info
+       "sharedlibrary" command.
+       (handle_exceptions): Eliminate 'ignore_trap' argument.
+       (get_child_debug_event): Eliminate two arguments.  Return "pid" when
+       appropriate.  Break out on most events to allow WFI to handle stuff.
+       (child_wait): Accomodate get_child_debug_event changes.
+       (child_attach): Clear thread list and list of loaded dlls.
+       (child_create_inferior): Clear list of loaded dlls.  Use
+       wait_for_inferior in a loop to look for first "trap".
+       (child_resume): Avoid accessing a possibly-freed thread pointer.
+       (_initialize_inftarg): Add "dll-symbols", "sharedlibrary", and "info
+       sharedlibrary" commands.
+       * config/i386/tm-cygwin.h: Add some shared library (aka DLL) hooks.
+
+2000-06-02  Christopher Faylor  <cgf@cygnus.com>
+
+       * win32-nat.c: Fix up gcc warnings throughout.
+       (handle_load_dll): Change DLL name to lower case.
+       (handle_exception): Add a second argument indicating whether a
+       breakpoint should be ignored.  Return a 0 if the breakpoint was
+       ignored.
+       (get_child_debug_event): Pass argument to handle_exception to control
+       whether a breakpoint should be ignored.
+       (child_create_inferior): Use modern cygwin API.  Explicitly clear
+       last_sig.  Pass FIRST_EXCEPTION to get_child_debug_event for detection
+       of first breakpoint.
+
+2000-06-02  Christopher Faylor  <cgf@cygnus.com>
+
+       * configure.in: Detect correct versions of dlltool and windres when
+       cross-compiling.
+       * configure: Regenerate.
+
+2000-06-02  J.T. Conklin  <jtc@redback.com>
+
+       * configure.tgt: Add pattern for i[3456]86-*-netbsdelf*.
+       * config/i386/nbsdelf.mt: New file.
+       * config/i386/tm-nbsdelf.h: New file.
+       
+       * config/i386/tm-nbsd.h: change include of tm-nbsd.h to 
+       the more explicit config/tm-nbsd.h.
+
+2000-06-02  Mark Kettenis  <kettenis@gnu.org>
+
+       * alphabsd-nat.c (supply_fpregset): Substract FP0_REGNUM from
+       register number when used as index into fpr_regs array.
+
+Tue May 30 13:31:57 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT,
+       TARGET_LONG_DOUBLE_FORMAT): Delete.
+
+       * gdbarch.sh: Add support for parameterized expressions.
+       (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT,
+       TARGET_LONG_DOUBLE_FORMAT): Add.  Include "floatformat.h".
+       * gdbarch.h, gdbarch.c: Regenerate.
+       
+       * arch-utils.c (default_single_format, default_double_format,
+       default_long_double_format): New functions. Include
+       "floatformat.h"
+       * arch-utils.h: Declare.
+       
+       * d10v-tdep.c (d10v_gdbarch_init): Set floating point format.
+       Note that long double is 64 bit, the rest are 32 bit.  Include
+       "floatformat.h".
+
+2000-06-02  Mark Kettenis  <kettenis@gnu.org>
+
+       * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define.
+
+2000-06-01  Michael Snyder  <msnyder@seadog.cygnus.com>
+
+       * sol-thread.c (rw_common): Circumstances (eg. a bug in Sun's 
+       thread_db library) may cause this function to be called with an
+       illegal address, in which case procfs_to_xfer_memory will 
+       return zero.  Return an error code instead of looping forever.
+
+Thu Jun  1 20:05:26 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * TODO: More suggestions added.
+
+2000-05-31  J.T. Conklin  <jtc@redback.com>
+
+       * configure.host: Add patterns for i[3456]86-*-netbsdaout*
+       and i[3456]86-*-netbsdelf*.
+       * config/i386/nm-nbsdelf.h: New file.
+       * config/i386/nbsdelf.mh: New file.
+
+       * config/i386/nm-nbsd.h: change include of nm-nbsd.h to 
+       the more explicit config/nm-nbsd.h.
+       * config/i386/tm-nbsd.h: change include of tm-i386bsd.h to
+       tm-i386.h.
+       (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Define.
+
+2000-06-01  Mark Kettenis  <kettenis@gnu.org>
+
+       * NEWS: Mention FreeBSD/Alpha and FreeBSD/i386 3.x and up as new
+       native configurations.
+
+       * i386bsd-nat.c: Include "gregset.h".
+       (CANNOT_STORE_REGISTER): Define to cannot_fetch_register instead
+       of CANNOT_FETCH_REGISTER, if not already defined.
+       (supply_gregset): Call supply_register with NULL as its second
+       argument instead of supplying our own zeroed out buffer.
+       (fill_gregset): Copy contents of correct registers instead of the
+       contents of register REGNO.
+
+2000-05-31  Kevin Buettner  <kevinb@redhat.com>
+
+       * gnu-regex.c (re_match_2_internal): Revert 2000-05-27
+       patch which removed use of PARAMS from declaration.  This
+       file should not have been touched as it is supposed to track
+       the version in glibc.
+
+2000-05-31  Mark Kettenis  <kettenis@gnu.org>
+
+       Add support for FreeBSD/Alpha.
+       * configure.host, configure.tgt (alpha*-*-freebsd*): New entry.
+       * alphabsd-nat.c, config/alpha/fbsd.mh, config/alpha/fbsd.mt,
+       config/alpha/nm-fbsd.h, config/alpha/tm-fbsd.h,
+       config/alpha/xm-fbsd.h: New files.
+
 2000-05-31  Pierre Muller  <muller@sourceware.cygnus.com>
 
        * MAINTAINERS: Add myself to "Write After Approval" list.
@@ -131,6 +265,24 @@ Mon May 29 15:41:10 2000  Andrew Cagney  <cagney@b1.cygnus.com>
        xcoffsolib.c, xmodem.h, z8k-tdep.c: Remove PARAMS from function
        declarations.
 
+2000-05-26  Michael Snyder  <msnyder@seadog.cygnus.com>
+
+       * gregset.h: New file.  Typedefs for gdb_gregset_t and 
+       gdb_fpregset_t, prototypes for supply_gregset and friends.
+       * procfs.c: Include gregset.h.  Delete local prototypes for
+       supply_gregset etc., and local typedef gdb_gregset_t etc.
+       * sol-thread.c: Include gregset.h, delete local prototypes, 
+       add appropriate casts to gdb_gregset_t.
+       * uw-thread.c, lin-thread.c, core-sol2.c, core-regset.c, 
+       sparc-tdep.c, ptx4-nat.c, ppc-linux-nat.c, mipsv4-nat.c, 
+       m88k-nat.c, m68klinux-nat.c, m68k-tdep.c, irix5-nat.c, 
+       irix4-nat.c, ia64-linux-nat.c, i386v4-nat.c, cxux-nat.c,
+       arm-linux-nat.c, alpha-nat.c: Include gregset.h.
+       * config/nm-linux.h: Define GDB_GREGSET_T, GDB_FPREGET_T.
+       * config/sparc/nm-sun4sol2.h: Ditto.
+       * config/sparc/xm-sun4sol2.h: (GDB_GREGSET_TYPE,
+       GDB_FPREGSET_TYPE): Delete (replaced by GDB_GREGSET_T etc.)
+
 Thu May 25 16:56:05 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * configure.in (AC_CHECK_HEADERS): Check for ncurses.h.