X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=f2077371454e3e1e59acd847498dea4bb8ae031e;hb=4390d890b50a4796599cc23f91dfab6e7c33c5e4;hp=ea013235ef370abe2568047fd5d4879660ac64dc;hpb=35ab155d372b1cf4d57a889acacd3913fbc9d793;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ea013235ef..f207737145 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,963 @@ +2013-09-17 Doug Evans + + * dwarf2read.c: Move definitions of complaint functions to after + forward declarations of local functions. + +2013-09-17 Muhammad Waqas + Pedro Alves + + PR gdb/11568 + * breakpoint.c (remove_threaded_breakpoints): New function. + (_initialize_breakpoint): Attach remove_threaded_breakpoints + as thread_exit observer. + +2013-09-17 Pedro Alves + + PR gdb/15911 + * ada-tasks.c (task_command_1): Adjust call to print_stack_frame. + * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): + * corelow.c (core_open): + * frame.h (print_stack_frame, print_frame_info): New + 'set_current_sal' parameter. + * infcmd.c (finish_command, kill_command): Adjust call to + print_stack_frame. + * inferior.c (inferior_command): Likewise. + * infrun.c (normal_stop): Likewise. + * linux-fork.c (linux_fork_context): Likewise. + * record-full.c (record_full_goto_entry, record_full_restore): + Likewise. + * remote-mips.c (common_open): Likewise. + * stack.c (print_stack_frame): New 'set_current_sal' parameter. + Use it. + (print_frame_info): New 'set_current_sal' parameter. Set the last + displayed sal depending on the new paremeter instead of looking at + print_what. + (backtrace_command_1, select_and_print_frame, frame_command) + (current_frame_command, up_command, down_command): Adjust call to + print_stack_frame. + * thread.c (print_thread_info, restore_selected_frame) + (do_captured_thread_select): Adjust call to print_stack_frame. + * tracepoint.c (tfind_1): Likewise. + * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames) + (mi_cmd_stack_info_frame): Likewise. + * mi/mi-interp.c (mi_on_normal_stop): Likewise. + * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise. + +2013-09-16 Sergio Durigan Junior + + * value.c (isvoid_internal_fn): Replace "parameter" with + "argument". + +2013-09-16 Stan Shebs + + * README: Update references to writing code for GDB. + * configure.ac (build_warnings): Remove obsolete comment. + * configure: Regenerate. + * gdbarch.sh: Remove references to gdbint.texinfo. + * gdbarch.h: Regenerate. + * gdbtypes.c (objfile_type): Remove comments referencing internals + manual and D10V. + +2013-09-16 Sergio Durigan Junior + + * NEWS: Mention new convenience function $_isvoid. + * value.c (isvoid_internal_fn): New function. + (_initialize_values): Add new convenience function $_isvoid. + +2013-09-16 Pierre Muller + + * arm-linux-tdep.c: Add "elf/common.h" header. + Remove AT_HWCAP macro definintion as it is provided in + added include file. + * s390-tdep.c: Remove system header + Add "elf/common.h" header for AT_HWCAP definition. + (s390_core_read_description): Use correct CORE_ADDR + for hwcap local variable used as third parameter + of function target_auxv_search. + +2013-09-14 Pierre Muller + Tom Tromey + Pedro Alves + + * 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 + + Code cleanup. + * symfile.c (reread_symbols): Move variable obfd_filename to a more + inner block. + +2013-09-13 Andreas Arnez + + * 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", , + "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 + + * 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 + + * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs. + +2013-09-10 Andreas Arnez + + * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o. + +2013-09-09 Andrew Burgess + + * top.c (quit_confirm): Remove use of deprecated_init_ui_hook. + +2013-09-06 Pedro Alves + + * 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 + + * 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 + + * remote-sim.c (gdbsim_xfer_inferior_memory): Use + host_address_to_string, and send debug output to gdb_stdlog. + +2013-09-06 Ricard Wanderlof + + * 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 + + * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring + to deprecated_init_ui_hook. + +2013-09-06 Andrew Burgess + + * 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 + + * cris-tdep.c (cris_gdbarch_init): Add call to + get_gdbarch_fetch_tls_load_module_address. + +2013-09-06 Ricard Wanderlof + + * 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 + + * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4] + +2013-09-05 Andrew Burgess + + * 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 + + * 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 + + * MAINTAINERS: Remove avr maintainership. + +2013-09-05 Pedro Alves + + * findvar.c (value_of_register): Rework in terms of + value_of_register_lazy. + +2013-09-05 Muhammad Bilal + + * symfile.c (add_symbol_file_command): Remove trailing + whitespaces and blank line after comment. + +2013-09-05 Pedro Alves + + * 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 + + 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 + + * MAINTAINERS (Write After Approval): Add myself to the list. + +2013-09-04 Doug Evans + + * 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 + + 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 + + * progspace.c (save_current_space_and_thread): Remove unnecessary + call to save_current_inferior. + +2013-09-04 Andrew Burgess + + * sh64-tdep.c (sh64_do_register): Return after printing message + about unavailable register contents. + +2013-09-04 Muhammad Bilal + Pedro Alves + + * 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 + + * 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) : New int + parameter. + (target_follow_fork): New parameter detach_fork. + +2013-09-03 Joel Brobecker + + * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses): + Replace sec->bfd by sec->the_bfd_section->owner. + +2013-09-03 Yao Qi + + * 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 + + * 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 + + * arch-utils.c: Fix typo in the comment to gdbarch_update_p. + +2013-09-02 Markus Metzger + + * record.h (record_print_flag) : Rename into ... + (record_print_flag) : ... this. Update all users. + +2013-09-02 Pierre Muller + + * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY + error code. + +2013-09-02 Pierre Muller + + * windows-nat.c (windows_xfer_memory): Fix compilation failure + by use of plongest function. + +2013-09-02 Tristan Gingold + + * 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 + + GDB 7.6.1 released. + +2013-08-30 Pedro Alves + + * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of + SRC_AND_LOC. + +2013-08-30 Pedro Alves + + * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change + warning text. + +2013-08-30 Pedro Alves + + * 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 + + * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'. + +2013-08-30 Pedro Alves + + * frame.h (show_and_print_stack_frame): Delete declaration. + +2013-08-30 Phil Muldoon + + 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 + + * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t" + instead of "long long" in call to ptrace64. + +2013-08-29 Andrew Burgess + + * 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 + + * valops.c (do_search_struct_field): Pass v2 instead of base_type to + value_type. + +2013-08-29 Sanimir Agovic + + * value.c (allocate_value_contents): Make static. + * value.h (allocate_value_contents): Remove prototype. + +2013-08-29 Sanimir Agovic + + * 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 + + * value.c (value_from_contents_and_address): Replace allocate_value and + memcpy with value_from_contents. + +2013-08-29 Phil Muldoon + + * python/py-framefilter.c (py_print_frame): Remove usage of + PyString_AsString. Use python_string_to_host_string instead. + Refactor function to work with a string as a new allocation + instead of a pointer. + (py_print_frame): Ditto. + * python/lib/gdb/frames.py (return_list): Cain iterators together + instead of adding them as a list. + (_sort_list): Call return_list, and remove duplicate code. + (execute_frame_filters): Convert iterator to a list with list(). + * python/lib/gdb/command/frame_filters.py + (SetFrameFilterPriority._set_filter_priority): Convert priority + attribute to an integer. + * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define + wrapper function __next__. + * python/lib/gdb/FrameDecorator.py: If basestring not defined, + define as "str". + +2013-08-29 Phil Muldoon + + PR python/15752 + * python/py-framefilter.c (apply_frame_filter): Check + gdb_python_initialized. Exit if the Python frame-filter code + cannot be initialized. + +2013-08-29 Phil Muldoon + + PR cli/15842 + * top.c (print_gdb_version): Remove erroneous newline after help + text. + +2013-08-29 Yao Qi + + * varobj.c (install_dynamic_child): Remove trailing space. + Add one blank line after variable declaration. + +2013-08-28 Jan Kratochvil + + PR gdb/15415 + * corefile.c (get_exec_file): Use exec_filename. + * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment. + * exec.c (exec_close): Free EXEC_FILENAME. + (exec_file_attach): New variable canonical_pathname. Use + OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set + EXEC_FILENAME. + * exec.h (exec_filename): New. + * inferior.c (print_inferior, inferior_command): Use + PSPACE_EXEC_FILENAME. + * mi/mi-main.c (print_one_inferior): Likewise. + * progspace.c (clone_program_space, print_program_space): Likewise. + * progspace.h (struct program_space): New field pspace_exec_filename. + * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable + realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it. + +2013-08-28 Will Newton + + * common/linux-ptrace.c: Include stdint.h unconditionally. + +2013-08-28 Jan Kratochvil + + Code cleanup. + * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST. + +2013-08-28 Yao Qi + Pedro Alves + + * event-top.c (gdb_setup_readline): Call stderr_fileopen + instead of stdio_fileopen. + * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered. + .Call stderr_fileopen instead of stdio_fileopen. + * ui-file.c [__MINGW32__] (stderr_file_write): New function. + [__MINGW32__] (stderr_file_fputs): New function. + (stderr_fileopen): New function. + * ui-file.h (stderr_fileopen): Declare. + +2013-08-27 Doug Evans + + * dwarf2read.c (struct dwarf2_cu): Tweak comment. + (struct dwarf2_per_cu_data): Ditto. + (maybe_queue_comp_unit): Delete forward decl. Add comment. + (process_imported_unit_die): Ditto. + (follow_die_sig_1): Simplify assert. + +2013-08-27 Pedro Alves + + * windows-nat.c (windows_xfer_memory): Adjust prototype to follow + xfer_partial's interface. Return TARGET_XFER_E_IO on error. + (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to + windows_xfer_memory directly. + (init_windows_ops): Don't install a deprecated_xfer_memory method. + +2013-08-27 Pedro Alves + + * darwin-nat.c (darwin_xfer_memory): Delete. + (_initialize_darwin_inferior): Don't install a + deprecated_xfer_memory method. + +2013-08-27 Pedro Alves + Yao Qi + + * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype. + (parse_no_frames_option): Remove. + (mi_cmd_stack_list_locals): Handle --skip-unavailable. + (mi_cmd_stack_list_args): Adjust. + (mi_cmd_stack_list_variables): Handle --skip-unavailable. + (list_arg_or_local): Add new parameter 'skip_unavailable'. Return + early if SKIP_UNAVAILABLE is true and ARG->val is unavailable. + Caller update. + (list_args_or_locals): New parameter 'skip_unavailable'. + Handle it. + * valprint.c (scalar_type_p): Rename to ... + (val_print_scalar_type_p): ... this. Make extern. + (val_print, value_check_printable): Adjust. + * valprint.h (val_print_scalar_type_p): Declare. + * value.c (value_entirely_unavailable): New function. + * value.h (value_entirely_unavailable): Declare. + + * NEWS: Mention the new option "--skip-unavailable" to MI + commands '-stack-list-locals', '-stack-list-arguments' and + '-stack-list-variables'. + +2013-08-27 Yao Qi + + * mi/mi-cmd-stack.c (parse_no_frames_option): Remove. + (mi_cmd_stack_list_args): Use mi_getopt_silent to handle + options. + * mi/mi-getopt.c (mi_getopt): Remove. + (mi_getopt_1): Renamed from mi_getopt. Add one parameter + 'error_on_unknown'. + (mi_getopt): Call mi_getopt_1. + (mi_getopt_silent): New. + * mi/mi-getopt.h (mi_getopt_silent): Declare. + +2013-08-26 Doug Evans + + PR symtab/15885 + * dwarf2read.c (dw2_dump): Print some minimal information indicating + .gdb_index is in use. + * symfile.c (reread_symbols): Reset objfile->sf. + + * NEWS: Document "mt print objfiles" now takes optional regexp. + * symmisc.c (maintenance_print_objfiles): Argument is now an optional + regexp of objfiles to print. + (_initialize_symmisc): Update doc string for "mt print objfiles". + + * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of + missing debug info checks. + +2013-08-26 Raunaq Bathija + Ulrich Weigand + + * xcoffread.c (arrange_linetable): Add fix to correctly handle + line tables generated by XLC compiled binaries. + +2013-08-23 Doug Evans + + * symmisc.c (dump_symtab): Delete prototype. + (dump_msymbols, dump_objfile): Ditto. + (maintenance_info_symtabs): Mark as dont_repeat. + (_initialize_symmisc): Improve doc string for "mt info symtabs". + + * elfread.c (elf_symfile_read): Move "Done reading minimal symbols" + debugging printf to better location. + +2013-08-23 Pedro Alves + + * target.c (target_read_live_memory): Change type of 'ret' local + to LONGEST. + +2013-08-23 Pedro Alves + + * remote.c (remote_write_bytes_aux, remote_write_bytes) + (remote_read_bytes): Change return type to LONGEST, and adjust to + return a target_xfer_error on error. + (remote_xfer_memory): Delete. + (remote_flash_write): Change type of 'ret' local to LONGEST. + (remote_xfer_partial, remote_xfer_partial): Adjust. + (init_remote_ops): Don't install a deprecated_xfer_memory hook. + +2013-08-23 Pierre Muller + + ARI fix: Push # directives to start of line. + * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied. + +2013-08-12 Muhammad Waqas + + PR gdb/15501 + * breakpoint.c (enable_command, disable_command): Iterate over + all specified breakpoint locations. + +2013-08-22 Luis Machado + + * common/linux-ptrace.c (linux_fork_to_function): Push # + directives to the start of the line. + (linux_check_ptrace_features): Fix warning message to use + the "_" markup. + +2013-08-22 Luis Machado + + * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and + nat/linux-waitpid.h. + (linux-waitpid.o): New object file rule. + * common/linux-ptrace.c: Include nat/linux-waitpid.h. + (current_ptrace_options): Moved from linux-nat.c. + (linux_ptrace_test_ret_to_nx): Use type casts for ptrace + parameters. + (linux_fork_to_function): New function. + (linux_grandchild_function): Likewise. + (linux_child_function): Likewise. + (linux_check_ptrace_features): New function, heavily + based on linux-nat.c:linux_test_for_tracefork. + (linux_enable_event_reporting): New function. + (ptrace_supports_feature): Likewise. + (linux_supports_tracefork): Likewise. + (linux_supports_traceclone): Likewise. + (linux_supports_tracevforkdone): Likewise. + (linux_supports_tracesysgood): Likewise. + * common/linux-ptrace.h (HAS_NOMMU): Moved from + gdbserver/linux-low.c. + (linux_enable_event_reporting): New declaration. + (linux_supports_tracefork): Likewise. + (linux_supports_traceclone): Likewise. + (linux_supports_tracevforkdone): Likewise. + (linux_supports_tracesysgood): Likewise. + * config.in (PTRACE_TYPE_ARG4): Regenerate. + * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o. + * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. + * config/arm/linux.mh (NATDEPFILES): Likewise. + * config/i386/linux.mh (NATDEPFILES): Likewise. + * config/i386/linux64.mh (NATDEPFILES): Likewise. + * config/ia64/linux.mh (NATDEPFILES): Likewise. + * config/m32r/linux.mh (NATDEPFILES): Likewise. + * config/m68k/linux.mh (NATDEPFILES): Likewise. + * config/mips/linux.mh (NATDEPFILES): Likewise. + * config/pa/linux.mh (NATDEPFILES): Likewise.. + * config/powerpc/linux.mh (NATDEPFILES): Likewise.. + * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. + * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. + * config/sparc/linux.mh (NATDEPFILES): Likewise. + * config/sparc/linux64.mh (NATDEPFILES): Likewise. + * config/tilegx/linux.mh (NATDEPFILES): Likewise. + * config/xtensa/linux.mh (NATDEPFILES): Likewise. + * configure.ac (AC_CACHE_CHECK): Add void * to the list of + ptrace's 4th argument's types. + Check the type of PTRACE_TYPE_ARG4. + * configure: Regenerate. + * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h. + (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h. + (linux_supports_tracefork_flag): Remove. + (linux_supports_tracesysgood_flag): Likewise. + (linux_supports_tracevforkdone_flag): Likewise. + (current_ptrace_options): Moved to + common/linux-ptrace.c. + (linux_tracefork_child): Remove. + (my_waitpid): Remove. + (linux_test_for_tracefork): Renamed to + linux_check_ptrace_features and moved to common/linux-ptrace.c. + (linux_test_for_tracesysgood): Remove. + (linux_supports_tracesysgood): Remove. + (linux_supports_tracefork): Remove. + (linux_supports_tracevforkdone): Remove. + (linux_enable_tracesysgood): Remove. + (linux_enable_event_reporting): Remove. + (linux_init_ptrace): New function. + (linux_child_post_attach): Call linux_init_ptrace. + (linux_child_post_startup_inferior): Call linux_init_ptrace. + (linux_child_follow_fork): Call linux_supports_tracefork + and linux_supports_tracevforkdone. + (linux_child_insert_fork_catchpoint): Call + linux_supports_tracefork. + (linux_child_insert_vfork_catchpoint): Likewise. + (linux_child_set_syscall_catchpoint): Call + linux_supports_tracesysgood. + (lin_lwp_attach_lwp): Call linux_supports_tracefork. + * nat/linux-nat.h: New file. + * nat/linux-waitpid.c: New file. + * nat/linux-waitpid.h: New file. + +2013-08-22 Samuel Bronson + + ARM Linux support for `catch syscall'. + * syscalls/arm-linux.py: New file. + * syscalls/arm-linux.xml: Likewise. + * arm-linux-tdep.c (arm_linux_get_syscall_number): New function. + (arm_linux_init_abi): Register the new function and syscall xml file. + * data-directory/Makefile.in: Install the new syscall xml file. + * NEWS: Brag about this. + +2013-08-22 Pedro Alves + + PR gdb/15871 + * corefile.c (target_xfer_memory_error): New function. + (memory_error): Defer EIO to target_memory_error. + (read_memory): Use target_xfer_partial, and handle finer-grained + target xfer errors. + * target.c (target_xfer_error_to_string): New function. + (memory_xfer_partial_1): If memory is known to be + unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1. + (target_xfer_partial): Make extern. + * target.h (enum target_xfer_error): New enum. + (target_xfer_error_to_string): Declare function. + (target_xfer_partial): Declare function. + (struct target_ops) : Adjust describing comment. + +2013-08-22 Alan Modra + + * configure.host: Support powerpc64le-linux and powerpcle-linux hosts. + * configure.tgt: Likewise as targets. + +2013-08-20 Doug Evans + + * buildsym.c (subfile_stack): Move here from buildsym.h. + (pending_macros): Ditto. + (get_macro_table): New function. + (buildsym_init): Initialize subfile_stack. + * coffread.c (type_vector,type_vector_length): Moved here from + buildsym.h. + (INITIAL_TYPE_VECTOR_LENGTH): Ditto. + (coff_symtab_read): Use it. + * dbxread.c (read_ofile_symtab): Delete init of subfile_stack. + * dwarf2read.c (macro_start_file): Replace uses of pending_macros + with call to get_macro_table. + * stabsread.c (type_vector,type_vector_length): Moved here from + buildsym.h. + (INITIAL_TYPE_VECTOR_LENGTH): Ditto. + * buildsym.h (get_macro_table): Declare. + +2013-08-20 Tom Tromey + + * dbxread.c (record_minimal_symbol): Make 'name' argument const. + Update. + (read_dbx_dynamic_symtab): Make 'name' const. Remove casts. + +2013-08-20 Doug Evans + + * blockframe.c: Remove #include "psymtab.h". + * cp-support.c: Ditto. + * source.c: Ditto. + * stack.c: Ditto. + +2013-08-20 Tom Tromey + + PR python/15816: + * exceptions.h (return_mask): Now an enum. + (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now + enum constants. + +2013-08-20 Tom Tromey + + * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use + get_objfile_arch. + * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache) + (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch. + * jit.c (jit_object_close_impl): Update. + * jv-lang.c (get_dynamics_objfile): Update. + * linespec.c (add_minsym): Use get_dynamics_objfile. + * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field. + (allocate_objfile): Don't initialize 'gdbarch' field. + (get_objfile_arch): Update. + * objfiles.h (struct objfile_per_bfd_storage) : New field, + moved from... + (struct objfile) : ... here. Remove. + * stap-probe.c (stap_can_evaluate_probe_arguments): Use + get_objfile_arch. + * symfile.c (init_entry_point_info): Use get_objfile_arch. + +2013-08-20 Alan Modra + + * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half + for IBM long double nan and inf. + (floatformat_is_negative, floatformat_classify, + floatformat_mantissa): Similarly. + (floatformat_ieee_single, floatformat_ieee_double, + floatformat_ieee_quad, floatformat_arm_ext, + floatformat_ia64_spill): Delete unused vars. + (_initialize_doublest): Delete unused function. + * gdbtypes.c (floatformats_ibm_long_double): Use new big- and + little-endian variants of floatformat_ibm_long_double. + +2013-08-19 Luis Machado + + * Makefile.in (SFILES): Remove common/target-common.c and + add target/waitstatus.c. + (HFILES_NO_SRCDIR): Remove common/target-common.h and add + target/resume.h, target/wait.h and target/waitstatus.h. + (COMMON_OBS): Remove target-common.o and add + waitstatus.o. + (target-common.o): Remove. + (waitstatus.o): New target object file. + * common/target-common.c: Move contents to + target/waitstatus.c and remove. + * common/target-common.h: Move contents to other files and + remove. + (enum resume_kind: Move to target/resume.h. + (TARGET_WNOHANG): Move to target/wait.h. + (enum target_waitkind): Move to target/waitstatus.h. + (struct target_waitstatus): Likewise. + * target.h: Do not include target-common.h and + include target/resume.h, target/wait.h and + target/waitstatus.h. + * target/resume.h: New file. + * target/wait.h: New file. + * target/waitstatus.h: New file. + * target/waitstatus.c: New file. + +2013-08-19 Pedro Alves + + * linux-nat.c (linux_test_for_tracefork) + (linux_test_for_tracesysgood, linux_child_follow_fork) + (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals. + (linux_nat_wait_1): Extend comment. + (linux_async_pipe): Add comment. + +2013-08-15 Kevin Buettner + + * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum. + (RL78_PC_REGNUM): Move to list of pseudo-register enums. + (rl78_register_type, rl78_register_name, rl78_register_reggroup_p): + Update to account for fact that PC is now a pseudo-register. + (rl78_pseudo_register_write, rl78_pseudo_register_read): Add + cases for RL78_PC_REGNUM. + 2013-08-15 Muhammad Bilal PR cli/15841 @@ -2709,10 +3669,10 @@ 2013-05-20 Tom Tromey - * python/py-event.h (evpy_emit_event): Use - CPYCHECKER_STEALS_REFERENCE_TO_ARG. - * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): - New macro. + * python/py-event.h (evpy_emit_event): Use + CPYCHECKER_STEALS_REFERENCE_TO_ARG. + * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): + New macro. 2013-05-20 Tom Tromey @@ -2999,7 +3959,7 @@ 2013-05-13 Tom Tromey - PR gdb/15338: + PR gdb/15338: * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the ranges section has been read. @@ -4854,7 +5814,7 @@ 2013-04-01 Jiong Wang * NEWS: Mention TILE-Gx in "New native configurations" and - "New targets" sections. + "New targets" sections. 2013-04-01 Doug Evans @@ -6726,7 +7686,7 @@ * v850-tdep.c: (v850e2_register_name): Revise system register names to match current V850E2M architecture specifications. Update register number enum comments too. - + 2013-03-01 Jiong Wang Pedro Alves