1 2017-12-11 Ulrich Weigand <uweigand@de.ibm.com>
3 * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
4 instead of mpfr_set_si to convert mantissa bits.
6 2017-12-11 Xavier Roirand <roirand@adacore.com>
7 Joel Brobecker <brobecker@adacore.com>
9 * ada-lang.c (ada_tag_value_at_base_address): Change the way
10 tagged type base address is computed.
11 (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
13 (ada_language_arch_info): Set the ada_primitive_type_storage_offset
14 element of lai->primitive_type_vector.
16 2017-12-08 Pedro Alves <palves@redhat.com>
18 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
20 (check_match): Adjust to use mock_index directly.
21 (check_find_bounds_finds)
22 (test_mapped_index_find_name_component_bounds): Adjust to work
23 with a mapped_index_base.
25 2017-12-08 Pedro Alves <palves@redhat.com>
27 * dwarf2read.c (struct mapped_index_base): New, partially factored
29 (struct mapped_index): ... this. Inherit mapped_index_base.
30 (mapped_index::symbol_name_slot_invalid):
31 (mapped_index::symbol_name_at): Add override marker.
32 (mapped_index::symbol_name_count): New.
33 (struct mapped_debug_names): Inherit mapped_index_base.
34 (mapped_debug_names::symbol_name_at): New.
35 (mapped_debug_names::symbol_name_count): New.
36 (mapped_index::find_name_components_bounds): Rename to ...
37 (mapped_index_base::find_name_components_bounds): ... this.
38 (mapped_index::build_name_components): Rename to ...
39 (mapped_index_base::build_name_components): ... this. Adjust to
40 use mapped_index_base::symbol_name_count and
41 mapped_index_base::symbol_name_slot_invalid.
42 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
43 instead of a mapped_index. Use
44 dw2_expand_symtabs_matching_symbol.
46 2017-12-08 Pedro Alves <palves@redhat.com>
48 * dwarf2read.c (mapped_index::symbol_table_slot): New.
49 (mapped_index::address_table): Now a gdb::array_view of const
51 (mapped_index::symbol_table): Now a gdb::array_view of
53 (mapped_index::address_table_size)
54 (mapped_index::symbol_table_slots): Delete.
55 (create_addrmap_from_index): Adjust.
56 (find_slot_in_mapped_hash): Adjust.
57 (read_index_from_section): Adjust.
58 (dwarf2_read_index): Adjust.
60 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
61 Pedro Alves <palves@redhat.com>
63 * defs.h (elf_sym_fns_debug_names): New declaration.
64 * dwarf2read.c: Include "hash_enum.h".
65 (mapped_debug_names): New.
66 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
68 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
69 (struct dwz_file): Add debug_names.
70 (dwarf2_per_objfile::locate_sections): Handle debug_names and
72 (locate_dwz_sections): Handle debug_names.
73 (create_signatured_type_table_from_debug_names)
74 (create_addrmap_from_aranges): New.
75 (dwarf2_read_index): Update function comment.
76 (dwarf5_augmentation): Moved up.
77 (read_debug_names_from_section, create_cus_from_debug_names_list)
78 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
79 (dwarf5_djb_hash): Moved up.
80 (dw2_debug_names_iterator): New.
81 (read_indirect_string_at_offset): New declaration.
82 (mapped_debug_names::namei_to_name)
83 (dw2_debug_names_iterator::find_vec_in_debug_names)
84 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
85 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
86 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
88 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
89 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
90 (debug_names::build): Update djb_hash caller.
91 (write_debug_names): Move out and rename augmentation to
93 * elfread.c (elf_sym_fns_debug_names): New.
94 * psymtab.h (dwarf2_debug_names_functions): New declaration.
95 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
97 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
99 2017-12-08 Pedro Alves <palves@redhat.com>
101 * common/hash_enum.h: New file.
103 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
105 * dwarf2read.c (create_cu_from_index_list): New from ...
106 (create_cus_from_index_list): ... this function, use it.
107 (dw_expand_symtabs_matching_file_matcher)
108 (dw2_expand_symtabs_matching_one): New from ...
109 (dw2_expand_symtabs_matching): ... this function, use them.
111 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
113 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
114 declarations from elfread.c.
115 (dwarf2_initialize_objfile): Change return value.
116 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
117 declarations to defs.h.
118 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
119 * symfile.h (dwarf2_initialize_objfile): Change return type.
121 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
122 Pedro Alves <palves@redhat.com>
124 * contrib/gdb-add-index.sh (index): Rename to ...
126 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
127 Support also .debug_names and .debug_str.
128 * dwarf2read.c: Include cmath, set, list.
129 (INDEX_SUFFIX): Rename to ...
130 (INDEX4_SUFFIX): ... here.
131 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
132 (file_write(FILE *, const void *, size_t)): New.
133 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
134 (data_buf::append_unsigned_leb128, data_buf::empty): New.
135 (data_buf::file_write): Use ::file_write.
136 (data_buf::c_str, dwarf5_djb_hash, debug_names)
137 (check_dwarf64_offsets): New.
138 (psyms_seen_size, write_gdbindex): New from
139 write_psymtabs_to_index code.
140 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
141 (enum dw_index_kind): New.
142 (write_psymtabs_to_index): New parameter index_kind. Support
143 filename_str and out_file_str. Move code to write_gdbindex,
144 possibly call write_debug_names.
145 (save_gdb_index_command): New parameter -dwarf-5.
146 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
148 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
149 Pedro Alves <palves@redhat.com>
151 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
153 (GDB_ADD_INDEX): New variable.
154 <$want_index>: Call $GDB_ADD_INDEX.
156 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
158 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
159 "expression_up" inside the TRY block.
161 2017-12-08 Yao Qi <yao.qi@linaro.org>
163 * breakpoint.c (update_watchpoint): Call
166 2017-12-08 Yao Qi <yao.qi@linaro.org>
168 * breakpoint.c (adjust_breakpoint_address): Call
171 2017-12-08 Yao Qi <yao.qi@linaro.org>
173 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
174 significant_addr_bit.
175 * gdbarch.sh (significant_addr_bit): New.
176 * gdbarch.c, gdbarch.h: Re-generated.
177 * target.c (memory_xfer_partial): Call address_significant.
178 * utils.c (address_significant): New function.
179 * utils.h (address_significant): Declare.
181 2017-12-08 Tom Tromey <tom@tromey.com>
183 * printcmd.c (ui_printf): Update. Use std::vector.
184 * common/format.h (struct format_piece): Add constructor.
186 (class format_pieces): New class.
187 (parse_format_string, free_format_pieces)
188 (free_format_pieces_cleanup): Remove.
189 * common/format.c (format_pieces::format_pieces): Rename from
190 parse_format_string. Update.
191 (free_format_pieces, free_format_pieces_cleanup): Remove.
192 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
193 * ax-gdb.h (gen_printf): Remove argument.
194 * ax-gdb.c (gen_printf): Remove "frags" argument.
195 (maint_agent_printf_command): Update. Use std::vector.
197 2017-12-08 Yao Qi <yao.qi@linaro.org>
200 * linespec.c (minsym_found): Set sal.section.
202 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
204 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
206 2017-12-07 Keith Seitz <keiths@redhat.com>
209 * location.c (string_to_explicit_location): When terminating
210 parsing early, break out of enclosing loop instead of returning.
212 2017-12-07 Keith Seitz <keiths@redhat.com>
214 * NEWS (New commands): Mention set/show print type nested-type-limit.
215 * c-typeprint.c (c_type_print_base): Print out nested types.
216 * dwarf2read.c (struct typedef_field_list): Rename to ...
217 (struct decl_field_list): ... this. Change all uses.
218 (struct field_info) <nested_types_list, nested_types_list_count>:
220 (add_partial_symbol): Look for nested type definitions in C++, too.
221 (dwarf2_add_typedef): Rename to ...
222 (dwarf2_add_type_defn): ... this.
223 (type_can_define_types): New function.
224 Update assertion to use type_can_define_types.
225 Permit NULL for a field's name.
226 (process_structure_scope): Handle child DIEs of types that can
228 Copy the list of nested types into the type struct.
229 * gdbtypes.h (struct typedef_field): Rename to ...
230 (struct decl_field): ... this. Change all uses.
231 [is_protected, is_private]: New fields.
232 (struct cplus_struct_type) <nested_types, nested_types_count>: New
234 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
235 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
236 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
237 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
238 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
239 default value for print_nested_type_limit.
240 (print_nested_type_limit): New static variable.
241 (set_print_type_nested_types, show_print_type_nested_types): New
243 (_initialize_typeprint): Register new commands for set/show
244 `print-nested-type-limit'.
245 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
248 2017-12-07 Tom Tromey <tom@tromey.com>
250 PR breakpoints/22511:
251 * breakpoint.c (commands_command_1): Don't throw an exception when
252 no commands have been read.
254 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
257 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
260 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
262 * common/selftest.h (struct selftest): Add virtual destructor.
264 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
266 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
267 over basic location code. Implement explicit location keywords.
268 (bppy_init_validate_args): New function.
269 * NEWS: Document Python explicit breakpoint locations.
271 2017-12-07 Joel Brobecker <brobecker@adacore.com>
273 * MAINTAINERS: Restore target entries for m68hc11-elf,
274 score-elf and xstormy16-elf, incorrectly removed in a previous
275 patch meant to only update the list of active maintainers.
277 2017-12-06 Pedro Alves <palves@redhat.com>
279 * break-catch-syscall.c (insert_catch_syscall)
280 (remove_catch_syscall): Adjust to pass reference to
281 inf_data->syscalls_counts directly via gdb::array_view.
282 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
284 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
285 * remote.c (remote_set_syscall_catchpoint): Likewise.
286 * target-debug.h (target_debug_print_bool): New.
287 (define target_debug_print_gdb_array_view_const_int): New.
288 * target-delegates.c: Regenerate.
289 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
290 gdb::array_view and bool.
291 (target_set_syscall_catchpoint): Likewise.
293 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
295 * break-catch-syscall.c (catch_syscall_completer): Get pointers
296 to syscall group strings after building the string vector.
298 2017-12-06 Pedro Alves <palves@redhat.com>
300 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
301 "qXfer:features:read"" is disabled.
302 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
303 Check packet_config_support instead of packet->support directly.
305 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
307 * target-descriptions.c (struct tdesc_feature) <registers>: Use
308 tdesc_reg_up typedef.
309 (struct target_desc) <features>: Use tdesc_feature_up typedef.
311 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
313 * target-descriptions.c (struct tdesc_type): Use default
317 (struct tdesc_type_builtin): New.
318 (struct tdesc_type_vector): New.
319 (struct tdesc_type_with_fields): New.
320 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
321 (tdesc_gdb_type): Remove.
322 (tdesc_register_type): Adjust.
323 (tdesc_create_vector): Create tdesc_type_vector.
324 (tdesc_create_struct): Create tdesc_type_with_fields.
325 (tdesc_set_struct_size): Change parameter type.
326 (tdesc_create_union): Create tdesc_type_with_fields.
327 (tdesc_create_flags): Likewise.
328 (tdesc_create_enum): Likewise.
329 (tdesc_add_field): Change parameter type.
330 (tdesc_add_typed_bitfield): Likewise.
331 (tdesc_add_bitfield): Likewise.
332 (tdesc_add_flag): Likewise.
333 (tdesc_add_enum_value): Likewise.
334 (print_c_tdesc) <visit>: Remove overload with tdesc_type
335 parameter, add overloads for tdesc_type_builtin,
336 tdesc_type_with_fields and tdesc_type_vector.
337 <m_printed_type>: Remove.
338 <m_printed_element_type, m_printed_type_with_fields>: Add.
339 * target-descriptions.h (tdesc_create_enum): Change return type.
340 (tdesc_add_typed_bitfield): Change parameter type.
341 (tdesc_add_enum_value): Change parameter type.
342 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
343 type to tdesc_type_with_fields.
344 (tdesc_start_struct): Adjust.
345 (tdesc_start_flags): Adjust.
346 (tdesc_start_enum): Adjust.
347 (tdesc_start_field): Adjust.
348 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
349 (struct tdesc_type_vector): Forward-declare.
350 (struct tdesc_type_with_fields): Forward-declare.
351 (tdesc_create_struct): Change return type.
352 (tdesc_create_union): Likewise.
353 (tdesc_create_flags): Likewise.
354 (tdesc_add_field): Change parameter type.
355 (tdesc_set_struct_size): Likewise.
356 (tdesc_add_bitfield): Likewise.
357 (tdesc_add_flag): Likewise.
358 * features: Re-generate C files.
360 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
362 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
363 (struct tdesc_arch_reg): Add constructor.
364 (DEF_VEC_O (tdesc_arch_reg)): Remove.
365 (struct tdesc_arch_data): Initialize fields.
366 <arch_regs>: Change type to std::vector.
367 (target_find_description): Adjust.
368 (tdesc_find_type): Adjust.
369 (tdesc_data_init): Call tdesc_arch_data constructor.
370 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
371 (tdesc_data_cleanup): Free data with delete.
372 (tdesc_numbered_register): Adjust.
373 (tdesc_find_arch_register): Adjust.
374 (tdesc_use_registers): Adjust.
376 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
378 * target-descriptions.c (tdesc_type_field): Remove typedef.
379 (DEF_VEC_O (tdesc_type_field)): Remove.
380 (struct tdesc_type_field): Add constructor.
381 <name>: Change type to std::string.
382 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
384 <~tdesc_type>: Destroy vector if the type kind uses it.
385 <u::u::fields>: Change type to std::vector.
386 (tdesc_gdb_type): Adjust.
387 (tdesc_add_field): Adjust.
388 (tdesc_add_typed_bitfield): Adjust.
389 (tdesc_add_field): Adjust.
390 (tdesc_add_enum_value): Adjust.
391 (class print_c_tdesc) <visit>: Adjust.
393 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
395 * target-descriptions.c (struct tdesc_type) <name>: Change type
397 <~tdesc_type>: Don't manually free name.
398 <operator==>: Adjust.
399 (tdesc_named_type): Adjust.
400 (tdesc_find_type): Adjust.
401 (tdesc_gdb_type): Adjust.
402 (class print_c_tdesc) <visit>: Adjust.
404 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
406 * target-descriptions.c (tdesc_type_p): Remove typedef.
407 (DEF_VEC_P (tdesc_type_p)): Remove.
408 (struct tdesc_feature) <types>: Change type to std::vector.
409 <~tdesc_feature>: Replace with default implementation.
411 (tdesc_named_type): Adjust.
412 (tdesc_create_vector): Adjust.
413 (tdesc_create_struct): Adjust.
414 (tdesc_create_union): Adjust.
415 (tdesc_create_flags): Adjust.
416 (tdesc_create_enum): Adjust.
418 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
420 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
421 type of name_ parameter, adjust to std::string change.
422 <name, group, type>: Change type to std::string.
423 <~tdesc_reg>: Replace with default implementation.
424 <operator==>: Adjust.
425 (tdesc_find_register_early): Adjust.
426 (tdesc_register_name): Adjust.
427 (tdesc_register_type): Adjust.
428 (tdesc_register_in_reggroup_p): Adjust.
429 (class print_c_tdesc) <visit>: Adjust.
430 (class print_c_feature) <visit>: Adjust.
431 * features/arc-arcompact.c: Re-generate.
432 * features/arc-v2.c: Re-generate.
434 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
436 * target-descriptions.c (tdesc_reg_p): Remove typedef.
437 (DEF_VEC_P (tdesc_reg_p)): Remove.
438 (struct tdesc_feature) <registers>: Change type to std::vector.
439 <~tdesc_feature>: Don't manually free registers.
441 <operator==>: Adjust.
442 (tdesc_has_registers): Adjust.
443 (tdesc_find_register_early): Adjust.
444 (tdesc_use_registers): Adjust.
445 (tdesc_create_reg): Adjust.
447 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
449 * target-descriptions.c (tdesc_feature) <name>: Change type to
451 <~tdesc_feature>: Don't manually free name.
452 <operator==>: Adjust.
453 (tdesc_find_feature): Adjust.
454 (tdesc_feature_name): Adjust.
455 (class print_c_tdesc) <visit_pre>: Adjust.
456 (class print_c_feature) <visit_pre>: Adjust.
458 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
460 * target-descriptions.c (tdesc_feature_p): Remove typedef.
461 (DEF_VEC_P (tdesc_feature_p)): Remove.
462 (struct target_desc) <features>: Change type to std::vector.
463 <~target_desc>: Replace with default implementation.
465 <operator==>: Adjust.
466 (tdesc_has_registers): Adjust.
467 (tdesc_find_feature): Adjust.
468 (tdesc_use_registers): Adjust.
469 (tdesc_create_feature): Adjust.
471 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
473 * target-descriptions.c (arch_p): Remove typedef.
474 (DEF_VEC_P (arch_p)): Remove.
475 (struct target_desc) <compatible>: Change type to std::vector.
476 <~target_desc>: Don't manually free compatible.
477 (tdesc_compatible_p): Adjust.
478 (tdesc_add_compatible): Adjust.
479 (class print_c_tdesc) <visit_pre>: Adjust.
481 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
483 * target-descriptions.c (property_s): Remove typedef.
484 (DEF_VEC_O (property_s)): Remove.
485 (struct target_desc) <properties>: Make an std::vector.
486 <~target_desc>: Don't manually free properties.
487 (tdesc_property): Adjust.
488 (set_tdesc_property): Adjust.
489 (class print_c_tdesc) <visit_pre>: Adjust.
491 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
493 * common/gdb_assert.h (gdb_static_assert): Redefine using
496 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
498 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
500 (ada_is_redundant_range_encoding): Likewise.
501 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
503 * alpha-tdep.c (alpha_software_single_step): Likewise.
504 * arm-tdep.c (_initialize_arm_tdep): Likewise.
505 * auto-load.c (info_auto_load_cmd): Likewise.
506 * break-catch-syscall.c (insert_catch_syscall): Likewise.
507 (remove_catch_syscall): Likewise.
508 * breakpoint.c (condition_completer): Likewise.
509 (clear_command): Likewise.
510 (update_breakpoint_locations): Likewise.
511 * btrace.c (btrace_disable): Likewise.
512 (btrace_teardown): Likewise.
513 (btrace_maint_update_pt_packets): Likewise.
514 (maint_btrace_clear_cmd): Likewise.
515 * cli/cli-decode.c (lookup_cmd_1): Likewise.
516 (lookup_cmd_composition): Likewise.
517 * cli/cli-dump.c (scan_filename): Likewise.
518 (restore_command): Likewise.
519 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
520 * compile/compile-object-load.c (compile_object_load): Likewise.
521 * compile/compile-object-run.c (compile_object_run): Likewise.
522 * compile/compile.c (compile_to_object): Likewise.
523 * completer.c (filename_completer): Likewise.
524 (complete_files_symbols): Likewise.
525 (complete_expression): Likewise.
526 * corelow.c (core_open): Likewise.
527 * ctf.c (ctf_start): Likewise.
528 (ctf_write_status): Likewise.
529 (ctf_write_uploaded_tsv): Likewise.
530 (ctf_write_definition_end): Likewise.
531 (ctf_open_dir): Likewise.
532 (ctf_xfer_partial): Likewise.
533 (ctf_trace_find): Likewise.
534 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
536 * dwarf2loc.c (allocate_piece_closure): Likewise.
537 (indirect_pieced_value): Likewise.
538 (dwarf2_evaluate_loc_desc_full): Likewise.
539 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
540 (dw2_expand_symtabs_matching): Likewise.
541 (dw2_map_symbol_filenames): Likewise.
542 (read_and_check_comp_unit_head): Likewise.
543 (read_cutu_die_from_dwo): Likewise.
544 (lookup_dwo_unit): Likewise.
545 (read_comp_units_from_section): Likewise.
546 (dwarf2_compute_name): Likewise.
547 (handle_DW_AT_stmt_list): Likewise.
548 (create_cus_hash_table): Likewise.
549 (create_dwp_v2_section): Likewise.
550 (dwarf2_rnglists_process): Likewise.
551 (dwarf2_ranges_process): Likewise.
552 (dwarf2_record_block_ranges): Likewise.
553 (is_vtable_name): Likewise.
554 (read_formatted_entries): Likewise.
555 (skip_form_bytes): Likewise.
556 * elfread.c (elf_symtab_read): Likewise.
557 * exec.c (exec_file_command): Likewise.
558 * f-valprint.c (f_val_print): Likewise.
559 (info_common_command_for_block): Likewise.
560 * guile/guile.c (initialize_scheme_side): Likewise.
561 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
562 * guile/scm-cmd.c (cmdscm_completer): Likewise.
563 (gdbscm_register_command_x): Likewise.
564 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
565 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
566 * guile/scm-ports.c (file_port_magic): Likewise.
567 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
568 (ppscm_pretty_print_one_value): Likewise.
569 (ppscm_print_children): Likewise.
570 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
571 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
572 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
573 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
574 * i386-tdep.c (i386_register_reggroup_p): Likewise.
575 * infcmd.c (run_command_1): Likewise.
576 (until_next_fsm_clean_up): Likewise.
577 * linespec.c (linespec_complete): Likewise.
578 (find_label_symbols): Likewise.
579 * m2-valprint.c (m2_val_print): Likewise.
580 * memattr.c (require_user_regions): Likewise.
581 (lookup_mem_region): Likewise.
582 (disable_mem_command): Likewise.
583 (mem_delete): Likewise.
584 * mep-tdep.c (mep_register_name): Likewise.
585 (mep_analyze_prologue): Likewise.
586 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
587 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
588 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
589 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
590 * minidebug.c (lzma_open): Likewise.
591 * minsyms.c (lookup_minimal_symbol): Likewise.
592 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
593 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
594 (mips_o64_return_value): Likewise.
595 (mips_single_step_through_delay): Likewise.
596 (_initialize_mips_tdep): Likewise.
597 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
598 (nios2_software_single_step): Likewise.
599 * parse.c (find_minsym_type_and_address): Likewise.
600 * psymtab.c (psym_relocate): Likewise.
601 * python/py-breakpoint.c (bppy_get_commands): Likewise.
602 (gdbpy_breakpoint_modified): Likewise.
603 * python/py-infevents.c (create_inferior_call_event_object):
605 * python/py-record-btrace.c (btpy_list_item): Likewise.
606 * python/py-type.c (typy_str): Likewise.
607 * python/py-value.c (valpy_call): Likewise.
608 * python/python.c (do_start_initialization): Likewise.
609 * record-btrace.c (record_btrace_insn_history_range): Likewise.
610 (record_btrace_call_history_range): Likewise.
611 (record_btrace_record_method): Likewise.
612 (record_btrace_xfer_partial): Likewise.
613 (btrace_get_frame_function): Likewise.
614 * record-full.c (record_full_open): Likewise.
615 * record.c (get_context_size): Likewise.
616 * registry.h (DEFINE_REGISTRY): Likewise.
617 * remote-fileio.c (remote_fileio_request): Likewise.
618 * remote.c (remote_update_thread_list): Likewise.
619 (remote_check_symbols): Likewise.
620 (remote_commit_resume): Likewise.
621 (remote_interrupt): Likewise.
622 (remote_insert_breakpoint): Likewise.
623 (compare_sections_command): Likewise.
624 * rust-exp.y (super_name): Likewise.
625 (lex_string): Likewise.
626 (convert_ast_to_type): Likewise.
627 (convert_ast_to_expression): Likewise.
628 * rust-lang.c (rust_print_struct_def): Likewise.
629 (rust_print_type): Likewise.
630 (rust_evaluate_subexp): Likewise.
631 * rx-tdep.c (rx_register_type): Likewise.
632 * ser-event.c (serial_event_clear): Likewise.
633 * serial.c (serial_open): Likewise.
634 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
635 * symfile.c (section_is_overlay): Likewise.
636 (overlay_unmapped_address): Likewise.
637 (overlay_mapped_address): Likewise.
638 (simple_overlay_update_1): Likewise.
639 (simple_overlay_update): Likewise.
640 * symtab.c (symbol_find_demangled_name): Likewise.
641 (search_symbols): Likewise.
642 * target-descriptions.c (tdesc_predefined_type): Likewise.
643 * target.c (target_commit_resume): Likewise.
644 * thread.c (print_selected_thread_frame): Likewise.
645 * top.c (new_ui_command): Likewise.
646 (gdb_readline_no_editing): Likewise.
647 * tracefile-tfile.c (tfile_open): Likewise.
648 * tracepoint.c (create_tsv_from_upload): Likewise.
649 * utils.c (quit): Likewise.
650 (defaulted_query): Likewise.
651 * valarith.c (value_concat): Likewise.
652 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
653 * xml-tdesc.c (target_fetch_description_xml): Likewise.
654 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
655 (xtensa_pseudo_register_write): Likewise.
657 2017-12-04 Tom Tromey <tom@tromey.com>
659 * NEWS: Mention Rust trait object inspection.
661 2017-12-04 Pedro Alves <palves@redhat.com>
664 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
665 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
666 (vex2_prefix_p, vex3_prefix_p): New functions.
667 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
669 (fixup_riprel): Set VEX3.!B.
671 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
673 * target.h (mem_region_vector): Remove.
674 (struct target_ops) <to_memory_map>: Change return type to
675 std::vector<mem_region>.
676 * target-debug.h (target_debug_print_mem_region_vector): Rename
678 (target_debug_print_std_vector_mem_region): ... this.
679 * target-delegates.c: Re-generate.
681 2017-12-03 Pedro Alves <palves@redhat.com>
683 * make-target-delegates (munge_type): Also munge '<', '>', and
684 ':'. Avoid double underscores in identifiers, and trailing
687 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
689 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
690 * target-delegates.c: Regenerate.
692 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
694 * common/poison.h (XDELETE): Fix typo.
696 2017-12-01 Andrew Cagney <cagney@redhat.com>
697 Joel Brobecker <brobecker@adacore.com>
698 Sergio Durigan Junior <sergiodj@redhat.com>
700 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
702 * coffread.c (coff_symfile_read): Do not map over sections with
703 'coff_locate_sections' if readnever is on.
704 * dwarf2read.c (dwarf2_has_info): Return 0 if
706 * elfread.c (elf_symfile_read): Do not map over sections with
707 'elf_locate_sections' if readnever is on.
708 * main.c (validate_readnow_readnever): New function.
709 (captured_main_1): Add support for --readnever.
710 (print_gdb_help): Document --readnever.
711 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
713 * symfile.c (readnever_symbol_files): New global.
714 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
715 'READNEVER_SYMBOL_FILES' is set.
716 (validate_readnow_readnever): New function.
717 (symbol_file_command): Handle '-readnever' option.
718 Call 'validate_readnow_readnever'.
719 (add_symbol_file_command): Handle '-readnever' option.
720 Call 'validate_readnow_readnever'.
721 (_initialize_symfile): Document new '-readnever' option for
722 both 'symbol-file' and 'add-symbol-file' commands.
723 * top.h (readnever_symbol_files): New extern global.
724 * xcoffread.c (xcoff_initial_scan): Do not read debug
725 information if readnever is on.
727 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
729 * symfile.c (symbol_file_command): Call
730 'symbol_file_add_main_1' only after processing all command
732 (add_symbol_file_command): Modify logic to make arguments
733 position-independent.
735 2017-12-01 Joel Brobecker <brobecker@adacore.com>
737 * ada-lang.c (symbol_list_obstack): Delete.
738 (resolve_subexp): Make sure "candidates" gets xfree'ed.
739 (ada_lookup_symbol_list_worker): Remove the limitation that
740 the result is only good until the next call, now making it
741 the responsibility of the caller to free the result when no
742 longer needed. Adjust the function's intro comment accordingly.
743 (ada_lookup_symbol_list): Adjust the function's intro comment.
744 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
745 (ada_lookup_encoded_symbol, get_var_value): Likewise.
746 (_initialize_ada_language): Remove symbol_list_obstack
748 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
749 (write_var_or_type, write_name_assoc): Likewise.
751 2017-12-01 Tom Tromey <tom@tromey.com>
753 * Makefile.in (all_deps_files): New variable.
754 Include .Po files using all_deps_files.
756 2017-12-01 Joel Brobecker <brobecker@adacore.com>
758 * MAINTAINERS: Update list of maintainers, moving those who
759 stepped down or became inactive to the "Past Maintainers"
762 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
764 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
766 (NEW_PROC_API): Remove.
767 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
769 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
770 * configure: Regenerate.
771 * config.in: Regenerate.
772 * gdbserver/configure: Regenerate.
773 * gdbserver/config.in: Regenerate.
775 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
777 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
779 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
781 * proc-api.c: Remove !NEW_PROC_API support.
782 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
783 Remove tests for macros always defined on Solaris.
784 * proc-events.c: Remove !NEW_PROC_API support.
785 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
786 HAVE_SYS_USER_H tests.
787 (init_syscall_table): Remove non-Solaris syscalls.
788 Remove tests for syscalls present on all Solaris versions.
789 Add missing Solaris 10+ syscalls.
790 (signal_table): Remove non-Solaris signals.
791 Remove tests for signals present on all Solaris versions.
792 (fault_table): Remove non-Solaris faults.
793 Remove tests for faults present on all Solaris versions.
794 * proc-flags.c: Remove !NEW_PROC_API support.
795 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
796 Remove non-Solaris flags.
797 * proc-why.c: Remove !NEW_PROC_API support.
798 (pr_why_table): Remove meaningless comments.
799 Remove tests for reasons present on all Solaris versions.
801 (proc_prettyfprint_why): Likewise.
803 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
804 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
805 Remove WA_READ test, IRIX watchpoint support.
806 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
808 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
809 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
811 Remove CTL_PROC_NAME_FMT tests.
812 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
814 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
815 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
816 (proc_modify_flag): Replace GDBRESET by PCUNSET.
817 Remove PR_ASYNC, PR_KLC tests.
818 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
819 (proc_parent_pid): Remove PCWATCH etc. tests.
820 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
822 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
823 Remove SYS_lwpcreate || SYS_lwp_create test.
824 (proc_get_current_thread): Likewise.
825 [PIOCNTHR && PIOCTLIST]: Remove.
826 [PIOCLSTATUS]: Remove.
827 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
828 [PRFS_STOPEXEC]: Remove.
829 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
830 (syscall_is_exit): Likewise.
831 (syscall_is_exec): Likewise.
832 (syscall_is_lwp_create): Likewise.
833 Remove SYS_syssgi support.
834 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
835 [SYS_syssgi]: Remove.
836 Remove non-Solaris cases, conditionals.
837 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
839 (procfs_init_inferior) [SYS_syssgi]: Remove.
840 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
841 (procfs_inferior_created) [SYS_syssgi]: Remove.
842 (procfs_set_watchpoint): Remove !AIX5 test.
843 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
845 (mappingflags) [MA_PHYS]: Remove.
846 (info_mappings_callback): Remove PCAGENT test.
847 Remove PIOCOPENLWP || PCAGENT test.
849 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
851 * sol-thread.c (info_solthreads): Constify args.
854 2017-11-29 John Baldwin <jhb@FreeBSD.org>
856 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
858 2017-11-29 Joel Brobecker <brobecker@adacore.com>
860 * ada-lang.c (to_fixed_range_type): Make sure that the size
861 of the range type being returned is the same as the size
862 of the range type being fixed.
864 2017-11-29 Pedro Alves <palves@redhat.com>
867 * NEWS: Mention setting breakpoints on functions with C++ ABI
869 * completer.h (completion_match_for_lcd) <match,
870 mark_ignored_range>: New methods.
871 <finish>: Consider ignored ranges.
872 <clear>: Clear ignored ranges.
873 <m_ignored_ranges, m_finished_storage>: New fields.
874 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
875 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
876 completion_match_for_lcd pointer to strncmp_iw_with_mode.
877 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
878 * language.c (default_symbol_name_matcher): Pass the
879 completion_match_for_lcd pointer to strncmp_iw_with_mode.
880 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
881 * utils.c (skip_abi_tag): New function.
882 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
884 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
887 2017-11-29 Pedro Alves <palves@redhat.com>
890 * NEWS: Mention setting breakpoints on functions with C++ ABI
892 * completer.h (completion_match_for_lcd) <match,
893 mark_ignored_range>: New methods.
894 <finish>: Consider ignored ranges.
895 <clear>: Clear ignored ranges.
896 <m_ignored_ranges, m_finished_storage>: New fields.
897 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
898 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
899 completion_match_for_lcd pointer to strncmp_iw_with_mode.
900 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
901 * language.c (default_symbol_name_matcher): Pass the
902 completion_match_for_lcd pointer to strncmp_iw_with_mode.
903 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
904 * utils.c (skip_abi_tag): New function.
905 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
907 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
910 2017-11-29 Pedro Alves <palves@redhat.com>
912 * NEWS: Mention that breakpoints on C++ functions are now set on
913 on all namespaces/classes by default, and mention "break
915 * ax-gdb.c (agent_command_1): Adjust to pass a
916 symbol_name_match_type to new_linespec_location.
917 * breakpoint.c (parse_breakpoint_sals): Adjust to
918 get_linespec_location's return type change.
919 (strace_marker_create_sals_from_location): Adjust to pass a
920 symbol_name_match_type to new_linespec_location.
921 (strace_marker_decode_location): Adjust to get_linespec_location's
923 (strace_command): Adjust to pass a symbol_name_match_type to
924 new_linespec_location.
925 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
926 mention "-qualified".
927 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
928 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
930 (complete_address_and_linespec_locations): New parameter
931 'match_type'. Pass it down.
932 (explicit_options): Add "-qualified".
933 (collect_explicit_location_matches): Pass the requested match type
934 to the linespec completers. Handle MATCH_QUALIFIED.
935 (location_completer): Handle "-qualified" combined with linespecs.
936 * cp-support.c (cp_search_name_hash): New.
937 (cp_symbol_name_matches_1): Implement wild matching for C++.
938 (cp_fq_symbol_name_matches): Reimplement.
939 (cp_get_symbol_name_matcher): Return different matchers depending
940 on the lookup name's match type.
941 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
942 * cp-support.h (cp_search_name_hash): New declaration.
944 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
946 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
948 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
949 pass a symbol_name_match_type to new_linespec_location.
950 * linespec.c (linespec_parse_basic): Lookup function symbols using
951 the parser's symbol name match type.
952 (convert_explicit_location_to_linespec): New
953 symbol_name_match_type parameter. Pass it down to
954 find_linespec_symbols.
955 (convert_explicit_location_to_sals): Pass the location's name
956 match type to convert_explicit_location_to_linespec.
957 (parse_linespec): New match_type parameter. Save it in the
959 (linespec_parser_new): Default to symbol_name_match_type::WILD.
960 (linespec_complete_function): New symbol_name_match_type
962 (complete_linespec_component): Pass down the parser's recorded
964 (linespec_complete_label): New symbol_name_match_type parameter.
966 (linespec_complete): New symbol_name_match_type parameter. Save
967 it in the parser and pass it down. Adjust to
968 get_linespec_location's prototype change.
969 (find_function_symbols, find_linespec_symbols): New
970 symbol_name_match_type parameter. Pass it down instead of
971 assuming symbol_name_match_type::WILD.
972 * linespec.h (linespec_complete, linespec_complete_function)
973 (linespec_complete_label): New symbol_name_match_type parameter.
974 * location.c (event_location::linespec_location): Now a struct
976 (EL_LINESPEC): Adjust.
977 (initialize_explicit_location): Default to
978 symbol_name_match_type::WILD.
979 (new_linespec_location): New symbol_name_match_type parameter.
980 Record it in the location.
981 (get_linespec_location): Now returns a struct linespec_location.
982 (new_explicit_location): Also copy func_name_match_type.
983 (explicit_to_string_internal)
984 (string_to_explicit_location): Handle "-qualified".
985 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
986 Copy symbol_name_match_type fields.
987 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
989 (event_location_to_string): Adjust to LINESPEC_LOCATION type
990 change. Handle "-qualfied".
991 (string_to_explicit_location): Handle "-qualified".
992 (string_to_event_location_basic): New symbol_name_match_type
993 parameter. Pass it down.
994 (string_to_event_location): Handle "-qualified".
995 * location.h (struct linespec_location): New.
996 (explicit_location::func_name_match_type): New field.
997 (new_linespec_location): Now returns a const linespec_location *.
998 (string_to_event_location_basic): New symbol_name_match_type
1000 (explicit_completion_info::saw_explicit_location_option): New
1002 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
1003 symbol_name_match_type to new_linespec_location.
1004 * python/py-breakpoint.c (bppy_init): Likewise.
1005 * python/python.c (gdbpy_decode_line): Likewise.
1007 2017-11-29 Pedro Alves <palves@redhat.com>
1009 * ada-lang.c (ada_lookup_name_info::matches): Change type of
1010 parameter from completion_match to completion_match_result.
1012 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
1013 * completer.c (completion_tracker::maybe_add_completion): Add
1014 match_for_lcd parameter and use it.
1015 (completion_tracker::add_completion): Likewise.
1016 * completer.h (class completion_match_for_lcd): New class.
1017 (completion_match_result::match_for_lcd): New field.
1018 (completion_match_result::set_match): New method.
1019 (completion_tracker): Add comments.
1020 (completion_tracker::add_completion): Add match_for_lcd parameter.
1021 (completion_tracker::reset_completion_match_result): Reset
1023 (completion_tracker::maybe_add_completion): Add match_for_lcd
1025 (completion_tracker::m_lowest_common_denominator_unique): Extend
1027 * cp-support.c (cp_symbol_name_matches_1)
1028 (cp_fq_symbol_name_matches): Change type of parameter from
1029 completion_match to completion_match_result. Adjust.
1030 * language.c (default_symbol_name_matcher): Change type of
1031 parameter from completion_match to completion_match_result.
1033 * language.h (completion_match_for_lcd): Forward declare.
1034 (default_symbol_name_matcher): Change type of parameter from
1035 completion_match to completion_match_result.
1036 * symtab.c (compare_symbol_name): Adjust.
1037 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1038 * symtab.h (ada_lookup_name_info::matches): Change type of
1039 parameter from completion_match to completion_match_result.
1040 (symbol_name_matcher_ftype): Likewise, and update comments.
1042 2017-11-29 Pedro Alves <palves@redhat.com>
1044 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1045 * minsyms.c (msymbol_is_text): Delete.
1046 (msymbol_is_function): New function.
1047 * minsyms.h (msymbol_is_text): Delete.
1048 (msymbol_is_function): New declaration.
1049 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1051 2017-11-29 Tom Tromey <tom@tromey.com>
1053 * Makefile.in (distclean): Handle the case where rmdir fails.
1055 2017-11-29 Tom Tromey <tom@tromey.com>
1057 * symfile.c (_initialize_symfile): Update usage text for
1058 add-symbol-file, symbol-file, load.
1060 2017-11-29 Tom Tromey <tom@tromey.com>
1062 * symfile.c (add_symbol_file_command): Error if some arguments to
1063 -s are missing. Change unrecognized-argument error message.
1064 (_initialize_symfile): Fix usage text for add-symbol-file.
1066 2017-11-27 Tom Tromey <tom@tromey.com>
1068 * Makefile.in (REMOTE_OBS): Remove.
1069 (SFILES): Remove remote sources.
1070 (COMMON_SFILES): Add remote sources.
1071 (ALLDEPFILES): Remove dcache.c.
1073 2017-11-27 Tom Tromey <tom@tromey.com>
1075 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1077 (SFILES): Use SUBDIR_TARGET_SRCS.
1078 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1079 (CONFIG_SRC_SUBDIR): Add target.
1080 (%.o): Remove target rule.
1082 2017-11-27 Tom Tromey <tom@tromey.com>
1084 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1085 registry.o, thread-fsm.o, debug.o.
1086 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1087 thread-fsm.c, debug.c.
1089 2017-11-27 Tom Tromey <tom@tromey.com>
1091 * Makefile.in (COMMON_SFILES): New.
1092 (SFILES): Move some entries to COMMON_SFILES.
1093 (COMMON_OBS): Use COMMON_SFILES.
1095 2017-11-27 Tom Tromey <tom@tromey.com>
1097 * Makefile.in (YYFILES): Update comment.
1100 2017-11-27 Tom Tromey <tom@tromey.com>
1102 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1103 (CONFIG_SRC_SUBDIR): Add python.
1104 (%.o): Remove python rule.
1105 (python/%.o): New rule.
1106 * configure: Rebuild.
1107 * configure.ac (CONFIG_OBS): Refer to python/python.o
1109 2017-11-27 Tom Tromey <tom@tromey.com>
1111 * configure: Rebuild.
1112 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1113 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1114 (CONFIG_SRC_SUBDIR): Add guile.
1115 (%.o): Remove guile rule.
1117 2017-11-27 Tom Tromey <tom@tromey.com>
1119 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1120 (%.o): Remove unittests rule.
1121 (CONFIG_SRC_SUBDIR): Add unittests.
1123 2017-11-27 Tom Tromey <tom@tromey.com>
1125 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1126 (CONFIG_SRC_SUBDIR): Add tui.
1127 (%.o): Remove tui rule.
1129 2017-11-27 Tom Tromey <tom@tromey.com>
1131 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1132 (%.o): Remove compile rule.
1133 (CONFIG_SRC_SUBDIR): Add compile.
1135 2017-11-27 Tom Tromey <tom@tromey.com>
1137 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1138 (%.o): Remove mi rule.
1139 (CONFIG_SRC_SUBDIR): Add mi.
1140 (COMMON_OBS): Use mi/mi-common.o
1142 2017-11-27 Tom Tromey <tom@tromey.com>
1144 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1145 (%.o): Remove cli rule.
1146 (CONFIG_SRC_SUBDIR): Add cli.
1148 2017-11-27 Tom Tromey <tom@tromey.com>
1150 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1151 * configure: Rebuild.
1152 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1153 (CONFIG_DEP_SUBDIR): New variable.
1154 (%.o): Add order-only dependency.
1155 ($(CONFIG_DEP_SUBDIR)): New target.
1157 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1160 * findcmd.c (_initialize_mem_search): Update find command help
1163 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1165 * python/python.c (do_start_initialization): Change progname
1166 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1169 2017-11-26 Tom Tromey <tom@tromey.com>
1171 * common/format.h: Add include guards.
1173 2017-11-26 Tom Tromey <tom@tromey.com>
1175 * nat/linux-personality.h (class
1176 maybe_disable_address_space_randomization): New class.
1177 (maybe_disable_address_space_randomization): Don't declare
1179 * nat/linux-personality.c (restore_personality)
1180 (make_disable_asr_cleanup): Remove.
1181 (maybe_disable_address_space_randomization): Now a constructor.
1182 (~maybe_disable_address_space_randomization): New destructor.
1183 * linux-nat.c (linux_nat_create_inferior): Update.
1185 2017-11-26 Tom Tromey <tom@tromey.com>
1187 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1189 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1191 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1192 "cooked" register. Access only first four bytes of branch target
1195 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1198 * stap-probe.c (relocate_address): New function.
1199 (stap_probe::get_relocated_address): Use 'relocate_address'.
1200 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1202 (stap_probe::clear_semaphore): Likewise.
1204 2017-11-25 Pedro Alves <palves@redhat.com>
1206 * dictionary.c: Include "safe-ctype.h".
1207 * minsyms.c: Include "safe-ctype.h".
1208 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1210 2017-11-25 Pedro Alves <palves@redhat.com>
1212 * completer.c (complete_line_internal_1): Skip spaces until the
1213 start of the command.
1215 2017-11-24 Pedro Alves <palves@redhat.com>
1217 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1218 cp_fq_symbol_name_matches. Pass language_cplus to
1220 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1221 (selftests::test_cp_symbol_name_cmp): New.
1222 (_initialize_cp_support): Register "cp_symbol_name_matches"
1224 * language.c (default_symbol_name_matcher): Pass language_minimal
1225 to strncmp_iw_with_mode.
1226 * utils.c: Include "cp-support.h" and <algorithm>.
1227 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1228 (cp_is_operator): New functions.
1229 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1230 skip whitespace in the symbol name when the lookup name doesn't
1231 have spaces, and vice versa.
1232 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1233 * utils.h (strncmp_iw_with_mode): Add language parameter.
1235 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1237 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1239 (print_it_exception): If available, display the exception
1241 * NEWS: Document new feature.
1243 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1245 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1247 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1249 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1250 (dtrace_probe::is_enabled, dtrace_probe::enable)
1251 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1253 * probe.c (gen_ui_out_table_header_info)
1254 (print_ui_out_not_applicables): Remove keyword 'struct' at
1257 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1259 * configure.tgt: Add arch/aarch64.o
1261 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1263 * common/common-utils.h: Include poison.h.
1264 (xfree): Remove declaration, add definition with static_assert.
1265 * common/common-utils.c (xfree): Remove.
1266 * common/poison.h (IsMallocatable): Define.
1267 (IsFreeable): Define.
1268 (free): Delete for non-freeable types.
1270 (XNEW): Undef and redefine.
1272 (XCNEW): Undef and redefine.
1274 (XDELETE): Undef and redefine.
1276 (XNEWVEC): Undef and redefine.
1278 (XCNEWVEC): Undef and redefine.
1280 (XRESIZEVEC): Undef and redefine.
1282 (XDELETEVEC): Undef and redefine.
1284 (XNEWVAR): Undef and redefine.
1286 (XCNEWVAR): Undef and redefine.
1288 (XRESIZEVAR): Undef and redefine.
1290 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1292 * gdbthread.h (private_thread_info): Define structure type, add
1293 virtual pure destructor.
1294 (thread_info) <priv>: Change type to unique_ptr.
1295 <private_dtor>: Remove.
1296 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1297 (private_thread_info::~private_thread_info): Provide default
1299 (thread_info::~thread_info): Don't call private_dtor nor
1301 * aix-thread.c (private_thread_info): Rename to ...
1302 (aix_thread_info): ... this.
1303 (get_aix_thread_info): New.
1304 (sync_threadlists): Adjust.
1306 (aix_thread_resume): Adjust.
1307 (aix_thread_fetch_registers): Adjust.
1308 (aix_thread_store_registers): Adjust.
1309 (aix_thread_extra_thread_info): Adjust.
1310 * darwin-nat.h (private_thread_info): Rename to ...
1311 (darwin_thread_info): ... this.
1312 (get_darwin_thread_info): New.
1313 * darwin-nat.c (darwin_init_thread_list): Adjust.
1314 (darwin_check_new_threads): Adjust.
1315 (thread_info_from_private_thread_info): Adjust.
1316 * linux-thread-db.c (private_thread_info): Rename to ...
1317 (thread_db_thread_info): ... this, initialize fields.
1318 (get_thread_db_thread_info): New.
1319 <dying>: Change type to bool.
1320 (update_thread_state): Adjust to type rename.
1321 (record_thread): Adjust to type rename an use of unique_ptr.
1322 (thread_db_pid_to_str): Likewise.
1323 (thread_db_extra_thread_info): Likewise.
1324 (thread_db_thread_handle_to_thread_info): Likewise.
1325 (thread_db_get_thread_local_address): Likewise.
1326 * nto-tdep.h (private_thread_info): Rename to ...
1327 (nto_thread_info): ... this, initialize fields.
1328 (get_nto_thread_info): New.
1329 <name>: Change type to std::string.
1330 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1332 * nto-procfs.c (update_thread_private_data_name): Adjust to
1333 std::string change, allocate nto_private_thread_info with new.
1334 (update_thread_private_data): Adjust to unique_ptr.
1335 * remote.c (private_thread_info): Rename to ...
1336 (remote_thread_info): ... this, initialize data members with
1338 <extra, name>: Change type to std::string.
1339 <thread_handle>: Change type to non-pointer.
1340 (free_private_thread_info): Remove.
1341 (get_private_info_thread): Rename to...
1342 (get_remote_thread_info): ... this, change return type, adjust to
1343 use of unique_ptr, use remote_thread_info constructor.
1344 (remote_add_thread): Adjust.
1345 (get_private_info_ptid): Rename to...
1346 (get_remote_thread_info): ...this, change return type.
1347 (remote_thread_name): Use get_remote_thread_info, adjust to
1348 change to std::string.
1349 (struct thread_item) <~thread_item>: Remove.
1350 <thread_handle>: Make non pointer.
1351 (start_thread): Adjust to thread_item::thread_handle type
1353 (remote_update_thread_list): Adjust to type name change, move
1354 strings from temporary to long-lived object instead of
1356 (remote_threads_extra_info): Use get_remote_thread_info.
1357 (process_initial_stop_replies): Likewise.
1358 (resume_clear_thread_private_info): Likewise.
1359 (remote_resume): Adjust to type name change.
1360 (remote_commit_resume): Use get_remote_thread_info.
1361 (process_stop_reply): Adjust to type name change.
1362 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1363 (remote_stopped_by_hw_breakpoint): Likewise.
1364 (remote_stopped_by_watchpoint): Likewise.
1365 (remote_stopped_data_address): Likewise.
1366 (remote_core_of_thread): Likewise.
1367 (remote_thread_handle_to_thread_info): Use
1368 get_private_info_thread, adjust to thread_handle field type
1371 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1373 * remote.c (struct thread_item): Add constructor, disable copy
1374 construction and copy assignment, define default move
1375 construction and move assignment.
1376 <extra, name>: Change type to std::string.
1378 <thread_handle>: Make non-pointer.
1379 (thread_item_t): Remove typedef.
1380 (DEF_VEC_O(thread_item_t)): Remove.
1381 (threads_listing_context) <contains_thread>: New method.
1382 <remove_thread>: New method.
1383 <items>: Change type to std::vector.
1384 (clear_threads_listing_context): Remove.
1385 (threads_listing_context_remove): Remove.
1386 (remote_newthread_step): Use thread_item constructor, adjust to
1387 change to std::vector.
1388 (start_thread): Use thread_item constructor, adjust to change to
1390 (end_thread): Adjust to change to std::vector and std::string.
1391 (remote_get_threads_with_qthreadinfo): Use thread_item
1392 constructor, adjust to std::vector.
1393 (remote_update_thread_list): Adjust to change to std::vector and
1394 std::string, use threads_listing_context methods.
1395 (remove_child_of_pending_fork): Adjust.
1396 (remove_new_fork_children): Adjust.
1397 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1398 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1399 * unittests/rsp-low-selftests.c: New file.
1400 * common/rsp-low.h: Include common/byte-vector.h.
1401 (hex2bin): New overload.
1402 * common/rsp-low.c (hex2bin): New overload.
1404 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1406 * inferior.h (private_inferior): Define structure type, add
1407 virtual pure destructor.
1408 (inferior) <priv>: Change type to unique_ptr.
1409 * inferior.c (private_inferior::~private_inferior): Provide
1410 default implementation.
1411 (inferior::~inferior): Don't free priv field.
1412 (exit_inferior_1): Likewise.
1413 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1414 (darwin_exception_info): Remove typedef.
1415 (DEF_VEC_O (darwin_thread_t)); Remove.
1416 (private_inferior): Rename to ...
1417 (darwin_private_inferior): ... this, extend private_inferior.
1418 (get_darwin_inferior): New.
1419 <threads>: Change type to std::vector of darwin_thread_t pointers.
1420 * darwin-nat.c (darwin_check_new_threads): Adjust.
1421 (find_inferior_task_it): Adjust.
1422 (darwin_find_thread); Adjust.
1423 (darwin_suspend_inferior): Adjust.
1424 (darwin_resume_inferior): Adjust.
1425 (darwin_find_new_inferior): Adjust.
1426 (darwin_decode_notify_message): Adjust.
1427 (darwin_send_reply): Adjust.
1428 (darwin_resume_inferior_threads): Adjust.
1429 (darwin_suspend_inferior_threads): Adjust.
1430 (darwin_decode_message): Adjust.
1431 (darwin_wait): Adjust.
1432 (darwin_interrupt): Adjust.
1433 (darwin_deallocate_threads): Adjust.
1434 (darwin_mourn_inferior): Adjust, don't free private data.
1435 (darwin_reply_to_all_pending_messages): Adjust.
1436 (darwin_stop_inferior): Adjust.
1437 (darwin_setup_exceptions): Adjust.
1438 (darwin_kill_inferior): Adjust.
1439 (darwin_setup_request_notification): Adjust.
1440 (darwin_attach_pid): Adjust.
1441 (darwin_init_thread_list): Adjust.
1442 (darwin_setup_fake_stop_event): Adjust.
1443 (darwin_attach): Adjust.
1444 (darwin_detach): Adjust.
1445 (darwin_xfer_partial): Adjust.
1446 (set_enable_mach_exceptions): Adjust.
1447 (darwin_pid_to_exec_file): Adjust.
1448 (darwin_get_ada_task_ptid): Adjust.
1449 * darwin-nat-info.c (get_task_from_args): Adjust.
1450 (info_mach_ports_command): Adjust.
1451 (info_mach_region_command): Adjust.
1452 (info_mach_exceptions_command): Adjust.
1453 * remote.c (private_inferior): Rename to ...
1454 (remote_private_inferior): ... this, initialize fields.
1455 (get_remote_inferior); New.
1456 (remote_commit_resume): Use get_remote_inferior.
1457 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1459 2017-11-24 Pedro Alves <palves@redhat.com>
1461 * NEWS: Mention linespecs and explicit locations, and completion
1464 2017-11-24 Yao Qi <yao.qi@linaro.org>
1466 * regcache.c (regcache::dump): Remove footnote_register_size.
1468 2017-11-24 Yao Qi <yao.qi@linaro.org>
1470 * regcache.c (cooked_read_test): Add more test for readonly
1473 2017-11-24 Yao Qi <yao.qi@linaro.org>
1475 * gdbarch-selftests.c (test_target_has_registers): Move it to
1477 (test_target_has_stack): Likewise.
1478 (test_target_has_memory): Likewise.
1479 (test_target_prepare_to_store): Likewise.
1480 (test_target_store_registers): Likewise.
1481 (test_target_ops): Likewise.
1482 * regcache.c: Include selftest-arch.h and gdbthread.h.
1483 (target_ops_no_register): New class.
1484 (test_target_fetch_registers): New.
1485 (test_target_store_registers): New.
1486 (test_target_xfer_partial): New.
1487 (readwrite_regcache): New.
1488 (cooked_read_test): New.
1489 (_initialize_regcache): Register the test.
1490 * target.c: (test_target_has_registers): Moved from
1491 gdbarch-selftests.c.
1492 (test_target_has_stack): Likewise.
1493 (test_target_has_memory): Likewise.
1494 (test_target_prepare_to_store): Likewise.
1495 (test_target_store_registers): Likewise.
1496 * target.h (test_target_ops): New class.
1498 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1500 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1503 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1505 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1506 * arch/aarch64.c (aarch64_create_target_description): Create
1507 new target description.
1508 * features/Makefile: Add new files.
1509 * features/aarch64.c: Remove file.
1510 * features/aarch64-core.c: New autogenerated file.
1511 * features/aarch64-fpu.c: New autogenerated file.
1512 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1514 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1516 * Makefile.in: Add new files.
1517 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1518 aarch64_read_description.
1519 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1520 Call aarch64_read_description.
1521 * aarch64-tdep.c (aarch64_read_description): New function.
1522 (aarch64_gdbarch_init): Call aarch64_read_description.
1523 * aarch64-tdep.h (aarch64_read_description): New function.
1524 * arch/aarch64.c: New file.
1525 * configure.tgt: Add new files.
1527 2017-11-24 Yao Qi <yao.qi@linaro.org>
1529 * mi/mi-main.c (register_changed_p): Update.
1530 * value.c (value_contents_bits_eq): Change return type.
1531 (value_contents_eq): Likewise.
1532 * value.h: Update comments.
1534 2017-11-24 Yao Qi <yao.qi@linaro.org>
1536 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1537 local 'changed'. Remove error.
1538 (register_changed_p): Change return type to bool.
1540 2017-11-24 Yao Qi <yao.qi@linaro.org>
1542 * arch/tic6x.c: New file.
1543 * arch/tic6x.h: New file.
1544 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1545 tic6x-core.xml and tic6x-gp.xml.
1546 * features/tic6x-c6xp.c: Generated.
1547 * features/tic6x-core.c: Generated.
1548 * features/tic6x-gp.c: Generated.
1549 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1552 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1554 * mi/mi-main.c (list_available_thread_groups): Change map value
1555 type to std::vector.
1557 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1559 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1561 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1563 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1565 <children_requested>: ... this.
1566 (varobj_get_num_children, varobj_update): Adjust.
1568 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1570 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1571 (ada_value_has_mutated): Likewise.
1572 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1573 (c_is_path_expr_parent): Likewise.
1574 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1575 (mi_cmd_var_set_frozen): Likewise.
1576 (mi_cmd_var_update_iter): Likewise.
1577 (mi_cmd_var_update): Likewise.
1578 * varobj.c (pretty_printing): Likewise.
1579 (varobj_enable_pretty_printing): Likewise.
1580 (struct varobj_root) <floating, is_valid>: Likewise.
1581 (struct varobj_dynamic) <children_requested>: Likewise.
1582 (delete_variable): Likewise.
1583 (delete_variable_1): Likewise.
1584 (install_variable): Likewise.
1585 (update_type_if_necessary): Likewise.
1586 (install_new_value): Likewise.
1587 (value_of_root): Likewise.
1588 (is_root_p): Likewise.
1589 (varobj_create): Likewise.
1590 (varobj_delete): Likewise.
1591 (varobj_has_more): Likewise.
1592 (varobj_set_frozen): Likewise.
1593 (varobj_get_frozen): Likewise.
1594 (install_dynamic_child): Likewise.
1595 (dynamic_varobj_has_child_method): Likewise.
1596 (update_dynamic_varobj_children): Likewise.
1597 (varobj_get_num_children): Likewise.
1598 (varobj_list_children): Likewise.
1599 (is_path_expr_parent): Likewise.
1600 (varobj_default_is_path_expr_parent): Likewise.
1601 (varobj_is_dynamic_p): Likewise.
1602 (varobj_set_value): Likewise.
1603 (varobj_value_has_mutated): Likewise.
1604 (varobj_update): Likewise.
1605 (check_scope): Likewise.
1606 (value_of_root_1): Likewise.
1607 (varobj_value_get_print_value): Likewise.
1608 (varobj_editable_p): Likewise.
1609 (varobj_value_is_changeable_p): Likewise.
1610 (varobj_floating_p): Likewise.
1611 (varobj_default_value_is_changeable_p): Likewise.
1612 (varobj_invalidate_iter): Likewise.
1613 * varobj.h (struct varobj_update_result) <type_changed,
1614 children_changed, changed, value_installed>: Likewise.
1615 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1616 (struct lang_varobj_ops) <value_is_changeable_p,
1617 value_has_mutated, is_path_expr_parent>: Likewise.
1618 (varobj_delete): Likewise.
1619 (varobj_set_frozen): Likewise.
1620 (varobj_get_frozen): Likewise.
1621 (varobj_set_value): Likewise.
1622 (varobj_update): Likewise.
1623 (varobj_editable_p): Likewise.
1624 (varobj_floating_p): Likewise.
1625 (varobj_has_more): Likewise.
1626 (varobj_is_dynamic_p): Likewise.
1627 (varobj_default_value_is_changeable_p): Likewise.
1628 (varobj_value_is_changeable_p): Likewise.
1629 (varobj_is_anonymous_child): Likewise.
1630 (varobj_default_is_path_expr_parent): Likewise.
1632 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1634 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1635 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1636 <type_str>: Convert to 'std::string'.
1637 <expr>: Convert to 'expression_up'.
1638 (dtrace_probe_arg_s): Delete type and VEC.
1639 (dtrace_probe_enabler_s): Likewise.
1640 (struct dtrace_probe): Replace by...
1641 (class dtrace_static_probe_ops): ...this and...
1642 (class dtrace_probe): ...this.
1643 (dtrace_probe_is_linespec): Rename to...
1644 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1646 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1647 Adjust code. Create new instance of 'dtrace_probe'.
1648 (dtrace_build_arg_exprs): Rename to...
1649 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1651 (dtrace_get_probes): Rename to...
1652 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1654 (dtrace_get_arg): Rename to...
1655 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1657 (dtrace_probe_is_enabled): Rename to...
1658 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1660 (dtrace_get_probe_address): Rename to...
1661 (dtrace_probe::get_relocated_address): ...this. Adjust code
1663 (dtrace_get_probe_argument_count): Rename to...
1664 (dtrace_probe::get_argument_count): ...this. Adjust code to
1666 (dtrace_can_evaluate_probe_arguments): Rename to...
1667 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1669 (dtrace_evaluate_probe_argument): Rename to...
1670 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1672 (dtrace_compile_to_ax): Rename to...
1673 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1675 (dtrace_probe_destroy): Delete.
1676 (dtrace_type_name): Rename to...
1677 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1679 (dtrace_probe::get_static_ops): New method.
1680 (dtrace_gen_info_probes_table_header): Rename to...
1681 (dtrace_static_probe_ops::gen_info_probes_table_header):
1682 ...this. Adjust code to reflect change.
1683 (dtrace_gen_info_probes_table_values): Rename to...
1684 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1685 code to reflect change.
1686 (dtrace_enable_probe): Rename to...
1687 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1689 (dtrace_disable_probe): Rename to...
1690 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1692 (struct probe_ops dtrace_probe_ops): Delete.
1693 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1694 instead of 'info_probes_for_ops'.
1695 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1698 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1699 Simon Marchi <simark@simark.ca>
1701 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1703 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1704 <aexpr>: Change type to 'expression_up'.
1705 (stap_probe_arg_s): Delete type and VEC.
1706 (struct stap_probe): Delete. Replace by...
1707 (class stap_static_probe_ops): ...this and...
1708 (class stap_probe): ...this. Rename variables to add 'm_'
1709 prefix. Do not use 'union' for arguments anymore.
1710 (stap_get_expected_argument_type): Receive probe name instead
1711 of 'struct stap_probe'. Adjust code.
1712 (stap_parse_probe_arguments): Rename to...
1713 (stap_probe::parse_arguments): ...this. Adjust code to
1715 (stap_get_probe_address): Rename to...
1716 (stap_probe::get_relocated_address): ...this. Adjust code
1718 (stap_get_probe_argument_count): Rename to...
1719 (stap_probe::get_argument_count): ...this. Adjust code
1721 (stap_get_arg): Rename to...
1722 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1724 (can_evaluate_probe_arguments): Rename to...
1725 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1727 (stap_evaluate_probe_argument): Rename to...
1728 (stap_probe::evaluate_argument): ...this. Adjust code
1730 (stap_compile_to_ax): Rename to...
1731 (stap_probe::compile_to_ax): ...this. Adjust code to
1733 (stap_probe_destroy): Delete.
1734 (stap_modify_semaphore): Adjust comment.
1735 (stap_set_semaphore): Rename to...
1736 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1738 (stap_clear_semaphore): Rename to...
1739 (stap_probe::clear_semaphore): ...this. Adjust code to
1741 (stap_probe::get_static_ops): New method.
1742 (handle_stap_probe): Adjust code to create instance of
1744 (stap_get_probes): Rename to...
1745 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1747 (stap_probe_is_linespec): Rename to...
1748 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1750 (stap_type_name): Rename to...
1751 (stap_static_probe_ops::type_name): ...this. Adjust code to
1753 (stap_gen_info_probes_table_header): Rename to...
1754 (stap_static_probe_ops::gen_info_probes_table_header):
1755 ...this. Adjust code to reflect change.
1756 (stap_gen_info_probes_table_values): Rename to...
1757 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1758 code to reflect change.
1759 (struct probe_ops stap_probe_ops): Delete.
1760 (info_probes_stap_command): Use 'info_probes_for_spops'
1761 instead of 'info_probes_for_ops'.
1762 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1765 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1767 * break-catch-throw.c (fetch_probe_arguments): Use
1768 'probe.prob' instead of 'probe.probe'.
1769 * breakpoint.c (create_longjmp_master_breakpoint): Call
1770 'can_evaluate_arguments' and 'get_relocated_address' methods
1772 (create_exception_master_breakpoint): Likewise.
1773 (add_location_to_breakpoint): Use 'sal->prob' instead of
1775 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1777 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1778 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1780 (probe_key_free): Call 'delete' on probe.
1781 (check_exception_resume): Use 'probe.prob' instead of
1783 * location.c (string_to_event_location_basic): Call
1784 'probe_linespec_to_static_ops'.
1785 * probe.c (class any_static_probe_ops): New class.
1786 (any_static_probe_ops any_static_probe_ops): New variable.
1787 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1788 argument. Adjust code to reflect change.
1789 (parse_probes): Use 'static_probe_ops' instead of
1790 'probe_ops'. Adjust code to reflect change.
1791 (find_probes_in_objfile): Call methods to get name and
1792 provider from probe.
1793 (find_probe_by_pc): Use 'result.prob' instead of
1794 'result.probe'. Call 'get_relocated_address' method from
1796 (collect_probes): Adjust comment and argument list to receive
1797 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1798 reflect change. Call necessary methods from probe.
1799 (compare_probes): Call methods to get name and provider from
1801 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1802 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1803 adjust code accordingly.
1804 (print_ui_out_not_applicables): Likewise.
1805 (info_probes_for_ops): Rename to...
1806 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1807 as argument instead of 'probe_ops'. Adjust code. Call
1808 necessary methods from probe.
1809 (info_probes_command): Use 'info_probes_for_spops'.
1810 (enable_probes_command): Pass correct argument to
1811 'collect_probes'. Call methods from probe.
1812 (disable_probes_command): Likewise.
1813 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1814 (get_probe_argument_count): Move to
1815 'any_static_probe_ops::get_argument_count'.
1816 (can_evaluate_probe_arguments): Move to
1817 'any_static_probe_ops::can_evaluate_arguments'.
1818 (evaluate_probe_argument): Move to
1819 'any_static_probe_ops::evaluate_argument'.
1820 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1822 (probe_linespec_to_ops): Rename to...
1823 (probe_linespec_to_static_ops): ...this. Adjust code.
1824 (probe_any_is_linespec): Rename to...
1825 (any_static_probe_ops::is_linespec): ...this.
1826 (probe_any_get_probes): Rename to...
1827 (any_static_probe_ops::get_probes): ...this.
1828 (any_static_probe_ops::type_name): New method.
1829 (any_static_probe_ops::gen_info_probes_table_header): New
1831 (compute_probe_arg): Use 'pc_probe.prob' instead of
1832 'pc_probe.probe'. Call methods from probe.
1833 (compile_probe_arg): Likewise.
1834 (std::vector<const probe_ops *> all_probe_ops): Delete.
1835 (std::vector<const static_probe_ops *> all_static_probe_ops):
1837 (_initialize_probe): Use 'all_static_probe_ops' instead of
1839 * probe.h (struct info_probe_column) <field_name>: Delete
1841 (info_probe_column_s): Delete type and VEC.
1842 (struct probe_ops): Delete. Replace with...
1843 (class static_probe_ops): ...this and...
1844 (clas probe): ...this.
1845 (struct bound_probe) <bound_probe>: Delete extraneous
1846 newline. Adjust constructor to receive 'probe' instead of
1848 <probe>: Rename to...
1849 <prob>: ...this. Delete extraneous newline.
1850 <objfile>: Delete extraneous newline.
1851 (register_probe_ops): Delete unused prototype.
1852 (info_probes_for_ops): Rename to...
1853 (info_probes_for_spops): ...this. Adjust comment.
1854 (get_probe_address): Move to 'probe::get_address'.
1855 (get_probe_argument_count): Move to
1856 'probe::get_argument_count'.
1857 (can_evaluate_probe_arguments): Move to
1858 'probe::can_evaluate_arguments'.
1859 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1860 * solib-svr4.c (struct svr4_info): Adjust comment.
1861 (struct probe_and_action) <probe>: Rename to...
1863 (register_solib_event_probe): Receive 'probe' instead of
1864 'struct probe' as argument. Use 'prob' instead of 'probe'
1866 (solib_event_probe_action): Call 'get_argument_count' method
1867 from probe. Adjust comment.
1868 (svr4_handle_solib_event): Adjust comment. Call
1869 'evaluate_argument' method from probe.
1870 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1872 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1873 'struct probe'. Call 'can_evaluate_arguments' from probe.
1874 * symfile.h: Forward declare 'class probe' instead of 'struct
1876 * symtab.h: Likewise.
1877 (struct symtab_and_line) <probe>: Rename to...
1879 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1881 (stop_tracing): Likewise.
1883 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1885 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1886 trailing newline at end of string in call to warning.
1888 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1890 * osdata.h: Include vector isntead of vec.h.
1891 (osdata_column_s): Remove typedef.
1892 (struct osdata_column): Add constructor.
1893 <name, value>: Change type to std::string.
1894 (DEF_VEC_O (osdata_column_s)): Remove.
1895 (osdata_item_s): Remove typedef.
1896 (struct osdata_item) <columns>: Change type to std::vector.
1897 (DEF_VEC_O (osdata_item_s)): Remove.
1898 (struct osdata): Add constructor.
1899 <type>: Change type to std::string.
1900 <items>: Change type to std::vector.
1901 (osdata_p): Remove typedef.
1902 (DEF_VEC_P (osdata_p)): Remove.
1903 (osdata_parse): Return a unique_ptr.
1904 (osdata_free): Remove.
1905 (make_cleanup_osdata_free): Remove.
1906 (get_osdata): Return a unique_ptr.
1907 (get_osdata_column): Return pointer to std::string, take a
1908 reference to osdata_item as parameter.
1909 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1911 <property_name>: Change type to std::string.
1912 (osdata_start_osdata): Allocate osdata with new and adjust.
1913 (osdata_start_item): Adjust.
1914 (osdata_start_column): Adjust.
1915 (osdata_end_column): Adjust.
1916 (clear_parsing_data): Remove.
1917 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1918 (osdata_item_clear): Remove.
1919 (get_osdata): return a unique_ptr and adjust.
1920 (get_osdata_column): Return a pointer to std::string and adjust.
1921 (info_osdata): Adjust.
1922 * mi/mi-main.c: Include <map>.
1923 (free_vector_of_osdata_items): Remove.
1924 (list_available_thread_groups): Adjust, use std::map instead of
1927 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1929 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1932 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1934 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1936 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1938 * varobj.h (struct varobj_update_result): Add constructor, add
1939 move constructor, disable copy and assign, initialize fields.
1940 <newobj>: Change type to std::vector.
1941 (varobj_update): Return std::vector.
1942 * varobj.c (install_dynamic_child): Change VEC parameters to
1943 std::vector and adjust.
1944 (update_dynamic_varobj_children): Likewise.
1945 (varobj_update): Return std::vector and adjust.
1946 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1948 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1950 * varobj.h (struct varobj) <parent>: Remove const.
1951 <children>: Change type to std::vector.
1952 (varobj_list_children): Return std::vector const reference.
1953 (varobj_restrict_range): Change parameter type to std::vector
1955 * varobj.c (varobj_has_more): Adjust.
1956 (varobj_restrict_range): Change parameter type to std::vector
1957 const reference and adjust.
1958 (install_dynamic_child): Adjust.
1959 (update_dynamic_varobj_children): Adjust.
1960 (varobj_list_children): Return std::vector const reference and
1962 (varobj_add_child): Adjust.
1963 (update_type_if_necessary): Adjust.
1964 (varobj_update): Adjust.
1965 (delete_variable_1): Adjust.
1966 * ada-varobj.c (ada_value_has_mutated): Adjust.
1967 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1969 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1971 * varobj.h (struct varobj): Add constructor and destructor,
1973 * varobj.c (struct varobj_root): Initialize fields.
1974 (struct varobj_dynamic): Initialize fields.
1975 (varobj_create): Use unique_ptr instead of cleanup. Create
1976 varobj with new instead of new_root_variable.
1977 (delete_variable_1): Free variable with delete instead of
1979 (create_child_with_value): Create variable with new instead of
1981 (varobj::varobj): New.
1982 (varobj::~varobj): New (body mostly coming from free_variable).
1983 (new_variable): Remove.
1984 (free_variable): Remove.
1985 (do_free_variable_cleanup): Remove.
1986 (make_cleanup_free_variable): Remove.
1988 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1990 * core-regset.c: Remove file.
1991 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1993 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1995 * NEWS: Document use of GNU MPFR.
1998 * Makefile.in (LIBMPFR): Add define.
1999 (CLIBS): Add $(LIBMPFR).
2000 * configure.ac: Add --with-mpfr configure option.
2001 * configure: Regenerate.
2002 * config.in: Regenerate.
2004 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
2005 (class mpfr_float_ops): New type.
2006 (mpfr_float_ops::from_target): Two new overloaded functions.
2007 (mpfr_float_ops::to_target): Likewise.
2008 (mpfr_float_ops::to_string): New function.
2009 (mpfr_float_ops::from_string): Likewise.
2010 (mpfr_float_ops::to_longest): Likewise.
2011 (mpfr_float_ops::from_longest): Likewise.
2012 (mpfr_float_ops::from_ulongest): Likewise.
2013 (mpfr_float_ops::to_host_double): Likewise.
2014 (mpfr_float_ops::from_host_double): Likewise.
2015 (mpfr_float_ops::convert): Likewise.
2016 (mpfr_float_ops::binop): Likewise.
2017 (mpfr_float_ops::compare): Likewise.
2018 (get_target_float_ops): Use mpfr_float_ops if available.
2020 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2022 * target-float.c: Do not include <math.h>.
2023 Include <cmath> and <limits>.
2024 (DOUBLEST): Do not define.
2025 (class target_float_ops): New type.
2026 (class host_float_ops): New templated type.
2027 (class decimal_float_ops): New type.
2029 (floatformat_to_doublest): Rename to ...
2030 (host_float_ops<T>::from_target): ... this. Use template type T
2031 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2032 (host_float_ops<T>::from_target): New overload using a type argument.
2033 (floatformat_from_doublest): Rename to ...
2034 (host_float_ops<T>::to_target): ... this. Use template type T
2035 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2036 (host_float_ops<T>::to_target): New overload using a type argument.
2037 (floatformat_printf_format): New function.
2038 (struct printf_length_modifier): New templated type.
2039 (floatformat_to_string): Rename to ...
2040 (host_float_ops<T>::to_string): ... this. Use type instead of
2041 floatformat argument. Use floatformat_printf_format and
2042 printf_length_modifier. Remove special handling of invalid numbers,
2043 infinities and NaN (moved to target_float_to_string).
2044 (struct scanf_length_modifier): New templated type.
2045 (floatformat_from_string): Rename to ...
2046 (host_float_ops<T>::from_string): ... this. Use type instead of
2047 floatformat argument. Use scanf_length_modifier.
2048 (floatformat_to_longest): Rename to ...
2049 (host_float_ops<T>::to_longest): ... this. Use type instead of
2050 floatformat argument. Handle out-of-range values deterministically.
2051 (floatformat_from_longest): Rename to ...
2052 (host_float_ops<T>::from_longest): ... this. Use type instead of
2053 floatformat argument.
2054 (floatformat_from_ulongest): Rename to ...
2055 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2056 floatformat argument.
2057 (floatformat_to_host_double): Rename to ...
2058 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2059 floatformat argument.
2060 (floatformat_from_host_double): Rename to ...
2061 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2062 floatformat argument.
2063 (floatformat_convert): Rename to ...
2064 (host_float_ops<T>::convert): ... this. Use type instead of
2065 floatformat arguments. Remove handling of no-op conversions.
2066 (floatformat_binop): Rename to ...
2067 (host_float_ops<T>::binop): ... this. Use type instead of
2068 floatformat arguments.
2069 (floatformat_compare): Rename to ...
2070 (host_float_ops<T>::compare): ... this. Use type instead of
2071 floatformat arguments.
2073 (match_endianness): Use type instead of length/byte_order arguments.
2074 (set_decnumber_context): Likewise.
2075 (decimal_from_number): Likewise. Update calls.
2076 (decimal_to_number): Likewise.
2077 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2078 (decimal_float_ops::to_host_double): New dummy function.
2079 (decimal_float_ops::from_host_double): Likewise.
2080 (decimal_to_string): Rename to ...
2081 (decimal_float_ops::to_string): ... this. Use type instead of
2082 length/byte_order arguments. Update calls.
2083 (decimal_from_string): Rename to ...
2084 (decimal_float_ops::from_string): ... this. Use type instead of
2085 length/byte_order arguments. Update calls.
2086 (decimal_from_longest): Rename to ...
2087 (decimal_float_ops::from_longest): ... this. Use type instead of
2088 length/byte_order arguments. Update calls.
2089 (decimal_from_ulongest): Rename to ...
2090 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2091 length/byte_order arguments. Update calls.
2092 (decimal_to_longest): Rename to ...
2093 (decimal_float_ops::to_longest): ... this. Use type instead of
2094 length/byte_order arguments. Update calls.
2095 (decimal_binop): Rename to ...
2096 (decimal_float_ops::binop): ... this. Use type instead of
2097 length/byte_order arguments. Update calls.
2098 (decimal_compare): Rename to ...
2099 (decimal_float_ops::compare): ... this. Use type instead of
2100 length/byte_order arguments. Update calls.
2101 (decimal_convert): Rename to ...
2102 (decimal_float_ops::convert): ... this. Use type instead of
2103 length/byte_order arguments. Update calls.
2105 (target_float_same_category_p): New function.
2106 (target_float_same_format_p): Likewise.
2107 (target_float_format_length): Likewise.
2108 (enum target_float_ops_kind): New type.
2109 (get_target_float_ops_kind): New function.
2110 (get_target_float_ops): Three new overloaded functions.
2112 (target_float_is_zero): Update call.
2113 (target_float_to_string): Add special handling of invalid numbers,
2114 infinities and NaN (moved from floatformat_to_string). Use
2115 target_float_ops callback.
2116 (target_float_from_string): Use target_float_ops callback.
2117 (target_float_to_longest): Likewise.
2118 (target_float_from_longest): Likewise.
2119 (target_float_from_ulongest): Likewise.
2120 (target_float_to_host_double): Likewise.
2121 (target_float_from_host_double): Likewise.
2122 (target_float_convert): Add special case for no-op conversions.
2123 Use target_float_ops callback.
2124 (target_float_binop): Use target_float_ops callback.
2125 (target_float_compare): Likewise.
2127 2017-11-22 Yao Qi <yao.qi@linaro.org>
2129 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2131 2017-11-22 Yao Qi <yao.qi@linaro.org>
2133 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2134 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2136 2017-11-21 Jerome Guitton <guitton@adacore.com>
2138 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2139 with event ptid from the lower layer before doing the
2140 ravenscar-specific update.
2142 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2144 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2145 the ptid's TID is nonzero.
2147 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2149 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2150 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2151 Make non-static. Change return type to char *. Adjust code
2152 accordingly. Rewrite the function's documentation.
2153 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2154 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2155 we have enough debugging information in the runtime to support
2156 Ada task debugging before we enable the ravenscar-thread layer.
2158 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2160 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2161 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2162 * ravenscar-thread.c: Add into comment.
2163 (base_magic_null_ptid): Delete.
2164 (base_ptid): Change documentation.
2165 (ravenscar_active_task): Renames ravenscar_running_thread.
2166 All callers updated throughout.
2167 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2168 (ravenscar_task_is_currently_active): Likewise.
2169 (get_base_thread_from_ravenscar_task): Ditto.
2170 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2171 (ravenscar_runtime_initialized): Likewise.
2172 (get_running_thread_id): Add new parameter "cpu". Adjust
2173 implementation to handle this new parameter.
2174 (ravenscar_fetch_registers): Small adjustment to use
2175 is_ravenscar_task and ravenscar_task_is_currently_active in
2176 order to decide whether to use the target beneath or this
2178 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2179 (ravenscar_stopped_by_sw_breakpoint): Use
2180 get_base_thread_from_ravenscar_task to get the underlying
2181 thread, rather than using base_ptid.
2182 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2183 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2185 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2187 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2189 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2190 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2191 (get_tcb_types_info): Set fieldnos.base_cpu.
2192 (read_atcb): Set task_info->base_cpu.
2193 (info_task): Print "Base CPU" info if set by runtime.
2195 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2197 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2198 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2199 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2201 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2202 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2203 to_stopped_data_address and to_core_of_thread fields of
2206 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2208 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2209 (struct gdbarch_tdep): New member long_double_abi.
2210 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2211 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2212 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2213 format depending on long_double_abi tdep member.
2214 (ppc_floatformat_for_type): Handle __ibm128 type.
2216 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2218 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2220 2017-11-21 Pedro Alves <palves@redhat.com>
2222 * dwarf2read.c (mapped_index::find_name_components_bounds)
2223 <completion mode, upper bound>: Use std::lower_bound instead of
2225 (test_mapped_index_find_name_component_bounds): Remove incorrect
2226 "t1_fund" from expected symbols.
2228 2017-11-21 Pedro Alves <palves@redhat.com>
2230 * dwarf2read.c (mapped_index::name_components_casing): New field.
2231 (mapped_index) <build_name_components,
2232 find_name_components_bounds): Declare new methods.
2233 (mapped_index::find_name_components_bounds)
2234 (mapped_index::build_name_components): New methods, factored out
2235 from dw2_expand_symtabs_matching_symbol.
2236 (check_find_bounds_finds)
2237 (test_mapped_index_find_name_component_bounds): New.
2238 (run_test): Rename to ...
2239 (test_dw2_expand_symtabs_matching_symbol): ... this.
2240 (run_test): Reimplement.
2242 2017-11-21 Pedro Alves <palves@redhat.com>
2244 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2245 (symbol_end): Use cp_ident_is_alnum.
2246 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2247 * dwarf2read.c (make_sort_after_prefix_name): New function.
2248 (dw2_expand_symtabs_matching_symbol): Use it.
2249 (test_symbols): Add more symbols.
2250 (run_test): Add tests.
2252 2017-11-17 Tom Tromey <tom@tromey.com>
2254 * symtab.h (enum symbol_subclass_kind): New.
2255 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2257 <subclass>: New member.
2258 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2259 * rust-lang.c (rust_get_trait_object_pointer): Update.
2260 * dwarf2read.c (read_func_scope): Update.
2261 (read_variable): Update.
2263 2017-11-17 Tom Tromey <tom@tromey.com>
2265 * dwarf2read.c (read_func_scope): Update.
2266 * symtab.h (struct template_symbol): Derive from symbol.
2269 2017-11-17 Tom Tromey <tom@tromey.com>
2271 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2272 (struct rust_vtable_symbol): New.
2273 (find_symbol_at_address): Declare.
2274 * symtab.c (find_symbol_at_address): New function.
2275 * symfile.h (struct quick_symbol_functions)
2276 <find_compunit_symtab_by_address>: New member.
2277 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2279 (debug_sym_quick_functions): Link to
2280 debug_qf_find_compunit_symtab_by_address.
2281 * rust-lang.c (rust_get_trait_object_pointer): New function.
2282 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2283 rust_get_trait_object_pointer.
2284 * psymtab.c (psym_relocate): Clear psymbol_map.
2285 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2287 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2288 * objfiles.h (struct objfile) <psymbol_map>: New member.
2289 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2290 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2291 (rust_containing_type, read_variable): New functions.
2293 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2295 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2297 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2299 * common/filestuff.c: Include <algorithm>.
2300 (open_fds): Change type to std::vector<int>.
2301 (do_mark_open_fd): Adjust.
2302 (unmark_fd_no_cloexec): Adjust.
2305 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2307 * breakpoint.c (output_thread_groups): Take an std::vector.
2308 (print_one_breakpoint_location): Adjust.
2310 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2312 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2313 (ada_evaluate_subexp_for_cast): New function.
2314 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2315 ada_evaluate_subexp_for_cast.
2316 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2318 * eval.c (evaluate_var_value): Make non-static.
2319 (evaluate_var_msym_value, eval_skip_value): Likewise.
2320 * value.h (evaluate_var_value, evaluate_var_msym_value)
2321 (eval_skip_value): Declare.
2323 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2325 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2328 2017-11-16 Pedro Alves <palves@redhat.com>
2330 * python/py-unwind.c (pyuw_sniffer): Translate
2331 PyExc_KeyboardInterrupt to a GDB Quit exception.
2333 2017-11-16 Pedro Alves <palves@redhat.com>
2335 * infrun.c (resume_cleanups): Delete.
2336 (resume): No longer install a resume_cleanups cleanup nor call
2338 (proceed): Pass the terminal to the inferior.
2339 (keep_going_pass_signal): No longer install a resume_cleanups
2342 2017-11-16 Pedro Alves <palves@redhat.com>
2344 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2345 if the prompt is blocked.
2347 2017-11-16 Pedro Alves <palves@redhat.com>
2349 * breakpoint.c (insert_bp_location): Replace bp_err and
2350 bp_err_message locals by a gdb_exception local.
2352 2017-11-16 Pedro Alves <palves@redhat.com>
2354 * inflow.c (scoped_ignore_sigttou): New class.
2355 (child_terminal_ours_1, new_tty): Use it.
2357 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2359 * target-float.c (decimal_from_number): Add byte_order argument and
2360 call match_endianness. Error if unknown floating-point type.
2361 (decimal_to_number): Add byte_order argument and call match_endianness.
2362 (decimal_from_longest): Update call. Do not call match_endianness.
2363 (decimal_from_ulongest): Likewise.
2364 (decimal_binop): Likewise.
2365 (decimal_is_zero): Likewise.
2366 (decimal_compare): Likewise.
2367 (decimal_convert): Likewise.
2369 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2371 * python/python.c (gdbpy_rbreak): New function.
2372 * NEWS: Document Python rbreak feature.
2374 2017-11-16 Yao Qi <yao.qi@linaro.org>
2376 * features/tic6x-c62x.xml: Remove.
2377 * features/tic6x-c64x.xml: Remove.
2378 * features/tic6x-c64xp.xml: Remove.
2380 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2382 * symtab.h: Include <array>.
2384 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2386 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2387 (bsd_kvm_proc_cmd): Likewise.
2389 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2391 * tui/tui-win.c (window_name_completer): Replace VEC with
2394 2017-11-15 Andrew Cagney <cagney@gnu.org>
2396 * MAINTAINERS: Remove no-longer applicable entries.
2398 2017-11-15 Andrew Cagney <cagney@gnu.org>
2400 * MAINTAINERS: Move self to Past Maintainers.
2402 2017-11-15 Yao Qi <yao.qi@linaro.org>
2404 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2405 * features/nios2-linux.c: Remove.
2406 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2407 initialize_tdesc_nios2_linux.
2409 2017-11-15 Yao Qi <yao.qi@linaro.org>
2411 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2412 M68HC11_LAST_HARD_REG + 1.
2414 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2417 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2418 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2419 Return TARGET_XFER_EOF if size of returned data is 0.
2421 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2423 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2424 memory-map-selftests.c.
2425 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2426 * memory-map.c (memory_map_start_memory): Fix computation of hi
2428 * unittests/memory-map-selftests.c: New file.
2430 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2432 * ada-lang.c: Fix some typos in the general command documenting
2433 how Ada expressions are being evaluated and how their result
2436 2017-11-09 Tom Tromey <tom@tromey.com>
2438 * psymtab.c (psymbol_hash): Do not hash string contents.
2439 (psymbol_compare): Add comment.
2441 2017-11-09 Tom Tromey <tom@tromey.com>
2443 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2445 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2447 * ada-exp.y (write_var_from_sym): Remove parameter
2448 "orig_left_context". Update all callers.
2450 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2452 * tracepoint.h (class collection_list) <stringify>: Return
2453 std::vector<std::string>.
2454 (encode_actions_rsp): Change parameters to
2455 std::vector<std::string> *.
2456 * tracepoint.c (collection_list::stringify): Return
2457 std::vector<std::string> and adjust accordingly.
2458 (encode_actions_rsp): Changee parameters to
2459 std::vector<std::string> and adjust accordingly.
2460 * remote.c (free_actions_list),
2461 free_actions_list_cleanup_wrapper): Remove.
2462 (remote_download_tracepoint): Adjust to std::vector.
2464 2017-11-08 Tom Tromey <tom@tromey.com>
2466 * dwarf2read.c (symbolp): Remove typedef.
2467 (read_func_scope): Use std::vector.
2468 (process_structure_scope): Use std::vector.
2470 2017-11-08 Pedro Alves <palves@redhat.com>
2472 * ada-lang.c (ada_make_symbol_completion_list): Use
2473 completion_skip_symbol.
2474 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2475 (symbol_is_function_or_method(symbol*)): New.
2476 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2477 completion_skip_symbol.
2478 (default_collect_symbol_completion_matches_break_on): Use
2479 completion_skip_symbol. Pass down mode.
2480 (collect_file_symbol_completion_matches): Pass down mode.
2481 * symtab.h (symbol_is_function_or_method): New declarations.
2482 (completion_skip_symbol): New template function.
2484 2017-11-08 Pedro Alves <palves@redhat.com>
2486 * linespec.c (iterate_over_all_matching_symtabs): Add
2487 search_domain parameter. Pass it down to expand_symtabs_matching.
2488 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2489 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2491 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2493 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2495 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2498 2017-11-08 Pedro Alves <palves@redhat.com>
2500 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2501 text_len locals and don't pass them down.
2502 * symtab.c (completion_list_add_name): Remove
2503 sym_text/sym_text_len parameters and adjust.
2504 (completion_list_add_symbol, completion_list_add_msymbol)
2505 (completion_list_objc_symbol, completion_list_add_fields)
2506 (add_symtab_completions): Likewise.
2507 (default_collect_symbol_completion_matches_break_on)
2508 (collect_file_symbol_completion_matches): Remove sym_text_len
2509 local and don't pass it down.
2510 * symtab.h (completion_list_add_name): Remove
2511 sym_text/sym_text_len parameters.
2513 2017-11-08 Pedro Alves <palves@redhat.com>
2515 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2516 unittests/lookup_name_info-selftests.c.
2517 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2518 * cp-support.c: Include "selftest.h".
2519 (cp_remove_params_1): Rename from cp_remove_params. Add
2520 'require_param' parameter, and handle it.
2521 (cp_remove_params): Reimplement.
2522 (cp_remove_params_if_any): New.
2523 (selftests::quote): New.
2524 (selftests::check_remove_params): New.
2525 (selftests::test_cp_remove_params): New.
2526 (_initialize_cp_support): Install
2527 selftests::test_cp_remove_params.
2528 * cp-support.h (cp_remove_params_if_any): Declare.
2529 * dwarf2read.c :Include "selftest.h".
2530 (dw2_expand_symtabs_matching_symbol): Use
2531 lookup_name_info::make_ignore_params.
2532 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2533 (selftests::dw2_expand_symtabs_matching::string_or_null)
2534 (selftests::dw2_expand_symtabs_matching::check_match)
2535 (selftests::dw2_expand_symtabs_matching::test_symbols)
2536 (selftests::dw2_expand_symtabs_matching::run_test): New.
2537 (_initialize_dwarf2_read): Register
2538 selftests::dw2_expand_symtabs_matching::run_test.
2539 * psymtab.c (psym_expand_symtabs_matching): Use
2540 lookup_name_info::make_ignore_params.
2541 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2542 If the lookup name wants to ignore parameters, strip them.
2543 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2545 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2546 (default_collect_symbol_completion_matches_break_on): Don't try to
2548 * symtab.h (lookup_name_info::lookup_name_info): Add
2549 'ignore_parameters' parameter.
2550 (lookup_name_info::ignore_parameters)
2551 (lookup_name_info::make_ignore_params): New methods.
2552 (lookup_name_info::m_ignore_parameters): New field.
2553 * unittests/lookup_name_info-selftests.c: New file.
2555 2017-11-08 Pedro Alves <palves@redhat.com>
2557 * dwarf2read.c (dw2_expand_marked_cus)
2558 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2559 (dw2_expand_symtabs_matching): Move further below.
2560 (dw2_expand_marked_cus): Reindent.
2562 2017-11-08 Pedro Alves <palves@redhat.com>
2564 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2565 (struct name_component): New.
2566 (mapped_index::name_components): New field.
2567 (mapped_index::symbol_name_at): New method.
2568 (dwarf2_read_index): Call mapped_index ctor.
2569 (dw2_map_matching_symbols): Add comment about name_components
2571 (dw2_expand_symtabs_matching): Factor part to...
2572 (dw2_expand_symtabs_matching_symbol): ... this new function.
2573 Build name components table, and lookup symbols in it before
2574 calling the name matcher.
2575 (dw2_expand_marked_cus): New, factored out from
2576 dw2_expand_symtabs_matching.
2577 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2579 2017-11-08 Pedro Alves <palves@redhat.com>
2581 * ada-lang.c (ada_encode): Rename to ..
2582 (ada_encode_1): ... this. Add throw_errors parameter and handle
2584 (ada_encode): Reimplement.
2585 (match_name): Delete, folded into full_name.
2586 (resolve_subexp): No longer pass the encoded name to
2587 ada_lookup_symbol_list.
2588 (should_use_wild_match): Delete.
2589 (name_match_type_from_name): New.
2590 (ada_lookup_simple_minsym): Use lookup_name_info and the
2591 language's symbol_name_matcher_ftype.
2592 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2593 (ada_add_block_renamings): Adjust to use lookup_name_info.
2594 (ada_lookup_name): New.
2595 (add_nonlocal_symbols, ada_add_all_symbols)
2596 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2597 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2598 (ada_name_for_lookup): Delete.
2599 (ada_lookup_encoded_symbol): Construct a verbatim name.
2600 (wild_match): Reverse sense of return type. Use bool.
2601 (full_match): Reverse sense of return type. Inline bits of old
2603 (ada_add_block_symbols): Adjust to use lookup_name_info.
2604 (symbol_completion_match): Delete, folded into...
2605 (ada_lookup_name_info::matches): ... .this new method.
2606 (symbol_completion_add): Delete.
2607 (ada_collect_symbol_completion_matches): Add name_match_type
2608 parameter. Adjust to use lookup_name_info and
2609 completion_list_add_name.
2610 (get_var_value, ada_add_global_exceptions): Adjust to use
2612 (ada_get_symbol_name_cmp): Delete.
2613 (do_wild_match, do_full_match): New functions.
2614 (ada_lookup_name_info::ada_lookup_name_info): New method.
2615 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2617 (ada_language_defn): Install ada_get_symbol_name_matcher.
2618 * ada-lex.l (processId): If name starts with '<', copy it
2620 * block.c (block_iter_match_step, block_iter_match_first)
2621 (block_iter_match_next, block_lookup_symbol)
2622 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2624 * block.h (block_iter_match_first, block_iter_match_next)
2625 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2626 * c-lang.c (c_language_defn, cplus_language_defn)
2627 (asm_language_defn, minimal_language_defn): Adjust comments to
2628 refer to la_get_symbol_name_matcher.
2629 * completer.c (complete_files_symbols)
2630 (collect_explicit_location_matches, symbol_completer): Pass a
2631 symbol_name_match_type down.
2632 * completer.h (class completion_match, completion_match_result):
2634 (completion_tracker::reset_completion_match_result): New method.
2635 (completion_tracker::m_completion_match_result): New field.
2636 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2638 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2640 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2641 * d-lang.c: Adjust comments to refer to
2642 la_get_symbol_name_matcher.
2643 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2644 Adjust to use lookup_name_info.
2645 (dict_iter_match_first, dict_iter_match_next)
2646 (iter_match_first_hashed, iter_match_next_hashed)
2647 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2648 with a lookup_name_info.
2649 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2651 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2652 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2653 (gdb_index_symbol_name_matcher): New class.
2654 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2655 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2656 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2657 with a symbol_name_match_type.
2658 (f_language_defn): Adjust comments to refer to
2659 la_get_symbol_name_matcher.
2660 * go-lang.c (go_language_defn): Adjust comments to refer to
2661 la_get_symbol_name_matcher.
2662 * language.c (default_symbol_name_matcher)
2663 (language_get_symbol_name_matcher): New functions.
2664 (unknown_language_defn, auto_language_defn): Adjust comments to
2665 refer to la_get_symbol_name_matcher.
2666 * language.h (symbol_name_cmp_ftype): Delete.
2667 (language_defn) <la_collect_symbol_completion_matches>: Add match
2669 <la_get_symbol_name_cmp>: Delete field.
2670 <la_get_symbol_name_matcher>: New field.
2671 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2672 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2674 * linespec.c (iterate_over_all_matching_symtabs)
2675 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2676 (find_methods): Add language parameter, and use lookup_name_info
2677 and the language's symbol_name_matcher_ftype.
2678 (linespec_complete_function): Adjust.
2679 (lookup_prefix_sym): Use lookup_name_info.
2680 (add_all_symbol_names_from_pspace): Adjust.
2681 (find_superclass_methods): Add language parameter and pass it
2683 (find_method): Pass symbol language down.
2684 (find_linespec_symbols): Don't demangle or Ada encode here.
2685 (search_minsyms_for_name): Add lookup_name_info parameter.
2686 (add_matching_symbols_to_info): Add name_match_type parameter.
2687 Use lookup_name_info.
2688 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2689 la_get_symbol_name_matcher.
2690 * minsyms.c: Include <algorithm>.
2691 (add_minsym_to_demangled_hash_table): Remove table parameter and
2692 add objfile parameter. Use search_name_hash, and add language to
2693 demangled languages vector.
2694 (struct found_minimal_symbols): New struct.
2695 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2697 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2698 input names here. Use lookup_name_info instead. Lookup up
2699 demangled names once for each language in the demangled names
2701 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2702 demangled names once for each language in the demangled names
2704 (build_minimal_symbol_hash_tables): Adjust.
2705 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2707 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2708 la_get_symbol_name_matcher.
2709 * objfiles.h: Include <vector>.
2710 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2711 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2712 la_get_symbol_name_matcher.
2713 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2714 la_get_symbol_name_matcher.
2715 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2716 (match_partial_symbol): Use symbol_name_match_type,
2717 lookup_name_info and psymbol_name_matches.
2718 (lookup_partial_symbol): Use lookup_name_info.
2719 (map_block): Use symbol_name_match_type and lookup_name_info.
2720 (psym_map_matching_symbols): Use symbol_name_match_type.
2721 (psymbol_name_matches): New.
2722 (recursively_search_psymtabs): Use lookup_name_info and
2723 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2724 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2725 'kind' parameter to 'domain'.
2726 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2727 la_get_symbol_name_matcher.
2728 * symfile-debug.c (debug_qf_map_matching_symbols)
2729 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2730 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2731 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2732 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2733 Adjust to use symbol_name_match_type.
2734 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2735 (expand_symtabs_matching): Adjust to use lookup_name_info.
2736 * symmisc.c (maintenance_expand_symtabs): Use
2737 lookup_name_info::match_any ().
2738 * symtab.c (symbol_matches_search_name): New.
2739 (eq_symbol_entry): Adjust to use lookup_name_info and the
2741 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2742 (lookup_name_info::match_any): New.
2743 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2744 (compare_symbol_name): Add language, lookup_name_info and
2745 completion_match_result parameters, and use them.
2746 (completion_list_add_name): Make extern. Add language and
2747 lookup_name_info parameters. Use them.
2748 (completion_list_add_symbol, completion_list_add_msymbol)
2749 (completion_list_objc_symbol): Add lookup_name_info parameters and
2750 adjust. Pass down language.
2751 (completion_list_add_fields): Add lookup_name_info parameters and
2752 adjust. Pass down language.
2753 (add_symtab_completions): Add lookup_name_info parameters and
2755 (default_collect_symbol_completion_matches_break_on): Add
2756 name_match_type parameter, and use it. Use lookup_name_info.
2757 (default_collect_symbol_completion_matches)
2758 (collect_symbol_completion_matches): Add name_match_type
2759 parameter, and pass it down.
2760 (collect_symbol_completion_matches_type): Adjust.
2761 (collect_file_symbol_completion_matches): Add name_match_type
2762 parameter, and use lookup_name_info.
2763 * symtab.h: Include <string> and "common/gdb_optional.h".
2764 (enum class symbol_name_match_type): New.
2765 (class ada_lookup_name_info): New.
2766 (struct demangle_for_lookup_info): New.
2767 (class lookup_name_info): New.
2768 (symbol_name_matcher_ftype): New.
2769 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2770 (symbol_matches_search_name): Declare.
2771 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2772 (default_collect_symbol_completion_matches)
2773 (collect_symbol_completion_matches)
2774 (collect_file_symbol_completion_matches): Add name_match_type
2776 (iterate_over_symbols): Use lookup_name_info.
2777 (completion_list_add_name): Declare.
2778 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2779 (strncmp_iw_with_mode): Now extern.
2780 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2781 (strncmp_iw_with_mode): Declare.
2783 2017-11-08 Keith Seitz <keiths@redhat.com>
2784 Pedro Alves <palves@redhat.com>
2786 * ada-lang.c (ada_language_defn): Install
2787 default_search_name_hash.
2788 * buildsym.c (struct buildsym_compunit): <language>: New field.
2789 (finish_block_internal): Pass language when creating dictionaries.
2790 (start_buildsym_compunit, start_symtab): New language parameters.
2792 (restart_symtab): Pass down compilation unit's language.
2793 * buildsym.h (enum language): Forward declare.
2794 (start_symtab): New 'language' parameter.
2795 * c-lang.c (c_language_defn, cplus_language_defn)
2796 (asm_language_defn, minimal_language_defn): Install
2797 default_search_name_hash.
2798 * coffread.c (coff_start_symtab): Adjust.
2799 * d-lang.c (d_language_defn): Install default_search_name_hash.
2800 * dbxread.c (struct symloc): Add 'pst_language' field.
2801 (PST_LANGUAGE): Define.
2802 (start_psymtab, read_ofile_symtab): Use it.
2803 (process_one_symbol): New 'language' parameter. Pass it down.
2804 * dictionary.c (struct dictionary) <language>: New field.
2805 (DICT_LANGUAGE): Define.
2806 (dict_create_hashed, dict_create_hashed_expandable)
2807 (dict_create_linear, dict_create_linear_expandable): New parameter
2808 'language'. Set the dictionary's language.
2809 (iter_match_first_hashed): Adjust to rename.
2810 (insert_symbol_hashed): Assert we don't see mismatching
2811 languages. Adjust to rename.
2812 (dict_hash): Rename to ...
2813 (default_search_name_hash): ... this and make extern.
2814 * dictionary.h (struct language_defn): Forward declare.
2815 (dict_create_hashed): New parameter 'language'.
2816 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2817 * f-lang.c (f_language_defn): Install default_search_name_hash.
2818 * go-lang.c (go_language_defn): Install default_search_name_hash.
2819 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2821 * language.c (unknown_language_defn, auto_language_defn):
2822 * language.h (language_defn::la_search_name_hash): New field.
2823 (default_search_name_hash): Declare.
2824 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2825 * mdebugread.c (new_block): New parameter 'language'.
2826 * mdebugread.c (parse_symbol): Pass symbol language to block
2828 (psymtab_to_symtab_1): Pass down language.
2829 (new_symtab): Pass compunit's language to block allocation.
2830 * objc-lang.c (objc_language_defn): Install
2831 default_search_name_hash.
2832 * opencl-lang.c (opencl_language_defn):
2833 * p-lang.c (pascal_language_defn): Install
2834 default_search_name_hash.
2835 * rust-lang.c (rust_language_defn): Install
2836 default_search_name_hash.
2837 * stabsread.h (enum language): Forward declare.
2838 (process_one_symbol): Add 'language' parameter.
2839 * symtab.c (search_name_hash): New function.
2840 * symtab.h (search_name_hash): Declare.
2841 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2843 2017-11-08 Pedro Alves <palves@redhat.com>
2845 * cp-name-parser.y (main): Don't initialize extra_chars.
2847 2017-11-07 Tom Tromey <tom@tromey.com>
2849 * event-top.h (command_handler): Constify.
2850 * record-full.c (cmd_record_full_start): Update.
2851 * thread.c (thread_apply_all_command): Update.
2852 * printcmd.c (eval_command): Update.
2853 * mi/mi-main.c (mi_execute_cli_command): Update.
2854 (mi_execute_async_cli_command): Update.
2855 * tui/tui-stack.c (tui_update_command): Update.
2856 * cli/cli-interp.c (safe_execute_command): Constify.
2857 * record.c (record_start): Update.
2858 (record_start, record_stop, cmd_record_start): Update.
2859 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2860 (cmd_record_btrace_pt_start): Update.
2861 (cmd_record_btrace_start): Update.
2862 (cmd_record_btrace_start): Update.
2863 * reverse.c (exec_reverse_once): Update.
2864 * python/python.c (execute_gdb_command): Don't copy the command.
2865 * event-top.c (command_line_handler): Update.
2866 (command_handler): Constify.
2867 * defs.h (deprecated_call_command_hook): Constify.
2868 * cli/cli-script.h (execute_user_command): Constify.
2869 * cli/cli-script.c (execute_user_command): Constify.
2870 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2871 (enum command_control_type): Update.
2872 * main.c (catch_command_errors): Remove non-const overload.
2873 (catch_command_errors_ftype): Remove.
2874 * python/py-cmd.c (cmdpy_function): Constify.
2875 * guile/scm-cmd.c (cmdscm_function): Constify.
2876 * cli/cli-dump.c (call_dump_func): Constify.
2877 * cli/cli-decode.c (do_const_cfunc): Constify.
2878 (do_sfunc): Constify.
2879 (cmd_func): Constify.
2880 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2881 * top.h (execute_command): Constify.
2882 * top.c (execute_command): Constify.
2883 (execute_command_to_string): Constify.
2884 (deprecated_call_command_hook): Constify.
2885 * command.h (cmd_func): Constify.
2886 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2888 2017-11-07 Tom Tromey <tom@tromey.com>
2890 * ada-lang.c (catch_ada_exception_command): Constify.
2891 (catch_assert_command): Constify.
2892 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2893 (catch_rethrow_command): Constify.
2894 (catch_exception_command_1): Constify.
2895 * breakpoint.h (add_catch_command): Constify.
2896 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2897 (catch_syscall_split_args): Constify.
2898 * break-catch-sig.c (catch_signal_command): Constify.
2899 (catch_signal_split_args): Constify.
2900 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2901 cmd_const_sfunc_ftype.
2902 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2903 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2904 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2905 (add_setshow_string_cmd, struct cmd_list_element)
2906 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2907 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2908 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2910 (set_cmd_sfunc): Constify.
2911 (empty_sfunc): Constify.
2912 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2913 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2914 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2915 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2916 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2917 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2919 (set_cmd_sfunc): Constify.
2920 (cmd_sfunc_ftype): Remove.
2921 * compile/compile.c (set_compile_args): Constify.
2922 * infrun.c (set_disable_randomization): Constify.
2923 * infcmd.c (set_args_command, set_cwd_command): Constify.
2924 * breakpoint.c (set_condition_evaluation_mode): Constify.
2925 (add_catch_command): Constify.
2926 (catch_fork_command_1, catch_exec_command_1)
2927 (catch_load_command_1, catch_unload_command_1): Constify.
2928 (catch_load_or_unload): Constify.
2929 * guile/scm-param.c (pascm_set_func): Constify.
2930 (add_setshow_generic): Constify.
2931 * python/py-param.c (get_set_value): Constify.
2932 * top.h (set_verbose): Constify.
2933 * tui/tui-win.c (tui_set_var_cmd): Constify.
2934 * mi/mi-main.c (set_mi_async_command): Constify.
2935 * cli/cli-logging.c (set_logging_overwrite)
2936 (set_logging_redirect): Constify.
2937 * value.c (set_max_value_size): Constify.
2938 * valprint.c (set_input_radix, set_output_radix): Constify.
2939 * utils.c (set_width_command, set_height_command): Constify.
2940 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2941 * tracepoint.c (set_disconnected_tracing)
2942 (set_circular_trace_buffer, set_trace_buffer_size)
2943 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2944 * top.c (set_history_size_command, set_verbose, set_editing)
2945 (set_gdb_datadir, set_history_filename): Constify.
2946 * target.c (set_targetdebug, maint_set_target_async_command)
2947 (maint_set_target_non_stop_command, set_target_permissions)
2948 (set_write_memory_permission): Constify.
2949 (open_target): Constify.
2950 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2951 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2952 * symtab.c (set_symbol_cache_size_handler): Constify.
2953 * symfile.c (set_ext_lang_command): Constify.
2954 * symfile-debug.c (set_debug_symfile): Constify.
2955 * source.c (set_directories_command): Constify.
2956 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2957 * serial.c (set_parity): Constify.
2958 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2959 * remote.c (set_remote_exec_file, set_remotebreak)
2960 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2961 * record.c (set_record_insn_history_size)
2962 (set_record_call_history_size): Constify.
2963 * record-full.c (set_record_full_insn_max_num): Constify.
2964 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2965 * osabi.c (set_osabi): Constify.
2966 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2967 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2968 * maint.c (maintenance_set_profile_cmd): Constify.
2969 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2970 * language.c (set_language_command, set_range_command)
2971 (set_case_command): Constify.
2972 * infrun.c (set_non_stop, set_observer_mode)
2973 (set_stop_on_solib_events, set_schedlock_func)
2974 (set_exec_direction_func): Constify.
2975 * infcmd.c (set_inferior_tty_command): Constify.
2976 * disasm.c (set_disassembler_options_sfunc): Constify.
2977 * demangle.c (set_demangling_command): Constify.
2978 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2979 * cris-tdep.c (set_cris_version, set_cris_mode)
2980 (set_cris_dwarf2_cfi): Constify.
2981 * corefile.c (set_gnutarget_command): Constify.
2982 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2983 (set_target_wide_charset_sfunc): Constify.
2984 * breakpoint.c (update_dprintf_commands): Constify.
2985 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2986 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2987 (set_disassembly_style_sfunc): Constify.
2988 * arch-utils.c (set_endian, set_architecture): Constify.
2989 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2990 * agent.c (set_can_use_agent): Constify.
2992 2017-11-07 Tom Tromey <tom@tromey.com>
2994 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2995 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2996 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2997 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2998 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2999 (parse_int_arg, show_thread_default_detach_sc_cmd)
3000 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
3001 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
3002 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
3003 (show_task_pause_cmd, set_task_detach_sc_cmd)
3004 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
3005 (set_noninvasive_cmd, set_thread_pause_cmd)
3006 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
3007 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
3008 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
3009 * windows-nat.c (display_selectors): Constify.
3010 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
3012 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
3013 (cmd_cfunc_eq): Likewise.
3014 (struct cmd_list_element): Likewise.
3016 (cli_user_command_p): Update.
3017 * command.h (add_cmd): Remove non-const overload.
3018 (cmd_cfunc_ftype): Remove typedef.
3019 (cmd_cfunc_eq): Remove non-const overload.
3020 * value.c (show_values): Constify.
3021 * thread.c (thread_apply_all_command): Constify.
3022 * symfile.c (load_command): Constify.
3023 * source.c (directory_command): Constify.
3024 * maint.c (maintenance_internal_error)
3025 (maintenance_demangler_warning, maintenance_space_display)
3026 (maintenance_print_architecture, maintenance_translate_address)
3027 (maintenance_info_selftests, maintenance_internal_warning):
3029 * breakpoint.c (disable_trace_command, enable_trace_command):
3031 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3033 (add_auto_load_safe_path): Constify.
3034 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3035 * top.h (show_commands): Constify.
3036 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3037 * sparc64-tdep.c (adi_examine_command): Constify.
3038 (adi_assign_command): Constify.
3040 2017-11-07 Tom Tromey <tom@tromey.com>
3042 * frame.h (info_locals_command, info_args_command): Constify.
3043 * auto-load.h (auto_load_info_scripts): Constify.
3044 * inferior.h (registers_info): Constify.
3045 * copying.c: Rebuild.
3046 * copying.awk: Constify generated commands.
3047 * auto-load.c (auto_load_info_scripts)
3048 (info_auto_load_gdb_scripts): Constify.
3049 * cli/cli-decode.c (struct cmd_list_element): Take a
3050 cmd_const_cfunc_ftype.
3051 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3052 * tui/tui-win.c (tui_all_windows_info): Constify.
3053 * python/py-auto-load.c (info_auto_load_python_scripts):
3055 * cli/cli-cmds.c (show_command): Remove non-const overload.
3056 * tracepoint.c (info_tvariables_command, info_scope_command):
3058 (info_static_tracepoint_markers_command): Constify.
3059 * thread.c (info_threads_command): Constify.
3060 (print_thread_info_1): Constify.
3061 * target.c (info_target_command): Constify.
3062 * symtab.c (info_sources_command, info_functions_command)
3063 (info_types_command): Constify.
3064 (info_variables_command): Remove non-const overload.
3065 * symfile.c (info_ext_lang_command): Constify.
3066 * stack.c (info_frame_command, info_locals_command)
3067 (info_args_command): Constify.
3068 (backtrace_command): Remove non-const overload.
3069 * source.c (info_source_command, info_line_command): Constify.
3070 * solib.c (info_sharedlibrary_command): Constify.
3071 * skip.c (info_skip_command): Constify.
3072 * ser-go32.c (info_serial_command): Constify.
3073 * reverse.c (info_bookmarks_command): Constify.
3074 * printcmd.c (info_symbol_command, info_address_command)
3075 (info_display_command): Constify.
3076 * osdata.c (info_osdata_command): Constify.
3077 * objc-lang.c (info_selectors_command, info_classes_command):
3079 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3080 * memattr.c (info_mem_command): Constify.
3081 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3082 * linux-fork.c (info_checkpoints_command): Constify.
3083 * infrun.c (info_signals_command): Constify.
3084 * inflow.c (info_terminal_command): Constify.
3085 * inferior.c (info_inferiors_command): Constify.
3086 (print_inferior): Constify.
3087 * infcmd.c (info_program_command, info_all_registers_command)
3088 (info_registers_command, info_vector_command)
3089 (info_float_command): Constify.
3090 (registers_info): Constify.
3091 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3092 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3094 * f-valprint.c (info_common_command): Constify.
3095 * dcache.c (info_dcache_command): Constify.
3096 (dcache_info_1): Constify.
3097 * darwin-nat-info.c (info_mach_tasks_command)
3098 (info_mach_task_command, info_mach_ports_command)
3099 (info_mach_port_command, info_mach_threads_command)
3100 (info_mach_thread_command, info_mach_regions_command)
3101 (info_mach_regions_recurse_command, info_mach_region_command)
3102 (info_mach_exceptions_command): Constify.
3103 (get_task_from_args): Constify.
3104 * cp-support.c (info_vtbl_command): Constify.
3105 * breakpoint.c (info_watchpoints_command)
3106 (info_tracepoints_command): Constify.
3107 (info_breakpoints_command): Remove non-const overload.
3108 * avr-tdep.c (avr_io_reg_read_command): Constify.
3109 * auxv.c (info_auxv_command): Constify.
3110 * ada-tasks.c (info_tasks_command): Constify.
3111 (info_task): Constify.
3112 * ada-lang.c (info_exceptions_command): Constify.
3114 2017-11-07 Tom Tromey <tom@tromey.com>
3116 * solib.h (no_shared_libraries): Constify.
3117 * frame.h (return_command): Constify.
3118 * cli/cli-cmds.h (quit_command): Constify.
3119 * top.h (quit_command, execute_command): Constify.
3120 * target.h (flash_erase_command): Constify.
3121 * inferior.h (set_inferior_args, attach_command): Constify.
3122 * tracepoint.h (start_tracing, stop_tracing): Constify.
3123 * breakpoint.h (break_command, tbreak_command)
3124 (hbreak_command_wrapper, thbreak_command_wrapper)
3125 (rbreak_command_wrapper, watch_command_wrapper)
3126 (awatch_command_wrapper, rwatch_command_wrapper)
3127 (get_tracepoint_by_number): Constify.
3128 * symtab.c (info_variables_command, rbreak_command)
3129 (symtab_symbol_info): Constify.
3130 (info_variables_command): Add non-const overload.
3131 * top.c (dont_repeat_command): Constify.
3132 * breakpoint.c (ignore_command, commands_command)
3133 (condition_command, tbreak_command, hbreak_command)
3134 (thbreak_command, clear_command, break_command)
3135 (info_breakpoints_command, watch_command, rwatch_command)
3136 (awatch_command, trace_command, ftrace_command, strace_command)
3137 (trace_pass_command, break_range_command, dprintf_command)
3138 (agent_printf_command, get_tracepoint_by_number)
3139 (watch_maybe_just_location, trace_pass_command): Constify.
3140 (info_breakpoints_command): Add non-const overload.
3141 * tracefile.c (tsave_command): Constify.
3142 * infcmd.c (attach_command, disconnect_command, signal_command)
3143 (queue_signal_command, stepi_command, nexti_command)
3144 (finish_command, next_command, step_command, until_command)
3145 (advance_command, jump_command, continue_command, run_command)
3146 (start_command, starti_command, interrupt_command)
3147 (run_command_1, set_inferior_args, step_1): Constify.
3148 * inferior.c (add_inferior_command, remove_inferior_command)
3149 (clone_inferior_command): Constify.
3150 * linux-fork.c (checkpoint_command, restart_command): Constify.
3151 * windows-nat.c (signal_event_command): Constify.
3152 * guile/guile.c (guile_repl_command, guile_command): Constify.
3153 * printcmd.c (x_command, display_command, printf_command)
3154 (output_command, set_command, call_command, print_command)
3155 (eval_command): Constify.
3156 (non_const_set_command): Remove.
3157 (_initialize_printcmd): Update.
3158 * source.c (forward_search_command, reverse_search_command):
3160 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3162 * infrun.c (handle_command): Constify.
3163 * memattr.c (mem_command): Constify.
3164 * stack.c (return_command, up_command, up_silently_command)
3165 (down_command, down_silently_command, frame_command)
3166 (backtrace_command, func_command, backtrace_command_1): Constify.
3167 (backtrace_command): Add non-const overload.
3168 * remote-sim.c (simulator_command): Constify.
3169 * exec.c (set_section_command): Constify.
3170 * tracepoint.c (tdump_command, trace_variable_command)
3171 (tstatus_command, tstop_command, tstart_command)
3172 (end_actions_pseudocommand, while_stepping_pseudocommand)
3173 (collect_pseudocommand, teval_pseudocommand, actions_command)
3174 (start_tracing, stop_tracing): Constify.
3175 * value.c (init_if_undefined_command): Constify.
3176 * tui/tui-stack.c (tui_update_command): Constify.
3177 * tui/tui-win.c (tui_refresh_all_command)
3178 (tui_set_tab_width_command, tui_set_win_height_command)
3179 (tui_set_focus_command, tui_scroll_forward_command)
3180 (tui_scroll_backward_command, tui_scroll_left_command)
3181 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3182 (tui_set_win_height): Constify.
3183 * tui/tui-layout.c (tui_layout_command): Constify.
3184 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3185 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3186 (proc_untrace_sysexit_cmd): Constify.
3187 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3188 (threadset_test_cmd, threadlist_update_test_cmd)
3189 (threadalive_test): Constify.
3190 * objc-lang.c (print_object_command): Constify.
3191 * command.h (add_com): Constify.
3192 * cli/cli-dump.c (restore_command): Constify.
3193 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3194 (help_command, complete_command, shell_command, edit_command)
3195 (list_command, disassemble_command, make_command)
3196 (apropos_command, alias_command): Constify.
3197 * cli/cli-script.c (document_command, define_command)
3198 (while_command, if_command, validate_comname): Constify.
3199 * cli/cli-decode.c (struct cmd_list_element): Change type of
3201 * target.c (do_monitor_command, flash_erase_command): Constify.
3202 * regcache.c (reg_flush_command): Constify.
3203 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3204 (reverse_nexti, reverse_continue, reverse_finish)
3205 (save_bookmark_command, goto_bookmark_command)
3206 (exec_reverse_once): Constify.
3207 * python/python.c (python_interactive_command, python_command):
3209 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3211 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3212 * gcore.c (gcore_command): Constify.
3214 2017-11-07 Tom Tromey <tom@tromey.com>
3216 * printcmd.c (x_command): Call set_repeat_arguments.
3217 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3218 * top.c (repeat_arguments): New global.
3219 (set_repeat_arguments): New function.
3220 (execute_command): Handle repeat_arguments.
3221 (show_commands): Calls set_repeat_arguments.
3222 * command.h (set_repeat_arguments): Declare.
3224 2017-11-07 Tom Tromey <tom@tromey.com>
3226 * stack.c (backtrace_command): Use std::string.
3227 (backtrace_command_1): Make "count_exp" const.
3229 2017-11-07 Tom Tromey <tom@tromey.com>
3231 * source.c (directory_switch, mod_path, add_path): Constify.
3232 * defs.h (add_path, mod_path, directory_switch): Constify.
3233 * mi/mi-cmd-env.c (env_mod_path): Constify.
3235 2017-11-07 Tom Tromey <tom@tromey.com>
3237 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3238 (run_command_1, continue_command, step_1, jump_command)
3239 (signal_command, until_command, advance_command, finish_command)
3240 (attach_command): Update.
3242 2017-11-07 Tom Tromey <tom@tromey.com>
3244 * command.h (set_cmd_cfunc): Don't declare.
3245 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3247 2017-11-07 Tom Tromey <tom@tromey.com>
3249 * stack.c (select_frame_command): Constify.
3250 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3251 * command.h (add_com_suppress_notification): Constify.
3253 2017-11-07 Tom Tromey <tom@tromey.com>
3255 * breakpoint.c (stop_command): Constify.
3256 * cli/cli-decode.c (struct cmd_list_element): Constify.
3257 * command.h (add_abbrev_prefix_cmd): Constify.
3259 2017-11-07 Pedro Alves <palves@redhat.com>
3261 * breakpoint.c (extract_bp_kind): New enum.
3262 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3263 factored out from ...
3264 (extract_bp_number_and_location): ... here.
3265 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3267 2017-11-07 Pedro Alves <palves@redhat.com>
3269 * breakpoint.c (extract_bp_number_and_location): Change return
3270 type to void. Throw error instead of warning.
3271 (enable_disable_command): Adjust.
3273 2017-11-07 Xavier Roirand <roirand@adacore.com>
3274 Pedro Alves <palves@redhat.com>
3276 * breakpoint.c (map_breakpoint_number_range): New, factored out
3278 (map_breakpoint_numbers): ... here.
3279 (find_location_by_number): Change parameters from string to
3280 breakpoint number and location.
3281 (extract_bp_number_and_location): New function.
3282 (enable_disable_bp_num_loc)
3283 (enable_disable_breakpoint_location_range)
3284 (enable_disable_command): New functions, factored out ...
3285 (enable_command, disable_command): ... these functions, and
3286 adjusted to support ranges.
3287 * NEWS: Document enable/disable breakpoint location range feature.
3289 2017-11-06 Luis Machado <luis.machado@linaro.org>
3291 * MAINTAINERS (Write After Approval): Update my e-mail address.
3293 2017-11-06 Pedro Alves <palves@redhat.com>
3295 * gnu-nat.c (gnu_terminal_init): Delete.
3296 (gnu_target): Don't install gnu_terminal_init.
3297 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3298 (child_terminal_init): ... this function.
3300 2017-11-06 Pedro Alves <palves@redhat.com>
3302 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3304 * config.in, configure: Regenerate.
3306 2017-11-06 Pedro Alves <palves@redhat.com>
3308 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3309 (async_init_signals): Adjust.
3310 (handle_stop_sig): Rename to ...
3311 (handle_sigtstp): ... this.
3312 (async_stop_sig): Rename to ...
3313 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3315 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3316 instead of STOP_SIGNAL thoughout.
3317 (handle_stop_sig): Rename to ...
3318 (handle_sigtstp): ... this.
3319 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3321 2017-11-06 Pedro Alves <palves@redhat.com>
3323 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3324 longer set flags twice in row.
3326 2017-11-06 Pedro Alves <palves@redhat.com>
3328 * Makefile.in (SER_HARDWIRE): Update comment.
3329 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3330 * common/gdb_termios.h: Delete file.
3331 * common/job-control.c: Include termios.h and unistd.h instead of
3333 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3335 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3337 * configure.ac: No longer check for termio.h and sgtty.h.
3338 * configure: Regenerate.
3339 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3340 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3341 Replace PROCESS_GROUP_TYPE references with pid_t references
3343 (gdb_getpgrp): Delete.
3344 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3345 (child_terminal_inferior): Remove comment. Remove sgtty code.
3346 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3347 gdb_getpgrp. Use serial_set_tty_state instead aof
3348 serial_noflush_set_tty_state. Remove sgtty code.
3349 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3350 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3351 (inferior_process_group): Now returns pid_t.
3352 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3353 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3354 * ser-event.c (serial_event_ops): Update.
3355 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3357 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3358 * ser-pipe.c (pipe_ops): Update.
3359 * ser-tcp.c (tcp_ops): Update.
3360 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3361 HAVE_TERMIOS checks.
3362 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3363 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3364 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3366 (hardwire_noflush_set_tty_state): Delete.
3367 (hardwire_print_tty_state, hardwire_drain_output)
3368 (hardwire_flush_output, hardwire_flush_input)
3369 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3370 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3371 code, and assume termios.
3372 (hardwire_ops): Update.
3373 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3374 * serial.c (serial_noflush_set_tty_state): Delete.
3375 * serial.h (serial_noflush_set_tty_state): Delete.
3376 (serial_ops::noflush_set_tty_state): Delete.
3378 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3380 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3381 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3382 (COMMON_OBS): Remove doublest.o and dfp.o.
3383 Do not build target-float.c (instead of doublest.c)
3384 with -Wformat-nonliteral.
3386 * doublest.c: Remove file.
3387 * doublest.h: Remove file.
3388 * dfp.c: Remove file.
3389 * dfp.h: Remove file.
3391 * target-float.c: Do not include "doublest.h" and "dfp.h".
3392 (DOUBLEST): Move here from doublest.h.
3393 (enum float_kind): Likewise.
3394 (FLOATFORMAT_CHAR_BIT): Likewise.
3395 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3396 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3397 (floatformat_precision): Likewise.
3398 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3399 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3401 (host_float_format, host_double_format, host_long_double_format):
3403 (floatformat_to_string, floatformat_from_string): Likewise.
3404 (floatformat_to_doublest): Likewise. Also, inline the original
3405 convert_floatformat_to_doublest.
3406 (floatformat_from_doublest): Likewise. Also, inline the original
3407 convert_floatformat_from_doublest.
3409 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3410 (MAX_DECIMAL_STRING): Move here from dfp.c.
3411 (match_endianness): Likewise.
3412 (set_decnumber_context, decimal_check_errors): Likewise.
3413 (decimal_from_number, decimal_to_number): Likewise.
3414 (decimal_to_string, decimal_from_string): Likewise. Make static.
3415 (decimal_from_longest, decimal_from_ulongest): Likewise.
3416 (decimal_to_longest): Likewise.
3417 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3418 (decimal_convert): Likewise.
3420 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3422 * doublest.c: Do not include "gdbtypes.h".
3423 (extract_typed_floating): Remove.
3424 (store_typed_floating): Remove.
3425 (convert_typed_floating): Remove.
3426 * doublest.h (struct type): Remove.
3427 (DOUBLEST_PRINT_FORMAT): Remove.
3428 (DOUBLEST_SCAN_FORMAT): Remove.
3429 (extract_typed_floating): Remove.
3430 (store_typed_floating): Remove.
3431 (convert_typed_floating): Remove.
3433 * dfp.c (decimal_from_doublest): Remove.
3434 (decimal_to_doublest): Remove.
3435 * dfp.h: Do not include "doublest.h".
3436 (decimal_from_doublest): Remove.
3437 (decimal_to_doublest): Remove.
3439 * value.c: Do not include "doublest.h" and "dfp.h".
3440 (value_as_double): Remove.
3441 (unpack_double): Remove.
3442 (value_from_double): Remove.
3443 (value_from_decfloat): Remove.
3444 * value.h: Do not include "doublest.h".
3445 (value_as_double): Remove.
3446 (unpack_double): Remove.
3447 (value_from_double): Remove.
3448 (value_from_decfloat): Remove.
3450 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3452 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3453 (i386_extract_return_value): Use target_float_convert.
3454 (i386_store_return_value): Likewise.
3455 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3456 (i387_value_to_register): Likewise.
3457 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3458 (ia64_register_to_value): Use target_float_convert.
3459 (ia64_value_to_register): Likewise.
3460 (ia64_extract_return_value): Likewise.
3461 (ia64_store_return_value): Likewise.
3462 (ia64_push_dummy_call): Likewise.
3463 * m68k-tdep.c: Include "target-float.h".
3464 (m68k_register_to_value): Use target_float_convert.
3465 (m68k_value_to_register): Likewise.
3466 (m68k_svr4_extract_return_value): Likewise.
3467 (m68k_svr4_store_return_value): Likewise.
3468 * ppc-sysv-tdep.c: Include "target-float.h".
3469 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3470 (do_ppc_sysv_return_value): Likewise.
3471 (ppc64_sysv_abi_push_freg): Likewise.
3472 (ppc64_sysv_abi_return_value_base): Likewise.
3473 * rs6000-aix-tdep.c: Include "target-float.h".
3474 (rs6000_push_dummy_call): Use target_float_convert.
3475 (rs6000_return_value): Likewise.
3476 * rs6000-lynx178-tdep.c: Include "target-float.h".
3477 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3478 (rs6000_lynx178_return_value): Likewise.
3479 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3480 (rs6000_register_to_value): Use target_float_convert.
3481 (rs6000_value_to_register): Likewise.
3482 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3483 (arm_extract_return_value): Use target_float_convert.
3484 (arm_store_return_value): Likewise.
3485 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3486 (sh_register_convert_to_virtual): Use target_float_convert.
3487 (sh_register_convert_to_raw): Likewise.
3488 * sh64-tdep.c: Include "target-float.h".
3489 (sh64_extract_return_value): Use target_float_convert.
3490 (sh64_register_convert_to_virtual): Likewise.
3491 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3493 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3495 * target-float.c (floatformat_to_host_double): New function.
3496 (floatformat_from_host_double): Likewise.
3497 (target_float_to_host_double): Likewise.
3498 (target_float_from_host_double): Likewise.
3499 * target-float.h (target_float_to_host_double): Add prototype.
3500 (target_float_from_host_double): Likewise.
3502 * guile/scm-value.c: Include "target-float.h".
3503 (gdbscm_value_to_real): Use target_float_to_host_double.
3504 Handle integer source values via value_as_long.
3505 * guile/scm-math.c: Include "target-float.h". Do not include
3506 "doublest.h", "dfp.h", and "expression.h".
3507 (vlscm_convert_typed_number): Use target_float_from_host_double.
3508 (vlscm_convert_number): Likewise.
3510 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3511 (convert_value_from_python): Use target_float_from_host_double.
3513 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3515 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3516 (cast_from_fixed): Likewise.
3517 (ada_scaling_type): New function.
3518 (ada_delta): Return value instead of DOUBLEST. Perform target
3519 arithmetic instead of host arithmetic.
3520 (scaling_factor): Rename to ...
3521 (ada_scaling_factor) ... this. Make non-static. Return value instead
3522 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3523 (ada_fixed_to_float): Remove.
3524 (ada_float_to_fixed): Remove.
3525 * ada-lang.h (ada_fixed_to_float): Remove.
3526 (ada_float_to_fixed): Remove.
3527 (ada_delta): Return value instead of DOUBLEST.
3528 (ada_scaling_factor): Add prototype.
3530 * ada-typeprint.c: Include "target-float.h".
3531 (print_fixed_point_type): Perform target arithmetic instead of
3533 * ada-valprint.c: Include "target-float.h".
3534 (ada_val_print_num): Perform target arithmetic instead of
3535 host arithmetic for fixed-point types.
3537 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3539 * target-float.c: Include <math.h>.
3540 (floatformat_binop): New function.
3541 (floatformat_compare): Likewise.
3542 (target_float_binop): Likewise.
3543 (target_float_compare): Likewise.
3544 * target-float.h: Include "expression.h".
3545 (target_float_binop): Add prototype.
3546 (target_float_compare): Likewise.
3548 * valarith.c: Do not include "doublest.h" and "dfp.h".
3549 Include "common/byte-vector.h".
3550 (value_args_as_decimal): Remove, replace by ...
3551 (value_args_as_target_float): ... this function. Handle both
3552 binary and decimal target floating-point formats.
3553 (scalar_binop): Handle both binary and decimal FP using
3554 value_args_as_target_float and target_float_binop.
3555 (value_equal): Handle both binary and decimal FP using
3556 value_args_as_target_float and target_float_compare.
3557 (value_less): Likewise.
3558 (value_pos): Handle all scalar types as simple copy.
3559 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3560 * dfp.c (decimal_binop): Throw error instead of internal_error
3561 when called with an unsupported operation code.
3563 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3565 * target-float.c (target_float_to_string): New function.
3566 (target_float_from_string): New function.
3567 * target-float.h (target_float_to_string): Add prototype.
3568 (target_float_from_string): Add prototype.
3570 * valprint.c: Include "target-float.h". Do not include
3571 "doublest.h" and "dfp.h".
3572 (print_floating): Use target_float_to_string.
3573 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3574 (printf_floating): Use target_float_to_string.
3575 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3576 (print_i387_value): Use target_float_to_string.
3577 * mips-tdep.c: Include "target-float.h".
3578 (mips_print_fp_register): Use target_float_to_string.
3579 * sh64-tdep.c: Include "target-float.h".
3580 (sh64_do_fp_register): Use target_float_to_string.
3582 * parse.c: Include "target-float.h". Do not include
3583 "doublest.h" and "dfp.h".
3584 (parse_float): Use target_float_from_string.
3585 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3586 (define_symbol): Use target_float_from_string.
3587 * gdbarch-selftests.c: Include "target-float.h".
3588 (register_to_value_test): Use target_float_from_string.
3590 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3592 * Makefile.c (SFILES): Add target-float.c.
3593 (HFILES_NO_SRCDIR): Add target-float.h.
3594 (COMMON_OBS): Add target-float.o.
3595 * target-float.h: New file.
3596 * target-float.c: New file.
3598 * doublest.c (floatformat_classify): Fix detection of float_zero.
3600 * gdbtypes.c (is_floating_type): New function.
3601 * gdbtypes.h (is_floating_type): Add prototype.
3603 * value.c: Do not include "floatformat.h".
3604 (unpack_double): Use target_float_is_valid.
3605 (is_floating_value): New function.
3606 * value.h (is_floating_value): Add prototype-
3608 * valarith.c: Include "target-float.h".
3609 (value_logical_not): Use target_float_is_zero.
3611 * python/py-value.c: Include "target-float.h".
3612 (valpy_nonzero): Use target_float_is_zero.
3614 2017-11-04 Tom Tromey <tom@tromey.com>
3616 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3618 2017-11-04 Tom Tromey <tom@tromey.com>
3620 * breakpoint.c (set_momentary_breakpoint): Return
3622 (until_break_command): Update.
3623 (new_until_break_fsm): Change argument types to
3625 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3626 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3628 * infcmd.c (finish_forward): Update.
3629 * breakpoint.h (set_momentary_breakpoint)
3630 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3631 (make_cleanup_delete_breakpoint): Remove.
3632 (struct breakpoint_deleter): New.
3633 (breakpoint_up): New typedef.
3634 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3635 (insert_exception_resume_breakpoint): Update.
3636 (insert_exception_resume_from_probe): Update.
3637 (insert_longjmp_resume_breakpoint): Update.
3638 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3639 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3640 * infcall.c (call_function_by_hand_dummy): Update
3642 2017-11-04 Tom Tromey <tom@tromey.com>
3644 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3646 2017-11-04 Tom Tromey <tom@tromey.com>
3648 * linux-tdep.c (linux_core_info_proc_mappings): Use
3650 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3652 (linux_corefile_thread): Update.
3653 (linux_make_corefile_notes): Remove unused variable.
3655 2017-11-04 Tom Tromey <tom@tromey.com>
3657 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3660 2017-11-04 Tom Tromey <tom@tromey.com>
3662 * objfiles.c (do_free_objfile_cleanup): Remove.
3663 * compile/compile-object-load.c (compile_object_load): Update.
3664 * objfiles.h (make_cleanup_free_objfile): Remove.
3666 2017-11-04 Tom Tromey <tom@tromey.com>
3668 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3669 (adi_read_versions): Change "tags" to "gdb_byte *".
3670 (adi_print_versions): Likewise.
3672 2017-11-04 Tom Tromey <tom@tromey.com>
3675 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3676 from start_rbreak_breakpoints.
3677 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3678 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3679 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3680 * symtab.c (do_end_rbreak_breakpoints): Remove.
3681 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3683 2017-11-04 Tom Tromey <tom@tromey.com>
3685 * cp-namespace.c (reset_directive_searched): Remove.
3686 (cp_lookup_symbol_via_imports): Use scoped_restore.
3687 * cp-support.c (reset_directive_searched): Remove.
3688 (make_symbol_overload_list_using): Use scoped_restore.
3689 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3690 (reset_directive_searched): Remove.
3692 2017-11-04 Tom Tromey <tom@tromey.com>
3694 * symfile.c (find_separate_debug_file_by_debuglink): Use
3697 2017-11-04 Tom Tromey <tom@tromey.com>
3699 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3701 (compute_stack_depth): Likewise.
3702 (do_compile_dwarf_expr_to_c): Use std::vector.
3704 2017-11-04 Tom Tromey <tom@tromey.com>
3706 * compile/compile-object-load.c (link_callbacks_einfo): Use
3709 2017-11-04 Tom Tromey <tom@tromey.com>
3711 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3712 Use scoped_free_pendings.
3713 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3714 scoped_free_pendings.
3715 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3716 (xcoff_initial_scan): Likewise.
3717 * buildsym.c (reset_symtab_globals): Update comment.
3718 (scoped_free_pendings): Rename from really_free_pendings.
3719 (prepare_for_building): Update comment.
3720 (buildsym_init): Likewise.
3721 * buildsym.h (class scoped_free_pendings): New class.
3722 (really_free_pendings): Don't declare.
3724 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3726 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3727 output when converting a zero value to a special byteorder format.
3729 2017-11-02 Yao Qi <yao.qi@linaro.org>
3731 * frame.c (do_frame_register_read): Remove aspace.
3732 * jit.c (jit_frame_sniffer): Likwise.
3733 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3734 * regcache.c (regcache::regcache): Pass nullptr.
3735 (regcache_print): Caller updated.
3736 * regcache.h (regcache::regcache): Remove one constructor
3739 2017-11-02 Yao Qi <yao.qi@linaro.org>
3741 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3743 2017-11-02 Yao Qi <yao.qi@linaro.org>
3745 * breakpoint.c (insert_single_step_breakpoints): Update.
3746 * frame.c (struct frame_info) <aspace>: Add const.
3747 (frame_save_as_regcache): Add const.
3748 (get_frame_address_space): Return const address_space *.
3749 * frame.h (get_frame_address_space): Update declaration.
3750 * infrun.c (struct step_over_info) <aspace>: Add const.
3751 (set_step_over_info): Make aspace const.
3752 (displaced_step_prepare_throw): Change variable const.
3754 (proceed): Likewise.
3755 (adjust_pc_after_break): Likewise.
3756 (save_waitstatus): Likewise.
3757 (handle_signal_stop): Likewise.
3758 (keep_going_pass_signal): Likewise.
3759 * jit.c (jit_frame_sniffer): Add const.
3760 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3761 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3762 * record-full.c (record_full_wait_1): Likewise.
3763 * regcache.c (regcache::regcache): Change parameter to const.
3764 * regcache.h (regcache::regcache): Likewise.
3765 (regcache::aspace): Return const address_space *.
3766 (regcache) <m_aspace>: Add const.
3768 2017-11-02 Yao Qi <yao.qi@linaro.org>
3770 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3771 * frame.c (create_sentinel_frame): Likewise.
3772 * infrun.c (displaced_step_prepare_throw): Likewise.
3774 (thread_still_needs_step_over_bp): Likewise.
3775 (proceed): Likewise.
3776 (do_target_wait): Likewise.
3777 (adjust_pc_after_break): Likewise.
3778 (handle_syscall_event): Likewise.
3779 (save_waitstatus): Likewise.
3780 (handle_inferior_event_1): Likewise.
3781 (handle_signal_stop): Likewise.
3782 (keep_going_pass_signal): Likewise.
3783 * linux-nat.c (status_callback): Likewise.
3784 (save_stop_reason): Likewise.
3785 (resume_stopped_resumed_lwps): Likewise.
3786 * record-full.c (record_full_exec_insn): Likewise.
3787 (record_full_wait_1): Likewise.
3788 * regcache.c (get_regcache_aspace): Remove.
3789 * regcache.h (get_regcache_aspace): Remove.
3791 2017-11-02 Yao Qi <yao.qi@linaro.org>
3793 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3794 (init_regcache_descr): Use gdbarch_num_regs.
3795 (regcache::regcache): Likewise.
3796 (regcache::get_register_status): Likewise.
3797 (regcache::assert_raw_regnum): Likewise.
3798 (regcache::cooked_read): Likewise.
3799 (regcache::cooked_read_value): Likewise.
3800 (regcache::cooked_write): Likewise.
3801 (regcache::dump): Likewise.
3802 (regcache::num_raw_registers): New method.
3803 * regcache.h (class regcache) <num_raw_registers>: New.
3805 2017-11-02 Yao Qi <yao.qi@linaro.org>
3807 * regcache.c (regcache::assert_regnum): New method.
3808 (regcache::invalidate): Call assert_regnum.
3809 (regcache::raw_update): Likewise.
3810 (regcache::raw_write): Likewise.
3811 (regcache::raw_read_part): Likewise.
3812 (regcache::raw_write_part): Likewise.
3813 (regcache::raw_supply): Likewise.
3814 (regcache::raw_supply_integer): Likewise.
3815 (regcache::raw_supply_zeroed): Likewise.
3816 (regcache::raw_collect): Likewise.
3817 (regcache::raw_collect_integer): Likewise.
3818 * regcache.h (regcache::assert_regnum): Declare.
3820 2017-11-02 Yao Qi <yao.qi@linaro.org>
3822 * regcache.c (regcache::dump): Remove code.
3824 2017-11-02 Yao Qi <yao.qi@linaro.org>
3826 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3828 <sizeof_cooked_register_status>: Remove.
3829 (init_regcache_descr): Update.
3830 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3831 (regcache::save): Likewise.
3832 (regcache::dump): Likewise.
3834 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3836 * ft32-tdep.c (ft32_fetch_instruction): New function.
3837 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3839 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3841 * cli/cli-script.c (execute_control_command): Rename to ...
3842 (execute_control_command_1): ... this.
3843 (execute_control_command): New function.
3845 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3847 * tracepoint.c (tfind_command): Remove const_cast.
3849 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3851 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3853 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3855 * common/common-utils.h (in_inclusive_range): New function.
3856 * arm-tdep.c (arm_record_extension_space): Use
3858 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3859 * cris-tdep.c (cris_spec_reg_applicable): Use
3862 2017-10-30 Pedro Alves <palves@redhat.com>
3863 Simon Marchi <simon.marchi@ericsson.com>
3865 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3866 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3868 2017-10-30 Pedro Alves <palves@redhat.com>
3870 * common/common-utils.c (string_appendf, string_vappendf): New
3872 * common/common-utils.h (string_appendf, string_vappendf): New
3874 * unittests/common-utils-selftests.c (string_appendf_func)
3875 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3876 (string_vappendf_tests): New functions.
3877 (_initialize_common_utils_selftests): Register "string_appendf" and
3878 "string_vappendf tests".
3880 2017-10-30 Pedro Alves <palves@redhat.com>
3882 * unittests/common-utils-selftests.c (format_func): New typedef.
3883 (string_printf_tests, string_vprintf_tests): Tests factored out
3885 (test_format_func): ... this new function.
3886 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3889 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3891 * darwin-nat.c: Remove include of gdb.h.
3893 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3895 * xtensa-xtregs.c: Fix formatting issues.
3897 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3899 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3901 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3904 * python/py-infthread.c (thpy_get_inferior): Increment reference
3905 of inferior before returning it.
3907 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3909 * unittests/common-utils-selftests.c (format): Add
3912 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3914 * xml-syscall.c (struct syscall_desc): Add constructor.
3915 <name>: Change type to std::string.
3916 (syscall_desc_up): New typedef.
3917 (syscall_desc_p): Remove typeder.
3918 (DEF_VEC_P(syscall_desc_p)): Remove.
3919 (struct syscall_group_desc): Add constructor.
3920 <name>: Change type to std::string.
3921 <syscalls>: Change type to std::vector.
3922 (syscall_group_desc_up): New typedef.
3923 (syscall_group_desc_p): Remove typedef.
3924 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3925 (struct syscalls_info) <syscalls>: Change type to std::vector of
3928 <my_gdb_datadir>: Change type to std::string.
3929 (syscalls_info_up): New typedef.
3930 (allocate_syscalls_info): Remove.
3931 (syscalls_info_free_syscalls_desc): Remove.
3932 (syscalls_info_free_syscall_group_desc): Remove.
3933 (free_syscalls_info): Remove.
3934 (make_cleanup_free_syscalls_info): Remove.
3935 (syscall_group_create_syscall_group_desc): Adjust.
3936 (syscall_group_add_syscall): Adjust.
3937 (syscall_create_syscall_desc): Adjust.
3938 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3939 (init_syscalls_info): Adjust.
3940 (syscall_group_get_group_by_name): Adjust.
3941 (xml_get_syscall_number): Adjust.
3942 (xml_get_syscall_name): Adjust.
3943 (xml_list_of_syscalls): Adjust.
3944 (xml_list_syscalls_by_group): Adjust.
3945 (xml_list_of_groups): Adjust.
3947 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3949 * probe.h: Don't include gdb_vecs.h.
3950 (DEF_VEC_P (probe_p)): Remove.
3951 (find_probes_in_objfile): Return an std::vector.
3952 * probe.c (find_probes_in_objfile): Likewise.
3953 * breakpoint.c (breakpoint_objfile_data)
3954 <longjmp_probes>: Change type to std::vector.
3955 <exception_probes>: Likewise.
3956 (free_breakpoint_probes): Don't manually free vectors.
3957 (create_longjmp_master_breakpoint): Adjust.
3958 (create_exception_master_breakpoint): Adjust.
3959 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3960 parameter type, adjust.
3961 (svr4_create_solib_event_breakpoints): Adjust.
3963 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3965 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3966 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3968 (free_breakpoint_probes): Rename to ...
3969 (free_breakpoint_objfile_data): ... this, and call delete on
3972 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3974 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3975 (loaded_script_ptr): Remove typedef.
3976 (DEF_VEC_P (loaded_script_ptr)): Remove.
3977 (struct collect_matching_scripts_data): Add constructor.
3978 <scripts_p>: Change type to (pointer to) std::vector.
3979 (collect_matching_scripts_data): Adjust.
3980 (sort_scripts_by_name): Make suitable for std::sort.
3981 (print_scripts): Don't sort vector, adjust to std::vector.
3982 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3984 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3986 * symfile.c (filename_language): Make struct, not typedef. Add
3988 <ext>: Change type to std::string.
3989 (DEF_VEC_O (filename_language)): Remove.
3990 (filename_language_table): Change type to std::vector.
3991 (add_filename_language): Adjust.
3992 (set_ext_lang_command): Adjust.
3993 (info_ext_lang_command): Adjust.
3994 (deduce_language_from_filename): Adjust.
3995 (class scoped_restore_filename_language_table): Remove.
3996 (test_filename_language): Use scoped_restore.
3997 (test_set_ext_lang_command): Use scoped_restore, adjust to
4000 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4002 * symfile.c: Include selftest.h.
4003 (class scoped_restore_filename_language_table): New.
4004 (test_filename_language): New test.
4005 (test_set_ext_lang_command): New test.
4006 (_initialize_symfile): Register tests.
4008 2017-10-27 Keith Seitz <keiths@redhat.com>
4010 * breakpoint.c (print_breakpoint_location): Use the symbol saved
4011 in the bp_location, falling back to find_pc_sect_function when
4013 (add_location_to_breakpoint): Save sal->symbol.
4014 * breakpoint.h (struct bp_location) <symbol>: New field.
4015 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4016 * symtab.h (struct symtab_and_line) <symbol>: New field.
4018 2017-10-26 Patrick Frants <osscontribute@gmail.com>
4021 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4024 2017-10-26 Pedro Alves <palves@redhat.com>
4026 * remote.c (remote_async_terminal_ours_p): Delete.
4027 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4028 Remove references to 'remote_async_terminal_ours_p'.
4030 2017-10-26 Yao Qi <yao.qi@linaro.org>
4032 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4034 2017-10-26 Yao Qi <yao.qi@linaro.org>
4036 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4038 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4040 * breakpoint.c (bpstat_check_location): Remove cast.
4041 (breakpoint_hit_catch_fork): Make aspce const.
4042 (breakpoint_hit_catch_solib): Likewise.
4043 (breakpoint_hit_catch_exec): Likewise.
4044 (breakpoint_hit_ranged_breakpoint): Likewise.
4045 (breakpoint_hit_watchpoint): Likewise.
4046 (base_breakpoint_breakpoint_hit): Likewise.
4047 (bkpt_breakpoint_hit): Likewise.
4048 (dprintf_breakpoint_hit): Likewise.
4049 (tracepoint_breakpoint_hit): Likewise.
4050 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4052 2017-10-26 Yao Qi <yao.qi@linaro.org>
4054 * breakpoint.c (breakpoint_location_address_match): Change
4055 "struct address_space *" to "const address_space".
4056 (breakpoint_location_address_range_overlap): Likewise.
4057 (breakpoint_here_p): Likewise.
4058 (breakpoint_in_range_p): Likewise.
4059 (moribund_breakpoint_here_p): Likewise.
4060 (bp_location_inserted_here_p): Likewise.
4061 (software_breakpoint_inserted_here_p): Likewise.
4062 (hardware_breakpoint_inserted_here_p): Likewise.
4063 (hardware_watchpoint_inserted_in_range): Likewise.
4064 (bpstat_check_location): Likewise.
4065 (bpstat_stop_status): Likewise.
4066 (breakpoint_address_match): Likewise.
4067 (breakpoint_address_match_range): Likewise.
4068 (breakpoint_location_address_match): Likewise.
4069 (breakpoint_location_address_range_overlap): Likewise.
4070 (insert_single_step_breakpoint): Likewise.
4071 (breakpoint_has_location_inserted_here): Likewise.
4072 (single_step_breakpoint_inserted_here_p): Likewise.
4073 (pc_at_non_inline_function): Likewise.
4074 * breakpoint.h (bpstat_stop_status): Update declaration.
4075 (breakpoint_here_p): Likewise.
4076 (breakpoint_in_range_p): Likewise.
4077 (moribund_breakpoint_here_p): Likewise.
4078 (breakpoint_inserted_here_p): Likewise.
4079 (software_breakpoint_inserted_here_p): Likewise.
4080 (hardware_breakpoint_inserted_here_p): Likewise.
4081 (breakpoint_has_location_inserted_here): Likewise.
4082 (single_step_breakpoint_inserted_here_p): Likewise.
4083 (hardware_watchpoint_inserted_in_range): Likewise.
4084 (breakpoint_address_match): Likewise.
4085 (insert_single_step_breakpoint): Likewise.
4086 (pc_at_non_inline_function): Likewise.
4087 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4088 * record.c (record_check_stopped_by_breakpoint): Likewise.
4089 * record.h (record_check_stopped_by_breakpoint): Likewise.
4090 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4092 2017-10-25 Yao Qi <yao.qi@linaro.org>
4094 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4095 regcache->arch () instead get_regcache_arch.
4096 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4098 (aarch64_fbsd_store_inferior_registers): Likewise.
4099 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4100 (store_gregs_to_thread): Likewise.
4101 (fetch_fpregs_from_thread): Likewise.
4102 (store_fpregs_to_thread): Likewise.
4103 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4104 (aarch64_store_return_value): Likewise.
4105 (aarch64_software_single_step): Likewise.
4106 * aix-thread.c (aix_thread_wait): Likewise.
4107 (supply_reg32): Likewise.
4108 (supply_sprs64): Likewise.
4109 (supply_sprs32): Likewise.
4110 (fill_gprs64): Likewise.
4111 (fill_gprs32): Likewise.
4112 (fill_sprs64): Likewise.
4113 (fill_sprs32): Likewise.
4114 (store_regs_user_thread): Likewise.
4115 (store_regs_kernel_thread): Likewise.
4116 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4117 (alphabsd_store_inferior_registers): Likewise.
4118 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4119 (alpha_store_return_value): Likewise.
4120 (alpha_deal_with_atomic_sequence): Likewise.
4121 (alpha_next_pc): Likewise.
4122 (alpha_software_single_step): Likewise.
4123 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4124 (amd64bsd_store_inferior_registers): Likewise.
4125 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4127 (amd64_linux_store_inferior_registers): Likewise.
4128 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4129 (amd64_collect_native_gregset): Likewise.
4130 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4131 (amd64obsd_collect_uthread): Likewise.
4132 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4133 (amd64_collect_fpregset): Likewise.
4134 (amd64_supply_fxsave): Likewise.
4135 (amd64_supply_xsave): Likewise.
4136 (amd64_collect_fxsave): Likewise.
4137 (amd64_collect_xsave): Likewise.
4138 * arc-tdep.c (arc_write_pc): Likewise.
4139 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4140 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4141 (arm_fbsd_store_inferior_registers): Likewise.
4142 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4143 (store_vfp_regs): Likewise.
4144 (arm_linux_fetch_inferior_registers): Likewise.
4145 (arm_linux_store_inferior_registers): Likewise.
4146 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4147 (arm_linux_sigreturn_next_pc): Likewise.
4148 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4149 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4150 (fetch_register): Likewise.
4151 (store_register): Likewise.
4152 * arm-tdep.c (arm_is_thumb): Likewise.
4153 (displaced_in_arm_mode): Likewise.
4154 (bx_write_pc): Likewise.
4155 (arm_get_next_pcs_addr_bits_remove): Likewise.
4156 (arm_software_single_step): Likewise.
4157 (arm_extract_return_value): Likewise.
4158 (arm_store_return_value): Likewise.
4159 (arm_write_pc): Likewise.
4160 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4161 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4162 (bsd_uthread_store_registers): Likewise.
4163 * core-regset.c (fetch_core_registers): Likewise.
4164 * corelow.c (get_core_registers): Likewise.
4165 * cris-tdep.c (cris_store_return_value): Likewise.
4166 (cris_extract_return_value): Likewise.
4167 (find_step_target): Likewise.
4168 (find_step_target): Likewise.
4169 (cris_software_single_step): Likewise.
4170 * ctf.c (ctf_fetch_registers): Likewise.
4171 * darwin-nat.c (cancel_breakpoint): Likewise.
4172 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4173 * frv-tdep.c (frv_extract_return_value): Likewise.
4174 * ft32-tdep.c (ft32_store_return_value): Likewise.
4175 (ft32_extract_return_value): Likewise.
4176 * go32-nat.c (fetch_register): Likewise.
4177 (go32_fetch_registers): Likewise.
4178 (go32_store_registers): Likewise.
4179 (store_register): Likewise.
4180 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4181 (h8300_store_return_value): Likewise.
4182 * hppa-linux-nat.c (fetch_register): Likewise.
4183 (store_register): Likewise.
4184 (hppa_linux_fetch_inferior_registers): Likewise.
4185 (hppa_linux_store_inferior_registers): Likewise.
4186 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4187 (i386_darwin_store_inferior_registers): Likewise.
4188 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4189 (gnu_store_registers): Likewise.
4190 * i386-linux-nat.c (fetch_register): Likewise.
4191 (store_register): Likewise.
4192 (supply_gregset): Likewise.
4193 (fill_gregset): Likewise.
4194 (i386_linux_fetch_inferior_registers): Likewise.
4195 (i386_linux_store_inferior_registers): Likewise.
4196 (i386_linux_resume): Likewise.
4197 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4199 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4200 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4201 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4202 (i386obsd_collect_uthread): Likewise.
4203 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4204 (i386_supply_gregset): Likewise.
4205 (i386_collect_gregset): Likewise.
4206 (i386_supply_fpregset): Likewise.
4207 (i386_collect_fpregset): Likewise.
4208 (i386_mpx_bd_base): Likewise.
4209 * i386-v4-nat.c (supply_fpregset): Likewise.
4210 (fill_fpregset): Likewise.
4211 * i387-tdep.c (i387_supply_fsave): Likewise.
4212 (i387_collect_fsave): Likewise.
4213 (i387_supply_fxsave): Likewise.
4214 (i387_collect_fxsave): Likewise.
4215 (i387_supply_xsave): Likewise.
4216 (i387_collect_xsave): Likewise.
4217 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4218 (ia64_linux_store_registers): Likewise.
4219 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4220 (ia64_extract_return_value): Likewise.
4221 (ia64_store_return_value): Likewise.
4222 (find_func_descr): Likewise.
4223 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4224 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4225 (inf_ptrace_store_registers): Likewise.
4226 * infrun.c (use_displaced_stepping): Likewise.
4227 (displaced_step_prepare_throw): Likewise.
4229 (proceed): Likewise.
4230 (do_target_wait): Likewise.
4231 (adjust_pc_after_break): Likewise.
4232 (handle_inferior_event_1): Likewise.
4233 (handle_signal_stop): Likewise.
4234 (save_infcall_suspend_state): Likewise.
4235 (restore_infcall_suspend_state): Likewise.
4236 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4237 * jit.c (jit_frame_prev_register): Likewise.
4238 * linux-nat.c (save_stop_reason): Likewise.
4239 (linux_nat_wait_1): Likewise.
4240 (resume_stopped_resumed_lwps): Likewise.
4241 * linux-record.c (record_linux_sockaddr): Likewise.
4242 (record_linux_msghdr): Likewise.
4243 (record_linux_system_call): Likewise.
4244 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4245 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4246 (lm32_store_return_value): Likewise.
4247 * m32c-tdep.c (m32c_read_flg): Likewise.
4248 (m32c_pseudo_register_read): Likewise.
4249 (m32c_pseudo_register_write): Likewise.
4250 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4251 (m32r_linux_collect_gregset): Likewise.
4252 * m32r-tdep.c (m32r_store_return_value): Likewise.
4253 (m32r_extract_return_value): Likewise.
4254 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4255 (m68kbsd_collect_fpregset): Likewise.
4256 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4257 * m68k-linux-nat.c (fetch_register): Likewise.
4258 (old_fetch_inferior_registers): Likewise.
4259 (old_store_inferior_registers): Likewise.
4260 (store_regs): Likewise.
4261 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4262 (m68k_svr4_store_return_value): Likewise.
4263 * m88k-tdep.c (m88k_store_arguments): Likewise.
4264 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4265 (mi_cmd_data_write_register_values): Likewise.
4266 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4267 (mips_fbsd_store_inferior_registers): Likewise.
4268 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4269 (mips_fbsd_supply_gregs): Likewise.
4270 (mips_fbsd_collect_fpregs): Likewise.
4271 (mips_fbsd_collect_gregs): Likewise.
4272 (mips_fbsd_supply_fpregset): Likewise.
4273 (mips_fbsd_collect_fpregset): Likewise.
4274 (mips_fbsd_supply_gregset): Likewise.
4275 (mips_fbsd_collect_gregset): Likewise.
4276 * mips-linux-nat.c (supply_gregset): Likewise.
4277 (fill_gregset): Likewise.
4278 (supply_fpregset): Likewise.
4279 (fill_fpregset): Likewise.
4280 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4281 (mips_fill_gregset): Likewise.
4282 (mips_supply_fpregset): Likewise.
4283 (mips_fill_fpregset): Likewise.
4284 (mips64_supply_gregset): Likewise.
4285 (micromips_linux_sigframe_validate): Likewise.
4286 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4287 (mipsnbsd_fetch_inferior_registers): Likewise.
4288 (mipsnbsd_store_inferior_registers): Likewise.
4289 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4290 (mipsnbsd_supply_gregset): Likewise.
4291 (mipsnbsd_iterate_over_regset_sections): Likewise.
4292 (mipsnbsd_supply_reg): Likewise.
4293 (mipsnbsd_supply_fpreg): Likewise.
4294 * mips-tdep.c (mips_in_frame_stub): Likewise.
4295 (mips_dummy_id): Likewise.
4296 (is_octeon_bbit_op): Likewise.
4297 (micromips_bc1_pc): Likewise.
4298 (extended_mips16_next_pc): Likewise.
4299 (mips16_next_pc): Likewise.
4300 (deal_with_atomic_sequence): Likewise.
4301 * moxie-tdep.c (moxie_process_readu): Likewise.
4302 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4303 * nto-procfs.c (procfs_store_registers): Likewise.
4304 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4305 (ppcfbsd_store_inferior_registers): Likewise.
4306 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4307 (fetch_altivec_register): Likewise.
4308 (get_spe_registers): Likewise.
4309 (fetch_spe_register): Likewise.
4310 (fetch_altivec_registers): Likewise.
4311 (fetch_all_gp_regs): Likewise.
4312 (fetch_all_fp_regs): Likewise.
4313 (store_vsx_register): Likewise.
4314 (store_altivec_register): Likewise.
4315 (set_spe_registers): Likewise.
4316 (store_spe_register): Likewise.
4317 (store_altivec_registers): Likewise.
4318 (store_all_gp_regs): Likewise.
4319 (store_all_fp_regs): Likewise.
4320 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4321 (ppc_linux_collect_gregset): Likewise.
4322 (ppc_canonicalize_syscall): Likewise.
4323 (ppc_linux_record_signal): Likewise.
4324 (ppu2spu_prev_register): Likewise.
4325 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4326 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4327 (ppcobsd_store_registers): Likewise.
4328 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4330 (ppc_ravenscar_generic_store_registers): Likewise.
4331 * procfs.c (procfs_fetch_registers): Likewise.
4332 (procfs_store_registers): Likewise.
4333 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4334 (ravenscar_store_registers): Likewise.
4335 (ravenscar_prepare_to_store): Likewise.
4336 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4337 * record-full.c (record_full_wait_1): Likewise.
4338 (record_full_registers_change): Likewise.
4339 (record_full_store_registers): Likewise.
4340 (record_full_core_fetch_registers): Likewise.
4341 (record_full_save): Likewise.
4342 (record_full_goto_insn): Likewise.
4343 * regcache.c (regcache_register_size): Likewise.
4344 (get_regcache_arch): Remove.
4345 (regcache_read_pc): Likewise.
4346 * regcache.h (get_regcache_arch): Remove.
4347 * remote-sim.c (gdbsim_fetch_register): Likewise.
4348 (gdbsim_store_register): Likewise.
4349 * remote.c (fetch_register_using_p): Likewise.
4350 (send_g_packet): Likewise.
4351 (remote_prepare_to_store): Likewise.
4352 (store_registers_using_G): Likewise.
4353 * reverse.c (save_bookmark_command): Likewise.
4354 (goto_bookmark_command): Likewise.
4355 * rs6000-aix-tdep.c (branch_dest): Likewise.
4356 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4357 (fetch_register): Likewise.
4358 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4359 (ppc_collect_reg): Likewise.
4360 (ppc_collect_gregset): Likewise.
4361 (ppc_collect_fpregset): Likewise.
4362 (ppc_collect_vsxregset): Likewise.
4363 (ppc_collect_vrregset): Likewise.
4364 (ppc_displaced_step_hw_singlestep): Likewise.
4365 (rs6000_pseudo_register_read): Likewise.
4366 (rs6000_pseudo_register_write): Likewise.
4367 * s390-linux-nat.c (supply_gregset): Likewise.
4368 (fill_gregset): Likewise.
4369 (s390_linux_fetch_inferior_registers): Likewise.
4370 * s390-linux-tdep.c (s390_write_pc): Likewise.
4371 (s390_software_single_step): Likewise.
4372 (s390_all_but_pc_registers_record): Likewise.
4373 (s390_linux_syscall_record): Likewise.
4374 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4375 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4376 (shnbsd_store_inferior_registers): Likewise.
4377 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4378 (sh_extract_return_value_fpu): Likewise.
4379 (sh_store_return_value_nofpu): Likewise.
4380 (sh_corefile_supply_regset): Likewise.
4381 (sh_corefile_collect_regset): Likewise.
4382 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4383 (sh64_store_return_value): Likewise.
4384 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4385 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4386 (sparc_store_inferior_registers): Likewise.
4387 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4388 (sparc_ravenscar_prepare_to_store): Likewise.
4389 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4390 (sparc_analyze_control_transfer): Likewise.
4391 (sparc_step_trap): Likewise.
4392 (sparc_software_single_step): Likewise.
4393 (sparc32_gdbarch_init): Likewise.
4394 (sparc_supply_rwindow): Likewise.
4395 (sparc_collect_rwindow): Likewise.
4396 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4397 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4398 (sparc64nbsd_collect_gregset): Likewise.
4399 (sparc64nbsd_supply_fpregset): Likewise.
4400 (sparc64nbsd_collect_fpregset): Likewise.
4401 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4402 (sparc64_supply_gregset): Likewise.
4403 (sparc64_collect_gregset): Likewise.
4404 (sparc64_supply_fpregset): Likewise.
4405 (sparc64_collect_fpregset): Likewise.
4406 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4407 * spu-tdep.c (spu_unwind_sp): Likewise.
4408 (spu2ppu_prev_register): Likewise.
4409 (spu_memory_remove_breakpoint): Likewise.
4410 * stack.c (return_command): Likewise.
4411 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4412 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4413 * tracefile.c (trace_save_ctf): Likewise.
4414 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4415 (do_windows_store_inferior_registers): Likewise.
4416 (windows_resume): Likewise.
4417 * xtensa-linux-nat.c (fill_gregset): Likewise.
4418 (supply_gregset_reg): Likewise.
4419 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4420 (xtensa_register_read_masked): Likewise.
4421 (xtensa_supply_gregset): Likewise.
4422 (xtensa_extract_return_value): Likewise.
4423 (xtensa_store_return_value): Likewise.
4425 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4427 * doublest.c (floatformat_from_string): New function.
4428 * doublest.h (floatformat_from_string): Add prototype.
4430 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4431 (OP_FLOAT): ... this.
4432 * expression.h: Do not include "doublest.h".
4433 (union exp_element): Replace doubleconst and decfloatconst by
4434 new element floatconst.
4435 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4436 (ada_evaluate_subexp): Likewise.
4437 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4438 OP_DOUBLE and OP_DECFLOAT.
4439 * expprint.c (print_subexp_standard): Likewise.
4440 (dump_subexp_body_standard): Likewise.
4441 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4443 * parse.c: Include "dfp.h".
4444 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4445 (write_exp_elt_floatcst): New function.
4446 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4448 (operator_check_standard): Likewise.
4449 (parse_float): Do not accept suffix. Take type as input. Return bool.
4450 Return target format buffer instead of host DOUBLEST.
4451 Use floatformat_from_string and decimal_from_string to parse
4452 either binary or decimal floating-point types.
4453 (parse_c_float): Remove.
4454 * parser-defs.h: Do not include "doublest.h".
4455 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4456 (write_exp_elt_floatcst): Add prototype.
4457 (parse_float): Update prototype.
4458 (parse_c_float): Remove.
4460 * c-exp.y: Do not include "dfp.h".
4461 (typed_val_float): Use byte buffer instead of DOUBLEST.
4462 (typed_val_decfloat): Remove.
4464 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4465 (parse_number): Update to new parse_float interface.
4466 Parse suffixes and determine type before calling parse_float.
4467 Handle decimal and binary FP types the same way.
4469 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4470 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4471 (parse_number): Update to new parse_float interface.
4472 Parse suffixes and determine type before calling parse_float.
4474 * f-exp.y: Replace dval by typed_val_float.
4475 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4476 (parse_number): Use parse_float instead of atof.
4478 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4479 (parse_go_float): Remove.
4480 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4481 (parse_number): Call parse_float instead of parse_go_float.
4482 Parse suffixes and determine type before calling parse_float.
4484 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4485 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4486 (parse_number): Update to new parse_float interface.
4487 Parse suffixes and determine type before calling parse_float.
4489 * m2-exp.y: Replace dval by byte buffer val.
4490 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4491 (parse_number): Call parse_float instead of atof.
4493 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4494 (lex_number): Call parse_float instead of strtod.
4495 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4496 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4497 Use write_exp_elt_floatcst.
4498 (unit_testing): Remove static variable.
4499 (rust_type): Do not check unit_testing.
4500 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4502 * ada-exp.y (type_float, type_double): Remove.
4503 (typed_val_float): Use byte buffer instead of DOUBLEST.
4504 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4505 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4507 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4509 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4510 * arch/aarch64.h: New file.
4512 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4514 * dfp.h (decimal_from_string): Use const reference for argument.
4515 * dfp.c (decimal_from_string): Likewise.
4517 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4519 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4520 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4521 * mips-tdep.c (mips_print_fp_register): Likewise.
4523 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4525 * common/format.h (enum argclass): Replace decfloat_arg by
4526 dec32float_arg, dec64float_arg, and dec128float_arg.
4527 * common/format.c (parse_format_string): Update to return
4528 new decimal float argument classes.
4530 * printcmd.c (printf_decfloat): Rename to ...
4531 (printf_floating): ... this. Add argclass argument, and use it
4532 instead of parsing the format string again. Add support for
4533 binary floating-point values, using floatformat_to_string.
4534 Convert value to the target format if it doesn't already match.
4535 (ui_printf): Call printf_floating instead of printf_decfloat,
4536 also for double_arg / long_double_arg. Pass argclass.
4538 * dfp.c (decimal_to_string): Add format string argument.
4539 * dfp.h (decimal_to_string): Likewise.
4541 * doublest.c (floatformat_to_string): Add format string argument.
4542 * doublest.h (floatformat_to_string): Likewise.
4544 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4546 * doublest.c (floatformat_precision): New routine.
4547 (floatformat_to_string): Likewise.
4548 * doublest.c (floatformat_to_string): Add prototype.
4550 * printcmd.c (print_scalar_formatted): Only call print_floating
4551 on floating-point types.
4552 * valprint.c: Do not include "floatformat.h".
4553 (generic_val_print_decfloat): Remove.
4554 (generic_val_print): Call generic_val_print_float for both
4555 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4556 (print_floating): Use floatformat_to_string. Handle decimal float.
4557 (print_decimal_floating): Remove, merge into floatformat_to_string.
4558 * value.h (print_decimal_floating): Remove.
4560 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4562 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4564 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4566 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4568 * memattr.h: Don't include vec.h.
4569 (struct mem_attrib): Initialize fields.
4570 <unknown>: New static method.
4571 (struct mem_region): Add constructors, operator<, initialize
4573 * memattr.c: Include algorithm.
4574 (default_mem_attrib, unknown_mem_attrib): Remove.
4575 (user_mem_region_list): New global.
4576 (target_mem_region_list, mem_region_list): Change type to
4577 std::vector<mem_region>.
4578 (mem_use_target): Now a function.
4579 (target_mem_regions_valid): Change type to bool.
4580 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4581 (require_user_regions): Adjust.
4582 (require_target_regions): Adjust.
4583 (create_mem_region): Adjust.
4584 (lookup_mem_region): Adjust.
4585 (invalidate_target_mem_regions): Adjust.
4586 (mem_clear): Rename to...
4587 (user_mem_clear): ... this, and adjust.
4588 (mem_command): Adjust.
4589 (info_mem_command): Adjust.
4590 (mem_enable, enable_mem_command, mem_disable,
4591 disable_mem_command): Adjust.
4592 (mem_delete): Adjust.
4593 (delete_mem_command): Adjust.
4594 * memory-map.h (parse_memory_map): Return an std::vector.
4595 * memory-map.c (parse_memory_map): Likewise.
4596 (struct memory_map_parsing_data): Add constructor.
4597 <memory_map>: Point to std::vector.
4598 (memory_map_start_memory): Adjust.
4599 (memory_map_end_memory): Adjust.
4600 (memory_map_end_property): Adjust.
4601 (clear_result): Remove.
4602 * remote.c (remote_memory_map): Return an std::vector.
4603 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4605 (target_debug_print_mem_region_vector): New.
4606 * target-delegates.c: Regenerate.
4607 * target.h (mem_region_vector): New typedef.
4608 (to_memory_map): Return mem_region_vector.
4609 (target_memory_map): Return an std::vector.
4610 * target.c (target_memory_map): Return an std::vector.
4611 (flash_erase_command): Adjust.
4613 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4615 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4616 Change type to std::string.
4617 (memory_map_start_property): Adjust.
4618 (memory_map_end_property): Adjust.
4620 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4622 * infrun.h: Include common/byte-vector.h.
4623 (struct displaced_step_closure): New struct.
4624 (struct buf_displaced_step_closure): New struct.
4625 * infrun.c (displaced_step_closure::~displaced_step_closure):
4626 Provide default implementation.
4627 (displaced_step_clear): Deallocate step closure with delete.
4628 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4629 (aarch64_displaced_step_closure): ... this, extend
4630 displaced_step_closure.
4631 (aarch64_displaced_step_data) <dsc>: Change type to
4632 aarch64_displaced_step_closure.
4633 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4635 (aarch64_displaced_step_fixup): Add cast for displaced step
4637 * amd64-tdep.c (displaced_step_closure): Rename to ...
4638 (amd64_displaced_step_closure): ... this, extend
4639 displaced_step_closure.
4640 <insn_buf>: Change type to std::vector<gdb_byte>.
4642 (fixup_riprel): Change type of DSC parameter, adjust to type
4644 (fixup_displaced_copy): Change type of DSC parameter.
4645 (amd64_displaced_step_copy_insn): Instantiate
4646 amd64_displaced_step_closure.
4647 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4648 to type change of insn_buf.
4649 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4651 (arm_linux_copy_svc): Likewise.
4652 (cleanup_kernel_helper_return): Likewise.
4653 (arm_catch_kernel_helper_return): Likewise.
4654 (arm_linux_displaced_step_copy_insn): Instantiate
4655 arm_displaced_step_closure.
4656 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4657 (displaced_read_reg): Change type of parameter DSC.
4658 (branch_write_pc): Likewise.
4659 (load_write_pc): Likewise.
4660 (alu_write_pc): Likewise.
4661 (displaced_write_reg): Likewise.
4662 (arm_copy_unmodified): Likewise.
4663 (thumb_copy_unmodified_32bit): Likewise.
4664 (thumb_copy_unmodified_16bit): Likewise.
4665 (cleanup_preload): Likewise.
4666 (install_preload): Likewise.
4667 (arm_copy_preload): Likewise.
4668 (thumb2_copy_preload): Likewise.
4669 (install_preload_reg): Likewise.
4670 (arm_copy_preload_reg): Likewise.
4671 (cleanup_copro_load_store): Likewise.
4672 (install_copro_load_store): Likewise.
4673 (arm_copy_copro_load_store) Likewise.
4674 (thumb2_copy_copro_load_store): Likewise.
4675 (cleanup_branch): Likewise.
4676 (install_b_bl_blx): Likewise.
4677 (arm_copy_b_bl_blx): Likewise.
4678 (thumb2_copy_b_bl_blx): Likewise.
4679 (thumb_copy_b): Likewise.
4680 (install_bx_blx_reg): Likewise.
4681 (arm_copy_bx_blx_reg): Likewise.
4682 (thumb_copy_bx_blx_reg): Likewise.
4683 (cleanup_alu_imm): Likewise.
4684 (arm_copy_alu_imm): Likewise.
4685 (thumb2_copy_alu_imm): Likewise.
4686 (cleanup_alu_reg): Likewise.
4687 (install_alu_reg): Likewise.
4688 (arm_copy_alu_reg): Likewise.
4689 (thumb_copy_alu_reg): Likewise.
4690 (cleanup_alu_shifted_reg): Likewise.
4691 (install_alu_shifted_reg): Likewise.
4692 (arm_copy_alu_shifted_reg): Likewise.
4693 (cleanup_load): Likewise.
4694 (cleanup_store): Likewise.
4695 (arm_copy_extra_ld_st): Likewise.
4696 (install_load_store): Likewise.
4697 (thumb2_copy_load_literal): Likewise.
4698 (thumb2_copy_load_reg_imm): Likewise.
4699 (arm_copy_ldr_str_ldrb_strb): Likewise.
4700 (cleanup_block_load_all): Likewise.
4701 (cleanup_block_store_pc): Likewise.
4702 (cleanup_block_load_pc): Likewise.
4703 (arm_copy_block_xfer): Likewise.
4704 (thumb2_copy_block_xfer): Likewise.
4705 (cleanup_svc): Likewise.
4706 (install_svc): Likewise.
4707 (arm_copy_svc): Likewise.
4708 (thumb_copy_svc): Likewise.
4709 (arm_copy_undef): Likewise.
4710 (thumb_32bit_copy_undef): Likewise.
4711 (arm_copy_unpred): Likewise.
4712 (arm_decode_misc_memhint_neon): Likewise.
4713 (arm_decode_unconditional): Likewise.
4714 (arm_decode_miscellaneous): Likewise.
4715 (arm_decode_dp_misc): Likewise.
4716 (arm_decode_ld_st_word_ubyte): Likewise.
4717 (arm_decode_media): Likewise.
4718 (arm_decode_b_bl_ldmstm): Likewise.
4719 (arm_decode_ext_reg_ld_st): Likewise.
4720 (thumb2_decode_dp_shift_reg): Likewise.
4721 (thumb2_decode_ext_reg_ld_st): Likewise.
4722 (arm_decode_svc_copro): Likewise.
4723 (thumb2_decode_svc_copro): Likewise.
4724 (install_pc_relative): Likewise.
4725 (thumb_copy_pc_relative_16bit): Likewise.
4726 (thumb_decode_pc_relative_16bit): Likewise.
4727 (thumb_copy_pc_relative_32bit): Likewise.
4728 (thumb_copy_16bit_ldr_literal): Likewise.
4729 (thumb_copy_cbnz_cbz): Likewise.
4730 (thumb2_copy_table_branch): Likewise.
4731 (cleanup_pop_pc_16bit_all): Likewise.
4732 (thumb_copy_pop_pc_16bit): Likewise.
4733 (thumb_process_displaced_16bit_insn): Likewise.
4734 (decode_thumb_32bit_ld_mem_hints): Likewise.
4735 (thumb_process_displaced_32bit_insn): Likewise.
4736 (thumb_process_displaced_insn): Likewise.
4737 (arm_process_displaced_insn): Likewise.
4738 (arm_displaced_init_closure): Likewise.
4739 (arm_displaced_step_fixup): Add cast for closure.
4740 * arm-tdep.h: Include infrun.h.
4741 (displaced_step_closure): Rename to ...
4742 (arm_displaced_step_closure): ... this, extend
4743 displaced_step_closure.
4744 <u::svc::copy_svc_os>: Change type of parameter DSC.
4745 <cleanup>: Likewise.
4746 (arm_process_displaced_insn): Likewise.
4747 (arm_displaced_init_closure): Likewise.
4748 (displaced_read_reg): Likewise.
4749 (displaced_write_reg): Likewise.
4750 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4752 * i386-tdep.h: Include infrun.h.
4753 (i386_displaced_step_closure): New typedef.
4754 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4755 i386_displaced_step_closure.
4756 (i386_displaced_step_fixup): Adjust.
4757 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4758 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4760 (ppc_displaced_step_fixup): Adjust.
4761 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4762 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4764 (s390_displaced_step_fixup): Adjust.
4766 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4768 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4769 Remove declarations.
4771 2017-10-20 Tom Tromey <tom@tromey.com>
4773 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4775 (gdb_bfd_record_inclusion): Update.
4776 (bfdp): Remove typedef.
4778 2017-10-20 Tom Tromey <tom@tromey.com>
4780 * gdb_bfd.c (gdb_bfd_ref): Use new.
4781 (struct gdb_bfd_data): Add constructor, destructor, and member
4783 (gdb_bfd_unref): Use delete.
4785 2017-10-20 Tom Tromey <tom@tromey.com>
4787 * exec.c (exec_file_attach): Use new_bfd_ref.
4788 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4789 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4790 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4792 * gdb_bfd.h (new_bfd_ref): New function.
4794 2017-10-20 Pedro Alves <palves@redhat.com>
4796 * main.c (captured_command_loop): Add attribute noinline.
4798 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4800 * interps.c (struct interp_factory): Add constructor.
4801 (interp_factory_p): Remove typedef.
4802 (DEF_VEC_P(interp_factory_p)): Remove.
4803 (interpreter_factories): Change type to std::vector.
4804 (interp_factory_register): Adjust.
4805 (interp_lookup): Adjust.
4806 (interpreter_completer): Adjust.
4808 2017-10-19 Tom Tromey <tom@tromey.com>
4810 * break-catch-syscall.c (catch_syscall_completer): Use
4811 std::string, gdb::unique_xmalloc_ptr.
4813 2017-10-19 Tom Tromey <tom@tromey.com>
4815 * infcall.c (call_function_by_hand_dummy): Use std::string.
4817 2017-10-19 Tom Tromey <tom@tromey.com>
4819 * mi/mi-main.c (mi_cmd_execute): Update.
4820 * top.h (prepare_execute_command): Return scoped_value_mark.
4821 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4822 Add move constructor.
4823 * top.c (prepare_execute_command): Return scoped_value_mark.
4824 (execute_command): Update.
4826 2017-10-19 Pedro Alves <palves@redhat.com>
4828 * xml-support.c (xml_fetch_content_from_file): Check fread's
4831 2017-10-19 Pedro Alves <palves@redhat.com>
4833 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4835 (handle_error_fd): New function.
4836 (ser_base_async): Add/delete an event loop file handler for
4839 2017-10-19 Pedro Alves <palves@redhat.com>
4841 * xml-support.c (xml_fetch_content_from_file): Don't read in
4842 chunks. Instead use fseek to determine the file's size, and read
4845 2017-11-18 Keith Seitz <keiths@redhat.com>
4847 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4849 Add whitespace to front of type name.
4851 2017-10-18 Keith Seitz <keiths@redhat.com>
4853 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4854 DW_AT_accessibility.
4856 2017-10-18 Yao Qi <yao.qi@linaro.org>
4858 * features/tic6x-c62x-linux.c: Remove.
4860 2017-10-17 Tom Tromey <tom@tromey.com>
4862 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4863 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4864 (do_mixed_source_and_assembly): Likewise.
4866 2017-10-17 Tom Tromey <tom@tromey.com>
4868 * regcache.c (regcache::xfer_part): Remove assertion.
4870 2017-10-17 Pedro Alves <palves@redhat.com>
4872 * xml-support.c (xml_fetch_content_from_file): Call
4873 unique_ptr::release() instead unique_ptr::get() when passing
4876 2017-10-17 Yao Qi <yao.qi@linaro.org>
4878 * regcache.c (regcache::xfer_part): Remove parameters read and
4879 write, add parameter is_raw. All callers are updated.
4881 2017-10-16 Keith Seitz <keiths@redhat.com>
4883 * c-typeprint.c (enum access_specifier): Moved here from
4885 (output_access_specifier): New function.
4886 (c_type_print_base): Consider typedefs when assessing
4887 whether access labels are needed.
4888 Use output_access_specifier as needed.
4889 Output access specifier for typedefs, if needed.
4890 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4891 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4893 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4896 2017-10-16 Tom Tromey <tom@tromey.com>
4898 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4899 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4900 * target.c (target_fileio_read_stralloc): Update.
4901 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4902 * target.h (target_fileio_read_stralloc): Return
4905 2017-10-16 Tom Tromey <tom@tromey.com>
4907 * xml-syscall.c (xml_init_syscalls_info): Update.
4908 * xml-support.c (xinclude_start_include): Update.
4909 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4910 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4911 (xml_fetch_content_from_file): Likewise.
4912 * osdata.c (get_osdata): Update.
4913 * target.h (target_read_stralloc, target_get_osdata): Return
4915 * solib-aix.c (solib_aix_get_library_list): Update.
4916 * solib-target.c (solib_target_current_sos): Update.
4917 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4918 * xml-tdesc.c (fetch_available_features_from_target): Update.
4919 (target_fetch_description_xml): Update.
4920 (file_read_description_xml): Update.
4921 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4922 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4923 (remote_pid_to_exec_file): Update.
4924 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4925 (target_get_osdata): Likewise.
4927 2017-10-16 Tom Tromey <tom@tromey.com>
4929 * remote.c (remote_register_number_and_offset): Use std::vector.
4930 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4931 (putpkt_binary): Use gdb::def_vector.
4932 (compare_sections_command): Use gdb::byte_vector.
4934 2017-10-16 Tom Tromey <tom@tromey.com>
4936 * ppc-linux-nat.c (hwdebug_insert_point): Use
4937 gdb::unique_xmalloc_ptr, XDUP.
4939 2017-10-16 Tom Tromey <tom@tromey.com>
4941 * probe.c (parse_probes): Use std::string.
4942 (info_probes_for_ops, enable_probes_command)
4943 (disable_probes_command): Remove cleanups.
4945 2017-10-16 Tom Tromey <tom@tromey.com>
4947 * buildsym.c (block_compar): Remove.
4948 (end_symtab_get_static_block): Use std::vector.
4950 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4952 * memrange.h (struct mem_range): Define operator< and operator==.
4953 (mem_range_s): Remove.
4954 (DEF_VEC_O (mem_range_s)): Remove.
4955 (normalize_mem_ranges): Change parameter type to std::vector.
4956 * memrange.c (compare_mem_ranges): Remove.
4957 (normalize_mem_ranges): Change parameter type to std::vector,
4958 adjust to vector change.
4959 * exec.c (section_table_available_memory): Return vector, remove
4961 (section_table_read_available_memory): Adjust to std::vector
4963 * remote.c (remote_read_bytes): Adjust to std::vector
4965 * tracepoint.h (traceframe_available_memory): Change parameter
4966 type to std::vector.
4967 * tracepoint.c (traceframe_available_memory): Change parameter
4968 type to std::vector, adjust.
4969 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4971 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4972 unittests/memrange-selftests.c.
4973 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4974 * gdb/unittests/memrange-selftests.c: New file.
4976 2017-10-16 Pedro Alves <palves@redhat.com>
4978 * elfread.c (probe_key_free): Rename range-for variable.
4979 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4980 (find_probe_by_pc, collect_probes): Rename range-for variable.
4982 2017-10-16 Yao Qi <yao.qi@linaro.org>
4984 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4985 * features/tic6x-c62x.c: Remove.
4986 * features/tic6x-c64x-linux.c: Remove.
4987 * features/tic6x-c64x.c: Remove.
4988 * features/tic6x-c64xp-linux.c: Remove.
4989 * features/tic6x-c64xp.c: Remove.
4990 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4991 initialize_tdesc_tic6x_*_linux functions.
4992 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4993 initialize_tdesc_tic6x_* functions.
4995 2017-10-16 Yao Qi <yao.qi@linaro.org>
4997 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4999 * regformats/tic6x-c62x.dat: Remove.
5000 * regformats/tic6x-c64x.dat: Remove.
5001 * regformats/tic6x-c64xp.dat: Remove.
5003 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
5005 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
5006 (the !HAVE_LIBEXPAT version).
5008 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5010 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
5013 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5015 * target.h: Include tracepoint.h.
5016 (enum trace_find_type): Move to tracepoint.h.
5017 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5018 * tracepoint.h: Don't include target.h
5019 (enum trace_find_type): Move from target.h.
5020 (parse_traceframe_info): Return a unique ptr.
5021 * tracepoint.c (current_traceframe_info): Change type to unique
5023 (free_traceframe_info): Remove.
5024 (clear_traceframe_info): Don't manually free
5025 current_traceframe_info.
5026 (free_result): Remove.
5027 (parse_traceframe_info): Return a unique ptr.
5028 (get_traceframe_info): Adjust to unique ptr.
5029 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5030 * remote.c (remote_traceframe_info): Return a unique ptr.
5031 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5033 * target-debug.h (target_debug_print_traceframe_info_up): New
5035 * target-delegates.c: Regenerate.
5037 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5039 * memrange.h (struct mem_range): Add constructors.
5040 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5041 std::vector<mem_range>.
5042 * tracepoint.c (free_traceframe_info): Don't manually free
5044 (traceframe_info_start_memory): Adjust to vector change.
5045 (traceframe_available_memory): Likewise.
5046 * tracefile-tfile.c (build_traceframe_info): Likewise.
5047 * ctf.c (ctf_traceframe_info): Likewise.
5049 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5051 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5053 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5054 (traceframe_info_start_tvar): Adjust to vector change.
5055 (parse_traceframe_info): Allocate with new.
5056 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5058 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5060 tfile_traceframe_info): Allocate with new.
5061 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5064 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5066 * tracepoint.c (traceframe_info): Rename to...
5067 (current_traceframe_info): ...this.
5068 (clear_traceframe_info): Adjust.
5069 (get_traceframe_info): Adjust.
5071 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5073 * nat/linux-osdata.c: Include algorithm.
5074 (compare_processes): Remove.
5075 (struct pid_pgid_entry): New struct.
5076 (linux_xfer_osdata_processgroups): Use std::vector instead of
5079 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5081 * objfiles.h: Don't include symfile.h.
5082 (struct partial_symbol): Remove forward-declaration.
5083 (struct objfile) <global_psymbols, static_psymbols>: Change type
5084 to std::vector<partial_symbol *>.
5085 * objfiles.c (objfile::objfile): Don't memset those fields.
5086 (objfile::~objfile): Don't free those fields.
5087 * psympriv.h (struct psymbol_allocation_list): Remove
5088 forward-declaration.
5089 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5091 (start_psymtab_common): Change parameters to std::vector.
5092 * psymtab.c: Include algorithm.
5093 (require_partial_symbols): Call shrink_to_fit.
5094 (find_pc_sect_psymbol): Adjust to vector change.
5095 (match_partial_symbol): Likewise.
5096 (lookup_partial_symbol): Likewise.
5097 (psym_relocate): Likewise.
5098 (dump_psymtab): Likewise.
5099 (recursively_search_psymtabs): Likewise.
5100 (compare_psymbols): Remove.
5101 (sort_pst_symbols): Adjust to vector change.
5102 (start_psymtab_common): Likewise.
5103 (end_psymtab_common): Likewise.
5104 (psymbol_bcache_full): De-constify return value.
5105 (add_psymbol_to_bcache): Likewise.
5106 (extend_psymbol_list): Remove.
5107 (append_psymbol_to_list): Adjust to vector change.
5108 (add_psymbol_to_list): Likewise.
5109 (init_psymbol_list): Likewise.
5110 (maintenance_info_psymtabs): Likewise.
5111 (maintenance_check_psymtabs): Likewise.
5112 * symfile.h (struct psymbol_allocation_list): Remove.
5113 * symfile.c (reread_symbols): Adjust to vector change.
5114 * dbxread.c (start_psymtab): Change type of parameters.
5115 (dbx_symfile_read): Adjust to vector change.
5116 (read_dbx_symtab): Likewise.
5117 (start_psymtab): Change type of parameters.
5118 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5119 (create_partial_symtab): Likewise.
5120 (add_partial_symbol): Likewise.
5121 (write_one_signatured_type): Likewise.
5122 (recursively_write_psymbols): Likewise.
5123 * mdebugread.c (parse_partial_symbols): Likewise.
5124 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5125 (scan_xcoff_symtab): Adjust to vector change.
5126 (xcoff_initial_scan): Likewise.
5128 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5130 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5132 2017-10-13 Yao Qi <yao.qi@linaro.org>
5134 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5135 Remove s390x-*-expedite, add s390x-expedite.
5137 2017-10-13 Yao Qi <yao.qi@linaro.org>
5139 * features/s390-gs-linux64.c: Regenerated.
5140 * features/s390x-gs-linux64.c: Regenerated.
5142 2017-10-13 Tom Tromey <tom@tromey.com>
5144 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5145 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5147 * symfile.c (symbol_file_add_with_addrs): Use new.
5148 (symbol_file_add_separate): Update comment.
5149 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5150 * jit.c (jit_object_close_impl): Use new.
5151 (jit_unregister_code): Use delete.
5152 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5153 (~objfile): Rename from free_objfile.
5154 (free_objfile_separate_debug, do_free_objfile_cleanup)
5155 (free_all_objfiles, objfile_purge_solibs): Use delete.
5156 * objfiles.h (struct objfile): Add constructor and destructor.
5157 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5158 (allocate_objfile, free_objfile): Don't declare.
5159 (struct objstats): Add initializers.
5161 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5163 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5164 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5165 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5166 * gdbarch.h: Regenerate.
5167 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5169 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5170 (i386_displaced_step_fixup): Adjust comment.
5171 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5173 2017-10-12 Tom Tromey <tom@tromey.com>
5175 * prologue-value.h (pv_area::store_would_trash): Return bool.
5176 (pv_area::find_reg): Likewise.
5177 * prologue-value.c (pv_area::store_would_trash): Return bool.
5178 (pv_area::find_reg): Likewise.
5180 2017-10-12 Tom Tromey <tom@tromey.com>
5182 * s390-linux-tdep.c (s390_store, s390_load)
5183 (s390_check_for_saved, s390_analyze_prologue): Update.
5184 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5185 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5186 * prologue-value.h (class pv_area): Move from prologue-value.c.
5187 Change names of members. Add constructor, destructor, member
5189 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5190 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5191 (pv_area_fetch, pv_area_scan): Don't declare.
5192 * prologue-value.c (struct pv_area::area_entry): Now member of
5194 (struct pv_area): Move to prologue-value.h.
5195 (pv_area::pv_area): Rename from make_pv_area.
5196 (pv_area::~pv_area): Rename from free_pv_area.
5197 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5198 (clear_entries, find_entry, overlaps, store_would_trash, store)
5199 (fetch, find_reg, scan): Now member of pv_area.
5200 Remove "area" argument. Update.
5201 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5203 * mn10300-tdep.c (push_reg, check_for_saved)
5204 (mn10300_analyze_prologue): Update.
5205 * mep-tdep.c (is_arg_spill, check_for_saved)
5206 (mep_analyze_prologue): Update.
5207 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5208 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5209 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5210 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5212 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5213 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5215 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5217 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5218 * linux-nat.c (linux_nat_delete_thread): New variable.
5219 (lwp_free): Invoke linux_nat_delete_thread if set.
5220 (linux_nat_set_delete_thread): New function.
5221 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5222 thread delete callback.
5223 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5224 (_initialize_arm_linux_nat): Assign thread delete callback.
5225 * s390-linux-nat.c (s390_delete_thread): New function.
5226 (_initialize_s390_nat): Assign thread delete callback.
5227 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5228 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5230 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5232 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5233 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5235 2017-10-09 Tom Tromey <tom@tromey.com>
5237 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5239 * tui/tui-layout.c (enum tui_status): Use std::string.
5241 2017-10-11 Tom Tromey <tom@tromey.com>
5243 * gdbthread.h (thread_command): Constify.
5244 * inferior.h (detach_command): Constify.
5245 * top.h (set_history, show_history): Constify.
5246 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5247 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5248 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5249 * printcmd.c (set_command): Constify.
5250 (non_const_set_command): New function.
5251 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5252 * breakpoint.c (enable_command, disable_command, delete_command)
5253 (catch_command, tcatch_command, set_breakpoint_cmd)
5254 (show_breakpoint_cmd): Constify.
5255 * macrocmd.c (macro_command): Constify.
5256 * infcmd.c (unset_command, kill_command, detach_command)
5257 (info_proc_cmd): Constify.
5258 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5259 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5260 (info_auto_load_cmd): Constify.
5261 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5262 (unset_tdesc_cmd): Constify.
5263 * ada-lang.c (set_ada_command, show_ada_command)
5264 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5265 * guile/guile.c (set_guile_command, show_guile_command)
5266 (info_guile_command): Constify.
5267 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5269 * skip.c (skip_command): Constify.
5270 * compile/compile.c (_initialize_compile): Constify.
5271 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5272 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5273 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5274 (maint_btrace_pt_show_cmd): Constify.
5275 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5277 * python/python.c (user_show_python, user_set_python): Constify.
5278 * mips-tdep.c (set_mips_command, show_mips_command)
5279 (set_mipsfpu_command): Constify.
5280 * record-btrace.c (cmd_record_btrace_start)
5281 (cmd_set_record_btrace, cmd_show_record_btrace)
5282 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5283 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5284 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5286 * symfile.c (overlay_command): Constify.
5287 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5288 * cli/cli-logging.c (set_logging_command, show_logging_command):
5290 * cli/cli-dump.c (dump_command, append_command)
5291 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5292 (tekhex_dump_command, binary_dump_command)
5293 (binary_append_command): Constify.
5294 * cli/cli-decode.c (struct cmd_list_element): Change type of
5296 * cli/cli-cmds.c (info_command, show_command, set_debug)
5297 (show_debug): Constify.
5298 (show_command): Add non-const overload.
5299 * top.c (set_history, show_history): Constify.
5300 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5301 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5302 * target.c (target_command): Constify.
5303 * sparc64-tdep.c (info_adi_command): Constify.
5304 * record-full.c (cmd_record_full_start): Constify.
5305 (set_record_full_command): Constify. Fix typo.
5306 (show_record_full_command): Constify.
5307 * thread.c (thread_command, thread_apply_command): Constify.
5308 * memattr.c (dummy_cmd): Constify.
5309 * value.c (function_command): Constify.
5310 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5311 * probe.c (info_probes_command): Constify.
5312 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5313 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5314 (show_thread_cmd, set_thread_default_cmd)
5315 (show_thread_default_cmd): Constify.
5316 (check_empty): Constify.
5317 * tracepoint.c (tfind_command): Constify.
5318 * cp-support.c (maint_cplus_command): Constify.
5319 * windows-tdep.c (info_w32_command): Constify.
5320 * record.c (cmd_record_start, set_record_command)
5321 (show_record_command, info_record_command, cmd_record_goto):
5323 * ravenscar-thread.c (set_ravenscar_command)
5324 (show_ravenscar_command): Constify.
5325 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5327 (add_internal_problem_command): Remove casts.
5328 * arc-tdep.c (maintenance_print_arc_command): Constify.
5329 * valprint.c (set_print, show_print, set_print_raw)
5330 (show_print_raw): Constify.
5331 * maint.c (maintenance_command, maintenance_info_command)
5332 (maintenance_print_command, maintenance_set_cmd)
5333 (maintenance_show_cmd, set_per_command_cmd)
5334 (show_per_command_cmd, maintenance_check_command): Constify.
5335 * language.c (set_check, show_check): Constify.
5336 * typeprint.c (show_print_type, set_print_type): Constify.
5337 * go32-nat.c (go32_info_dos_command): Constify.
5339 2017-10-11 Tom Tromey <tom@tromey.com>
5341 * breakpoint.c (prepare_re_set_context): Remove.
5342 (breakpoint_re_set_one): Update. Don't use cleanups.
5343 (breakpoint_re_set): Use scoped_restore, std::string, and
5344 scoped_restore_current_language.
5346 2017-10-11 Tom Tromey <tom@tromey.com>
5348 * breakpoint.c (commands_command_1): Use std::string.
5349 (cleanup_executing_breakpoints): Remove.
5350 (bpstat_do_actions_1): Use scoped_restore.
5351 (bpstat_check_watchpoint): Use std::string.
5352 (decode_static_tracepoint_spec): Likewise.
5353 (break_range_command): Likewise.
5354 (watch_command_1): Likewise.
5355 (compare_breakpoints): Change argument types.
5356 (clear_command): Use std::vector.
5357 (cleanup_executing_breakpoints): Remove.
5358 (update_global_location_list): Use unique_xmalloc_ptr.
5359 (strace_command): Remove unused declaration.
5361 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5363 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5364 * NEWS: Mention new FreeBSD/arm native configuration.
5365 * configure.host: Add arm*-*-freebsd*.
5366 * configure.nat: Likewise.
5367 * arm-fbsd-nat.c: New file.
5369 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5371 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5372 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5373 * NEWS: Mention new FreeBSD/arm target.
5374 * configure.tgt: Add arm*-*-freebsd*.
5375 * arm-fbsd-tdep.c: New file.
5376 * arm-fbsd-tdep.h: New file.
5378 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5380 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5381 `gdbarch_elfcore_write_linux_prpsinfo'.
5382 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5384 (elf_internal_linux_prpsinfo): Remove declaration.
5385 * gdbarch.h: Regenerate.
5386 * gdbarch.c: Regenerate.
5388 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5390 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5391 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5393 2017-10-11 Pedro Alves <palves@redhat.com>
5395 * breakpoint.c (reattach_breakpoints): Delete.
5396 * breakpoint.h (reattach_breakpoints): Delete.
5398 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5400 * symfile.c (registered_sym_fns): Make struct, not typedef.
5401 (DEF_VEC_O (registered_sym_fns)): Remove.
5402 (symtab_fns): Change type to std::vector.
5403 (add_symtab_fns): Adjust.
5404 (find_sym_fns): Adjust.
5406 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5408 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5409 * arc-tdep.h (arc_arch_is_em): New function.
5410 (arc_arch_is_hs): Likewise.
5412 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5414 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5415 parentheses in the declaration.
5416 (macro_lookup_inclusion): Likewise.
5417 (macro_lookup_definition): Likewise.
5418 * p-lang.h (pascal_builtin_types): Likewise.
5419 * tui/tui-data.c (tui_win_list): Likewise.
5420 * tui/tui-data.h (tui_win_list): Likewise.
5421 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5423 2017-10-11 Mark Rages <markrages@gmail.com>
5425 * target-memory.c (block_boundaries): Fix for block address not
5426 aligned on block size.
5428 2017-10-10 Pedro Alves <palves@redhat.com>
5429 Tom Tromey <tom@tromey.com>
5431 * breakpoint.c (struct captured_breakpoint_query_args)
5432 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5433 (print_breakpoint): New.
5434 * breakpoint.h (print_breakpoint): Declare.
5435 * common/common-exceptions.h (enum return_reason): Remove
5436 references to catch_exceptions.
5437 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5439 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5440 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5442 * gdbthread.h (thread_select): Declare.
5443 * mi/mi-cmd-break.c: Don't include gdb.h.
5444 (breakpoint_notify): Use print_breakpoint.
5445 * mi/mi-cmd-catch.c: Don't include gdb.h.
5446 * mi/mi-interp.c: Don't include gdb.h.
5447 (mi_print_breakpoint_for_event): New.
5448 (mi_breakpoint_created, mi_breakpoint_modified): Use
5449 mi_print_breakpoint_for_event.
5450 * mi/mi-main.c: Don't include gdb.h.
5451 (mi_cmd_thread_select): Parse the global thread ID here. Use
5452 thread_select instead of gdb_thread_select.
5453 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5454 of using gdb_list_thread_ids.
5455 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5457 (remote_fileio_request): Use TRY/CATCH instead of
5459 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5460 (symbol_file_add_from_memory_wrapper): Delete.
5461 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5462 * thread.c: Don't include gdb.h.
5463 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5464 (thread_alive): Use thread_select.
5465 (do_captured_thread_select): Delete, parts salvaged as ...
5466 (thread_select): ... this new function.
5467 (gdb_thread_select): Delete.
5469 2017-10-10 Pedro Alves <palves@redhat.com>
5470 Tom Tromey <tom@tromey.com>
5472 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5474 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5475 No longer macros. Instead ...
5476 (enum wp_check_result): They're now values of this new
5478 (watchpoint_check): Change return type to wp_check_result and
5479 parameter type to bpstat.
5480 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5481 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5482 catch_errors. Reverse logic of watchpoint_check call.
5483 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5484 pointer as parameter.
5485 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5486 * common/common-exceptions.c (throw_exception_sjlj): Update
5487 comments to avoid mentioning catch_errors.
5488 * exceptions.c (catch_errors): Delete.
5489 * exceptions.h: Update comments to avoid mentioning catch_errors.
5490 (catch_errors_ftype, catch_errors): Delete.
5491 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5492 (hook_stop_stub): Delete.
5493 (restore_selected_frame): Change return type to void, and
5494 parameter type to const frame_id &.
5495 (restore_infcall_control_state): Use TRY/CATCH instead of
5497 * main.c (captured_command_loop): Return void and remove
5498 parameter. Remove references to catch_errors.
5499 (captured_main): Use TRY/CATCH instead of catch_errors.
5500 * objc-lang.c (objc_submethod_helper_data)
5501 (find_objc_msgcall_submethod_helper): Delete.
5502 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5504 * record-full.c (record_full_message): Return void.
5505 (record_full_message_args, record_full_message_wrapper): Delete.
5506 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5507 instead of catch_errors.
5508 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5509 parameter type to int.
5510 * solib-darwin.c (open_symbol_file_object): Ditto.
5511 * solib-dsbt.c (open_symbol_file_object): Ditto.
5512 * solib-frv.c (open_symbol_file_object): Ditto.
5513 * solib-svr4.c (open_symbol_file_object): Ditto.
5514 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5515 * solib.c (update_solib_list): Use TRY/CATCH instead of
5517 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5519 * symmisc.c (struct print_symbol_args): Remove.
5520 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5521 (print_symbol): Change type.
5522 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5523 and remove parameters.
5524 (catch_errors): New.
5525 (get_windows_debug_event): Adjust.
5527 2017-10-09 Tom Tromey <tom@tromey.com>
5529 * mi/mi-main.c (free_splay_tree): Remove.
5530 (list_available_thread_groups): Use splay_tree_up.
5531 * common/gdb_splay_tree.h: New file.
5533 2017-10-09 Tom Tromey <tom@tromey.com>
5535 * mi/mi-main.c (do_nothing): Remove.
5536 (list_available_thread_groups): Update.
5538 2017-10-09 Pedro Alves <palves@redhat.com>
5540 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5541 reading registers when switching context.
5543 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5545 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5546 (fbsd_convert_siginfo): Likewise.
5547 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5549 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5551 * configure.ac (try_guile_versions): Remove guile-2.2.
5552 * configure: Regenerate.
5554 2017-10-09 Tom Tromey <tom@tromey.com>
5556 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5557 (COMPILE.pre): Use $(CXX).
5559 2017-10-09 Pedro Alves <palves@redhat.com>
5561 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5563 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5564 * cp-support.h (cp_remove_params): Now returns a
5565 gdb::unique_xmalloc_ptr.
5566 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5567 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5568 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5569 returning a gdb::unique_xmalloc_ptr.
5570 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5571 * stack.c (find_frame_funname): Adjust to cp_remove_params
5572 returning a gdb::unique_xmalloc_ptr.
5574 2017-10-08 Tom Tromey <tom@tromey.com>
5576 * dwarf2read.c (dwarf2_get_dwz_file): Use
5577 gdb::unique_xmalloc_ptr.
5578 (find_slot_in_mapped_hash): Likewise.
5579 (dwarf2_physname): Likewise.
5580 (create_dwo_unit_in_dwp_v1): Use std::string.
5581 (create_dwo_unit_in_dwp_v2): Likewise.
5582 (lookup_dwo_cutu): Likewise.
5583 (inherit_abstract_dies): Use std::vector.
5584 (read_array_type): Likewise.
5585 (dwarf_decode_macros): Remove unused declaration.
5586 (unsigned_int_compar): Remove.
5587 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5588 (psymtabs_addrmap_cleanup): Remove.
5590 2017-10-08 Tom Tromey <tom@tromey.com>
5592 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5593 * frame.h (frame_cleanup_after_sniffer): Declare.
5594 (frame_prepare_for_sniffer): Return void.
5595 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5597 (frame_prepare_for_sniffer): Return void.
5599 2017-10-08 Tom Tromey <tom@tromey.com>
5601 * utils.h (make_cleanup_value_free): Remove.
5602 * utils.c (do_value_free, struct cleanup): Remove.
5603 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5605 * value.h (struct value_deleter): New.
5606 (gdb_value_up): New typedef.
5608 2017-10-08 Tom Tromey <tom@tromey.com>
5610 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5611 (make_cleanup_free_search_symbols): Remove.
5612 (search_symbols): Return std::vector.
5613 (symbol_search::compare_search_syms): Now member of
5614 symbol_search. Change arguments.
5615 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5616 (symtab_symbol_info, rbreak_command): Update.
5617 * symtab.h (struct symbol_search) <next>: Remove.
5619 (symbol_search::operator<): New function.
5620 (symbol_search::operator==): New function.
5621 (search_symbols): Remove std::vector.
5622 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5623 (symbol_search::compare_search_syms): Declare.
5625 2017-10-06 Yao Qi <yao.qi@linaro.org>
5627 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5628 arch/aarch64-insn.o.
5630 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5632 2017-10-06 Yao Qi <yao.qi@linaro.org>
5634 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5635 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5636 arch/arm-linux.o respectively.
5637 * configure.tgt: Likewise.
5639 2017-10-06 Yao Qi <yao.qi@linaro.org>
5641 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5642 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5644 2017-10-06 Pedro Alves <palves@redhat.com>
5646 * windows-nat.c: Include <algorithm>.
5648 2017-10-06 Yao Qi <yao.qi@linaro.org>
5650 * configure.tgt (i386_tobjs): New variable.
5651 (amd64_tobjs): New variable.
5652 Set $cpu_obs and $os_obs.
5654 2017-10-06 Yao Qi <yao.qi@linaro.org>
5656 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5657 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5658 (clean): Remove object files and dependency files.
5659 (distclean): Remove the directory.
5660 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5661 * configure: Re-generated.
5662 * configure.tgt: Replace amd64.o with arch/amd64.o.
5664 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5667 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5670 2017-10-05 Pedro Alves <palves@redhat.com>
5672 * linux-nat.c (linux_child_follow_fork): When following the parent
5673 and detaching the child, consult the parent thread's architecture
5674 instead of the child's.
5676 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5678 * ax.h: Do not include "doublest.h".
5679 (union agent_val): Remove.
5681 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5683 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5684 (decimal_to_string): Return std::string object.
5685 (decimal_from_string): Accept std::string object. Return bool.
5686 (decimal_from_integral, decimal_from_doublest): Remove.
5687 (decimal_from_longest): Add prototype.
5688 (decimal_from_ulongest): Likewise.
5689 (decimal_to_longest): Likewise.
5690 (decimal_from_doublest): Likewise.
5691 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5692 (MAX_DECIMAL_STRING): Move here.
5693 (decimal_to_string): Return std::string object.
5694 (decimal_from_string): Accept std::string object. Return bool.
5695 (decimal_from_integral): Remove, replace by ...
5696 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5697 (decimal_to_longest): New function.
5698 (decimal_from_floating): Remove, replace by ...
5699 (decimal_from_doublest): ... this new function.
5700 (decimal_to_doublest): Update to new decimal_to_string interface.
5702 * value.c (unpack_long): Use decimal_to_longest.
5703 * valops.c (value_cast): Use decimal_from_doublest instead of
5704 decimal_from_floating. Use decimal_from_[u]longest isntead of
5705 decimal_from_integral.
5706 * valarith.c (value_args_as_decimal): Likewise.
5707 * valprint.c (print_decimal_floating): Update to new
5708 decimal_to_string interface.
5709 * printcmd.c (printf_decfloat): Likewise.
5710 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5712 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5714 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5715 * gdbtypes.c: Include "floatformat.h".
5716 * value.c: Likewise.
5717 * m68k-tdep.c: Likewise.
5719 * findvar.c: Do not include "floatformat.h".
5720 * amd64-darwin-tdep.c: Likewise.
5721 * arm-linux-tdep.c: Likewise.
5722 * i386-darwin-tdep.c: Likewise.
5723 * i387-tdep.c: Likewise.
5724 * m68k-linux-tdep.c: Likewise.
5725 * mep-tdep.c: Likewise.
5726 * mips-tdep.c: Likewise.
5727 * nios2-tdep.c: Likewise.
5728 * s390-linux-tdep.c: Likewise.
5729 * sparc-obsd-tdep.c: Likewise.
5730 * sparc-tdep.c: Likewise.
5731 * sparc64-tdep.c: Likewise.
5732 * spu-tdep.c: Likewise.
5733 * tic6x-tdep.c: Likewise.
5734 * tilegx-tdep.c: Likewise.
5735 * vax-tdep.c: Likewise.
5736 * xstormy16-tdep.c: Likewise.
5737 * xtensa-tdep.c: Likewise.
5739 * top.c: Do not include "doublest.h".
5740 * aarch64-tdep.c: Likewise.
5741 * alpha-tdep.c: Likewise.
5742 * arm-linux-tdep.c: Likewise.
5743 * m68k-linux-tdep.c: Likewise.
5744 * tilegx-tdep.c: Likewise.
5745 * xstormy16-tdep.c: Likewise.
5747 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5749 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5750 (mipsn32_fbsd_sigframe): Define.
5751 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5752 for FreeBSD/mipsn32.
5754 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5756 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5759 2017-10-05 Tristan Gingold <tgingold@free.fr>
5761 * MAINTAINERS (Misc): Update my email address.
5763 2017-10-04 Pedro Alves <palves@redhat.com>
5765 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5766 it instead of target_gdbarch.
5767 (get_remote_state, get_remote_packet_size): Adjust
5768 get_remote_arch_state calls, passing down target_gdbarch
5770 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5771 'gdbarch' and use it instead of target_gdbarch.
5772 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5773 passing down target_gdbarch explicitly.
5774 (struct stop_reply) <arch>: New field.
5775 (remote_parse_stop_reply): Use the stopped thread's architecture,
5776 not the current inferior's. Save the architecture in the
5778 (process_stop_reply): Use the stop reply's architecture.
5779 (process_g_packet, remote_fetch_registers)
5780 (remote_prepare_to_store, store_registers_using_G)
5781 (remote_store_registers): Adjust get_remote_arch_state calls,
5782 using the regcache's architecture.
5783 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5784 passing down target_gdbarch explicitly.
5785 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5786 beneath instead of calling target_gdbarch.
5787 * target.c (default_thread_architecture): Use the specified
5788 inferior's architecture, instead of the current inferior's
5789 architecture (via target_gdbarch).
5791 2017-10-04 Pedro Alves <palves@redhat.com>
5793 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5795 (regcache_print): Handle !target_has_registers here instead.
5797 2017-10-04 Pedro Alves <palves@redhat.com>
5799 * frame.c (create_test_frame): Delete.
5800 * frame.h (create_test_frame): Delete.
5801 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5802 (class regcache_test): Delete.
5803 (test_target_has_registers, test_target_has_stack)
5804 (test_target_has_memory, test_target_prepare_to_store)
5805 (test_target_store_registers): New functions.
5806 (test_target_ops): New class.
5807 (register_to_value_test): Error out if there's already a
5808 process_stratum (or higher) target pushed. Create a fuller mock
5809 environment, with mock target_ops, inferior, address space, thread
5811 * progspace.c (struct address_space): Move to ...
5812 * progspace.h (struct address_space): ... here.
5813 * regcache.h (regcache::~regcache, regcache::raw_write)
5814 [GDB_SELF_TEST]: No longer virtual.
5816 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5818 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5820 2017-10-04 Pedro Alves <palves@redhat.com>
5822 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5823 out of 'between TRY and CATCH'.
5825 2017-10-04 Pedro Alves <palves@redhat.com>
5827 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5828 * common/common-exceptions.h (TRY): Open an outermost scope.
5829 Expand intro comment.
5831 (END_CATCH): Close the outermost scope.
5832 * completer.c (complete_line_internal): Add missing END_CATCH.
5834 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5836 * NEWS (Changes since GDB 8.0): Add entry about new
5837 'set-cwd-on-gdbserver' feature.
5838 (New remote packets): Add entry for QSetWorkingDir.
5839 * common/common-inferior.h (set_inferior_cwd): New prototype.
5840 * infcmd.c (set_inferior_cwd): Remove "static".
5841 (show_cwd_command): Expand text to include remote debugging.
5842 * remote.c: Add PACKET_QSetWorkingDir.
5843 (remote_protocol_features) <QSetWorkingDir>: New entry for
5844 PACKET_QSetWorkingDir.
5845 (extended_remote_set_inferior_cwd): New function.
5846 (extended_remote_create_inferior): Call
5847 "extended_remote_set_inferior_cwd".
5848 (_initialize_remote): Call "add_packet_config_cmd" for
5851 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5853 * NEWS (New commands): Mention "set/show cwd".
5854 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5855 "cd" command's help text.
5856 * common/common-inferior.h (get_inferior_cwd): New prototype.
5857 * infcmd.c (inferior_cwd_scratch): New global variable.
5858 (set_inferior_cwd): New function.
5859 (get_inferior_cwd): Likewise.
5860 (set_cwd_command): Likewise.
5861 (show_cwd_command): Likewise.
5862 (_initialize_infcmd): Add "set/show cwd" commands.
5863 * inferior.h (class inferior) <cwd>: New field.
5864 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5865 (fork_inferior): Change inferior's cwd before its execution.
5866 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5869 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5871 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5872 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5873 (COMMON_OBS): Add gdb_tilde_expand.o.
5874 * common/gdb_tilde_expand.c: New file.
5875 * common/gdb_tilde_expand.h: Likewise.
5877 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5879 * gdbarch.sh (objfile): Remove duplicate declaration.
5880 * gdbarch.h: Regenerate.
5882 2017-10-03 Tom Tromey <tom@tromey.com>
5884 * utils.c (internal_vproblem): Use string_vprintf.
5886 2017-10-03 Tom Tromey <tom@tromey.com>
5888 * printcmd.c (info_symbol_command): Use std::string.
5890 2017-10-03 Tom Tromey <tom@tromey.com>
5892 * top.c (gdb_safe_append_history): Use std::string.
5894 2017-10-03 Tom Tromey <tom@tromey.com>
5896 * event-top.c (stdin_event_handler): Update.
5897 * main.c (captured_main_1): Update.
5898 * top.h (make_delete_ui_cleanup): Remove.
5899 (struct ui): Add constructor and destructor.
5900 (new_ui, delete_ui): Remove.
5901 * top.c (make_delete_ui_cleanup): Remove.
5902 (new_ui_command): Use std::unique_ptr.
5903 (delete_ui_cleanup): Remove.
5904 (ui::ui): Rename from new_ui. Update.
5906 (ui::~ui): Rename from delete_ui. Update.
5908 2017-10-03 Tom Tromey <tom@tromey.com>
5910 * symfile.c (load_progress): Use gdb::byte_vector.
5912 2017-10-03 Tom Tromey <tom@tromey.com>
5914 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5916 * printcmd.c (x_command): Remove unused declaration.
5917 * symfile.c (symbol_file_command): Remove unused declaration.
5919 2017-10-03 Tom Tromey <tom@tromey.com>
5921 * utils.c (internal_vproblem): Use std::string.
5922 (defaulted_query): Likewise.
5924 2017-10-03 Tom Tromey <tom@tromey.com>
5926 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5927 * top.c (execute_command_to_string): Update.
5928 * utils.c (make_cleanup_restore_page_info): Remove.
5929 (do_restore_page_info_cleanup): Remove.
5930 (set_batch_flag_and_restore_page_info):
5932 (make_cleanup_restore_page_info): Remove.
5933 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5934 (~set_batch_flag_and_restore_page_info): New
5935 (make_cleanup_restore_uinteger): Remove.
5936 (make_cleanup_restore_integer): Remove.
5937 (struct restore_integer_closure): Remove.
5938 (restore_integer): Remove.
5939 * utils.h (struct set_batch_flag_and_restore_page_info): New
5941 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5942 (make_cleanup_restore_page_info): Remove.
5943 (make_cleanup_restore_uinteger) Remove.
5944 (make_cleanup_restore_integer) Remove.
5946 2017-10-03 Tom Tromey <tom@tromey.com>
5948 * record-full.h (record_full_gdb_operation_disable_set): Return
5949 scoped_restore_tmpl<int>.
5950 * infrun.c (adjust_pc_after_break): Update.
5951 (handle_signal_stop): Update.
5952 * record-full.c (record_full_gdb_operation_disable_set): Return
5953 scoped_restore_tmpl<int>.
5954 (record_full_wait_1, record_full_insert_breakpoint)
5955 (record_full_remove_breakpoint, record_full_save)
5956 (record_full_goto_insn): Update.
5958 2017-10-02 Tom Tromey <tom@tromey.com>
5961 * rust-lang.c (rust_val_print_str): New function.
5962 (val_print_struct): Call it.
5963 (rust_subscript): Preserve name of slice type.
5965 2017-10-02 Tom Tromey <tom@tromey.com>
5967 * rust-lang.c (rust_subscript): Handle slices in
5968 EVAL_AVOID_SIDE_EFFECTS case.
5970 2017-10-02 Tom Tromey <tom@tromey.com>
5972 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5974 2017-10-02 Tom Tromey <tom@tromey.com>
5976 * rust-lang.h (rust_slice_type): Add "extern".
5978 2017-10-02 Tom Tromey <tom@tromey.com>
5979 Pedro Alves <palves@redhat.com>
5981 * ada-lang.h (ada_exc_info::operator<): Make const.
5982 (ada_exc_info::operator==): Make const.
5983 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5986 2017-09-29 Tom Tromey <tom@tromey.com>
5988 * target.c (read_whatever_is_readable): Change type of "result".
5990 (free_memory_read_result_vector): Remove.
5991 (read_memory_robust): Change return type. Update.
5992 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5993 bin2hex, std::string.
5994 * target.h (memory_read_result_s): Remove typedef.
5995 (free_memory_read_result_vector): Remove.
5996 (read_memory_robust): Return std::vector.
5998 2017-09-29 Tom Tromey <tom@tromey.com>
6000 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
6002 2017-09-29 Tom Tromey <tom@tromey.com>
6004 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
6005 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
6006 operator< and operator==.
6007 (ada_exceptions_list): Return a std::vector.
6008 * ada-lang.c (ada_exc_info::operator<): Rename from
6009 compare_ada_exception_info.
6010 (ada_exc_info::operator==): New.
6011 (sort_remove_dups_ada_exceptions_list): Change type of
6013 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
6014 (ada_add_global_exceptions): Likewise.
6015 (ada_exceptions_list_1): Return a std::vector.
6016 (ada_exceptions_list): Likewise.
6018 2017-09-29 Tom Tromey <tom@tromey.com>
6020 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6022 (print_one_inferior): Update.
6023 (free_vector_of_ints): Remove.
6024 (list_available_thread_groups): Change "ids" to std::set.
6025 (mi_cmd_list_thread_groups): Update.
6026 (struct collect_cores_data) <core>: Now a std::set.
6027 (collect_cores): Update.
6029 (print_one_inferior): Update.
6031 2017-09-29 Tom Tromey <tom@tromey.com>
6033 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6034 (mi_execute_async_cli_command): Likewise.
6035 (mi_cmd_trace_frame_collected): Use field_fmt.
6037 2017-09-29 Tom Tromey <tom@tromey.com>
6039 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6042 2017-09-29 Tom Tromey <tom@tromey.com>
6044 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6046 2017-09-29 Tom Tromey <tom@tromey.com>
6048 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6050 2017-09-29 Tom Tromey <tom@tromey.com>
6052 * varobj.h (varobj_gen_name): Return std::string.
6053 * varobj.c (varobj_gen_name): Return std::string.
6054 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6055 (mi_cmd_var_delete): Don't copy "name".
6057 2017-09-29 Tom Tromey <tom@tromey.com>
6059 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6060 (mi_cmd_break_insert_1): Update.
6062 2017-09-29 Tom Tromey <tom@tromey.com>
6064 * target.h (make_scoped_defer_target_commit_resume): Update.
6065 * target.c (make_scoped_defer_target_commit_resume): Rename from
6066 make_cleanup_defer_target_commit_resume. Return a
6068 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6070 2017-09-29 Tom Tromey <tom@tromey.com>
6072 * main.c (captured_main_1): Remove unused declaration.
6073 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6075 2017-09-29 Tom Tromey <tom@tromey.com>
6077 * symtab.c (search_symbols): Remove unused outer cleanup.
6078 (make_source_files_completion_list): Remove unused declaration.
6080 2017-09-29 Tom Tromey <tom@tromey.com>
6082 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6084 2017-09-29 Tom Tromey <tom@tromey.com>
6086 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6089 2017-09-29 Tom Tromey <tom@tromey.com>
6091 * complaints.c (vcomplaint): Use std::string.
6093 2017-09-29 Tom Tromey <tom@tromey.com>
6095 * tracepoint.c (trace_variable_command): Use std::string.
6096 (encode_actions_1): Remove unused declarations.
6097 (create_tsv_from_upload): Use std::string.
6099 2017-09-29 Tom Tromey <tom@tromey.com>
6101 * cp-support.c (gdb_demangle): Use std::string.
6103 2017-09-29 Tom Tromey <tom@tromey.com>
6105 * stack.c (parse_frame_specification): Use std::string
6106 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6108 2017-09-29 Tom Tromey <tom@tromey.com>
6110 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6112 2017-09-29 Tom Tromey <tom@tromey.com>
6114 * utils.c (vfprintf_maybe_filtered): Use std::string.
6115 (vfprintf_unfiltered): Likewise.
6117 2017-09-29 Tom Tromey <tom@tromey.com>
6119 * event-top.c (top_level_prompt): Return std::string.
6120 (display_gdb_prompt): Update.
6122 2017-09-29 Tom Tromey <tom@tromey.com>
6124 * unittests/common-utils-selftests.c (format): New function.
6125 (string_vprintf_tests): New function.
6126 (_initialize_common_utils_selftests): Register new tests.
6127 * common/common-utils.c (string_vprintf): New function.
6128 * common/common-utils.h (string_vprintf): Declare.
6130 2017-09-29 Pedro Alves <palves@redhat.com>
6132 * common/rsp-low.c (unpack_varlen_hex): Constify.
6133 * common/rsp-low.h (unpack_varlen_hex): Constify.
6134 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6136 * remote.c (remote_set_permissions, read_ptid)
6137 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6138 (remote_static_tracepoint_marker_at)
6139 (remote_static_tracepoint_markers_by_strid)
6140 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6141 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6142 (parse_tracepoint_definition, parse_tsv_definition)
6143 (parse_static_tracepoint_marker_definition): Constify.
6144 * tracepoint.h (parse_static_tracepoint_marker_definition)
6145 (parse_trace_status, parse_tracepoint_status)
6146 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6148 2017-09-29 Pedro Alves <palves@redhat.com>
6150 * remote.c (target_buf, target_buf_size): Delete.
6151 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6152 Use the connection's packet buffer instead.
6153 All callers adjusted.
6154 (_initialize_remote): Remove references to target_buf and
6157 2017-09-28 Pedro Alves <palves@redhat.com>
6159 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6160 unittests/common-utils-selftests.c.
6161 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6162 (COMMON_OBS): Remove utils-selftests.o.
6163 * utils-selftests.c: Move to ...
6164 * unittests/common-utils-selftests.c: ... here and rename self
6165 test to "string_printf".
6167 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6169 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6170 having NULL cus or tus.
6172 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6174 * arm-tdep.c: (convert_from_extended): Remove.
6175 (convert_to_extended): Likewise.
6176 (arm_extract_return_value): Use convert_typed_floating.
6177 (arm_store_return_value): Likewise.
6179 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6180 * sh-tdep.c: Do not include "floatformat.h".
6181 (sh_littlebyte_bigword_type): New function.
6182 (sh_register_convert_to_virtual): Use convert_typed_floating.
6183 (sh_register_convert_to_raw): Likewise.
6184 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6185 (sh64_littlebyte_bigword_type): New function.
6186 (sh64_extract_return_value): Use convert_typed_floating.
6187 (sh64_register_convert_to_virtual): Likewise.
6188 (sh64_register_convert_to_raw): Likewise.
6190 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6192 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6193 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6195 * gdbtypes.h (union type_specific): Make field floatformat hold
6196 just a single struct floatformat, not an array.
6197 (floatformat_from_type): Move here.
6198 * gdbtypes.c (floatformat_from_type): Move here. Update to
6199 changed TYPE_FLOATFORMAT definition.
6200 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6201 (recursive_dump_type): Likewise.
6202 (init_float_type): Install correct floatformat for byte order.
6203 (arch_float_type): Likewise.
6205 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6207 * gdbtypes.c (init_type): Change incoming argument from
6208 length-in-bytes to length-in-bits. Assert length is a
6209 multiple of TARGET_CHAR_BITS.
6210 (arch_type, arch_flags_type): Likewise.
6211 (init_integer_type): Update call to init_type.
6212 (init_character_type): Likewise.
6213 (init_boolean_type): Likewise.
6214 (init_float_type): Likewise.
6215 (init_decfloat_type): Likewise.
6216 (init_complex_type): Likewise.
6217 (init_pointer_type): Likewise.
6218 (objfile_type): Likewise.
6219 (arch_integer_type): Update call to arch_type.
6220 (arch_character_type): Likewise.
6221 (arch_boolean_type): Likewise.
6222 (arch_float_type): Likewise.
6223 (arch_decfloat_type): Likewise.
6224 (arch_complex_type): Likewise.
6225 (arch_pointer_type): Likewise.
6226 (gdbtypes_post_init): Likewise.
6228 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6229 (read_base_type): Likewise.
6230 * mdebugread.c (basic_type): Likewise.
6231 * stabsread.c (dbx_init_float_type): Likewise.
6232 (rs6000_builtin_type): Likewise.
6233 (read_range_type): Likewise. Also, fix call to init_integer_type
6234 with erroneous length argument.
6236 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6237 * d-lang.c (build_d_types): Likewise.
6238 * f-lang.c (build_fortran_types): Likewise.
6239 * go-lang.c (build_go_types): Likewise.
6240 * opencl-lang.c (build_opencl_types): Likewise.
6241 * jit.c (finalize_symtab): Likewise.
6242 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6243 (build_std_type_info_type): Likewise.
6244 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6245 update call to arch_flags_type.
6247 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6249 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6250 * windows-tdep.c (windows_get_tlb_type): Likewise.
6252 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6253 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6254 * m32c-tdep.c (make_types): Likewise.
6255 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6256 (rl78_psw_type): Update call to arch_flags_type.
6257 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6258 * rx-tdep.c (rx_psw_type): Likewise.
6259 (rx_fpsw_type): Likewise.
6260 * sparc-tdep.c (sparc_psr_type): Likewise.
6261 (sparc_fsr_type): Likewise.
6262 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6263 (sparc64_ccr_type): Likewise.
6264 (sparc64_fsr_type): Likewise.
6265 (sparc64_fprs_type): Likewise.
6267 2017-09-27 Tom Tromey <tom@tromey.com>
6269 * findcmd.c (find_command): Constify.
6271 2017-09-27 Tom Tromey <tom@tromey.com>
6273 * ada-tasks.c (task_command_1, task_command): Constify.
6275 2017-09-27 Tom Tromey <tom@tromey.com>
6277 * symtab.c (maintenance_print_symbol_cache)
6278 (maintenance_flush_symbol_cache)
6279 (maintenance_print_symbol_cache_statistics): Constify.
6281 2017-09-27 Tom Tromey <tom@tromey.com>
6283 * inferior.c (detach_inferior_command, kill_inferior_command)
6284 (inferior_command): Constify.
6286 2017-09-27 Tom Tromey <tom@tromey.com>
6288 * regcache.c (regcache_print, maintenance_print_registers)
6289 (maintenance_print_raw_registers)
6290 (maintenance_print_cooked_registers)
6291 (maintenance_print_register_groups)
6292 (maintenance_print_remote_registers): Constify.
6294 2017-09-27 Tom Tromey <tom@tromey.com>
6296 * printcmd.c (map_display_numbers, undisplay_command)
6297 (enable_disable_display_command, enable_display_command)
6298 (disable_display_command): Constify.
6300 2017-09-27 Tom Tromey <tom@tromey.com>
6302 * breakpoint.h (delete_command): Don't declare.
6303 * breakpoint.c (delete_command, enable_once_command)
6304 (enable_count_command, enable_delete_command, breakpoint_1)
6305 (maintenance_info_breakpoints, stopin_command, stopat_command)
6306 (delete_command, delete_trace_command, save_breakpoints)
6307 (save_breakpoints_command, save_tracepoints_command): Constify.
6309 2017-09-27 Tom Tromey <tom@tromey.com>
6311 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6312 (skip_ws, extract_identifier, macro_define_command)
6313 (macro_undef_command, macro_list_command): Constify.
6315 2017-09-27 Tom Tromey <tom@tromey.com>
6317 * infcmd.c (environment_info, set_environment_command)
6318 (unset_environment_command, path_info, info_proc_cmd_1)
6319 (info_proc_cmd_mappings, info_proc_cmd_stat)
6320 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6321 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6323 2017-09-27 Tom Tromey <tom@tromey.com>
6325 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6328 2017-09-27 Tom Tromey <tom@tromey.com>
6330 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6332 2017-09-27 Tom Tromey <tom@tromey.com>
6334 * demangle.c (demangle_command): Constify.
6336 2017-09-27 Tom Tromey <tom@tromey.com>
6338 * progspace.c (maintenance_info_program_spaces_command):
6341 2017-09-27 Tom Tromey <tom@tromey.com>
6343 * compile/compile.c (check_raw_argument, compile_file_command)
6344 (compile_code_command, compile_print_command): Constify.
6346 2017-09-27 Tom Tromey <tom@tromey.com>
6348 * reggroups.c (maintenance_print_reggroups): Constify.
6350 2017-09-27 Tom Tromey <tom@tromey.com>
6352 * dwarf2read.c (save_gdb_index_command): Constify.
6354 2017-09-27 Tom Tromey <tom@tromey.com>
6356 * stap-probe.c (info_probes_stap_command): Constify.
6358 2017-09-27 Tom Tromey <tom@tromey.com>
6360 * fork-child.c (unset_exec_wrapper_command): Constify.
6362 2017-09-27 Tom Tromey <tom@tromey.com>
6364 * btrace.c (get_uint, get_context_size, no_chunk)
6365 (maint_btrace_packet_history_cmd)
6366 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6367 (maint_info_btrace_cmd): Constify.
6369 2017-09-27 Tom Tromey <tom@tromey.com>
6371 * reverse.c (delete_bookmark_command): Constify.
6373 2017-09-27 Tom Tromey <tom@tromey.com>
6375 * remote.c (set_memory_packet_size)
6376 (set_memory_write_packet_size, show_memory_write_packet_size)
6377 (set_memory_read_packet_size, show_memory_read_packet_size)
6378 (compare_sections_command, packet_command, remote_put_command)
6379 (remote_get_command, remote_delete_command): Constify.
6381 2017-09-27 Tom Tromey <tom@tromey.com>
6383 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6384 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6385 (set_mipsfpu_auto_command): Constify.
6387 2017-09-27 Tom Tromey <tom@tromey.com>
6389 * cli/cli-cmds.h (cd_command): Constify.
6390 * cli/cli-cmds.c (cd_command): Constify.
6392 2017-09-27 Tom Tromey <tom@tromey.com>
6394 * thread.c (thread_name_command, thread_find_command): Constify.
6396 2017-09-27 Tom Tromey <tom@tromey.com>
6398 * probe.c (enable_probes_command, disable_probes_command):
6401 2017-09-27 Tom Tromey <tom@tromey.com>
6403 * symfile.c (symbol_file_command): Constify.
6404 * gdbcore.h (deprecated_file_changed_hook): Constify.
6405 * exec.c (deprecated_file_changed_hook, exec_file_command)
6406 (file_command): Constify.
6407 * defs.h (symbol_file_command): Constify.
6409 2017-09-27 Tom Tromey <tom@tromey.com>
6411 * remote-fileio.c (set_system_call_allowed)
6412 (show_system_call_allowed): Constify.
6414 2017-09-27 Tom Tromey <tom@tromey.com>
6416 * tracepoint.c (delete_trace_variable_command)
6417 (tfind_end_command, tfind_start_command, tfind_pc_command)
6418 (tfind_tracepoint_command, tfind_line_command)
6419 (tfind_range_command, tfind_outside_command): Constify.
6421 2017-09-27 Tom Tromey <tom@tromey.com>
6423 * ax-gdb.c (maint_agent_printf_command, agent_command)
6424 (agent_eval_command): Constify.
6426 2017-09-27 Tom Tromey <tom@tromey.com>
6428 * tracepoint.c (info_scope_command): Constify.
6429 * python/python.c (gdbpy_decode_line): Constify.
6430 * python/py-breakpoint.c (bppy_init): Constify.
6431 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6432 * location.h: (new_linespec_location)
6433 (string_to_event_location_basic, string_to_event_location):
6435 * location.c (new_linespec_location)
6436 (string_to_event_location_basic, string_to_event_location):
6438 * linespec.h (decode_line_with_current_source)
6439 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6440 * linespec.c (linespec_lex_to_end)
6441 (decode_line_with_current_source)
6442 (decode_line_with_last_displayed): Constify.
6443 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6445 * cli/cli-cmds.c (edit_command, list_command): Constify.
6446 * breakpoint.h (until_break_command, watch_command_wrapper)
6447 (awatch_command_wrapper, rwatch_command_wrapper)
6448 (init_ada_exception_breakpoint): Constify.
6449 * breakpoint.c (break_command_1, dprintf_command)
6450 (break_range_command, watch_command_wrapper)
6451 (rwatch_command_wrapper, awatch_command_wrapper)
6452 (until_break_command, init_ada_exception_breakpoint)
6453 (strace_marker_create_sals_from_location, trace_command)
6454 (ftrace_command, strace_command, struct tracepoint): Constify.
6455 * ax-gdb.c (agent_command_1): Constify.
6456 * ada-lang.c (ada_exception_sal): Constify.
6458 2017-09-27 Tom Tromey <tom@tromey.com>
6460 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6461 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6462 (get_context_size, no_chunk, get_insn_history_modifiers)
6463 (cmd_record_insn_history, get_call_history_modifiers)
6464 (cmd_record_call_history): Constify.
6466 2017-09-27 Tom Tromey <tom@tromey.com>
6468 * source.c (show_substitute_path_command)
6469 (unset_substitute_path_command, set_substitute_path_command):
6472 2017-09-27 Tom Tromey <tom@tromey.com>
6474 * typeprint.c (maintenance_print_type): Constify.
6475 * maint.c (maintenance_dump_me, maintenance_demangle)
6476 (maintenance_time_display, maintenance_info_sections)
6477 (maintenance_print_statistics, maintenance_deprecate)
6478 (maintenance_undeprecate): Constify.
6479 (maintenance_do_deprecate): Constify. Use std::string.
6480 (maintenance_selftest): Constify.
6481 * gdbtypes.h (maintenance_print_type): Constify.
6483 2017-09-27 Tom Tromey <tom@tromey.com>
6485 * hppa-tdep.c (unwind_command): Constify.
6487 2017-09-27 Tom Tromey <tom@tromey.com>
6489 * target-descriptions.c (unset_tdesc_filename_cmd)
6490 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6493 2017-09-27 Tom Tromey <tom@tromey.com>
6495 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6497 2017-09-27 Tom Tromey <tom@tromey.com>
6499 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6501 2017-09-27 Tom Tromey <tom@tromey.com>
6503 * tui/tui-regs.c (tui_reg_command): Constify.
6505 2017-09-27 Tom Tromey <tom@tromey.com>
6507 * skip.c (skip_file_command, skip_function_command)
6508 (skip_enable_command, skip_disable_command, skip_delete_command):
6511 2017-09-27 Tom Tromey <tom@tromey.com>
6513 * record-btrace.c (cmd_record_btrace_bts_start)
6514 (cmd_record_btrace_pt_start): Constify.
6516 2017-09-27 Tom Tromey <tom@tromey.com>
6518 * symmisc.c (maintenance_print_symbols)
6519 (maintenance_print_msymbols, maintenance_print_objfiles)
6520 (maintenance_info_symtabs, maintenance_check_symtabs)
6521 (maintenance_expand_symtabs, maintenance_info_line_tables):
6524 2017-09-27 Tom Tromey <tom@tromey.com>
6526 * top.c (new_ui_command): Constify.
6528 2017-09-27 Tom Tromey <tom@tromey.com>
6530 * symfile.c (add_symbol_file_command)
6531 (remove_symbol_file_command, list_overlays_command)
6532 (map_overlay_command, unmap_overlay_command)
6533 (overlay_auto_command, overlay_manual_command)
6534 (overlay_off_command, overlay_load_command): Constify.
6536 2017-09-27 Tom Tromey <tom@tromey.com>
6538 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6539 (info_spu_mailbox_command, info_spu_dma_command)
6540 (info_spu_proxydma_command): Constify.
6542 2017-09-27 Tom Tromey <tom@tromey.com>
6544 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6546 2017-09-27 Tom Tromey <tom@tromey.com>
6548 * cli/cli-script.c (user_defined_command): Constify.
6550 2017-09-27 Tom Tromey <tom@tromey.com>
6552 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6553 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6554 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6555 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6556 (dump_binary_value, append_binary_memory, append_binary_value):
6558 (struct dump_context) <func>: Constify.
6559 (add_dump_command): Update.
6561 2017-09-27 Tom Tromey <tom@tromey.com>
6563 * cli/cli-cmds.c (show_version, show_configuration)
6564 (source_command, show_user): Constify.
6566 2017-09-27 Tom Tromey <tom@tromey.com>
6568 * target.c (maintenance_print_target_stack): Constify.
6570 2017-09-27 Tom Tromey <tom@tromey.com>
6572 * interps.c (interpreter_exec_cmd): Constify.
6574 2017-09-27 Tom Tromey <tom@tromey.com>
6576 * record-full.c (cmd_record_full_restore): Constify.
6578 2017-09-27 Tom Tromey <tom@tromey.com>
6580 * memattr.c (enable_mem_command, disable_mem_command)
6581 (delete_mem_command): Constify.
6583 2017-09-27 Tom Tromey <tom@tromey.com>
6585 * value.c (show_convenience): Constify.
6587 2017-09-27 Tom Tromey <tom@tromey.com>
6589 * gdbcore.h (core_file_command): Update.
6590 * corefile.c (core_file_command): Constify.
6592 2017-09-27 Tom Tromey <tom@tromey.com>
6594 * user-regs.c (maintenance_print_user_registers): Constify.
6596 2017-09-27 Tom Tromey <tom@tromey.com>
6598 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6600 2017-09-27 Tom Tromey <tom@tromey.com>
6602 * cp-support.c (first_component_command): Constify.
6604 2017-09-27 Tom Tromey <tom@tromey.com>
6606 * psymtab.c (maintenance_print_psymbols)
6607 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6610 2017-09-27 Tom Tromey <tom@tromey.com>
6612 * windows-tdep.c (display_tib): Constify.
6614 2017-09-27 Tom Tromey <tom@tromey.com>
6616 * linux-fork.c (delete_checkpoint_command)
6617 (detach_checkpoint_command): Constify.
6619 2017-09-27 Tom Tromey <tom@tromey.com>
6621 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6623 2017-09-27 Tom Tromey <tom@tromey.com>
6625 * arc-tdep.c (dump_arc_instruction_command): Constify.
6627 2017-09-27 Tom Tromey <tom@tromey.com>
6629 * valprint.c (set_radix, show_radix): Constify.
6631 2017-09-27 Tom Tromey <tom@tromey.com>
6633 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6635 2017-09-27 Tom Tromey <tom@tromey.com>
6637 * command.h (not_just_help_class_command): Update.
6638 * cli/cli-decode.h (not_just_help_class_command): Update.
6639 * cli/cli-decode.c (not_just_help_class_command): Constify.
6641 2017-09-27 Tom Tromey <tom@tromey.com>
6643 * gdb_bfd.c (maintenance_info_bfds): Constify.
6645 2017-09-27 Tom Tromey <tom@tromey.com>
6647 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6649 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6650 (do_const_cfunc): New function.
6651 (cmd_cfunc_eq): New overload.
6652 (cli_user_command_p): Check do_const_cfunc.
6653 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6655 * command.h (add_cmd): Add const overload and no-function
6657 (set_cmd_cfunc): Add const overload.
6658 (cmd_const_cfunc_ftype): Declare.
6659 (cmd_cfunc_eq): Add const overload.
6660 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6661 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6664 2017-09-27 Tom Tromey <tom@tromey.com>
6666 * macroexp.c (get_next_token_for_substitution): New function.
6667 (substitute_args): Call it. Check for __VA_OPT__.
6669 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6670 Pedro Alves <palves@redhat.com>
6672 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6673 producer_is_icc_lt_14.
6674 (producer_is_icc_lt_14): New function.
6675 (check_producer): Add code for checking version of ICC.
6676 (producer_is_icc): Move to producer.c.
6677 (read_structure_type): Restrict ICC workaround to ICC<14.
6678 * producer.c: Include selftest.h.
6679 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6681 * producer.h (producer_is_icc): New declaration.
6683 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6685 * Makefile.in (SFILES): Add producer.c.
6686 (COMMON_OBS): Add producer.o
6687 * amd64-tdep.c (producer.h): Add new include.
6688 * dwarf2read.c (producer.h): Add new include.
6689 * producer.c: New file.
6690 * producer.h: New file.
6691 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6693 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6696 2017-09-26 Matthias Klose <doko@ubuntu.com>
6698 * configure.ac: Search ncursesw before ncurses.
6699 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6700 * gdb_curses.h: Include <ncursesw/ncurses.h>
6701 * config.in, configure: Regenerate.
6703 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6706 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6708 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6709 Remove i386sol2 support.
6710 * configure.nat <i386sol2>: Remove.
6711 <sol2-64>: Fold into ...
6713 Move common settings to default section.
6715 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6716 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6717 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6718 <i[34567]86-*-solaris*>: Remove.
6719 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6721 * configure.ac: Remove wctype in libw check.
6722 (_MSE_INT_H): Don't define on Solaris 7-9.
6723 <solaris*>: Remove libthread_db.so.1 check.
6724 * configure: Regenerate.
6725 * config.in: Regenerate.
6727 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6728 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6729 (gdb_ps_size_t): Remove.
6730 Use base types in users.
6731 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6733 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6735 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6738 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6739 (adi_is_addr_mapped): Likewise.
6740 (PSR_ICC): Don't redefine.
6741 (PSR_IMPL): Likewise.
6743 2017-09-25 Tom Tromey <tom@tromey.com>
6745 * regcache.c (regcache::dump): Use string_printf.
6747 2017-09-25 Tom Tromey <tom@tromey.com>
6749 * regcache.c (class regcache_invalidator): New.
6750 (struct register_to_invalidate): Remove.
6751 (make_cleanup_regcache_invalidate): Remove.
6752 (regcache::raw_write): Use regcache_invalidator.
6754 2017-09-25 Tom Tromey <tom@tromey.com>
6756 * spu-tdep.c (spu2ppu_sniffer): Update.
6757 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6758 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6760 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6761 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6762 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6763 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6764 (frame_pop): Update.
6766 2017-09-25 Tom Tromey <tom@tromey.com>
6768 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6769 * regcache.h (regcache_xfree): Don't declare.
6770 * regcache.c (regcache_xfree): Remove.
6771 (do_regcache_xfree): Use delete.
6772 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6773 * linux-fork.c (free_fork): Use delete.
6774 (fork_save_infrun_state): Likewise.
6775 * jit.c (jit_dealloc_cache): Use delete.
6776 * infrun.c (discard_infcall_suspend_state): Use delete.
6778 2017-09-25 Tom Tromey <tom@tromey.com>
6780 * regcache.h (regcache_xmalloc): Don't declare.
6781 (regcache_raw_set_cached_value): Update comment.
6782 * regcache.c (regcache_xmalloc): Remove.
6783 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6784 * jit.c (jit_frame_sniffer): Use new.
6785 * frame.c (frame_save_as_regcache): Use new.
6787 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6789 * NEWS: Advertise support for guarded-storage registers on IBM z.
6791 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6793 * s390-linux-nat.c (have_regset_gs): New static variable.
6794 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6795 control block and guarded-storage broadcast control regsets.
6796 (s390_read_description): Detect whether the target has
6797 guarded-storage support, return appropriate tdesc.
6798 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6799 (features/s390x-gs-linux64.c): Likewise.
6800 (struct gdbarch_tdep) <have_gs>: New field.
6801 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6802 (s390_gsbc_regset): New variables.
6803 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6804 and s390_gsbc_regset, if applicable.
6805 (s390_core_read_description): Check whether core file was from a
6806 target with guarded-storage support; include appropriate regsets.
6807 (s390_gdbarch_init): Add registers for guarded-storage support.
6808 (_initialize_s390_tdep): Initialize new target descriptions that
6809 include registers for guarded-storage support.
6810 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6811 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6812 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6813 (S390_NUM_REGS): Adjust macro definition.
6814 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6815 (tdesc_s390x_gs_linux64): New declarations.
6817 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6819 * features/s390-gs-linux64.xml: New file.
6820 * features/s390-gs.xml: New file.
6821 * features/s390-gsbc.xml: New file.
6822 * features/s390x-gs-linux64.xml: New file.
6823 * features/Makefile (WHICH): Add s390-gs-linux64 and
6825 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6826 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6827 * features/s390-gs-linux64.c: New generated file.
6828 * features/s390x-gs-linux64.c: New file.
6829 * regformats/s390-gs-linux64.dat: New file.
6830 * regformats/s390x-gs-linux64.dat: New file.
6832 2017-09-23 Tom Tromey <tom@tromey.com>
6834 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6836 2017-09-22 Tom Tromey <tom@tromey.com>
6838 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6839 type to scoped_restore_tmpl.
6840 <scoped_input_handler>: Initialize m_quit_handler directly.
6842 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6844 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6845 (cd_command): Likewise. Free "current_directory" before
6847 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6848 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6849 * top.c (gdb_dirbuf): Remove global declaration.
6850 * top.h (gdb_dirbuf): Likewise.
6852 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6854 * gnulib/aclocal.m4: Regenerate.
6855 * gnulib/config.in: Regenerate.
6856 * gnulib/configure: Regenerate.
6857 * gnulib/import/Makefile.am: Regenerate.
6858 * gnulib/import/Makefile.in: Regenerate.
6859 * gnulib/import/assure.h: New file.
6860 * gnulib/import/at-func.c: Likewise
6861 * gnulib/import/chdir-long.c: New file.
6862 * gnulib/import/chdir-long.h: New file.
6863 * gnulib/import/cloexec.c: New file.
6864 * gnulib/import/cloexec.h: New file.
6865 * gnulib/import/close.c: New file.
6866 * gnulib/import/closedir.c: New file.
6867 * gnulib/import/dirent-private.h: New file.
6868 * gnulib/import/dup-safer.c: New file.
6869 * gnulib/import/dup.c: New file.
6870 * gnulib/import/dup2.c: New file.
6871 * gnulib/import/error.c: New file.
6872 * gnulib/import/error.h: New file.
6873 * gnulib/import/exitfail.c: New file.
6874 * gnulib/import/exitfail.h: New file.
6875 * gnulib/import/fchdir.c: New file.
6876 * gnulib/import/fcntl.c: New file.
6877 * gnulib/import/fcntl.in.h: New file.
6878 * gnulib/import/fd-hook.c: New file.
6879 * gnulib/import/fd-hook.h: New file.
6880 * gnulib/import/fd-safer.c: New file.
6881 * gnulib/import/fdopendir.c: New file.
6882 * gnulib/import/filename.h: New file.
6883 * gnulib/import/filenamecat-lgpl.c: New file.
6884 * gnulib/import/filenamecat.h: New file.
6885 * gnulib/import/fstat.c: New file.
6886 * gnulib/import/fstatat.c: New file.
6887 * gnulib/import/getcwd-lgpl.c: New file.
6888 * gnulib/import/getcwd.c: New file.
6889 * gnulib/import/getdtablesize.c: New file.
6890 * gnulib/import/getlogin_r.c: New file.
6891 * gnulib/import/getprogname.c: New file.
6892 * gnulib/import/getprogname.h: New file.
6893 * gnulib/import/gettext.h: New file.
6894 * gnulib/import/glob-libc.h: New file.
6895 * gnulib/import/glob.c: New file.
6896 * gnulib/import/glob.in.h: New file.
6897 * gnulib/import/intprops.h: New file.
6898 * gnulib/import/m4/chdir-long.m4: New file.
6899 * gnulib/import/m4/close.m4: New file.
6900 * gnulib/import/m4/closedir.m4: New file.
6901 * gnulib/import/m4/d-ino.m4: New file.
6902 * gnulib/import/m4/d-type.m4: New file.
6903 * gnulib/import/m4/dup.m4: New file.
6904 * gnulib/import/m4/dup2.m4: New file.
6905 * gnulib/import/m4/error.m4: New file.
6906 * gnulib/import/m4/fchdir.m4: New file.
6907 * gnulib/import/m4/fcntl.m4: New file.
6908 * gnulib/import/m4/fcntl_h.m4: New file.
6909 * gnulib/import/m4/fdopendir.m4: New file.
6910 * gnulib/import/m4/filenamecat.m4: New file.
6911 * gnulib/import/m4/fstat.m4: New file.
6912 * gnulib/import/m4/fstatat.m4: New file.
6913 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6914 * gnulib/import/m4/getcwd-path-max.m4: New file.
6915 * gnulib/import/m4/getcwd.m4: New file.
6916 * gnulib/import/m4/getdtablesize.m4: New file.
6917 * gnulib/import/m4/getlogin_r.m4: New file.
6918 * gnulib/import/m4/getprogname.m4: New file.
6919 * gnulib/import/m4/glob.m4: New file.
6920 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6921 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6922 * gnulib/import/m4/mempcpy.m4: New file.
6923 * gnulib/import/m4/memrchr.m4: New file.
6924 * gnulib/import/m4/mode_t.m4: New file.
6925 * gnulib/import/m4/msvc-inval.m4: New file.
6926 * gnulib/import/m4/msvc-nothrow.m4: New file.
6927 * gnulib/import/m4/open.m4: New file.
6928 * gnulib/import/m4/openat.m4: New file.
6929 * gnulib/import/m4/opendir.m4: New file.
6930 * gnulib/import/m4/readdir.m4: New file.
6931 * gnulib/import/m4/realloc.m4: New file.
6932 * gnulib/import/m4/rewinddir.m4: New file.
6933 * gnulib/import/m4/save-cwd.m4: New file.
6934 * gnulib/import/m4/strdup.m4: New file.
6935 * gnulib/import/m4/strerror.m4: New file.
6936 * gnulib/import/m4/unistd-safer.m4: New file.
6937 * gnulib/import/mempcpy.c: New file.
6938 * gnulib/import/memrchr.c: New file.
6939 * gnulib/import/msvc-inval.c: New file.
6940 * gnulib/import/msvc-inval.h: New file.
6941 * gnulib/import/msvc-nothrow.c: New file.
6942 * gnulib/import/msvc-nothrow.h: New file.
6943 * gnulib/import/open.c: New file.
6944 * gnulib/import/openat-die.c: New file.
6945 * gnulib/import/openat-priv.h: New file.
6946 * gnulib/import/openat-proc.c: New file.
6947 * gnulib/import/openat.c: New file.
6948 * gnulib/import/openat.h: New file.
6949 * gnulib/import/opendir.c: New file.
6950 * gnulib/import/pipe-safer.c: New file.
6951 * gnulib/import/readdir.c: New file.
6952 * gnulib/import/realloc.c: New file.
6953 * gnulib/import/rewinddir.c: New file.
6954 * gnulib/import/save-cwd.c: New file.
6955 * gnulib/import/save-cwd.h: New file.
6956 * gnulib/import/strdup.c: New file.
6957 * gnulib/import/strerror-override.c: New file.
6958 * gnulib/import/strerror-override.h: New file.
6959 * gnulib/import/strerror.c: New file.
6960 * gnulib/import/unistd--.h: New file.
6961 * gnulib/import/unistd-safer.h: New file.
6962 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6963 "getcwd" and "glob".
6964 * ser-tcp.c: Undefine "close" before redefining it.
6966 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6968 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6971 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6973 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6974 <sol2,sparc>: Likewise.
6975 <sol2-64,i386>: Likewise.
6977 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6978 -Wdeprecated-declarations on *-*-solaris*.
6979 * configure: Regenerate.
6981 * procfs.c: Include "nat/inferior.h".
6982 (procfs_info_proc): Fix typo.
6984 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6986 * remote.c (vector): Include.
6987 (struct private_thread_info): Add field, thread_handle.
6988 (free_private_thread_info): Deallocate storage associated with
6990 (get_private_info_thread): Initialize `thread_handle' field.
6991 (struct thread_item): Add field, thread_handle.
6992 (clear_threads_listing_context): Deallocate storage associated
6994 (start_thread): Add support for "handle" attribute.
6995 (thread_attributes): Add "handle".
6996 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6998 (remote_update_thread_list): Update thread_handle.
6999 (remote_thread_handle_to_thread_info): New function.
7000 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
7002 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7004 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
7006 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
7007 * python/python-internal.h (thread_object_type): Declare.
7009 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7011 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
7012 (target_thread_handle_to_thread_info): Declare.
7013 * target.c (target_thread_handle_to_thread_info): New function.
7014 * target-delegates.c: Regenerate.
7015 * gdbthread.h (find_thread_by_handle): Declare.
7016 * thread.c (find_thread_by_handle): New function.
7017 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7019 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7021 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7023 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7025 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7027 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7029 2017-09-21 Yao Qi <yao.qi@linaro.org>
7031 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7034 2017-09-20 Tom Tromey <tom@tromey.com>
7036 * breakpoint.c (struct counted_command_line): Remove.
7037 (breakpoint_commands): Update.
7038 (alloc_counted_command_line, incref_counted_command_line)
7039 (decref_counted_command_line, do_cleanup_counted_command_line)
7040 (make_cleanup_decref_counted_command_line): Remove.
7041 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7042 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7043 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7044 (save_breakpoints): Update.
7045 * breakpoint.h (counted_command_line): Now a typedef to
7047 (struct breakpoint) <commands>: Now a counted_command_line.
7048 (struct bpstats) <command>: Likewise.
7050 2017-09-20 Tom Tromey <tom@tromey.com>
7052 * breakpoint.c (struct commands_info, do_map_commands_command):
7054 (commands_command_1): Update.
7055 (iterate_over_related_breakpoints): Take a function_view.
7056 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7057 (delete_command): Update.
7058 (map_breakpoint_numbers): Take a function_view.
7059 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7060 (disable_command): Update.
7061 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7062 (enable_command): Update.
7063 (struct disp_data, do_enable_breakpoint_disp)
7064 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7065 (do_map_enable_delete_breakpoint): Remove.
7066 (enable_once_command, enable_count_command, enable_delete_command)
7067 (delete_trace_variable_command): Update.
7069 2017-09-20 Tom Tromey <tom@tromey.com>
7071 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7072 (bpstat_clear): Use delete.
7073 (bpstats): New constructors.
7074 (bpstat_copy, bpstat_stop_status): Use new.
7075 (dprintf_after_condition_true): Update.
7076 * breakpoint.h (bpstats::bpstats): Add constructors.
7077 (bpstats::~bpstats): Add destructor.
7079 2017-09-20 Pedro Alves <palves@redhat.com>
7081 * eval.c (make_params): Delete, refactored as ...
7082 (class fake_method): ... this new type's ctor.
7083 (fake_method::~fake_method): New.
7084 (evaluate_subexp_standard): Use 'fake_method'.
7086 2017-09-20 Tom Tromey <tom@tromey.com>
7088 * windows-nat.c (get_windows_debug_event, windows_wait)
7089 (do_initial_windows_stuff, windows_attach): Update.
7090 * utils.c (vwarning, internal_vproblem): Update.
7091 (ui_unregister_input_event_handler_cleanup)
7092 (prepare_to_handle_input): Remove.
7093 (class scoped_input_handler): New.
7094 (defaulted_query, prompt_for_continue): Update.
7095 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7097 * top.c (undo_terminal_modifications_before_exit): Update.
7098 * target/target.h (target_terminal_init, target_terminal_inferior)
7099 (target_terminal_ours): Don't declare.
7100 (class target_terminal): New.
7101 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7102 (target_terminal_ours_for_output)
7103 (make_cleanup_restore_target_terminal): Don't declare.
7104 (target_terminal_info): Remove.
7105 * target.c (enum terminal_state, terminal_state): Remove.
7106 (target_terminal::terminal_state): Define.
7107 (target_terminal::init): Rename from target_terminal_init.
7108 (target_terminal::inferior): Rename from
7109 target_terminal_inferior.
7110 (target_terminal::ours): Rename from target_terminal_ours.
7111 (target_terminal::ours_for_output): Rename from
7112 target_terminal_ours_for_output.
7113 (target_terminal::info): New method.
7114 (cleanup_restore_target_terminal)
7115 (make_cleanup_restore_target_terminal): Remove.
7116 * solib.c (handle_solib_event): Update.
7117 * remote.c (remote_serial_quit_handler): Update.
7118 (remote_terminal_inferior, remote_wait_as): Update.
7119 * record-full.c (record_full_wait_1): Update.
7120 * nto-procfs.c (procfs_create_inferior): Update.
7121 * nat/fork-inferior.c (startup_inferior): Update.
7122 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7123 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7124 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7125 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7126 (mi_breakpoint_created, mi_breakpoint_deleted)
7127 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7128 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7129 (mi_user_selected_context_changed, report_initial_inferior):
7131 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7132 (linux_nat_terminal_inferior): Update.
7133 * infrun.c (follow_fork_inferior)
7134 (handle_vfork_child_exec_or_exit, do_target_resume)
7135 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7136 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7138 * inflow.c (child_terminal_init, info_terminal_command): Update.
7139 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7140 (attach_command): Update.
7141 * infcall.c (call_thread_fsm_should_stop): Update.
7142 * gnu-nat.c (gnu_attach): Update.
7143 * extension.c (struct active_ext_lang_state)
7144 (restore_active_ext_lang): Update.
7145 * exceptions.c (print_flush): Update.
7146 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7147 (struct quit_handler_cleanup_data, restore_quit_handler)
7148 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7150 * cp-support.c (gdb_demangle): Update.
7151 * breakpoint.c (update_inserted_breakpoint_locations)
7152 (insert_breakpoint_locations, handle_jit_event)
7153 (disable_breakpoints_in_unloaded_shlib): Update.
7154 * annotate.c (annotate_breakpoints_invalid)
7155 (annotate_frames_invalid): Update.
7157 2017-09-20 Tom Tromey <tom@tromey.com>
7159 * main.c (catch_command_errors): Rename from
7160 catch_command_errors_const.
7161 (captured_main_1): Update.
7163 2017-09-20 Pedro Alves <palves@redhat.com>
7165 * cli/cli-cmds.c (list_command): Use print_sal_location.
7166 (print_sal_location): New function.
7167 (ambiguous_line_spec): Use print_sal_location.
7168 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7169 * symtab.c (find_function_start_sal): Likewise.
7170 * symtab.h (symtab_and_line::symbol): New field.
7172 2017-09-20 Pedro Alves <palves@redhat.com>
7174 * linespec.c (minsym_found): Handle non-text minsyms.
7175 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7177 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7179 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7182 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7184 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7185 vmovups instead vmovaps.
7186 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7188 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7190 * NEWS (Changes since GDB 8.0): Add starti.
7191 * infcmd.c (enum run_break): New.
7192 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7194 (run_command): Use enum run_how.
7195 (start_command): Likewise.
7196 (starti_command): New function.
7197 (RUN_ARGS_HELP): New macro.
7198 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7199 commands. Add starti command.
7201 2017-09-19 Yao Qi <yao.qi@linaro.org>
7203 * Makefile.in (monitor.o): Remove the rule.
7205 2017-09-19 Yao Qi <yao.qi@linaro.org>
7207 * annotate.h (struct annotate_arg_emitter): Use
7208 DISABLE_COPY_AND_ASSIGN.
7209 * common/refcounted-object.h (refcounted_object): Likewise.
7210 * completer.h (struct completion_result): Likewise.
7211 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7212 * filename-seen-cache.h (filename_seen_cache): Likewise.
7213 * gdbcore.h (thread_section_name): Likewise.
7214 * gdb_regex.h (compiled_regex): Likewise.
7215 * gdbthread.h (scoped_restore_current_thread): Likewise.
7216 * inferior.h (scoped_restore_current_inferior): Likewise.
7217 * jit.c (jit_reader): Likewise.
7218 * linespec.h (struct linespec_result): Likewise.
7219 * mi/mi-parse.h (struct mi_parse): Likewise.
7220 * nat/fork-inferior.c (execv_argv): Likewise.
7221 * progspace.h (scoped_restore_current_program_space): Likewise.
7222 * python/python-internal.h (class gdbpy_enter): Likewise.
7223 * regcache.h (regcache): Likewise.
7224 * target-descriptions.c (struct tdesc_reg): Likewise.
7225 (struct tdesc_type): Likewise.
7226 (struct tdesc_feature): Likewise.
7227 * ui-out.h (ui_out_emit_type): Likewise.
7229 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7231 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7232 label abort_expression.
7234 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7236 * common/buffer.c (buffer_xml_printf): Adjust.
7237 * common/xml-utils.c (xml_escape_text): Change return type to
7238 std::string, update code accordingly.
7239 * common/xml-utils.h (xml_escape_text): Change return type to
7241 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7242 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7243 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7246 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7248 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7249 (SUBDIR_UNITTESTS_OBS): Add new object file.
7250 * unittests/xml-utils-selftests.c: New file.
7252 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7254 * common/selftest.h (selftest): New struct/interface.
7255 (register_test): Add name parameter, add new overload.
7256 (run_tests): Add filter parameter.
7257 (for_each_selftest_ftype): New typedef.
7258 (for_each_selftest): New declaration.
7259 * common/selftest.c (tests): Change type to
7260 map<string, unique_ptr<selftest>>.
7261 (simple_selftest): New struct.
7262 (register_test): New function.
7263 (register_test): Add name parameter and use it.
7264 (run_tests): Add filter parameter and use it. Add prints.
7265 Adjust to vector -> map change.
7266 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7267 registering selftests.
7268 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7269 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7270 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7271 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7272 * findvar.c (_initialize_findvar): Likewise.
7273 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7274 * maint.c (maintenance_selftest): Update call to run_tests.
7275 (maintenance_info_selftests): New function.
7276 (_initialize_maint_cmds): Register "maintenance info selftests"
7277 command. Update "maintenance selftest" doc.
7278 * regcache.c (_initialize_regcache): Add names when registering
7280 * rust-exp.y (_initialize_rust_exp): Likewise.
7281 * selftest-arch.c (gdbarch_selftest): New struct.
7282 (gdbarch_tests): Remove.
7283 (register_test_foreach_arch): Add name parameter. Call
7285 (tests_with_arch): Remove, move most content to
7286 gdbarch_selftest::operator().
7287 (_initialize_selftests_foreach_arch): Remove.
7288 * selftest-arch.h (register_test_foreach_arch): Add name
7290 (run_tests_with_arch): New declaration.
7291 * utils-selftests.c (_initialize_utils_selftests): Add names
7292 when registering selftests.
7293 * utils.c (_initialize_utils): Likewise.
7294 * unittests/array-view-selftests.c
7295 (_initialize_array_view_selftests): Likewise.
7296 * unittests/environ-selftests.c (_initialize_environ_selftests):
7298 * unittests/function-view-selftests.c
7299 (_initialize_function_view_selftests): Likewise.
7300 * unittests/offset-type-selftests.c
7301 (_initialize_offset_type_selftests): Likewise.
7302 * unittests/optional-selftests.c
7303 (_initialize_optional_selftests): Likewise.
7304 * unittests/scoped_restore-selftests.c
7305 (_initialize_scoped_restore_selftests): Likewise.
7306 * NEWS: Document "maintenance selftest" and "maint info
7309 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7311 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7314 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7316 * mi/mi-main.c (mi_load_progress): Make uiout variable
7319 2017-09-15 Pedro Alves <palves@redhat.com>
7321 * compile/compile-c-types.c (convert_enum, convert_int)
7322 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7324 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7326 * dwarf2read.c (copy_string): Remove.
7327 (parse_macro_definition): Replace copy_string with savestring.
7329 2017-09-15 Yao Qi <yao.qi@linaro.org>
7331 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7333 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7335 (i[34567]86-*-linux*): Likewise.
7337 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7339 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7340 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7341 <stack>: Change type to std::vector.
7342 <stack_len, stack_allocated>: Remove.
7343 <grow_stack>: Remove.
7344 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7345 (dwarf_expr_context::~dwarf_expr_context): Remove.
7346 (dwarf_expr_context::grow_stack): Remove.
7347 (dwarf_expr_context::push): Adjust.
7348 (dwarf_expr_context::pop): Adjust.
7349 (dwarf_expr_context::fetch): Adjust.
7350 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7351 (dwarf_expr_context::stack_empty_p): Adjust.
7352 (dwarf_expr_context::execute_stack_op): Adjust.
7354 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7356 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7357 return type to bool.
7358 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7360 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7362 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7363 Change type to bool.
7364 (dwarf_stack_value) <in_stack_memory>: Likewise.
7365 (dwarf_expr_context) <push_address>: Change parameter type to
7367 <fetch_in_stack_memory>: Change return type to bool.
7368 <push>: Change parameter type to bool.
7369 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7371 (dwarf_expr_context::push_address): Likewise.
7372 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7374 (dwarf_expr_context::execute_stack_op): Adjust.
7375 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7377 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7379 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7380 (struct dwarf_expr_context) <n_pieces>: Remove.
7381 <pieces>: Change type to std::vector.
7382 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7383 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7385 (dwarf_expr_context::add_piece): Adjust.
7386 * dwarf2loc.c (struct piece_closure): Initialize fields.
7388 <pieces>: Change type to std::vector.
7389 (allocate_piece_closure): Adjust, change parameter to
7390 std::vector rvalue and std::move it to piece_closure.
7391 (rw_pieced_value): Adjust.
7392 (check_pieced_synthetic_pointer): Adjust.
7393 (indirect_synthetic_pointer): Adjust.
7394 (coerce_pieced_ref): Adjust.
7395 (free_pieced_value_closure): Adjust. Use delete to free
7397 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7398 to allocate_piece_closure.
7399 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7401 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7403 * probe.h (probe_ops_cp): Remove typedef.
7404 (DEF_VEC_P (probe_ops_cp)): Remove.
7405 (all_probe_ops): Change type to std::vector.
7406 * probe.c (info_probes_for_ops): Adjust to vector change.
7407 (probe_linespec_to_ops): Likewise.
7408 (all_probe_ops): Change type to std::vector.
7409 (_initialize_probe): Adjust to vector change.
7410 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7411 * elfread.c (elf_get_probes): Likewise.
7412 * stap-probe.c (_initialize_stap_probe): Likewise.
7414 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7416 * probe.h (struct bound_probe): Define constructors.
7417 * probe.c (bound_probe_s): Remove typedef.
7418 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7419 (collect_probes): Change return type to std::vector, remove
7421 (compare_probes): Return bool, change parameter type. Change
7422 semantic to "less than".
7423 (gen_ui_out_table_header_info): Change parameter to std::vector
7425 (exists_probe_with_pops): Likewise.
7426 (info_probes_for_ops): Update to std::vector change.
7427 (enable_probes_command): Likewise.
7428 (disable_probes_command): Likewise.
7430 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7432 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7434 * probe.c (parse_probes_in_pspace): Update.
7435 (find_probes_in_objfile): Update.
7436 (find_probe_by_pc): Update.
7437 (collect_probes): Update.
7438 (probe_any_get_probes): Update.
7439 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7440 return type to reference to std::vector.
7441 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7442 std::vector and update.
7443 (dtrace_process_dof): Likewise.
7444 (dtrace_get_probes): Likewise.
7445 * elfread.c (elf_get_probes): Change return type to std::vector,
7446 store an std::vector in bfd_data.
7447 (probe_key_free): Update to std::vector.
7448 * stap-probe.c (handle_stap_probe): Change parameter to
7449 std::vector and update.
7450 (stap_get_probes): Likewise.
7451 * symfile-debug.c (debug_sym_get_probes): Change return type to
7452 std::vector and update.
7454 2017-09-11 Tom Tromey <tom@tromey.com>
7456 * breakpoint.c (program_breakpoint_here_p): Update.
7457 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7458 from make_show_memory_breakpoints_cleanup. Return a
7459 scoped_restore_tmpl<int>.
7460 (restore_show_memory_breakpoints): Remove.
7461 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7462 * mem-break.c (memory_validate_breakpoint): Update.
7463 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7464 (ia64_memory_remove_breakpoint): Update.
7465 (ia64_breakpoint_from_pc): Update.
7466 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7467 from make_show_memory_breakpoints_cleanup.
7469 2017-09-11 Tom Tromey <tom@tromey.com>
7471 * d-namespace.c (d_lookup_symbol): Use std::string.
7472 (find_symbol_in_baseclass): Likewise.
7474 2017-09-11 Tom Tromey <tom@tromey.com>
7476 * ctf.c (ctf_start): Use std::string.
7478 2017-09-11 Tom Tromey <tom@tromey.com>
7480 * ada-lang.c (is_known_support_routine): Update.
7481 (ada_unhandled_exception_name_addr_from_raise): Update.
7482 * guile/scm-frame.c (gdbscm_frame_name): Update.
7483 * python/py-frame.c (frapy_name): Update.
7484 (frapy_function): Update.
7485 * stack.h (find_frame_funname): Update.
7486 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7487 (print_frame): Update.
7489 2017-09-11 Tom Tromey <tom@tromey.com>
7491 * findcmd.c (put_bits): Take a gdb::byte_vector.
7492 (parse_find_args): Return gdb::byte_vector. "args" now const.
7493 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7495 (find_command): Update.
7497 2017-09-11 Tom Tromey <tom@tromey.com>
7499 * cli/cli-script.c (class scoped_restore_hook_in): New.
7500 (clear_hook_in_cleanup): Remove.
7501 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7502 scoped_restore_hook_in.
7504 2017-09-11 Tom Tromey <tom@tromey.com>
7506 * cli/cli-script.c (restore_interp): Remove.
7507 (read_command_lines): Use scoped_restore_interp.
7508 * interps.c (scoped_restore_interp::set_temp): Rename from
7510 * interps.h (class scoped_restore_interp): New.
7511 (interp_set_temp): Remove.
7513 2017-09-11 Tom Tromey <tom@tromey.com>
7515 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7516 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7517 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7519 (mi_cmd_break_insert_1): Update.
7520 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7523 2017-09-11 Tom Tromey <tom@tromey.com>
7525 * demangle.c (demangle_command): Update.
7526 * breakpoint.c (disable_command): Update.
7527 (enable_command): Update.
7528 (find_location_by_number): Make "number" const. Use
7530 * cli/cli-utils.c (extract_arg): Return std::string.
7531 * probe.c (parse_probe_linespec): Update. Change types.
7532 (collect_probes): Take string arguments.
7533 (parse_probe_linespec): Likewise.
7534 (info_probes_for_ops): Update.
7535 (enable_probes_command): Update.
7536 (disable_probes_command): Update.
7537 * break-catch-sig.c (catch_signal_split_args): Update.
7538 * mi/mi-parse.c (mi_parse): Update.
7540 2017-09-11 Tom Tromey <tom@tromey.com>
7542 * language.h (language_enum): Make argument const.
7543 * language.c (language_enum): Make argument const.
7545 2017-09-11 Tom Tromey <tom@tromey.com>
7547 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7549 (skip_to_space): Rename from skip_to_space_const.
7550 * common/common-utils.c (skip_to_space): New function.
7551 (skip_to_space): Rename from skip_to_space_const.
7552 * cli/cli-utils.h (get_number): Rename from get_number_const.
7553 (extract_arg): Rename from extract_arg_const.
7554 * cli/cli-utils.c (get_number): Rename from get_number_const.
7555 (extract_arg): Rename from extract_arg_const.
7556 (number_or_range_parser::get_number): Use ::get_number.
7557 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7558 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7559 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7560 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7561 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7562 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7563 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7564 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7566 2017-09-11 Tom Tromey <tom@tromey.com>
7568 * python/python.c (do_start_initialization): Use
7569 py-event-types.def to initialize types.
7570 Define all object type structures.
7571 * python/python-internal.h: Don't declare event initialization
7573 * python/py-threadevent.c (thread_event_object_type): Don't
7575 * python/py-stopevent.c (stop_event_object_type): Don't define.
7576 * python/py-signalevent.c (signal_event_object_type): Don't
7578 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7579 (clear_objfiles_event_object_type): Don't declare or define.
7580 * python/py-infevents.c (inferior_call_pre_event_object_type)
7581 (inferior_call_post_event_object_type)
7582 (register_changed_event_object_type)
7583 (memory_changed_event_object_type): Don't declare or define.
7584 * python/py-inferior.c (new_thread_event_object_type)
7585 (new_inferior_event_object_type)
7586 (inferior_deleted_event_object_type): Don't declare or define.
7587 * python/py-exitedevent.c (exited_event_object_type): Don't
7589 * python/py-evts.c (gdbpy_initialize_py_events): Use
7591 * python/py-events.h (thread_event_object_type): Don't declare.
7592 (events_object): Use py-all-events.def.
7593 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7595 * python/py-event-types.def: New file.
7596 * python/py-continueevent.c (create_continue_event_object): Don't
7598 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7600 * python/py-all-events.def: New file.
7602 2017-09-11 Tom Tromey <tom@tromey.com>
7604 * python/py-threadevent.c (create_thread_event_object): Return
7606 * python/py-stopevent.h (create_stop_event_object)
7607 (create_breakpoint_event_object, create_signal_event_object):
7609 * python/py-stopevent.c (create_stop_event_object): Return
7611 (emit_stop_event): Update.
7612 * python/py-signalevent.c (create_signal_event_object): Return
7614 * python/py-infevents.c (create_inferior_call_event_object):
7616 * python/py-event.h (create_event_object)
7617 (create_thread_event_object): Update.
7618 * python/py-event.c (create_event_object): Return gdbpy_ref.
7619 * python/py-continueevent.c: Return gdbpy_ref.
7620 * python/py-bpevent.c (create_breakpoint_event_object): Return
7623 2017-09-11 Tom Tromey <tom@tromey.com>
7627 * python/python.c (do_start_initialization): Initialize new event
7629 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7630 (gdbpy_initialize_inferior_deleted_event)
7631 (gdbpy_initialize_new_thread_event): Declare.
7632 * python/py-threadevent.c (create_thread_event_object): Add option
7634 * python/py-inferior.c (new_thread_event_object_type)
7635 (new_inferior_event_object_type)
7636 (inferior_deleted_event_object_type): Declare.
7637 (python_new_inferior, python_inferior_deleted): New functions.
7638 (add_thread_object): Emit new_thread event.
7639 (gdbpy_initialize_inferior): Attach new functions to corresponding
7641 (new_thread, new_inferior, inferior_deleted): Define new event
7643 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7645 * python/py-events.h (events_object) <new_inferior,
7646 inferior_deleted, new_thread>: New fields.
7647 * python/py-event.h (create_thread_event_breakpoint): Add optional
7650 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7652 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7653 check current_ui instead.
7654 (internal_vproblem): Likewise.
7656 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7658 * thread.c (print_thread_info_1): Remove unnecessary calls to
7659 uiout->is_mi_like_p.
7661 2017-09-09 Tom Tromey <tom@tromey.com>
7663 * namespace.h (add_using_directive): Update.
7664 * namespace.c (add_using_directive): Change type of excludes to
7666 * dwarf2read.c (read_import_statement): Use std::vector.
7667 (read_namespace): Update.
7668 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7670 2017-09-09 Tom Tromey <tom@tromey.com>
7672 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7674 2017-09-09 Tom Tromey <tom@tromey.com>
7676 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7678 2017-09-09 Tom Tromey <tom@tromey.com>
7680 * stack.c (func_command): Use gdb::def_vector.
7682 2017-09-09 Tom Tromey <tom@tromey.com>
7684 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7685 ui_out_emit_list, ui_out_emit_tuple.
7686 (mi_cmd_var_update): Likewise.
7688 2017-09-09 Tom Tromey <tom@tromey.com>
7690 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7691 ui_out_redirect_pop.
7692 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7693 ui_out_redirect_pop.
7694 * utils.c (do_ui_out_redirect_pop)
7695 (make_cleanup_ui_out_redirect_pop): Remove.
7696 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7697 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7698 * ui-out.h (ui_out_redirect_pop): New class.
7700 2017-09-09 Tom Tromey <tom@tromey.com>
7702 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7703 (list_available_thread_groups, mi_cmd_list_thread_groups)
7704 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7705 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7708 2017-09-09 Tom Tromey <tom@tromey.com>
7710 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7713 2017-09-09 Tom Tromey <tom@tromey.com>
7715 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7716 * stack.c (print_frame): Use ui_out_emit_tuple.
7717 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7718 (info_spu_mailbox_command, info_spu_dma_command)
7719 (info_spu_proxydma_command): Likewise.
7720 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7721 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7722 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7724 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7726 2017-09-09 Tom Tromey <tom@tromey.com>
7728 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7729 (class ui_out_emit_table): Update comment.
7730 * ui-out.c (do_cleanup_table_end)
7731 (make_cleanup_ui_out_table_begin_end): Remove.
7732 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7733 (info_spu_dma_cmdlist): Likewise.
7734 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7735 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7738 2017-09-09 Tom Tromey <tom@tromey.com>
7740 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7741 ui_out_emit_list, gdb::optional.
7743 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7745 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7747 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7749 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7751 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7752 * ada-exp.y: Remove _initialize_ada_exp prototype.
7753 * ada-lang.c: Remove _initialize_ada_language prototype.
7754 * ada-tasks.c: Remove _initialize_tasks prototype.
7755 * addrmap.c: Remove _initialize_addrmap prototype.
7756 * agent.c: Remove _initialize_agent prototype.
7757 * aix-thread.c: Remove _initialize_aix_thread prototype.
7758 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7759 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7760 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7762 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7763 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7764 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7765 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7767 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7769 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7770 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7771 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7772 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7774 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7775 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7776 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7777 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7778 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7779 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7780 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7782 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7784 * annotate.c: Remove _initialize_annotate prototype.
7785 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7786 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7787 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7788 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7789 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7790 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7791 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7792 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7794 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7795 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7796 * auto-load.c: Remove _initialize_auto_load prototype.
7797 * auxv.c: Remove _initialize_auxv prototype.
7798 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7799 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7800 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7801 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7802 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7803 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7805 * break-catch-throw.c: Remove _initialize_break_catch_throw
7807 * breakpoint.c: Remove _initialize_breakpoint prototype.
7808 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7809 * btrace.c: Remove _initialize_btrace prototype.
7810 * charset.c: Remove _initialize_charset prototype.
7811 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7812 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7813 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7814 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7815 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7816 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7817 * coffread.c: Remove _initialize_coffread prototype.
7818 * compile/compile.c: Remove _initialize_compile prototype.
7819 * complaints.c: Remove _initialize_complaints prototype.
7820 * completer.c: Remove _initialize_completer prototype.
7821 * copying.awk: Remove _initialize_copying prototype.
7822 * copying.c: Regenerate.
7823 * core-regset.c: Remove _initialize_core_regset prototype.
7824 * corefile.c: Remove _initialize_core prototype.
7825 * corelow.c: Remove _initialize_corelow prototype.
7826 * cp-abi.c: Remove _initialize_cp_abi prototype.
7827 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7828 * cp-support.c: Remove _initialize_cp_support prototype.
7829 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7830 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7831 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7832 * ctf.c: Remove _initialize_ctf prototype.
7833 * d-lang.c: Remove _initialize_d_language prototype.
7834 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7836 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7837 * dbxread.c: Remove _initialize_dbxread prototype.
7838 * dcache.c: Remove _initialize_dcache prototype.
7839 * demangle.c: Remove _initialize_demangler prototype.
7840 * disasm-selftests.c: Remove _initialize_disasm_selftests
7842 * disasm.c: Remove _initialize_disasm prototype.
7843 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7844 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7845 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7847 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7848 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7849 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7850 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7851 * elfread.c: Remove _initialize_elfread prototype.
7852 * exec.c: Remove _initialize_exec prototype.
7853 * extension.c: Remove _initialize_extension prototype.
7854 * f-lang.c: Remove _initialize_f_language prototype.
7855 * f-valprint.c: Remove _initialize_f_valprint prototype.
7856 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7857 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7858 * filesystem.c: Remove _initialize_filesystem prototype.
7859 * findcmd.c: Remove _initialize_mem_search prototype.
7860 * fork-child.c: Remove _initialize_fork_child prototype.
7861 * frame-base.c: Remove _initialize_frame_base prototype.
7862 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7863 * frame.c: Remove _initialize_frame prototype.
7864 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7865 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7866 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7867 * gcore.c: Remove _initialize_gcore prototype.
7868 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7869 * gdbarch.c: Regenerate.
7870 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7871 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7872 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7873 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7874 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7875 * go-lang.c: Remove _initialize_go_language prototype.
7876 * go32-nat.c: Remove _initialize_go32_nat prototype.
7877 * guile/guile.c: Remove _initialize_guile prototype.
7878 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7879 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7880 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7881 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7882 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7883 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7884 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7885 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7886 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7887 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7889 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7891 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7892 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7893 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7894 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7895 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7896 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7897 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7898 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7899 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7900 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7901 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7902 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7903 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7904 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7905 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7906 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7908 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7910 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7911 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7912 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7913 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7914 * infcall.c: Remove _initialize_infcall prototype.
7915 * infcmd.c: Remove _initialize_infcmd prototype.
7916 * inferior.c: Remove _initialize_inferiors prototype.
7917 * inflow.c: Remove _initialize_inflow prototype.
7918 * infrun.c: Remove _initialize_infrun prototype.
7919 * interps.c: Remove _initialize_interpreter prototype.
7920 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7921 * jit.c: Remove _initialize_jit prototype.
7922 * language.c: Remove _initialize_language prototype.
7923 * linux-fork.c: Remove _initialize_linux_fork prototype.
7924 * linux-nat.c: Remove _initialize_linux_nat prototype.
7925 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7926 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7927 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7928 * m2-lang.c: Remove _initialize_m2_language prototype.
7929 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7930 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7931 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7932 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7933 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7934 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7935 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7936 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7937 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7938 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7939 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7940 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7941 * machoread.c: Remove _initialize_machoread prototype.
7942 * macrocmd.c: Remove _initialize_macrocmd prototype.
7943 * macroscope.c: Remove _initialize_macroscope prototype.
7944 * maint.c: Remove _initialize_maint_cmds prototype.
7945 * mdebugread.c: Remove _initialize_mdebugread prototype.
7946 * memattr.c: Remove _initialize_mem prototype.
7947 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7948 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7949 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7950 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7951 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7952 * microblaze-linux-tdep.c: Remove
7953 _initialize_microblaze_linux_tdep prototype.
7954 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7955 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7956 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7957 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7958 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7959 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7960 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7961 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7962 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7963 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7964 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7966 * mipsread.c: Remove _initialize_mipsread prototype.
7967 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7969 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7970 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7971 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7972 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7973 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7974 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7976 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7977 * nto-procfs.c: Remove _initialize_procfs prototype.
7978 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7979 * objc-lang.c: Remove _initialize_objc_language prototype.
7980 * objfiles.c: Remove _initialize_objfiles prototype.
7981 * observer.c: Remove observer_test_first_notification_function,
7982 observer_test_second_notification_function,
7983 observer_test_third_notification_function, and
7984 _initialize_observer prototypes.
7985 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7986 * osabi.c: Remove _initialize_gdb_osabi prototype.
7987 * osdata.c: Remove _initialize_osdata prototype.
7988 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7989 * parse.c: Remove _initialize_parse prototype.
7990 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7991 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7992 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7993 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7994 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7995 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7996 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7997 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7998 * printcmd.c: Remove _initialize_printcmd prototype.
7999 * probe.c: Remove _initialize_probe prototype.
8000 * proc-api.c: Remove _initialize_proc_api prototype.
8001 * proc-events.c: Remove _initialize_proc_events prototype.
8002 * proc-service.c: Remove _initialize_proc_service prototype.
8003 * procfs.c: Remove _initialize_procfs prototype.
8004 * psymtab.c: Remove _initialize_psymtab prototype.
8005 * python/python.c: Remove _initialize_python prototype.
8006 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
8007 * record-btrace.c: Remove _initialize_record_btrace prototype.
8008 * record-full.c: Remove _initialize_record_full prototype.
8009 * record.c: Remove _initialize_record prototype.
8010 * regcache.c: Remove _initialize_regcache prototype.
8011 * reggroups.c: Remove _initialize_reggroup prototype.
8012 * remote-notif.c: Remove _initialize_notif prototype.
8013 * remote-sim.c: Remove _initialize_remote_sim prototype.
8014 * remote.c: Remove _initialize_remote prototype.
8015 * reverse.c: Remove _initialize_reverse prototype.
8016 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8017 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8018 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8020 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8021 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8022 * rust-exp.y: Remove _initialize_rust_exp prototype.
8023 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8024 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8025 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8026 * score-tdep.c: Remove _initialize_score_tdep prototype.
8027 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8029 * ser-go32.c: Remove _initialize_ser_dos prototype.
8030 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8031 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8032 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8033 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8034 * serial.c: Remove _initialize_serial prototype.
8035 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8036 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8037 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8038 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8039 * skip.c: Remove _initialize_step_skip prototype.
8040 * sol-thread.c: Remove _initialize_sol_thread prototype.
8041 * solib-aix.c: Remove _initialize_solib_aix prototype.
8042 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8043 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8044 * solib-frv.c: Remove _initialize_frv_solib prototype.
8045 * solib-spu.c: Remove _initialize_spu_solib prototype.
8046 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8047 * solib-target.c: Remove _initialize_solib_target prototype.
8048 * solib.c: Remove _initialize_solib prototype.
8049 * source.c: Remove _initialize_source prototype.
8050 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8051 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8053 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8054 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8055 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8056 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8058 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8059 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8060 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8061 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8063 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8065 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8067 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8069 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8070 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8072 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8074 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8076 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8078 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8080 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8081 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8082 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8083 * stabsread.c: Remove _initialize_stabsread prototype.
8084 * stack.c: Remove _initialize_stack prototype.
8085 * stap-probe.c: Remove _initialize_stap_probe prototype.
8086 * std-regs.c: Remove _initialize_frame_reg prototype.
8087 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8088 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8089 * symfile.c: Remove _initialize_symfile prototype.
8090 * symmisc.c: Remove _initialize_symmisc prototype.
8091 * symtab.c: Remove _initialize_symtab prototype.
8092 * target-dcache.c: Remove _initialize_target_dcache prototype.
8093 * target-descriptions.c: Remove _initialize_target_descriptions
8095 * thread.c: Remove _initialize_thread prototype.
8096 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8098 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8099 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8100 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8102 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8103 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8104 * tracefile.c: Remove _initialize_tracefile prototype.
8105 * tracepoint.c: Remove _initialize_tracepoint prototype.
8106 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8107 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8108 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8109 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8110 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8111 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8112 * tui/tui.c: Remove _initialize_tui prototype.
8113 * typeprint.c: Remove _initialize_typeprint prototype.
8114 * user-regs.c: Remove _initialize_user_regs prototype.
8115 * utils.c: Remove _initialize_utils prototype.
8116 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8117 * valarith.c: Remove _initialize_valarith prototype.
8118 * valops.c: Remove _initialize_valops prototype.
8119 * valprint.c: Remove _initialize_valprint prototype.
8120 * value.c: Remove _initialize_values prototype.
8121 * varobj.c: Remove _initialize_varobj prototype.
8122 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8123 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8124 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8125 * windows-nat.c: Remove _initialize_windows_nat,
8126 _initialize_check_for_gdb_ini, and _initialize_loadable
8128 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8129 * xcoffread.c: Remove _initialize_xcoffread prototype.
8130 * xml-support.c: Remove _initialize_xml_support prototype.
8131 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8132 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8134 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8136 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8138 2017-09-08 Keith Seitz <keiths@redhat.com>
8140 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8143 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8145 * f-valprint.c (f_val_print): Remove check for one byte
8146 sized integers. Remove printing of character type.
8148 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8149 Christoph Weinmann <christoph.t.weinmann@intel.com>
8150 Bernhard Heckel <bernhard.heckel@intel.com>
8152 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8153 to maintain proper indentation when printing pointers/refs.
8155 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8159 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8161 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8163 2017-09-05 Tom Tromey <tom@tromey.com>
8165 * parse.c (funcall_chain): Now a std::vector.
8166 (start_arglist, end_arglist): Simplify.
8167 (free_funcalls): Remove.
8168 (parse_exp_in_context_1): Remove cleanup.
8170 2017-09-05 Tom Tromey <tom@tromey.com>
8172 * go-exp.y (go_parse): Don't create a cleanup.
8174 2017-09-05 Tom Tromey <tom@tromey.com>
8176 * d-exp.y (PrimaryExpression): Use std::string.
8177 (d_parse): Don't create a cleanup.
8179 2017-09-05 Tom Tromey <tom@tromey.com>
8181 * utils.c (do_clear_parser_state): Remove.
8182 (make_cleanup_clear_parser_state): Remove.
8183 * p-exp.y (pascal_parse): Use scoped_restore.
8184 * m2-exp.y (m2_parse): Use scoped_restore.
8185 * f-exp.y (f_parse): Use scoped_restore.
8186 * d-exp.y (d_parse): Use scoped_restore.
8187 * c-exp.y (c_parse): Use scoped_restore.
8188 * ada-exp.y (ada_parse): Use scoped_restore.
8189 * utils.h (make_cleanup_clear_parser_state): Remove.
8191 2017-09-06 Keith Seitz <keiths@redhat.com>
8193 * dwarf2read.c (dw2_linkage_name_attr): New function.
8194 (dw2_linkage_name): New function.
8195 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8196 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8197 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8199 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8201 * config/djgpp/djconfig.sh: Correct shell portability issue.
8203 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8205 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8207 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8209 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8210 * NEWS: Mention new FreeBSD/mips native configuration.
8211 * configure.host: Add aarch64*-*-freebsd*.
8212 * configure.nat: Likewise.
8213 * aarch64-fbsd-nat.c: New file.
8215 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8217 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8218 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8219 * NEWS: Mention new FreeBSD/aarch64 target.
8220 * configure.tgt: Add aarch64*-*-freebsd*.
8221 * aarch64-fbsd-tdep.c: New file.
8222 * aarch64-fbsd-tdep.h: New file.
8224 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8226 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8228 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8230 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8233 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8235 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8238 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8240 * infrun.c (follow_exec): Call add_thread after
8241 target_find_description.
8243 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8245 * infrun.c (handle_inferior_event_1): When exec'ing, read
8246 stop_pc after follow_exec.
8248 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8250 * remote.c (process_g_packet): Update error message.
8252 2017-09-05 Yao Qi <yao.qi@linaro.org>
8254 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8257 2017-09-05 Pedro Alves <palves@redhat.com>
8259 * eval.c (eval_call, evaluate_funcall): New functions, factored
8261 (evaluate_subexp_standard): ... this.
8263 2017-09-05 Yao Qi <yao.qi@linaro.org>
8265 * amd64-tdep.c (amd64_target_description): Create target
8267 (_initialize_amd64_tdep): Don't call functions
8268 initialize_tdesc_amd64_*. Add self tests.
8269 * arch/amd64.c (amd64_create_target_description): Add parameter
8270 is_linux. Call set_tdesc_osabi if is_linux is true.
8271 * arch/amd64.h (amd64_create_target_description): Update the
8273 * arch/i386.c (i386_create_target_description): Add parameter
8274 is_linux. Call set_tdesc_osabi if is_linux is true.
8275 * arch/i386.h (i386_create_target_description): Update
8277 * configure.tgt: Add i386.o to gdb_target_obs.
8278 * features/Makefile (XMLTOC): Remove i386/*.xml.
8279 * features/i386/amd64-avx-avx512.c: Remove.
8280 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8281 * features/i386/amd64-avx-mpx.c: Remove.
8282 * features/i386/amd64-avx.c: Remove.
8283 * features/i386/amd64-mpx.c: Remove.
8284 * features/i386/amd64.c: Remove.
8285 * features/i386/i386-avx-avx512.c: Remove.
8286 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8287 * features/i386/i386-avx-mpx.c: Remove.
8288 * features/i386/i386-avx.c: Remove.
8289 * features/i386/i386-mmx.c: Remove.
8290 * features/i386/i386-mpx.c: Remove.
8291 * features/i386/i386.c: Remove.
8292 * i386-tdep.c: Don't include features/i386/i386*.c., include
8293 target-descriptions.h and arch/i386.h.
8294 (i386_target_description): Create target descriptions.
8295 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8296 functions. Do self tests.
8298 2017-09-05 Yao Qi <yao.qi@linaro.org>
8300 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8301 * features/i386/amd64-avx-avx512-linux.c: Removed.
8302 * features/i386/amd64-avx-linux.c: Removed.
8303 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8304 * features/i386/amd64-avx-mpx-linux.c: Removed.
8305 * features/i386/amd64-linux.c: Removed.
8306 * features/i386/amd64-mpx-linux.c: Removed.
8307 * features/i386/x32-avx-avx512-linux.c: Removed.
8308 * features/i386/x32-avx-linux.c: Removed.
8309 * features/i386/x32-linux.c: Removed.
8311 2017-09-05 Yao Qi <yao.qi@linaro.org>
8313 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8315 (amd64_linux_read_description): Call
8316 amd64_create_target_description.
8317 * arch/amd64.c: New file.
8318 * arch/amd64.h: New file.
8319 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8320 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8322 2017-09-05 Yao Qi <yao.qi@linaro.org>
8324 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8325 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8326 (amd64_linux_read_description): Create target descriptions.
8327 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8328 functions. Add unit tests.
8329 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8331 * features/i386/64bit-avx.c: Generated.
8332 * features/i386/64bit-avx512.c: Generated.
8333 * features/i386/64bit-core.c: Generated.
8334 * features/i386/64bit-linux.c: Generated.
8335 * features/i386/64bit-mpx.c: Generated.
8336 * features/i386/64bit-pkeys.c: Generated.
8337 * features/i386/64bit-segments.c: Generated.
8338 * features/i386/64bit-sse.c: Generated.
8339 * features/i386/x32-core.c: Generated.
8340 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8341 c files for amd64-linux and x32-linux.
8343 2017-09-05 Yao Qi <yao.qi@linaro.org>
8345 * amd64-linux-tdep.c (amd64_linux_read_description): New
8347 (amd64_linux_core_read_description): Call
8348 amd64_linux_read_description.
8349 (amd64_linux_init_abi): Likewise.
8350 (amd64_x32_linux_init_abi): Likewise.
8351 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8352 * x86-linux-nat.c (x86_linux_read_description): Call
8353 amd64_linux_read_description.
8355 2017-09-05 Yao Qi <yao.qi@linaro.org>
8357 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8360 2017-09-05 Yao Qi <yao.qi@linaro.org>
8362 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8363 * features/i386/i386-avx-avx512-linux.c: Remove.
8364 * features/i386/i386-avx-linux.c: Remove.
8365 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8366 * features/i386/i386-avx-mpx-linux.c: Remove.
8367 * features/i386/i386-linux.c: Remove.
8368 * features/i386/i386-mmx-linux.c: Remove.
8369 * features/i386/i386-mpx-linux.c: Remove.
8371 2017-09-05 Yao Qi <yao.qi@linaro.org>
8373 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8374 (SFILES): Add arch/i386.c.
8375 (HFILES_NO_SRCDIR): Add arch/i386.h.
8376 * arch/i386.c: New file.
8377 * arch/i386.h: New file.
8378 * arch/tdesc.h (allocate_target_description): Declare.
8379 (set_tdesc_architecture): Declare.
8380 (set_tdesc_osabi): Declare.
8381 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8382 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8383 include arch/i386.h.
8384 (i386_linux_read_description): Remove code and call
8385 i386_create_target_description.
8386 (set_tdesc_architecture): New function.
8387 (set_tdesc_osabi): New function.
8388 * target-descriptions.h (allocate_target_description): Remove.
8390 2017-09-05 Yao Qi <yao.qi@linaro.org>
8392 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8393 * target-descriptions.c (tdesc_create_feature): Likewise, and
8395 * features/i386/32bit-avx.c: Re-generated.
8396 * features/i386/32bit-avx512.c: Re-generated.
8397 * features/i386/32bit-core.c: Re-generated.
8398 * features/i386/32bit-linux.c: Re-generated.
8399 * features/i386/32bit-mpx.c: Re-generated.
8400 * features/i386/32bit-pkeys.c: Re-generated.
8401 * features/i386/32bit-sse.c: Re-generated.
8403 2017-09-05 Yao Qi <yao.qi@linaro.org>
8405 * regformats/regdef.h (struct reg): Override operator == and !=.
8407 2017-09-05 Yao Qi <yao.qi@linaro.org>
8409 * arch/tdesc.h: New file.
8410 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8411 * target-descriptions.c: Update comments.
8412 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8414 * features/i386/32bit-avx.c: Re-generated.
8415 * features/i386/32bit-avx512.c: Re-generated.
8416 * features/i386/32bit-core.c: Re-generated.
8417 * features/i386/32bit-linux.c: Re-generated.
8418 * features/i386/32bit-mpx.c: Re-generated.
8419 * features/i386/32bit-pkeys.c: Re-generated.
8420 * features/i386/32bit-sse.c: Re-generated.
8422 2017-09-05 Yao Qi <yao.qi@linaro.org>
8424 * regformats/regdat.sh: Update generated code.
8426 2017-09-05 Yao Qi <yao.qi@linaro.org>
8428 * regformats/regdat.sh: Adjust code order.
8430 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8432 * expprint.c (dump_subexp_body_standard): Use constant format
8433 string in fprintf_filtered call.
8435 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8437 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8439 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8441 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8443 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8445 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8447 * bsd-kvm.o: Define _KMEMUSER.
8448 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8449 * configure: Regenerate.
8451 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8453 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8454 * i386-fbsd-nat.c: Likewise.
8456 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8458 * unittests/array-view-selftests.c: Add include of <array>.
8460 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8462 * spu-tdep.c (flush_ea_cache): Add missing argument to
8463 call_function_by_hand.
8465 2017-09-04 Pedro Alves <palves@redhat.com>
8467 * NEWS (Safer support for debugging with no debug info): New.
8469 2017-09-04 Pedro Alves <palves@redhat.com>
8471 * c-exp.y (function_method, function_method_void): Add current
8472 instance flags to TYPE_INSTANCE.
8473 * dwarf2read.c (check_modifier): New.
8474 (compute_delayed_physnames): Assert that only C++ adds delayed
8475 physnames. Mark fn_fields as const/volatile depending on
8477 * eval.c (make_params): New type_instance_flags parameter. Use
8478 it as the new type's instance flags.
8479 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8480 flags element and pass it to make_params.
8481 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8482 instance flags element.
8483 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8484 * gdbtypes.h: Include "enum-flags.h".
8485 (type_instance_flags): New enum-flags type.
8486 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8487 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8488 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8489 (follow_type_instance_flags): New function.
8490 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8491 * parser-defs.h (follow_type_instance_flags): Declare.
8492 * valops.c (value_struct_elt_for_reference): const/volatile must
8495 2017-09-04 Pedro Alves <palves@redhat.com>
8497 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8498 function/method scopes; lookup the nested name as a function local
8501 2017-09-04 Pedro Alves <palves@redhat.com>
8503 (%type <voidval>): Add function_method.
8504 * c-exp.y (exp): New production for calls with no arguments.
8505 (function_method, function_method_void_or_typelist): New
8507 (exp): New production for "method()::static_var".
8508 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8509 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8510 Handle OP_FUNC_STATIC_VAR.
8511 * parse.c (operator_length_standard):
8512 Handle OP_FUNC_STATIC_VAR.
8514 2017-09-04 Pedro Alves <palves@redhat.com>
8516 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8518 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8520 * parse.c (operator_length_standard, operator_check_standard):
8522 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8524 2017-09-04 Pedro Alves <palves@redhat.com>
8526 * ax-gdb.c: Include "typeprint.h".
8527 (gen_expr_for_cast): New function.
8528 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8529 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8531 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8532 nodebug_data_symbol.
8533 * eval.c: Include "typeprint.h".
8534 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8535 Error out if symbol has unknown type.
8536 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8537 evaluate_subexp_for_cast.
8538 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8540 (evaluate_subexp_for_cast): New function.
8541 * gdbtypes.c (init_nodebug_var_type): New function.
8542 (objfile_type): Use it to initialize types of variables with no
8544 * typeprint.c (error_unknown_type): New.
8545 * typeprint.h (error_unknown_type): New declaration.
8546 * compile/compile-c-types.c (convert_type_basic): Handle
8547 TYPE_CODE_ERROR; warn and fallback to int for variables with
8550 2017-09-04 Pedro Alves <palves@redhat.com>
8552 * eval.c (evaluate_var_value): New function, factored out from ...
8553 (evaluate_subexp_standard): ... here.
8555 2017-09-04 Pedro Alves <palves@redhat.com>
8557 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8558 Remove useless assignments to 'op'.
8560 2017-09-04 Pedro Alves <palves@redhat.com>
8562 * eval.c (eval_skip_value): New function.
8563 (evaluate_subexp_standard): Use it.
8565 2017-09-04 Pedro Alves <palves@redhat.com>
8567 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8568 function name from symbol/minsym and pass it to
8569 error_call_unknown_return_type.
8571 2017-09-04 Pedro Alves <palves@redhat.com>
8573 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8574 * ax-gdb.c (gen_msym_var_ref): New function.
8575 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8576 * eval.c (evaluate_var_msym_value): New function.
8577 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8578 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8579 to call_function_by_hand.
8580 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8581 Handle OP_VAR_MSYM_VALUE.
8582 (union exp_element) <msymbol>: New field.
8583 * minsyms.h (struct type): Forward declare.
8584 (find_minsym_type_and_address): Declare.
8585 * parse.c (write_exp_elt_msym): New function.
8586 (write_exp_msymbol): Delete, refactored as ...
8587 (find_minsym_type_and_address): ... this new function.
8588 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8589 (operator_length_standard, operator_check_standard): Handle
8591 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8593 2017-09-04 Pedro Alves <palves@redhat.com>
8595 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8596 TYPE_GNU_IFUNC specially here. Throw error if return type is
8598 * ada-typeprint.c (print_func_type): Handle functions with unknown
8600 * c-typeprint.c (c_type_print_base): Handle functions and methods
8601 with unknown return type.
8602 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8603 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8604 * compile/compile-c-types.c: Include "objfiles.h".
8605 (convert_func): For functions with unknown return type, warn and
8607 * compile/compile-object-run.c (compile_object_run): Adjust call
8608 to call_function_by_hand_dummy.
8609 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8610 call_function_by_hand.
8611 * eval.c (evaluate_subexp_standard): Adjust calls to
8612 call_function_by_hand. Handle functions and methods with unknown
8613 return type. Pass expect_type to call_function_by_hand.
8614 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8616 * gcore.c (call_target_sbrk): Adjust call to
8617 call_function_by_hand.
8618 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8619 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8620 an integer address type instead of nodebug.
8621 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8622 call_function_by_hand.
8623 * infcall.c (error_call_unknown_return_type): New function.
8624 (call_function_by_hand): New "default_return_type" parameter.
8626 (call_function_by_hand_dummy): New "default_return_type"
8627 parameter. Use it instead of defaulting to int. If there's no
8628 default and the return type is unknown, throw an error. If
8629 there's a default return type, and the called function has no
8630 debug info, then assume the function is prototyped.
8631 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8632 New "default_return_type" parameter.
8633 (error_call_unknown_return_type): New declaration.
8634 * linux-fork.c (call_lseek): Cast return type of lseek.
8635 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8636 call_function_by_hand.
8637 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8638 calls to call_function_by_hand.
8639 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8641 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8642 (value_nsstring, print_object_command): Adjust calls to
8643 call_function_by_hand.
8644 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8645 functions with unknown return type.
8646 (pascal_type_print_func_varspec_suffix): New function.
8647 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8648 TYPE_CODE_METHOD>: Use it.
8649 * python/py-value.c (valpy_call): Adjust call to
8650 call_function_by_hand.
8651 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8652 call_function_by_hand.
8653 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8654 call_function_by_hand.
8655 * valops.c (value_allocate_space_in_inferior): Adjust call to
8656 call_function_by_hand.
8657 * typeprint.c (type_print_unknown_return_type): New function.
8658 * typeprint.h (type_print_unknown_return_type): New declaration.
8660 2017-09-04 Pedro Alves <palves@redhat.com>
8662 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8663 types with more than one parameter as prototyped.
8665 2017-09-04 Pedro Alves <palves@redhat.com>
8667 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8668 (disassemble_command): Use gdb_disassembly_flags instead of bare
8670 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8671 (dump_insns, do_mixed_source_and_assembly_deprecated)
8672 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8673 Use gdb_disassembly_flags instead of bare int.
8674 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8675 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8676 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8677 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8678 (enum gdb_disassembly_flag): ... values of this new enumeration.
8679 (gdb_disassembly_flags): Define.
8681 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8682 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8683 gdb_disassembly_flags instead of bare int.
8684 * record-btrace.c (btrace_insn_history)
8685 (record_btrace_insn_history, record_btrace_insn_history_range)
8686 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8687 instead of bare int.
8688 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8689 Use gdb_disassembly_flags instead of bare int.
8690 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8692 * target-delegates.c: Regenerate.
8693 * target.c (target_insn_history, target_insn_history_from)
8694 (target_insn_history_range): Use gdb_disassembly_flags instead of
8696 * target.h: Include "disasm.h".
8697 (struct target_ops) <to_insn_history, to_insn_history_from,
8698 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8700 (target_insn_history, target_insn_history_from)
8701 (target_insn_history_range): Use gdb_disassembly_flags instead of
8704 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8706 * cli/cli-script.c (build_command_line): For if/while commands,
8707 check whether args is empty.
8709 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8711 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8712 (enum command_control_type): Likewise.
8713 (struct command_line): Likewise.
8714 (free_command_lines): Likewise.
8715 (struct command_lines_deleter): Likewise.
8716 (command_line_up): Likewise.
8717 (read_command_lines): Likewise.
8718 (read_command_lines_1): Likewise.
8719 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8720 (enum command_control_type): Likewise.
8721 (struct command_line): Likewise.
8722 (free_command_lines): Likewise.
8723 (struct command_lines_deleter): Likewise.
8724 (command_line_up): Likewise.
8725 (read_command_lines): Likewise.
8726 (read_command_lines_1): Likewise.
8727 * breakpoint.h: Include cli/cli-script.h.
8728 * extension-priv.h: Likewise.
8729 * gdbcmd.h: Likewise.
8731 2017-09-04 Pedro Alves <palves@redhat.com>
8733 * ada-lang.c (is_known_support_routine): Move sal declaration to
8734 where it is initialized.
8735 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8736 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8737 (clear_command, update_static_tracepoint): Remove init_sal
8738 references. Move declarations closer to initializations.
8739 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8741 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8742 references. Move sal declarations closer to initializations.
8743 * frame.c (find_frame_sal): Return a symtab_and_line via function
8744 return instead of output parameter. Remove init_sal references.
8745 * frame.h (find_frame_sal): Return a symtab_and_line via function
8746 return instead of output parameter.
8747 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8748 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8750 (gdbscm_find_pc_line): Remove init_sal reference.
8751 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8752 references. Move declarations closer to initializations.
8753 * infcmd.c (set_step_frame): Update. Move declarations closer to
8755 (finish_backward): Remove init_sal references. Move declarations
8756 closer to initializations.
8757 * infrun.c (process_event_stop_test, handle_step_into_function)
8758 (insert_hp_step_resume_breakpoint_at_frame)
8759 (insert_step_resume_breakpoint_at_caller): Likewise.
8760 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8761 (symbol_to_sal): Likewise.
8762 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8763 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8764 to its initialization.
8765 * reverse.c (save_bookmark_command): Use new/delete. Remove
8766 init_sal references. Move declarations closer to initializations.
8767 * source.c (get_current_source_symtab_and_line): Remove brace
8769 (set_current_source_symtab_and_line): Now takes the sal by const
8770 reference. Remove brace initialization.
8771 (line_info): Remove init_sal reference.
8772 * source.h (set_current_source_symtab_and_line): Now takes a
8773 symtab_and_line via const reference.
8774 * stack.c (set_current_sal_from_frame): Adjust.
8775 (print_frame_info): Adjust.
8776 (get_last_displayed_sal): Return the sal via function return
8777 instead of via output parameter. Simplify.
8778 (frame_info): Adjust.
8779 * stack.h (get_last_displayed_sal): Return the sal via function
8780 return instead of via output parameter.
8781 * symtab.c (init_sal): Delete.
8782 (find_pc_sect_line): Remove init_sal references. Move
8783 declarations closer to initializations.
8784 (find_function_start_sal): Remove init_sal references. Move
8785 declarations closer to initializations.
8786 * symtab.h (struct symtab_and_line): In-class initialize all
8788 * tracepoint.c (set_traceframe_context)
8789 (print_one_static_tracepoint_marker): Remove init_sal references.
8790 Move declarations closer to initializations.
8791 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8792 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8793 declarations closer to initializations.
8794 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8795 init_sal references. Adjust.
8797 2017-09-04 Pedro Alves <palves@redhat.com>
8799 * ax-gdb.c (agent_command_1): Use range-for.
8800 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8801 * breakpoint.c: Include "common/array-view.h".
8802 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8803 parameter from struct symtabs_and_lines to
8804 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8805 (breakpoint_sals_to_pc): Change sals parameter from struct
8806 symtabs_and_lines to std::vector reference.
8807 (check_fast_tracepoint_sals): Change sals parameter from struct
8808 symtabs_and_lines to std::array_view. Use range-for.
8809 (decode_static_tracepoint_spec): Return a std::vector instead of
8810 symtabs_and_lines. Update.
8811 (create_breakpoint): Update.
8812 (break_range_command, until_break_command, clear_command): Update.
8813 (base_breakpoint_decode_location, bkpt_decode_location)
8814 (bkpt_probe_create_sals_from_location)
8815 (bkpt_probe_decode_location, tracepoint_decode_location)
8816 (tracepoint_probe_decode_location)
8817 (strace_marker_create_sals_from_location): Return a std::vector
8818 instead of symtabs_and_lines.
8819 (strace_marker_create_breakpoints_sal): Update.
8820 (strace_marker_decode_location): Return a std::vector instead of
8821 symtabs_and_lines. Update.
8822 (update_breakpoint_locations): Change struct symtabs_and_lines
8823 parameters to gdb::array_view. Adjust.
8824 (location_to_sals): Return a std::vector instead of
8825 symtabs_and_lines. Update.
8826 (breakpoint_re_set_default): Use std::vector instead of struct
8828 (decode_location_default): Return a std::vector instead of
8829 symtabs_and_lines. Update.
8830 * breakpoint.h: Include "common/array-view.h".
8831 (struct breakpoint_ops) <decode_location>: Now returns a
8832 std::vector instead of returning a symtabs_and_lines via output
8834 (update_breakpoint_locations): Change sals parameters to use
8836 * cli/cli-cmds.c (edit_command, list_command): Update to use
8837 std::vector and gdb::array_view.
8838 (ambiguous_line_spec): Adjust to use gdb::array_view and
8840 (compare_symtabs): Rename to ...
8841 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8842 const reference and adjust.
8843 (filter_sals): Rewrite using std::vector and standard algorithms.
8844 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8845 (jump_command): Update to use std::vector.
8846 * linespec.c (struct linespec_state) <canonical_names>: Update
8848 (add_sal_to_sals_basic): Delete.
8849 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8850 (decode_line_2, create_sals_line_offset)
8851 (convert_address_location_to_sals, convert_linespec_to_sals)
8852 (convert_explicit_location_to_sals, parse_linespec)
8853 (event_location_to_sals, decode_line_full, decode_line_1)
8854 (decode_line_with_current_source)
8855 (decode_line_with_last_displayed, decode_objc)
8856 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8857 (linespec_result::~linespec_result): Adjust to use std::vector
8858 instead of symtabs_and_lines.
8859 * linespec.h (linespec_sals::sals): Now a std::vector.
8860 (struct linespec_result): Use std::vector, bool, and in-class
8862 (decode_line_1, decode_line_with_current_source)
8863 (decode_line_with_last_displayed): Return std::vector.
8864 * macrocmd.c (info_macros_command): Use std::vector.
8865 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8866 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8868 * probe.h (parse_probes): Return a std::vector.
8869 * python/python.c (gdbpy_decode_line): Use std::vector and
8871 * source.c (select_source_symtab, line_info): Use std::vector.
8872 * stack.c (func_command): Use std::vector.
8873 * symtab.h (struct symtabs_and_lines): Delete.
8874 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8876 2017-09-04 Pedro Alves <palves@redhat.com>
8878 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8879 unittests/array-view-selftests.c.
8880 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8881 * common/array-view.h: New file.
8882 * unittests/array-view-selftests.c: New file.
8884 2017-09-04 Pedro Alves <palves@redhat.com>
8886 * cli/cli-cmds.c (edit_command): Pass message to
8887 ambiguous_line_spec.
8888 (list_command): Pass message to ambiguous_line_spec. Say
8889 "first"/"last" instead of "start" and "end" to be consistent with
8891 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8892 them to print formatted message.
8894 2017-09-04 Pedro Alves <palves@redhat.com>
8896 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8897 ftrace_update_insns by reference instead of pointer.
8899 2017-09-04 Yao Qi <yao.qi@linaro.org>
8901 * i386-go32-tdep.c: Include x86-xstate.h.
8902 (i386_go32_init_abi): Call i386_target_description.
8903 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8904 if xcr0 is X86_XSTATE_X87_MASK.
8905 * i386-tdep.h (tdesc_i386): Remove the declaration.
8906 (tdesc_i386_mmx): Likewise.
8908 2017-09-04 Yao Qi <yao.qi@linaro.org>
8910 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8911 X86_XSTATE_SSE_MASK instead of 0.
8913 2017-09-04 Yao Qi <yao.qi@linaro.org>
8915 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8916 i386_target_description.
8917 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8918 i386_target_description.
8919 * i386-tdep.c (i386_gdbarch_init): Likewise.
8921 2017-09-04 Yao Qi <yao.qi@linaro.org>
8923 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8924 (x86_darwin_init_abi_64): Call amd64_target_description.
8925 * amd64-dicos-tdep.c: Likewise.
8926 * amd64-fbsd-nat.c: Likewise.
8927 * amd64-fbsd-tdep.c: Likewise.
8928 * amd64-nbsd-tdep.c: Likewise.
8929 * amd64-obsd-tdep.c: Likewise.
8930 * amd64-sol2-tdep.c: Likewise.
8931 * amd64-windows-tdep.c: Likewise.
8932 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8934 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8936 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8937 (btrace_function) <insn>: Change type to use std::vector.
8938 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8939 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8940 ftrace_update_insns, ftrace_compute_global_level_offset,
8941 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8942 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8943 change to std::vector.
8944 (ftrace_update_insns): Adjust to change to std::vector, change
8945 type of INSN parameter.
8946 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8947 * record-btrace.c (btrace_call_history_insn_range,
8948 btrace_compute_src_line_range,
8949 record_btrace_frame_prev_register): Adjust to change to
8951 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8952 to change to std::vector.
8954 2017-09-03 Tom Tromey <tom@tromey.com>
8956 * corefile.c (reopen_exec_file): Use std::string.
8958 2017-09-03 Tom Tromey <tom@tromey.com>
8960 * compile/compile.c (compile_register_name_mangled): Return
8962 * compile/compile-loc2c.c (pushf_register_address): Update.
8963 (pushf_register): Update.
8964 * compile/compile-c-types.c (convert_array): Update.
8965 * compile/compile-c-symbols.c (generate_vla_size): Update.
8966 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8967 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8968 (convert_one_symbol): Update.
8969 (generate_c_for_for_one_variable): Update.
8970 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8972 (generate_register_struct): Update.
8973 * compile/compile-internal.h (c_get_range_decl_name): Return a
8975 (compile_register_name_mangled): Return std::string.
8977 2017-09-03 Tom Tromey <tom@tromey.com>
8979 * utils.c (perror_string): Return a std::string.
8980 (throw_perror_with_name, perror_warning_with_name): Update.
8982 2017-09-03 Tom Tromey <tom@tromey.com>
8984 * demangle.c (demangle_command): Use std::string,
8987 2017-09-03 Tom Tromey <tom@tromey.com>
8989 * cli/cli-setshow.c (do_set_command): Use std::string.
8991 2017-09-03 Tom Tromey <tom@tromey.com>
8993 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8995 2017-09-03 Tom Tromey <tom@tromey.com>
8997 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8999 2017-09-03 Tom Tromey <tom@tromey.com>
9001 * mi/mi-cmd-env.c (env_execute_cli_command): Use
9002 gdb::unique_xmalloc_ptr.
9004 2017-09-03 Tom Tromey <tom@tromey.com>
9006 * thread.c (print_thread_info_1): Use string_printf.
9007 (thread_apply_command, thread_apply_all_command): Use
9010 2017-09-03 Tom Tromey <tom@tromey.com>
9012 * valprint.c (val_print_string): Update.
9013 * gdbcore.h (memory_error_message): Return std::string.
9014 * corefile.c (memory_error_message): Return std::string.
9015 (memory_error): Update.
9016 * breakpoint.c (insert_bp_location): Update.
9018 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9020 * target/waitstatus.h (target_waitstatus_to_string): Change
9021 return type to std::string.
9022 * target/waitstatus.c (target_waitstatus_to_string): Return
9024 * target.h (target_waitstatus_to_string): Remove declaration.
9025 * infrun.c (resume, clear_proceed_status_thread,
9026 print_target_wait_results, do_target_wait, save_waitstatus,
9027 stop_all_threads): Adjust.
9028 * record-btrace.c (record_btrace_wait): Adjust.
9030 (target_debug_print_struct_target_waitstatus_p): Adjust.
9032 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9035 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9038 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9040 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9041 for setting/unsetting environment variables on the remote target.
9042 (New remote packets): Add entries for QEnvironmentHexEncoded,
9043 QEnvironmentUnset and QEnvironmentReset.
9044 * common/environ.c (gdb_environ::operator=): Extend method to
9045 handle m_user_set_env_list and m_user_unset_env_list.
9046 (gdb_environ::clear): Likewise.
9047 (match_var_in_string): Change type of first parameter from 'char
9048 *' to 'const char *'.
9049 (gdb_environ::set): Extend method to handle
9050 m_user_set_env_list and m_user_unset_env_list.
9051 (gdb_environ::unset): Likewise.
9052 (gdb_environ::clear_user_set_env): New method.
9053 (gdb_environ::user_set_envp): Likewise.
9054 (gdb_environ::user_unset_envp): Likewise.
9055 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9056 m_user_unset_env_list on move constructor/assignment.
9057 (unset): Add new default parameter 'update_unset_list = true'.
9058 (clear_user_set_env): New method.
9059 (user_set_envp): Likewise.
9060 (user_unset_envp): Likewise.
9061 (m_user_set_env_list): New std::set.
9062 (m_user_unset_env_list): Likewise.
9063 * common/rsp-low.c (hex2str): New function.
9064 (bin2hex): New overload for bin2hex function.
9065 * common/rsp-low.c (hex2str): New prototype.
9066 (str2hex): New overload prototype.
9067 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9068 QEnvironmentUnset and QEnvironmentReset.
9069 (remote_protocol_features): Add QEnvironmentHexEncoded,
9070 QEnvironmentUnset and QEnvironmentReset packets.
9071 (send_environment_packet): New function.
9072 (extended_remote_environment_support): Likewise.
9073 (extended_remote_create_inferior): Call
9074 extended_remote_environment_support.
9075 (_initialize_remote): Add QEnvironmentHexEncoded,
9076 QEnvironmentUnset and QEnvironmentReset packet configs.
9077 * unittests/environ-selftests.c (gdb_selftest_env_var):
9079 (test_vector_initialization): New function.
9080 (test_init_from_host_environ): Likewise.
9081 (test_reinit_from_host_environ): Likewise.
9082 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9084 (test_unset_set_empty_vector): Likewise.
9085 (test_vector_clear): Likewise.
9086 (test_std_move): Likewise.
9087 (test_move_constructor):
9088 (test_self_move): Likewise.
9089 (test_set_unset_reset): Likewise.
9090 (run_tests): Rewrite in terms of the functions above.
9092 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
9094 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9095 (adi_available): Use a temp variable of type CORE_ADDR as argument
9096 3 when calling target_auxv_search.
9097 (adi_normalize_address): Use masks and xor operators to calculate
9099 (adi_read_versions, adi_write_versions, adi_print_versions)
9100 (do_examine, do_assign): Use paddress.
9102 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9104 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9105 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9106 out of loop and add supply of FIR.
9107 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9110 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9113 * cli/cli-script.c (define_command): Don't convert command name
9116 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9118 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9119 Update all callers accordingly. Remove all code blocks handling
9120 the case where DISPP is not NULL.
9122 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9125 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9126 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9127 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9129 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9131 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9132 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9133 (read_comp_units_from_section): New parameter abbrev_section, use
9134 read_and_check_comp_unit_head, allocate signatured_type if needed.
9135 (create_all_comp_units): Update read_comp_units_from_section caller.
9137 2017-08-23 Pedro Alves <palves@redhat.com>
9140 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9141 to null_ptid and switch to thread without reading the registers
9142 after adding the inferior.
9144 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9146 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9148 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9149 (compile_to_object): Implement compile_gcc.
9150 (_initialize_compile): Install "set compile-gcc". Initialize
9153 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9155 * compile/compile.c (compile_to_object): Conditionally call
9156 set_verbose. Conditionally call compile or compile_v0.
9158 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9160 * sparc64-tdep.h: (adi_normalize_address): New export.
9161 * sparc-nat.h: (open_adi_tag_fd): New export.
9162 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9163 * sparc64-linux-tdep.c:
9164 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9165 (sparc64_linux_handle_segmentation_fault): New function.
9166 (sparc64_linux_init_abi): Register
9167 sparc64_linux_handle_segmentation_fault
9168 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9169 (sparc64_addr_bits_remove): New function.
9170 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9171 (MAX_PROC_NAME_SIZE): New macro.
9172 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9173 (sparc64adilist): New variable.
9174 (adi_proc_list): New variable.
9175 (find_adi_info): New function.
9176 (add_adi_info): New function.
9177 (get_adi_info_proc): New function.
9178 (get_adi_info): New function.
9179 (info_adi_command): New function.
9180 (read_maps_entry): New function.
9181 (adi_available): New function.
9182 (adi_normalize_address): New function.
9183 (adi_align_address): New function.
9184 (adi_convert_byte_count): New function.
9185 (adi_tag_fd): New function.
9186 (adi_is_addr_mapped): New function.
9187 (adi_read_versions): New function.
9188 (adi_write_versions): New function.
9189 (adi_print_versions): New function.
9190 (do_examine): New function.
9191 (do_assign): New function.
9192 (adi_examine_command): New function.
9193 (adi_assign_command): New function.
9194 (_initialize_sparc64_adi_tdep): New function.
9196 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9198 * breakpoint.c (breakpoints_info): Rename to ...
9199 (info_breakpoints_command): ... this.
9200 (watchpoints_info): Rename to ...
9201 (info_watchpoints_command): ... this.
9202 (tracepoints_info): Rename to ...
9203 (info_tracepoints_command): ... this.
9204 (_initialize_breakpoint): Adjust.
9205 * dcache.c (dcache_info): Rename to ...
9206 (info_display_command): ... this.
9207 (_initialize_dcache): Adjust.
9208 * frame.h (args_info): Rename to ...
9209 (info_args_command): ... this.
9210 (locals_info): Rename to ...
9211 (info_locals_command): ... this.
9212 * infcmd.c (nofp_registers_info): Rename to ...
9213 (info_registers_command): ... this.
9214 (float_info): Rename to ...
9215 (info_float_command): ... this.
9216 (program_info): Rename to ...
9217 (info_program_command): ... this.
9218 (all_registers_info): Rename to ...
9219 (info_all_registers_command): ... this.
9220 (vector_info): Rename to ...
9221 (info_vector_command): ... this.
9222 (float_info): Rename to ...
9223 (info_float_command): ... this.
9224 (_initialize_infcmd): Adjust.
9225 * inferior.h (term_info): Rename to ...
9226 (info_terminal_command): ... this.
9227 * inflow.c (term_info): Rename to ...
9228 (info_terminal_command): ... this.
9229 (_initialize_inflow): Adjust.
9230 * infrun.c (signals_info): Rename to ...
9231 (info_signals_command): ... this.
9232 (_initialize_infrun): Adjust.
9233 * objc-lang.c (classes_info): Rename to ...
9234 (info_classes_command): ... this.
9235 (selectors_info): Rename to ...
9236 (info_selectors_command): ... this.
9237 (_initialize_objc_language): Adjust.
9238 * printcmd.c (sym_info): Rename to ...
9239 (info_symbol_command): ... this.
9240 (address_info): Rename to ...
9241 (info_address_command): ... this.
9242 (display_info): Rename to ...
9243 (info_display_command): ... this.
9244 (_initialize_printcmd): Adjust.
9245 * reverse.c (bookmarks_info): Rename to ...
9246 (info_breakpoints_command): ... this.
9247 (_initialize_reverse): Adjust.
9248 * ser-go32.c (dos_info): Rename to ...
9249 (info_serial_command): ... this.
9250 (_initialize_ser_dos): Adjust.
9251 * skip.c (skip_info): Rename to ...
9252 (info_skip_command): ... this.
9253 (_initialize_step_skip): Adjust.
9254 * source.c (line_info): Rename to ...
9255 (info_line_command): ... this.
9256 (source_info): Rename to ...
9257 (info_source_command)
9258 * stack.c (frame_info): Rename to ...
9259 (info_frame_command): ... this.
9260 (locals_info): Rename to ...
9261 (info_locals_command): ... this.
9262 (args_info): Rename to ...
9263 (info_args_command): ... this.
9264 (_initialize_stack): Adjust.
9265 * symtab.c (sources_info): Rename to ...
9266 (info_sources_command): ... this.
9267 (variables_info): Rename to ...
9268 (info_variables_command): ... this.
9269 (functions_info): Rename to ...
9270 (info_functions_command): ... this.
9271 (types_info): Rename to ...
9272 (info_types_command): ... this.
9273 (_initialize_symtab): Adjust.
9274 * target.c (target_info): Rename to ...
9275 (info_target_command): ... this.
9276 (initialize_targets): Adjust.
9277 * tracepoint.c (tvariables_info): Rename to ...
9278 (info_tvariables_command): ... this.
9279 (scope_info): Rename to ...
9280 (info_scope_command): ... this.
9281 (trace_dump_actions): Adjust.
9282 (_initialize_tracepoint): Adjust.
9284 2017-08-22 Tom Tromey <tom@tromey.com>
9286 * breakpoint.h (install_breakpoint): Update.
9287 * breakpoint.c (add_solib_catchpoint): Update.
9288 (install_breakpoint): Change argument to a std::unique_ptr.
9289 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9290 (create_breakpoint_sal, create_breakpoint): Update.
9291 (watch_command_1, catch_exec_command_1)
9292 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9293 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9294 Return the breakpoint.
9295 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9296 (new_single_step_breakpoint): Update.
9297 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9299 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9301 * break-catch-sig.c (create_signal_catchpoint): Use
9303 * ada-lang.c (create_ada_exception_catchpoint): Use
9306 2017-08-22 Tom Tromey <tom@tromey.com>
9308 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9310 2017-08-22 Tom Tromey <tom@tromey.com>
9312 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9313 (lookup_partial_symbol): Update.
9315 2017-08-22 Tom Tromey <tom@tromey.com>
9317 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9318 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9319 (find_and_open_source, symtab_to_fullname): Update.
9320 * psymtab.c (psymtab_to_fullname): Update.
9322 2017-08-22 Tom Tromey <tom@tromey.com>
9324 * exec.c (exec_file_attach): Update.
9325 * linux-thread-db.c (try_thread_db_load): Update.
9326 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9327 * utils.c (gdb_realpath): Change return type.
9328 (gdb_realpath_keepfile): Update.
9329 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9330 (_initialize_utils): Register the new self test.
9331 * source.c (openp): Update.
9332 (find_and_open_source): Update.
9333 * nto-tdep.c (nto_find_and_open_solib): Update.
9334 * main.c (set_gdb_data_directory): Update.
9335 (captured_main_1): Update.
9336 * dwarf2read.c (dwarf2_get_dwz_file): Update
9337 (dw2_map_symbol_filenames): Update.
9338 * auto-load.c (auto_load_safe_path_vec_update): Update.
9339 (filename_is_in_auto_load_safe_path_vec): Change type of
9341 (auto_load_objfile_script): Update.
9342 (file_is_auto_load_safe): Update. Use std::string.
9343 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9345 2017-08-22 Tom Tromey <tom@tromey.com>
9347 * utils.c (gdb_realpath_keepfile): Return a
9348 gdb::unique_xmalloc_ptr.
9349 * exec.c (exec_file_attach): Update.
9350 * utils.h (gdb_realpath_keepfile): Return a
9351 gdb::unique_xmalloc_ptr.
9353 2017-08-22 Tom Tromey <tom@tromey.com>
9355 * compile/compile.c (compile_file_command): Use
9356 gdb::unique_xmalloc_ptr, std::string.
9357 * utils.c (gdb_abspath): Change return type.
9358 * source.c (openp): Update.
9359 * objfiles.c (allocate_objfile): Update.
9360 * main.c (set_gdb_data_directory): Update.
9361 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9363 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9365 * cli-cmds.c (list_commands): List actual code around more than
9368 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9370 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9372 2017-08-21 Pedro Alves <palves@redhat.com>
9375 * c-exp.y (variable production): Handle function aliases.
9376 * minsyms.c (msymbol_is_text): New function.
9377 * minsyms.h (msymbol_is_text): Declare.
9378 * symtab.c (find_function_alias_target): New function.
9379 * symtab.h (find_function_alias_target): Declare.
9381 2017-08-21 Pedro Alves <palves@redhat.com>
9383 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9385 * typeprint.c (whatis_exp): If handling "whatis", and expression
9386 is OP_TYPE, strip one typedef level. Otherwise don't strip
9388 * valops.c (value_cast): Save "to" type before resolving
9389 stubs/typedefs. Use that type as resulting value's type.
9391 2017-08-18 Tom Tromey <tom@tromey.com>
9392 Pedro Alves <palves@redhat.com>
9394 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9395 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9396 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9397 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9398 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9399 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9400 (linux_get_siginfo_data): Add "thread" argument. Use
9402 * linux-nat.c (linux_child_follow_fork)
9403 (check_stopped_by_watchpoint): Use scoped_restore.
9404 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9405 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9406 (restore_inferior_ptid, save_inferior_ptid): Remove.
9407 * btrace.c (btrace_fetch): Use scoped_restore.
9408 * bsd-uthread.c (bsd_uthread_fetch_registers)
9409 (bsd_uthread_store_registers): Use scoped_restore.
9410 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9412 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9413 (aix_thread_xfer_partial): Use scoped_restore.
9414 * inferior.h (save_inferior_ptid): Remove.
9416 2017-08-18 Yao Qi <yao.qi@linaro.org>
9419 * arm-tdep.c (gdb_print_insn_arm): Mark
9420 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9422 2017-08-18 Yao Qi <yao.qi@linaro.org>
9424 * NEWS: Mention GDBserver's new option "--selftest".
9425 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9426 * selftest.c: Move it to common/selftest.c.
9427 * selftest.h: Move it to common/selftest.h.
9428 * selftest-arch.c (reset): New function.
9429 (tests_with_arch): Call reset.
9431 2017-08-18 Yao Qi <yao.qi@linaro.org>
9433 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9434 instead of exception_fprintf and printf_filtered.
9436 2017-08-18 Yao Qi <yao.qi@linaro.org>
9438 * selftest.c (register_self_test): Rename it to
9439 selftests::register_test.
9440 (run_self_tests): selftest::run_tests.
9441 * selftest.h: Update declarations.
9442 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9443 selftests::register_test_foreach_arch.
9444 * selftest-arch.h: Update declaration.
9445 * aarch64-tdep.c: Update.
9446 * arm-tdep.c: Likewise.
9447 * disasm-selftests.c: Likewise.
9448 * dwarf2loc.c: Likewise.
9449 * dwarf2-frame.c: Likewise.
9450 * findvar.c: Likewise.
9451 * gdbarch-selftests.c: Likewise.
9452 * maint.c (maintenance_selftest): Likewise.
9453 * regcache.c: Likewise.
9454 * rust-exp.y: Likewise.
9455 * selftest-arch.c: Likewise.
9456 * unittests/environ-selftests.c: Likewise.
9457 * unittests/function-view-selftests.c: Likewise.
9458 * unittests/offset-type-selftests.c: Likewise.
9459 * unittests/optional-selftests.c: Likewise.
9460 * unittests/scoped_restore-selftests.c: Likewise.
9461 * utils-selftests.c: Likewise.
9463 2017-08-17 Pedro Alves <palves@redhat.com>
9465 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9468 2017-08-17 Pedro Alves <palves@redhat.com>
9470 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9472 (reset_die_in_process): Delete, replaced by ...
9473 (process_die_scope): ... this new class. Make it responsible for
9474 freeing cu->line_header too.
9475 (process_die): Use process_die_scope.
9476 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9477 cu->line_header_die_owner. Don't release the line header if it's
9479 (setup_type_unit_groups): Make the CU/DIE own the line header.
9480 Don't release the line header here.
9482 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9484 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9486 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9488 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9491 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9493 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9496 2017-08-15 Stafford Horne <shorne@gmail.com>
9498 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9500 2017-08-15 Stafford Horne <shorne@gmail.com>
9502 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9504 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9507 * infcmd.c (unset_environment_command): Use the 'clear' method on
9508 the environment instead of resetting it.
9510 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9512 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9515 2017-08-14 Tom Tromey <tom@tromey.com>
9517 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9518 (print_binary_chars): Likewise.
9519 (BITS_IN_BYTES): Remove.
9521 2017-08-14 Tom Tromey <tom@tromey.com>
9524 * valprint.c (LOW_ZERO): Change value to 034.
9525 (print_octal_chars): Add static_asserts for octal constants.
9526 * printcmd.c (print_scalar_formatted): Add 'd' case.
9528 2017-08-11 Tom Tromey <tom@tromey.com>
9530 * symfile.c (add_symbol_file_command): Use std::vector.
9532 2017-08-14 Tom Tromey <tom@tromey.com>
9534 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9535 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9537 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9539 2017-08-11 Pedro Alves <palves@redhat.com>
9541 * infrun.c (process_event_stop_test): Adjust
9542 function_name_is_marked_for_skip call.
9543 * skip.c: Include <list>.
9544 (skiplist_entry): Make it a class with private fields, and
9546 (skiplist_entry_chain): Delete.
9547 (skiplist_entries): New.
9548 (skiplist_entry_count): Delete.
9549 (highest_skiplist_entry_num): New.
9550 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9551 (add_skiplist_entry): Delete.
9552 (skiplist_entry::skiplist_entry): New.
9553 (skiplist_entry::add_entry): New.
9554 (skip_file_command, skip_function): Adjust.
9555 (compile_skip_regexp): Delete.
9556 (skip_command): Don't compile regexp here. Adjust to use
9557 skiplist_entry::add_entry.
9558 (skip_info): Adjust to use range-for and getters.
9559 (skip_enable_command, skip_disable_command): Adjust to use
9560 range-for and setters.
9561 (skip_delete_command): Adjust to use std::list.
9562 (add_skiplist_entry): Delete.
9563 (skip_file_p): Delete, refactored as ...
9564 (skiplist_entry::do_skip_file_p): ... this new method.
9565 (skip_gfile_p): Delete, refactored as ...
9566 (skiplist_entry::do_gskip_file_p): ... this new method.
9567 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9568 (skiplist_entry::skip_function_p): ... this new method.
9569 (function_name_is_marked_for_skip): Now returns bool, and takes
9570 the function sal by const reference. Adjust to use range-for and
9571 skiplist_entry methods.
9572 (_initialize_step_skip): Remove references to
9573 skiplist_entry_chain, skiplist_entry_count.
9574 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9575 takes the function sal by const reference.
9577 2017-08-11 Yao Qi <yao.qi@linaro.org>
9579 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9580 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9581 (dwarf2_frame_cache):
9582 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9583 RETURN_MASK_ALL and set *this_case to NULL.
9584 * frame-unwind.h: Update comments.
9586 2017-08-11 Yao Qi <yao.qi@linaro.org>
9588 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9589 (dwarf2_frame_state_copy_regs): Remove.
9590 (dwarf2_frame_state_free_regs): Remove.
9591 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9592 (dwarf2_restore_rule): Call method .alloc_regs instead of
9593 dwarf2_frame_state_alloc_regs.
9594 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9595 constructor. Call std::move.
9596 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9597 (dwarf2_frame_cache): Likewise.
9599 [GDB_SELF_TEST]: Include selftest.h and
9601 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9602 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9603 execute_cfa_program_test.
9605 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9606 copy ctor, assignment operator, move assignment.
9607 <alloc_regs>: New method.
9609 (struct dwarf2_frame_state): Delete dtor.
9610 (dwarf2_frame_state_alloc_regs): Remove declaration.
9611 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9612 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9614 2017-08-11 Yao Qi <yao.qi@linaro.org>
9616 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9617 (dwarf2_frame_state::dwarf2_frame_state): New.
9618 (dwarf2_frame_state::~dwarf2_frame_state): New.
9619 (dwarf2_fetch_cfa_info): Update.
9620 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9621 rather than a pointer. Update code.
9622 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9624 <data_align, code_align, retaddr_column>: Change them to const.
9625 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9628 2017-08-11 Yao Qi <yao.qi@linaro.org>
9630 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9631 <loc.exp>: New field.
9632 * dwarf2-frame.c (execute_cfa_program): Update.
9633 (dwarf2_frame_prev_register): Update.
9635 2017-08-10 Pedro Alves <palves@redhat.com>
9637 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9639 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9641 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9642 (fbsd_pending_children): Use std::list.
9643 (fbsd_remember_child): Likewise.
9644 (fbsd_is_child_pending): Likewise.
9645 (fbsd_pending_vfork_done): Use std::forward_list.
9646 (fbsd_add_vfork_done): Likewise.
9647 (fbsd_is_vfork_done_pending): Likewise.
9648 (fbsd_next_vfork_done): Likewise.
9650 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9652 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9653 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9654 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9656 (fbsd_xfer_partial): Use gdb::byte_vector.
9657 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9659 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9661 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9663 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9665 2017-08-09 Tom Tromey <tom@tromey.com>
9667 * skip.c (skiplist_entry): New constructor.
9668 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9669 (skiplist_entry::file_is_glob): Now bool.
9670 (skiplist_entry::file, skiplist_entry::function): Now
9672 (make_skip_entry): Return a unique_ptr. Use new.
9673 (free_skiplist_entry, free_skiplist_entry_cleanup)
9674 (make_free_skiplist_entry_cleanup): Remove.
9675 (skip_command, skip_disable_command, add_skiplist_entry)
9676 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9677 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9678 (function_name_is_marked_for_skip): Update.
9679 (skip_delete_command): Update. Use delete.
9681 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9683 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9684 (aarch64_linux_core_read_description): New function.
9685 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9687 2017-08-09 Pedro Alves <palves@redhat.com>
9689 * cp-name-parser.y (cp_comp_to_string): Return a
9690 gdb::unique_xmalloc_ptr<char>.
9691 * cp-support.c (replace_typedefs_qualified_name)
9692 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9693 (cp_canonicalize_string_full): Use op= instead of explicit
9695 (cp_class_name_from_physname, method_name_from_physname)
9696 (cp_func_name, cp_remove_params): Adjust to use
9697 gdb::unique_xmalloc_ptr<char>.
9698 * cp-support.h (cp_comp_to_string): Return a
9699 gdb::unique_xmalloc_ptr<char>.
9700 * python/py-type.c (typy_lookup_type): Adjust to use
9701 gdb::unique_xmalloc_ptr<char>.
9703 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9705 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9707 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9708 Yao Qi <yao.qi@linaro.org>
9710 * cp-support.c (cp_canonicalize_string_full): Use
9711 gdb::unique_xmalloc_ptr<char>.
9712 (cp_canonicalize_string): Likewise.
9714 2017-08-09 Yao Qi <yao.qi@linaro.org>
9716 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9717 * regformats/i386/amd64-avx-avx512.dat: Remove.
9718 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9719 * regformats/i386/amd64-avx-mpx.dat:Remove.
9720 * regformats/i386/amd64-avx.dat: Remove.
9721 * regformats/i386/amd64-mpx.dat: Remove.
9722 * regformats/i386/i386-avx-avx512.dat: Remove.
9723 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9724 * regformats/i386/i386-avx-mpx.dat: Remove.
9725 * regformats/i386/i386-mmx.dat: Remove.
9726 * regformats/i386/i386-mpx.dat: Remove.
9728 2017-08-09 Yao Qi <yao.qi@linaro.org>
9730 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9731 * amd64-tdep.c: Don't include features/i386/x32*.c.
9732 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9734 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9735 and i386/x32-avx-avx512.
9736 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9738 * features/i386/x32-avx-avx512.c: Removed.
9739 * features/i386/x32-avx-avx512.xml: Removed.
9740 * features/i386/x32-avx.c: Removed.
9741 * features/i386/x32-avx.xml: Removed.
9742 * features/i386/x32.c: Removed.
9743 * features/i386/x32.xml: Removed.
9744 * regformats/i386/x32-avx-avx512.dat: Removed.
9745 * regformats/i386/x32-avx.dat: Removed.
9746 * regformats/i386/x32.dat: Removed.
9748 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9750 PR breakpoints/21886
9751 * mem-break.c (default_memory_insert_breakpoint): Use
9752 `->placed_address' rather than `->reqstd_address' for the
9753 breakpoint location.
9755 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9757 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9760 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9762 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9763 a union of `tdep_info', `tdesc_data' and `id'.
9764 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9765 rather than `info.tdep_info'.
9766 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9767 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9768 * i386-tdep.c (i386_gdbarch_init): Likewise.
9769 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9770 * mips-tdep.c (mips_gdbarch_init): Likewise.
9771 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9772 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9773 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9775 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9777 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9778 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9780 * spu-tdep.c (spu_gdbarch_init): Likewise.
9781 * gdbarch.h: Regenerate.
9783 2017-08-07 Leszek Swirski <leszeks@google.com>
9786 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9788 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9790 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9791 (gdbsim_open): Rename gdb_argv args object to argv.
9793 2017-08-05 Tom Tromey <tom@tromey.com>
9795 * compile/compile-object-load.c (compile_object_load): Use
9796 gdb::unique_xmalloc_ptr.
9797 * cli/cli-dump.c (scan_filename): Rename from
9798 scan_filename_with_cleanup. Change return type.
9799 (scan_expression): Rename from scan_expression_with_cleanup.
9801 (dump_memory_to_file, dump_value_to_file, restore_command):
9802 Use gdb::unique_xmalloc_ptr. Update.
9803 * cli/cli-cmds.c (find_and_open_script): Use
9804 gdb::unique_xmalloc_ptr.
9805 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9806 * symmisc.c (maintenance_print_symbols)
9807 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9808 * symfile.c (symfile_bfd_open, generic_load)
9809 (add_symbol_file_command, remove_symbol_file_command): Use
9810 gdb::unique_xmalloc_ptr.
9811 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9812 * psymtab.c (maintenance_print_psymbols): Use
9813 gdb::unique_xmalloc_ptr.
9814 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9815 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9816 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9817 (reload_shared_libraries_1): Likewise.
9819 2017-08-05 Tom Tromey <tom@tromey.com>
9821 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9822 (rust_op_vector, rust_set_vector): New typedefs.
9823 (current_parser): New global.
9824 (work_obstack): Change to pointer type. Update all users.
9825 (rust_ast, pstate): Remove globals.
9826 (struct rust_parser): New.
9827 (%union) <params, field_inits>: Change type.
9828 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9829 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9830 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9831 (convert_params_to_types, convert_params_to_expression): Change
9833 (ast_string): Change type of "fields".
9834 (rust_parse): Make a rust_parser. Remove cleanups.
9835 (rust_lex_tests): Make and install an auto_obstack.
9837 2017-08-04 Yao Qi <yao.qi@linaro.org>
9839 * configure.srv (ipa_x32_linux_regobj): New.
9840 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9841 instead of X86_TDESC_AVX512.
9842 (initialize_low_tracepoint): Call
9843 init_registers_x32_avx_avx512_linux.
9845 2017-08-04 Yao Qi <yao.qi@linaro.org>
9847 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9849 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9851 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9853 2017-08-03 Tom Tromey <tom@tromey.com>
9855 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9857 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9859 2017-08-03 Tom Tromey <tom@tromey.com>
9861 * python/py-param.c (compute_enum_values): Use gdb_argv.
9863 2017-08-03 Tom Tromey <tom@tromey.com>
9865 * utils.h (struct gdb_argv_deleter): New.
9866 (gdb_argv): New class.
9867 * utils.c (gdb_argv::reset): New method.
9868 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9869 * tracefile.c (tsave_command): Use gdb_argv.
9870 * top.c (new_ui_command): Use gdb_argv.
9871 * symmisc.c (maintenance_print_symbols)
9872 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9873 * symfile.c (symbol_file_command, generic_load)
9874 (remove_symbol_file_command): Use gdb_argv.
9875 * stack.c (backtrace_command): Use gdb_argv.
9876 * source.c (add_path, show_substitute_path_command)
9877 (unset_substitute_path_command, set_substitute_path_command):
9879 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9880 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9881 * remote.c (extended_remote_run, remote_put_command)
9882 (remote_get_command, remote_delete_command): Use gdb_argv.
9883 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9884 (gdbsim_open): Use gdb_argv.
9885 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9886 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9887 * procfs.c (procfs_info_proc): Use gdb_argv.
9888 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9889 * infrun.c (handle_command): Use gdb_argv.
9890 * inferior.c (add_inferior_command, clone_inferior_command):
9892 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9893 * exec.c (exec_file_command): Use gdb_argv.
9894 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9895 * compile/compile.c (build_argc_argv): Use gdb_argv.
9897 2017-08-03 Tom Tromey <tom@tromey.com>
9899 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9901 2017-08-03 Tom Tromey <tom@tromey.com>
9903 * python/python.c (compute_python_string): Return std::string.
9904 (gdbpy_eval_from_control_command): Update.
9905 (do_start_initialization): Use std::string.
9906 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9908 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9911 2017-08-03 Tom Tromey <tom@tromey.com>
9913 * top.h (do_restore_instream_cleanup): Remove.
9914 * top.c (do_restore_instream_cleanup): Remove.
9915 (read_command_file): Use scoped_restore.
9916 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9918 2017-08-03 Tom Tromey <tom@tromey.com>
9920 * cli/cli-script.c (execute_user_command)
9921 (execute_control_command): Use scoped_restore.
9923 2017-08-03 Tom Tromey <tom@tromey.com>
9925 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9926 (execute_user_command): Remove user_call_depth; use
9927 user_args_stack's size instead.
9929 2017-08-03 Tom Tromey <tom@tromey.com>
9931 * top.h (in_user_command): Remove.
9932 * top.c (in_user_command): Remove.
9933 * cli/cli-script.c (do_restore_user_call_depth)
9934 (execute_user_command): Update.
9936 2017-08-03 Tom Tromey <tom@tromey.com>
9938 * valops.c (search_struct_method): Use gdb::byte_vector.
9939 * valarith.c (value_concat): Use std::vector.
9940 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9941 (simple_search_memory): Likewise.
9942 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9943 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9944 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9945 * elfread.c (elf_rel_plt_read): Use std::string.
9946 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9947 * cli/cli-dump.c (restore_section_callback): Use
9950 2017-08-03 Tom Tromey <tom@tromey.com>
9952 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9954 2017-08-03 Tom Tromey <tom@tromey.com>
9956 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9957 (tui_register_format): Use scoped_restore.
9959 2017-08-03 Tom Tromey <tom@tromey.com>
9961 * reverse.c (exec_direction_default): Remove.
9962 (exec_reverse_once): Use scoped_restore.
9963 * remote.c (restore_remote_timeout): Remove.
9964 (remote_flash_erase, remote_flash_write, remote_flash_done)
9965 (readchar, remote_serial_write): Use scoped_restore.
9966 * cli/cli-script.c (struct source_cleanup_lines_args)
9967 (source_cleanup_lines): Remove.
9968 (script_from_file): Use scoped_restore.
9969 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9970 (source_command): Use scoped_restore.
9972 2017-08-03 Tom Tromey <tom@tromey.com>
9974 * utils.h (make_cleanup_free_so): Remove.
9975 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9976 * solist.h (struct so_deleter): New.
9977 (so_list_up): New typedef.
9978 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9980 2017-08-03 Tom Tromey <tom@tromey.com>
9982 * utils.h (make_cleanup_restore_current_language): Remove.
9983 * utils.c (do_restore_current_language)
9984 (make_cleanup_restore_current_language): Remove.
9985 * parse.c (parse_exp_in_context_1)
9986 (parse_expression_with_language): Use
9987 scoped_restore_current_language.
9988 * mi/mi-main.c (mi_cmd_execute): Use
9989 scoped_restore_current_language.
9990 * language.h (scoped_restore_current_language): New class.
9992 2017-08-03 Tom Tromey <tom@tromey.com>
9994 * compile/compile.c (cleanup_unlink_file): Remove.
9995 (compile_to_object): Use gdb::unlinker.
9996 (eval_compile_command): Likewise.
9998 2017-08-03 Tom Tromey <tom@tromey.com>
10000 * utils.h (make_cleanup_fclose): Remove.
10001 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
10003 2017-08-03 Tom Tromey <tom@tromey.com>
10005 * top.c (open_terminal_stream): Return gdb_file_up.
10006 (new_ui_command): Update.
10008 2017-08-03 Tom Tromey <tom@tromey.com>
10010 * source.c (print_source_lines_base, forward_search_command)
10011 (reverse_search_command): Use gdb_file_up.
10013 2017-08-03 Tom Tromey <tom@tromey.com>
10015 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10017 2017-08-03 Tom Tromey <tom@tromey.com>
10019 * cli/cli-cmds.c (find_and_open_script): Change return type.
10020 Remove "streamp" and "full_path" parameters.
10021 (source_script_with_search): Update.
10022 * auto-load.c (source_script_file): Update.
10023 * cli/cli-cmds.h (find_and_open_script): Change type.
10024 (open_script): New struct.
10026 2017-08-03 Tom Tromey <tom@tromey.com>
10028 * xml-support.c (xml_fetch_content_from_file): Update.
10029 * ui-file.c (stdio_file::open): Update.
10030 * tracefile-tfile.c (tfile_start): Update.
10031 * remote.c (remote_file_put, remote_file_get): Update.
10032 * nat/linux-procfs.c (linux_proc_get_int)
10033 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10034 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10035 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10036 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10037 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10038 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10039 * linux-nat.c (linux_proc_pending_signals): Update.
10040 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10041 (file_closer): Remove.
10042 * compile/compile.c (compile_to_object): Update.
10043 * common/filestuff.h (struct gdb_file_deleter): New.
10044 (gdb_file_up): New typedef.
10045 (gdb_fopen_cloexec): Change return type.
10046 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10047 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10048 (dump_binary_file, restore_binary_file): Update.
10049 * auto-load.c (auto_load_objfile_script_1): Update.
10051 2017-08-03 Tom Tromey <tom@tromey.com>
10053 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10054 (info_static_tracepoint_markers_command): Likewise.
10055 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10056 * skip.c (skip_info): Use ui_out_emit_table.
10057 * progspace.c (print_program_space): Use ui_out_emit_table.
10058 * osdata.c (info_osdata): Use ui_out_emit_table.
10059 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10061 * linux-thread-db.c (info_auto_load_libthread_db): Use
10063 * inferior.c (print_inferior): Use ui_out_emit_table.
10064 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10065 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10066 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10067 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10068 * ui-out.h (class ui_out_emit_table): New.
10070 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10072 * mips-tdep.c (mips_fpu_type_str): New function.
10073 (mips_dump_tdep): Call it.
10075 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10077 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10080 2017-07-31 Xavier Roirand <roirand@adacore.com>
10082 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10084 2017-07-27 Xavier Roirand <roirand@adacore.com>
10086 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10088 2017-07-26 Yao Qi <yao.qi@linaro.org>
10090 * cli/cli-cmds.c (maintenancechecklist): New variable.
10091 * gdbcmd.h (maintenancechecklist): Declare it.
10092 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10093 Call i386_linux_read_description with different masks.
10094 * maint.c (maintenance_check_command): New function.
10095 (_initialize_maint_cmds): Call add_prefix_cmd.
10096 * target-descriptions.c (tdesc_reg): override operator != and ==.
10097 (tdesc_type): Likewise.
10098 (tdesc_feature): Likewise.
10099 (target_desc): Likewise.
10100 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10101 (maintenance_check_xml_descriptions): New function.
10102 (_initialize_target_descriptions) Add command "xml-descriptions".
10103 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10105 2017-07-26 Yao Qi <yao.qi@linaro.org>
10107 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10108 Include features/i386/32bit-*.c.
10109 (i386_linux_read_description): Generate target description if it
10111 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10113 * features/i386/32bit-linux.c: Re-generated.
10114 * features/i386/32bit-sse.c: Likewise.
10115 * target-descriptions.c (print_c_feature::visit): Print code to
10116 set register number if needed.
10117 (print_c_feature) <m_next_regnum>: New field.
10119 2017-07-26 Yao Qi <yao.qi@linaro.org>
10121 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10122 (FEATURE_XMLFILES): New.
10123 (FEATURE_CFILES): New.
10125 (clean-cfiles): Remove generated c files.
10126 * features/i386/32bit-avx.c: Generated.
10127 * features/i386/32bit-avx512.c: Generated.
10128 * features/i386/32bit-core.c: Generated.
10129 * features/i386/32bit-linux.c: Generated.
10130 * features/i386/32bit-mpx.c: Generated.
10131 * features/i386/32bit-pkeys.c: Generated.
10132 * features/i386/32bit-sse.c: Generated.
10133 * target-descriptions.c: Include algorithm.
10134 (tdesc_element_visitor): Add method visit_end.
10135 (print_c_tdesc): Implement visit_end.
10136 (print_c_tdesc:: m_filename_after_features): Move it to
10138 (print_c_feature): New class.
10139 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10140 name starts with "i386/32bit-".
10142 2017-07-26 Yao Qi <yao.qi@linaro.org>
10144 * target-descriptions.c (tdesc_element_visitor): New class.
10145 (tdesc_element): New class.
10146 (tdesc_reg): Inherit from tdesc_element.
10147 (tdesc_reg::accept): New function.
10148 (tdesc_type): Inherit from tdesc_element.
10149 (tdesc_type::accept): New function.
10150 (tdesc_feature): Inherit from tdesc_element.
10151 (tdesc_feature::accept): New function.
10152 (target_desc): Inherit from tdesc_element.
10153 (target_desc::target_desc): New.
10154 (target_desc::~target_desc): New.
10155 (target_desc::accept): New.
10156 (allocate_target_description): Use new.
10157 (free_target_description): Use delete.
10158 (print_c_tdesc): New class.
10159 (maint_print_c_tdesc_cmd): Adjust.
10161 * features/aarch64.c: Re-generated.
10162 * features/arc-arcompact.c: Re-generated.
10163 * features/arc-v2.c: Re-generated.
10164 * features/arm/arm-with-iwmmxt.c: Re-generated.
10165 * features/arm/arm-with-m.c: Re-generated.
10166 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10167 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10168 * features/arm/arm-with-neon.c: Re-generated.
10169 * features/arm/arm-with-vfpv2.c: Re-generated.
10170 * features/arm/arm-with-vfpv3.c: Re-generated.
10171 * features/i386/amd64-avx-avx512.c: Re-generated.
10172 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10173 * features/i386/amd64-avx.c: Re-generated.
10174 * features/i386/amd64-avx-linux.c: Re-generated.
10175 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10176 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10177 * features/i386/amd64-avx-mpx.c: Re-generated.
10178 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10179 * features/i386/amd64.c: Re-generated.
10180 * features/i386/amd64-linux.c: Re-generated.
10181 * features/i386/amd64-mpx.c: Re-generated.
10182 * features/i386/amd64-mpx-linux.c: Re-generated.
10183 * features/i386/i386-avx-avx512.c: Re-generated.
10184 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10185 * features/i386/i386-avx.c: Re-generated.
10186 * features/i386/i386-avx-linux.c: Re-generated.
10187 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10188 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10189 * features/i386/i386-avx-mpx.c: Re-generated.
10190 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10191 * features/i386/i386.c: Re-generated.
10192 * features/i386/i386-linux.c: Re-generated.
10193 * features/i386/i386-mmx.c: Re-generated.
10194 * features/i386/i386-mmx-linux.c: Re-generated.
10195 * features/i386/i386-mpx.c: Re-generated.
10196 * features/i386/i386-mpx-linux.c: Re-generated.
10197 * features/i386/x32-avx-avx512.c: Re-generated.
10198 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10199 * features/i386/x32-avx.c: Re-generated.
10200 * features/i386/x32-avx-linux.c: Re-generated.
10201 * features/i386/x32.c: Re-generated.
10202 * features/i386/x32-linux.c: Re-generated.
10203 * features/microblaze.c: Re-generated.
10204 * features/microblaze-with-stack-protect.c: Re-generated.
10205 * features/mips64-dsp-linux.c: Re-generated.
10206 * features/mips64-linux.c: Re-generated.
10207 * features/mips-dsp-linux.c: Re-generated.
10208 * features/mips-linux.c: Re-generated.
10209 * features/nds32.c: Re-generated.
10210 * features/nios2.c: Re-generated.
10211 * features/nios2-linux.c: Re-generated.
10212 * features/rs6000/powerpc-32.c: Re-generated.
10213 * features/rs6000/powerpc-32l.c: Re-generated.
10214 * features/rs6000/powerpc-403.c: Re-generated.
10215 * features/rs6000/powerpc-403gc.c : Re-generated.
10216 * features/rs6000/powerpc-405.c: Re-generated.
10217 * features/rs6000/powerpc-505.c: Re-generated.
10218 * features/rs6000/powerpc-601.c: Re-generated.
10219 * features/rs6000/powerpc-602.c: Re-generated.
10220 * features/rs6000/powerpc-603.c: Re-generated.
10221 * features/rs6000/powerpc-604.c: Re-generated.
10222 * features/rs6000/powerpc-64.c: Re-generated.
10223 * features/rs6000/powerpc-64l.c: Re-generated.
10224 * features/rs6000/powerpc-7400.c: Re-generated.
10225 * features/rs6000/powerpc-750.c: Re-generated.
10226 * features/rs6000/powerpc-860.c: Re-generated.
10227 * features/rs6000/powerpc-altivec32.c: Re-generated.
10228 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10229 * features/rs6000/powerpc-altivec64.c: Re-generated.
10230 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10231 * features/rs6000/powerpc-cell32l.c: Re-generated.
10232 * features/rs6000/powerpc-cell64l.c: Re-generated.
10233 * features/rs6000/powerpc-e500.c: Re-generated.
10234 * features/rs6000/powerpc-e500l.c: Re-generated.
10235 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10236 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10237 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10238 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10239 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10240 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10241 * features/rs6000/powerpc-vsx32.c: Re-generated.
10242 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10243 * features/rs6000/powerpc-vsx64.c: Re-generated.
10244 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10245 * features/rs6000/rs6000.c: Re-generated.
10246 * features/s390-linux32.c: Re-generated.
10247 * features/s390-linux32v1.c: Re-generated.
10248 * features/s390-linux32v2.c: Re-generated.
10249 * features/s390-linux64.c: Re-generated.
10250 * features/s390-linux64v1.c: Re-generated.
10251 * features/s390-linux64v2.c: Re-generated.
10252 * features/s390-te-linux64.c: Re-generated.
10253 * features/s390-tevx-linux64.c: Re-generated.
10254 * features/s390-vx-linux64.c: Re-generated.
10255 * features/s390x-linux64.c: Re-generated.
10256 * features/s390x-linux64v1.c: Re-generated.
10257 * features/s390x-linux64v2.c: Re-generated.
10258 * features/s390x-te-linux64.c: Re-generated.
10259 * features/s390x-tevx-linux64.c: Re-generated.
10260 * features/s390x-vx-linux64.c: Re-generated.
10261 * features/sparc/sparc32-solaris.c: Re-generated.
10262 * features/sparc/sparc64-solaris.c: Re-generated.
10263 * features/tic6x-c62x.c: Re-generated.
10264 * features/tic6x-c62x-linux.c: Re-generated.
10265 * features/tic6x-c64x.c: Re-generated.
10266 * features/tic6x-c64x-linux.c: Re-generated.
10267 * features/tic6x-c64xp.c: Re-generated.
10268 * features/tic6x-c64xp-linux.c: Re-generated.
10270 2017-07-26 Yao Qi <yao.qi@linaro.org>
10272 * i386-linux-tdep.c (i386_linux_read_description): New function.
10273 (i386_linux_core_read_description): Call
10274 i386_linux_read_description.
10275 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10276 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10277 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10278 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10279 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10280 * x86-linux-nat.c (x86_linux_read_description): Call
10281 i386_linux_read_description.
10283 2017-07-26 Yao Qi <yao.qi@linaro.org>
10285 * NEWS: Mention it.
10286 * features/Makefile (%.c: %.xml): Pass the xml file name to
10287 command "maint print c-tdesc".
10288 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10291 2017-07-26 Yao Qi <yao.qi@linaro.org>
10293 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10294 in-class initialization.
10295 (tdesc_create_feature): Call new instead of XCNEW.
10296 (free_target_description): Ue delete.
10298 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10300 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10302 2017-07-25 Yao Qi <yao.qi@linaro.org>
10304 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10306 (amd64_x32_init_abi): Likewise.
10307 * amd64-tdep.h (amd64_init_abi): Update declaration.
10308 (amd64_x32_init_abi): Likewise.
10310 2017-07-25 Yao Qi <yao.qi@linaro.org>
10313 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10314 condition for FPSCR.
10315 (arm_linux_store_inferior_registers): Likewise.
10317 2017-07-22 Tom Tromey <tom@tromey.com>
10319 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10320 <syscalls_counts>: Now a std::vector.
10321 (get_catch_syscall_inferior_data): Use "new".
10322 (catch_syscall_inferior_data_cleanup): Use "delete".
10323 (insert_catch_syscall, remove_catch_syscall)
10324 (clear_syscall_counts): Update.
10326 2017-07-22 Tom Tromey <tom@tromey.com>
10328 * break-catch-syscall.c (syscall_catchpoint)
10329 <syscalls_to_be_caught>: Now a std::vector<int>
10330 (~syscall_catchpoint): Remove.
10331 (insert_catch_syscall, remove_catch_syscall)
10332 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10333 (print_mention_catch_syscall, print_recreate_catch_syscall):
10335 (create_syscall_event_catchpoint): Change type of "filter"
10337 (catch_syscall_split_args): Return a std::vector.
10338 (catch_syscall_command_1, catching_syscall_number_1): Update.
10340 2017-07-22 Tom Tromey <tom@tromey.com>
10342 * break-catch-throw.c (struct exception_catchpoint)
10343 <exception_rx>: Now a std::string.
10344 (~exception_catchpoint): Remove.
10345 (print_one_detail_exception_catchpoint): Update.
10346 (handle_gnu_v3_exceptions): Change type of except_rx.
10347 (extract_exception_regexp): Return a std::string.
10348 (catch_exception_command_1): Update.
10350 2017-07-22 Tom Tromey <tom@tromey.com>
10352 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10353 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10355 <catch_all>: Now a bool.
10356 (~signal_catchpoint): Remove.
10357 (signal_catchpoint_insert_location)
10358 (signal_catchpoint_remove_location)
10359 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10360 (signal_catchpoint_print_mention)
10361 (signal_catchpoint_print_recreate)
10362 (signal_catchpoint_explains_signal): Update.
10363 (create_signal_catchpoint): Change type of "filter" and
10365 (catch_signal_split_args): Return a std::vector. Change type of
10367 (catch_signal_command): Update.
10369 2017-07-20 Pedro Alves <palves@redhat.com>
10371 * ada-lang.c (ada_language_defn): Make extern.
10372 (_initialize_ada_language): Remove add_language call.
10373 * c-lang.c (c_language_defn, cplus_language_defn)
10374 (asm_language_defn, minimal_language_defn): Make extern.
10375 (_initialize_c_language): Delete.
10376 * completer.c (compare_cstrings): Delete, moved to utils.h.
10377 * d-lang.c (d_language_defn): Make extern.
10378 (_initialize_d_language): Remove add_language calls.
10379 * defs.h (enum language): Add comment.
10380 * f-lang.c (f_language_defn): Make extern.
10381 (_initialize_f_language): Remove add_language call.
10382 * go-lang.c (go_language_defn): Make extern.
10383 (_initialize_go_language): Remove add_language call.
10384 * language.c: Include <algorithm>.
10385 (languages): Redefine as const array.
10386 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10387 (set_language_command): Handle "local". Use for-range loop.
10388 (set_language): Remove loop.
10389 (language_enum): Rewrite.
10390 (language_def, language_str): Remove loops.
10391 (add_language): Delete.
10392 (add_set_language_command): New, based on add_languages.
10393 (skip_language_trampoline): Adjust.
10394 (local_language_defn): Delete.
10395 (language_gdbarch_post_init): Adjust.
10396 (_initialize_language): Remove add_language calls. Call
10397 add_set_language_command.
10398 * language.h (add_language): Delete.
10399 (auto_language_defn)
10400 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10401 (asm_language_defn, c_language_defn, cplus_language_defn)
10402 (d_language_defn, f_language_defn, go_language_defn)
10403 (m2_language_defn, objc_language_defn, opencl_language_defn)
10404 (pascal_language_defn, rust_language_defn): Declare.
10405 * m2-lang.c (m2_language_defn): Make extern.
10406 (_initialize_m2_language): Remove add_language call.
10407 * objc-lang.c (objc_language_defn): Make extern.
10408 (_initialize_objc_language): Remove add_language call.
10409 * opencl-lang.c (opencl_language_defn): Make extern.
10410 (_initialize_opencl_language): Remove add_language call.
10411 * p-lang.c (pascal_language_defn): Make extern.
10412 (_initialize_pascal_language): Delete.
10413 * rust-lang.c (rust_language_defn): Make extern.
10414 (_initialize_rust_language): Delete.
10415 * utils.h (compare_cstrings): New static inline function.
10417 2017-07-20 Pedro Alves <palves@redhat.com>
10419 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10420 (get_var_value): Constify parameters.
10421 (get_int_var_value): Change prototype.
10422 (to_fixed_range_type): Adjust.
10423 * ada-lang.h (get_int_var_value): Change prototype.
10425 2017-07-20 Pedro Alves <palves@redhat.com>
10427 * dwarf2read.c (dw2_lookup_symbol): Use
10428 SYMBOL_MATCHES_SEARCH_NAME.
10429 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10431 2017-07-20 Pedro Alves <palves@redhat.com>
10433 * block.c (block_iter_name_step, block_iter_name_first)
10434 (block_iter_name_next): Delete.
10435 (block_lookup_symbol_primary): Adjust to use
10436 dict_iter_match_first/dict_iter_match_next.
10437 * block.h (block_iter_name_first, block_iter_name_next): Delete
10439 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10440 dict_iter_match_first/dict_iter_match_next.
10442 2017-07-20 Pedro Alves <palves@redhat.com>
10444 * cp-support.c (cp_find_first_component_aux): Add missing case for
10447 2017-07-18 David Blaikie <dblaikie@gmail.com>
10449 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10450 of dwo_cu's dwo_file.
10452 2017-07-18 Yao Qi <yao.qi@linaro.org>
10454 * remote.c (store_registers_using_G): Remove one line comment.
10456 2017-07-18 Yao Qi <yao.qi@linaro.org>
10458 * regcache.c (regcache_cpy): Simplify it.
10459 (regcache::cpy_no_passthrough): Remove it.
10460 * regcache.h (cpy_no_passthrough): Remove it.
10461 (regcache_dup, regcache_cpy): Update comments.
10463 2017-07-18 Pedro Alves <palves@redhat.com>
10465 * remote-sim.c (sim_command_completer): Adjust to work with a
10466 completion_tracker instead of a VEC.
10468 2017-07-17 Pedro Alves <palves@redhat.com>
10470 * completer.c (complete_source_filenames): New function.
10471 (complete_address_and_linespec_locations): New function.
10472 (location_completer): Use complete_address_and_linespec_locations.
10473 (completion_tracker::build_completion_result): Honor the tracker's
10474 request to suppress append.
10475 * completer.h (completion_tracker::suppress_append_ws)
10476 (completion_tracker::set_suppress_append_ws): New methods.
10477 (completion_tracker::m_suppress_append_ws): New field.
10478 (complete_source_filenames): New declaration.
10479 * linespec.c (linespec_complete_what): New.
10480 (struct ls_parser) <complete_what, completion_word,
10481 completion_quote_char, completion_quote_end, completion_tracker>:
10483 (string_find_incomplete_keyword_at_end): New.
10484 (linespec_lexer_lex_string): Record quote char. If in completion
10486 (linespec_lexer_consume_token): Advance the completion word point.
10487 (linespec_lexer_peek_token): Save/restore completion info.
10488 (save_stream_and_consume_token): New.
10489 (set_completion_after_number): New.
10490 (linespec_parse_basic): Set what to complete next depending on
10491 token. Handle function and label completions specially.
10492 (parse_linespec): Disable objc shortcut in completion mode. Set
10493 what to complete next depending on token type. Skip keyword if in
10495 (complete_linespec_component, linespec_complete): New.
10496 * linespec.h (linespec_complete): Declare.
10498 2017-07-17 Pedro Alves <palves@redhat.com>
10500 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10501 Handle 'operator<' / 'operator<<'.
10503 2017-07-17 Pedro Alves <palves@redhat.com>
10505 * completer.c (collect_explicit_location_matches): Handle
10507 (convert_explicit_location_to_linespec): New, factored out from
10509 (convert_explicit_location_to_sals): ... this.
10510 (complete_label): New.
10511 (linespec_complete_label, find_label_symbols_in_block): New.
10512 (find_label_symbols): Add completion_mode parameter and adjust to
10513 call find_label_symbols_in_block.
10514 * linespec.h (linespec_complete_label): Declare.
10516 2017-07-17 Pedro Alves <palves@redhat.com>
10518 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10519 complete_symbol_mode parameter.
10520 * cli/cli-cmds.c (complete_command): Get the completion result out
10521 of the handle_brkchars tracker if used a custom word point.
10522 * completer.c: Include "linespec.h".
10523 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10524 (advance_to_expression_complete_word_point): New.
10525 (completion_tracker::completes_to_completion_word): New.
10526 (complete_files_symbols): Pass down
10527 complete_symbol_mode::EXPRESSION.
10528 (explicit_options, probe_options): New.
10529 (collect_explicit_location_matches): Complete on the
10530 explictit_loc->foo instead of word. Use
10531 linespec_complete_function. Handle MATCH_LINE. Handle offering
10532 keyword and options completions.
10533 (backup_text_ptr): Delete.
10534 (skip_keyword): New.
10535 (complete_explicit_location): Remove 'word' parameter. Add
10536 language, quoted_arg_start and quoted_arg_end parameters.
10537 Rewrite, parsing left to right.
10538 (location_completer): Rewrite.
10539 (location_completer_handle_brkchars): New function.
10540 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10541 (enum complete_line_internal_reason): Adjust comments.
10542 (completion_tracker::discard_completions): New.
10543 (completer_handle_brkchars_func_for_completer): Handle
10544 location_completer.
10545 (gdb_custom_word_point_brkchars)
10546 (gdb_org_rl_basic_quote_characters): New.
10547 (gdb_completion_word_break_characters_throw)
10548 (completion_find_completion_word): Handle trackers that use a
10550 (completion_tracker::advance_custom_word_point_by): New.
10551 (completion_tracker::build_completion_result): Don't rely on
10552 readline appending the quote char.
10553 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10554 use a custom word point.
10555 (gdb_rl_attempted_completion_function): Restore
10556 rl_basic_quote_characters.
10557 * completer.h (class completion_tracker): Extend intro comment.
10558 (completion_tracker::set_quote_char)
10559 (completion_tracker::quote_char)
10560 (completion_tracker::set_use_custom_word_point)
10561 (completion_tracker::use_custom_word_point)
10562 (completion_tracker::custom_word_point)
10563 (completion_tracker::set_custom_word_point)
10564 (completion_tracker::advance_custom_word_point_by)
10565 (completion_tracker::completes_to_completion_word)
10566 (completion_tracker::discard_completions): New methods.
10567 (completion_tracker::m_quote_char)
10568 (completion_tracker::m_use_custom_word_point)
10569 (completion_tracker::m_custom_word_point): New fields.
10570 (advance_to_expression_complete_word_point): Declare.
10571 * f-lang.c (f_collect_symbol_completion_matches): Add
10572 complete_symbol_mode parameter.
10573 * language.h (struct language_defn)
10574 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10576 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10577 (linespec_complete_function): New function.
10578 (linespec_lexer_lex_keyword): Adjust.
10579 * linespec.h (linespec_keywords, linespec_complete_function): New
10581 * location.c (find_end_quote): New function.
10582 (explicit_location_lex_one): Add explicit_completion_info
10583 parameter. Save quoting info. Don't throw if being called for
10584 completion. Don't handle Ada operators here.
10585 (is_cp_operator, skip_op_false_positives, first_of)
10586 (explicit_location_lex_one_function): New function.
10587 (string_to_explicit_location): Replace 'dont_throw' parameter with
10588 an explicit_completion_info pointer parameter. Handle it. Don't
10589 use explicit_location_lex_one to lex function names. Use
10590 explicit_location_lex_one_function instead.
10591 * location.h (struct explicit_completion_info): New.
10592 (string_to_explicit_location): Replace 'dont_throw' parameter with
10593 an explicit_completion_info pointer parameter.
10594 * symtab.c (default_collect_symbol_completion_matches_break_on):
10595 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10596 (default_collect_symbol_completion_matches)
10597 (collect_symbol_completion_matches): Add complete_symbol_mode
10599 (collect_symbol_completion_matches_type): Pass down
10600 complete_symbol_mode::EXPRESSION.
10601 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10602 parameter. Handle LINESPEC mode.
10603 * symtab.h (complete_symbol_mode): New.
10604 (default_collect_symbol_completion_matches_break_on)
10605 (default_collect_symbol_completion_matches)
10606 (collect_symbol_completion_matches)
10607 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10610 2017-07-17 Pedro Alves <palves@redhat.com>
10612 * utils.c (enum class strncmp_iw_mode): New.
10613 (strcmp_iw): Rename to ...
10614 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10615 parameters. Handle them.
10617 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10618 * utils.h (strncmp_iw): Declare.
10619 (strcmp_iw): Move describing comments here.
10621 2017-07-17 Pedro Alves <palves@redhat.com>
10623 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10625 * c-typeprint.c (is_type_conversion_operator): Use
10627 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10628 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10630 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10631 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10632 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10633 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10635 * location.c: Include "cp-support.h".
10636 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10638 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10641 2017-07-17 Pedro Alves <palves@redhat.com>
10643 * cli/cli-cmds.c (complete_command): Use a completion tracker
10644 along with completion_find_completion_word for handle_brkchars
10646 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10647 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10648 (struct gdb_rl_completion_word_info): New.
10649 (gdb_rl_find_completion_word): New.
10650 (completion_find_completion_word): New.
10651 * completer.h (completion_find_completion_word): Declare.
10653 2017-07-17 Pedro Alves <palves@redhat.com>
10655 * ada-lang.c (symbol_completion_match): Adjust comments.
10656 (symbol_completion_add): Replace vector parameter with
10657 completion_tracker parameter. Use it.
10658 (ada_make_symbol_completion_list): Rename to...
10659 (ada_collect_symbol_completion_matches): ... this. Add
10660 completion_tracker parameter and use it.
10661 (ada_language_defn): Adjust.
10662 * break-catch-syscall.c (catch_syscall_completer): Adjust
10663 prototype and work with completion_tracker instead of VEC.
10664 * breakpoint.c (condition_completer): Adjust prototype and work
10665 with completion_tracker instead of VEC.
10666 * c-lang.c (c_language_defn, cplus_language_defn)
10667 (asm_language_defn, minimal_language_defn): Adjust to renames.
10668 * cli/cli-cmds.c (complete_command): Rework using
10669 completion_tracker. Catch exceptions when completing.
10670 * cli/cli-decode.c (integer_unlimited_completer)
10671 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10672 with completion_tracker instead of VEC.
10673 * command.h (struct completion_tracker): Forward declare.
10674 (completer_ftype, completer_handle_brkchars_ftype): Change
10676 (complete_on_cmdlist, complete_on_enum): Adjust.
10677 * completer.c: Include <algorithm>.
10678 (struct gdb_completer_state): New.
10679 (current_completion): New global.
10680 (readline_line_completion_function): Delete.
10681 (noop_completer, filename_completer)
10682 (filename_completer_handle_brkchars, complete_files_symbols)
10683 (linespec_location_completer): Adjust to work with a
10684 completion_tracker instead of a VEC.
10685 (string_or_empty): New.
10686 (collect_explicit_location_matches): Adjust to work with a
10687 completion_tracker instead of a VEC.
10688 (explicit_location_completer): Rename to ...
10689 (complete_explicit_location): ... this and adjust to work with a
10690 completion_tracker instead of a VEC.
10691 (location_completer): Adjust to work with a completion_tracker
10693 (add_struct_fields): Adjust to work with a completion_list instead
10695 (expression_completer): Rename to ...
10696 (complete_expression): ... this and adjust to work with a
10697 completion_tracker instead of a VEC. Use complete_files_symbols.
10698 (expression_completer): Reimplement on top of complete_expression.
10699 (symbol_completer): Adjust to work with a completion_tracker
10701 (enum complete_line_internal_reason): Add describing comments.
10702 (complete_line_internal_normal_command): Adjust to work with a
10703 completion_tracker instead of a VEC.
10704 (complete_line_internal): Rename to ...
10705 (complete_line_internal_1): ... this and adjust to work with a
10706 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10707 handle_brkchars phase.
10708 (new_completion_tracker): Delete.
10709 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10710 complete_line_internal_1.
10711 (free_completion_tracker): Delete.
10712 (INITIAL_COMPLETION_HTAB_SIZE): New.
10713 (completion_tracker::completion_tracker)
10714 (completion_tracker::~completion_tracker): New.
10715 (maybe_add_completion): Delete.
10716 (completion_tracker::maybe_add_completion)
10717 (completion_tracker::add_completion)
10718 (completion_tracker::add_completions): New.
10719 (throw_max_completions_reached_error): Delete.
10720 (complete_line): Adjust to work with a completion_tracker instead
10721 of a VEC. Don't create a completion_tracker_t or check for max
10723 (command_completer, command_completer_handle_brkchars)
10724 (signal_completer, reg_or_group_completer_1)
10725 (reg_or_group_completer, default_completer_handle_brkchars):
10726 Adjust to work with a completion_tracker.
10727 (gdb_completion_word_break_characters_throw): New.
10728 (gdb_completion_word_break_characters): Reimplement.
10729 (line_completion_function): Delete.
10730 (completion_tracker::recompute_lowest_common_denominator)
10731 (expand_preserving_ws)
10732 (completion_tracker::build_completion_result)
10733 (completion_result::completion_result)
10734 (completion_result::completion_result)
10735 (completion_result::~completion_result)
10736 (completion_result::completion_result)
10737 (completion_result::release_match_list, compare_cstrings)
10738 (completion_result::sort_match_list)
10739 (completion_result::reset_match_list)
10740 (gdb_rl_attempted_completion_function_throw)
10741 (gdb_rl_attempted_completion_function): New.
10742 * completer.h (completion_list, struct completion_result)
10743 (class completion_tracker): New.
10744 (complete_line): Add completion_tracker parameter.
10745 (readline_line_completion_function): Delete.
10746 (gdb_rl_attempted_completion_function): New.
10747 (noop_completer, filename_completer, expression_completer)
10748 (location_completer, symbol_completer, command_completer)
10749 (signal_completer, reg_or_group_completer): Update prototypes.
10750 (completion_tracker_t, new_completion_tracker)
10751 (make_cleanup_free_completion_tracker): Delete.
10752 (enum maybe_add_completion_enum): Delete.
10753 (maybe_add_completion): Delete.
10754 (throw_max_completions_reached_error): Delete.
10755 * corefile.c (complete_set_gnutarget): Adjust to work with a
10756 completion_tracker instead of a VEC.
10757 * cp-abi.c (cp_abi_completer): Adjust to work with a
10758 completion_tracker instead of a VEC.
10759 * d-lang.c (d_language_defn): Adjust.
10760 * disasm.c (disassembler_options_completer): Adjust to work with a
10761 completion_tracker instead of a VEC.
10762 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10763 (f_collect_symbol_completion_matches): ... this. Adjust to work
10764 with a completion_tracker instead of a VEC.
10765 (f_language_defn): Adjust.
10766 * go-lang.c (go_language_defn): Adjust.
10767 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10768 Adjust to work with a completion_tracker instead of a VEC.
10769 * infrun.c (handle_completer): Likewise.
10770 * interps.c (interpreter_completer): Likewise.
10771 * interps.h (interpreter_completer): Likewise.
10772 * language.c (unknown_language_defn, auto_language_defn)
10773 (local_language_defn): Adjust.
10774 * language.h (language_defn::la_make_symbol_completion_list):
10776 (language_defn::la_collect_symbol_completion_matches): ... this
10777 and adjust to work with a completion_tracker instead of a VEC.
10778 * m2-lang.c (m2_language_defn): Adjust.
10779 * objc-lang.c (objc_language_defn): Adjust.
10780 * opencl-lang.c (opencl_language_defn): Adjust.
10781 * p-lang.c (pascal_language_defn): Adjust.
10782 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10783 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10784 with a completion_tracker.
10785 * rust-lang.c (rust_language_defn): Adjust.
10786 * symtab.c (free_completion_list, do_free_completion_list)
10787 (return_val, completion_tracker): Delete.
10788 (completion_list_add_name, completion_list_add_symbol)
10789 (completion_list_add_msymbol, completion_list_objc_symbol)
10790 (completion_list_add_fields, add_symtab_completions): Add
10791 completion_tracker parameter and use it.
10792 (default_make_symbol_completion_list_break_on_1): Rename to...
10793 (default_collect_symbol_completion_matches_break_on): ... this.
10794 Add completion_tracker parameter and use it instead of allocating
10795 a completion tracker here.
10796 (default_make_symbol_completion_list_break_on): Delete old
10798 (default_make_symbol_completion_list): Delete.
10799 (default_collect_symbol_completion_matches): New.
10800 (make_symbol_completion_list): Delete.
10801 (collect_symbol_completion_matches): New.
10802 (make_symbol_completion_type): Rename to ...
10803 (collect_symbol_completion_matches_type): ... this. Add
10804 completion_tracker parameter and use it instead of VEC.
10805 (make_file_symbol_completion_list_1): Rename to...
10806 (collect_file_symbol_completion_matches): ... this. Add
10807 completion_tracker parameter and use it instead of VEC.
10808 (make_file_symbol_completion_list): Delete.
10809 (add_filename_to_list): Use completion_list instead of a VEC.
10810 (add_partial_filename_data::list): Now a completion_list.
10811 (make_source_files_completion_list): Work with a completion_list
10813 * symtab.h: Include "completer.h".
10814 (default_make_symbol_completion_list_break_on)
10815 (default_make_symbol_completion_list, make_symbol_completion_list)
10816 (make_symbol_completion_type, make_file_symbol_completion_list)
10817 (make_source_files_completion_list): Delete.
10818 (default_collect_symbol_completion_matches_break_on)
10819 (default_collect_symbol_completion_matches)
10820 (collect_symbol_completion_matches)
10821 (collect_symbol_completion_matches_type)
10822 (collect_file_symbol_completion_matches)
10823 (make_source_files_completion_list): New.
10824 * top.c (init_main): Don't install a rl_completion_entry_function
10825 hook. Install a rl_attempted_completion_function hook instead.
10826 * tui/tui-layout.c (layout_completer): Adjust to work with a
10827 completion_tracker.
10828 * tui/tui-regs.c (tui_reggroup_completer):
10829 * tui/tui-win.c (window_name_completer, focus_completer)
10830 (winheight_completer): Adjust to work with a completion_tracker.
10831 * value.c: Include "completer.h".
10832 (complete_internalvar): Adjust to work with a completion_tracker.
10833 * value.h (complete_internalvar): Likewise.
10835 2017-07-17 Pedro Alves <palves@redhat.com>
10837 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10839 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10840 comments to completer_ftype's declaration.
10841 <completer_handle_brkchars>: Change type to
10842 completer_handle_brkchars_ftype.
10843 * command.h (completer_ftype): Add describing comment and give
10844 names to parameters.
10845 (completer_ftype_void): Rename to ...
10846 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10847 (set_cmd_completer_handle_brkchars): Adjust.
10848 * completer.c (filename_completer_handle_brkchars): New function.
10849 (complete_line_internal_normal_command): New function, factored
10851 (complete_line_internal): ... here.
10852 (command_completer_handle_brkchars)
10853 (default_completer_handle_brkchars)
10854 (completer_handle_brkchars_func_for_completer): New functions.
10855 * completer.h (set_gdb_completion_word_break_characters): Delete
10857 (completer_handle_brkchars_func_for_completer): New declaration.
10858 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10859 completer_handle_brkchars_func_for_completer.
10861 2017-07-17 Pedro Alves <palves@redhat.com>
10863 * completer.c (symbol_completer): New function, based on
10864 make_symbol_completion_list_fn.
10865 * completer.h (symbol_completer): New declaration.
10866 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10867 * python/py-cmd.c (completers): Adjust.
10868 * symtab.c (make_symbol_completion_list_fn): Delete.
10869 * symtab.h (make_symbol_completion_list_fn): Delete.
10870 * cli/cli-decode.c (add_cmd): Adjust.
10872 2017-07-17 Pedro Alves <palves@redhat.com>
10874 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10875 * dwarf2read.c: Include "filename-seen-cache.h".
10876 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10877 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10878 * filename-seen-cache.c: New file.
10879 * filename-seen-cache.h: New file.
10880 * symtab.c: Include "filename-seen-cache.h".
10881 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10882 (create_filename_seen_cache, clear_filename_seen_cache)
10883 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10884 to filename-seen-cache.h/filename-seen-cache.c.
10885 (output_source_filename, sources_info)
10886 (maybe_add_partial_symtab_filename)
10887 (make_source_files_completion_list): Adjust to use
10888 filename_seen_cache.
10890 2017-07-17 Pedro Alves <palves@redhat.com>
10892 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10894 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10895 dwarf2_debug_sections*)): New.
10896 (dwarf2_per_objfile::dwarf2_per_objfile(const
10897 dwarf2_per_objfile&)): Declare as deleted.
10898 (dwarf2_per_objfile::operator=): Declare as deleted.
10899 (dwarf2_per_objfile::dwarf2_per_objfile)
10900 (dwarf2_per_objfile::~dwarf2_per_objfile)
10901 (dwarf2_per_objfile::free_cached_comp_units): New.
10902 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10903 ctor. Call dwarf2_per_objfile's ctor manually.
10904 (dwarf2_locate_sections): Deleted/refactored as ...
10905 (dwarf2_per_objfile::locate_sections): ... this new method.
10906 (free_cached_comp_units): Defer to
10907 dwarf2_per_objfile::free_cached_comp_units.
10908 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10910 2017-07-14 Tom Tromey <tom@tromey.com>
10913 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10915 <UNOP_SIZEOF>: Split into separate case.
10916 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10918 2017-07-14 Tom Tromey <tom@tromey.com>
10921 * symtab.c (symbol_matches_domain): Add language_rust to special
10923 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10924 treat LOC_TYPEDEF symbols as variables.
10926 2017-07-14 Pedro Alves <palves@redhat.com>
10928 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10929 symtabs matching all symtabs with SRCFILE as file name instead of
10930 only considering the first hit, with lookup_symtab.
10932 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10934 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10935 operator_name parameters.
10936 (gen_expr): Update function call.
10938 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10940 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10942 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10944 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10945 parameter, use agent_expr::gdbarch instead, update function
10947 (locexpr_tracepoint_var_ref): Likewise.
10948 (loclist_tracepoint_var_ref): Likewise.
10949 * ax-gdb.c (gen_trace_static_fields): Likewise.
10950 (gen_traced_pop): Likewise.
10951 (gen_frame_args_address): Likewise.
10952 (gen_frame_locals_address): Likewise.
10953 (gen_var_ref): Likewise.
10954 (gen_struct_ref_recursive): Likewise.
10955 (gen_static_field): Likewise.
10956 (gen_maybe_namespace_elt): Likewise.
10957 (gen_expr): Likewise.
10958 (gen_trace_for_var): Likewise.
10959 (gen_trace_for_expr): Likewise.
10960 (gen_trace_for_return_address): Likewise.
10962 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10964 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10966 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10968 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10970 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10971 from ax, update calls.
10972 (gen_usual_arithmetic): Likewise.
10973 (gen_integral_promotions): Likewise.
10974 (gen_bitfield_ref): Likewise.
10975 (gen_primitive_field): Likewise.
10976 (gen_struct_ref_recursive): Likewise.
10977 (gen_struct_ref): Likewise.
10978 (gen_maybe_namespace_elt): Likewise.
10979 (gen_struct_elt_for_reference): Likewise.
10980 (gen_namespace_elt): Likewise.
10981 (gen_aggregate_elt_ref): Likewise.
10982 (gen_expr): Get gdbarch from ax, update calls.
10983 (gen_expr_binop_rest): Likewise.
10985 2017-07-13 Pedro Alves <palves@redhat.com>
10987 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10989 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10990 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10991 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10992 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10994 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10995 Get final tdesc from the tdep.
10996 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10998 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10999 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
11000 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
11001 Use it as default tdesc.
11002 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
11003 down to amd_init_abi. No longer handle fallback tdesc here.
11004 * amd64-tdep.h (tdesc_x32): Declare.
11005 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
11007 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
11010 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11012 * s390-linux-tdep.c (s390_process_record): Add support for
11013 instructions new in arch12.
11015 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11017 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11018 PT_GETFSBASE and PT_GETGSBASE.
11019 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11022 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11024 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11025 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11026 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11028 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11029 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11030 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11031 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11032 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11033 * features/i386/amd64.xml: Add 64bit-segments.xml.
11034 * features/i386/amd64-avx-avx512.c: Regenerated.
11035 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11036 * features/i386/amd64-avx-mpx.c: Regenerated.
11037 * features/i386/amd64-avx.c: Regenerated.
11038 * features/i386/amd64-mpx.c: Regenerated.
11039 * features/i386/amd64.c: Regenerated.
11040 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11041 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11042 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11043 * regformats/i386/amd64-avx.dat: Regenerated.
11044 * regformats/i386/amd64-mpx.dat: Regenerated.
11045 * regformats/i386/amd64.dat: Regenerated.
11047 2017-07-10 Yao Qi <yao.qi@linaro.org>
11049 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11050 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11052 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11054 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11056 * gnulib/aclocal.m4: Regenerate.
11057 * gnulib/config.in: Regenerate.
11058 * gnulib/configure: Regenerate.
11059 * gnulib/import/Makefile.am: Regenerate.
11060 * gnulib/import/Makefile.in: Regenerate.
11061 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11062 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11063 * gnulib/import/m4/environ.m4: New file.
11064 * gnulib/import/m4/setenv.m4: New file.
11065 * gnulib/import/setenv.c: New file.
11066 * gnulib/import/unsetenv.c: New file.
11068 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11070 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11071 address when op is DW_OP_addr.
11073 2017-07-09 Tom Tromey <tom@tromey.com>
11075 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11076 check and apply to outer type.
11078 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11080 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11081 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11082 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11083 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11085 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11087 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11089 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11091 * corelow.c (get_core_siginfo): Remove.
11092 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11093 instead of get_core_siginfo.
11094 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11095 * gdbarch.h: Re-generate.
11096 * gdbarch.c: Re-generate.
11097 * linux-tdep.c (linux_core_xfer_siginfo): New.
11098 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11100 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11102 * corelow.c (thread_section_name): Move to ...
11103 * gdbcore.h (thread_section_name): ... here.
11105 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11107 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11108 (struct siginfo32): New.
11109 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11110 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11111 via ptrace(PT_LWPINFO).
11113 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11115 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11116 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11117 (fbsd_get_siginfo_type): New.
11118 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11119 (_initialize_fbsd_tdep): New.
11121 2017-07-06 David Blaikie <dblaikie@gmail.com>
11123 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11124 a singular dwo_unit*) to support multiple CUs in the same way that
11125 multiple TUs are supported.
11126 (create_cus_hash_table): Replace create_dwo_cu with a function for
11127 parsing multiple CUs from a DWO file.
11128 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11130 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11131 htab_find, rather than comparing the signature to a singleton CU in
11134 2017-07-06 Pedro Alves <palves@redhat.com>
11136 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11138 2017-07-04 Pedro Alves <palves@redhat.com>
11140 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11141 * gdbtypes.h (TYPE_STATIC): Delete.
11142 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11143 is_synchronized, is_native>: Delete.
11145 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11146 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11147 (TYPE_FN_FIELD_ABSTRACT): Delete.
11149 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11151 * buffer.h (buffer_finish): Fix spelling mistakes.
11153 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11155 * .dir-locals.el: Automatically switch to C-style comments in
11156 versions of Emacs that support the feature.
11158 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11159 Pedro Alves <palves@redhat.com>
11162 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11163 (process_next_line): New variable 'inline_cmd'.
11164 Adjust 'if' clauses for "python", "compile" and "guile" to use
11165 'command_name_equals' and check for '!inline_cmd'.
11167 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11170 * cli/cli-script.c (command_name_equals_not_inline): New function.
11171 (process_next_line): Adjust 'if' clauses for "python", "compile"
11172 and "guile" to use command_name_equals_not_inline.
11174 2017-06-29 Pedro Alves <palves@redhat.com>
11176 * completer.c (expression_completer): Call
11177 linespec_location_completer instead of location_completer.
11179 2017-06-29 Pedro Alves <palves@redhat.com>
11181 * completer.c (expression_completer): Remove code that recomputes
11182 'text' from 'word'.
11184 2017-06-29 Yao Qi <yao.qi@linaro.org>
11186 * regformats/regdat.sh: Generate code with
11187 "ifndef IN_PROCESS_AGENT".
11189 2017-06-28 Pedro Alves <palves@redhat.com>
11191 * command.h: Include "common/scoped_restore.h".
11193 2017-06-28 Yao Qi <yao.qi@linaro.org>
11195 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11196 instead of obstack_grow.
11198 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11201 * symfile.c (reread_symbols): Call objfiles_changed just before
11204 2017-06-27 Pedro Alves <palves@redhat.com>
11206 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11207 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11208 (completion_list_add_symbol, completion_list_add_msymbol):
11209 ... these new functions.
11210 (add_symtab_completions)
11211 (default_make_symbol_completion_list_break_on_1): Adjust.
11213 2017-06-27 Pedro Alves <palves@redhat.com>
11215 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11216 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11217 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11219 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11220 'storage_obstack' field an auto_obstack. In-class initialize all
11221 non-bitfield fields. Make minsyms_read bool.
11222 * symfile.c (read_symbols): Adjust.
11224 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11226 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11227 (gdbsim_store_register): Likewise.
11229 2017-06-27 Pedro Alves <palves@redhat.com>
11231 * c-exp.y (name_obstack): Now an auto_obstack.
11232 (yylex): Use auto_obstack::clear.
11233 (c_parse): Use auto_obstack::clear instead of reinitializing and
11234 freeing the obstack.
11235 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11236 * d-exp.y (name_obstack): Now an auto_obstack.
11237 (yylex): Use auto_obstack::clear.
11238 (d_parse): Use auto_obstack::clear instead of reinitializing and
11239 freeing the obstack.
11240 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11242 * dwarf2read.c (create_addrmap_from_index)
11243 (dwarf2_build_psymtabs_hard)
11244 (update_enumeration_type_from_children): Likewise.
11245 * gdb_obstack.h (auto_obstack): New type.
11246 * go-exp.y (name_obstack): Now an auto_obstack.
11247 (build_packaged_name): Use auto_obstack::clear.
11248 (go_parse): Use auto_obstack::clear instead of reinitializing and
11249 freeing the obstack.
11250 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11252 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11253 * rust-exp.y (work_obstack): Now an auto_obstack.
11254 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11255 reinitializing and freeing the obstack.
11256 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11257 (host_char_to_target): Use auto_obstack.
11258 * utils.h (make_cleanup_obstack_free): Delete declaration.
11259 * valprint.c (generic_emit_char, generic_printstr): Use
11262 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11264 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11266 (darwin_init_thread_list): Don't update dummy thread.
11267 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11269 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11271 * record-full.c (netorder16): Remove.
11273 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11275 * common/diagnostics.h: Define macros for GCC.
11276 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11277 * common/vec.h: Include diagnostics.h.
11278 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11279 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11282 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11284 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11286 * ada-lex.l: Ignore deprecated register warnings.
11288 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11290 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11291 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11293 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11295 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11298 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11300 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11302 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11304 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11305 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11306 (xtensa_register_read_masked): Likewise.
11308 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11310 * common/environ.c (gdb_environ::unset): Update comment.
11312 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11314 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11317 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11319 * record-full.c (record_full_exec_insn): Use byte_vector.
11321 2017-06-22 Yao Qi <yao.qi@linaro.org>
11323 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11324 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11326 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11328 * remote.c (cached_reg): Move from here...
11329 * regcache.h (cached_reg): ...to here.
11330 * python/py-unwind.c (struct reg_info): Remove.
11331 (cached_frame_info): Use cached_reg_t.
11332 (pyuw_prev_register): Likewise.
11333 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11334 (pyuw_dealloc_cache): Free all registers.
11336 2017-06-22 Pedro Alves <palves@redhat.com>
11337 Simon Marchi <simon.marchi@ericsson.com>
11339 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11341 * common/diagnostics.h: New file.
11343 2017-06-22 Pedro Alves <palves@redhat.com>
11345 * common/agent.h: Add include guards.
11347 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11349 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11350 talk about addressable units instead of bytes.
11352 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11354 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11355 of '::const_iterator'.
11357 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11359 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11360 'unittests/environ-selftests.c'.
11361 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11362 * charset.c (find_charset_names): Declare object 'iconv_env'.
11363 Update code to use 'iconv_env' object. Remove call to
11365 * common/environ.c: Include <utility>.
11366 (make_environ): Delete function.
11367 (free_environ): Delete function.
11368 (gdb_environ::clear): New function.
11369 (gdb_environ::operator=): New function.
11370 (gdb_environ::get): Likewise.
11371 (environ_vector): Delete function.
11372 (set_in_environ): Delete function.
11373 (gdb_environ::set): New function.
11374 (unset_in_environ): Delete function.
11375 (gdb_environ::unset): New function.
11376 (gdb_environ::envp): Likewise.
11377 * common/environ.h: Include <vector>.
11378 (struct gdb_environ): Delete; transform into...
11379 (class gdb_environ): ... this class.
11380 (free_environ): Delete prototype.
11381 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11382 environ_vector): Likewise.
11383 * infcmd.c (run_command_1): Update code to call
11384 'envp' from 'gdb_environ' class.
11385 (environment_info): Update code to call methods from 'gdb_environ'
11387 (unset_environment_command): Likewise.
11388 (path_info): Likewise.
11389 (path_command): Likewise.
11390 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11391 (inferior::inferior): Initialize 'environment' using the host's
11393 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11394 Include "environ.h".
11395 (class inferior) <environment>: Change type from 'struct
11396 gdb_environ' to 'gdb_environ'.
11397 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11398 methods from 'gdb_environ' class.
11399 * solib.c (solib_find_1): Likewise
11400 * unittests/environ-selftests.c: New file.
11402 2017-06-20 Yao Qi <yao.qi@linaro.org>
11404 * features/i386/i386-linux.xml: Exchange the order of including
11405 32bit-linux.xml and 32bit-sse.xml.
11406 * features/i386/i386-linux.c: Regenerated.
11408 2017-06-20 Yao Qi <yao.qi@linaro.org>
11410 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11411 Delete copy ctor and assignment operator.
11412 (tdesc_type): Likewise.
11413 (tdesc_feature): Likewise.
11414 (tdesc_free_reg): Remove.
11415 (tdesc_create_reg): Use new.
11416 (tdesc_free_type): Remove.
11417 (tdesc_create_vector): Use new.
11418 (tdesc_create_union): Likewise.
11419 (tdesc_create_flags): Likewise.
11420 (tdesc_create_enum): Likewise.
11421 (tdesc_free_feature): Delete.
11422 (free_target_description): Use delete.
11424 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11426 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11429 2017-06-19 Pedro Alves <palves@redhat.com>
11431 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11432 after gdb::unlinker.
11434 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11436 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11437 gdb_environ to access an environment variable.
11439 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11441 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11444 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11446 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11448 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11450 * configure: Re-generate.
11451 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11453 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11455 * configure: Re-generate.
11456 * warning.m4: Pass -Werror to compiler when checking for
11457 supported warning flags.
11459 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11461 * Makefile.in (COMPILE.pre): Add "-x c++".
11463 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11464 Pedro Alves <palves@redhat.com>
11465 Yao Qi <yao.qi@linaro.org>
11467 * defs.h (RequireLongest): New.
11468 (extract_integer): Declare function template.
11469 (extract_signed_integer): Remove the declaration, but define it
11471 (extract_unsigned_integer): Likewise.
11472 (store_integer): Declare function template.
11473 (store_signed_integer): Remove the declaration, but define it
11475 (store_unsigned_integer): Likewise.
11476 * findvar.c (extract_integer): New function template.
11477 (extract_signed_integer): Remove.
11478 (extract_unsigned_integer): Remove.
11479 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11481 (store_integer): New function template.
11482 (store_signed_integer): Remove.
11483 (store_unsigned_integer): Remove.
11484 (store_integer): Explicit instantiations.
11485 * regcache.c (regcache_raw_read_signed): Update.
11486 (regcache::raw_read): New function.
11487 (regcache::raw_read_signed): Remove.
11488 (regcache::raw_read_unsigned): Remove.
11489 (regcache_raw_read_unsigned): Update.
11490 (regcache_raw_write_unsigned): Update.
11491 (regcache::raw_write_signed): Remove.
11492 (regcache::raw_write): New function.
11493 (regcache_cooked_read_signed): Update.
11494 (regcache::raw_write_unsigned): Remove.
11495 (regcache::cooked_read_signed): Remove.
11496 (regcache_cooked_read_unsigned): Update.
11497 (regcache::cooked_read_unsigned): Remove.
11498 (regcache_cooked_write_signed): Update.
11499 (regcache_cooked_write_unsigned): Update.
11500 * regcache.h (regcache) <raw_read_signed>: Remove.
11501 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11502 <raw_read, raw_write>: New.
11503 <cooked_read_signed, cooked_write_signed>: Remove.
11504 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11505 <cooked_read, cooked_write>: New.
11506 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11507 (sh64_pseudo_register_write): Update.
11509 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11511 * arc-tdep.c (arc_disassembler_options): New variable.
11512 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11513 of default_print_insn.
11514 (arc_delayed_print_insn): Set info->section when needed,
11515 use default_print_insn to retrieve a disassembler.
11517 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11520 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11521 to mention $SHELL and startup-with-shell.
11523 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11525 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11527 2017-06-14 Yao Qi <yao.qi@linaro.org>
11529 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11530 default_print_insn instead of print_insn_aarch64.
11531 * arm-tdep.c (gdb_print_insn_arm): Call
11532 default_print_insn instead of print_insn_big_arm
11533 and print_insn_little_arm.
11534 * i386-tdep.c (i386_print_insn): Call default_print_insn
11535 instead of print_insn_i386.
11536 * ia64-tdep.c (ia64_print_insn): Call
11537 default_print_insn instead of print_insn_ia64.
11538 * mips-tdep.c (gdb_print_insn_mips): Call
11539 default_print_insn instead of print_insn_big_mips
11540 and print_insn_little_mips.
11541 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11542 instead of print_insn_spu.
11544 2017-06-14 Pedro Alves <palves@redhat.com>
11546 * ada-lang.c: Include "common/byte-vector.h".
11547 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11548 * charset.c (wchar_iterator::iterate): Resize the vector instead
11550 * common/byte-vector.h: Include "common/def-vector.h".
11551 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11552 * cli/cli-dump.c: Include "common/byte-vector.h".
11553 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11554 * common/byte-vector.h: New file.
11555 * common/def-vector.h: New file.
11556 * common/default-init-alloc.h: New file.
11557 * dwarf2loc.c: Include "common/byte-vector.h".
11558 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11559 instead of reserving it.
11560 * dwarf2read.c: Include "common/byte-vector.h".
11561 (data_buf::m_vec): Now a gdb::byte_vector.
11562 * gdb_regex.c: Include "common/def-vector.h".
11563 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11564 * mi/mi-main.c: Include "common/byte-vector.h".
11565 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11566 * printcmd.c: Include "common/byte-vector.h".
11567 (print_scalar_formatted): Use gdb::byte_vector.
11568 * valprint.c: Include "common/byte-vector.h".
11569 (maybe_negate_by_bytes, print_decimal_chars): Use
11572 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11574 * darwin-nat.c: Include "nat/fork-inferior.h".
11576 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11578 * configure.nat: Factor out Darwin bits that are not
11579 architecture-specific. Add fork-inferior.o.
11581 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11583 * configure.nat: Factor out AIX bits that are not
11584 architecture-specific. Add fork-inferior.o.
11586 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11588 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11589 (read_pieced_value, write_pieced_value): ...here. Reduce to
11590 wrappers that just call rw_pieced_value.
11592 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11594 * dwarf2loc.c (write_pieced_value): When writing the data for a
11595 memory piece, use write_memory_with_notification instead of
11598 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11600 * valops.c (read_value_memory): Change embedded_offset to
11601 represent a bit offset instead of a byte offset.
11602 * value.h (read_value_memory): Adjust comment.
11604 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11606 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11607 dest_offset_bits and source_offset_bits.
11608 (write_pieced_value): Likewise.
11610 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11612 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11613 given by DW_OP_bit_piece.
11614 (write_pieced_value): Likewise.
11616 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11618 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11619 some other preparations to the places where sufficient information
11621 (write_pieced_value): Likewise.
11623 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11625 * dwarf2loc.c (bits_to_bytes): New function.
11626 (read_pieced_value): Fix offset calculations for register pieces
11627 on big-endian targets.
11628 (write_pieced_value): Likewise.
11630 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11632 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11633 (write_pieced_value): Likewise.
11635 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11637 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11638 transfer the source value's least significant bits, instead of its
11639 lowest-addressed ones. Rename type_len to max_offset.
11640 (read_pieced_value): Mirror above changes to write_pieced_value as
11643 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11645 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11646 truncate full bytes from dest_offset_bits before using it as an
11647 offset into the buffer.
11649 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11651 * dwarf2loc.c (write_pieced_value): Include transfer size in
11654 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11656 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11657 calculation of this_size.
11659 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11661 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11662 when targeting a bit-field.
11663 (write_pieced_value): Likewise.
11665 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11667 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11668 (allocate_piece_closure): Drop addr_size parameter.
11669 (dwarf2_evaluate_loc_desc_full): Adjust call to
11670 allocate_piece_closure.
11672 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11675 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11676 the LSB end, independent of endianness.
11678 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11680 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11683 2017-06-13 Yao Qi <yao.qi@linaro.org>
11685 * mips-linux-nat.c: Move include features/mips*-linux.c to
11687 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11688 to mips-linux-tdep.c.
11689 * mips-linux-tdep.c: Include features/mips*-linux.c
11690 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11692 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11693 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11694 (tdesc_mips64_dsp_linux): Declare.
11696 2017-06-12 Tom Tromey <tom@tromey.com>
11698 * valprint.h (val_print_type_code_int): Remove.
11699 * valprint.c (generic_val_print_int): Always call
11700 val_print_scalar_formatted.
11701 (val_print_type_code_int): Remove.
11702 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11703 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11704 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11705 * ada-valprint.c (ada_val_print_num): Use
11706 val_print_scalar_formatted.
11708 2017-06-12 Tom Tromey <tom@tromey.com>
11710 * printcmd.c (print_scalar_formatted): Unify the two switches.
11711 Don't convert scalars to LONGEST.
11713 2017-06-12 Tom Tromey <tom@tromey.com>
11716 * valprint.h (print_decimal_chars): Update.
11717 * valprint.c (maybe_negate_by_bytes): New function.
11718 (print_decimal_chars): Add "is_signed" argument.
11719 * printcmd.c (print_scalar_formatted): Update.
11721 2017-06-12 Tom Tromey <tom@tromey.com>
11724 * valprint.h (print_binary_chars, print_hex_chars): Update.
11725 * valprint.c (val_print_type_code_int): Update.
11726 (print_binary_chars): Add "zero_pad" argument.
11727 (emit_octal_digit): New function.
11728 (print_octal_chars): Don't zero-pad.
11729 (print_decimal_chars): Likewise.
11730 (print_hex_chars): Add "zero_pad" argument.
11731 * sh64-tdep.c (sh64_do_fp_register): Update.
11732 * regcache.c (regcache::dump): Update.
11733 * printcmd.c (print_scalar_formatted): Update.
11734 * infcmd.c (default_print_one_register_info): Update.
11736 2017-06-12 Pedro Alves <palves@redhat.com>
11737 Alan Hayward <alan.hayward@arm.com>
11739 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11740 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11741 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11742 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11743 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11745 2017-06-12 Pedro Alves <palves@redhat.com>
11747 * dwarf2read.c (mapped_symtab::data): Now a vector of
11748 symtab_index_entry instead of vector of
11749 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11750 whether an element's name is NULL instead of checking whether the
11751 element itself is NULL.
11752 (find_slot): Change return type. Adjust.
11753 (hash_expand, , add_index_entry, uniquify_cu_indices)
11754 (write_hash_table): Adjust.
11756 2017-06-12 Pedro Alves <palves@redhat.com>
11758 * dwarf2read.c (recursively_count_psymbols): New function.
11759 (write_psymtabs_to_index): Call it to compute number of psyms and
11760 pass estimate size of psyms_seen to unordered_set's ctor.
11762 2017-06-12 Pedro Alves <palves@redhat.com>
11764 * dwarf2read.c (write_hash_table): Check if key already exists
11767 2017-06-12 Pedro Alves <palves@redhat.com>
11769 * dwarf2read.c (data_buf::append_space): Rename to...
11770 (data_buf::grow): ... this, and make private. Adjust all callers.
11771 (data_buf::append_uint): New method.
11772 (add_address_entry, write_one_signatured_type)
11773 (write_psymtabs_to_index): Use it.
11775 2017-06-12 Pedro Alves <palves@redhat.com>
11777 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11778 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11779 (data_buf::file_write): Call ::fwrite directly.
11781 2017-06-12 Pedro Alves <palves@redhat.com>
11783 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11784 std::vector::erase.
11786 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11788 Code cleanup: C++ify .gdb_index producer.
11789 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11790 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11791 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11792 (create_strtab, add_string): Remove.
11793 (file_write, data_buf): New.
11794 (struct symtab_index_entry): Use std::vector for cu_indices.
11795 (struct mapped_symtab): Use std::vector for data.
11796 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11797 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11799 (find_slot): Change return type. Update it to the new data structures.
11800 (hash_expand, add_index_entry): Update it to the new data structures.
11801 (offset_type_compare): Remove.
11802 (uniquify_cu_indices): Update it to the new data structures.
11803 (c_str_view, c_str_view_hasher, vector_hasher): New.
11804 (add_indices_to_cpool): Remove.
11805 (write_hash_table): Update it to the new data structures.
11806 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11807 (eq_psymtab_cu_index): Remove.
11808 (psym_index_map): New typedef.
11809 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11810 reference and std::unordered_map for cu_index_htab.
11811 (add_address_entry, add_address_entry_worker, write_address_map)
11812 (write_psymbols): Update it to the new data structures.
11813 (write_obstack): Remove.
11814 (struct signatured_type_index_data): Change types_list to a data_buf
11815 reference and psyms_seen to a std::unordered_set reference.
11816 (write_one_signatured_type, recursively_write_psymbols)
11817 (write_psymtabs_to_index): Update it to the new data structures.
11819 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11821 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11822 separate-debug-file commands.
11823 * symfile.h (separate_debug_file_debug): New global.
11824 * symfile.c (separate_debug_file_debug): New global.
11825 (separate_debug_file_exists, find_separate_debug_file): Add
11827 (_initialize_symfile): Add "set debug separate-debug-file"
11829 * build-id.c (build_id_to_debug_bfd,
11830 find_separate_debug_file_by_buildid): Add debug output.
11832 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11834 * gdbarch.sh (displaced_step_free_closure): Remove.
11835 * gdbarch.h, gdbarch.c: Re-generate.
11836 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11837 displaced_step_free_closure.
11838 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11839 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11840 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11841 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11842 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11843 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11844 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11845 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11846 * infrun.c (displaced_step_clear): Call xfree instead of
11847 gdbarch_displaced_step_free_closure.
11849 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11851 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11854 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11856 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11857 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11858 (mn10300_push_dummy_call): Likewise.
11860 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11862 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11864 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11866 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11868 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11870 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11871 able to start inferiors using a shell.
11872 (New remote packets): Announce new packet "QStartupWithShell".
11873 * remote.c: Add PACKET_QStartupWithShell.
11874 (extended_remote_create_inferior): Handle new
11875 PACKET_QStartupWithShell.
11876 (remote_protocol_features) <QStartupWithShell>: New entry for
11877 PACKET_QStartupWithShell.
11878 (_initialize_remote): Call "add_packet_config_cmd" for
11881 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11882 Pedro Alves <palves@redhat.com>
11884 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11885 and "nat/fork-inferior.h".
11886 * common/common-inferior.h: New file, with contents from
11888 * commom/common-utils.c: Include "common-utils.h".
11889 (stringify_argv): New function.
11890 * common/common-utils.h (stringify_argv): New prototype.
11891 * configure.nat: Add "fork-inferior.o" as a dependency for
11892 "*linux*", "fbsd*" and "nbsd*" hosts.
11893 * corefile.c (get_exec_file): Update comment.
11894 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11895 instead of "startup_inferior".
11896 (darwin_create_inferior): Call "add_thread_silent" after
11898 * fork-child.c: Cleanup unnecessary includes.
11899 (SHELL_FILE): Move to "common/common-fork-child.c".
11900 (environ): Likewise.
11901 (exec_wrapper): Initialize.
11902 (get_exec_wrapper): New function.
11903 (breakup_args): Move to "common/common-fork-child.c"; rename to
11904 "breakup_args_for_exec".
11905 (escape_bang_in_quoted_argument): Move to
11906 "common/common-fork-child.c".
11907 (saved_ui): New variable.
11908 (prefork_hook): New function.
11909 (postfork_hook): Likewise.
11910 (postfork_child_hook): Likewise.
11911 (gdb_startup_inferior): Likewise.
11912 (fork_inferior): Move to "common/common-fork-child.c". Update
11913 function to support gdbserver.
11914 (startup_inferior): Likewise.
11915 * gdbcore.h (get_exec_file): Remove declaration.
11916 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11917 instead of "startup_inferior". Call "add_thread_silent" after
11919 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11920 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11921 instead of "startup_inferior". Call "add_thread_silent" after
11923 * inferior.h: Include "common-inferior.h".
11924 (trace_start_error): Move to "common/common-utils.h".
11925 (trace_start_error_with_name): Likewise.
11926 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11927 (startup_inferior): Likewise.
11928 (gdb_startup_inferior): New prototype.
11929 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11930 * nat/fork-inferior.h: New file.
11931 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11932 instead of "startup_inferior". Call "add_thread_silent" after
11934 * target.h (target_terminal_init): Move prototype to
11936 (target_terminal_inferior): Likewise.
11937 (target_terminal_ours): Likewise.
11938 * target/target.h (target_terminal_init): New prototype, moved
11940 (target_terminal_inferior): Likewise.
11941 (target_terminal_ours): Likewise.
11942 * utils.c (gdb_flush_out_err): New function.
11944 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11946 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11947 * common/common-gdbthread.h: New file, with parts from
11949 * gdbthread.h: Include "common-gdbthread.h".
11950 (switch_to_thread): Moved to "common/common-gdbthread.h".
11952 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11954 * Makefile.in (SFILES): Add "common/job-control.c".
11955 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11956 (COMMON_OBS): Add "job-control.o".
11957 * common/job-control.c: New file, with contents from
11959 * common/job-control.h: New file, with contents from "terminal.h".
11960 * fork-child.c: Include "job-control.h".
11961 * inflow.c: Include "job-control.h".
11962 (gdb_setpgid): Move to "common/common-inflow.c".
11963 (_initialize_inflow): Move setting of "job_control" to
11964 "handle_job_control".
11965 * terminal.h (job_control): Moved to "common/common-terminal.h".
11966 (gdb_setpgid): Likewise.
11967 * top.c: Include "job_control.h".
11968 * utils.c: Likewise.
11969 (job_control): Moved to "job-control.c".
11971 2017-06-07 Pedro Alves <palves@redhat.com>
11973 * Makefile.in (SFILES): Add gdb_regex.c.
11974 (COMMON_OBS): Add gdb_regex.o.
11975 * ada-lang.c (ada_add_standard_exceptions)
11976 (ada_add_exceptions_from_frame, name_matches_regex)
11977 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11978 parameter type to compiled_regex. Adjust.
11979 (ada_exceptions_list): Use compiled_regex.
11980 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11981 std::unique_ptr<compiled_regex>.
11982 (exception_catchpoint::~exception_catchpoint): Remove regfree
11984 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11985 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11986 * breakpoint.c (solib_catchpoint::compiled): Now a
11987 std::unique_ptr<compiled_regex>.
11988 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11989 (check_status_catch_solib): Adjust to use compiled_regex.
11990 (add_solib_catchpoint): Adjust to use compiled_regex.
11991 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11992 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11993 compiled_regex reference. Adjust to use it.
11994 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11995 declaration. Include "gdb_regex.h".
11996 (apropos_cmd): Change regex parameter to compiled_regex reference.
11997 * gdb_regex.c: New file.
11998 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
12000 (class compiled_regex): New.
12001 * linux-tdep.c: Include "common/gdb_optional.h".
12002 (struct mapping_regexes): New, factored out from
12003 mapping_is_anonymous_p, and adjusted to use compiled_regex.
12004 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
12005 gdb::optional and remove cleanups. Adjust to compiled_regex.
12006 * probe.c: Include "common/gdb_optional.h".
12007 (collect_probes): Use compiled_regex and gdb::optional and remove
12009 * skip.c: Include "common/gdb_optional.h".
12010 (skiplist_entry::compiled_function_regexp): Now a
12011 gdb::optional<compiled_regex>.
12012 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
12013 (free_skiplist_entry): Remove regfree call.
12014 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12015 compiled_regex and gdb::optional.
12016 * symtab.c: Include "common/gdb_optional.h".
12017 (search_symbols): Use compiled_regex and gdb::optional.
12018 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12019 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12022 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12024 * regcache.c (regcache::save): Avoid buffer use.
12025 (regcache::dump): Likewise.
12027 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12029 * sh-tdep.c (sh_pseudo_register_read): Remove
12031 (sh_pseudo_register_write): Likewise.
12032 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12033 (sh64_pseudo_register_write): Likewise
12035 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12037 * aarch64-tdep.c (aarch64_store_return_value): Use
12039 (aarch64_pseudo_read_value): Likewise.
12040 (aarch64_pseudo_write): Likewise.
12042 2017-06-06 Yao Qi <yao.qi@linaro.org>
12044 * regformats/regdef.h (set_register_cache): Remove the
12047 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12049 * frame.c (frame_unwind_register_signed): Use
12050 frame_unwind_register_value.
12052 2017-06-06 Pedro Alves <palves@redhat.com>
12054 PR breakpoints/21553
12055 * breakpoint.c (create_breakpoints_sal_default)
12056 (init_breakpoint_sal, create_breakpoint_sal): Use
12057 gdb::unique_xmalloc_ptr for string parameters.
12058 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12059 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12060 (base_breakpoint_create_breakpoints_sal)
12061 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12062 (strace_marker_create_breakpoints_sal)
12063 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12065 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12066 gdb::unique_xmalloc_ptr for string parameters.
12067 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12070 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12072 * alpha-tdep.c (alpha_register_to_value): Use
12073 get_frame_register_value.
12074 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12076 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12078 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12079 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12080 (ia64_value_to_register): Likewise.
12081 (ia64_extract_return_value): Likewise.
12082 (ia64_store_return_value): Likewise.
12083 (ia64_push_dummy_call): Likewise.
12085 2017-06-04 Joel Brobecker <brobecker@adacore.com>
12089 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12091 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12093 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12095 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12097 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12099 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12101 * event-loop.c (poll_timers): Unallocate timer using delete
12104 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12106 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12107 (struct breakpoint) <~breakpoint>: New.
12108 (struct watchpoint): Inherit from breakpoint.
12109 <~watchpoint>: New.
12111 (struct tracepoint): Inherit from breakpoint.
12113 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12114 (struct longjmp_breakpoint): Inherit from breakpoint.
12115 <~longjmp_breakpoint>: New.
12117 (new_breakpoint_from_type): Remove casts.
12118 (watchpoint_in_thread_scope): Remove reference to base field.
12119 (watchpoint_del_at_next_stop): Likewise.
12120 (update_watchpoint): Likewise.
12121 (watchpoint_check): Likewise.
12122 (bpstat_check_watchpoint): Likewise.
12123 (set_longjmp_breakpoint): Likewise.
12124 (struct fork_catchpoint): Inherit from breakpoint.
12126 (struct solib_catchpoint): Inherit from breakpoint.
12127 <~solib_catchpoint>: New.
12129 (dtor_catch_solib): Change to ...
12130 (solib_catchpoint::~solib_catchpoint): ... this.
12131 (breakpoint_hit_catch_solib): Remove reference to base field.
12132 (add_solib_catchpoint): Likewise.
12133 (create_fork_vfork_event_catchpoint): Likewise.
12134 (struct exec_catchpoint): Inherit from breakpoint.
12135 <~exec_catchpoint>: New.
12137 (dtor_catch_exec): Change to ...
12138 (exec_catchpoint::~exec_catchpoint): ... this.
12139 (dtor_watchpoint): Change to ...
12140 (watchpoint::~watchpoint): ... this.
12141 (watch_command_1): Remove reference to base field.
12142 (catch_exec_command_1): Likewise.
12143 (base_breakpoint_dtor): Change to ...
12144 (breakpoint::~breakpoint): ... this.
12145 (base_breakpoint_ops): Remove dtor field value.
12146 (longjmp_bkpt_dtor): Change to ...
12147 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12148 (strace_marker_create_breakpoints_sal): Remove reference to base
12150 (delete_breakpoint): Don't manually call breakpoint destructor.
12151 (create_tracepoint_from_upload): Remove reference to base field.
12152 (trace_pass_set_count): Likewise.
12153 (initialize_breakpoint_ops): Don't initialize
12154 momentary_breakpoint_ops, don't set dtors.
12155 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12156 <~ada_catchpoint>: New.
12158 (create_excep_cond_exprs): Remove reference to base field.
12159 (dtor_exception): Change to ...
12160 (ada_catchpoint::~ada_catchpoint): ... this.
12161 (dtor_catch_exception): Remove.
12162 (dtor_catch_exception_unhandled): Remove.
12163 (dtor_catch_assert): Remove.
12164 (create_ada_exception_catchpoint): Remove reference to base
12166 (initialize_ada_catchpoint_ops): Don't set dtors.
12167 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12169 <~signal_catchpoint>: New.
12171 (signal_catchpoint_dtor): Change to ...
12172 (signal_catchpoint::~signal_catchpoint): ... this.
12173 (create_signal_catchpoint): Remove reference to base field.
12174 (initialize_signal_catchpoint_ops): Don't set dtor.
12175 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12177 <~syscall_catchpoint>: New.
12179 (dtor_catch_syscall): Change to ...
12180 (syscall_catchpoint::~syscall_catchpoint): ... this.
12181 (create_syscall_event_catchpoint): Remove reference to base
12183 (initialize_syscall_catchpoint_ops): Don't set dtor.
12184 * break-catch-throw.c (struct exception_catchpoint): Inherit
12186 <~exception_catchpoint>: New.
12188 (dtor_exception_catchpoint): Change to ...
12189 (exception_catchpoint::~exception_catchpoint): ... this.
12190 (handle_gnu_v3_exceptions): Remove reference to base field.
12191 (initialize_throw_catchpoint_ops): Don't set dtor.
12192 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12194 * remote.c (remote_get_tracepoint_status): Likewise.
12195 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12196 * tracefile.c (tracefile_fetch_registers): Likewise.
12197 * tracepoint.c (actions_command): Likewise.
12198 (validate_actionline): Likewise.
12199 (tfind_1): Likewise.
12200 (get_traceframe_location): Likewise.
12201 (find_matching_tracepoint_location): Likewise.
12202 (parse_tracepoint_status): Likewise.
12203 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12205 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12207 * breakpoint.c (struct longjmp_breakpoint): New struct.
12208 (is_tracepoint_type): Change return type to bool.
12209 (is_longjmp_type): New function.
12210 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12211 (set_raw_breakpoint_without_location): Use
12212 new_breakpoint_from_type.
12213 (set_raw_breakpoint): Likewise.
12215 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12217 * breakpoint.c (new_breakpoint_from_type): New function.
12218 (create_breakpoint_sal): Use new_breakpoint_from_type and
12220 (create_breakpoint): Likewise.
12222 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12224 * memattr.c (mem_info_command): Rename to ...
12225 (info_mem_command): ... this.
12226 (mem_enable_command): Rename to ...
12227 (enable_mem_command): ... this.
12228 (mem_disable_command): Rename to ...
12229 (disable_mem_command): ... this.
12230 (mem_delete_command): Rename to ...
12231 (delete_mem_command): ... this.
12232 (_initialize_mem): Adjust function names.
12234 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12236 * btrace.c (handle_pt_insn_events): New.
12237 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12238 STATUS. Split into this and ...
12239 (handle_pt_insn_event_flags): ... this.
12241 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12243 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12244 and struct pt_insn.resynced.
12245 * configure: Regenerated.
12246 * config.in: Regenerated.
12248 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12250 * btrace.c (ftrace_find_call_by_number): New function.
12251 (ftrace_new_function): Store objects, not pointers.
12252 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12253 ftrace_new_gap, ftrace_update_function,
12254 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12255 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12256 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12257 btrace_ends_with_single_insn, btrace_call_get): Account for
12258 btrace_thread_info::functions now storing objects.
12259 * btrace.h (struct btrace_thread_info): Add constructor.
12260 (struct btrace_thread_info) <functions>: Make std::vector.
12261 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12262 Initialize with default values.
12263 * record-btrace.c (record_btrace_frame_sniffer): Account for
12264 btrace_thread_info::functions now storing objects.
12266 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12268 * btrace.c: Remove typedef bfun_s.
12269 (ftrace_new_gap): Directly add gaps to the list of gaps.
12270 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12271 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12272 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12273 instead of gdb VEC.
12275 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12277 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12278 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12279 with btrace_thread_info::next_segment and
12280 btrace_thread_info::prev_segment.
12281 * btrace.h: Remove struct btrace_func_link.
12282 (struct btrace_function): Replace pair of function segment pointers
12283 with pair of indices.
12284 * python/py-record-btrace.c (btpy_call_prev_sibling,
12285 btpy_call_next_sibling): Replace references to
12286 btrace_thread_info::segment with btrace_thread_info::next_segment and
12287 btrace_thread_info::prev_segment.
12288 * record-btrace.c (record_btrace_frame_this_id): Use
12289 btrace_find_call_by_number.
12291 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12293 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12294 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12295 btrace_insn_next, btrace_insn_prev): Remove references to
12296 btrace_thread_info::flow.
12297 * btrace.h (struct btrace_function): Remove FLOW.
12299 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12301 * btrace.c (ftrace_find_call_by_number): New function.
12302 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12303 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12304 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12305 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12307 * btrace.h (struct btrace_function): Turn UP into an index.
12308 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12310 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12311 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12312 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12314 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12316 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12317 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12318 ftrace_update_function, ftrace_compute_global_level_offset,
12319 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12320 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12321 btrace_insn_end, btrace_is_empty): Remove references to
12322 btrace_thread_info::begin and btrace_thread_info::end.
12323 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12324 (struct btrace_thread_info) <functions>: Adjust comment.
12325 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12326 btrace_thread_info::begin.
12328 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12330 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12331 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12332 ftrace_update_function): Remove arguments that implicitly were always
12334 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12335 Don't pass BTINFO->END.
12337 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12339 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12340 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12341 btrace_find_insn_by_number): Replace function segment pointer with
12343 (btrace_insn_cmp): Simplify.
12344 * btrace.h: (struct btrace_insn_iterator) Rename index to
12345 insn_index. Replace function segment pointer with index into function
12347 * record-btrace.c (record_btrace_call_history): Replace function
12348 segment pointer use with index.
12349 (record_btrace_frame_sniffer): Retrieve function call segment through
12351 (record_btrace_set_replay): Remove defunc't safety check.
12353 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12355 * btrace.c (btrace_ends_with_single_insn): New function.
12356 (btrace_call_get, btrace_call_number, btrace_call_begin,
12357 btrace_call_end, btrace_call_next, btrace_call_prev,
12358 btrace_find_call_by_number): Use index into call segment vector
12359 instead of pointer.
12360 (btrace_call_cmp): Simplify.
12361 * btrace.h (struct btrace_call_iterator): Replace function call segment
12362 pointer with index into vector.
12363 * record-btrace.c (record_btrace_call_history): Use index instead of
12366 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12368 * btrace.c (btrace_insn_begin, btrace_insn_end,
12369 btrace_find_insn_by_number): Add btinfo to iterator.
12370 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12372 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12374 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12375 and save pointers directly.
12376 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12377 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12378 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12379 changed signature of functions.
12380 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12381 (btrace_fetch): Remove code that adds btrace_function pointers to
12382 vector of btrace_functions.
12383 (btrace_clear): Simplify freeing vector of btrace_functions.
12385 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12387 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12388 Replace VEC_* with std::vector functions.
12389 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12390 (struct btrace_thread_info)<functions>: Change type to std::vector.
12392 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12394 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12395 "Removed targets and native configurations" up. Merge duplicate
12396 "New commands" sub-sections. Add "New options" sub-sections.
12398 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12400 * defs.h (copy_integer_to_size): New declaration.
12401 * findvar.c (copy_integer_to_size): New function.
12402 (do_cint_test): New selftest function.
12403 (copy_integer_to_size_test): Likewise.
12404 (_initialize_findvar): Likewise.
12405 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12406 (mips_fbsd_collect_reg): Use raw_collect_integer.
12407 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12408 (mips64_fill_gregset): Use raw_collect_integer
12409 (mips64_fill_fpregset): Use raw_supply_integer.
12410 * regcache.c (regcache::raw_supply_integer): New function.
12411 (regcache::raw_collect_integer): Likewise.
12412 * regcache.h: (regcache::raw_supply_integer): New declaration.
12413 (regcache::raw_collect_integer): Likewise.
12415 2017-05-24 Yao Qi <yao.qi@linaro.org>
12417 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12418 (COMMON_OBS): Add gdbarch-selftests.o.
12419 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12420 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12421 * gdbarch-selftests.c: New file.
12422 * regcache.h (regcache) <~regcache>: Mark it virtual if
12424 <raw_write>: Likewise.
12426 2017-05-24 Yao Qi <yao.qi@linaro.org>
12428 * regcache.c (current_regcache): Change it to
12429 regcache::current_regcache.
12430 (regcache_observer_target_changed): Update.
12431 (regcache_thread_ptid_changed): Make it a regcache static
12433 (regcache_thread_ptid_changed): Update.
12434 (class regcache_access): New.
12435 (current_regcache_test): Update.
12436 (_initialize_regcache): Update.
12437 * regcache.h: Include forward_list.
12438 (regcache): Declare regcache_thread_ptid_changed and declare
12439 registers_changed_ptid as friend.
12441 2017-05-24 Yao Qi <yao.qi@linaro.org>
12443 * i387-tdep.c (i387_register_to_value): Use register_size
12444 instead of TYPE_LENGTH.
12445 * m68k-tdep.c (m68k_register_to_value): Likewise.
12447 2017-05-24 Yao Qi <yao.qi@linaro.org>
12449 * i387-tdep.c (i387_convert_register_p): Return false if type
12450 code isn't TYPE_CODE_FLT.
12452 2017-05-24 Yao Qi <yao.qi@linaro.org>
12454 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12456 (alpha_register_to_value): Remove type length check.
12457 (alpha_value_to_register): Likewise.
12459 2017-05-24 Yao Qi <yao.qi@linaro.org>
12461 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12464 2017-05-24 Yao Qi <yao.qi@linaro.org>
12466 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12467 TYPE_CODE_FLT or not.
12469 2017-05-24 Yao Qi <yao.qi@linaro.org>
12471 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12472 * avr-tdep.c (avr_gdbarch_init): Likewise.
12473 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12474 * cris-tdep.c (cris_gdbarch_init): Likewise.
12475 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12476 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12477 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12479 * mep-tdep.c (mep_gdbarch_init): Likewise.
12480 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12481 * mips-tdep.c (mips_gdbarch_init): Likewise.
12482 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12483 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12484 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12485 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12486 * v850-tdep.c (v850_gdbarch_init): Likewise.
12488 2017-05-24 Yao Qi <yao.qi@linaro.org>
12490 * selftest-arch.c (tests_with_arch): Call registers_changed
12491 and reinit_frame_cache.
12492 * selftest.c (run_self_tests): Likewise.
12494 2017-05-24 Yao Qi <yao.qi@linaro.org>
12496 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12497 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12499 2017-05-24 Yao Qi <yao.qi@linaro.org>
12501 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12502 set_gdbarch_print_insn.
12504 2017-05-24 Yao Qi <yao.qi@linaro.org>
12506 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12507 set_gdbarch_print_insn.
12509 2017-05-24 Yao Qi <yao.qi@linaro.org>
12511 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12512 set_gdbarch_print_insn.
12513 * arc-tdep.c (arc_gdbarch_init): Likewise.
12514 * arch-utils.c: include dis-asm.h.
12515 (default_print_insn): New function.
12516 * arch-utils.h (default_print_insn): Declare.
12517 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12518 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12519 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12520 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12521 * frv-tdep.c (frv_gdbarch_init): Likewise.
12522 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12523 * gdbarch.sh (print_insn): Use default_print_insn.
12524 * gdbarch.c: Regenerated.
12525 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12526 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12527 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12528 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12529 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12530 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12531 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12532 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12533 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12534 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12535 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12536 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12537 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12538 * mt-tdep.c (mt_gdbarch_init): Likewise.
12539 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12540 * nios2-tdep.c (nios2_print_insn): Remove.
12541 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12542 * rx-tdep.c (rx_gdbarch_init): Likewise.
12543 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12544 * score-tdep.c (score_print_insn): Remove.
12545 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12546 * sh-tdep.c (sh_gdbarch_init): Likewise.
12547 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12548 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12549 * tic6x-tdep.c (tic6x_print_insn): Remove.
12550 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12551 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12552 * v850-tdep.c (v850_gdbarch_init): Likewise.
12553 * vax-tdep.c (vax_gdbarch_init): Likewise.
12554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12555 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12557 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12559 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12560 (MIPS_FP0_REGNUM): Remove.
12561 (MIPS_FSR_REGNUM): Remove.
12562 (mips_fbsd_supply_fpregs): Use mips_regnum.
12563 (mips_fbsd_supply_gregs): Likewise.
12564 (mips_fbsd_collect_fpregs): Likewise.
12565 (mips_fbsd_collect_gregs): Likewise.
12567 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12569 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12570 (getpfpregs_supplies): New function.
12571 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12572 getfpregs_supplies.
12573 (mips_fbsd_store_inferior_registers): Likewise.
12575 2017-05-22 Pedro Alves <palves@redhat.com>
12577 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12580 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12582 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12583 (store_register): Likewise.
12584 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12585 (get_decimal_float_return_value): Likewise.
12586 (do_ppc_sysv_return_value): Likewise.
12587 (ppc64_sysv_abi_push_integer): Likewise.
12588 (ppc64_sysv_abi_push_freg): Likewise.
12589 (ppc64_sysv_abi_return_value_base): Likewise.
12590 (ppc64_sysv_abi_return_value): Likewise.
12591 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12592 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12593 * rs6000-nat.c: Likewise.
12594 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12595 (rs6000_value_to_register): Likewise.
12596 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12598 2017-05-21 Tom Tromey <tom@tromey.com>
12601 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12602 arrays as "[T]", not "[T; ]".
12604 2017-05-19 Tom Tromey <tom@tromey.com>
12607 * rust-lang.c (exp_descriptor_rust): New function.
12608 (rust_language_defn): Use it.
12609 * p-lang.c (pascal_language_defn): Update.
12610 * opencl-lang.c (opencl_language_defn): Update.
12611 * objc-lang.c (objc_language_defn): Update.
12612 * m2-lang.c (m2_language_defn): Update.
12613 * language.h (struct language_defn)
12614 <la_watch_location_expression>: New member.
12615 * language.c (unknown_language_defn, auto_language_defn)
12616 (local_language_defn): Update.
12617 * go-lang.c (go_language_defn): Update.
12618 * f-lang.c (f_language_defn): Update.
12619 * d-lang.c (d_language_defn): Update.
12620 * c-lang.h (c_watch_location_expression): Declare.
12621 * c-lang.c (c_watch_location_expression): New function.
12622 (c_language_defn, cplus_language_defn, asm_language_defn)
12623 (minimal_language_defn): Use it.
12624 * breakpoint.c (watch_command_1): Call
12625 la_watch_location_expression.
12626 * ada-lang.c (ada_language_defn): Update.
12628 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12631 * gdb_curses.h (NOMACROS): Define.
12632 (NCURSES_NOMACROS): Define.
12634 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12637 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12639 * tui/tui-wingeneral.c (box_win): Likewise.
12640 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12641 (tui_show_source_line): Likewise.
12642 (tui_show_exec_info_content): Likewise.
12644 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12646 * sparc-tdep.c (sparc_structure_return_p)
12647 (sparc_arg_on_registers_p): New functions.
12648 (sparc32_store_arguments): Use them.
12649 * sparc64-tdep.c (sparc64_16_byte_align_p)
12650 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12651 Handle TYPE_CODE_ARRAY.
12653 2017-05-17 Yao Qi <yao.qi@linaro.org>
12655 * cli/cli-decode.c (add_alias_cmd): New function.
12656 * command.h (add_alias_cmd): Declare.
12657 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12658 instead call add_alias_cmd.
12660 2017-05-17 Pedro Alves <palves@redhat.com>
12662 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12663 (nat_makefile_frag): ... this. All references updated.
12664 * configure.ac: Likewise.
12665 * configure.nat: Likewise. Enhance comments.
12666 * configure: Regenerate.
12668 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12670 * procfs.c (procfs_create_inferior): Change prototype to match
12673 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12675 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12676 C++ compiler warning.
12678 2017-05-12 Tom Tromey <tom@tromey.com>
12681 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12682 recurse, just call value_struct_elt directly.
12684 2017-05-12 Tom Tromey <tom@tromey.com>
12686 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12687 OP_RUST_ARRAY>: Fix.
12689 2017-05-12 Tom Tromey <tom@tromey.com>
12691 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12693 2017-05-09 Yao Qi <yao.qi@linaro.org>
12695 * regcache.c: Include <forward_list>.
12696 (struct regcache_list): Remove.
12697 (current_regcache): Update.
12698 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12699 (regcache_thread_ptid_changed): Likewise.
12700 (registers_changed_ptid): Likewise.
12701 (current_regcache_size): Likewise.
12703 2017-05-09 Yao Qi <yao.qi@linaro.org>
12705 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12706 (current_regcache_size): New function.
12707 (current_regcache_test): New function.
12708 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12710 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12712 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12713 (print_gp_register_row): Use get_frame_register_value.
12715 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12717 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12718 (mips_supply_fpregset): Likewise.
12719 (mips64_supply_gregset): Likewise.
12721 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12723 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12724 regcache->raw_supply_zeroed.
12726 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12728 * configure.nat: Rearrange 'case' statements to match
12731 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12733 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12734 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12735 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12736 "@nat_extra_makefile_frag@".
12737 (Makefile): Remove dependency on "@frags@".
12738 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12739 (data-directory/Makefile): Likewise.
12740 * config/aarch64/linux.mh: Deleted; moved contents to
12741 "gdb/configure.nat".
12742 * config/alpha/alpha-linux.mh: Likewise.
12743 * config/alpha/nbsd.mh: Likewise.
12744 * config/arm/linux.mh: Likewise.
12745 * config/arm/nbsdelf.mh: Likewise.
12746 * config/i386/cygwin.mh: Likewise.
12747 * config/i386/cygwin64.mh: Likewise.
12748 * config/i386/darwin.mh: Likewise.
12749 * config/i386/fbsd.mh: Likewise.
12750 * config/i386/fbsd64.mh: Likewise.
12751 * config/i386/go32.mh: Likewise.
12752 * config/i386/i386gnu.mh: Likewise.
12753 * config/i386/i386sol2.mh: Likewise.
12754 * config/i386/linux.mh: Likewise.
12755 * config/i386/linux64.mh: Likewise.
12756 * config/i386/mingw.mh: Likewise.
12757 * config/i386/mingw64.mh: Likewise.
12758 * config/i386/nbsd64.mh: Likewise.
12759 * config/i386/nbsdelf.mh: Likewise.
12760 * config/i386/nto.mh: Likewise.
12761 * config/i386/obsd.mh: Likewise.
12762 * config/i386/obsd64.mh: Likewise.
12763 * config/i386/sol2-64.mh: Likewise.
12764 * config/ia64/linux.mh: Likewise.
12765 * config/m32r/linux.mh: Likewise.
12766 * config/m68k/linux.mh: Likewise.
12767 * config/m68k/nbsdelf.mh: Likewise.
12768 * config/m68k/obsd.mh: Likewise.
12769 * config/m88k/obsd.mh: Likewise.
12770 * config/mips/fbsd.mh: Likewise.
12771 * config/mips/linux.mh: Likewise.
12772 * config/mips/nbsd.mh: Likewise.
12773 * config/mips/obsd64.mh: Likewise.
12774 * config/pa/linux.mh: Likewise.
12775 * config/pa/nbsd.mh: Likewise.
12776 * config/pa/obsd.mh: Likewise.
12777 * config/powerpc/aix.mh: Likewise.
12778 * config/powerpc/fbsd.mh: Likewise.
12779 * config/powerpc/linux.mh: Likewise.
12780 * config/powerpc/nbsd.mh: Likewise.
12781 * config/powerpc/obsd.mh: Likewise.
12782 * config/powerpc/ppc64-linux.mh: Likewise.
12783 * config/powerpc/spu-linux.mh: Likewise.
12784 * config/s390/linux.mh: Likewise.
12785 * config/sh/nbsd.mh: Likewise.
12786 * config/sparc/fbsd.mh: Likewise.
12787 * config/sparc/linux.mh: Likewise.
12788 * config/sparc/linux64.mh: Likewise.
12789 * config/sparc/nbsd64.mh: Likewise.
12790 * config/sparc/nbsdelf.mh: Likewise.
12791 * config/sparc/obsd64.mh: Likewise.
12792 * config/sparc/sol2.mh: Likewise.
12793 * config/tilegx/linux.mh: Likewise.
12794 * config/vax/nbsdelf.mh: Likewise.
12795 * config/vax/obsd.mh: Likewise.
12796 * config/xtensa/linux.mh: Likewise.
12797 * config/i386/i386gnu.mn: New file, with excerpts from
12798 "config/i386/i386gnu.mh".
12799 * configure: Regenerate.
12800 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12801 *.mh files under "gdb/config".
12802 * configure.nat: New file, with contents from the
12803 "gdb/config/*/*.mh" files.
12805 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12807 * btrace.c (btrace_clear): Free insn vector.
12809 2017-05-05 Pedro Alves <palves@redhat.com>
12811 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12812 * configure: Regenerate.
12814 2017-05-04 Pedro Alves <palves@redhat.com>
12816 * Makefile.in (SFILES): Add progspace-and-thread.c.
12817 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12818 (COMMON_OBS): Add progspace-and-thread.o.
12819 * breakpoint.c: Include "progspace-and-thread.h".
12820 (update_inserted_breakpoint_locations)
12821 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12822 Use scoped_restore_current_pspace_and_thread.
12823 (create_std_terminate_master_breakpoint): Use
12824 scoped_restore_current_program_space.
12825 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12826 (print_breakpoint_location): Use
12827 scoped_restore_current_program_space.
12828 (bp_loc_is_permanent): Use
12829 scoped_restore_current_pspace_and_thread.
12830 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12831 (download_tracepoint_locations): Use
12832 scoped_restore_current_pspace_and_thread.
12833 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12834 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12835 (enum step_over_calls_kind): Moved from inferior.h.
12836 (class scoped_restore_current_thread): New class.
12837 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12839 (scoped_restore_current_thread): New class.
12840 * infcmd.c: Include "common/gdb_optional.h".
12841 (continue_1, proceed_after_attach): Use
12842 scoped_restore_current_thread.
12843 (notice_new_inferior): Use scoped_restore_current_thread.
12844 * inferior.c: Include "progspace-and-thread.h".
12845 (restore_inferior, save_current_inferior): Delete.
12846 (add_inferior_command, clone_inferior_command): Use
12847 scoped_restore_current_pspace_and_thread.
12848 * inferior.h (scoped_restore_current_inferior): New class.
12849 * infrun.c: Include "progspace-and-thread.h" and
12850 "common/gdb_optional.h".
12851 (follow_fork_inferior): Use
12852 scoped_restore_current_pspace_and_thread.
12853 (scoped_restore_exited_inferior): New class.
12854 (handle_vfork_child_exec_or_exit): Use
12855 scoped_restore_exited_inferior,
12856 scoped_restore_current_pspace_and_thread,
12857 scoped_restore_current_thread and scoped_restore.
12858 (fetch_inferior_event): Use scoped_restore_current_thread.
12859 * linespec.c (decode_line_full, decode_line_1): Use
12860 scoped_restore_current_program_space.
12861 * mi/mi-main.c: Include "progspace-and-thread.h".
12862 (exec_continue): Use scoped_restore_current_thread.
12863 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12864 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12865 * proc-service.c (ps_pglobal_lookup): Use
12866 scoped_restore_current_program_space.
12867 * progspace-and-thread.c: New file.
12868 * progspace-and-thread.h: New file.
12869 * progspace.c (release_program_space, clone_program_space): Use
12870 scoped_restore_current_program_space.
12871 (restore_program_space, save_current_program_space)
12872 (save_current_space_and_thread): Delete.
12873 (switch_to_program_space_and_thread): Moved to
12874 progspace-and-thread.c.
12875 * progspace.h (save_current_program_space)
12876 (save_current_space_and_thread): Delete declarations.
12877 (scoped_restore_current_program_space): New class.
12878 * remote.c (remote_btrace_maybe_reopen): Use
12879 scoped_restore_current_thread.
12880 * symtab.c: Include "progspace-and-thread.h".
12881 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12882 * thread.c (print_thread_info_1): Use
12883 scoped_restore_current_thread.
12884 (struct current_thread_cleanup): Delete.
12885 (do_restore_current_thread_cleanup)
12886 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12887 (scoped_restore_current_thread::~scoped_restore_current_thread):
12889 (make_cleanup_restore_current_thread): Rename/convert to ...
12890 (scoped_restore_current_thread::scoped_restore_current_thread):
12892 (thread_apply_all_command): Use scoped_restore_current_thread.
12893 (thread_apply_command): Use scoped_restore_current_thread.
12894 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12895 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12897 2017-05-04 Pedro Alves <palves@redhat.com>
12899 * thread.c (make_cleanup_restore_current_thread): Move
12900 find_thread_ptid call before the is_stopped call. Assert that the
12901 thread is found. Replace is_stopped call by checking the thread's
12902 state directly. Remove unnecessary NULL-thread check.
12904 2017-05-04 Pedro Alves <palves@redhat.com>
12906 * corelow.c (thread_section_name): New class.
12907 (get_core_register_section, get_core_siginfo): Use it.
12909 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12911 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12912 (get_core_register_section): Remove xfree of NULL pointer.
12914 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12916 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12917 * regcache.c (regcache::raw_supply_zeroed): New function.
12918 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12920 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12922 * gdbarch.sh: Remove commented out definition of
12924 * gdbarch.h: Re-generate.
12926 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12928 * configure: Regenerate.
12930 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12932 * solib-target.c (solib_target_relocate_section_addresses):
12933 Remove num_section_bases, num_bases, segment_bases variables.
12935 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12937 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12939 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12941 * solib-target.c: Include <vector>
12942 (struct lm_info_target) <~lm_info_target>: Remove.
12943 <segment_bases, section_bases>: Change type to
12944 std::vector<CORE_ADDR>.
12945 (library_list_start_segment, library_list_start_section,
12946 library_list_end_library,
12947 solib_target_relocate_section_addresses): Adjust.
12949 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12951 * gdbarch.sh (software_single_step): Change return type to
12952 std::vector<CORE_ADDR>.
12953 * gdbarch.c, gdbarch.h: Re-generate.
12954 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12956 (arm_deal_with_atomic_sequence_raw): Adjust.
12957 (thumb_get_next_pcs_raw): Adjust.
12958 (arm_get_next_pcs_raw): Adjust.
12959 (arm_get_next_pcs): Adjust.
12960 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12961 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12962 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12963 (alpha_software_single_step): Adjust.
12964 * alpha-tdep.h (alpha_software_single_step): Adjust.
12965 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12966 * arm-tdep.c (arm_software_single_step): Adjust.
12967 (arm_breakpoint_kind_from_current_state): Adjust.
12968 * arm-tdep.h (arm_software_single_step): Adjust.
12969 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12970 * cris-tdep.c (cris_software_single_step): Adjust.
12971 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12972 (micromips_deal_with_atomic_sequence): Adjust.
12973 (deal_with_atomic_sequence): Adjust.
12974 (mips_software_single_step): Adjust.
12975 * mips-tdep.h (mips_software_single_step): Adjust.
12976 * moxie-tdep.c (moxie_software_single_step): Adjust.
12977 * nios2-tdep.c (nios2_software_single_step): Adjust.
12978 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12979 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12980 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12981 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12982 * sparc-tdep.c (sparc_software_single_step): Adjust.
12983 * spu-tdep.c (spu_software_single_step): Adjust.
12984 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12986 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12988 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12989 * gdbarch.h: Re-generate.
12991 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12993 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12994 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12995 * python/py-instruction.c, python/py-instruction.h: New file.
12996 * python/py-record.c: Add py-instruction.h include.
12997 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12998 gdb.RecordInstruction.
12999 * python/python-internal.h: Add gdbpy_initialize_instruction
13001 * python/python.c (do_start_initialization): Add
13002 gdbpy_initialize_instruction.
13004 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13006 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
13008 (btrace_func_from_recpy_func): New function.
13009 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
13010 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
13011 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
13012 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
13013 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
13014 Also, use new helper functions.
13015 (btpy_list_item): Use new helper functions.
13016 (recpy_bt_function_call_history): Use new type name.
13017 (btpy_call_getset): Remove.
13018 (gdbpy_initialize_btrace): Remove code to initialize
13019 gdb.BtraceFunctionCall.
13020 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13021 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13022 recpy_bt_func_prev, recpy_bt_func_next): New export.
13023 * python/py-record.c (recpy_func_type): New static object.
13024 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13025 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13026 recpy_func_next): New function.
13027 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13028 (recpy_func_getset): New static object.
13029 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13030 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13032 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13034 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13035 (btpy_object, btpy_insn_type, btpy_new): Remove.
13036 (btpy_list_object): Use gdb.RecordInstruction type instead of
13037 gdb.BtraceInstruction type.
13038 (btrace_insn_from_recpy_insn): New function.
13039 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13041 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13042 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13043 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13044 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13045 instead of btpy_object.
13046 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13047 btpy_insn_data, btpy_insn_decode): Rename to ...
13048 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13049 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13050 recpy_bt_insn_decode): This. Also, use new helper functions.
13051 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13053 (btpy_insn_getset): Remove.
13054 (gdbpy_initialize_btrace): Remove code to initialize
13055 gdb.BtraceInstruction. Use recpy_element_object.
13056 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13057 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13058 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13059 * python/py-record.c (recpy_insn_type): New static object.
13060 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13061 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13062 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13064 (recpy_insn_getset): New static object.
13065 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13066 * python/py-record.h (recpy_element_object): New typedef.
13067 (recpy_insn_type, recpy_insn_new): New export.
13069 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13071 * py-record-btrace.c (btpy_insn_new): Removed.
13072 (btpy_insn_or_gap_new): New function.
13073 (btpy_insn_error): Removed.
13074 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13075 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13076 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13077 btpy_insn_or_gap_new instead of btpy_insn_new.
13078 (btpy_insn_getset): Remove btpy_insn_error.
13079 * py-record.c (recpy_gap_type): New static object.
13080 (recpy_gap_object): New typedef.
13081 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13082 recpy_gap_reason_string): New function.
13083 (recpy_gap_getset): New static object.
13084 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13085 * py-record.h (recpy_gap_new): New export.
13087 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13089 * python/py-record.c (recpy_ptid): Remove.
13090 (recpy_record_getset): Remove recpy_ptid.
13092 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13094 * btrace.c (btrace_fetch): Set inferior_ptid.
13095 * python/py-record-btrace.c: Add "py-record.h" include.
13096 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13097 recpy_bt_end, recpy_bt_instruction_history,
13098 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13099 in gdb.Record object instead of current ptid.
13100 * python/py-record.c: Include new "py-record.h" file.
13101 (recpy_record_object): Moved to py-record.h.
13102 * python/py-record.h: New file.
13104 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13106 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13107 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13110 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13112 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13113 the past maintainers section.
13115 2017-04-28 Yao Qi <yao.qi@linaro.org>
13117 * infcmd.c (get_return_value): Use regcache ctor, and remove
13120 2017-04-28 Yao Qi <yao.qi@linaro.org>
13121 Pedro Alves <palves@redhat.com>
13123 * regcache.c (regcache::regcache): New tag dispatch ctor.
13124 (do_cooked_read): Moved above.
13125 (regcache_dup): Use the tag dispatch ctor..
13126 * regcache.h (regcache): Declare ctor, delete copy ctor and
13127 assignment operator, remove friend regcache_dup.
13129 2017-04-28 Yao Qi <yao.qi@linaro.org>
13131 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13132 call method save instead of regcache_cpy.
13133 * regcache.h (struct regcache): Make regcache_dup a friend.
13135 2017-04-28 Yao Qi <yao.qi@linaro.org>
13137 * regcache.c (struct regcache): Move to regcache.h
13138 (regcache::arch): New method.
13139 (regcache_get_ptid): Update.
13140 (get_regcache_arch): Call arch method.
13141 (get_regcache_aspace): Call method aspace.
13142 (register_buffer): Change it to method.
13143 (regcache_save): Change it to regcache::save.
13144 (regcache_restore): Likewise.
13145 (regcache_cpy_no_passthrough): Remove the declaration.
13146 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13147 (regcache_cpy_no_passthrough): Change it to method
13148 cpy_no_passthrough.
13149 (regcache_register_status): Change it to method
13150 get_register_status.
13151 (regcache_invalidate): Change it to method invalidate.
13152 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13153 (regcache_raw_update): Change it to method raw_update.
13154 (regcache_raw_read): Likewise.
13155 (regcache_raw_read_signed): Likewise.
13156 (regcache_raw_read_unsigned): Likewise.
13157 (regcache_raw_write_signed): Likewise.
13158 (regcache_raw_write_unsigned): Likewise.
13159 (regcache_cooked_read): Likewise.
13160 (regcache_cooked_read_value): Likewise.
13161 (regcache_cooked_read_signed): Likewise.
13162 (regcache_cooked_read_unsigned): Likewise.
13163 (regcache_cooked_write_signed): Likewise.
13164 (regcache_cooked_write_unsigned): Likewise.
13165 (regcache_raw_set_cached_value): Likewise.
13166 (regcache_raw_write): Likewise.
13167 (regcache_cooked_write): Likewise.
13168 (regcache_xfer_part): Likewise.
13169 (regcache_raw_read_part): Likewise.
13170 (regcache_raw_write_part): Likewise.
13171 (regcache_cooked_read_part): Likewise.
13172 (regcache_cooked_write_part): Likewise.
13173 (regcache_raw_supply): Likewise.
13174 (regcache_raw_collect): Likewise.
13175 (regcache_transfer_regset): Likewise.
13176 (regcache_supply_regset): Likewise.
13177 (regcache_collect_regset): Likewise.
13178 (regcache_debug_print_register): Likewise.
13179 (enum regcache_dump_what): Move it to regcache.h.
13180 (regcache_dump): Change it to method dump.
13181 * regcache.h (enum regcache_dump_what): New.
13182 (class regcache): New.
13183 * target.c (target_fetch_registers): Call method
13184 debug_print_register.
13185 (target_store_registers): Likewise.
13187 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13189 * windows-nat.c (struct lm_info_windows): Initialize field.
13190 (windows_make_so): Allocate lm_info_windows with new.
13191 (windows_free_so): Free lm_info_windows with delete.
13193 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13195 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13196 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13198 (darwin_free_so): Free lm_info_darwin with delete.
13200 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13202 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13203 <l_addr_p>: Change type to bool.
13204 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13205 (svr4_free_so): Free lm_info_svr4 with delete.
13206 (svr4_copy_library_list): Replace memcpy with call to copy
13208 (library_list_start_library, svr4_default_sos): Allocate
13209 lm_info_svr4 with new.
13211 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13213 * solib-target.c (struct lm_info_target): Add destructor,
13215 <name>: Change type to std::string.
13216 (library_list_start_library): Allocate lm_info_target with new.
13217 (solib_target_free_library_list): Free lm_info_target with
13219 (solib_target_current_sos): Adapt to std::string.
13220 (solib_target_free_so): Free lm_info_target with delete.
13222 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13224 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13226 (frv_current_sos): Allocate lm_info_frv with new.
13227 (frv_relocate_main_executable): Free lm_info_frv with delete,
13229 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13231 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13233 * solib-frv.c (struct lm_info_frv): Fix indentation.
13235 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13237 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13239 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13240 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13241 and allocate with new.
13242 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13244 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13246 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13247 <filename, member_name>: Change type to std::string.
13248 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13249 (library_list_start_library): Allocate lm_info_aix with new.
13250 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13251 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13252 with copy constructor.
13254 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13256 * solist.h (struct lm_info): Remove.
13257 (struct lm_info_base): New class.
13258 (struct so_list) <lm_info>: Change type to lm_info_base *.
13259 * nto-tdep.c (struct lm_info): Remove.
13261 * solib-aix.c (struct lm_info): Rename to ...
13262 (struct lm_info_aix): ... this. Extend lm_info_base.
13263 (lm_info_p): Rename to ...
13264 (lm_info_aix_p): ... this, and adjust.
13265 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13266 solib_aix_parse_libraries, library_list_start_library,
13267 solib_aix_free_library_list, solib_aix_parse_libraries,
13268 solib_aix_get_library_list,
13269 solib_aix_relocate_section_addresses, solib_aix_free_so,
13270 solib_aix_get_section_offsets,
13271 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13273 (struct solib_aix_inferior_data) <library_list>: Adjust.
13274 * solib-darwin.c (struct lm_info): Rename to ...
13275 (struct lm_info_darwin): ... this. Extend lm_info_base.
13276 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13277 * solib-dsbt.c (struct lm_info): Rename to ...
13278 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13279 (struct dsbt_info) <main_executable_lm_info): Adjust.
13280 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13281 dsbt_relocate_section_addresses): Adjust.
13282 * solib-frv.c (struct lm_info): Rename to ...
13283 (struct lm_info_frv): ... this. Extend lm_info_base.
13284 (main_executable_lm_info): Adjust.
13285 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13286 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13287 find_canonical_descriptor_in_load_object,
13288 frv_fdpic_find_canonical_descriptor): Adjust.
13289 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13291 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13292 svr4_clear_so, svr4_copy_library_list,
13293 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13294 svr4_current_sos, svr4_fetch_objfile_link_map,
13295 solist_update_incremental): Adjust.
13296 * solib-svr4.h (struct lm_info_svr4): Move here from
13298 * solib-target.c (struct lm_info): Rename to ...
13299 (struct lm_info_target): ... this. Extend lm_info_base.
13300 (lm_info_p): Rename to ...
13301 (lm_info_target_p): ... this.
13302 (solib_target_parse_libraries, library_list_start_segment,
13303 library_list_start_section, library_list_start_library,
13304 library_list_end_library, solib_target_free_library_list,
13305 solib_target_current_sos, solib_target_free_so,
13306 solib_target_relocate_section_addresses): Adjust.
13307 * windows-nat.c (struct lm_info): Rename to ...
13308 (struct lm_info_windows): ... this. Extend lm_info_base.
13309 (windows_make_so, handle_load_dll, handle_unload_dll,
13310 windows_xfer_shared_libraries): Adjust.
13312 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13314 * solib-darwin.c (struct darwin_so_list): Remove.
13315 (darwin_current_sos): Allocate an so_list object instead of a
13316 darwin_so_list, separately allocate an lm_info object.
13317 (darwin_free_so): Free lm_info.
13319 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13321 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13322 with fprintf_filtered.
13324 2017-04-28 Yao Qi <yao.qi@linaro.org>
13326 * regcache.c (regcache::regcache): New function.
13327 (regcache::~regcache): New function.
13328 (regcache_xmalloc_1): Remove.
13329 (regcache_xmalloc): Call new regcache.
13330 (regcache_xfree): Call delete regcache.
13331 (get_thread_arch_aspace_regcache): Call new regcache.
13333 2017-04-28 Yao Qi <yao.qi@linaro.org>
13335 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13336 lwp instead of ptid_get_lwp.
13338 2017-04-28 Yao Qi <yao.qi@linaro.org>
13340 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13341 lwp_info instead of getting from inferior_ptid.
13343 2017-04-27 Keith Seitz <keiths@redhat.com>
13345 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13346 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13347 (CV_CONVERSION_BADNESS): Define.
13348 (rank_one_type): Remove overly restrictive rvalue reference
13350 Add cv-qualifier checks and subranks for type equality.
13351 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13352 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13353 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13355 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13357 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13358 count when creating the object.
13360 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13361 Ulrich Weigand <uweigand@de.ibm.com>
13363 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13364 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13366 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13367 (process_xcoff_symbol): Likewise.
13368 (scan_xcoff_symtab): Likewise.
13370 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13372 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13373 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13374 (ia64_access_reg): Use get_frame_register_unsigned.
13375 (ia64_access_rse_reg): Likewise.
13376 (ia64_libunwind_frame_prev_register): Likewise.
13378 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13380 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13381 * gdbarch.c: Regenerated.
13382 * gdbarch.h: Regenerated.
13383 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13384 visibility external.
13385 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13386 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13387 (enum cfa_how_kind): Move to ...
13388 (struct dwarf2_frame_state_reg_info): Likewise.
13389 (struct dwarf2_frame_state): Likewise.
13390 * dwarf2-frame.h: ... here.
13391 (dwarf2_frame_state_alloc_regs): New declaration.
13392 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13393 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13395 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13397 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13398 regcache_raw_read_unsigned.
13399 (xtensa_pseudo_register_write): Likewise.
13401 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13403 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13404 (nds32_pseudo_register_write): Likewise.
13406 2017-04-25 Yao Qi <yao.qi@linaro.org>
13408 * regcache.c (struct regcache) <readonly_p>: Change its type
13410 (regcache_xmalloc_1): Update parameter type and callers update.
13412 2017-04-25 Yao Qi <yao.qi@linaro.org>
13414 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13415 set_gdbarch_wchar_bit.
13416 * arm-tdep.c (arm_gdbarch_init): Likewise.
13418 2017-04-25 Pedro Alves <palves@redhat.com>
13420 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13421 (BothAreRelocatable, memcopy, memmove): Don't define.
13422 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13425 2017-04-25 Pedro Alves <palves@redhat.com>
13427 * common/common-defs.h: Include "common/poison.h".
13428 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13430 * common/poison.h: New file.
13431 * common/traits.h: Include <type_traits>.
13432 (Not, Or, Requires): New, moved from common/function-view.h.
13434 2017-04-25 Pedro Alves <palves@redhat.com>
13436 * breakpoint.h (struct breakpoint): In-class initialize all
13437 fields. Make boolean fields "bool".
13438 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13439 memset call and initializations no longer necessary.
13441 2017-04-25 Pedro Alves <palves@redhat.com>
13443 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13445 (pt_btrace_insn): New function.
13446 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13448 2017-04-25 Pedro Alves <palves@redhat.com>
13450 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13451 "base" field and inherit from "bp_location" instead. Add
13453 (allocate_location_exception): Use new non-default ctor.
13454 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13455 (init_bp_location): Convert to ...
13456 (bp_location::bp_location): ... this new ctor, and remove memset
13458 (base_breakpoint_allocate_location): Use the new non-default ctor.
13459 * breakpoint.h (bp_location): Now a class. Declare default and
13460 non-default ctors. In-class initialize all members.
13461 (init_bp_location): Remove declaration.
13463 2017-04-25 Pedro Alves <palves@redhat.com>
13465 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13466 assignment operator.
13468 2017-04-24 Yao Qi <yao.qi@linaro.org>
13470 * doublest.c (convert_doublest_to_floatformat): Call
13471 floatformat_totalsize_bytes.
13473 2017-04-22 Tom Tromey <tom@tromey.com>
13475 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13477 * stack.c (print_frame): Use ui_out_emit_list.
13478 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13480 * mi/mi-main.c (print_one_inferior)
13481 (mi_cmd_data_list_register_names)
13482 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13483 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13485 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13486 (mi_output_solib_attribs): Use ui_out_emit_list,
13488 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13489 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13490 (mi_cmd_stack_list_args, list_args_or_locals): Use
13492 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13493 * breakpoint.c (print_solib_event, output_thread_groups): Use
13496 2017-04-22 Tom Tromey <tom@tromey.com>
13498 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13499 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13500 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13502 2017-04-22 Tom Tromey <tom@tromey.com>
13504 * tracepoint.c (tvariables_info_1)
13505 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13507 2017-04-22 Tom Tromey <tom@tromey.com>
13509 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13510 annotate_arg_emitter.
13511 * breakpoint.c (print_mention_watchpoint)
13512 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13513 * annotate.h (struct annotate_arg_emitter): New.
13515 2017-04-22 Tom Tromey <tom@tromey.com>
13517 * record-btrace.c (record_btrace_insn_history)
13518 (record_btrace_insn_history_range, record_btrace_call_history)
13519 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13520 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13522 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13523 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13524 * skip.c (skip_info): Use ui_out_emit_tuple.
13525 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13526 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13527 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13528 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13529 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13531 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13532 (output_register, mi_cmd_data_read_memory)
13533 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13534 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13535 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13536 Use ui_out_emit_tuple.
13537 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13539 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13540 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13541 * linux-thread-db.c (info_auto_load_libthread_db): Use
13543 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13544 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13545 * disasm.c (do_mixed_source_and_assembly_deprecated)
13546 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13547 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13548 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13549 * breakpoint.c (print_one_breakpoint_location)
13550 (print_one_breakpoint): Use ui_out_emit_tuple.
13551 * auto-load.c (print_script, info_auto_load_cmd): Use
13553 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13555 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13557 * thread.c (print_thread_info_1): Remove dead code.
13559 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13561 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13563 * arm-tdep.c (selftests::arm_record_test): Likewise.
13565 2017-04-21 Yao Qi <yao.qi@linaro.org>
13567 * regcache.c (regcache_restore): Remove argument 2. Replace
13568 argument 3 with regcache. Get register status from
13569 src->register_status and get register contents from
13570 register_buffer (src, regnum).
13571 (regcache_cpy): Update.
13573 2017-04-19 Pedro Alves <palves@redhat.com>
13575 * gdbthread.h (thread): Add missing closing parenthesis in
13578 2017-04-19 Pedro Alves <palves@redhat.com>
13580 * common/refcounted-object.h: New file.
13581 * gdbthread.h: Include "common/refcounted-object.h".
13582 (thread_info): Inherit from refcounted_object and add comments.
13583 (thread_info::incref, thread_info::decref)
13584 (thread_info::m_refcount): Delete.
13585 (thread_info::deletable): Use the refcounted_object::refcount()
13587 * inferior.c (current_inferior_): Add comment.
13588 (set_current_inferior): Increment/decrement refcounts.
13589 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13590 not-deletable instead of comparing with the current inferior.
13591 (initialize_inferiors): Increment the initial inferior's refcount.
13592 * inferior.h (struct inferior): Forward declare.
13593 Include "common/refcounted-object.h".
13594 (current_inferior, set_current_inferior): Move declaration to
13595 before struct inferior's definition, and fix comment.
13596 (inferior): Inherit from refcounted_object. Add comments.
13597 * thread.c (switch_to_thread_no_regs): Reference the thread's
13598 inferior pointer directly instead of doing a ptid lookup.
13599 (switch_to_no_thread): New function.
13600 (switch_to_thread(thread_info *)): New function, factored out
13602 (switch_to_thread(ptid_t)): ... this.
13603 (restore_current_thread): Delete.
13604 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13605 fields, and add 'inf' field.
13606 (do_restore_current_thread_cleanup): Check whether old->inf is
13607 alive instead of looking up an inferior by ptid. Use
13608 switch_to_thread and switch_to_no_thread.
13609 (restore_current_thread_cleanup_dtor): Use old->inf directly
13610 instead of lookup up an inferior by id. Decref the inferior.
13611 Don't restore 'removable'.
13612 (make_cleanup_restore_current_thread): Same the inferior pointer
13613 in old, instead of the inferior number. Incref the inferior.
13614 Don't save/clear 'removable'.
13616 2017-04-19 Pedro Alves <palves@redhat.com>
13618 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13619 unittests/scoped_restore-selftests.c.
13620 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13621 * common/scoped_restore.h (scoped_restore_base): Make "class".
13622 (scoped_restore_base::release): New public method.
13623 (scoped_restore_base::scoped_restore_base): New protected ctor.
13624 (scoped_restore_base::m_saved_var): New protected field.
13625 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13626 scoped_restore_base base class instead of m_saved_var directly.
13627 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13628 (scoped_restore_tmpl::scoped_restore_tmpl(const
13629 scoped_restore_tmpl<T>&)): Likewise.
13630 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13632 (scoped_restore_tmpl::saved_var): New method.
13633 (scoped_restore_tmpl::m_saved_var): Delete.
13634 * inferior.h (inferior::detaching): Now a bool.
13635 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13637 * unittests/scoped_restore-selftests.c: New file.
13639 2017-04-19 Pedro Alves <palves@redhat.com>
13641 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13642 Re-sort in alphabetic order.
13644 2017-04-18 Pedro Alves <palves@redhat.com>
13646 * xml-support.c (obstack_xml_printf): Delete.
13647 * xml-support.h (obstack_xml_printf): Delete.
13649 2017-04-18 Pedro Alves <palves@redhat.com>
13651 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13652 vdebug, verror, body_text, start_element, end_element, name,
13653 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13654 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13655 is_xinclude>: Make private and add m_ prefix.
13656 (gdb_xml_parser::body_text): New method, based on ...
13657 (gdb_xml_body_text): ... this. Adjust.
13658 (gdb_xml_parser::vdebug): New method, based on ...
13659 (gdb_xml_debug): ... this. Adjust.
13660 (gdb_xml_parser::verror): New method, based on ...
13661 (gdb_xml_error): ... this. Adjust.
13662 (gdb_xml_parser::start_element): New method, based on ...
13663 (gdb_xml_start_element): ... this. Adjust.
13664 (gdb_xml_start_element_wrapper): Defer to
13665 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13666 (gdb_xml_parser::end_element): New method, based on ...
13667 (gdb_xml_end_element_wrapper): ... this. Adjust.
13668 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13669 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13670 (gdb_xml_parser::use_dtd): New method, based on ...
13671 (gdb_xml_use_dtd): ... this. Adjust.
13672 (gdb_xml_parser::parse): New method, based on ...
13673 (gdb_xml_parse): ... this. Adjust.
13674 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13675 (xinclude_start_include): Adjust to call the parser's name method.
13676 (xml_xinclude_default, xml_xinclude_start_doctype)
13677 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13679 (xml_process_xincludes): Adjust to call parser methods.
13680 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13683 2017-04-18 Pedro Alves <palves@redhat.com>
13685 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13686 gdb::optional<std::string>.
13687 * xml-support.c: Include <string>.
13688 (scope_level::scope_level(scope_level &&))
13689 (scope_level::~scope_level): Delete.
13690 (scope_level::body): Now a std::string.
13691 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13692 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13694 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13695 (xinclude_parsing_data::output): Now a std::string reference.
13696 (xinclude_start_include): Adjust.
13697 (xml_xinclude_default): Adjust.
13698 (xml_process_xincludes): Add 'output' parameter, and return bool.
13699 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13701 * xml-tdesc.c: Include <unordered_map> and <string>.
13702 (tdesc_xml_cache): Delete.
13703 (tdesc_xml_cache_s): Delete.
13704 (xml_cache): Now an std::unordered_map.
13705 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13706 (target_fetch_description_xml): Change return type to
13707 gdb::optional<std::string>, and adjust.
13708 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13709 (target_fetch_description_xml): Change return type to
13710 gdb::optional<std::string>.
13712 2017-04-18 Pedro Alves <palves@redhat.com>
13714 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13715 unittests/optional-selftests.c.
13716 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13717 * unittests/optional-selftests.c: New file.
13718 * unittests/optional/assignment/1.cc: New file.
13719 * unittests/optional/assignment/2.cc: New file.
13720 * unittests/optional/assignment/3.cc: New file.
13721 * unittests/optional/assignment/4.cc: New file.
13722 * unittests/optional/assignment/5.cc: New file.
13723 * unittests/optional/assignment/6.cc: New file.
13724 * unittests/optional/assignment/7.cc: New file.
13725 * unittests/optional/cons/copy.cc: New file.
13726 * unittests/optional/cons/default.cc: New file.
13727 * unittests/optional/cons/move.cc: New file.
13728 * unittests/optional/cons/value.cc: New file.
13729 * unittests/optional/in_place.cc: New file.
13730 * unittests/optional/observers/1.cc: New file.
13731 * unittests/optional/observers/2.cc: New file.
13733 2017-04-18 Pedro Alves <palves@redhat.com>
13735 * common/gdb_optional.h: Include common/traits.h.
13736 (in_place_t): New type.
13737 (in_place): New constexpr variable.
13738 (optional::optional): Remove member initialization of
13740 (optional::optional(in_place_t...)): New constructor.
13741 (optional::~optional): Use reset.
13742 (optional::optional(const optional&)): New.
13743 (optional::optional(const optional&&)): New.
13744 (optional::optional(T &)): New.
13745 (optional::optional(T &&)): New.
13746 (operator::operator=(const optional &)): New.
13747 (operator::operator=(optional &&)): New.
13748 (operator::operator= (const T &))
13749 (operator::operator= (T &&))
13750 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13751 (operator::reset): New.
13752 (operator::m_instantiated):: Add in-class initializer.
13753 * common/traits.h: Include <type_traits>.
13754 (struct And): New types.
13756 2017-04-18 Pedro Alves <palves@redhat.com>
13758 * xml-support.c: Include <vector>.
13759 (scope_level::scope_level(const gdb_xml_element *))
13760 (scope_level::scope_level(scope_level&&)): New.
13761 (scope_level::~scope_level): New.
13762 (scope_level_s): Delete.
13763 (gdb_xml_parser::scopes): Now a std::vector.
13764 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13766 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13767 scope cleanup code.
13768 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13769 of the scopes member. Use std::vector::emplace_back.
13771 2017-04-18 Pedro Alves <palves@redhat.com>
13773 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13775 (gdb_xml_end_element): Change type of first parameter.
13776 (gdb_xml_cleanup): Rename to ...
13777 (gdb_xml_parser::~gdb_xml_parser): ... this.
13778 (gdb_xml_create_parser_and_cleanup): Delete with ...
13779 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13781 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13782 using gdb_xml_create_parser_and_cleanup.
13783 (xinclude_parsing_data): Add ctor/dtor.
13784 (xml_xinclude_cleanup): Delete.
13785 (xml_process_xincludes): Create a local xinclude_parsing_data
13786 instead of heap-allocating one. Create a local gdb_xml_parser
13787 instead of heap-allocating one with
13788 gdb_xml_create_parser_and_cleanup.
13790 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13793 * fbsd-nat.c (resume_one_thread_cb): Remove.
13794 (resume_all_threads_cb): Remove.
13795 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13796 iterate_over_threads.
13798 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13800 * NEWS: Create a new section for the next release branch.
13801 Rename the section of the current branch, now that it has
13804 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13806 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13807 * version.in: Bump version to 8.0.50.DATE-git.
13809 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13812 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13813 independently of the host, and fix build breakage on Cygwin.
13815 2017-04-13 Pedro Alves <palves@redhat.com>
13817 * inferior.c (free_inferior): Convert to ...
13818 (inferior::~inferior): ... this dtor.
13819 (inferior::inferior): New ctor, factored out from ...
13820 (add_inferior_silent): ... here. Allocate the inferior with a new
13822 (delete_inferior): Call delete instead of free_inferior.
13823 * inferior.h (gdb_environ, continuation): Forward declare.
13824 (inferior): Now a class. Add in-class initialization to all
13825 members. Make boolean fields bool, except 'detaching'.
13826 (inferior::inferior): New explicit ctor.
13827 (inferior::~inferior): New.
13829 2017-04-13 Pedro Alves <palves@redhat.com>
13831 * inferior.c (init_inferior_list): Delete.
13832 * inferior.h (init_inferior_list): Delete.
13834 2017-04-13 Pedro Alves <palves@redhat.com>
13837 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13838 (top level): Call it twice, with different thread sets.
13840 2017-04-13 Pedro Alves <palves@redhat.com>
13842 * thread.c: Include <algorithm>.
13843 (thread_array_cleanup): Delete.
13844 (scoped_inc_dec_ref): New class.
13845 (live_threads_count): New function.
13846 (set_thread_refcount): Delete.
13847 (tp_array_compar_ascending): Now a bool.
13848 (tp_array_compar): Convert to a std::sort comparison function.
13849 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13850 and live_threads_count.
13852 2017-04-13 Pedro Alves <palves@redhat.com>
13854 * infrun.c (follow_fork_inferior): Also switch the current
13857 2017-04-13 Pedro Alves <palves@redhat.com>
13859 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13860 before calling create_internal_breakpoint.
13862 2017-04-13 Pedro Alves <palves@redhat.com>
13864 * fork-child.c (execv_argv): New class.
13865 (breakup_args): Refactored as ...
13866 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13867 Copy arguments to storage and replace separators with NULL
13868 terminators in place.
13869 (escape_bang_in_quoted_argument): Adjust to return bool.
13870 (execv_argv::execv_argv): New ctor.
13871 (execv_argv::init_for_shell): New method, factored out from
13872 fork_inferior. Don't strdup strings into the vector.
13873 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13874 Remove free_vector_argv call.
13876 2017-04-13 Yao Qi <yao.qi@linaro.org>
13878 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13881 2017-04-13 Yao Qi <yao.qi@linaro.org>
13883 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13884 * rx-tdep.c (rx_gdbarch_init): Likewise.
13886 2017-04-13 Pedro Alves <palves@redhat.com>
13888 * breakpoint.h (struct breakpoint): Reindent.
13890 2017-04-13 Pedro Alves <palves@redhat.com>
13892 * breakpoint.c (bp_location): Rename to ...
13893 (bp_locations): ... this. All references updated.
13894 (bp_location_count): Rename to ...
13895 (bp_locations_count): ... this. All references updated.
13896 (bp_location_placed_address_before_address_max): Rename to ...
13897 (bp_locations_placed_address_before_address_max): ... this. All
13898 references updated.
13899 (bp_location_shadow_len_after_address_max): Rename to ...
13900 (bp_locations_shadow_len_after_address_max): ... this. All
13901 references updated.
13902 (bp_location_compare_addrs): Rename to ...
13903 (bp_locations_compare_addrs): ... this. All references updated.
13904 (bp_location_compare):Rename to ...
13905 (bp_locations_compare): ... this. All references updated.
13906 (bp_location_target_extensions_update): Rename to ...
13907 (bp_locations_target_extensions_update): ... this. All references
13910 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13912 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13913 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13915 * common/gdb_termios.h: New file, with parts of "terminal.h".
13916 * inflow.c: Include "gdb_termios.h".
13917 * ser-unix.c: Include "gdb_termios.h".
13918 * terminal.h: Move terminal-related defines to
13919 "common/gdb_termios.h".
13921 2017-04-12 Tom Tromey <tom@tromey.com>
13923 * probe.c (parse_probes): Update.
13924 * location.h (delete_event_location): Don't declare.
13925 (event_location_deleter::operator()): Update.
13926 * location.c (event_location_deleter::operator()): Rename from
13927 delete_event_location.
13928 * linespec.h (linespec_result) <location>: Change type to
13930 * linespec.c (canonicalize_linespec, event_location_to_sals)
13931 (decode_objc): Update.
13932 (linespec_result): Don't call delete_event_location.
13933 * breakpoint.c (create_breakpoints_sal)
13934 (bkpt_probe_create_sals_from_location)
13935 (strace_marker_create_sals_from_location): Update.
13937 2017-04-12 Tom Tromey <tom@tromey.com>
13939 * linespec.h (struct linespec_result): Add constructor and
13941 (init_linespec_result, destroy_linespec_result)
13942 (make_cleanup_destroy_linespec_result): Don't declare.
13943 * linespec.c (init_linespec_result): Remove.
13944 (linespec_result::~linespec_result): Rename from
13945 destroy_linespec_result. Update.
13946 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13948 * breakpoint.c (create_breakpoint, break_range_command)
13949 (decode_location_default): Update.
13950 * ax-gdb.c (agent_command_1): Update.
13952 2017-04-12 Tom Tromey <tom@tromey.com>
13954 * remote.c (remote_download_tracepoint): Update.
13955 * python/py-breakpoint.c (bppy_get_location): Update.
13956 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13957 (gdbscm_breakpoint_location): Update.
13958 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13959 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13960 Change type to event_location_up.
13961 * breakpoint.c (create_overlay_event_breakpoint)
13962 (create_longjmp_master_breakpoint)
13963 (create_std_terminate_master_breakpoint)
13964 (create_exception_master_breakpoint)
13965 (breakpoint_event_location_empty_p, print_breakpoint_location)
13966 (print_one_breakpoint_location, create_thread_event_breakpoint)
13967 (init_breakpoint_sal, create_breakpoint)
13968 (print_recreate_ranged_breakpoint, break_range_command)
13969 (init_ada_exception_breakpoint, say_where): Update.
13970 (base_breakpoint_dtor): Don't call delete_event_location.
13971 (bkpt_print_recreate, tracepoint_print_recreate)
13972 (dprintf_print_recreate, update_static_tracepoint)
13973 (breakpoint_re_set_default): Update.
13975 2017-04-12 Tom Tromey <tom@tromey.com>
13977 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13978 type of "to_do". Update.
13979 (compute_stack_depth): Use std::vector.
13981 2017-04-12 Tom Tromey <tom@tromey.com>
13983 * printcmd.c (find_instruction_backward): Use std::vector.
13985 2017-04-12 Tom Tromey <tom@tromey.com>
13987 * symfile.c (objfilep): Remove typedef.
13988 (reread_symbols): Use a std::vector.
13990 2017-04-12 Tom Tromey <tom@tromey.com>
13992 * mi/mi-main.c (exec_direction_forward): Remove.
13993 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13994 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13996 * guile/guile.c (guile_repl_command, guile_command)
13997 (gdbscm_execute_gdb_command): Use scoped_restore.
13998 * go-exp.y (go_parse): Use scoped_restore.
13999 * d-exp.y (d_parse): Use scoped_restore.
14000 * cli/cli-decode.c (cmd_func): Use scoped_restore.
14001 * c-exp.y (c_parse): Use scoped_restore.
14003 2017-04-12 Tom Tromey <tom@tromey.com>
14005 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
14006 (mi_parse): Update return type.
14007 (mi_parse_free): Remove.
14008 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
14009 (mi_parse::~mi_parse): Rename from mi_parse_free.
14010 (mi_parse_cleanup): Remove.
14011 (mi_parse): Return a unique_ptr. Use new.
14012 * mi/mi-main.c (mi_execute_command): Update.
14014 2017-04-12 Tom Tromey <tom@tromey.com>
14016 * location.c (explicit_location_lex_one): Return a
14017 unique_xmalloc_ptr.
14018 (string_to_explicit_location): Update. Remove cleanups.
14020 2017-04-12 Tom Tromey <tom@tromey.com>
14022 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14023 (compare_value_and_voffset): Change type. Update.
14024 (compute_vtable_size): Change type of "offset_vec".
14025 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14026 (gnuv3_get_typeid): Remove extraneous declaration.
14028 2017-04-12 Tom Tromey <tom@tromey.com>
14030 * charset.h (wchar_iterator): Fix comment.
14032 2017-04-12 Tom Tromey <tom@tromey.com>
14034 * charset.c (iconv_wrapper): New class.
14035 (cleanup_iconv): Remove.
14036 (convert_between_encodings): Use it.
14038 2017-04-12 Tom Tromey <tom@tromey.com>
14040 * symfile.h (increment_reading_symtab): Update type.
14041 * symfile.c (decrement_reading_symtab): Remove.
14042 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14043 * psymtab.c (psymtab_to_symtab): Update.
14044 * dwarf2read.c (dw2_instantiate_symtab): Update.
14046 2017-04-12 Tom Tromey <tom@tromey.com>
14048 * jit.c (struct jit_reader): Declare separately. Add constructor
14049 and destructor. Change type of "handle".
14050 (loaded_jit_reader): Define separately.
14051 (jit_reader_load): Update. New "new".
14052 (jit_reader_unload_command): Use "delete".
14053 * gdb-dlfcn.h (struct dlclose_deleter): New.
14054 (gdb_dlhandle_up): New typedef.
14055 (gdb_dlopen, gdb_dlsym): Update types.
14056 (gdb_dlclose): Remove.
14057 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14058 (gdb_dlsym): Change type of "handle".
14059 (make_cleanup_dlclose): Remove.
14060 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14061 * compile/compile-c-support.c (load_libcc): Update.
14063 2017-04-12 Tom Tromey <tom@tromey.com>
14065 * symtab.h (find_pcs_for_symtab_line): Change return type.
14066 * symtab.c (find_pcs_for_symtab_line): Change return type.
14067 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14068 type of "vec". Update.
14069 (ltpy_get_pcs_for_line): Update.
14070 * linespec.c (decode_digits_ordinary): Update.
14072 2017-04-12 Tom Tromey <tom@tromey.com>
14074 * tracepoint.c (actions_command): Update.
14075 * python/python.c (python_command, python_interactive_command):
14077 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14078 * guile/guile.c (guile_command): Update.
14079 * defs.h (read_command_lines, read_command_lines_1): Return
14081 (command_lines_deleter): New struct.
14082 (command_line_up): New typedef.
14083 * compile/compile.c (compile_code_command)
14084 (compile_print_command): Update.
14085 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14087 (make_cleanup_free_command_lines): Remove.
14088 * cli/cli-script.c (get_command_line, read_command_lines_1)
14089 (copy_command_lines): Return command_line_up.
14090 (while_command, if_command, read_command_lines, define_command)
14091 (document_command): Update.
14092 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14094 * breakpoint.h (breakpoint_set_commands): Change type of
14096 * breakpoint.c (breakpoint_set_commands): Change type of
14097 "commands". Update.
14098 (do_map_commands_command, update_dprintf_command_list)
14099 (create_tracepoint_from_upload): Update.
14101 2017-04-12 Tom Tromey <tom@tromey.com>
14103 * tracepoint.c (scope_info): Update.
14104 * spu-tdep.c (spu_catch_start): Update.
14105 * python/python.c (gdbpy_decode_line): Update.
14106 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14107 * python/py-breakpoint.c (bppy_init): Update.
14108 * probe.c (parse_probes): Update.
14109 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14110 * location.h (event_location_deleter): New struct.
14111 (event_location_up): New typedef.
14112 (new_linespec_location, new_address_location, new_probe_location)
14113 (new_explicit_location, copy_event_location)
14114 (string_to_event_location, string_to_event_location_basic)
14115 (string_to_explicit_location): Update return type.
14116 (make_cleanup_delete_event_location): Remove.
14117 * location.c (new_linespec_location, new_address_location)
14118 (new_probe_location, new_explicit_location, copy_event_location):
14119 Return event_location_up.
14120 (delete_event_location_cleanup)
14121 (make_cleanup_delete_event_location): Remove.
14122 (string_to_explicit_location, string_to_event_location_basic)
14123 (string_to_event_location): Return event_location_up.
14124 * linespec.c (canonicalize_linespec, event_location_to_sals)
14125 (decode_line_with_current_source)
14126 (decode_line_with_last_displayed, decode_objc): Update.
14127 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14128 * completer.c (location_completer): Update.
14129 * cli/cli-cmds.c (edit_command, list_command): Update.
14130 * breakpoint.c (create_overlay_event_breakpoint)
14131 (create_longjmp_master_breakpoint)
14132 (create_std_terminate_master_breakpoint)
14133 (create_exception_master_breakpoint)
14134 (create_thread_event_breakpoint): Update.
14135 (init_breakpoint_sal): Update. Remove some dead code.
14136 (create_breakpoint_sal): Change type of "location". Update.
14137 (create_breakpoints_sal, create_breakpoint, break_command_1)
14138 (dprintf_command, break_range_command, until_break_command)
14139 (init_ada_exception_breakpoint)
14140 (strace_marker_create_sals_from_location)
14141 (update_static_tracepoint, trace_command, ftrace_command)
14142 (strace_command, create_tracepoint_from_upload): Update.
14143 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14144 * ax-gdb.c (agent_command_1): Update.
14146 2017-04-12 Pedro Alves <palves@redhat.com>
14148 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14149 * configure.tgt: Handle i[34567]86-*-go32* and
14150 i[34567]86-*-msdosdjgpp*.
14151 * i386-tdep.c (i386_svr4_reg_to_regnum):
14153 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14155 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14156 * i386-go32-tdep.c: New file.
14157 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14160 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14162 * aix-thread.c (pd_status2str): Change return type to const char *.
14164 2017-04-12 Pedro Alves <palves@redhat.com>
14166 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14167 calls to set_gdbarch_gnu_triplet_regexp.
14169 2017-04-12 Pedro Alves <palves@redhat.com>
14172 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14174 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14175 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14176 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14177 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14178 * gdbarch.h, gdbarch.c: Regenerate.
14179 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14180 gdbarch_wchar_bit and gdbarch_wchar_signed.
14181 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14182 * arm-tdep.c (arm_gdbarch_init): Likewise.
14183 * avr-tdep.c (avr_gdbarch_init): Likewise.
14184 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14185 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14186 * i386-tdep.c (i386_go32_init_abi): Likewise.
14187 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14188 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14189 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14190 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14191 * sh-tdep.c (sh_gdbarch_init): Likewise.
14192 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14193 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14194 * windows-tdep.c (windows_init_abi): Likewise.
14195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14197 2017-04-12 Pedro Alves <palves@redhat.com>
14200 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14201 cplus_primitive_type_char32_t>: New enum values.
14202 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14203 and cplus_primitive_type_char32_t.
14204 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14205 32, use the archtecture's built-in type for char16_t and char32_t,
14206 respectively. Otherwise, fallback to init_integer_type as before,
14207 but make the type unsigned, and issue a complaint.
14208 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14210 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14212 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14213 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14215 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14217 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14220 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14222 * common/common-utils.c (free_vector_argv): New function.
14223 * common/common-utils.h: Include <vector>.
14224 (free_vector_argv): New prototype.
14225 * darwin-nat.c (darwin_create_inferior): Rewrite function
14226 prototype in order to constify "exec_file" and accept a
14227 "std::string" for "allargs".
14228 * fork-child.c: Include <vector>.
14229 (breakup_args): Rewrite function, using C++.
14230 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14231 and accept "std::string" for "allargs". Update the code to
14232 calculate "argv" based on "allargs". Update calls to "exec_fun"
14234 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14235 order to constify "exec_file" and accept a "std::string" for
14237 * go32-nat.c (go32_create_inferior): Likewise.
14238 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14239 * infcmd.c (run_command_1): Constify "exec_file". Use
14240 "std::string" for inferior arguments.
14241 * inferior.h (fork_inferior): Update prototype.
14242 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14243 prototype in order to constify "exec_file" and accept a
14244 "std::string" for "allargs".
14245 * nto-procfs.c (procfs_create_inferior): Likewise.
14246 * procfs.c (procfs_create_inferior): Likewise.
14247 * remote-sim.c (gdbsim_create_inferior): Likewise.
14248 * remote.c (extended_remote_run): Update code to accept
14249 "std::string" as argument.
14250 (extended_remote_create_inferior): Rewrite function prototype in
14251 order to constify "exec_file" and accept a "std::string" for
14253 * rs6000-nat.c (super_create_inferior): Likewise.
14254 (rs6000_create_inferior): Likewise.
14255 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14256 * windows-nat.c (windows_create_inferior): Likewise.
14258 2017-04-11 Pedro Alves <palves@redhat.com>
14260 * thread.c: Fix whitespace throughout.
14262 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14264 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14266 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14268 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14270 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14273 * osdata.c (info_osdata): Check if 'type' is an empty string
14276 2017-04-10 Pedro Alves <palves@redhat.com>
14278 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14279 (ptid_to_global_thread_id, in_thread_list)
14280 (do_captured_list_thread_ids, set_resumed, set_running)
14281 (set_executing, set_stop_requested, finish_thread_state)
14282 (validate_registers_access, can_access_registers_ptid)
14283 (print_thread_info_1, switch_to_thread)
14284 (do_restore_current_thread_cleanup)
14285 (make_cleanup_restore_current_thread, thread_command)
14286 (thread_name_command): Use operator== instead of ptid_equal.
14288 2017-04-10 Pedro Alves <palves@redhat.com>
14290 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14291 (current_thread_cleanup_chain): Delete.
14292 (restore_current_thread_cleanup_dtor)
14293 (make_cleanup_restore_current_thread): Remove references to
14294 current_thread_cleanup_chain.
14296 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14298 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14301 2017-04-10 Yao Qi <yao.qi@linaro.org>
14304 * gdbthread.h (thread_info::deletable): New method.
14305 (thread_info::incref): New method.
14306 (thread_info::decref): New method.
14307 (thread_info::refcount): Move it to private.
14308 * infrun.c (save_stop_context): Call inc_refcount.
14309 (release_stop_context_cleanup): Likewise.
14310 * thread.c (set_thread_exited): New function.
14311 (init_thread_list): Delete "tp" only it is deletable, otherwise
14312 call set_thread_exited.
14313 (delete_thread_1): Call set_thread_exited.
14314 (current_thread_cleanup) <inferior_pid>: Remove.
14315 <thread>: New field.
14316 (restore_current_thread_ptid_changed): Removed.
14317 (do_restore_current_thread_cleanup): Adjust.
14318 (restore_current_thread_cleanup_dtor): Don't call
14320 (set_thread_refcount): Use dec_refcount.
14321 (make_cleanup_restore_current_thread): Adjust.
14322 (thread_apply_all_command): Call inc_refcount.
14323 (_initialize_thread): Don't call
14324 observer_attach_thread_ptid_changed.
14326 2017-04-10 Yao Qi <yao.qi@linaro.org>
14328 * thread.c (delete_thread_1): Hoist code on marking thread as
14331 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14333 * windows-nat.c (windows_detach): Initialize ptid with
14336 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14338 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14340 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14342 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14343 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14344 (bfin_pseudo_register_write): Likewise
14346 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14348 * common/ptid.h (struct ptid): Change to...
14349 (class ptid_t): ... this.
14350 <ptid_t>: New constructors.
14351 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14352 matches>: New methods.
14353 <make_null, make_minus_one>: New static methods.
14354 <pid>: Rename to...
14356 <lwp>: Rename to...
14358 <tid>: Rename to...
14360 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14361 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14362 as references, move comment to class ptid_t.
14363 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14364 ptid_t static methods.
14365 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14366 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14367 Take ptid arguments as references, implement using ptid_t methods.
14368 * unittests/ptid-selftests.c: New file.
14369 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14370 unittests/ptid-selftests.c.
14371 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14373 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14375 * python/python.c (python_run_simple_file): Cast mode literal to
14376 non-const char pointer as expected by PyFile_FromString.
14378 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14380 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14381 minus_one_ptid and null_ptid.
14383 2017-04-05 Pedro Alves <palves@redhat.com>
14385 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14386 * configure: Regenerate.
14388 2017-04-05 Pedro Alves <palves@redhat.com>
14390 * ada-exp.y (yyerror): Constify.
14391 * ada-lang.c (bound_name, get_selections)
14392 (ada_variant_discrim_type)
14393 (ada_variant_discrim_name, ada_value_struct_elt)
14394 (ada_lookup_struct_elt_type, is_unchecked_variant)
14395 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14396 (catch_ada_exception_command_split)
14397 (catch_ada_assert_command_split, catch_assert_command)
14398 (ada_op_name): Constify.
14399 * ada-lang.h (ada_yyerror, get_selections)
14400 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14401 * arc-tdep.c (arc_print_frame_cache): Constify.
14402 * arm-tdep.c (arm_skip_stub): Constify.
14403 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14404 (gen_aggregate_elt_ref): Constify.
14405 * bcache.c (print_bcache_statistics): Constify.
14406 * bcache.h (print_bcache_statistics): Constify.
14407 * break-catch-throw.c (catch_exception_command_1):
14408 * breakpoint.c (struct ep_type_description::description):
14410 (add_solib_catchpoint): Constify.
14411 (catch_fork_command_1): Add cast.
14412 (add_catch_command): Constify.
14413 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14415 * bsd-uthread.c (bsd_uthread_state): Constify.
14416 * buildsym.c (patch_subfile_names): Constify.
14417 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14419 * c-exp.y (yyerror): Constify.
14420 (token::oper): Constify.
14421 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14422 * c-varobj.c (cplus_describe_child): Constify.
14423 * charset.c (find_charset_names): Add cast.
14424 (find_charset_names): Constify array and add const_cast.
14425 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14426 (edit_command): Constify.
14427 * cli/cli-decode.c (lookup_cmd): Constify.
14428 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14430 (struct dump_context): Constify.
14431 (add_dump_command, restore_command): Constify.
14432 * cli/cli-script.c (get_command_line): Constify.
14433 * cli/cli-script.h (get_command_line): Constify.
14434 * cli/cli-utils.c (check_for_argument): Constify.
14435 * cli/cli-utils.h (check_for_argument): Constify.
14436 * coff-pe-read.c (struct read_pe_section_data): Constify.
14437 * command.h (lookup_cmd): Constify.
14438 * common/print-utils.c (decimal2str): Constify.
14439 * completer.c (gdb_print_filename): Constify.
14440 * corefile.c (set_gnutarget): Constify.
14441 * cp-name-parser.y (yyerror): Constify.
14442 * cp-valprint.c (cp_print_class_member): Constify.
14443 * cris-tdep.c (cris_register_name, crisv32_register_name):
14445 * d-exp.y (yyerror): Constify.
14446 (struct token::oper): Constify.
14447 * d-lang.h (d_yyerror): Constify.
14448 * dbxread.c (struct header_file_location::name): Constify.
14449 (add_old_header_file, add_new_header_file, last_function_name)
14450 (dbx_next_symbol_text, add_bincl_to_list)
14451 (find_corresponding_bincl_psymtab, set_namestring)
14452 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14453 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14454 * defs.h (command_line_input, print_address_symbolic)
14455 (deprecated_readline_begin_hook): Constify.
14456 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14458 * event-top.c (handle_line_of_input): Constify and add cast.
14459 * exceptions.c (catch_errors): Constify.
14460 * exceptions.h (catch_errors): Constify.
14461 * expprint.c (print_subexp_standard, op_string, op_name)
14462 (op_name_standard, dump_raw_expression, dump_raw_expression):
14463 * expression.h (op_name, op_string, dump_raw_expression):
14465 * f-exp.y (yyerror): Constify.
14466 (struct token::oper): Constify.
14467 (struct f77_boolean_val::name): Constify.
14468 * f-lang.c (f_word_break_characters): Constify.
14469 * f-lang.h (f_yyerror): Constify.
14470 * fork-child.c (fork_inferior): Add cast.
14471 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14472 (new_variant): Constify.
14473 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14474 * gdbarch.c: Regenerate.
14475 * gdbcore.h (set_gnutarget): Constify.
14476 * go-exp.y (yyerror): Constify.
14477 (token::oper): Constify.
14478 * go-lang.h (go_yyerror): Constify.
14479 * go32-nat.c (go32_sysinfo): Constify.
14480 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14481 * guile/scm-cmd.c (cmdscm_function): Constify.
14482 * guile/scm-param.c (pascm_param_value): Constify.
14483 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14484 (h8300sx_register_name): Constify.
14485 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14487 * ia64-tdep.c (ia64_register_names): Constify.
14488 * infcmd.c (construct_inferior_arguments): Constify.
14489 (path_command, attach_post_wait): Constify.
14490 * language.c (show_range_command, show_case_command)
14491 (unk_lang_error): Constify.
14492 * language.h (language_defn::la_error)
14493 (language_defn::la_name_of_this): Constify.
14494 * linespec.c (decode_line_2): Constify.
14495 * linux-thread-db.c (thread_db_err_str): Constify.
14496 * lm32-tdep.c (lm32_register_name): Constify.
14497 * m2-exp.y (yyerror): Constify.
14498 * m2-lang.h (m2_yyerror): Constify.
14499 * m32r-tdep.c (m32r_register_names): Constify and make static.
14500 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14501 * m88k-tdep.c (m88k_register_name): Constify.
14502 * macroexp.c (appendmem): Constify.
14503 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14504 (upgrade_type, parse_external, parse_partial_symbols)
14505 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14506 (new_symbol): Constify.
14507 * memattr.c (mem_info_command): Constify.
14508 * mep-tdep.c (register_name_from_keyword): Constify.
14509 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14511 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14512 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14513 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14515 (mi_execute_async_cli_command): Constify.
14516 * mips-tdep.c (mips_register_name): Constify.
14517 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14518 (am33_register_name, am33_2_register_name)
14519 * moxie-tdep.c (moxie_register_names): Constify.
14520 * nat/linux-osdata.c (osdata_type): Constify fields.
14521 * nto-tdep.c (nto_parse_redirection): Constify.
14522 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14523 (lookup_child_selector): Constify.
14524 (objc_methcall::name): Constify.
14525 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14526 (lookup_struct_typedef): Constify.
14527 * objfiles.c (pc_in_section): Constify.
14528 * objfiles.h (pc_in_section): Constify.
14529 * p-exp.y (struct token::oper): Constify.
14530 (yyerror): Constify.
14531 * p-lang.h (pascal_yyerror): Constify.
14532 * parser-defs.h (op_name_standard): Constify.
14533 (op_print::string): Constify.
14534 (exp_descriptor::op_name): Constify.
14535 * printcmd.c (print_address_symbolic): Constify.
14536 * psymtab.c (print_partial_symbols): Constify.
14537 * python/py-breakpoint.c (stop_func): Constify.
14538 (bppy_get_expression): Constify.
14539 * python/py-cmd.c (cmdpy_completer::name): Constify.
14540 (cmdpy_function): Constify.
14541 * python/py-event.c (evpy_add_attribute)
14542 (gdbpy_initialize_event_generic): Constify.
14543 * python/py-event.h (evpy_add_attribute)
14544 (gdbpy_initialize_event_generic): Constify.
14545 * python/py-evts.c (add_new_registry): Constify.
14546 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14547 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14548 * python/py-inferior.c (get_buffer): Add cast.
14549 * python/py-param.c (parm_constant::name): Constify.
14550 * python/py-unwind.c (fprint_frame_id): Constify.
14551 * python/python.c (gdbpy_parameter_value): Constify.
14552 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14553 * remote.c (memory_packet_config::name): Constify.
14554 (show_packet_config_cmd, remote_write_bytes)
14555 (remote_buffer_add_string):
14556 * reverse.c (exec_reverse_once): Constify.
14557 * rs6000-tdep.c (variant::name, variant::description): Constify.
14558 * rust-exp.y (rustyyerror): Constify.
14559 * rust-lang.c (rust_op_name): Constify.
14560 * rust-lang.h (rustyyerror): Constify.
14561 * serial.h (serial_ops::name): Constify.
14562 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14563 (sh_sh3e_register_name, sh_sh2e_register_name)
14564 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14565 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14566 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14567 (sh_sh4al_dsp_register_name): Constify.
14568 * sh64-tdep.c (sh64_register_name): Constify.
14569 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14570 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14571 * stabsread.c (patch_block_stabs, read_type_number)
14572 (ref_map::stabs, ref_add, process_reference)
14573 (symbol_reference_defined, define_symbol, define_symbol)
14574 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14575 (read_one_struct_field, read_struct_fields, read_baseclasses)
14576 (read_tilde_fields, read_struct_type, read_array_type)
14577 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14578 (read_huge_number, read_range_type, read_args, common_block_start)
14579 (find_name_end): Constify.
14580 * stabsread.h (common_block_start, define_symbol)
14581 (process_one_symbol, symbol_reference_defined, ref_add):
14582 * symfile.c (get_section_index, add_symbol_file_command):
14583 * symfile.h (get_section_index): Constify.
14584 * target-descriptions.c (tdesc_type::name): Constify.
14585 (tdesc_free_type): Add cast.
14586 * target.c (find_default_run_target):
14587 (add_deprecated_target_alias, find_default_run_target)
14588 (target_announce_detach): Constify.
14589 (do_option): Constify.
14590 * target.h (add_deprecated_target_alias): Constify.
14591 * thread.c (print_thread_info_1): Constify.
14592 * top.c (deprecated_readline_begin_hook, command_line_input):
14594 (init_main): Add casts.
14595 * top.h (handle_line_of_input): Constify.
14596 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14597 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14598 (tfind_command): Rename to ...
14599 (tfind_command_1): ... this and constify.
14600 (tfind_command): New function.
14601 (tfind_end_command, tfind_start_command): Adjust.
14602 (encode_source_string): Constify.
14603 * tracepoint.h (encode_source_string): Constify.
14604 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14605 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14606 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14607 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14608 * tui/tui-win.c (parse_scrolling_args): Constify.
14609 * tui/tui-windata.c (tui_erase_data_content): Constify.
14610 * tui/tui-windata.h (tui_erase_data_content): Constify.
14611 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14612 * tui/tui.c (tui_enable): Add cast.
14613 * utils.c (defaulted_query): Constify.
14614 (init_page_info): Add cast.
14615 (puts_debug, subset_compare): Constify.
14616 * utils.h (subset_compare): Constify.
14617 * varobj.c (varobj_format_string): Constify.
14618 * varobj.h (varobj_format_string): Constify.
14619 * vax-tdep.c (vax_register_name): Constify.
14620 * windows-nat.c (windows_detach): Constify.
14621 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14622 * xml-support.c (gdb_xml_end_element): Constify.
14623 * xml-tdesc.c (tdesc_start_reg): Constify.
14624 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14625 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14626 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14628 2017-04-05 Pedro Alves <palves@redhat.com>
14630 * proc-api.c (struct trans): Constify.
14631 (procfs_note): Constify.
14632 * proc-events.c (struct trans, syscall_table):
14633 * proc-flags.c (struct trans): Constify.
14634 * proc-utils.h (procfs_note): Constify.
14635 * proc-why.c (struct trans): Constify.
14636 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14637 (procfs_detach): Constify.
14638 * sol-thread.c (struct string_map): Constify.
14639 (td_err_string, td_state_string): Constify.
14641 2017-04-05 Pedro Alves <palves@redhat.com>
14643 * proc-api.c (procfs_filename): Don't initialize
14645 (prepare_to_trace): Assume procfs_filename is non-NULL.
14646 (_initialize_proc_api): Give procfs_filename a default value here.
14648 2017-04-05 Pedro Alves <palves@redhat.com>
14650 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14651 'cond_string' parameter.
14652 (extract_exception_regexp): Constify 'string' parameter.
14653 (catch_exception_command_1): Constify.
14654 * breakpoint.c (init_catchpoint)
14655 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14657 (ep_parse_optional_if_clause, catch_fork_command_1)
14658 (catch_exec_command_1): Constify.
14659 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14661 (ep_parse_optional_if_clause): Constify.
14662 * cli/cli-utils.c (remove_trailing_whitespace)
14663 (check_for_argument): Constify.
14664 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14665 non-const overload.
14666 (check_for_argument): Likewise.
14668 2017-04-05 Pedro Alves <palves@redhat.com>
14670 * event-top.c (command_line_handler): Add cast to execute_command
14672 * record-btrace.c (cmd_record_btrace_bts_start)
14673 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14674 (cmd_record_btrace_start): Add cast to execute_command call.
14675 * record-full.c (record_full_goto_insn):
14676 * record.c (record_start, record_stop): Add cast to
14677 execute_command_to_string calls.
14678 (cmd_record_start): Add cast to execute_command calls.
14680 2017-04-05 Pedro Alves <palves@redhat.com>
14682 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14683 static inline function.
14684 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14685 array and use gdb_PyArg_ParseTupleAndKeywords.
14686 * python/py-cmd.c (cmdpy_init): Likewise.
14687 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14688 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14689 (infpy_search_memory): Likewise.
14690 * python/py-objfile.c (objfpy_add_separate_debug_file)
14691 (gdbpy_lookup_objfile): Likewise.
14692 * python/py-symbol.c (gdbpy_lookup_symbol)
14693 (gdbpy_lookup_global_symbol): Likewise.
14694 * python/py-type.c (gdbpy_lookup_type): Likewise.
14695 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14696 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14699 2017-04-05 Pedro Alves <palves@redhat.com>
14701 * python/python-internal.h (gdb_PyGetSetDef): New type.
14702 * python/py-block.c (block_object_getset)
14703 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14704 * python/py-event.c (event_object_getset)
14705 (finish_breakpoint_object_getset): Likewise.
14706 * python/py-inferior.c (inferior_object_getset): Likewise.
14707 * python/py-infthread.c (thread_object_getset): Likewise.
14708 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14709 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14710 * python/py-objfile.c (objfile_getset): Likewise.
14711 * python/py-progspace.c (pspace_getset): Likewise.
14712 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14714 * python/py-record.c (recpy_record_getset): Likewise.
14715 * python/py-symbol.c (symbol_object_getset): Likewise.
14716 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14718 * python/py-type.c (type_object_getset, field_object_getset):
14720 * python/py-value.c (value_object_getset): Likewise.
14722 2017-04-05 Pedro Alves <palves@redhat.com>
14724 * python/python-internal.h (gdb_PyObject_CallMethod)
14725 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14727 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14728 (PySys_GetObject, PySys_SetPath): New macros.
14730 2017-04-05 Pedro Alves <palves@redhat.com>
14732 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14733 info_osdata_command.
14734 * osdata.c (info_osdata_command): Rename to ...
14735 (info_osdata): ... this. Constify 'type' parameter, and remove
14736 the 'from_tty' parameter. Accept NULL TYPE.
14737 (info_osdata_command): New function.
14738 * osdata.h (info_osdata_command): Remove declaration.
14739 (info_osdata): New declaration.
14741 2017-04-05 Pedro Alves <palves@redhat.com>
14743 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14744 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14745 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14747 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14748 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14749 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14751 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14752 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14753 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14754 (mi_cmd_file_list_exec_source_files)
14755 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14756 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14757 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14759 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14760 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14761 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14762 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14763 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14764 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14765 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14766 'command' parameter.
14767 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14768 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14769 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14770 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14771 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14772 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14773 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14774 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14775 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14776 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14777 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14779 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14780 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14781 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14782 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14783 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14784 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14785 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14786 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14787 (mi_cmd_data_list_changed_registers)
14788 (mi_cmd_data_write_register_values)
14789 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14790 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14791 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14792 (mi_cmd_list_features, mi_cmd_list_target_features)
14793 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14794 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14795 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14796 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14797 (mi_cmd_trace_frame_collected): Constify 'command'
14799 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14800 'command' parameter.
14802 2017-04-05 Pedro Alves <palves@redhat.com>
14804 * ada-lang.c (ada_completer_word_break_characters): Now a const
14806 (ada_get_gdb_completer_word_break_characters): Constify.
14807 * completer.c (gdb_completer_command_word_break_characters)
14808 (gdb_completer_file_name_break_characters)
14809 (gdb_completer_quote_characters): Now const arrays.
14810 (get_gdb_completer_quote_characters): Constify.
14811 (set_rl_completer_word_break_characters): New function.
14812 (set_gdb_completion_word_break_characters)
14813 (complete_line_internal): Use it.
14814 * completer.h (get_gdb_completer_quote_characters): Constify.
14815 (set_rl_completer_word_break_characters): Declare.
14816 * f-lang.c (f_word_break_characters): Constify.
14817 * language.c (default_word_break_characters): Constify.
14818 * language.h (language_defn::la_word_break_characters): Constify.
14819 (default_word_break_characters): Constify.
14820 * top.c (init_main): Use set_rl_completer_word_break_characters.
14822 2017-04-05 Pedro Alves <palves@redhat.com>
14824 * aix-thread.c (aix_thread_pid_to_str)
14825 (aix_thread_extra_thread_info): Constify.
14826 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14827 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14828 (bsd_uthread_pid_to_str): Constify.
14829 * corelow.c (core_pid_to_str): Constify.
14830 * darwin-nat.c (darwin_pid_to_str): Constify.
14831 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14832 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14834 * gnu-nat.c (gnu_pid_to_str): Constify.
14835 * go32-nat.c (go32_pid_to_str): Constify.
14836 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14837 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14838 * inferior.c (inferior_pid_to_str): Constify.
14839 * linux-nat.c (linux_nat_pid_to_str): Constify.
14840 * linux-tdep.c (linux_core_pid_to_str): Constify.
14841 * linux-thread-db.c (thread_db_pid_to_str)
14842 (thread_db_extra_thread_info): Constify.
14843 * nto-tdep.c (nto_extra_thread_info): Constify.
14844 * nto-tdep.h (nto_extra_thread_info): Constify.
14845 * obsd-nat.c (obsd_pid_to_str): Constify.
14846 * procfs.c (procfs_pid_to_str): Constify.
14847 * ravenscar-thread.c (ravenscar_extra_thread_info)
14848 (ravenscar_pid_to_str): Constify.
14849 * remote-sim.c (gdbsim_pid_to_str): Constify.
14850 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14852 * sol-thread.c (solaris_pid_to_str): Constify.
14853 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14854 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14855 * target.c (default_pid_to_str, target_pid_to_str)
14856 (normal_pid_to_str, default_pid_to_str): Constify.
14857 * target.h (target_ops::to_pid_to_str)
14858 (target_ops::to_extra_thread_info): Constify.
14859 (target_pid_to_str, normal_pid_to_str): Constify.
14860 * windows-nat.c (windows_pid_to_str): Constify.
14861 * gdbarch.sh (core_pid_to_str): Constify.
14862 * target-delegates.c: Regenerate.
14863 * gdbarch.h, gdbarch.c: Regenerate.
14865 2017-04-05 Pedro Alves <palves@redhat.com>
14867 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14868 the memory of the temporary warning_pre_print override.
14869 * utils.c (warning_pre_print): Constify.
14870 * utils.h (warning_pre_print): Constify.
14872 2017-04-05 Pedro Alves <palves@redhat.com>
14874 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14875 (shell_command): New function.
14876 (make_command): Use std::string.
14877 (init_cli_cmds): Register shell_command instead of shell_escape.
14879 2017-04-05 Pedro Alves <palves@redhat.com>
14881 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14882 * tracepoint.c (default_collect): Don't initialize.
14884 2017-04-05 Pedro Alves <palves@redhat.com>
14886 * macroexp.c (macro_buffer::shared): Now a bool.
14887 (init_buffer): Update.
14888 (init_shared_buffer): Constify 'addr' parameter.
14889 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14892 2017-04-05 Pedro Alves <palves@redhat.com>
14894 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14895 * disasm.c (set_disassembler_options): Constify local.
14896 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14898 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14901 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14904 2017-04-05 Yao Qi <yao.qi@linaro.org>
14906 * frame.c (frame_unwind_register_unsigned): Call
14907 frame_unwind_register_value.
14909 2017-04-05 Yao Qi <yao.qi@linaro.org>
14911 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14912 Use gdb_test_multiple, and don't match anchor.
14914 2017-04-05 Pedro Alves <palves@redhat.com>
14916 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14917 (Write After Approval): Remove Simon Marchi.
14919 2017-04-05 Pedro Alves <palves@redhat.com>
14921 * common/gdb_optional.h (optional::optional): Make constexpr and
14922 initialize m_dummy.
14924 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14926 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14927 (amd64fbsd_jmp_buf_reg_offset): Remove.
14928 (amd64fbsd_supply_uthread): Remove function.
14929 (amd64fbsd_collect_uthread): Remove function.
14930 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14931 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14932 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14933 (fbsd-nat.c): Update comment.
14934 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14935 (i386fbsd_jmp_buf_reg_offset): Remove.
14936 (i386fbsd_supply_uthread): Remove function.
14937 (i386fbsd_collect_uthread): Remove function.
14938 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14940 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14942 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14943 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14944 * NEWS: Mention that support for FreeBSD/alpha was removed.
14945 * alpha-fbsd-tdep.c: Delete file.
14946 * config/alpha/fbsd.mh: Delete file.
14947 * configure.host: Delete alpha*-*-freebsd* and
14948 alpha*-*-kfreebsd*-gnu.
14949 * configure.tgt: Delete alpha*-*-freebsd* and
14950 alpha*-*-kfreebsd*-gnu.
14952 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14954 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14955 amd64bsd_store_inferior_registers): Use ptid from regcache.
14957 2017-04-04 Pedro Alves <palves@redhat.com>
14959 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14960 data fields, make them private and add "m_" prefixes.
14961 (lnp_state_machine::lnp_state_machine): New ctor.
14962 (record_line, check_line_address, handle_set_discriminator)
14963 (handle_set_address, handle_advance_pc, handle_special_opcode)
14964 (handle_advance_line, handle_set_file, handle_negate_stmt)
14965 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14966 (end_sequence, advance_line): New methods.
14967 (m_gdbarch, m_record_lines_p): New fields.
14968 (lnp_reader_state): Delete.
14969 (dwarf_record_line): Rename to ...
14970 (lnp_state_machine::record_line): ... adjust.
14971 (init_lnp_state_machine): Delete.
14972 (lnp_state_machine::lnp_state_machine): New.
14973 (check_line_address): Rename to ...
14974 (lnp_state_machine::check_line_address): This.
14975 (dwarf_decode_lines_1): Remove reference to "reader_state".
14976 Adjust lnp_state_machine having a non-default ctor. Use bool.
14977 State machine internal state manipulation moved to
14978 lnp_state_machine methods.
14980 2017-04-04 Pedro Alves <palves@redhat.com>
14982 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14983 unittests/offset-type-selftests.c.
14984 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14985 * common/offset-type.h: New file.
14986 * common/preprocessor.h: New file.
14987 * common/traits.h: New file.
14988 * common/valid-expr.h: New file.
14989 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14990 sect_offset and cu_offset strong typedefs throughout.
14991 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14992 typedefs throughout.
14993 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14994 sect_offset and cu_offset strong typedefs throughout.
14995 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14996 typedefs throughout.
14997 * gdbtypes.h: Include "common/offset-type.h".
14998 (cu_offset): Now an offset type (strong typedef) instead of a
15000 (sect_offset): Likewise.
15001 (union call_site_parameter_u): Rename "param_offset" field to
15003 * unittests/offset-type-selftests.c: New file.
15005 2017-04-04 Pedro Alves <palves@redhat.com>
15007 * common/underlying.h: New file.
15008 * dwarf2read.c: Include "common/gdb_optional.h" and
15009 "common/underlying.h".
15010 (dir_index, file_name_index): New types.
15011 (file_entry): Use them.
15012 (file_entry::include): Use to_underlying.
15013 (line_header::add_file_name): Use dir_index.
15014 (read_formatted_entries): Use gdb::optional. Read form before
15015 writting to file_entry.
15016 (dwarf_decode_line_header): Use dir_index.
15017 (lnp_state_machine::current_file): Use to_underlying.
15018 (lnp_state_machine::file): Change type to file_name_index.
15019 (dwarf_record_line): Use to_underlying.
15020 (init_lnp_state_machine): Use file_name_index.
15021 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15023 2017-04-04 Pedro Alves <palves@redhat.com>
15025 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15026 operator bool, has_value and get methods.
15028 2017-04-04 Pedro Alves <palves@redhat.com>
15030 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15032 (line_header): Initialize all data fields. Change type of
15033 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15034 Change type of include_dirs to std::vector<const char *>. Remove
15035 num_include_dirs, include_dirs_size. Change type of file_names to
15036 std::vector<file_entry>. Remove num_file_names, file_names_size.
15037 (line_header::line_header): New.
15038 (line_header::add_include_dir, line_header::add_file_name): New
15040 (line_header::include_dir_at): Remove NULL check.
15041 (line_header::file_name_at): Add const overload.
15042 (line_header_up): New unique_ptr typedef.
15043 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15044 std::vector. Remove free_line_header call.
15045 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15046 free_line_header call.
15047 (free_cu_line_header): Delete.
15048 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15049 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15050 Adjust to use std::vector.
15051 (free_line_header): Delete.
15052 (free_line_header_voidp): Use delete.
15053 (add_include_dir): Replace with ...
15054 (line_header::add_include_dir): ... this method. Use std::vector.
15055 (add_file_name): Replace with ...
15056 (line_header::add_file_name): ... this method. Use std::vector.
15057 (add_include_dir_stub): Delete.
15058 (read_formatted_entries): Remove memset.
15059 (dwarf_decode_line_header): Return a line_header_up instead of a
15060 raw pointer. Remove cleanup handling. Pass lambdas to
15061 read_formatted_entries. Adjust to use line_header methods.
15062 (dwarf_decode_lines_1): Adjust to use line_header methods.
15063 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15066 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15068 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15069 instead of struct ptid.
15071 2017-05-04 Alan Hayward <alan.hayward@arm.com>
15073 * frame.c (get_frame_register_bytes): Unwind using value.
15074 (put_frame_register_bytes): Likewise.
15076 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15078 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15081 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15083 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15085 2017-03-29 Yao Qi <yao.qi@linaro.org>
15087 * gdbthread.h (struct thread_info): Declare constructor and
15088 destructor. Add some in-class member initializers.
15089 * thread.c (free_thread): Remove.
15090 (init_thread_list): Call delete instead of free_thread.
15091 (new_thread): Call thread_info constructor.
15092 (thread_info::thread_info): New function.
15093 (thread_info::~thread_info): New function.
15094 (delete_thread_1): Call delete instead of free_thread.
15095 (make_cleanup_restore_current_thread): Move tp and frame to
15098 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15100 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15101 (arc_skip_prologue): Likewise.
15102 (arc_make_frame_cache): Likewise.
15103 (arc_pv_get_operand): New function.
15104 (arc_is_in_prologue): Likewise.
15105 (arc_analyze_prologue): Likewise.
15106 (arc_print_frame_cache): Likewise.
15107 (MAX_PROLOGUE_LENGTH): New constant.
15109 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15111 * configure.tgt: Add arc-insn.o.
15112 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15113 (dump_arc_instruction_command): New function.
15114 (arc_fprintf_disasm): Likewise.
15115 (arc_disassemble_info): Likewise.
15116 (arc_insn_get_operand_value): Likewise.
15117 (arc_insn_get_operand_value_signed): Likewise.
15118 (arc_insn_get_memory_base_reg): Likewise.
15119 (arc_insn_get_memory_offset): Likewise.
15120 (arc_insn_get_branch_target): Likewise.
15121 (arc_insn_dump): Likewise.
15122 (arc_insn_get_linear_next_pc): Likewise.
15123 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15124 (arc_disassemble_info): Likewise.
15125 (arc_insn_get_branch_target): Likewise.
15126 (arc_insn_get_linear_next_pc): Likewise.
15127 * NEWS: Mention new "maint print arc arc-instruction".
15129 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15131 * arc-tdep (maintenance_print_arc_list): New variable.
15132 (maintenance_print_arc_command): New function.
15134 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15136 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15137 Add "limm" and "reserved".
15138 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15139 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15140 * arc-tdep.h (arc_regnum): Likewise.
15142 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15144 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15145 for THREADPTR register.
15146 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15148 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15149 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15150 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15152 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15154 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15155 registers above gdbarch_num_regs (gdbarch) as privileged in
15158 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15160 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15161 for a single specified register or for all registers in
15162 a0_base..a0_base + C0_NREGS range.
15163 (supply_gregset_reg): Call regcache_raw_supply for a single
15164 specified register or for all registers in a0_base..a0_base +
15167 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15169 * arch/xtensa.h (C0_NREGS): Add definition.
15170 * xtensa-tdep.c (C0_NREGS): Remove definition.
15172 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15174 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15175 Drop xtensa_default_isa initialization.
15176 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15178 2017-03-27 Pedro Alves <palves@redhat.com>
15180 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15181 (file_entry::include_dir): New method.
15182 (line_header::include_dir_at, line_header::file_name_at): New
15184 (setup_type_unit_groups, setup_type_unit_groups)
15185 (psymtab_include_file_name): Simplify using the new methods.
15186 (lnp_state_machine) <the_line_header>: New field.
15187 <file>: Add comment.
15188 (lnp_state_machine::current_file): New method.
15189 (dwarf_record_line): Simplify using the new methods.
15190 (init_lnp_state_machine): Initialize the "the_line_header" field.
15191 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15192 Simplify using the new methods.
15194 2017-03-27 Pedro Alves <palves@redhat.com>
15196 * cp-name-parser.y (make_empty): Delete.
15197 (demangler_special, nested_name, ptr_operator, array_indicator)
15198 (direct_declarator, declarator_1): Use fill_comp instead of
15201 2017-03-27 Pedro Alves <palves@redhat.com>
15203 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15204 to ATTRIBUTE_PRINTF.
15205 * solib-target.c (library_list_start_list): Print "string" not
15207 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15208 gdb_xml_error call.
15210 2017-03-27 Pedro Alves <palves@redhat.com>
15212 * dwarf2read.c (struct file_and_directory): New.
15213 (dwarf2_get_dwz_file): Adjust to use std::string.
15214 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15215 (find_file_and_directory): Adjust to return a file_and_directory
15217 (read_file_scope): Adjust to use file_and_directory. Remove
15218 make_cleanup/do_cleanups calls.
15219 (open_and_init_dwp_file): Adjust to use std::string. Remove
15220 make_cleanup/do_cleanups calls.
15221 * python/python.c (do_start_initialization): Adjust to ldirname
15222 returning a std::string.
15223 * utils.c (ldirname): Now returns a std::string.
15224 * utils.h (ldirname): Change return type to std::string.
15225 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15226 returning a std::string.
15227 * xml-tdesc.c (file_read_description_xml): Likewise.
15229 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15231 * regcache.c (regcache_debug_print_register): New function.
15232 * regcache.h (regcache_debug_print_register): New declaration.
15233 * target.c (debug_print_register): Remove.
15234 (target_fetch_registers): Call regcache_debug_print_register.
15235 (target_store_registers): Likewise.
15237 2017-03-24 Pádraig Brady <pbrady@fb.com>
15239 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15240 reference beyond the 'lh->include_dirs' array before accessing to
15242 (psymtab_include_file_name): Likewise.
15243 (dwarf_decode_lines_1): Likewise.
15244 (dwarf_decode_lines): Likewise.
15245 (file_file_name): Likewise.
15247 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15249 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15251 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15252 ps_lsetfpregs): Likewise.
15253 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15254 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15255 ps_lsetfpregs): Likewise.
15256 * target.c (target_fetch_registers, target_store_registers):
15259 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15261 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15263 2017-03-23 Yao Qi <yao.qi@linaro.org>
15265 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15266 (_initialize_aarch64_tdep): Register it.
15267 (aarch64_record_load_store): Handle PRFM instruction.
15268 (aarch64_process_record_test): New function.
15270 2017-03-23 Yao Qi <yao.qi@linaro.org>
15272 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15275 2017-03-23 Yao Qi <yao.qi@linaro.org>
15277 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15279 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15281 python/python.c (do_start_initialization): Fix memory leak.
15283 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15285 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15286 using get_ptrace_pid.
15287 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15289 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15290 inferior_ptid instead of pid.
15292 2017-03-22 Yao Qi <yao.qi@linaro.org>
15294 * aarch64-tdep.c: Wrap locally used classes in anonymous
15296 * arm-tdep.c: Likewise.
15297 * linespec.c: Likewise.
15298 * ui-out.c: Likewise.
15300 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15303 * python/lib/gdb/printer/bound_registers.py: Import sys.
15305 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15307 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15308 windows_thread_info parameter and use it instead of
15310 (windows_fetch_inferior_registers): Don't set current_thread,
15311 pass the thread to do_windows_fetch_inferior_registers. Use
15312 ptid from regcache instead of inferior_ptid.
15313 (do_windows_store_inferior_registers): Add windows_thread_info
15314 parameter and use it instead of current_thread.
15315 (windows_store_inferior_registers): Don't set current_thread,
15316 pass the thread to do_windows_store_inferior_registers. Use
15317 ptid from regcache instead of inferior_ptid.
15319 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15321 * ser-mingw.c (ser_windows_raw): Remove reference to
15322 struct serial::current_timeout.
15324 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15327 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15328 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15329 (sparc64_fsr_type): Fix %fsr decoding.
15331 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15333 * python/py-record-btrace.c (btpy_insn_data): Change return type
15336 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15338 * spu-linux-nat.c (spu_fetch_inferior_registers,
15339 spu_store_inferior_registers): Use ptid from regcache, set and
15340 restore inferior_ptid.
15341 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15344 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15346 * i386-linux-nat.c (fetch_register, store_register,
15347 i386_linux_fetch_inferior_registers,
15348 i386_linux_store_inferior_registers): Use ptid from regcache.
15349 * ia64-linux-nat.c (ia64_linux_fetch_register,
15350 ia64_linux_store_register): Likewise.
15351 * inf-ptrace.c (inf_ptrace_fetch_register,
15352 inf_ptrace_store_register): Likewise.
15353 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15354 m32r_linux_store_inferior_registers): Likewise.
15355 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15356 m68kbsd_store_inferior_registers): Likewise.
15357 * m68k-linux-nat.c (fetch_register, store_register,
15358 m68k_linux_fetch_inferior_registers,
15359 m68k_linux_store_inferior_registers): Likewise.
15360 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15361 m88kbsd_store_inferior_registers): Likewise.
15362 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15363 mips_fbsd_store_inferior_registers): Likewise.
15364 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15365 mips64_linux_regsets_store_registers): Likewise.
15366 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15367 mipsnbsd_store_inferior_registers): Likewise.
15368 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15369 mips64obsd_store_inferior_registers): Likewise.
15370 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15372 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15373 ppcfbsd_store_inferior_registers): Likewise.
15374 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15375 ppc_linux_store_inferior_registers): Likewise.
15376 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15377 ppcnbsd_store_inferior_registers): Likewise.
15378 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15379 ppcobsd_store_registers): Likewise.
15380 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15382 * ravenscar-thread.c (ravenscar_fetch_registers,
15383 ravenscar_store_registers, ravenscar_prepare_to_store):
15385 * record-btrace.c (record_btrace_fetch_registers,
15386 record_btrace_store_registers, record_btrace_prepare_to_store):
15388 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15389 Lookup inferior using ptid from regcache, instead of
15391 * remote.c (remote_fetch_registers, remote_store_registers): Use
15392 ptid from regcache.
15393 * rs6000-nat.c (fetch_register, store_register): Likewise.
15394 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15395 s390_linux_store_inferior_registers): Likewise.
15396 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15397 shnbsd_store_inferior_registers): Likewise.
15398 * sol-thread.c (sol_thread_fetch_registers,
15399 sol_thread_store_registers): Likewise.
15400 * sparc-nat.c (sparc_fetch_inferior_registers,
15401 sparc_store_inferior_registers): Likewise.
15402 * tilegx-linux-nat.c (fetch_inferior_registers,
15403 store_inferior_registers): Likewise.
15404 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15405 vaxbsd_store_inferior_registers): Likewise.
15406 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15407 store_xtregs): Likewise.
15409 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15412 * NEWS: Mention support for rvalue references in GDB and python.
15413 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15414 supports both lvalue and rvalue references.
15416 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15419 * gdbtypes.c (rank_one_type): Implement overloading
15420 resolution rules regarding rvalue references.
15422 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15425 * aarch64-tdep.c (aarch64_type_align)
15426 (aarch64_extract_return_value, aarch64_store_return_value): Change
15427 lvalue reference type checks to general reference type checks.
15428 * amd64-tdep.c (amd64_classify): Likewise.
15429 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15431 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15432 (arm_store_return_value): Likewise.
15433 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15434 * c-typeprint.c (c_print_type): Likewise.
15435 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15436 (cplus_number_of_children, cplus_describe_child): Likewise.
15437 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15438 * completer.c (expression_completer): Likewise.
15439 * cp-support.c (make_symbol_overload_list_adl_namespace):
15441 * darwin-nat-info.c (info_mach_region_command): Likewise.
15442 * dwarf2loc.c (entry_data_value_coerce_ref)
15443 (value_of_dwarf_reg_entry): Likewise.
15444 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15445 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15447 * findvar.c (extract_typed_address, store_typed_address):
15449 * gdbtypes.c (rank_one_type): Likewise.
15450 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15451 * infcall.c (value_arg_coerce): Likewise.
15452 * language.c (pointer_type): Likewise.
15453 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15455 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15456 * mn10300-tdep.c (mn10300_type_align): Likewise.
15457 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15458 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15459 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15461 * printcmd.c (print_formatted, x_command): Likewise.
15462 * python/py-type.c (typy_get_composite, typy_template_argument):
15464 * python/py-value.c (valpy_referenced_value)
15465 (valpy_get_dynamic_type, value_has_field): Likewise.
15466 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15467 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15468 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15469 * spu-tdep.c (spu_scalar_value_p): Likewise.
15470 * symtab.c (lookup_symbol_aux): Likewise.
15471 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15472 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15474 * valops.c (value_cast_pointers, value_cast)
15475 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15476 (value_struct_elt, value_struct_elt_bitpos)
15477 (value_find_oload_method_list, find_overload_match)
15478 (value_rtti_indirect_type): Likewise.
15479 * valprint.c (val_print_scalar_type_p, generic_val_print):
15481 * value.c (value_actual_type, value_as_address, unpack_long)
15482 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15483 (coerce_ref): Likewise.
15484 * varobj.c (varobj_get_value_type): Likewise.
15486 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15489 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15490 table of constants.
15491 * python/lib/gdb/command/explore.py: Support exploring values
15492 of rvalue reference types.
15493 * python/lib/gdb/types.py: Implement get_basic_type() for
15494 rvalue reference types.
15495 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15497 * python/py-value.c (valpy_getitem): Add an rvalue reference
15499 (valpy_reference_value): Add new parameter "refcode".
15500 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15501 New wrappers for valpy_reference_value().
15502 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15503 (gdbpy_invoke_xmethod): Likewise.
15505 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15508 * dwarf2read.c (process_die, read_type_die_1): Handle the
15509 DW_TAG_rvalue_reference_type DIE.
15510 (read_tag_reference_type): Add new parameter "refcode".
15512 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15515 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15516 (c_type_print_modifier, c_type_print_varspec_suffix)
15517 (c_type_print_base): Support printing rvalue reference types.
15518 * c-valprint.c (c_val_print, c_value_print): Support printing
15519 rvalue reference values.
15521 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15524 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15526 * cp-support.c (replace_typedefs): Handle
15527 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15528 * python/py-type.c (typy_lookup_type): Likewise.
15530 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15533 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15534 * parse.c (insert_type): Change assert statement.
15535 (follow_types): Handle rvalue reference types.
15536 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15539 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15542 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15543 value_ref() interface.
15544 * c-valprint.c (c_value_print): Likewise.
15545 * infcall.c (value_arg_coerce): Likewise.
15546 * python/py-value.c (valpy_reference_value): Likewise.
15547 * valops.c (value_cast, value_reinterpret_cast)
15548 (value_dynamic_cast, typecmp): Likewise.
15549 (value_ref): Parameterize by kind of return value reference type.
15550 * value.h (value_ref): Add new parameter "refcode".
15552 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15555 * dwarf2read.c (read_tag_reference_type): Use
15556 lookup_lvalue_reference_type() instead of lookup_reference_type().
15557 * eval.c (evaluate_subexp_standard): Likewise.
15558 * f-exp.y: Likewise.
15559 * gdbtypes.c (make_reference_type, lookup_reference_type):
15560 Generalize with rvalue reference types.
15561 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15562 convenience wrappers for lookup_reference_type().
15563 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15564 reference kind parameter.
15565 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15566 wrappers for lookup_reference_type().
15567 * guile/scm-type.c (gdbscm_type_reference): Use
15568 lookup_lvalue_reference_type() instead of lookup_reference_type().
15569 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15570 * parse.c (follow_types): Likewise.
15571 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15572 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15574 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15575 (gdbpy_invoke_xmethod): Likewise.
15576 * stabsread.c: Provide extra argument to make_reference_type()
15578 * valops.c (value_ref, value_rtti_indirect_type): Use
15579 lookup_lvalue_reference_type() instead of lookup_reference_type().
15581 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15584 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15585 (TYPE_IS_REFERENCE): New macro.
15586 (struct type): Add rvalue_reference_type field.
15587 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15589 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15591 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15592 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15593 New function definition.
15594 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15595 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15596 New function declaration.
15597 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15598 * mi/mi-interp.h: New file.
15599 * solib.c (info_sharedlibrary_command): Replace for loop with
15601 * solib.h (update_solib_list): New function declaration.
15602 (so_list_head): Move macro.
15603 * solist.h (ALL_SO_LIBS): New macro.
15605 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15607 * infcmd.c (post_create_inferior): Remove unused argument in
15609 * remote.c (remote_start_remote): Likewise.
15610 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15611 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15612 (enable_break): Likewise.
15613 * solib.c (update_solib_list): Remove unused target argument
15614 and its documentation.
15615 (solib_add): Remove unused target argument. Remove unused
15616 argument in call to update_solib_list.
15617 (info_sharedlibrary_command): Remove unused argument in call
15618 to update_solib_list.
15619 (sharedlibrary_command): Remove unused argument in call to
15621 (handle_solib_event): Likewise.
15622 (reload_shared_libraries): Likewise.
15623 * solib.h (solib_add): Remove unused target argument.
15625 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15627 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15628 (s390_displaced_step_fixup): Cover relative branches with the
15629 default fixup handling. This fixes lack of support for some
15630 relative branch instructions.
15632 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15634 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15635 ptid from regcache.
15637 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15639 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15640 i386_darwin_store_inferior_registers): Use ptid from regcache.
15642 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15644 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15645 i386bsd_store_inferior_registers): Use ptid from regcache.
15647 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15649 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15650 hppaobsd_store_registers): Use ptid from regcache.
15652 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15654 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15655 hppanbsd_store_registers): Use ptid from regcache.
15657 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15659 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15660 from regcache. Use get_ptrace_pid.
15662 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15664 * corelow.c (get_core_register_section): Use ptid from regcache,
15667 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15669 * bsd-uthread.c (bsd_uthread_fetch_registers,
15670 bsd_uthread_store_registers): Use ptid from regcache, set and
15671 restore inferior_ptid.
15673 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15675 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15676 fetch_fp_regs, store_register, store_regs, store_fp_register,
15677 store_fp_regs): Use ptid from regcache.
15679 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15681 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15682 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15683 store_vfp_regs): Use ptid from regcache.
15685 2017-03-17 Pedro Alves <palves@redhat.com>
15688 * ser-base.c (ser_base_wait_for): Add comment.
15689 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15691 * ser-unix.c (hardwire_raw): Remove reference to
15692 scb->current_timeout.
15693 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15694 (hardwire_ops): Install ser_base_readchar instead of
15696 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15699 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15702 * python/lib/gdb/printer/bound_registers.py: Add support for
15705 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15707 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15708 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15709 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15710 byte_offset to subobj_byte_offset. Fix the handling of
15711 DWARF_VALUE_STACK on big-endian targets when coming via an
15713 (dwarf2_evaluate_loc_desc): Adjust call to
15714 dwarf2_evaluate_loc_desc_full.
15715 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15716 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15718 2017-03-16 Yao Qi <yao.qi@linaro.org>
15720 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15721 and REVSH instructions.
15723 2017-03-16 Yao Qi <yao.qi@linaro.org>
15725 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15726 (arm_record_test): Declare.
15727 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15728 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15729 align with the manual.
15730 (thumb_record_misc): Adjust the code order to align with the
15732 (thumb2_record_decode_insn_handler): Fix instruction matching.
15733 (instruction_reader_thumb): New class.
15734 (arm_record_test): New function.
15736 2017-03-16 Yao Qi <yao.qi@linaro.org>
15738 * arm-tdep.c (abstract_memory_reader): New class.
15739 (instruction_reader): New class.
15740 (extract_arm_insn): Add argument 'reader'. Callers updated.
15741 (decode_insn): Likewise.
15743 2017-03-16 Doug Evans <dje@google.com>
15745 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15746 member. Change type of TYPE member to SCM. All uses updated.
15747 (lsscm_make_lazy_string_smob): Add assert.
15748 (lsscm_make_lazy_string): Flag bad length values.
15749 (lsscm_elt_type): New function.
15750 (gdbscm_lazy_string_to_value): Rewrite to use
15751 lsscm_safe_lazy_string_to_value.
15752 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15753 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15754 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15756 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15757 * guile/scm-type.c (tyscm_scm_to_type): New function.
15759 2017-03-15 Doug Evans <dje@google.com>
15761 PR python/17728, python/18439, python/18779
15762 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15763 member. Change type of TYPE member to PyObject *. All uses updated.
15764 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15765 (gdbpy_create_lazy_string_object): Flag bad length values.
15766 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15767 Handle typedefs in incoming type.
15768 (stpy_lazy_string_elt_type): New function.
15769 (gdbpy_extract_lazy_string): Call it.
15770 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15771 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15772 typedefs in incoming type.
15774 2017-03-16 Doug Evans <dje@google.com>
15776 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15777 * guile/scm-type.c (tyscm_scm_to_type): New function.
15779 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15781 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15782 "ULONGEST" for "skip".
15784 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15787 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15788 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15789 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15790 over ptrace peek/poke until end of buffer or error.
15792 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15794 * parse.c (length_of_subexp): Make static.
15795 * parser-defs.h (length_of_subexp): Remove.
15797 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15799 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15802 2017-03-14 Pedro Alves <palves@redhat.com>
15804 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15805 (main): Use std::unique_ptr. Remove calls to
15806 cp_demangled_name_parse_free.
15808 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15810 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15811 alphabsd_store_inferior_registers): Use regcache->ptid instead
15814 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15816 * aix-thread.c (aix_thread_fetch_registers,
15817 aix_thread_store_registers): Use regcache->ptid instead of
15820 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15822 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15823 store_gregs_to_thread, fetch_fpregs_from_thread,
15824 store_fpregs_to_thread): Use regcache->ptid instead of
15827 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15829 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15830 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15831 instead of inferior_ptid.
15833 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15835 * target.c (target_fetch_registers, target_store_registers): Add
15838 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15840 * regcache.h (regcache_get_ptid): New function.
15841 * regcache.c (regcache_get_ptid): New function.
15843 2017-03-13 Mark Wielaard <mark@klomp.org>
15845 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15847 2017-03-10 Keith Seitz <keiths@redhat.com>
15850 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15852 2017-03-08 Pedro Alves <palves@redhat.com>
15855 * infrun.c (start_step_over, do_target_resume, resume)
15856 (restart_threads): Assert we're not resuming a thread that is
15857 meant to be stopped.
15858 (infrun_thread_stop_requested_callback): Delete.
15859 (infrun_thread_stop_requested): If the thread is internally
15860 stopped, queue a pending stop event and clear the thread's
15861 inline-frame state.
15862 (handle_stop_requested): New function.
15863 (handle_syscall_event, handle_inferior_event_1): Use
15864 handle_stop_requested.
15865 (handle_stop_requested): New function.
15866 (handle_signal_stop): Set the thread's stop_signal here instead of
15868 (finish_step_over): Clear step over info unconditionally.
15869 (handle_signal_stop): If the user had interrupted the event
15870 thread, consider the stop a random signal.
15871 (handle_signal_stop) <signal arrived while stepping over
15872 breakpoint>: Don't restart threads here.
15873 (stop_waiting): Don't clear step-over info here.
15875 2017-03-08 Pedro Alves <palves@redhat.com>
15878 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15879 goes to argument 2, not 1.
15881 2017-03-08 Pedro Alves <palves@redhat.com>
15884 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15885 display_gdb_prompt.
15886 (command_line_input): Add comment.
15888 2017-03-08 Pedro Alves <palves@redhat.com>
15891 * tui/tui-file.c (tui_file::write): New.
15892 * tui/tui-file.h (tui_file): Override "write".
15893 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15894 factored out from ...
15895 (tui_puts): ... here.
15896 (tui_putc): Use them.
15897 (tui_write): New function.
15898 * tui/tui-io.h (tui_write): Declare.
15900 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15902 * Makefile.in (SFILES): Replace "environ.c" with
15903 "common/environ.c".
15904 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15905 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15907 * common/environ.c: ... here.
15908 * environ.h: Moved to...
15909 * common/environ.h: ... here.
15911 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15913 * gdbarch.sh (pstring_ptr): New static function.
15914 (gdbarch_disassembler_options): Use it.
15915 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15916 not valid_disassembler_option->name.
15917 * gdbarch.c: Regenerate.
15919 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15921 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15923 2017-03-07 Pedro Alves <palves@redhat.com>
15925 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15927 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15929 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15930 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15931 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15932 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15934 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15936 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15938 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15940 * remote.c (remote_add_target_side_commands): Use range-based
15943 2017-03-03 Yao Qi <yao.qi@linaro.org>
15946 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15948 * valprint.c (common_val_print): Likewise.
15950 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15952 * NEWS: Mention new set/show disassembler-options commands.
15953 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15954 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15955 (prospective_options): New static variable.
15956 (gdb_disassembler::gdb_disassembler): Initialize
15957 m_di.disassembler_options.
15958 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15959 (get_disassembler_options): New function.
15960 (set_disassembler_options): Likewise.
15961 (set_disassembler_options_sfunc): Likewise.
15962 (show_disassembler_options_sfunc): Likewise.
15963 (disassembler_options_completer): Likewise.
15964 (_initialize_disasm): Likewise.
15965 * disasm.h (get_disassembler_options): New prototype.
15966 (set_disassembler_options): Likewise.
15967 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15968 (gdbarch_verify_disassembler_options): Likewise.
15969 * gdbarch.c: Regenerate.
15970 * gdbarch.h: Likewise.
15971 * arm-tdep.c (num_disassembly_options): Delete.
15972 (set_disassembly_style): Likewise.
15973 (arm_disassembler_options): New static variable.
15974 (set_disassembly_style_sfunc): Convert short style name into long
15975 option name. Call set_disassembler_options.
15976 (show_disassembly_style_sfunc): New function.
15977 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15978 set_gdbarch_verify_disassembler_options.
15979 (_initialize_arm_tdep): Delete regnames variable and update callers.
15980 (arm_disassembler_options): Initialize.
15981 (disasm_options): New variable.
15982 (num_disassembly_options): Rename from this...
15983 (num_disassembly_styles): ...to this. Compute by scanning through
15985 (valid_disassembly_styles): Initialize using disasm_options.
15986 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15987 set_arm_regname_option.
15988 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15989 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15990 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15991 set_gdbarch_verify_disassembler_options.
15992 * s390-tdep.c (s390_disassembler_options): New static variable.
15993 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15994 set_gdbarch_verify_disassembler_options.
15996 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15998 * remote.c (remote_add_target_side_condition): Remove "struct"
15999 keyword from range-based for loop.
16001 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
16003 * remote.c (remote_add_target_side_condition): Use range-based
16004 for loop. Update comment.
16006 2017-02-27 Yao Qi <yao.qi@linaro.org>
16008 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
16010 2017-02-26 Alan Hayward <alan.hayward@arm.com>
16012 * regcache.c (regcache_raw_update): New function.
16013 (regcache_raw_read): Move code to regcache_raw_update.
16014 * regcache.h (regcache_raw_update): New declaration.
16015 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16017 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16019 * dwarf2read.c (create_debug_type_hash_table): Initialize
16020 header.signature and header.type_offset_in_tu.
16022 2017-02-24 Pedro Alves <palves@redhat.com>
16024 * symtab.c (make_file_symbol_completion_list_1): Use
16025 add_symtab_completions.
16027 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16029 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16031 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16033 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16034 I386_MAX_REGISTER_SIZE.
16035 (i386_pseudo_register_write): Likewise.
16036 (i386_process_record): Likewise.
16037 * i387-tdep.c (i387_supply_xsave): Likewise.
16038 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16039 (store_register): Likewise.
16041 2017-02-23 Pedro Alves <palves@redhat.com>
16043 * ada-lang.c: Include "common/function-view.h".
16044 (ada_iterate_over_symbols): Adjust to use function_view as
16046 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16047 (ada_make_symbol_completion_list): Use a lambda.
16048 (ada_exc_search_name_matches): Delete.
16049 (name_matches_regex): New.
16050 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16051 * compile/compile-c-support.c: Include "common/function-view.h".
16052 (print_one_macro): Change prototype to accept a ui_file pointer.
16053 (write_macro_definitions): Use a lambda.
16054 * dwarf2read.c: Include "common/function-view.h".
16055 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16056 (dw2_expand_symtabs_matching): Adjust to use function_view as
16058 * language.h: Include "common/function-view.h".
16059 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16060 function_view as callback type.
16061 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16062 * linespec.c: Include "common/function-view.h".
16063 (collect_info::add_symbol): New method.
16064 (struct symbol_and_data_callback, iterate_inline_only, struct
16065 symbol_matcher_data, iterate_name_matcher): Delete.
16066 (iterate_over_all_matching_symtabs): Adjust to use function_view
16067 as callback type and lambdas.
16068 (iterate_over_file_blocks): Adjust to use function_view as
16070 (decode_compound_collector): Now a class with private fields.
16071 (decode_compound_collector::release_symbols): New method.
16072 (collect_one_symbol): Rename to...
16073 (decode_compound_collector::operator()): ... this and adjust.
16074 (lookup_prefix_sym): decode_compound_collector construction bits
16075 move to decode_compound_collector ctor. Pass the
16076 decode_compound_collector object directly as callback. Remove
16077 cleanups and use decode_compound_collector::release_symbols
16079 (symtab_collector): Now a class with private fields.
16080 (symtab_collector::release_symtabs): New method.
16081 (add_symtabs_to_list): Rename to...
16082 (symtab_collector::operator()): ... this and adjust.
16083 (collect_symtabs_from_filename): symtab_collector construction
16084 bits move to symtab_collector ctor. Pass the symtab_collector
16085 object directly as callback. Remove cleanups and use
16086 symtab_collector::release_symtabs instead.
16087 (collect_symbols): Delete.
16088 (add_matching_symbols_to_info): Use lambdas.
16089 * macrocmd.c (print_macro_callback): Delete.
16090 (info_macro_command): Use a lambda.
16091 (info_macros_command): Pass print_macro_definition as callable
16093 (print_one_macro): Remove 'ignore' parameter.
16094 (macro_list_command): Adjust.
16095 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16096 (macro_for_each_data::user_data): Delete field.
16097 (foreach_macro): Adjust to call the function_view.
16098 (macro_for_each): Adjust to use function_view as callback type.
16099 (foreach_macro_in_scope): Adjust to call the function_view.
16100 (macro_for_each_in_scope): Adjust to use function_view as callback
16102 * macrotab.h: Include "common/function-view.h".
16103 (macro_callback_fn): Declare a prototype instead of a pointer.
16104 Remove "user_data" parameter.
16105 (macro_for_each, macro_for_each_in_scope): Adjust to use
16106 function_view as callback type.
16107 * psymtab.c (partial_map_expand_apply)
16108 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16109 Adjust to use function_view as callback type and to return bool.
16110 (psym_expand_symtabs_matching): Adjust to use function_view as
16112 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16113 to use function_view as callback type and to return bool.
16114 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16116 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16118 * symfile.h: Include "common/function-view.h".
16119 (expand_symtabs_file_matcher_ftype)
16120 (expand_symtabs_symbol_matcher_ftype)
16121 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16123 (quick_symbol_functions::map_symtabs_matching_filename)
16124 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16125 function_view as callback type and return bool.
16126 (expand_symtabs_matching): Adjust to use function_view as callback
16128 (maintenance_expand_name_matcher)
16129 (maintenance_expand_file_matcher): Delete.
16130 (maintenance_expand_symtabs): Use lambdas.
16131 * symtab.c (iterate_over_some_symtabs): Adjust to use
16132 function_view as callback types and return bool.
16133 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16135 (lookup_symtab_callback): Delete.
16136 (lookup_symtab): Use a lambda.
16137 (iterate_over_symbols): Adjust to use function_view as callback
16139 (struct search_symbols_data, search_symbols_file_matches)
16140 (search_symbols_name_matches): Delete.
16141 (search_symbols): Use a pair of lambdas.
16142 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16143 (symtab_expansion_callback): Delete.
16144 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16145 * symtab.h: Include "common/function-view.h".
16146 (iterate_over_some_symtabs): Adjust to use function_view as
16147 callback type and return bool.
16148 (iterate_over_symtabs): Adjust to use function_view as callback
16150 (symbol_found_callback_ftype): Remove 'data' parameter and return
16152 (iterate_over_symbols): Adjust to use function_view as callback
16155 2017-02-23 Pedro Alves <palves@redhat.com>
16157 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16158 (%.o) <unittests/%.c>: New pattern.
16159 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16160 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16161 * common/function-view.h: New file.
16162 * unittests/function-view-selftests.c: New file.
16163 * configure: Regenerate.
16165 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16167 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16169 * go32-nat.c (go32_thread_alive): Likewise.
16171 2017-02-23 Yao Qi <yao.qi@linaro.org>
16173 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16176 2017-02-23 Yao Qi <yao.qi@linaro.org>
16178 * varobj.c (varobj_clear_saved_item): Use delete instead of
16180 (update_dynamic_varobj_children): Likewise.
16182 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16184 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16186 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16188 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16189 m_enum_value to 0 in default constructor.
16191 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16193 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16194 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16195 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16196 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16197 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16198 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16199 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16200 IS_STORE_CONDITIONAL_INSN.
16202 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16204 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16206 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16208 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16210 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16212 * dwarf2read.c (skip_one_die, read_attribute_value)
16213 (dwarf2_const_value_attr, dump_die_shallow)
16214 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16215 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16217 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16219 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16220 (dwarf_parse_macro_header): Accept DWARF version 5.
16221 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16223 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16225 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16227 * common/common-exceptions.h (enum errors): Likewise.
16228 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16229 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16230 (dwarf_expr_context::execute_stack_op): Likewise.
16231 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16233 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16234 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16235 (show_entry_values_debug, call_site_to_target_addr)
16236 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16237 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16238 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16239 (value_of_dwarf_block_entry, indirect_pieced_value)
16240 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16241 (disassemble_dwarf_expression): Likewise.
16242 * dwarf2read.c (process_die, inherit_abstract_dies)
16243 (read_call_site_scope): Likewise.
16244 * gdbtypes.h (struct func_type, struct call_site_parameter)
16245 (struct call_site): Likewise.
16246 * stack.c (read_frame_arg): Likewise.
16247 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16249 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16251 * defs.h (read_unsigned_leb128): New declaration.
16252 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16253 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16254 (dwarf2_find_location_expression): Call also
16255 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16256 * dwarf2loc.h (dwarf2_version): New declaration.
16257 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16259 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16261 (struct dwop_section_names): Add loclists_dwo.
16262 (dwop_section_names): Add .debug_loclists.dwo.
16263 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16264 (struct dwarf2_per_cu_data): Add dwarf_version.
16265 (struct dwo_sections): Add loclists.
16266 (struct attr_abbrev): Add implicit_const.
16267 (read_indirect_line_string): New declaration.
16268 (read_unsigned_leb128): Delete declaration.
16269 (rcuh_kind): New definition.
16270 (read_and_check_comp_unit_head): Change parameter
16271 is_debug_types_section to section_kind.
16272 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16273 (read_comp_unit_head): Change parameter abfd to section, add parameter
16274 section_kind. Handle DWARF-5.
16275 (error_check_comp_unit_head): Accept also DWARF version 5.
16276 (read_and_check_comp_unit_head): Change parameter
16277 is_debug_types_section to section_kind.
16278 (read_and_check_type_unit_head): Delete function.
16279 (read_abbrev_offset): Handle DWARF-5.
16280 (create_debug_type_hash_table): Add parameter section_kind. Process
16281 only DW_UT_type. Use signature and type_offset_in_tu from struct
16283 (create_debug_types_hash_table): Update create_debug_type_hash_table
16285 (create_all_type_units): Call create_debug_type_hash_table.
16286 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16287 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16289 (skip_one_die): Handle DW_FORM_implicit_const.
16290 (dwarf2_rnglists_process): New function.
16291 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16292 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16293 (read_attribute_value): Handle DW_FORM_implicit_const,
16295 (read_attribute): Handle DW_FORM_implicit_const.
16296 (read_indirect_string_at_offset_from): New function from
16297 read_indirect_string_at_offset.
16298 (read_indirect_string_at_offset): Call
16299 read_indirect_string_at_offset_from.
16300 (read_indirect_line_string_at_offset): New function.
16301 (read_indirect_string): New function comment.
16302 (read_indirect_line_string): New function.
16303 (read_unsigned_leb128): Make it global.
16304 (dwarf2_string_attr): Handle DWARF-5.
16305 (add_include_dir_stub, read_formatted_entries): New functions.
16306 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16308 (per_cu_header_read_in): Update read_comp_unit_head caller.
16309 (dwarf2_version): New function.
16310 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16312 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16315 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16317 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16319 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16321 * dwarf2read.c (dwarf2_ranges_process): New function from
16322 dwarf2_ranges_read.
16323 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16324 dwarf2_ranges_process.
16326 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16328 * dwarf2read.c (create_debug_type_hash_table): New function from
16329 create_debug_types_hash_table.
16330 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16331 (create_all_type_units, open_and_init_dwo_file): Update
16332 create_debug_types_hash_table callers.
16334 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16337 * fork-child.c (trace_start_error): Fix thinko. va_end should
16338 refer to 'ap', not 'args'.
16340 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16341 Pedro Alves <palves@redhat.com>
16344 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16346 * fork-child.c (trace_start_error): New function.
16347 (trace_start_error_with_name): Likewise.
16348 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16349 * inf-ptrace.c (inf_ptrace_me): Likewise.
16350 * inferior.h (trace_start_error): New prototype.
16351 (trace_start_error_with_name): Likewise.
16353 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16356 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16357 NULL before using it.
16358 * symmisc.c (maintenance_print_symbols): Likewise.
16359 (maintenance_print_msymbols): Likewise.
16361 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16363 * NEWS: Add record Python bindings entry.
16365 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16367 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16369 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16370 * python/py-record-btrace.c, python/py-record-btrace.h,
16371 python/py-record-full.c, python/py-record-full.h: New file.
16372 * python/py-record.c: Add include for py-record-btrace.h and
16374 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16375 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16376 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16377 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16379 (gdbpy_initialize_btrace): New export.
16380 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16382 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16384 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16385 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16386 * python/py-record.c: New file.
16387 * python/python-internal.h (gdbpy_start_recording,
16388 gdbpy_current_recording, gdpy_stop_recording,
16389 gdbpy_initialize_record): New export.
16390 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16391 (python_GdbMethods): Add gdbpy_start_recording,
16392 gdbpy_current_recording and gdbpy_stop_recording.
16394 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16396 * record-btrace.c (record_btrace_record_method): New function.
16397 (init_record_btrace_ops): Initialize to_record_method.
16398 * record-full.c (record_full_record_method): New function.
16399 (init_record_full_ops, init_record_full_core_ops): Add
16400 record_full_record_method.
16401 * record.h (enum record_method): New enum.
16402 * target-debug.h (target_debug_print_enum_record_method: New define.
16403 * target-delegates.c: Regenerate.
16404 * target.c (target_record_method): New function.
16405 * target.h: Include record.h.
16406 (struct target_ops) <to_record_method>: New field.
16407 (target_record_method): New export.
16409 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16411 * record.h (record_start, record_stop): New export.
16412 * record.c (record_start, record_stop): New function.
16414 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16416 * btrace.c (btrace_fetch): Copy function call segments pointer
16418 (btrace_clear): Clear the vector.
16419 (btrace_find_insn_by_number): Use binary search to find the correct
16420 function call segment.
16421 * btrace.h (brace_fun_p): New typedef.
16422 (struct btrace_thread_info) <functions>: New field.
16424 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16426 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16427 * btrace.c (btrace_decode_error): ... here. New function.
16428 * btrace.h (btrace_decode_error): New export.
16430 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16432 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16433 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16434 btrace_find_insn_by_number): Remove special case for gaps.
16435 * btrace.h (btrace_insn_get_error): New export.
16436 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16437 * record-btrace.c (btrace_insn_history): Print number for gaps.
16438 (record_btrace_info, record_btrace_goto): Handle gaps.
16440 2017-02-14 Tom Tromey <tom@tromey.com>
16443 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16445 * python/py-evts.c (gdbpy_initialize_py_events): Add
16446 before_prompt registry.
16447 * python/py-events.h (events_object) <before_prompt>: New field.
16449 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16451 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16453 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16455 * symfile (_initialize_symfile): Add usage text to the load command's
16458 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16460 * utils.c (defaulted_query): Don't query on secondary UIs.
16462 2017-02-10 Tom Tromey <tom@tromey.com>
16464 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16466 2017-02-10 Tom Tromey <tom@tromey.com>
16468 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16470 * python/py-type.c (typy_legacy_template_argument): Remove
16471 unnecessary "cleanup" local.
16473 2017-02-10 Tom Tromey <tom@tromey.com>
16475 * python/python.c (do_start_initialization): New function, from
16476 _initialize_python.
16477 (_initialize_python): Call do_start_initialization.
16478 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16481 2017-02-10 Tom Tromey <tom@tromey.com>
16483 * python/py-prettyprint.c (pretty_print_one_value): Use
16486 2017-02-10 Tom Tromey <tom@tromey.com>
16488 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16489 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16491 * python/py-type.c (field_new): Use gdbpy_ref.
16492 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16494 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16495 (py_free_pspace): Likewise.
16496 (pspace_to_pspace_object): Likewise.
16497 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16498 (py_free_objfile): Likewise.
16499 (objfile_to_objfile_object): Likewise.
16500 * python/py-inferior.c (delete_thread_object): Use
16502 (infpy_read_memory): Likewise.
16503 (py_free_inferior): Likewise.
16504 * python/py-evtregistry.c (create_eventregistry_object): Use
16506 * python/py-event.c (create_event_object): Use gdbpy_ref.
16508 2017-02-10 Tom Tromey <tom@tromey.com>
16510 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16511 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16513 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16514 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16515 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16516 python/py-framefilter.c, python/py-function.c,
16517 python/py-inferior.c, python/py-infevents.c,
16518 python/py-linetable.c, python/py-newobjfileevent.c,
16519 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16520 python/py-signalevent.c, python/py-stopevent.c,
16521 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16522 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16523 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16524 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16526 2017-02-10 Tom Tromey <tom@tromey.com>
16528 * ui-out.h (ui_out_emit_type): New class.
16529 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16530 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16531 and ui_out_emit_tuple.
16532 (enumerate_locals): Likewise.
16533 (py_mi_print_variables, py_print_locals, py_print_args): Use
16535 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16537 * common/gdb_optional.h: New file.
16539 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16541 * MAINTAINERS (Write After Approval): Update my e-mail address.
16543 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16546 * breakpoint.c (_initialize_breakpoint): Update the help description
16547 of the 'commands' command to indicate that it takes a list argument.
16549 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16551 * interps.c (current_interp_set_logging): Remove "return".
16553 2017-02-09 Gary Benson <gbenson@redhat.com>
16555 * symtab.c (add_symtab_completions): Prevent NULL pointer
16558 2017-02-08 Pedro Alves <palves@redhat.com>
16560 * interps.c (interp::interp): Remove reference to quiet_p.
16561 (interp_set): Make static. Remove dead "Switching to" output
16563 (interp_quiet_p, interp_set_quiet): Delete.
16564 (interpreter_exec_cmd): Don't set the interpreter quiet.
16565 * interps.h (interp_quiet_p): Make static.
16566 (class interp) <quiet_p>: Remove field
16568 2017-02-08 Jerome Guitton <guitton@adacore.com>
16570 * cli/cli-decode.c (find_command_name_length): Make it extern.
16571 * cli/cli-decode.h (find_command_name_length): Declare.
16572 * cli/cli-script.c (command_name_equals, line_first_arg):
16574 (process_next_line): Use cli-decode to parse command names.
16575 (build_command_line): Make args a constant pointer.
16577 2017-02-08 Jerome Guitton <guitton@adacore.com>
16579 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16580 Remove case-insensitive search.
16582 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16584 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16585 at the end of the line. Avoids an ARI warning.
16587 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16589 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16590 rdseed instructions.
16591 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16593 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16596 Provide and use sparc32 and sparc64 target description XML files.
16597 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16598 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16599 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16600 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16601 * features/sparc/sparc32-solaris.xml: New file.
16602 * features/sparc/sparc64-solaris.xml: New file.
16603 * features/sparc/sparc32-solaris.c: Generated.
16604 * features/sparc/sparc64-solaris.c: Generated.
16605 * sparc-tdep.h: Account for differences in target descriptions.
16606 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16607 (sparc32_register_type): Use target provided registers.
16608 (validate_tdesc_registers): New function.
16609 (sparc32_gdbarch_init): Use tdesc_has_registers.
16610 Set pseudoregister functions.
16611 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16612 (sparc64_register_type): Use target provided registers.
16613 (sparc64_init_abi): Set pseudoregister functions.
16615 2017-02-03 Tom Tromey <tom@tromey.com>
16618 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16619 with a single member.
16621 2017-02-03 Pedro Alves <palves@redhat.com>
16623 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16624 (cli_interp_base::~cli_interp_base): New.
16625 (cli_interp): New struct.
16626 (as_cli_interp): Cast the interp itself to cli_interp.
16627 (cli_interpreter_pre_command_loop): Rename to ...
16628 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16630 (cli_interpreter_init): Rename to ...
16631 (cli_interp::init): ... this. Remove 'self' parameter. Use
16632 boolean. Make extern.
16633 (cli_interpreter_resume): Rename to ...
16634 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16636 (cli_interpreter_suspend): Rename to ...
16637 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16639 (cli_interpreter_exec): Rename to ...
16640 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16642 (cli_interpreter_supports_command_editing): Rename to ...
16643 (cli_interp_base::supports_command_editing): ... this. Remove
16644 'interp' parameter. Make extern.
16645 (cli_ui_out): Rename to ...
16646 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16648 (cli_set_logging): Rename to ...
16649 (cli_interp_base::set_logging): ... this. Remove 'interp'
16650 parameter. Make extern.
16651 (cli_interp_procs): Delete.
16652 (cli_interp_factory): Adjust to use "new".
16653 * cli/cli-interp.h: Include "interps.h".
16654 (struct cli_interp_base): New struct.
16655 * interps.c (struct interp): Delete. Fields moved to interps.h.
16656 (interp_new): Delete.
16657 (interp::interp, interp::~interp): New.
16658 (interp_set): Use bool, and return void. Assume the interpreter
16659 has suspend, init and resume methods, and that the all return
16661 (set_top_level_interpreter): interp_set returns void.
16662 (interp_ui_out): Adapt.
16663 (current_interp_set_logging): Adapt.
16664 (interp_data): Delete.
16665 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16666 (interp_exec): Adapt.
16667 (top_level_interpreter_data): Delete.
16668 * interps.h (interp_init_ftype, interp_resume_ftype)
16669 (interp_suspend_ftype, interp_exec_ftype)
16670 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16671 (class interp): New.
16672 (interp_new): Delete.
16673 (interp_set): Now returns void. Use bool.
16674 (interp_data, top_level_interpreter_data): Delete.
16675 * mi/mi-common.h: Include interps.h.
16676 (class mi_interp): Inherit from interp. Define a ctor. Declare
16677 init, resume, suspect, exec, interp_ui_out, set_logging and
16678 pre_command_loop methods.
16679 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16680 (mi_interpreter_init): Rename to ...
16681 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16682 bool, return void and make extern. Adjust.
16683 (mi_interpreter_resume): ... Rename to ...
16684 (mi_interp::resume): ... this. Remove the 'data' parameter,
16685 return void and make extern. Adjust.
16686 (mi_interpreter_suspend): ... Rename to ...
16687 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16688 return void and make extern. Adjust.
16689 (mi_interpreter_exec): ... Rename to ...
16690 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16692 (mi_interpreter_pre_command_loop): ... Rename to ...
16693 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16694 parameter and make extern.
16695 (mi_on_normal_stop_1): Adjust.
16696 (mi_ui_out): Rename to ...
16697 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16698 parameter and make extern. Adjust.
16699 (mi_set_logging): Rename to ...
16700 (mi_interp::set_logging): ... this. Remove the 'interp'
16701 parameter and make extern. Adjust.
16702 (mi_interp_procs): Delete.
16703 (mi_interp_factory): Adjust to use 'new'.
16704 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16705 (mi_print_exception, mi_execute_command, mi_load_progress):
16707 * tui/tui-interp.c (tui_interp): New class.
16708 (as_tui_interp): Return a tui_interp pointer.
16709 (tui_on_normal_stop, tui_on_signal_received)
16710 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16711 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16712 to use interp::interp_ui_out.
16713 (tui_init): Rename to ...
16714 (tui_interp::init): ... this. Remove the 'self' parameter, use
16715 bool, return void and make extern. Adjust.
16716 (tui_resume): Rename to ...
16717 (tui_interp::resume): ... this. Remove the 'data' parameter,
16718 return void and make extern. Adjust.
16719 (tui_suspend): Rename to ...
16720 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16721 return void and make extern. Adjust.
16722 (tui_ui_out): Rename to ...
16723 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16724 parameter, and make extern. Adjust.
16725 (tui_exec): Rename to ...
16726 (tui_interp::exec): ... this. Remove the 'data' parameter and
16728 (tui_interp_procs): Delete.
16729 (tui_interp_factory): Use "new".
16731 2017-02-02 Tom Tromey <tom@tromey.com>
16733 * rust-exp.y (ends_raw_string, space_then_number)
16734 (rust_identifier_start_p): Return bool.
16735 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16736 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16737 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16738 (rust_chartype_p): Return bool.
16739 (val_print_struct, rust_print_struct_def, rust_print_type):
16741 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16744 2017-02-02 Tom Tromey <tom@tromey.com>
16746 * rust-lang.c: Reindent.
16748 2017-02-02 Tom Tromey <tom@tromey.com>
16750 * rust-lang.h (rust_crate_for_block): Update.
16751 * rust-lang.c (rust_crate_for_block): Return std::string.
16752 (rust_get_disr_info): Use std:;string, not
16753 gdb::unique_xmalloc_ptr.
16754 * rust-exp.y (crate_name): Update.
16756 2017-02-02 Pedro Alves <palves@redhat.com>
16758 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16759 field out of gdb_disassembler_test and make it static.
16761 2017-02-02 Pedro Alves <palves@redhat.com>
16763 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16764 mi1_interp and mi_interp fields.
16766 2017-02-02 Pedro Alves <palves@redhat.com>
16768 * cli/cli-interp.c (struct saved_output_files, saved_output):
16769 Moved from cli/cli-logging.c.
16770 (cli_set_logging): New function.
16771 (cli_interp_procs): Install cli_set_logging.
16772 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16774 * cli/cli-logging.c (struct saved_output_files, saved_output):
16775 Moved to cli/cli-interp.c.
16776 (pop_output_files): Don't save outputs here.
16777 (make_logging_output): New function.
16778 (handle_redirections): Don't build tee nor save previous outputs
16780 * interps.c (current_interp_set_logging): Change prototype.
16781 Assume there's always a set_logging_proc method installed.
16782 * interps.h (interp_set_logging_ftype): Change prototype.
16783 (current_interp_set_logging): Change prototype and adjust comment.
16784 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16785 use make_logging_output.
16786 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16787 2017-02-02 Pedro Alves <palves@redhat.com>
16789 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16791 (set_logging_overwrite): ... here.
16792 (logging_no_redirect_file): Delete.
16793 (set_logging_redirect): Don't handle redirection on the fly.
16794 Instead warn that "logging off" / "logging on" is necessary.
16795 (pop_output_files): Delete references to logging_no_redirect_file.
16796 (show_logging_command): Always speak in terms of what will happen
16797 once logging is reenabled.
16799 2017-02-02 Pedro Alves <palves@redhat.com>
16801 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16803 2017-02-02 Pedro Alves <palves@redhat.com>
16805 * disasm.c (gdb_pretty_print_insn): Rename to ...
16806 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16807 Remove gdbarch parameter. Adapt to clear the object's buffers
16808 instead of allocating new buffers, and to print using the object's
16809 gdb_disassembler instead of calling gdb_print_insn.
16810 (dump_insns): Use gdb_pretty_print_disassembler.
16811 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16812 (gdb_pretty_print_disassembler): New class.
16813 * record-btrace.c (btrace_insn_history): Use
16814 gdb_pretty_print_disassembler.
16816 2017-02-02 Pedro Alves <palves@redhat.com>
16818 * ada-lang.c (type_as_string): Use string_file.
16819 * ada-valprint.c (ada_print_floating): Use string_file.
16820 * ada-varobj.c (ada_varobj_scalar_image)
16821 (ada_varobj_get_value_image): Use string_file.
16822 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16823 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16824 * breakpoint.c (update_inserted_breakpoint_locations)
16825 (insert_breakpoint_locations, reattach_breakpoints)
16826 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16827 (print_it_watchpoint): Use string_file.
16828 (save_breakpoints): Use stdio_file.
16829 * c-exp.y (oper): Use string_file.
16830 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16832 (pop_output_files): Use delete.
16833 (handle_redirections): Use stdio_file and tee_file.
16834 * cli/cli-setshow.c (do_show_command): Use string_file.
16835 * compile/compile-c-support.c (c_compute_program): Use
16837 * compile/compile-c-symbols.c (generate_vla_size): Take a
16838 'string_file &' instead of a 'ui_file *'.
16839 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16840 of a 'ui_file *'. Use string_file.
16841 (generate_c_for_variable_locations): Take a 'string_file &'
16842 instead of a 'ui_file *'.
16843 * compile/compile-internal.h (generate_c_for_for_one_variable):
16844 Take a 'string_file &' instead of a 'ui_file *'.
16845 * compile/compile-loc2c.c (push, pushf, unary, binary)
16846 (print_label, pushf_register_address, pushf_register)
16847 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16848 'ui_file *'. Adjust.
16849 * compile/compile.c (compile_to_object): Use string_file.
16850 * compile/compile.h (compile_dwarf_expr_to_c)
16851 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16853 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16854 (replace_typedefs_qualified_name): Use string_file and
16856 * disasm.c (gdb_pretty_print_insn): Use string_file.
16857 (gdb_disassembly): Adjust reference the null_stream global.
16858 (do_ui_file_delete): Delete.
16859 (gdb_insn_length): Use null_stream.
16860 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16861 * dwarf2loc.c (dwarf2_compile_property_to_c)
16862 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16863 'string_file &' instead of a 'ui_file *'.
16864 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16865 * dwarf2read.c (do_ui_file_peek_last): Delete.
16866 (dwarf2_compute_name): Use string_file.
16867 * event-top.c (gdb_setup_readline): Use stdio_file.
16868 * gdbarch.sh (verify_gdbarch): Use string_file.
16869 * gdbtypes.c (safe_parse_type): Use null_stream.
16870 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16872 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16873 'string_file *' instead of a 'ui_file *'.
16874 (gdbscm_arch_disassemble): Use string_file.
16875 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16876 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16877 inherits from ui_file.
16878 (ioscm_file_port_delete, ioscm_file_port_rewind)
16879 (ioscm_file_port_put): Delete.
16880 (ioscm_file_port_write): Rename to ...
16881 (ioscm_file_port::write): ... this. Remove file_port_magic
16883 (ioscm_file_port_new): Delete.
16884 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16886 * guile/scm-type.c (tyscm_type_name): Use string_file.
16887 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16889 * infcmd.c (print_return_value_1): Use string_file.
16890 * infrun.c (print_target_wait_results): Use string_file.
16891 * language.c (add_language): Use string_file.
16892 * location.c (explicit_to_string_internal): Use string_file.
16893 * main.c (captured_main_1): Use null_file.
16894 * maint.c (maintenance_print_architecture): Use stdio_file.
16895 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16896 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16897 event_channel>: Change type to mi_console_file pointer.
16898 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16899 (mi_console_file_delete): Delete.
16900 (struct mi_console_file): Delete.
16901 (mi_console_file_magic): Delete.
16902 (mi_console_file_new): Delete.
16903 (mi_console_file::mi_console_file): New.
16904 (mi_console_file_delete): Delete.
16905 (mi_console_file_fputs): Delete.
16906 (mi_console_file::write): New.
16907 (mi_console_raw_packet): Delete.
16908 (mi_console_file::flush): New.
16909 (mi_console_file_flush): Delete.
16910 (mi_console_set_raw): Rename to ...
16911 (mi_console_file::set_raw): ... this.
16912 * mi/mi-console.h (class mi_console_file): New class.
16913 (mi_console_file_new, mi_console_set_raw): Delete.
16914 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16915 (mi_set_logging): Use delete and tee_file. Adjust.
16916 * mi/mi-main.c (output_register): Use string_file.
16917 (mi_cmd_data_evaluate_expression): Use string_file.
16918 (mi_cmd_data_read_memory): Use string_file.
16919 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16920 * mi/mi-out.c (mi_ui_out::main_stream): New.
16921 (mi_ui_out::rewind): Use main_stream and
16923 (mi_ui_out::put): Use main_stream and string_file.
16924 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16925 Allocate a 'string_file' instead.
16926 (mi_out_new): Don't allocate a mem_fileopen stream here.
16927 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16928 (mi_ui_out::main_stream): Declare method.
16929 * printcmd.c (eval_command): Use string_file.
16930 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16931 * python/py-arch.c (archpy_disassemble): Use string_file.
16932 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16933 * python/py-frame.c (frapy_str): Use string_file.
16934 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16936 * python/py-type.c (typy_str): Use string_file.
16937 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16938 * python/py-value.c (valpy_str): Use string_file.
16939 * record-btrace.c (btrace_insn_history): Use string_file.
16940 * regcache.c (regcache_print): Use stdio_file.
16941 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16942 * remote.c (escape_buffer): Use string_file.
16943 * rust-lang.c (rust_get_disr_info): Use string_file.
16944 * serial.c (serial_open_ops_1): Use stdio_file.
16945 (do_serial_close): Use delete.
16946 * stack.c (print_frame_arg): Use string_file.
16947 (print_frame_args): Remove local mem_fileopen stream, not used.
16948 (print_frame): Use string_file.
16949 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16950 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16951 Take a 'string_file *' instead of a 'ui_file *'.
16952 * top.c (new_ui): Use stdio_file and stderr_file.
16953 (free_ui): Use delete.
16954 (execute_command_to_string): Use string_file.
16955 (quit_confirm): Use string_file.
16956 * tracepoint.c (collection_list::append_exp): Use string_file.
16957 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16958 * tui/tui-file.c: Don't include "ui-file.h".
16959 (enum streamtype, struct tui_stream): Delete.
16960 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16961 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16962 (tui_file::tui_file): New method.
16963 (tui_file_fputs): Delete.
16964 (tui_file_get_strbuf): Delete.
16965 (tui_file::puts): New method.
16966 (tui_file_adjust_strbuf): Delete.
16967 (tui_file_flush): Delete.
16968 (tui_file::flush): New method.
16969 * tui/tui-file.h: Tweak intro comment.
16971 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16972 (tui_file_adjust_strbuf): Delete declarations.
16973 (class tui_file): New class.
16974 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16975 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16976 (tui_register_format): Use string_stream.
16977 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16978 (tui_get_function_from_frame): Use string_file.
16979 * typeprint.c (type_to_string): Use string_file.
16980 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16981 (null_stream): New global.
16982 (ui_file_delete): Delete.
16983 (ui_file::ui_file): New.
16984 (null_file_isatty): Delete.
16985 (ui_file::~ui_file): New.
16986 (null_file_rewind): Delete.
16987 (ui_file::printf): New.
16988 (null_file_put): Delete.
16989 (null_file_flush): Delete.
16990 (ui_file::putstr): New.
16991 (null_file_write): Delete.
16992 (ui_file::putstrn): New.
16993 (null_file_read): Delete.
16994 (ui_file::putc): New.
16995 (null_file_fputs): Delete.
16996 (null_file_write_async_safe): Delete.
16997 (ui_file::vprintf): New.
16998 (null_file_delete): Delete.
16999 (null_file::write): New.
17000 (null_file_fseek): Delete.
17001 (null_file::puts): New.
17002 (ui_file_data): Delete.
17003 (null_file::write_async_safe): New.
17004 (gdb_flush, ui_file_isatty): Adjust.
17005 (ui_file_put, ui_file_rewind): Delete.
17006 (ui_file_write): Adjust.
17007 (ui_file_write_for_put): Delete.
17008 (ui_file_write_async_safe, ui_file_read): Adjust.
17009 (ui_file_fseek): Delete.
17010 (fputs_unfiltered): Adjust.
17011 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
17012 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
17013 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
17014 (set_ui_file_data): Delete.
17015 (string_file::~string_file, string_file::write)
17016 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17017 (do_ui_file_as_string, ui_file_as_string): Delete.
17018 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17019 (struct mem_file): Delete.
17020 (mem_file_new): Delete.
17021 (stdio_file::stdio_file): New.
17022 (mem_file_delete): Delete.
17023 (stdio_file::stdio_file): New.
17024 (mem_fileopen): Delete.
17025 (stdio_file::~stdio_file): New.
17026 (mem_file_rewind): Delete.
17027 (stdio_file::set_stream): New.
17028 (mem_file_put): Delete.
17029 (stdio_file::open): New.
17030 (mem_file_write): Delete.
17031 (stdio_file_magic, struct stdio_file): Delete.
17032 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17033 (stdio_file::flush): New.
17034 (stdio_file_read): Rename to ...
17035 (stdio_file::read): ... this. Adjust.
17036 (stdio_file_write): Rename to ...
17037 (stdio_file::write): ... this. Adjust.
17038 (stdio_file_write_async_safe): Rename to ...
17039 (stdio_file::write_async_safe) ... this. Adjust.
17040 (stdio_file_fputs): Rename to ...
17041 (stdio_file::puts) ... this. Adjust.
17042 (stdio_file_isatty): Delete.
17043 (stdio_file_fseek): Delete.
17044 (stdio_file::isatty): New.
17045 (stderr_file_write): Rename to ...
17046 (stderr_file::write) ... this. Adjust.
17047 (stderr_file_fputs): Rename to ...
17048 (stderr_file::puts) ... this. Adjust.
17049 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17050 (stderr_file::stderr_file): New.
17051 (tee_file_magic): Delete.
17052 (struct tee_file): Delete.
17053 (tee_file::tee_file): New.
17054 (tee_file_new): Delete.
17055 (tee_file::~tee_file): New.
17056 (tee_file_delete): Delete.
17057 (tee_file_flush): Rename to ...
17058 (tee_file::flush): ... this. Adjust.
17059 (tee_file_write): Rename to ...
17060 (tee_file::write): ... this. Adjust.
17061 (tee_file::write_async_safe): New.
17062 (tee_file_fputs): Rename to ...
17063 (tee_file::puts): ... this. Adjust.
17064 (tee_file_isatty): Rename to ...
17065 (tee_file::isatty): ... this. Adjust.
17066 * ui-file.h (struct obstack, struct ui_file): Don't
17068 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17069 (ui_file_write_ftype)
17070 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17071 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17072 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17073 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17074 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17075 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17076 (set_ui_file_fseek): Delete.
17077 (ui_file_data, ui_file_delete, ui_file_rewind)
17078 (struct ui_file): New.
17080 (class null_file): New.
17081 (null_stream): Declare.
17082 (ui_file_write_for_put, ui_file_put): Delete.
17083 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17085 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17086 (gdb_fopen, tee_file_new): Delete.
17087 (struct string_file): New.
17088 (struct stdio_file): New.
17089 (stdio_file_up): New.
17090 (struct stderr_file): New.
17091 (class tee_file): New.
17092 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17093 of a 'ui_file *'. Adjust.
17094 * ui-out.h (class ui_out) <field_stream>: Likewise.
17095 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17096 (null_stream): Delete.
17097 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17099 * utils.h (struct ui_file): Delete forward declaration..
17100 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17101 (error_stream): Take a 'string_file &' instead of a
17103 * varobj.c (varobj_value_get_print_value): Use string_file.
17104 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17105 * gdbarch.c: Regenerate.
17107 2017-02-02 Pedro Alves <palves@redhat.com>
17109 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17110 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17111 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17112 Adjust to call gdb_print_insn instead of
17113 gdb_disassembler::print_insn.
17114 (dump_insns, do_mixed_source_and_assembly_deprecated)
17115 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17116 'gdbarch' parameter. Remove gdb_disassembler parameter.
17117 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17118 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17120 (gdb_pretty_print_insn): Re-add declaration.
17121 * record-btrace.c (btrace_insn_history): Don't allocate a
17122 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17124 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17126 * disasm.h (gdb_disassembly): Remove file_string parameter.
17127 * disasm.c (gdb_disassembly): Likewise.
17128 * cli/cli-cmds.c (print_disassembly): Adapt.
17129 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17130 * stack.c (do_gdb_disassembly): Likewise.
17132 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17134 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17135 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17136 targets. And if the implicit value is longer than needed, extract
17137 the first bytes instead of the "least significant" ones.
17139 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17141 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17142 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17143 (btrace_fetch): Assert can_access_registers_ptid.
17144 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17145 validate_registers_access.
17147 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17149 * gdbthread.h (can_access_registers_ptid): New.
17150 * thread.c (can_access_registers_ptid): New.
17152 2017-02-01 Pedro Alves <palves@redhat.com>
17154 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17156 2017-01-31 Pedro Alves <palves@redhat.com>
17158 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17161 2017-01-31 Pedro Alves <palves@redhat.com>
17163 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17166 2017-01-31 Pedro Alves <palves@redhat.com>
17168 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17170 2017-01-31 Pedro Alves <palves@redhat.com>
17172 * common/scoped_restore.h
17173 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17174 change the value's parameter type to T2.
17175 (make_scoped_restore): Likewise.
17177 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17178 Richard Henderson <rth@redhat.com>
17180 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17181 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17182 GS_BASE for older kernels.
17183 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17184 GS_BASE for older kernels.
17185 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17186 and GS_BASE to the offset table.
17187 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17188 system register group.
17189 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17191 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17193 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17194 AMD64_GSBASE_REGNUM.
17195 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17196 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17197 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17198 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17199 i386/64bit-segments.xml in those rules.
17200 * features/i386/64bit-segments.xml: New file.
17201 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17202 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17203 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17204 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17205 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17206 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17207 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17208 * features/i386/amd64-avx-linux.c: Regenerated.
17209 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17210 * features/i386/amd64-avx-mpx.c: Regenerated.
17211 * features/i386/amd64-avx512-linux.c: Regenerated.
17212 * features/i386/amd64-linux.c: Regenerated.
17213 * features/i386/amd64-mpx-linux.c: Regenerated.
17214 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17215 * features/i386/i386-avx-mpx.c: Regenerated.
17216 * features/i386/x32-avx-linux.c: Regenerated.
17217 * features/i386/x32-avx512-linux.c: Regenerated.
17218 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17219 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17220 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17221 * regformats/i386/amd64-linux.dat: Regenerated.
17222 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17223 * regformats/i386/x32-avx-linux.dat: Regenerated.
17224 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17225 * regformats/i386/x32-linux.dat: Regenerated.
17227 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17229 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17230 Set to AMD64_NUM_REGS.
17232 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17234 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17235 that checks validity of a register number.
17237 2017-01-27 Kees Cook <keescook@google.com>
17239 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17240 fetch_fpregs if target has fpa registers.
17241 (arm_linux_store_inferior_registers): Call store_fpregs if target
17244 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17246 * cris-tdep.c (cris_gdbarch_init): Remove check for
17247 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17249 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17251 * corelow.c (get_core_register_section): Check for regset
17252 existence before checking for REGSET_VARIABLE_SIZE.
17254 2017-01-26 Yao Qi <yao.qi@linaro.org>
17255 Pedro Alves <palves@redhat.com>
17258 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17259 call memory_error, save memaddr instead.
17260 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17261 negative, cal memory_error.
17262 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17264 2017-01-26 Yao Qi <yao.qi@linaro.org>
17266 * disasm-selftests.c (memory_error_test): New function.
17267 (_initialize_disasm_selftests): Register memory_error_test.
17269 2017-01-26 Yao Qi <yao.qi@linaro.org>
17271 * Makefile.in (SFILES): Add disasm-selftests.c and
17273 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17274 * disasm-selftests.c: New file.
17275 * selftest-arch.c: New file.
17276 * selftest-arch.h: New file.
17278 2017-01-26 Yao Qi <yao.qi@linaro.org>
17280 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17281 to bfd_arch_mep. Don't return 0 if section is not
17282 found. Call print_insn_mep.
17284 2017-01-26 Pedro Alves <palves@redhat.com>
17285 Yao Qi <yao.qi@linaro.org>
17287 * arm-tdep.c: Include "disasm.h".
17288 (gdb_print_insn_arm): Update code to get gdbarch.
17289 * disasm.c (dis_asm_read_memory): Change it to
17290 gdb_disassembler::dis_asm_read_memory.
17291 (dis_asm_memory_error): Likewise.
17292 (dis_asm_print_address): Likewise.
17293 (gdb_pretty_print_insn): Change it to
17294 gdb_disassembler::pretty_print_insn.
17295 (dump_insns): Add one argument gdb_disassemlber. All
17297 (do_mixed_source_and_assembly_deprecated): Likewise.
17298 (do_mixed_source_and_assembly): Likewise.
17299 (do_assembly_only): Likewise.
17300 (gdb_disassembler::gdb_disassembler): New.
17301 (gdb_disassembler::print_insn): New.
17302 * disasm.h (class gdb_disassembler): New.
17303 (gdb_pretty_print_insn): Remove declaration.
17304 (gdb_disassemble_info): Likewise.
17305 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17306 (gdbscm_disasm_read_memory_worker): Update.
17307 (gdbscm_disasm_read_memory): Update.
17308 (gdbscm_disasm_memory_error): Remove.
17309 (gdbscm_disasm_print_address): Remove.
17310 (gdbscm_disassembler::gdbscm_disassembler): New.
17311 (gdbscm_print_insn_from_port): Update.
17312 * mips-tdep.c: Include disasm.h.
17313 (gdb_print_insn_mips): Update code to get gdbarch.
17314 * record-btrace.c (btrace_insn_history): Update.
17315 * spu-tdep.c: Include disasm.h.
17316 (struct spu_dis_asm_data): Remove.
17317 (struct spu_dis_asm_info): New.
17318 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17320 (gdb_print_insn_spu): Cast disassemble_info to
17323 2017-01-26 Yao Qi <yao.qi@linaro.org>
17325 * disasm.c (do_ui_file_delete): Delete.
17326 (gdb_insn_length): Move code creating stream to ...
17327 * utils.c (null_stream): ... here. New function.
17328 * utils.h (null_stream): Declare.
17330 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17332 * python/py-inferior.c (find_thread_object): Return directly
17333 from the loop. Remove "found" variable.
17335 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17337 GDB 7.12.1 released.
17339 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17341 * python/py-function.c (fnpy_call): Reorder declarations to have
17342 the gdbpy_enter object declared first.
17343 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17345 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17348 * python/python-internal.h (PyMem_RawMalloc): Define for
17350 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17351 PyMem_RawMalloc instead of PyMem_Malloc.
17353 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17354 Luis Machado <lgustavo@codesourcery.com>
17356 * NEWS (New commands): Mention flash-erase.
17357 (New MI commands): Mention target-flash-erase.
17358 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17360 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17361 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17362 * target.c (flash_erase_command): New function.
17363 (initialize_targets): Add new flash-erase command.
17364 * target.h (flash_erase_command): New declaration.
17366 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17368 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17369 HAVE_SYS_PROCFS_H is defined.
17371 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17373 * remote.c (struct cached_reg): Change data into a pointer.
17374 * (stop_reply_dtr): Free data pointers before deleting vector.
17375 (process_stop_reply): Likewise.
17376 (remote_parse_stop_reply): Allocate space for data
17378 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17380 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17382 (amd64_pseudo_register_read_value): Likewise.
17383 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17384 (store_register_using_P): Likewise.
17385 * regcache.c (regcache_xfer_part): Likewise.
17387 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17389 Split real and pseudo registers.
17390 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17391 (sparc32_pseudo_regnum): New enum.
17392 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17393 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17394 (SPARC32_CP0_REGISTERS): New macro.
17395 (sparc32_pseudo_register_name): New function.
17396 (sparc32_register_name): Use sparc32_pseudo_register_name.
17397 (sparc32_pseudo_register_type): New function.
17398 (sparc32_register_type): Use sparc32_pseudo_register_type.
17399 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17400 pseudo register numbers.
17401 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17402 (SPARC64_CP0_REGISTERS): New macro.
17403 (sparc64_pseudo_register_name): New function.
17404 (sparc64_register_name): Use sparc64_pseudo_register_name.
17405 (sparc64_pseudo_register_type): New function.
17406 (sparc64_register_type): Use sparc64_pseudo_register_type.
17407 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17408 pseudo register numbers.
17409 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17410 sparc64_store_arguments): Handle pseudo register numbers.
17412 2017-01-13 Yao Qi <yao.qi@linaro.org>
17414 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17415 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17417 (getpkt_or_notif_sane_1): Likewise.
17419 2017-01-13 Yao Qi <yao.qi@linaro.org>
17421 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17422 of CC. Pass "-x c++-header" instead of "-x c".
17424 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17426 * remote.c (remote_can_async_p): Update comment.
17428 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17430 * linux-nat.c (linux_nat_can_async_p): Update comment.
17432 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17434 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17436 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17438 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17440 2017-01-10 Tom Tromey <tom@tromey.com>
17442 * python/py-type.c (typy_legacy_template_argument): Update.
17443 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17444 ~demangle_parse_info): Declare new members.
17445 (cp_demangled_name_to_comp): Return unique_ptr.
17446 (cp_demangled_name_parse_free)
17447 (make_cleanup_cp_demangled_name_parse_free)
17448 (cp_new_demangle_parse_info): Remove.
17449 * cp-support.c (do_demangled_name_parse_free_cleanup)
17450 (make_cleanup_cp_demangled_name_parse_free): Remove.
17451 (inspect_type, cp_canonicalize_string_full)
17452 (cp_canonicalize_string): Update.
17453 (mangled_name_to_comp): Change return type.
17454 (cp_class_name_from_physname, method_name_from_physname)
17455 (cp_func_name, cp_remove_params): Update.
17456 * cp-name-parser.y (demangle_parse_info): New constructor, from
17457 cp_new_demangle_parse_info.
17458 (~demangle_parse_info): New destructor, from
17459 cp_demangled_name_parse_free.
17460 (cp_merge_demangle_parse_infos): Update.
17461 (cp_demangled_name_to_comp): Change return type.
17463 2017-01-10 Tom Tromey <tom@tromey.com>
17465 * top.c (prevent_dont_repeat): Change return type.
17466 * python/python.c (execute_gdb_command): Use std::string.
17468 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17469 * command.h (prevent_dont_repeat): Change return type.
17470 * breakpoint.c (bpstat_do_actions_1): Update.
17472 2017-01-10 Tom Tromey <tom@tromey.com>
17474 * value.h (scoped_value_mark::~scoped_value_mark): Call
17476 (scoped_value_mark::free_to_mark): New method.
17477 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17480 2017-01-10 Tom Tromey <tom@tromey.com>
17482 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17483 (valpy_reference_value, valpy_const_value, valpy_get_address)
17484 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17485 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17486 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17487 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17489 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17490 * value.h (scoped_value_mark): New class.
17492 2017-01-10 Tom Tromey <tom@tromey.com>
17494 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17495 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17496 * psymtab.c (discard_psymtabs_upto): Remove.
17497 (make_cleanup_discard_psymtabs): Remove.
17498 (struct psymtab_state): Remove.
17500 2017-01-10 Tom Tromey <tom@tromey.com>
17502 * record-full.c (record_full_save_cleanups): Remove.
17503 (record_full_save): Use gdb::unlinker.
17504 * gcore.c (do_bfd_delete_cleanup): Remove.
17505 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17507 * dwarf2read.c (unlink_if_set): Remove.
17508 (write_psymtabs_to_index): Use gdb::unlinker.
17509 * common/gdb_unlinker.h: New file.
17511 2017-01-10 Tom Tromey <tom@tromey.com>
17513 * windows-tdep.c (windows_xfer_shared_library): Update.
17514 * windows-nat.c (windows_make_so): Update.
17515 * utils.h (make_cleanup_bfd_unref): Remove.
17516 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17517 * symfile.h (symfile_bfd_open)
17518 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17519 * symfile.c (read_symbols, symbol_file_add)
17520 (separate_debug_file_exists): Update.
17521 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17522 (generic_load, reread_symbols): Update.
17523 * symfile-mem.c (symbol_file_add_from_memory): Update.
17524 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17525 (spu_symbol_file_add_from_memory): Update.
17526 * solist.h (struct target_so_ops) <bfd_open>: Return
17528 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17529 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17531 (solib_map_sections, reload_shared_libraries_1): Update.
17532 * solib-svr4.c (enable_break): Update.
17533 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17534 * solib-frv.c (enable_break2): Update.
17535 * solib-dsbt.c (enable_break): Update.
17536 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17538 (darwin_solib_get_all_image_info_addr_at_init): Update.
17539 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17540 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17541 * record-full.c (record_full_save): Update.
17542 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17543 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17544 * minidebug.c (find_separate_debug_file_in_section): Return
17546 * machoread.c (macho_add_oso_symfile): Change abfd to
17548 (macho_symfile_read_all_oso): Update.
17549 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17550 (macho_symfile_read): Update.
17551 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17552 (jit_bfd_try_read_symtab): Update.
17553 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17554 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17555 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17557 (gdb_bfd_ref_policy): New struct.
17558 (gdb_bfd_ref_ptr): New typedef.
17559 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17560 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17561 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17563 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17564 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17565 (gcore_command): Update.
17566 * exec.c (exec_file_attach): Update.
17567 * elfread.c (elf_symfile_read): Update.
17568 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17569 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17570 (open_and_init_dwo_file): Update.
17571 (open_dwp_file): Return gdb_bfd_ref_ptr.
17572 (open_and_init_dwp_file): Update.
17573 * corelow.c (core_open): Update.
17574 * compile/compile-object-load.c (compile_object_load): Update.
17575 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17576 * coffread.c (coff_symfile_read): Update.
17577 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17578 gdb_bfd_ref_ptr. Rename.
17579 (dump_bfd_file, restore_command): Update.
17580 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17581 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17582 (find_separate_debug_file_by_buildid): Update.
17584 2017-01-10 Tom Tromey <tom@tromey.com>
17586 * common/gdb_ref_ptr.h: New file.
17587 * python/py-ref.h (struct gdbpy_ref_policy): New.
17588 (gdbpy_ref): Now a typedef.
17590 2017-01-10 Tom Tromey <tom@tromey.com>
17592 * utils.h (make_cleanup_htab_delete): Don't declare.
17593 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17595 * linespec.c (decode_compound_collector): Add constructor,
17597 (lookup_prefix_sym): Remove cleanup.
17598 (symtab_collector): Add constructor, destructor.
17599 (collect_symtabs_from_filename): Remove cleanup.
17600 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17601 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17603 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17604 * dwarf2read.c (dw2_expand_symtabs_matching)
17605 (dw2_map_symbol_filenames, dwarf_decode_macros)
17606 (write_psymtabs_to_index): Use htab_up.
17607 * dwarf2loc.c (func_verify_no_selftailcall)
17608 (call_site_find_chain_1, func_verify_no_selftailcall)
17609 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17610 std::vector, gdb::unique_xmalloc_ptr.
17611 (call_sitep): Remove typedef.
17612 (dwarf2_locexpr_baton_eval): Remove unused variable.
17614 2017-01-10 Tom Tromey <tom@tromey.com>
17616 * python/python-internal.h (make_cleanup_py_decref)
17617 (make_cleanup_py_xdecref): Don't declare.
17618 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17619 (py_xdecref, make_cleanup_py_xdecref): Remove.
17621 2017-01-10 Tom Tromey <tom@tromey.com>
17623 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17624 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17626 2017-01-10 Tom Tromey <tom@tromey.com>
17628 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17630 2017-01-10 Tom Tromey <tom@tromey.com>
17632 * python/py-utils.c (unicode_to_encoded_string)
17633 (python_string_to_target_string)
17634 (python_string_to_target_python_string)
17635 (python_string_to_host_string, gdbpy_obj_to_string)
17636 (get_addr_from_python): Use gdbpy_ref.
17638 2017-01-10 Tom Tromey <tom@tromey.com>
17640 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17643 2017-01-10 Tom Tromey <tom@tromey.com>
17645 * python/python.c (eval_python_command, gdbpy_decode_line)
17646 (gdbpy_run_events, gdbpy_start_type_printers)
17647 (gdbpy_apply_type_printers): Use gdbpy_ref.
17649 2017-01-10 Tom Tromey <tom@tromey.com>
17651 * python/py-param.c (get_doc_string, compute_enum_values): Use
17654 2017-01-10 Tom Tromey <tom@tromey.com>
17656 * python/py-inferior.c (find_thread_object, build_inferior_list):
17659 2017-01-10 Tom Tromey <tom@tromey.com>
17661 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17663 2017-01-10 Tom Tromey <tom@tromey.com>
17665 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17668 2017-01-10 Tom Tromey <tom@tromey.com>
17670 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17672 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17675 2017-01-10 Tom Tromey <tom@tromey.com>
17677 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17680 2017-01-10 Tom Tromey <tom@tromey.com>
17682 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17683 decref results of PyArg_ParseTupleAndKeywords.
17685 2017-01-10 Tom Tromey <tom@tromey.com>
17687 * python/python.c (python_run_simple_file): Use
17688 unique_xmalloc_ptr, gdbpy_ref.
17690 2017-01-10 Tom Tromey <tom@tromey.com>
17692 * python/py-prettyprint.c (print_stack_unless_memory_error)
17693 (print_string_repr, print_children): Use gdbpy_ref.
17694 (dummy_python_frame): New class.
17695 (dummy_python_frame::dummy_python_frame): Rename from
17696 push_dummy_python_frame.
17697 (py_restore_tstate): Remove.
17699 2017-01-10 Tom Tromey <tom@tromey.com>
17701 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17703 2017-01-10 Tom Tromey <tom@tromey.com>
17705 * python/python.c (ensure_python_env, restore_python_env):
17707 * python/python-internal.h (ensure_python_env): Don't declare.
17708 * varobj.h (varobj_ensure_python_env): Don't declare.
17709 * varobj.c (varobj_ensure_python_env): Remove.
17711 2017-01-10 Tom Tromey <tom@tromey.com>
17713 * varobj.c (varobj_value_get_print_value): Use
17714 gdbpy_enter_varobj.
17716 2017-01-10 Tom Tromey <tom@tromey.com>
17718 * python/py-prettyprint.c (print_string_repr, print_children):
17720 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17722 * varobj.c (varobj_value_get_print_value): Update.
17723 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17725 2017-01-10 Tom Tromey <tom@tromey.com>
17727 * varobj.c (varobj_get_display_hint)
17728 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17729 (varobj_set_visualizer, free_variable): Use
17730 gdbpy_enter_varobj.
17732 2017-01-10 Tom Tromey <tom@tromey.com>
17734 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17735 (do_finish_initialization): New function. Use gdbpy_ref.
17736 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17737 do_finish_initialization.
17739 2017-01-10 Tom Tromey <tom@tromey.com>
17741 * python/py-param.c (get_set_value, get_show_value): Use
17742 gdbpy_enter, gdbpy_ref.
17744 2017-01-10 Tom Tromey <tom@tromey.com>
17746 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17748 2017-01-10 Tom Tromey <tom@tromey.com>
17750 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17752 2017-01-10 Tom Tromey <tom@tromey.com>
17754 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17755 Use gdbpy_enter_varobj.
17757 2017-01-10 Tom Tromey <tom@tromey.com>
17759 * varobj.c (gdbpy_enter_varobj): New constructor.
17760 * python/python-internal.h (gdbpy_enter_varobj): New class.
17761 * python/py-varobj.c (py_varobj_get_iterator): Use
17762 gdbpy_enter_varobj.
17764 2017-01-10 Tom Tromey <tom@tromey.com>
17766 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17767 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17768 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17769 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17770 unique_xmalloc_ptr.
17771 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17773 2017-01-10 Tom Tromey <tom@tromey.com>
17775 * python/py-xmethods.c (invoke_match_method): Use
17778 2017-01-10 Tom Tromey <tom@tromey.com>
17780 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17781 gdbpy_enter, gdbpy_ref.
17783 2017-01-10 Tom Tromey <tom@tromey.com>
17785 * python/python.c (python_interactive_command): Use gdbpy_enter.
17787 2017-01-10 Tom Tromey <tom@tromey.com>
17789 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17792 2017-01-10 Tom Tromey <tom@tromey.com>
17794 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17795 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17797 2017-01-10 Tom Tromey <tom@tromey.com>
17799 * utils.h (htab_deleter): New struct.
17800 (htab_up): New typedef.
17801 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17802 gdbpy_enter, gdbpy_ref, htab_up.
17804 2017-01-10 Tom Tromey <tom@tromey.com>
17806 * python/py-unwind.c (pending_frame_invalidate): Remove.
17807 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17809 2017-01-10 Tom Tromey <tom@tromey.com>
17811 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17812 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17814 2017-01-10 Tom Tromey <tom@tromey.com>
17816 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17818 2017-01-10 Tom Tromey <tom@tromey.com>
17820 * python/python.c (gdbpy_eval_from_control_command)
17821 (gdbpy_source_script, gdbpy_run_events)
17822 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17823 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17826 2017-01-10 Tom Tromey <tom@tromey.com>
17828 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17830 2017-01-10 Tom Tromey <tom@tromey.com>
17832 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17834 2017-01-10 Tom Tromey <tom@tromey.com>
17836 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17837 (python_on_inferior_call_pre, python_on_inferior_call_post)
17838 (python_on_memory_change, python_on_register_change)
17839 (python_inferior_exit, python_new_objfile, add_thread_object)
17840 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17842 2017-01-10 Tom Tromey <tom@tromey.com>
17844 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17845 (bpfinishpy_handle_exit): Use gdbpy_enter.
17847 2017-01-10 Tom Tromey <tom@tromey.com>
17849 * python/py-cmd.c (cmdpy_destroyer)
17850 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17853 2017-01-10 Tom Tromey <tom@tromey.com>
17855 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17857 (gdbpy_breakpoint_has_cond): Likewise.
17859 2017-01-10 Tom Tromey <tom@tromey.com>
17861 * python/python.c (gdbpy_enter): New constructor.
17862 (~gdbpy_enter): New destructor.
17863 (restore_python_env, ensure_python_env): Rewrite.
17864 * python/python-internal.h (gdbpy_enter): New class.
17866 2017-01-10 Tom Tromey <tom@tromey.com>
17868 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17870 2017-01-10 Tom Tromey <tom@tromey.com>
17872 * python/py-value.c (value_has_field, get_field_flag)
17873 (get_field_type, valpy_getitem, convert_value_from_python): Use
17876 2017-01-10 Tom Tromey <tom@tromey.com>
17878 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17881 2017-01-10 Tom Tromey <tom@tromey.com>
17883 * python/py-prettyprint.c (search_pp_list)
17884 (find_pretty_printer_from_objfiles)
17885 (find_pretty_printer_from_progspace)
17886 (find_pretty_printer_from_gdb, find_pretty_printer)
17887 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17890 2017-01-10 Tom Tromey <tom@tromey.com>
17892 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17894 2017-01-10 Tom Tromey <tom@tromey.com>
17896 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17897 (ltpy_get_all_source_lines): Use gdbpy_ref.
17899 2017-01-10 Tom Tromey <tom@tromey.com>
17901 * python/py-framefilter.c (extract_sym, extract_value)
17902 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17905 2017-01-10 Tom Tromey <tom@tromey.com>
17907 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17909 2017-01-10 Tom Tromey <tom@tromey.com>
17911 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17913 2017-01-10 Tom Tromey <tom@tromey.com>
17915 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17918 2017-01-10 Tom Tromey <tom@tromey.com>
17920 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17922 2017-01-10 Tom Tromey <tom@tromey.com>
17924 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17925 (typy_range): Use gdbpy_ref.
17927 2017-01-10 Tom Tromey <tom@tromey.com>
17929 * python/py-threadevent.c (create_thread_event_object): Use
17931 * python/py-stopevent.c (create_stop_event_object): Simplify.
17932 (emit_stop_event): Use gdbpy_ref.
17933 * python/py-signalevent.c (create_signal_event_object): Use
17935 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17936 (emit_new_objfile_event, create_clear_objfiles_event_object)
17937 (emit_clear_objfiles_event): Use gdbpy_ref.
17938 * python/py-infevents.c (create_inferior_call_event_object)
17939 (create_register_changed_event_object)
17940 (create_memory_changed_event_object, emit_inferior_call_event)
17941 (emit_memory_changed_event, emit_register_changed_event): Use
17943 * python/py-exitedevent.c (create_exited_event_object)
17944 (emit_exited_event): Use gdbpy_ref.
17945 * python/py-event.h (evpy_emit_event): Remove
17946 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17947 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17948 * python/py-continueevent.c (emit_continue_event): Use
17950 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17951 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17953 * python/py-bpevent.c (create_breakpoint_event_object): Use
17956 2017-01-10 Tom Tromey <tom@tromey.com>
17958 * python/py-ref.h: New file.
17960 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17962 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17964 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17965 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17966 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17967 * ui-out.c (ui_out::redirect): Likewise.
17968 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17969 * cli/cli-logging.c (set_logging_redirect): Update call site of
17971 (handle_redirections): Likewise.
17972 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17973 * top.c (execute_command_to_string): Likewise.
17974 * utils.c (do_ui_out_redirect_pop): Likewise.
17976 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17978 * stack.c (_initialize_stack): Update "frame" command help message.
17980 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17982 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17984 2017-01-06 Yao Qi <yao.qi@linaro.org>
17986 * x86-linux-nat.h: Include gdb_proc_service.h.
17988 2017-01-06 Yao Qi <yao.qi@linaro.org>
17990 * ser-base.h: Include serial.h.
17992 2017-01-06 Yao Qi <yao.qi@linaro.org>
17994 * ppc-linux-tdep.h: Include ppc-tdep.h.
17996 2017-01-06 Yao Qi <yao.qi@linaro.org>
17998 * nat/amd64-linux-siginfo.h: Include signal.h.
18000 2017-01-06 Yao Qi <yao.qi@linaro.org>
18002 * nat/aarch64-linux-hw-point.h: Include break-common.h.
18004 2017-01-06 Yao Qi <yao.qi@linaro.org>
18006 * mi/mi-parse.h: Include mi-cmds.h.
18008 2017-01-06 Yao Qi <yao.qi@linaro.org>
18010 * inf-loop.c: Don't include "target.h".
18011 * inf-loop.h: Include it here.
18013 2017-01-06 Yao Qi <yao.qi@linaro.org>
18015 * dfp.h: Include "dboulest.h" and "expression.h".
18017 2017-01-06 Yao Qi <yao.qi@linaro.org>
18019 * ax-gdb.h: Include "ax.h".
18021 2017-01-06 Yao Qi <yao.qi@linaro.org>
18023 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18024 with nat/gdb_ptrace.h.
18026 2017-01-05 Yao Qi <yao.qi@linaro.org>
18028 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18030 (mips64_fbsd_sigframe_init): Likewise.
18032 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18034 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18035 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18037 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18039 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18040 * NEWS: Mention new FreeBSD/mips native configuration.
18041 * config/mips/fbsd.mh: New file.
18042 * configure.host: Add mips*-*-freebsd*.
18043 * mips-fbsd-nat.c: New file.
18045 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18047 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18048 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18049 * NEWS: Mention new FreeBSD/mips target.
18050 * configure.tgt: Add mips*-*-freebsd*.
18051 * mips-fbsd-tdep.c: New file.
18052 * mips-fbsd-tdep.h: New file.
18054 2017-01-04 Yao Qi <yao.qi@linaro.org>
18056 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18057 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18059 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18061 Update copyright year range in all GDB files.
18063 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18065 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
18067 For older changes see ChangeLog-2016.
18073 version-control: never