Add set/show debug dwarf-line.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 711f6a89ea809d0ab4b0e1c31c07116c60937a7d..e5317270bc0bfaaca639abd2ac41c2b2eab74911 100644 (file)
@@ -1,3 +1,368 @@
+2015-05-27  Doug Evans  <dje@google.com>
+
+       * NEWS: Mention "set debug dwarf-line".
+       * dwarf2read.c (dwarf_line_debug): New static global.
+       (add_include_dir): Add debug dwarf-line support.
+       (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
+       (_initialize_dwarf2_read): New parameter "debug dwarf-line".
+
+2015-05-27  Doug Evans  <dje@google.com>
+
+       * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
+       All callers updated.
+       (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
+       * cp-support.h (cp_lookup_nested_symbol): Update.
+
+2015-05-27  Doug Evans  <dje@google.com>
+
+       PR symtab/18258
+       * block.c (block_find_symbol): New function.
+       (block_find_non_opaque_type): Ditto.
+       (block_find_non_opaque_type_preferred): Ditto.
+       * block.h (block_symbol_matcher_ftype): New typedef.
+       (block_find_symbol): Declare.
+       (block_find_non_opaque_type): Ditto.
+       (block_find_non_opaque_type_preferred): Ditto.
+       * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
+       * psymtab.c (psym_lookup_symbol): Ditto.
+       * symtab.c (basic_lookup_transparent_type_1): New function.
+       (basic_lookup_transparent_type): Call it.
+
+2015-05-27  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
+       AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
+
+2015-05-27  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
+       before operator &&.
+       (aarch64_record_load_store): Likewise.
+
+2015-05-26  Doug Evans  <dje@google.com>
+
+       PR c++/18141, c++/18417.
+       * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
+       a typedef.
+
+2015-05-26  Doug Evans  <dje@google.com>
+
+       * NEWS: Add entries for command renamings.
+       * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
+       All uses updated.
+       (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
+       (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
+       All uses updated.
+       (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
+       All callers updated.  Fix spelling of DWARF in help text.
+       (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
+       All uses updated.
+       (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
+       All uses updated.
+       (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
+       (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
+       (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
+       All uses updated.
+       (show_dwarf_always_disassemble): Renamed from
+       show_dwarf2_always_disassemble.  All callers updated.
+       (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
+       "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
+       "set/show dwarf max-cache-age".  Rename
+       "set/show dwarf2 always-disassemble" to
+       "set/show dwarf always-disassemble".  Rename
+       "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
+       "set/show debug dwarf2-die" to "set/show debug dwarf-die".
+
+2015-05-26  Doug Evans  <dje@google.com>
+
+       PR python/18438
+       * python/py-lazy-string.c (stpy_convert_to_value): Use
+       gdbpy_gdb_memory_error not PyExc_MemoryError.
+       (gdbpy_create_lazy_string_object): Ditto.
+
+2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
+
+2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-regs.c (tui_reg_prev_command): New function.
+       (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
+       * reggroups.c (reggroup_prev): New function.
+       * reggroups.h (reggroup_prev): Add declaration.  Update comment.
+
+2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
+           Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-tdep.c: Include linux-record.h and
+       record-full.h.
+       (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
+       (aarch64_syscall): New enum.
+       (aarch64_canonicalize_syscall): New function.
+       (aarch64_all_but_pc_registers_record): New function.
+       (aarch64_linux_syscall_record): New function.
+       (aarch64_linux_init_abi): Install AArch64 process record
+       handler.  Update to handle syscall recording.
+       * aarch64-tdep.c: Include record.h and record-full.h.
+       (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
+       (struct aarch64_mem_r): Define.
+       (aarch64_record_result): New enum.
+       (struct insn_decode_record): Define.
+       (insn_decode_record): New typedef.
+       (aarch64_record_data_proc_reg): New function.
+       (aarch64_record_data_proc_imm): New function.
+       (aarch64_record_branch_except_sys): New function.
+       (aarch64_record_load_store): New function.
+       (aarch64_record_data_proc_simd_fp): New function.
+       (aarch64_record_asimd_load_store): New function.
+       (aarch64_record_decode_insn_handler): New function.
+       (deallocate_reg_mem): New function.
+       (aarch64_process_record): New function.
+       * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
+       New field.
+       (aarch64_process_record): New extern declaration.
+       * configure.tgt: Add linux-record.o to gdb_target_obs.
+       * linux-record.h (struct linux_record_tdep) <arg7>: New field.
+
+2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
+
+       * NEWS: Add a note on process record-replay support on aarch64*-linux*
+       targets.
+
+2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
+
+       * amd64-tdep.c: Replace in_function_epilogue_p with
+       stack_frame_destroyed_p throughout.
+       * arch-utils.c: Ditto.
+       * arch-utils.h: Ditto.
+       * arm-tdep.c: Ditto.
+       * breakpoint.c: Ditto.
+       * gdbarch.sh: Ditto.
+       * hppa-tdep.c: Ditto.
+       * i386-tdep.c: Ditto.
+       * mips-tdep.c: Ditto.
+       * nios2-tdep.c: Ditto.
+       * rs6000-tdep.c: Ditto.
+       * s390-linux-tdep.c: Ditto.
+       * score-tdep.c: Ditto.
+       * sh-tdep.c: Ditto.
+       * sparc-tdep.c: Ditto.
+       * sparc-tdep.h: Ditto.
+       * sparc64-tdep.c: Ditto.
+       * spu-tdep.c: Ditto.
+       * tic6x-tdep.c: Ditto.
+       * tilegx-tdep.c: Ditto.
+       * xstormy16-tdep.c: Ditto.
+       * gdbarch.c, gdbarch.h: Re-generated.
+
+2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * NEWS: Mention 'tui enable' and 'tui disable'.
+       * tui/tui.c (tui_enable_command): New function.
+       (tui_disable_command): New function.
+       (_initialize_tui): New function.
+
+2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
+
+2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
+       buf_ptr is freed.
+
+2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
+       into ...
+       (tui_set_layout_for_display_command): ...here, before calling
+       tui_set_layout.  Only set the layout if gdb has not already
+       entered the TUI_FAILURE state.
+
+2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-layout.c (layout_completer): New function.
+       (_initialize_tui_layout): Set completer on layout command.
+
+2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * tui/tui-layout.c (tui_set_layout): Remove
+       tui_register_display_type parameter.  Remove all checking of this
+       parameter, and reindent function.  Update header comment.
+       (tui_set_layout_for_display_command): Rename to...
+       (tui_set_layout_by_name): ...this, and don't check for different
+       register class types, don't pass a tui_register_display_type to
+       tui_set_layout.  Update header comment.
+       (layout_names): Remove register set specific names.
+       * tui/tui-layout.h (tui_set_layout): Remove
+       tui_register_display_type parameter.
+       * tui/tui.c (tui_rl_change_windows): Don't pass a
+       tui_register_display_type to tui_set_layout.
+       (tui_rl_delete_other_windows): Likewise.
+       (tui_enable): Likewise.
+       * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
+       (TUI_FLOAT_REGS_NAME_LOWER): Remove.
+       (TUI_GENERAL_REGS_NAME): Remove.
+       (TUI_GENERAL_REGS_NAME_LOWER): Remove.
+       (TUI_SPECIAL_REGS_NAME): Remove.
+       (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
+       (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
+       (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
+       (enum tui_register_display_type): Remove.
+       (struct tui_layout_def): Remove regs_display_type and
+       float_regs_display_type fields.
+       (struct tui_data_info): Remove regs_display_type field.
+       (tui_layout_command): Use new name for
+       tui_set_layout_for_display_command.
+       * tui/tui-data.c (layout_def): Don't initialise removed fields.
+       (tui_clear_win_detail): Don't initialise removed fields of
+       win_info.
+       * tui/tui-regs.c (tui_show_registers): Use new name for
+       tui_set_layout_for_display_command.
+       * tui/tui.h (tui_set_layout_for_display_command): Rename
+       declaration to...
+       (tui_set_layout_by_name): ...this.
+       * printcmd.c (display_command): Remove tui related layout call,
+       and reindent.
+
+2015-05-20  Joel Brobecker  <brobecker@adacore.com>
+
+       * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
+       (handle_inferior_event): New function.
+
+2015-05-20  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (to_fixed_array_type): Rename local variable
+       typename into type_name.
+
+2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix ASAN crash for gdb.compile/compile.exp.
+       * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
+
+2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
+       (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
+       * compile/compile-object-load.c (setup_sections, compile_object_load):
+       Likewise.
+       * compile/compile.c (compile_to_object): Likewise.
+
+2015-05-16  Doug Evans  <xdje42@gmail.com>
+
+       * NEWS: Mention support for unbuffered Guile memory ports.
+       * scm-ports.c (ioscm_memory_port): Update comments on end, size.
+       (ioscm_lseek_address): Improve overflow calculation.
+       (gdbscm_memory_port_fill_input): Add assert.
+       (gdbscm_memory_port_write): Handle unbuffered ports.
+       Handle large writes identical to Guile's fport_write.
+       (gdbscm_memory_port_seek): Fix seeking past end check.
+       (gdbscm_memory_port_close): Handle closing unbuffered port.
+       (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
+       (ioscm_init_memory_port): Handle unbuffered ports.
+       (ioscm_reinit_memory_port): Ditto.
+       (ioscm_init_memory_port): Update size calculation.
+       (gdbscm_open_memory): Support zero sized ports.
+
+2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
+       variable compiler warnings.
+
+2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * compile/compile-object-load.c (get_out_value_type): Fix returned type.
+
+2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Phil Muldoon  <pmuldoon@redhat.com>
+
+       * NEWS (Changes since GDB 7.9): Add compile print.
+       * compile/compile-c-support.c (add_code_header, add_code_footer)
+       (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
+       COMPILE_I_PRINT_VALUE_SCOPE.
+       * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
+       (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
+       New.
+       * compile/compile-object-load.c: Include block.h.
+       (get_out_value_type): New function.
+       (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
+       COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
+       OUT_VALUE_TYPE.
+       * compile/compile-object-load.h (struct compile_module): Add fields
+       out_value_addr and out_value_type.
+       * compile/compile-object-run.c: Include valprint.h and compile.h.
+       (struct do_module_cleanup): Add fields out_value_addr and
+       out_value_type.
+       (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
+       COMPILE_I_PRINT_VALUE_SCOPE.
+       (compile_object_run): Propagate out_value_addr and out_value_type.
+       Pass OUT_VALUE_ADDR.
+       * compile/compile.c: Include valprint.h.
+       (compile_print_value, compile_print_command): New functions.
+       (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
+       (_initialize_compile): Update compile code help text.  Install
+       compile_print_command.
+       * compile/compile.h (compile_print_value): New prototype.
+       * defs.h (enum compile_i_scope_types): Add
+       COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
+
+2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
+       Rely on its parameter count.
+       (compile_object_load): Replace lookup_minimal_symbol_text by
+       lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
+       return value.
+       * compile/compile-object-load.h (struct compile_module): Replace
+       func_addr by func_sym.
+       * compile/compile-object-run.c: Include block.h.
+       (compile_object_run): Reset module variable after it is freed.  Use
+       FUNC_SYM instead of FUNC_ADDR.  Rely on it.
+
+2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * compile/compile-c-support.c (print_one_macro): Use #ifndef.
+       (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
+       (c_compute_program): Call generate_register_struct after typedefs.
+       * compile/compile-loc2c.c (push, pushf_register_address)
+       (pushf_register): Cast to GCC_UINTPTR.
+       (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
+       type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
+       (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
+       * compile/compile.c (_initialize_compile): Enable warnings for
+       COMPILE_ARGS.
+
+2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * cli/cli-script.c (execute_control_command): Update
+       eval_compile_command caller.
+       * compile/compile-object-load.c (compile_object_load): Add parameters
+       scope and scope_data.  Set them.
+       * compile/compile-object-load.h (struct compile_module): Add fields
+       scope and scope_data.
+       (compile_object_load): Add parameters scope and scope_data.
+       * compile/compile-object-run.c (struct do_module_cleanup): Add fields
+       scope and scope_data.
+       (compile_object_run): Propagate the fields scope and scope_data.
+       * compile/compile.c (compile_file_command, compile_code_command):
+       Update eval_compile_command callers.
+       (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
+       * compile/compile.h (eval_compile_command): Add parameter scope_data.
+       * defs.h (struct command_line): Add field scope_data.
+
+2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * printcmd.c (struct format_data): Move it to valprint.h.
+       (print_command_parse_format, print_value): New functions from ...
+       (print_command_1): ... here.  Call them.
+       * valprint.h (struct format_data): Move it here from printcmd.c.
+       (print_command_parse_format, print_value): New declarations.
+
+2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * compile/compile-object-load.c (compile_object_load): Add
+       COMPILE_DEBUG message.
+
 2015-05-15  Jerome Guitton  <guitton@adacore.com>
 
        * ada-lang.c (ada_value_ptr_subscript): Use enum position of
This page took 0.026779 seconds and 4 git commands to generate.