1 2017-12-08 Pedro Alves <palves@redhat.com>
3 * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
5 (check_match): Adjust to use mock_index directly.
6 (check_find_bounds_finds)
7 (test_mapped_index_find_name_component_bounds): Adjust to work
8 with a mapped_index_base.
10 2017-12-08 Pedro Alves <palves@redhat.com>
12 * dwarf2read.c (struct mapped_index_base): New, partially factored
14 (struct mapped_index): ... this. Inherit mapped_index_base.
15 (mapped_index::symbol_name_slot_invalid):
16 (mapped_index::symbol_name_at): Add override marker.
17 (mapped_index::symbol_name_count): New.
18 (struct mapped_debug_names): Inherit mapped_index_base.
19 (mapped_debug_names::symbol_name_at): New.
20 (mapped_debug_names::symbol_name_count): New.
21 (mapped_index::find_name_components_bounds): Rename to ...
22 (mapped_index_base::find_name_components_bounds): ... this.
23 (mapped_index::build_name_components): Rename to ...
24 (mapped_index_base::build_name_components): ... this. Adjust to
25 use mapped_index_base::symbol_name_count and
26 mapped_index_base::symbol_name_slot_invalid.
27 (dw2_expand_symtabs_matching_symbol): Take a mapped_index_base
28 instead of a mapped_index. Use
29 dw2_expand_symtabs_matching_symbol.
31 2017-12-08 Pedro Alves <palves@redhat.com>
33 * dwarf2read.c (mapped_index::symbol_table_slot): New.
34 (mapped_index::address_table): Now a gdb::array_view of const
36 (mapped_index::symbol_table): Now a gdb::array_view of
38 (mapped_index::address_table_size)
39 (mapped_index::symbol_table_slots): Delete.
40 (create_addrmap_from_index): Adjust.
41 (find_slot_in_mapped_hash): Adjust.
42 (read_index_from_section): Adjust.
43 (dwarf2_read_index): Adjust.
45 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
46 Pedro Alves <palves@redhat.com>
48 * defs.h (elf_sym_fns_debug_names): New declaration.
49 * dwarf2read.c: Include "hash_enum.h".
50 (mapped_debug_names): New.
51 (struct dwarf2_per_objfile): Add debug_names, debug_aranges and
53 (dwarf2_elf_names): Add ".debug_names" and ".debug_aranges".
54 (struct dwz_file): Add debug_names.
55 (dwarf2_per_objfile::locate_sections): Handle debug_names and
57 (locate_dwz_sections): Handle debug_names.
58 (create_signatured_type_table_from_debug_names)
59 (create_addrmap_from_aranges): New.
60 (dwarf2_read_index): Update function comment.
61 (dwarf5_augmentation): Moved up.
62 (read_debug_names_from_section, create_cus_from_debug_names_list)
63 (create_cus_from_debug_names, dwarf2_read_debug_names): New.
64 (dwarf5_djb_hash): Moved up.
65 (dw2_debug_names_iterator): New.
66 (read_indirect_string_at_offset): New declaration.
67 (mapped_debug_names::namei_to_name)
68 (dw2_debug_names_iterator::find_vec_in_debug_names)
69 (dw2_debug_names_iterator::next, dw2_debug_names_lookup_symbol)
70 (dw2_debug_names_dump, dw2_debug_names_expand_symtabs_for_function)
71 (dw2_debug_names_expand_symtabs_matching, dwarf2_debug_names_functions):
73 (dwarf2_initialize_objfile): Return also elf_sym_fns_debug_names.
74 (debug_names::djb_hash): Rename it to dwarf5_djb_hash.
75 (debug_names::build): Update djb_hash caller.
76 (write_debug_names): Move out and rename augmentation to
78 * elfread.c (elf_sym_fns_debug_names): New.
79 * psymtab.h (dwarf2_debug_names_functions): New declaration.
80 * symfile.h (struct dwarf2_debug_sections): Add debug_names and
82 * xcoffread.c (dwarf2_xcoff_names): Add debug_names and debug_aranges.
84 2017-12-08 Pedro Alves <palves@redhat.com>
86 * common/hash_enum.h: New file.
88 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
90 * dwarf2read.c (create_cu_from_index_list): New from ...
91 (create_cus_from_index_list): ... this function, use it.
92 (dw_expand_symtabs_matching_file_matcher)
93 (dw2_expand_symtabs_matching_one): New from ...
94 (dw2_expand_symtabs_matching): ... this function, use them.
96 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
98 * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move here
99 declarations from elfread.c.
100 (dwarf2_initialize_objfile): Change return value.
101 * elfread.c (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index): Move these
102 declarations to defs.h.
103 (elf_symfile_read): Adjust dwarf2_initialize_objfile caller.
104 * symfile.h (dwarf2_initialize_objfile): Change return type.
106 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
107 Pedro Alves <palves@redhat.com>
109 * contrib/gdb-add-index.sh (index): Rename to ...
111 (index5, debugstr, debugstrmerge, debugstrerr): New variables.
112 Support also .debug_names and .debug_str.
113 * dwarf2read.c: Include cmath, set, list.
114 (INDEX_SUFFIX): Rename to ...
115 (INDEX4_SUFFIX): ... here.
116 (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
117 (file_write(FILE *, const void *, size_t)): New.
118 (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
119 (data_buf::append_unsigned_leb128, data_buf::empty): New.
120 (data_buf::file_write): Use ::file_write.
121 (data_buf::c_str, dwarf5_djb_hash, debug_names)
122 (check_dwarf64_offsets): New.
123 (psyms_seen_size, write_gdbindex): New from
124 write_psymtabs_to_index code.
125 (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
126 (enum dw_index_kind): New.
127 (write_psymtabs_to_index): New parameter index_kind. Support
128 filename_str and out_file_str. Move code to write_gdbindex,
129 possibly call write_debug_names.
130 (save_gdb_index_command): New parameter -dwarf-5.
131 (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
133 2017-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
134 Pedro Alves <palves@redhat.com>
136 * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
138 (GDB_ADD_INDEX): New variable.
139 <$want_index>: Call $GDB_ADD_INDEX.
141 2017-12-08 Sergio Durigan Junior <sergiodj@redhat.com>
143 * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
144 "expression_up" inside the TRY block.
146 2017-12-08 Yao Qi <yao.qi@linaro.org>
148 * breakpoint.c (update_watchpoint): Call
151 2017-12-08 Yao Qi <yao.qi@linaro.org>
153 * breakpoint.c (adjust_breakpoint_address): Call
156 2017-12-08 Yao Qi <yao.qi@linaro.org>
158 * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
159 significant_addr_bit.
160 * gdbarch.sh (significant_addr_bit): New.
161 * gdbarch.c, gdbarch.h: Re-generated.
162 * target.c (memory_xfer_partial): Call address_significant.
163 * utils.c (address_significant): New function.
164 * utils.h (address_significant): Declare.
166 2017-12-08 Tom Tromey <tom@tromey.com>
168 * printcmd.c (ui_printf): Update. Use std::vector.
169 * common/format.h (struct format_piece): Add constructor.
171 (class format_pieces): New class.
172 (parse_format_string, free_format_pieces)
173 (free_format_pieces_cleanup): Remove.
174 * common/format.c (format_pieces::format_pieces): Rename from
175 parse_format_string. Update.
176 (free_format_pieces, free_format_pieces_cleanup): Remove.
177 * breakpoint.c (parse_cmd_to_aexpr): Update. Use std::vector.
178 * ax-gdb.h (gen_printf): Remove argument.
179 * ax-gdb.c (gen_printf): Remove "frags" argument.
180 (maint_agent_printf_command): Update. Use std::vector.
182 2017-12-08 Yao Qi <yao.qi@linaro.org>
185 * linespec.c (minsym_found): Set sal.section.
187 2017-12-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
189 * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
191 2017-12-07 Keith Seitz <keiths@redhat.com>
194 * location.c (string_to_explicit_location): When terminating
195 parsing early, break out of enclosing loop instead of returning.
197 2017-12-07 Keith Seitz <keiths@redhat.com>
199 * NEWS (New commands): Mention set/show print type nested-type-limit.
200 * c-typeprint.c (c_type_print_base): Print out nested types.
201 * dwarf2read.c (struct typedef_field_list): Rename to ...
202 (struct decl_field_list): ... this. Change all uses.
203 (struct field_info) <nested_types_list, nested_types_list_count>:
205 (add_partial_symbol): Look for nested type definitions in C++, too.
206 (dwarf2_add_typedef): Rename to ...
207 (dwarf2_add_type_defn): ... this.
208 (type_can_define_types): New function.
209 Update assertion to use type_can_define_types.
210 Permit NULL for a field's name.
211 (process_structure_scope): Handle child DIEs of types that can
213 Copy the list of nested types into the type struct.
214 * gdbtypes.h (struct typedef_field): Rename to ...
215 (struct decl_field): ... this. Change all uses.
216 [is_protected, is_private]: New fields.
217 (struct cplus_struct_type) <nested_types, nested_types_count>: New
219 (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
220 (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
221 (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
222 (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
223 * typeprint.c (type_print_raw_options, default_ptype_flags): Add
224 default value for print_nested_type_limit.
225 (print_nested_type_limit): New static variable.
226 (set_print_type_nested_types, show_print_type_nested_types): New
228 (_initialize_typeprint): Register new commands for set/show
229 `print-nested-type-limit'.
230 * typeprint.h (struct type_print_options) [print_nested_type_limit]:
233 2017-12-07 Tom Tromey <tom@tromey.com>
235 PR breakpoints/22511:
236 * breakpoint.c (commands_command_1): Don't throw an exception when
237 no commands have been read.
239 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
242 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
245 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
247 * common/selftest.h (struct selftest): Add virtual destructor.
249 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
251 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
252 over basic location code. Implement explicit location keywords.
253 (bppy_init_validate_args): New function.
254 * NEWS: Document Python explicit breakpoint locations.
256 2017-12-07 Joel Brobecker <brobecker@adacore.com>
258 * MAINTAINERS: Restore target entries for m68hc11-elf,
259 score-elf and xstormy16-elf, incorrectly removed in a previous
260 patch meant to only update the list of active maintainers.
262 2017-12-06 Pedro Alves <palves@redhat.com>
264 * break-catch-syscall.c (insert_catch_syscall)
265 (remove_catch_syscall): Adjust to pass reference to
266 inf_data->syscalls_counts directly via gdb::array_view.
267 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
269 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
270 * remote.c (remote_set_syscall_catchpoint): Likewise.
271 * target-debug.h (target_debug_print_bool): New.
272 (define target_debug_print_gdb_array_view_const_int): New.
273 * target-delegates.c: Regenerate.
274 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
275 gdb::array_view and bool.
276 (target_set_syscall_catchpoint): Likewise.
278 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
280 * break-catch-syscall.c (catch_syscall_completer): Get pointers
281 to syscall group strings after building the string vector.
283 2017-12-06 Pedro Alves <palves@redhat.com>
285 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
286 "qXfer:features:read"" is disabled.
287 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
288 Check packet_config_support instead of packet->support directly.
290 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
292 * target-descriptions.c (struct tdesc_feature) <registers>: Use
293 tdesc_reg_up typedef.
294 (struct target_desc) <features>: Use tdesc_feature_up typedef.
296 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
298 * target-descriptions.c (struct tdesc_type): Use default
302 (struct tdesc_type_builtin): New.
303 (struct tdesc_type_vector): New.
304 (struct tdesc_type_with_fields): New.
305 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
306 (tdesc_gdb_type): Remove.
307 (tdesc_register_type): Adjust.
308 (tdesc_create_vector): Create tdesc_type_vector.
309 (tdesc_create_struct): Create tdesc_type_with_fields.
310 (tdesc_set_struct_size): Change parameter type.
311 (tdesc_create_union): Create tdesc_type_with_fields.
312 (tdesc_create_flags): Likewise.
313 (tdesc_create_enum): Likewise.
314 (tdesc_add_field): Change parameter type.
315 (tdesc_add_typed_bitfield): Likewise.
316 (tdesc_add_bitfield): Likewise.
317 (tdesc_add_flag): Likewise.
318 (tdesc_add_enum_value): Likewise.
319 (print_c_tdesc) <visit>: Remove overload with tdesc_type
320 parameter, add overloads for tdesc_type_builtin,
321 tdesc_type_with_fields and tdesc_type_vector.
322 <m_printed_type>: Remove.
323 <m_printed_element_type, m_printed_type_with_fields>: Add.
324 * target-descriptions.h (tdesc_create_enum): Change return type.
325 (tdesc_add_typed_bitfield): Change parameter type.
326 (tdesc_add_enum_value): Change parameter type.
327 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
328 type to tdesc_type_with_fields.
329 (tdesc_start_struct): Adjust.
330 (tdesc_start_flags): Adjust.
331 (tdesc_start_enum): Adjust.
332 (tdesc_start_field): Adjust.
333 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
334 (struct tdesc_type_vector): Forward-declare.
335 (struct tdesc_type_with_fields): Forward-declare.
336 (tdesc_create_struct): Change return type.
337 (tdesc_create_union): Likewise.
338 (tdesc_create_flags): Likewise.
339 (tdesc_add_field): Change parameter type.
340 (tdesc_set_struct_size): Likewise.
341 (tdesc_add_bitfield): Likewise.
342 (tdesc_add_flag): Likewise.
343 * features: Re-generate C files.
345 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
347 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
348 (struct tdesc_arch_reg): Add constructor.
349 (DEF_VEC_O (tdesc_arch_reg)): Remove.
350 (struct tdesc_arch_data): Initialize fields.
351 <arch_regs>: Change type to std::vector.
352 (target_find_description): Adjust.
353 (tdesc_find_type): Adjust.
354 (tdesc_data_init): Call tdesc_arch_data constructor.
355 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
356 (tdesc_data_cleanup): Free data with delete.
357 (tdesc_numbered_register): Adjust.
358 (tdesc_find_arch_register): Adjust.
359 (tdesc_use_registers): Adjust.
361 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
363 * target-descriptions.c (tdesc_type_field): Remove typedef.
364 (DEF_VEC_O (tdesc_type_field)): Remove.
365 (struct tdesc_type_field): Add constructor.
366 <name>: Change type to std::string.
367 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
369 <~tdesc_type>: Destroy vector if the type kind uses it.
370 <u::u::fields>: Change type to std::vector.
371 (tdesc_gdb_type): Adjust.
372 (tdesc_add_field): Adjust.
373 (tdesc_add_typed_bitfield): Adjust.
374 (tdesc_add_field): Adjust.
375 (tdesc_add_enum_value): Adjust.
376 (class print_c_tdesc) <visit>: Adjust.
378 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
380 * target-descriptions.c (struct tdesc_type) <name>: Change type
382 <~tdesc_type>: Don't manually free name.
383 <operator==>: Adjust.
384 (tdesc_named_type): Adjust.
385 (tdesc_find_type): Adjust.
386 (tdesc_gdb_type): Adjust.
387 (class print_c_tdesc) <visit>: Adjust.
389 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
391 * target-descriptions.c (tdesc_type_p): Remove typedef.
392 (DEF_VEC_P (tdesc_type_p)): Remove.
393 (struct tdesc_feature) <types>: Change type to std::vector.
394 <~tdesc_feature>: Replace with default implementation.
396 (tdesc_named_type): Adjust.
397 (tdesc_create_vector): Adjust.
398 (tdesc_create_struct): Adjust.
399 (tdesc_create_union): Adjust.
400 (tdesc_create_flags): Adjust.
401 (tdesc_create_enum): Adjust.
403 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
405 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
406 type of name_ parameter, adjust to std::string change.
407 <name, group, type>: Change type to std::string.
408 <~tdesc_reg>: Replace with default implementation.
409 <operator==>: Adjust.
410 (tdesc_find_register_early): Adjust.
411 (tdesc_register_name): Adjust.
412 (tdesc_register_type): Adjust.
413 (tdesc_register_in_reggroup_p): Adjust.
414 (class print_c_tdesc) <visit>: Adjust.
415 (class print_c_feature) <visit>: Adjust.
416 * features/arc-arcompact.c: Re-generate.
417 * features/arc-v2.c: Re-generate.
419 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
421 * target-descriptions.c (tdesc_reg_p): Remove typedef.
422 (DEF_VEC_P (tdesc_reg_p)): Remove.
423 (struct tdesc_feature) <registers>: Change type to std::vector.
424 <~tdesc_feature>: Don't manually free registers.
426 <operator==>: Adjust.
427 (tdesc_has_registers): Adjust.
428 (tdesc_find_register_early): Adjust.
429 (tdesc_use_registers): Adjust.
430 (tdesc_create_reg): Adjust.
432 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
434 * target-descriptions.c (tdesc_feature) <name>: Change type to
436 <~tdesc_feature>: Don't manually free name.
437 <operator==>: Adjust.
438 (tdesc_find_feature): Adjust.
439 (tdesc_feature_name): Adjust.
440 (class print_c_tdesc) <visit_pre>: Adjust.
441 (class print_c_feature) <visit_pre>: Adjust.
443 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
445 * target-descriptions.c (tdesc_feature_p): Remove typedef.
446 (DEF_VEC_P (tdesc_feature_p)): Remove.
447 (struct target_desc) <features>: Change type to std::vector.
448 <~target_desc>: Replace with default implementation.
450 <operator==>: Adjust.
451 (tdesc_has_registers): Adjust.
452 (tdesc_find_feature): Adjust.
453 (tdesc_use_registers): Adjust.
454 (tdesc_create_feature): Adjust.
456 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
458 * target-descriptions.c (arch_p): Remove typedef.
459 (DEF_VEC_P (arch_p)): Remove.
460 (struct target_desc) <compatible>: Change type to std::vector.
461 <~target_desc>: Don't manually free compatible.
462 (tdesc_compatible_p): Adjust.
463 (tdesc_add_compatible): Adjust.
464 (class print_c_tdesc) <visit_pre>: Adjust.
466 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
468 * target-descriptions.c (property_s): Remove typedef.
469 (DEF_VEC_O (property_s)): Remove.
470 (struct target_desc) <properties>: Make an std::vector.
471 <~target_desc>: Don't manually free properties.
472 (tdesc_property): Adjust.
473 (set_tdesc_property): Adjust.
474 (class print_c_tdesc) <visit_pre>: Adjust.
476 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
478 * common/gdb_assert.h (gdb_static_assert): Redefine using
481 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
483 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
485 (ada_is_redundant_range_encoding): Likewise.
486 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
488 * alpha-tdep.c (alpha_software_single_step): Likewise.
489 * arm-tdep.c (_initialize_arm_tdep): Likewise.
490 * auto-load.c (info_auto_load_cmd): Likewise.
491 * break-catch-syscall.c (insert_catch_syscall): Likewise.
492 (remove_catch_syscall): Likewise.
493 * breakpoint.c (condition_completer): Likewise.
494 (clear_command): Likewise.
495 (update_breakpoint_locations): Likewise.
496 * btrace.c (btrace_disable): Likewise.
497 (btrace_teardown): Likewise.
498 (btrace_maint_update_pt_packets): Likewise.
499 (maint_btrace_clear_cmd): Likewise.
500 * cli/cli-decode.c (lookup_cmd_1): Likewise.
501 (lookup_cmd_composition): Likewise.
502 * cli/cli-dump.c (scan_filename): Likewise.
503 (restore_command): Likewise.
504 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
505 * compile/compile-object-load.c (compile_object_load): Likewise.
506 * compile/compile-object-run.c (compile_object_run): Likewise.
507 * compile/compile.c (compile_to_object): Likewise.
508 * completer.c (filename_completer): Likewise.
509 (complete_files_symbols): Likewise.
510 (complete_expression): Likewise.
511 * corelow.c (core_open): Likewise.
512 * ctf.c (ctf_start): Likewise.
513 (ctf_write_status): Likewise.
514 (ctf_write_uploaded_tsv): Likewise.
515 (ctf_write_definition_end): Likewise.
516 (ctf_open_dir): Likewise.
517 (ctf_xfer_partial): Likewise.
518 (ctf_trace_find): Likewise.
519 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
521 * dwarf2loc.c (allocate_piece_closure): Likewise.
522 (indirect_pieced_value): Likewise.
523 (dwarf2_evaluate_loc_desc_full): Likewise.
524 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
525 (dw2_expand_symtabs_matching): Likewise.
526 (dw2_map_symbol_filenames): Likewise.
527 (read_and_check_comp_unit_head): Likewise.
528 (read_cutu_die_from_dwo): Likewise.
529 (lookup_dwo_unit): Likewise.
530 (read_comp_units_from_section): Likewise.
531 (dwarf2_compute_name): Likewise.
532 (handle_DW_AT_stmt_list): Likewise.
533 (create_cus_hash_table): Likewise.
534 (create_dwp_v2_section): Likewise.
535 (dwarf2_rnglists_process): Likewise.
536 (dwarf2_ranges_process): Likewise.
537 (dwarf2_record_block_ranges): Likewise.
538 (is_vtable_name): Likewise.
539 (read_formatted_entries): Likewise.
540 (skip_form_bytes): Likewise.
541 * elfread.c (elf_symtab_read): Likewise.
542 * exec.c (exec_file_command): Likewise.
543 * f-valprint.c (f_val_print): Likewise.
544 (info_common_command_for_block): Likewise.
545 * guile/guile.c (initialize_scheme_side): Likewise.
546 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
547 * guile/scm-cmd.c (cmdscm_completer): Likewise.
548 (gdbscm_register_command_x): Likewise.
549 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
550 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
551 * guile/scm-ports.c (file_port_magic): Likewise.
552 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
553 (ppscm_pretty_print_one_value): Likewise.
554 (ppscm_print_children): Likewise.
555 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
556 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
557 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
558 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
559 * i386-tdep.c (i386_register_reggroup_p): Likewise.
560 * infcmd.c (run_command_1): Likewise.
561 (until_next_fsm_clean_up): Likewise.
562 * linespec.c (linespec_complete): Likewise.
563 (find_label_symbols): Likewise.
564 * m2-valprint.c (m2_val_print): Likewise.
565 * memattr.c (require_user_regions): Likewise.
566 (lookup_mem_region): Likewise.
567 (disable_mem_command): Likewise.
568 (mem_delete): Likewise.
569 * mep-tdep.c (mep_register_name): Likewise.
570 (mep_analyze_prologue): Likewise.
571 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
572 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
573 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
574 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
575 * minidebug.c (lzma_open): Likewise.
576 * minsyms.c (lookup_minimal_symbol): Likewise.
577 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
578 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
579 (mips_o64_return_value): Likewise.
580 (mips_single_step_through_delay): Likewise.
581 (_initialize_mips_tdep): Likewise.
582 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
583 (nios2_software_single_step): Likewise.
584 * parse.c (find_minsym_type_and_address): Likewise.
585 * psymtab.c (psym_relocate): Likewise.
586 * python/py-breakpoint.c (bppy_get_commands): Likewise.
587 (gdbpy_breakpoint_modified): Likewise.
588 * python/py-infevents.c (create_inferior_call_event_object):
590 * python/py-record-btrace.c (btpy_list_item): Likewise.
591 * python/py-type.c (typy_str): Likewise.
592 * python/py-value.c (valpy_call): Likewise.
593 * python/python.c (do_start_initialization): Likewise.
594 * record-btrace.c (record_btrace_insn_history_range): Likewise.
595 (record_btrace_call_history_range): Likewise.
596 (record_btrace_record_method): Likewise.
597 (record_btrace_xfer_partial): Likewise.
598 (btrace_get_frame_function): Likewise.
599 * record-full.c (record_full_open): Likewise.
600 * record.c (get_context_size): Likewise.
601 * registry.h (DEFINE_REGISTRY): Likewise.
602 * remote-fileio.c (remote_fileio_request): Likewise.
603 * remote.c (remote_update_thread_list): Likewise.
604 (remote_check_symbols): Likewise.
605 (remote_commit_resume): Likewise.
606 (remote_interrupt): Likewise.
607 (remote_insert_breakpoint): Likewise.
608 (compare_sections_command): Likewise.
609 * rust-exp.y (super_name): Likewise.
610 (lex_string): Likewise.
611 (convert_ast_to_type): Likewise.
612 (convert_ast_to_expression): Likewise.
613 * rust-lang.c (rust_print_struct_def): Likewise.
614 (rust_print_type): Likewise.
615 (rust_evaluate_subexp): Likewise.
616 * rx-tdep.c (rx_register_type): Likewise.
617 * ser-event.c (serial_event_clear): Likewise.
618 * serial.c (serial_open): Likewise.
619 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
620 * symfile.c (section_is_overlay): Likewise.
621 (overlay_unmapped_address): Likewise.
622 (overlay_mapped_address): Likewise.
623 (simple_overlay_update_1): Likewise.
624 (simple_overlay_update): Likewise.
625 * symtab.c (symbol_find_demangled_name): Likewise.
626 (search_symbols): Likewise.
627 * target-descriptions.c (tdesc_predefined_type): Likewise.
628 * target.c (target_commit_resume): Likewise.
629 * thread.c (print_selected_thread_frame): Likewise.
630 * top.c (new_ui_command): Likewise.
631 (gdb_readline_no_editing): Likewise.
632 * tracefile-tfile.c (tfile_open): Likewise.
633 * tracepoint.c (create_tsv_from_upload): Likewise.
634 * utils.c (quit): Likewise.
635 (defaulted_query): Likewise.
636 * valarith.c (value_concat): Likewise.
637 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
638 * xml-tdesc.c (target_fetch_description_xml): Likewise.
639 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
640 (xtensa_pseudo_register_write): Likewise.
642 2017-12-04 Tom Tromey <tom@tromey.com>
644 * NEWS: Mention Rust trait object inspection.
646 2017-12-04 Pedro Alves <palves@redhat.com>
649 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
650 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
651 (vex2_prefix_p, vex3_prefix_p): New functions.
652 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
654 (fixup_riprel): Set VEX3.!B.
656 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
658 * target.h (mem_region_vector): Remove.
659 (struct target_ops) <to_memory_map>: Change return type to
660 std::vector<mem_region>.
661 * target-debug.h (target_debug_print_mem_region_vector): Rename
663 (target_debug_print_std_vector_mem_region): ... this.
664 * target-delegates.c: Re-generate.
666 2017-12-03 Pedro Alves <palves@redhat.com>
668 * make-target-delegates (munge_type): Also munge '<', '>', and
669 ':'. Avoid double underscores in identifiers, and trailing
672 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
674 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
675 * target-delegates.c: Regenerate.
677 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
679 * common/poison.h (XDELETE): Fix typo.
681 2017-12-01 Andrew Cagney <cagney@redhat.com>
682 Joel Brobecker <brobecker@adacore.com>
683 Sergio Durigan Junior <sergiodj@redhat.com>
685 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
687 * coffread.c (coff_symfile_read): Do not map over sections with
688 'coff_locate_sections' if readnever is on.
689 * dwarf2read.c (dwarf2_has_info): Return 0 if
691 * elfread.c (elf_symfile_read): Do not map over sections with
692 'elf_locate_sections' if readnever is on.
693 * main.c (validate_readnow_readnever): New function.
694 (captured_main_1): Add support for --readnever.
695 (print_gdb_help): Document --readnever.
696 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
698 * symfile.c (readnever_symbol_files): New global.
699 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
700 'READNEVER_SYMBOL_FILES' is set.
701 (validate_readnow_readnever): New function.
702 (symbol_file_command): Handle '-readnever' option.
703 Call 'validate_readnow_readnever'.
704 (add_symbol_file_command): Handle '-readnever' option.
705 Call 'validate_readnow_readnever'.
706 (_initialize_symfile): Document new '-readnever' option for
707 both 'symbol-file' and 'add-symbol-file' commands.
708 * top.h (readnever_symbol_files): New extern global.
709 * xcoffread.c (xcoff_initial_scan): Do not read debug
710 information if readnever is on.
712 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
714 * symfile.c (symbol_file_command): Call
715 'symbol_file_add_main_1' only after processing all command
717 (add_symbol_file_command): Modify logic to make arguments
718 position-independent.
720 2017-12-01 Joel Brobecker <brobecker@adacore.com>
722 * ada-lang.c (symbol_list_obstack): Delete.
723 (resolve_subexp): Make sure "candidates" gets xfree'ed.
724 (ada_lookup_symbol_list_worker): Remove the limitation that
725 the result is only good until the next call, now making it
726 the responsibility of the caller to free the result when no
727 longer needed. Adjust the function's intro comment accordingly.
728 (ada_lookup_symbol_list): Adjust the function's intro comment.
729 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
730 (ada_lookup_encoded_symbol, get_var_value): Likewise.
731 (_initialize_ada_language): Remove symbol_list_obstack
733 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
734 (write_var_or_type, write_name_assoc): Likewise.
736 2017-12-01 Tom Tromey <tom@tromey.com>
738 * Makefile.in (all_deps_files): New variable.
739 Include .Po files using all_deps_files.
741 2017-12-01 Joel Brobecker <brobecker@adacore.com>
743 * MAINTAINERS: Update list of maintainers, moving those who
744 stepped down or became inactive to the "Past Maintainers"
747 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
749 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
751 (NEW_PROC_API): Remove.
752 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
754 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
755 * configure: Regenerate.
756 * config.in: Regenerate.
757 * gdbserver/configure: Regenerate.
758 * gdbserver/config.in: Regenerate.
760 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
762 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
764 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
766 * proc-api.c: Remove !NEW_PROC_API support.
767 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
768 Remove tests for macros always defined on Solaris.
769 * proc-events.c: Remove !NEW_PROC_API support.
770 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
771 HAVE_SYS_USER_H tests.
772 (init_syscall_table): Remove non-Solaris syscalls.
773 Remove tests for syscalls present on all Solaris versions.
774 Add missing Solaris 10+ syscalls.
775 (signal_table): Remove non-Solaris signals.
776 Remove tests for signals present on all Solaris versions.
777 (fault_table): Remove non-Solaris faults.
778 Remove tests for faults present on all Solaris versions.
779 * proc-flags.c: Remove !NEW_PROC_API support.
780 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
781 Remove non-Solaris flags.
782 * proc-why.c: Remove !NEW_PROC_API support.
783 (pr_why_table): Remove meaningless comments.
784 Remove tests for reasons present on all Solaris versions.
786 (proc_prettyfprint_why): Likewise.
788 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
789 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
790 Remove WA_READ test, IRIX watchpoint support.
791 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
793 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
794 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
796 Remove CTL_PROC_NAME_FMT tests.
797 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
799 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
800 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
801 (proc_modify_flag): Replace GDBRESET by PCUNSET.
802 Remove PR_ASYNC, PR_KLC tests.
803 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
804 (proc_parent_pid): Remove PCWATCH etc. tests.
805 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
807 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
808 Remove SYS_lwpcreate || SYS_lwp_create test.
809 (proc_get_current_thread): Likewise.
810 [PIOCNTHR && PIOCTLIST]: Remove.
811 [PIOCLSTATUS]: Remove.
812 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
813 [PRFS_STOPEXEC]: Remove.
814 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
815 (syscall_is_exit): Likewise.
816 (syscall_is_exec): Likewise.
817 (syscall_is_lwp_create): Likewise.
818 Remove SYS_syssgi support.
819 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
820 [SYS_syssgi]: Remove.
821 Remove non-Solaris cases, conditionals.
822 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
824 (procfs_init_inferior) [SYS_syssgi]: Remove.
825 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
826 (procfs_inferior_created) [SYS_syssgi]: Remove.
827 (procfs_set_watchpoint): Remove !AIX5 test.
828 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
830 (mappingflags) [MA_PHYS]: Remove.
831 (info_mappings_callback): Remove PCAGENT test.
832 Remove PIOCOPENLWP || PCAGENT test.
834 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
836 * sol-thread.c (info_solthreads): Constify args.
839 2017-11-29 John Baldwin <jhb@FreeBSD.org>
841 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
843 2017-11-29 Joel Brobecker <brobecker@adacore.com>
845 * ada-lang.c (to_fixed_range_type): Make sure that the size
846 of the range type being returned is the same as the size
847 of the range type being fixed.
849 2017-11-29 Pedro Alves <palves@redhat.com>
852 * NEWS: Mention setting breakpoints on functions with C++ ABI
854 * completer.h (completion_match_for_lcd) <match,
855 mark_ignored_range>: New methods.
856 <finish>: Consider ignored ranges.
857 <clear>: Clear ignored ranges.
858 <m_ignored_ranges, m_finished_storage>: New fields.
859 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
860 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
861 completion_match_for_lcd pointer to strncmp_iw_with_mode.
862 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
863 * language.c (default_symbol_name_matcher): Pass the
864 completion_match_for_lcd pointer to strncmp_iw_with_mode.
865 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
866 * utils.c (skip_abi_tag): New function.
867 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
869 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
872 2017-11-29 Pedro Alves <palves@redhat.com>
875 * NEWS: Mention setting breakpoints on functions with C++ ABI
877 * completer.h (completion_match_for_lcd) <match,
878 mark_ignored_range>: New methods.
879 <finish>: Consider ignored ranges.
880 <clear>: Clear ignored ranges.
881 <m_ignored_ranges, m_finished_storage>: New fields.
882 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
883 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
884 completion_match_for_lcd pointer to strncmp_iw_with_mode.
885 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
886 * language.c (default_symbol_name_matcher): Pass the
887 completion_match_for_lcd pointer to strncmp_iw_with_mode.
888 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
889 * utils.c (skip_abi_tag): New function.
890 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
892 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
895 2017-11-29 Pedro Alves <palves@redhat.com>
897 * NEWS: Mention that breakpoints on C++ functions are now set on
898 on all namespaces/classes by default, and mention "break
900 * ax-gdb.c (agent_command_1): Adjust to pass a
901 symbol_name_match_type to new_linespec_location.
902 * breakpoint.c (parse_breakpoint_sals): Adjust to
903 get_linespec_location's return type change.
904 (strace_marker_create_sals_from_location): Adjust to pass a
905 symbol_name_match_type to new_linespec_location.
906 (strace_marker_decode_location): Adjust to get_linespec_location's
908 (strace_command): Adjust to pass a symbol_name_match_type to
909 new_linespec_location.
910 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
911 mention "-qualified".
912 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
913 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
915 (complete_address_and_linespec_locations): New parameter
916 'match_type'. Pass it down.
917 (explicit_options): Add "-qualified".
918 (collect_explicit_location_matches): Pass the requested match type
919 to the linespec completers. Handle MATCH_QUALIFIED.
920 (location_completer): Handle "-qualified" combined with linespecs.
921 * cp-support.c (cp_search_name_hash): New.
922 (cp_symbol_name_matches_1): Implement wild matching for C++.
923 (cp_fq_symbol_name_matches): Reimplement.
924 (cp_get_symbol_name_matcher): Return different matchers depending
925 on the lookup name's match type.
926 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
927 * cp-support.h (cp_search_name_hash): New declaration.
929 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
931 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
933 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
934 pass a symbol_name_match_type to new_linespec_location.
935 * linespec.c (linespec_parse_basic): Lookup function symbols using
936 the parser's symbol name match type.
937 (convert_explicit_location_to_linespec): New
938 symbol_name_match_type parameter. Pass it down to
939 find_linespec_symbols.
940 (convert_explicit_location_to_sals): Pass the location's name
941 match type to convert_explicit_location_to_linespec.
942 (parse_linespec): New match_type parameter. Save it in the
944 (linespec_parser_new): Default to symbol_name_match_type::WILD.
945 (linespec_complete_function): New symbol_name_match_type
947 (complete_linespec_component): Pass down the parser's recorded
949 (linespec_complete_label): New symbol_name_match_type parameter.
951 (linespec_complete): New symbol_name_match_type parameter. Save
952 it in the parser and pass it down. Adjust to
953 get_linespec_location's prototype change.
954 (find_function_symbols, find_linespec_symbols): New
955 symbol_name_match_type parameter. Pass it down instead of
956 assuming symbol_name_match_type::WILD.
957 * linespec.h (linespec_complete, linespec_complete_function)
958 (linespec_complete_label): New symbol_name_match_type parameter.
959 * location.c (event_location::linespec_location): Now a struct
961 (EL_LINESPEC): Adjust.
962 (initialize_explicit_location): Default to
963 symbol_name_match_type::WILD.
964 (new_linespec_location): New symbol_name_match_type parameter.
965 Record it in the location.
966 (get_linespec_location): Now returns a struct linespec_location.
967 (new_explicit_location): Also copy func_name_match_type.
968 (explicit_to_string_internal)
969 (string_to_explicit_location): Handle "-qualified".
970 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
971 Copy symbol_name_match_type fields.
972 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
974 (event_location_to_string): Adjust to LINESPEC_LOCATION type
975 change. Handle "-qualfied".
976 (string_to_explicit_location): Handle "-qualified".
977 (string_to_event_location_basic): New symbol_name_match_type
978 parameter. Pass it down.
979 (string_to_event_location): Handle "-qualified".
980 * location.h (struct linespec_location): New.
981 (explicit_location::func_name_match_type): New field.
982 (new_linespec_location): Now returns a const linespec_location *.
983 (string_to_event_location_basic): New symbol_name_match_type
985 (explicit_completion_info::saw_explicit_location_option): New
987 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
988 symbol_name_match_type to new_linespec_location.
989 * python/py-breakpoint.c (bppy_init): Likewise.
990 * python/python.c (gdbpy_decode_line): Likewise.
992 2017-11-29 Pedro Alves <palves@redhat.com>
994 * ada-lang.c (ada_lookup_name_info::matches): Change type of
995 parameter from completion_match to completion_match_result.
997 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
998 * completer.c (completion_tracker::maybe_add_completion): Add
999 match_for_lcd parameter and use it.
1000 (completion_tracker::add_completion): Likewise.
1001 * completer.h (class completion_match_for_lcd): New class.
1002 (completion_match_result::match_for_lcd): New field.
1003 (completion_match_result::set_match): New method.
1004 (completion_tracker): Add comments.
1005 (completion_tracker::add_completion): Add match_for_lcd parameter.
1006 (completion_tracker::reset_completion_match_result): Reset
1008 (completion_tracker::maybe_add_completion): Add match_for_lcd
1010 (completion_tracker::m_lowest_common_denominator_unique): Extend
1012 * cp-support.c (cp_symbol_name_matches_1)
1013 (cp_fq_symbol_name_matches): Change type of parameter from
1014 completion_match to completion_match_result. Adjust.
1015 * language.c (default_symbol_name_matcher): Change type of
1016 parameter from completion_match to completion_match_result.
1018 * language.h (completion_match_for_lcd): Forward declare.
1019 (default_symbol_name_matcher): Change type of parameter from
1020 completion_match to completion_match_result.
1021 * symtab.c (compare_symbol_name): Adjust.
1022 (completion_list_add_name): Pass the match_for_lcd to the tracker.
1023 * symtab.h (ada_lookup_name_info::matches): Change type of
1024 parameter from completion_match to completion_match_result.
1025 (symbol_name_matcher_ftype): Likewise, and update comments.
1027 2017-11-29 Pedro Alves <palves@redhat.com>
1029 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
1030 * minsyms.c (msymbol_is_text): Delete.
1031 (msymbol_is_function): New function.
1032 * minsyms.h (msymbol_is_text): Delete.
1033 (msymbol_is_function): New declaration.
1034 * symtab.c (find_function_alias_target): Use msymbol_is_function.
1036 2017-11-29 Tom Tromey <tom@tromey.com>
1038 * Makefile.in (distclean): Handle the case where rmdir fails.
1040 2017-11-29 Tom Tromey <tom@tromey.com>
1042 * symfile.c (_initialize_symfile): Update usage text for
1043 add-symbol-file, symbol-file, load.
1045 2017-11-29 Tom Tromey <tom@tromey.com>
1047 * symfile.c (add_symbol_file_command): Error if some arguments to
1048 -s are missing. Change unrecognized-argument error message.
1049 (_initialize_symfile): Fix usage text for add-symbol-file.
1051 2017-11-27 Tom Tromey <tom@tromey.com>
1053 * Makefile.in (REMOTE_OBS): Remove.
1054 (SFILES): Remove remote sources.
1055 (COMMON_SFILES): Add remote sources.
1056 (ALLDEPFILES): Remove dcache.c.
1058 2017-11-27 Tom Tromey <tom@tromey.com>
1060 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
1062 (SFILES): Use SUBDIR_TARGET_SRCS.
1063 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
1064 (CONFIG_SRC_SUBDIR): Add target.
1065 (%.o): Remove target rule.
1067 2017-11-27 Tom Tromey <tom@tromey.com>
1069 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
1070 registry.o, thread-fsm.o, debug.o.
1071 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
1072 thread-fsm.c, debug.c.
1074 2017-11-27 Tom Tromey <tom@tromey.com>
1076 * Makefile.in (COMMON_SFILES): New.
1077 (SFILES): Move some entries to COMMON_SFILES.
1078 (COMMON_OBS): Use COMMON_SFILES.
1080 2017-11-27 Tom Tromey <tom@tromey.com>
1082 * Makefile.in (YYFILES): Update comment.
1085 2017-11-27 Tom Tromey <tom@tromey.com>
1087 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
1088 (CONFIG_SRC_SUBDIR): Add python.
1089 (%.o): Remove python rule.
1090 (python/%.o): New rule.
1091 * configure: Rebuild.
1092 * configure.ac (CONFIG_OBS): Refer to python/python.o
1094 2017-11-27 Tom Tromey <tom@tromey.com>
1096 * configure: Rebuild.
1097 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
1098 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
1099 (CONFIG_SRC_SUBDIR): Add guile.
1100 (%.o): Remove guile rule.
1102 2017-11-27 Tom Tromey <tom@tromey.com>
1104 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
1105 (%.o): Remove unittests rule.
1106 (CONFIG_SRC_SUBDIR): Add unittests.
1108 2017-11-27 Tom Tromey <tom@tromey.com>
1110 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
1111 (CONFIG_SRC_SUBDIR): Add tui.
1112 (%.o): Remove tui rule.
1114 2017-11-27 Tom Tromey <tom@tromey.com>
1116 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
1117 (%.o): Remove compile rule.
1118 (CONFIG_SRC_SUBDIR): Add compile.
1120 2017-11-27 Tom Tromey <tom@tromey.com>
1122 * Makefile.in (SUBDIR_MI_OBS): Redefine.
1123 (%.o): Remove mi rule.
1124 (CONFIG_SRC_SUBDIR): Add mi.
1125 (COMMON_OBS): Use mi/mi-common.o
1127 2017-11-27 Tom Tromey <tom@tromey.com>
1129 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
1130 (%.o): Remove cli rule.
1131 (CONFIG_SRC_SUBDIR): Add cli.
1133 2017-11-27 Tom Tromey <tom@tromey.com>
1135 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
1136 * configure: Rebuild.
1137 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
1138 (CONFIG_DEP_SUBDIR): New variable.
1139 (%.o): Add order-only dependency.
1140 ($(CONFIG_DEP_SUBDIR)): New target.
1142 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
1145 * findcmd.c (_initialize_mem_search): Update find command help
1148 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
1150 * python/python.c (do_start_initialization): Change progname
1151 type to gdb::unique_xmalloc_ptr. Release the pointer when using
1154 2017-11-26 Tom Tromey <tom@tromey.com>
1156 * common/format.h: Add include guards.
1158 2017-11-26 Tom Tromey <tom@tromey.com>
1160 * nat/linux-personality.h (class
1161 maybe_disable_address_space_randomization): New class.
1162 (maybe_disable_address_space_randomization): Don't declare
1164 * nat/linux-personality.c (restore_personality)
1165 (make_disable_asr_cleanup): Remove.
1166 (maybe_disable_address_space_randomization): Now a constructor.
1167 (~maybe_disable_address_space_randomization): New destructor.
1168 * linux-nat.c (linux_nat_create_inferior): Update.
1170 2017-11-26 Tom Tromey <tom@tromey.com>
1172 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
1174 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
1176 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
1177 "cooked" register. Access only first four bytes of branch target
1180 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
1183 * stap-probe.c (relocate_address): New function.
1184 (stap_probe::get_relocated_address): Use 'relocate_address'.
1185 (stap_probe::set_semaphore): Use 'relocate_address' and pass
1187 (stap_probe::clear_semaphore): Likewise.
1189 2017-11-25 Pedro Alves <palves@redhat.com>
1191 * dictionary.c: Include "safe-ctype.h".
1192 * minsyms.c: Include "safe-ctype.h".
1193 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
1195 2017-11-25 Pedro Alves <palves@redhat.com>
1197 * completer.c (complete_line_internal_1): Skip spaces until the
1198 start of the command.
1200 2017-11-24 Pedro Alves <palves@redhat.com>
1202 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
1203 cp_fq_symbol_name_matches. Pass language_cplus to
1205 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
1206 (selftests::test_cp_symbol_name_cmp): New.
1207 (_initialize_cp_support): Register "cp_symbol_name_matches"
1209 * language.c (default_symbol_name_matcher): Pass language_minimal
1210 to strncmp_iw_with_mode.
1211 * utils.c: Include "cp-support.h" and <algorithm>.
1212 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
1213 (cp_is_operator): New functions.
1214 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
1215 skip whitespace in the symbol name when the lookup name doesn't
1216 have spaces, and vice versa.
1217 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
1218 * utils.h (strncmp_iw_with_mode): Add language parameter.
1220 2017-11-24 Joel Brobecker <brobecker@adacore.com>
1222 * ada-lang.c (ada_exception_message_1, ada_exception_message):
1224 (print_it_exception): If available, display the exception
1226 * NEWS: Document new feature.
1228 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
1230 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
1232 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
1234 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
1235 (dtrace_probe::is_enabled, dtrace_probe::enable)
1236 (dtrace_probe::disable): Remove keyword 'struct' at for-range
1238 * probe.c (gen_ui_out_table_header_info)
1239 (print_ui_out_not_applicables): Remove keyword 'struct' at
1242 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1244 * configure.tgt: Add arch/aarch64.o
1246 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1248 * common/common-utils.h: Include poison.h.
1249 (xfree): Remove declaration, add definition with static_assert.
1250 * common/common-utils.c (xfree): Remove.
1251 * common/poison.h (IsMallocatable): Define.
1252 (IsFreeable): Define.
1253 (free): Delete for non-freeable types.
1255 (XNEW): Undef and redefine.
1257 (XCNEW): Undef and redefine.
1259 (XDELETE): Undef and redefine.
1261 (XNEWVEC): Undef and redefine.
1263 (XCNEWVEC): Undef and redefine.
1265 (XRESIZEVEC): Undef and redefine.
1267 (XDELETEVEC): Undef and redefine.
1269 (XNEWVAR): Undef and redefine.
1271 (XCNEWVAR): Undef and redefine.
1273 (XRESIZEVAR): Undef and redefine.
1275 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1277 * gdbthread.h (private_thread_info): Define structure type, add
1278 virtual pure destructor.
1279 (thread_info) <priv>: Change type to unique_ptr.
1280 <private_dtor>: Remove.
1281 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1282 (private_thread_info::~private_thread_info): Provide default
1284 (thread_info::~thread_info): Don't call private_dtor nor
1286 * aix-thread.c (private_thread_info): Rename to ...
1287 (aix_thread_info): ... this.
1288 (get_aix_thread_info): New.
1289 (sync_threadlists): Adjust.
1291 (aix_thread_resume): Adjust.
1292 (aix_thread_fetch_registers): Adjust.
1293 (aix_thread_store_registers): Adjust.
1294 (aix_thread_extra_thread_info): Adjust.
1295 * darwin-nat.h (private_thread_info): Rename to ...
1296 (darwin_thread_info): ... this.
1297 (get_darwin_thread_info): New.
1298 * darwin-nat.c (darwin_init_thread_list): Adjust.
1299 (darwin_check_new_threads): Adjust.
1300 (thread_info_from_private_thread_info): Adjust.
1301 * linux-thread-db.c (private_thread_info): Rename to ...
1302 (thread_db_thread_info): ... this, initialize fields.
1303 (get_thread_db_thread_info): New.
1304 <dying>: Change type to bool.
1305 (update_thread_state): Adjust to type rename.
1306 (record_thread): Adjust to type rename an use of unique_ptr.
1307 (thread_db_pid_to_str): Likewise.
1308 (thread_db_extra_thread_info): Likewise.
1309 (thread_db_thread_handle_to_thread_info): Likewise.
1310 (thread_db_get_thread_local_address): Likewise.
1311 * nto-tdep.h (private_thread_info): Rename to ...
1312 (nto_thread_info): ... this, initialize fields.
1313 (get_nto_thread_info): New.
1314 <name>: Change type to std::string.
1315 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1317 * nto-procfs.c (update_thread_private_data_name): Adjust to
1318 std::string change, allocate nto_private_thread_info with new.
1319 (update_thread_private_data): Adjust to unique_ptr.
1320 * remote.c (private_thread_info): Rename to ...
1321 (remote_thread_info): ... this, initialize data members with
1323 <extra, name>: Change type to std::string.
1324 <thread_handle>: Change type to non-pointer.
1325 (free_private_thread_info): Remove.
1326 (get_private_info_thread): Rename to...
1327 (get_remote_thread_info): ... this, change return type, adjust to
1328 use of unique_ptr, use remote_thread_info constructor.
1329 (remote_add_thread): Adjust.
1330 (get_private_info_ptid): Rename to...
1331 (get_remote_thread_info): ...this, change return type.
1332 (remote_thread_name): Use get_remote_thread_info, adjust to
1333 change to std::string.
1334 (struct thread_item) <~thread_item>: Remove.
1335 <thread_handle>: Make non pointer.
1336 (start_thread): Adjust to thread_item::thread_handle type
1338 (remote_update_thread_list): Adjust to type name change, move
1339 strings from temporary to long-lived object instead of
1341 (remote_threads_extra_info): Use get_remote_thread_info.
1342 (process_initial_stop_replies): Likewise.
1343 (resume_clear_thread_private_info): Likewise.
1344 (remote_resume): Adjust to type name change.
1345 (remote_commit_resume): Use get_remote_thread_info.
1346 (process_stop_reply): Adjust to type name change.
1347 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1348 (remote_stopped_by_hw_breakpoint): Likewise.
1349 (remote_stopped_by_watchpoint): Likewise.
1350 (remote_stopped_data_address): Likewise.
1351 (remote_core_of_thread): Likewise.
1352 (remote_thread_handle_to_thread_info): Use
1353 get_private_info_thread, adjust to thread_handle field type
1356 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1358 * remote.c (struct thread_item): Add constructor, disable copy
1359 construction and copy assignment, define default move
1360 construction and move assignment.
1361 <extra, name>: Change type to std::string.
1363 <thread_handle>: Make non-pointer.
1364 (thread_item_t): Remove typedef.
1365 (DEF_VEC_O(thread_item_t)): Remove.
1366 (threads_listing_context) <contains_thread>: New method.
1367 <remove_thread>: New method.
1368 <items>: Change type to std::vector.
1369 (clear_threads_listing_context): Remove.
1370 (threads_listing_context_remove): Remove.
1371 (remote_newthread_step): Use thread_item constructor, adjust to
1372 change to std::vector.
1373 (start_thread): Use thread_item constructor, adjust to change to
1375 (end_thread): Adjust to change to std::vector and std::string.
1376 (remote_get_threads_with_qthreadinfo): Use thread_item
1377 constructor, adjust to std::vector.
1378 (remote_update_thread_list): Adjust to change to std::vector and
1379 std::string, use threads_listing_context methods.
1380 (remove_child_of_pending_fork): Adjust.
1381 (remove_new_fork_children): Adjust.
1382 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1383 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1384 * unittests/rsp-low-selftests.c: New file.
1385 * common/rsp-low.h: Include common/byte-vector.h.
1386 (hex2bin): New overload.
1387 * common/rsp-low.c (hex2bin): New overload.
1389 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1391 * inferior.h (private_inferior): Define structure type, add
1392 virtual pure destructor.
1393 (inferior) <priv>: Change type to unique_ptr.
1394 * inferior.c (private_inferior::~private_inferior): Provide
1395 default implementation.
1396 (inferior::~inferior): Don't free priv field.
1397 (exit_inferior_1): Likewise.
1398 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1399 (darwin_exception_info): Remove typedef.
1400 (DEF_VEC_O (darwin_thread_t)); Remove.
1401 (private_inferior): Rename to ...
1402 (darwin_private_inferior): ... this, extend private_inferior.
1403 (get_darwin_inferior): New.
1404 <threads>: Change type to std::vector of darwin_thread_t pointers.
1405 * darwin-nat.c (darwin_check_new_threads): Adjust.
1406 (find_inferior_task_it): Adjust.
1407 (darwin_find_thread); Adjust.
1408 (darwin_suspend_inferior): Adjust.
1409 (darwin_resume_inferior): Adjust.
1410 (darwin_find_new_inferior): Adjust.
1411 (darwin_decode_notify_message): Adjust.
1412 (darwin_send_reply): Adjust.
1413 (darwin_resume_inferior_threads): Adjust.
1414 (darwin_suspend_inferior_threads): Adjust.
1415 (darwin_decode_message): Adjust.
1416 (darwin_wait): Adjust.
1417 (darwin_interrupt): Adjust.
1418 (darwin_deallocate_threads): Adjust.
1419 (darwin_mourn_inferior): Adjust, don't free private data.
1420 (darwin_reply_to_all_pending_messages): Adjust.
1421 (darwin_stop_inferior): Adjust.
1422 (darwin_setup_exceptions): Adjust.
1423 (darwin_kill_inferior): Adjust.
1424 (darwin_setup_request_notification): Adjust.
1425 (darwin_attach_pid): Adjust.
1426 (darwin_init_thread_list): Adjust.
1427 (darwin_setup_fake_stop_event): Adjust.
1428 (darwin_attach): Adjust.
1429 (darwin_detach): Adjust.
1430 (darwin_xfer_partial): Adjust.
1431 (set_enable_mach_exceptions): Adjust.
1432 (darwin_pid_to_exec_file): Adjust.
1433 (darwin_get_ada_task_ptid): Adjust.
1434 * darwin-nat-info.c (get_task_from_args): Adjust.
1435 (info_mach_ports_command): Adjust.
1436 (info_mach_region_command): Adjust.
1437 (info_mach_exceptions_command): Adjust.
1438 * remote.c (private_inferior): Rename to ...
1439 (remote_private_inferior): ... this, initialize fields.
1440 (get_remote_inferior); New.
1441 (remote_commit_resume): Use get_remote_inferior.
1442 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1444 2017-11-24 Pedro Alves <palves@redhat.com>
1446 * NEWS: Mention linespecs and explicit locations, and completion
1449 2017-11-24 Yao Qi <yao.qi@linaro.org>
1451 * regcache.c (regcache::dump): Remove footnote_register_size.
1453 2017-11-24 Yao Qi <yao.qi@linaro.org>
1455 * regcache.c (cooked_read_test): Add more test for readonly
1458 2017-11-24 Yao Qi <yao.qi@linaro.org>
1460 * gdbarch-selftests.c (test_target_has_registers): Move it to
1462 (test_target_has_stack): Likewise.
1463 (test_target_has_memory): Likewise.
1464 (test_target_prepare_to_store): Likewise.
1465 (test_target_store_registers): Likewise.
1466 (test_target_ops): Likewise.
1467 * regcache.c: Include selftest-arch.h and gdbthread.h.
1468 (target_ops_no_register): New class.
1469 (test_target_fetch_registers): New.
1470 (test_target_store_registers): New.
1471 (test_target_xfer_partial): New.
1472 (readwrite_regcache): New.
1473 (cooked_read_test): New.
1474 (_initialize_regcache): Register the test.
1475 * target.c: (test_target_has_registers): Moved from
1476 gdbarch-selftests.c.
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 * target.h (test_target_ops): New class.
1483 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1485 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1488 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1490 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1491 * arch/aarch64.c (aarch64_create_target_description): Create
1492 new target description.
1493 * features/Makefile: Add new files.
1494 * features/aarch64.c: Remove file.
1495 * features/aarch64-core.c: New autogenerated file.
1496 * features/aarch64-fpu.c: New autogenerated file.
1497 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1499 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1501 * Makefile.in: Add new files.
1502 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1503 aarch64_read_description.
1504 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1505 Call aarch64_read_description.
1506 * aarch64-tdep.c (aarch64_read_description): New function.
1507 (aarch64_gdbarch_init): Call aarch64_read_description.
1508 * aarch64-tdep.h (aarch64_read_description): New function.
1509 * arch/aarch64.c: New file.
1510 * configure.tgt: Add new files.
1512 2017-11-24 Yao Qi <yao.qi@linaro.org>
1514 * mi/mi-main.c (register_changed_p): Update.
1515 * value.c (value_contents_bits_eq): Change return type.
1516 (value_contents_eq): Likewise.
1517 * value.h: Update comments.
1519 2017-11-24 Yao Qi <yao.qi@linaro.org>
1521 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1522 local 'changed'. Remove error.
1523 (register_changed_p): Change return type to bool.
1525 2017-11-24 Yao Qi <yao.qi@linaro.org>
1527 * arch/tic6x.c: New file.
1528 * arch/tic6x.h: New file.
1529 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1530 tic6x-core.xml and tic6x-gp.xml.
1531 * features/tic6x-c6xp.c: Generated.
1532 * features/tic6x-core.c: Generated.
1533 * features/tic6x-gp.c: Generated.
1534 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1537 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1539 * mi/mi-main.c (list_available_thread_groups): Change map value
1540 type to std::vector.
1542 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1544 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1546 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1548 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1550 <children_requested>: ... this.
1551 (varobj_get_num_children, varobj_update): Adjust.
1553 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1555 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1556 (ada_value_has_mutated): Likewise.
1557 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1558 (c_is_path_expr_parent): Likewise.
1559 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1560 (mi_cmd_var_set_frozen): Likewise.
1561 (mi_cmd_var_update_iter): Likewise.
1562 (mi_cmd_var_update): Likewise.
1563 * varobj.c (pretty_printing): Likewise.
1564 (varobj_enable_pretty_printing): Likewise.
1565 (struct varobj_root) <floating, is_valid>: Likewise.
1566 (struct varobj_dynamic) <children_requested>: Likewise.
1567 (delete_variable): Likewise.
1568 (delete_variable_1): Likewise.
1569 (install_variable): Likewise.
1570 (update_type_if_necessary): Likewise.
1571 (install_new_value): Likewise.
1572 (value_of_root): Likewise.
1573 (is_root_p): Likewise.
1574 (varobj_create): Likewise.
1575 (varobj_delete): Likewise.
1576 (varobj_has_more): Likewise.
1577 (varobj_set_frozen): Likewise.
1578 (varobj_get_frozen): Likewise.
1579 (install_dynamic_child): Likewise.
1580 (dynamic_varobj_has_child_method): Likewise.
1581 (update_dynamic_varobj_children): Likewise.
1582 (varobj_get_num_children): Likewise.
1583 (varobj_list_children): Likewise.
1584 (is_path_expr_parent): Likewise.
1585 (varobj_default_is_path_expr_parent): Likewise.
1586 (varobj_is_dynamic_p): Likewise.
1587 (varobj_set_value): Likewise.
1588 (varobj_value_has_mutated): Likewise.
1589 (varobj_update): Likewise.
1590 (check_scope): Likewise.
1591 (value_of_root_1): Likewise.
1592 (varobj_value_get_print_value): Likewise.
1593 (varobj_editable_p): Likewise.
1594 (varobj_value_is_changeable_p): Likewise.
1595 (varobj_floating_p): Likewise.
1596 (varobj_default_value_is_changeable_p): Likewise.
1597 (varobj_invalidate_iter): Likewise.
1598 * varobj.h (struct varobj_update_result) <type_changed,
1599 children_changed, changed, value_installed>: Likewise.
1600 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1601 (struct lang_varobj_ops) <value_is_changeable_p,
1602 value_has_mutated, is_path_expr_parent>: Likewise.
1603 (varobj_delete): Likewise.
1604 (varobj_set_frozen): Likewise.
1605 (varobj_get_frozen): Likewise.
1606 (varobj_set_value): Likewise.
1607 (varobj_update): Likewise.
1608 (varobj_editable_p): Likewise.
1609 (varobj_floating_p): Likewise.
1610 (varobj_has_more): Likewise.
1611 (varobj_is_dynamic_p): Likewise.
1612 (varobj_default_value_is_changeable_p): Likewise.
1613 (varobj_value_is_changeable_p): Likewise.
1614 (varobj_is_anonymous_child): Likewise.
1615 (varobj_default_is_path_expr_parent): Likewise.
1617 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1619 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1620 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1621 <type_str>: Convert to 'std::string'.
1622 <expr>: Convert to 'expression_up'.
1623 (dtrace_probe_arg_s): Delete type and VEC.
1624 (dtrace_probe_enabler_s): Likewise.
1625 (struct dtrace_probe): Replace by...
1626 (class dtrace_static_probe_ops): ...this and...
1627 (class dtrace_probe): ...this.
1628 (dtrace_probe_is_linespec): Rename to...
1629 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1631 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1632 Adjust code. Create new instance of 'dtrace_probe'.
1633 (dtrace_build_arg_exprs): Rename to...
1634 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1636 (dtrace_get_probes): Rename to...
1637 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1639 (dtrace_get_arg): Rename to...
1640 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1642 (dtrace_probe_is_enabled): Rename to...
1643 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1645 (dtrace_get_probe_address): Rename to...
1646 (dtrace_probe::get_relocated_address): ...this. Adjust code
1648 (dtrace_get_probe_argument_count): Rename to...
1649 (dtrace_probe::get_argument_count): ...this. Adjust code to
1651 (dtrace_can_evaluate_probe_arguments): Rename to...
1652 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1654 (dtrace_evaluate_probe_argument): Rename to...
1655 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1657 (dtrace_compile_to_ax): Rename to...
1658 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1660 (dtrace_probe_destroy): Delete.
1661 (dtrace_type_name): Rename to...
1662 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1664 (dtrace_probe::get_static_ops): New method.
1665 (dtrace_gen_info_probes_table_header): Rename to...
1666 (dtrace_static_probe_ops::gen_info_probes_table_header):
1667 ...this. Adjust code to reflect change.
1668 (dtrace_gen_info_probes_table_values): Rename to...
1669 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1670 code to reflect change.
1671 (dtrace_enable_probe): Rename to...
1672 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1674 (dtrace_disable_probe): Rename to...
1675 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1677 (struct probe_ops dtrace_probe_ops): Delete.
1678 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1679 instead of 'info_probes_for_ops'.
1680 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1683 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1684 Simon Marchi <simark@simark.ca>
1686 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1688 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1689 <aexpr>: Change type to 'expression_up'.
1690 (stap_probe_arg_s): Delete type and VEC.
1691 (struct stap_probe): Delete. Replace by...
1692 (class stap_static_probe_ops): ...this and...
1693 (class stap_probe): ...this. Rename variables to add 'm_'
1694 prefix. Do not use 'union' for arguments anymore.
1695 (stap_get_expected_argument_type): Receive probe name instead
1696 of 'struct stap_probe'. Adjust code.
1697 (stap_parse_probe_arguments): Rename to...
1698 (stap_probe::parse_arguments): ...this. Adjust code to
1700 (stap_get_probe_address): Rename to...
1701 (stap_probe::get_relocated_address): ...this. Adjust code
1703 (stap_get_probe_argument_count): Rename to...
1704 (stap_probe::get_argument_count): ...this. Adjust code
1706 (stap_get_arg): Rename to...
1707 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1709 (can_evaluate_probe_arguments): Rename to...
1710 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1712 (stap_evaluate_probe_argument): Rename to...
1713 (stap_probe::evaluate_argument): ...this. Adjust code
1715 (stap_compile_to_ax): Rename to...
1716 (stap_probe::compile_to_ax): ...this. Adjust code to
1718 (stap_probe_destroy): Delete.
1719 (stap_modify_semaphore): Adjust comment.
1720 (stap_set_semaphore): Rename to...
1721 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1723 (stap_clear_semaphore): Rename to...
1724 (stap_probe::clear_semaphore): ...this. Adjust code to
1726 (stap_probe::get_static_ops): New method.
1727 (handle_stap_probe): Adjust code to create instance of
1729 (stap_get_probes): Rename to...
1730 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1732 (stap_probe_is_linespec): Rename to...
1733 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1735 (stap_type_name): Rename to...
1736 (stap_static_probe_ops::type_name): ...this. Adjust code to
1738 (stap_gen_info_probes_table_header): Rename to...
1739 (stap_static_probe_ops::gen_info_probes_table_header):
1740 ...this. Adjust code to reflect change.
1741 (stap_gen_info_probes_table_values): Rename to...
1742 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1743 code to reflect change.
1744 (struct probe_ops stap_probe_ops): Delete.
1745 (info_probes_stap_command): Use 'info_probes_for_spops'
1746 instead of 'info_probes_for_ops'.
1747 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1750 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1752 * break-catch-throw.c (fetch_probe_arguments): Use
1753 'probe.prob' instead of 'probe.probe'.
1754 * breakpoint.c (create_longjmp_master_breakpoint): Call
1755 'can_evaluate_arguments' and 'get_relocated_address' methods
1757 (create_exception_master_breakpoint): Likewise.
1758 (add_location_to_breakpoint): Use 'sal->prob' instead of
1760 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1762 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1763 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1765 (probe_key_free): Call 'delete' on probe.
1766 (check_exception_resume): Use 'probe.prob' instead of
1768 * location.c (string_to_event_location_basic): Call
1769 'probe_linespec_to_static_ops'.
1770 * probe.c (class any_static_probe_ops): New class.
1771 (any_static_probe_ops any_static_probe_ops): New variable.
1772 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1773 argument. Adjust code to reflect change.
1774 (parse_probes): Use 'static_probe_ops' instead of
1775 'probe_ops'. Adjust code to reflect change.
1776 (find_probes_in_objfile): Call methods to get name and
1777 provider from probe.
1778 (find_probe_by_pc): Use 'result.prob' instead of
1779 'result.probe'. Call 'get_relocated_address' method from
1781 (collect_probes): Adjust comment and argument list to receive
1782 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1783 reflect change. Call necessary methods from probe.
1784 (compare_probes): Call methods to get name and provider from
1786 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1787 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1788 adjust code accordingly.
1789 (print_ui_out_not_applicables): Likewise.
1790 (info_probes_for_ops): Rename to...
1791 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1792 as argument instead of 'probe_ops'. Adjust code. Call
1793 necessary methods from probe.
1794 (info_probes_command): Use 'info_probes_for_spops'.
1795 (enable_probes_command): Pass correct argument to
1796 'collect_probes'. Call methods from probe.
1797 (disable_probes_command): Likewise.
1798 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1799 (get_probe_argument_count): Move to
1800 'any_static_probe_ops::get_argument_count'.
1801 (can_evaluate_probe_arguments): Move to
1802 'any_static_probe_ops::can_evaluate_arguments'.
1803 (evaluate_probe_argument): Move to
1804 'any_static_probe_ops::evaluate_argument'.
1805 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1807 (probe_linespec_to_ops): Rename to...
1808 (probe_linespec_to_static_ops): ...this. Adjust code.
1809 (probe_any_is_linespec): Rename to...
1810 (any_static_probe_ops::is_linespec): ...this.
1811 (probe_any_get_probes): Rename to...
1812 (any_static_probe_ops::get_probes): ...this.
1813 (any_static_probe_ops::type_name): New method.
1814 (any_static_probe_ops::gen_info_probes_table_header): New
1816 (compute_probe_arg): Use 'pc_probe.prob' instead of
1817 'pc_probe.probe'. Call methods from probe.
1818 (compile_probe_arg): Likewise.
1819 (std::vector<const probe_ops *> all_probe_ops): Delete.
1820 (std::vector<const static_probe_ops *> all_static_probe_ops):
1822 (_initialize_probe): Use 'all_static_probe_ops' instead of
1824 * probe.h (struct info_probe_column) <field_name>: Delete
1826 (info_probe_column_s): Delete type and VEC.
1827 (struct probe_ops): Delete. Replace with...
1828 (class static_probe_ops): ...this and...
1829 (clas probe): ...this.
1830 (struct bound_probe) <bound_probe>: Delete extraneous
1831 newline. Adjust constructor to receive 'probe' instead of
1833 <probe>: Rename to...
1834 <prob>: ...this. Delete extraneous newline.
1835 <objfile>: Delete extraneous newline.
1836 (register_probe_ops): Delete unused prototype.
1837 (info_probes_for_ops): Rename to...
1838 (info_probes_for_spops): ...this. Adjust comment.
1839 (get_probe_address): Move to 'probe::get_address'.
1840 (get_probe_argument_count): Move to
1841 'probe::get_argument_count'.
1842 (can_evaluate_probe_arguments): Move to
1843 'probe::can_evaluate_arguments'.
1844 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1845 * solib-svr4.c (struct svr4_info): Adjust comment.
1846 (struct probe_and_action) <probe>: Rename to...
1848 (register_solib_event_probe): Receive 'probe' instead of
1849 'struct probe' as argument. Use 'prob' instead of 'probe'
1851 (solib_event_probe_action): Call 'get_argument_count' method
1852 from probe. Adjust comment.
1853 (svr4_handle_solib_event): Adjust comment. Call
1854 'evaluate_argument' method from probe.
1855 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1857 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1858 'struct probe'. Call 'can_evaluate_arguments' from probe.
1859 * symfile.h: Forward declare 'class probe' instead of 'struct
1861 * symtab.h: Likewise.
1862 (struct symtab_and_line) <probe>: Rename to...
1864 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1866 (stop_tracing): Likewise.
1868 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1870 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1871 trailing newline at end of string in call to warning.
1873 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1875 * osdata.h: Include vector isntead of vec.h.
1876 (osdata_column_s): Remove typedef.
1877 (struct osdata_column): Add constructor.
1878 <name, value>: Change type to std::string.
1879 (DEF_VEC_O (osdata_column_s)): Remove.
1880 (osdata_item_s): Remove typedef.
1881 (struct osdata_item) <columns>: Change type to std::vector.
1882 (DEF_VEC_O (osdata_item_s)): Remove.
1883 (struct osdata): Add constructor.
1884 <type>: Change type to std::string.
1885 <items>: Change type to std::vector.
1886 (osdata_p): Remove typedef.
1887 (DEF_VEC_P (osdata_p)): Remove.
1888 (osdata_parse): Return a unique_ptr.
1889 (osdata_free): Remove.
1890 (make_cleanup_osdata_free): Remove.
1891 (get_osdata): Return a unique_ptr.
1892 (get_osdata_column): Return pointer to std::string, take a
1893 reference to osdata_item as parameter.
1894 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1896 <property_name>: Change type to std::string.
1897 (osdata_start_osdata): Allocate osdata with new and adjust.
1898 (osdata_start_item): Adjust.
1899 (osdata_start_column): Adjust.
1900 (osdata_end_column): Adjust.
1901 (clear_parsing_data): Remove.
1902 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1903 (osdata_item_clear): Remove.
1904 (get_osdata): return a unique_ptr and adjust.
1905 (get_osdata_column): Return a pointer to std::string and adjust.
1906 (info_osdata): Adjust.
1907 * mi/mi-main.c: Include <map>.
1908 (free_vector_of_osdata_items): Remove.
1909 (list_available_thread_groups): Adjust, use std::map instead of
1912 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1914 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1917 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1919 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1921 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1923 * varobj.h (struct varobj_update_result): Add constructor, add
1924 move constructor, disable copy and assign, initialize fields.
1925 <newobj>: Change type to std::vector.
1926 (varobj_update): Return std::vector.
1927 * varobj.c (install_dynamic_child): Change VEC parameters to
1928 std::vector and adjust.
1929 (update_dynamic_varobj_children): Likewise.
1930 (varobj_update): Return std::vector and adjust.
1931 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1933 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1935 * varobj.h (struct varobj) <parent>: Remove const.
1936 <children>: Change type to std::vector.
1937 (varobj_list_children): Return std::vector const reference.
1938 (varobj_restrict_range): Change parameter type to std::vector
1940 * varobj.c (varobj_has_more): Adjust.
1941 (varobj_restrict_range): Change parameter type to std::vector
1942 const reference and adjust.
1943 (install_dynamic_child): Adjust.
1944 (update_dynamic_varobj_children): Adjust.
1945 (varobj_list_children): Return std::vector const reference and
1947 (varobj_add_child): Adjust.
1948 (update_type_if_necessary): Adjust.
1949 (varobj_update): Adjust.
1950 (delete_variable_1): Adjust.
1951 * ada-varobj.c (ada_value_has_mutated): Adjust.
1952 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1954 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1956 * varobj.h (struct varobj): Add constructor and destructor,
1958 * varobj.c (struct varobj_root): Initialize fields.
1959 (struct varobj_dynamic): Initialize fields.
1960 (varobj_create): Use unique_ptr instead of cleanup. Create
1961 varobj with new instead of new_root_variable.
1962 (delete_variable_1): Free variable with delete instead of
1964 (create_child_with_value): Create variable with new instead of
1966 (varobj::varobj): New.
1967 (varobj::~varobj): New (body mostly coming from free_variable).
1968 (new_variable): Remove.
1969 (free_variable): Remove.
1970 (do_free_variable_cleanup): Remove.
1971 (make_cleanup_free_variable): Remove.
1973 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1975 * core-regset.c: Remove file.
1976 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1978 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1980 * NEWS: Document use of GNU MPFR.
1983 * Makefile.in (LIBMPFR): Add define.
1984 (CLIBS): Add $(LIBMPFR).
1985 * configure.ac: Add --with-mpfr configure option.
1986 * configure: Regenerate.
1987 * config.in: Regenerate.
1989 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1990 (class mpfr_float_ops): New type.
1991 (mpfr_float_ops::from_target): Two new overloaded functions.
1992 (mpfr_float_ops::to_target): Likewise.
1993 (mpfr_float_ops::to_string): New function.
1994 (mpfr_float_ops::from_string): Likewise.
1995 (mpfr_float_ops::to_longest): Likewise.
1996 (mpfr_float_ops::from_longest): Likewise.
1997 (mpfr_float_ops::from_ulongest): Likewise.
1998 (mpfr_float_ops::to_host_double): Likewise.
1999 (mpfr_float_ops::from_host_double): Likewise.
2000 (mpfr_float_ops::convert): Likewise.
2001 (mpfr_float_ops::binop): Likewise.
2002 (mpfr_float_ops::compare): Likewise.
2003 (get_target_float_ops): Use mpfr_float_ops if available.
2005 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
2007 * target-float.c: Do not include <math.h>.
2008 Include <cmath> and <limits>.
2009 (DOUBLEST): Do not define.
2010 (class target_float_ops): New type.
2011 (class host_float_ops): New templated type.
2012 (class decimal_float_ops): New type.
2014 (floatformat_to_doublest): Rename to ...
2015 (host_float_ops<T>::from_target): ... this. Use template type T
2016 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2017 (host_float_ops<T>::from_target): New overload using a type argument.
2018 (floatformat_from_doublest): Rename to ...
2019 (host_float_ops<T>::to_target): ... this. Use template type T
2020 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
2021 (host_float_ops<T>::to_target): New overload using a type argument.
2022 (floatformat_printf_format): New function.
2023 (struct printf_length_modifier): New templated type.
2024 (floatformat_to_string): Rename to ...
2025 (host_float_ops<T>::to_string): ... this. Use type instead of
2026 floatformat argument. Use floatformat_printf_format and
2027 printf_length_modifier. Remove special handling of invalid numbers,
2028 infinities and NaN (moved to target_float_to_string).
2029 (struct scanf_length_modifier): New templated type.
2030 (floatformat_from_string): Rename to ...
2031 (host_float_ops<T>::from_string): ... this. Use type instead of
2032 floatformat argument. Use scanf_length_modifier.
2033 (floatformat_to_longest): Rename to ...
2034 (host_float_ops<T>::to_longest): ... this. Use type instead of
2035 floatformat argument. Handle out-of-range values deterministically.
2036 (floatformat_from_longest): Rename to ...
2037 (host_float_ops<T>::from_longest): ... this. Use type instead of
2038 floatformat argument.
2039 (floatformat_from_ulongest): Rename to ...
2040 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
2041 floatformat argument.
2042 (floatformat_to_host_double): Rename to ...
2043 (host_float_ops<T>::to_host_double): ... this. Use type instead of
2044 floatformat argument.
2045 (floatformat_from_host_double): Rename to ...
2046 (host_float_ops<T>::from_host_double): ... this. Use type instead of
2047 floatformat argument.
2048 (floatformat_convert): Rename to ...
2049 (host_float_ops<T>::convert): ... this. Use type instead of
2050 floatformat arguments. Remove handling of no-op conversions.
2051 (floatformat_binop): Rename to ...
2052 (host_float_ops<T>::binop): ... this. Use type instead of
2053 floatformat arguments.
2054 (floatformat_compare): Rename to ...
2055 (host_float_ops<T>::compare): ... this. Use type instead of
2056 floatformat arguments.
2058 (match_endianness): Use type instead of length/byte_order arguments.
2059 (set_decnumber_context): Likewise.
2060 (decimal_from_number): Likewise. Update calls.
2061 (decimal_to_number): Likewise.
2062 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
2063 (decimal_float_ops::to_host_double): New dummy function.
2064 (decimal_float_ops::from_host_double): Likewise.
2065 (decimal_to_string): Rename to ...
2066 (decimal_float_ops::to_string): ... this. Use type instead of
2067 length/byte_order arguments. Update calls.
2068 (decimal_from_string): Rename to ...
2069 (decimal_float_ops::from_string): ... this. Use type instead of
2070 length/byte_order arguments. Update calls.
2071 (decimal_from_longest): Rename to ...
2072 (decimal_float_ops::from_longest): ... this. Use type instead of
2073 length/byte_order arguments. Update calls.
2074 (decimal_from_ulongest): Rename to ...
2075 (decimal_float_ops::from_ulongest): ... this. Use type instead of
2076 length/byte_order arguments. Update calls.
2077 (decimal_to_longest): Rename to ...
2078 (decimal_float_ops::to_longest): ... this. Use type instead of
2079 length/byte_order arguments. Update calls.
2080 (decimal_binop): Rename to ...
2081 (decimal_float_ops::binop): ... this. Use type instead of
2082 length/byte_order arguments. Update calls.
2083 (decimal_compare): Rename to ...
2084 (decimal_float_ops::compare): ... this. Use type instead of
2085 length/byte_order arguments. Update calls.
2086 (decimal_convert): Rename to ...
2087 (decimal_float_ops::convert): ... this. Use type instead of
2088 length/byte_order arguments. Update calls.
2090 (target_float_same_category_p): New function.
2091 (target_float_same_format_p): Likewise.
2092 (target_float_format_length): Likewise.
2093 (enum target_float_ops_kind): New type.
2094 (get_target_float_ops_kind): New function.
2095 (get_target_float_ops): Three new overloaded functions.
2097 (target_float_is_zero): Update call.
2098 (target_float_to_string): Add special handling of invalid numbers,
2099 infinities and NaN (moved from floatformat_to_string). Use
2100 target_float_ops callback.
2101 (target_float_from_string): Use target_float_ops callback.
2102 (target_float_to_longest): Likewise.
2103 (target_float_from_longest): Likewise.
2104 (target_float_from_ulongest): Likewise.
2105 (target_float_to_host_double): Likewise.
2106 (target_float_from_host_double): Likewise.
2107 (target_float_convert): Add special case for no-op conversions.
2108 Use target_float_ops callback.
2109 (target_float_binop): Use target_float_ops callback.
2110 (target_float_compare): Likewise.
2112 2017-11-22 Yao Qi <yao.qi@linaro.org>
2114 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
2116 2017-11-22 Yao Qi <yao.qi@linaro.org>
2118 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
2119 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
2121 2017-11-21 Jerome Guitton <guitton@adacore.com>
2123 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
2124 with event ptid from the lower layer before doing the
2125 ravenscar-specific update.
2127 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2129 * ravenscar-thread.c (is_ravenscar_task): Also verify that
2130 the ptid's TID is nonzero.
2132 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2134 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
2135 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
2136 Make non-static. Change return type to char *. Adjust code
2137 accordingly. Rewrite the function's documentation.
2138 (read_atcb): Adjust call to get_tcb_types_info accordingly.
2139 * ravenscar-thread.c (ravenscar_inferior_created): Check that
2140 we have enough debugging information in the runtime to support
2141 Ada task debugging before we enable the ravenscar-thread layer.
2143 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2145 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
2146 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
2147 * ravenscar-thread.c: Add into comment.
2148 (base_magic_null_ptid): Delete.
2149 (base_ptid): Change documentation.
2150 (ravenscar_active_task): Renames ravenscar_running_thread.
2151 All callers updated throughout.
2152 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
2153 (ravenscar_task_is_currently_active): Likewise.
2154 (get_base_thread_from_ravenscar_task): Ditto.
2155 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
2156 (ravenscar_runtime_initialized): Likewise.
2157 (get_running_thread_id): Add new parameter "cpu". Adjust
2158 implementation to handle this new parameter.
2159 (ravenscar_fetch_registers): Small adjustment to use
2160 is_ravenscar_task and ravenscar_task_is_currently_active in
2161 order to decide whether to use the target beneath or this
2163 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
2164 (ravenscar_stopped_by_sw_breakpoint): Use
2165 get_base_thread_from_ravenscar_task to get the underlying
2166 thread, rather than using base_ptid.
2167 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2168 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2170 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
2172 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2174 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
2175 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
2176 (get_tcb_types_info): Set fieldnos.base_cpu.
2177 (read_atcb): Set task_info->base_cpu.
2178 (info_task): Print "Base CPU" info if set by runtime.
2180 2017-11-21 Joel Brobecker <brobecker@adacore.com>
2182 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
2183 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
2184 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
2186 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
2187 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
2188 to_stopped_data_address and to_core_of_thread fields of
2191 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
2193 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
2194 (struct gdbarch_tdep): New member long_double_abi.
2195 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
2196 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
2197 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
2198 format depending on long_double_abi tdep member.
2199 (ppc_floatformat_for_type): Handle __ibm128 type.
2201 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
2203 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
2205 2017-11-21 Pedro Alves <palves@redhat.com>
2207 * dwarf2read.c (mapped_index::find_name_components_bounds)
2208 <completion mode, upper bound>: Use std::lower_bound instead of
2210 (test_mapped_index_find_name_component_bounds): Remove incorrect
2211 "t1_fund" from expected symbols.
2213 2017-11-21 Pedro Alves <palves@redhat.com>
2215 * dwarf2read.c (mapped_index::name_components_casing): New field.
2216 (mapped_index) <build_name_components,
2217 find_name_components_bounds): Declare new methods.
2218 (mapped_index::find_name_components_bounds)
2219 (mapped_index::build_name_components): New methods, factored out
2220 from dw2_expand_symtabs_matching_symbol.
2221 (check_find_bounds_finds)
2222 (test_mapped_index_find_name_component_bounds): New.
2223 (run_test): Rename to ...
2224 (test_dw2_expand_symtabs_matching_symbol): ... this.
2225 (run_test): Reimplement.
2227 2017-11-21 Pedro Alves <palves@redhat.com>
2229 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
2230 (symbol_end): Use cp_ident_is_alnum.
2231 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
2232 * dwarf2read.c (make_sort_after_prefix_name): New function.
2233 (dw2_expand_symtabs_matching_symbol): Use it.
2234 (test_symbols): Add more symbols.
2235 (run_test): Add tests.
2237 2017-11-17 Tom Tromey <tom@tromey.com>
2239 * symtab.h (enum symbol_subclass_kind): New.
2240 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2242 <subclass>: New member.
2243 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2244 * rust-lang.c (rust_get_trait_object_pointer): Update.
2245 * dwarf2read.c (read_func_scope): Update.
2246 (read_variable): Update.
2248 2017-11-17 Tom Tromey <tom@tromey.com>
2250 * dwarf2read.c (read_func_scope): Update.
2251 * symtab.h (struct template_symbol): Derive from symbol.
2254 2017-11-17 Tom Tromey <tom@tromey.com>
2256 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2257 (struct rust_vtable_symbol): New.
2258 (find_symbol_at_address): Declare.
2259 * symtab.c (find_symbol_at_address): New function.
2260 * symfile.h (struct quick_symbol_functions)
2261 <find_compunit_symtab_by_address>: New member.
2262 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2264 (debug_sym_quick_functions): Link to
2265 debug_qf_find_compunit_symtab_by_address.
2266 * rust-lang.c (rust_get_trait_object_pointer): New function.
2267 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2268 rust_get_trait_object_pointer.
2269 * psymtab.c (psym_relocate): Clear psymbol_map.
2270 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2272 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2273 * objfiles.h (struct objfile) <psymbol_map>: New member.
2274 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2275 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2276 (rust_containing_type, read_variable): New functions.
2278 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2280 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2282 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2284 * common/filestuff.c: Include <algorithm>.
2285 (open_fds): Change type to std::vector<int>.
2286 (do_mark_open_fd): Adjust.
2287 (unmark_fd_no_cloexec): Adjust.
2290 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2292 * breakpoint.c (output_thread_groups): Take an std::vector.
2293 (print_one_breakpoint_location): Adjust.
2295 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2297 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2298 (ada_evaluate_subexp_for_cast): New function.
2299 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2300 ada_evaluate_subexp_for_cast.
2301 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2303 * eval.c (evaluate_var_value): Make non-static.
2304 (evaluate_var_msym_value, eval_skip_value): Likewise.
2305 * value.h (evaluate_var_value, evaluate_var_msym_value)
2306 (eval_skip_value): Declare.
2308 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2310 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2313 2017-11-16 Pedro Alves <palves@redhat.com>
2315 * python/py-unwind.c (pyuw_sniffer): Translate
2316 PyExc_KeyboardInterrupt to a GDB Quit exception.
2318 2017-11-16 Pedro Alves <palves@redhat.com>
2320 * infrun.c (resume_cleanups): Delete.
2321 (resume): No longer install a resume_cleanups cleanup nor call
2323 (proceed): Pass the terminal to the inferior.
2324 (keep_going_pass_signal): No longer install a resume_cleanups
2327 2017-11-16 Pedro Alves <palves@redhat.com>
2329 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2330 if the prompt is blocked.
2332 2017-11-16 Pedro Alves <palves@redhat.com>
2334 * breakpoint.c (insert_bp_location): Replace bp_err and
2335 bp_err_message locals by a gdb_exception local.
2337 2017-11-16 Pedro Alves <palves@redhat.com>
2339 * inflow.c (scoped_ignore_sigttou): New class.
2340 (child_terminal_ours_1, new_tty): Use it.
2342 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2344 * target-float.c (decimal_from_number): Add byte_order argument and
2345 call match_endianness. Error if unknown floating-point type.
2346 (decimal_to_number): Add byte_order argument and call match_endianness.
2347 (decimal_from_longest): Update call. Do not call match_endianness.
2348 (decimal_from_ulongest): Likewise.
2349 (decimal_binop): Likewise.
2350 (decimal_is_zero): Likewise.
2351 (decimal_compare): Likewise.
2352 (decimal_convert): Likewise.
2354 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2356 * python/python.c (gdbpy_rbreak): New function.
2357 * NEWS: Document Python rbreak feature.
2359 2017-11-16 Yao Qi <yao.qi@linaro.org>
2361 * features/tic6x-c62x.xml: Remove.
2362 * features/tic6x-c64x.xml: Remove.
2363 * features/tic6x-c64xp.xml: Remove.
2365 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2367 * symtab.h: Include <array>.
2369 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2371 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2372 (bsd_kvm_proc_cmd): Likewise.
2374 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2376 * tui/tui-win.c (window_name_completer): Replace VEC with
2379 2017-11-15 Andrew Cagney <cagney@gnu.org>
2381 * MAINTAINERS: Remove no-longer applicable entries.
2383 2017-11-15 Andrew Cagney <cagney@gnu.org>
2385 * MAINTAINERS: Move self to Past Maintainers.
2387 2017-11-15 Yao Qi <yao.qi@linaro.org>
2389 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2390 * features/nios2-linux.c: Remove.
2391 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2392 initialize_tdesc_nios2_linux.
2394 2017-11-15 Yao Qi <yao.qi@linaro.org>
2396 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2397 M68HC11_LAST_HARD_REG + 1.
2399 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2402 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2403 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2404 Return TARGET_XFER_EOF if size of returned data is 0.
2406 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2408 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2409 memory-map-selftests.c.
2410 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2411 * memory-map.c (memory_map_start_memory): Fix computation of hi
2413 * unittests/memory-map-selftests.c: New file.
2415 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2417 * ada-lang.c: Fix some typos in the general command documenting
2418 how Ada expressions are being evaluated and how their result
2421 2017-11-09 Tom Tromey <tom@tromey.com>
2423 * psymtab.c (psymbol_hash): Do not hash string contents.
2424 (psymbol_compare): Add comment.
2426 2017-11-09 Tom Tromey <tom@tromey.com>
2428 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2430 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2432 * ada-exp.y (write_var_from_sym): Remove parameter
2433 "orig_left_context". Update all callers.
2435 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2437 * tracepoint.h (class collection_list) <stringify>: Return
2438 std::vector<std::string>.
2439 (encode_actions_rsp): Change parameters to
2440 std::vector<std::string> *.
2441 * tracepoint.c (collection_list::stringify): Return
2442 std::vector<std::string> and adjust accordingly.
2443 (encode_actions_rsp): Changee parameters to
2444 std::vector<std::string> and adjust accordingly.
2445 * remote.c (free_actions_list),
2446 free_actions_list_cleanup_wrapper): Remove.
2447 (remote_download_tracepoint): Adjust to std::vector.
2449 2017-11-08 Tom Tromey <tom@tromey.com>
2451 * dwarf2read.c (symbolp): Remove typedef.
2452 (read_func_scope): Use std::vector.
2453 (process_structure_scope): Use std::vector.
2455 2017-11-08 Pedro Alves <palves@redhat.com>
2457 * ada-lang.c (ada_make_symbol_completion_list): Use
2458 completion_skip_symbol.
2459 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2460 (symbol_is_function_or_method(symbol*)): New.
2461 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2462 completion_skip_symbol.
2463 (default_collect_symbol_completion_matches_break_on): Use
2464 completion_skip_symbol. Pass down mode.
2465 (collect_file_symbol_completion_matches): Pass down mode.
2466 * symtab.h (symbol_is_function_or_method): New declarations.
2467 (completion_skip_symbol): New template function.
2469 2017-11-08 Pedro Alves <palves@redhat.com>
2471 * linespec.c (iterate_over_all_matching_symtabs): Add
2472 search_domain parameter. Pass it down to expand_symtabs_matching.
2473 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2474 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2476 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2478 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2480 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2483 2017-11-08 Pedro Alves <palves@redhat.com>
2485 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2486 text_len locals and don't pass them down.
2487 * symtab.c (completion_list_add_name): Remove
2488 sym_text/sym_text_len parameters and adjust.
2489 (completion_list_add_symbol, completion_list_add_msymbol)
2490 (completion_list_objc_symbol, completion_list_add_fields)
2491 (add_symtab_completions): Likewise.
2492 (default_collect_symbol_completion_matches_break_on)
2493 (collect_file_symbol_completion_matches): Remove sym_text_len
2494 local and don't pass it down.
2495 * symtab.h (completion_list_add_name): Remove
2496 sym_text/sym_text_len parameters.
2498 2017-11-08 Pedro Alves <palves@redhat.com>
2500 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2501 unittests/lookup_name_info-selftests.c.
2502 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2503 * cp-support.c: Include "selftest.h".
2504 (cp_remove_params_1): Rename from cp_remove_params. Add
2505 'require_param' parameter, and handle it.
2506 (cp_remove_params): Reimplement.
2507 (cp_remove_params_if_any): New.
2508 (selftests::quote): New.
2509 (selftests::check_remove_params): New.
2510 (selftests::test_cp_remove_params): New.
2511 (_initialize_cp_support): Install
2512 selftests::test_cp_remove_params.
2513 * cp-support.h (cp_remove_params_if_any): Declare.
2514 * dwarf2read.c :Include "selftest.h".
2515 (dw2_expand_symtabs_matching_symbol): Use
2516 lookup_name_info::make_ignore_params.
2517 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2518 (selftests::dw2_expand_symtabs_matching::string_or_null)
2519 (selftests::dw2_expand_symtabs_matching::check_match)
2520 (selftests::dw2_expand_symtabs_matching::test_symbols)
2521 (selftests::dw2_expand_symtabs_matching::run_test): New.
2522 (_initialize_dwarf2_read): Register
2523 selftests::dw2_expand_symtabs_matching::run_test.
2524 * psymtab.c (psym_expand_symtabs_matching): Use
2525 lookup_name_info::make_ignore_params.
2526 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2527 If the lookup name wants to ignore parameters, strip them.
2528 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2530 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2531 (default_collect_symbol_completion_matches_break_on): Don't try to
2533 * symtab.h (lookup_name_info::lookup_name_info): Add
2534 'ignore_parameters' parameter.
2535 (lookup_name_info::ignore_parameters)
2536 (lookup_name_info::make_ignore_params): New methods.
2537 (lookup_name_info::m_ignore_parameters): New field.
2538 * unittests/lookup_name_info-selftests.c: New file.
2540 2017-11-08 Pedro Alves <palves@redhat.com>
2542 * dwarf2read.c (dw2_expand_marked_cus)
2543 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2544 (dw2_expand_symtabs_matching): Move further below.
2545 (dw2_expand_marked_cus): Reindent.
2547 2017-11-08 Pedro Alves <palves@redhat.com>
2549 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2550 (struct name_component): New.
2551 (mapped_index::name_components): New field.
2552 (mapped_index::symbol_name_at): New method.
2553 (dwarf2_read_index): Call mapped_index ctor.
2554 (dw2_map_matching_symbols): Add comment about name_components
2556 (dw2_expand_symtabs_matching): Factor part to...
2557 (dw2_expand_symtabs_matching_symbol): ... this new function.
2558 Build name components table, and lookup symbols in it before
2559 calling the name matcher.
2560 (dw2_expand_marked_cus): New, factored out from
2561 dw2_expand_symtabs_matching.
2562 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2564 2017-11-08 Pedro Alves <palves@redhat.com>
2566 * ada-lang.c (ada_encode): Rename to ..
2567 (ada_encode_1): ... this. Add throw_errors parameter and handle
2569 (ada_encode): Reimplement.
2570 (match_name): Delete, folded into full_name.
2571 (resolve_subexp): No longer pass the encoded name to
2572 ada_lookup_symbol_list.
2573 (should_use_wild_match): Delete.
2574 (name_match_type_from_name): New.
2575 (ada_lookup_simple_minsym): Use lookup_name_info and the
2576 language's symbol_name_matcher_ftype.
2577 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2578 (ada_add_block_renamings): Adjust to use lookup_name_info.
2579 (ada_lookup_name): New.
2580 (add_nonlocal_symbols, ada_add_all_symbols)
2581 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2582 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2583 (ada_name_for_lookup): Delete.
2584 (ada_lookup_encoded_symbol): Construct a verbatim name.
2585 (wild_match): Reverse sense of return type. Use bool.
2586 (full_match): Reverse sense of return type. Inline bits of old
2588 (ada_add_block_symbols): Adjust to use lookup_name_info.
2589 (symbol_completion_match): Delete, folded into...
2590 (ada_lookup_name_info::matches): ... .this new method.
2591 (symbol_completion_add): Delete.
2592 (ada_collect_symbol_completion_matches): Add name_match_type
2593 parameter. Adjust to use lookup_name_info and
2594 completion_list_add_name.
2595 (get_var_value, ada_add_global_exceptions): Adjust to use
2597 (ada_get_symbol_name_cmp): Delete.
2598 (do_wild_match, do_full_match): New functions.
2599 (ada_lookup_name_info::ada_lookup_name_info): New method.
2600 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2602 (ada_language_defn): Install ada_get_symbol_name_matcher.
2603 * ada-lex.l (processId): If name starts with '<', copy it
2605 * block.c (block_iter_match_step, block_iter_match_first)
2606 (block_iter_match_next, block_lookup_symbol)
2607 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2609 * block.h (block_iter_match_first, block_iter_match_next)
2610 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2611 * c-lang.c (c_language_defn, cplus_language_defn)
2612 (asm_language_defn, minimal_language_defn): Adjust comments to
2613 refer to la_get_symbol_name_matcher.
2614 * completer.c (complete_files_symbols)
2615 (collect_explicit_location_matches, symbol_completer): Pass a
2616 symbol_name_match_type down.
2617 * completer.h (class completion_match, completion_match_result):
2619 (completion_tracker::reset_completion_match_result): New method.
2620 (completion_tracker::m_completion_match_result): New field.
2621 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2623 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2625 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2626 * d-lang.c: Adjust comments to refer to
2627 la_get_symbol_name_matcher.
2628 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2629 Adjust to use lookup_name_info.
2630 (dict_iter_match_first, dict_iter_match_next)
2631 (iter_match_first_hashed, iter_match_next_hashed)
2632 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2633 with a lookup_name_info.
2634 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2636 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2637 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2638 (gdb_index_symbol_name_matcher): New class.
2639 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2640 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2641 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2642 with a symbol_name_match_type.
2643 (f_language_defn): Adjust comments to refer to
2644 la_get_symbol_name_matcher.
2645 * go-lang.c (go_language_defn): Adjust comments to refer to
2646 la_get_symbol_name_matcher.
2647 * language.c (default_symbol_name_matcher)
2648 (language_get_symbol_name_matcher): New functions.
2649 (unknown_language_defn, auto_language_defn): Adjust comments to
2650 refer to la_get_symbol_name_matcher.
2651 * language.h (symbol_name_cmp_ftype): Delete.
2652 (language_defn) <la_collect_symbol_completion_matches>: Add match
2654 <la_get_symbol_name_cmp>: Delete field.
2655 <la_get_symbol_name_matcher>: New field.
2656 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2657 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2659 * linespec.c (iterate_over_all_matching_symtabs)
2660 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2661 (find_methods): Add language parameter, and use lookup_name_info
2662 and the language's symbol_name_matcher_ftype.
2663 (linespec_complete_function): Adjust.
2664 (lookup_prefix_sym): Use lookup_name_info.
2665 (add_all_symbol_names_from_pspace): Adjust.
2666 (find_superclass_methods): Add language parameter and pass it
2668 (find_method): Pass symbol language down.
2669 (find_linespec_symbols): Don't demangle or Ada encode here.
2670 (search_minsyms_for_name): Add lookup_name_info parameter.
2671 (add_matching_symbols_to_info): Add name_match_type parameter.
2672 Use lookup_name_info.
2673 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2674 la_get_symbol_name_matcher.
2675 * minsyms.c: Include <algorithm>.
2676 (add_minsym_to_demangled_hash_table): Remove table parameter and
2677 add objfile parameter. Use search_name_hash, and add language to
2678 demangled languages vector.
2679 (struct found_minimal_symbols): New struct.
2680 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2682 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2683 input names here. Use lookup_name_info instead. Lookup up
2684 demangled names once for each language in the demangled names
2686 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2687 demangled names once for each language in the demangled names
2689 (build_minimal_symbol_hash_tables): Adjust.
2690 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2692 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2693 la_get_symbol_name_matcher.
2694 * objfiles.h: Include <vector>.
2695 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2696 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2697 la_get_symbol_name_matcher.
2698 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2699 la_get_symbol_name_matcher.
2700 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2701 (match_partial_symbol): Use symbol_name_match_type,
2702 lookup_name_info and psymbol_name_matches.
2703 (lookup_partial_symbol): Use lookup_name_info.
2704 (map_block): Use symbol_name_match_type and lookup_name_info.
2705 (psym_map_matching_symbols): Use symbol_name_match_type.
2706 (psymbol_name_matches): New.
2707 (recursively_search_psymtabs): Use lookup_name_info and
2708 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2709 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2710 'kind' parameter to 'domain'.
2711 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2712 la_get_symbol_name_matcher.
2713 * symfile-debug.c (debug_qf_map_matching_symbols)
2714 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2715 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2716 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2717 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2718 Adjust to use symbol_name_match_type.
2719 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2720 (expand_symtabs_matching): Adjust to use lookup_name_info.
2721 * symmisc.c (maintenance_expand_symtabs): Use
2722 lookup_name_info::match_any ().
2723 * symtab.c (symbol_matches_search_name): New.
2724 (eq_symbol_entry): Adjust to use lookup_name_info and the
2726 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2727 (lookup_name_info::match_any): New.
2728 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2729 (compare_symbol_name): Add language, lookup_name_info and
2730 completion_match_result parameters, and use them.
2731 (completion_list_add_name): Make extern. Add language and
2732 lookup_name_info parameters. Use them.
2733 (completion_list_add_symbol, completion_list_add_msymbol)
2734 (completion_list_objc_symbol): Add lookup_name_info parameters and
2735 adjust. Pass down language.
2736 (completion_list_add_fields): Add lookup_name_info parameters and
2737 adjust. Pass down language.
2738 (add_symtab_completions): Add lookup_name_info parameters and
2740 (default_collect_symbol_completion_matches_break_on): Add
2741 name_match_type parameter, and use it. Use lookup_name_info.
2742 (default_collect_symbol_completion_matches)
2743 (collect_symbol_completion_matches): Add name_match_type
2744 parameter, and pass it down.
2745 (collect_symbol_completion_matches_type): Adjust.
2746 (collect_file_symbol_completion_matches): Add name_match_type
2747 parameter, and use lookup_name_info.
2748 * symtab.h: Include <string> and "common/gdb_optional.h".
2749 (enum class symbol_name_match_type): New.
2750 (class ada_lookup_name_info): New.
2751 (struct demangle_for_lookup_info): New.
2752 (class lookup_name_info): New.
2753 (symbol_name_matcher_ftype): New.
2754 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2755 (symbol_matches_search_name): Declare.
2756 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2757 (default_collect_symbol_completion_matches)
2758 (collect_symbol_completion_matches)
2759 (collect_file_symbol_completion_matches): Add name_match_type
2761 (iterate_over_symbols): Use lookup_name_info.
2762 (completion_list_add_name): Declare.
2763 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2764 (strncmp_iw_with_mode): Now extern.
2765 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2766 (strncmp_iw_with_mode): Declare.
2768 2017-11-08 Keith Seitz <keiths@redhat.com>
2769 Pedro Alves <palves@redhat.com>
2771 * ada-lang.c (ada_language_defn): Install
2772 default_search_name_hash.
2773 * buildsym.c (struct buildsym_compunit): <language>: New field.
2774 (finish_block_internal): Pass language when creating dictionaries.
2775 (start_buildsym_compunit, start_symtab): New language parameters.
2777 (restart_symtab): Pass down compilation unit's language.
2778 * buildsym.h (enum language): Forward declare.
2779 (start_symtab): New 'language' parameter.
2780 * c-lang.c (c_language_defn, cplus_language_defn)
2781 (asm_language_defn, minimal_language_defn): Install
2782 default_search_name_hash.
2783 * coffread.c (coff_start_symtab): Adjust.
2784 * d-lang.c (d_language_defn): Install default_search_name_hash.
2785 * dbxread.c (struct symloc): Add 'pst_language' field.
2786 (PST_LANGUAGE): Define.
2787 (start_psymtab, read_ofile_symtab): Use it.
2788 (process_one_symbol): New 'language' parameter. Pass it down.
2789 * dictionary.c (struct dictionary) <language>: New field.
2790 (DICT_LANGUAGE): Define.
2791 (dict_create_hashed, dict_create_hashed_expandable)
2792 (dict_create_linear, dict_create_linear_expandable): New parameter
2793 'language'. Set the dictionary's language.
2794 (iter_match_first_hashed): Adjust to rename.
2795 (insert_symbol_hashed): Assert we don't see mismatching
2796 languages. Adjust to rename.
2797 (dict_hash): Rename to ...
2798 (default_search_name_hash): ... this and make extern.
2799 * dictionary.h (struct language_defn): Forward declare.
2800 (dict_create_hashed): New parameter 'language'.
2801 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2802 * f-lang.c (f_language_defn): Install default_search_name_hash.
2803 * go-lang.c (go_language_defn): Install default_search_name_hash.
2804 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2806 * language.c (unknown_language_defn, auto_language_defn):
2807 * language.h (language_defn::la_search_name_hash): New field.
2808 (default_search_name_hash): Declare.
2809 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2810 * mdebugread.c (new_block): New parameter 'language'.
2811 * mdebugread.c (parse_symbol): Pass symbol language to block
2813 (psymtab_to_symtab_1): Pass down language.
2814 (new_symtab): Pass compunit's language to block allocation.
2815 * objc-lang.c (objc_language_defn): Install
2816 default_search_name_hash.
2817 * opencl-lang.c (opencl_language_defn):
2818 * p-lang.c (pascal_language_defn): Install
2819 default_search_name_hash.
2820 * rust-lang.c (rust_language_defn): Install
2821 default_search_name_hash.
2822 * stabsread.h (enum language): Forward declare.
2823 (process_one_symbol): Add 'language' parameter.
2824 * symtab.c (search_name_hash): New function.
2825 * symtab.h (search_name_hash): Declare.
2826 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2828 2017-11-08 Pedro Alves <palves@redhat.com>
2830 * cp-name-parser.y (main): Don't initialize extra_chars.
2832 2017-11-07 Tom Tromey <tom@tromey.com>
2834 * event-top.h (command_handler): Constify.
2835 * record-full.c (cmd_record_full_start): Update.
2836 * thread.c (thread_apply_all_command): Update.
2837 * printcmd.c (eval_command): Update.
2838 * mi/mi-main.c (mi_execute_cli_command): Update.
2839 (mi_execute_async_cli_command): Update.
2840 * tui/tui-stack.c (tui_update_command): Update.
2841 * cli/cli-interp.c (safe_execute_command): Constify.
2842 * record.c (record_start): Update.
2843 (record_start, record_stop, cmd_record_start): Update.
2844 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2845 (cmd_record_btrace_pt_start): Update.
2846 (cmd_record_btrace_start): Update.
2847 (cmd_record_btrace_start): Update.
2848 * reverse.c (exec_reverse_once): Update.
2849 * python/python.c (execute_gdb_command): Don't copy the command.
2850 * event-top.c (command_line_handler): Update.
2851 (command_handler): Constify.
2852 * defs.h (deprecated_call_command_hook): Constify.
2853 * cli/cli-script.h (execute_user_command): Constify.
2854 * cli/cli-script.c (execute_user_command): Constify.
2855 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2856 (enum command_control_type): Update.
2857 * main.c (catch_command_errors): Remove non-const overload.
2858 (catch_command_errors_ftype): Remove.
2859 * python/py-cmd.c (cmdpy_function): Constify.
2860 * guile/scm-cmd.c (cmdscm_function): Constify.
2861 * cli/cli-dump.c (call_dump_func): Constify.
2862 * cli/cli-decode.c (do_const_cfunc): Constify.
2863 (do_sfunc): Constify.
2864 (cmd_func): Constify.
2865 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2866 * top.h (execute_command): Constify.
2867 * top.c (execute_command): Constify.
2868 (execute_command_to_string): Constify.
2869 (deprecated_call_command_hook): Constify.
2870 * command.h (cmd_func): Constify.
2871 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2873 2017-11-07 Tom Tromey <tom@tromey.com>
2875 * ada-lang.c (catch_ada_exception_command): Constify.
2876 (catch_assert_command): Constify.
2877 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2878 (catch_rethrow_command): Constify.
2879 (catch_exception_command_1): Constify.
2880 * breakpoint.h (add_catch_command): Constify.
2881 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2882 (catch_syscall_split_args): Constify.
2883 * break-catch-sig.c (catch_signal_command): Constify.
2884 (catch_signal_split_args): Constify.
2885 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2886 cmd_const_sfunc_ftype.
2887 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2888 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2889 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2890 (add_setshow_string_cmd, struct cmd_list_element)
2891 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2892 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2893 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2895 (set_cmd_sfunc): Constify.
2896 (empty_sfunc): Constify.
2897 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2898 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2899 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2900 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2901 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2902 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2904 (set_cmd_sfunc): Constify.
2905 (cmd_sfunc_ftype): Remove.
2906 * compile/compile.c (set_compile_args): Constify.
2907 * infrun.c (set_disable_randomization): Constify.
2908 * infcmd.c (set_args_command, set_cwd_command): Constify.
2909 * breakpoint.c (set_condition_evaluation_mode): Constify.
2910 (add_catch_command): Constify.
2911 (catch_fork_command_1, catch_exec_command_1)
2912 (catch_load_command_1, catch_unload_command_1): Constify.
2913 (catch_load_or_unload): Constify.
2914 * guile/scm-param.c (pascm_set_func): Constify.
2915 (add_setshow_generic): Constify.
2916 * python/py-param.c (get_set_value): Constify.
2917 * top.h (set_verbose): Constify.
2918 * tui/tui-win.c (tui_set_var_cmd): Constify.
2919 * mi/mi-main.c (set_mi_async_command): Constify.
2920 * cli/cli-logging.c (set_logging_overwrite)
2921 (set_logging_redirect): Constify.
2922 * value.c (set_max_value_size): Constify.
2923 * valprint.c (set_input_radix, set_output_radix): Constify.
2924 * utils.c (set_width_command, set_height_command): Constify.
2925 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2926 * tracepoint.c (set_disconnected_tracing)
2927 (set_circular_trace_buffer, set_trace_buffer_size)
2928 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2929 * top.c (set_history_size_command, set_verbose, set_editing)
2930 (set_gdb_datadir, set_history_filename): Constify.
2931 * target.c (set_targetdebug, maint_set_target_async_command)
2932 (maint_set_target_non_stop_command, set_target_permissions)
2933 (set_write_memory_permission): Constify.
2934 (open_target): Constify.
2935 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2936 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2937 * symtab.c (set_symbol_cache_size_handler): Constify.
2938 * symfile.c (set_ext_lang_command): Constify.
2939 * symfile-debug.c (set_debug_symfile): Constify.
2940 * source.c (set_directories_command): Constify.
2941 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2942 * serial.c (set_parity): Constify.
2943 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2944 * remote.c (set_remote_exec_file, set_remotebreak)
2945 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2946 * record.c (set_record_insn_history_size)
2947 (set_record_call_history_size): Constify.
2948 * record-full.c (set_record_full_insn_max_num): Constify.
2949 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2950 * osabi.c (set_osabi): Constify.
2951 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2952 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2953 * maint.c (maintenance_set_profile_cmd): Constify.
2954 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2955 * language.c (set_language_command, set_range_command)
2956 (set_case_command): Constify.
2957 * infrun.c (set_non_stop, set_observer_mode)
2958 (set_stop_on_solib_events, set_schedlock_func)
2959 (set_exec_direction_func): Constify.
2960 * infcmd.c (set_inferior_tty_command): Constify.
2961 * disasm.c (set_disassembler_options_sfunc): Constify.
2962 * demangle.c (set_demangling_command): Constify.
2963 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2964 * cris-tdep.c (set_cris_version, set_cris_mode)
2965 (set_cris_dwarf2_cfi): Constify.
2966 * corefile.c (set_gnutarget_command): Constify.
2967 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2968 (set_target_wide_charset_sfunc): Constify.
2969 * breakpoint.c (update_dprintf_commands): Constify.
2970 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2971 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2972 (set_disassembly_style_sfunc): Constify.
2973 * arch-utils.c (set_endian, set_architecture): Constify.
2974 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2975 * agent.c (set_can_use_agent): Constify.
2977 2017-11-07 Tom Tromey <tom@tromey.com>
2979 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2980 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2981 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2982 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2983 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2984 (parse_int_arg, show_thread_default_detach_sc_cmd)
2985 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2986 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2987 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2988 (show_task_pause_cmd, set_task_detach_sc_cmd)
2989 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2990 (set_noninvasive_cmd, set_thread_pause_cmd)
2991 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2992 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2993 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2994 * windows-nat.c (display_selectors): Constify.
2995 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2997 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2998 (cmd_cfunc_eq): Likewise.
2999 (struct cmd_list_element): Likewise.
3001 (cli_user_command_p): Update.
3002 * command.h (add_cmd): Remove non-const overload.
3003 (cmd_cfunc_ftype): Remove typedef.
3004 (cmd_cfunc_eq): Remove non-const overload.
3005 * value.c (show_values): Constify.
3006 * thread.c (thread_apply_all_command): Constify.
3007 * symfile.c (load_command): Constify.
3008 * source.c (directory_command): Constify.
3009 * maint.c (maintenance_internal_error)
3010 (maintenance_demangler_warning, maintenance_space_display)
3011 (maintenance_print_architecture, maintenance_translate_address)
3012 (maintenance_info_selftests, maintenance_internal_warning):
3014 * breakpoint.c (disable_trace_command, enable_trace_command):
3016 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
3018 (add_auto_load_safe_path): Constify.
3019 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
3020 * top.h (show_commands): Constify.
3021 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
3022 * sparc64-tdep.c (adi_examine_command): Constify.
3023 (adi_assign_command): Constify.
3025 2017-11-07 Tom Tromey <tom@tromey.com>
3027 * frame.h (info_locals_command, info_args_command): Constify.
3028 * auto-load.h (auto_load_info_scripts): Constify.
3029 * inferior.h (registers_info): Constify.
3030 * copying.c: Rebuild.
3031 * copying.awk: Constify generated commands.
3032 * auto-load.c (auto_load_info_scripts)
3033 (info_auto_load_gdb_scripts): Constify.
3034 * cli/cli-decode.c (struct cmd_list_element): Take a
3035 cmd_const_cfunc_ftype.
3036 * command.h (add_info): Take a cmd_const_cfunc_ftype.
3037 * tui/tui-win.c (tui_all_windows_info): Constify.
3038 * python/py-auto-load.c (info_auto_load_python_scripts):
3040 * cli/cli-cmds.c (show_command): Remove non-const overload.
3041 * tracepoint.c (info_tvariables_command, info_scope_command):
3043 (info_static_tracepoint_markers_command): Constify.
3044 * thread.c (info_threads_command): Constify.
3045 (print_thread_info_1): Constify.
3046 * target.c (info_target_command): Constify.
3047 * symtab.c (info_sources_command, info_functions_command)
3048 (info_types_command): Constify.
3049 (info_variables_command): Remove non-const overload.
3050 * symfile.c (info_ext_lang_command): Constify.
3051 * stack.c (info_frame_command, info_locals_command)
3052 (info_args_command): Constify.
3053 (backtrace_command): Remove non-const overload.
3054 * source.c (info_source_command, info_line_command): Constify.
3055 * solib.c (info_sharedlibrary_command): Constify.
3056 * skip.c (info_skip_command): Constify.
3057 * ser-go32.c (info_serial_command): Constify.
3058 * reverse.c (info_bookmarks_command): Constify.
3059 * printcmd.c (info_symbol_command, info_address_command)
3060 (info_display_command): Constify.
3061 * osdata.c (info_osdata_command): Constify.
3062 * objc-lang.c (info_selectors_command, info_classes_command):
3064 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
3065 * memattr.c (info_mem_command): Constify.
3066 * macrocmd.c (info_macro_command, info_macros_command): Constify.
3067 * linux-fork.c (info_checkpoints_command): Constify.
3068 * infrun.c (info_signals_command): Constify.
3069 * inflow.c (info_terminal_command): Constify.
3070 * inferior.c (info_inferiors_command): Constify.
3071 (print_inferior): Constify.
3072 * infcmd.c (info_program_command, info_all_registers_command)
3073 (info_registers_command, info_vector_command)
3074 (info_float_command): Constify.
3075 (registers_info): Constify.
3076 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
3077 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
3079 * f-valprint.c (info_common_command): Constify.
3080 * dcache.c (info_dcache_command): Constify.
3081 (dcache_info_1): Constify.
3082 * darwin-nat-info.c (info_mach_tasks_command)
3083 (info_mach_task_command, info_mach_ports_command)
3084 (info_mach_port_command, info_mach_threads_command)
3085 (info_mach_thread_command, info_mach_regions_command)
3086 (info_mach_regions_recurse_command, info_mach_region_command)
3087 (info_mach_exceptions_command): Constify.
3088 (get_task_from_args): Constify.
3089 * cp-support.c (info_vtbl_command): Constify.
3090 * breakpoint.c (info_watchpoints_command)
3091 (info_tracepoints_command): Constify.
3092 (info_breakpoints_command): Remove non-const overload.
3093 * avr-tdep.c (avr_io_reg_read_command): Constify.
3094 * auxv.c (info_auxv_command): Constify.
3095 * ada-tasks.c (info_tasks_command): Constify.
3096 (info_task): Constify.
3097 * ada-lang.c (info_exceptions_command): Constify.
3099 2017-11-07 Tom Tromey <tom@tromey.com>
3101 * solib.h (no_shared_libraries): Constify.
3102 * frame.h (return_command): Constify.
3103 * cli/cli-cmds.h (quit_command): Constify.
3104 * top.h (quit_command, execute_command): Constify.
3105 * target.h (flash_erase_command): Constify.
3106 * inferior.h (set_inferior_args, attach_command): Constify.
3107 * tracepoint.h (start_tracing, stop_tracing): Constify.
3108 * breakpoint.h (break_command, tbreak_command)
3109 (hbreak_command_wrapper, thbreak_command_wrapper)
3110 (rbreak_command_wrapper, watch_command_wrapper)
3111 (awatch_command_wrapper, rwatch_command_wrapper)
3112 (get_tracepoint_by_number): Constify.
3113 * symtab.c (info_variables_command, rbreak_command)
3114 (symtab_symbol_info): Constify.
3115 (info_variables_command): Add non-const overload.
3116 * top.c (dont_repeat_command): Constify.
3117 * breakpoint.c (ignore_command, commands_command)
3118 (condition_command, tbreak_command, hbreak_command)
3119 (thbreak_command, clear_command, break_command)
3120 (info_breakpoints_command, watch_command, rwatch_command)
3121 (awatch_command, trace_command, ftrace_command, strace_command)
3122 (trace_pass_command, break_range_command, dprintf_command)
3123 (agent_printf_command, get_tracepoint_by_number)
3124 (watch_maybe_just_location, trace_pass_command): Constify.
3125 (info_breakpoints_command): Add non-const overload.
3126 * tracefile.c (tsave_command): Constify.
3127 * infcmd.c (attach_command, disconnect_command, signal_command)
3128 (queue_signal_command, stepi_command, nexti_command)
3129 (finish_command, next_command, step_command, until_command)
3130 (advance_command, jump_command, continue_command, run_command)
3131 (start_command, starti_command, interrupt_command)
3132 (run_command_1, set_inferior_args, step_1): Constify.
3133 * inferior.c (add_inferior_command, remove_inferior_command)
3134 (clone_inferior_command): Constify.
3135 * linux-fork.c (checkpoint_command, restart_command): Constify.
3136 * windows-nat.c (signal_event_command): Constify.
3137 * guile/guile.c (guile_repl_command, guile_command): Constify.
3138 * printcmd.c (x_command, display_command, printf_command)
3139 (output_command, set_command, call_command, print_command)
3140 (eval_command): Constify.
3141 (non_const_set_command): Remove.
3142 (_initialize_printcmd): Update.
3143 * source.c (forward_search_command, reverse_search_command):
3145 * jit.c (jit_reader_load_command, jit_reader_unload_command):
3147 * infrun.c (handle_command): Constify.
3148 * memattr.c (mem_command): Constify.
3149 * stack.c (return_command, up_command, up_silently_command)
3150 (down_command, down_silently_command, frame_command)
3151 (backtrace_command, func_command, backtrace_command_1): Constify.
3152 (backtrace_command): Add non-const overload.
3153 * remote-sim.c (simulator_command): Constify.
3154 * exec.c (set_section_command): Constify.
3155 * tracepoint.c (tdump_command, trace_variable_command)
3156 (tstatus_command, tstop_command, tstart_command)
3157 (end_actions_pseudocommand, while_stepping_pseudocommand)
3158 (collect_pseudocommand, teval_pseudocommand, actions_command)
3159 (start_tracing, stop_tracing): Constify.
3160 * value.c (init_if_undefined_command): Constify.
3161 * tui/tui-stack.c (tui_update_command): Constify.
3162 * tui/tui-win.c (tui_refresh_all_command)
3163 (tui_set_tab_width_command, tui_set_win_height_command)
3164 (tui_set_focus_command, tui_scroll_forward_command)
3165 (tui_scroll_backward_command, tui_scroll_left_command)
3166 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
3167 (tui_set_win_height): Constify.
3168 * tui/tui-layout.c (tui_layout_command): Constify.
3169 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
3170 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
3171 (proc_untrace_sysexit_cmd): Constify.
3172 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
3173 (threadset_test_cmd, threadlist_update_test_cmd)
3174 (threadalive_test): Constify.
3175 * objc-lang.c (print_object_command): Constify.
3176 * command.h (add_com): Constify.
3177 * cli/cli-dump.c (restore_command): Constify.
3178 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
3179 (help_command, complete_command, shell_command, edit_command)
3180 (list_command, disassemble_command, make_command)
3181 (apropos_command, alias_command): Constify.
3182 * cli/cli-script.c (document_command, define_command)
3183 (while_command, if_command, validate_comname): Constify.
3184 * cli/cli-decode.c (struct cmd_list_element): Change type of
3186 * target.c (do_monitor_command, flash_erase_command): Constify.
3187 * regcache.c (reg_flush_command): Constify.
3188 * reverse.c (reverse_step, reverse_next, reverse_stepi)
3189 (reverse_nexti, reverse_continue, reverse_finish)
3190 (save_bookmark_command, goto_bookmark_command)
3191 (exec_reverse_once): Constify.
3192 * python/python.c (python_interactive_command, python_command):
3194 * typeprint.c (ptype_command, whatis_command, whatis_exp):
3196 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
3197 * gcore.c (gcore_command): Constify.
3199 2017-11-07 Tom Tromey <tom@tromey.com>
3201 * printcmd.c (x_command): Call set_repeat_arguments.
3202 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
3203 * top.c (repeat_arguments): New global.
3204 (set_repeat_arguments): New function.
3205 (execute_command): Handle repeat_arguments.
3206 (show_commands): Calls set_repeat_arguments.
3207 * command.h (set_repeat_arguments): Declare.
3209 2017-11-07 Tom Tromey <tom@tromey.com>
3211 * stack.c (backtrace_command): Use std::string.
3212 (backtrace_command_1): Make "count_exp" const.
3214 2017-11-07 Tom Tromey <tom@tromey.com>
3216 * source.c (directory_switch, mod_path, add_path): Constify.
3217 * defs.h (add_path, mod_path, directory_switch): Constify.
3218 * mi/mi-cmd-env.c (env_mod_path): Constify.
3220 2017-11-07 Tom Tromey <tom@tromey.com>
3222 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
3223 (run_command_1, continue_command, step_1, jump_command)
3224 (signal_command, until_command, advance_command, finish_command)
3225 (attach_command): Update.
3227 2017-11-07 Tom Tromey <tom@tromey.com>
3229 * command.h (set_cmd_cfunc): Don't declare.
3230 * cli/cli-decode.c (set_cmd_cfunc): Now static.
3232 2017-11-07 Tom Tromey <tom@tromey.com>
3234 * stack.c (select_frame_command): Constify.
3235 * cli/cli-decode.c (add_com_suppress_notification): Constify.
3236 * command.h (add_com_suppress_notification): Constify.
3238 2017-11-07 Tom Tromey <tom@tromey.com>
3240 * breakpoint.c (stop_command): Constify.
3241 * cli/cli-decode.c (struct cmd_list_element): Constify.
3242 * command.h (add_abbrev_prefix_cmd): Constify.
3244 2017-11-07 Pedro Alves <palves@redhat.com>
3246 * breakpoint.c (extract_bp_kind): New enum.
3247 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3248 factored out from ...
3249 (extract_bp_number_and_location): ... here.
3250 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3252 2017-11-07 Pedro Alves <palves@redhat.com>
3254 * breakpoint.c (extract_bp_number_and_location): Change return
3255 type to void. Throw error instead of warning.
3256 (enable_disable_command): Adjust.
3258 2017-11-07 Xavier Roirand <roirand@adacore.com>
3259 Pedro Alves <palves@redhat.com>
3261 * breakpoint.c (map_breakpoint_number_range): New, factored out
3263 (map_breakpoint_numbers): ... here.
3264 (find_location_by_number): Change parameters from string to
3265 breakpoint number and location.
3266 (extract_bp_number_and_location): New function.
3267 (enable_disable_bp_num_loc)
3268 (enable_disable_breakpoint_location_range)
3269 (enable_disable_command): New functions, factored out ...
3270 (enable_command, disable_command): ... these functions, and
3271 adjusted to support ranges.
3272 * NEWS: Document enable/disable breakpoint location range feature.
3274 2017-11-06 Luis Machado <luis.machado@linaro.org>
3276 * MAINTAINERS (Write After Approval): Update my e-mail address.
3278 2017-11-06 Pedro Alves <palves@redhat.com>
3280 * gnu-nat.c (gnu_terminal_init): Delete.
3281 (gnu_target): Don't install gnu_terminal_init.
3282 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3283 (child_terminal_init): ... this function.
3285 2017-11-06 Pedro Alves <palves@redhat.com>
3287 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3289 * config.in, configure: Regenerate.
3291 2017-11-06 Pedro Alves <palves@redhat.com>
3293 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3294 (async_init_signals): Adjust.
3295 (handle_stop_sig): Rename to ...
3296 (handle_sigtstp): ... this.
3297 (async_stop_sig): Rename to ...
3298 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3300 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3301 instead of STOP_SIGNAL thoughout.
3302 (handle_stop_sig): Rename to ...
3303 (handle_sigtstp): ... this.
3304 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3306 2017-11-06 Pedro Alves <palves@redhat.com>
3308 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3309 longer set flags twice in row.
3311 2017-11-06 Pedro Alves <palves@redhat.com>
3313 * Makefile.in (SER_HARDWIRE): Update comment.
3314 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3315 * common/gdb_termios.h: Delete file.
3316 * common/job-control.c: Include termios.h and unistd.h instead of
3318 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3320 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3322 * configure.ac: No longer check for termio.h and sgtty.h.
3323 * configure: Regenerate.
3324 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3325 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3326 Replace PROCESS_GROUP_TYPE references with pid_t references
3328 (gdb_getpgrp): Delete.
3329 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3330 (child_terminal_inferior): Remove comment. Remove sgtty code.
3331 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3332 gdb_getpgrp. Use serial_set_tty_state instead aof
3333 serial_noflush_set_tty_state. Remove sgtty code.
3334 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3335 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3336 (inferior_process_group): Now returns pid_t.
3337 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3338 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3339 * ser-event.c (serial_event_ops): Update.
3340 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3342 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3343 * ser-pipe.c (pipe_ops): Update.
3344 * ser-tcp.c (tcp_ops): Update.
3345 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3346 HAVE_TERMIOS checks.
3347 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3348 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3349 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3351 (hardwire_noflush_set_tty_state): Delete.
3352 (hardwire_print_tty_state, hardwire_drain_output)
3353 (hardwire_flush_output, hardwire_flush_input)
3354 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3355 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3356 code, and assume termios.
3357 (hardwire_ops): Update.
3358 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3359 * serial.c (serial_noflush_set_tty_state): Delete.
3360 * serial.h (serial_noflush_set_tty_state): Delete.
3361 (serial_ops::noflush_set_tty_state): Delete.
3363 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3365 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3366 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3367 (COMMON_OBS): Remove doublest.o and dfp.o.
3368 Do not build target-float.c (instead of doublest.c)
3369 with -Wformat-nonliteral.
3371 * doublest.c: Remove file.
3372 * doublest.h: Remove file.
3373 * dfp.c: Remove file.
3374 * dfp.h: Remove file.
3376 * target-float.c: Do not include "doublest.h" and "dfp.h".
3377 (DOUBLEST): Move here from doublest.h.
3378 (enum float_kind): Likewise.
3379 (FLOATFORMAT_CHAR_BIT): Likewise.
3380 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3381 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3382 (floatformat_precision): Likewise.
3383 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3384 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3386 (host_float_format, host_double_format, host_long_double_format):
3388 (floatformat_to_string, floatformat_from_string): Likewise.
3389 (floatformat_to_doublest): Likewise. Also, inline the original
3390 convert_floatformat_to_doublest.
3391 (floatformat_from_doublest): Likewise. Also, inline the original
3392 convert_floatformat_from_doublest.
3394 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3395 (MAX_DECIMAL_STRING): Move here from dfp.c.
3396 (match_endianness): Likewise.
3397 (set_decnumber_context, decimal_check_errors): Likewise.
3398 (decimal_from_number, decimal_to_number): Likewise.
3399 (decimal_to_string, decimal_from_string): Likewise. Make static.
3400 (decimal_from_longest, decimal_from_ulongest): Likewise.
3401 (decimal_to_longest): Likewise.
3402 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3403 (decimal_convert): Likewise.
3405 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3407 * doublest.c: Do not include "gdbtypes.h".
3408 (extract_typed_floating): Remove.
3409 (store_typed_floating): Remove.
3410 (convert_typed_floating): Remove.
3411 * doublest.h (struct type): Remove.
3412 (DOUBLEST_PRINT_FORMAT): Remove.
3413 (DOUBLEST_SCAN_FORMAT): Remove.
3414 (extract_typed_floating): Remove.
3415 (store_typed_floating): Remove.
3416 (convert_typed_floating): Remove.
3418 * dfp.c (decimal_from_doublest): Remove.
3419 (decimal_to_doublest): Remove.
3420 * dfp.h: Do not include "doublest.h".
3421 (decimal_from_doublest): Remove.
3422 (decimal_to_doublest): Remove.
3424 * value.c: Do not include "doublest.h" and "dfp.h".
3425 (value_as_double): Remove.
3426 (unpack_double): Remove.
3427 (value_from_double): Remove.
3428 (value_from_decfloat): Remove.
3429 * value.h: Do not include "doublest.h".
3430 (value_as_double): Remove.
3431 (unpack_double): Remove.
3432 (value_from_double): Remove.
3433 (value_from_decfloat): Remove.
3435 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3437 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3438 (i386_extract_return_value): Use target_float_convert.
3439 (i386_store_return_value): Likewise.
3440 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3441 (i387_value_to_register): Likewise.
3442 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3443 (ia64_register_to_value): Use target_float_convert.
3444 (ia64_value_to_register): Likewise.
3445 (ia64_extract_return_value): Likewise.
3446 (ia64_store_return_value): Likewise.
3447 (ia64_push_dummy_call): Likewise.
3448 * m68k-tdep.c: Include "target-float.h".
3449 (m68k_register_to_value): Use target_float_convert.
3450 (m68k_value_to_register): Likewise.
3451 (m68k_svr4_extract_return_value): Likewise.
3452 (m68k_svr4_store_return_value): Likewise.
3453 * ppc-sysv-tdep.c: Include "target-float.h".
3454 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3455 (do_ppc_sysv_return_value): Likewise.
3456 (ppc64_sysv_abi_push_freg): Likewise.
3457 (ppc64_sysv_abi_return_value_base): Likewise.
3458 * rs6000-aix-tdep.c: Include "target-float.h".
3459 (rs6000_push_dummy_call): Use target_float_convert.
3460 (rs6000_return_value): Likewise.
3461 * rs6000-lynx178-tdep.c: Include "target-float.h".
3462 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3463 (rs6000_lynx178_return_value): Likewise.
3464 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3465 (rs6000_register_to_value): Use target_float_convert.
3466 (rs6000_value_to_register): Likewise.
3467 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3468 (arm_extract_return_value): Use target_float_convert.
3469 (arm_store_return_value): Likewise.
3470 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3471 (sh_register_convert_to_virtual): Use target_float_convert.
3472 (sh_register_convert_to_raw): Likewise.
3473 * sh64-tdep.c: Include "target-float.h".
3474 (sh64_extract_return_value): Use target_float_convert.
3475 (sh64_register_convert_to_virtual): Likewise.
3476 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3478 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3480 * target-float.c (floatformat_to_host_double): New function.
3481 (floatformat_from_host_double): Likewise.
3482 (target_float_to_host_double): Likewise.
3483 (target_float_from_host_double): Likewise.
3484 * target-float.h (target_float_to_host_double): Add prototype.
3485 (target_float_from_host_double): Likewise.
3487 * guile/scm-value.c: Include "target-float.h".
3488 (gdbscm_value_to_real): Use target_float_to_host_double.
3489 Handle integer source values via value_as_long.
3490 * guile/scm-math.c: Include "target-float.h". Do not include
3491 "doublest.h", "dfp.h", and "expression.h".
3492 (vlscm_convert_typed_number): Use target_float_from_host_double.
3493 (vlscm_convert_number): Likewise.
3495 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3496 (convert_value_from_python): Use target_float_from_host_double.
3498 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3500 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3501 (cast_from_fixed): Likewise.
3502 (ada_scaling_type): New function.
3503 (ada_delta): Return value instead of DOUBLEST. Perform target
3504 arithmetic instead of host arithmetic.
3505 (scaling_factor): Rename to ...
3506 (ada_scaling_factor) ... this. Make non-static. Return value instead
3507 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3508 (ada_fixed_to_float): Remove.
3509 (ada_float_to_fixed): Remove.
3510 * ada-lang.h (ada_fixed_to_float): Remove.
3511 (ada_float_to_fixed): Remove.
3512 (ada_delta): Return value instead of DOUBLEST.
3513 (ada_scaling_factor): Add prototype.
3515 * ada-typeprint.c: Include "target-float.h".
3516 (print_fixed_point_type): Perform target arithmetic instead of
3518 * ada-valprint.c: Include "target-float.h".
3519 (ada_val_print_num): Perform target arithmetic instead of
3520 host arithmetic for fixed-point types.
3522 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3524 * target-float.c: Include <math.h>.
3525 (floatformat_binop): New function.
3526 (floatformat_compare): Likewise.
3527 (target_float_binop): Likewise.
3528 (target_float_compare): Likewise.
3529 * target-float.h: Include "expression.h".
3530 (target_float_binop): Add prototype.
3531 (target_float_compare): Likewise.
3533 * valarith.c: Do not include "doublest.h" and "dfp.h".
3534 Include "common/byte-vector.h".
3535 (value_args_as_decimal): Remove, replace by ...
3536 (value_args_as_target_float): ... this function. Handle both
3537 binary and decimal target floating-point formats.
3538 (scalar_binop): Handle both binary and decimal FP using
3539 value_args_as_target_float and target_float_binop.
3540 (value_equal): Handle both binary and decimal FP using
3541 value_args_as_target_float and target_float_compare.
3542 (value_less): Likewise.
3543 (value_pos): Handle all scalar types as simple copy.
3544 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3545 * dfp.c (decimal_binop): Throw error instead of internal_error
3546 when called with an unsupported operation code.
3548 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3550 * target-float.c (target_float_to_string): New function.
3551 (target_float_from_string): New function.
3552 * target-float.h (target_float_to_string): Add prototype.
3553 (target_float_from_string): Add prototype.
3555 * valprint.c: Include "target-float.h". Do not include
3556 "doublest.h" and "dfp.h".
3557 (print_floating): Use target_float_to_string.
3558 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3559 (printf_floating): Use target_float_to_string.
3560 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3561 (print_i387_value): Use target_float_to_string.
3562 * mips-tdep.c: Include "target-float.h".
3563 (mips_print_fp_register): Use target_float_to_string.
3564 * sh64-tdep.c: Include "target-float.h".
3565 (sh64_do_fp_register): Use target_float_to_string.
3567 * parse.c: Include "target-float.h". Do not include
3568 "doublest.h" and "dfp.h".
3569 (parse_float): Use target_float_from_string.
3570 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3571 (define_symbol): Use target_float_from_string.
3572 * gdbarch-selftests.c: Include "target-float.h".
3573 (register_to_value_test): Use target_float_from_string.
3575 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3577 * Makefile.c (SFILES): Add target-float.c.
3578 (HFILES_NO_SRCDIR): Add target-float.h.
3579 (COMMON_OBS): Add target-float.o.
3580 * target-float.h: New file.
3581 * target-float.c: New file.
3583 * doublest.c (floatformat_classify): Fix detection of float_zero.
3585 * gdbtypes.c (is_floating_type): New function.
3586 * gdbtypes.h (is_floating_type): Add prototype.
3588 * value.c: Do not include "floatformat.h".
3589 (unpack_double): Use target_float_is_valid.
3590 (is_floating_value): New function.
3591 * value.h (is_floating_value): Add prototype-
3593 * valarith.c: Include "target-float.h".
3594 (value_logical_not): Use target_float_is_zero.
3596 * python/py-value.c: Include "target-float.h".
3597 (valpy_nonzero): Use target_float_is_zero.
3599 2017-11-04 Tom Tromey <tom@tromey.com>
3601 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3603 2017-11-04 Tom Tromey <tom@tromey.com>
3605 * breakpoint.c (set_momentary_breakpoint): Return
3607 (until_break_command): Update.
3608 (new_until_break_fsm): Change argument types to
3610 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3611 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3613 * infcmd.c (finish_forward): Update.
3614 * breakpoint.h (set_momentary_breakpoint)
3615 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3616 (make_cleanup_delete_breakpoint): Remove.
3617 (struct breakpoint_deleter): New.
3618 (breakpoint_up): New typedef.
3619 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3620 (insert_exception_resume_breakpoint): Update.
3621 (insert_exception_resume_from_probe): Update.
3622 (insert_longjmp_resume_breakpoint): Update.
3623 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3624 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3625 * infcall.c (call_function_by_hand_dummy): Update
3627 2017-11-04 Tom Tromey <tom@tromey.com>
3629 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3631 2017-11-04 Tom Tromey <tom@tromey.com>
3633 * linux-tdep.c (linux_core_info_proc_mappings): Use
3635 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3637 (linux_corefile_thread): Update.
3638 (linux_make_corefile_notes): Remove unused variable.
3640 2017-11-04 Tom Tromey <tom@tromey.com>
3642 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3645 2017-11-04 Tom Tromey <tom@tromey.com>
3647 * objfiles.c (do_free_objfile_cleanup): Remove.
3648 * compile/compile-object-load.c (compile_object_load): Update.
3649 * objfiles.h (make_cleanup_free_objfile): Remove.
3651 2017-11-04 Tom Tromey <tom@tromey.com>
3653 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3654 (adi_read_versions): Change "tags" to "gdb_byte *".
3655 (adi_print_versions): Likewise.
3657 2017-11-04 Tom Tromey <tom@tromey.com>
3660 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3661 from start_rbreak_breakpoints.
3662 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3663 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3664 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3665 * symtab.c (do_end_rbreak_breakpoints): Remove.
3666 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3668 2017-11-04 Tom Tromey <tom@tromey.com>
3670 * cp-namespace.c (reset_directive_searched): Remove.
3671 (cp_lookup_symbol_via_imports): Use scoped_restore.
3672 * cp-support.c (reset_directive_searched): Remove.
3673 (make_symbol_overload_list_using): Use scoped_restore.
3674 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3675 (reset_directive_searched): Remove.
3677 2017-11-04 Tom Tromey <tom@tromey.com>
3679 * symfile.c (find_separate_debug_file_by_debuglink): Use
3682 2017-11-04 Tom Tromey <tom@tromey.com>
3684 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3686 (compute_stack_depth): Likewise.
3687 (do_compile_dwarf_expr_to_c): Use std::vector.
3689 2017-11-04 Tom Tromey <tom@tromey.com>
3691 * compile/compile-object-load.c (link_callbacks_einfo): Use
3694 2017-11-04 Tom Tromey <tom@tromey.com>
3696 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3697 Use scoped_free_pendings.
3698 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3699 scoped_free_pendings.
3700 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3701 (xcoff_initial_scan): Likewise.
3702 * buildsym.c (reset_symtab_globals): Update comment.
3703 (scoped_free_pendings): Rename from really_free_pendings.
3704 (prepare_for_building): Update comment.
3705 (buildsym_init): Likewise.
3706 * buildsym.h (class scoped_free_pendings): New class.
3707 (really_free_pendings): Don't declare.
3709 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3711 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3712 output when converting a zero value to a special byteorder format.
3714 2017-11-02 Yao Qi <yao.qi@linaro.org>
3716 * frame.c (do_frame_register_read): Remove aspace.
3717 * jit.c (jit_frame_sniffer): Likwise.
3718 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3719 * regcache.c (regcache::regcache): Pass nullptr.
3720 (regcache_print): Caller updated.
3721 * regcache.h (regcache::regcache): Remove one constructor
3724 2017-11-02 Yao Qi <yao.qi@linaro.org>
3726 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3728 2017-11-02 Yao Qi <yao.qi@linaro.org>
3730 * breakpoint.c (insert_single_step_breakpoints): Update.
3731 * frame.c (struct frame_info) <aspace>: Add const.
3732 (frame_save_as_regcache): Add const.
3733 (get_frame_address_space): Return const address_space *.
3734 * frame.h (get_frame_address_space): Update declaration.
3735 * infrun.c (struct step_over_info) <aspace>: Add const.
3736 (set_step_over_info): Make aspace const.
3737 (displaced_step_prepare_throw): Change variable const.
3739 (proceed): Likewise.
3740 (adjust_pc_after_break): Likewise.
3741 (save_waitstatus): Likewise.
3742 (handle_signal_stop): Likewise.
3743 (keep_going_pass_signal): Likewise.
3744 * jit.c (jit_frame_sniffer): Add const.
3745 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3746 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3747 * record-full.c (record_full_wait_1): Likewise.
3748 * regcache.c (regcache::regcache): Change parameter to const.
3749 * regcache.h (regcache::regcache): Likewise.
3750 (regcache::aspace): Return const address_space *.
3751 (regcache) <m_aspace>: Add const.
3753 2017-11-02 Yao Qi <yao.qi@linaro.org>
3755 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3756 * frame.c (create_sentinel_frame): Likewise.
3757 * infrun.c (displaced_step_prepare_throw): Likewise.
3759 (thread_still_needs_step_over_bp): Likewise.
3760 (proceed): Likewise.
3761 (do_target_wait): Likewise.
3762 (adjust_pc_after_break): Likewise.
3763 (handle_syscall_event): Likewise.
3764 (save_waitstatus): Likewise.
3765 (handle_inferior_event_1): Likewise.
3766 (handle_signal_stop): Likewise.
3767 (keep_going_pass_signal): Likewise.
3768 * linux-nat.c (status_callback): Likewise.
3769 (save_stop_reason): Likewise.
3770 (resume_stopped_resumed_lwps): Likewise.
3771 * record-full.c (record_full_exec_insn): Likewise.
3772 (record_full_wait_1): Likewise.
3773 * regcache.c (get_regcache_aspace): Remove.
3774 * regcache.h (get_regcache_aspace): Remove.
3776 2017-11-02 Yao Qi <yao.qi@linaro.org>
3778 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3779 (init_regcache_descr): Use gdbarch_num_regs.
3780 (regcache::regcache): Likewise.
3781 (regcache::get_register_status): Likewise.
3782 (regcache::assert_raw_regnum): Likewise.
3783 (regcache::cooked_read): Likewise.
3784 (regcache::cooked_read_value): Likewise.
3785 (regcache::cooked_write): Likewise.
3786 (regcache::dump): Likewise.
3787 (regcache::num_raw_registers): New method.
3788 * regcache.h (class regcache) <num_raw_registers>: New.
3790 2017-11-02 Yao Qi <yao.qi@linaro.org>
3792 * regcache.c (regcache::assert_regnum): New method.
3793 (regcache::invalidate): Call assert_regnum.
3794 (regcache::raw_update): Likewise.
3795 (regcache::raw_write): Likewise.
3796 (regcache::raw_read_part): Likewise.
3797 (regcache::raw_write_part): Likewise.
3798 (regcache::raw_supply): Likewise.
3799 (regcache::raw_supply_integer): Likewise.
3800 (regcache::raw_supply_zeroed): Likewise.
3801 (regcache::raw_collect): Likewise.
3802 (regcache::raw_collect_integer): Likewise.
3803 * regcache.h (regcache::assert_regnum): Declare.
3805 2017-11-02 Yao Qi <yao.qi@linaro.org>
3807 * regcache.c (regcache::dump): Remove code.
3809 2017-11-02 Yao Qi <yao.qi@linaro.org>
3811 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3813 <sizeof_cooked_register_status>: Remove.
3814 (init_regcache_descr): Update.
3815 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3816 (regcache::save): Likewise.
3817 (regcache::dump): Likewise.
3819 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3821 * ft32-tdep.c (ft32_fetch_instruction): New function.
3822 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3824 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3826 * cli/cli-script.c (execute_control_command): Rename to ...
3827 (execute_control_command_1): ... this.
3828 (execute_control_command): New function.
3830 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3832 * tracepoint.c (tfind_command): Remove const_cast.
3834 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3836 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3838 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3840 * common/common-utils.h (in_inclusive_range): New function.
3841 * arm-tdep.c (arm_record_extension_space): Use
3843 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3844 * cris-tdep.c (cris_spec_reg_applicable): Use
3847 2017-10-30 Pedro Alves <palves@redhat.com>
3848 Simon Marchi <simon.marchi@ericsson.com>
3850 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3851 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3853 2017-10-30 Pedro Alves <palves@redhat.com>
3855 * common/common-utils.c (string_appendf, string_vappendf): New
3857 * common/common-utils.h (string_appendf, string_vappendf): New
3859 * unittests/common-utils-selftests.c (string_appendf_func)
3860 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3861 (string_vappendf_tests): New functions.
3862 (_initialize_common_utils_selftests): Register "string_appendf" and
3863 "string_vappendf tests".
3865 2017-10-30 Pedro Alves <palves@redhat.com>
3867 * unittests/common-utils-selftests.c (format_func): New typedef.
3868 (string_printf_tests, string_vprintf_tests): Tests factored out
3870 (test_format_func): ... this new function.
3871 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3874 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3876 * darwin-nat.c: Remove include of gdb.h.
3878 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3880 * xtensa-xtregs.c: Fix formatting issues.
3882 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3884 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3886 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3889 * python/py-infthread.c (thpy_get_inferior): Increment reference
3890 of inferior before returning it.
3892 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3894 * unittests/common-utils-selftests.c (format): Add
3897 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3899 * xml-syscall.c (struct syscall_desc): Add constructor.
3900 <name>: Change type to std::string.
3901 (syscall_desc_up): New typedef.
3902 (syscall_desc_p): Remove typeder.
3903 (DEF_VEC_P(syscall_desc_p)): Remove.
3904 (struct syscall_group_desc): Add constructor.
3905 <name>: Change type to std::string.
3906 <syscalls>: Change type to std::vector.
3907 (syscall_group_desc_up): New typedef.
3908 (syscall_group_desc_p): Remove typedef.
3909 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3910 (struct syscalls_info) <syscalls>: Change type to std::vector of
3913 <my_gdb_datadir>: Change type to std::string.
3914 (syscalls_info_up): New typedef.
3915 (allocate_syscalls_info): Remove.
3916 (syscalls_info_free_syscalls_desc): Remove.
3917 (syscalls_info_free_syscall_group_desc): Remove.
3918 (free_syscalls_info): Remove.
3919 (make_cleanup_free_syscalls_info): Remove.
3920 (syscall_group_create_syscall_group_desc): Adjust.
3921 (syscall_group_add_syscall): Adjust.
3922 (syscall_create_syscall_desc): Adjust.
3923 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3924 (init_syscalls_info): Adjust.
3925 (syscall_group_get_group_by_name): Adjust.
3926 (xml_get_syscall_number): Adjust.
3927 (xml_get_syscall_name): Adjust.
3928 (xml_list_of_syscalls): Adjust.
3929 (xml_list_syscalls_by_group): Adjust.
3930 (xml_list_of_groups): Adjust.
3932 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3934 * probe.h: Don't include gdb_vecs.h.
3935 (DEF_VEC_P (probe_p)): Remove.
3936 (find_probes_in_objfile): Return an std::vector.
3937 * probe.c (find_probes_in_objfile): Likewise.
3938 * breakpoint.c (breakpoint_objfile_data)
3939 <longjmp_probes>: Change type to std::vector.
3940 <exception_probes>: Likewise.
3941 (free_breakpoint_probes): Don't manually free vectors.
3942 (create_longjmp_master_breakpoint): Adjust.
3943 (create_exception_master_breakpoint): Adjust.
3944 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3945 parameter type, adjust.
3946 (svr4_create_solib_event_breakpoints): Adjust.
3948 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3950 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3951 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3953 (free_breakpoint_probes): Rename to ...
3954 (free_breakpoint_objfile_data): ... this, and call delete on
3957 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3959 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3960 (loaded_script_ptr): Remove typedef.
3961 (DEF_VEC_P (loaded_script_ptr)): Remove.
3962 (struct collect_matching_scripts_data): Add constructor.
3963 <scripts_p>: Change type to (pointer to) std::vector.
3964 (collect_matching_scripts_data): Adjust.
3965 (sort_scripts_by_name): Make suitable for std::sort.
3966 (print_scripts): Don't sort vector, adjust to std::vector.
3967 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3969 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3971 * symfile.c (filename_language): Make struct, not typedef. Add
3973 <ext>: Change type to std::string.
3974 (DEF_VEC_O (filename_language)): Remove.
3975 (filename_language_table): Change type to std::vector.
3976 (add_filename_language): Adjust.
3977 (set_ext_lang_command): Adjust.
3978 (info_ext_lang_command): Adjust.
3979 (deduce_language_from_filename): Adjust.
3980 (class scoped_restore_filename_language_table): Remove.
3981 (test_filename_language): Use scoped_restore.
3982 (test_set_ext_lang_command): Use scoped_restore, adjust to
3985 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3987 * symfile.c: Include selftest.h.
3988 (class scoped_restore_filename_language_table): New.
3989 (test_filename_language): New test.
3990 (test_set_ext_lang_command): New test.
3991 (_initialize_symfile): Register tests.
3993 2017-10-27 Keith Seitz <keiths@redhat.com>
3995 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3996 in the bp_location, falling back to find_pc_sect_function when
3998 (add_location_to_breakpoint): Save sal->symbol.
3999 * breakpoint.h (struct bp_location) <symbol>: New field.
4000 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
4001 * symtab.h (struct symtab_and_line) <symbol>: New field.
4003 2017-10-26 Patrick Frants <osscontribute@gmail.com>
4006 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
4009 2017-10-26 Pedro Alves <palves@redhat.com>
4011 * remote.c (remote_async_terminal_ours_p): Delete.
4012 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
4013 Remove references to 'remote_async_terminal_ours_p'.
4015 2017-10-26 Yao Qi <yao.qi@linaro.org>
4017 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4019 2017-10-26 Yao Qi <yao.qi@linaro.org>
4021 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
4023 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
4025 * breakpoint.c (bpstat_check_location): Remove cast.
4026 (breakpoint_hit_catch_fork): Make aspce const.
4027 (breakpoint_hit_catch_solib): Likewise.
4028 (breakpoint_hit_catch_exec): Likewise.
4029 (breakpoint_hit_ranged_breakpoint): Likewise.
4030 (breakpoint_hit_watchpoint): Likewise.
4031 (base_breakpoint_breakpoint_hit): Likewise.
4032 (bkpt_breakpoint_hit): Likewise.
4033 (dprintf_breakpoint_hit): Likewise.
4034 (tracepoint_breakpoint_hit): Likewise.
4035 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
4037 2017-10-26 Yao Qi <yao.qi@linaro.org>
4039 * breakpoint.c (breakpoint_location_address_match): Change
4040 "struct address_space *" to "const address_space".
4041 (breakpoint_location_address_range_overlap): Likewise.
4042 (breakpoint_here_p): Likewise.
4043 (breakpoint_in_range_p): Likewise.
4044 (moribund_breakpoint_here_p): Likewise.
4045 (bp_location_inserted_here_p): Likewise.
4046 (software_breakpoint_inserted_here_p): Likewise.
4047 (hardware_breakpoint_inserted_here_p): Likewise.
4048 (hardware_watchpoint_inserted_in_range): Likewise.
4049 (bpstat_check_location): Likewise.
4050 (bpstat_stop_status): Likewise.
4051 (breakpoint_address_match): Likewise.
4052 (breakpoint_address_match_range): Likewise.
4053 (breakpoint_location_address_match): Likewise.
4054 (breakpoint_location_address_range_overlap): Likewise.
4055 (insert_single_step_breakpoint): Likewise.
4056 (breakpoint_has_location_inserted_here): Likewise.
4057 (single_step_breakpoint_inserted_here_p): Likewise.
4058 (pc_at_non_inline_function): Likewise.
4059 * breakpoint.h (bpstat_stop_status): Update declaration.
4060 (breakpoint_here_p): Likewise.
4061 (breakpoint_in_range_p): Likewise.
4062 (moribund_breakpoint_here_p): Likewise.
4063 (breakpoint_inserted_here_p): Likewise.
4064 (software_breakpoint_inserted_here_p): Likewise.
4065 (hardware_breakpoint_inserted_here_p): Likewise.
4066 (breakpoint_has_location_inserted_here): Likewise.
4067 (single_step_breakpoint_inserted_here_p): Likewise.
4068 (hardware_watchpoint_inserted_in_range): Likewise.
4069 (breakpoint_address_match): Likewise.
4070 (insert_single_step_breakpoint): Likewise.
4071 (pc_at_non_inline_function): Likewise.
4072 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
4073 * record.c (record_check_stopped_by_breakpoint): Likewise.
4074 * record.h (record_check_stopped_by_breakpoint): Likewise.
4075 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
4077 2017-10-25 Yao Qi <yao.qi@linaro.org>
4079 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
4080 regcache->arch () instead get_regcache_arch.
4081 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
4083 (aarch64_fbsd_store_inferior_registers): Likewise.
4084 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
4085 (store_gregs_to_thread): Likewise.
4086 (fetch_fpregs_from_thread): Likewise.
4087 (store_fpregs_to_thread): Likewise.
4088 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
4089 (aarch64_store_return_value): Likewise.
4090 (aarch64_software_single_step): Likewise.
4091 * aix-thread.c (aix_thread_wait): Likewise.
4092 (supply_reg32): Likewise.
4093 (supply_sprs64): Likewise.
4094 (supply_sprs32): Likewise.
4095 (fill_gprs64): Likewise.
4096 (fill_gprs32): Likewise.
4097 (fill_sprs64): Likewise.
4098 (fill_sprs32): Likewise.
4099 (store_regs_user_thread): Likewise.
4100 (store_regs_kernel_thread): Likewise.
4101 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4102 (alphabsd_store_inferior_registers): Likewise.
4103 * alpha-tdep.c (alpha_extract_return_value): Likewise.
4104 (alpha_store_return_value): Likewise.
4105 (alpha_deal_with_atomic_sequence): Likewise.
4106 (alpha_next_pc): Likewise.
4107 (alpha_software_single_step): Likewise.
4108 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4109 (amd64bsd_store_inferior_registers): Likewise.
4110 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4112 (amd64_linux_store_inferior_registers): Likewise.
4113 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
4114 (amd64_collect_native_gregset): Likewise.
4115 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
4116 (amd64obsd_collect_uthread): Likewise.
4117 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
4118 (amd64_collect_fpregset): Likewise.
4119 (amd64_supply_fxsave): Likewise.
4120 (amd64_supply_xsave): Likewise.
4121 (amd64_collect_fxsave): Likewise.
4122 (amd64_collect_xsave): Likewise.
4123 * arc-tdep.c (arc_write_pc): Likewise.
4124 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
4125 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
4126 (arm_fbsd_store_inferior_registers): Likewise.
4127 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
4128 (store_vfp_regs): Likewise.
4129 (arm_linux_fetch_inferior_registers): Likewise.
4130 (arm_linux_store_inferior_registers): Likewise.
4131 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
4132 (arm_linux_sigreturn_next_pc): Likewise.
4133 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
4134 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
4135 (fetch_register): Likewise.
4136 (store_register): Likewise.
4137 * arm-tdep.c (arm_is_thumb): Likewise.
4138 (displaced_in_arm_mode): Likewise.
4139 (bx_write_pc): Likewise.
4140 (arm_get_next_pcs_addr_bits_remove): Likewise.
4141 (arm_software_single_step): Likewise.
4142 (arm_extract_return_value): Likewise.
4143 (arm_store_return_value): Likewise.
4144 (arm_write_pc): Likewise.
4145 * bfin-tdep.c (bfin_extract_return_value): Likewise.
4146 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4147 (bsd_uthread_store_registers): Likewise.
4148 * core-regset.c (fetch_core_registers): Likewise.
4149 * corelow.c (get_core_registers): Likewise.
4150 * cris-tdep.c (cris_store_return_value): Likewise.
4151 (cris_extract_return_value): Likewise.
4152 (find_step_target): Likewise.
4153 (find_step_target): Likewise.
4154 (cris_software_single_step): Likewise.
4155 * ctf.c (ctf_fetch_registers): Likewise.
4156 * darwin-nat.c (cancel_breakpoint): Likewise.
4157 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
4158 * frv-tdep.c (frv_extract_return_value): Likewise.
4159 * ft32-tdep.c (ft32_store_return_value): Likewise.
4160 (ft32_extract_return_value): Likewise.
4161 * go32-nat.c (fetch_register): Likewise.
4162 (go32_fetch_registers): Likewise.
4163 (go32_store_registers): Likewise.
4164 (store_register): Likewise.
4165 * h8300-tdep.c (h8300_extract_return_value): Likewise.
4166 (h8300_store_return_value): Likewise.
4167 * hppa-linux-nat.c (fetch_register): Likewise.
4168 (store_register): Likewise.
4169 (hppa_linux_fetch_inferior_registers): Likewise.
4170 (hppa_linux_store_inferior_registers): Likewise.
4171 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
4172 (i386_darwin_store_inferior_registers): Likewise.
4173 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
4174 (gnu_store_registers): Likewise.
4175 * i386-linux-nat.c (fetch_register): Likewise.
4176 (store_register): Likewise.
4177 (supply_gregset): Likewise.
4178 (fill_gregset): Likewise.
4179 (i386_linux_fetch_inferior_registers): Likewise.
4180 (i386_linux_store_inferior_registers): Likewise.
4181 (i386_linux_resume): Likewise.
4182 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
4184 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
4185 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
4186 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
4187 (i386obsd_collect_uthread): Likewise.
4188 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
4189 (i386_supply_gregset): Likewise.
4190 (i386_collect_gregset): Likewise.
4191 (i386_supply_fpregset): Likewise.
4192 (i386_collect_fpregset): Likewise.
4193 (i386_mpx_bd_base): Likewise.
4194 * i386-v4-nat.c (supply_fpregset): Likewise.
4195 (fill_fpregset): Likewise.
4196 * i387-tdep.c (i387_supply_fsave): Likewise.
4197 (i387_collect_fsave): Likewise.
4198 (i387_supply_fxsave): Likewise.
4199 (i387_collect_fxsave): Likewise.
4200 (i387_supply_xsave): Likewise.
4201 (i387_collect_xsave): Likewise.
4202 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
4203 (ia64_linux_store_registers): Likewise.
4204 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
4205 (ia64_extract_return_value): Likewise.
4206 (ia64_store_return_value): Likewise.
4207 (find_func_descr): Likewise.
4208 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4209 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
4210 (inf_ptrace_store_registers): Likewise.
4211 * infrun.c (use_displaced_stepping): Likewise.
4212 (displaced_step_prepare_throw): Likewise.
4214 (proceed): Likewise.
4215 (do_target_wait): Likewise.
4216 (adjust_pc_after_break): Likewise.
4217 (handle_inferior_event_1): Likewise.
4218 (handle_signal_stop): Likewise.
4219 (save_infcall_suspend_state): Likewise.
4220 (restore_infcall_suspend_state): Likewise.
4221 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
4222 * jit.c (jit_frame_prev_register): Likewise.
4223 * linux-nat.c (save_stop_reason): Likewise.
4224 (linux_nat_wait_1): Likewise.
4225 (resume_stopped_resumed_lwps): Likewise.
4226 * linux-record.c (record_linux_sockaddr): Likewise.
4227 (record_linux_msghdr): Likewise.
4228 (record_linux_system_call): Likewise.
4229 * linux-tdep.c (linux_collect_thread_registers): Likewise.
4230 * lm32-tdep.c (lm32_extract_return_value): Likewise.
4231 (lm32_store_return_value): Likewise.
4232 * m32c-tdep.c (m32c_read_flg): Likewise.
4233 (m32c_pseudo_register_read): Likewise.
4234 (m32c_pseudo_register_write): Likewise.
4235 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
4236 (m32r_linux_collect_gregset): Likewise.
4237 * m32r-tdep.c (m32r_store_return_value): Likewise.
4238 (m32r_extract_return_value): Likewise.
4239 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4240 (m68kbsd_collect_fpregset): Likewise.
4241 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4242 * m68k-linux-nat.c (fetch_register): Likewise.
4243 (old_fetch_inferior_registers): Likewise.
4244 (old_store_inferior_registers): Likewise.
4245 (store_regs): Likewise.
4246 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4247 (m68k_svr4_store_return_value): Likewise.
4248 * m88k-tdep.c (m88k_store_arguments): Likewise.
4249 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4250 (mi_cmd_data_write_register_values): Likewise.
4251 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4252 (mips_fbsd_store_inferior_registers): Likewise.
4253 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4254 (mips_fbsd_supply_gregs): Likewise.
4255 (mips_fbsd_collect_fpregs): Likewise.
4256 (mips_fbsd_collect_gregs): Likewise.
4257 (mips_fbsd_supply_fpregset): Likewise.
4258 (mips_fbsd_collect_fpregset): Likewise.
4259 (mips_fbsd_supply_gregset): Likewise.
4260 (mips_fbsd_collect_gregset): Likewise.
4261 * mips-linux-nat.c (supply_gregset): Likewise.
4262 (fill_gregset): Likewise.
4263 (supply_fpregset): Likewise.
4264 (fill_fpregset): Likewise.
4265 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4266 (mips_fill_gregset): Likewise.
4267 (mips_supply_fpregset): Likewise.
4268 (mips_fill_fpregset): Likewise.
4269 (mips64_supply_gregset): Likewise.
4270 (micromips_linux_sigframe_validate): Likewise.
4271 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4272 (mipsnbsd_fetch_inferior_registers): Likewise.
4273 (mipsnbsd_store_inferior_registers): Likewise.
4274 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4275 (mipsnbsd_supply_gregset): Likewise.
4276 (mipsnbsd_iterate_over_regset_sections): Likewise.
4277 (mipsnbsd_supply_reg): Likewise.
4278 (mipsnbsd_supply_fpreg): Likewise.
4279 * mips-tdep.c (mips_in_frame_stub): Likewise.
4280 (mips_dummy_id): Likewise.
4281 (is_octeon_bbit_op): Likewise.
4282 (micromips_bc1_pc): Likewise.
4283 (extended_mips16_next_pc): Likewise.
4284 (mips16_next_pc): Likewise.
4285 (deal_with_atomic_sequence): Likewise.
4286 * moxie-tdep.c (moxie_process_readu): Likewise.
4287 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4288 * nto-procfs.c (procfs_store_registers): Likewise.
4289 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4290 (ppcfbsd_store_inferior_registers): Likewise.
4291 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4292 (fetch_altivec_register): Likewise.
4293 (get_spe_registers): Likewise.
4294 (fetch_spe_register): Likewise.
4295 (fetch_altivec_registers): Likewise.
4296 (fetch_all_gp_regs): Likewise.
4297 (fetch_all_fp_regs): Likewise.
4298 (store_vsx_register): Likewise.
4299 (store_altivec_register): Likewise.
4300 (set_spe_registers): Likewise.
4301 (store_spe_register): Likewise.
4302 (store_altivec_registers): Likewise.
4303 (store_all_gp_regs): Likewise.
4304 (store_all_fp_regs): Likewise.
4305 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4306 (ppc_linux_collect_gregset): Likewise.
4307 (ppc_canonicalize_syscall): Likewise.
4308 (ppc_linux_record_signal): Likewise.
4309 (ppu2spu_prev_register): Likewise.
4310 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4311 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4312 (ppcobsd_store_registers): Likewise.
4313 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4315 (ppc_ravenscar_generic_store_registers): Likewise.
4316 * procfs.c (procfs_fetch_registers): Likewise.
4317 (procfs_store_registers): Likewise.
4318 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4319 (ravenscar_store_registers): Likewise.
4320 (ravenscar_prepare_to_store): Likewise.
4321 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4322 * record-full.c (record_full_wait_1): Likewise.
4323 (record_full_registers_change): Likewise.
4324 (record_full_store_registers): Likewise.
4325 (record_full_core_fetch_registers): Likewise.
4326 (record_full_save): Likewise.
4327 (record_full_goto_insn): Likewise.
4328 * regcache.c (regcache_register_size): Likewise.
4329 (get_regcache_arch): Remove.
4330 (regcache_read_pc): Likewise.
4331 * regcache.h (get_regcache_arch): Remove.
4332 * remote-sim.c (gdbsim_fetch_register): Likewise.
4333 (gdbsim_store_register): Likewise.
4334 * remote.c (fetch_register_using_p): Likewise.
4335 (send_g_packet): Likewise.
4336 (remote_prepare_to_store): Likewise.
4337 (store_registers_using_G): Likewise.
4338 * reverse.c (save_bookmark_command): Likewise.
4339 (goto_bookmark_command): Likewise.
4340 * rs6000-aix-tdep.c (branch_dest): Likewise.
4341 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4342 (fetch_register): Likewise.
4343 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4344 (ppc_collect_reg): Likewise.
4345 (ppc_collect_gregset): Likewise.
4346 (ppc_collect_fpregset): Likewise.
4347 (ppc_collect_vsxregset): Likewise.
4348 (ppc_collect_vrregset): Likewise.
4349 (ppc_displaced_step_hw_singlestep): Likewise.
4350 (rs6000_pseudo_register_read): Likewise.
4351 (rs6000_pseudo_register_write): Likewise.
4352 * s390-linux-nat.c (supply_gregset): Likewise.
4353 (fill_gregset): Likewise.
4354 (s390_linux_fetch_inferior_registers): Likewise.
4355 * s390-linux-tdep.c (s390_write_pc): Likewise.
4356 (s390_software_single_step): Likewise.
4357 (s390_all_but_pc_registers_record): Likewise.
4358 (s390_linux_syscall_record): Likewise.
4359 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4360 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4361 (shnbsd_store_inferior_registers): Likewise.
4362 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4363 (sh_extract_return_value_fpu): Likewise.
4364 (sh_store_return_value_nofpu): Likewise.
4365 (sh_corefile_supply_regset): Likewise.
4366 (sh_corefile_collect_regset): Likewise.
4367 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4368 (sh64_store_return_value): Likewise.
4369 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4370 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4371 (sparc_store_inferior_registers): Likewise.
4372 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4373 (sparc_ravenscar_prepare_to_store): Likewise.
4374 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4375 (sparc_analyze_control_transfer): Likewise.
4376 (sparc_step_trap): Likewise.
4377 (sparc_software_single_step): Likewise.
4378 (sparc32_gdbarch_init): Likewise.
4379 (sparc_supply_rwindow): Likewise.
4380 (sparc_collect_rwindow): Likewise.
4381 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4382 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4383 (sparc64nbsd_collect_gregset): Likewise.
4384 (sparc64nbsd_supply_fpregset): Likewise.
4385 (sparc64nbsd_collect_fpregset): Likewise.
4386 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4387 (sparc64_supply_gregset): Likewise.
4388 (sparc64_collect_gregset): Likewise.
4389 (sparc64_supply_fpregset): Likewise.
4390 (sparc64_collect_fpregset): Likewise.
4391 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4392 * spu-tdep.c (spu_unwind_sp): Likewise.
4393 (spu2ppu_prev_register): Likewise.
4394 (spu_memory_remove_breakpoint): Likewise.
4395 * stack.c (return_command): Likewise.
4396 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4397 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4398 * tracefile.c (trace_save_ctf): Likewise.
4399 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4400 (do_windows_store_inferior_registers): Likewise.
4401 (windows_resume): Likewise.
4402 * xtensa-linux-nat.c (fill_gregset): Likewise.
4403 (supply_gregset_reg): Likewise.
4404 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4405 (xtensa_register_read_masked): Likewise.
4406 (xtensa_supply_gregset): Likewise.
4407 (xtensa_extract_return_value): Likewise.
4408 (xtensa_store_return_value): Likewise.
4410 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4412 * doublest.c (floatformat_from_string): New function.
4413 * doublest.h (floatformat_from_string): Add prototype.
4415 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4416 (OP_FLOAT): ... this.
4417 * expression.h: Do not include "doublest.h".
4418 (union exp_element): Replace doubleconst and decfloatconst by
4419 new element floatconst.
4420 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4421 (ada_evaluate_subexp): Likewise.
4422 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4423 OP_DOUBLE and OP_DECFLOAT.
4424 * expprint.c (print_subexp_standard): Likewise.
4425 (dump_subexp_body_standard): Likewise.
4426 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4428 * parse.c: Include "dfp.h".
4429 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4430 (write_exp_elt_floatcst): New function.
4431 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4433 (operator_check_standard): Likewise.
4434 (parse_float): Do not accept suffix. Take type as input. Return bool.
4435 Return target format buffer instead of host DOUBLEST.
4436 Use floatformat_from_string and decimal_from_string to parse
4437 either binary or decimal floating-point types.
4438 (parse_c_float): Remove.
4439 * parser-defs.h: Do not include "doublest.h".
4440 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4441 (write_exp_elt_floatcst): Add prototype.
4442 (parse_float): Update prototype.
4443 (parse_c_float): Remove.
4445 * c-exp.y: Do not include "dfp.h".
4446 (typed_val_float): Use byte buffer instead of DOUBLEST.
4447 (typed_val_decfloat): Remove.
4449 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4450 (parse_number): Update to new parse_float interface.
4451 Parse suffixes and determine type before calling parse_float.
4452 Handle decimal and binary FP types the same way.
4454 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4455 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4456 (parse_number): Update to new parse_float interface.
4457 Parse suffixes and determine type before calling parse_float.
4459 * f-exp.y: Replace dval by typed_val_float.
4460 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4461 (parse_number): Use parse_float instead of atof.
4463 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4464 (parse_go_float): Remove.
4465 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4466 (parse_number): Call parse_float instead of parse_go_float.
4467 Parse suffixes and determine type before calling parse_float.
4469 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4470 (FLOAT): 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 * m2-exp.y: Replace dval by byte buffer val.
4475 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4476 (parse_number): Call parse_float instead of atof.
4478 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4479 (lex_number): Call parse_float instead of strtod.
4480 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4481 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4482 Use write_exp_elt_floatcst.
4483 (unit_testing): Remove static variable.
4484 (rust_type): Do not check unit_testing.
4485 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4487 * ada-exp.y (type_float, type_double): Remove.
4488 (typed_val_float): Use byte buffer instead of DOUBLEST.
4489 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4490 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4492 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4494 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4495 * arch/aarch64.h: New file.
4497 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4499 * dfp.h (decimal_from_string): Use const reference for argument.
4500 * dfp.c (decimal_from_string): Likewise.
4502 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4504 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4505 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4506 * mips-tdep.c (mips_print_fp_register): Likewise.
4508 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4510 * common/format.h (enum argclass): Replace decfloat_arg by
4511 dec32float_arg, dec64float_arg, and dec128float_arg.
4512 * common/format.c (parse_format_string): Update to return
4513 new decimal float argument classes.
4515 * printcmd.c (printf_decfloat): Rename to ...
4516 (printf_floating): ... this. Add argclass argument, and use it
4517 instead of parsing the format string again. Add support for
4518 binary floating-point values, using floatformat_to_string.
4519 Convert value to the target format if it doesn't already match.
4520 (ui_printf): Call printf_floating instead of printf_decfloat,
4521 also for double_arg / long_double_arg. Pass argclass.
4523 * dfp.c (decimal_to_string): Add format string argument.
4524 * dfp.h (decimal_to_string): Likewise.
4526 * doublest.c (floatformat_to_string): Add format string argument.
4527 * doublest.h (floatformat_to_string): Likewise.
4529 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4531 * doublest.c (floatformat_precision): New routine.
4532 (floatformat_to_string): Likewise.
4533 * doublest.c (floatformat_to_string): Add prototype.
4535 * printcmd.c (print_scalar_formatted): Only call print_floating
4536 on floating-point types.
4537 * valprint.c: Do not include "floatformat.h".
4538 (generic_val_print_decfloat): Remove.
4539 (generic_val_print): Call generic_val_print_float for both
4540 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4541 (print_floating): Use floatformat_to_string. Handle decimal float.
4542 (print_decimal_floating): Remove, merge into floatformat_to_string.
4543 * value.h (print_decimal_floating): Remove.
4545 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4547 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4549 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4551 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4553 * memattr.h: Don't include vec.h.
4554 (struct mem_attrib): Initialize fields.
4555 <unknown>: New static method.
4556 (struct mem_region): Add constructors, operator<, initialize
4558 * memattr.c: Include algorithm.
4559 (default_mem_attrib, unknown_mem_attrib): Remove.
4560 (user_mem_region_list): New global.
4561 (target_mem_region_list, mem_region_list): Change type to
4562 std::vector<mem_region>.
4563 (mem_use_target): Now a function.
4564 (target_mem_regions_valid): Change type to bool.
4565 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4566 (require_user_regions): Adjust.
4567 (require_target_regions): Adjust.
4568 (create_mem_region): Adjust.
4569 (lookup_mem_region): Adjust.
4570 (invalidate_target_mem_regions): Adjust.
4571 (mem_clear): Rename to...
4572 (user_mem_clear): ... this, and adjust.
4573 (mem_command): Adjust.
4574 (info_mem_command): Adjust.
4575 (mem_enable, enable_mem_command, mem_disable,
4576 disable_mem_command): Adjust.
4577 (mem_delete): Adjust.
4578 (delete_mem_command): Adjust.
4579 * memory-map.h (parse_memory_map): Return an std::vector.
4580 * memory-map.c (parse_memory_map): Likewise.
4581 (struct memory_map_parsing_data): Add constructor.
4582 <memory_map>: Point to std::vector.
4583 (memory_map_start_memory): Adjust.
4584 (memory_map_end_memory): Adjust.
4585 (memory_map_end_property): Adjust.
4586 (clear_result): Remove.
4587 * remote.c (remote_memory_map): Return an std::vector.
4588 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4590 (target_debug_print_mem_region_vector): New.
4591 * target-delegates.c: Regenerate.
4592 * target.h (mem_region_vector): New typedef.
4593 (to_memory_map): Return mem_region_vector.
4594 (target_memory_map): Return an std::vector.
4595 * target.c (target_memory_map): Return an std::vector.
4596 (flash_erase_command): Adjust.
4598 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4600 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4601 Change type to std::string.
4602 (memory_map_start_property): Adjust.
4603 (memory_map_end_property): Adjust.
4605 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4607 * infrun.h: Include common/byte-vector.h.
4608 (struct displaced_step_closure): New struct.
4609 (struct buf_displaced_step_closure): New struct.
4610 * infrun.c (displaced_step_closure::~displaced_step_closure):
4611 Provide default implementation.
4612 (displaced_step_clear): Deallocate step closure with delete.
4613 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4614 (aarch64_displaced_step_closure): ... this, extend
4615 displaced_step_closure.
4616 (aarch64_displaced_step_data) <dsc>: Change type to
4617 aarch64_displaced_step_closure.
4618 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4620 (aarch64_displaced_step_fixup): Add cast for displaced step
4622 * amd64-tdep.c (displaced_step_closure): Rename to ...
4623 (amd64_displaced_step_closure): ... this, extend
4624 displaced_step_closure.
4625 <insn_buf>: Change type to std::vector<gdb_byte>.
4627 (fixup_riprel): Change type of DSC parameter, adjust to type
4629 (fixup_displaced_copy): Change type of DSC parameter.
4630 (amd64_displaced_step_copy_insn): Instantiate
4631 amd64_displaced_step_closure.
4632 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4633 to type change of insn_buf.
4634 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4636 (arm_linux_copy_svc): Likewise.
4637 (cleanup_kernel_helper_return): Likewise.
4638 (arm_catch_kernel_helper_return): Likewise.
4639 (arm_linux_displaced_step_copy_insn): Instantiate
4640 arm_displaced_step_closure.
4641 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4642 (displaced_read_reg): Change type of parameter DSC.
4643 (branch_write_pc): Likewise.
4644 (load_write_pc): Likewise.
4645 (alu_write_pc): Likewise.
4646 (displaced_write_reg): Likewise.
4647 (arm_copy_unmodified): Likewise.
4648 (thumb_copy_unmodified_32bit): Likewise.
4649 (thumb_copy_unmodified_16bit): Likewise.
4650 (cleanup_preload): Likewise.
4651 (install_preload): Likewise.
4652 (arm_copy_preload): Likewise.
4653 (thumb2_copy_preload): Likewise.
4654 (install_preload_reg): Likewise.
4655 (arm_copy_preload_reg): Likewise.
4656 (cleanup_copro_load_store): Likewise.
4657 (install_copro_load_store): Likewise.
4658 (arm_copy_copro_load_store) Likewise.
4659 (thumb2_copy_copro_load_store): Likewise.
4660 (cleanup_branch): Likewise.
4661 (install_b_bl_blx): Likewise.
4662 (arm_copy_b_bl_blx): Likewise.
4663 (thumb2_copy_b_bl_blx): Likewise.
4664 (thumb_copy_b): Likewise.
4665 (install_bx_blx_reg): Likewise.
4666 (arm_copy_bx_blx_reg): Likewise.
4667 (thumb_copy_bx_blx_reg): Likewise.
4668 (cleanup_alu_imm): Likewise.
4669 (arm_copy_alu_imm): Likewise.
4670 (thumb2_copy_alu_imm): Likewise.
4671 (cleanup_alu_reg): Likewise.
4672 (install_alu_reg): Likewise.
4673 (arm_copy_alu_reg): Likewise.
4674 (thumb_copy_alu_reg): Likewise.
4675 (cleanup_alu_shifted_reg): Likewise.
4676 (install_alu_shifted_reg): Likewise.
4677 (arm_copy_alu_shifted_reg): Likewise.
4678 (cleanup_load): Likewise.
4679 (cleanup_store): Likewise.
4680 (arm_copy_extra_ld_st): Likewise.
4681 (install_load_store): Likewise.
4682 (thumb2_copy_load_literal): Likewise.
4683 (thumb2_copy_load_reg_imm): Likewise.
4684 (arm_copy_ldr_str_ldrb_strb): Likewise.
4685 (cleanup_block_load_all): Likewise.
4686 (cleanup_block_store_pc): Likewise.
4687 (cleanup_block_load_pc): Likewise.
4688 (arm_copy_block_xfer): Likewise.
4689 (thumb2_copy_block_xfer): Likewise.
4690 (cleanup_svc): Likewise.
4691 (install_svc): Likewise.
4692 (arm_copy_svc): Likewise.
4693 (thumb_copy_svc): Likewise.
4694 (arm_copy_undef): Likewise.
4695 (thumb_32bit_copy_undef): Likewise.
4696 (arm_copy_unpred): Likewise.
4697 (arm_decode_misc_memhint_neon): Likewise.
4698 (arm_decode_unconditional): Likewise.
4699 (arm_decode_miscellaneous): Likewise.
4700 (arm_decode_dp_misc): Likewise.
4701 (arm_decode_ld_st_word_ubyte): Likewise.
4702 (arm_decode_media): Likewise.
4703 (arm_decode_b_bl_ldmstm): Likewise.
4704 (arm_decode_ext_reg_ld_st): Likewise.
4705 (thumb2_decode_dp_shift_reg): Likewise.
4706 (thumb2_decode_ext_reg_ld_st): Likewise.
4707 (arm_decode_svc_copro): Likewise.
4708 (thumb2_decode_svc_copro): Likewise.
4709 (install_pc_relative): Likewise.
4710 (thumb_copy_pc_relative_16bit): Likewise.
4711 (thumb_decode_pc_relative_16bit): Likewise.
4712 (thumb_copy_pc_relative_32bit): Likewise.
4713 (thumb_copy_16bit_ldr_literal): Likewise.
4714 (thumb_copy_cbnz_cbz): Likewise.
4715 (thumb2_copy_table_branch): Likewise.
4716 (cleanup_pop_pc_16bit_all): Likewise.
4717 (thumb_copy_pop_pc_16bit): Likewise.
4718 (thumb_process_displaced_16bit_insn): Likewise.
4719 (decode_thumb_32bit_ld_mem_hints): Likewise.
4720 (thumb_process_displaced_32bit_insn): Likewise.
4721 (thumb_process_displaced_insn): Likewise.
4722 (arm_process_displaced_insn): Likewise.
4723 (arm_displaced_init_closure): Likewise.
4724 (arm_displaced_step_fixup): Add cast for closure.
4725 * arm-tdep.h: Include infrun.h.
4726 (displaced_step_closure): Rename to ...
4727 (arm_displaced_step_closure): ... this, extend
4728 displaced_step_closure.
4729 <u::svc::copy_svc_os>: Change type of parameter DSC.
4730 <cleanup>: Likewise.
4731 (arm_process_displaced_insn): Likewise.
4732 (arm_displaced_init_closure): Likewise.
4733 (displaced_read_reg): Likewise.
4734 (displaced_write_reg): Likewise.
4735 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4737 * i386-tdep.h: Include infrun.h.
4738 (i386_displaced_step_closure): New typedef.
4739 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4740 i386_displaced_step_closure.
4741 (i386_displaced_step_fixup): Adjust.
4742 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4743 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4745 (ppc_displaced_step_fixup): Adjust.
4746 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4747 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4749 (s390_displaced_step_fixup): Adjust.
4751 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4753 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4754 Remove declarations.
4756 2017-10-20 Tom Tromey <tom@tromey.com>
4758 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4760 (gdb_bfd_record_inclusion): Update.
4761 (bfdp): Remove typedef.
4763 2017-10-20 Tom Tromey <tom@tromey.com>
4765 * gdb_bfd.c (gdb_bfd_ref): Use new.
4766 (struct gdb_bfd_data): Add constructor, destructor, and member
4768 (gdb_bfd_unref): Use delete.
4770 2017-10-20 Tom Tromey <tom@tromey.com>
4772 * exec.c (exec_file_attach): Use new_bfd_ref.
4773 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4774 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4775 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4777 * gdb_bfd.h (new_bfd_ref): New function.
4779 2017-10-20 Pedro Alves <palves@redhat.com>
4781 * main.c (captured_command_loop): Add attribute noinline.
4783 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4785 * interps.c (struct interp_factory): Add constructor.
4786 (interp_factory_p): Remove typedef.
4787 (DEF_VEC_P(interp_factory_p)): Remove.
4788 (interpreter_factories): Change type to std::vector.
4789 (interp_factory_register): Adjust.
4790 (interp_lookup): Adjust.
4791 (interpreter_completer): Adjust.
4793 2017-10-19 Tom Tromey <tom@tromey.com>
4795 * break-catch-syscall.c (catch_syscall_completer): Use
4796 std::string, gdb::unique_xmalloc_ptr.
4798 2017-10-19 Tom Tromey <tom@tromey.com>
4800 * infcall.c (call_function_by_hand_dummy): Use std::string.
4802 2017-10-19 Tom Tromey <tom@tromey.com>
4804 * mi/mi-main.c (mi_cmd_execute): Update.
4805 * top.h (prepare_execute_command): Return scoped_value_mark.
4806 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4807 Add move constructor.
4808 * top.c (prepare_execute_command): Return scoped_value_mark.
4809 (execute_command): Update.
4811 2017-10-19 Pedro Alves <palves@redhat.com>
4813 * xml-support.c (xml_fetch_content_from_file): Check fread's
4816 2017-10-19 Pedro Alves <palves@redhat.com>
4818 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4820 (handle_error_fd): New function.
4821 (ser_base_async): Add/delete an event loop file handler for
4824 2017-10-19 Pedro Alves <palves@redhat.com>
4826 * xml-support.c (xml_fetch_content_from_file): Don't read in
4827 chunks. Instead use fseek to determine the file's size, and read
4830 2017-11-18 Keith Seitz <keiths@redhat.com>
4832 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4834 Add whitespace to front of type name.
4836 2017-10-18 Keith Seitz <keiths@redhat.com>
4838 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4839 DW_AT_accessibility.
4841 2017-10-18 Yao Qi <yao.qi@linaro.org>
4843 * features/tic6x-c62x-linux.c: Remove.
4845 2017-10-17 Tom Tromey <tom@tromey.com>
4847 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4848 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4849 (do_mixed_source_and_assembly): Likewise.
4851 2017-10-17 Tom Tromey <tom@tromey.com>
4853 * regcache.c (regcache::xfer_part): Remove assertion.
4855 2017-10-17 Pedro Alves <palves@redhat.com>
4857 * xml-support.c (xml_fetch_content_from_file): Call
4858 unique_ptr::release() instead unique_ptr::get() when passing
4861 2017-10-17 Yao Qi <yao.qi@linaro.org>
4863 * regcache.c (regcache::xfer_part): Remove parameters read and
4864 write, add parameter is_raw. All callers are updated.
4866 2017-10-16 Keith Seitz <keiths@redhat.com>
4868 * c-typeprint.c (enum access_specifier): Moved here from
4870 (output_access_specifier): New function.
4871 (c_type_print_base): Consider typedefs when assessing
4872 whether access labels are needed.
4873 Use output_access_specifier as needed.
4874 Output access specifier for typedefs, if needed.
4875 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4876 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4878 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4881 2017-10-16 Tom Tromey <tom@tromey.com>
4883 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4884 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4885 * target.c (target_fileio_read_stralloc): Update.
4886 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4887 * target.h (target_fileio_read_stralloc): Return
4890 2017-10-16 Tom Tromey <tom@tromey.com>
4892 * xml-syscall.c (xml_init_syscalls_info): Update.
4893 * xml-support.c (xinclude_start_include): Update.
4894 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4895 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4896 (xml_fetch_content_from_file): Likewise.
4897 * osdata.c (get_osdata): Update.
4898 * target.h (target_read_stralloc, target_get_osdata): Return
4900 * solib-aix.c (solib_aix_get_library_list): Update.
4901 * solib-target.c (solib_target_current_sos): Update.
4902 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4903 * xml-tdesc.c (fetch_available_features_from_target): Update.
4904 (target_fetch_description_xml): Update.
4905 (file_read_description_xml): Update.
4906 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4907 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4908 (remote_pid_to_exec_file): Update.
4909 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4910 (target_get_osdata): Likewise.
4912 2017-10-16 Tom Tromey <tom@tromey.com>
4914 * remote.c (remote_register_number_and_offset): Use std::vector.
4915 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4916 (putpkt_binary): Use gdb::def_vector.
4917 (compare_sections_command): Use gdb::byte_vector.
4919 2017-10-16 Tom Tromey <tom@tromey.com>
4921 * ppc-linux-nat.c (hwdebug_insert_point): Use
4922 gdb::unique_xmalloc_ptr, XDUP.
4924 2017-10-16 Tom Tromey <tom@tromey.com>
4926 * probe.c (parse_probes): Use std::string.
4927 (info_probes_for_ops, enable_probes_command)
4928 (disable_probes_command): Remove cleanups.
4930 2017-10-16 Tom Tromey <tom@tromey.com>
4932 * buildsym.c (block_compar): Remove.
4933 (end_symtab_get_static_block): Use std::vector.
4935 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4937 * memrange.h (struct mem_range): Define operator< and operator==.
4938 (mem_range_s): Remove.
4939 (DEF_VEC_O (mem_range_s)): Remove.
4940 (normalize_mem_ranges): Change parameter type to std::vector.
4941 * memrange.c (compare_mem_ranges): Remove.
4942 (normalize_mem_ranges): Change parameter type to std::vector,
4943 adjust to vector change.
4944 * exec.c (section_table_available_memory): Return vector, remove
4946 (section_table_read_available_memory): Adjust to std::vector
4948 * remote.c (remote_read_bytes): Adjust to std::vector
4950 * tracepoint.h (traceframe_available_memory): Change parameter
4951 type to std::vector.
4952 * tracepoint.c (traceframe_available_memory): Change parameter
4953 type to std::vector, adjust.
4954 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4956 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4957 unittests/memrange-selftests.c.
4958 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4959 * gdb/unittests/memrange-selftests.c: New file.
4961 2017-10-16 Pedro Alves <palves@redhat.com>
4963 * elfread.c (probe_key_free): Rename range-for variable.
4964 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4965 (find_probe_by_pc, collect_probes): Rename range-for variable.
4967 2017-10-16 Yao Qi <yao.qi@linaro.org>
4969 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4970 * features/tic6x-c62x.c: Remove.
4971 * features/tic6x-c64x-linux.c: Remove.
4972 * features/tic6x-c64x.c: Remove.
4973 * features/tic6x-c64xp-linux.c: Remove.
4974 * features/tic6x-c64xp.c: Remove.
4975 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4976 initialize_tdesc_tic6x_*_linux functions.
4977 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4978 initialize_tdesc_tic6x_* functions.
4980 2017-10-16 Yao Qi <yao.qi@linaro.org>
4982 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4984 * regformats/tic6x-c62x.dat: Remove.
4985 * regformats/tic6x-c64x.dat: Remove.
4986 * regformats/tic6x-c64xp.dat: Remove.
4988 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4990 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4991 (the !HAVE_LIBEXPAT version).
4993 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4995 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4998 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5000 * target.h: Include tracepoint.h.
5001 (enum trace_find_type): Move to tracepoint.h.
5002 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
5003 * tracepoint.h: Don't include target.h
5004 (enum trace_find_type): Move from target.h.
5005 (parse_traceframe_info): Return a unique ptr.
5006 * tracepoint.c (current_traceframe_info): Change type to unique
5008 (free_traceframe_info): Remove.
5009 (clear_traceframe_info): Don't manually free
5010 current_traceframe_info.
5011 (free_result): Remove.
5012 (parse_traceframe_info): Return a unique ptr.
5013 (get_traceframe_info): Adjust to unique ptr.
5014 * ctf.c (ctf_traceframe_info): Return a unique ptr.
5015 * remote.c (remote_traceframe_info): Return a unique ptr.
5016 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
5018 * target-debug.h (target_debug_print_traceframe_info_up): New
5020 * target-delegates.c: Regenerate.
5022 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5024 * memrange.h (struct mem_range): Add constructors.
5025 * tracepoint.h (struct traceframe_info) <memory>: Change type to
5026 std::vector<mem_range>.
5027 * tracepoint.c (free_traceframe_info): Don't manually free
5029 (traceframe_info_start_memory): Adjust to vector change.
5030 (traceframe_available_memory): Likewise.
5031 * tracefile-tfile.c (build_traceframe_info): Likewise.
5032 * ctf.c (ctf_traceframe_info): Likewise.
5034 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5036 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
5038 * tracepoint.c (free_traceframe_info): Deallocate with delete.
5039 (traceframe_info_start_tvar): Adjust to vector change.
5040 (parse_traceframe_info): Allocate with new.
5041 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
5043 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
5045 tfile_traceframe_info): Allocate with new.
5046 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
5049 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
5051 * tracepoint.c (traceframe_info): Rename to...
5052 (current_traceframe_info): ...this.
5053 (clear_traceframe_info): Adjust.
5054 (get_traceframe_info): Adjust.
5056 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5058 * nat/linux-osdata.c: Include algorithm.
5059 (compare_processes): Remove.
5060 (struct pid_pgid_entry): New struct.
5061 (linux_xfer_osdata_processgroups): Use std::vector instead of
5064 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
5066 * objfiles.h: Don't include symfile.h.
5067 (struct partial_symbol): Remove forward-declaration.
5068 (struct objfile) <global_psymbols, static_psymbols>: Change type
5069 to std::vector<partial_symbol *>.
5070 * objfiles.c (objfile::objfile): Don't memset those fields.
5071 (objfile::~objfile): Don't free those fields.
5072 * psympriv.h (struct psymbol_allocation_list): Remove
5073 forward-declaration.
5074 (add_psymbol_to_list): Change psymbol_allocation_list parameter
5076 (start_psymtab_common): Change parameters to std::vector.
5077 * psymtab.c: Include algorithm.
5078 (require_partial_symbols): Call shrink_to_fit.
5079 (find_pc_sect_psymbol): Adjust to vector change.
5080 (match_partial_symbol): Likewise.
5081 (lookup_partial_symbol): Likewise.
5082 (psym_relocate): Likewise.
5083 (dump_psymtab): Likewise.
5084 (recursively_search_psymtabs): Likewise.
5085 (compare_psymbols): Remove.
5086 (sort_pst_symbols): Adjust to vector change.
5087 (start_psymtab_common): Likewise.
5088 (end_psymtab_common): Likewise.
5089 (psymbol_bcache_full): De-constify return value.
5090 (add_psymbol_to_bcache): Likewise.
5091 (extend_psymbol_list): Remove.
5092 (append_psymbol_to_list): Adjust to vector change.
5093 (add_psymbol_to_list): Likewise.
5094 (init_psymbol_list): Likewise.
5095 (maintenance_info_psymtabs): Likewise.
5096 (maintenance_check_psymtabs): Likewise.
5097 * symfile.h (struct psymbol_allocation_list): Remove.
5098 * symfile.c (reread_symbols): Adjust to vector change.
5099 * dbxread.c (start_psymtab): Change type of parameters.
5100 (dbx_symfile_read): Adjust to vector change.
5101 (read_dbx_symtab): Likewise.
5102 (start_psymtab): Change type of parameters.
5103 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
5104 (create_partial_symtab): Likewise.
5105 (add_partial_symbol): Likewise.
5106 (write_one_signatured_type): Likewise.
5107 (recursively_write_psymbols): Likewise.
5108 * mdebugread.c (parse_partial_symbols): Likewise.
5109 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
5110 (scan_xcoff_symtab): Adjust to vector change.
5111 (xcoff_initial_scan): Likewise.
5113 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
5115 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
5117 2017-10-13 Yao Qi <yao.qi@linaro.org>
5119 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
5120 Remove s390x-*-expedite, add s390x-expedite.
5122 2017-10-13 Yao Qi <yao.qi@linaro.org>
5124 * features/s390-gs-linux64.c: Regenerated.
5125 * features/s390x-gs-linux64.c: Regenerated.
5127 2017-10-13 Tom Tromey <tom@tromey.com>
5129 * compile/compile-object-run.c (do_module_cleanup): Use delete.
5130 * solib.c (update_solib_list, reload_shared_libraries_1): Use
5132 * symfile.c (symbol_file_add_with_addrs): Use new.
5133 (symbol_file_add_separate): Update comment.
5134 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
5135 * jit.c (jit_object_close_impl): Use new.
5136 (jit_unregister_code): Use delete.
5137 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
5138 (~objfile): Rename from free_objfile.
5139 (free_objfile_separate_debug, do_free_objfile_cleanup)
5140 (free_all_objfiles, objfile_purge_solibs): Use delete.
5141 * objfiles.h (struct objfile): Add constructor and destructor.
5142 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
5143 (allocate_objfile, free_objfile): Don't declare.
5144 (struct objstats): Add initializers.
5146 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5148 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
5149 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
5150 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
5151 * gdbarch.h: Regenerate.
5152 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
5154 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
5155 (i386_displaced_step_fixup): Adjust comment.
5156 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
5158 2017-10-12 Tom Tromey <tom@tromey.com>
5160 * prologue-value.h (pv_area::store_would_trash): Return bool.
5161 (pv_area::find_reg): Likewise.
5162 * prologue-value.c (pv_area::store_would_trash): Return bool.
5163 (pv_area::find_reg): Likewise.
5165 2017-10-12 Tom Tromey <tom@tromey.com>
5167 * s390-linux-tdep.c (s390_store, s390_load)
5168 (s390_check_for_saved, s390_analyze_prologue): Update.
5169 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
5170 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
5171 * prologue-value.h (class pv_area): Move from prologue-value.c.
5172 Change names of members. Add constructor, destructor, member
5174 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
5175 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
5176 (pv_area_fetch, pv_area_scan): Don't declare.
5177 * prologue-value.c (struct pv_area::area_entry): Now member of
5179 (struct pv_area): Move to prologue-value.h.
5180 (pv_area::pv_area): Rename from make_pv_area.
5181 (pv_area::~pv_area): Rename from free_pv_area.
5182 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
5183 (clear_entries, find_entry, overlaps, store_would_trash, store)
5184 (fetch, find_reg, scan): Now member of pv_area.
5185 Remove "area" argument. Update.
5186 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
5188 * mn10300-tdep.c (push_reg, check_for_saved)
5189 (mn10300_analyze_prologue): Update.
5190 * mep-tdep.c (is_arg_spill, check_for_saved)
5191 (mep_analyze_prologue): Update.
5192 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
5193 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
5194 (m32c_is_struct_return, m32c_analyze_prologue): Update.
5195 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
5197 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
5198 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
5200 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
5202 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
5203 * linux-nat.c (linux_nat_delete_thread): New variable.
5204 (lwp_free): Invoke linux_nat_delete_thread if set.
5205 (linux_nat_set_delete_thread): New function.
5206 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
5207 thread delete callback.
5208 * arm-linux-nat.c (arm_linux_delete_thread): New function.
5209 (_initialize_arm_linux_nat): Assign thread delete callback.
5210 * s390-linux-nat.c (s390_delete_thread): New function.
5211 (_initialize_s390_nat): Assign thread delete callback.
5212 * x86-linux-nat.c (x86_linux_add_target): Likewise.
5213 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
5215 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
5217 * nat/x86-linux.c (x86_linux_delete_thread): New function.
5218 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
5220 2017-10-09 Tom Tromey <tom@tromey.com>
5222 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
5224 * tui/tui-layout.c (enum tui_status): Use std::string.
5226 2017-10-11 Tom Tromey <tom@tromey.com>
5228 * gdbthread.h (thread_command): Constify.
5229 * inferior.h (detach_command): Constify.
5230 * top.h (set_history, show_history): Constify.
5231 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
5232 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
5233 * bsd-kvm.c (bsd_kvm_cmd): Constify.
5234 * printcmd.c (set_command): Constify.
5235 (non_const_set_command): New function.
5236 * dcache.c (set_dcache_command, show_dcache_command): Constify.
5237 * breakpoint.c (enable_command, disable_command, delete_command)
5238 (catch_command, tcatch_command, set_breakpoint_cmd)
5239 (show_breakpoint_cmd): Constify.
5240 * macrocmd.c (macro_command): Constify.
5241 * infcmd.c (unset_command, kill_command, detach_command)
5242 (info_proc_cmd): Constify.
5243 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5244 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5245 (info_auto_load_cmd): Constify.
5246 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5247 (unset_tdesc_cmd): Constify.
5248 * ada-lang.c (set_ada_command, show_ada_command)
5249 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5250 * guile/guile.c (set_guile_command, show_guile_command)
5251 (info_guile_command): Constify.
5252 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5254 * skip.c (skip_command): Constify.
5255 * compile/compile.c (_initialize_compile): Constify.
5256 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5257 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5258 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5259 (maint_btrace_pt_show_cmd): Constify.
5260 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5262 * python/python.c (user_show_python, user_set_python): Constify.
5263 * mips-tdep.c (set_mips_command, show_mips_command)
5264 (set_mipsfpu_command): Constify.
5265 * record-btrace.c (cmd_record_btrace_start)
5266 (cmd_set_record_btrace, cmd_show_record_btrace)
5267 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5268 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5269 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5271 * symfile.c (overlay_command): Constify.
5272 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5273 * cli/cli-logging.c (set_logging_command, show_logging_command):
5275 * cli/cli-dump.c (dump_command, append_command)
5276 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5277 (tekhex_dump_command, binary_dump_command)
5278 (binary_append_command): Constify.
5279 * cli/cli-decode.c (struct cmd_list_element): Change type of
5281 * cli/cli-cmds.c (info_command, show_command, set_debug)
5282 (show_debug): Constify.
5283 (show_command): Add non-const overload.
5284 * top.c (set_history, show_history): Constify.
5285 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5286 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5287 * target.c (target_command): Constify.
5288 * sparc64-tdep.c (info_adi_command): Constify.
5289 * record-full.c (cmd_record_full_start): Constify.
5290 (set_record_full_command): Constify. Fix typo.
5291 (show_record_full_command): Constify.
5292 * thread.c (thread_command, thread_apply_command): Constify.
5293 * memattr.c (dummy_cmd): Constify.
5294 * value.c (function_command): Constify.
5295 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5296 * probe.c (info_probes_command): Constify.
5297 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5298 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5299 (show_thread_cmd, set_thread_default_cmd)
5300 (show_thread_default_cmd): Constify.
5301 (check_empty): Constify.
5302 * tracepoint.c (tfind_command): Constify.
5303 * cp-support.c (maint_cplus_command): Constify.
5304 * windows-tdep.c (info_w32_command): Constify.
5305 * record.c (cmd_record_start, set_record_command)
5306 (show_record_command, info_record_command, cmd_record_goto):
5308 * ravenscar-thread.c (set_ravenscar_command)
5309 (show_ravenscar_command): Constify.
5310 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5312 (add_internal_problem_command): Remove casts.
5313 * arc-tdep.c (maintenance_print_arc_command): Constify.
5314 * valprint.c (set_print, show_print, set_print_raw)
5315 (show_print_raw): Constify.
5316 * maint.c (maintenance_command, maintenance_info_command)
5317 (maintenance_print_command, maintenance_set_cmd)
5318 (maintenance_show_cmd, set_per_command_cmd)
5319 (show_per_command_cmd, maintenance_check_command): Constify.
5320 * language.c (set_check, show_check): Constify.
5321 * typeprint.c (show_print_type, set_print_type): Constify.
5322 * go32-nat.c (go32_info_dos_command): Constify.
5324 2017-10-11 Tom Tromey <tom@tromey.com>
5326 * breakpoint.c (prepare_re_set_context): Remove.
5327 (breakpoint_re_set_one): Update. Don't use cleanups.
5328 (breakpoint_re_set): Use scoped_restore, std::string, and
5329 scoped_restore_current_language.
5331 2017-10-11 Tom Tromey <tom@tromey.com>
5333 * breakpoint.c (commands_command_1): Use std::string.
5334 (cleanup_executing_breakpoints): Remove.
5335 (bpstat_do_actions_1): Use scoped_restore.
5336 (bpstat_check_watchpoint): Use std::string.
5337 (decode_static_tracepoint_spec): Likewise.
5338 (break_range_command): Likewise.
5339 (watch_command_1): Likewise.
5340 (compare_breakpoints): Change argument types.
5341 (clear_command): Use std::vector.
5342 (cleanup_executing_breakpoints): Remove.
5343 (update_global_location_list): Use unique_xmalloc_ptr.
5344 (strace_command): Remove unused declaration.
5346 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5348 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5349 * NEWS: Mention new FreeBSD/arm native configuration.
5350 * configure.host: Add arm*-*-freebsd*.
5351 * configure.nat: Likewise.
5352 * arm-fbsd-nat.c: New file.
5354 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5356 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5357 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5358 * NEWS: Mention new FreeBSD/arm target.
5359 * configure.tgt: Add arm*-*-freebsd*.
5360 * arm-fbsd-tdep.c: New file.
5361 * arm-fbsd-tdep.h: New file.
5363 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5365 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5366 `gdbarch_elfcore_write_linux_prpsinfo'.
5367 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5369 (elf_internal_linux_prpsinfo): Remove declaration.
5370 * gdbarch.h: Regenerate.
5371 * gdbarch.c: Regenerate.
5373 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5375 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5376 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5378 2017-10-11 Pedro Alves <palves@redhat.com>
5380 * breakpoint.c (reattach_breakpoints): Delete.
5381 * breakpoint.h (reattach_breakpoints): Delete.
5383 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5385 * symfile.c (registered_sym_fns): Make struct, not typedef.
5386 (DEF_VEC_O (registered_sym_fns)): Remove.
5387 (symtab_fns): Change type to std::vector.
5388 (add_symtab_fns): Adjust.
5389 (find_sym_fns): Adjust.
5391 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5393 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5394 * arc-tdep.h (arc_arch_is_em): New function.
5395 (arc_arch_is_hs): Likewise.
5397 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5399 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5400 parentheses in the declaration.
5401 (macro_lookup_inclusion): Likewise.
5402 (macro_lookup_definition): Likewise.
5403 * p-lang.h (pascal_builtin_types): Likewise.
5404 * tui/tui-data.c (tui_win_list): Likewise.
5405 * tui/tui-data.h (tui_win_list): Likewise.
5406 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5408 2017-10-11 Mark Rages <markrages@gmail.com>
5410 * target-memory.c (block_boundaries): Fix for block address not
5411 aligned on block size.
5413 2017-10-10 Pedro Alves <palves@redhat.com>
5414 Tom Tromey <tom@tromey.com>
5416 * breakpoint.c (struct captured_breakpoint_query_args)
5417 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5418 (print_breakpoint): New.
5419 * breakpoint.h (print_breakpoint): Declare.
5420 * common/common-exceptions.h (enum return_reason): Remove
5421 references to catch_exceptions.
5422 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5424 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5425 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5427 * gdbthread.h (thread_select): Declare.
5428 * mi/mi-cmd-break.c: Don't include gdb.h.
5429 (breakpoint_notify): Use print_breakpoint.
5430 * mi/mi-cmd-catch.c: Don't include gdb.h.
5431 * mi/mi-interp.c: Don't include gdb.h.
5432 (mi_print_breakpoint_for_event): New.
5433 (mi_breakpoint_created, mi_breakpoint_modified): Use
5434 mi_print_breakpoint_for_event.
5435 * mi/mi-main.c: Don't include gdb.h.
5436 (mi_cmd_thread_select): Parse the global thread ID here. Use
5437 thread_select instead of gdb_thread_select.
5438 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5439 of using gdb_list_thread_ids.
5440 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5442 (remote_fileio_request): Use TRY/CATCH instead of
5444 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5445 (symbol_file_add_from_memory_wrapper): Delete.
5446 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5447 * thread.c: Don't include gdb.h.
5448 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5449 (thread_alive): Use thread_select.
5450 (do_captured_thread_select): Delete, parts salvaged as ...
5451 (thread_select): ... this new function.
5452 (gdb_thread_select): Delete.
5454 2017-10-10 Pedro Alves <palves@redhat.com>
5455 Tom Tromey <tom@tromey.com>
5457 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5459 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5460 No longer macros. Instead ...
5461 (enum wp_check_result): They're now values of this new
5463 (watchpoint_check): Change return type to wp_check_result and
5464 parameter type to bpstat.
5465 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5466 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5467 catch_errors. Reverse logic of watchpoint_check call.
5468 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5469 pointer as parameter.
5470 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5471 * common/common-exceptions.c (throw_exception_sjlj): Update
5472 comments to avoid mentioning catch_errors.
5473 * exceptions.c (catch_errors): Delete.
5474 * exceptions.h: Update comments to avoid mentioning catch_errors.
5475 (catch_errors_ftype, catch_errors): Delete.
5476 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5477 (hook_stop_stub): Delete.
5478 (restore_selected_frame): Change return type to void, and
5479 parameter type to const frame_id &.
5480 (restore_infcall_control_state): Use TRY/CATCH instead of
5482 * main.c (captured_command_loop): Return void and remove
5483 parameter. Remove references to catch_errors.
5484 (captured_main): Use TRY/CATCH instead of catch_errors.
5485 * objc-lang.c (objc_submethod_helper_data)
5486 (find_objc_msgcall_submethod_helper): Delete.
5487 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5489 * record-full.c (record_full_message): Return void.
5490 (record_full_message_args, record_full_message_wrapper): Delete.
5491 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5492 instead of catch_errors.
5493 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5494 parameter type to int.
5495 * solib-darwin.c (open_symbol_file_object): Ditto.
5496 * solib-dsbt.c (open_symbol_file_object): Ditto.
5497 * solib-frv.c (open_symbol_file_object): Ditto.
5498 * solib-svr4.c (open_symbol_file_object): Ditto.
5499 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5500 * solib.c (update_solib_list): Use TRY/CATCH instead of
5502 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5504 * symmisc.c (struct print_symbol_args): Remove.
5505 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5506 (print_symbol): Change type.
5507 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5508 and remove parameters.
5509 (catch_errors): New.
5510 (get_windows_debug_event): Adjust.
5512 2017-10-09 Tom Tromey <tom@tromey.com>
5514 * mi/mi-main.c (free_splay_tree): Remove.
5515 (list_available_thread_groups): Use splay_tree_up.
5516 * common/gdb_splay_tree.h: New file.
5518 2017-10-09 Tom Tromey <tom@tromey.com>
5520 * mi/mi-main.c (do_nothing): Remove.
5521 (list_available_thread_groups): Update.
5523 2017-10-09 Pedro Alves <palves@redhat.com>
5525 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5526 reading registers when switching context.
5528 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5530 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5531 (fbsd_convert_siginfo): Likewise.
5532 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5534 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5536 * configure.ac (try_guile_versions): Remove guile-2.2.
5537 * configure: Regenerate.
5539 2017-10-09 Tom Tromey <tom@tromey.com>
5541 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5542 (COMPILE.pre): Use $(CXX).
5544 2017-10-09 Pedro Alves <palves@redhat.com>
5546 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5548 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5549 * cp-support.h (cp_remove_params): Now returns a
5550 gdb::unique_xmalloc_ptr.
5551 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5552 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5553 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5554 returning a gdb::unique_xmalloc_ptr.
5555 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5556 * stack.c (find_frame_funname): Adjust to cp_remove_params
5557 returning a gdb::unique_xmalloc_ptr.
5559 2017-10-08 Tom Tromey <tom@tromey.com>
5561 * dwarf2read.c (dwarf2_get_dwz_file): Use
5562 gdb::unique_xmalloc_ptr.
5563 (find_slot_in_mapped_hash): Likewise.
5564 (dwarf2_physname): Likewise.
5565 (create_dwo_unit_in_dwp_v1): Use std::string.
5566 (create_dwo_unit_in_dwp_v2): Likewise.
5567 (lookup_dwo_cutu): Likewise.
5568 (inherit_abstract_dies): Use std::vector.
5569 (read_array_type): Likewise.
5570 (dwarf_decode_macros): Remove unused declaration.
5571 (unsigned_int_compar): Remove.
5572 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5573 (psymtabs_addrmap_cleanup): Remove.
5575 2017-10-08 Tom Tromey <tom@tromey.com>
5577 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5578 * frame.h (frame_cleanup_after_sniffer): Declare.
5579 (frame_prepare_for_sniffer): Return void.
5580 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5582 (frame_prepare_for_sniffer): Return void.
5584 2017-10-08 Tom Tromey <tom@tromey.com>
5586 * utils.h (make_cleanup_value_free): Remove.
5587 * utils.c (do_value_free, struct cleanup): Remove.
5588 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5590 * value.h (struct value_deleter): New.
5591 (gdb_value_up): New typedef.
5593 2017-10-08 Tom Tromey <tom@tromey.com>
5595 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5596 (make_cleanup_free_search_symbols): Remove.
5597 (search_symbols): Return std::vector.
5598 (symbol_search::compare_search_syms): Now member of
5599 symbol_search. Change arguments.
5600 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5601 (symtab_symbol_info, rbreak_command): Update.
5602 * symtab.h (struct symbol_search) <next>: Remove.
5604 (symbol_search::operator<): New function.
5605 (symbol_search::operator==): New function.
5606 (search_symbols): Remove std::vector.
5607 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5608 (symbol_search::compare_search_syms): Declare.
5610 2017-10-06 Yao Qi <yao.qi@linaro.org>
5612 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5613 arch/aarch64-insn.o.
5615 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5617 2017-10-06 Yao Qi <yao.qi@linaro.org>
5619 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5620 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5621 arch/arm-linux.o respectively.
5622 * configure.tgt: Likewise.
5624 2017-10-06 Yao Qi <yao.qi@linaro.org>
5626 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5627 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5629 2017-10-06 Pedro Alves <palves@redhat.com>
5631 * windows-nat.c: Include <algorithm>.
5633 2017-10-06 Yao Qi <yao.qi@linaro.org>
5635 * configure.tgt (i386_tobjs): New variable.
5636 (amd64_tobjs): New variable.
5637 Set $cpu_obs and $os_obs.
5639 2017-10-06 Yao Qi <yao.qi@linaro.org>
5641 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5642 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5643 (clean): Remove object files and dependency files.
5644 (distclean): Remove the directory.
5645 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5646 * configure: Re-generated.
5647 * configure.tgt: Replace amd64.o with arch/amd64.o.
5649 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5652 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5655 2017-10-05 Pedro Alves <palves@redhat.com>
5657 * linux-nat.c (linux_child_follow_fork): When following the parent
5658 and detaching the child, consult the parent thread's architecture
5659 instead of the child's.
5661 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5663 * ax.h: Do not include "doublest.h".
5664 (union agent_val): Remove.
5666 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5668 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5669 (decimal_to_string): Return std::string object.
5670 (decimal_from_string): Accept std::string object. Return bool.
5671 (decimal_from_integral, decimal_from_doublest): Remove.
5672 (decimal_from_longest): Add prototype.
5673 (decimal_from_ulongest): Likewise.
5674 (decimal_to_longest): Likewise.
5675 (decimal_from_doublest): Likewise.
5676 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5677 (MAX_DECIMAL_STRING): Move here.
5678 (decimal_to_string): Return std::string object.
5679 (decimal_from_string): Accept std::string object. Return bool.
5680 (decimal_from_integral): Remove, replace by ...
5681 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5682 (decimal_to_longest): New function.
5683 (decimal_from_floating): Remove, replace by ...
5684 (decimal_from_doublest): ... this new function.
5685 (decimal_to_doublest): Update to new decimal_to_string interface.
5687 * value.c (unpack_long): Use decimal_to_longest.
5688 * valops.c (value_cast): Use decimal_from_doublest instead of
5689 decimal_from_floating. Use decimal_from_[u]longest isntead of
5690 decimal_from_integral.
5691 * valarith.c (value_args_as_decimal): Likewise.
5692 * valprint.c (print_decimal_floating): Update to new
5693 decimal_to_string interface.
5694 * printcmd.c (printf_decfloat): Likewise.
5695 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5697 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5699 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5700 * gdbtypes.c: Include "floatformat.h".
5701 * value.c: Likewise.
5702 * m68k-tdep.c: Likewise.
5704 * findvar.c: Do not include "floatformat.h".
5705 * amd64-darwin-tdep.c: Likewise.
5706 * arm-linux-tdep.c: Likewise.
5707 * i386-darwin-tdep.c: Likewise.
5708 * i387-tdep.c: Likewise.
5709 * m68k-linux-tdep.c: Likewise.
5710 * mep-tdep.c: Likewise.
5711 * mips-tdep.c: Likewise.
5712 * nios2-tdep.c: Likewise.
5713 * s390-linux-tdep.c: Likewise.
5714 * sparc-obsd-tdep.c: Likewise.
5715 * sparc-tdep.c: Likewise.
5716 * sparc64-tdep.c: Likewise.
5717 * spu-tdep.c: Likewise.
5718 * tic6x-tdep.c: Likewise.
5719 * tilegx-tdep.c: Likewise.
5720 * vax-tdep.c: Likewise.
5721 * xstormy16-tdep.c: Likewise.
5722 * xtensa-tdep.c: Likewise.
5724 * top.c: Do not include "doublest.h".
5725 * aarch64-tdep.c: Likewise.
5726 * alpha-tdep.c: Likewise.
5727 * arm-linux-tdep.c: Likewise.
5728 * m68k-linux-tdep.c: Likewise.
5729 * tilegx-tdep.c: Likewise.
5730 * xstormy16-tdep.c: Likewise.
5732 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5734 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5735 (mipsn32_fbsd_sigframe): Define.
5736 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5737 for FreeBSD/mipsn32.
5739 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5741 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5744 2017-10-05 Tristan Gingold <tgingold@free.fr>
5746 * MAINTAINERS (Misc): Update my email address.
5748 2017-10-04 Pedro Alves <palves@redhat.com>
5750 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5751 it instead of target_gdbarch.
5752 (get_remote_state, get_remote_packet_size): Adjust
5753 get_remote_arch_state calls, passing down target_gdbarch
5755 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5756 'gdbarch' and use it instead of target_gdbarch.
5757 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5758 passing down target_gdbarch explicitly.
5759 (struct stop_reply) <arch>: New field.
5760 (remote_parse_stop_reply): Use the stopped thread's architecture,
5761 not the current inferior's. Save the architecture in the
5763 (process_stop_reply): Use the stop reply's architecture.
5764 (process_g_packet, remote_fetch_registers)
5765 (remote_prepare_to_store, store_registers_using_G)
5766 (remote_store_registers): Adjust get_remote_arch_state calls,
5767 using the regcache's architecture.
5768 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5769 passing down target_gdbarch explicitly.
5770 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5771 beneath instead of calling target_gdbarch.
5772 * target.c (default_thread_architecture): Use the specified
5773 inferior's architecture, instead of the current inferior's
5774 architecture (via target_gdbarch).
5776 2017-10-04 Pedro Alves <palves@redhat.com>
5778 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5780 (regcache_print): Handle !target_has_registers here instead.
5782 2017-10-04 Pedro Alves <palves@redhat.com>
5784 * frame.c (create_test_frame): Delete.
5785 * frame.h (create_test_frame): Delete.
5786 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5787 (class regcache_test): Delete.
5788 (test_target_has_registers, test_target_has_stack)
5789 (test_target_has_memory, test_target_prepare_to_store)
5790 (test_target_store_registers): New functions.
5791 (test_target_ops): New class.
5792 (register_to_value_test): Error out if there's already a
5793 process_stratum (or higher) target pushed. Create a fuller mock
5794 environment, with mock target_ops, inferior, address space, thread
5796 * progspace.c (struct address_space): Move to ...
5797 * progspace.h (struct address_space): ... here.
5798 * regcache.h (regcache::~regcache, regcache::raw_write)
5799 [GDB_SELF_TEST]: No longer virtual.
5801 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5803 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5805 2017-10-04 Pedro Alves <palves@redhat.com>
5807 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5808 out of 'between TRY and CATCH'.
5810 2017-10-04 Pedro Alves <palves@redhat.com>
5812 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5813 * common/common-exceptions.h (TRY): Open an outermost scope.
5814 Expand intro comment.
5816 (END_CATCH): Close the outermost scope.
5817 * completer.c (complete_line_internal): Add missing END_CATCH.
5819 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5821 * NEWS (Changes since GDB 8.0): Add entry about new
5822 'set-cwd-on-gdbserver' feature.
5823 (New remote packets): Add entry for QSetWorkingDir.
5824 * common/common-inferior.h (set_inferior_cwd): New prototype.
5825 * infcmd.c (set_inferior_cwd): Remove "static".
5826 (show_cwd_command): Expand text to include remote debugging.
5827 * remote.c: Add PACKET_QSetWorkingDir.
5828 (remote_protocol_features) <QSetWorkingDir>: New entry for
5829 PACKET_QSetWorkingDir.
5830 (extended_remote_set_inferior_cwd): New function.
5831 (extended_remote_create_inferior): Call
5832 "extended_remote_set_inferior_cwd".
5833 (_initialize_remote): Call "add_packet_config_cmd" for
5836 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5838 * NEWS (New commands): Mention "set/show cwd".
5839 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5840 "cd" command's help text.
5841 * common/common-inferior.h (get_inferior_cwd): New prototype.
5842 * infcmd.c (inferior_cwd_scratch): New global variable.
5843 (set_inferior_cwd): New function.
5844 (get_inferior_cwd): Likewise.
5845 (set_cwd_command): Likewise.
5846 (show_cwd_command): Likewise.
5847 (_initialize_infcmd): Add "set/show cwd" commands.
5848 * inferior.h (class inferior) <cwd>: New field.
5849 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5850 (fork_inferior): Change inferior's cwd before its execution.
5851 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5854 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5856 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5857 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5858 (COMMON_OBS): Add gdb_tilde_expand.o.
5859 * common/gdb_tilde_expand.c: New file.
5860 * common/gdb_tilde_expand.h: Likewise.
5862 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5864 * gdbarch.sh (objfile): Remove duplicate declaration.
5865 * gdbarch.h: Regenerate.
5867 2017-10-03 Tom Tromey <tom@tromey.com>
5869 * utils.c (internal_vproblem): Use string_vprintf.
5871 2017-10-03 Tom Tromey <tom@tromey.com>
5873 * printcmd.c (info_symbol_command): Use std::string.
5875 2017-10-03 Tom Tromey <tom@tromey.com>
5877 * top.c (gdb_safe_append_history): Use std::string.
5879 2017-10-03 Tom Tromey <tom@tromey.com>
5881 * event-top.c (stdin_event_handler): Update.
5882 * main.c (captured_main_1): Update.
5883 * top.h (make_delete_ui_cleanup): Remove.
5884 (struct ui): Add constructor and destructor.
5885 (new_ui, delete_ui): Remove.
5886 * top.c (make_delete_ui_cleanup): Remove.
5887 (new_ui_command): Use std::unique_ptr.
5888 (delete_ui_cleanup): Remove.
5889 (ui::ui): Rename from new_ui. Update.
5891 (ui::~ui): Rename from delete_ui. Update.
5893 2017-10-03 Tom Tromey <tom@tromey.com>
5895 * symfile.c (load_progress): Use gdb::byte_vector.
5897 2017-10-03 Tom Tromey <tom@tromey.com>
5899 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5901 * printcmd.c (x_command): Remove unused declaration.
5902 * symfile.c (symbol_file_command): Remove unused declaration.
5904 2017-10-03 Tom Tromey <tom@tromey.com>
5906 * utils.c (internal_vproblem): Use std::string.
5907 (defaulted_query): Likewise.
5909 2017-10-03 Tom Tromey <tom@tromey.com>
5911 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5912 * top.c (execute_command_to_string): Update.
5913 * utils.c (make_cleanup_restore_page_info): Remove.
5914 (do_restore_page_info_cleanup): Remove.
5915 (set_batch_flag_and_restore_page_info):
5917 (make_cleanup_restore_page_info): Remove.
5918 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5919 (~set_batch_flag_and_restore_page_info): New
5920 (make_cleanup_restore_uinteger): Remove.
5921 (make_cleanup_restore_integer): Remove.
5922 (struct restore_integer_closure): Remove.
5923 (restore_integer): Remove.
5924 * utils.h (struct set_batch_flag_and_restore_page_info): New
5926 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5927 (make_cleanup_restore_page_info): Remove.
5928 (make_cleanup_restore_uinteger) Remove.
5929 (make_cleanup_restore_integer) Remove.
5931 2017-10-03 Tom Tromey <tom@tromey.com>
5933 * record-full.h (record_full_gdb_operation_disable_set): Return
5934 scoped_restore_tmpl<int>.
5935 * infrun.c (adjust_pc_after_break): Update.
5936 (handle_signal_stop): Update.
5937 * record-full.c (record_full_gdb_operation_disable_set): Return
5938 scoped_restore_tmpl<int>.
5939 (record_full_wait_1, record_full_insert_breakpoint)
5940 (record_full_remove_breakpoint, record_full_save)
5941 (record_full_goto_insn): Update.
5943 2017-10-02 Tom Tromey <tom@tromey.com>
5946 * rust-lang.c (rust_val_print_str): New function.
5947 (val_print_struct): Call it.
5948 (rust_subscript): Preserve name of slice type.
5950 2017-10-02 Tom Tromey <tom@tromey.com>
5952 * rust-lang.c (rust_subscript): Handle slices in
5953 EVAL_AVOID_SIDE_EFFECTS case.
5955 2017-10-02 Tom Tromey <tom@tromey.com>
5957 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5959 2017-10-02 Tom Tromey <tom@tromey.com>
5961 * rust-lang.h (rust_slice_type): Add "extern".
5963 2017-10-02 Tom Tromey <tom@tromey.com>
5964 Pedro Alves <palves@redhat.com>
5966 * ada-lang.h (ada_exc_info::operator<): Make const.
5967 (ada_exc_info::operator==): Make const.
5968 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5971 2017-09-29 Tom Tromey <tom@tromey.com>
5973 * target.c (read_whatever_is_readable): Change type of "result".
5975 (free_memory_read_result_vector): Remove.
5976 (read_memory_robust): Change return type. Update.
5977 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5978 bin2hex, std::string.
5979 * target.h (memory_read_result_s): Remove typedef.
5980 (free_memory_read_result_vector): Remove.
5981 (read_memory_robust): Return std::vector.
5983 2017-09-29 Tom Tromey <tom@tromey.com>
5985 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5987 2017-09-29 Tom Tromey <tom@tromey.com>
5989 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5990 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5991 operator< and operator==.
5992 (ada_exceptions_list): Return a std::vector.
5993 * ada-lang.c (ada_exc_info::operator<): Rename from
5994 compare_ada_exception_info.
5995 (ada_exc_info::operator==): New.
5996 (sort_remove_dups_ada_exceptions_list): Change type of
5998 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5999 (ada_add_global_exceptions): Likewise.
6000 (ada_exceptions_list_1): Return a std::vector.
6001 (ada_exceptions_list): Likewise.
6003 2017-09-29 Tom Tromey <tom@tromey.com>
6005 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
6007 (print_one_inferior): Update.
6008 (free_vector_of_ints): Remove.
6009 (list_available_thread_groups): Change "ids" to std::set.
6010 (mi_cmd_list_thread_groups): Update.
6011 (struct collect_cores_data) <core>: Now a std::set.
6012 (collect_cores): Update.
6014 (print_one_inferior): Update.
6016 2017-09-29 Tom Tromey <tom@tromey.com>
6018 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
6019 (mi_execute_async_cli_command): Likewise.
6020 (mi_cmd_trace_frame_collected): Use field_fmt.
6022 2017-09-29 Tom Tromey <tom@tromey.com>
6024 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
6027 2017-09-29 Tom Tromey <tom@tromey.com>
6029 * mi/mi-parse.c (mi_parse): Remove unused declaration.
6031 2017-09-29 Tom Tromey <tom@tromey.com>
6033 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
6035 2017-09-29 Tom Tromey <tom@tromey.com>
6037 * varobj.h (varobj_gen_name): Return std::string.
6038 * varobj.c (varobj_gen_name): Return std::string.
6039 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
6040 (mi_cmd_var_delete): Don't copy "name".
6042 2017-09-29 Tom Tromey <tom@tromey.com>
6044 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
6045 (mi_cmd_break_insert_1): Update.
6047 2017-09-29 Tom Tromey <tom@tromey.com>
6049 * target.h (make_scoped_defer_target_commit_resume): Update.
6050 * target.c (make_scoped_defer_target_commit_resume): Rename from
6051 make_cleanup_defer_target_commit_resume. Return a
6053 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
6055 2017-09-29 Tom Tromey <tom@tromey.com>
6057 * main.c (captured_main_1): Remove unused declaration.
6058 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
6060 2017-09-29 Tom Tromey <tom@tromey.com>
6062 * symtab.c (search_symbols): Remove unused outer cleanup.
6063 (make_source_files_completion_list): Remove unused declaration.
6065 2017-09-29 Tom Tromey <tom@tromey.com>
6067 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
6069 2017-09-29 Tom Tromey <tom@tromey.com>
6071 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
6074 2017-09-29 Tom Tromey <tom@tromey.com>
6076 * complaints.c (vcomplaint): Use std::string.
6078 2017-09-29 Tom Tromey <tom@tromey.com>
6080 * tracepoint.c (trace_variable_command): Use std::string.
6081 (encode_actions_1): Remove unused declarations.
6082 (create_tsv_from_upload): Use std::string.
6084 2017-09-29 Tom Tromey <tom@tromey.com>
6086 * cp-support.c (gdb_demangle): Use std::string.
6088 2017-09-29 Tom Tromey <tom@tromey.com>
6090 * stack.c (parse_frame_specification): Use std::string
6091 (info_frame_command): Use gdb::unique_xmalloc_ptr.
6093 2017-09-29 Tom Tromey <tom@tromey.com>
6095 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
6097 2017-09-29 Tom Tromey <tom@tromey.com>
6099 * utils.c (vfprintf_maybe_filtered): Use std::string.
6100 (vfprintf_unfiltered): Likewise.
6102 2017-09-29 Tom Tromey <tom@tromey.com>
6104 * event-top.c (top_level_prompt): Return std::string.
6105 (display_gdb_prompt): Update.
6107 2017-09-29 Tom Tromey <tom@tromey.com>
6109 * unittests/common-utils-selftests.c (format): New function.
6110 (string_vprintf_tests): New function.
6111 (_initialize_common_utils_selftests): Register new tests.
6112 * common/common-utils.c (string_vprintf): New function.
6113 * common/common-utils.h (string_vprintf): Declare.
6115 2017-09-29 Pedro Alves <palves@redhat.com>
6117 * common/rsp-low.c (unpack_varlen_hex): Constify.
6118 * common/rsp-low.h (unpack_varlen_hex): Constify.
6119 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6121 * remote.c (remote_set_permissions, read_ptid)
6122 (remote_current_thread, remote_get_threads_with_qthreadinfo)
6123 (remote_static_tracepoint_marker_at)
6124 (remote_static_tracepoint_markers_by_strid)
6125 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
6126 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
6127 (parse_tracepoint_definition, parse_tsv_definition)
6128 (parse_static_tracepoint_marker_definition): Constify.
6129 * tracepoint.h (parse_static_tracepoint_marker_definition)
6130 (parse_trace_status, parse_tracepoint_status)
6131 (parse_tracepoint_definition, parse_tsv_definition): Constify.
6133 2017-09-29 Pedro Alves <palves@redhat.com>
6135 * remote.c (target_buf, target_buf_size): Delete.
6136 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
6137 Use the connection's packet buffer instead.
6138 All callers adjusted.
6139 (_initialize_remote): Remove references to target_buf and
6142 2017-09-28 Pedro Alves <palves@redhat.com>
6144 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6145 unittests/common-utils-selftests.c.
6146 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
6147 (COMMON_OBS): Remove utils-selftests.o.
6148 * utils-selftests.c: Move to ...
6149 * unittests/common-utils-selftests.c: ... here and rename self
6150 test to "string_printf".
6152 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
6154 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
6155 having NULL cus or tus.
6157 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6159 * arm-tdep.c: (convert_from_extended): Remove.
6160 (convert_to_extended): Likewise.
6161 (arm_extract_return_value): Use convert_typed_floating.
6162 (arm_store_return_value): Likewise.
6164 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6165 * sh-tdep.c: Do not include "floatformat.h".
6166 (sh_littlebyte_bigword_type): New function.
6167 (sh_register_convert_to_virtual): Use convert_typed_floating.
6168 (sh_register_convert_to_raw): Likewise.
6169 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
6170 (sh64_littlebyte_bigword_type): New function.
6171 (sh64_extract_return_value): Use convert_typed_floating.
6172 (sh64_register_convert_to_virtual): Likewise.
6173 (sh64_register_convert_to_raw): Likewise.
6175 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6177 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
6178 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
6180 * gdbtypes.h (union type_specific): Make field floatformat hold
6181 just a single struct floatformat, not an array.
6182 (floatformat_from_type): Move here.
6183 * gdbtypes.c (floatformat_from_type): Move here. Update to
6184 changed TYPE_FLOATFORMAT definition.
6185 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
6186 (recursive_dump_type): Likewise.
6187 (init_float_type): Install correct floatformat for byte order.
6188 (arch_float_type): Likewise.
6190 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
6192 * gdbtypes.c (init_type): Change incoming argument from
6193 length-in-bytes to length-in-bits. Assert length is a
6194 multiple of TARGET_CHAR_BITS.
6195 (arch_type, arch_flags_type): Likewise.
6196 (init_integer_type): Update call to init_type.
6197 (init_character_type): Likewise.
6198 (init_boolean_type): Likewise.
6199 (init_float_type): Likewise.
6200 (init_decfloat_type): Likewise.
6201 (init_complex_type): Likewise.
6202 (init_pointer_type): Likewise.
6203 (objfile_type): Likewise.
6204 (arch_integer_type): Update call to arch_type.
6205 (arch_character_type): Likewise.
6206 (arch_boolean_type): Likewise.
6207 (arch_float_type): Likewise.
6208 (arch_decfloat_type): Likewise.
6209 (arch_complex_type): Likewise.
6210 (arch_pointer_type): Likewise.
6211 (gdbtypes_post_init): Likewise.
6213 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
6214 (read_base_type): Likewise.
6215 * mdebugread.c (basic_type): Likewise.
6216 * stabsread.c (dbx_init_float_type): Likewise.
6217 (rs6000_builtin_type): Likewise.
6218 (read_range_type): Likewise. Also, fix call to init_integer_type
6219 with erroneous length argument.
6221 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
6222 * d-lang.c (build_d_types): Likewise.
6223 * f-lang.c (build_fortran_types): Likewise.
6224 * go-lang.c (build_go_types): Likewise.
6225 * opencl-lang.c (build_opencl_types): Likewise.
6226 * jit.c (finalize_symtab): Likewise.
6227 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
6228 (build_std_type_info_type): Likewise.
6229 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
6230 update call to arch_flags_type.
6232 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
6234 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
6235 * windows-tdep.c (windows_get_tlb_type): Likewise.
6237 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6238 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6239 * m32c-tdep.c (make_types): Likewise.
6240 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6241 (rl78_psw_type): Update call to arch_flags_type.
6242 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6243 * rx-tdep.c (rx_psw_type): Likewise.
6244 (rx_fpsw_type): Likewise.
6245 * sparc-tdep.c (sparc_psr_type): Likewise.
6246 (sparc_fsr_type): Likewise.
6247 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6248 (sparc64_ccr_type): Likewise.
6249 (sparc64_fsr_type): Likewise.
6250 (sparc64_fprs_type): Likewise.
6252 2017-09-27 Tom Tromey <tom@tromey.com>
6254 * findcmd.c (find_command): Constify.
6256 2017-09-27 Tom Tromey <tom@tromey.com>
6258 * ada-tasks.c (task_command_1, task_command): Constify.
6260 2017-09-27 Tom Tromey <tom@tromey.com>
6262 * symtab.c (maintenance_print_symbol_cache)
6263 (maintenance_flush_symbol_cache)
6264 (maintenance_print_symbol_cache_statistics): Constify.
6266 2017-09-27 Tom Tromey <tom@tromey.com>
6268 * inferior.c (detach_inferior_command, kill_inferior_command)
6269 (inferior_command): Constify.
6271 2017-09-27 Tom Tromey <tom@tromey.com>
6273 * regcache.c (regcache_print, maintenance_print_registers)
6274 (maintenance_print_raw_registers)
6275 (maintenance_print_cooked_registers)
6276 (maintenance_print_register_groups)
6277 (maintenance_print_remote_registers): Constify.
6279 2017-09-27 Tom Tromey <tom@tromey.com>
6281 * printcmd.c (map_display_numbers, undisplay_command)
6282 (enable_disable_display_command, enable_display_command)
6283 (disable_display_command): Constify.
6285 2017-09-27 Tom Tromey <tom@tromey.com>
6287 * breakpoint.h (delete_command): Don't declare.
6288 * breakpoint.c (delete_command, enable_once_command)
6289 (enable_count_command, enable_delete_command, breakpoint_1)
6290 (maintenance_info_breakpoints, stopin_command, stopat_command)
6291 (delete_command, delete_trace_command, save_breakpoints)
6292 (save_breakpoints_command, save_tracepoints_command): Constify.
6294 2017-09-27 Tom Tromey <tom@tromey.com>
6296 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6297 (skip_ws, extract_identifier, macro_define_command)
6298 (macro_undef_command, macro_list_command): Constify.
6300 2017-09-27 Tom Tromey <tom@tromey.com>
6302 * infcmd.c (environment_info, set_environment_command)
6303 (unset_environment_command, path_info, info_proc_cmd_1)
6304 (info_proc_cmd_mappings, info_proc_cmd_stat)
6305 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6306 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6308 2017-09-27 Tom Tromey <tom@tromey.com>
6310 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6313 2017-09-27 Tom Tromey <tom@tromey.com>
6315 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6317 2017-09-27 Tom Tromey <tom@tromey.com>
6319 * demangle.c (demangle_command): Constify.
6321 2017-09-27 Tom Tromey <tom@tromey.com>
6323 * progspace.c (maintenance_info_program_spaces_command):
6326 2017-09-27 Tom Tromey <tom@tromey.com>
6328 * compile/compile.c (check_raw_argument, compile_file_command)
6329 (compile_code_command, compile_print_command): Constify.
6331 2017-09-27 Tom Tromey <tom@tromey.com>
6333 * reggroups.c (maintenance_print_reggroups): Constify.
6335 2017-09-27 Tom Tromey <tom@tromey.com>
6337 * dwarf2read.c (save_gdb_index_command): Constify.
6339 2017-09-27 Tom Tromey <tom@tromey.com>
6341 * stap-probe.c (info_probes_stap_command): Constify.
6343 2017-09-27 Tom Tromey <tom@tromey.com>
6345 * fork-child.c (unset_exec_wrapper_command): Constify.
6347 2017-09-27 Tom Tromey <tom@tromey.com>
6349 * btrace.c (get_uint, get_context_size, no_chunk)
6350 (maint_btrace_packet_history_cmd)
6351 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6352 (maint_info_btrace_cmd): Constify.
6354 2017-09-27 Tom Tromey <tom@tromey.com>
6356 * reverse.c (delete_bookmark_command): Constify.
6358 2017-09-27 Tom Tromey <tom@tromey.com>
6360 * remote.c (set_memory_packet_size)
6361 (set_memory_write_packet_size, show_memory_write_packet_size)
6362 (set_memory_read_packet_size, show_memory_read_packet_size)
6363 (compare_sections_command, packet_command, remote_put_command)
6364 (remote_get_command, remote_delete_command): Constify.
6366 2017-09-27 Tom Tromey <tom@tromey.com>
6368 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6369 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6370 (set_mipsfpu_auto_command): Constify.
6372 2017-09-27 Tom Tromey <tom@tromey.com>
6374 * cli/cli-cmds.h (cd_command): Constify.
6375 * cli/cli-cmds.c (cd_command): Constify.
6377 2017-09-27 Tom Tromey <tom@tromey.com>
6379 * thread.c (thread_name_command, thread_find_command): Constify.
6381 2017-09-27 Tom Tromey <tom@tromey.com>
6383 * probe.c (enable_probes_command, disable_probes_command):
6386 2017-09-27 Tom Tromey <tom@tromey.com>
6388 * symfile.c (symbol_file_command): Constify.
6389 * gdbcore.h (deprecated_file_changed_hook): Constify.
6390 * exec.c (deprecated_file_changed_hook, exec_file_command)
6391 (file_command): Constify.
6392 * defs.h (symbol_file_command): Constify.
6394 2017-09-27 Tom Tromey <tom@tromey.com>
6396 * remote-fileio.c (set_system_call_allowed)
6397 (show_system_call_allowed): Constify.
6399 2017-09-27 Tom Tromey <tom@tromey.com>
6401 * tracepoint.c (delete_trace_variable_command)
6402 (tfind_end_command, tfind_start_command, tfind_pc_command)
6403 (tfind_tracepoint_command, tfind_line_command)
6404 (tfind_range_command, tfind_outside_command): Constify.
6406 2017-09-27 Tom Tromey <tom@tromey.com>
6408 * ax-gdb.c (maint_agent_printf_command, agent_command)
6409 (agent_eval_command): Constify.
6411 2017-09-27 Tom Tromey <tom@tromey.com>
6413 * tracepoint.c (info_scope_command): Constify.
6414 * python/python.c (gdbpy_decode_line): Constify.
6415 * python/py-breakpoint.c (bppy_init): Constify.
6416 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6417 * location.h: (new_linespec_location)
6418 (string_to_event_location_basic, string_to_event_location):
6420 * location.c (new_linespec_location)
6421 (string_to_event_location_basic, string_to_event_location):
6423 * linespec.h (decode_line_with_current_source)
6424 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6425 * linespec.c (linespec_lex_to_end)
6426 (decode_line_with_current_source)
6427 (decode_line_with_last_displayed): Constify.
6428 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6430 * cli/cli-cmds.c (edit_command, list_command): Constify.
6431 * breakpoint.h (until_break_command, watch_command_wrapper)
6432 (awatch_command_wrapper, rwatch_command_wrapper)
6433 (init_ada_exception_breakpoint): Constify.
6434 * breakpoint.c (break_command_1, dprintf_command)
6435 (break_range_command, watch_command_wrapper)
6436 (rwatch_command_wrapper, awatch_command_wrapper)
6437 (until_break_command, init_ada_exception_breakpoint)
6438 (strace_marker_create_sals_from_location, trace_command)
6439 (ftrace_command, strace_command, struct tracepoint): Constify.
6440 * ax-gdb.c (agent_command_1): Constify.
6441 * ada-lang.c (ada_exception_sal): Constify.
6443 2017-09-27 Tom Tromey <tom@tromey.com>
6445 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6446 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6447 (get_context_size, no_chunk, get_insn_history_modifiers)
6448 (cmd_record_insn_history, get_call_history_modifiers)
6449 (cmd_record_call_history): Constify.
6451 2017-09-27 Tom Tromey <tom@tromey.com>
6453 * source.c (show_substitute_path_command)
6454 (unset_substitute_path_command, set_substitute_path_command):
6457 2017-09-27 Tom Tromey <tom@tromey.com>
6459 * typeprint.c (maintenance_print_type): Constify.
6460 * maint.c (maintenance_dump_me, maintenance_demangle)
6461 (maintenance_time_display, maintenance_info_sections)
6462 (maintenance_print_statistics, maintenance_deprecate)
6463 (maintenance_undeprecate): Constify.
6464 (maintenance_do_deprecate): Constify. Use std::string.
6465 (maintenance_selftest): Constify.
6466 * gdbtypes.h (maintenance_print_type): Constify.
6468 2017-09-27 Tom Tromey <tom@tromey.com>
6470 * hppa-tdep.c (unwind_command): Constify.
6472 2017-09-27 Tom Tromey <tom@tromey.com>
6474 * target-descriptions.c (unset_tdesc_filename_cmd)
6475 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6478 2017-09-27 Tom Tromey <tom@tromey.com>
6480 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6482 2017-09-27 Tom Tromey <tom@tromey.com>
6484 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6486 2017-09-27 Tom Tromey <tom@tromey.com>
6488 * tui/tui-regs.c (tui_reg_command): Constify.
6490 2017-09-27 Tom Tromey <tom@tromey.com>
6492 * skip.c (skip_file_command, skip_function_command)
6493 (skip_enable_command, skip_disable_command, skip_delete_command):
6496 2017-09-27 Tom Tromey <tom@tromey.com>
6498 * record-btrace.c (cmd_record_btrace_bts_start)
6499 (cmd_record_btrace_pt_start): Constify.
6501 2017-09-27 Tom Tromey <tom@tromey.com>
6503 * symmisc.c (maintenance_print_symbols)
6504 (maintenance_print_msymbols, maintenance_print_objfiles)
6505 (maintenance_info_symtabs, maintenance_check_symtabs)
6506 (maintenance_expand_symtabs, maintenance_info_line_tables):
6509 2017-09-27 Tom Tromey <tom@tromey.com>
6511 * top.c (new_ui_command): Constify.
6513 2017-09-27 Tom Tromey <tom@tromey.com>
6515 * symfile.c (add_symbol_file_command)
6516 (remove_symbol_file_command, list_overlays_command)
6517 (map_overlay_command, unmap_overlay_command)
6518 (overlay_auto_command, overlay_manual_command)
6519 (overlay_off_command, overlay_load_command): Constify.
6521 2017-09-27 Tom Tromey <tom@tromey.com>
6523 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6524 (info_spu_mailbox_command, info_spu_dma_command)
6525 (info_spu_proxydma_command): Constify.
6527 2017-09-27 Tom Tromey <tom@tromey.com>
6529 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6531 2017-09-27 Tom Tromey <tom@tromey.com>
6533 * cli/cli-script.c (user_defined_command): Constify.
6535 2017-09-27 Tom Tromey <tom@tromey.com>
6537 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6538 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6539 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6540 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6541 (dump_binary_value, append_binary_memory, append_binary_value):
6543 (struct dump_context) <func>: Constify.
6544 (add_dump_command): Update.
6546 2017-09-27 Tom Tromey <tom@tromey.com>
6548 * cli/cli-cmds.c (show_version, show_configuration)
6549 (source_command, show_user): Constify.
6551 2017-09-27 Tom Tromey <tom@tromey.com>
6553 * target.c (maintenance_print_target_stack): Constify.
6555 2017-09-27 Tom Tromey <tom@tromey.com>
6557 * interps.c (interpreter_exec_cmd): Constify.
6559 2017-09-27 Tom Tromey <tom@tromey.com>
6561 * record-full.c (cmd_record_full_restore): Constify.
6563 2017-09-27 Tom Tromey <tom@tromey.com>
6565 * memattr.c (enable_mem_command, disable_mem_command)
6566 (delete_mem_command): Constify.
6568 2017-09-27 Tom Tromey <tom@tromey.com>
6570 * value.c (show_convenience): Constify.
6572 2017-09-27 Tom Tromey <tom@tromey.com>
6574 * gdbcore.h (core_file_command): Update.
6575 * corefile.c (core_file_command): Constify.
6577 2017-09-27 Tom Tromey <tom@tromey.com>
6579 * user-regs.c (maintenance_print_user_registers): Constify.
6581 2017-09-27 Tom Tromey <tom@tromey.com>
6583 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6585 2017-09-27 Tom Tromey <tom@tromey.com>
6587 * cp-support.c (first_component_command): Constify.
6589 2017-09-27 Tom Tromey <tom@tromey.com>
6591 * psymtab.c (maintenance_print_psymbols)
6592 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6595 2017-09-27 Tom Tromey <tom@tromey.com>
6597 * windows-tdep.c (display_tib): Constify.
6599 2017-09-27 Tom Tromey <tom@tromey.com>
6601 * linux-fork.c (delete_checkpoint_command)
6602 (detach_checkpoint_command): Constify.
6604 2017-09-27 Tom Tromey <tom@tromey.com>
6606 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6608 2017-09-27 Tom Tromey <tom@tromey.com>
6610 * arc-tdep.c (dump_arc_instruction_command): Constify.
6612 2017-09-27 Tom Tromey <tom@tromey.com>
6614 * valprint.c (set_radix, show_radix): Constify.
6616 2017-09-27 Tom Tromey <tom@tromey.com>
6618 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6620 2017-09-27 Tom Tromey <tom@tromey.com>
6622 * command.h (not_just_help_class_command): Update.
6623 * cli/cli-decode.h (not_just_help_class_command): Update.
6624 * cli/cli-decode.c (not_just_help_class_command): Constify.
6626 2017-09-27 Tom Tromey <tom@tromey.com>
6628 * gdb_bfd.c (maintenance_info_bfds): Constify.
6630 2017-09-27 Tom Tromey <tom@tromey.com>
6632 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6634 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6635 (do_const_cfunc): New function.
6636 (cmd_cfunc_eq): New overload.
6637 (cli_user_command_p): Check do_const_cfunc.
6638 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6640 * command.h (add_cmd): Add const overload and no-function
6642 (set_cmd_cfunc): Add const overload.
6643 (cmd_const_cfunc_ftype): Declare.
6644 (cmd_cfunc_eq): Add const overload.
6645 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6646 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6649 2017-09-27 Tom Tromey <tom@tromey.com>
6651 * macroexp.c (get_next_token_for_substitution): New function.
6652 (substitute_args): Call it. Check for __VA_OPT__.
6654 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6655 Pedro Alves <palves@redhat.com>
6657 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6658 producer_is_icc_lt_14.
6659 (producer_is_icc_lt_14): New function.
6660 (check_producer): Add code for checking version of ICC.
6661 (producer_is_icc): Move to producer.c.
6662 (read_structure_type): Restrict ICC workaround to ICC<14.
6663 * producer.c: Include selftest.h.
6664 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6666 * producer.h (producer_is_icc): New declaration.
6668 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6670 * Makefile.in (SFILES): Add producer.c.
6671 (COMMON_OBS): Add producer.o
6672 * amd64-tdep.c (producer.h): Add new include.
6673 * dwarf2read.c (producer.h): Add new include.
6674 * producer.c: New file.
6675 * producer.h: New file.
6676 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6678 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6681 2017-09-26 Matthias Klose <doko@ubuntu.com>
6683 * configure.ac: Search ncursesw before ncurses.
6684 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6685 * gdb_curses.h: Include <ncursesw/ncurses.h>
6686 * config.in, configure: Regenerate.
6688 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6691 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6693 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6694 Remove i386sol2 support.
6695 * configure.nat <i386sol2>: Remove.
6696 <sol2-64>: Fold into ...
6698 Move common settings to default section.
6700 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6701 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6702 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6703 <i[34567]86-*-solaris*>: Remove.
6704 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6706 * configure.ac: Remove wctype in libw check.
6707 (_MSE_INT_H): Don't define on Solaris 7-9.
6708 <solaris*>: Remove libthread_db.so.1 check.
6709 * configure: Regenerate.
6710 * config.in: Regenerate.
6712 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6713 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6714 (gdb_ps_size_t): Remove.
6715 Use base types in users.
6716 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6718 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6720 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6723 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6724 (adi_is_addr_mapped): Likewise.
6725 (PSR_ICC): Don't redefine.
6726 (PSR_IMPL): Likewise.
6728 2017-09-25 Tom Tromey <tom@tromey.com>
6730 * regcache.c (regcache::dump): Use string_printf.
6732 2017-09-25 Tom Tromey <tom@tromey.com>
6734 * regcache.c (class regcache_invalidator): New.
6735 (struct register_to_invalidate): Remove.
6736 (make_cleanup_regcache_invalidate): Remove.
6737 (regcache::raw_write): Use regcache_invalidator.
6739 2017-09-25 Tom Tromey <tom@tromey.com>
6741 * spu-tdep.c (spu2ppu_sniffer): Update.
6742 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6743 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6745 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6746 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6747 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6748 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6749 (frame_pop): Update.
6751 2017-09-25 Tom Tromey <tom@tromey.com>
6753 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6754 * regcache.h (regcache_xfree): Don't declare.
6755 * regcache.c (regcache_xfree): Remove.
6756 (do_regcache_xfree): Use delete.
6757 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6758 * linux-fork.c (free_fork): Use delete.
6759 (fork_save_infrun_state): Likewise.
6760 * jit.c (jit_dealloc_cache): Use delete.
6761 * infrun.c (discard_infcall_suspend_state): Use delete.
6763 2017-09-25 Tom Tromey <tom@tromey.com>
6765 * regcache.h (regcache_xmalloc): Don't declare.
6766 (regcache_raw_set_cached_value): Update comment.
6767 * regcache.c (regcache_xmalloc): Remove.
6768 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6769 * jit.c (jit_frame_sniffer): Use new.
6770 * frame.c (frame_save_as_regcache): Use new.
6772 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6774 * NEWS: Advertise support for guarded-storage registers on IBM z.
6776 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6778 * s390-linux-nat.c (have_regset_gs): New static variable.
6779 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6780 control block and guarded-storage broadcast control regsets.
6781 (s390_read_description): Detect whether the target has
6782 guarded-storage support, return appropriate tdesc.
6783 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6784 (features/s390x-gs-linux64.c): Likewise.
6785 (struct gdbarch_tdep) <have_gs>: New field.
6786 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6787 (s390_gsbc_regset): New variables.
6788 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6789 and s390_gsbc_regset, if applicable.
6790 (s390_core_read_description): Check whether core file was from a
6791 target with guarded-storage support; include appropriate regsets.
6792 (s390_gdbarch_init): Add registers for guarded-storage support.
6793 (_initialize_s390_tdep): Initialize new target descriptions that
6794 include registers for guarded-storage support.
6795 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6796 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6797 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6798 (S390_NUM_REGS): Adjust macro definition.
6799 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6800 (tdesc_s390x_gs_linux64): New declarations.
6802 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6804 * features/s390-gs-linux64.xml: New file.
6805 * features/s390-gs.xml: New file.
6806 * features/s390-gsbc.xml: New file.
6807 * features/s390x-gs-linux64.xml: New file.
6808 * features/Makefile (WHICH): Add s390-gs-linux64 and
6810 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6811 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6812 * features/s390-gs-linux64.c: New generated file.
6813 * features/s390x-gs-linux64.c: New file.
6814 * regformats/s390-gs-linux64.dat: New file.
6815 * regformats/s390x-gs-linux64.dat: New file.
6817 2017-09-23 Tom Tromey <tom@tromey.com>
6819 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6821 2017-09-22 Tom Tromey <tom@tromey.com>
6823 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6824 type to scoped_restore_tmpl.
6825 <scoped_input_handler>: Initialize m_quit_handler directly.
6827 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6829 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6830 (cd_command): Likewise. Free "current_directory" before
6832 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6833 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6834 * top.c (gdb_dirbuf): Remove global declaration.
6835 * top.h (gdb_dirbuf): Likewise.
6837 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6839 * gnulib/aclocal.m4: Regenerate.
6840 * gnulib/config.in: Regenerate.
6841 * gnulib/configure: Regenerate.
6842 * gnulib/import/Makefile.am: Regenerate.
6843 * gnulib/import/Makefile.in: Regenerate.
6844 * gnulib/import/assure.h: New file.
6845 * gnulib/import/at-func.c: Likewise
6846 * gnulib/import/chdir-long.c: New file.
6847 * gnulib/import/chdir-long.h: New file.
6848 * gnulib/import/cloexec.c: New file.
6849 * gnulib/import/cloexec.h: New file.
6850 * gnulib/import/close.c: New file.
6851 * gnulib/import/closedir.c: New file.
6852 * gnulib/import/dirent-private.h: New file.
6853 * gnulib/import/dup-safer.c: New file.
6854 * gnulib/import/dup.c: New file.
6855 * gnulib/import/dup2.c: New file.
6856 * gnulib/import/error.c: New file.
6857 * gnulib/import/error.h: New file.
6858 * gnulib/import/exitfail.c: New file.
6859 * gnulib/import/exitfail.h: New file.
6860 * gnulib/import/fchdir.c: New file.
6861 * gnulib/import/fcntl.c: New file.
6862 * gnulib/import/fcntl.in.h: New file.
6863 * gnulib/import/fd-hook.c: New file.
6864 * gnulib/import/fd-hook.h: New file.
6865 * gnulib/import/fd-safer.c: New file.
6866 * gnulib/import/fdopendir.c: New file.
6867 * gnulib/import/filename.h: New file.
6868 * gnulib/import/filenamecat-lgpl.c: New file.
6869 * gnulib/import/filenamecat.h: New file.
6870 * gnulib/import/fstat.c: New file.
6871 * gnulib/import/fstatat.c: New file.
6872 * gnulib/import/getcwd-lgpl.c: New file.
6873 * gnulib/import/getcwd.c: New file.
6874 * gnulib/import/getdtablesize.c: New file.
6875 * gnulib/import/getlogin_r.c: New file.
6876 * gnulib/import/getprogname.c: New file.
6877 * gnulib/import/getprogname.h: New file.
6878 * gnulib/import/gettext.h: New file.
6879 * gnulib/import/glob-libc.h: New file.
6880 * gnulib/import/glob.c: New file.
6881 * gnulib/import/glob.in.h: New file.
6882 * gnulib/import/intprops.h: New file.
6883 * gnulib/import/m4/chdir-long.m4: New file.
6884 * gnulib/import/m4/close.m4: New file.
6885 * gnulib/import/m4/closedir.m4: New file.
6886 * gnulib/import/m4/d-ino.m4: New file.
6887 * gnulib/import/m4/d-type.m4: New file.
6888 * gnulib/import/m4/dup.m4: New file.
6889 * gnulib/import/m4/dup2.m4: New file.
6890 * gnulib/import/m4/error.m4: New file.
6891 * gnulib/import/m4/fchdir.m4: New file.
6892 * gnulib/import/m4/fcntl.m4: New file.
6893 * gnulib/import/m4/fcntl_h.m4: New file.
6894 * gnulib/import/m4/fdopendir.m4: New file.
6895 * gnulib/import/m4/filenamecat.m4: New file.
6896 * gnulib/import/m4/fstat.m4: New file.
6897 * gnulib/import/m4/fstatat.m4: New file.
6898 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6899 * gnulib/import/m4/getcwd-path-max.m4: New file.
6900 * gnulib/import/m4/getcwd.m4: New file.
6901 * gnulib/import/m4/getdtablesize.m4: New file.
6902 * gnulib/import/m4/getlogin_r.m4: New file.
6903 * gnulib/import/m4/getprogname.m4: New file.
6904 * gnulib/import/m4/glob.m4: New file.
6905 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6906 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6907 * gnulib/import/m4/mempcpy.m4: New file.
6908 * gnulib/import/m4/memrchr.m4: New file.
6909 * gnulib/import/m4/mode_t.m4: New file.
6910 * gnulib/import/m4/msvc-inval.m4: New file.
6911 * gnulib/import/m4/msvc-nothrow.m4: New file.
6912 * gnulib/import/m4/open.m4: New file.
6913 * gnulib/import/m4/openat.m4: New file.
6914 * gnulib/import/m4/opendir.m4: New file.
6915 * gnulib/import/m4/readdir.m4: New file.
6916 * gnulib/import/m4/realloc.m4: New file.
6917 * gnulib/import/m4/rewinddir.m4: New file.
6918 * gnulib/import/m4/save-cwd.m4: New file.
6919 * gnulib/import/m4/strdup.m4: New file.
6920 * gnulib/import/m4/strerror.m4: New file.
6921 * gnulib/import/m4/unistd-safer.m4: New file.
6922 * gnulib/import/mempcpy.c: New file.
6923 * gnulib/import/memrchr.c: New file.
6924 * gnulib/import/msvc-inval.c: New file.
6925 * gnulib/import/msvc-inval.h: New file.
6926 * gnulib/import/msvc-nothrow.c: New file.
6927 * gnulib/import/msvc-nothrow.h: New file.
6928 * gnulib/import/open.c: New file.
6929 * gnulib/import/openat-die.c: New file.
6930 * gnulib/import/openat-priv.h: New file.
6931 * gnulib/import/openat-proc.c: New file.
6932 * gnulib/import/openat.c: New file.
6933 * gnulib/import/openat.h: New file.
6934 * gnulib/import/opendir.c: New file.
6935 * gnulib/import/pipe-safer.c: New file.
6936 * gnulib/import/readdir.c: New file.
6937 * gnulib/import/realloc.c: New file.
6938 * gnulib/import/rewinddir.c: New file.
6939 * gnulib/import/save-cwd.c: New file.
6940 * gnulib/import/save-cwd.h: New file.
6941 * gnulib/import/strdup.c: New file.
6942 * gnulib/import/strerror-override.c: New file.
6943 * gnulib/import/strerror-override.h: New file.
6944 * gnulib/import/strerror.c: New file.
6945 * gnulib/import/unistd--.h: New file.
6946 * gnulib/import/unistd-safer.h: New file.
6947 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6948 "getcwd" and "glob".
6949 * ser-tcp.c: Undefine "close" before redefining it.
6951 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6953 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6956 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6958 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6959 <sol2,sparc>: Likewise.
6960 <sol2-64,i386>: Likewise.
6962 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6963 -Wdeprecated-declarations on *-*-solaris*.
6964 * configure: Regenerate.
6966 * procfs.c: Include "nat/inferior.h".
6967 (procfs_info_proc): Fix typo.
6969 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6971 * remote.c (vector): Include.
6972 (struct private_thread_info): Add field, thread_handle.
6973 (free_private_thread_info): Deallocate storage associated with
6975 (get_private_info_thread): Initialize `thread_handle' field.
6976 (struct thread_item): Add field, thread_handle.
6977 (clear_threads_listing_context): Deallocate storage associated
6979 (start_thread): Add support for "handle" attribute.
6980 (thread_attributes): Add "handle".
6981 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6983 (remote_update_thread_list): Update thread_handle.
6984 (remote_thread_handle_to_thread_info): New function.
6985 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6987 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6989 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6991 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6992 * python/python-internal.h (thread_object_type): Declare.
6994 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6996 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6997 (target_thread_handle_to_thread_info): Declare.
6998 * target.c (target_thread_handle_to_thread_info): New function.
6999 * target-delegates.c: Regenerate.
7000 * gdbthread.h (find_thread_by_handle): Declare.
7001 * thread.c (find_thread_by_handle): New function.
7002 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
7004 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
7006 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7008 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
7010 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
7012 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
7014 2017-09-21 Yao Qi <yao.qi@linaro.org>
7016 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
7019 2017-09-20 Tom Tromey <tom@tromey.com>
7021 * breakpoint.c (struct counted_command_line): Remove.
7022 (breakpoint_commands): Update.
7023 (alloc_counted_command_line, incref_counted_command_line)
7024 (decref_counted_command_line, do_cleanup_counted_command_line)
7025 (make_cleanup_decref_counted_command_line): Remove.
7026 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
7027 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
7028 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
7029 (save_breakpoints): Update.
7030 * breakpoint.h (counted_command_line): Now a typedef to
7032 (struct breakpoint) <commands>: Now a counted_command_line.
7033 (struct bpstats) <command>: Likewise.
7035 2017-09-20 Tom Tromey <tom@tromey.com>
7037 * breakpoint.c (struct commands_info, do_map_commands_command):
7039 (commands_command_1): Update.
7040 (iterate_over_related_breakpoints): Take a function_view.
7041 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
7042 (delete_command): Update.
7043 (map_breakpoint_numbers): Take a function_view.
7044 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
7045 (disable_command): Update.
7046 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
7047 (enable_command): Update.
7048 (struct disp_data, do_enable_breakpoint_disp)
7049 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
7050 (do_map_enable_delete_breakpoint): Remove.
7051 (enable_once_command, enable_count_command, enable_delete_command)
7052 (delete_trace_variable_command): Update.
7054 2017-09-20 Tom Tromey <tom@tromey.com>
7056 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
7057 (bpstat_clear): Use delete.
7058 (bpstats): New constructors.
7059 (bpstat_copy, bpstat_stop_status): Use new.
7060 (dprintf_after_condition_true): Update.
7061 * breakpoint.h (bpstats::bpstats): Add constructors.
7062 (bpstats::~bpstats): Add destructor.
7064 2017-09-20 Pedro Alves <palves@redhat.com>
7066 * eval.c (make_params): Delete, refactored as ...
7067 (class fake_method): ... this new type's ctor.
7068 (fake_method::~fake_method): New.
7069 (evaluate_subexp_standard): Use 'fake_method'.
7071 2017-09-20 Tom Tromey <tom@tromey.com>
7073 * windows-nat.c (get_windows_debug_event, windows_wait)
7074 (do_initial_windows_stuff, windows_attach): Update.
7075 * utils.c (vwarning, internal_vproblem): Update.
7076 (ui_unregister_input_event_handler_cleanup)
7077 (prepare_to_handle_input): Remove.
7078 (class scoped_input_handler): New.
7079 (defaulted_query, prompt_for_continue): Update.
7080 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7082 * top.c (undo_terminal_modifications_before_exit): Update.
7083 * target/target.h (target_terminal_init, target_terminal_inferior)
7084 (target_terminal_ours): Don't declare.
7085 (class target_terminal): New.
7086 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
7087 (target_terminal_ours_for_output)
7088 (make_cleanup_restore_target_terminal): Don't declare.
7089 (target_terminal_info): Remove.
7090 * target.c (enum terminal_state, terminal_state): Remove.
7091 (target_terminal::terminal_state): Define.
7092 (target_terminal::init): Rename from target_terminal_init.
7093 (target_terminal::inferior): Rename from
7094 target_terminal_inferior.
7095 (target_terminal::ours): Rename from target_terminal_ours.
7096 (target_terminal::ours_for_output): Rename from
7097 target_terminal_ours_for_output.
7098 (target_terminal::info): New method.
7099 (cleanup_restore_target_terminal)
7100 (make_cleanup_restore_target_terminal): Remove.
7101 * solib.c (handle_solib_event): Update.
7102 * remote.c (remote_serial_quit_handler): Update.
7103 (remote_terminal_inferior, remote_wait_as): Update.
7104 * record-full.c (record_full_wait_1): Update.
7105 * nto-procfs.c (procfs_create_inferior): Update.
7106 * nat/fork-inferior.c (startup_inferior): Update.
7107 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
7108 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
7109 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
7110 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
7111 (mi_breakpoint_created, mi_breakpoint_deleted)
7112 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
7113 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7114 (mi_user_selected_context_changed, report_initial_inferior):
7116 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
7117 (linux_nat_terminal_inferior): Update.
7118 * infrun.c (follow_fork_inferior)
7119 (handle_vfork_child_exec_or_exit, do_target_resume)
7120 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
7121 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
7123 * inflow.c (child_terminal_init, info_terminal_command): Update.
7124 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
7125 (attach_command): Update.
7126 * infcall.c (call_thread_fsm_should_stop): Update.
7127 * gnu-nat.c (gnu_attach): Update.
7128 * extension.c (struct active_ext_lang_state)
7129 (restore_active_ext_lang): Update.
7130 * exceptions.c (print_flush): Update.
7131 * event-top.c (async_enable_stdin, default_quit_handler): Update.
7132 (struct quit_handler_cleanup_data, restore_quit_handler)
7133 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
7135 * cp-support.c (gdb_demangle): Update.
7136 * breakpoint.c (update_inserted_breakpoint_locations)
7137 (insert_breakpoint_locations, handle_jit_event)
7138 (disable_breakpoints_in_unloaded_shlib): Update.
7139 * annotate.c (annotate_breakpoints_invalid)
7140 (annotate_frames_invalid): Update.
7142 2017-09-20 Tom Tromey <tom@tromey.com>
7144 * main.c (catch_command_errors): Rename from
7145 catch_command_errors_const.
7146 (captured_main_1): Update.
7148 2017-09-20 Pedro Alves <palves@redhat.com>
7150 * cli/cli-cmds.c (list_command): Use print_sal_location.
7151 (print_sal_location): New function.
7152 (ambiguous_line_spec): Use print_sal_location.
7153 * linespec.c (symbol_to_sal): Record the symbol in the sal.
7154 * symtab.c (find_function_start_sal): Likewise.
7155 * symtab.h (symtab_and_line::symbol): New field.
7157 2017-09-20 Pedro Alves <palves@redhat.com>
7159 * linespec.c (minsym_found): Handle non-text minsyms.
7160 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
7162 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7164 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
7167 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
7169 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
7170 vmovups instead vmovaps.
7171 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
7173 2017-09-19 John Baldwin <jhb@FreeBSD.org>
7175 * NEWS (Changes since GDB 8.0): Add starti.
7176 * infcmd.c (enum run_break): New.
7177 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
7179 (run_command): Use enum run_how.
7180 (start_command): Likewise.
7181 (starti_command): New function.
7182 (RUN_ARGS_HELP): New macro.
7183 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
7184 commands. Add starti command.
7186 2017-09-19 Yao Qi <yao.qi@linaro.org>
7188 * Makefile.in (monitor.o): Remove the rule.
7190 2017-09-19 Yao Qi <yao.qi@linaro.org>
7192 * annotate.h (struct annotate_arg_emitter): Use
7193 DISABLE_COPY_AND_ASSIGN.
7194 * common/refcounted-object.h (refcounted_object): Likewise.
7195 * completer.h (struct completion_result): Likewise.
7196 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
7197 * filename-seen-cache.h (filename_seen_cache): Likewise.
7198 * gdbcore.h (thread_section_name): Likewise.
7199 * gdb_regex.h (compiled_regex): Likewise.
7200 * gdbthread.h (scoped_restore_current_thread): Likewise.
7201 * inferior.h (scoped_restore_current_inferior): Likewise.
7202 * jit.c (jit_reader): Likewise.
7203 * linespec.h (struct linespec_result): Likewise.
7204 * mi/mi-parse.h (struct mi_parse): Likewise.
7205 * nat/fork-inferior.c (execv_argv): Likewise.
7206 * progspace.h (scoped_restore_current_program_space): Likewise.
7207 * python/python-internal.h (class gdbpy_enter): Likewise.
7208 * regcache.h (regcache): Likewise.
7209 * target-descriptions.c (struct tdesc_reg): Likewise.
7210 (struct tdesc_type): Likewise.
7211 (struct tdesc_feature): Likewise.
7212 * ui-out.h (ui_out_emit_type): Likewise.
7214 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
7216 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
7217 label abort_expression.
7219 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7221 * common/buffer.c (buffer_xml_printf): Adjust.
7222 * common/xml-utils.c (xml_escape_text): Change return type to
7223 std::string, update code accordingly.
7224 * common/xml-utils.h (xml_escape_text): Change return type to
7226 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
7227 * windows-tdep.c (windows_xfer_shared_library): Adjust.
7228 * unittests/xml-utils-selftests.c (test_xml_escape_text):
7231 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7233 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
7234 (SUBDIR_UNITTESTS_OBS): Add new object file.
7235 * unittests/xml-utils-selftests.c: New file.
7237 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7239 * common/selftest.h (selftest): New struct/interface.
7240 (register_test): Add name parameter, add new overload.
7241 (run_tests): Add filter parameter.
7242 (for_each_selftest_ftype): New typedef.
7243 (for_each_selftest): New declaration.
7244 * common/selftest.c (tests): Change type to
7245 map<string, unique_ptr<selftest>>.
7246 (simple_selftest): New struct.
7247 (register_test): New function.
7248 (register_test): Add name parameter and use it.
7249 (run_tests): Add filter parameter and use it. Add prints.
7250 Adjust to vector -> map change.
7251 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7252 registering selftests.
7253 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7254 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7255 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7256 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7257 * findvar.c (_initialize_findvar): Likewise.
7258 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7259 * maint.c (maintenance_selftest): Update call to run_tests.
7260 (maintenance_info_selftests): New function.
7261 (_initialize_maint_cmds): Register "maintenance info selftests"
7262 command. Update "maintenance selftest" doc.
7263 * regcache.c (_initialize_regcache): Add names when registering
7265 * rust-exp.y (_initialize_rust_exp): Likewise.
7266 * selftest-arch.c (gdbarch_selftest): New struct.
7267 (gdbarch_tests): Remove.
7268 (register_test_foreach_arch): Add name parameter. Call
7270 (tests_with_arch): Remove, move most content to
7271 gdbarch_selftest::operator().
7272 (_initialize_selftests_foreach_arch): Remove.
7273 * selftest-arch.h (register_test_foreach_arch): Add name
7275 (run_tests_with_arch): New declaration.
7276 * utils-selftests.c (_initialize_utils_selftests): Add names
7277 when registering selftests.
7278 * utils.c (_initialize_utils): Likewise.
7279 * unittests/array-view-selftests.c
7280 (_initialize_array_view_selftests): Likewise.
7281 * unittests/environ-selftests.c (_initialize_environ_selftests):
7283 * unittests/function-view-selftests.c
7284 (_initialize_function_view_selftests): Likewise.
7285 * unittests/offset-type-selftests.c
7286 (_initialize_offset_type_selftests): Likewise.
7287 * unittests/optional-selftests.c
7288 (_initialize_optional_selftests): Likewise.
7289 * unittests/scoped_restore-selftests.c
7290 (_initialize_scoped_restore_selftests): Likewise.
7291 * NEWS: Document "maintenance selftest" and "maint info
7294 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7296 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7299 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7301 * mi/mi-main.c (mi_load_progress): Make uiout variable
7304 2017-09-15 Pedro Alves <palves@redhat.com>
7306 * compile/compile-c-types.c (convert_enum, convert_int)
7307 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7309 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7311 * dwarf2read.c (copy_string): Remove.
7312 (parse_macro_definition): Replace copy_string with savestring.
7314 2017-09-15 Yao Qi <yao.qi@linaro.org>
7316 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7318 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7320 (i[34567]86-*-linux*): Likewise.
7322 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7324 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7325 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7326 <stack>: Change type to std::vector.
7327 <stack_len, stack_allocated>: Remove.
7328 <grow_stack>: Remove.
7329 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7330 (dwarf_expr_context::~dwarf_expr_context): Remove.
7331 (dwarf_expr_context::grow_stack): Remove.
7332 (dwarf_expr_context::push): Adjust.
7333 (dwarf_expr_context::pop): Adjust.
7334 (dwarf_expr_context::fetch): Adjust.
7335 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7336 (dwarf_expr_context::stack_empty_p): Adjust.
7337 (dwarf_expr_context::execute_stack_op): Adjust.
7339 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7341 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7342 return type to bool.
7343 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7345 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7347 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7348 Change type to bool.
7349 (dwarf_stack_value) <in_stack_memory>: Likewise.
7350 (dwarf_expr_context) <push_address>: Change parameter type to
7352 <fetch_in_stack_memory>: Change return type to bool.
7353 <push>: Change parameter type to bool.
7354 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7356 (dwarf_expr_context::push_address): Likewise.
7357 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7359 (dwarf_expr_context::execute_stack_op): Adjust.
7360 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7362 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7364 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7365 (struct dwarf_expr_context) <n_pieces>: Remove.
7366 <pieces>: Change type to std::vector.
7367 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7368 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7370 (dwarf_expr_context::add_piece): Adjust.
7371 * dwarf2loc.c (struct piece_closure): Initialize fields.
7373 <pieces>: Change type to std::vector.
7374 (allocate_piece_closure): Adjust, change parameter to
7375 std::vector rvalue and std::move it to piece_closure.
7376 (rw_pieced_value): Adjust.
7377 (check_pieced_synthetic_pointer): Adjust.
7378 (indirect_synthetic_pointer): Adjust.
7379 (coerce_pieced_ref): Adjust.
7380 (free_pieced_value_closure): Adjust. Use delete to free
7382 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7383 to allocate_piece_closure.
7384 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7386 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7388 * probe.h (probe_ops_cp): Remove typedef.
7389 (DEF_VEC_P (probe_ops_cp)): Remove.
7390 (all_probe_ops): Change type to std::vector.
7391 * probe.c (info_probes_for_ops): Adjust to vector change.
7392 (probe_linespec_to_ops): Likewise.
7393 (all_probe_ops): Change type to std::vector.
7394 (_initialize_probe): Adjust to vector change.
7395 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7396 * elfread.c (elf_get_probes): Likewise.
7397 * stap-probe.c (_initialize_stap_probe): Likewise.
7399 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7401 * probe.h (struct bound_probe): Define constructors.
7402 * probe.c (bound_probe_s): Remove typedef.
7403 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7404 (collect_probes): Change return type to std::vector, remove
7406 (compare_probes): Return bool, change parameter type. Change
7407 semantic to "less than".
7408 (gen_ui_out_table_header_info): Change parameter to std::vector
7410 (exists_probe_with_pops): Likewise.
7411 (info_probes_for_ops): Update to std::vector change.
7412 (enable_probes_command): Likewise.
7413 (disable_probes_command): Likewise.
7415 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7417 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7419 * probe.c (parse_probes_in_pspace): Update.
7420 (find_probes_in_objfile): Update.
7421 (find_probe_by_pc): Update.
7422 (collect_probes): Update.
7423 (probe_any_get_probes): Update.
7424 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7425 return type to reference to std::vector.
7426 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7427 std::vector and update.
7428 (dtrace_process_dof): Likewise.
7429 (dtrace_get_probes): Likewise.
7430 * elfread.c (elf_get_probes): Change return type to std::vector,
7431 store an std::vector in bfd_data.
7432 (probe_key_free): Update to std::vector.
7433 * stap-probe.c (handle_stap_probe): Change parameter to
7434 std::vector and update.
7435 (stap_get_probes): Likewise.
7436 * symfile-debug.c (debug_sym_get_probes): Change return type to
7437 std::vector and update.
7439 2017-09-11 Tom Tromey <tom@tromey.com>
7441 * breakpoint.c (program_breakpoint_here_p): Update.
7442 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7443 from make_show_memory_breakpoints_cleanup. Return a
7444 scoped_restore_tmpl<int>.
7445 (restore_show_memory_breakpoints): Remove.
7446 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7447 * mem-break.c (memory_validate_breakpoint): Update.
7448 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7449 (ia64_memory_remove_breakpoint): Update.
7450 (ia64_breakpoint_from_pc): Update.
7451 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7452 from make_show_memory_breakpoints_cleanup.
7454 2017-09-11 Tom Tromey <tom@tromey.com>
7456 * d-namespace.c (d_lookup_symbol): Use std::string.
7457 (find_symbol_in_baseclass): Likewise.
7459 2017-09-11 Tom Tromey <tom@tromey.com>
7461 * ctf.c (ctf_start): Use std::string.
7463 2017-09-11 Tom Tromey <tom@tromey.com>
7465 * ada-lang.c (is_known_support_routine): Update.
7466 (ada_unhandled_exception_name_addr_from_raise): Update.
7467 * guile/scm-frame.c (gdbscm_frame_name): Update.
7468 * python/py-frame.c (frapy_name): Update.
7469 (frapy_function): Update.
7470 * stack.h (find_frame_funname): Update.
7471 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7472 (print_frame): Update.
7474 2017-09-11 Tom Tromey <tom@tromey.com>
7476 * findcmd.c (put_bits): Take a gdb::byte_vector.
7477 (parse_find_args): Return gdb::byte_vector. "args" now const.
7478 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7480 (find_command): Update.
7482 2017-09-11 Tom Tromey <tom@tromey.com>
7484 * cli/cli-script.c (class scoped_restore_hook_in): New.
7485 (clear_hook_in_cleanup): Remove.
7486 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7487 scoped_restore_hook_in.
7489 2017-09-11 Tom Tromey <tom@tromey.com>
7491 * cli/cli-script.c (restore_interp): Remove.
7492 (read_command_lines): Use scoped_restore_interp.
7493 * interps.c (scoped_restore_interp::set_temp): Rename from
7495 * interps.h (class scoped_restore_interp): New.
7496 (interp_set_temp): Remove.
7498 2017-09-11 Tom Tromey <tom@tromey.com>
7500 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7501 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7502 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7504 (mi_cmd_break_insert_1): Update.
7505 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7508 2017-09-11 Tom Tromey <tom@tromey.com>
7510 * demangle.c (demangle_command): Update.
7511 * breakpoint.c (disable_command): Update.
7512 (enable_command): Update.
7513 (find_location_by_number): Make "number" const. Use
7515 * cli/cli-utils.c (extract_arg): Return std::string.
7516 * probe.c (parse_probe_linespec): Update. Change types.
7517 (collect_probes): Take string arguments.
7518 (parse_probe_linespec): Likewise.
7519 (info_probes_for_ops): Update.
7520 (enable_probes_command): Update.
7521 (disable_probes_command): Update.
7522 * break-catch-sig.c (catch_signal_split_args): Update.
7523 * mi/mi-parse.c (mi_parse): Update.
7525 2017-09-11 Tom Tromey <tom@tromey.com>
7527 * language.h (language_enum): Make argument const.
7528 * language.c (language_enum): Make argument const.
7530 2017-09-11 Tom Tromey <tom@tromey.com>
7532 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7534 (skip_to_space): Rename from skip_to_space_const.
7535 * common/common-utils.c (skip_to_space): New function.
7536 (skip_to_space): Rename from skip_to_space_const.
7537 * cli/cli-utils.h (get_number): Rename from get_number_const.
7538 (extract_arg): Rename from extract_arg_const.
7539 * cli/cli-utils.c (get_number): Rename from get_number_const.
7540 (extract_arg): Rename from extract_arg_const.
7541 (number_or_range_parser::get_number): Use ::get_number.
7542 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7543 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7544 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7545 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7546 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7547 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7548 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7549 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7551 2017-09-11 Tom Tromey <tom@tromey.com>
7553 * python/python.c (do_start_initialization): Use
7554 py-event-types.def to initialize types.
7555 Define all object type structures.
7556 * python/python-internal.h: Don't declare event initialization
7558 * python/py-threadevent.c (thread_event_object_type): Don't
7560 * python/py-stopevent.c (stop_event_object_type): Don't define.
7561 * python/py-signalevent.c (signal_event_object_type): Don't
7563 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7564 (clear_objfiles_event_object_type): Don't declare or define.
7565 * python/py-infevents.c (inferior_call_pre_event_object_type)
7566 (inferior_call_post_event_object_type)
7567 (register_changed_event_object_type)
7568 (memory_changed_event_object_type): Don't declare or define.
7569 * python/py-inferior.c (new_thread_event_object_type)
7570 (new_inferior_event_object_type)
7571 (inferior_deleted_event_object_type): Don't declare or define.
7572 * python/py-exitedevent.c (exited_event_object_type): Don't
7574 * python/py-evts.c (gdbpy_initialize_py_events): Use
7576 * python/py-events.h (thread_event_object_type): Don't declare.
7577 (events_object): Use py-all-events.def.
7578 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7580 * python/py-event-types.def: New file.
7581 * python/py-continueevent.c (create_continue_event_object): Don't
7583 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7585 * python/py-all-events.def: New file.
7587 2017-09-11 Tom Tromey <tom@tromey.com>
7589 * python/py-threadevent.c (create_thread_event_object): Return
7591 * python/py-stopevent.h (create_stop_event_object)
7592 (create_breakpoint_event_object, create_signal_event_object):
7594 * python/py-stopevent.c (create_stop_event_object): Return
7596 (emit_stop_event): Update.
7597 * python/py-signalevent.c (create_signal_event_object): Return
7599 * python/py-infevents.c (create_inferior_call_event_object):
7601 * python/py-event.h (create_event_object)
7602 (create_thread_event_object): Update.
7603 * python/py-event.c (create_event_object): Return gdbpy_ref.
7604 * python/py-continueevent.c: Return gdbpy_ref.
7605 * python/py-bpevent.c (create_breakpoint_event_object): Return
7608 2017-09-11 Tom Tromey <tom@tromey.com>
7612 * python/python.c (do_start_initialization): Initialize new event
7614 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7615 (gdbpy_initialize_inferior_deleted_event)
7616 (gdbpy_initialize_new_thread_event): Declare.
7617 * python/py-threadevent.c (create_thread_event_object): Add option
7619 * python/py-inferior.c (new_thread_event_object_type)
7620 (new_inferior_event_object_type)
7621 (inferior_deleted_event_object_type): Declare.
7622 (python_new_inferior, python_inferior_deleted): New functions.
7623 (add_thread_object): Emit new_thread event.
7624 (gdbpy_initialize_inferior): Attach new functions to corresponding
7626 (new_thread, new_inferior, inferior_deleted): Define new event
7628 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7630 * python/py-events.h (events_object) <new_inferior,
7631 inferior_deleted, new_thread>: New fields.
7632 * python/py-event.h (create_thread_event_breakpoint): Add optional
7635 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7637 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7638 check current_ui instead.
7639 (internal_vproblem): Likewise.
7641 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7643 * thread.c (print_thread_info_1): Remove unnecessary calls to
7644 uiout->is_mi_like_p.
7646 2017-09-09 Tom Tromey <tom@tromey.com>
7648 * namespace.h (add_using_directive): Update.
7649 * namespace.c (add_using_directive): Change type of excludes to
7651 * dwarf2read.c (read_import_statement): Use std::vector.
7652 (read_namespace): Update.
7653 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7655 2017-09-09 Tom Tromey <tom@tromey.com>
7657 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7659 2017-09-09 Tom Tromey <tom@tromey.com>
7661 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7663 2017-09-09 Tom Tromey <tom@tromey.com>
7665 * stack.c (func_command): Use gdb::def_vector.
7667 2017-09-09 Tom Tromey <tom@tromey.com>
7669 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7670 ui_out_emit_list, ui_out_emit_tuple.
7671 (mi_cmd_var_update): Likewise.
7673 2017-09-09 Tom Tromey <tom@tromey.com>
7675 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7676 ui_out_redirect_pop.
7677 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7678 ui_out_redirect_pop.
7679 * utils.c (do_ui_out_redirect_pop)
7680 (make_cleanup_ui_out_redirect_pop): Remove.
7681 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7682 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7683 * ui-out.h (ui_out_redirect_pop): New class.
7685 2017-09-09 Tom Tromey <tom@tromey.com>
7687 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7688 (list_available_thread_groups, mi_cmd_list_thread_groups)
7689 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7690 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7693 2017-09-09 Tom Tromey <tom@tromey.com>
7695 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7698 2017-09-09 Tom Tromey <tom@tromey.com>
7700 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7701 * stack.c (print_frame): Use ui_out_emit_tuple.
7702 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7703 (info_spu_mailbox_command, info_spu_dma_command)
7704 (info_spu_proxydma_command): Likewise.
7705 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7706 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7707 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7709 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7711 2017-09-09 Tom Tromey <tom@tromey.com>
7713 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7714 (class ui_out_emit_table): Update comment.
7715 * ui-out.c (do_cleanup_table_end)
7716 (make_cleanup_ui_out_table_begin_end): Remove.
7717 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7718 (info_spu_dma_cmdlist): Likewise.
7719 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7720 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7723 2017-09-09 Tom Tromey <tom@tromey.com>
7725 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7726 ui_out_emit_list, gdb::optional.
7728 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7730 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7732 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7734 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7736 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7737 * ada-exp.y: Remove _initialize_ada_exp prototype.
7738 * ada-lang.c: Remove _initialize_ada_language prototype.
7739 * ada-tasks.c: Remove _initialize_tasks prototype.
7740 * addrmap.c: Remove _initialize_addrmap prototype.
7741 * agent.c: Remove _initialize_agent prototype.
7742 * aix-thread.c: Remove _initialize_aix_thread prototype.
7743 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7744 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7745 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7747 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7748 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7749 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7750 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7752 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7754 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7755 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7756 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7757 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7759 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7760 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7761 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7762 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7763 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7764 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7765 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7767 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7769 * annotate.c: Remove _initialize_annotate prototype.
7770 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7771 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7772 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7773 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7774 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7775 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7776 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7777 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7779 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7780 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7781 * auto-load.c: Remove _initialize_auto_load prototype.
7782 * auxv.c: Remove _initialize_auxv prototype.
7783 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7784 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7785 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7786 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7787 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7788 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7790 * break-catch-throw.c: Remove _initialize_break_catch_throw
7792 * breakpoint.c: Remove _initialize_breakpoint prototype.
7793 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7794 * btrace.c: Remove _initialize_btrace prototype.
7795 * charset.c: Remove _initialize_charset prototype.
7796 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7797 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7798 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7799 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7800 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7801 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7802 * coffread.c: Remove _initialize_coffread prototype.
7803 * compile/compile.c: Remove _initialize_compile prototype.
7804 * complaints.c: Remove _initialize_complaints prototype.
7805 * completer.c: Remove _initialize_completer prototype.
7806 * copying.awk: Remove _initialize_copying prototype.
7807 * copying.c: Regenerate.
7808 * core-regset.c: Remove _initialize_core_regset prototype.
7809 * corefile.c: Remove _initialize_core prototype.
7810 * corelow.c: Remove _initialize_corelow prototype.
7811 * cp-abi.c: Remove _initialize_cp_abi prototype.
7812 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7813 * cp-support.c: Remove _initialize_cp_support prototype.
7814 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7815 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7816 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7817 * ctf.c: Remove _initialize_ctf prototype.
7818 * d-lang.c: Remove _initialize_d_language prototype.
7819 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7821 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7822 * dbxread.c: Remove _initialize_dbxread prototype.
7823 * dcache.c: Remove _initialize_dcache prototype.
7824 * demangle.c: Remove _initialize_demangler prototype.
7825 * disasm-selftests.c: Remove _initialize_disasm_selftests
7827 * disasm.c: Remove _initialize_disasm prototype.
7828 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7829 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7830 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7832 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7833 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7834 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7835 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7836 * elfread.c: Remove _initialize_elfread prototype.
7837 * exec.c: Remove _initialize_exec prototype.
7838 * extension.c: Remove _initialize_extension prototype.
7839 * f-lang.c: Remove _initialize_f_language prototype.
7840 * f-valprint.c: Remove _initialize_f_valprint prototype.
7841 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7842 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7843 * filesystem.c: Remove _initialize_filesystem prototype.
7844 * findcmd.c: Remove _initialize_mem_search prototype.
7845 * fork-child.c: Remove _initialize_fork_child prototype.
7846 * frame-base.c: Remove _initialize_frame_base prototype.
7847 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7848 * frame.c: Remove _initialize_frame prototype.
7849 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7850 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7851 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7852 * gcore.c: Remove _initialize_gcore prototype.
7853 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7854 * gdbarch.c: Regenerate.
7855 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7856 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7857 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7858 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7859 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7860 * go-lang.c: Remove _initialize_go_language prototype.
7861 * go32-nat.c: Remove _initialize_go32_nat prototype.
7862 * guile/guile.c: Remove _initialize_guile prototype.
7863 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7864 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7865 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7866 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7867 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7868 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7869 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7870 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7871 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7872 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7874 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7876 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7877 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7878 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7879 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7880 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7881 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7882 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7883 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7884 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7885 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7886 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7887 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7888 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7889 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7890 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7891 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7893 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7895 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7896 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7897 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7898 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7899 * infcall.c: Remove _initialize_infcall prototype.
7900 * infcmd.c: Remove _initialize_infcmd prototype.
7901 * inferior.c: Remove _initialize_inferiors prototype.
7902 * inflow.c: Remove _initialize_inflow prototype.
7903 * infrun.c: Remove _initialize_infrun prototype.
7904 * interps.c: Remove _initialize_interpreter prototype.
7905 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7906 * jit.c: Remove _initialize_jit prototype.
7907 * language.c: Remove _initialize_language prototype.
7908 * linux-fork.c: Remove _initialize_linux_fork prototype.
7909 * linux-nat.c: Remove _initialize_linux_nat prototype.
7910 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7911 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7912 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7913 * m2-lang.c: Remove _initialize_m2_language prototype.
7914 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7915 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7916 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7917 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7918 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7919 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7920 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7921 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7922 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7923 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7924 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7925 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7926 * machoread.c: Remove _initialize_machoread prototype.
7927 * macrocmd.c: Remove _initialize_macrocmd prototype.
7928 * macroscope.c: Remove _initialize_macroscope prototype.
7929 * maint.c: Remove _initialize_maint_cmds prototype.
7930 * mdebugread.c: Remove _initialize_mdebugread prototype.
7931 * memattr.c: Remove _initialize_mem prototype.
7932 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7933 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7934 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7935 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7936 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7937 * microblaze-linux-tdep.c: Remove
7938 _initialize_microblaze_linux_tdep prototype.
7939 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7940 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7941 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7942 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7943 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7944 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7945 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7946 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7947 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7948 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7949 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7951 * mipsread.c: Remove _initialize_mipsread prototype.
7952 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7954 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7955 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7956 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7957 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7958 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7959 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7961 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7962 * nto-procfs.c: Remove _initialize_procfs prototype.
7963 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7964 * objc-lang.c: Remove _initialize_objc_language prototype.
7965 * objfiles.c: Remove _initialize_objfiles prototype.
7966 * observer.c: Remove observer_test_first_notification_function,
7967 observer_test_second_notification_function,
7968 observer_test_third_notification_function, and
7969 _initialize_observer prototypes.
7970 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7971 * osabi.c: Remove _initialize_gdb_osabi prototype.
7972 * osdata.c: Remove _initialize_osdata prototype.
7973 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7974 * parse.c: Remove _initialize_parse prototype.
7975 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7976 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7977 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7978 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7979 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7980 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7981 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7982 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7983 * printcmd.c: Remove _initialize_printcmd prototype.
7984 * probe.c: Remove _initialize_probe prototype.
7985 * proc-api.c: Remove _initialize_proc_api prototype.
7986 * proc-events.c: Remove _initialize_proc_events prototype.
7987 * proc-service.c: Remove _initialize_proc_service prototype.
7988 * procfs.c: Remove _initialize_procfs prototype.
7989 * psymtab.c: Remove _initialize_psymtab prototype.
7990 * python/python.c: Remove _initialize_python prototype.
7991 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7992 * record-btrace.c: Remove _initialize_record_btrace prototype.
7993 * record-full.c: Remove _initialize_record_full prototype.
7994 * record.c: Remove _initialize_record prototype.
7995 * regcache.c: Remove _initialize_regcache prototype.
7996 * reggroups.c: Remove _initialize_reggroup prototype.
7997 * remote-notif.c: Remove _initialize_notif prototype.
7998 * remote-sim.c: Remove _initialize_remote_sim prototype.
7999 * remote.c: Remove _initialize_remote prototype.
8000 * reverse.c: Remove _initialize_reverse prototype.
8001 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
8002 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
8003 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
8005 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
8006 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
8007 * rust-exp.y: Remove _initialize_rust_exp prototype.
8008 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
8009 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
8010 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
8011 * score-tdep.c: Remove _initialize_score_tdep prototype.
8012 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
8014 * ser-go32.c: Remove _initialize_ser_dos prototype.
8015 * ser-mingw.c: Remove _initialize_ser_windows prototype.
8016 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
8017 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
8018 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
8019 * serial.c: Remove _initialize_serial prototype.
8020 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
8021 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
8022 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
8023 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
8024 * skip.c: Remove _initialize_step_skip prototype.
8025 * sol-thread.c: Remove _initialize_sol_thread prototype.
8026 * solib-aix.c: Remove _initialize_solib_aix prototype.
8027 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
8028 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
8029 * solib-frv.c: Remove _initialize_frv_solib prototype.
8030 * solib-spu.c: Remove _initialize_spu_solib prototype.
8031 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
8032 * solib-target.c: Remove _initialize_solib_target prototype.
8033 * solib.c: Remove _initialize_solib prototype.
8034 * source.c: Remove _initialize_source prototype.
8035 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
8036 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
8038 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
8039 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
8040 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
8041 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
8043 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
8044 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
8045 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
8046 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
8048 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
8050 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
8052 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
8054 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
8055 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
8057 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
8059 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
8061 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
8063 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
8065 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
8066 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
8067 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
8068 * stabsread.c: Remove _initialize_stabsread prototype.
8069 * stack.c: Remove _initialize_stack prototype.
8070 * stap-probe.c: Remove _initialize_stap_probe prototype.
8071 * std-regs.c: Remove _initialize_frame_reg prototype.
8072 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
8073 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
8074 * symfile.c: Remove _initialize_symfile prototype.
8075 * symmisc.c: Remove _initialize_symmisc prototype.
8076 * symtab.c: Remove _initialize_symtab prototype.
8077 * target-dcache.c: Remove _initialize_target_dcache prototype.
8078 * target-descriptions.c: Remove _initialize_target_descriptions
8080 * thread.c: Remove _initialize_thread prototype.
8081 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
8083 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
8084 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
8085 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
8087 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
8088 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
8089 * tracefile.c: Remove _initialize_tracefile prototype.
8090 * tracepoint.c: Remove _initialize_tracepoint prototype.
8091 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
8092 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
8093 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
8094 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
8095 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
8096 * tui/tui-win.c: Remove _initialize_tui_win prototype.
8097 * tui/tui.c: Remove _initialize_tui prototype.
8098 * typeprint.c: Remove _initialize_typeprint prototype.
8099 * user-regs.c: Remove _initialize_user_regs prototype.
8100 * utils.c: Remove _initialize_utils prototype.
8101 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
8102 * valarith.c: Remove _initialize_valarith prototype.
8103 * valops.c: Remove _initialize_valops prototype.
8104 * valprint.c: Remove _initialize_valprint prototype.
8105 * value.c: Remove _initialize_values prototype.
8106 * varobj.c: Remove _initialize_varobj prototype.
8107 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
8108 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
8109 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
8110 * windows-nat.c: Remove _initialize_windows_nat,
8111 _initialize_check_for_gdb_ini, and _initialize_loadable
8113 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
8114 * xcoffread.c: Remove _initialize_xcoffread prototype.
8115 * xml-support.c: Remove _initialize_xml_support prototype.
8116 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
8117 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
8119 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
8121 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
8123 2017-09-08 Keith Seitz <keiths@redhat.com>
8125 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
8128 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
8130 * f-valprint.c (f_val_print): Remove check for one byte
8131 sized integers. Remove printing of character type.
8133 2017-09-08 Frank Penczek <frank.penczek@intel.com>
8134 Christoph Weinmann <christoph.t.weinmann@intel.com>
8135 Bernhard Heckel <bernhard.heckel@intel.com>
8137 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
8138 to maintain proper indentation when printing pointers/refs.
8140 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8144 2017-09-07 Joel Brobecker <brobecker@adacore.com>
8146 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
8148 2017-09-05 Tom Tromey <tom@tromey.com>
8150 * parse.c (funcall_chain): Now a std::vector.
8151 (start_arglist, end_arglist): Simplify.
8152 (free_funcalls): Remove.
8153 (parse_exp_in_context_1): Remove cleanup.
8155 2017-09-05 Tom Tromey <tom@tromey.com>
8157 * go-exp.y (go_parse): Don't create a cleanup.
8159 2017-09-05 Tom Tromey <tom@tromey.com>
8161 * d-exp.y (PrimaryExpression): Use std::string.
8162 (d_parse): Don't create a cleanup.
8164 2017-09-05 Tom Tromey <tom@tromey.com>
8166 * utils.c (do_clear_parser_state): Remove.
8167 (make_cleanup_clear_parser_state): Remove.
8168 * p-exp.y (pascal_parse): Use scoped_restore.
8169 * m2-exp.y (m2_parse): Use scoped_restore.
8170 * f-exp.y (f_parse): Use scoped_restore.
8171 * d-exp.y (d_parse): Use scoped_restore.
8172 * c-exp.y (c_parse): Use scoped_restore.
8173 * ada-exp.y (ada_parse): Use scoped_restore.
8174 * utils.h (make_cleanup_clear_parser_state): Remove.
8176 2017-09-06 Keith Seitz <keiths@redhat.com>
8178 * dwarf2read.c (dw2_linkage_name_attr): New function.
8179 (dw2_linkage_name): New function.
8180 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
8181 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
8182 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
8184 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8186 * config/djgpp/djconfig.sh: Correct shell portability issue.
8188 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8190 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
8192 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8194 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
8195 * NEWS: Mention new FreeBSD/mips native configuration.
8196 * configure.host: Add aarch64*-*-freebsd*.
8197 * configure.nat: Likewise.
8198 * aarch64-fbsd-nat.c: New file.
8200 2017-09-06 John Baldwin <jhb@FreeBSD.org>
8202 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
8203 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
8204 * NEWS: Mention new FreeBSD/aarch64 target.
8205 * configure.tgt: Add aarch64*-*-freebsd*.
8206 * aarch64-fbsd-tdep.c: New file.
8207 * aarch64-fbsd-tdep.h: New file.
8209 2017-09-06 Kamil Rytarowski <n54@gmx.com>
8211 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
8213 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8215 * parse.c (find_minsym_type_and_address): Don't relocate addresses
8218 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8220 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
8223 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8225 * infrun.c (follow_exec): Call add_thread after
8226 target_find_description.
8228 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8230 * infrun.c (handle_inferior_event_1): When exec'ing, read
8231 stop_pc after follow_exec.
8233 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8235 * remote.c (process_g_packet): Update error message.
8237 2017-09-05 Yao Qi <yao.qi@linaro.org>
8239 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8242 2017-09-05 Pedro Alves <palves@redhat.com>
8244 * eval.c (eval_call, evaluate_funcall): New functions, factored
8246 (evaluate_subexp_standard): ... this.
8248 2017-09-05 Yao Qi <yao.qi@linaro.org>
8250 * amd64-tdep.c (amd64_target_description): Create target
8252 (_initialize_amd64_tdep): Don't call functions
8253 initialize_tdesc_amd64_*. Add self tests.
8254 * arch/amd64.c (amd64_create_target_description): Add parameter
8255 is_linux. Call set_tdesc_osabi if is_linux is true.
8256 * arch/amd64.h (amd64_create_target_description): Update the
8258 * arch/i386.c (i386_create_target_description): Add parameter
8259 is_linux. Call set_tdesc_osabi if is_linux is true.
8260 * arch/i386.h (i386_create_target_description): Update
8262 * configure.tgt: Add i386.o to gdb_target_obs.
8263 * features/Makefile (XMLTOC): Remove i386/*.xml.
8264 * features/i386/amd64-avx-avx512.c: Remove.
8265 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8266 * features/i386/amd64-avx-mpx.c: Remove.
8267 * features/i386/amd64-avx.c: Remove.
8268 * features/i386/amd64-mpx.c: Remove.
8269 * features/i386/amd64.c: Remove.
8270 * features/i386/i386-avx-avx512.c: Remove.
8271 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8272 * features/i386/i386-avx-mpx.c: Remove.
8273 * features/i386/i386-avx.c: Remove.
8274 * features/i386/i386-mmx.c: Remove.
8275 * features/i386/i386-mpx.c: Remove.
8276 * features/i386/i386.c: Remove.
8277 * i386-tdep.c: Don't include features/i386/i386*.c., include
8278 target-descriptions.h and arch/i386.h.
8279 (i386_target_description): Create target descriptions.
8280 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8281 functions. Do self tests.
8283 2017-09-05 Yao Qi <yao.qi@linaro.org>
8285 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8286 * features/i386/amd64-avx-avx512-linux.c: Removed.
8287 * features/i386/amd64-avx-linux.c: Removed.
8288 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8289 * features/i386/amd64-avx-mpx-linux.c: Removed.
8290 * features/i386/amd64-linux.c: Removed.
8291 * features/i386/amd64-mpx-linux.c: Removed.
8292 * features/i386/x32-avx-avx512-linux.c: Removed.
8293 * features/i386/x32-avx-linux.c: Removed.
8294 * features/i386/x32-linux.c: Removed.
8296 2017-09-05 Yao Qi <yao.qi@linaro.org>
8298 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8300 (amd64_linux_read_description): Call
8301 amd64_create_target_description.
8302 * arch/amd64.c: New file.
8303 * arch/amd64.h: New file.
8304 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8305 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8307 2017-09-05 Yao Qi <yao.qi@linaro.org>
8309 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8310 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8311 (amd64_linux_read_description): Create target descriptions.
8312 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8313 functions. Add unit tests.
8314 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8316 * features/i386/64bit-avx.c: Generated.
8317 * features/i386/64bit-avx512.c: Generated.
8318 * features/i386/64bit-core.c: Generated.
8319 * features/i386/64bit-linux.c: Generated.
8320 * features/i386/64bit-mpx.c: Generated.
8321 * features/i386/64bit-pkeys.c: Generated.
8322 * features/i386/64bit-segments.c: Generated.
8323 * features/i386/64bit-sse.c: Generated.
8324 * features/i386/x32-core.c: Generated.
8325 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8326 c files for amd64-linux and x32-linux.
8328 2017-09-05 Yao Qi <yao.qi@linaro.org>
8330 * amd64-linux-tdep.c (amd64_linux_read_description): New
8332 (amd64_linux_core_read_description): Call
8333 amd64_linux_read_description.
8334 (amd64_linux_init_abi): Likewise.
8335 (amd64_x32_linux_init_abi): Likewise.
8336 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8337 * x86-linux-nat.c (x86_linux_read_description): Call
8338 amd64_linux_read_description.
8340 2017-09-05 Yao Qi <yao.qi@linaro.org>
8342 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8345 2017-09-05 Yao Qi <yao.qi@linaro.org>
8347 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8348 * features/i386/i386-avx-avx512-linux.c: Remove.
8349 * features/i386/i386-avx-linux.c: Remove.
8350 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8351 * features/i386/i386-avx-mpx-linux.c: Remove.
8352 * features/i386/i386-linux.c: Remove.
8353 * features/i386/i386-mmx-linux.c: Remove.
8354 * features/i386/i386-mpx-linux.c: Remove.
8356 2017-09-05 Yao Qi <yao.qi@linaro.org>
8358 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8359 (SFILES): Add arch/i386.c.
8360 (HFILES_NO_SRCDIR): Add arch/i386.h.
8361 * arch/i386.c: New file.
8362 * arch/i386.h: New file.
8363 * arch/tdesc.h (allocate_target_description): Declare.
8364 (set_tdesc_architecture): Declare.
8365 (set_tdesc_osabi): Declare.
8366 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8367 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8368 include arch/i386.h.
8369 (i386_linux_read_description): Remove code and call
8370 i386_create_target_description.
8371 (set_tdesc_architecture): New function.
8372 (set_tdesc_osabi): New function.
8373 * target-descriptions.h (allocate_target_description): Remove.
8375 2017-09-05 Yao Qi <yao.qi@linaro.org>
8377 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8378 * target-descriptions.c (tdesc_create_feature): Likewise, and
8380 * features/i386/32bit-avx.c: Re-generated.
8381 * features/i386/32bit-avx512.c: Re-generated.
8382 * features/i386/32bit-core.c: Re-generated.
8383 * features/i386/32bit-linux.c: Re-generated.
8384 * features/i386/32bit-mpx.c: Re-generated.
8385 * features/i386/32bit-pkeys.c: Re-generated.
8386 * features/i386/32bit-sse.c: Re-generated.
8388 2017-09-05 Yao Qi <yao.qi@linaro.org>
8390 * regformats/regdef.h (struct reg): Override operator == and !=.
8392 2017-09-05 Yao Qi <yao.qi@linaro.org>
8394 * arch/tdesc.h: New file.
8395 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8396 * target-descriptions.c: Update comments.
8397 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8399 * features/i386/32bit-avx.c: Re-generated.
8400 * features/i386/32bit-avx512.c: Re-generated.
8401 * features/i386/32bit-core.c: Re-generated.
8402 * features/i386/32bit-linux.c: Re-generated.
8403 * features/i386/32bit-mpx.c: Re-generated.
8404 * features/i386/32bit-pkeys.c: Re-generated.
8405 * features/i386/32bit-sse.c: Re-generated.
8407 2017-09-05 Yao Qi <yao.qi@linaro.org>
8409 * regformats/regdat.sh: Update generated code.
8411 2017-09-05 Yao Qi <yao.qi@linaro.org>
8413 * regformats/regdat.sh: Adjust code order.
8415 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8417 * expprint.c (dump_subexp_body_standard): Use constant format
8418 string in fprintf_filtered call.
8420 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8422 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8424 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8426 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8428 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8430 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8432 * bsd-kvm.o: Define _KMEMUSER.
8433 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8434 * configure: Regenerate.
8436 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8438 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8439 * i386-fbsd-nat.c: Likewise.
8441 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8443 * unittests/array-view-selftests.c: Add include of <array>.
8445 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8447 * spu-tdep.c (flush_ea_cache): Add missing argument to
8448 call_function_by_hand.
8450 2017-09-04 Pedro Alves <palves@redhat.com>
8452 * NEWS (Safer support for debugging with no debug info): New.
8454 2017-09-04 Pedro Alves <palves@redhat.com>
8456 * c-exp.y (function_method, function_method_void): Add current
8457 instance flags to TYPE_INSTANCE.
8458 * dwarf2read.c (check_modifier): New.
8459 (compute_delayed_physnames): Assert that only C++ adds delayed
8460 physnames. Mark fn_fields as const/volatile depending on
8462 * eval.c (make_params): New type_instance_flags parameter. Use
8463 it as the new type's instance flags.
8464 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8465 flags element and pass it to make_params.
8466 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8467 instance flags element.
8468 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8469 * gdbtypes.h: Include "enum-flags.h".
8470 (type_instance_flags): New enum-flags type.
8471 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8472 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8473 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8474 (follow_type_instance_flags): New function.
8475 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8476 * parser-defs.h (follow_type_instance_flags): Declare.
8477 * valops.c (value_struct_elt_for_reference): const/volatile must
8480 2017-09-04 Pedro Alves <palves@redhat.com>
8482 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8483 function/method scopes; lookup the nested name as a function local
8486 2017-09-04 Pedro Alves <palves@redhat.com>
8488 (%type <voidval>): Add function_method.
8489 * c-exp.y (exp): New production for calls with no arguments.
8490 (function_method, function_method_void_or_typelist): New
8492 (exp): New production for "method()::static_var".
8493 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8494 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8495 Handle OP_FUNC_STATIC_VAR.
8496 * parse.c (operator_length_standard):
8497 Handle OP_FUNC_STATIC_VAR.
8499 2017-09-04 Pedro Alves <palves@redhat.com>
8501 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8503 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8505 * parse.c (operator_length_standard, operator_check_standard):
8507 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8509 2017-09-04 Pedro Alves <palves@redhat.com>
8511 * ax-gdb.c: Include "typeprint.h".
8512 (gen_expr_for_cast): New function.
8513 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8514 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8516 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8517 nodebug_data_symbol.
8518 * eval.c: Include "typeprint.h".
8519 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8520 Error out if symbol has unknown type.
8521 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8522 evaluate_subexp_for_cast.
8523 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8525 (evaluate_subexp_for_cast): New function.
8526 * gdbtypes.c (init_nodebug_var_type): New function.
8527 (objfile_type): Use it to initialize types of variables with no
8529 * typeprint.c (error_unknown_type): New.
8530 * typeprint.h (error_unknown_type): New declaration.
8531 * compile/compile-c-types.c (convert_type_basic): Handle
8532 TYPE_CODE_ERROR; warn and fallback to int for variables with
8535 2017-09-04 Pedro Alves <palves@redhat.com>
8537 * eval.c (evaluate_var_value): New function, factored out from ...
8538 (evaluate_subexp_standard): ... here.
8540 2017-09-04 Pedro Alves <palves@redhat.com>
8542 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8543 Remove useless assignments to 'op'.
8545 2017-09-04 Pedro Alves <palves@redhat.com>
8547 * eval.c (eval_skip_value): New function.
8548 (evaluate_subexp_standard): Use it.
8550 2017-09-04 Pedro Alves <palves@redhat.com>
8552 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8553 function name from symbol/minsym and pass it to
8554 error_call_unknown_return_type.
8556 2017-09-04 Pedro Alves <palves@redhat.com>
8558 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8559 * ax-gdb.c (gen_msym_var_ref): New function.
8560 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8561 * eval.c (evaluate_var_msym_value): New function.
8562 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8563 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8564 to call_function_by_hand.
8565 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8566 Handle OP_VAR_MSYM_VALUE.
8567 (union exp_element) <msymbol>: New field.
8568 * minsyms.h (struct type): Forward declare.
8569 (find_minsym_type_and_address): Declare.
8570 * parse.c (write_exp_elt_msym): New function.
8571 (write_exp_msymbol): Delete, refactored as ...
8572 (find_minsym_type_and_address): ... this new function.
8573 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8574 (operator_length_standard, operator_check_standard): Handle
8576 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8578 2017-09-04 Pedro Alves <palves@redhat.com>
8580 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8581 TYPE_GNU_IFUNC specially here. Throw error if return type is
8583 * ada-typeprint.c (print_func_type): Handle functions with unknown
8585 * c-typeprint.c (c_type_print_base): Handle functions and methods
8586 with unknown return type.
8587 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8588 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8589 * compile/compile-c-types.c: Include "objfiles.h".
8590 (convert_func): For functions with unknown return type, warn and
8592 * compile/compile-object-run.c (compile_object_run): Adjust call
8593 to call_function_by_hand_dummy.
8594 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8595 call_function_by_hand.
8596 * eval.c (evaluate_subexp_standard): Adjust calls to
8597 call_function_by_hand. Handle functions and methods with unknown
8598 return type. Pass expect_type to call_function_by_hand.
8599 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8601 * gcore.c (call_target_sbrk): Adjust call to
8602 call_function_by_hand.
8603 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8604 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8605 an integer address type instead of nodebug.
8606 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8607 call_function_by_hand.
8608 * infcall.c (error_call_unknown_return_type): New function.
8609 (call_function_by_hand): New "default_return_type" parameter.
8611 (call_function_by_hand_dummy): New "default_return_type"
8612 parameter. Use it instead of defaulting to int. If there's no
8613 default and the return type is unknown, throw an error. If
8614 there's a default return type, and the called function has no
8615 debug info, then assume the function is prototyped.
8616 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8617 New "default_return_type" parameter.
8618 (error_call_unknown_return_type): New declaration.
8619 * linux-fork.c (call_lseek): Cast return type of lseek.
8620 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8621 call_function_by_hand.
8622 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8623 calls to call_function_by_hand.
8624 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8626 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8627 (value_nsstring, print_object_command): Adjust calls to
8628 call_function_by_hand.
8629 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8630 functions with unknown return type.
8631 (pascal_type_print_func_varspec_suffix): New function.
8632 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8633 TYPE_CODE_METHOD>: Use it.
8634 * python/py-value.c (valpy_call): Adjust call to
8635 call_function_by_hand.
8636 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8637 call_function_by_hand.
8638 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8639 call_function_by_hand.
8640 * valops.c (value_allocate_space_in_inferior): Adjust call to
8641 call_function_by_hand.
8642 * typeprint.c (type_print_unknown_return_type): New function.
8643 * typeprint.h (type_print_unknown_return_type): New declaration.
8645 2017-09-04 Pedro Alves <palves@redhat.com>
8647 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8648 types with more than one parameter as prototyped.
8650 2017-09-04 Pedro Alves <palves@redhat.com>
8652 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8653 (disassemble_command): Use gdb_disassembly_flags instead of bare
8655 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8656 (dump_insns, do_mixed_source_and_assembly_deprecated)
8657 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8658 Use gdb_disassembly_flags instead of bare int.
8659 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8660 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8661 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8662 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8663 (enum gdb_disassembly_flag): ... values of this new enumeration.
8664 (gdb_disassembly_flags): Define.
8666 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8667 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8668 gdb_disassembly_flags instead of bare int.
8669 * record-btrace.c (btrace_insn_history)
8670 (record_btrace_insn_history, record_btrace_insn_history_range)
8671 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8672 instead of bare int.
8673 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8674 Use gdb_disassembly_flags instead of bare int.
8675 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8677 * target-delegates.c: Regenerate.
8678 * target.c (target_insn_history, target_insn_history_from)
8679 (target_insn_history_range): Use gdb_disassembly_flags instead of
8681 * target.h: Include "disasm.h".
8682 (struct target_ops) <to_insn_history, to_insn_history_from,
8683 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8685 (target_insn_history, target_insn_history_from)
8686 (target_insn_history_range): Use gdb_disassembly_flags instead of
8689 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8691 * cli/cli-script.c (build_command_line): For if/while commands,
8692 check whether args is empty.
8694 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8696 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8697 (enum command_control_type): Likewise.
8698 (struct command_line): Likewise.
8699 (free_command_lines): Likewise.
8700 (struct command_lines_deleter): Likewise.
8701 (command_line_up): Likewise.
8702 (read_command_lines): Likewise.
8703 (read_command_lines_1): Likewise.
8704 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8705 (enum command_control_type): Likewise.
8706 (struct command_line): Likewise.
8707 (free_command_lines): Likewise.
8708 (struct command_lines_deleter): Likewise.
8709 (command_line_up): Likewise.
8710 (read_command_lines): Likewise.
8711 (read_command_lines_1): Likewise.
8712 * breakpoint.h: Include cli/cli-script.h.
8713 * extension-priv.h: Likewise.
8714 * gdbcmd.h: Likewise.
8716 2017-09-04 Pedro Alves <palves@redhat.com>
8718 * ada-lang.c (is_known_support_routine): Move sal declaration to
8719 where it is initialized.
8720 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8721 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8722 (clear_command, update_static_tracepoint): Remove init_sal
8723 references. Move declarations closer to initializations.
8724 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8726 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8727 references. Move sal declarations closer to initializations.
8728 * frame.c (find_frame_sal): Return a symtab_and_line via function
8729 return instead of output parameter. Remove init_sal references.
8730 * frame.h (find_frame_sal): Return a symtab_and_line via function
8731 return instead of output parameter.
8732 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8733 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8735 (gdbscm_find_pc_line): Remove init_sal reference.
8736 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8737 references. Move declarations closer to initializations.
8738 * infcmd.c (set_step_frame): Update. Move declarations closer to
8740 (finish_backward): Remove init_sal references. Move declarations
8741 closer to initializations.
8742 * infrun.c (process_event_stop_test, handle_step_into_function)
8743 (insert_hp_step_resume_breakpoint_at_frame)
8744 (insert_step_resume_breakpoint_at_caller): Likewise.
8745 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8746 (symbol_to_sal): Likewise.
8747 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8748 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8749 to its initialization.
8750 * reverse.c (save_bookmark_command): Use new/delete. Remove
8751 init_sal references. Move declarations closer to initializations.
8752 * source.c (get_current_source_symtab_and_line): Remove brace
8754 (set_current_source_symtab_and_line): Now takes the sal by const
8755 reference. Remove brace initialization.
8756 (line_info): Remove init_sal reference.
8757 * source.h (set_current_source_symtab_and_line): Now takes a
8758 symtab_and_line via const reference.
8759 * stack.c (set_current_sal_from_frame): Adjust.
8760 (print_frame_info): Adjust.
8761 (get_last_displayed_sal): Return the sal via function return
8762 instead of via output parameter. Simplify.
8763 (frame_info): Adjust.
8764 * stack.h (get_last_displayed_sal): Return the sal via function
8765 return instead of via output parameter.
8766 * symtab.c (init_sal): Delete.
8767 (find_pc_sect_line): Remove init_sal references. Move
8768 declarations closer to initializations.
8769 (find_function_start_sal): Remove init_sal references. Move
8770 declarations closer to initializations.
8771 * symtab.h (struct symtab_and_line): In-class initialize all
8773 * tracepoint.c (set_traceframe_context)
8774 (print_one_static_tracepoint_marker): Remove init_sal references.
8775 Move declarations closer to initializations.
8776 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8777 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8778 declarations closer to initializations.
8779 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8780 init_sal references. Adjust.
8782 2017-09-04 Pedro Alves <palves@redhat.com>
8784 * ax-gdb.c (agent_command_1): Use range-for.
8785 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8786 * breakpoint.c: Include "common/array-view.h".
8787 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8788 parameter from struct symtabs_and_lines to
8789 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8790 (breakpoint_sals_to_pc): Change sals parameter from struct
8791 symtabs_and_lines to std::vector reference.
8792 (check_fast_tracepoint_sals): Change sals parameter from struct
8793 symtabs_and_lines to std::array_view. Use range-for.
8794 (decode_static_tracepoint_spec): Return a std::vector instead of
8795 symtabs_and_lines. Update.
8796 (create_breakpoint): Update.
8797 (break_range_command, until_break_command, clear_command): Update.
8798 (base_breakpoint_decode_location, bkpt_decode_location)
8799 (bkpt_probe_create_sals_from_location)
8800 (bkpt_probe_decode_location, tracepoint_decode_location)
8801 (tracepoint_probe_decode_location)
8802 (strace_marker_create_sals_from_location): Return a std::vector
8803 instead of symtabs_and_lines.
8804 (strace_marker_create_breakpoints_sal): Update.
8805 (strace_marker_decode_location): Return a std::vector instead of
8806 symtabs_and_lines. Update.
8807 (update_breakpoint_locations): Change struct symtabs_and_lines
8808 parameters to gdb::array_view. Adjust.
8809 (location_to_sals): Return a std::vector instead of
8810 symtabs_and_lines. Update.
8811 (breakpoint_re_set_default): Use std::vector instead of struct
8813 (decode_location_default): Return a std::vector instead of
8814 symtabs_and_lines. Update.
8815 * breakpoint.h: Include "common/array-view.h".
8816 (struct breakpoint_ops) <decode_location>: Now returns a
8817 std::vector instead of returning a symtabs_and_lines via output
8819 (update_breakpoint_locations): Change sals parameters to use
8821 * cli/cli-cmds.c (edit_command, list_command): Update to use
8822 std::vector and gdb::array_view.
8823 (ambiguous_line_spec): Adjust to use gdb::array_view and
8825 (compare_symtabs): Rename to ...
8826 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8827 const reference and adjust.
8828 (filter_sals): Rewrite using std::vector and standard algorithms.
8829 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8830 (jump_command): Update to use std::vector.
8831 * linespec.c (struct linespec_state) <canonical_names>: Update
8833 (add_sal_to_sals_basic): Delete.
8834 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8835 (decode_line_2, create_sals_line_offset)
8836 (convert_address_location_to_sals, convert_linespec_to_sals)
8837 (convert_explicit_location_to_sals, parse_linespec)
8838 (event_location_to_sals, decode_line_full, decode_line_1)
8839 (decode_line_with_current_source)
8840 (decode_line_with_last_displayed, decode_objc)
8841 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8842 (linespec_result::~linespec_result): Adjust to use std::vector
8843 instead of symtabs_and_lines.
8844 * linespec.h (linespec_sals::sals): Now a std::vector.
8845 (struct linespec_result): Use std::vector, bool, and in-class
8847 (decode_line_1, decode_line_with_current_source)
8848 (decode_line_with_last_displayed): Return std::vector.
8849 * macrocmd.c (info_macros_command): Use std::vector.
8850 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8851 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8853 * probe.h (parse_probes): Return a std::vector.
8854 * python/python.c (gdbpy_decode_line): Use std::vector and
8856 * source.c (select_source_symtab, line_info): Use std::vector.
8857 * stack.c (func_command): Use std::vector.
8858 * symtab.h (struct symtabs_and_lines): Delete.
8859 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8861 2017-09-04 Pedro Alves <palves@redhat.com>
8863 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8864 unittests/array-view-selftests.c.
8865 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8866 * common/array-view.h: New file.
8867 * unittests/array-view-selftests.c: New file.
8869 2017-09-04 Pedro Alves <palves@redhat.com>
8871 * cli/cli-cmds.c (edit_command): Pass message to
8872 ambiguous_line_spec.
8873 (list_command): Pass message to ambiguous_line_spec. Say
8874 "first"/"last" instead of "start" and "end" to be consistent with
8876 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8877 them to print formatted message.
8879 2017-09-04 Pedro Alves <palves@redhat.com>
8881 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8882 ftrace_update_insns by reference instead of pointer.
8884 2017-09-04 Yao Qi <yao.qi@linaro.org>
8886 * i386-go32-tdep.c: Include x86-xstate.h.
8887 (i386_go32_init_abi): Call i386_target_description.
8888 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8889 if xcr0 is X86_XSTATE_X87_MASK.
8890 * i386-tdep.h (tdesc_i386): Remove the declaration.
8891 (tdesc_i386_mmx): Likewise.
8893 2017-09-04 Yao Qi <yao.qi@linaro.org>
8895 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8896 X86_XSTATE_SSE_MASK instead of 0.
8898 2017-09-04 Yao Qi <yao.qi@linaro.org>
8900 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8901 i386_target_description.
8902 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8903 i386_target_description.
8904 * i386-tdep.c (i386_gdbarch_init): Likewise.
8906 2017-09-04 Yao Qi <yao.qi@linaro.org>
8908 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8909 (x86_darwin_init_abi_64): Call amd64_target_description.
8910 * amd64-dicos-tdep.c: Likewise.
8911 * amd64-fbsd-nat.c: Likewise.
8912 * amd64-fbsd-tdep.c: Likewise.
8913 * amd64-nbsd-tdep.c: Likewise.
8914 * amd64-obsd-tdep.c: Likewise.
8915 * amd64-sol2-tdep.c: Likewise.
8916 * amd64-windows-tdep.c: Likewise.
8917 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8919 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8921 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8922 (btrace_function) <insn>: Change type to use std::vector.
8923 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8924 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8925 ftrace_update_insns, ftrace_compute_global_level_offset,
8926 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8927 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8928 change to std::vector.
8929 (ftrace_update_insns): Adjust to change to std::vector, change
8930 type of INSN parameter.
8931 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8932 * record-btrace.c (btrace_call_history_insn_range,
8933 btrace_compute_src_line_range,
8934 record_btrace_frame_prev_register): Adjust to change to
8936 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8937 to change to std::vector.
8939 2017-09-03 Tom Tromey <tom@tromey.com>
8941 * corefile.c (reopen_exec_file): Use std::string.
8943 2017-09-03 Tom Tromey <tom@tromey.com>
8945 * compile/compile.c (compile_register_name_mangled): Return
8947 * compile/compile-loc2c.c (pushf_register_address): Update.
8948 (pushf_register): Update.
8949 * compile/compile-c-types.c (convert_array): Update.
8950 * compile/compile-c-symbols.c (generate_vla_size): Update.
8951 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8952 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8953 (convert_one_symbol): Update.
8954 (generate_c_for_for_one_variable): Update.
8955 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8957 (generate_register_struct): Update.
8958 * compile/compile-internal.h (c_get_range_decl_name): Return a
8960 (compile_register_name_mangled): Return std::string.
8962 2017-09-03 Tom Tromey <tom@tromey.com>
8964 * utils.c (perror_string): Return a std::string.
8965 (throw_perror_with_name, perror_warning_with_name): Update.
8967 2017-09-03 Tom Tromey <tom@tromey.com>
8969 * demangle.c (demangle_command): Use std::string,
8972 2017-09-03 Tom Tromey <tom@tromey.com>
8974 * cli/cli-setshow.c (do_set_command): Use std::string.
8976 2017-09-03 Tom Tromey <tom@tromey.com>
8978 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8980 2017-09-03 Tom Tromey <tom@tromey.com>
8982 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8984 2017-09-03 Tom Tromey <tom@tromey.com>
8986 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8987 gdb::unique_xmalloc_ptr.
8989 2017-09-03 Tom Tromey <tom@tromey.com>
8991 * thread.c (print_thread_info_1): Use string_printf.
8992 (thread_apply_command, thread_apply_all_command): Use
8995 2017-09-03 Tom Tromey <tom@tromey.com>
8997 * valprint.c (val_print_string): Update.
8998 * gdbcore.h (memory_error_message): Return std::string.
8999 * corefile.c (memory_error_message): Return std::string.
9000 (memory_error): Update.
9001 * breakpoint.c (insert_bp_location): Update.
9003 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
9005 * target/waitstatus.h (target_waitstatus_to_string): Change
9006 return type to std::string.
9007 * target/waitstatus.c (target_waitstatus_to_string): Return
9009 * target.h (target_waitstatus_to_string): Remove declaration.
9010 * infrun.c (resume, clear_proceed_status_thread,
9011 print_target_wait_results, do_target_wait, save_waitstatus,
9012 stop_all_threads): Adjust.
9013 * record-btrace.c (record_btrace_wait): Adjust.
9015 (target_debug_print_struct_target_waitstatus_p): Adjust.
9017 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9020 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
9023 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
9025 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
9026 for setting/unsetting environment variables on the remote target.
9027 (New remote packets): Add entries for QEnvironmentHexEncoded,
9028 QEnvironmentUnset and QEnvironmentReset.
9029 * common/environ.c (gdb_environ::operator=): Extend method to
9030 handle m_user_set_env_list and m_user_unset_env_list.
9031 (gdb_environ::clear): Likewise.
9032 (match_var_in_string): Change type of first parameter from 'char
9033 *' to 'const char *'.
9034 (gdb_environ::set): Extend method to handle
9035 m_user_set_env_list and m_user_unset_env_list.
9036 (gdb_environ::unset): Likewise.
9037 (gdb_environ::clear_user_set_env): New method.
9038 (gdb_environ::user_set_envp): Likewise.
9039 (gdb_environ::user_unset_envp): Likewise.
9040 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
9041 m_user_unset_env_list on move constructor/assignment.
9042 (unset): Add new default parameter 'update_unset_list = true'.
9043 (clear_user_set_env): New method.
9044 (user_set_envp): Likewise.
9045 (user_unset_envp): Likewise.
9046 (m_user_set_env_list): New std::set.
9047 (m_user_unset_env_list): Likewise.
9048 * common/rsp-low.c (hex2str): New function.
9049 (bin2hex): New overload for bin2hex function.
9050 * common/rsp-low.c (hex2str): New prototype.
9051 (str2hex): New overload prototype.
9052 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
9053 QEnvironmentUnset and QEnvironmentReset.
9054 (remote_protocol_features): Add QEnvironmentHexEncoded,
9055 QEnvironmentUnset and QEnvironmentReset packets.
9056 (send_environment_packet): New function.
9057 (extended_remote_environment_support): Likewise.
9058 (extended_remote_create_inferior): Call
9059 extended_remote_environment_support.
9060 (_initialize_remote): Add QEnvironmentHexEncoded,
9061 QEnvironmentUnset and QEnvironmentReset packet configs.
9062 * unittests/environ-selftests.c (gdb_selftest_env_var):
9064 (test_vector_initialization): New function.
9065 (test_init_from_host_environ): Likewise.
9066 (test_reinit_from_host_environ): Likewise.
9067 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
9069 (test_unset_set_empty_vector): Likewise.
9070 (test_vector_clear): Likewise.
9071 (test_std_move): Likewise.
9072 (test_move_constructor):
9073 (test_self_move): Likewise.
9074 (test_set_unset_reset): Likewise.
9075 (run_tests): Rewrite in terms of the functions above.
9077 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
9079 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
9080 (adi_available): Use a temp variable of type CORE_ADDR as argument
9081 3 when calling target_auxv_search.
9082 (adi_normalize_address): Use masks and xor operators to calculate
9084 (adi_read_versions, adi_write_versions, adi_print_versions)
9085 (do_examine, do_assign): Use paddress.
9087 2017-08-29 John Baldwin <jhb@FreeBSD.org>
9089 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
9090 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
9091 out of loop and add supply of FIR.
9092 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
9095 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
9098 * cli/cli-script.c (define_command): Don't convert command name
9101 2017-08-25 Joel Brobecker <brobecker@adacore.com>
9103 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
9104 Update all callers accordingly. Remove all code blocks handling
9105 the case where DISPP is not NULL.
9107 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9110 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
9111 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9112 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
9114 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9116 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
9117 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
9118 (read_comp_units_from_section): New parameter abbrev_section, use
9119 read_and_check_comp_unit_head, allocate signatured_type if needed.
9120 (create_all_comp_units): Update read_comp_units_from_section caller.
9122 2017-08-23 Pedro Alves <palves@redhat.com>
9125 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
9126 to null_ptid and switch to thread without reading the registers
9127 after adding the inferior.
9129 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9131 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
9133 * compile/compile.c (compile_gcc, show_compile_gcc): New.
9134 (compile_to_object): Implement compile_gcc.
9135 (_initialize_compile): Install "set compile-gcc". Initialize
9138 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9140 * compile/compile.c (compile_to_object): Conditionally call
9141 set_verbose. Conditionally call compile or compile_v0.
9143 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
9145 * sparc64-tdep.h: (adi_normalize_address): New export.
9146 * sparc-nat.h: (open_adi_tag_fd): New export.
9147 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
9148 * sparc64-linux-tdep.c:
9149 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
9150 (sparc64_linux_handle_segmentation_fault): New function.
9151 (sparc64_linux_init_abi): Register
9152 sparc64_linux_handle_segmentation_fault
9153 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
9154 (sparc64_addr_bits_remove): New function.
9155 (sparc64_init_abi): Register sparc64_addr_bits_remove.
9156 (MAX_PROC_NAME_SIZE): New macro.
9157 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
9158 (sparc64adilist): New variable.
9159 (adi_proc_list): New variable.
9160 (find_adi_info): New function.
9161 (add_adi_info): New function.
9162 (get_adi_info_proc): New function.
9163 (get_adi_info): New function.
9164 (info_adi_command): New function.
9165 (read_maps_entry): New function.
9166 (adi_available): New function.
9167 (adi_normalize_address): New function.
9168 (adi_align_address): New function.
9169 (adi_convert_byte_count): New function.
9170 (adi_tag_fd): New function.
9171 (adi_is_addr_mapped): New function.
9172 (adi_read_versions): New function.
9173 (adi_write_versions): New function.
9174 (adi_print_versions): New function.
9175 (do_examine): New function.
9176 (do_assign): New function.
9177 (adi_examine_command): New function.
9178 (adi_assign_command): New function.
9179 (_initialize_sparc64_adi_tdep): New function.
9181 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
9183 * breakpoint.c (breakpoints_info): Rename to ...
9184 (info_breakpoints_command): ... this.
9185 (watchpoints_info): Rename to ...
9186 (info_watchpoints_command): ... this.
9187 (tracepoints_info): Rename to ...
9188 (info_tracepoints_command): ... this.
9189 (_initialize_breakpoint): Adjust.
9190 * dcache.c (dcache_info): Rename to ...
9191 (info_display_command): ... this.
9192 (_initialize_dcache): Adjust.
9193 * frame.h (args_info): Rename to ...
9194 (info_args_command): ... this.
9195 (locals_info): Rename to ...
9196 (info_locals_command): ... this.
9197 * infcmd.c (nofp_registers_info): Rename to ...
9198 (info_registers_command): ... this.
9199 (float_info): Rename to ...
9200 (info_float_command): ... this.
9201 (program_info): Rename to ...
9202 (info_program_command): ... this.
9203 (all_registers_info): Rename to ...
9204 (info_all_registers_command): ... this.
9205 (vector_info): Rename to ...
9206 (info_vector_command): ... this.
9207 (float_info): Rename to ...
9208 (info_float_command): ... this.
9209 (_initialize_infcmd): Adjust.
9210 * inferior.h (term_info): Rename to ...
9211 (info_terminal_command): ... this.
9212 * inflow.c (term_info): Rename to ...
9213 (info_terminal_command): ... this.
9214 (_initialize_inflow): Adjust.
9215 * infrun.c (signals_info): Rename to ...
9216 (info_signals_command): ... this.
9217 (_initialize_infrun): Adjust.
9218 * objc-lang.c (classes_info): Rename to ...
9219 (info_classes_command): ... this.
9220 (selectors_info): Rename to ...
9221 (info_selectors_command): ... this.
9222 (_initialize_objc_language): Adjust.
9223 * printcmd.c (sym_info): Rename to ...
9224 (info_symbol_command): ... this.
9225 (address_info): Rename to ...
9226 (info_address_command): ... this.
9227 (display_info): Rename to ...
9228 (info_display_command): ... this.
9229 (_initialize_printcmd): Adjust.
9230 * reverse.c (bookmarks_info): Rename to ...
9231 (info_breakpoints_command): ... this.
9232 (_initialize_reverse): Adjust.
9233 * ser-go32.c (dos_info): Rename to ...
9234 (info_serial_command): ... this.
9235 (_initialize_ser_dos): Adjust.
9236 * skip.c (skip_info): Rename to ...
9237 (info_skip_command): ... this.
9238 (_initialize_step_skip): Adjust.
9239 * source.c (line_info): Rename to ...
9240 (info_line_command): ... this.
9241 (source_info): Rename to ...
9242 (info_source_command)
9243 * stack.c (frame_info): Rename to ...
9244 (info_frame_command): ... this.
9245 (locals_info): Rename to ...
9246 (info_locals_command): ... this.
9247 (args_info): Rename to ...
9248 (info_args_command): ... this.
9249 (_initialize_stack): Adjust.
9250 * symtab.c (sources_info): Rename to ...
9251 (info_sources_command): ... this.
9252 (variables_info): Rename to ...
9253 (info_variables_command): ... this.
9254 (functions_info): Rename to ...
9255 (info_functions_command): ... this.
9256 (types_info): Rename to ...
9257 (info_types_command): ... this.
9258 (_initialize_symtab): Adjust.
9259 * target.c (target_info): Rename to ...
9260 (info_target_command): ... this.
9261 (initialize_targets): Adjust.
9262 * tracepoint.c (tvariables_info): Rename to ...
9263 (info_tvariables_command): ... this.
9264 (scope_info): Rename to ...
9265 (info_scope_command): ... this.
9266 (trace_dump_actions): Adjust.
9267 (_initialize_tracepoint): Adjust.
9269 2017-08-22 Tom Tromey <tom@tromey.com>
9271 * breakpoint.h (install_breakpoint): Update.
9272 * breakpoint.c (add_solib_catchpoint): Update.
9273 (install_breakpoint): Change argument to a std::unique_ptr.
9274 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9275 (create_breakpoint_sal, create_breakpoint): Update.
9276 (watch_command_1, catch_exec_command_1)
9277 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9278 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9279 Return the breakpoint.
9280 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9281 (new_single_step_breakpoint): Update.
9282 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9284 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9286 * break-catch-sig.c (create_signal_catchpoint): Use
9288 * ada-lang.c (create_ada_exception_catchpoint): Use
9291 2017-08-22 Tom Tromey <tom@tromey.com>
9293 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9295 2017-08-22 Tom Tromey <tom@tromey.com>
9297 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9298 (lookup_partial_symbol): Update.
9300 2017-08-22 Tom Tromey <tom@tromey.com>
9302 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9303 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9304 (find_and_open_source, symtab_to_fullname): Update.
9305 * psymtab.c (psymtab_to_fullname): Update.
9307 2017-08-22 Tom Tromey <tom@tromey.com>
9309 * exec.c (exec_file_attach): Update.
9310 * linux-thread-db.c (try_thread_db_load): Update.
9311 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9312 * utils.c (gdb_realpath): Change return type.
9313 (gdb_realpath_keepfile): Update.
9314 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9315 (_initialize_utils): Register the new self test.
9316 * source.c (openp): Update.
9317 (find_and_open_source): Update.
9318 * nto-tdep.c (nto_find_and_open_solib): Update.
9319 * main.c (set_gdb_data_directory): Update.
9320 (captured_main_1): Update.
9321 * dwarf2read.c (dwarf2_get_dwz_file): Update
9322 (dw2_map_symbol_filenames): Update.
9323 * auto-load.c (auto_load_safe_path_vec_update): Update.
9324 (filename_is_in_auto_load_safe_path_vec): Change type of
9326 (auto_load_objfile_script): Update.
9327 (file_is_auto_load_safe): Update. Use std::string.
9328 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9330 2017-08-22 Tom Tromey <tom@tromey.com>
9332 * utils.c (gdb_realpath_keepfile): Return a
9333 gdb::unique_xmalloc_ptr.
9334 * exec.c (exec_file_attach): Update.
9335 * utils.h (gdb_realpath_keepfile): Return a
9336 gdb::unique_xmalloc_ptr.
9338 2017-08-22 Tom Tromey <tom@tromey.com>
9340 * compile/compile.c (compile_file_command): Use
9341 gdb::unique_xmalloc_ptr, std::string.
9342 * utils.c (gdb_abspath): Change return type.
9343 * source.c (openp): Update.
9344 * objfiles.c (allocate_objfile): Update.
9345 * main.c (set_gdb_data_directory): Update.
9346 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9348 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9350 * cli-cmds.c (list_commands): List actual code around more than
9353 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9355 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9357 2017-08-21 Pedro Alves <palves@redhat.com>
9360 * c-exp.y (variable production): Handle function aliases.
9361 * minsyms.c (msymbol_is_text): New function.
9362 * minsyms.h (msymbol_is_text): Declare.
9363 * symtab.c (find_function_alias_target): New function.
9364 * symtab.h (find_function_alias_target): Declare.
9366 2017-08-21 Pedro Alves <palves@redhat.com>
9368 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9370 * typeprint.c (whatis_exp): If handling "whatis", and expression
9371 is OP_TYPE, strip one typedef level. Otherwise don't strip
9373 * valops.c (value_cast): Save "to" type before resolving
9374 stubs/typedefs. Use that type as resulting value's type.
9376 2017-08-18 Tom Tromey <tom@tromey.com>
9377 Pedro Alves <palves@redhat.com>
9379 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9380 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9381 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9382 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9383 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9384 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9385 (linux_get_siginfo_data): Add "thread" argument. Use
9387 * linux-nat.c (linux_child_follow_fork)
9388 (check_stopped_by_watchpoint): Use scoped_restore.
9389 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9390 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9391 (restore_inferior_ptid, save_inferior_ptid): Remove.
9392 * btrace.c (btrace_fetch): Use scoped_restore.
9393 * bsd-uthread.c (bsd_uthread_fetch_registers)
9394 (bsd_uthread_store_registers): Use scoped_restore.
9395 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9397 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9398 (aix_thread_xfer_partial): Use scoped_restore.
9399 * inferior.h (save_inferior_ptid): Remove.
9401 2017-08-18 Yao Qi <yao.qi@linaro.org>
9404 * arm-tdep.c (gdb_print_insn_arm): Mark
9405 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9407 2017-08-18 Yao Qi <yao.qi@linaro.org>
9409 * NEWS: Mention GDBserver's new option "--selftest".
9410 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9411 * selftest.c: Move it to common/selftest.c.
9412 * selftest.h: Move it to common/selftest.h.
9413 * selftest-arch.c (reset): New function.
9414 (tests_with_arch): Call reset.
9416 2017-08-18 Yao Qi <yao.qi@linaro.org>
9418 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9419 instead of exception_fprintf and printf_filtered.
9421 2017-08-18 Yao Qi <yao.qi@linaro.org>
9423 * selftest.c (register_self_test): Rename it to
9424 selftests::register_test.
9425 (run_self_tests): selftest::run_tests.
9426 * selftest.h: Update declarations.
9427 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9428 selftests::register_test_foreach_arch.
9429 * selftest-arch.h: Update declaration.
9430 * aarch64-tdep.c: Update.
9431 * arm-tdep.c: Likewise.
9432 * disasm-selftests.c: Likewise.
9433 * dwarf2loc.c: Likewise.
9434 * dwarf2-frame.c: Likewise.
9435 * findvar.c: Likewise.
9436 * gdbarch-selftests.c: Likewise.
9437 * maint.c (maintenance_selftest): Likewise.
9438 * regcache.c: Likewise.
9439 * rust-exp.y: Likewise.
9440 * selftest-arch.c: Likewise.
9441 * unittests/environ-selftests.c: Likewise.
9442 * unittests/function-view-selftests.c: Likewise.
9443 * unittests/offset-type-selftests.c: Likewise.
9444 * unittests/optional-selftests.c: Likewise.
9445 * unittests/scoped_restore-selftests.c: Likewise.
9446 * utils-selftests.c: Likewise.
9448 2017-08-17 Pedro Alves <palves@redhat.com>
9450 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9453 2017-08-17 Pedro Alves <palves@redhat.com>
9455 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9457 (reset_die_in_process): Delete, replaced by ...
9458 (process_die_scope): ... this new class. Make it responsible for
9459 freeing cu->line_header too.
9460 (process_die): Use process_die_scope.
9461 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9462 cu->line_header_die_owner. Don't release the line header if it's
9464 (setup_type_unit_groups): Make the CU/DIE own the line header.
9465 Don't release the line header here.
9467 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9469 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9471 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9473 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9476 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9478 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9481 2017-08-15 Stafford Horne <shorne@gmail.com>
9483 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9485 2017-08-15 Stafford Horne <shorne@gmail.com>
9487 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9489 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9492 * infcmd.c (unset_environment_command): Use the 'clear' method on
9493 the environment instead of resetting it.
9495 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9497 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9500 2017-08-14 Tom Tromey <tom@tromey.com>
9502 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9503 (print_binary_chars): Likewise.
9504 (BITS_IN_BYTES): Remove.
9506 2017-08-14 Tom Tromey <tom@tromey.com>
9509 * valprint.c (LOW_ZERO): Change value to 034.
9510 (print_octal_chars): Add static_asserts for octal constants.
9511 * printcmd.c (print_scalar_formatted): Add 'd' case.
9513 2017-08-11 Tom Tromey <tom@tromey.com>
9515 * symfile.c (add_symbol_file_command): Use std::vector.
9517 2017-08-14 Tom Tromey <tom@tromey.com>
9519 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9520 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9522 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9524 2017-08-11 Pedro Alves <palves@redhat.com>
9526 * infrun.c (process_event_stop_test): Adjust
9527 function_name_is_marked_for_skip call.
9528 * skip.c: Include <list>.
9529 (skiplist_entry): Make it a class with private fields, and
9531 (skiplist_entry_chain): Delete.
9532 (skiplist_entries): New.
9533 (skiplist_entry_count): Delete.
9534 (highest_skiplist_entry_num): New.
9535 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9536 (add_skiplist_entry): Delete.
9537 (skiplist_entry::skiplist_entry): New.
9538 (skiplist_entry::add_entry): New.
9539 (skip_file_command, skip_function): Adjust.
9540 (compile_skip_regexp): Delete.
9541 (skip_command): Don't compile regexp here. Adjust to use
9542 skiplist_entry::add_entry.
9543 (skip_info): Adjust to use range-for and getters.
9544 (skip_enable_command, skip_disable_command): Adjust to use
9545 range-for and setters.
9546 (skip_delete_command): Adjust to use std::list.
9547 (add_skiplist_entry): Delete.
9548 (skip_file_p): Delete, refactored as ...
9549 (skiplist_entry::do_skip_file_p): ... this new method.
9550 (skip_gfile_p): Delete, refactored as ...
9551 (skiplist_entry::do_gskip_file_p): ... this new method.
9552 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9553 (skiplist_entry::skip_function_p): ... this new method.
9554 (function_name_is_marked_for_skip): Now returns bool, and takes
9555 the function sal by const reference. Adjust to use range-for and
9556 skiplist_entry methods.
9557 (_initialize_step_skip): Remove references to
9558 skiplist_entry_chain, skiplist_entry_count.
9559 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9560 takes the function sal by const reference.
9562 2017-08-11 Yao Qi <yao.qi@linaro.org>
9564 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9565 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9566 (dwarf2_frame_cache):
9567 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9568 RETURN_MASK_ALL and set *this_case to NULL.
9569 * frame-unwind.h: Update comments.
9571 2017-08-11 Yao Qi <yao.qi@linaro.org>
9573 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9574 (dwarf2_frame_state_copy_regs): Remove.
9575 (dwarf2_frame_state_free_regs): Remove.
9576 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9577 (dwarf2_restore_rule): Call method .alloc_regs instead of
9578 dwarf2_frame_state_alloc_regs.
9579 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9580 constructor. Call std::move.
9581 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9582 (dwarf2_frame_cache): Likewise.
9584 [GDB_SELF_TEST]: Include selftest.h and
9586 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9587 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9588 execute_cfa_program_test.
9590 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9591 copy ctor, assignment operator, move assignment.
9592 <alloc_regs>: New method.
9594 (struct dwarf2_frame_state): Delete dtor.
9595 (dwarf2_frame_state_alloc_regs): Remove declaration.
9596 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9597 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9599 2017-08-11 Yao Qi <yao.qi@linaro.org>
9601 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9602 (dwarf2_frame_state::dwarf2_frame_state): New.
9603 (dwarf2_frame_state::~dwarf2_frame_state): New.
9604 (dwarf2_fetch_cfa_info): Update.
9605 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9606 rather than a pointer. Update code.
9607 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9609 <data_align, code_align, retaddr_column>: Change them to const.
9610 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9613 2017-08-11 Yao Qi <yao.qi@linaro.org>
9615 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9616 <loc.exp>: New field.
9617 * dwarf2-frame.c (execute_cfa_program): Update.
9618 (dwarf2_frame_prev_register): Update.
9620 2017-08-10 Pedro Alves <palves@redhat.com>
9622 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9624 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9626 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9627 (fbsd_pending_children): Use std::list.
9628 (fbsd_remember_child): Likewise.
9629 (fbsd_is_child_pending): Likewise.
9630 (fbsd_pending_vfork_done): Use std::forward_list.
9631 (fbsd_add_vfork_done): Likewise.
9632 (fbsd_is_vfork_done_pending): Likewise.
9633 (fbsd_next_vfork_done): Likewise.
9635 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9637 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9638 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9639 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9641 (fbsd_xfer_partial): Use gdb::byte_vector.
9642 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9644 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9646 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9648 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9650 2017-08-09 Tom Tromey <tom@tromey.com>
9652 * skip.c (skiplist_entry): New constructor.
9653 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9654 (skiplist_entry::file_is_glob): Now bool.
9655 (skiplist_entry::file, skiplist_entry::function): Now
9657 (make_skip_entry): Return a unique_ptr. Use new.
9658 (free_skiplist_entry, free_skiplist_entry_cleanup)
9659 (make_free_skiplist_entry_cleanup): Remove.
9660 (skip_command, skip_disable_command, add_skiplist_entry)
9661 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9662 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9663 (function_name_is_marked_for_skip): Update.
9664 (skip_delete_command): Update. Use delete.
9666 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9668 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9669 (aarch64_linux_core_read_description): New function.
9670 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9672 2017-08-09 Pedro Alves <palves@redhat.com>
9674 * cp-name-parser.y (cp_comp_to_string): Return a
9675 gdb::unique_xmalloc_ptr<char>.
9676 * cp-support.c (replace_typedefs_qualified_name)
9677 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9678 (cp_canonicalize_string_full): Use op= instead of explicit
9680 (cp_class_name_from_physname, method_name_from_physname)
9681 (cp_func_name, cp_remove_params): Adjust to use
9682 gdb::unique_xmalloc_ptr<char>.
9683 * cp-support.h (cp_comp_to_string): Return a
9684 gdb::unique_xmalloc_ptr<char>.
9685 * python/py-type.c (typy_lookup_type): Adjust to use
9686 gdb::unique_xmalloc_ptr<char>.
9688 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9690 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9692 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9693 Yao Qi <yao.qi@linaro.org>
9695 * cp-support.c (cp_canonicalize_string_full): Use
9696 gdb::unique_xmalloc_ptr<char>.
9697 (cp_canonicalize_string): Likewise.
9699 2017-08-09 Yao Qi <yao.qi@linaro.org>
9701 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9702 * regformats/i386/amd64-avx-avx512.dat: Remove.
9703 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9704 * regformats/i386/amd64-avx-mpx.dat:Remove.
9705 * regformats/i386/amd64-avx.dat: Remove.
9706 * regformats/i386/amd64-mpx.dat: Remove.
9707 * regformats/i386/i386-avx-avx512.dat: Remove.
9708 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9709 * regformats/i386/i386-avx-mpx.dat: Remove.
9710 * regformats/i386/i386-mmx.dat: Remove.
9711 * regformats/i386/i386-mpx.dat: Remove.
9713 2017-08-09 Yao Qi <yao.qi@linaro.org>
9715 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9716 * amd64-tdep.c: Don't include features/i386/x32*.c.
9717 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9719 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9720 and i386/x32-avx-avx512.
9721 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9723 * features/i386/x32-avx-avx512.c: Removed.
9724 * features/i386/x32-avx-avx512.xml: Removed.
9725 * features/i386/x32-avx.c: Removed.
9726 * features/i386/x32-avx.xml: Removed.
9727 * features/i386/x32.c: Removed.
9728 * features/i386/x32.xml: Removed.
9729 * regformats/i386/x32-avx-avx512.dat: Removed.
9730 * regformats/i386/x32-avx.dat: Removed.
9731 * regformats/i386/x32.dat: Removed.
9733 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9735 PR breakpoints/21886
9736 * mem-break.c (default_memory_insert_breakpoint): Use
9737 `->placed_address' rather than `->reqstd_address' for the
9738 breakpoint location.
9740 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9742 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9745 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9747 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9748 a union of `tdep_info', `tdesc_data' and `id'.
9749 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9750 rather than `info.tdep_info'.
9751 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9752 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9753 * i386-tdep.c (i386_gdbarch_init): Likewise.
9754 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9755 * mips-tdep.c (mips_gdbarch_init): Likewise.
9756 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9757 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9758 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9760 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9762 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9763 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9765 * spu-tdep.c (spu_gdbarch_init): Likewise.
9766 * gdbarch.h: Regenerate.
9768 2017-08-07 Leszek Swirski <leszeks@google.com>
9771 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9773 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9775 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9776 (gdbsim_open): Rename gdb_argv args object to argv.
9778 2017-08-05 Tom Tromey <tom@tromey.com>
9780 * compile/compile-object-load.c (compile_object_load): Use
9781 gdb::unique_xmalloc_ptr.
9782 * cli/cli-dump.c (scan_filename): Rename from
9783 scan_filename_with_cleanup. Change return type.
9784 (scan_expression): Rename from scan_expression_with_cleanup.
9786 (dump_memory_to_file, dump_value_to_file, restore_command):
9787 Use gdb::unique_xmalloc_ptr. Update.
9788 * cli/cli-cmds.c (find_and_open_script): Use
9789 gdb::unique_xmalloc_ptr.
9790 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9791 * symmisc.c (maintenance_print_symbols)
9792 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9793 * symfile.c (symfile_bfd_open, generic_load)
9794 (add_symbol_file_command, remove_symbol_file_command): Use
9795 gdb::unique_xmalloc_ptr.
9796 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9797 * psymtab.c (maintenance_print_psymbols): Use
9798 gdb::unique_xmalloc_ptr.
9799 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9800 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9801 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9802 (reload_shared_libraries_1): Likewise.
9804 2017-08-05 Tom Tromey <tom@tromey.com>
9806 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9807 (rust_op_vector, rust_set_vector): New typedefs.
9808 (current_parser): New global.
9809 (work_obstack): Change to pointer type. Update all users.
9810 (rust_ast, pstate): Remove globals.
9811 (struct rust_parser): New.
9812 (%union) <params, field_inits>: Change type.
9813 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9814 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9815 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9816 (convert_params_to_types, convert_params_to_expression): Change
9818 (ast_string): Change type of "fields".
9819 (rust_parse): Make a rust_parser. Remove cleanups.
9820 (rust_lex_tests): Make and install an auto_obstack.
9822 2017-08-04 Yao Qi <yao.qi@linaro.org>
9824 * configure.srv (ipa_x32_linux_regobj): New.
9825 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9826 instead of X86_TDESC_AVX512.
9827 (initialize_low_tracepoint): Call
9828 init_registers_x32_avx_avx512_linux.
9830 2017-08-04 Yao Qi <yao.qi@linaro.org>
9832 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9834 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9836 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9838 2017-08-03 Tom Tromey <tom@tromey.com>
9840 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9842 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9844 2017-08-03 Tom Tromey <tom@tromey.com>
9846 * python/py-param.c (compute_enum_values): Use gdb_argv.
9848 2017-08-03 Tom Tromey <tom@tromey.com>
9850 * utils.h (struct gdb_argv_deleter): New.
9851 (gdb_argv): New class.
9852 * utils.c (gdb_argv::reset): New method.
9853 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9854 * tracefile.c (tsave_command): Use gdb_argv.
9855 * top.c (new_ui_command): Use gdb_argv.
9856 * symmisc.c (maintenance_print_symbols)
9857 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9858 * symfile.c (symbol_file_command, generic_load)
9859 (remove_symbol_file_command): Use gdb_argv.
9860 * stack.c (backtrace_command): Use gdb_argv.
9861 * source.c (add_path, show_substitute_path_command)
9862 (unset_substitute_path_command, set_substitute_path_command):
9864 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9865 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9866 * remote.c (extended_remote_run, remote_put_command)
9867 (remote_get_command, remote_delete_command): Use gdb_argv.
9868 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9869 (gdbsim_open): Use gdb_argv.
9870 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9871 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9872 * procfs.c (procfs_info_proc): Use gdb_argv.
9873 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9874 * infrun.c (handle_command): Use gdb_argv.
9875 * inferior.c (add_inferior_command, clone_inferior_command):
9877 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9878 * exec.c (exec_file_command): Use gdb_argv.
9879 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9880 * compile/compile.c (build_argc_argv): Use gdb_argv.
9882 2017-08-03 Tom Tromey <tom@tromey.com>
9884 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9886 2017-08-03 Tom Tromey <tom@tromey.com>
9888 * python/python.c (compute_python_string): Return std::string.
9889 (gdbpy_eval_from_control_command): Update.
9890 (do_start_initialization): Use std::string.
9891 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9893 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9896 2017-08-03 Tom Tromey <tom@tromey.com>
9898 * top.h (do_restore_instream_cleanup): Remove.
9899 * top.c (do_restore_instream_cleanup): Remove.
9900 (read_command_file): Use scoped_restore.
9901 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9903 2017-08-03 Tom Tromey <tom@tromey.com>
9905 * cli/cli-script.c (execute_user_command)
9906 (execute_control_command): Use scoped_restore.
9908 2017-08-03 Tom Tromey <tom@tromey.com>
9910 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9911 (execute_user_command): Remove user_call_depth; use
9912 user_args_stack's size instead.
9914 2017-08-03 Tom Tromey <tom@tromey.com>
9916 * top.h (in_user_command): Remove.
9917 * top.c (in_user_command): Remove.
9918 * cli/cli-script.c (do_restore_user_call_depth)
9919 (execute_user_command): Update.
9921 2017-08-03 Tom Tromey <tom@tromey.com>
9923 * valops.c (search_struct_method): Use gdb::byte_vector.
9924 * valarith.c (value_concat): Use std::vector.
9925 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9926 (simple_search_memory): Likewise.
9927 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9928 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9929 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9930 * elfread.c (elf_rel_plt_read): Use std::string.
9931 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9932 * cli/cli-dump.c (restore_section_callback): Use
9935 2017-08-03 Tom Tromey <tom@tromey.com>
9937 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9939 2017-08-03 Tom Tromey <tom@tromey.com>
9941 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9942 (tui_register_format): Use scoped_restore.
9944 2017-08-03 Tom Tromey <tom@tromey.com>
9946 * reverse.c (exec_direction_default): Remove.
9947 (exec_reverse_once): Use scoped_restore.
9948 * remote.c (restore_remote_timeout): Remove.
9949 (remote_flash_erase, remote_flash_write, remote_flash_done)
9950 (readchar, remote_serial_write): Use scoped_restore.
9951 * cli/cli-script.c (struct source_cleanup_lines_args)
9952 (source_cleanup_lines): Remove.
9953 (script_from_file): Use scoped_restore.
9954 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9955 (source_command): Use scoped_restore.
9957 2017-08-03 Tom Tromey <tom@tromey.com>
9959 * utils.h (make_cleanup_free_so): Remove.
9960 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9961 * solist.h (struct so_deleter): New.
9962 (so_list_up): New typedef.
9963 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9965 2017-08-03 Tom Tromey <tom@tromey.com>
9967 * utils.h (make_cleanup_restore_current_language): Remove.
9968 * utils.c (do_restore_current_language)
9969 (make_cleanup_restore_current_language): Remove.
9970 * parse.c (parse_exp_in_context_1)
9971 (parse_expression_with_language): Use
9972 scoped_restore_current_language.
9973 * mi/mi-main.c (mi_cmd_execute): Use
9974 scoped_restore_current_language.
9975 * language.h (scoped_restore_current_language): New class.
9977 2017-08-03 Tom Tromey <tom@tromey.com>
9979 * compile/compile.c (cleanup_unlink_file): Remove.
9980 (compile_to_object): Use gdb::unlinker.
9981 (eval_compile_command): Likewise.
9983 2017-08-03 Tom Tromey <tom@tromey.com>
9985 * utils.h (make_cleanup_fclose): Remove.
9986 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9988 2017-08-03 Tom Tromey <tom@tromey.com>
9990 * top.c (open_terminal_stream): Return gdb_file_up.
9991 (new_ui_command): Update.
9993 2017-08-03 Tom Tromey <tom@tromey.com>
9995 * source.c (print_source_lines_base, forward_search_command)
9996 (reverse_search_command): Use gdb_file_up.
9998 2017-08-03 Tom Tromey <tom@tromey.com>
10000 * fbsd-nat.c (fbsd_find_memory_regions): Update.
10002 2017-08-03 Tom Tromey <tom@tromey.com>
10004 * cli/cli-cmds.c (find_and_open_script): Change return type.
10005 Remove "streamp" and "full_path" parameters.
10006 (source_script_with_search): Update.
10007 * auto-load.c (source_script_file): Update.
10008 * cli/cli-cmds.h (find_and_open_script): Change type.
10009 (open_script): New struct.
10011 2017-08-03 Tom Tromey <tom@tromey.com>
10013 * xml-support.c (xml_fetch_content_from_file): Update.
10014 * ui-file.c (stdio_file::open): Update.
10015 * tracefile-tfile.c (tfile_start): Update.
10016 * remote.c (remote_file_put, remote_file_get): Update.
10017 * nat/linux-procfs.c (linux_proc_get_int)
10018 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
10019 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
10020 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
10021 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
10022 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
10023 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
10024 * linux-nat.c (linux_proc_pending_signals): Update.
10025 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
10026 (file_closer): Remove.
10027 * compile/compile.c (compile_to_object): Update.
10028 * common/filestuff.h (struct gdb_file_deleter): New.
10029 (gdb_file_up): New typedef.
10030 (gdb_fopen_cloexec): Change return type.
10031 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
10032 * cli/cli-dump.c (fopen_with_cleanup): Remove.
10033 (dump_binary_file, restore_binary_file): Update.
10034 * auto-load.c (auto_load_objfile_script_1): Update.
10036 2017-08-03 Tom Tromey <tom@tromey.com>
10038 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
10039 (info_static_tracepoint_markers_command): Likewise.
10040 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
10041 * skip.c (skip_info): Use ui_out_emit_table.
10042 * progspace.c (print_program_space): Use ui_out_emit_table.
10043 * osdata.c (info_osdata): Use ui_out_emit_table.
10044 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
10046 * linux-thread-db.c (info_auto_load_libthread_db): Use
10048 * inferior.c (print_inferior): Use ui_out_emit_table.
10049 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
10050 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
10051 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
10052 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
10053 * ui-out.h (class ui_out_emit_table): New.
10055 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
10057 * mips-tdep.c (mips_fpu_type_str): New function.
10058 (mips_dump_tdep): Call it.
10060 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
10062 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
10065 2017-07-31 Xavier Roirand <roirand@adacore.com>
10067 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10069 2017-07-27 Xavier Roirand <roirand@adacore.com>
10071 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
10073 2017-07-26 Yao Qi <yao.qi@linaro.org>
10075 * cli/cli-cmds.c (maintenancechecklist): New variable.
10076 * gdbcmd.h (maintenancechecklist): Declare it.
10077 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
10078 Call i386_linux_read_description with different masks.
10079 * maint.c (maintenance_check_command): New function.
10080 (_initialize_maint_cmds): Call add_prefix_cmd.
10081 * target-descriptions.c (tdesc_reg): override operator != and ==.
10082 (tdesc_type): Likewise.
10083 (tdesc_feature): Likewise.
10084 (target_desc): Likewise.
10085 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
10086 (maintenance_check_xml_descriptions): New function.
10087 (_initialize_target_descriptions) Add command "xml-descriptions".
10088 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
10090 2017-07-26 Yao Qi <yao.qi@linaro.org>
10092 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
10093 Include features/i386/32bit-*.c.
10094 (i386_linux_read_description): Generate target description if it
10096 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
10098 * features/i386/32bit-linux.c: Re-generated.
10099 * features/i386/32bit-sse.c: Likewise.
10100 * target-descriptions.c (print_c_feature::visit): Print code to
10101 set register number if needed.
10102 (print_c_feature) <m_next_regnum>: New field.
10104 2017-07-26 Yao Qi <yao.qi@linaro.org>
10106 * features/Makefile (CFILES): Rename with TDESC_CFILES.
10107 (FEATURE_XMLFILES): New.
10108 (FEATURE_CFILES): New.
10110 (clean-cfiles): Remove generated c files.
10111 * features/i386/32bit-avx.c: Generated.
10112 * features/i386/32bit-avx512.c: Generated.
10113 * features/i386/32bit-core.c: Generated.
10114 * features/i386/32bit-linux.c: Generated.
10115 * features/i386/32bit-mpx.c: Generated.
10116 * features/i386/32bit-pkeys.c: Generated.
10117 * features/i386/32bit-sse.c: Generated.
10118 * target-descriptions.c: Include algorithm.
10119 (tdesc_element_visitor): Add method visit_end.
10120 (print_c_tdesc): Implement visit_end.
10121 (print_c_tdesc:: m_filename_after_features): Move it to
10123 (print_c_feature): New class.
10124 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
10125 name starts with "i386/32bit-".
10127 2017-07-26 Yao Qi <yao.qi@linaro.org>
10129 * target-descriptions.c (tdesc_element_visitor): New class.
10130 (tdesc_element): New class.
10131 (tdesc_reg): Inherit from tdesc_element.
10132 (tdesc_reg::accept): New function.
10133 (tdesc_type): Inherit from tdesc_element.
10134 (tdesc_type::accept): New function.
10135 (tdesc_feature): Inherit from tdesc_element.
10136 (tdesc_feature::accept): New function.
10137 (target_desc): Inherit from tdesc_element.
10138 (target_desc::target_desc): New.
10139 (target_desc::~target_desc): New.
10140 (target_desc::accept): New.
10141 (allocate_target_description): Use new.
10142 (free_target_description): Use delete.
10143 (print_c_tdesc): New class.
10144 (maint_print_c_tdesc_cmd): Adjust.
10146 * features/aarch64.c: Re-generated.
10147 * features/arc-arcompact.c: Re-generated.
10148 * features/arc-v2.c: Re-generated.
10149 * features/arm/arm-with-iwmmxt.c: Re-generated.
10150 * features/arm/arm-with-m.c: Re-generated.
10151 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
10152 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
10153 * features/arm/arm-with-neon.c: Re-generated.
10154 * features/arm/arm-with-vfpv2.c: Re-generated.
10155 * features/arm/arm-with-vfpv3.c: Re-generated.
10156 * features/i386/amd64-avx-avx512.c: Re-generated.
10157 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10158 * features/i386/amd64-avx.c: Re-generated.
10159 * features/i386/amd64-avx-linux.c: Re-generated.
10160 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
10161 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10162 * features/i386/amd64-avx-mpx.c: Re-generated.
10163 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
10164 * features/i386/amd64.c: Re-generated.
10165 * features/i386/amd64-linux.c: Re-generated.
10166 * features/i386/amd64-mpx.c: Re-generated.
10167 * features/i386/amd64-mpx-linux.c: Re-generated.
10168 * features/i386/i386-avx-avx512.c: Re-generated.
10169 * features/i386/i386-avx-avx512-linux.c: Re-generated.
10170 * features/i386/i386-avx.c: Re-generated.
10171 * features/i386/i386-avx-linux.c: Re-generated.
10172 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
10173 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
10174 * features/i386/i386-avx-mpx.c: Re-generated.
10175 * features/i386/i386-avx-mpx-linux.c: Re-generated.
10176 * features/i386/i386.c: Re-generated.
10177 * features/i386/i386-linux.c: Re-generated.
10178 * features/i386/i386-mmx.c: Re-generated.
10179 * features/i386/i386-mmx-linux.c: Re-generated.
10180 * features/i386/i386-mpx.c: Re-generated.
10181 * features/i386/i386-mpx-linux.c: Re-generated.
10182 * features/i386/x32-avx-avx512.c: Re-generated.
10183 * features/i386/x32-avx-avx512-linux.c: Re-generated.
10184 * features/i386/x32-avx.c: Re-generated.
10185 * features/i386/x32-avx-linux.c: Re-generated.
10186 * features/i386/x32.c: Re-generated.
10187 * features/i386/x32-linux.c: Re-generated.
10188 * features/microblaze.c: Re-generated.
10189 * features/microblaze-with-stack-protect.c: Re-generated.
10190 * features/mips64-dsp-linux.c: Re-generated.
10191 * features/mips64-linux.c: Re-generated.
10192 * features/mips-dsp-linux.c: Re-generated.
10193 * features/mips-linux.c: Re-generated.
10194 * features/nds32.c: Re-generated.
10195 * features/nios2.c: Re-generated.
10196 * features/nios2-linux.c: Re-generated.
10197 * features/rs6000/powerpc-32.c: Re-generated.
10198 * features/rs6000/powerpc-32l.c: Re-generated.
10199 * features/rs6000/powerpc-403.c: Re-generated.
10200 * features/rs6000/powerpc-403gc.c : Re-generated.
10201 * features/rs6000/powerpc-405.c: Re-generated.
10202 * features/rs6000/powerpc-505.c: Re-generated.
10203 * features/rs6000/powerpc-601.c: Re-generated.
10204 * features/rs6000/powerpc-602.c: Re-generated.
10205 * features/rs6000/powerpc-603.c: Re-generated.
10206 * features/rs6000/powerpc-604.c: Re-generated.
10207 * features/rs6000/powerpc-64.c: Re-generated.
10208 * features/rs6000/powerpc-64l.c: Re-generated.
10209 * features/rs6000/powerpc-7400.c: Re-generated.
10210 * features/rs6000/powerpc-750.c: Re-generated.
10211 * features/rs6000/powerpc-860.c: Re-generated.
10212 * features/rs6000/powerpc-altivec32.c: Re-generated.
10213 * features/rs6000/powerpc-altivec32l.c: Re-generated.
10214 * features/rs6000/powerpc-altivec64.c: Re-generated.
10215 * features/rs6000/powerpc-altivec64l.c: Re-generated.
10216 * features/rs6000/powerpc-cell32l.c: Re-generated.
10217 * features/rs6000/powerpc-cell64l.c: Re-generated.
10218 * features/rs6000/powerpc-e500.c: Re-generated.
10219 * features/rs6000/powerpc-e500l.c: Re-generated.
10220 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
10221 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
10222 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
10223 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
10224 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
10225 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
10226 * features/rs6000/powerpc-vsx32.c: Re-generated.
10227 * features/rs6000/powerpc-vsx32l.c: Re-generated.
10228 * features/rs6000/powerpc-vsx64.c: Re-generated.
10229 * features/rs6000/powerpc-vsx64l.c: Re-generated.
10230 * features/rs6000/rs6000.c: Re-generated.
10231 * features/s390-linux32.c: Re-generated.
10232 * features/s390-linux32v1.c: Re-generated.
10233 * features/s390-linux32v2.c: Re-generated.
10234 * features/s390-linux64.c: Re-generated.
10235 * features/s390-linux64v1.c: Re-generated.
10236 * features/s390-linux64v2.c: Re-generated.
10237 * features/s390-te-linux64.c: Re-generated.
10238 * features/s390-tevx-linux64.c: Re-generated.
10239 * features/s390-vx-linux64.c: Re-generated.
10240 * features/s390x-linux64.c: Re-generated.
10241 * features/s390x-linux64v1.c: Re-generated.
10242 * features/s390x-linux64v2.c: Re-generated.
10243 * features/s390x-te-linux64.c: Re-generated.
10244 * features/s390x-tevx-linux64.c: Re-generated.
10245 * features/s390x-vx-linux64.c: Re-generated.
10246 * features/sparc/sparc32-solaris.c: Re-generated.
10247 * features/sparc/sparc64-solaris.c: Re-generated.
10248 * features/tic6x-c62x.c: Re-generated.
10249 * features/tic6x-c62x-linux.c: Re-generated.
10250 * features/tic6x-c64x.c: Re-generated.
10251 * features/tic6x-c64x-linux.c: Re-generated.
10252 * features/tic6x-c64xp.c: Re-generated.
10253 * features/tic6x-c64xp-linux.c: Re-generated.
10255 2017-07-26 Yao Qi <yao.qi@linaro.org>
10257 * i386-linux-tdep.c (i386_linux_read_description): New function.
10258 (i386_linux_core_read_description): Call
10259 i386_linux_read_description.
10260 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10261 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10262 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10263 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10264 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10265 * x86-linux-nat.c (x86_linux_read_description): Call
10266 i386_linux_read_description.
10268 2017-07-26 Yao Qi <yao.qi@linaro.org>
10270 * NEWS: Mention it.
10271 * features/Makefile (%.c: %.xml): Pass the xml file name to
10272 command "maint print c-tdesc".
10273 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10276 2017-07-26 Yao Qi <yao.qi@linaro.org>
10278 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10279 in-class initialization.
10280 (tdesc_create_feature): Call new instead of XCNEW.
10281 (free_target_description): Ue delete.
10283 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10285 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10287 2017-07-25 Yao Qi <yao.qi@linaro.org>
10289 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10291 (amd64_x32_init_abi): Likewise.
10292 * amd64-tdep.h (amd64_init_abi): Update declaration.
10293 (amd64_x32_init_abi): Likewise.
10295 2017-07-25 Yao Qi <yao.qi@linaro.org>
10298 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10299 condition for FPSCR.
10300 (arm_linux_store_inferior_registers): Likewise.
10302 2017-07-22 Tom Tromey <tom@tromey.com>
10304 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10305 <syscalls_counts>: Now a std::vector.
10306 (get_catch_syscall_inferior_data): Use "new".
10307 (catch_syscall_inferior_data_cleanup): Use "delete".
10308 (insert_catch_syscall, remove_catch_syscall)
10309 (clear_syscall_counts): Update.
10311 2017-07-22 Tom Tromey <tom@tromey.com>
10313 * break-catch-syscall.c (syscall_catchpoint)
10314 <syscalls_to_be_caught>: Now a std::vector<int>
10315 (~syscall_catchpoint): Remove.
10316 (insert_catch_syscall, remove_catch_syscall)
10317 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10318 (print_mention_catch_syscall, print_recreate_catch_syscall):
10320 (create_syscall_event_catchpoint): Change type of "filter"
10322 (catch_syscall_split_args): Return a std::vector.
10323 (catch_syscall_command_1, catching_syscall_number_1): Update.
10325 2017-07-22 Tom Tromey <tom@tromey.com>
10327 * break-catch-throw.c (struct exception_catchpoint)
10328 <exception_rx>: Now a std::string.
10329 (~exception_catchpoint): Remove.
10330 (print_one_detail_exception_catchpoint): Update.
10331 (handle_gnu_v3_exceptions): Change type of except_rx.
10332 (extract_exception_regexp): Return a std::string.
10333 (catch_exception_command_1): Update.
10335 2017-07-22 Tom Tromey <tom@tromey.com>
10337 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10338 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10340 <catch_all>: Now a bool.
10341 (~signal_catchpoint): Remove.
10342 (signal_catchpoint_insert_location)
10343 (signal_catchpoint_remove_location)
10344 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10345 (signal_catchpoint_print_mention)
10346 (signal_catchpoint_print_recreate)
10347 (signal_catchpoint_explains_signal): Update.
10348 (create_signal_catchpoint): Change type of "filter" and
10350 (catch_signal_split_args): Return a std::vector. Change type of
10352 (catch_signal_command): Update.
10354 2017-07-20 Pedro Alves <palves@redhat.com>
10356 * ada-lang.c (ada_language_defn): Make extern.
10357 (_initialize_ada_language): Remove add_language call.
10358 * c-lang.c (c_language_defn, cplus_language_defn)
10359 (asm_language_defn, minimal_language_defn): Make extern.
10360 (_initialize_c_language): Delete.
10361 * completer.c (compare_cstrings): Delete, moved to utils.h.
10362 * d-lang.c (d_language_defn): Make extern.
10363 (_initialize_d_language): Remove add_language calls.
10364 * defs.h (enum language): Add comment.
10365 * f-lang.c (f_language_defn): Make extern.
10366 (_initialize_f_language): Remove add_language call.
10367 * go-lang.c (go_language_defn): Make extern.
10368 (_initialize_go_language): Remove add_language call.
10369 * language.c: Include <algorithm>.
10370 (languages): Redefine as const array.
10371 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10372 (set_language_command): Handle "local". Use for-range loop.
10373 (set_language): Remove loop.
10374 (language_enum): Rewrite.
10375 (language_def, language_str): Remove loops.
10376 (add_language): Delete.
10377 (add_set_language_command): New, based on add_languages.
10378 (skip_language_trampoline): Adjust.
10379 (local_language_defn): Delete.
10380 (language_gdbarch_post_init): Adjust.
10381 (_initialize_language): Remove add_language calls. Call
10382 add_set_language_command.
10383 * language.h (add_language): Delete.
10384 (auto_language_defn)
10385 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10386 (asm_language_defn, c_language_defn, cplus_language_defn)
10387 (d_language_defn, f_language_defn, go_language_defn)
10388 (m2_language_defn, objc_language_defn, opencl_language_defn)
10389 (pascal_language_defn, rust_language_defn): Declare.
10390 * m2-lang.c (m2_language_defn): Make extern.
10391 (_initialize_m2_language): Remove add_language call.
10392 * objc-lang.c (objc_language_defn): Make extern.
10393 (_initialize_objc_language): Remove add_language call.
10394 * opencl-lang.c (opencl_language_defn): Make extern.
10395 (_initialize_opencl_language): Remove add_language call.
10396 * p-lang.c (pascal_language_defn): Make extern.
10397 (_initialize_pascal_language): Delete.
10398 * rust-lang.c (rust_language_defn): Make extern.
10399 (_initialize_rust_language): Delete.
10400 * utils.h (compare_cstrings): New static inline function.
10402 2017-07-20 Pedro Alves <palves@redhat.com>
10404 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10405 (get_var_value): Constify parameters.
10406 (get_int_var_value): Change prototype.
10407 (to_fixed_range_type): Adjust.
10408 * ada-lang.h (get_int_var_value): Change prototype.
10410 2017-07-20 Pedro Alves <palves@redhat.com>
10412 * dwarf2read.c (dw2_lookup_symbol): Use
10413 SYMBOL_MATCHES_SEARCH_NAME.
10414 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10416 2017-07-20 Pedro Alves <palves@redhat.com>
10418 * block.c (block_iter_name_step, block_iter_name_first)
10419 (block_iter_name_next): Delete.
10420 (block_lookup_symbol_primary): Adjust to use
10421 dict_iter_match_first/dict_iter_match_next.
10422 * block.h (block_iter_name_first, block_iter_name_next): Delete
10424 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10425 dict_iter_match_first/dict_iter_match_next.
10427 2017-07-20 Pedro Alves <palves@redhat.com>
10429 * cp-support.c (cp_find_first_component_aux): Add missing case for
10432 2017-07-18 David Blaikie <dblaikie@gmail.com>
10434 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10435 of dwo_cu's dwo_file.
10437 2017-07-18 Yao Qi <yao.qi@linaro.org>
10439 * remote.c (store_registers_using_G): Remove one line comment.
10441 2017-07-18 Yao Qi <yao.qi@linaro.org>
10443 * regcache.c (regcache_cpy): Simplify it.
10444 (regcache::cpy_no_passthrough): Remove it.
10445 * regcache.h (cpy_no_passthrough): Remove it.
10446 (regcache_dup, regcache_cpy): Update comments.
10448 2017-07-18 Pedro Alves <palves@redhat.com>
10450 * remote-sim.c (sim_command_completer): Adjust to work with a
10451 completion_tracker instead of a VEC.
10453 2017-07-17 Pedro Alves <palves@redhat.com>
10455 * completer.c (complete_source_filenames): New function.
10456 (complete_address_and_linespec_locations): New function.
10457 (location_completer): Use complete_address_and_linespec_locations.
10458 (completion_tracker::build_completion_result): Honor the tracker's
10459 request to suppress append.
10460 * completer.h (completion_tracker::suppress_append_ws)
10461 (completion_tracker::set_suppress_append_ws): New methods.
10462 (completion_tracker::m_suppress_append_ws): New field.
10463 (complete_source_filenames): New declaration.
10464 * linespec.c (linespec_complete_what): New.
10465 (struct ls_parser) <complete_what, completion_word,
10466 completion_quote_char, completion_quote_end, completion_tracker>:
10468 (string_find_incomplete_keyword_at_end): New.
10469 (linespec_lexer_lex_string): Record quote char. If in completion
10471 (linespec_lexer_consume_token): Advance the completion word point.
10472 (linespec_lexer_peek_token): Save/restore completion info.
10473 (save_stream_and_consume_token): New.
10474 (set_completion_after_number): New.
10475 (linespec_parse_basic): Set what to complete next depending on
10476 token. Handle function and label completions specially.
10477 (parse_linespec): Disable objc shortcut in completion mode. Set
10478 what to complete next depending on token type. Skip keyword if in
10480 (complete_linespec_component, linespec_complete): New.
10481 * linespec.h (linespec_complete): Declare.
10483 2017-07-17 Pedro Alves <palves@redhat.com>
10485 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10486 Handle 'operator<' / 'operator<<'.
10488 2017-07-17 Pedro Alves <palves@redhat.com>
10490 * completer.c (collect_explicit_location_matches): Handle
10492 (convert_explicit_location_to_linespec): New, factored out from
10494 (convert_explicit_location_to_sals): ... this.
10495 (complete_label): New.
10496 (linespec_complete_label, find_label_symbols_in_block): New.
10497 (find_label_symbols): Add completion_mode parameter and adjust to
10498 call find_label_symbols_in_block.
10499 * linespec.h (linespec_complete_label): Declare.
10501 2017-07-17 Pedro Alves <palves@redhat.com>
10503 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10504 complete_symbol_mode parameter.
10505 * cli/cli-cmds.c (complete_command): Get the completion result out
10506 of the handle_brkchars tracker if used a custom word point.
10507 * completer.c: Include "linespec.h".
10508 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10509 (advance_to_expression_complete_word_point): New.
10510 (completion_tracker::completes_to_completion_word): New.
10511 (complete_files_symbols): Pass down
10512 complete_symbol_mode::EXPRESSION.
10513 (explicit_options, probe_options): New.
10514 (collect_explicit_location_matches): Complete on the
10515 explictit_loc->foo instead of word. Use
10516 linespec_complete_function. Handle MATCH_LINE. Handle offering
10517 keyword and options completions.
10518 (backup_text_ptr): Delete.
10519 (skip_keyword): New.
10520 (complete_explicit_location): Remove 'word' parameter. Add
10521 language, quoted_arg_start and quoted_arg_end parameters.
10522 Rewrite, parsing left to right.
10523 (location_completer): Rewrite.
10524 (location_completer_handle_brkchars): New function.
10525 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10526 (enum complete_line_internal_reason): Adjust comments.
10527 (completion_tracker::discard_completions): New.
10528 (completer_handle_brkchars_func_for_completer): Handle
10529 location_completer.
10530 (gdb_custom_word_point_brkchars)
10531 (gdb_org_rl_basic_quote_characters): New.
10532 (gdb_completion_word_break_characters_throw)
10533 (completion_find_completion_word): Handle trackers that use a
10535 (completion_tracker::advance_custom_word_point_by): New.
10536 (completion_tracker::build_completion_result): Don't rely on
10537 readline appending the quote char.
10538 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10539 use a custom word point.
10540 (gdb_rl_attempted_completion_function): Restore
10541 rl_basic_quote_characters.
10542 * completer.h (class completion_tracker): Extend intro comment.
10543 (completion_tracker::set_quote_char)
10544 (completion_tracker::quote_char)
10545 (completion_tracker::set_use_custom_word_point)
10546 (completion_tracker::use_custom_word_point)
10547 (completion_tracker::custom_word_point)
10548 (completion_tracker::set_custom_word_point)
10549 (completion_tracker::advance_custom_word_point_by)
10550 (completion_tracker::completes_to_completion_word)
10551 (completion_tracker::discard_completions): New methods.
10552 (completion_tracker::m_quote_char)
10553 (completion_tracker::m_use_custom_word_point)
10554 (completion_tracker::m_custom_word_point): New fields.
10555 (advance_to_expression_complete_word_point): Declare.
10556 * f-lang.c (f_collect_symbol_completion_matches): Add
10557 complete_symbol_mode parameter.
10558 * language.h (struct language_defn)
10559 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10561 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10562 (linespec_complete_function): New function.
10563 (linespec_lexer_lex_keyword): Adjust.
10564 * linespec.h (linespec_keywords, linespec_complete_function): New
10566 * location.c (find_end_quote): New function.
10567 (explicit_location_lex_one): Add explicit_completion_info
10568 parameter. Save quoting info. Don't throw if being called for
10569 completion. Don't handle Ada operators here.
10570 (is_cp_operator, skip_op_false_positives, first_of)
10571 (explicit_location_lex_one_function): New function.
10572 (string_to_explicit_location): Replace 'dont_throw' parameter with
10573 an explicit_completion_info pointer parameter. Handle it. Don't
10574 use explicit_location_lex_one to lex function names. Use
10575 explicit_location_lex_one_function instead.
10576 * location.h (struct explicit_completion_info): New.
10577 (string_to_explicit_location): Replace 'dont_throw' parameter with
10578 an explicit_completion_info pointer parameter.
10579 * symtab.c (default_collect_symbol_completion_matches_break_on):
10580 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10581 (default_collect_symbol_completion_matches)
10582 (collect_symbol_completion_matches): Add complete_symbol_mode
10584 (collect_symbol_completion_matches_type): Pass down
10585 complete_symbol_mode::EXPRESSION.
10586 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10587 parameter. Handle LINESPEC mode.
10588 * symtab.h (complete_symbol_mode): New.
10589 (default_collect_symbol_completion_matches_break_on)
10590 (default_collect_symbol_completion_matches)
10591 (collect_symbol_completion_matches)
10592 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10595 2017-07-17 Pedro Alves <palves@redhat.com>
10597 * utils.c (enum class strncmp_iw_mode): New.
10598 (strcmp_iw): Rename to ...
10599 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10600 parameters. Handle them.
10602 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10603 * utils.h (strncmp_iw): Declare.
10604 (strcmp_iw): Move describing comments here.
10606 2017-07-17 Pedro Alves <palves@redhat.com>
10608 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10610 * c-typeprint.c (is_type_conversion_operator): Use
10612 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10613 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10615 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10616 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10617 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10618 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10620 * location.c: Include "cp-support.h".
10621 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10623 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10626 2017-07-17 Pedro Alves <palves@redhat.com>
10628 * cli/cli-cmds.c (complete_command): Use a completion tracker
10629 along with completion_find_completion_word for handle_brkchars
10631 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10632 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10633 (struct gdb_rl_completion_word_info): New.
10634 (gdb_rl_find_completion_word): New.
10635 (completion_find_completion_word): New.
10636 * completer.h (completion_find_completion_word): Declare.
10638 2017-07-17 Pedro Alves <palves@redhat.com>
10640 * ada-lang.c (symbol_completion_match): Adjust comments.
10641 (symbol_completion_add): Replace vector parameter with
10642 completion_tracker parameter. Use it.
10643 (ada_make_symbol_completion_list): Rename to...
10644 (ada_collect_symbol_completion_matches): ... this. Add
10645 completion_tracker parameter and use it.
10646 (ada_language_defn): Adjust.
10647 * break-catch-syscall.c (catch_syscall_completer): Adjust
10648 prototype and work with completion_tracker instead of VEC.
10649 * breakpoint.c (condition_completer): Adjust prototype and work
10650 with completion_tracker instead of VEC.
10651 * c-lang.c (c_language_defn, cplus_language_defn)
10652 (asm_language_defn, minimal_language_defn): Adjust to renames.
10653 * cli/cli-cmds.c (complete_command): Rework using
10654 completion_tracker. Catch exceptions when completing.
10655 * cli/cli-decode.c (integer_unlimited_completer)
10656 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10657 with completion_tracker instead of VEC.
10658 * command.h (struct completion_tracker): Forward declare.
10659 (completer_ftype, completer_handle_brkchars_ftype): Change
10661 (complete_on_cmdlist, complete_on_enum): Adjust.
10662 * completer.c: Include <algorithm>.
10663 (struct gdb_completer_state): New.
10664 (current_completion): New global.
10665 (readline_line_completion_function): Delete.
10666 (noop_completer, filename_completer)
10667 (filename_completer_handle_brkchars, complete_files_symbols)
10668 (linespec_location_completer): Adjust to work with a
10669 completion_tracker instead of a VEC.
10670 (string_or_empty): New.
10671 (collect_explicit_location_matches): Adjust to work with a
10672 completion_tracker instead of a VEC.
10673 (explicit_location_completer): Rename to ...
10674 (complete_explicit_location): ... this and adjust to work with a
10675 completion_tracker instead of a VEC.
10676 (location_completer): Adjust to work with a completion_tracker
10678 (add_struct_fields): Adjust to work with a completion_list instead
10680 (expression_completer): Rename to ...
10681 (complete_expression): ... this and adjust to work with a
10682 completion_tracker instead of a VEC. Use complete_files_symbols.
10683 (expression_completer): Reimplement on top of complete_expression.
10684 (symbol_completer): Adjust to work with a completion_tracker
10686 (enum complete_line_internal_reason): Add describing comments.
10687 (complete_line_internal_normal_command): Adjust to work with a
10688 completion_tracker instead of a VEC.
10689 (complete_line_internal): Rename to ...
10690 (complete_line_internal_1): ... this and adjust to work with a
10691 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10692 handle_brkchars phase.
10693 (new_completion_tracker): Delete.
10694 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10695 complete_line_internal_1.
10696 (free_completion_tracker): Delete.
10697 (INITIAL_COMPLETION_HTAB_SIZE): New.
10698 (completion_tracker::completion_tracker)
10699 (completion_tracker::~completion_tracker): New.
10700 (maybe_add_completion): Delete.
10701 (completion_tracker::maybe_add_completion)
10702 (completion_tracker::add_completion)
10703 (completion_tracker::add_completions): New.
10704 (throw_max_completions_reached_error): Delete.
10705 (complete_line): Adjust to work with a completion_tracker instead
10706 of a VEC. Don't create a completion_tracker_t or check for max
10708 (command_completer, command_completer_handle_brkchars)
10709 (signal_completer, reg_or_group_completer_1)
10710 (reg_or_group_completer, default_completer_handle_brkchars):
10711 Adjust to work with a completion_tracker.
10712 (gdb_completion_word_break_characters_throw): New.
10713 (gdb_completion_word_break_characters): Reimplement.
10714 (line_completion_function): Delete.
10715 (completion_tracker::recompute_lowest_common_denominator)
10716 (expand_preserving_ws)
10717 (completion_tracker::build_completion_result)
10718 (completion_result::completion_result)
10719 (completion_result::completion_result)
10720 (completion_result::~completion_result)
10721 (completion_result::completion_result)
10722 (completion_result::release_match_list, compare_cstrings)
10723 (completion_result::sort_match_list)
10724 (completion_result::reset_match_list)
10725 (gdb_rl_attempted_completion_function_throw)
10726 (gdb_rl_attempted_completion_function): New.
10727 * completer.h (completion_list, struct completion_result)
10728 (class completion_tracker): New.
10729 (complete_line): Add completion_tracker parameter.
10730 (readline_line_completion_function): Delete.
10731 (gdb_rl_attempted_completion_function): New.
10732 (noop_completer, filename_completer, expression_completer)
10733 (location_completer, symbol_completer, command_completer)
10734 (signal_completer, reg_or_group_completer): Update prototypes.
10735 (completion_tracker_t, new_completion_tracker)
10736 (make_cleanup_free_completion_tracker): Delete.
10737 (enum maybe_add_completion_enum): Delete.
10738 (maybe_add_completion): Delete.
10739 (throw_max_completions_reached_error): Delete.
10740 * corefile.c (complete_set_gnutarget): Adjust to work with a
10741 completion_tracker instead of a VEC.
10742 * cp-abi.c (cp_abi_completer): Adjust to work with a
10743 completion_tracker instead of a VEC.
10744 * d-lang.c (d_language_defn): Adjust.
10745 * disasm.c (disassembler_options_completer): Adjust to work with a
10746 completion_tracker instead of a VEC.
10747 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10748 (f_collect_symbol_completion_matches): ... this. Adjust to work
10749 with a completion_tracker instead of a VEC.
10750 (f_language_defn): Adjust.
10751 * go-lang.c (go_language_defn): Adjust.
10752 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10753 Adjust to work with a completion_tracker instead of a VEC.
10754 * infrun.c (handle_completer): Likewise.
10755 * interps.c (interpreter_completer): Likewise.
10756 * interps.h (interpreter_completer): Likewise.
10757 * language.c (unknown_language_defn, auto_language_defn)
10758 (local_language_defn): Adjust.
10759 * language.h (language_defn::la_make_symbol_completion_list):
10761 (language_defn::la_collect_symbol_completion_matches): ... this
10762 and adjust to work with a completion_tracker instead of a VEC.
10763 * m2-lang.c (m2_language_defn): Adjust.
10764 * objc-lang.c (objc_language_defn): Adjust.
10765 * opencl-lang.c (opencl_language_defn): Adjust.
10766 * p-lang.c (pascal_language_defn): Adjust.
10767 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10768 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10769 with a completion_tracker.
10770 * rust-lang.c (rust_language_defn): Adjust.
10771 * symtab.c (free_completion_list, do_free_completion_list)
10772 (return_val, completion_tracker): Delete.
10773 (completion_list_add_name, completion_list_add_symbol)
10774 (completion_list_add_msymbol, completion_list_objc_symbol)
10775 (completion_list_add_fields, add_symtab_completions): Add
10776 completion_tracker parameter and use it.
10777 (default_make_symbol_completion_list_break_on_1): Rename to...
10778 (default_collect_symbol_completion_matches_break_on): ... this.
10779 Add completion_tracker parameter and use it instead of allocating
10780 a completion tracker here.
10781 (default_make_symbol_completion_list_break_on): Delete old
10783 (default_make_symbol_completion_list): Delete.
10784 (default_collect_symbol_completion_matches): New.
10785 (make_symbol_completion_list): Delete.
10786 (collect_symbol_completion_matches): New.
10787 (make_symbol_completion_type): Rename to ...
10788 (collect_symbol_completion_matches_type): ... this. Add
10789 completion_tracker parameter and use it instead of VEC.
10790 (make_file_symbol_completion_list_1): Rename to...
10791 (collect_file_symbol_completion_matches): ... this. Add
10792 completion_tracker parameter and use it instead of VEC.
10793 (make_file_symbol_completion_list): Delete.
10794 (add_filename_to_list): Use completion_list instead of a VEC.
10795 (add_partial_filename_data::list): Now a completion_list.
10796 (make_source_files_completion_list): Work with a completion_list
10798 * symtab.h: Include "completer.h".
10799 (default_make_symbol_completion_list_break_on)
10800 (default_make_symbol_completion_list, make_symbol_completion_list)
10801 (make_symbol_completion_type, make_file_symbol_completion_list)
10802 (make_source_files_completion_list): Delete.
10803 (default_collect_symbol_completion_matches_break_on)
10804 (default_collect_symbol_completion_matches)
10805 (collect_symbol_completion_matches)
10806 (collect_symbol_completion_matches_type)
10807 (collect_file_symbol_completion_matches)
10808 (make_source_files_completion_list): New.
10809 * top.c (init_main): Don't install a rl_completion_entry_function
10810 hook. Install a rl_attempted_completion_function hook instead.
10811 * tui/tui-layout.c (layout_completer): Adjust to work with a
10812 completion_tracker.
10813 * tui/tui-regs.c (tui_reggroup_completer):
10814 * tui/tui-win.c (window_name_completer, focus_completer)
10815 (winheight_completer): Adjust to work with a completion_tracker.
10816 * value.c: Include "completer.h".
10817 (complete_internalvar): Adjust to work with a completion_tracker.
10818 * value.h (complete_internalvar): Likewise.
10820 2017-07-17 Pedro Alves <palves@redhat.com>
10822 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10824 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10825 comments to completer_ftype's declaration.
10826 <completer_handle_brkchars>: Change type to
10827 completer_handle_brkchars_ftype.
10828 * command.h (completer_ftype): Add describing comment and give
10829 names to parameters.
10830 (completer_ftype_void): Rename to ...
10831 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10832 (set_cmd_completer_handle_brkchars): Adjust.
10833 * completer.c (filename_completer_handle_brkchars): New function.
10834 (complete_line_internal_normal_command): New function, factored
10836 (complete_line_internal): ... here.
10837 (command_completer_handle_brkchars)
10838 (default_completer_handle_brkchars)
10839 (completer_handle_brkchars_func_for_completer): New functions.
10840 * completer.h (set_gdb_completion_word_break_characters): Delete
10842 (completer_handle_brkchars_func_for_completer): New declaration.
10843 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10844 completer_handle_brkchars_func_for_completer.
10846 2017-07-17 Pedro Alves <palves@redhat.com>
10848 * completer.c (symbol_completer): New function, based on
10849 make_symbol_completion_list_fn.
10850 * completer.h (symbol_completer): New declaration.
10851 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10852 * python/py-cmd.c (completers): Adjust.
10853 * symtab.c (make_symbol_completion_list_fn): Delete.
10854 * symtab.h (make_symbol_completion_list_fn): Delete.
10855 * cli/cli-decode.c (add_cmd): Adjust.
10857 2017-07-17 Pedro Alves <palves@redhat.com>
10859 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10860 * dwarf2read.c: Include "filename-seen-cache.h".
10861 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10862 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10863 * filename-seen-cache.c: New file.
10864 * filename-seen-cache.h: New file.
10865 * symtab.c: Include "filename-seen-cache.h".
10866 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10867 (create_filename_seen_cache, clear_filename_seen_cache)
10868 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10869 to filename-seen-cache.h/filename-seen-cache.c.
10870 (output_source_filename, sources_info)
10871 (maybe_add_partial_symtab_filename)
10872 (make_source_files_completion_list): Adjust to use
10873 filename_seen_cache.
10875 2017-07-17 Pedro Alves <palves@redhat.com>
10877 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10879 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10880 dwarf2_debug_sections*)): New.
10881 (dwarf2_per_objfile::dwarf2_per_objfile(const
10882 dwarf2_per_objfile&)): Declare as deleted.
10883 (dwarf2_per_objfile::operator=): Declare as deleted.
10884 (dwarf2_per_objfile::dwarf2_per_objfile)
10885 (dwarf2_per_objfile::~dwarf2_per_objfile)
10886 (dwarf2_per_objfile::free_cached_comp_units): New.
10887 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10888 ctor. Call dwarf2_per_objfile's ctor manually.
10889 (dwarf2_locate_sections): Deleted/refactored as ...
10890 (dwarf2_per_objfile::locate_sections): ... this new method.
10891 (free_cached_comp_units): Defer to
10892 dwarf2_per_objfile::free_cached_comp_units.
10893 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10895 2017-07-14 Tom Tromey <tom@tromey.com>
10898 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10900 <UNOP_SIZEOF>: Split into separate case.
10901 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10903 2017-07-14 Tom Tromey <tom@tromey.com>
10906 * symtab.c (symbol_matches_domain): Add language_rust to special
10908 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10909 treat LOC_TYPEDEF symbols as variables.
10911 2017-07-14 Pedro Alves <palves@redhat.com>
10913 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10914 symtabs matching all symtabs with SRCFILE as file name instead of
10915 only considering the first hit, with lookup_symtab.
10917 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10919 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10920 operator_name parameters.
10921 (gen_expr): Update function call.
10923 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10925 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10927 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10929 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10930 parameter, use agent_expr::gdbarch instead, update function
10932 (locexpr_tracepoint_var_ref): Likewise.
10933 (loclist_tracepoint_var_ref): Likewise.
10934 * ax-gdb.c (gen_trace_static_fields): Likewise.
10935 (gen_traced_pop): Likewise.
10936 (gen_frame_args_address): Likewise.
10937 (gen_frame_locals_address): Likewise.
10938 (gen_var_ref): Likewise.
10939 (gen_struct_ref_recursive): Likewise.
10940 (gen_static_field): Likewise.
10941 (gen_maybe_namespace_elt): Likewise.
10942 (gen_expr): Likewise.
10943 (gen_trace_for_var): Likewise.
10944 (gen_trace_for_expr): Likewise.
10945 (gen_trace_for_return_address): Likewise.
10947 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10949 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10951 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10953 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10955 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10956 from ax, update calls.
10957 (gen_usual_arithmetic): Likewise.
10958 (gen_integral_promotions): Likewise.
10959 (gen_bitfield_ref): Likewise.
10960 (gen_primitive_field): Likewise.
10961 (gen_struct_ref_recursive): Likewise.
10962 (gen_struct_ref): Likewise.
10963 (gen_maybe_namespace_elt): Likewise.
10964 (gen_struct_elt_for_reference): Likewise.
10965 (gen_namespace_elt): Likewise.
10966 (gen_aggregate_elt_ref): Likewise.
10967 (gen_expr): Get gdbarch from ax, update calls.
10968 (gen_expr_binop_rest): Likewise.
10970 2017-07-13 Pedro Alves <palves@redhat.com>
10972 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10974 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10975 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10976 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10977 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10979 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10980 Get final tdesc from the tdep.
10981 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10983 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10984 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10985 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10986 Use it as default tdesc.
10987 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10988 down to amd_init_abi. No longer handle fallback tdesc here.
10989 * amd64-tdep.h (tdesc_x32): Declare.
10990 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10992 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10995 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10997 * s390-linux-tdep.c (s390_process_record): Add support for
10998 instructions new in arch12.
11000 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11002 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11003 PT_GETFSBASE and PT_GETGSBASE.
11004 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
11007 2017-07-11 John Baldwin <jhb@FreeBSD.org>
11009 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
11010 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
11011 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
11013 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
11014 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
11015 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
11016 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
11017 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
11018 * features/i386/amd64.xml: Add 64bit-segments.xml.
11019 * features/i386/amd64-avx-avx512.c: Regenerated.
11020 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
11021 * features/i386/amd64-avx-mpx.c: Regenerated.
11022 * features/i386/amd64-avx.c: Regenerated.
11023 * features/i386/amd64-mpx.c: Regenerated.
11024 * features/i386/amd64.c: Regenerated.
11025 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
11026 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11027 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
11028 * regformats/i386/amd64-avx.dat: Regenerated.
11029 * regformats/i386/amd64-mpx.dat: Regenerated.
11030 * regformats/i386/amd64.dat: Regenerated.
11032 2017-07-10 Yao Qi <yao.qi@linaro.org>
11034 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
11035 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
11037 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
11039 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
11041 * gnulib/aclocal.m4: Regenerate.
11042 * gnulib/config.in: Regenerate.
11043 * gnulib/configure: Regenerate.
11044 * gnulib/import/Makefile.am: Regenerate.
11045 * gnulib/import/Makefile.in: Regenerate.
11046 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
11047 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
11048 * gnulib/import/m4/environ.m4: New file.
11049 * gnulib/import/m4/setenv.m4: New file.
11050 * gnulib/import/setenv.c: New file.
11051 * gnulib/import/unsetenv.c: New file.
11053 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
11055 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
11056 address when op is DW_OP_addr.
11058 2017-07-09 Tom Tromey <tom@tromey.com>
11060 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
11061 check and apply to outer type.
11063 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11065 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
11066 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
11067 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
11068 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
11070 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11072 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
11074 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11076 * corelow.c (get_core_siginfo): Remove.
11077 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
11078 instead of get_core_siginfo.
11079 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
11080 * gdbarch.h: Re-generate.
11081 * gdbarch.c: Re-generate.
11082 * linux-tdep.c (linux_core_xfer_siginfo): New.
11083 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
11085 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11087 * corelow.c (thread_section_name): Move to ...
11088 * gdbcore.h (thread_section_name): ... here.
11090 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11092 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
11093 (struct siginfo32): New.
11094 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
11095 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
11096 via ptrace(PT_LWPINFO).
11098 2017-07-07 John Baldwin <jhb@FreeBSD.org>
11100 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
11101 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
11102 (fbsd_get_siginfo_type): New.
11103 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
11104 (_initialize_fbsd_tdep): New.
11106 2017-07-06 David Blaikie <dblaikie@gmail.com>
11108 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
11109 a singular dwo_unit*) to support multiple CUs in the same way that
11110 multiple TUs are supported.
11111 (create_cus_hash_table): Replace create_dwo_cu with a function for
11112 parsing multiple CUs from a DWO file.
11113 (open_and_init_dwo_file): Use create_cus_hash_table rather than
11115 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
11116 htab_find, rather than comparing the signature to a singleton CU in
11119 2017-07-06 Pedro Alves <palves@redhat.com>
11121 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
11123 2017-07-04 Pedro Alves <palves@redhat.com>
11125 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
11126 * gdbtypes.h (TYPE_STATIC): Delete.
11127 (struct fn_field) <is_public, is_abstract, is_static, is_final,
11128 is_synchronized, is_native>: Delete.
11130 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
11131 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
11132 (TYPE_FN_FIELD_ABSTRACT): Delete.
11134 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
11136 * buffer.h (buffer_finish): Fix spelling mistakes.
11138 2017-07-01 Eli Zaretskii <eliz@gnu.org>
11140 * .dir-locals.el: Automatically switch to C-style comments in
11141 versions of Emacs that support the feature.
11143 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11144 Pedro Alves <palves@redhat.com>
11147 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
11148 (process_next_line): New variable 'inline_cmd'.
11149 Adjust 'if' clauses for "python", "compile" and "guile" to use
11150 'command_name_equals' and check for '!inline_cmd'.
11152 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
11155 * cli/cli-script.c (command_name_equals_not_inline): New function.
11156 (process_next_line): Adjust 'if' clauses for "python", "compile"
11157 and "guile" to use command_name_equals_not_inline.
11159 2017-06-29 Pedro Alves <palves@redhat.com>
11161 * completer.c (expression_completer): Call
11162 linespec_location_completer instead of location_completer.
11164 2017-06-29 Pedro Alves <palves@redhat.com>
11166 * completer.c (expression_completer): Remove code that recomputes
11167 'text' from 'word'.
11169 2017-06-29 Yao Qi <yao.qi@linaro.org>
11171 * regformats/regdat.sh: Generate code with
11172 "ifndef IN_PROCESS_AGENT".
11174 2017-06-28 Pedro Alves <palves@redhat.com>
11176 * command.h: Include "common/scoped_restore.h".
11178 2017-06-28 Yao Qi <yao.qi@linaro.org>
11180 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
11181 instead of obstack_grow.
11183 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
11186 * symfile.c (reread_symbols): Call objfiles_changed just before
11189 2017-06-27 Pedro Alves <palves@redhat.com>
11191 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
11192 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
11193 (completion_list_add_symbol, completion_list_add_msymbol):
11194 ... these new functions.
11195 (add_symtab_completions)
11196 (default_make_symbol_completion_list_break_on_1): Adjust.
11198 2017-06-27 Pedro Alves <palves@redhat.com>
11200 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
11201 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
11202 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
11204 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
11205 'storage_obstack' field an auto_obstack. In-class initialize all
11206 non-bitfield fields. Make minsyms_read bool.
11207 * symfile.c (read_symbols): Adjust.
11209 2017-06-27 Alan Hayward <alan.hayward@arm.com>
11211 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
11212 (gdbsim_store_register): Likewise.
11214 2017-06-27 Pedro Alves <palves@redhat.com>
11216 * c-exp.y (name_obstack): Now an auto_obstack.
11217 (yylex): Use auto_obstack::clear.
11218 (c_parse): Use auto_obstack::clear instead of reinitializing and
11219 freeing the obstack.
11220 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
11221 * d-exp.y (name_obstack): Now an auto_obstack.
11222 (yylex): Use auto_obstack::clear.
11223 (d_parse): Use auto_obstack::clear instead of reinitializing and
11224 freeing the obstack.
11225 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
11227 * dwarf2read.c (create_addrmap_from_index)
11228 (dwarf2_build_psymtabs_hard)
11229 (update_enumeration_type_from_children): Likewise.
11230 * gdb_obstack.h (auto_obstack): New type.
11231 * go-exp.y (name_obstack): Now an auto_obstack.
11232 (build_packaged_name): Use auto_obstack::clear.
11233 (go_parse): Use auto_obstack::clear instead of reinitializing and
11234 freeing the obstack.
11235 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
11237 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11238 * rust-exp.y (work_obstack): Now an auto_obstack.
11239 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11240 reinitializing and freeing the obstack.
11241 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11242 (host_char_to_target): Use auto_obstack.
11243 * utils.h (make_cleanup_obstack_free): Delete declaration.
11244 * valprint.c (generic_emit_char, generic_printstr): Use
11247 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11249 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11251 (darwin_init_thread_list): Don't update dummy thread.
11252 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11254 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11256 * record-full.c (netorder16): Remove.
11258 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11260 * common/diagnostics.h: Define macros for GCC.
11261 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11262 * common/vec.h: Include diagnostics.h.
11263 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11264 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11267 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11269 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11271 * ada-lex.l: Ignore deprecated register warnings.
11273 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11275 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11276 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11278 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11280 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11283 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11285 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11287 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11289 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11290 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11291 (xtensa_register_read_masked): Likewise.
11293 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11295 * common/environ.c (gdb_environ::unset): Update comment.
11297 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11299 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11302 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11304 * record-full.c (record_full_exec_insn): Use byte_vector.
11306 2017-06-22 Yao Qi <yao.qi@linaro.org>
11308 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11309 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11311 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11313 * remote.c (cached_reg): Move from here...
11314 * regcache.h (cached_reg): ...to here.
11315 * python/py-unwind.c (struct reg_info): Remove.
11316 (cached_frame_info): Use cached_reg_t.
11317 (pyuw_prev_register): Likewise.
11318 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11319 (pyuw_dealloc_cache): Free all registers.
11321 2017-06-22 Pedro Alves <palves@redhat.com>
11322 Simon Marchi <simon.marchi@ericsson.com>
11324 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11326 * common/diagnostics.h: New file.
11328 2017-06-22 Pedro Alves <palves@redhat.com>
11330 * common/agent.h: Add include guards.
11332 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11334 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11335 talk about addressable units instead of bytes.
11337 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11339 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11340 of '::const_iterator'.
11342 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11344 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11345 'unittests/environ-selftests.c'.
11346 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11347 * charset.c (find_charset_names): Declare object 'iconv_env'.
11348 Update code to use 'iconv_env' object. Remove call to
11350 * common/environ.c: Include <utility>.
11351 (make_environ): Delete function.
11352 (free_environ): Delete function.
11353 (gdb_environ::clear): New function.
11354 (gdb_environ::operator=): New function.
11355 (gdb_environ::get): Likewise.
11356 (environ_vector): Delete function.
11357 (set_in_environ): Delete function.
11358 (gdb_environ::set): New function.
11359 (unset_in_environ): Delete function.
11360 (gdb_environ::unset): New function.
11361 (gdb_environ::envp): Likewise.
11362 * common/environ.h: Include <vector>.
11363 (struct gdb_environ): Delete; transform into...
11364 (class gdb_environ): ... this class.
11365 (free_environ): Delete prototype.
11366 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11367 environ_vector): Likewise.
11368 * infcmd.c (run_command_1): Update code to call
11369 'envp' from 'gdb_environ' class.
11370 (environment_info): Update code to call methods from 'gdb_environ'
11372 (unset_environment_command): Likewise.
11373 (path_info): Likewise.
11374 (path_command): Likewise.
11375 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11376 (inferior::inferior): Initialize 'environment' using the host's
11378 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11379 Include "environ.h".
11380 (class inferior) <environment>: Change type from 'struct
11381 gdb_environ' to 'gdb_environ'.
11382 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11383 methods from 'gdb_environ' class.
11384 * solib.c (solib_find_1): Likewise
11385 * unittests/environ-selftests.c: New file.
11387 2017-06-20 Yao Qi <yao.qi@linaro.org>
11389 * features/i386/i386-linux.xml: Exchange the order of including
11390 32bit-linux.xml and 32bit-sse.xml.
11391 * features/i386/i386-linux.c: Regenerated.
11393 2017-06-20 Yao Qi <yao.qi@linaro.org>
11395 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11396 Delete copy ctor and assignment operator.
11397 (tdesc_type): Likewise.
11398 (tdesc_feature): Likewise.
11399 (tdesc_free_reg): Remove.
11400 (tdesc_create_reg): Use new.
11401 (tdesc_free_type): Remove.
11402 (tdesc_create_vector): Use new.
11403 (tdesc_create_union): Likewise.
11404 (tdesc_create_flags): Likewise.
11405 (tdesc_create_enum): Likewise.
11406 (tdesc_free_feature): Delete.
11407 (free_target_description): Use delete.
11409 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11411 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11414 2017-06-19 Pedro Alves <palves@redhat.com>
11416 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11417 after gdb::unlinker.
11419 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11421 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11422 gdb_environ to access an environment variable.
11424 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11426 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11429 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11431 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11433 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11435 * configure: Re-generate.
11436 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11438 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11440 * configure: Re-generate.
11441 * warning.m4: Pass -Werror to compiler when checking for
11442 supported warning flags.
11444 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11446 * Makefile.in (COMPILE.pre): Add "-x c++".
11448 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11449 Pedro Alves <palves@redhat.com>
11450 Yao Qi <yao.qi@linaro.org>
11452 * defs.h (RequireLongest): New.
11453 (extract_integer): Declare function template.
11454 (extract_signed_integer): Remove the declaration, but define it
11456 (extract_unsigned_integer): Likewise.
11457 (store_integer): Declare function template.
11458 (store_signed_integer): Remove the declaration, but define it
11460 (store_unsigned_integer): Likewise.
11461 * findvar.c (extract_integer): New function template.
11462 (extract_signed_integer): Remove.
11463 (extract_unsigned_integer): Remove.
11464 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11466 (store_integer): New function template.
11467 (store_signed_integer): Remove.
11468 (store_unsigned_integer): Remove.
11469 (store_integer): Explicit instantiations.
11470 * regcache.c (regcache_raw_read_signed): Update.
11471 (regcache::raw_read): New function.
11472 (regcache::raw_read_signed): Remove.
11473 (regcache::raw_read_unsigned): Remove.
11474 (regcache_raw_read_unsigned): Update.
11475 (regcache_raw_write_unsigned): Update.
11476 (regcache::raw_write_signed): Remove.
11477 (regcache::raw_write): New function.
11478 (regcache_cooked_read_signed): Update.
11479 (regcache::raw_write_unsigned): Remove.
11480 (regcache::cooked_read_signed): Remove.
11481 (regcache_cooked_read_unsigned): Update.
11482 (regcache::cooked_read_unsigned): Remove.
11483 (regcache_cooked_write_signed): Update.
11484 (regcache_cooked_write_unsigned): Update.
11485 * regcache.h (regcache) <raw_read_signed>: Remove.
11486 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11487 <raw_read, raw_write>: New.
11488 <cooked_read_signed, cooked_write_signed>: Remove.
11489 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11490 <cooked_read, cooked_write>: New.
11491 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11492 (sh64_pseudo_register_write): Update.
11494 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11496 * arc-tdep.c (arc_disassembler_options): New variable.
11497 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11498 of default_print_insn.
11499 (arc_delayed_print_insn): Set info->section when needed,
11500 use default_print_insn to retrieve a disassembler.
11502 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11505 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11506 to mention $SHELL and startup-with-shell.
11508 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11510 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11512 2017-06-14 Yao Qi <yao.qi@linaro.org>
11514 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11515 default_print_insn instead of print_insn_aarch64.
11516 * arm-tdep.c (gdb_print_insn_arm): Call
11517 default_print_insn instead of print_insn_big_arm
11518 and print_insn_little_arm.
11519 * i386-tdep.c (i386_print_insn): Call default_print_insn
11520 instead of print_insn_i386.
11521 * ia64-tdep.c (ia64_print_insn): Call
11522 default_print_insn instead of print_insn_ia64.
11523 * mips-tdep.c (gdb_print_insn_mips): Call
11524 default_print_insn instead of print_insn_big_mips
11525 and print_insn_little_mips.
11526 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11527 instead of print_insn_spu.
11529 2017-06-14 Pedro Alves <palves@redhat.com>
11531 * ada-lang.c: Include "common/byte-vector.h".
11532 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11533 * charset.c (wchar_iterator::iterate): Resize the vector instead
11535 * common/byte-vector.h: Include "common/def-vector.h".
11536 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11537 * cli/cli-dump.c: Include "common/byte-vector.h".
11538 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11539 * common/byte-vector.h: New file.
11540 * common/def-vector.h: New file.
11541 * common/default-init-alloc.h: New file.
11542 * dwarf2loc.c: Include "common/byte-vector.h".
11543 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11544 instead of reserving it.
11545 * dwarf2read.c: Include "common/byte-vector.h".
11546 (data_buf::m_vec): Now a gdb::byte_vector.
11547 * gdb_regex.c: Include "common/def-vector.h".
11548 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11549 * mi/mi-main.c: Include "common/byte-vector.h".
11550 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11551 * printcmd.c: Include "common/byte-vector.h".
11552 (print_scalar_formatted): Use gdb::byte_vector.
11553 * valprint.c: Include "common/byte-vector.h".
11554 (maybe_negate_by_bytes, print_decimal_chars): Use
11557 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11559 * darwin-nat.c: Include "nat/fork-inferior.h".
11561 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11563 * configure.nat: Factor out Darwin bits that are not
11564 architecture-specific. Add fork-inferior.o.
11566 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11568 * configure.nat: Factor out AIX bits that are not
11569 architecture-specific. Add fork-inferior.o.
11571 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11573 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11574 (read_pieced_value, write_pieced_value): ...here. Reduce to
11575 wrappers that just call rw_pieced_value.
11577 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11579 * dwarf2loc.c (write_pieced_value): When writing the data for a
11580 memory piece, use write_memory_with_notification instead of
11583 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11585 * valops.c (read_value_memory): Change embedded_offset to
11586 represent a bit offset instead of a byte offset.
11587 * value.h (read_value_memory): Adjust comment.
11589 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11591 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11592 dest_offset_bits and source_offset_bits.
11593 (write_pieced_value): Likewise.
11595 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11597 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11598 given by DW_OP_bit_piece.
11599 (write_pieced_value): Likewise.
11601 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11603 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11604 some other preparations to the places where sufficient information
11606 (write_pieced_value): Likewise.
11608 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11610 * dwarf2loc.c (bits_to_bytes): New function.
11611 (read_pieced_value): Fix offset calculations for register pieces
11612 on big-endian targets.
11613 (write_pieced_value): Likewise.
11615 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11617 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11618 (write_pieced_value): Likewise.
11620 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11622 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11623 transfer the source value's least significant bits, instead of its
11624 lowest-addressed ones. Rename type_len to max_offset.
11625 (read_pieced_value): Mirror above changes to write_pieced_value as
11628 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11630 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11631 truncate full bytes from dest_offset_bits before using it as an
11632 offset into the buffer.
11634 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11636 * dwarf2loc.c (write_pieced_value): Include transfer size in
11639 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11641 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11642 calculation of this_size.
11644 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11646 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11647 when targeting a bit-field.
11648 (write_pieced_value): Likewise.
11650 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11652 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11653 (allocate_piece_closure): Drop addr_size parameter.
11654 (dwarf2_evaluate_loc_desc_full): Adjust call to
11655 allocate_piece_closure.
11657 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11660 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11661 the LSB end, independent of endianness.
11663 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11665 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11668 2017-06-13 Yao Qi <yao.qi@linaro.org>
11670 * mips-linux-nat.c: Move include features/mips*-linux.c to
11672 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11673 to mips-linux-tdep.c.
11674 * mips-linux-tdep.c: Include features/mips*-linux.c
11675 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11677 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11678 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11679 (tdesc_mips64_dsp_linux): Declare.
11681 2017-06-12 Tom Tromey <tom@tromey.com>
11683 * valprint.h (val_print_type_code_int): Remove.
11684 * valprint.c (generic_val_print_int): Always call
11685 val_print_scalar_formatted.
11686 (val_print_type_code_int): Remove.
11687 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11688 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11689 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11690 * ada-valprint.c (ada_val_print_num): Use
11691 val_print_scalar_formatted.
11693 2017-06-12 Tom Tromey <tom@tromey.com>
11695 * printcmd.c (print_scalar_formatted): Unify the two switches.
11696 Don't convert scalars to LONGEST.
11698 2017-06-12 Tom Tromey <tom@tromey.com>
11701 * valprint.h (print_decimal_chars): Update.
11702 * valprint.c (maybe_negate_by_bytes): New function.
11703 (print_decimal_chars): Add "is_signed" argument.
11704 * printcmd.c (print_scalar_formatted): Update.
11706 2017-06-12 Tom Tromey <tom@tromey.com>
11709 * valprint.h (print_binary_chars, print_hex_chars): Update.
11710 * valprint.c (val_print_type_code_int): Update.
11711 (print_binary_chars): Add "zero_pad" argument.
11712 (emit_octal_digit): New function.
11713 (print_octal_chars): Don't zero-pad.
11714 (print_decimal_chars): Likewise.
11715 (print_hex_chars): Add "zero_pad" argument.
11716 * sh64-tdep.c (sh64_do_fp_register): Update.
11717 * regcache.c (regcache::dump): Update.
11718 * printcmd.c (print_scalar_formatted): Update.
11719 * infcmd.c (default_print_one_register_info): Update.
11721 2017-06-12 Pedro Alves <palves@redhat.com>
11722 Alan Hayward <alan.hayward@arm.com>
11724 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11725 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11726 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11727 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11728 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11730 2017-06-12 Pedro Alves <palves@redhat.com>
11732 * dwarf2read.c (mapped_symtab::data): Now a vector of
11733 symtab_index_entry instead of vector of
11734 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11735 whether an element's name is NULL instead of checking whether the
11736 element itself is NULL.
11737 (find_slot): Change return type. Adjust.
11738 (hash_expand, , add_index_entry, uniquify_cu_indices)
11739 (write_hash_table): Adjust.
11741 2017-06-12 Pedro Alves <palves@redhat.com>
11743 * dwarf2read.c (recursively_count_psymbols): New function.
11744 (write_psymtabs_to_index): Call it to compute number of psyms and
11745 pass estimate size of psyms_seen to unordered_set's ctor.
11747 2017-06-12 Pedro Alves <palves@redhat.com>
11749 * dwarf2read.c (write_hash_table): Check if key already exists
11752 2017-06-12 Pedro Alves <palves@redhat.com>
11754 * dwarf2read.c (data_buf::append_space): Rename to...
11755 (data_buf::grow): ... this, and make private. Adjust all callers.
11756 (data_buf::append_uint): New method.
11757 (add_address_entry, write_one_signatured_type)
11758 (write_psymtabs_to_index): Use it.
11760 2017-06-12 Pedro Alves <palves@redhat.com>
11762 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11763 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11764 (data_buf::file_write): Call ::fwrite directly.
11766 2017-06-12 Pedro Alves <palves@redhat.com>
11768 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11769 std::vector::erase.
11771 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11773 Code cleanup: C++ify .gdb_index producer.
11774 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11775 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11776 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11777 (create_strtab, add_string): Remove.
11778 (file_write, data_buf): New.
11779 (struct symtab_index_entry): Use std::vector for cu_indices.
11780 (struct mapped_symtab): Use std::vector for data.
11781 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11782 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11784 (find_slot): Change return type. Update it to the new data structures.
11785 (hash_expand, add_index_entry): Update it to the new data structures.
11786 (offset_type_compare): Remove.
11787 (uniquify_cu_indices): Update it to the new data structures.
11788 (c_str_view, c_str_view_hasher, vector_hasher): New.
11789 (add_indices_to_cpool): Remove.
11790 (write_hash_table): Update it to the new data structures.
11791 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11792 (eq_psymtab_cu_index): Remove.
11793 (psym_index_map): New typedef.
11794 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11795 reference and std::unordered_map for cu_index_htab.
11796 (add_address_entry, add_address_entry_worker, write_address_map)
11797 (write_psymbols): Update it to the new data structures.
11798 (write_obstack): Remove.
11799 (struct signatured_type_index_data): Change types_list to a data_buf
11800 reference and psyms_seen to a std::unordered_set reference.
11801 (write_one_signatured_type, recursively_write_psymbols)
11802 (write_psymtabs_to_index): Update it to the new data structures.
11804 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11806 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11807 separate-debug-file commands.
11808 * symfile.h (separate_debug_file_debug): New global.
11809 * symfile.c (separate_debug_file_debug): New global.
11810 (separate_debug_file_exists, find_separate_debug_file): Add
11812 (_initialize_symfile): Add "set debug separate-debug-file"
11814 * build-id.c (build_id_to_debug_bfd,
11815 find_separate_debug_file_by_buildid): Add debug output.
11817 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11819 * gdbarch.sh (displaced_step_free_closure): Remove.
11820 * gdbarch.h, gdbarch.c: Re-generate.
11821 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11822 displaced_step_free_closure.
11823 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11824 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11825 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11826 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11827 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11828 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11829 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11830 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11831 * infrun.c (displaced_step_clear): Call xfree instead of
11832 gdbarch_displaced_step_free_closure.
11834 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11836 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11839 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11841 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11842 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11843 (mn10300_push_dummy_call): Likewise.
11845 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11847 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11849 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11851 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11853 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11855 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11856 able to start inferiors using a shell.
11857 (New remote packets): Announce new packet "QStartupWithShell".
11858 * remote.c: Add PACKET_QStartupWithShell.
11859 (extended_remote_create_inferior): Handle new
11860 PACKET_QStartupWithShell.
11861 (remote_protocol_features) <QStartupWithShell>: New entry for
11862 PACKET_QStartupWithShell.
11863 (_initialize_remote): Call "add_packet_config_cmd" for
11866 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11867 Pedro Alves <palves@redhat.com>
11869 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11870 and "nat/fork-inferior.h".
11871 * common/common-inferior.h: New file, with contents from
11873 * commom/common-utils.c: Include "common-utils.h".
11874 (stringify_argv): New function.
11875 * common/common-utils.h (stringify_argv): New prototype.
11876 * configure.nat: Add "fork-inferior.o" as a dependency for
11877 "*linux*", "fbsd*" and "nbsd*" hosts.
11878 * corefile.c (get_exec_file): Update comment.
11879 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11880 instead of "startup_inferior".
11881 (darwin_create_inferior): Call "add_thread_silent" after
11883 * fork-child.c: Cleanup unnecessary includes.
11884 (SHELL_FILE): Move to "common/common-fork-child.c".
11885 (environ): Likewise.
11886 (exec_wrapper): Initialize.
11887 (get_exec_wrapper): New function.
11888 (breakup_args): Move to "common/common-fork-child.c"; rename to
11889 "breakup_args_for_exec".
11890 (escape_bang_in_quoted_argument): Move to
11891 "common/common-fork-child.c".
11892 (saved_ui): New variable.
11893 (prefork_hook): New function.
11894 (postfork_hook): Likewise.
11895 (postfork_child_hook): Likewise.
11896 (gdb_startup_inferior): Likewise.
11897 (fork_inferior): Move to "common/common-fork-child.c". Update
11898 function to support gdbserver.
11899 (startup_inferior): Likewise.
11900 * gdbcore.h (get_exec_file): Remove declaration.
11901 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11902 instead of "startup_inferior". Call "add_thread_silent" after
11904 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11905 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11906 instead of "startup_inferior". Call "add_thread_silent" after
11908 * inferior.h: Include "common-inferior.h".
11909 (trace_start_error): Move to "common/common-utils.h".
11910 (trace_start_error_with_name): Likewise.
11911 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11912 (startup_inferior): Likewise.
11913 (gdb_startup_inferior): New prototype.
11914 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11915 * nat/fork-inferior.h: New file.
11916 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11917 instead of "startup_inferior". Call "add_thread_silent" after
11919 * target.h (target_terminal_init): Move prototype to
11921 (target_terminal_inferior): Likewise.
11922 (target_terminal_ours): Likewise.
11923 * target/target.h (target_terminal_init): New prototype, moved
11925 (target_terminal_inferior): Likewise.
11926 (target_terminal_ours): Likewise.
11927 * utils.c (gdb_flush_out_err): New function.
11929 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11931 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11932 * common/common-gdbthread.h: New file, with parts from
11934 * gdbthread.h: Include "common-gdbthread.h".
11935 (switch_to_thread): Moved to "common/common-gdbthread.h".
11937 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11939 * Makefile.in (SFILES): Add "common/job-control.c".
11940 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11941 (COMMON_OBS): Add "job-control.o".
11942 * common/job-control.c: New file, with contents from
11944 * common/job-control.h: New file, with contents from "terminal.h".
11945 * fork-child.c: Include "job-control.h".
11946 * inflow.c: Include "job-control.h".
11947 (gdb_setpgid): Move to "common/common-inflow.c".
11948 (_initialize_inflow): Move setting of "job_control" to
11949 "handle_job_control".
11950 * terminal.h (job_control): Moved to "common/common-terminal.h".
11951 (gdb_setpgid): Likewise.
11952 * top.c: Include "job_control.h".
11953 * utils.c: Likewise.
11954 (job_control): Moved to "job-control.c".
11956 2017-06-07 Pedro Alves <palves@redhat.com>
11958 * Makefile.in (SFILES): Add gdb_regex.c.
11959 (COMMON_OBS): Add gdb_regex.o.
11960 * ada-lang.c (ada_add_standard_exceptions)
11961 (ada_add_exceptions_from_frame, name_matches_regex)
11962 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11963 parameter type to compiled_regex. Adjust.
11964 (ada_exceptions_list): Use compiled_regex.
11965 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11966 std::unique_ptr<compiled_regex>.
11967 (exception_catchpoint::~exception_catchpoint): Remove regfree
11969 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11970 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11971 * breakpoint.c (solib_catchpoint::compiled): Now a
11972 std::unique_ptr<compiled_regex>.
11973 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11974 (check_status_catch_solib): Adjust to use compiled_regex.
11975 (add_solib_catchpoint): Adjust to use compiled_regex.
11976 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11977 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11978 compiled_regex reference. Adjust to use it.
11979 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11980 declaration. Include "gdb_regex.h".
11981 (apropos_cmd): Change regex parameter to compiled_regex reference.
11982 * gdb_regex.c: New file.
11983 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11985 (class compiled_regex): New.
11986 * linux-tdep.c: Include "common/gdb_optional.h".
11987 (struct mapping_regexes): New, factored out from
11988 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11989 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11990 gdb::optional and remove cleanups. Adjust to compiled_regex.
11991 * probe.c: Include "common/gdb_optional.h".
11992 (collect_probes): Use compiled_regex and gdb::optional and remove
11994 * skip.c: Include "common/gdb_optional.h".
11995 (skiplist_entry::compiled_function_regexp): Now a
11996 gdb::optional<compiled_regex>.
11997 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11998 (free_skiplist_entry): Remove regfree call.
11999 (compile_skip_regexp, skip_rfunction_p): Adjust to use
12000 compiled_regex and gdb::optional.
12001 * symtab.c: Include "common/gdb_optional.h".
12002 (search_symbols): Use compiled_regex and gdb::optional.
12003 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
12004 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
12007 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12009 * regcache.c (regcache::save): Avoid buffer use.
12010 (regcache::dump): Likewise.
12012 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12014 * sh-tdep.c (sh_pseudo_register_read): Remove
12016 (sh_pseudo_register_write): Likewise.
12017 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
12018 (sh64_pseudo_register_write): Likewise
12020 2017-06-07 Alan Hayward <alan.hayward@arm.com>
12022 * aarch64-tdep.c (aarch64_store_return_value): Use
12024 (aarch64_pseudo_read_value): Likewise.
12025 (aarch64_pseudo_write): Likewise.
12027 2017-06-06 Yao Qi <yao.qi@linaro.org>
12029 * regformats/regdef.h (set_register_cache): Remove the
12032 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12034 * frame.c (frame_unwind_register_signed): Use
12035 frame_unwind_register_value.
12037 2017-06-06 Pedro Alves <palves@redhat.com>
12039 PR breakpoints/21553
12040 * breakpoint.c (create_breakpoints_sal_default)
12041 (init_breakpoint_sal, create_breakpoint_sal): Use
12042 gdb::unique_xmalloc_ptr for string parameters.
12043 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12044 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
12045 (base_breakpoint_create_breakpoints_sal)
12046 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
12047 (strace_marker_create_breakpoints_sal)
12048 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
12050 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
12051 gdb::unique_xmalloc_ptr for string parameters.
12052 (create_breakpoint): Constify 'extra_string' and 'cond_string'
12055 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12057 * alpha-tdep.c (alpha_register_to_value): Use
12058 get_frame_register_value.
12059 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
12061 2017-06-06 Alan Hayward <alan.hayward@arm.com>
12063 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
12064 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
12065 (ia64_value_to_register): Likewise.
12066 (ia64_extract_return_value): Likewise.
12067 (ia64_store_return_value): Likewise.
12068 (ia64_push_dummy_call): Likewise.
12070 2017-06-04 Joel Brobecker <brobecker@adacore.com>
12074 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
12076 * x86-linux-nat.c (struct arch_lwp_info): Remove.
12078 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
12080 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
12082 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
12084 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
12086 * event-loop.c (poll_timers): Unallocate timer using delete
12089 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12091 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
12092 (struct breakpoint) <~breakpoint>: New.
12093 (struct watchpoint): Inherit from breakpoint.
12094 <~watchpoint>: New.
12096 (struct tracepoint): Inherit from breakpoint.
12098 * breakpoint.c (longjmp_breakpoint_ops): Remove.
12099 (struct longjmp_breakpoint): Inherit from breakpoint.
12100 <~longjmp_breakpoint>: New.
12102 (new_breakpoint_from_type): Remove casts.
12103 (watchpoint_in_thread_scope): Remove reference to base field.
12104 (watchpoint_del_at_next_stop): Likewise.
12105 (update_watchpoint): Likewise.
12106 (watchpoint_check): Likewise.
12107 (bpstat_check_watchpoint): Likewise.
12108 (set_longjmp_breakpoint): Likewise.
12109 (struct fork_catchpoint): Inherit from breakpoint.
12111 (struct solib_catchpoint): Inherit from breakpoint.
12112 <~solib_catchpoint>: New.
12114 (dtor_catch_solib): Change to ...
12115 (solib_catchpoint::~solib_catchpoint): ... this.
12116 (breakpoint_hit_catch_solib): Remove reference to base field.
12117 (add_solib_catchpoint): Likewise.
12118 (create_fork_vfork_event_catchpoint): Likewise.
12119 (struct exec_catchpoint): Inherit from breakpoint.
12120 <~exec_catchpoint>: New.
12122 (dtor_catch_exec): Change to ...
12123 (exec_catchpoint::~exec_catchpoint): ... this.
12124 (dtor_watchpoint): Change to ...
12125 (watchpoint::~watchpoint): ... this.
12126 (watch_command_1): Remove reference to base field.
12127 (catch_exec_command_1): Likewise.
12128 (base_breakpoint_dtor): Change to ...
12129 (breakpoint::~breakpoint): ... this.
12130 (base_breakpoint_ops): Remove dtor field value.
12131 (longjmp_bkpt_dtor): Change to ...
12132 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
12133 (strace_marker_create_breakpoints_sal): Remove reference to base
12135 (delete_breakpoint): Don't manually call breakpoint destructor.
12136 (create_tracepoint_from_upload): Remove reference to base field.
12137 (trace_pass_set_count): Likewise.
12138 (initialize_breakpoint_ops): Don't initialize
12139 momentary_breakpoint_ops, don't set dtors.
12140 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
12141 <~ada_catchpoint>: New.
12143 (create_excep_cond_exprs): Remove reference to base field.
12144 (dtor_exception): Change to ...
12145 (ada_catchpoint::~ada_catchpoint): ... this.
12146 (dtor_catch_exception): Remove.
12147 (dtor_catch_exception_unhandled): Remove.
12148 (dtor_catch_assert): Remove.
12149 (create_ada_exception_catchpoint): Remove reference to base
12151 (initialize_ada_catchpoint_ops): Don't set dtors.
12152 * break-catch-sig.c (struct signal_catchpoint): Inherit from
12154 <~signal_catchpoint>: New.
12156 (signal_catchpoint_dtor): Change to ...
12157 (signal_catchpoint::~signal_catchpoint): ... this.
12158 (create_signal_catchpoint): Remove reference to base field.
12159 (initialize_signal_catchpoint_ops): Don't set dtor.
12160 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
12162 <~syscall_catchpoint>: New.
12164 (dtor_catch_syscall): Change to ...
12165 (syscall_catchpoint::~syscall_catchpoint): ... this.
12166 (create_syscall_event_catchpoint): Remove reference to base
12168 (initialize_syscall_catchpoint_ops): Don't set dtor.
12169 * break-catch-throw.c (struct exception_catchpoint): Inherit
12171 <~exception_catchpoint>: New.
12173 (dtor_exception_catchpoint): Change to ...
12174 (exception_catchpoint::~exception_catchpoint): ... this.
12175 (handle_gnu_v3_exceptions): Remove reference to base field.
12176 (initialize_throw_catchpoint_ops): Don't set dtor.
12177 * ctf.c (ctf_get_traceframe_address): Remove reference to base
12179 * remote.c (remote_get_tracepoint_status): Likewise.
12180 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
12181 * tracefile.c (tracefile_fetch_registers): Likewise.
12182 * tracepoint.c (actions_command): Likewise.
12183 (validate_actionline): Likewise.
12184 (tfind_1): Likewise.
12185 (get_traceframe_location): Likewise.
12186 (find_matching_tracepoint_location): Likewise.
12187 (parse_tracepoint_status): Likewise.
12188 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
12190 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12192 * breakpoint.c (struct longjmp_breakpoint): New struct.
12193 (is_tracepoint_type): Change return type to bool.
12194 (is_longjmp_type): New function.
12195 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
12196 (set_raw_breakpoint_without_location): Use
12197 new_breakpoint_from_type.
12198 (set_raw_breakpoint): Likewise.
12200 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
12202 * breakpoint.c (new_breakpoint_from_type): New function.
12203 (create_breakpoint_sal): Use new_breakpoint_from_type and
12205 (create_breakpoint): Likewise.
12207 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
12209 * memattr.c (mem_info_command): Rename to ...
12210 (info_mem_command): ... this.
12211 (mem_enable_command): Rename to ...
12212 (enable_mem_command): ... this.
12213 (mem_disable_command): Rename to ...
12214 (disable_mem_command): ... this.
12215 (mem_delete_command): Rename to ...
12216 (delete_mem_command): ... this.
12217 (_initialize_mem): Adjust function names.
12219 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12221 * btrace.c (handle_pt_insn_events): New.
12222 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
12223 STATUS. Split into this and ...
12224 (handle_pt_insn_event_flags): ... this.
12226 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
12228 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
12229 and struct pt_insn.resynced.
12230 * configure: Regenerated.
12231 * config.in: Regenerated.
12233 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12235 * btrace.c (ftrace_find_call_by_number): New function.
12236 (ftrace_new_function): Store objects, not pointers.
12237 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12238 ftrace_new_gap, ftrace_update_function,
12239 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12240 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12241 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12242 btrace_ends_with_single_insn, btrace_call_get): Account for
12243 btrace_thread_info::functions now storing objects.
12244 * btrace.h (struct btrace_thread_info): Add constructor.
12245 (struct btrace_thread_info) <functions>: Make std::vector.
12246 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12247 Initialize with default values.
12248 * record-btrace.c (record_btrace_frame_sniffer): Account for
12249 btrace_thread_info::functions now storing objects.
12251 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12253 * btrace.c: Remove typedef bfun_s.
12254 (ftrace_new_gap): Directly add gaps to the list of gaps.
12255 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12256 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12257 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12258 instead of gdb VEC.
12260 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12262 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12263 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12264 with btrace_thread_info::next_segment and
12265 btrace_thread_info::prev_segment.
12266 * btrace.h: Remove struct btrace_func_link.
12267 (struct btrace_function): Replace pair of function segment pointers
12268 with pair of indices.
12269 * python/py-record-btrace.c (btpy_call_prev_sibling,
12270 btpy_call_next_sibling): Replace references to
12271 btrace_thread_info::segment with btrace_thread_info::next_segment and
12272 btrace_thread_info::prev_segment.
12273 * record-btrace.c (record_btrace_frame_this_id): Use
12274 btrace_find_call_by_number.
12276 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12278 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12279 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12280 btrace_insn_next, btrace_insn_prev): Remove references to
12281 btrace_thread_info::flow.
12282 * btrace.h (struct btrace_function): Remove FLOW.
12284 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12286 * btrace.c (ftrace_find_call_by_number): New function.
12287 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12288 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12289 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12290 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12292 * btrace.h (struct btrace_function): Turn UP into an index.
12293 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12295 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12296 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12297 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12299 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12301 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12302 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12303 ftrace_update_function, ftrace_compute_global_level_offset,
12304 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12305 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12306 btrace_insn_end, btrace_is_empty): Remove references to
12307 btrace_thread_info::begin and btrace_thread_info::end.
12308 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12309 (struct btrace_thread_info) <functions>: Adjust comment.
12310 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12311 btrace_thread_info::begin.
12313 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12315 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12316 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12317 ftrace_update_function): Remove arguments that implicitly were always
12319 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12320 Don't pass BTINFO->END.
12322 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12324 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12325 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12326 btrace_find_insn_by_number): Replace function segment pointer with
12328 (btrace_insn_cmp): Simplify.
12329 * btrace.h: (struct btrace_insn_iterator) Rename index to
12330 insn_index. Replace function segment pointer with index into function
12332 * record-btrace.c (record_btrace_call_history): Replace function
12333 segment pointer use with index.
12334 (record_btrace_frame_sniffer): Retrieve function call segment through
12336 (record_btrace_set_replay): Remove defunc't safety check.
12338 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12340 * btrace.c (btrace_ends_with_single_insn): New function.
12341 (btrace_call_get, btrace_call_number, btrace_call_begin,
12342 btrace_call_end, btrace_call_next, btrace_call_prev,
12343 btrace_find_call_by_number): Use index into call segment vector
12344 instead of pointer.
12345 (btrace_call_cmp): Simplify.
12346 * btrace.h (struct btrace_call_iterator): Replace function call segment
12347 pointer with index into vector.
12348 * record-btrace.c (record_btrace_call_history): Use index instead of
12351 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12353 * btrace.c (btrace_insn_begin, btrace_insn_end,
12354 btrace_find_insn_by_number): Add btinfo to iterator.
12355 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12357 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12359 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12360 and save pointers directly.
12361 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12362 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12363 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12364 changed signature of functions.
12365 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12366 (btrace_fetch): Remove code that adds btrace_function pointers to
12367 vector of btrace_functions.
12368 (btrace_clear): Simplify freeing vector of btrace_functions.
12370 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12372 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12373 Replace VEC_* with std::vector functions.
12374 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12375 (struct btrace_thread_info)<functions>: Change type to std::vector.
12377 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12379 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12380 "Removed targets and native configurations" up. Merge duplicate
12381 "New commands" sub-sections. Add "New options" sub-sections.
12383 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12385 * defs.h (copy_integer_to_size): New declaration.
12386 * findvar.c (copy_integer_to_size): New function.
12387 (do_cint_test): New selftest function.
12388 (copy_integer_to_size_test): Likewise.
12389 (_initialize_findvar): Likewise.
12390 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12391 (mips_fbsd_collect_reg): Use raw_collect_integer.
12392 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12393 (mips64_fill_gregset): Use raw_collect_integer
12394 (mips64_fill_fpregset): Use raw_supply_integer.
12395 * regcache.c (regcache::raw_supply_integer): New function.
12396 (regcache::raw_collect_integer): Likewise.
12397 * regcache.h: (regcache::raw_supply_integer): New declaration.
12398 (regcache::raw_collect_integer): Likewise.
12400 2017-05-24 Yao Qi <yao.qi@linaro.org>
12402 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12403 (COMMON_OBS): Add gdbarch-selftests.o.
12404 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12405 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12406 * gdbarch-selftests.c: New file.
12407 * regcache.h (regcache) <~regcache>: Mark it virtual if
12409 <raw_write>: Likewise.
12411 2017-05-24 Yao Qi <yao.qi@linaro.org>
12413 * regcache.c (current_regcache): Change it to
12414 regcache::current_regcache.
12415 (regcache_observer_target_changed): Update.
12416 (regcache_thread_ptid_changed): Make it a regcache static
12418 (regcache_thread_ptid_changed): Update.
12419 (class regcache_access): New.
12420 (current_regcache_test): Update.
12421 (_initialize_regcache): Update.
12422 * regcache.h: Include forward_list.
12423 (regcache): Declare regcache_thread_ptid_changed and declare
12424 registers_changed_ptid as friend.
12426 2017-05-24 Yao Qi <yao.qi@linaro.org>
12428 * i387-tdep.c (i387_register_to_value): Use register_size
12429 instead of TYPE_LENGTH.
12430 * m68k-tdep.c (m68k_register_to_value): Likewise.
12432 2017-05-24 Yao Qi <yao.qi@linaro.org>
12434 * i387-tdep.c (i387_convert_register_p): Return false if type
12435 code isn't TYPE_CODE_FLT.
12437 2017-05-24 Yao Qi <yao.qi@linaro.org>
12439 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12441 (alpha_register_to_value): Remove type length check.
12442 (alpha_value_to_register): Likewise.
12444 2017-05-24 Yao Qi <yao.qi@linaro.org>
12446 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12449 2017-05-24 Yao Qi <yao.qi@linaro.org>
12451 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12452 TYPE_CODE_FLT or not.
12454 2017-05-24 Yao Qi <yao.qi@linaro.org>
12456 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12457 * avr-tdep.c (avr_gdbarch_init): Likewise.
12458 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12459 * cris-tdep.c (cris_gdbarch_init): Likewise.
12460 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12461 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12462 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12464 * mep-tdep.c (mep_gdbarch_init): Likewise.
12465 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12466 * mips-tdep.c (mips_gdbarch_init): Likewise.
12467 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12468 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12469 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12470 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12471 * v850-tdep.c (v850_gdbarch_init): Likewise.
12473 2017-05-24 Yao Qi <yao.qi@linaro.org>
12475 * selftest-arch.c (tests_with_arch): Call registers_changed
12476 and reinit_frame_cache.
12477 * selftest.c (run_self_tests): Likewise.
12479 2017-05-24 Yao Qi <yao.qi@linaro.org>
12481 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12482 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12484 2017-05-24 Yao Qi <yao.qi@linaro.org>
12486 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12487 set_gdbarch_print_insn.
12489 2017-05-24 Yao Qi <yao.qi@linaro.org>
12491 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12492 set_gdbarch_print_insn.
12494 2017-05-24 Yao Qi <yao.qi@linaro.org>
12496 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12497 set_gdbarch_print_insn.
12498 * arc-tdep.c (arc_gdbarch_init): Likewise.
12499 * arch-utils.c: include dis-asm.h.
12500 (default_print_insn): New function.
12501 * arch-utils.h (default_print_insn): Declare.
12502 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12503 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12504 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12505 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12506 * frv-tdep.c (frv_gdbarch_init): Likewise.
12507 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12508 * gdbarch.sh (print_insn): Use default_print_insn.
12509 * gdbarch.c: Regenerated.
12510 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12511 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12512 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12513 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12514 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12515 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12516 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12517 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12518 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12519 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12520 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12521 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12522 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12523 * mt-tdep.c (mt_gdbarch_init): Likewise.
12524 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12525 * nios2-tdep.c (nios2_print_insn): Remove.
12526 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12527 * rx-tdep.c (rx_gdbarch_init): Likewise.
12528 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12529 * score-tdep.c (score_print_insn): Remove.
12530 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12531 * sh-tdep.c (sh_gdbarch_init): Likewise.
12532 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12533 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12534 * tic6x-tdep.c (tic6x_print_insn): Remove.
12535 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12536 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12537 * v850-tdep.c (v850_gdbarch_init): Likewise.
12538 * vax-tdep.c (vax_gdbarch_init): Likewise.
12539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12540 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12542 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12544 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12545 (MIPS_FP0_REGNUM): Remove.
12546 (MIPS_FSR_REGNUM): Remove.
12547 (mips_fbsd_supply_fpregs): Use mips_regnum.
12548 (mips_fbsd_supply_gregs): Likewise.
12549 (mips_fbsd_collect_fpregs): Likewise.
12550 (mips_fbsd_collect_gregs): Likewise.
12552 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12554 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12555 (getpfpregs_supplies): New function.
12556 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12557 getfpregs_supplies.
12558 (mips_fbsd_store_inferior_registers): Likewise.
12560 2017-05-22 Pedro Alves <palves@redhat.com>
12562 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12565 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12567 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12568 (store_register): Likewise.
12569 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12570 (get_decimal_float_return_value): Likewise.
12571 (do_ppc_sysv_return_value): Likewise.
12572 (ppc64_sysv_abi_push_integer): Likewise.
12573 (ppc64_sysv_abi_push_freg): Likewise.
12574 (ppc64_sysv_abi_return_value_base): Likewise.
12575 (ppc64_sysv_abi_return_value): Likewise.
12576 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12577 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12578 * rs6000-nat.c: Likewise.
12579 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12580 (rs6000_value_to_register): Likewise.
12581 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12583 2017-05-21 Tom Tromey <tom@tromey.com>
12586 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12587 arrays as "[T]", not "[T; ]".
12589 2017-05-19 Tom Tromey <tom@tromey.com>
12592 * rust-lang.c (exp_descriptor_rust): New function.
12593 (rust_language_defn): Use it.
12594 * p-lang.c (pascal_language_defn): Update.
12595 * opencl-lang.c (opencl_language_defn): Update.
12596 * objc-lang.c (objc_language_defn): Update.
12597 * m2-lang.c (m2_language_defn): Update.
12598 * language.h (struct language_defn)
12599 <la_watch_location_expression>: New member.
12600 * language.c (unknown_language_defn, auto_language_defn)
12601 (local_language_defn): Update.
12602 * go-lang.c (go_language_defn): Update.
12603 * f-lang.c (f_language_defn): Update.
12604 * d-lang.c (d_language_defn): Update.
12605 * c-lang.h (c_watch_location_expression): Declare.
12606 * c-lang.c (c_watch_location_expression): New function.
12607 (c_language_defn, cplus_language_defn, asm_language_defn)
12608 (minimal_language_defn): Use it.
12609 * breakpoint.c (watch_command_1): Call
12610 la_watch_location_expression.
12611 * ada-lang.c (ada_language_defn): Update.
12613 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12616 * gdb_curses.h (NOMACROS): Define.
12617 (NCURSES_NOMACROS): Define.
12619 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12622 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12624 * tui/tui-wingeneral.c (box_win): Likewise.
12625 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12626 (tui_show_source_line): Likewise.
12627 (tui_show_exec_info_content): Likewise.
12629 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12631 * sparc-tdep.c (sparc_structure_return_p)
12632 (sparc_arg_on_registers_p): New functions.
12633 (sparc32_store_arguments): Use them.
12634 * sparc64-tdep.c (sparc64_16_byte_align_p)
12635 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12636 Handle TYPE_CODE_ARRAY.
12638 2017-05-17 Yao Qi <yao.qi@linaro.org>
12640 * cli/cli-decode.c (add_alias_cmd): New function.
12641 * command.h (add_alias_cmd): Declare.
12642 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12643 instead call add_alias_cmd.
12645 2017-05-17 Pedro Alves <palves@redhat.com>
12647 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12648 (nat_makefile_frag): ... this. All references updated.
12649 * configure.ac: Likewise.
12650 * configure.nat: Likewise. Enhance comments.
12651 * configure: Regenerate.
12653 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12655 * procfs.c (procfs_create_inferior): Change prototype to match
12658 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12660 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12661 C++ compiler warning.
12663 2017-05-12 Tom Tromey <tom@tromey.com>
12666 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12667 recurse, just call value_struct_elt directly.
12669 2017-05-12 Tom Tromey <tom@tromey.com>
12671 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12672 OP_RUST_ARRAY>: Fix.
12674 2017-05-12 Tom Tromey <tom@tromey.com>
12676 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12678 2017-05-09 Yao Qi <yao.qi@linaro.org>
12680 * regcache.c: Include <forward_list>.
12681 (struct regcache_list): Remove.
12682 (current_regcache): Update.
12683 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12684 (regcache_thread_ptid_changed): Likewise.
12685 (registers_changed_ptid): Likewise.
12686 (current_regcache_size): Likewise.
12688 2017-05-09 Yao Qi <yao.qi@linaro.org>
12690 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12691 (current_regcache_size): New function.
12692 (current_regcache_test): New function.
12693 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12695 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12697 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12698 (print_gp_register_row): Use get_frame_register_value.
12700 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12702 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12703 (mips_supply_fpregset): Likewise.
12704 (mips64_supply_gregset): Likewise.
12706 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12708 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12709 regcache->raw_supply_zeroed.
12711 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12713 * configure.nat: Rearrange 'case' statements to match
12716 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12718 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12719 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12720 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12721 "@nat_extra_makefile_frag@".
12722 (Makefile): Remove dependency on "@frags@".
12723 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12724 (data-directory/Makefile): Likewise.
12725 * config/aarch64/linux.mh: Deleted; moved contents to
12726 "gdb/configure.nat".
12727 * config/alpha/alpha-linux.mh: Likewise.
12728 * config/alpha/nbsd.mh: Likewise.
12729 * config/arm/linux.mh: Likewise.
12730 * config/arm/nbsdelf.mh: Likewise.
12731 * config/i386/cygwin.mh: Likewise.
12732 * config/i386/cygwin64.mh: Likewise.
12733 * config/i386/darwin.mh: Likewise.
12734 * config/i386/fbsd.mh: Likewise.
12735 * config/i386/fbsd64.mh: Likewise.
12736 * config/i386/go32.mh: Likewise.
12737 * config/i386/i386gnu.mh: Likewise.
12738 * config/i386/i386sol2.mh: Likewise.
12739 * config/i386/linux.mh: Likewise.
12740 * config/i386/linux64.mh: Likewise.
12741 * config/i386/mingw.mh: Likewise.
12742 * config/i386/mingw64.mh: Likewise.
12743 * config/i386/nbsd64.mh: Likewise.
12744 * config/i386/nbsdelf.mh: Likewise.
12745 * config/i386/nto.mh: Likewise.
12746 * config/i386/obsd.mh: Likewise.
12747 * config/i386/obsd64.mh: Likewise.
12748 * config/i386/sol2-64.mh: Likewise.
12749 * config/ia64/linux.mh: Likewise.
12750 * config/m32r/linux.mh: Likewise.
12751 * config/m68k/linux.mh: Likewise.
12752 * config/m68k/nbsdelf.mh: Likewise.
12753 * config/m68k/obsd.mh: Likewise.
12754 * config/m88k/obsd.mh: Likewise.
12755 * config/mips/fbsd.mh: Likewise.
12756 * config/mips/linux.mh: Likewise.
12757 * config/mips/nbsd.mh: Likewise.
12758 * config/mips/obsd64.mh: Likewise.
12759 * config/pa/linux.mh: Likewise.
12760 * config/pa/nbsd.mh: Likewise.
12761 * config/pa/obsd.mh: Likewise.
12762 * config/powerpc/aix.mh: Likewise.
12763 * config/powerpc/fbsd.mh: Likewise.
12764 * config/powerpc/linux.mh: Likewise.
12765 * config/powerpc/nbsd.mh: Likewise.
12766 * config/powerpc/obsd.mh: Likewise.
12767 * config/powerpc/ppc64-linux.mh: Likewise.
12768 * config/powerpc/spu-linux.mh: Likewise.
12769 * config/s390/linux.mh: Likewise.
12770 * config/sh/nbsd.mh: Likewise.
12771 * config/sparc/fbsd.mh: Likewise.
12772 * config/sparc/linux.mh: Likewise.
12773 * config/sparc/linux64.mh: Likewise.
12774 * config/sparc/nbsd64.mh: Likewise.
12775 * config/sparc/nbsdelf.mh: Likewise.
12776 * config/sparc/obsd64.mh: Likewise.
12777 * config/sparc/sol2.mh: Likewise.
12778 * config/tilegx/linux.mh: Likewise.
12779 * config/vax/nbsdelf.mh: Likewise.
12780 * config/vax/obsd.mh: Likewise.
12781 * config/xtensa/linux.mh: Likewise.
12782 * config/i386/i386gnu.mn: New file, with excerpts from
12783 "config/i386/i386gnu.mh".
12784 * configure: Regenerate.
12785 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12786 *.mh files under "gdb/config".
12787 * configure.nat: New file, with contents from the
12788 "gdb/config/*/*.mh" files.
12790 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12792 * btrace.c (btrace_clear): Free insn vector.
12794 2017-05-05 Pedro Alves <palves@redhat.com>
12796 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12797 * configure: Regenerate.
12799 2017-05-04 Pedro Alves <palves@redhat.com>
12801 * Makefile.in (SFILES): Add progspace-and-thread.c.
12802 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12803 (COMMON_OBS): Add progspace-and-thread.o.
12804 * breakpoint.c: Include "progspace-and-thread.h".
12805 (update_inserted_breakpoint_locations)
12806 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12807 Use scoped_restore_current_pspace_and_thread.
12808 (create_std_terminate_master_breakpoint): Use
12809 scoped_restore_current_program_space.
12810 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12811 (print_breakpoint_location): Use
12812 scoped_restore_current_program_space.
12813 (bp_loc_is_permanent): Use
12814 scoped_restore_current_pspace_and_thread.
12815 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12816 (download_tracepoint_locations): Use
12817 scoped_restore_current_pspace_and_thread.
12818 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12819 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12820 (enum step_over_calls_kind): Moved from inferior.h.
12821 (class scoped_restore_current_thread): New class.
12822 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12824 (scoped_restore_current_thread): New class.
12825 * infcmd.c: Include "common/gdb_optional.h".
12826 (continue_1, proceed_after_attach): Use
12827 scoped_restore_current_thread.
12828 (notice_new_inferior): Use scoped_restore_current_thread.
12829 * inferior.c: Include "progspace-and-thread.h".
12830 (restore_inferior, save_current_inferior): Delete.
12831 (add_inferior_command, clone_inferior_command): Use
12832 scoped_restore_current_pspace_and_thread.
12833 * inferior.h (scoped_restore_current_inferior): New class.
12834 * infrun.c: Include "progspace-and-thread.h" and
12835 "common/gdb_optional.h".
12836 (follow_fork_inferior): Use
12837 scoped_restore_current_pspace_and_thread.
12838 (scoped_restore_exited_inferior): New class.
12839 (handle_vfork_child_exec_or_exit): Use
12840 scoped_restore_exited_inferior,
12841 scoped_restore_current_pspace_and_thread,
12842 scoped_restore_current_thread and scoped_restore.
12843 (fetch_inferior_event): Use scoped_restore_current_thread.
12844 * linespec.c (decode_line_full, decode_line_1): Use
12845 scoped_restore_current_program_space.
12846 * mi/mi-main.c: Include "progspace-and-thread.h".
12847 (exec_continue): Use scoped_restore_current_thread.
12848 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12849 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12850 * proc-service.c (ps_pglobal_lookup): Use
12851 scoped_restore_current_program_space.
12852 * progspace-and-thread.c: New file.
12853 * progspace-and-thread.h: New file.
12854 * progspace.c (release_program_space, clone_program_space): Use
12855 scoped_restore_current_program_space.
12856 (restore_program_space, save_current_program_space)
12857 (save_current_space_and_thread): Delete.
12858 (switch_to_program_space_and_thread): Moved to
12859 progspace-and-thread.c.
12860 * progspace.h (save_current_program_space)
12861 (save_current_space_and_thread): Delete declarations.
12862 (scoped_restore_current_program_space): New class.
12863 * remote.c (remote_btrace_maybe_reopen): Use
12864 scoped_restore_current_thread.
12865 * symtab.c: Include "progspace-and-thread.h".
12866 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12867 * thread.c (print_thread_info_1): Use
12868 scoped_restore_current_thread.
12869 (struct current_thread_cleanup): Delete.
12870 (do_restore_current_thread_cleanup)
12871 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12872 (scoped_restore_current_thread::~scoped_restore_current_thread):
12874 (make_cleanup_restore_current_thread): Rename/convert to ...
12875 (scoped_restore_current_thread::scoped_restore_current_thread):
12877 (thread_apply_all_command): Use scoped_restore_current_thread.
12878 (thread_apply_command): Use scoped_restore_current_thread.
12879 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12880 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12882 2017-05-04 Pedro Alves <palves@redhat.com>
12884 * thread.c (make_cleanup_restore_current_thread): Move
12885 find_thread_ptid call before the is_stopped call. Assert that the
12886 thread is found. Replace is_stopped call by checking the thread's
12887 state directly. Remove unnecessary NULL-thread check.
12889 2017-05-04 Pedro Alves <palves@redhat.com>
12891 * corelow.c (thread_section_name): New class.
12892 (get_core_register_section, get_core_siginfo): Use it.
12894 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12896 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12897 (get_core_register_section): Remove xfree of NULL pointer.
12899 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12901 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12902 * regcache.c (regcache::raw_supply_zeroed): New function.
12903 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12905 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12907 * gdbarch.sh: Remove commented out definition of
12909 * gdbarch.h: Re-generate.
12911 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12913 * configure: Regenerate.
12915 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12917 * solib-target.c (solib_target_relocate_section_addresses):
12918 Remove num_section_bases, num_bases, segment_bases variables.
12920 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12922 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12924 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12926 * solib-target.c: Include <vector>
12927 (struct lm_info_target) <~lm_info_target>: Remove.
12928 <segment_bases, section_bases>: Change type to
12929 std::vector<CORE_ADDR>.
12930 (library_list_start_segment, library_list_start_section,
12931 library_list_end_library,
12932 solib_target_relocate_section_addresses): Adjust.
12934 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12936 * gdbarch.sh (software_single_step): Change return type to
12937 std::vector<CORE_ADDR>.
12938 * gdbarch.c, gdbarch.h: Re-generate.
12939 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12941 (arm_deal_with_atomic_sequence_raw): Adjust.
12942 (thumb_get_next_pcs_raw): Adjust.
12943 (arm_get_next_pcs_raw): Adjust.
12944 (arm_get_next_pcs): Adjust.
12945 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12946 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12947 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12948 (alpha_software_single_step): Adjust.
12949 * alpha-tdep.h (alpha_software_single_step): Adjust.
12950 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12951 * arm-tdep.c (arm_software_single_step): Adjust.
12952 (arm_breakpoint_kind_from_current_state): Adjust.
12953 * arm-tdep.h (arm_software_single_step): Adjust.
12954 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12955 * cris-tdep.c (cris_software_single_step): Adjust.
12956 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12957 (micromips_deal_with_atomic_sequence): Adjust.
12958 (deal_with_atomic_sequence): Adjust.
12959 (mips_software_single_step): Adjust.
12960 * mips-tdep.h (mips_software_single_step): Adjust.
12961 * moxie-tdep.c (moxie_software_single_step): Adjust.
12962 * nios2-tdep.c (nios2_software_single_step): Adjust.
12963 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12964 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12965 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12966 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12967 * sparc-tdep.c (sparc_software_single_step): Adjust.
12968 * spu-tdep.c (spu_software_single_step): Adjust.
12969 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12971 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12973 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12974 * gdbarch.h: Re-generate.
12976 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12978 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12979 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12980 * python/py-instruction.c, python/py-instruction.h: New file.
12981 * python/py-record.c: Add py-instruction.h include.
12982 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12983 gdb.RecordInstruction.
12984 * python/python-internal.h: Add gdbpy_initialize_instruction
12986 * python/python.c (do_start_initialization): Add
12987 gdbpy_initialize_instruction.
12989 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12991 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12993 (btrace_func_from_recpy_func): New function.
12994 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12995 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12996 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12997 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12998 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12999 Also, use new helper functions.
13000 (btpy_list_item): Use new helper functions.
13001 (recpy_bt_function_call_history): Use new type name.
13002 (btpy_call_getset): Remove.
13003 (gdbpy_initialize_btrace): Remove code to initialize
13004 gdb.BtraceFunctionCall.
13005 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
13006 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
13007 recpy_bt_func_prev, recpy_bt_func_next): New export.
13008 * python/py-record.c (recpy_func_type): New static object.
13009 (recpy_func_new, recpy_func_level, recpy_func_symbol,
13010 recpy_func_instructions, recpy_func_up, recpy_func_prev,
13011 recpy_func_next): New function.
13012 (recpy_element_hash, recpy_element_richcompare): Updated comment.
13013 (recpy_func_getset): New static object.
13014 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
13015 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
13017 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13019 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
13020 (btpy_object, btpy_insn_type, btpy_new): Remove.
13021 (btpy_list_object): Use gdb.RecordInstruction type instead of
13022 gdb.BtraceInstruction type.
13023 (btrace_insn_from_recpy_insn): New function.
13024 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
13026 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
13027 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
13028 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
13029 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
13030 instead of btpy_object.
13031 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13032 btpy_insn_data, btpy_insn_decode): Rename to ...
13033 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
13034 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
13035 recpy_bt_insn_decode): This. Also, use new helper functions.
13036 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
13038 (btpy_insn_getset): Remove.
13039 (gdbpy_initialize_btrace): Remove code to initialize
13040 gdb.BtraceInstruction. Use recpy_element_object.
13041 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
13042 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
13043 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
13044 * python/py-record.c (recpy_insn_type): New static object.
13045 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
13046 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
13047 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
13049 (recpy_insn_getset): New static object.
13050 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
13051 * python/py-record.h (recpy_element_object): New typedef.
13052 (recpy_insn_type, recpy_insn_new): New export.
13054 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13056 * py-record-btrace.c (btpy_insn_new): Removed.
13057 (btpy_insn_or_gap_new): New function.
13058 (btpy_insn_error): Removed.
13059 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
13060 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
13061 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
13062 btpy_insn_or_gap_new instead of btpy_insn_new.
13063 (btpy_insn_getset): Remove btpy_insn_error.
13064 * py-record.c (recpy_gap_type): New static object.
13065 (recpy_gap_object): New typedef.
13066 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
13067 recpy_gap_reason_string): New function.
13068 (recpy_gap_getset): New static object.
13069 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
13070 * py-record.h (recpy_gap_new): New export.
13072 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13074 * python/py-record.c (recpy_ptid): Remove.
13075 (recpy_record_getset): Remove recpy_ptid.
13077 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13079 * btrace.c (btrace_fetch): Set inferior_ptid.
13080 * python/py-record-btrace.c: Add "py-record.h" include.
13081 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
13082 recpy_bt_end, recpy_bt_instruction_history,
13083 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
13084 in gdb.Record object instead of current ptid.
13085 * python/py-record.c: Include new "py-record.h" file.
13086 (recpy_record_object): Moved to py-record.h.
13087 * python/py-record.h: New file.
13089 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
13091 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
13092 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
13095 2017-05-01 Joel Brobecker <brobecker@adacore.com>
13097 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
13098 the past maintainers section.
13100 2017-04-28 Yao Qi <yao.qi@linaro.org>
13102 * infcmd.c (get_return_value): Use regcache ctor, and remove
13105 2017-04-28 Yao Qi <yao.qi@linaro.org>
13106 Pedro Alves <palves@redhat.com>
13108 * regcache.c (regcache::regcache): New tag dispatch ctor.
13109 (do_cooked_read): Moved above.
13110 (regcache_dup): Use the tag dispatch ctor..
13111 * regcache.h (regcache): Declare ctor, delete copy ctor and
13112 assignment operator, remove friend regcache_dup.
13114 2017-04-28 Yao Qi <yao.qi@linaro.org>
13116 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
13117 call method save instead of regcache_cpy.
13118 * regcache.h (struct regcache): Make regcache_dup a friend.
13120 2017-04-28 Yao Qi <yao.qi@linaro.org>
13122 * regcache.c (struct regcache): Move to regcache.h
13123 (regcache::arch): New method.
13124 (regcache_get_ptid): Update.
13125 (get_regcache_arch): Call arch method.
13126 (get_regcache_aspace): Call method aspace.
13127 (register_buffer): Change it to method.
13128 (regcache_save): Change it to regcache::save.
13129 (regcache_restore): Likewise.
13130 (regcache_cpy_no_passthrough): Remove the declaration.
13131 (regcache_cpy): Call methods restore and cpy_no_passthrough.
13132 (regcache_cpy_no_passthrough): Change it to method
13133 cpy_no_passthrough.
13134 (regcache_register_status): Change it to method
13135 get_register_status.
13136 (regcache_invalidate): Change it to method invalidate.
13137 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
13138 (regcache_raw_update): Change it to method raw_update.
13139 (regcache_raw_read): Likewise.
13140 (regcache_raw_read_signed): Likewise.
13141 (regcache_raw_read_unsigned): Likewise.
13142 (regcache_raw_write_signed): Likewise.
13143 (regcache_raw_write_unsigned): Likewise.
13144 (regcache_cooked_read): Likewise.
13145 (regcache_cooked_read_value): Likewise.
13146 (regcache_cooked_read_signed): Likewise.
13147 (regcache_cooked_read_unsigned): Likewise.
13148 (regcache_cooked_write_signed): Likewise.
13149 (regcache_cooked_write_unsigned): Likewise.
13150 (regcache_raw_set_cached_value): Likewise.
13151 (regcache_raw_write): Likewise.
13152 (regcache_cooked_write): Likewise.
13153 (regcache_xfer_part): Likewise.
13154 (regcache_raw_read_part): Likewise.
13155 (regcache_raw_write_part): Likewise.
13156 (regcache_cooked_read_part): Likewise.
13157 (regcache_cooked_write_part): Likewise.
13158 (regcache_raw_supply): Likewise.
13159 (regcache_raw_collect): Likewise.
13160 (regcache_transfer_regset): Likewise.
13161 (regcache_supply_regset): Likewise.
13162 (regcache_collect_regset): Likewise.
13163 (regcache_debug_print_register): Likewise.
13164 (enum regcache_dump_what): Move it to regcache.h.
13165 (regcache_dump): Change it to method dump.
13166 * regcache.h (enum regcache_dump_what): New.
13167 (class regcache): New.
13168 * target.c (target_fetch_registers): Call method
13169 debug_print_register.
13170 (target_store_registers): Likewise.
13172 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13174 * windows-nat.c (struct lm_info_windows): Initialize field.
13175 (windows_make_so): Allocate lm_info_windows with new.
13176 (windows_free_so): Free lm_info_windows with delete.
13178 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13180 * solib-darwin.c (struct lm_info_darwin): Initialize field.
13181 (darwin_current_sos): Allocate lm_info_darwin with new, remove
13183 (darwin_free_so): Free lm_info_darwin with delete.
13185 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13187 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
13188 <l_addr_p>: Change type to bool.
13189 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
13190 (svr4_free_so): Free lm_info_svr4 with delete.
13191 (svr4_copy_library_list): Replace memcpy with call to copy
13193 (library_list_start_library, svr4_default_sos): Allocate
13194 lm_info_svr4 with new.
13196 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13198 * solib-target.c (struct lm_info_target): Add destructor,
13200 <name>: Change type to std::string.
13201 (library_list_start_library): Allocate lm_info_target with new.
13202 (solib_target_free_library_list): Free lm_info_target with
13204 (solib_target_current_sos): Adapt to std::string.
13205 (solib_target_free_so): Free lm_info_target with delete.
13207 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13209 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
13211 (frv_current_sos): Allocate lm_info_frv with new.
13212 (frv_relocate_main_executable): Free lm_info_frv with delete,
13214 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
13216 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13218 * solib-frv.c (struct lm_info_frv): Fix indentation.
13220 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13222 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
13224 (dsbt_current_sos): Allocate lm_info_dsbt with new.
13225 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
13226 and allocate with new.
13227 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
13229 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13231 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
13232 <filename, member_name>: Change type to std::string.
13233 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
13234 (library_list_start_library): Allocate lm_info_aix with new.
13235 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
13236 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
13237 with copy constructor.
13239 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13241 * solist.h (struct lm_info): Remove.
13242 (struct lm_info_base): New class.
13243 (struct so_list) <lm_info>: Change type to lm_info_base *.
13244 * nto-tdep.c (struct lm_info): Remove.
13246 * solib-aix.c (struct lm_info): Rename to ...
13247 (struct lm_info_aix): ... this. Extend lm_info_base.
13248 (lm_info_p): Rename to ...
13249 (lm_info_aix_p): ... this, and adjust.
13250 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13251 solib_aix_parse_libraries, library_list_start_library,
13252 solib_aix_free_library_list, solib_aix_parse_libraries,
13253 solib_aix_get_library_list,
13254 solib_aix_relocate_section_addresses, solib_aix_free_so,
13255 solib_aix_get_section_offsets,
13256 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13258 (struct solib_aix_inferior_data) <library_list>: Adjust.
13259 * solib-darwin.c (struct lm_info): Rename to ...
13260 (struct lm_info_darwin): ... this. Extend lm_info_base.
13261 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13262 * solib-dsbt.c (struct lm_info): Rename to ...
13263 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13264 (struct dsbt_info) <main_executable_lm_info): Adjust.
13265 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13266 dsbt_relocate_section_addresses): Adjust.
13267 * solib-frv.c (struct lm_info): Rename to ...
13268 (struct lm_info_frv): ... this. Extend lm_info_base.
13269 (main_executable_lm_info): Adjust.
13270 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13271 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13272 find_canonical_descriptor_in_load_object,
13273 frv_fdpic_find_canonical_descriptor): Adjust.
13274 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13276 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13277 svr4_clear_so, svr4_copy_library_list,
13278 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13279 svr4_current_sos, svr4_fetch_objfile_link_map,
13280 solist_update_incremental): Adjust.
13281 * solib-svr4.h (struct lm_info_svr4): Move here from
13283 * solib-target.c (struct lm_info): Rename to ...
13284 (struct lm_info_target): ... this. Extend lm_info_base.
13285 (lm_info_p): Rename to ...
13286 (lm_info_target_p): ... this.
13287 (solib_target_parse_libraries, library_list_start_segment,
13288 library_list_start_section, library_list_start_library,
13289 library_list_end_library, solib_target_free_library_list,
13290 solib_target_current_sos, solib_target_free_so,
13291 solib_target_relocate_section_addresses): Adjust.
13292 * windows-nat.c (struct lm_info): Rename to ...
13293 (struct lm_info_windows): ... this. Extend lm_info_base.
13294 (windows_make_so, handle_load_dll, handle_unload_dll,
13295 windows_xfer_shared_libraries): Adjust.
13297 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13299 * solib-darwin.c (struct darwin_so_list): Remove.
13300 (darwin_current_sos): Allocate an so_list object instead of a
13301 darwin_so_list, separately allocate an lm_info object.
13302 (darwin_free_so): Free lm_info.
13304 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13306 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13307 with fprintf_filtered.
13309 2017-04-28 Yao Qi <yao.qi@linaro.org>
13311 * regcache.c (regcache::regcache): New function.
13312 (regcache::~regcache): New function.
13313 (regcache_xmalloc_1): Remove.
13314 (regcache_xmalloc): Call new regcache.
13315 (regcache_xfree): Call delete regcache.
13316 (get_thread_arch_aspace_regcache): Call new regcache.
13318 2017-04-28 Yao Qi <yao.qi@linaro.org>
13320 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13321 lwp instead of ptid_get_lwp.
13323 2017-04-28 Yao Qi <yao.qi@linaro.org>
13325 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13326 lwp_info instead of getting from inferior_ptid.
13328 2017-04-27 Keith Seitz <keiths@redhat.com>
13330 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13331 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13332 (CV_CONVERSION_BADNESS): Define.
13333 (rank_one_type): Remove overly restrictive rvalue reference
13335 Add cv-qualifier checks and subranks for type equality.
13336 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13337 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13338 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13340 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13342 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13343 count when creating the object.
13345 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13346 Ulrich Weigand <uweigand@de.ibm.com>
13348 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13349 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13351 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13352 (process_xcoff_symbol): Likewise.
13353 (scan_xcoff_symtab): Likewise.
13355 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13357 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13358 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13359 (ia64_access_reg): Use get_frame_register_unsigned.
13360 (ia64_access_rse_reg): Likewise.
13361 (ia64_libunwind_frame_prev_register): Likewise.
13363 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13365 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13366 * gdbarch.c: Regenerated.
13367 * gdbarch.h: Regenerated.
13368 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13369 visibility external.
13370 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13371 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13372 (enum cfa_how_kind): Move to ...
13373 (struct dwarf2_frame_state_reg_info): Likewise.
13374 (struct dwarf2_frame_state): Likewise.
13375 * dwarf2-frame.h: ... here.
13376 (dwarf2_frame_state_alloc_regs): New declaration.
13377 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13378 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13380 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13382 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13383 regcache_raw_read_unsigned.
13384 (xtensa_pseudo_register_write): Likewise.
13386 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13388 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13389 (nds32_pseudo_register_write): Likewise.
13391 2017-04-25 Yao Qi <yao.qi@linaro.org>
13393 * regcache.c (struct regcache) <readonly_p>: Change its type
13395 (regcache_xmalloc_1): Update parameter type and callers update.
13397 2017-04-25 Yao Qi <yao.qi@linaro.org>
13399 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13400 set_gdbarch_wchar_bit.
13401 * arm-tdep.c (arm_gdbarch_init): Likewise.
13403 2017-04-25 Pedro Alves <palves@redhat.com>
13405 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13406 (BothAreRelocatable, memcopy, memmove): Don't define.
13407 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13410 2017-04-25 Pedro Alves <palves@redhat.com>
13412 * common/common-defs.h: Include "common/poison.h".
13413 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13415 * common/poison.h: New file.
13416 * common/traits.h: Include <type_traits>.
13417 (Not, Or, Requires): New, moved from common/function-view.h.
13419 2017-04-25 Pedro Alves <palves@redhat.com>
13421 * breakpoint.h (struct breakpoint): In-class initialize all
13422 fields. Make boolean fields "bool".
13423 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13424 memset call and initializations no longer necessary.
13426 2017-04-25 Pedro Alves <palves@redhat.com>
13428 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13430 (pt_btrace_insn): New function.
13431 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13433 2017-04-25 Pedro Alves <palves@redhat.com>
13435 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13436 "base" field and inherit from "bp_location" instead. Add
13438 (allocate_location_exception): Use new non-default ctor.
13439 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13440 (init_bp_location): Convert to ...
13441 (bp_location::bp_location): ... this new ctor, and remove memset
13443 (base_breakpoint_allocate_location): Use the new non-default ctor.
13444 * breakpoint.h (bp_location): Now a class. Declare default and
13445 non-default ctors. In-class initialize all members.
13446 (init_bp_location): Remove declaration.
13448 2017-04-25 Pedro Alves <palves@redhat.com>
13450 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13451 assignment operator.
13453 2017-04-24 Yao Qi <yao.qi@linaro.org>
13455 * doublest.c (convert_doublest_to_floatformat): Call
13456 floatformat_totalsize_bytes.
13458 2017-04-22 Tom Tromey <tom@tromey.com>
13460 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13462 * stack.c (print_frame): Use ui_out_emit_list.
13463 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13465 * mi/mi-main.c (print_one_inferior)
13466 (mi_cmd_data_list_register_names)
13467 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13468 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13470 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13471 (mi_output_solib_attribs): Use ui_out_emit_list,
13473 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13474 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13475 (mi_cmd_stack_list_args, list_args_or_locals): Use
13477 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13478 * breakpoint.c (print_solib_event, output_thread_groups): Use
13481 2017-04-22 Tom Tromey <tom@tromey.com>
13483 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13484 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13485 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13487 2017-04-22 Tom Tromey <tom@tromey.com>
13489 * tracepoint.c (tvariables_info_1)
13490 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13492 2017-04-22 Tom Tromey <tom@tromey.com>
13494 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13495 annotate_arg_emitter.
13496 * breakpoint.c (print_mention_watchpoint)
13497 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13498 * annotate.h (struct annotate_arg_emitter): New.
13500 2017-04-22 Tom Tromey <tom@tromey.com>
13502 * record-btrace.c (record_btrace_insn_history)
13503 (record_btrace_insn_history_range, record_btrace_call_history)
13504 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13505 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13507 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13508 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13509 * skip.c (skip_info): Use ui_out_emit_tuple.
13510 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13511 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13512 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13513 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13514 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13516 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13517 (output_register, mi_cmd_data_read_memory)
13518 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13519 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13520 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13521 Use ui_out_emit_tuple.
13522 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13524 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13525 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13526 * linux-thread-db.c (info_auto_load_libthread_db): Use
13528 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13529 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13530 * disasm.c (do_mixed_source_and_assembly_deprecated)
13531 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13532 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13533 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13534 * breakpoint.c (print_one_breakpoint_location)
13535 (print_one_breakpoint): Use ui_out_emit_tuple.
13536 * auto-load.c (print_script, info_auto_load_cmd): Use
13538 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13540 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13542 * thread.c (print_thread_info_1): Remove dead code.
13544 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13546 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13548 * arm-tdep.c (selftests::arm_record_test): Likewise.
13550 2017-04-21 Yao Qi <yao.qi@linaro.org>
13552 * regcache.c (regcache_restore): Remove argument 2. Replace
13553 argument 3 with regcache. Get register status from
13554 src->register_status and get register contents from
13555 register_buffer (src, regnum).
13556 (regcache_cpy): Update.
13558 2017-04-19 Pedro Alves <palves@redhat.com>
13560 * gdbthread.h (thread): Add missing closing parenthesis in
13563 2017-04-19 Pedro Alves <palves@redhat.com>
13565 * common/refcounted-object.h: New file.
13566 * gdbthread.h: Include "common/refcounted-object.h".
13567 (thread_info): Inherit from refcounted_object and add comments.
13568 (thread_info::incref, thread_info::decref)
13569 (thread_info::m_refcount): Delete.
13570 (thread_info::deletable): Use the refcounted_object::refcount()
13572 * inferior.c (current_inferior_): Add comment.
13573 (set_current_inferior): Increment/decrement refcounts.
13574 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13575 not-deletable instead of comparing with the current inferior.
13576 (initialize_inferiors): Increment the initial inferior's refcount.
13577 * inferior.h (struct inferior): Forward declare.
13578 Include "common/refcounted-object.h".
13579 (current_inferior, set_current_inferior): Move declaration to
13580 before struct inferior's definition, and fix comment.
13581 (inferior): Inherit from refcounted_object. Add comments.
13582 * thread.c (switch_to_thread_no_regs): Reference the thread's
13583 inferior pointer directly instead of doing a ptid lookup.
13584 (switch_to_no_thread): New function.
13585 (switch_to_thread(thread_info *)): New function, factored out
13587 (switch_to_thread(ptid_t)): ... this.
13588 (restore_current_thread): Delete.
13589 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13590 fields, and add 'inf' field.
13591 (do_restore_current_thread_cleanup): Check whether old->inf is
13592 alive instead of looking up an inferior by ptid. Use
13593 switch_to_thread and switch_to_no_thread.
13594 (restore_current_thread_cleanup_dtor): Use old->inf directly
13595 instead of lookup up an inferior by id. Decref the inferior.
13596 Don't restore 'removable'.
13597 (make_cleanup_restore_current_thread): Same the inferior pointer
13598 in old, instead of the inferior number. Incref the inferior.
13599 Don't save/clear 'removable'.
13601 2017-04-19 Pedro Alves <palves@redhat.com>
13603 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13604 unittests/scoped_restore-selftests.c.
13605 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13606 * common/scoped_restore.h (scoped_restore_base): Make "class".
13607 (scoped_restore_base::release): New public method.
13608 (scoped_restore_base::scoped_restore_base): New protected ctor.
13609 (scoped_restore_base::m_saved_var): New protected field.
13610 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13611 scoped_restore_base base class instead of m_saved_var directly.
13612 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13613 (scoped_restore_tmpl::scoped_restore_tmpl(const
13614 scoped_restore_tmpl<T>&)): Likewise.
13615 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13617 (scoped_restore_tmpl::saved_var): New method.
13618 (scoped_restore_tmpl::m_saved_var): Delete.
13619 * inferior.h (inferior::detaching): Now a bool.
13620 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13622 * unittests/scoped_restore-selftests.c: New file.
13624 2017-04-19 Pedro Alves <palves@redhat.com>
13626 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13627 Re-sort in alphabetic order.
13629 2017-04-18 Pedro Alves <palves@redhat.com>
13631 * xml-support.c (obstack_xml_printf): Delete.
13632 * xml-support.h (obstack_xml_printf): Delete.
13634 2017-04-18 Pedro Alves <palves@redhat.com>
13636 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13637 vdebug, verror, body_text, start_element, end_element, name,
13638 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13639 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13640 is_xinclude>: Make private and add m_ prefix.
13641 (gdb_xml_parser::body_text): New method, based on ...
13642 (gdb_xml_body_text): ... this. Adjust.
13643 (gdb_xml_parser::vdebug): New method, based on ...
13644 (gdb_xml_debug): ... this. Adjust.
13645 (gdb_xml_parser::verror): New method, based on ...
13646 (gdb_xml_error): ... this. Adjust.
13647 (gdb_xml_parser::start_element): New method, based on ...
13648 (gdb_xml_start_element): ... this. Adjust.
13649 (gdb_xml_start_element_wrapper): Defer to
13650 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13651 (gdb_xml_parser::end_element): New method, based on ...
13652 (gdb_xml_end_element_wrapper): ... this. Adjust.
13653 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13654 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13655 (gdb_xml_parser::use_dtd): New method, based on ...
13656 (gdb_xml_use_dtd): ... this. Adjust.
13657 (gdb_xml_parser::parse): New method, based on ...
13658 (gdb_xml_parse): ... this. Adjust.
13659 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13660 (xinclude_start_include): Adjust to call the parser's name method.
13661 (xml_xinclude_default, xml_xinclude_start_doctype)
13662 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13664 (xml_process_xincludes): Adjust to call parser methods.
13665 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13668 2017-04-18 Pedro Alves <palves@redhat.com>
13670 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13671 gdb::optional<std::string>.
13672 * xml-support.c: Include <string>.
13673 (scope_level::scope_level(scope_level &&))
13674 (scope_level::~scope_level): Delete.
13675 (scope_level::body): Now a std::string.
13676 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13677 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13679 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13680 (xinclude_parsing_data::output): Now a std::string reference.
13681 (xinclude_start_include): Adjust.
13682 (xml_xinclude_default): Adjust.
13683 (xml_process_xincludes): Add 'output' parameter, and return bool.
13684 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13686 * xml-tdesc.c: Include <unordered_map> and <string>.
13687 (tdesc_xml_cache): Delete.
13688 (tdesc_xml_cache_s): Delete.
13689 (xml_cache): Now an std::unordered_map.
13690 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13691 (target_fetch_description_xml): Change return type to
13692 gdb::optional<std::string>, and adjust.
13693 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13694 (target_fetch_description_xml): Change return type to
13695 gdb::optional<std::string>.
13697 2017-04-18 Pedro Alves <palves@redhat.com>
13699 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13700 unittests/optional-selftests.c.
13701 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13702 * unittests/optional-selftests.c: New file.
13703 * unittests/optional/assignment/1.cc: New file.
13704 * unittests/optional/assignment/2.cc: New file.
13705 * unittests/optional/assignment/3.cc: New file.
13706 * unittests/optional/assignment/4.cc: New file.
13707 * unittests/optional/assignment/5.cc: New file.
13708 * unittests/optional/assignment/6.cc: New file.
13709 * unittests/optional/assignment/7.cc: New file.
13710 * unittests/optional/cons/copy.cc: New file.
13711 * unittests/optional/cons/default.cc: New file.
13712 * unittests/optional/cons/move.cc: New file.
13713 * unittests/optional/cons/value.cc: New file.
13714 * unittests/optional/in_place.cc: New file.
13715 * unittests/optional/observers/1.cc: New file.
13716 * unittests/optional/observers/2.cc: New file.
13718 2017-04-18 Pedro Alves <palves@redhat.com>
13720 * common/gdb_optional.h: Include common/traits.h.
13721 (in_place_t): New type.
13722 (in_place): New constexpr variable.
13723 (optional::optional): Remove member initialization of
13725 (optional::optional(in_place_t...)): New constructor.
13726 (optional::~optional): Use reset.
13727 (optional::optional(const optional&)): New.
13728 (optional::optional(const optional&&)): New.
13729 (optional::optional(T &)): New.
13730 (optional::optional(T &&)): New.
13731 (operator::operator=(const optional &)): New.
13732 (operator::operator=(optional &&)): New.
13733 (operator::operator= (const T &))
13734 (operator::operator= (T &&))
13735 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13736 (operator::reset): New.
13737 (operator::m_instantiated):: Add in-class initializer.
13738 * common/traits.h: Include <type_traits>.
13739 (struct And): New types.
13741 2017-04-18 Pedro Alves <palves@redhat.com>
13743 * xml-support.c: Include <vector>.
13744 (scope_level::scope_level(const gdb_xml_element *))
13745 (scope_level::scope_level(scope_level&&)): New.
13746 (scope_level::~scope_level): New.
13747 (scope_level_s): Delete.
13748 (gdb_xml_parser::scopes): Now a std::vector.
13749 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13751 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13752 scope cleanup code.
13753 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13754 of the scopes member. Use std::vector::emplace_back.
13756 2017-04-18 Pedro Alves <palves@redhat.com>
13758 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13760 (gdb_xml_end_element): Change type of first parameter.
13761 (gdb_xml_cleanup): Rename to ...
13762 (gdb_xml_parser::~gdb_xml_parser): ... this.
13763 (gdb_xml_create_parser_and_cleanup): Delete with ...
13764 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13766 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13767 using gdb_xml_create_parser_and_cleanup.
13768 (xinclude_parsing_data): Add ctor/dtor.
13769 (xml_xinclude_cleanup): Delete.
13770 (xml_process_xincludes): Create a local xinclude_parsing_data
13771 instead of heap-allocating one. Create a local gdb_xml_parser
13772 instead of heap-allocating one with
13773 gdb_xml_create_parser_and_cleanup.
13775 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13778 * fbsd-nat.c (resume_one_thread_cb): Remove.
13779 (resume_all_threads_cb): Remove.
13780 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13781 iterate_over_threads.
13783 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13785 * NEWS: Create a new section for the next release branch.
13786 Rename the section of the current branch, now that it has
13789 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13791 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13792 * version.in: Bump version to 8.0.50.DATE-git.
13794 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13797 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13798 independently of the host, and fix build breakage on Cygwin.
13800 2017-04-13 Pedro Alves <palves@redhat.com>
13802 * inferior.c (free_inferior): Convert to ...
13803 (inferior::~inferior): ... this dtor.
13804 (inferior::inferior): New ctor, factored out from ...
13805 (add_inferior_silent): ... here. Allocate the inferior with a new
13807 (delete_inferior): Call delete instead of free_inferior.
13808 * inferior.h (gdb_environ, continuation): Forward declare.
13809 (inferior): Now a class. Add in-class initialization to all
13810 members. Make boolean fields bool, except 'detaching'.
13811 (inferior::inferior): New explicit ctor.
13812 (inferior::~inferior): New.
13814 2017-04-13 Pedro Alves <palves@redhat.com>
13816 * inferior.c (init_inferior_list): Delete.
13817 * inferior.h (init_inferior_list): Delete.
13819 2017-04-13 Pedro Alves <palves@redhat.com>
13822 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13823 (top level): Call it twice, with different thread sets.
13825 2017-04-13 Pedro Alves <palves@redhat.com>
13827 * thread.c: Include <algorithm>.
13828 (thread_array_cleanup): Delete.
13829 (scoped_inc_dec_ref): New class.
13830 (live_threads_count): New function.
13831 (set_thread_refcount): Delete.
13832 (tp_array_compar_ascending): Now a bool.
13833 (tp_array_compar): Convert to a std::sort comparison function.
13834 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13835 and live_threads_count.
13837 2017-04-13 Pedro Alves <palves@redhat.com>
13839 * infrun.c (follow_fork_inferior): Also switch the current
13842 2017-04-13 Pedro Alves <palves@redhat.com>
13844 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13845 before calling create_internal_breakpoint.
13847 2017-04-13 Pedro Alves <palves@redhat.com>
13849 * fork-child.c (execv_argv): New class.
13850 (breakup_args): Refactored as ...
13851 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13852 Copy arguments to storage and replace separators with NULL
13853 terminators in place.
13854 (escape_bang_in_quoted_argument): Adjust to return bool.
13855 (execv_argv::execv_argv): New ctor.
13856 (execv_argv::init_for_shell): New method, factored out from
13857 fork_inferior. Don't strdup strings into the vector.
13858 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13859 Remove free_vector_argv call.
13861 2017-04-13 Yao Qi <yao.qi@linaro.org>
13863 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13866 2017-04-13 Yao Qi <yao.qi@linaro.org>
13868 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13869 * rx-tdep.c (rx_gdbarch_init): Likewise.
13871 2017-04-13 Pedro Alves <palves@redhat.com>
13873 * breakpoint.h (struct breakpoint): Reindent.
13875 2017-04-13 Pedro Alves <palves@redhat.com>
13877 * breakpoint.c (bp_location): Rename to ...
13878 (bp_locations): ... this. All references updated.
13879 (bp_location_count): Rename to ...
13880 (bp_locations_count): ... this. All references updated.
13881 (bp_location_placed_address_before_address_max): Rename to ...
13882 (bp_locations_placed_address_before_address_max): ... this. All
13883 references updated.
13884 (bp_location_shadow_len_after_address_max): Rename to ...
13885 (bp_locations_shadow_len_after_address_max): ... this. All
13886 references updated.
13887 (bp_location_compare_addrs): Rename to ...
13888 (bp_locations_compare_addrs): ... this. All references updated.
13889 (bp_location_compare):Rename to ...
13890 (bp_locations_compare): ... this. All references updated.
13891 (bp_location_target_extensions_update): Rename to ...
13892 (bp_locations_target_extensions_update): ... this. All references
13895 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13897 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13898 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13900 * common/gdb_termios.h: New file, with parts of "terminal.h".
13901 * inflow.c: Include "gdb_termios.h".
13902 * ser-unix.c: Include "gdb_termios.h".
13903 * terminal.h: Move terminal-related defines to
13904 "common/gdb_termios.h".
13906 2017-04-12 Tom Tromey <tom@tromey.com>
13908 * probe.c (parse_probes): Update.
13909 * location.h (delete_event_location): Don't declare.
13910 (event_location_deleter::operator()): Update.
13911 * location.c (event_location_deleter::operator()): Rename from
13912 delete_event_location.
13913 * linespec.h (linespec_result) <location>: Change type to
13915 * linespec.c (canonicalize_linespec, event_location_to_sals)
13916 (decode_objc): Update.
13917 (linespec_result): Don't call delete_event_location.
13918 * breakpoint.c (create_breakpoints_sal)
13919 (bkpt_probe_create_sals_from_location)
13920 (strace_marker_create_sals_from_location): Update.
13922 2017-04-12 Tom Tromey <tom@tromey.com>
13924 * linespec.h (struct linespec_result): Add constructor and
13926 (init_linespec_result, destroy_linespec_result)
13927 (make_cleanup_destroy_linespec_result): Don't declare.
13928 * linespec.c (init_linespec_result): Remove.
13929 (linespec_result::~linespec_result): Rename from
13930 destroy_linespec_result. Update.
13931 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13933 * breakpoint.c (create_breakpoint, break_range_command)
13934 (decode_location_default): Update.
13935 * ax-gdb.c (agent_command_1): Update.
13937 2017-04-12 Tom Tromey <tom@tromey.com>
13939 * remote.c (remote_download_tracepoint): Update.
13940 * python/py-breakpoint.c (bppy_get_location): Update.
13941 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13942 (gdbscm_breakpoint_location): Update.
13943 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13944 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13945 Change type to event_location_up.
13946 * breakpoint.c (create_overlay_event_breakpoint)
13947 (create_longjmp_master_breakpoint)
13948 (create_std_terminate_master_breakpoint)
13949 (create_exception_master_breakpoint)
13950 (breakpoint_event_location_empty_p, print_breakpoint_location)
13951 (print_one_breakpoint_location, create_thread_event_breakpoint)
13952 (init_breakpoint_sal, create_breakpoint)
13953 (print_recreate_ranged_breakpoint, break_range_command)
13954 (init_ada_exception_breakpoint, say_where): Update.
13955 (base_breakpoint_dtor): Don't call delete_event_location.
13956 (bkpt_print_recreate, tracepoint_print_recreate)
13957 (dprintf_print_recreate, update_static_tracepoint)
13958 (breakpoint_re_set_default): Update.
13960 2017-04-12 Tom Tromey <tom@tromey.com>
13962 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13963 type of "to_do". Update.
13964 (compute_stack_depth): Use std::vector.
13966 2017-04-12 Tom Tromey <tom@tromey.com>
13968 * printcmd.c (find_instruction_backward): Use std::vector.
13970 2017-04-12 Tom Tromey <tom@tromey.com>
13972 * symfile.c (objfilep): Remove typedef.
13973 (reread_symbols): Use a std::vector.
13975 2017-04-12 Tom Tromey <tom@tromey.com>
13977 * mi/mi-main.c (exec_direction_forward): Remove.
13978 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13979 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13981 * guile/guile.c (guile_repl_command, guile_command)
13982 (gdbscm_execute_gdb_command): Use scoped_restore.
13983 * go-exp.y (go_parse): Use scoped_restore.
13984 * d-exp.y (d_parse): Use scoped_restore.
13985 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13986 * c-exp.y (c_parse): Use scoped_restore.
13988 2017-04-12 Tom Tromey <tom@tromey.com>
13990 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13991 (mi_parse): Update return type.
13992 (mi_parse_free): Remove.
13993 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13994 (mi_parse::~mi_parse): Rename from mi_parse_free.
13995 (mi_parse_cleanup): Remove.
13996 (mi_parse): Return a unique_ptr. Use new.
13997 * mi/mi-main.c (mi_execute_command): Update.
13999 2017-04-12 Tom Tromey <tom@tromey.com>
14001 * location.c (explicit_location_lex_one): Return a
14002 unique_xmalloc_ptr.
14003 (string_to_explicit_location): Update. Remove cleanups.
14005 2017-04-12 Tom Tromey <tom@tromey.com>
14007 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
14008 (compare_value_and_voffset): Change type. Update.
14009 (compute_vtable_size): Change type of "offset_vec".
14010 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
14011 (gnuv3_get_typeid): Remove extraneous declaration.
14013 2017-04-12 Tom Tromey <tom@tromey.com>
14015 * charset.h (wchar_iterator): Fix comment.
14017 2017-04-12 Tom Tromey <tom@tromey.com>
14019 * charset.c (iconv_wrapper): New class.
14020 (cleanup_iconv): Remove.
14021 (convert_between_encodings): Use it.
14023 2017-04-12 Tom Tromey <tom@tromey.com>
14025 * symfile.h (increment_reading_symtab): Update type.
14026 * symfile.c (decrement_reading_symtab): Remove.
14027 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
14028 * psymtab.c (psymtab_to_symtab): Update.
14029 * dwarf2read.c (dw2_instantiate_symtab): Update.
14031 2017-04-12 Tom Tromey <tom@tromey.com>
14033 * jit.c (struct jit_reader): Declare separately. Add constructor
14034 and destructor. Change type of "handle".
14035 (loaded_jit_reader): Define separately.
14036 (jit_reader_load): Update. New "new".
14037 (jit_reader_unload_command): Use "delete".
14038 * gdb-dlfcn.h (struct dlclose_deleter): New.
14039 (gdb_dlhandle_up): New typedef.
14040 (gdb_dlopen, gdb_dlsym): Update types.
14041 (gdb_dlclose): Remove.
14042 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
14043 (gdb_dlsym): Change type of "handle".
14044 (make_cleanup_dlclose): Remove.
14045 (dlclose_deleter::operator()): Rename from gdb_dlclose.
14046 * compile/compile-c-support.c (load_libcc): Update.
14048 2017-04-12 Tom Tromey <tom@tromey.com>
14050 * symtab.h (find_pcs_for_symtab_line): Change return type.
14051 * symtab.c (find_pcs_for_symtab_line): Change return type.
14052 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
14053 type of "vec". Update.
14054 (ltpy_get_pcs_for_line): Update.
14055 * linespec.c (decode_digits_ordinary): Update.
14057 2017-04-12 Tom Tromey <tom@tromey.com>
14059 * tracepoint.c (actions_command): Update.
14060 * python/python.c (python_command, python_interactive_command):
14062 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
14063 * guile/guile.c (guile_command): Update.
14064 * defs.h (read_command_lines, read_command_lines_1): Return
14066 (command_lines_deleter): New struct.
14067 (command_line_up): New typedef.
14068 * compile/compile.c (compile_code_command)
14069 (compile_print_command): Update.
14070 * cli/cli-script.h (get_command_line, copy_command_lines): Return
14072 (make_cleanup_free_command_lines): Remove.
14073 * cli/cli-script.c (get_command_line, read_command_lines_1)
14074 (copy_command_lines): Return command_line_up.
14075 (while_command, if_command, read_command_lines, define_command)
14076 (document_command): Update.
14077 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
14079 * breakpoint.h (breakpoint_set_commands): Change type of
14081 * breakpoint.c (breakpoint_set_commands): Change type of
14082 "commands". Update.
14083 (do_map_commands_command, update_dprintf_command_list)
14084 (create_tracepoint_from_upload): Update.
14086 2017-04-12 Tom Tromey <tom@tromey.com>
14088 * tracepoint.c (scope_info): Update.
14089 * spu-tdep.c (spu_catch_start): Update.
14090 * python/python.c (gdbpy_decode_line): Update.
14091 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
14092 * python/py-breakpoint.c (bppy_init): Update.
14093 * probe.c (parse_probes): Update.
14094 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
14095 * location.h (event_location_deleter): New struct.
14096 (event_location_up): New typedef.
14097 (new_linespec_location, new_address_location, new_probe_location)
14098 (new_explicit_location, copy_event_location)
14099 (string_to_event_location, string_to_event_location_basic)
14100 (string_to_explicit_location): Update return type.
14101 (make_cleanup_delete_event_location): Remove.
14102 * location.c (new_linespec_location, new_address_location)
14103 (new_probe_location, new_explicit_location, copy_event_location):
14104 Return event_location_up.
14105 (delete_event_location_cleanup)
14106 (make_cleanup_delete_event_location): Remove.
14107 (string_to_explicit_location, string_to_event_location_basic)
14108 (string_to_event_location): Return event_location_up.
14109 * linespec.c (canonicalize_linespec, event_location_to_sals)
14110 (decode_line_with_current_source)
14111 (decode_line_with_last_displayed, decode_objc): Update.
14112 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
14113 * completer.c (location_completer): Update.
14114 * cli/cli-cmds.c (edit_command, list_command): Update.
14115 * breakpoint.c (create_overlay_event_breakpoint)
14116 (create_longjmp_master_breakpoint)
14117 (create_std_terminate_master_breakpoint)
14118 (create_exception_master_breakpoint)
14119 (create_thread_event_breakpoint): Update.
14120 (init_breakpoint_sal): Update. Remove some dead code.
14121 (create_breakpoint_sal): Change type of "location". Update.
14122 (create_breakpoints_sal, create_breakpoint, break_command_1)
14123 (dprintf_command, break_range_command, until_break_command)
14124 (init_ada_exception_breakpoint)
14125 (strace_marker_create_sals_from_location)
14126 (update_static_tracepoint, trace_command, ftrace_command)
14127 (strace_command, create_tracepoint_from_upload): Update.
14128 * break-catch-throw.c (re_set_exception_catchpoint): Update.
14129 * ax-gdb.c (agent_command_1): Update.
14131 2017-04-12 Pedro Alves <palves@redhat.com>
14133 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
14134 * configure.tgt: Handle i[34567]86-*-go32* and
14135 i[34567]86-*-msdosdjgpp*.
14136 * i386-tdep.c (i386_svr4_reg_to_regnum):
14138 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
14140 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
14141 * i386-go32-tdep.c: New file.
14142 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
14145 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
14147 * aix-thread.c (pd_status2str): Change return type to const char *.
14149 2017-04-12 Pedro Alves <palves@redhat.com>
14151 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
14152 calls to set_gdbarch_gnu_triplet_regexp.
14154 2017-04-12 Pedro Alves <palves@redhat.com>
14157 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
14159 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
14160 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
14161 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
14162 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
14163 * gdbarch.h, gdbarch.c: Regenerate.
14164 * aarch64-tdep.c (aarch64_gdbarch_init): Override
14165 gdbarch_wchar_bit and gdbarch_wchar_signed.
14166 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
14167 * arm-tdep.c (arm_gdbarch_init): Likewise.
14168 * avr-tdep.c (avr_gdbarch_init): Likewise.
14169 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14170 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
14171 * i386-tdep.c (i386_go32_init_abi): Likewise.
14172 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14173 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14174 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
14175 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
14176 * sh-tdep.c (sh_gdbarch_init): Likewise.
14177 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14178 * sparc64-tdep.c (sparc64_init_abi): Likewise.
14179 * windows-tdep.c (windows_init_abi): Likewise.
14180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14182 2017-04-12 Pedro Alves <palves@redhat.com>
14185 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
14186 cplus_primitive_type_char32_t>: New enum values.
14187 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
14188 and cplus_primitive_type_char32_t.
14189 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
14190 32, use the archtecture's built-in type for char16_t and char32_t,
14191 respectively. Otherwise, fallback to init_integer_type as before,
14192 but make the type unsigned, and issue a complaint.
14193 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
14195 2017-04-12 Alan Hayward <alan.hayward@arm.com>
14197 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
14198 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
14200 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14202 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
14205 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
14207 * common/common-utils.c (free_vector_argv): New function.
14208 * common/common-utils.h: Include <vector>.
14209 (free_vector_argv): New prototype.
14210 * darwin-nat.c (darwin_create_inferior): Rewrite function
14211 prototype in order to constify "exec_file" and accept a
14212 "std::string" for "allargs".
14213 * fork-child.c: Include <vector>.
14214 (breakup_args): Rewrite function, using C++.
14215 (fork_inferior): Rewrite function header, constify "exec_file_arg"
14216 and accept "std::string" for "allargs". Update the code to
14217 calculate "argv" based on "allargs". Update calls to "exec_fun"
14219 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
14220 order to constify "exec_file" and accept a "std::string" for
14222 * go32-nat.c (go32_create_inferior): Likewise.
14223 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
14224 * infcmd.c (run_command_1): Constify "exec_file". Use
14225 "std::string" for inferior arguments.
14226 * inferior.h (fork_inferior): Update prototype.
14227 * linux-nat.c (linux_nat_create_inferior): Rewrite function
14228 prototype in order to constify "exec_file" and accept a
14229 "std::string" for "allargs".
14230 * nto-procfs.c (procfs_create_inferior): Likewise.
14231 * procfs.c (procfs_create_inferior): Likewise.
14232 * remote-sim.c (gdbsim_create_inferior): Likewise.
14233 * remote.c (extended_remote_run): Update code to accept
14234 "std::string" as argument.
14235 (extended_remote_create_inferior): Rewrite function prototype in
14236 order to constify "exec_file" and accept a "std::string" for
14238 * rs6000-nat.c (super_create_inferior): Likewise.
14239 (rs6000_create_inferior): Likewise.
14240 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14241 * windows-nat.c (windows_create_inferior): Likewise.
14243 2017-04-11 Pedro Alves <palves@redhat.com>
14245 * thread.c: Fix whitespace throughout.
14247 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14249 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14251 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14253 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14255 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14258 * osdata.c (info_osdata): Check if 'type' is an empty string
14261 2017-04-10 Pedro Alves <palves@redhat.com>
14263 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14264 (ptid_to_global_thread_id, in_thread_list)
14265 (do_captured_list_thread_ids, set_resumed, set_running)
14266 (set_executing, set_stop_requested, finish_thread_state)
14267 (validate_registers_access, can_access_registers_ptid)
14268 (print_thread_info_1, switch_to_thread)
14269 (do_restore_current_thread_cleanup)
14270 (make_cleanup_restore_current_thread, thread_command)
14271 (thread_name_command): Use operator== instead of ptid_equal.
14273 2017-04-10 Pedro Alves <palves@redhat.com>
14275 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14276 (current_thread_cleanup_chain): Delete.
14277 (restore_current_thread_cleanup_dtor)
14278 (make_cleanup_restore_current_thread): Remove references to
14279 current_thread_cleanup_chain.
14281 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14283 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14286 2017-04-10 Yao Qi <yao.qi@linaro.org>
14289 * gdbthread.h (thread_info::deletable): New method.
14290 (thread_info::incref): New method.
14291 (thread_info::decref): New method.
14292 (thread_info::refcount): Move it to private.
14293 * infrun.c (save_stop_context): Call inc_refcount.
14294 (release_stop_context_cleanup): Likewise.
14295 * thread.c (set_thread_exited): New function.
14296 (init_thread_list): Delete "tp" only it is deletable, otherwise
14297 call set_thread_exited.
14298 (delete_thread_1): Call set_thread_exited.
14299 (current_thread_cleanup) <inferior_pid>: Remove.
14300 <thread>: New field.
14301 (restore_current_thread_ptid_changed): Removed.
14302 (do_restore_current_thread_cleanup): Adjust.
14303 (restore_current_thread_cleanup_dtor): Don't call
14305 (set_thread_refcount): Use dec_refcount.
14306 (make_cleanup_restore_current_thread): Adjust.
14307 (thread_apply_all_command): Call inc_refcount.
14308 (_initialize_thread): Don't call
14309 observer_attach_thread_ptid_changed.
14311 2017-04-10 Yao Qi <yao.qi@linaro.org>
14313 * thread.c (delete_thread_1): Hoist code on marking thread as
14316 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14318 * windows-nat.c (windows_detach): Initialize ptid with
14321 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14323 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14325 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14327 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14328 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14329 (bfin_pseudo_register_write): Likewise
14331 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14333 * common/ptid.h (struct ptid): Change to...
14334 (class ptid_t): ... this.
14335 <ptid_t>: New constructors.
14336 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14337 matches>: New methods.
14338 <make_null, make_minus_one>: New static methods.
14339 <pid>: Rename to...
14341 <lwp>: Rename to...
14343 <tid>: Rename to...
14345 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14346 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14347 as references, move comment to class ptid_t.
14348 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14349 ptid_t static methods.
14350 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14351 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14352 Take ptid arguments as references, implement using ptid_t methods.
14353 * unittests/ptid-selftests.c: New file.
14354 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14355 unittests/ptid-selftests.c.
14356 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14358 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14360 * python/python.c (python_run_simple_file): Cast mode literal to
14361 non-const char pointer as expected by PyFile_FromString.
14363 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14365 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14366 minus_one_ptid and null_ptid.
14368 2017-04-05 Pedro Alves <palves@redhat.com>
14370 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14371 * configure: Regenerate.
14373 2017-04-05 Pedro Alves <palves@redhat.com>
14375 * ada-exp.y (yyerror): Constify.
14376 * ada-lang.c (bound_name, get_selections)
14377 (ada_variant_discrim_type)
14378 (ada_variant_discrim_name, ada_value_struct_elt)
14379 (ada_lookup_struct_elt_type, is_unchecked_variant)
14380 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14381 (catch_ada_exception_command_split)
14382 (catch_ada_assert_command_split, catch_assert_command)
14383 (ada_op_name): Constify.
14384 * ada-lang.h (ada_yyerror, get_selections)
14385 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14386 * arc-tdep.c (arc_print_frame_cache): Constify.
14387 * arm-tdep.c (arm_skip_stub): Constify.
14388 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14389 (gen_aggregate_elt_ref): Constify.
14390 * bcache.c (print_bcache_statistics): Constify.
14391 * bcache.h (print_bcache_statistics): Constify.
14392 * break-catch-throw.c (catch_exception_command_1):
14393 * breakpoint.c (struct ep_type_description::description):
14395 (add_solib_catchpoint): Constify.
14396 (catch_fork_command_1): Add cast.
14397 (add_catch_command): Constify.
14398 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14400 * bsd-uthread.c (bsd_uthread_state): Constify.
14401 * buildsym.c (patch_subfile_names): Constify.
14402 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14404 * c-exp.y (yyerror): Constify.
14405 (token::oper): Constify.
14406 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14407 * c-varobj.c (cplus_describe_child): Constify.
14408 * charset.c (find_charset_names): Add cast.
14409 (find_charset_names): Constify array and add const_cast.
14410 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14411 (edit_command): Constify.
14412 * cli/cli-decode.c (lookup_cmd): Constify.
14413 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14415 (struct dump_context): Constify.
14416 (add_dump_command, restore_command): Constify.
14417 * cli/cli-script.c (get_command_line): Constify.
14418 * cli/cli-script.h (get_command_line): Constify.
14419 * cli/cli-utils.c (check_for_argument): Constify.
14420 * cli/cli-utils.h (check_for_argument): Constify.
14421 * coff-pe-read.c (struct read_pe_section_data): Constify.
14422 * command.h (lookup_cmd): Constify.
14423 * common/print-utils.c (decimal2str): Constify.
14424 * completer.c (gdb_print_filename): Constify.
14425 * corefile.c (set_gnutarget): Constify.
14426 * cp-name-parser.y (yyerror): Constify.
14427 * cp-valprint.c (cp_print_class_member): Constify.
14428 * cris-tdep.c (cris_register_name, crisv32_register_name):
14430 * d-exp.y (yyerror): Constify.
14431 (struct token::oper): Constify.
14432 * d-lang.h (d_yyerror): Constify.
14433 * dbxread.c (struct header_file_location::name): Constify.
14434 (add_old_header_file, add_new_header_file, last_function_name)
14435 (dbx_next_symbol_text, add_bincl_to_list)
14436 (find_corresponding_bincl_psymtab, set_namestring)
14437 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14438 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14439 * defs.h (command_line_input, print_address_symbolic)
14440 (deprecated_readline_begin_hook): Constify.
14441 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14443 * event-top.c (handle_line_of_input): Constify and add cast.
14444 * exceptions.c (catch_errors): Constify.
14445 * exceptions.h (catch_errors): Constify.
14446 * expprint.c (print_subexp_standard, op_string, op_name)
14447 (op_name_standard, dump_raw_expression, dump_raw_expression):
14448 * expression.h (op_name, op_string, dump_raw_expression):
14450 * f-exp.y (yyerror): Constify.
14451 (struct token::oper): Constify.
14452 (struct f77_boolean_val::name): Constify.
14453 * f-lang.c (f_word_break_characters): Constify.
14454 * f-lang.h (f_yyerror): Constify.
14455 * fork-child.c (fork_inferior): Add cast.
14456 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14457 (new_variant): Constify.
14458 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14459 * gdbarch.c: Regenerate.
14460 * gdbcore.h (set_gnutarget): Constify.
14461 * go-exp.y (yyerror): Constify.
14462 (token::oper): Constify.
14463 * go-lang.h (go_yyerror): Constify.
14464 * go32-nat.c (go32_sysinfo): Constify.
14465 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14466 * guile/scm-cmd.c (cmdscm_function): Constify.
14467 * guile/scm-param.c (pascm_param_value): Constify.
14468 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14469 (h8300sx_register_name): Constify.
14470 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14472 * ia64-tdep.c (ia64_register_names): Constify.
14473 * infcmd.c (construct_inferior_arguments): Constify.
14474 (path_command, attach_post_wait): Constify.
14475 * language.c (show_range_command, show_case_command)
14476 (unk_lang_error): Constify.
14477 * language.h (language_defn::la_error)
14478 (language_defn::la_name_of_this): Constify.
14479 * linespec.c (decode_line_2): Constify.
14480 * linux-thread-db.c (thread_db_err_str): Constify.
14481 * lm32-tdep.c (lm32_register_name): Constify.
14482 * m2-exp.y (yyerror): Constify.
14483 * m2-lang.h (m2_yyerror): Constify.
14484 * m32r-tdep.c (m32r_register_names): Constify and make static.
14485 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14486 * m88k-tdep.c (m88k_register_name): Constify.
14487 * macroexp.c (appendmem): Constify.
14488 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14489 (upgrade_type, parse_external, parse_partial_symbols)
14490 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14491 (new_symbol): Constify.
14492 * memattr.c (mem_info_command): Constify.
14493 * mep-tdep.c (register_name_from_keyword): Constify.
14494 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14496 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14497 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14498 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14500 (mi_execute_async_cli_command): Constify.
14501 * mips-tdep.c (mips_register_name): Constify.
14502 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14503 (am33_register_name, am33_2_register_name)
14504 * moxie-tdep.c (moxie_register_names): Constify.
14505 * nat/linux-osdata.c (osdata_type): Constify fields.
14506 * nto-tdep.c (nto_parse_redirection): Constify.
14507 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14508 (lookup_child_selector): Constify.
14509 (objc_methcall::name): Constify.
14510 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14511 (lookup_struct_typedef): Constify.
14512 * objfiles.c (pc_in_section): Constify.
14513 * objfiles.h (pc_in_section): Constify.
14514 * p-exp.y (struct token::oper): Constify.
14515 (yyerror): Constify.
14516 * p-lang.h (pascal_yyerror): Constify.
14517 * parser-defs.h (op_name_standard): Constify.
14518 (op_print::string): Constify.
14519 (exp_descriptor::op_name): Constify.
14520 * printcmd.c (print_address_symbolic): Constify.
14521 * psymtab.c (print_partial_symbols): Constify.
14522 * python/py-breakpoint.c (stop_func): Constify.
14523 (bppy_get_expression): Constify.
14524 * python/py-cmd.c (cmdpy_completer::name): Constify.
14525 (cmdpy_function): Constify.
14526 * python/py-event.c (evpy_add_attribute)
14527 (gdbpy_initialize_event_generic): Constify.
14528 * python/py-event.h (evpy_add_attribute)
14529 (gdbpy_initialize_event_generic): Constify.
14530 * python/py-evts.c (add_new_registry): Constify.
14531 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14532 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14533 * python/py-inferior.c (get_buffer): Add cast.
14534 * python/py-param.c (parm_constant::name): Constify.
14535 * python/py-unwind.c (fprint_frame_id): Constify.
14536 * python/python.c (gdbpy_parameter_value): Constify.
14537 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14538 * remote.c (memory_packet_config::name): Constify.
14539 (show_packet_config_cmd, remote_write_bytes)
14540 (remote_buffer_add_string):
14541 * reverse.c (exec_reverse_once): Constify.
14542 * rs6000-tdep.c (variant::name, variant::description): Constify.
14543 * rust-exp.y (rustyyerror): Constify.
14544 * rust-lang.c (rust_op_name): Constify.
14545 * rust-lang.h (rustyyerror): Constify.
14546 * serial.h (serial_ops::name): Constify.
14547 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14548 (sh_sh3e_register_name, sh_sh2e_register_name)
14549 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14550 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14551 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14552 (sh_sh4al_dsp_register_name): Constify.
14553 * sh64-tdep.c (sh64_register_name): Constify.
14554 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14555 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14556 * stabsread.c (patch_block_stabs, read_type_number)
14557 (ref_map::stabs, ref_add, process_reference)
14558 (symbol_reference_defined, define_symbol, define_symbol)
14559 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14560 (read_one_struct_field, read_struct_fields, read_baseclasses)
14561 (read_tilde_fields, read_struct_type, read_array_type)
14562 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14563 (read_huge_number, read_range_type, read_args, common_block_start)
14564 (find_name_end): Constify.
14565 * stabsread.h (common_block_start, define_symbol)
14566 (process_one_symbol, symbol_reference_defined, ref_add):
14567 * symfile.c (get_section_index, add_symbol_file_command):
14568 * symfile.h (get_section_index): Constify.
14569 * target-descriptions.c (tdesc_type::name): Constify.
14570 (tdesc_free_type): Add cast.
14571 * target.c (find_default_run_target):
14572 (add_deprecated_target_alias, find_default_run_target)
14573 (target_announce_detach): Constify.
14574 (do_option): Constify.
14575 * target.h (add_deprecated_target_alias): Constify.
14576 * thread.c (print_thread_info_1): Constify.
14577 * top.c (deprecated_readline_begin_hook, command_line_input):
14579 (init_main): Add casts.
14580 * top.h (handle_line_of_input): Constify.
14581 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14582 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14583 (tfind_command): Rename to ...
14584 (tfind_command_1): ... this and constify.
14585 (tfind_command): New function.
14586 (tfind_end_command, tfind_start_command): Adjust.
14587 (encode_source_string): Constify.
14588 * tracepoint.h (encode_source_string): Constify.
14589 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14590 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14591 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14592 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14593 * tui/tui-win.c (parse_scrolling_args): Constify.
14594 * tui/tui-windata.c (tui_erase_data_content): Constify.
14595 * tui/tui-windata.h (tui_erase_data_content): Constify.
14596 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14597 * tui/tui.c (tui_enable): Add cast.
14598 * utils.c (defaulted_query): Constify.
14599 (init_page_info): Add cast.
14600 (puts_debug, subset_compare): Constify.
14601 * utils.h (subset_compare): Constify.
14602 * varobj.c (varobj_format_string): Constify.
14603 * varobj.h (varobj_format_string): Constify.
14604 * vax-tdep.c (vax_register_name): Constify.
14605 * windows-nat.c (windows_detach): Constify.
14606 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14607 * xml-support.c (gdb_xml_end_element): Constify.
14608 * xml-tdesc.c (tdesc_start_reg): Constify.
14609 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14610 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14611 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14613 2017-04-05 Pedro Alves <palves@redhat.com>
14615 * proc-api.c (struct trans): Constify.
14616 (procfs_note): Constify.
14617 * proc-events.c (struct trans, syscall_table):
14618 * proc-flags.c (struct trans): Constify.
14619 * proc-utils.h (procfs_note): Constify.
14620 * proc-why.c (struct trans): Constify.
14621 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14622 (procfs_detach): Constify.
14623 * sol-thread.c (struct string_map): Constify.
14624 (td_err_string, td_state_string): Constify.
14626 2017-04-05 Pedro Alves <palves@redhat.com>
14628 * proc-api.c (procfs_filename): Don't initialize
14630 (prepare_to_trace): Assume procfs_filename is non-NULL.
14631 (_initialize_proc_api): Give procfs_filename a default value here.
14633 2017-04-05 Pedro Alves <palves@redhat.com>
14635 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14636 'cond_string' parameter.
14637 (extract_exception_regexp): Constify 'string' parameter.
14638 (catch_exception_command_1): Constify.
14639 * breakpoint.c (init_catchpoint)
14640 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14642 (ep_parse_optional_if_clause, catch_fork_command_1)
14643 (catch_exec_command_1): Constify.
14644 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14646 (ep_parse_optional_if_clause): Constify.
14647 * cli/cli-utils.c (remove_trailing_whitespace)
14648 (check_for_argument): Constify.
14649 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14650 non-const overload.
14651 (check_for_argument): Likewise.
14653 2017-04-05 Pedro Alves <palves@redhat.com>
14655 * event-top.c (command_line_handler): Add cast to execute_command
14657 * record-btrace.c (cmd_record_btrace_bts_start)
14658 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14659 (cmd_record_btrace_start): Add cast to execute_command call.
14660 * record-full.c (record_full_goto_insn):
14661 * record.c (record_start, record_stop): Add cast to
14662 execute_command_to_string calls.
14663 (cmd_record_start): Add cast to execute_command calls.
14665 2017-04-05 Pedro Alves <palves@redhat.com>
14667 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14668 static inline function.
14669 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14670 array and use gdb_PyArg_ParseTupleAndKeywords.
14671 * python/py-cmd.c (cmdpy_init): Likewise.
14672 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14673 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14674 (infpy_search_memory): Likewise.
14675 * python/py-objfile.c (objfpy_add_separate_debug_file)
14676 (gdbpy_lookup_objfile): Likewise.
14677 * python/py-symbol.c (gdbpy_lookup_symbol)
14678 (gdbpy_lookup_global_symbol): Likewise.
14679 * python/py-type.c (gdbpy_lookup_type): Likewise.
14680 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14681 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14684 2017-04-05 Pedro Alves <palves@redhat.com>
14686 * python/python-internal.h (gdb_PyGetSetDef): New type.
14687 * python/py-block.c (block_object_getset)
14688 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14689 * python/py-event.c (event_object_getset)
14690 (finish_breakpoint_object_getset): Likewise.
14691 * python/py-inferior.c (inferior_object_getset): Likewise.
14692 * python/py-infthread.c (thread_object_getset): Likewise.
14693 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14694 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14695 * python/py-objfile.c (objfile_getset): Likewise.
14696 * python/py-progspace.c (pspace_getset): Likewise.
14697 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14699 * python/py-record.c (recpy_record_getset): Likewise.
14700 * python/py-symbol.c (symbol_object_getset): Likewise.
14701 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14703 * python/py-type.c (type_object_getset, field_object_getset):
14705 * python/py-value.c (value_object_getset): Likewise.
14707 2017-04-05 Pedro Alves <palves@redhat.com>
14709 * python/python-internal.h (gdb_PyObject_CallMethod)
14710 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14712 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14713 (PySys_GetObject, PySys_SetPath): New macros.
14715 2017-04-05 Pedro Alves <palves@redhat.com>
14717 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14718 info_osdata_command.
14719 * osdata.c (info_osdata_command): Rename to ...
14720 (info_osdata): ... this. Constify 'type' parameter, and remove
14721 the 'from_tty' parameter. Accept NULL TYPE.
14722 (info_osdata_command): New function.
14723 * osdata.h (info_osdata_command): Remove declaration.
14724 (info_osdata): New declaration.
14726 2017-04-05 Pedro Alves <palves@redhat.com>
14728 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14729 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14730 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14732 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14733 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14734 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14736 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14737 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14738 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14739 (mi_cmd_file_list_exec_source_files)
14740 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14741 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14742 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14744 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14745 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14746 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14747 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14748 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14749 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14750 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14751 'command' parameter.
14752 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14753 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14754 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14755 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14756 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14757 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14758 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14759 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14760 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14761 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14762 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14764 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14765 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14766 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14767 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14768 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14769 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14770 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14771 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14772 (mi_cmd_data_list_changed_registers)
14773 (mi_cmd_data_write_register_values)
14774 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14775 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14776 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14777 (mi_cmd_list_features, mi_cmd_list_target_features)
14778 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14779 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14780 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14781 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14782 (mi_cmd_trace_frame_collected): Constify 'command'
14784 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14785 'command' parameter.
14787 2017-04-05 Pedro Alves <palves@redhat.com>
14789 * ada-lang.c (ada_completer_word_break_characters): Now a const
14791 (ada_get_gdb_completer_word_break_characters): Constify.
14792 * completer.c (gdb_completer_command_word_break_characters)
14793 (gdb_completer_file_name_break_characters)
14794 (gdb_completer_quote_characters): Now const arrays.
14795 (get_gdb_completer_quote_characters): Constify.
14796 (set_rl_completer_word_break_characters): New function.
14797 (set_gdb_completion_word_break_characters)
14798 (complete_line_internal): Use it.
14799 * completer.h (get_gdb_completer_quote_characters): Constify.
14800 (set_rl_completer_word_break_characters): Declare.
14801 * f-lang.c (f_word_break_characters): Constify.
14802 * language.c (default_word_break_characters): Constify.
14803 * language.h (language_defn::la_word_break_characters): Constify.
14804 (default_word_break_characters): Constify.
14805 * top.c (init_main): Use set_rl_completer_word_break_characters.
14807 2017-04-05 Pedro Alves <palves@redhat.com>
14809 * aix-thread.c (aix_thread_pid_to_str)
14810 (aix_thread_extra_thread_info): Constify.
14811 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14812 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14813 (bsd_uthread_pid_to_str): Constify.
14814 * corelow.c (core_pid_to_str): Constify.
14815 * darwin-nat.c (darwin_pid_to_str): Constify.
14816 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14817 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14819 * gnu-nat.c (gnu_pid_to_str): Constify.
14820 * go32-nat.c (go32_pid_to_str): Constify.
14821 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14822 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14823 * inferior.c (inferior_pid_to_str): Constify.
14824 * linux-nat.c (linux_nat_pid_to_str): Constify.
14825 * linux-tdep.c (linux_core_pid_to_str): Constify.
14826 * linux-thread-db.c (thread_db_pid_to_str)
14827 (thread_db_extra_thread_info): Constify.
14828 * nto-tdep.c (nto_extra_thread_info): Constify.
14829 * nto-tdep.h (nto_extra_thread_info): Constify.
14830 * obsd-nat.c (obsd_pid_to_str): Constify.
14831 * procfs.c (procfs_pid_to_str): Constify.
14832 * ravenscar-thread.c (ravenscar_extra_thread_info)
14833 (ravenscar_pid_to_str): Constify.
14834 * remote-sim.c (gdbsim_pid_to_str): Constify.
14835 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14837 * sol-thread.c (solaris_pid_to_str): Constify.
14838 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14839 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14840 * target.c (default_pid_to_str, target_pid_to_str)
14841 (normal_pid_to_str, default_pid_to_str): Constify.
14842 * target.h (target_ops::to_pid_to_str)
14843 (target_ops::to_extra_thread_info): Constify.
14844 (target_pid_to_str, normal_pid_to_str): Constify.
14845 * windows-nat.c (windows_pid_to_str): Constify.
14846 * gdbarch.sh (core_pid_to_str): Constify.
14847 * target-delegates.c: Regenerate.
14848 * gdbarch.h, gdbarch.c: Regenerate.
14850 2017-04-05 Pedro Alves <palves@redhat.com>
14852 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14853 the memory of the temporary warning_pre_print override.
14854 * utils.c (warning_pre_print): Constify.
14855 * utils.h (warning_pre_print): Constify.
14857 2017-04-05 Pedro Alves <palves@redhat.com>
14859 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14860 (shell_command): New function.
14861 (make_command): Use std::string.
14862 (init_cli_cmds): Register shell_command instead of shell_escape.
14864 2017-04-05 Pedro Alves <palves@redhat.com>
14866 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14867 * tracepoint.c (default_collect): Don't initialize.
14869 2017-04-05 Pedro Alves <palves@redhat.com>
14871 * macroexp.c (macro_buffer::shared): Now a bool.
14872 (init_buffer): Update.
14873 (init_shared_buffer): Constify 'addr' parameter.
14874 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14877 2017-04-05 Pedro Alves <palves@redhat.com>
14879 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14880 * disasm.c (set_disassembler_options): Constify local.
14881 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14883 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14886 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14889 2017-04-05 Yao Qi <yao.qi@linaro.org>
14891 * frame.c (frame_unwind_register_unsigned): Call
14892 frame_unwind_register_value.
14894 2017-04-05 Yao Qi <yao.qi@linaro.org>
14896 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14897 Use gdb_test_multiple, and don't match anchor.
14899 2017-04-05 Pedro Alves <palves@redhat.com>
14901 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14902 (Write After Approval): Remove Simon Marchi.
14904 2017-04-05 Pedro Alves <palves@redhat.com>
14906 * common/gdb_optional.h (optional::optional): Make constexpr and
14907 initialize m_dummy.
14909 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14911 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14912 (amd64fbsd_jmp_buf_reg_offset): Remove.
14913 (amd64fbsd_supply_uthread): Remove function.
14914 (amd64fbsd_collect_uthread): Remove function.
14915 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14916 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14917 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14918 (fbsd-nat.c): Update comment.
14919 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14920 (i386fbsd_jmp_buf_reg_offset): Remove.
14921 (i386fbsd_supply_uthread): Remove function.
14922 (i386fbsd_collect_uthread): Remove function.
14923 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14925 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14927 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14928 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14929 * NEWS: Mention that support for FreeBSD/alpha was removed.
14930 * alpha-fbsd-tdep.c: Delete file.
14931 * config/alpha/fbsd.mh: Delete file.
14932 * configure.host: Delete alpha*-*-freebsd* and
14933 alpha*-*-kfreebsd*-gnu.
14934 * configure.tgt: Delete alpha*-*-freebsd* and
14935 alpha*-*-kfreebsd*-gnu.
14937 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14939 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14940 amd64bsd_store_inferior_registers): Use ptid from regcache.
14942 2017-04-04 Pedro Alves <palves@redhat.com>
14944 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14945 data fields, make them private and add "m_" prefixes.
14946 (lnp_state_machine::lnp_state_machine): New ctor.
14947 (record_line, check_line_address, handle_set_discriminator)
14948 (handle_set_address, handle_advance_pc, handle_special_opcode)
14949 (handle_advance_line, handle_set_file, handle_negate_stmt)
14950 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14951 (end_sequence, advance_line): New methods.
14952 (m_gdbarch, m_record_lines_p): New fields.
14953 (lnp_reader_state): Delete.
14954 (dwarf_record_line): Rename to ...
14955 (lnp_state_machine::record_line): ... adjust.
14956 (init_lnp_state_machine): Delete.
14957 (lnp_state_machine::lnp_state_machine): New.
14958 (check_line_address): Rename to ...
14959 (lnp_state_machine::check_line_address): This.
14960 (dwarf_decode_lines_1): Remove reference to "reader_state".
14961 Adjust lnp_state_machine having a non-default ctor. Use bool.
14962 State machine internal state manipulation moved to
14963 lnp_state_machine methods.
14965 2017-04-04 Pedro Alves <palves@redhat.com>
14967 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14968 unittests/offset-type-selftests.c.
14969 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14970 * common/offset-type.h: New file.
14971 * common/preprocessor.h: New file.
14972 * common/traits.h: New file.
14973 * common/valid-expr.h: New file.
14974 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14975 sect_offset and cu_offset strong typedefs throughout.
14976 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14977 typedefs throughout.
14978 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14979 sect_offset and cu_offset strong typedefs throughout.
14980 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14981 typedefs throughout.
14982 * gdbtypes.h: Include "common/offset-type.h".
14983 (cu_offset): Now an offset type (strong typedef) instead of a
14985 (sect_offset): Likewise.
14986 (union call_site_parameter_u): Rename "param_offset" field to
14988 * unittests/offset-type-selftests.c: New file.
14990 2017-04-04 Pedro Alves <palves@redhat.com>
14992 * common/underlying.h: New file.
14993 * dwarf2read.c: Include "common/gdb_optional.h" and
14994 "common/underlying.h".
14995 (dir_index, file_name_index): New types.
14996 (file_entry): Use them.
14997 (file_entry::include): Use to_underlying.
14998 (line_header::add_file_name): Use dir_index.
14999 (read_formatted_entries): Use gdb::optional. Read form before
15000 writting to file_entry.
15001 (dwarf_decode_line_header): Use dir_index.
15002 (lnp_state_machine::current_file): Use to_underlying.
15003 (lnp_state_machine::file): Change type to file_name_index.
15004 (dwarf_record_line): Use to_underlying.
15005 (init_lnp_state_machine): Use file_name_index.
15006 (dwarf_decode_lines_1): Use dir_index and file_name_index.
15008 2017-04-04 Pedro Alves <palves@redhat.com>
15010 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
15011 operator bool, has_value and get methods.
15013 2017-04-04 Pedro Alves <palves@redhat.com>
15015 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
15017 (line_header): Initialize all data fields. Change type of
15018 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
15019 Change type of include_dirs to std::vector<const char *>. Remove
15020 num_include_dirs, include_dirs_size. Change type of file_names to
15021 std::vector<file_entry>. Remove num_file_names, file_names_size.
15022 (line_header::line_header): New.
15023 (line_header::add_include_dir, line_header::add_file_name): New
15025 (line_header::include_dir_at): Remove NULL check.
15026 (line_header::file_name_at): Add const overload.
15027 (line_header_up): New unique_ptr typedef.
15028 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
15029 std::vector. Remove free_line_header call.
15030 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
15031 free_line_header call.
15032 (free_cu_line_header): Delete.
15033 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
15034 (setup_type_unit_groups): Use line_header_up instead of cleanups.
15035 Adjust to use std::vector.
15036 (free_line_header): Delete.
15037 (free_line_header_voidp): Use delete.
15038 (add_include_dir): Replace with ...
15039 (line_header::add_include_dir): ... this method. Use std::vector.
15040 (add_file_name): Replace with ...
15041 (line_header::add_file_name): ... this method. Use std::vector.
15042 (add_include_dir_stub): Delete.
15043 (read_formatted_entries): Remove memset.
15044 (dwarf_decode_line_header): Return a line_header_up instead of a
15045 raw pointer. Remove cleanup handling. Pass lambdas to
15046 read_formatted_entries. Adjust to use line_header methods.
15047 (dwarf_decode_lines_1): Adjust to use line_header methods.
15048 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
15051 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
15053 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
15054 instead of struct ptid.
15056 2017-05-04 Alan Hayward <alan.hayward@arm.com>
15058 * frame.c (get_frame_register_bytes): Unwind using value.
15059 (put_frame_register_bytes): Likewise.
15061 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
15063 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
15066 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
15068 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
15070 2017-03-29 Yao Qi <yao.qi@linaro.org>
15072 * gdbthread.h (struct thread_info): Declare constructor and
15073 destructor. Add some in-class member initializers.
15074 * thread.c (free_thread): Remove.
15075 (init_thread_list): Call delete instead of free_thread.
15076 (new_thread): Call thread_info constructor.
15077 (thread_info::thread_info): New function.
15078 (thread_info::~thread_info): New function.
15079 (delete_thread_1): Call delete instead of free_thread.
15080 (make_cleanup_restore_current_thread): Move tp and frame to
15083 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15085 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
15086 (arc_skip_prologue): Likewise.
15087 (arc_make_frame_cache): Likewise.
15088 (arc_pv_get_operand): New function.
15089 (arc_is_in_prologue): Likewise.
15090 (arc_analyze_prologue): Likewise.
15091 (arc_print_frame_cache): Likewise.
15092 (MAX_PROLOGUE_LENGTH): New constant.
15094 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15096 * configure.tgt: Add arc-insn.o.
15097 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
15098 (dump_arc_instruction_command): New function.
15099 (arc_fprintf_disasm): Likewise.
15100 (arc_disassemble_info): Likewise.
15101 (arc_insn_get_operand_value): Likewise.
15102 (arc_insn_get_operand_value_signed): Likewise.
15103 (arc_insn_get_memory_base_reg): Likewise.
15104 (arc_insn_get_memory_offset): Likewise.
15105 (arc_insn_get_branch_target): Likewise.
15106 (arc_insn_dump): Likewise.
15107 (arc_insn_get_linear_next_pc): Likewise.
15108 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
15109 (arc_disassemble_info): Likewise.
15110 (arc_insn_get_branch_target): Likewise.
15111 (arc_insn_get_linear_next_pc): Likewise.
15112 * NEWS: Mention new "maint print arc arc-instruction".
15114 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15116 * arc-tdep (maintenance_print_arc_list): New variable.
15117 (maintenance_print_arc_command): New function.
15119 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
15121 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
15122 Add "limm" and "reserved".
15123 (arc_cannot_fetch_register, arc_cannot_store_register): Add
15124 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
15125 * arc-tdep.h (arc_regnum): Likewise.
15127 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15129 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15130 for THREADPTR register.
15131 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
15133 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
15134 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
15135 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
15137 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15139 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
15140 registers above gdbarch_num_regs (gdbarch) as privileged in
15143 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15145 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
15146 for a single specified register or for all registers in
15147 a0_base..a0_base + C0_NREGS range.
15148 (supply_gregset_reg): Call regcache_raw_supply for a single
15149 specified register or for all registers in a0_base..a0_base +
15152 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15154 * arch/xtensa.h (C0_NREGS): Add definition.
15155 * xtensa-tdep.c (C0_NREGS): Remove definition.
15157 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
15159 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
15160 Drop xtensa_default_isa initialization.
15161 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
15163 2017-03-27 Pedro Alves <palves@redhat.com>
15165 * dwarf2read.c (file_entry) <dir_index>: Add comment.
15166 (file_entry::include_dir): New method.
15167 (line_header::include_dir_at, line_header::file_name_at): New
15169 (setup_type_unit_groups, setup_type_unit_groups)
15170 (psymtab_include_file_name): Simplify using the new methods.
15171 (lnp_state_machine) <the_line_header>: New field.
15172 <file>: Add comment.
15173 (lnp_state_machine::current_file): New method.
15174 (dwarf_record_line): Simplify using the new methods.
15175 (init_lnp_state_machine): Initialize the "the_line_header" field.
15176 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
15177 Simplify using the new methods.
15179 2017-03-27 Pedro Alves <palves@redhat.com>
15181 * cp-name-parser.y (make_empty): Delete.
15182 (demangler_special, nested_name, ptr_operator, array_indicator)
15183 (direct_declarator, declarator_1): Use fill_comp instead of
15186 2017-03-27 Pedro Alves <palves@redhat.com>
15188 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
15189 to ATTRIBUTE_PRINTF.
15190 * solib-target.c (library_list_start_list): Print "string" not
15192 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
15193 gdb_xml_error call.
15195 2017-03-27 Pedro Alves <palves@redhat.com>
15197 * dwarf2read.c (struct file_and_directory): New.
15198 (dwarf2_get_dwz_file): Adjust to use std::string.
15199 (dw2_get_file_names_reader): Adjust to use file_and_directory.
15200 (find_file_and_directory): Adjust to return a file_and_directory
15202 (read_file_scope): Adjust to use file_and_directory. Remove
15203 make_cleanup/do_cleanups calls.
15204 (open_and_init_dwp_file): Adjust to use std::string. Remove
15205 make_cleanup/do_cleanups calls.
15206 * python/python.c (do_start_initialization): Adjust to ldirname
15207 returning a std::string.
15208 * utils.c (ldirname): Now returns a std::string.
15209 * utils.h (ldirname): Change return type to std::string.
15210 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
15211 returning a std::string.
15212 * xml-tdesc.c (file_read_description_xml): Likewise.
15214 2017-03-24 Alan Hayward <alan.hayward@arm.com>
15216 * regcache.c (regcache_debug_print_register): New function.
15217 * regcache.h (regcache_debug_print_register): New declaration.
15218 * target.c (debug_print_register): Remove.
15219 (target_fetch_registers): Call regcache_debug_print_register.
15220 (target_store_registers): Likewise.
15222 2017-03-24 Pádraig Brady <pbrady@fb.com>
15224 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
15225 reference beyond the 'lh->include_dirs' array before accessing to
15227 (psymtab_include_file_name): Likewise.
15228 (dwarf_decode_lines_1): Likewise.
15229 (dwarf_decode_lines): Likewise.
15230 (file_file_name): Likewise.
15232 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
15234 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
15236 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15237 ps_lsetfpregs): Likewise.
15238 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15239 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15240 ps_lsetfpregs): Likewise.
15241 * target.c (target_fetch_registers, target_store_registers):
15244 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15246 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15248 2017-03-23 Yao Qi <yao.qi@linaro.org>
15250 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15251 (_initialize_aarch64_tdep): Register it.
15252 (aarch64_record_load_store): Handle PRFM instruction.
15253 (aarch64_process_record_test): New function.
15255 2017-03-23 Yao Qi <yao.qi@linaro.org>
15257 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15260 2017-03-23 Yao Qi <yao.qi@linaro.org>
15262 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15264 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15266 python/python.c (do_start_initialization): Fix memory leak.
15268 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15270 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15271 using get_ptrace_pid.
15272 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15274 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15275 inferior_ptid instead of pid.
15277 2017-03-22 Yao Qi <yao.qi@linaro.org>
15279 * aarch64-tdep.c: Wrap locally used classes in anonymous
15281 * arm-tdep.c: Likewise.
15282 * linespec.c: Likewise.
15283 * ui-out.c: Likewise.
15285 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15288 * python/lib/gdb/printer/bound_registers.py: Import sys.
15290 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15292 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15293 windows_thread_info parameter and use it instead of
15295 (windows_fetch_inferior_registers): Don't set current_thread,
15296 pass the thread to do_windows_fetch_inferior_registers. Use
15297 ptid from regcache instead of inferior_ptid.
15298 (do_windows_store_inferior_registers): Add windows_thread_info
15299 parameter and use it instead of current_thread.
15300 (windows_store_inferior_registers): Don't set current_thread,
15301 pass the thread to do_windows_store_inferior_registers. Use
15302 ptid from regcache instead of inferior_ptid.
15304 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15306 * ser-mingw.c (ser_windows_raw): Remove reference to
15307 struct serial::current_timeout.
15309 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15312 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15313 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15314 (sparc64_fsr_type): Fix %fsr decoding.
15316 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15318 * python/py-record-btrace.c (btpy_insn_data): Change return type
15321 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15323 * spu-linux-nat.c (spu_fetch_inferior_registers,
15324 spu_store_inferior_registers): Use ptid from regcache, set and
15325 restore inferior_ptid.
15326 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15329 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15331 * i386-linux-nat.c (fetch_register, store_register,
15332 i386_linux_fetch_inferior_registers,
15333 i386_linux_store_inferior_registers): Use ptid from regcache.
15334 * ia64-linux-nat.c (ia64_linux_fetch_register,
15335 ia64_linux_store_register): Likewise.
15336 * inf-ptrace.c (inf_ptrace_fetch_register,
15337 inf_ptrace_store_register): Likewise.
15338 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15339 m32r_linux_store_inferior_registers): Likewise.
15340 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15341 m68kbsd_store_inferior_registers): Likewise.
15342 * m68k-linux-nat.c (fetch_register, store_register,
15343 m68k_linux_fetch_inferior_registers,
15344 m68k_linux_store_inferior_registers): Likewise.
15345 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15346 m88kbsd_store_inferior_registers): Likewise.
15347 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15348 mips_fbsd_store_inferior_registers): Likewise.
15349 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15350 mips64_linux_regsets_store_registers): Likewise.
15351 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15352 mipsnbsd_store_inferior_registers): Likewise.
15353 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15354 mips64obsd_store_inferior_registers): Likewise.
15355 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15357 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15358 ppcfbsd_store_inferior_registers): Likewise.
15359 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15360 ppc_linux_store_inferior_registers): Likewise.
15361 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15362 ppcnbsd_store_inferior_registers): Likewise.
15363 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15364 ppcobsd_store_registers): Likewise.
15365 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15367 * ravenscar-thread.c (ravenscar_fetch_registers,
15368 ravenscar_store_registers, ravenscar_prepare_to_store):
15370 * record-btrace.c (record_btrace_fetch_registers,
15371 record_btrace_store_registers, record_btrace_prepare_to_store):
15373 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15374 Lookup inferior using ptid from regcache, instead of
15376 * remote.c (remote_fetch_registers, remote_store_registers): Use
15377 ptid from regcache.
15378 * rs6000-nat.c (fetch_register, store_register): Likewise.
15379 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15380 s390_linux_store_inferior_registers): Likewise.
15381 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15382 shnbsd_store_inferior_registers): Likewise.
15383 * sol-thread.c (sol_thread_fetch_registers,
15384 sol_thread_store_registers): Likewise.
15385 * sparc-nat.c (sparc_fetch_inferior_registers,
15386 sparc_store_inferior_registers): Likewise.
15387 * tilegx-linux-nat.c (fetch_inferior_registers,
15388 store_inferior_registers): Likewise.
15389 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15390 vaxbsd_store_inferior_registers): Likewise.
15391 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15392 store_xtregs): Likewise.
15394 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15397 * NEWS: Mention support for rvalue references in GDB and python.
15398 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15399 supports both lvalue and rvalue references.
15401 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15404 * gdbtypes.c (rank_one_type): Implement overloading
15405 resolution rules regarding rvalue references.
15407 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15410 * aarch64-tdep.c (aarch64_type_align)
15411 (aarch64_extract_return_value, aarch64_store_return_value): Change
15412 lvalue reference type checks to general reference type checks.
15413 * amd64-tdep.c (amd64_classify): Likewise.
15414 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15416 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15417 (arm_store_return_value): Likewise.
15418 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15419 * c-typeprint.c (c_print_type): Likewise.
15420 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15421 (cplus_number_of_children, cplus_describe_child): Likewise.
15422 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15423 * completer.c (expression_completer): Likewise.
15424 * cp-support.c (make_symbol_overload_list_adl_namespace):
15426 * darwin-nat-info.c (info_mach_region_command): Likewise.
15427 * dwarf2loc.c (entry_data_value_coerce_ref)
15428 (value_of_dwarf_reg_entry): Likewise.
15429 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15430 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15432 * findvar.c (extract_typed_address, store_typed_address):
15434 * gdbtypes.c (rank_one_type): Likewise.
15435 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15436 * infcall.c (value_arg_coerce): Likewise.
15437 * language.c (pointer_type): Likewise.
15438 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15440 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15441 * mn10300-tdep.c (mn10300_type_align): Likewise.
15442 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15443 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15444 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15446 * printcmd.c (print_formatted, x_command): Likewise.
15447 * python/py-type.c (typy_get_composite, typy_template_argument):
15449 * python/py-value.c (valpy_referenced_value)
15450 (valpy_get_dynamic_type, value_has_field): Likewise.
15451 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15452 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15453 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15454 * spu-tdep.c (spu_scalar_value_p): Likewise.
15455 * symtab.c (lookup_symbol_aux): Likewise.
15456 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15457 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15459 * valops.c (value_cast_pointers, value_cast)
15460 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15461 (value_struct_elt, value_struct_elt_bitpos)
15462 (value_find_oload_method_list, find_overload_match)
15463 (value_rtti_indirect_type): Likewise.
15464 * valprint.c (val_print_scalar_type_p, generic_val_print):
15466 * value.c (value_actual_type, value_as_address, unpack_long)
15467 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15468 (coerce_ref): Likewise.
15469 * varobj.c (varobj_get_value_type): Likewise.
15471 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15474 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15475 table of constants.
15476 * python/lib/gdb/command/explore.py: Support exploring values
15477 of rvalue reference types.
15478 * python/lib/gdb/types.py: Implement get_basic_type() for
15479 rvalue reference types.
15480 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15482 * python/py-value.c (valpy_getitem): Add an rvalue reference
15484 (valpy_reference_value): Add new parameter "refcode".
15485 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15486 New wrappers for valpy_reference_value().
15487 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15488 (gdbpy_invoke_xmethod): Likewise.
15490 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15493 * dwarf2read.c (process_die, read_type_die_1): Handle the
15494 DW_TAG_rvalue_reference_type DIE.
15495 (read_tag_reference_type): Add new parameter "refcode".
15497 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15500 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15501 (c_type_print_modifier, c_type_print_varspec_suffix)
15502 (c_type_print_base): Support printing rvalue reference types.
15503 * c-valprint.c (c_val_print, c_value_print): Support printing
15504 rvalue reference values.
15506 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15509 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15511 * cp-support.c (replace_typedefs): Handle
15512 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15513 * python/py-type.c (typy_lookup_type): Likewise.
15515 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15518 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15519 * parse.c (insert_type): Change assert statement.
15520 (follow_types): Handle rvalue reference types.
15521 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15524 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15527 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15528 value_ref() interface.
15529 * c-valprint.c (c_value_print): Likewise.
15530 * infcall.c (value_arg_coerce): Likewise.
15531 * python/py-value.c (valpy_reference_value): Likewise.
15532 * valops.c (value_cast, value_reinterpret_cast)
15533 (value_dynamic_cast, typecmp): Likewise.
15534 (value_ref): Parameterize by kind of return value reference type.
15535 * value.h (value_ref): Add new parameter "refcode".
15537 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15540 * dwarf2read.c (read_tag_reference_type): Use
15541 lookup_lvalue_reference_type() instead of lookup_reference_type().
15542 * eval.c (evaluate_subexp_standard): Likewise.
15543 * f-exp.y: Likewise.
15544 * gdbtypes.c (make_reference_type, lookup_reference_type):
15545 Generalize with rvalue reference types.
15546 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15547 convenience wrappers for lookup_reference_type().
15548 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15549 reference kind parameter.
15550 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15551 wrappers for lookup_reference_type().
15552 * guile/scm-type.c (gdbscm_type_reference): Use
15553 lookup_lvalue_reference_type() instead of lookup_reference_type().
15554 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15555 * parse.c (follow_types): Likewise.
15556 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15557 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15559 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15560 (gdbpy_invoke_xmethod): Likewise.
15561 * stabsread.c: Provide extra argument to make_reference_type()
15563 * valops.c (value_ref, value_rtti_indirect_type): Use
15564 lookup_lvalue_reference_type() instead of lookup_reference_type().
15566 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15569 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15570 (TYPE_IS_REFERENCE): New macro.
15571 (struct type): Add rvalue_reference_type field.
15572 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15574 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15576 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15577 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15578 New function definition.
15579 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15580 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15581 New function declaration.
15582 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15583 * mi/mi-interp.h: New file.
15584 * solib.c (info_sharedlibrary_command): Replace for loop with
15586 * solib.h (update_solib_list): New function declaration.
15587 (so_list_head): Move macro.
15588 * solist.h (ALL_SO_LIBS): New macro.
15590 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15592 * infcmd.c (post_create_inferior): Remove unused argument in
15594 * remote.c (remote_start_remote): Likewise.
15595 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15596 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15597 (enable_break): Likewise.
15598 * solib.c (update_solib_list): Remove unused target argument
15599 and its documentation.
15600 (solib_add): Remove unused target argument. Remove unused
15601 argument in call to update_solib_list.
15602 (info_sharedlibrary_command): Remove unused argument in call
15603 to update_solib_list.
15604 (sharedlibrary_command): Remove unused argument in call to
15606 (handle_solib_event): Likewise.
15607 (reload_shared_libraries): Likewise.
15608 * solib.h (solib_add): Remove unused target argument.
15610 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15612 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15613 (s390_displaced_step_fixup): Cover relative branches with the
15614 default fixup handling. This fixes lack of support for some
15615 relative branch instructions.
15617 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15619 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15620 ptid from regcache.
15622 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15624 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15625 i386_darwin_store_inferior_registers): Use ptid from regcache.
15627 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15629 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15630 i386bsd_store_inferior_registers): Use ptid from regcache.
15632 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15634 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15635 hppaobsd_store_registers): Use ptid from regcache.
15637 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15639 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15640 hppanbsd_store_registers): Use ptid from regcache.
15642 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15644 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15645 from regcache. Use get_ptrace_pid.
15647 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15649 * corelow.c (get_core_register_section): Use ptid from regcache,
15652 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15654 * bsd-uthread.c (bsd_uthread_fetch_registers,
15655 bsd_uthread_store_registers): Use ptid from regcache, set and
15656 restore inferior_ptid.
15658 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15660 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15661 fetch_fp_regs, store_register, store_regs, store_fp_register,
15662 store_fp_regs): Use ptid from regcache.
15664 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15666 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15667 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15668 store_vfp_regs): Use ptid from regcache.
15670 2017-03-17 Pedro Alves <palves@redhat.com>
15673 * ser-base.c (ser_base_wait_for): Add comment.
15674 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15676 * ser-unix.c (hardwire_raw): Remove reference to
15677 scb->current_timeout.
15678 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15679 (hardwire_ops): Install ser_base_readchar instead of
15681 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15684 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15687 * python/lib/gdb/printer/bound_registers.py: Add support for
15690 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15692 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15693 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15694 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15695 byte_offset to subobj_byte_offset. Fix the handling of
15696 DWARF_VALUE_STACK on big-endian targets when coming via an
15698 (dwarf2_evaluate_loc_desc): Adjust call to
15699 dwarf2_evaluate_loc_desc_full.
15700 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15701 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15703 2017-03-16 Yao Qi <yao.qi@linaro.org>
15705 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15706 and REVSH instructions.
15708 2017-03-16 Yao Qi <yao.qi@linaro.org>
15710 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15711 (arm_record_test): Declare.
15712 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15713 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15714 align with the manual.
15715 (thumb_record_misc): Adjust the code order to align with the
15717 (thumb2_record_decode_insn_handler): Fix instruction matching.
15718 (instruction_reader_thumb): New class.
15719 (arm_record_test): New function.
15721 2017-03-16 Yao Qi <yao.qi@linaro.org>
15723 * arm-tdep.c (abstract_memory_reader): New class.
15724 (instruction_reader): New class.
15725 (extract_arm_insn): Add argument 'reader'. Callers updated.
15726 (decode_insn): Likewise.
15728 2017-03-16 Doug Evans <dje@google.com>
15730 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15731 member. Change type of TYPE member to SCM. All uses updated.
15732 (lsscm_make_lazy_string_smob): Add assert.
15733 (lsscm_make_lazy_string): Flag bad length values.
15734 (lsscm_elt_type): New function.
15735 (gdbscm_lazy_string_to_value): Rewrite to use
15736 lsscm_safe_lazy_string_to_value.
15737 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15738 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15739 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15741 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15742 * guile/scm-type.c (tyscm_scm_to_type): New function.
15744 2017-03-15 Doug Evans <dje@google.com>
15746 PR python/17728, python/18439, python/18779
15747 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15748 member. Change type of TYPE member to PyObject *. All uses updated.
15749 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15750 (gdbpy_create_lazy_string_object): Flag bad length values.
15751 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15752 Handle typedefs in incoming type.
15753 (stpy_lazy_string_elt_type): New function.
15754 (gdbpy_extract_lazy_string): Call it.
15755 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15756 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15757 typedefs in incoming type.
15759 2017-03-16 Doug Evans <dje@google.com>
15761 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15762 * guile/scm-type.c (tyscm_scm_to_type): New function.
15764 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15766 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15767 "ULONGEST" for "skip".
15769 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15772 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15773 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15774 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15775 over ptrace peek/poke until end of buffer or error.
15777 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15779 * parse.c (length_of_subexp): Make static.
15780 * parser-defs.h (length_of_subexp): Remove.
15782 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15784 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15787 2017-03-14 Pedro Alves <palves@redhat.com>
15789 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15790 (main): Use std::unique_ptr. Remove calls to
15791 cp_demangled_name_parse_free.
15793 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15795 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15796 alphabsd_store_inferior_registers): Use regcache->ptid instead
15799 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15801 * aix-thread.c (aix_thread_fetch_registers,
15802 aix_thread_store_registers): Use regcache->ptid instead of
15805 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15807 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15808 store_gregs_to_thread, fetch_fpregs_from_thread,
15809 store_fpregs_to_thread): Use regcache->ptid instead of
15812 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15814 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15815 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15816 instead of inferior_ptid.
15818 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15820 * target.c (target_fetch_registers, target_store_registers): Add
15823 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15825 * regcache.h (regcache_get_ptid): New function.
15826 * regcache.c (regcache_get_ptid): New function.
15828 2017-03-13 Mark Wielaard <mark@klomp.org>
15830 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15832 2017-03-10 Keith Seitz <keiths@redhat.com>
15835 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15837 2017-03-08 Pedro Alves <palves@redhat.com>
15840 * infrun.c (start_step_over, do_target_resume, resume)
15841 (restart_threads): Assert we're not resuming a thread that is
15842 meant to be stopped.
15843 (infrun_thread_stop_requested_callback): Delete.
15844 (infrun_thread_stop_requested): If the thread is internally
15845 stopped, queue a pending stop event and clear the thread's
15846 inline-frame state.
15847 (handle_stop_requested): New function.
15848 (handle_syscall_event, handle_inferior_event_1): Use
15849 handle_stop_requested.
15850 (handle_stop_requested): New function.
15851 (handle_signal_stop): Set the thread's stop_signal here instead of
15853 (finish_step_over): Clear step over info unconditionally.
15854 (handle_signal_stop): If the user had interrupted the event
15855 thread, consider the stop a random signal.
15856 (handle_signal_stop) <signal arrived while stepping over
15857 breakpoint>: Don't restart threads here.
15858 (stop_waiting): Don't clear step-over info here.
15860 2017-03-08 Pedro Alves <palves@redhat.com>
15863 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15864 goes to argument 2, not 1.
15866 2017-03-08 Pedro Alves <palves@redhat.com>
15869 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15870 display_gdb_prompt.
15871 (command_line_input): Add comment.
15873 2017-03-08 Pedro Alves <palves@redhat.com>
15876 * tui/tui-file.c (tui_file::write): New.
15877 * tui/tui-file.h (tui_file): Override "write".
15878 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15879 factored out from ...
15880 (tui_puts): ... here.
15881 (tui_putc): Use them.
15882 (tui_write): New function.
15883 * tui/tui-io.h (tui_write): Declare.
15885 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15887 * Makefile.in (SFILES): Replace "environ.c" with
15888 "common/environ.c".
15889 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15890 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15892 * common/environ.c: ... here.
15893 * environ.h: Moved to...
15894 * common/environ.h: ... here.
15896 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15898 * gdbarch.sh (pstring_ptr): New static function.
15899 (gdbarch_disassembler_options): Use it.
15900 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15901 not valid_disassembler_option->name.
15902 * gdbarch.c: Regenerate.
15904 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15906 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15908 2017-03-07 Pedro Alves <palves@redhat.com>
15910 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15912 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15914 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15915 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15916 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15917 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15919 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15921 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15923 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15925 * remote.c (remote_add_target_side_commands): Use range-based
15928 2017-03-03 Yao Qi <yao.qi@linaro.org>
15931 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15933 * valprint.c (common_val_print): Likewise.
15935 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15937 * NEWS: Mention new set/show disassembler-options commands.
15938 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15939 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15940 (prospective_options): New static variable.
15941 (gdb_disassembler::gdb_disassembler): Initialize
15942 m_di.disassembler_options.
15943 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15944 (get_disassembler_options): New function.
15945 (set_disassembler_options): Likewise.
15946 (set_disassembler_options_sfunc): Likewise.
15947 (show_disassembler_options_sfunc): Likewise.
15948 (disassembler_options_completer): Likewise.
15949 (_initialize_disasm): Likewise.
15950 * disasm.h (get_disassembler_options): New prototype.
15951 (set_disassembler_options): Likewise.
15952 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15953 (gdbarch_verify_disassembler_options): Likewise.
15954 * gdbarch.c: Regenerate.
15955 * gdbarch.h: Likewise.
15956 * arm-tdep.c (num_disassembly_options): Delete.
15957 (set_disassembly_style): Likewise.
15958 (arm_disassembler_options): New static variable.
15959 (set_disassembly_style_sfunc): Convert short style name into long
15960 option name. Call set_disassembler_options.
15961 (show_disassembly_style_sfunc): New function.
15962 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15963 set_gdbarch_verify_disassembler_options.
15964 (_initialize_arm_tdep): Delete regnames variable and update callers.
15965 (arm_disassembler_options): Initialize.
15966 (disasm_options): New variable.
15967 (num_disassembly_options): Rename from this...
15968 (num_disassembly_styles): ...to this. Compute by scanning through
15970 (valid_disassembly_styles): Initialize using disasm_options.
15971 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15972 set_arm_regname_option.
15973 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15974 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15975 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15976 set_gdbarch_verify_disassembler_options.
15977 * s390-tdep.c (s390_disassembler_options): New static variable.
15978 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15979 set_gdbarch_verify_disassembler_options.
15981 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15983 * remote.c (remote_add_target_side_condition): Remove "struct"
15984 keyword from range-based for loop.
15986 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15988 * remote.c (remote_add_target_side_condition): Use range-based
15989 for loop. Update comment.
15991 2017-02-27 Yao Qi <yao.qi@linaro.org>
15993 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15995 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15997 * regcache.c (regcache_raw_update): New function.
15998 (regcache_raw_read): Move code to regcache_raw_update.
15999 * regcache.h (regcache_raw_update): New declaration.
16000 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
16002 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16004 * dwarf2read.c (create_debug_type_hash_table): Initialize
16005 header.signature and header.type_offset_in_tu.
16007 2017-02-24 Pedro Alves <palves@redhat.com>
16009 * symtab.c (make_file_symbol_completion_list_1): Use
16010 add_symtab_completions.
16012 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16014 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
16016 2017-02-24 Alan Hayward <alan.hayward@arm.com>
16018 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
16019 I386_MAX_REGISTER_SIZE.
16020 (i386_pseudo_register_write): Likewise.
16021 (i386_process_record): Likewise.
16022 * i387-tdep.c (i387_supply_xsave): Likewise.
16023 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
16024 (store_register): Likewise.
16026 2017-02-23 Pedro Alves <palves@redhat.com>
16028 * ada-lang.c: Include "common/function-view.h".
16029 (ada_iterate_over_symbols): Adjust to use function_view as
16031 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
16032 (ada_make_symbol_completion_list): Use a lambda.
16033 (ada_exc_search_name_matches): Delete.
16034 (name_matches_regex): New.
16035 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
16036 * compile/compile-c-support.c: Include "common/function-view.h".
16037 (print_one_macro): Change prototype to accept a ui_file pointer.
16038 (write_macro_definitions): Use a lambda.
16039 * dwarf2read.c: Include "common/function-view.h".
16040 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
16041 (dw2_expand_symtabs_matching): Adjust to use function_view as
16043 * language.h: Include "common/function-view.h".
16044 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
16045 function_view as callback type.
16046 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
16047 * linespec.c: Include "common/function-view.h".
16048 (collect_info::add_symbol): New method.
16049 (struct symbol_and_data_callback, iterate_inline_only, struct
16050 symbol_matcher_data, iterate_name_matcher): Delete.
16051 (iterate_over_all_matching_symtabs): Adjust to use function_view
16052 as callback type and lambdas.
16053 (iterate_over_file_blocks): Adjust to use function_view as
16055 (decode_compound_collector): Now a class with private fields.
16056 (decode_compound_collector::release_symbols): New method.
16057 (collect_one_symbol): Rename to...
16058 (decode_compound_collector::operator()): ... this and adjust.
16059 (lookup_prefix_sym): decode_compound_collector construction bits
16060 move to decode_compound_collector ctor. Pass the
16061 decode_compound_collector object directly as callback. Remove
16062 cleanups and use decode_compound_collector::release_symbols
16064 (symtab_collector): Now a class with private fields.
16065 (symtab_collector::release_symtabs): New method.
16066 (add_symtabs_to_list): Rename to...
16067 (symtab_collector::operator()): ... this and adjust.
16068 (collect_symtabs_from_filename): symtab_collector construction
16069 bits move to symtab_collector ctor. Pass the symtab_collector
16070 object directly as callback. Remove cleanups and use
16071 symtab_collector::release_symtabs instead.
16072 (collect_symbols): Delete.
16073 (add_matching_symbols_to_info): Use lambdas.
16074 * macrocmd.c (print_macro_callback): Delete.
16075 (info_macro_command): Use a lambda.
16076 (info_macros_command): Pass print_macro_definition as callable
16078 (print_one_macro): Remove 'ignore' parameter.
16079 (macro_list_command): Adjust.
16080 * macrotab.c (macro_for_each_data::fn): Now a function_view.
16081 (macro_for_each_data::user_data): Delete field.
16082 (foreach_macro): Adjust to call the function_view.
16083 (macro_for_each): Adjust to use function_view as callback type.
16084 (foreach_macro_in_scope): Adjust to call the function_view.
16085 (macro_for_each_in_scope): Adjust to use function_view as callback
16087 * macrotab.h: Include "common/function-view.h".
16088 (macro_callback_fn): Declare a prototype instead of a pointer.
16089 Remove "user_data" parameter.
16090 (macro_for_each, macro_for_each_in_scope): Adjust to use
16091 function_view as callback type.
16092 * psymtab.c (partial_map_expand_apply)
16093 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
16094 Adjust to use function_view as callback type and to return bool.
16095 (psym_expand_symtabs_matching): Adjust to use function_view as
16097 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
16098 to use function_view as callback type and to return bool.
16099 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
16101 * symfile.c (expand_symtabs_matching): Adjust to use function_view
16103 * symfile.h: Include "common/function-view.h".
16104 (expand_symtabs_file_matcher_ftype)
16105 (expand_symtabs_symbol_matcher_ftype)
16106 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
16108 (quick_symbol_functions::map_symtabs_matching_filename)
16109 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
16110 function_view as callback type and return bool.
16111 (expand_symtabs_matching): Adjust to use function_view as callback
16113 (maintenance_expand_name_matcher)
16114 (maintenance_expand_file_matcher): Delete.
16115 (maintenance_expand_symtabs): Use lambdas.
16116 * symtab.c (iterate_over_some_symtabs): Adjust to use
16117 function_view as callback types and return bool.
16118 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
16120 (lookup_symtab_callback): Delete.
16121 (lookup_symtab): Use a lambda.
16122 (iterate_over_symbols): Adjust to use function_view as callback
16124 (struct search_symbols_data, search_symbols_file_matches)
16125 (search_symbols_name_matches): Delete.
16126 (search_symbols): Use a pair of lambdas.
16127 (struct add_name_data, add_macro_name, symbol_completion_matcher)
16128 (symtab_expansion_callback): Delete.
16129 (default_make_symbol_completion_list_break_on_1): Use lambdas.
16130 * symtab.h: Include "common/function-view.h".
16131 (iterate_over_some_symtabs): Adjust to use function_view as
16132 callback type and return bool.
16133 (iterate_over_symtabs): Adjust to use function_view as callback
16135 (symbol_found_callback_ftype): Remove 'data' parameter and return
16137 (iterate_over_symbols): Adjust to use function_view as callback
16140 2017-02-23 Pedro Alves <palves@redhat.com>
16142 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
16143 (%.o) <unittests/%.c>: New pattern.
16144 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
16145 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
16146 * common/function-view.h: New file.
16147 * unittests/function-view-selftests.c: New file.
16148 * configure: Regenerate.
16150 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
16152 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
16154 * go32-nat.c (go32_thread_alive): Likewise.
16156 2017-02-23 Yao Qi <yao.qi@linaro.org>
16158 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
16161 2017-02-23 Yao Qi <yao.qi@linaro.org>
16163 * varobj.c (varobj_clear_saved_item): Use delete instead of
16165 (update_dynamic_varobj_children): Likewise.
16167 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16169 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
16171 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
16173 * common/enum-flags.h (enum_flags::enum_flags): Initialize
16174 m_enum_value to 0 in default constructor.
16176 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16178 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
16179 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
16180 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
16181 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
16182 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
16183 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
16184 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
16185 IS_STORE_CONDITIONAL_INSN.
16187 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16189 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
16191 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16193 * NEWS (Changes since GDB 7.12): Add DWARF-5.
16195 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16197 * dwarf2read.c (skip_one_die, read_attribute_value)
16198 (dwarf2_const_value_attr, dump_die_shallow)
16199 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
16200 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
16202 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16204 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
16205 (dwarf_parse_macro_header): Accept DWARF version 5.
16206 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
16208 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16210 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
16212 * common/common-exceptions.h (enum errors): Likewise.
16213 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
16214 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
16215 (dwarf_expr_context::execute_stack_op): Likewise.
16216 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
16218 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
16219 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
16220 (show_entry_values_debug, call_site_to_target_addr)
16221 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
16222 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
16223 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
16224 (value_of_dwarf_block_entry, indirect_pieced_value)
16225 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
16226 (disassemble_dwarf_expression): Likewise.
16227 * dwarf2read.c (process_die, inherit_abstract_dies)
16228 (read_call_site_scope): Likewise.
16229 * gdbtypes.h (struct func_type, struct call_site_parameter)
16230 (struct call_site): Likewise.
16231 * stack.c (read_frame_arg): Likewise.
16232 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
16234 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16236 * defs.h (read_unsigned_leb128): New declaration.
16237 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16238 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16239 (dwarf2_find_location_expression): Call also
16240 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16241 * dwarf2loc.h (dwarf2_version): New declaration.
16242 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16244 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16246 (struct dwop_section_names): Add loclists_dwo.
16247 (dwop_section_names): Add .debug_loclists.dwo.
16248 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16249 (struct dwarf2_per_cu_data): Add dwarf_version.
16250 (struct dwo_sections): Add loclists.
16251 (struct attr_abbrev): Add implicit_const.
16252 (read_indirect_line_string): New declaration.
16253 (read_unsigned_leb128): Delete declaration.
16254 (rcuh_kind): New definition.
16255 (read_and_check_comp_unit_head): Change parameter
16256 is_debug_types_section to section_kind.
16257 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16258 (read_comp_unit_head): Change parameter abfd to section, add parameter
16259 section_kind. Handle DWARF-5.
16260 (error_check_comp_unit_head): Accept also DWARF version 5.
16261 (read_and_check_comp_unit_head): Change parameter
16262 is_debug_types_section to section_kind.
16263 (read_and_check_type_unit_head): Delete function.
16264 (read_abbrev_offset): Handle DWARF-5.
16265 (create_debug_type_hash_table): Add parameter section_kind. Process
16266 only DW_UT_type. Use signature and type_offset_in_tu from struct
16268 (create_debug_types_hash_table): Update create_debug_type_hash_table
16270 (create_all_type_units): Call create_debug_type_hash_table.
16271 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16272 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16274 (skip_one_die): Handle DW_FORM_implicit_const.
16275 (dwarf2_rnglists_process): New function.
16276 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16277 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16278 (read_attribute_value): Handle DW_FORM_implicit_const,
16280 (read_attribute): Handle DW_FORM_implicit_const.
16281 (read_indirect_string_at_offset_from): New function from
16282 read_indirect_string_at_offset.
16283 (read_indirect_string_at_offset): Call
16284 read_indirect_string_at_offset_from.
16285 (read_indirect_line_string_at_offset): New function.
16286 (read_indirect_string): New function comment.
16287 (read_indirect_line_string): New function.
16288 (read_unsigned_leb128): Make it global.
16289 (dwarf2_string_attr): Handle DWARF-5.
16290 (add_include_dir_stub, read_formatted_entries): New functions.
16291 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16293 (per_cu_header_read_in): Update read_comp_unit_head caller.
16294 (dwarf2_version): New function.
16295 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16297 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16300 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16302 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16304 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16306 * dwarf2read.c (dwarf2_ranges_process): New function from
16307 dwarf2_ranges_read.
16308 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16309 dwarf2_ranges_process.
16311 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16313 * dwarf2read.c (create_debug_type_hash_table): New function from
16314 create_debug_types_hash_table.
16315 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16316 (create_all_type_units, open_and_init_dwo_file): Update
16317 create_debug_types_hash_table callers.
16319 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16322 * fork-child.c (trace_start_error): Fix thinko. va_end should
16323 refer to 'ap', not 'args'.
16325 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16326 Pedro Alves <palves@redhat.com>
16329 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16331 * fork-child.c (trace_start_error): New function.
16332 (trace_start_error_with_name): Likewise.
16333 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16334 * inf-ptrace.c (inf_ptrace_me): Likewise.
16335 * inferior.h (trace_start_error): New prototype.
16336 (trace_start_error_with_name): Likewise.
16338 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16341 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16342 NULL before using it.
16343 * symmisc.c (maintenance_print_symbols): Likewise.
16344 (maintenance_print_msymbols): Likewise.
16346 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16348 * NEWS: Add record Python bindings entry.
16350 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16352 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16354 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16355 * python/py-record-btrace.c, python/py-record-btrace.h,
16356 python/py-record-full.c, python/py-record-full.h: New file.
16357 * python/py-record.c: Add include for py-record-btrace.h and
16359 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16360 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16361 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16362 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16364 (gdbpy_initialize_btrace): New export.
16365 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16367 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16369 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16370 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16371 * python/py-record.c: New file.
16372 * python/python-internal.h (gdbpy_start_recording,
16373 gdbpy_current_recording, gdpy_stop_recording,
16374 gdbpy_initialize_record): New export.
16375 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16376 (python_GdbMethods): Add gdbpy_start_recording,
16377 gdbpy_current_recording and gdbpy_stop_recording.
16379 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16381 * record-btrace.c (record_btrace_record_method): New function.
16382 (init_record_btrace_ops): Initialize to_record_method.
16383 * record-full.c (record_full_record_method): New function.
16384 (init_record_full_ops, init_record_full_core_ops): Add
16385 record_full_record_method.
16386 * record.h (enum record_method): New enum.
16387 * target-debug.h (target_debug_print_enum_record_method: New define.
16388 * target-delegates.c: Regenerate.
16389 * target.c (target_record_method): New function.
16390 * target.h: Include record.h.
16391 (struct target_ops) <to_record_method>: New field.
16392 (target_record_method): New export.
16394 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16396 * record.h (record_start, record_stop): New export.
16397 * record.c (record_start, record_stop): New function.
16399 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16401 * btrace.c (btrace_fetch): Copy function call segments pointer
16403 (btrace_clear): Clear the vector.
16404 (btrace_find_insn_by_number): Use binary search to find the correct
16405 function call segment.
16406 * btrace.h (brace_fun_p): New typedef.
16407 (struct btrace_thread_info) <functions>: New field.
16409 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16411 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16412 * btrace.c (btrace_decode_error): ... here. New function.
16413 * btrace.h (btrace_decode_error): New export.
16415 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16417 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16418 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16419 btrace_find_insn_by_number): Remove special case for gaps.
16420 * btrace.h (btrace_insn_get_error): New export.
16421 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16422 * record-btrace.c (btrace_insn_history): Print number for gaps.
16423 (record_btrace_info, record_btrace_goto): Handle gaps.
16425 2017-02-14 Tom Tromey <tom@tromey.com>
16428 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16430 * python/py-evts.c (gdbpy_initialize_py_events): Add
16431 before_prompt registry.
16432 * python/py-events.h (events_object) <before_prompt>: New field.
16434 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16436 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16438 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16440 * symfile (_initialize_symfile): Add usage text to the load command's
16443 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16445 * utils.c (defaulted_query): Don't query on secondary UIs.
16447 2017-02-10 Tom Tromey <tom@tromey.com>
16449 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16451 2017-02-10 Tom Tromey <tom@tromey.com>
16453 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16455 * python/py-type.c (typy_legacy_template_argument): Remove
16456 unnecessary "cleanup" local.
16458 2017-02-10 Tom Tromey <tom@tromey.com>
16460 * python/python.c (do_start_initialization): New function, from
16461 _initialize_python.
16462 (_initialize_python): Call do_start_initialization.
16463 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16466 2017-02-10 Tom Tromey <tom@tromey.com>
16468 * python/py-prettyprint.c (pretty_print_one_value): Use
16471 2017-02-10 Tom Tromey <tom@tromey.com>
16473 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16474 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16476 * python/py-type.c (field_new): Use gdbpy_ref.
16477 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16479 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16480 (py_free_pspace): Likewise.
16481 (pspace_to_pspace_object): Likewise.
16482 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16483 (py_free_objfile): Likewise.
16484 (objfile_to_objfile_object): Likewise.
16485 * python/py-inferior.c (delete_thread_object): Use
16487 (infpy_read_memory): Likewise.
16488 (py_free_inferior): Likewise.
16489 * python/py-evtregistry.c (create_eventregistry_object): Use
16491 * python/py-event.c (create_event_object): Use gdbpy_ref.
16493 2017-02-10 Tom Tromey <tom@tromey.com>
16495 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16496 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16498 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16499 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16500 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16501 python/py-framefilter.c, python/py-function.c,
16502 python/py-inferior.c, python/py-infevents.c,
16503 python/py-linetable.c, python/py-newobjfileevent.c,
16504 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16505 python/py-signalevent.c, python/py-stopevent.c,
16506 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16507 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16508 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16509 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16511 2017-02-10 Tom Tromey <tom@tromey.com>
16513 * ui-out.h (ui_out_emit_type): New class.
16514 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16515 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16516 and ui_out_emit_tuple.
16517 (enumerate_locals): Likewise.
16518 (py_mi_print_variables, py_print_locals, py_print_args): Use
16520 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16522 * common/gdb_optional.h: New file.
16524 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16526 * MAINTAINERS (Write After Approval): Update my e-mail address.
16528 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16531 * breakpoint.c (_initialize_breakpoint): Update the help description
16532 of the 'commands' command to indicate that it takes a list argument.
16534 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16536 * interps.c (current_interp_set_logging): Remove "return".
16538 2017-02-09 Gary Benson <gbenson@redhat.com>
16540 * symtab.c (add_symtab_completions): Prevent NULL pointer
16543 2017-02-08 Pedro Alves <palves@redhat.com>
16545 * interps.c (interp::interp): Remove reference to quiet_p.
16546 (interp_set): Make static. Remove dead "Switching to" output
16548 (interp_quiet_p, interp_set_quiet): Delete.
16549 (interpreter_exec_cmd): Don't set the interpreter quiet.
16550 * interps.h (interp_quiet_p): Make static.
16551 (class interp) <quiet_p>: Remove field
16553 2017-02-08 Jerome Guitton <guitton@adacore.com>
16555 * cli/cli-decode.c (find_command_name_length): Make it extern.
16556 * cli/cli-decode.h (find_command_name_length): Declare.
16557 * cli/cli-script.c (command_name_equals, line_first_arg):
16559 (process_next_line): Use cli-decode to parse command names.
16560 (build_command_line): Make args a constant pointer.
16562 2017-02-08 Jerome Guitton <guitton@adacore.com>
16564 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16565 Remove case-insensitive search.
16567 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16569 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16570 at the end of the line. Avoids an ARI warning.
16572 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16574 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16575 rdseed instructions.
16576 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16578 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16581 Provide and use sparc32 and sparc64 target description XML files.
16582 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16583 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16584 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16585 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16586 * features/sparc/sparc32-solaris.xml: New file.
16587 * features/sparc/sparc64-solaris.xml: New file.
16588 * features/sparc/sparc32-solaris.c: Generated.
16589 * features/sparc/sparc64-solaris.c: Generated.
16590 * sparc-tdep.h: Account for differences in target descriptions.
16591 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16592 (sparc32_register_type): Use target provided registers.
16593 (validate_tdesc_registers): New function.
16594 (sparc32_gdbarch_init): Use tdesc_has_registers.
16595 Set pseudoregister functions.
16596 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16597 (sparc64_register_type): Use target provided registers.
16598 (sparc64_init_abi): Set pseudoregister functions.
16600 2017-02-03 Tom Tromey <tom@tromey.com>
16603 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16604 with a single member.
16606 2017-02-03 Pedro Alves <palves@redhat.com>
16608 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16609 (cli_interp_base::~cli_interp_base): New.
16610 (cli_interp): New struct.
16611 (as_cli_interp): Cast the interp itself to cli_interp.
16612 (cli_interpreter_pre_command_loop): Rename to ...
16613 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16615 (cli_interpreter_init): Rename to ...
16616 (cli_interp::init): ... this. Remove 'self' parameter. Use
16617 boolean. Make extern.
16618 (cli_interpreter_resume): Rename to ...
16619 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16621 (cli_interpreter_suspend): Rename to ...
16622 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16624 (cli_interpreter_exec): Rename to ...
16625 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16627 (cli_interpreter_supports_command_editing): Rename to ...
16628 (cli_interp_base::supports_command_editing): ... this. Remove
16629 'interp' parameter. Make extern.
16630 (cli_ui_out): Rename to ...
16631 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16633 (cli_set_logging): Rename to ...
16634 (cli_interp_base::set_logging): ... this. Remove 'interp'
16635 parameter. Make extern.
16636 (cli_interp_procs): Delete.
16637 (cli_interp_factory): Adjust to use "new".
16638 * cli/cli-interp.h: Include "interps.h".
16639 (struct cli_interp_base): New struct.
16640 * interps.c (struct interp): Delete. Fields moved to interps.h.
16641 (interp_new): Delete.
16642 (interp::interp, interp::~interp): New.
16643 (interp_set): Use bool, and return void. Assume the interpreter
16644 has suspend, init and resume methods, and that the all return
16646 (set_top_level_interpreter): interp_set returns void.
16647 (interp_ui_out): Adapt.
16648 (current_interp_set_logging): Adapt.
16649 (interp_data): Delete.
16650 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16651 (interp_exec): Adapt.
16652 (top_level_interpreter_data): Delete.
16653 * interps.h (interp_init_ftype, interp_resume_ftype)
16654 (interp_suspend_ftype, interp_exec_ftype)
16655 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16656 (class interp): New.
16657 (interp_new): Delete.
16658 (interp_set): Now returns void. Use bool.
16659 (interp_data, top_level_interpreter_data): Delete.
16660 * mi/mi-common.h: Include interps.h.
16661 (class mi_interp): Inherit from interp. Define a ctor. Declare
16662 init, resume, suspect, exec, interp_ui_out, set_logging and
16663 pre_command_loop methods.
16664 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16665 (mi_interpreter_init): Rename to ...
16666 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16667 bool, return void and make extern. Adjust.
16668 (mi_interpreter_resume): ... Rename to ...
16669 (mi_interp::resume): ... this. Remove the 'data' parameter,
16670 return void and make extern. Adjust.
16671 (mi_interpreter_suspend): ... Rename to ...
16672 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16673 return void and make extern. Adjust.
16674 (mi_interpreter_exec): ... Rename to ...
16675 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16677 (mi_interpreter_pre_command_loop): ... Rename to ...
16678 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16679 parameter and make extern.
16680 (mi_on_normal_stop_1): Adjust.
16681 (mi_ui_out): Rename to ...
16682 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16683 parameter and make extern. Adjust.
16684 (mi_set_logging): Rename to ...
16685 (mi_interp::set_logging): ... this. Remove the 'interp'
16686 parameter and make extern. Adjust.
16687 (mi_interp_procs): Delete.
16688 (mi_interp_factory): Adjust to use 'new'.
16689 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16690 (mi_print_exception, mi_execute_command, mi_load_progress):
16692 * tui/tui-interp.c (tui_interp): New class.
16693 (as_tui_interp): Return a tui_interp pointer.
16694 (tui_on_normal_stop, tui_on_signal_received)
16695 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16696 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16697 to use interp::interp_ui_out.
16698 (tui_init): Rename to ...
16699 (tui_interp::init): ... this. Remove the 'self' parameter, use
16700 bool, return void and make extern. Adjust.
16701 (tui_resume): Rename to ...
16702 (tui_interp::resume): ... this. Remove the 'data' parameter,
16703 return void and make extern. Adjust.
16704 (tui_suspend): Rename to ...
16705 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16706 return void and make extern. Adjust.
16707 (tui_ui_out): Rename to ...
16708 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16709 parameter, and make extern. Adjust.
16710 (tui_exec): Rename to ...
16711 (tui_interp::exec): ... this. Remove the 'data' parameter and
16713 (tui_interp_procs): Delete.
16714 (tui_interp_factory): Use "new".
16716 2017-02-02 Tom Tromey <tom@tromey.com>
16718 * rust-exp.y (ends_raw_string, space_then_number)
16719 (rust_identifier_start_p): Return bool.
16720 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16721 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16722 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16723 (rust_chartype_p): Return bool.
16724 (val_print_struct, rust_print_struct_def, rust_print_type):
16726 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16729 2017-02-02 Tom Tromey <tom@tromey.com>
16731 * rust-lang.c: Reindent.
16733 2017-02-02 Tom Tromey <tom@tromey.com>
16735 * rust-lang.h (rust_crate_for_block): Update.
16736 * rust-lang.c (rust_crate_for_block): Return std::string.
16737 (rust_get_disr_info): Use std:;string, not
16738 gdb::unique_xmalloc_ptr.
16739 * rust-exp.y (crate_name): Update.
16741 2017-02-02 Pedro Alves <palves@redhat.com>
16743 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16744 field out of gdb_disassembler_test and make it static.
16746 2017-02-02 Pedro Alves <palves@redhat.com>
16748 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16749 mi1_interp and mi_interp fields.
16751 2017-02-02 Pedro Alves <palves@redhat.com>
16753 * cli/cli-interp.c (struct saved_output_files, saved_output):
16754 Moved from cli/cli-logging.c.
16755 (cli_set_logging): New function.
16756 (cli_interp_procs): Install cli_set_logging.
16757 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16759 * cli/cli-logging.c (struct saved_output_files, saved_output):
16760 Moved to cli/cli-interp.c.
16761 (pop_output_files): Don't save outputs here.
16762 (make_logging_output): New function.
16763 (handle_redirections): Don't build tee nor save previous outputs
16765 * interps.c (current_interp_set_logging): Change prototype.
16766 Assume there's always a set_logging_proc method installed.
16767 * interps.h (interp_set_logging_ftype): Change prototype.
16768 (current_interp_set_logging): Change prototype and adjust comment.
16769 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16770 use make_logging_output.
16771 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16772 2017-02-02 Pedro Alves <palves@redhat.com>
16774 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16776 (set_logging_overwrite): ... here.
16777 (logging_no_redirect_file): Delete.
16778 (set_logging_redirect): Don't handle redirection on the fly.
16779 Instead warn that "logging off" / "logging on" is necessary.
16780 (pop_output_files): Delete references to logging_no_redirect_file.
16781 (show_logging_command): Always speak in terms of what will happen
16782 once logging is reenabled.
16784 2017-02-02 Pedro Alves <palves@redhat.com>
16786 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16788 2017-02-02 Pedro Alves <palves@redhat.com>
16790 * disasm.c (gdb_pretty_print_insn): Rename to ...
16791 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16792 Remove gdbarch parameter. Adapt to clear the object's buffers
16793 instead of allocating new buffers, and to print using the object's
16794 gdb_disassembler instead of calling gdb_print_insn.
16795 (dump_insns): Use gdb_pretty_print_disassembler.
16796 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16797 (gdb_pretty_print_disassembler): New class.
16798 * record-btrace.c (btrace_insn_history): Use
16799 gdb_pretty_print_disassembler.
16801 2017-02-02 Pedro Alves <palves@redhat.com>
16803 * ada-lang.c (type_as_string): Use string_file.
16804 * ada-valprint.c (ada_print_floating): Use string_file.
16805 * ada-varobj.c (ada_varobj_scalar_image)
16806 (ada_varobj_get_value_image): Use string_file.
16807 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16808 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16809 * breakpoint.c (update_inserted_breakpoint_locations)
16810 (insert_breakpoint_locations, reattach_breakpoints)
16811 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16812 (print_it_watchpoint): Use string_file.
16813 (save_breakpoints): Use stdio_file.
16814 * c-exp.y (oper): Use string_file.
16815 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16817 (pop_output_files): Use delete.
16818 (handle_redirections): Use stdio_file and tee_file.
16819 * cli/cli-setshow.c (do_show_command): Use string_file.
16820 * compile/compile-c-support.c (c_compute_program): Use
16822 * compile/compile-c-symbols.c (generate_vla_size): Take a
16823 'string_file &' instead of a 'ui_file *'.
16824 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16825 of a 'ui_file *'. Use string_file.
16826 (generate_c_for_variable_locations): Take a 'string_file &'
16827 instead of a 'ui_file *'.
16828 * compile/compile-internal.h (generate_c_for_for_one_variable):
16829 Take a 'string_file &' instead of a 'ui_file *'.
16830 * compile/compile-loc2c.c (push, pushf, unary, binary)
16831 (print_label, pushf_register_address, pushf_register)
16832 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16833 'ui_file *'. Adjust.
16834 * compile/compile.c (compile_to_object): Use string_file.
16835 * compile/compile.h (compile_dwarf_expr_to_c)
16836 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16838 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16839 (replace_typedefs_qualified_name): Use string_file and
16841 * disasm.c (gdb_pretty_print_insn): Use string_file.
16842 (gdb_disassembly): Adjust reference the null_stream global.
16843 (do_ui_file_delete): Delete.
16844 (gdb_insn_length): Use null_stream.
16845 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16846 * dwarf2loc.c (dwarf2_compile_property_to_c)
16847 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16848 'string_file &' instead of a 'ui_file *'.
16849 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16850 * dwarf2read.c (do_ui_file_peek_last): Delete.
16851 (dwarf2_compute_name): Use string_file.
16852 * event-top.c (gdb_setup_readline): Use stdio_file.
16853 * gdbarch.sh (verify_gdbarch): Use string_file.
16854 * gdbtypes.c (safe_parse_type): Use null_stream.
16855 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16857 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16858 'string_file *' instead of a 'ui_file *'.
16859 (gdbscm_arch_disassemble): Use string_file.
16860 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16861 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16862 inherits from ui_file.
16863 (ioscm_file_port_delete, ioscm_file_port_rewind)
16864 (ioscm_file_port_put): Delete.
16865 (ioscm_file_port_write): Rename to ...
16866 (ioscm_file_port::write): ... this. Remove file_port_magic
16868 (ioscm_file_port_new): Delete.
16869 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16871 * guile/scm-type.c (tyscm_type_name): Use string_file.
16872 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16874 * infcmd.c (print_return_value_1): Use string_file.
16875 * infrun.c (print_target_wait_results): Use string_file.
16876 * language.c (add_language): Use string_file.
16877 * location.c (explicit_to_string_internal): Use string_file.
16878 * main.c (captured_main_1): Use null_file.
16879 * maint.c (maintenance_print_architecture): Use stdio_file.
16880 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16881 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16882 event_channel>: Change type to mi_console_file pointer.
16883 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16884 (mi_console_file_delete): Delete.
16885 (struct mi_console_file): Delete.
16886 (mi_console_file_magic): Delete.
16887 (mi_console_file_new): Delete.
16888 (mi_console_file::mi_console_file): New.
16889 (mi_console_file_delete): Delete.
16890 (mi_console_file_fputs): Delete.
16891 (mi_console_file::write): New.
16892 (mi_console_raw_packet): Delete.
16893 (mi_console_file::flush): New.
16894 (mi_console_file_flush): Delete.
16895 (mi_console_set_raw): Rename to ...
16896 (mi_console_file::set_raw): ... this.
16897 * mi/mi-console.h (class mi_console_file): New class.
16898 (mi_console_file_new, mi_console_set_raw): Delete.
16899 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16900 (mi_set_logging): Use delete and tee_file. Adjust.
16901 * mi/mi-main.c (output_register): Use string_file.
16902 (mi_cmd_data_evaluate_expression): Use string_file.
16903 (mi_cmd_data_read_memory): Use string_file.
16904 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16905 * mi/mi-out.c (mi_ui_out::main_stream): New.
16906 (mi_ui_out::rewind): Use main_stream and
16908 (mi_ui_out::put): Use main_stream and string_file.
16909 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16910 Allocate a 'string_file' instead.
16911 (mi_out_new): Don't allocate a mem_fileopen stream here.
16912 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16913 (mi_ui_out::main_stream): Declare method.
16914 * printcmd.c (eval_command): Use string_file.
16915 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16916 * python/py-arch.c (archpy_disassemble): Use string_file.
16917 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16918 * python/py-frame.c (frapy_str): Use string_file.
16919 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16921 * python/py-type.c (typy_str): Use string_file.
16922 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16923 * python/py-value.c (valpy_str): Use string_file.
16924 * record-btrace.c (btrace_insn_history): Use string_file.
16925 * regcache.c (regcache_print): Use stdio_file.
16926 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16927 * remote.c (escape_buffer): Use string_file.
16928 * rust-lang.c (rust_get_disr_info): Use string_file.
16929 * serial.c (serial_open_ops_1): Use stdio_file.
16930 (do_serial_close): Use delete.
16931 * stack.c (print_frame_arg): Use string_file.
16932 (print_frame_args): Remove local mem_fileopen stream, not used.
16933 (print_frame): Use string_file.
16934 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16935 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16936 Take a 'string_file *' instead of a 'ui_file *'.
16937 * top.c (new_ui): Use stdio_file and stderr_file.
16938 (free_ui): Use delete.
16939 (execute_command_to_string): Use string_file.
16940 (quit_confirm): Use string_file.
16941 * tracepoint.c (collection_list::append_exp): Use string_file.
16942 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16943 * tui/tui-file.c: Don't include "ui-file.h".
16944 (enum streamtype, struct tui_stream): Delete.
16945 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16946 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16947 (tui_file::tui_file): New method.
16948 (tui_file_fputs): Delete.
16949 (tui_file_get_strbuf): Delete.
16950 (tui_file::puts): New method.
16951 (tui_file_adjust_strbuf): Delete.
16952 (tui_file_flush): Delete.
16953 (tui_file::flush): New method.
16954 * tui/tui-file.h: Tweak intro comment.
16956 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16957 (tui_file_adjust_strbuf): Delete declarations.
16958 (class tui_file): New class.
16959 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16960 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16961 (tui_register_format): Use string_stream.
16962 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16963 (tui_get_function_from_frame): Use string_file.
16964 * typeprint.c (type_to_string): Use string_file.
16965 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16966 (null_stream): New global.
16967 (ui_file_delete): Delete.
16968 (ui_file::ui_file): New.
16969 (null_file_isatty): Delete.
16970 (ui_file::~ui_file): New.
16971 (null_file_rewind): Delete.
16972 (ui_file::printf): New.
16973 (null_file_put): Delete.
16974 (null_file_flush): Delete.
16975 (ui_file::putstr): New.
16976 (null_file_write): Delete.
16977 (ui_file::putstrn): New.
16978 (null_file_read): Delete.
16979 (ui_file::putc): New.
16980 (null_file_fputs): Delete.
16981 (null_file_write_async_safe): Delete.
16982 (ui_file::vprintf): New.
16983 (null_file_delete): Delete.
16984 (null_file::write): New.
16985 (null_file_fseek): Delete.
16986 (null_file::puts): New.
16987 (ui_file_data): Delete.
16988 (null_file::write_async_safe): New.
16989 (gdb_flush, ui_file_isatty): Adjust.
16990 (ui_file_put, ui_file_rewind): Delete.
16991 (ui_file_write): Adjust.
16992 (ui_file_write_for_put): Delete.
16993 (ui_file_write_async_safe, ui_file_read): Adjust.
16994 (ui_file_fseek): Delete.
16995 (fputs_unfiltered): Adjust.
16996 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16997 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16998 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16999 (set_ui_file_data): Delete.
17000 (string_file::~string_file, string_file::write)
17001 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
17002 (do_ui_file_as_string, ui_file_as_string): Delete.
17003 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
17004 (struct mem_file): Delete.
17005 (mem_file_new): Delete.
17006 (stdio_file::stdio_file): New.
17007 (mem_file_delete): Delete.
17008 (stdio_file::stdio_file): New.
17009 (mem_fileopen): Delete.
17010 (stdio_file::~stdio_file): New.
17011 (mem_file_rewind): Delete.
17012 (stdio_file::set_stream): New.
17013 (mem_file_put): Delete.
17014 (stdio_file::open): New.
17015 (mem_file_write): Delete.
17016 (stdio_file_magic, struct stdio_file): Delete.
17017 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
17018 (stdio_file::flush): New.
17019 (stdio_file_read): Rename to ...
17020 (stdio_file::read): ... this. Adjust.
17021 (stdio_file_write): Rename to ...
17022 (stdio_file::write): ... this. Adjust.
17023 (stdio_file_write_async_safe): Rename to ...
17024 (stdio_file::write_async_safe) ... this. Adjust.
17025 (stdio_file_fputs): Rename to ...
17026 (stdio_file::puts) ... this. Adjust.
17027 (stdio_file_isatty): Delete.
17028 (stdio_file_fseek): Delete.
17029 (stdio_file::isatty): New.
17030 (stderr_file_write): Rename to ...
17031 (stderr_file::write) ... this. Adjust.
17032 (stderr_file_fputs): Rename to ...
17033 (stderr_file::puts) ... this. Adjust.
17034 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
17035 (stderr_file::stderr_file): New.
17036 (tee_file_magic): Delete.
17037 (struct tee_file): Delete.
17038 (tee_file::tee_file): New.
17039 (tee_file_new): Delete.
17040 (tee_file::~tee_file): New.
17041 (tee_file_delete): Delete.
17042 (tee_file_flush): Rename to ...
17043 (tee_file::flush): ... this. Adjust.
17044 (tee_file_write): Rename to ...
17045 (tee_file::write): ... this. Adjust.
17046 (tee_file::write_async_safe): New.
17047 (tee_file_fputs): Rename to ...
17048 (tee_file::puts): ... this. Adjust.
17049 (tee_file_isatty): Rename to ...
17050 (tee_file::isatty): ... this. Adjust.
17051 * ui-file.h (struct obstack, struct ui_file): Don't
17053 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
17054 (ui_file_write_ftype)
17055 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
17056 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
17057 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
17058 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
17059 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
17060 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
17061 (set_ui_file_fseek): Delete.
17062 (ui_file_data, ui_file_delete, ui_file_rewind)
17063 (struct ui_file): New.
17065 (class null_file): New.
17066 (null_stream): Declare.
17067 (ui_file_write_for_put, ui_file_put): Delete.
17068 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
17070 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
17071 (gdb_fopen, tee_file_new): Delete.
17072 (struct string_file): New.
17073 (struct stdio_file): New.
17074 (stdio_file_up): New.
17075 (struct stderr_file): New.
17076 (class tee_file): New.
17077 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
17078 of a 'ui_file *'. Adjust.
17079 * ui-out.h (class ui_out) <field_stream>: Likewise.
17080 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
17081 (null_stream): Delete.
17082 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
17084 * utils.h (struct ui_file): Delete forward declaration..
17085 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
17086 (error_stream): Take a 'string_file &' instead of a
17088 * varobj.c (varobj_value_get_print_value): Use string_file.
17089 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
17090 * gdbarch.c: Regenerate.
17092 2017-02-02 Pedro Alves <palves@redhat.com>
17094 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
17095 (gdb_pretty_print_insn): ... this. Now a free function. Add back
17096 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
17097 Adjust to call gdb_print_insn instead of
17098 gdb_disassembler::print_insn.
17099 (dump_insns, do_mixed_source_and_assembly_deprecated)
17100 (do_mixed_source_and_assembly, do_assembly_only): Add back a
17101 'gdbarch' parameter. Remove gdb_disassembler parameter.
17102 (gdb_disassembly): Don't allocate a gdb_disassembler here.
17103 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
17105 (gdb_pretty_print_insn): Re-add declaration.
17106 * record-btrace.c (btrace_insn_history): Don't allocate a
17107 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
17109 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
17111 * disasm.h (gdb_disassembly): Remove file_string parameter.
17112 * disasm.c (gdb_disassembly): Likewise.
17113 * cli/cli-cmds.c (print_disassembly): Adapt.
17114 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
17115 * stack.c (do_gdb_disassembly): Likewise.
17117 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
17119 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
17120 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
17121 targets. And if the implicit value is longer than needed, extract
17122 the first bytes instead of the "least significant" ones.
17124 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17126 * btrace.c (btrace_enable): Do not call btrace_add_pc for
17127 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
17128 (btrace_fetch): Assert can_access_registers_ptid.
17129 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
17130 validate_registers_access.
17132 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
17134 * gdbthread.h (can_access_registers_ptid): New.
17135 * thread.c (can_access_registers_ptid): New.
17137 2017-02-01 Pedro Alves <palves@redhat.com>
17139 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
17141 2017-01-31 Pedro Alves <palves@redhat.com>
17143 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
17146 2017-01-31 Pedro Alves <palves@redhat.com>
17148 * stack.c (print_frame_args): Remove local mem_fileopen stream,
17151 2017-01-31 Pedro Alves <palves@redhat.com>
17153 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
17155 2017-01-31 Pedro Alves <palves@redhat.com>
17157 * common/scoped_restore.h
17158 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
17159 change the value's parameter type to T2.
17160 (make_scoped_restore): Likewise.
17162 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17163 Richard Henderson <rth@redhat.com>
17165 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
17166 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
17167 GS_BASE for older kernels.
17168 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
17169 GS_BASE for older kernels.
17170 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
17171 and GS_BASE to the offset table.
17172 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
17173 system register group.
17174 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
17176 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
17178 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
17179 AMD64_GSBASE_REGNUM.
17180 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
17181 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
17182 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
17183 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
17184 i386/64bit-segments.xml in those rules.
17185 * features/i386/64bit-segments.xml: New file.
17186 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
17187 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
17188 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
17189 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
17190 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
17191 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
17192 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
17193 * features/i386/amd64-avx-linux.c: Regenerated.
17194 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
17195 * features/i386/amd64-avx-mpx.c: Regenerated.
17196 * features/i386/amd64-avx512-linux.c: Regenerated.
17197 * features/i386/amd64-linux.c: Regenerated.
17198 * features/i386/amd64-mpx-linux.c: Regenerated.
17199 * features/i386/i386-avx-mpx-linux.c: Regenerated.
17200 * features/i386/i386-avx-mpx.c: Regenerated.
17201 * features/i386/x32-avx-linux.c: Regenerated.
17202 * features/i386/x32-avx512-linux.c: Regenerated.
17203 * regformats/i386/amd64-avx-linux.dat: Regenerated.
17204 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
17205 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
17206 * regformats/i386/amd64-linux.dat: Regenerated.
17207 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
17208 * regformats/i386/x32-avx-linux.dat: Regenerated.
17209 * regformats/i386/x32-avx512-linux.dat: Regenerated.
17210 * regformats/i386/x32-linux.dat: Regenerated.
17212 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17214 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
17215 Set to AMD64_NUM_REGS.
17217 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
17219 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
17220 that checks validity of a register number.
17222 2017-01-27 Kees Cook <keescook@google.com>
17224 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
17225 fetch_fpregs if target has fpa registers.
17226 (arm_linux_store_inferior_registers): Call store_fpregs if target
17229 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
17231 * cris-tdep.c (cris_gdbarch_init): Remove check for
17232 info.byte_order and force it to BFD_ENDIAN_LITTLE.
17234 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
17236 * corelow.c (get_core_register_section): Check for regset
17237 existence before checking for REGSET_VARIABLE_SIZE.
17239 2017-01-26 Yao Qi <yao.qi@linaro.org>
17240 Pedro Alves <palves@redhat.com>
17243 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17244 call memory_error, save memaddr instead.
17245 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17246 negative, cal memory_error.
17247 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17249 2017-01-26 Yao Qi <yao.qi@linaro.org>
17251 * disasm-selftests.c (memory_error_test): New function.
17252 (_initialize_disasm_selftests): Register memory_error_test.
17254 2017-01-26 Yao Qi <yao.qi@linaro.org>
17256 * Makefile.in (SFILES): Add disasm-selftests.c and
17258 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17259 * disasm-selftests.c: New file.
17260 * selftest-arch.c: New file.
17261 * selftest-arch.h: New file.
17263 2017-01-26 Yao Qi <yao.qi@linaro.org>
17265 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17266 to bfd_arch_mep. Don't return 0 if section is not
17267 found. Call print_insn_mep.
17269 2017-01-26 Pedro Alves <palves@redhat.com>
17270 Yao Qi <yao.qi@linaro.org>
17272 * arm-tdep.c: Include "disasm.h".
17273 (gdb_print_insn_arm): Update code to get gdbarch.
17274 * disasm.c (dis_asm_read_memory): Change it to
17275 gdb_disassembler::dis_asm_read_memory.
17276 (dis_asm_memory_error): Likewise.
17277 (dis_asm_print_address): Likewise.
17278 (gdb_pretty_print_insn): Change it to
17279 gdb_disassembler::pretty_print_insn.
17280 (dump_insns): Add one argument gdb_disassemlber. All
17282 (do_mixed_source_and_assembly_deprecated): Likewise.
17283 (do_mixed_source_and_assembly): Likewise.
17284 (do_assembly_only): Likewise.
17285 (gdb_disassembler::gdb_disassembler): New.
17286 (gdb_disassembler::print_insn): New.
17287 * disasm.h (class gdb_disassembler): New.
17288 (gdb_pretty_print_insn): Remove declaration.
17289 (gdb_disassemble_info): Likewise.
17290 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17291 (gdbscm_disasm_read_memory_worker): Update.
17292 (gdbscm_disasm_read_memory): Update.
17293 (gdbscm_disasm_memory_error): Remove.
17294 (gdbscm_disasm_print_address): Remove.
17295 (gdbscm_disassembler::gdbscm_disassembler): New.
17296 (gdbscm_print_insn_from_port): Update.
17297 * mips-tdep.c: Include disasm.h.
17298 (gdb_print_insn_mips): Update code to get gdbarch.
17299 * record-btrace.c (btrace_insn_history): Update.
17300 * spu-tdep.c: Include disasm.h.
17301 (struct spu_dis_asm_data): Remove.
17302 (struct spu_dis_asm_info): New.
17303 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17305 (gdb_print_insn_spu): Cast disassemble_info to
17308 2017-01-26 Yao Qi <yao.qi@linaro.org>
17310 * disasm.c (do_ui_file_delete): Delete.
17311 (gdb_insn_length): Move code creating stream to ...
17312 * utils.c (null_stream): ... here. New function.
17313 * utils.h (null_stream): Declare.
17315 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17317 * python/py-inferior.c (find_thread_object): Return directly
17318 from the loop. Remove "found" variable.
17320 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17322 GDB 7.12.1 released.
17324 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17326 * python/py-function.c (fnpy_call): Reorder declarations to have
17327 the gdbpy_enter object declared first.
17328 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17330 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17333 * python/python-internal.h (PyMem_RawMalloc): Define for
17335 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17336 PyMem_RawMalloc instead of PyMem_Malloc.
17338 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17339 Luis Machado <lgustavo@codesourcery.com>
17341 * NEWS (New commands): Mention flash-erase.
17342 (New MI commands): Mention target-flash-erase.
17343 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17345 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17346 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17347 * target.c (flash_erase_command): New function.
17348 (initialize_targets): Add new flash-erase command.
17349 * target.h (flash_erase_command): New declaration.
17351 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17353 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17354 HAVE_SYS_PROCFS_H is defined.
17356 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17358 * remote.c (struct cached_reg): Change data into a pointer.
17359 * (stop_reply_dtr): Free data pointers before deleting vector.
17360 (process_stop_reply): Likewise.
17361 (remote_parse_stop_reply): Allocate space for data
17363 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17365 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17367 (amd64_pseudo_register_read_value): Likewise.
17368 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17369 (store_register_using_P): Likewise.
17370 * regcache.c (regcache_xfer_part): Likewise.
17372 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17374 Split real and pseudo registers.
17375 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17376 (sparc32_pseudo_regnum): New enum.
17377 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17378 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17379 (SPARC32_CP0_REGISTERS): New macro.
17380 (sparc32_pseudo_register_name): New function.
17381 (sparc32_register_name): Use sparc32_pseudo_register_name.
17382 (sparc32_pseudo_register_type): New function.
17383 (sparc32_register_type): Use sparc32_pseudo_register_type.
17384 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17385 pseudo register numbers.
17386 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17387 (SPARC64_CP0_REGISTERS): New macro.
17388 (sparc64_pseudo_register_name): New function.
17389 (sparc64_register_name): Use sparc64_pseudo_register_name.
17390 (sparc64_pseudo_register_type): New function.
17391 (sparc64_register_type): Use sparc64_pseudo_register_type.
17392 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17393 pseudo register numbers.
17394 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17395 sparc64_store_arguments): Handle pseudo register numbers.
17397 2017-01-13 Yao Qi <yao.qi@linaro.org>
17399 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17400 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17402 (getpkt_or_notif_sane_1): Likewise.
17404 2017-01-13 Yao Qi <yao.qi@linaro.org>
17406 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17407 of CC. Pass "-x c++-header" instead of "-x c".
17409 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17411 * remote.c (remote_can_async_p): Update comment.
17413 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17415 * linux-nat.c (linux_nat_can_async_p): Update comment.
17417 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17419 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17421 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17423 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17425 2017-01-10 Tom Tromey <tom@tromey.com>
17427 * python/py-type.c (typy_legacy_template_argument): Update.
17428 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17429 ~demangle_parse_info): Declare new members.
17430 (cp_demangled_name_to_comp): Return unique_ptr.
17431 (cp_demangled_name_parse_free)
17432 (make_cleanup_cp_demangled_name_parse_free)
17433 (cp_new_demangle_parse_info): Remove.
17434 * cp-support.c (do_demangled_name_parse_free_cleanup)
17435 (make_cleanup_cp_demangled_name_parse_free): Remove.
17436 (inspect_type, cp_canonicalize_string_full)
17437 (cp_canonicalize_string): Update.
17438 (mangled_name_to_comp): Change return type.
17439 (cp_class_name_from_physname, method_name_from_physname)
17440 (cp_func_name, cp_remove_params): Update.
17441 * cp-name-parser.y (demangle_parse_info): New constructor, from
17442 cp_new_demangle_parse_info.
17443 (~demangle_parse_info): New destructor, from
17444 cp_demangled_name_parse_free.
17445 (cp_merge_demangle_parse_infos): Update.
17446 (cp_demangled_name_to_comp): Change return type.
17448 2017-01-10 Tom Tromey <tom@tromey.com>
17450 * top.c (prevent_dont_repeat): Change return type.
17451 * python/python.c (execute_gdb_command): Use std::string.
17453 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17454 * command.h (prevent_dont_repeat): Change return type.
17455 * breakpoint.c (bpstat_do_actions_1): Update.
17457 2017-01-10 Tom Tromey <tom@tromey.com>
17459 * value.h (scoped_value_mark::~scoped_value_mark): Call
17461 (scoped_value_mark::free_to_mark): New method.
17462 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17465 2017-01-10 Tom Tromey <tom@tromey.com>
17467 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17468 (valpy_reference_value, valpy_const_value, valpy_get_address)
17469 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17470 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17471 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17472 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17474 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17475 * value.h (scoped_value_mark): New class.
17477 2017-01-10 Tom Tromey <tom@tromey.com>
17479 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17480 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17481 * psymtab.c (discard_psymtabs_upto): Remove.
17482 (make_cleanup_discard_psymtabs): Remove.
17483 (struct psymtab_state): Remove.
17485 2017-01-10 Tom Tromey <tom@tromey.com>
17487 * record-full.c (record_full_save_cleanups): Remove.
17488 (record_full_save): Use gdb::unlinker.
17489 * gcore.c (do_bfd_delete_cleanup): Remove.
17490 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17492 * dwarf2read.c (unlink_if_set): Remove.
17493 (write_psymtabs_to_index): Use gdb::unlinker.
17494 * common/gdb_unlinker.h: New file.
17496 2017-01-10 Tom Tromey <tom@tromey.com>
17498 * windows-tdep.c (windows_xfer_shared_library): Update.
17499 * windows-nat.c (windows_make_so): Update.
17500 * utils.h (make_cleanup_bfd_unref): Remove.
17501 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17502 * symfile.h (symfile_bfd_open)
17503 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17504 * symfile.c (read_symbols, symbol_file_add)
17505 (separate_debug_file_exists): Update.
17506 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17507 (generic_load, reread_symbols): Update.
17508 * symfile-mem.c (symbol_file_add_from_memory): Update.
17509 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17510 (spu_symbol_file_add_from_memory): Update.
17511 * solist.h (struct target_so_ops) <bfd_open>: Return
17513 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17514 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17516 (solib_map_sections, reload_shared_libraries_1): Update.
17517 * solib-svr4.c (enable_break): Update.
17518 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17519 * solib-frv.c (enable_break2): Update.
17520 * solib-dsbt.c (enable_break): Update.
17521 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17523 (darwin_solib_get_all_image_info_addr_at_init): Update.
17524 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17525 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17526 * record-full.c (record_full_save): Update.
17527 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17528 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17529 * minidebug.c (find_separate_debug_file_in_section): Return
17531 * machoread.c (macho_add_oso_symfile): Change abfd to
17533 (macho_symfile_read_all_oso): Update.
17534 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17535 (macho_symfile_read): Update.
17536 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17537 (jit_bfd_try_read_symtab): Update.
17538 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17539 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17540 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17542 (gdb_bfd_ref_policy): New struct.
17543 (gdb_bfd_ref_ptr): New typedef.
17544 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17545 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17546 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17548 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17549 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17550 (gcore_command): Update.
17551 * exec.c (exec_file_attach): Update.
17552 * elfread.c (elf_symfile_read): Update.
17553 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17554 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17555 (open_and_init_dwo_file): Update.
17556 (open_dwp_file): Return gdb_bfd_ref_ptr.
17557 (open_and_init_dwp_file): Update.
17558 * corelow.c (core_open): Update.
17559 * compile/compile-object-load.c (compile_object_load): Update.
17560 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17561 * coffread.c (coff_symfile_read): Update.
17562 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17563 gdb_bfd_ref_ptr. Rename.
17564 (dump_bfd_file, restore_command): Update.
17565 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17566 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17567 (find_separate_debug_file_by_buildid): Update.
17569 2017-01-10 Tom Tromey <tom@tromey.com>
17571 * common/gdb_ref_ptr.h: New file.
17572 * python/py-ref.h (struct gdbpy_ref_policy): New.
17573 (gdbpy_ref): Now a typedef.
17575 2017-01-10 Tom Tromey <tom@tromey.com>
17577 * utils.h (make_cleanup_htab_delete): Don't declare.
17578 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17580 * linespec.c (decode_compound_collector): Add constructor,
17582 (lookup_prefix_sym): Remove cleanup.
17583 (symtab_collector): Add constructor, destructor.
17584 (collect_symtabs_from_filename): Remove cleanup.
17585 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17586 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17588 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17589 * dwarf2read.c (dw2_expand_symtabs_matching)
17590 (dw2_map_symbol_filenames, dwarf_decode_macros)
17591 (write_psymtabs_to_index): Use htab_up.
17592 * dwarf2loc.c (func_verify_no_selftailcall)
17593 (call_site_find_chain_1, func_verify_no_selftailcall)
17594 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17595 std::vector, gdb::unique_xmalloc_ptr.
17596 (call_sitep): Remove typedef.
17597 (dwarf2_locexpr_baton_eval): Remove unused variable.
17599 2017-01-10 Tom Tromey <tom@tromey.com>
17601 * python/python-internal.h (make_cleanup_py_decref)
17602 (make_cleanup_py_xdecref): Don't declare.
17603 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17604 (py_xdecref, make_cleanup_py_xdecref): Remove.
17606 2017-01-10 Tom Tromey <tom@tromey.com>
17608 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17609 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17611 2017-01-10 Tom Tromey <tom@tromey.com>
17613 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17615 2017-01-10 Tom Tromey <tom@tromey.com>
17617 * python/py-utils.c (unicode_to_encoded_string)
17618 (python_string_to_target_string)
17619 (python_string_to_target_python_string)
17620 (python_string_to_host_string, gdbpy_obj_to_string)
17621 (get_addr_from_python): Use gdbpy_ref.
17623 2017-01-10 Tom Tromey <tom@tromey.com>
17625 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17628 2017-01-10 Tom Tromey <tom@tromey.com>
17630 * python/python.c (eval_python_command, gdbpy_decode_line)
17631 (gdbpy_run_events, gdbpy_start_type_printers)
17632 (gdbpy_apply_type_printers): Use gdbpy_ref.
17634 2017-01-10 Tom Tromey <tom@tromey.com>
17636 * python/py-param.c (get_doc_string, compute_enum_values): Use
17639 2017-01-10 Tom Tromey <tom@tromey.com>
17641 * python/py-inferior.c (find_thread_object, build_inferior_list):
17644 2017-01-10 Tom Tromey <tom@tromey.com>
17646 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17648 2017-01-10 Tom Tromey <tom@tromey.com>
17650 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17653 2017-01-10 Tom Tromey <tom@tromey.com>
17655 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17657 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17660 2017-01-10 Tom Tromey <tom@tromey.com>
17662 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17665 2017-01-10 Tom Tromey <tom@tromey.com>
17667 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17668 decref results of PyArg_ParseTupleAndKeywords.
17670 2017-01-10 Tom Tromey <tom@tromey.com>
17672 * python/python.c (python_run_simple_file): Use
17673 unique_xmalloc_ptr, gdbpy_ref.
17675 2017-01-10 Tom Tromey <tom@tromey.com>
17677 * python/py-prettyprint.c (print_stack_unless_memory_error)
17678 (print_string_repr, print_children): Use gdbpy_ref.
17679 (dummy_python_frame): New class.
17680 (dummy_python_frame::dummy_python_frame): Rename from
17681 push_dummy_python_frame.
17682 (py_restore_tstate): Remove.
17684 2017-01-10 Tom Tromey <tom@tromey.com>
17686 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17688 2017-01-10 Tom Tromey <tom@tromey.com>
17690 * python/python.c (ensure_python_env, restore_python_env):
17692 * python/python-internal.h (ensure_python_env): Don't declare.
17693 * varobj.h (varobj_ensure_python_env): Don't declare.
17694 * varobj.c (varobj_ensure_python_env): Remove.
17696 2017-01-10 Tom Tromey <tom@tromey.com>
17698 * varobj.c (varobj_value_get_print_value): Use
17699 gdbpy_enter_varobj.
17701 2017-01-10 Tom Tromey <tom@tromey.com>
17703 * python/py-prettyprint.c (print_string_repr, print_children):
17705 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17707 * varobj.c (varobj_value_get_print_value): Update.
17708 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17710 2017-01-10 Tom Tromey <tom@tromey.com>
17712 * varobj.c (varobj_get_display_hint)
17713 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17714 (varobj_set_visualizer, free_variable): Use
17715 gdbpy_enter_varobj.
17717 2017-01-10 Tom Tromey <tom@tromey.com>
17719 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17720 (do_finish_initialization): New function. Use gdbpy_ref.
17721 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17722 do_finish_initialization.
17724 2017-01-10 Tom Tromey <tom@tromey.com>
17726 * python/py-param.c (get_set_value, get_show_value): Use
17727 gdbpy_enter, gdbpy_ref.
17729 2017-01-10 Tom Tromey <tom@tromey.com>
17731 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17733 2017-01-10 Tom Tromey <tom@tromey.com>
17735 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17737 2017-01-10 Tom Tromey <tom@tromey.com>
17739 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17740 Use gdbpy_enter_varobj.
17742 2017-01-10 Tom Tromey <tom@tromey.com>
17744 * varobj.c (gdbpy_enter_varobj): New constructor.
17745 * python/python-internal.h (gdbpy_enter_varobj): New class.
17746 * python/py-varobj.c (py_varobj_get_iterator): Use
17747 gdbpy_enter_varobj.
17749 2017-01-10 Tom Tromey <tom@tromey.com>
17751 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17752 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17753 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17754 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17755 unique_xmalloc_ptr.
17756 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17758 2017-01-10 Tom Tromey <tom@tromey.com>
17760 * python/py-xmethods.c (invoke_match_method): Use
17763 2017-01-10 Tom Tromey <tom@tromey.com>
17765 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17766 gdbpy_enter, gdbpy_ref.
17768 2017-01-10 Tom Tromey <tom@tromey.com>
17770 * python/python.c (python_interactive_command): Use gdbpy_enter.
17772 2017-01-10 Tom Tromey <tom@tromey.com>
17774 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17777 2017-01-10 Tom Tromey <tom@tromey.com>
17779 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17780 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17782 2017-01-10 Tom Tromey <tom@tromey.com>
17784 * utils.h (htab_deleter): New struct.
17785 (htab_up): New typedef.
17786 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17787 gdbpy_enter, gdbpy_ref, htab_up.
17789 2017-01-10 Tom Tromey <tom@tromey.com>
17791 * python/py-unwind.c (pending_frame_invalidate): Remove.
17792 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17794 2017-01-10 Tom Tromey <tom@tromey.com>
17796 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17797 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17799 2017-01-10 Tom Tromey <tom@tromey.com>
17801 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17803 2017-01-10 Tom Tromey <tom@tromey.com>
17805 * python/python.c (gdbpy_eval_from_control_command)
17806 (gdbpy_source_script, gdbpy_run_events)
17807 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17808 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17811 2017-01-10 Tom Tromey <tom@tromey.com>
17813 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17815 2017-01-10 Tom Tromey <tom@tromey.com>
17817 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17819 2017-01-10 Tom Tromey <tom@tromey.com>
17821 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17822 (python_on_inferior_call_pre, python_on_inferior_call_post)
17823 (python_on_memory_change, python_on_register_change)
17824 (python_inferior_exit, python_new_objfile, add_thread_object)
17825 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17827 2017-01-10 Tom Tromey <tom@tromey.com>
17829 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17830 (bpfinishpy_handle_exit): Use gdbpy_enter.
17832 2017-01-10 Tom Tromey <tom@tromey.com>
17834 * python/py-cmd.c (cmdpy_destroyer)
17835 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17838 2017-01-10 Tom Tromey <tom@tromey.com>
17840 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17842 (gdbpy_breakpoint_has_cond): Likewise.
17844 2017-01-10 Tom Tromey <tom@tromey.com>
17846 * python/python.c (gdbpy_enter): New constructor.
17847 (~gdbpy_enter): New destructor.
17848 (restore_python_env, ensure_python_env): Rewrite.
17849 * python/python-internal.h (gdbpy_enter): New class.
17851 2017-01-10 Tom Tromey <tom@tromey.com>
17853 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17855 2017-01-10 Tom Tromey <tom@tromey.com>
17857 * python/py-value.c (value_has_field, get_field_flag)
17858 (get_field_type, valpy_getitem, convert_value_from_python): Use
17861 2017-01-10 Tom Tromey <tom@tromey.com>
17863 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17866 2017-01-10 Tom Tromey <tom@tromey.com>
17868 * python/py-prettyprint.c (search_pp_list)
17869 (find_pretty_printer_from_objfiles)
17870 (find_pretty_printer_from_progspace)
17871 (find_pretty_printer_from_gdb, find_pretty_printer)
17872 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17875 2017-01-10 Tom Tromey <tom@tromey.com>
17877 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17879 2017-01-10 Tom Tromey <tom@tromey.com>
17881 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17882 (ltpy_get_all_source_lines): Use gdbpy_ref.
17884 2017-01-10 Tom Tromey <tom@tromey.com>
17886 * python/py-framefilter.c (extract_sym, extract_value)
17887 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17890 2017-01-10 Tom Tromey <tom@tromey.com>
17892 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17894 2017-01-10 Tom Tromey <tom@tromey.com>
17896 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17898 2017-01-10 Tom Tromey <tom@tromey.com>
17900 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17903 2017-01-10 Tom Tromey <tom@tromey.com>
17905 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17907 2017-01-10 Tom Tromey <tom@tromey.com>
17909 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17910 (typy_range): Use gdbpy_ref.
17912 2017-01-10 Tom Tromey <tom@tromey.com>
17914 * python/py-threadevent.c (create_thread_event_object): Use
17916 * python/py-stopevent.c (create_stop_event_object): Simplify.
17917 (emit_stop_event): Use gdbpy_ref.
17918 * python/py-signalevent.c (create_signal_event_object): Use
17920 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17921 (emit_new_objfile_event, create_clear_objfiles_event_object)
17922 (emit_clear_objfiles_event): Use gdbpy_ref.
17923 * python/py-infevents.c (create_inferior_call_event_object)
17924 (create_register_changed_event_object)
17925 (create_memory_changed_event_object, emit_inferior_call_event)
17926 (emit_memory_changed_event, emit_register_changed_event): Use
17928 * python/py-exitedevent.c (create_exited_event_object)
17929 (emit_exited_event): Use gdbpy_ref.
17930 * python/py-event.h (evpy_emit_event): Remove
17931 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17932 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17933 * python/py-continueevent.c (emit_continue_event): Use
17935 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17936 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17938 * python/py-bpevent.c (create_breakpoint_event_object): Use
17941 2017-01-10 Tom Tromey <tom@tromey.com>
17943 * python/py-ref.h: New file.
17945 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17947 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17949 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17950 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17951 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17952 * ui-out.c (ui_out::redirect): Likewise.
17953 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17954 * cli/cli-logging.c (set_logging_redirect): Update call site of
17956 (handle_redirections): Likewise.
17957 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17958 * top.c (execute_command_to_string): Likewise.
17959 * utils.c (do_ui_out_redirect_pop): Likewise.
17961 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17963 * stack.c (_initialize_stack): Update "frame" command help message.
17965 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17967 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17969 2017-01-06 Yao Qi <yao.qi@linaro.org>
17971 * x86-linux-nat.h: Include gdb_proc_service.h.
17973 2017-01-06 Yao Qi <yao.qi@linaro.org>
17975 * ser-base.h: Include serial.h.
17977 2017-01-06 Yao Qi <yao.qi@linaro.org>
17979 * ppc-linux-tdep.h: Include ppc-tdep.h.
17981 2017-01-06 Yao Qi <yao.qi@linaro.org>
17983 * nat/amd64-linux-siginfo.h: Include signal.h.
17985 2017-01-06 Yao Qi <yao.qi@linaro.org>
17987 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17989 2017-01-06 Yao Qi <yao.qi@linaro.org>
17991 * mi/mi-parse.h: Include mi-cmds.h.
17993 2017-01-06 Yao Qi <yao.qi@linaro.org>
17995 * inf-loop.c: Don't include "target.h".
17996 * inf-loop.h: Include it here.
17998 2017-01-06 Yao Qi <yao.qi@linaro.org>
18000 * dfp.h: Include "dboulest.h" and "expression.h".
18002 2017-01-06 Yao Qi <yao.qi@linaro.org>
18004 * ax-gdb.h: Include "ax.h".
18006 2017-01-06 Yao Qi <yao.qi@linaro.org>
18008 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
18009 with nat/gdb_ptrace.h.
18011 2017-01-05 Yao Qi <yao.qi@linaro.org>
18013 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
18015 (mips64_fbsd_sigframe_init): Likewise.
18017 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18019 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
18020 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
18022 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18024 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
18025 * NEWS: Mention new FreeBSD/mips native configuration.
18026 * config/mips/fbsd.mh: New file.
18027 * configure.host: Add mips*-*-freebsd*.
18028 * mips-fbsd-nat.c: New file.
18030 2017-01-04 John Baldwin <jhb@FreeBSD.org>
18032 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
18033 (ALLDEPFILES): Add mips-fbsd-tdep.c.
18034 * NEWS: Mention new FreeBSD/mips target.
18035 * configure.tgt: Add mips*-*-freebsd*.
18036 * mips-fbsd-tdep.c: New file.
18037 * mips-fbsd-tdep.h: New file.
18039 2017-01-04 Yao Qi <yao.qi@linaro.org>
18041 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
18042 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
18044 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18046 Update copyright year range in all GDB files.
18048 2017-01-01 Joel Brobecker <brobecker@adacore.com>
18050 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
18052 For older changes see ChangeLog-2016.
18058 version-control: never