* NEWS: Mention OpenBSD/mips64 as a new native configuration.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 34cbd8c4534d4ebfc89f2ad8ec53c31e156d143a..9f6960ad29e6f216698b0e454030a6933fe0ccdb 100644 (file)
@@ -1,3 +1,439 @@
+2005-05-12  Mark Kettenis  <kettenis@gnu.org>
+
+       * NEWS: Mention OpenBSD/mips64 as a new native configuration.
+
+2005-05-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * observer.sh (texi) [DJGPP]: If the file name includes a colon,
+       convert it to the /dev/x/ form.
+
+2005-05-12  Mark Kettenis  <kettenis@gnu.org>
+
+       * solib.h (CLEAR_SOLIB, SOLIB_ADD)
+       (SOLIB_CREATE_INFERIOR_HOOK, SOLIB_REMOVE_INFERIOR_HOOK)
+       (SOLIB_IN_DYNAMIC_LINKER, SOLIB_RESTART)
+       (DISABLE_UNSETTABLE_BREAK, PC_SOLIB)
+       (IN_SOLIB_DYNSYM_RESOLVE_CODE): Remove defines and orphaned
+       comments.
+       * breakpoint.c: Include "solib.h".
+       (insert_bp_location) [!DISABLE_UNSETTABLE_BREAK]: Call
+       solib_address.
+       (remove_solib_event_breakpoints, create_solib_event_breakpoint)
+       (disable_breakpoints_in_shlibs)
+       (disable_breakpoints_in_unloaded_shlib)
+       (re_enable_breakpoints_in_shlibs): Compile if SOLIB_ADD isn't
+       defined. If PC_SOLIB isn't defined, call solib_address.
+       (_initialize_breakpoint): Unconditionally install observer.
+       * corelow.c: Include "solib.h".
+       [SOLIB_ADD] (solib_add_stub): Remove prototype.
+       (core_close) [!CLEAR_SOLIB]: Call clear_solib.
+       (solib_add_stub) [!SOLIB_ADD] Call solib_add.
+       (core_open): Unconditionally call solib_add_stub.
+       * fork-child.c: Include "solib.h".
+       (fork_inferior) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
+       solib_create_inferior_hook.
+       * infcmd.c: Include "solib.h".
+       (attach_command) [!SOLIB_ADD]: Call shlib_rescan.  Unconditionally
+       call re_enable_breakpoints_in_shlibs.
+       * infrun.c: Include "solib.h".
+       (SOLIB_IN_SYNSYM_RESOLVE_CODE): Don't define if not already
+       defined.
+       (stop_on_solib_events, show_stop_on_solib_events): Include
+       unconditionally.
+       (follow_exec) [!SOLIB_CREATE_INFERIOR_HOOK]: Call
+       solib_create_inferior_hook.
+       (handle_inferior_event) [!SOLIB_ADD]: Call shlib_add.
+       [!IN_SOLIB_DYNSYM_RESOLVE_CODE]: Call in_solib_dynsym_resolve_code.
+       (_initialize_infrun): Unconditionally add "stop_on_solib-events"
+       command.
+       * remote.c: Include "solib.h".
+       (remote_open_1): Unconditionally call no_shared_libraries.
+       [!SOLIB_CREATE_INFERIOR_HOOK] Call solib_create_inferior_hook.
+       * stack.c: Include "solib.h".
+       (print_frame) [!PC_SOLIB] Call shlib_for_pc.
+       * xcoffsolib.c (no_shared_libraries): Remove function.
+       * Makefile.in (SFILES): Add solib.c.
+       (ALLDEPFILES): Remove solib.c.
+       (COMMON_OBS): Add solib.o.
+       (breakpoint.o, corelow.o, fork-chiled.o, infcmd.o, infrun.o)
+       (remote.o, stack.o): Update dependencies.
+
+2005-05-12  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * cp-names.y: Renamed to ...
+       * cp-name-parser.y: ... this.
+       * Makefile.in (SFILES, YYFILES, YYOBJ): Rename cp-names.y to
+       cp-name-parser.y.
+       (test-cp-names.o): Renamed to test-cp-name-parser.o.
+       (test-cp-names): Renamed to test-cp-name-parser.
+       (clean, local-maintainer-clean): Update.
+       (cp-names.o): Renamed to cp-name-parser.o.
+
+2005-05-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * observer.sh: Use observer.tmp instead of observer.inc-tmp which
+       on 8+3 filesystems overwrites observer.inc.  Update copyright year
+       of the resultant file.
+
+       * gnu-v3-abi.c (init_gnuv3_ops): Cast is_gnu_v3_mangled_dtor and
+       is_gnu_v3_mangled_ctor to avoid compiler warnings.
+
+       * config/djgpp/config.sed: Adapt to latest Autoconf.
+
+       * config/djgpp/djconfig.sh: Add -Wpointer-arith and
+       -Wuninitialized to the build warnings.
+
+2005-05-11  Eli Zaretskii  <eliz@gnu.org>
+
+       * config/djgpp/fnchange.lst: Add mappings for inttypes*.m4,
+       ChangeLog-2004, reg-cris*.dat, dw2-intermix.*, semcris*-switch.c.
+       Fix mappings for hilo-hazard-?.s.
+
+       * config/djgpp/README: Update GDB versions and my email address.
+
+2005-05-09  Andrew Cagney  <cagney@gnu.org>
+
+       Use gdb_byte in preference to bfd_byte.
+       * gdbarch.sh: Update.
+       * gdbarch.h, gdbarch.c: Re-generate.
+       * ada-lang.c, ada-lang.h, ada-valprint.c, arch-utils.c: Update.
+       * c-lang.c, c-lang.h, c-valprint.c, cp-valprint.c: Update.
+       * f-lang.c, f-lang.h, f-valprint.c, gdbcore.h, jv-lang.h: Update.
+       * jv-valprint.c, language.c, language.h, m2-lang.c: Update.
+       * m2-lang.h, m2-valprint.c, objc-lang.c, p-lang.c: Update.
+       * p-lang.h, p-valprint.c, regcache.c, scm-lang.c: Update.
+       * scm-lang.h, scm-valprint.c, target.c, target.h: Update.
+       * tramp-frame.c, valarith.c, valops.c, valprint.c: Update.
+       * valprint.h, value.c, value.h: Update.
+
+2005-05-09  Mark Kettenis  <kettenis@gnu.org>
+
+       * vaxbsd-nat.c (vaxbsd_supply_gregset, vaxbsd_collect_gregset):
+       Use `gdb_byte *' for regs.
+       * vax-tdep.c (vax_supply_gregset): Use `gdb_byte *' for regs;
+       (vax_store_arguments, vax_push_dummy_call, vax_return_value): Use
+       gdb_byte for buf.
+       (vax_breakpoint_from_pc): Change return type to `const gdb_byte
+       *'.  Use gdb_byte for break_insn.
+       (vax_skip_prologue): Use gdb_byte for op.
+
+       * i387-tdep.c: Remove outdated comments.
+
+       * defs.h: Unconditionally include <sys/types.h>.
+
+2005-05-08  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs
+       section like .plt.
+
+2005-05-08  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
+       Change type to `static const gdb_byte'.
+       (i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start) 
+       (i386_linux_sigcontext_addr): Use gdb_byte for buf.
+       * amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static
+       const gdb_byte'.
+       (amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use
+       gdb_byte for buf.
+       * amd64fbsd-tdep.c (amd64fbsd_supply_uthread) 
+       (amd64fbsd_collect_uthread): Use gdb_byte for buf.
+
+       * config/ia64/nm-aix.h: Remove file.
+
+       * amd64-tdep.c (amd64_return_value): Use `gdb_byte *' in casts.
+       (amd64_push_arguments): Use gdb_byte instead of bfd_byte.  Use
+       gdb_byte for buf.
+       (amd64_push_dummy_call): Use gdb_byte for buf.
+       (amd64_analyze_prologue): Use gdb_byte for proto, buf and op.
+       (amd64_frame_cache, amd64_sigtramp_frame_cache)
+       (amd64_unwind_dummy_id): Use gdb_byte for buf.
+       (amd64_supply_fxsave, amd64_collect_fxsave): Use `gdb_byte *' for
+       regs.
+       * amd64obsd-tdep.c (amd64obsd_supply_regset): Use `gdb_byte *' in
+       casts.
+       (amd64obsd_sigtramp_p): Use gdb_byte for sigreturn and `gdb_byte
+       *' for buf,
+
+       * i386-tdep.c (i386_breakpoint_from_pc): Change return type to
+       `const gdb_byte *'.  Use gdb_byte for break_insn.
+       (i386_follow_jump): Use gdb_byte for op.
+       (i386_analyze_struct_return): Use gdb_byte for proto1, proto2, buf
+       and op.
+       (i386_skip_probe): Use gdb_byte for buf and op.
+       (struct i386_insn): Use gdb_byte for insn and mask.
+       (i386_match_insn, i386_analyze_frame_setup)
+       (i386_analyze_register_saves): Use gdb_byte for op.
+       (i386_skip_prologue): Use gdb_byte for pic_pat and op;
+       (i386_unwind_pc, i386_frame_cache, i386_sigtramp_frame_cache)
+       (i386_unwind_dummy_id, i386_get_longjmp_target): Use gdb_byte for
+       buf.
+       (i386_extract_return_value, i386_store_return_value): Use
+       `gdb_byte *' instead of `void *' for valbuf argument.  Remove now
+       redundant cast.
+       (i386_pseudo_register_read, i386_pseudo_register_write): Use
+       gdb_byte for mmx_buf.
+       (i386_register_to_value, i386_value_to_register): Use `gdb_byte *'
+       instead of `char *' for buf.
+       (i386_supply_gregset, i386_collect_gregset): Use `gdb_byte *'
+       instead of `char *' for regs.
+       (i386_svr4_sigcontext_addr): Use gdb_byte for buf.
+       * i386obsd-tdep.c (i386obsd_sigtramp_p): Use gdb_byte for
+       sigreturn and `gdb_byte *' for buf.
+       (i386obsd_aout_supply_regset): Use `const gdb_byte *' in cast.
+       (i386obsd_supply_uthread, i386obsd_collect_uthread): Use gdb_byte
+       for buf.
+       * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use gdb_byte for buf.
+
+       * defs.h (gdb_byte): New typedef.  Tweak comments.
+
+       * target.h (target_link): Remove prototype.
+       * target.c (target_link): Remove function.
+       * symfile.c: Remove comment about rombug.
+
+2005-05-04  Mark Kettenis  <kettenis@gnu.org>
+
+       * config/i386/cygwin.mh (XM_FILE): Remove variable.
+       * config/i386/xm-cygwin.h: Remove file.
+
+2005-05-03  Ben Elliston  <bje@au.ibm.com>
+
+       * infrun.c (handle_inferior_event): Update the comment about users
+       of stepped_after_stopped_by_watchpoint.
+
+2005-05-02  Corinna Vinschen  <vinschen@redhat.com>
+
+       * MAINTAINERS: Remove hint that sh64 doesn't build.
+       * sh64-tdep.c (sh64_push_dummy_call): Cast buf in call to write_memory.
+       (sh64_do_fp_register): make raw_buffer unsigned.
+       (sh64_do_register): Ditto.
+
+2005-05-02  Mark Kettenis  <kettenis@gnu.org>
+
+       * bsd-uthread.c: Include "solib.h".
+       * Makefile.in (bsd-uthread.o): Update dependencies.
+
+2005-05-01  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdbarch.sh (deprecated_current_gdbarch_select_hack): Flush
+       cached frames when changing gdbarch.
+       * gdbarch.c: Regenerated.
+
+2005-05-01  Andrew Cagney  <cagney@gnu.org>
+
+       * MAINTAINERS: Note that cris, m68k, mn10300, sh64, sparc and vax
+       do not build.
+
+       * gdbarch.sh (deprecated_extract_return_value)
+       (breakpoint_from_pc, deprecated_store_return_value)
+       (memory_insert_breakpoint, memory_remove_breakpoint): Change type
+       of buffer to a bfd_byte pointer.
+       * gdbarch.h, gdbarch.c: Re-generate.
+       * mem-break.c (memory_insert_breakpoint) 
+       (memory_remove_breakpoint, default_memory_insert_breakpoint)
+       (default_memory_remove_breakpoint): Update.
+       * target.h (memory_insert_breakpoint)
+       (memory_remove_breakpoint, default_memory_insert_breakpoint)
+       (default_memory_remove_breakpoint): Update declarations.
+       (struct target_ops): Update to_insert_breakpoint and
+       to_remove_breakpoint.
+       * target.c (debug_to_remove_breakpoint) 
+       (debug_to_insert_breakpoint): Update.
+       * remote-m32r-sdi.c (m32r_remove_breakpoint) 
+       (m32r_insert_breakpoint): Update.
+       * m32r-tdep.c (m32r_memory_insert_breakpoint) 
+       (m32r_memory_remove_breakpoint): Update.
+       * remote-e7000.c (e7000_insert_breakpoint) 
+       (e7000_remove_breakpoint): Update.
+       * remote-rdi.c (arm_rdi_insert_breakpoint) 
+       (arm_rdi_remove_breakpoint): Update.
+       * remote-sim.c (gdbsim_insert_breakpoint) 
+       (gdbsim_remove_breakpoint): Update.
+       * exec.c (ignore): Update.
+       * rs6000-tdep.c (rs6000_extract_return_value): Update.
+       * ia64-tdep.c (ia64_memory_insert_breakpoint) 
+       (ia64_memory_remove_breakpoint): Update.
+       * remote-rdp.c (remote_rdp_insert_breakpoint) 
+       (remote_rdp_remove_breakpoint): Update.
+
+2005-05-01  Mark Kettenis  <kettenis@gnu.org>
+
+       * somsolib.c, somsolib.h: Remove files.
+       * Makefile.in (somsolib_h): Remove.
+       (somsolib.o): Remove dependency.
+
+       * fbsd-nat.c: Include <sys/sysctl.h>.
+       (fbsd_pid_to_exec_file): Use KERN_PROC_PATHNAME sysctl if
+       available.  Plug memory leak.  Fixes PR gdb/1922.
+
+2005-04-29  Mark Kettenis  <kettenis@gnu.org>
+
+       * solist.h (TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB) 
+       (TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK) 
+       (TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS) 
+       (TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): Remove defines.
+       * solib.c (solib_data): New variable.
+       (solib_init, solib_ops): New functions.
+       (solib_open, solib_map_sections, free_so, update_solib_list)
+       (solib_add, clear_solib, solib_create_inferior_hook)
+       (in_solib_dynsym_resolve_code): Call architecture-dependent code
+       using solib_ops.
+       (_initialize_solib): Register SOLIB_DATA.
+
+2005-04-29  Kevin Buettner  <kevinb@redhat.com>
+
+       * frv-tdep.c (find_func_descr): Verify that entry point can be
+       found in symbol table prior to looking up its function descriptor.
+       * solib-frv.c (find_canonical_descriptor_in_load_object): Add
+       test for non-NULL link map.
+
+2005-04-29  Corinna Vinschen  <vinschen@redhat.com>
+
+       * MAINTAINERS: Revert h8300 state to un-deleted.
+       * Makefile.in: Re-add h8300-tdep.o dependencies.
+       * h8300-tdep.c: Slightly rearrange type definitions and functions.
+       (struct frame_extra_info): Remove.
+       (struct h8300_frame_cache): Replace locals with differently defined
+       uses_fp member.
+       (h8300_unwind_pc): Simplify.
+       (h8300_unwind_sp): New function.
+       (h8300_unwind_dummy_id): Simplify.
+       (h8300_init_frame_cache): New function.
+       (h8300_is_argument_spill): Use reworked defines for opcode scanning.
+       (h8300_skip_prologue): Rewrite.
+       (h8300_alloc_frame_cache): Remove.
+       (h8300_analyze_frame_setup): Remove.
+       (h8300_analyze_register_saves): Remove.
+       (h8300_analyze_prologue): Rewrite.
+       (h8300_frame_cache): Use h8300_init_frame_cache instead of
+       h8300_alloc_frame_cache.  Use BINWORD instead of constant 4 to
+       accomodate 16 bit mode.  Fix saved_sp and register offset evaluation.
+       (h8300_frame_this_id): Correctly calculate this_id using saved stack
+       pointer instead of base.
+       (h8300_frame_prev_register): Drop needless braces.
+       (h8300_frame_base_address): New function.
+       (h8300_frame_base): New frame_base.
+       (h8300_push_dummy_call): Return correct CFA value.
+       (h8300h_extract_return_value): Fix 8 byte value handling.
+       (h8300_use_struct_convention): New function.
+       (h8300h_use_struct_convention): New function.
+       (h8300h_store_return_value): Fix 8 byte value handling.
+       (h8300_return_value): New function.
+       (h8300h_return_value): New function.
+       (h8300_extract_struct_value_address): Remove deprecated functionality.
+       (h8300_push_dummy_code): Remove.
+       (h8300_gdbarch_init): Replace set_gdbarch_extract_return_value and
+       set_gdbarch_store_return_value calls by set_gdbarch_return_value.
+       Remove calls to set_gdbarch_deprecated_fp_regnum,
+       set_gdbarch_deprecated_extract_struct_value_address,
+       set_gdbarch_deprecated_use_struct_convention and
+       set_gdbarch_push_dummy_code.
+       Add calls to set_gdbarch_unwind_sp and frame_base_set_default.
+       Slightly rearrange code.
+
+2005-04-28  Jim Blandy  <jimb@redhat.com>
+
+       * parse.c (namecopy): Change allocation conventions.
+       (namecopy_size): New variable.
+       (copy_name): Allocate namecopy using xrealloc, instead of assuming
+       it has adequate space allocated to it.
+       (parse_exp_1): Don't try to allocate space for namecopy here.
+
+2005-04-28  Eli Zaretskii  <eliz@gnu.org>
+
+       * cli/cli-cmds.c (edit_command): If symtab->fullname is not yet
+       set, use symtab_to_fullname, instead of trying to do its job.  Use
+       xstrprintf instead of malloc and sprintf.
+
+2005-04-28  Kevin Buettner  <kevinb@redhat.com>
+
+       * remote.c (init_remote_state): Eliminate use of
+       deprecated_register_bytes().
+
+2005-04-28  Andrew Cagney  <cagney@gnu.org>
+
+       * valops.c (check_field): Make buffer a bfd_byte.
+       * value.c (unpack_long, unpack_double, unpack_pointer) 
+       (unpack_field_as_long, modify_field): Ditto.
+       * value.h: Update declarations.
+
+2005-04-28  Paul Brook  <paul@codesourcery.com>
+
+       * exceptions.c (print_flush): Handle NULL gdb_stdout_serial.
+
+2005-04-27  Mark Kettenis  <kettenis@gnu.org>
+
+       * solib-svr4.c (_initialize_svr4_solib)
+       [SVR4_FETCH_LINK_MAP_OFFSETS]: Don't set non-existent variable
+       svr4_legacy_fetch_link_map_offsets.
+
+       * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): Remove function.
+       (sh_gdbarch_init): Remove redundant prototype.
+       * sh-linux-tdep.c: New file.
+       * config/sh/tm-linux.h (sh_linux_svr4_fetch_link_map_offsets):
+       Remove prototype.
+       (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
+       * config/sh/linux.mt (TDEPFILES): Add sh64-tdep.o, remove
+       solib-legacy.o.
+       * Makefile.in (sh-linux-tdep.o): New.
+
+       * solib-svr4.c: Update copyright year.  Include "gdb_assert.h".
+       (SVR4_FETCH_LINK_MAP_OFFSETS): Don't define if not already
+       defined.
+       (legacy_fetch_link_map_offsets): Remove prototype.
+       (fetch_link_map_offsets_gdbarch_data): Remove.
+       (LM_ADDR, LM_NEXT, IGNORE_FIRST_LINK_MAP_ENTRY)
+       (first_link_map_member, open_symbol_file_object, svr4_current_sos)
+       (svr4_fetch_objfile_link_map): Call svr4_fetch_link_map_offsets
+       instead of SVR4_FETCH_LINK_MAP_OFFSETS.
+       (solib_svr4_data): New variable.
+       (struct solib_svr4_ops): New.
+       (solib_svr4_init): New fynction.
+       (legacy_fetch_link_map_offsets, init_fetch_link_map_offsets):
+       Remove functions.
+       (svr4_fetch_link_map_offsets, svr4_have_link_map_offsets): Rewrite
+       using the new `struct solib_svr4_ops'.
+       (_initialize_svr4_solib): Replace registration of per-architecture
+       data.  Add temporary hack to set
+       svr4_legacy_fetch_link_map_offsets if SVR4_FETCH_LINK_MAP_OFFSETS
+       is set.
+       * Makefile.in (solib-svr4.o): Update dependencies.
+
+2005-04-26  Mark Kettenis  <kettenis@gnu.org>
+
+       * configure.tgt (*-*-freebsd*): Set gdb_osabi to
+       GDB_OSABI_FREEBSD_ELF.  Partial fix for PR gdb/1922.
+
+2005-04-26  Andrew Cagney  <cagney@gnu.org>
+
+       * remote.c (remote_open_1): Move "ex"'s declaration to where it is
+       used.
+       (remote_get_thread_local_address): Use throw_error, include a
+       printed string.
+       * linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
+       * dwarf2loc.c (dwarf_expr_tls_address): Ditto.
+       * cli/cli-script.c (script_from_file): Mark up throw_error message.
+       * linespec.c (symtab_from_filename, decode_variable): Ditto.
+
+2005-04-26  Andrew Cagney  <cagney@gnu.org>
+
+       Rename 'struct exception' to 'struct gdb_exception'.
+       * wrapper.c: Update.
+       * varobj.c: Update.
+       * tui/tui-interp.c: Update.
+       * remote.c: Update.
+       * mi/mi-main.c: Update.
+       * mi/mi-interp.c: Update.
+       * linux-thread-db.c: Update.
+       * interps.h: Update.
+       * interps.c: Update.
+       * exceptions.h: Update.
+       * exceptions.c: Update.
+       * dwarf2loc.c: Update.
+       * cli/cli-interp.c: Update.
+       * cli/cli-script.c: Update.
+       * breakpoint.c: Update.
+
 2005-04-25  Mark Mitchell  <mark@codesourcery.com>
 
        * event-loop.c (gdb_select): Program defensively.
This page took 0.028368 seconds and 4 git commands to generate.