* common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 23ca7689bba6c1cd419d8de3ffa5233c22270538..dd25f6af4d9698f9c4f83353edcfae68815bb52f 100644 (file)
@@ -1,3 +1,463 @@
+2013-09-14  Pierre Muller  <muller@sourceware.org>
+           Tom Tromey  <tromey@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
+       mode if operating system doesn't know O_CLOEXEC.
+
+2013-09-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup.
+       * symfile.c (reread_symbols): Move variable obfd_filename to a more
+       inner block.
+
+2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * NEWS: Mention TDB support.
+       * features/s390-tdb.xml: New file.
+       * features/s390-te-linux64.xml: New file.
+       * features/s390x-te-linux64.xml: New file.
+       * features/Makefile (WHICH): Add new tdescs above.
+       (s390-te-linux64-expedite): Set.
+       (s390x-te-linux64-expedite): Set.
+       * features/s390-te-linux64.c: New file (generated).
+       * features/s390x-te-linux64.c: New file (generated).
+       * regformats/s390-te-linux64.dat: New file (generated).
+       * regformats/s390x-te-linux64.dat: New file (generated).
+       * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
+       (HWCAP_S390_TE): Likewise.
+       (S390_TDB_DWORD0_REGNUM): Likewise.
+       (S390_TDB_DWORD0_REGNUM): Likewise.
+       (S390_TDB_ABORT_CODE_REGNUM): Likewise.
+       (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
+       (S390_TDB_ATIA_REGNUM): Likewise.
+       (S390_TDB_R0_REGNUM): Likewise.
+       (S390_TDB_R1_REGNUM): Likewise.
+       (S390_TDB_R2_REGNUM): Likewise.
+       (S390_TDB_R3_REGNUM): Likewise.
+       (S390_TDB_R4_REGNUM): Likewise.
+       (S390_TDB_R5_REGNUM): Likewise.
+       (S390_TDB_R6_REGNUM): Likewise.
+       (S390_TDB_R7_REGNUM): Likewise.
+       (S390_TDB_R8_REGNUM): Likewise.
+       (S390_TDB_R9_REGNUM): Likewise.
+       (S390_TDB_R10_REGNUM): Likewise.
+       (S390_TDB_R11_REGNUM): Likewise.
+       (S390_TDB_R12_REGNUM): Likewise.
+       (S390_TDB_R13_REGNUM): Likewise.
+       (S390_TDB_R14_REGNUM): Likewise.
+       (S390_TDB_R15_REGNUM): Likewise.
+       (S390_NUM_REGS): Increase.
+       (S390_IS_TDBREGSET_REGNUM): New macro.
+       (s390_regmap_tdb): Declare.
+       (s390_sizeof_tdbregset): Define.
+       (tdesc_s390_te_linux64): Declare.
+       (tdesc_s390x_te_linux64): Likewise.
+       * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
+       "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
+       (s390_regmap_tdb): New regmap.
+       (s390_supply_tdb_regset): New function.
+       (s390_tdb_regset): New regset.
+       (s390_linux64v2_regset_sections): Add TDB regset to list.
+       (s390x_linux64v2_regset_sections): Likewise.
+       (s390_regset_from_core_section): Recognize TDB core note section.
+       (s390_core_read_description): If HWCAP indicates TE support,
+       select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
+       (s390_gdbarch_init): Handle TDB regset.
+       (_initialize_s390_tdep): Initialize new tdescs.
+       * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
+       (have_regset_tdb): New variable.
+       (s390_native_supply): Support register invalidation.
+       (fetch_regset): Invalidate registers if ptrace yields ENODATA.
+       (check_regset): Treat ENODATA as "regset exists".
+       (s390_linux_fetch_inferior_registers): Add TDB.
+       (s390_read_description): Check for TDB existence and select
+       appropriate tdesc.
+       * gdbserver/Makefile.in (clean): Add removal of new makefile
+       targets.
+       (s390-te-linux64.c): New makefile target.
+       (s390x-te-linux64.c): Likewise.
+       * gdbserver/configure.srv (srv_regobj): Append new objects
+       s390-te-linux64.o and s390x-te-linux64.o.
+       (srv_xmlfiles): Append new files s390-te-linux64.xml,
+       s390x-te-linux64.xml, and s390-tdb.xml.
+       * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
+       declaration.
+       (tdesc_s390_te_linux64): Likewise.
+       (init_registers_s390x_te_linux64): Likewise.
+       (tdesc_s390x_te_linux64): Likewise.
+       (s390_check_regset): Treat ENODATA as "regset exists".
+       (s390_arch_setup): Add TDB regset support.
+       (initialize_low_arch): Initialize registers for new tdescs.
+
+2013-09-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
+       (S390_IS_FPREGSET_REGNUM): New macro.
+       * s390-tdep.c (s390_dwarf_regmap): Make const.
+       (regnum_is_gpr_full): New function for replacing repeated code.
+       (s390_pseudo_register_name): Use it.
+       (s390_pseudo_register_type): Likewise.
+       (s390_pseudo_register_read): Likewise.
+       (s390_pseudo_register_write): Likewise.
+       (s390_unwind_pseudo_register): Likewise.
+       (s390_regmap_gregset): New format for regmap.
+       (s390x_regmap_gregset): Likewise.
+       (s390_regmap_fpregset): Likewise.
+       (s390_regmap_upper): Likewise.
+       (s390_regmap_last_break): Likewise.
+       (s390_regmap_system_call): Likewise.
+       (s390_supply_regset): Adjust to new regmap format.
+       (s390_collect_regset): Likewise.
+       * s390-nat.c (s390_native_supply): Adjust to new regmap format.
+       (s390_native_collect): Likewise.
+       (supply_gregset): Likewise.
+       (fill_gregset): Likewise.
+       (supply_fpregset): Likewise.
+       (fill_fpregset): Likewise.
+       (fetch_regset): Likewise.
+       (store_regset): Likewise.
+       (s390_linux_fetch_inferior_registers): Likewise.
+       (s390_linux_fetch_inferior_registers): Likewise.
+
+2013-09-12  Andrew Pinski  <apinski@cavium.com>
+
+       * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
+
+2013-09-10  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
+
+2013-09-09  Andrew Burgess  <aburgess@broadcom.com>
+
+       * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
+
+2013-09-06  Pedro Alves <palves@redhat.com>
+
+       * remote-sim.c (dump_mem, gdbsim_fetch_register)
+       (gdbsim_store_register, gdbsim_kill, gdbsim_load)
+       (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
+       (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
+       (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
+       gdb_stdlog.
+
+2013-09-06  Pedro Alves  <palves@redhat.com>
+
+       * remote-sim.c (dump_mem): Constify buf parameter.
+       gdbsim_xfer_inferior_memory): Rename to ...
+       (gdbsim_xfer_memory): ... this.  Adjust interface as
+       target_xfer_partial helper.
+       (gdbsim_xfer_partial): New function.
+       (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
+       Install a to_xfer_partial hook.  Send output to gdb_stdlog.
+
+2013-09-06  Pedro Alves  <palves@redhat.com>
+
+       * remote-sim.c (gdbsim_xfer_inferior_memory): Use
+       host_address_to_string, and send debug output to gdb_stdlog.
+
+2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
+
+       * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
+       * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
+       gdb_target_obs for cris target.
+       * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
+       (cris_gdbarch_init): Move calls to
+       set_gdbarch_fetch_tls_load_module_address and
+       set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
+       Add call to gdbarch_init_osabi.
+       * cris-linux-tdep.c: New file.
+       * cris-tdep.h: New file.
+
+2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
+
+       * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
+       to deprecated_init_ui_hook.
+
+2013-09-06  Andrew Burgess  <aburgess@broadcom.com>
+
+       * cli/cli-interp.c (_initialize_cli_interp): Add a
+       command_loop_proc to interp_procs.
+       * event-top.c (cli_command_loop): Change signature to match
+       interp_command_loop_ftype.
+       * event-top.h (cli_command_loop): Same.
+       * interps.c (interp_new): Require every interpreter to have a
+       command_loop_proc.
+       (current_interp_command_loop): Just call the command_loop_proc on
+       the current interpreter.
+       * tui/tui-interp.c (_initialize_tui_interp): Add a
+       command_loop_proc to interp_procs.
+
+2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
+
+       * cris-tdep.c (cris_gdbarch_init): Add call to
+       get_gdbarch_fetch_tls_load_module_address.
+
+2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
+
+       * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
+       (cris_elf_gregset_t): Rename from elf_gregset_t.
+       (crisv32_elf_gregset_t): Adjust.
+       (cris_supply_gregset, fetch_core_registers): Adjust.
+
+2013-09-06  Ricard Wanderlof  <ricardw@axis.com>
+
+       * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
+
+2013-09-05  Andrew Burgess  <aburgess@broadcom.com>
+
+       * defs.h (deprecated_command_loop_hook): Remove, including
+       references in comments.
+       * interps.c (current_interp_command_loop): No longer use
+       deprecated_command_loop_hook.
+       (clear_interpreter_hooks): Remove deprecated_command_loop_hook
+       setup.
+       * top.c (deprecated_command_loop_hook): Remove.
+
+2013-09-05  Pedro Alves  <palves@redhat.com>
+
+       * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
+       local is now int instead of ULONGEST.  Print it with %d
+       instead of paddress.
+
+2013-09-05  Tristan Gingold  <gingold@adacore.com>
+
+       * MAINTAINERS: Remove avr maintainership.
+
+2013-09-05  Pedro Alves  <palves@redhat.com>
+
+       * findvar.c (value_of_register): Rework in terms of
+       value_of_register_lazy.
+
+2013-09-05  Muhammad Bilal  <mbilal@codesourcery.com>
+
+       * symfile.c (add_symbol_file_command): Remove trailing
+        whitespaces and blank line after comment.
+
+2013-09-05  Pedro Alves  <palves@redhat.com>
+
+       * tui/tui-regs.c (tui_register_format): Don't look at the
+       register's name here.  Return string representing register
+       value instead of storing it in the data element.
+       (tui_get_register): Compare register string representations
+       instead of register value states and contents.
+
+2013-09-05  Pedro Alves  <palves@redhat.com>
+
+       PR tui/15933
+       * tui/tui-regs.c (tui_show_registers): Show registers of the
+       selected frame, not the current frame.
+
+2013-09-05  Ricard Wanderlof  <ricardw@axis.com>
+
+       * MAINTAINERS (Write After Approval): Add myself to the list.
+
+2013-09-04  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
+       (queue_and_load_dwo_tu): New function.
+       (lookup_dwo_signatured_type): Set per_cu.tu_read.
+       (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
+       Make dependent_cu optional.
+       (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
+       and an older .gdb_index is in use, queue and load all its TUs too.
+
+2013-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
+       * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
+       variable search_flags.
+       * defs.h (OPF_DISABLE_REALPATH): Rename to ...
+       (OPF_RETURN_REALPATH): ... here.
+       * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
+       * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
+       call.  Twice.
+       * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
+       openp call.
+       * solib.c (solib_find): Likewise.  Four times.
+       * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
+       in the function comment and for the realpath_fptr variable.
+       (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
+       (find_and_open_source): Likewise.  Twice.
+       * symfile.c (symfile_bfd_open): Likewise, also twice.
+
+2013-09-04  Doug Evans  <dje@google.com>
+
+       * progspace.c (save_current_space_and_thread): Remove unnecessary
+       call to save_current_inferior.
+
+2013-09-04  Andrew Burgess  <aburgess@broadcom.com>
+
+       * sh64-tdep.c (sh64_do_register): Return after printing message
+       about unavailable register contents.
+
+2013-09-04  Muhammad Bilal  <mbilal@codesourcery.com>
+            Pedro Alves  <palves@redhat.com>
+
+       * symfile.c (add_symbol_file_command): Error out on unknown
+        option.  Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
+        options and collapse into single conditional branch.
+
+2013-09-03  Luis Machado  <lgustavo@codesourcery.com>
+
+       * inf-child.c (inf_child_follow_fork) New parameter
+       detach_fork.
+       * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
+       * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
+       * inferior.h (detach_fork): Remove.
+       * infrun.c (detach_fork): Adjust comment and make it
+       static.
+       (follow_fork): Pass detach_fork parameter to
+       target_follow_fork.
+       * linux-nat.c (linux_child_follow_fork): New parameter
+       detach_fork.
+       * target.c (target_follow_fork): New parameter detach_fork.
+       Pass detach_fork as parameter and print its value.
+       * target.h (struct target_ops) <to_follow_fork>: New int
+       parameter.
+       (target_follow_fork): New parameter detach_fork.
+
+2013-09-03  Joel Brobecker  <brobecker@adacore.com>
+
+       * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
+       Replace sec->bfd by sec->the_bfd_section->owner.
+
+2013-09-03  Yao Qi  <yao@codesourcery.com>
+
+       * linux-tdep.c (linux_is_uclinux): New function.  Code moved
+       from linux_has_shared_address_space.
+       (linux_has_shared_address_space): Call linux_is_uclinux.
+       * linux-tdep.h (linux_is_uclinux): Declare.
+       * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
+       linux_is_uclinux.
+
+2013-09-03  Yao Qi  <yao@codesourcery.com>
+
+       * config/djgpp/fnchange.lst: Remove entry of
+       i386-interix-nat.c and i386-interix-tdep.c.
+       * configure.ac: Remove '*-*-interix*'.
+       * configure: Re-generated.
+       * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
+       * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
+       obsolete comments.
+       * osabi.c (gdb_osabi_names): Remove "Interix".
+
+2013-09-03  Yao Qi  <yao@codesourcery.com>
+
+       * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
+
+2013-09-02  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record.h (record_print_flag) <record_print_src_line,
+       record_print_insn_range>: Rename into ...
+       (record_print_flag) <record_print_src_line,
+       record_print_insn_range>: ... this.  Update all users.
+
+2013-09-02  Pierre Muller  <muller@sourceware.org>
+
+       * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
+       error code.
+
+2013-09-02  Pierre Muller  <muller@sourceware.org>
+
+       * windows-nat.c (windows_xfer_memory): Fix compilation failure
+       by use of plongest function.
+
+2013-09-02  Tristan Gingold  <gingold@adacore.com>
+
+       * NEWS: Add entry mentioning support for native Windows x64
+       SEH data.
+
+       * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
+       "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
+       (struct amd64_windows_frame_cache): New struct.
+       (amd64_windows_w2gdb_regnum): New global.
+       (pc_in_range, amd64_windows_frame_decode_epilogue)
+       (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
+       (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
+       (amd64_windows_frame_this_id): New functions.
+       (amd64_windows_frame_unwind): New static global.
+       (amd64_windows_skip_prologue): New function.
+       (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
+       with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
+       with amd64_windows_skip_prologue.
+
+2013-08-30  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.6.1 released.
+
+2013-08-30  Pedro Alves  <palves@redhat.com>
+
+       * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
+       SRC_AND_LOC.
+
+2013-08-30  Pedro Alves  <palves@redhat.com>
+
+       * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
+       warning text.
+
+2013-08-30  Pedro Alves  <palves@redhat.com>
+
+       * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
+       Adjust arguments to print_stack_frame.
+
+2013-08-30  Pedro Alves  <palves@redhat.com>
+
+       * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
+
+2013-08-30  Pedro Alves  <palves@redhat.com>
+
+       * frame.h (show_and_print_stack_frame): Delete declaration.
+
+2013-08-30  Phil Muldoon  <pmuldoon@redhat.com>
+
+       PR python/15461
+
+       * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
+       (archpy_name): Check for valid architecture.
+       (archpy_disassemble): Ditto.
+
+2013-08-29  Joel Brobecker  <brobecker@adacore.com>
+
+       * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
+       instead of "long long" in call to ptrace64.
+
+2013-08-29  Andrew Burgess  <aburgess@broadcom.com>
+
+       * mi/mi-interp.c (mi_command_loop): Change signature to match
+       interp_command_loop_ftype.
+       (mi1_command_loop): Remove.
+       (mi2_command_loop): Remove.
+       (mi3_command_loop): Remove.
+       (mi_interpreter_resume): Remove setting of
+       deprecated_command_loop_hook.
+       (_initialize_mi_interp): Set mi_command_loop as the command loop
+       callback.
+
+2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
+
+       * valops.c (do_search_struct_field): Pass v2 instead of base_type to
+       value_type.
+
+2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
+
+       * value.c (allocate_value_contents): Make static.
+       * value.h (allocate_value_contents): Remove prototype.
+
+2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
+
+       * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
+       of assembling value via allocate_value_lazy and attribute setter.
+       * findvar.c (default_read_var_value): Use value_at_lazy instead of
+       assembling value via allocate_value_lazy and attribute setter.
+       * valops.c (do_search_struct_field): Use value_at_lazy instead of
+       assembling value via allocate_value_lazy and attribute setter.
+
+2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
+
+       * value.c (value_from_contents_and_address): Replace allocate_value and
+       memcpy with value_from_contents.
+
 2013-08-29  Phil Muldoon  <pmuldoon@redhat.com>
 
        * python/py-framefilter.c (py_print_frame): Remove usage of
This page took 0.030067 seconds and 4 git commands to generate.