Make gdb.mi/user-selected-context-sync.exp use proc_with_prefix
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 5e83034746175c64cad40f3a4e269f86ff07b365..9123596873d38fe73c4934395dc841238ca56ef5 100644 (file)
@@ -1,3 +1,383 @@
+2016-11-09  Pedro Alves  <palves@redhat.com>
+
+       * ax-gdb.c (agent_eval_command_one): Use std::move instead of
+       gdb::move.
+       * ax.h (agent_expr_up): Use std::unique_ptr instead of
+       gdb::unique_ptr.
+       * breakpoint.c (parse_cond_to_aexpr): Use std::move instead of
+       gdb::move.
+       * tracepoint.c (collection_list::collect_symbol): Likewise.
+       (collection_list::~collection_list): Delete.
+       (encode_actions_1): Use std::move instead of gdb::move.
+       (collection_list::add_aexpr): Use std::move instead of
+       unique_ptr::release.
+       * tracepoint.h (collection_list) <~collection_list>: Delete
+       declaration.
+       <m_aexprs>: Now a vector of agent_ptr_up.
+
+2016-11-09  Pedro Alves  <palves@redhat.com>
+
+       * main.c (struct cmdarg): Add constructor.
+       (captured_main_1): Use vector::emplace_back.
+       * tracepoint.c (collection_list::add_memrange): Likewise.
+
+2016-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * tui/tui-winsource.c (tui_alloc_source_buffer): Remove
+       failed-xmalloc handling.
+
+2016-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * tui/tui-winsource.c (tui_alloc_source_buffer): Subtract
+       highlight box's overhead when calculating the content height.
+
+2016-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * tui/tui-disasm.c (tui_set_disassem_content): Fix calculation of
+       the longest disassembly line's length.
+
+2016-11-09  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * tui/tui-disasm.c (tui_set_disassem_content): Fix line buffer
+       overrun due to unchecked strcpy.
+
+2016-11-09  Tristan Gingold  <gingold@adacore.com>
+
+       * darwin-nat.c (find_inferior_task_it): Fix indentation.
+       (find_inferior_notify_it): Remove.
+       (find_inferior_pid_it): New function.
+       (darwin_find_inferior_by_notify): Remove.
+       (darwin_find_inferior_by_pid): New function.
+       (darwin_find_new_inferior): New function.
+       (darwin_check_message_ndr): New function from
+       darwin_decode_exception_message.
+       (darwin_decode_exception_message): Call darwin_check_message_ndr.
+       Handle SIGTRAP addressed to an unknown task (when a task spawned).
+       (darwin_decode_notify_message): New function.
+       (darwin_decode_message): Handle unknown task.
+       (darwin_deallocate_threads): New function from darwin_mourn_inferior.
+       (darwin_mourn_inferior): Use darwin_deallocate_threads and
+       darwin_deallocate_exception_ports.
+       (darwin_deallocate_exception_ports): New function from
+       darwin_mourn_inferior.
+       (darwin_setup_exceptions): New function from darwin_attach_pid.
+       (darwin_setup_request_notification): Likewise.
+       (darwin_attach_pid): Call darwin_setup_request_notification and
+       darwin_setup_request_notification.
+
+2016-11-08  Tom Tromey  <tom@tromey.com>
+
+       * python/py-framefilter.c (py_print_frame): Use
+       get_addr_from_python.  Check for errors when getting line number.
+
+2016-11-08  Yao Qi  <yao.qi@linaro.org>
+
+       * ada-lang.h (ada_val_print): Remove second parameter.  Remove
+       const from "struct value *".
+       * ada-valprint.c (print_field_values): Remove const from
+       "struct value *".
+       (val_print_packed_array_elements): Likewise.
+       (print_variant_part): Likewise.
+       (ada_val_print_string): Likewise.
+       (ada_val_print_gnat_array): Likewise.
+       (ada_val_print_ptr): Likewise.
+       (ada_val_print_num): Likewise.
+       (ada_val_print_enum): Likewise.
+       (ada_val_print_flt): Likewise.
+       (ada_val_print_union): Likewise.
+       (ada_val_print_struct_union): Likewise.
+       (ada_val_print_ref): Likewise.
+       (ada_val_print_1): Remove second parameter.  Remove const from
+       "struct value *".
+       (ada_val_print): Likewise.
+       * c-lang.h (c_val_print): Likewise.
+       * c-valprint.c (c_val_print_array): Remove const from
+       "struct value *".
+       (c_val_print_ptr): Likewise.
+       (c_val_print_struct): Likewise.
+       (c_val_print_union): Likewise.
+       (c_val_print_int): Likewise.
+       (c_val_print_memberptr): Likewise.
+       (c_val_print): Remove second parameter.  Remove const from
+       "struct value *".  All callers updated.
+       * cp-valprint.c (cp_print_value): Remove const from
+       "struct value *".
+       (cp_print_value_fields): Likewise.
+       (c_val_print_value): Likewise.
+       * d-lang.h (d_val_print): Remove second parameter.  Remove const
+       from "struct value *".
+       * d-valprint.c (dynamic_array_type): Likewise.
+       (d_val_print): Likewise.
+       * f-lang.h (f_val_print): Likewise.
+       * f-valprint.c (f_val_print): Likewise.
+       * go-lang.h (go_val_print): Likewise.
+       * go-valprint.c (print_go_string): Likewise.
+       (go_val_print): Likewise.
+       * language.c (unk_lang_val_print): Likewise.
+       * language.h (struct language_defn) <la_val_print>: Likewise.
+       Update comments.
+       (LA_VAL_PRINT): Remove.
+       * m2-lang.h (m2_val_print): Remove const from
+       "struct value *".
+       * m2-valprint.c (m2_print_array_contents): Likewise.
+       (m2_val_print): Likewise.
+       * p-lang.h (pascal_val_print): Remove second parameter.  Remove
+       const from "struct value *".
+       (pascal_object_print_value_fields): Likewise.
+       * p-valprint.c (pascal_val_print): Likewise.
+       (pascal_object_print_value_fields): Likewise.
+       (pascal_object_print_value): Likewise.
+       * rust-lang.c (rust_get_disr_info): Likewise.
+       (val_print_struct): Likewise.
+       (rust_val_print): Likewise.
+       * valprint.c (generic_val_print_array): Likewise.
+       (generic_val_print_ptr): Likewise.
+       (generic_val_print_memberptr): Likewise.
+       (generic_val_print_ref): Likewise.
+       (generic_val_print_enum): Likewise.
+       (generic_val_print_flags): Likewise.
+       (generic_val_print_func): Likewise.
+       (generic_val_print_bool): Likewise.
+       (generic_val_print_int): Likewise.
+       (generic_val_print_char): Likewise.
+       (generic_val_print_float): Likewise.
+       (generic_val_print_decfloat): Likewise.
+       (generic_val_print_complex): Likewise.
+       (generic_val_print): Likewise.
+       (val_print): Likewise.
+       (common_val_print): Likewise.
+       (val_print_type_code_flags): Likewise.
+       (val_print_scalar_formatted): Likewise.
+       (val_print_array_elements): Likewise.
+       * valprint.h (val_print_array_elements): Update declaration.
+       (val_print_scalar_formatted): Likewise.
+       (generic_val_print): Likewise.
+       * value.h (val_print): Likewise.
+
+2016-11-08  Yao Qi  <yao.qi@linaro.org>
+
+       * mt-tdep.c (mt_registers_info): Call
+       get_frame_register_value instead of
+       deprecated_frame_register_read.
+       * sh64-tdep.c (sh64_do_register): Likewise.
+
+2016-11-08  Pedro Alves  <palves@redhat.com>
+
+       * ax.h (agent_expr_p): Delete.
+       (DEF_VEC_P (agent_expr_p)): Delete.
+       * breakpoint.c (build_target_condition_list)
+       (build_target_command_list): Adjust to use of std::vector.
+       (bp_location_dtor): Remove now unnecessary VEC_free calls.
+       * breakpoint.h: Include <vector>.
+       (struct bp_target_info) <conditions, tcommands>: Now
+       std::vector's.
+       * remote.c (remote_add_target_side_condition): bp_tgt->conditions
+       is now a std::vector; adjust.
+       (remote_add_target_side_commands, remote_insert_breakpoint):
+       bp_tgt->tcommands is now a std::vector; adjust.
+
+2016-11-08  Pedro Alves  <palves@redhat.com>
+
+       * ax-gdb.c (is_nontrivial_conversion): Use agent_expr_up.
+       (gen_trace_for_var, gen_trace_for_expr, gen_eval_for_expr)
+       (gen_trace_for_return_address, gen_printf): Use and return an
+       agent_expr_up.  Don't use make_cleanup_free_agent_expr.
+       (agent_eval_command_one, maint_agent_printf_command): Use
+       agent_expr_up.  Don't use make_cleanup_free_agent_expr.
+       * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
+       (gen_trace_for_return_address, gen_eval_for_expr, gen_printf): Use
+       agent_expr_up.
+       * ax-general.c (new_agent_expr): Rename to ...
+       (agent_expr::agent_expr): ... this, and now a constructor.
+       (free_agent_expr): Rename to ...
+       (agent_expr::~agent_exp): ... this, and now a destructor.
+       (do_free_agent_expr_cleanup, make_cleanup_free_agent_expr):
+       Delete.
+       * ax.h (struct agent_expr): Add ctor/dtor.
+       (agent_expr_up): New typedef.
+       (new_agent_expr, free_agent_expr, make_cleanup_free_agent_expr):
+       Delete declarations.
+       * breakpoint.c (parse_cond_to_aexpr): Use and return an
+       agent_expr_up.  Don't use make_cleanup_free_agent_expr.
+       (build_target_condition_list): Adjust to use agent_expr_up.
+       (parse_cmd_to_aexpr): Use and return an agent_expr_up.  Don't use
+       make_cleanup_free_agent_expr.
+       (build_target_command_list): Adjust to use agent_expr_up.
+       (force_breakpoint_reinsertion): Adjust to use agent_expr_up.
+       (bp_location_dtor): Remove unnecessary free_agent_expr and xfree
+       calls.
+       * breakpoint.h (struct bp_target_info) <cond_bytecode,
+       cmd_bytecode>: Now agent_expr_up's.
+       * remote.c (remote_download_tracepoint): Adjust to use
+       agent_expr_up and remove use of make_cleanup_free_agent_expr.
+       * tracepoint.c (validate_actionline, collect_symbol): Adjust to
+       use agent_expr_up and remove uses of make_cleanup_free_agent_expr.
+       (collection_list::~collection_list): Call delete instead of
+       free_agent_expr.
+       (encode_actions_1): Adjust to use agent_expr_up and remove uses of
+       make_cleanup_free_agent_expr.
+       (add_aexpr): Change parameter type to agent_expr_up; Return a raw
+       agent_expr pointer.
+
+2016-11-08  Pedro Alves  <palves@redhat.com>
+
+       * ada-lang.c (ada_name_for_lookup, type_as_string): Use and return
+       std::string.
+       (type_as_string_and_cleanup): Delete.
+       (ada_lookup_struct_elt_type): Use type_as_string.
+       * ada-lang.h (ada_name_for_lookup): Now returns std::string.
+       * ada-varobj.c (ada_varobj_scalar_image): Return a std::string.
+       (ada_varobj_describe_child): Make 'child_name' and
+       'child_path_expr' parameters std::string pointers.
+       (ada_varobj_describe_struct_child, ada_varobj_describe_ptr_child):
+       Likewise, and use string_printf.
+       (ada_varobj_describe_simple_array_child)
+       (ada_varobj_describe_child): Likewise.
+       (ada_varobj_get_name_of_child, ada_varobj_get_path_expr_of_child)
+       (ada_varobj_get_value_image)
+       (ada_varobj_get_value_of_array_variable)
+       (ada_varobj_get_value_of_variable, ada_name_of_variable)
+       (ada_name_of_child, ada_path_expr_of_child)
+       (ada_value_of_variable): Now returns std::string.  Use
+       string_printf.
+       (ada_value_of_child): Adjust.
+       * break-catch-throw.c (check_status_exception_catchpoint): Adjust
+       to use std::string.
+       * breakpoint.c (watch_command_1): Adjust to use std::string.
+       * c-lang.c (c_get_string): Adjust to use std::string.
+       * c-typeprint.c (print_name_maybe_canonical): Use std::string.
+       * c-varobj.c (varobj_is_anonymous_child): Use ==/!= std::string
+       operators.
+       (c_name_of_variable): Now returns a std::string.
+       (c_describe_child): The 'cname' and 'cfull_expression' output
+       parameters are now std::string pointers.  Adjust.
+       (c_name_of_child, c_path_expr_of_child, c_value_of_variable)
+       (cplus_number_of_children): Adjust to use std::string and
+       string_printf.
+       (cplus_name_of_variable): Now returns a std::string.
+       (cplus_describe_child): The 'cname' and 'cfull_expression' output
+       parameters are now std::string pointers.  Adjust.
+       (cplus_name_of_child, cplus_path_expr_of_child)
+       (cplus_value_of_variable): Now returns a std::string.
+       * cp-abi.c (cplus_typename_from_type_info): Return std::string.
+       * cp-abi.h (cplus_typename_from_type_info): Return std::string.
+       (struct cp_abi_ops) <get_typename_from_type_info>: Return
+       std::string.
+       * cp-support.c (inspect_type): Use std::string.
+       (cp_canonicalize_string_full, cp_canonicalize_string_no_typedefs)
+       (cp_canonicalize_string): Return std::string and adjust.
+       * cp-support.h (cp_canonicalize_string)
+       (cp_canonicalize_string_no_typedefs, cp_canonicalize_string_full):
+       Return std::string.
+       * dbxread.c (read_dbx_symtab): Use std::string.
+       * dwarf2read.c (dwarf2_canonicalize_name): Adjust to use std::string.
+       * gdbcmd.h (lookup_struct_elt_type): Adjust to use std::string.
+       * gnu-v3-abi.c (gnuv3_get_typeid): Use std::string.
+       (gnuv3_get_typename_from_type_info): Return a std::string and
+       adjust.
+       (gnuv3_get_type_from_type_info): Adjust to use std::string.
+       * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
+       std::string.
+       * infcmd.c (print_return_value_1): Adjust to use std::string.
+       * linespec.c (find_linespec_symbols): Adjust to
+       demangle_for_lookup API change.  Use std::string.
+       * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_set_format)
+       (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
+       (mi_cmd_var_info_expression, mi_cmd_var_evaluate_expression)
+       (mi_cmd_var_assign, varobj_update_one): Adjust to use std::string.
+       * minsyms.c (lookup_minimal_symbol): Use std::string.
+       * python/py-varobj.c (py_varobj_iter_next): Use new instead of
+       XNEW.  vitem->name is a std::string now, adjust.
+       * rust-exp.y (convert_ast_to_type, convert_name): Adjust to use
+       std::string.
+       * stabsread.c (define_symbol): Adjust to use std::string.
+       * symtab.c (demangle_for_lookup): Now returns 'const char *'.  Add
+       a demangle_result_storage parameter.  Use it for storage.
+       (lookup_symbol_in_language)
+       (lookup_symbol_in_objfile_from_linkage_name): Adjust to new
+       demangle_for_lookup API.
+       * symtab.h (struct demangle_result_storage): New type.
+       (demangle_for_lookup): Now returns 'const char *'.  Add a
+       demangle_result_storage parameter.
+       * typeprint.c (type_to_string): Return std::string and use
+       ui_file_as_string.
+       * value.h (type_to_string): Change return type to std::string.
+       * varobj-iter.h (struct varobj_item) <name>: Now a std::string.
+       (varobj_iter_delete): Use delete instead of xfree.
+       * varobj.c (create_child): Return std::string instead of char * in
+       output parameter.
+       (name_of_variable, name_of_child, my_value_of_variable): Return
+       std::string instead of char *.
+       (varobj_create, varobj_get_handle): Constify 'objname' parameter.
+       Adjust to std::string fields.
+       (varobj_get_objname): Return a const char * instead of a char *.
+       (varobj_get_expression): Return a std::string.
+       (varobj_list_children): Adjust to use std::string.
+       (varobj_get_type): Return a std::string.
+       (varobj_get_path_expr): Return a const char * instead of a char *.
+       Adjust to std::string fields.
+       (varobj_get_formatted_value, varobj_get_value): Return a
+       std::string.
+       (varobj_set_value): Change type of 'expression' parameter to
+       std::string.  Use std::string.
+       (install_new_value): Use std::string.
+       (delete_variable_1): Adjust to use std::string.
+       (create_child): Change the 'name' parameter to a std::string
+       reference.  Swap it into the new item's name.
+       (create_child_with_value): Swap item's name into the new child's
+       name.  Use string_printf.
+       (new_variable): Use new instead of XNEW.
+       (free_variable): Don't xfree fields that are now std::string.
+       (name_of_variable, name_of_child): Now returns std::string.
+       (value_of_root): Adjust to use std::string.
+       (my_value_of_variable, varobj_value_get_print_value): Return
+       and use std::string.
+       (varobj_value_get_print_value): Adjust to use ui_file_as_string
+       and std::string.
+       * varobj.h (struct varobj) <name, path_expr, obj_name,
+       print_value>: Now std::string's.
+       <name_of_variable, name_of_child, path_expr_of_child,
+       value_of_variable>: Return std::string.
+       (varobj_create, varobj_get_handle): Constify 'objname' parameter.
+       (varobj_get_objname): Return a const char * instead of a char *.
+       (varobj_get_expression, varobj_get_type): Return a std::string.
+       (varobj_get_path_expr): Return a const char * instead of a char *.
+       (varobj_get_formatted_value, varobj_get_value): Return a
+       std::string.
+       (varobj_set_value): Constify 'expression' parameter.
+       (varobj_value_get_print_value): Return a std::string.
+
+2016-11-08  Pedro Alves  <palves@redhat.com>
+
+       * language.c (add_language): Use ui_file_as_string and adjust to
+       use std::string.
+
+2016-11-08  Pedro Alves  <palves@redhat.com>
+           Tom Tromey  <tom@tromey.com>
+
+       * rust-lang.c (struct disr_info) <name>: Now a std::string.
+       (rust_get_disr_info): Use ui_file_as_string and adjust to use
+       std::string.
+       (rust_val_print): Adjust to use std::string.
+
+2016-11-08  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (print_target_wait_results): Use ui_file_as_string and
+       std::string.
+
+2016-11-08  Pedro Alves  <palves@redhat.com>
+
+       * ada-lang.c (type_as_string): Use ui_file_as_string and return
+       std::string.
+       (type_as_string_and_cleanup): Delete.
+       (ada_lookup_struct_elt_type): Use type_as_string.
+
+2016-11-08  Pedro Alves  <palves@redhat.com>
+
+       * gdbarch.sh (verify_gdbarch): Use ui_file_as_string and
+       std::string.
+       * gdbarch.c: Regenerate.
+
 2016-11-08  Pedro Alves  <palves@redhat.com>
 
        * c-exp.y (OPERATOR NEW): Adjust to use ui_file_as_string and
 
 2016-10-29  Manish Goregaokar  <manish@mozilla.com>
 
-    * rust-exp.y: Parse `sizeof(exp)` as `UNOP_SIZEOF`
+       * rust-exp.y: Parse `sizeof(exp)` as `UNOP_SIZEOF`.
 
 2016-10-28  Manish Goregaokar  <manish@mozilla.com>
 
-    * rust-lang.c (rust_union_is_untagged): Add function to
-    check if a union is an untagged unioni
-    (rust_val_print): Handle printing of untagged union values
-    (rust_print_type): Handle printing of untagged union types
-    (rust_evaluate_subexp): Handle evaluating field
-    access on untagged unions
+       * rust-lang.c (rust_union_is_untagged): Add function to check if a
+       union is an untagged union.
+       (rust_val_print): Handle printing of untagged union values.
+       (rust_print_type): Handle printing of untagged union types.
+       (rust_evaluate_subexp): Handle evaluating field access on untagged
+       unions.
 
 2016-10-27  Manish Goregaokar  <manish@mozilla.com>
 
-    * rust-lang.c (rust_get_disr_info): Treat univariant enums
-    without discriminants as encoded enums with a real field
-    * rust-lang.c (rust_evaluate_subexp): Handle field access
-    on encoded struct-like enums
+       * rust-lang.c (rust_get_disr_info): Treat univariant enums without
+       discriminants as encoded enums with a real field.
+       * rust-lang.c (rust_evaluate_subexp): Handle field access on
+       encoded struct-like enums.
 
 2016-11-03  Yao Qi  <yao.qi@linaro.org>
 
 
 2016-07-06  Manish Goregaokar  <manish@mozilla.com>
 
-       * rust-lang.c (rust_subscript): Allow subscripting pointers
+       * rust-lang.c (rust_subscript): Allow subscripting pointers.
 
 2016-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
This page took 0.036903 seconds and 4 git commands to generate.