Remove unnecessary inferior lookup in inferior_command
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 59c39feca6b7c91a91a062564058cf8d9558ec17..c2511502a8cbd72f929dc1aedec3272093d8e874 100644 (file)
@@ -1,3 +1,356 @@
+2016-12-06  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * inferior.c (inferior_command): Remove duplicate
+       find_inferior_id call.
+
+2016-12-06  Yao Qi  <yao.qi@linaro.org>
+
+       * frame.c (frame_register_unwind): Set *realnump if *lvalp is
+       lval_register.
+       * value.c (deprecated_value_next_frame_id_hack): Assert
+       value->lval is lval_register.
+       (deprecated_value_regnum_hack): Likewise.
+
+2016-12-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.h: Include "common/enum-flags.h".
+       (enum ui_flags): Rename to ...
+       (enum ui_out_flag): ... this.
+       (ui_out_flags): Define enum flag type.
+       (ui_out_test_flags): Change type of parameter to ui_out_flags.
+       (ui_out_new): Likewise.
+       * ui-out.c (ui_out_test_flags): Likewise.
+       (ui_out_new): Likewise.
+       * cli-out.c (cli_out_new): Update variable type.
+       * mi/mi-out.c (mi_out_new): Likewise.
+       * tui/tui-out.c (tui_out_new): Likewise.
+
+2016-12-02  Pedro Alves  <palves@redhat.com>
+
+       * NEWS: Mention that user commands now accept an unlimited number
+       of arguments.
+       * cli/cli-script.c: Include <vector>.
+       (struct string_view): New type.
+       (MAXUSERARGS): Delete.
+       (struct user_args): Now a C++ class.
+       (user_args_stack): New.
+       (struct scoped_user_args_level): New type.
+       (execute_user_command): Use scoped_user_args_level.
+       (arg_cleanup): Delete.
+       (setup_user_args): Deleted, and refactored as ...
+       (user_args::user_args): ... this new constructor.  Limit of number
+       of arguments removed.
+       (insert_user_defined_cmd_args): Defer to user_args_stack.
+       (user_args::insert_args): New, bits based on old
+       insert_user_defined_cmd_args with limit of number of arguments
+       eliminated.
+
+2016-12-02  Pedro Alves  <palves@redhat.com>
+
+       PR cli/20559
+       * NEWS: Mention "eval" expands user-defined command arguments.
+       * cli/cli-script.c (execute_control_command): Adjust to rename.
+       (insert_args): Rename to ...
+       (insert_user_defined_cmd_args): ... this, and make extern.
+       * cli/cli-script.h (insert_user_defined_cmd_args): New
+       declaration.
+       * printcmd.c: Include "cli/cli-script.h".
+       (eval_command): Call insert_user_defined_cmd_args.
+
+2016-12-02  Tom Tromey  <tom@tromey.com>
+
+       PR symtab/16264:
+       * dwarf2read.c (struct partial_die_info) <main_subprogram>: New
+       member.
+       (add_partial_symbol): Call set_objfile_main_name.
+       (read_partial_die): Handle DW_AT_main_subprogram.
+       <DW_AT_calling_convention>: don't call set_objfile_main_name, but
+       set main_subprogram flag.
+
+2016-12-02  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * tracefile-tfile.c (tfile_write_status): Adjust to renames.
+       * tracefile.c (trace_save_command): Rename to...
+       (tsave_command): ...this.
+       (_initialize_tracefile): Adjust to renames.
+       * tracepoint.c (trace_actions_command): Rename to...
+       (actions_command): ...this.
+       (trace_start_command): Rename to...
+       (tstart_command): ...this, and adjust to renames..
+       (trace_stop_command): Rename to...
+       (tstop_command): ...this.
+       (trace_status_command): Rename to...
+       (tstatus_command): ...this, and adjust to renames.
+       (trace_find_command): Rename to...
+       (tfind_command): ...this.
+       (trace_find_pc_command): Rename to...
+       (tfind_pc_command): ...this.
+       (trace_find_tracepoint_command): Rename to...
+       (tfind_tracepoint_command): ...this.
+       (trace_find_line_command): Rename to...
+       (tfind_line_command): ...this.
+       (trace_find_range_command): Rename to...
+       (tfind_range_command): ...this.
+       (trace_find_outside_command): Rename to...
+       (tfind_outside_command): ...this.
+       (trace_dump_command): Rename to...
+       (tdump_command): ...this.
+       (tfind_1): Adjust to renames.
+       (trace_find_end_command): Rename to...
+       (tfind_end_command): ...this, and adjust to renames..
+       (trace_status_mi): Adjust to renames.
+       (parse_trace_status): Adjust to renames.
+       (_initialize_tracepoint): Adjust to renames.
+       * tracepoint.h (enum trace_stop_reason) <tstop_command>: Rename
+       to...
+       <trace_stop_command>: ...this.
+
+2016-12-02  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * mi/mi-out.c (mi_ui_out_data) <suppress_output>: Remove.
+       (mi_table_body): Remove suppress_output check.
+       (mi_table_end): Likewise.
+       (mi_table_header): Likewise.
+       (mi_begin): Likewise.
+       (mi_end): Likewise.
+       (mi_field_int): Likewise.
+       (mi_field_string): Likewise.
+       (mi_field_fmt): Likewise.
+       (mi_out_data_ctor): Likewise.
+
+2016-12-02  Yao Qi  <yao.qi@linaro.org>
+           Pedro Alves  <palves@redhat.com>
+
+       * aarch64-tdep.c (aarch64_analyze_prologue): Recognize STR
+       instruction.
+       (aarch64_analyze_prologue_test): More tests.
+
+2016-12-02  Yao Qi  <yao.qi@linaro.org>
+           Pedro Alves  <palves@redhat.com>
+
+       * aarch64-tdep.c: Include "selftest.h".
+       (abstract_instruction_reader): New class.
+       (instruction_reader): New class.
+       (aarch64_analyze_prologue): Add new parameter reader.  Call
+       reader.read instead of read_memory_unsigned_integer.
+       [GDB_SELF_TEST] (instruction_reader_test): New class.
+       (aarch64_analyze_prologue_test): New function.
+       (_initialize_aarch64_tdep) [GDB_SELF_TEST]: Register
+       selftests::aarch64_analyze_prologue_test.
+       * trad-frame.c (trad_frame_cache_zalloc):
+       (trad_frame_alloc_saved_regs): Add a new function.
+       * trad-frame.h (trad_frame_alloc_saved_regs): Declare.
+
+2016-12-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.c (enum ui_out_table_state): Move to class
+       ui_out_table as ui_out_table::state.
+       (struct ui_out_table): Change to ...
+       (class ui_out_table): ... this.
+       <flag>: Remove.
+       <entry_level>: Rename to ...
+       <m_entry_level>: ... this.
+       <columns>: Rename to ...
+       <m_nr_cols>: ... this.
+       <id>: Rename to ...
+       <m_id>: ... this.
+       <headers>: Rename to ...
+       <m_headers>: ... this.
+       <headers_iterator>: Rename to ...
+       <m_headers_iterator>: ... this.
+       <start_body, append_header, start_row, get_next_header,
+       query_field, current_state, entry_level>: New methods.
+       (struct ui_out) <table>: Change type to unique_ptr to
+       ui_out_table.
+       (append_header_to_list, get_next_header, clear_header_list,
+       clear_table): Remove.
+       (ui_out_table_begin): Instantiate ui_out_table object.  Update
+       table check.
+       (ui_out_table_body): Update table check, replace code with call
+       to ui_out_table::start_body.
+       (ui_out_table_end): Update table check, replace manual cleanup
+       with assignment of uiout->table unique_ptr to nullptr.
+       (ui_out_table_header): Update table check, replace call to
+       append_header_to_list with call to append_header method.
+       (ui_out_begin): Remove one table state check, update another.
+       Replace code with call to start_row method.
+       (verify_field): Update table checks.
+       (ui_out_query_field): Update table check, replace code with call
+       to query_field method.
+       (ui_out_new): Remove table initialization code.
+
+2016-12-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.c (enum ui_out_table_state): New enum.
+       (struct ui_out_table) <body_flag>: Remove field.
+       <state>: New field.
+       (ui_out_table_begin): Replace usages of body_flag with state.
+       (ui_out_table_body): Likewise.
+       (ui_out_table_end): Likewise.
+       (ui_out_table_header): Likewise.
+       (ui_out_begin): Likewise.
+       (verify_field): Likewise.
+       (ui_out_new): Likewise.
+
+2016-12-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.h (ui_out_begin_ftype): Remove level parameter.
+       (ui_out_end_ftype): Likewise.
+       * ui-out.c (struct ui_out) <level>: Replace field with a method
+       that dynamically computes the result.
+       (current_level): Get vector's back item instead of using
+       uiout->level.
+       (push_level): Make return type void.
+       (pop_level): Make return type void and update access to
+       ui_out::level.
+       (uo_begin): Remove level parameter.
+       (uo_end): Likewise.
+       (ui_out_table_begin): Update access to uiout::level.
+       (ui_out_begin): Don't read return value from push_level, call
+       uiout->level() instead, update call to uo_begin.
+       (ui_out_end): Don't read return value from pop_level, update
+       call to uo_end.
+       (verify_field): Update access to uiout->level.
+       (ui_out_new): Don't initialize ui_out::level, call push_level
+       to push the initial level instead of doing it by hand.
+       * cli-out.c (cli_begin): Remove level parameter.
+       (cli_end): Likewise.
+       * mi/mi-out.c (mi_begin): Likewise.
+       (mi_end): Likewise.
+
+2016-12-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.c (struct ui_out_level): Replace with ...
+       (class ui_out_level): ... this.
+       (current_level): Update.
+       (push_level): Update.
+       (pop_level): Update.
+       (verify_field): Update.
+       (ui_out_new): Update.
+
+2016-12-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.c (struct ui_out_hdr): Replace with ...
+       (class ui_out_hdr): ... this.
+       (append_header_to_list): Update.
+       (get_next_header): Update.
+       (ui_out_query_field): Update.
+
+2016-12-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * mi/mi-out.c (mi_table_header): Change char * args to
+       std::string.
+       * cli-out.c (cli_table_header): Likewise.
+       * ui-out.h (table_header_ftype): Likewise.
+       (ui_out_table_header): Constify colhdr argument.
+       (ui_out_query_field): Constify col_name argument.
+       * ui-out.c (ui_out_hdr) <col_name, colhdr>: Change type to
+       std::string.
+       (uo_table_header): Change char * args to std::string.
+       (ui_out_table_header): Likewise.
+       (get_next_header): Constify colhdr argument and adapt.
+       (clear_header_list): Don't free col_name/colhdr fields.
+       (append_header_to_list): Change char * args to std::string and
+       adapt.
+       (verify_field): Constify variable.
+       (ui_out_query_field): Constify col_name argument and adapt.
+       * breakpoint.c (wrap_indent_at_field): Constify variable.
+
+2016-12-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.c (struct ui_out_hdr) <next>: Remove.
+       (struct ui_out_table) <header_first, header_last, header_next>: Remove.
+       <headers, headers_iterator>: New fields.
+       (ui_out_table_body): Update for the new data structure.
+       (ui_out_begin): Likewise.
+       (clear_header_list): Likewise.
+       (append_header_to_list): Likewise.
+       (get_next_header): Likewise.
+       (ui_out_query_field): Likewise.
+       (ui_out_new): Likewise.
+
+2016-11-30  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.c (struct ui_out_table) <id>: Change type to
+       std::string.
+       (ui_out_table_begin): Change tblid parameter type to
+       std::string, adapt code.
+       update following type change.
+       (clear_table): Update.
+       (ui_out_new): Update.
+
+2016-11-30  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * cli-out.h (cli_ui_out_data) <streams>: Change type to
+       std::vector.
+       * cli-out.c: Remove vec.h include.
+       (cli_uiout_dtor): Update.
+       (cli_field_fmt): Update.
+       (cli_spaces): Update.
+       (cli_text): Update.
+       (cli_message): Update.
+       (cli_flush): Update.
+       (cli_redirect): Update.
+       (out_field_fmt): Update.
+       (field_separator): Update.
+       (cli_out_data_ctor): Update.
+       (cli_out_new): Update.
+       (cli_out_set_stream): Update.
+
+2016-11-30  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * mi/mi-out.c: Remove vec.h include.
+       (mi_ui_out_data) <streams>: Change type to std::vector.
+       (mi_field_string): Update.
+       (mi_field_fmt): Update.
+       (mi_flush): Update.
+       (mi_redirect): Update.
+       (field_separator): Update.
+       (mi_open): Update.
+       (mi_close): Update.
+       (mi_out_buffered): Update.
+       (mi_out_rewind): Update.
+       (mi_out_put): Update.
+       (mi_out_data_ctor): Update.
+       (mi_out_data_dtor): Don't free streams.
+
+2016-11-30  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * ui-out.c (ui_out_level_p): Remove typedef.
+       (DEF_VEC_P (ui_out_level_p)): Remove definition.
+       (struct ui_out) <levels>: Change type to vector of unique_ptr of
+       ui_out_level.
+       (current_level): Update.
+       (push_level): Update.
+       (pop_level): Update, don't manually delete the ui_out_level
+       instance.
+       (ui_out_new): Update.
+
+2016-11-30  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * cli-out.c (cli_uiout_dtor): Use delete instead of xfree.
+       (cli_out_new): Use new instead of XNEW.
+       * mi/mi-out.c (mi_out_data_dtor): Use delete instead of xfree.
+       (mi_out_new): Use new instead of XNEW.
+       * tui/tui-out.c (tui_out_new): Likewise.
+       * ui-out.c (push_level): Likewise.
+       (pop_level): Use delete instead of xfree.
+       (clear_header_list): Use delete instead of xfree.
+       (append_header_to_list): Use new instead of XNEW.
+       (ui_out_new): Likewise.
+
+2016-11-30  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * disable-implicit-rules.mk: New file.
+       * Makefile.in: Include disable-implicit-rules.mk.
+       * data-directory/Makefile.in: Likewise.
+       * gnulib/Makefile.in: Likewise.
+
+2016-11-30  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-tdep.c (arm_scan_prologue): Read memory as unsigned integer.
+       (arm_exidx_unwind_sniffer): Likewise.
+
 2016-11-28  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * record-full.c (record_full_open_1): Fix debug output.
This page took 0.041765 seconds and 4 git commands to generate.