gdb: Don't skip prologue for explicit line breakpoints in assembler
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 04a9ebc1edc0c098b031b1f7a0726c3f9527524d..0ad7576c4b270bfb1c28f61df70387d05a6d3270 100644 (file)
@@ -1,3 +1,374 @@
+2019-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * linespec.c (decode_digits_list_mode): Set explicit_line to a
+       bool value.
+       (decode_digits_ordinary): Set explicit_line field in sal.
+       * symtab.c (skip_prologue_sal): Don't skip prologue for a
+       symtab_and_line that was set on an explicit line number in
+       assembler code.  Do always update the recorded symtab and line if
+       we do skip the prologue.
+
+2019-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * breakpoint.c (set_breakpoint_location_function): Remove
+       explicit_loc parameter.
+       (momentary_breakpoint_from_master): Update call to
+       set_breakpoint_location_function.
+       (add_location_to_breakpoint): Likewise.
+
+2019-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
+       required features based on default bfd type when no specific bfd
+       is present.
+
+2019-07-08  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * NEWS: Mention that GDB printf and eval commands can now print
+       C-style and Ada-style convenience var strings without
+       calling the inferior.
+       * printcmd.c (printf_c_string): Locally print GDB internal var
+       instead of transiting via the inferior.
+       (printf_wide_c_string): Likewise.
+
+2019-07-04  Alan Hayward  <alan.hayward@arm.com>
+
+       * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
+
+2019-07-04  Tom Tromey  <tom@tromey.com>
+
+       PR tui/24724:
+       * tui/tui-winsource.c (tui_clear_source_content): Update.
+       (tui_source_window_base::set_is_exec_point_at): Fix comment.
+       (tui_update_breakpoint_info): Update.
+       (tui_set_exec_info_content): Update.
+       * tui/tui-source.c (tui_set_source_content_nil): Update.
+       * tui/tui-disasm.c (tui_set_disassem_content): Don't set
+       has_break.
+       * tui/tui-data.h (enum tui_bp_flag): New.
+       (tui_bp_flags): New enum flags type.
+       (struct tui_source_element) <break_mode>: Change type.  Rename
+       from has_break.
+       (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
+       (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define.  Now enum
+       constants.
+       * tui/tui-winsource.h: Fix comment.
+
+2019-07-04  Alan Hayward  <alan.hayward@arm.com>
+
+       * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
+       * aarch64-linux-nat.c (fetch_fpregs_from_thread)
+       (store_fpregs_to_thread)
+       (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
+       * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
+       (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
+       (IWMMXT_REGS_SIZE): Add define.
+       * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
+       (fetch_vfp_regs, store_vfp_regs)
+       (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
+       * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
+
+2019-07-04  Alan Hayward  <alan.hayward@arm.com>
+
+        * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
+        defines.
+        * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
+        * arch/arm.h (INT_REGISTER_SIZE) Rename from...
+        (ARM_INT_REGISTER_SIZE): ...to this.
+        (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
+        * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
+        (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
+        (arm_linux_collect_gregset, supply_nwfpe_register)
+        (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
+        defines.
+        * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
+        (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
+        * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
+        * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
+        (arm_return_in_memory, arm_store_return_value)
+        (arm_get_longjmp_target, arm_register_g_packet_guesses)
+        (arm_record_ld_st_multiple): Likewise.
+        * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
+        * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
+
+2019-07-04  Alan Hayward  <alan.hayward@arm.com>
+
+       * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
+       AARCH64_DISPLACED_MODIFIED_INSNS.
+       * aarch64-tdep.c (struct aarch64_displaced_step_data)
+       (aarch64_displaced_step_copy_insn): Likewise.
+       * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
+       (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
+       * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
+       ARM_DISPLACED_MODIFIED_INSNS.
+       * arm-tdep.c (arm_gdbarch_init): Likewise.
+       * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
+       (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
+       (struct arm_displaced_step_closure): Use
+       ARM_DISPLACED_MODIFIED_INSNS.
+
+2019-07-04  Alan Hayward  <alan.hayward@arm.com>
+
+       * features/Makefile: Remove unused xml files.
+       * features/aarch64.xml: Remove.
+       * features/i386/amd64-avx-avx512-linux.xml: Remove.
+       * features/i386/amd64-avx-avx512.xml: Remove.
+       * features/i386/amd64-avx-linux.xml: Remove.
+       * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
+       * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
+       * features/i386/amd64-avx-mpx-linux.xml: Remove.
+       * features/i386/amd64-avx-mpx.xml: Remove.
+       * features/i386/amd64-avx.xml: Remove.
+       * features/i386/amd64-linux.xml: Remove.
+       * features/i386/amd64-mpx-linux.xml: Remove.
+       * features/i386/amd64-mpx.xml: Remove.
+       * features/i386/amd64.xml: Remove.
+       * features/i386/i386-avx-avx512-linux.xml: Remove.
+       * features/i386/i386-avx-avx512.xml: Remove.
+       * features/i386/i386-avx-linux.xml: Remove.
+       * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
+       * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
+       * features/i386/i386-avx-mpx-linux.xml: Remove.
+       * features/i386/i386-avx-mpx.xml: Remove.
+       * features/i386/i386-avx.xml: Remove.
+       * features/i386/i386-linux.xml: Remove.
+       * features/i386/i386-mmx-linux.xml: Remove.
+       * features/i386/i386-mmx.xml: Remove.
+       * features/i386/i386-mpx-linux.xml: Remove.
+       * features/i386/i386-mpx.xml: Remove.
+       * features/i386/i386.xml: Remove.
+       * features/i386/x32-avx-avx512-linux.xml: Remove.
+       * features/i386/x32-avx-linux.xml: Remove.
+       * features/i386/x32-linux.xml: Remove.
+
+2019-07-04  Alan Hayward  <alan.hayward@arm.com>
+
+       * regformats/aarch64.dat: Remove.
+       * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
+       * regformats/i386/amd64-avx-linux.dat: Remove.
+       * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
+       * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
+       * regformats/i386/amd64-linux.dat: Remove.
+       * regformats/i386/amd64-mpx-linux.dat: Remove.
+       * regformats/i386/amd64.dat: Remove.
+       * regformats/i386/i386-avx-avx512-linux.dat: Remove.
+       * regformats/i386/i386-avx-linux.dat: Remove.
+       * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
+       * regformats/i386/i386-avx-mpx-linux.dat: Remove.
+       * regformats/i386/i386-linux.dat: Remove.
+       * regformats/i386/i386-mmx-linux.dat: Remove.
+       * regformats/i386/i386-mpx-linux.dat: Remove.
+       * regformats/i386/i386.dat: Remove.
+       * regformats/i386/x32-avx-avx512-linux.dat: Remove.
+       * regformats/i386/x32-avx-linux.dat: Remove.
+       * regformats/i386/x32-linux.dat: Remove.
+
+2019-07-04  Alan Hayward  <alan.hayward@arm.com>
+
+       * aarch64-tdep.c: Remove xml self tests.
+       * amd64-linux-tdep.c: Likewise.
+       * amd64-tdep.c: Likewise.
+       * i386-linux-tdep.c: Likewise.
+       * i386-tdep.c: Likewise.
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       PR cli/24732
+       * cli/cli-cmds.c (struct pipe_cmd_opts): New.
+       (pipe_cmd_option_defs): New.
+       (make_pipe_cmd_options_def_group): New.
+       (pipe_command): Use gdb::option::process_options.
+       (pipe_command_completer): New function.
+       (_initialize_cli_cmds): Install completer for "pipe" command.
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-option.c (union option_value) <string>: New field.
+       (struct option_def_and_value): Add ctor, move ctor, dtor and
+       use DISABLE_COPY_AND_ASSIGN.
+       (option_def_and_value::clear_value): New.
+       (parse_option, save_option_value_in_ctx, get_val_type_str)
+       (add_setshow_cmds_for_options): Handle var_string.
+       * cli-option.h (union option_def::var_address) <string>: New
+       field.
+       (struct string_option_def): New.
+       * maint-test-options.c (struct test_options_opts): Add default
+       ctor and use DISABLE_COPY_AND_ASSIGN.
+       <string_opt>: New field.
+       (test_options_opts::~test_options_opts): New.
+       (test_options_opts::dump): Also dump "-string".
+       (test_options_option_defs): Install "string.
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-option.c (parse_option) <var_enum>: Don't return an
+       option_value with a null enumeration.
+       (complete_options): Save the option values in the context.
+       (save_option_value_in_ctx): New, factored out from ...
+       (process_options): ... here.
+       * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
+       of the function.
+       * maint-test-options.c (test_options_opts::dump): New, factored
+       out from ...
+       (maintenance_test_options_command_mode): ... here.
+       (maintenance_test_options_command_completion_result): Delete.
+       (maintenance_test_options_command_completion_text): Update
+       comment.
+       (maintenance_show_test_options_completion_result): Change
+       prototype.  Just print
+       maintenance_test_options_command_completion_text.
+       (save_completion_result): New.
+       (maintenance_test_options_completer_mode): Pass options context to
+       complete_options, and then save a dump.
+       (_initialize_maint_test_options): Use add_cmd to install "maint
+       show test-options-completion-result".
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (New commands): Mention "with" and "maint with".
+       * cli/cli-cmds.c (with_command_1, with_command_completer_1)
+       (with_command, with_command_completer): New.
+       (pipe_command): Adjust to new repeat_previous
+       interface.
+       (_initialize_cli_cmds): Install the "with" command and its "w"
+       alias.
+       * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
+       declarations.
+       * cli/cli-setshow.c (parse_cli_var_uinteger)
+       (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
+       argument strings for all var_types.
+       (get_setshow_command_value_string): New, factored out from ...
+       (do_show_command): ... this.
+       * cli/cli-setshow.h: Include <string>.
+       (get_setshow_command_value_string): Declare.
+       * command.h (repeat_previous): Now returns const char *.  Adjust
+       comment.
+       * maint.c: Include "cli/cli-cmds.h".
+       (maintenance_with_cmd, maintenance_with_cmd_completer): New.
+       (_initialize_maint_cmds): Register the "maintenance with" command.
+       * top.c (repeat_previous): Move bits from pipe_command here:
+       Return the saved command line, if any; error out if there's no
+       command to relaunch.
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (New commands): Mention "maint set/show test-settings"
+       instead of "maint test-settings".
+       * maint-test-settings.c (maintenance_test_settings_list): Delete.
+       (maintenance_test_settings_set_list): Rename to ...
+       (maintenance_set_test_settings_list): ... this.
+       (maintenance_test_settings_show_list): Rename to  ...
+       (maintenance_show_test_settings_list): ... this.
+       (maintenance_test_settings_cmd): Delete.
+       (maintenance_test_settings_set_cmd): ...
+       (maintenance_set_test_settings_cmd): ... this.
+       (maintenance_test_settings_show_cmd): ...
+       (maintenance_show_test_settings_cmd): ... this.
+       (maintenance_test_settings_show_value_cmd):
+       (maintenance_show_test_settings_value_cmd): ... this.
+       (_initialize_maint_test_settings): No longer install the "maint
+       test-settings" prefix command.  Rename "maint test-settings set"
+       to "maint set test-settings", and "maint test-settings show" to
+       "maint show test-settings".  Adjust all subcommands.
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * maint-test-settings.c: Fix file's intro comment.  Replace all
+       references to "test-options" with references to "test-settings",
+       in comments.
+
+2019-07-03  Pedro Alves  <palves@redhat.com>
+
+       * maint-test-settings.c (maintenance_test_settings_xxx)
+       (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
+       New.
+       (maintenance_test_settings_enums): Use them.
+       (maintenance_test_settings_enum): Default to
+       maintenance_test_settings_xxx.
+       (_initialize_maint_test_settings): Initialize
+       MAINTENANCE_TEST_SETTINGS_FILENAME.
+
+2019-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * breakpoint.h (remove_breakpoints_inf): Change return type to
+       void, move function documentation here.
+       * breakpoint.c (remove_breakpoints_inf): Change return type to
+       void, move function documentation to header.
+
+2019-07-02  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (Completion improvements): Mention "info threads".
+       * thread.c (struct info_threads_opts, info_threads_option_defs)
+       (make_info_threads_options_def_group): New.
+       (info_threads_command): Use gdb::option::process_options.
+       (info_threads_command_completer): New.
+       (_initialize_thread): Use gdb::option::build_help to build the
+       help text for "info threads".
+
+2019-07-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * defs.h (generic_load): Move from here...
+       * symfile.h (generic_load): ... to here.  Rename name parameter
+       to args.
+       * symfile.c (generic_load): Add comment.
+
+2019-07-01  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2read.c
+       (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
+       declaration of without_params.  Fix formatting.
+
+2019-07-01  Tom Tromey  <tromey@adacore.com>
+
+       * ada-exp.y (find_primitive_type): Update.
+       * ada-lang.h (ada_lookup_symbol): Update.
+       * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
+       parameter.
+       (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
+
+2019-06-28  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR breakpoints/24541
+       * gdbarch.c: Regenerate.
+       * gdbarch.h: Regenerate.
+       * gdbarch.sh: Add 'stap_adjust_register'.
+       * i386-tdep.c: Include '<unordered_set>'.
+       (i386_stap_adjust_register): New function.
+       (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
+       * stap-probe.c (stap_parse_register_operand): Call
+       'gdbarch_stap_adjust_register'.
+
+2019-06-28  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR python/24742
+       https://bugzilla.redhat.com/show_bug.cgi?id=1723564
+       * python/python.c (do_start_initialization): Use 'xmalloc'
+       instead of 'PyMem_Malloc'.
+
+2019-06-28  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2read.c (partial_die_info::read): Prefer the linkage name
+       for Ada.
+
+2019-06-27  Tom Tromey  <tromey@adacore.com>
+
+       * arm-tdep.c (arm_objfile_data_key): Move lower.  Change type to
+       objfile_key.
+       (arm_find_mapping_symbol, arm_record_special_symbol)
+       (_initialize_arm_tdep): Update.
+       (arm_objfile_data_free): Remove.
+
+2019-06-27  Tom Tromey  <tromey@adacore.com>
+
+       * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
+       to cp_print_static_field.
+
+2019-06-26  Tom Tromey  <tromey@adacore.com>
+
+       * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
+       * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
+       declare.
+
 2019-06-26  Alan Hayward  <alan.hayward@arm.com>
 
        * features/aarch64-core.c (create_feature_aarch64_core):
This page took 0.04432 seconds and 4 git commands to generate.