Fix build with g++ 6.3.1
[binutils-gdb.git] / gdb / ChangeLog
1 2017-12-07 Adam Stylinski <adam.stylinski@etegent.com>
2
3 PR c++/21222
4 * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
5 range-for variable.
6
7 2017-12-07 Simon Marchi <simon.marchi@ericsson.com>
8
9 * common/selftest.h (struct selftest): Add virtual destructor.
10
11 2017-12-07 Phil Muldoon <pmuldoon@redhat.com>
12
13 * python/py-breakpoint.c (bppy_init): Use string_to_event_location
14 over basic location code. Implement explicit location keywords.
15 (bppy_init_validate_args): New function.
16 * NEWS: Document Python explicit breakpoint locations.
17
18 2017-12-07 Joel Brobecker <brobecker@adacore.com>
19
20 * MAINTAINERS: Restore target entries for m68hc11-elf,
21 score-elf and xstormy16-elf, incorrectly removed in a previous
22 patch meant to only update the list of active maintainers.
23
24 2017-12-06 Pedro Alves <palves@redhat.com>
25
26 * break-catch-syscall.c (insert_catch_syscall)
27 (remove_catch_syscall): Adjust to pass reference to
28 inf_data->syscalls_counts directly via gdb::array_view.
29 * fbsd-nat.c (fbsd_set_syscall_catchpoint): Adjust to use bool
30 and gdb::array_view.
31 * linux-nat.c (linux_child_set_syscall_catchpoint): Likewise.
32 * remote.c (remote_set_syscall_catchpoint): Likewise.
33 * target-debug.h (target_debug_print_bool): New.
34 (define target_debug_print_gdb_array_view_const_int): New.
35 * target-delegates.c: Regenerate.
36 * target.h (target_ops) <to_set_syscall_catchpoint>: Use
37 gdb::array_view and bool.
38 (target_set_syscall_catchpoint): Likewise.
39
40 2017-12-06 Simon Marchi <simon.marchi@ericsson.com>
41
42 * break-catch-syscall.c (catch_syscall_completer): Get pointers
43 to syscall group strings after building the string vector.
44
45 2017-12-06 Pedro Alves <palves@redhat.com>
46
47 * remote.c (remote_query_supported): Don't send "xmlRegisters=" if
48 "qXfer:features:read"" is disabled.
49 (remote_write_qxfer, remote_read_qxfer, remote_search_memory):
50 Check packet_config_support instead of packet->support directly.
51
52 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
53
54 * target-descriptions.c (struct tdesc_feature) <registers>: Use
55 tdesc_reg_up typedef.
56 (struct target_desc) <features>: Use tdesc_feature_up typedef.
57
58 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * target-descriptions.c (struct tdesc_type): Use default
61 destructor.
62 <u>: Remove.
63 <accept>: Remove.
64 (struct tdesc_type_builtin): New.
65 (struct tdesc_type_vector): New.
66 (struct tdesc_type_with_fields): New.
67 (tdesc_predefined_types): Change type to tdesc_type_builtin[].
68 (tdesc_gdb_type): Remove.
69 (tdesc_register_type): Adjust.
70 (tdesc_create_vector): Create tdesc_type_vector.
71 (tdesc_create_struct): Create tdesc_type_with_fields.
72 (tdesc_set_struct_size): Change parameter type.
73 (tdesc_create_union): Create tdesc_type_with_fields.
74 (tdesc_create_flags): Likewise.
75 (tdesc_create_enum): Likewise.
76 (tdesc_add_field): Change parameter type.
77 (tdesc_add_typed_bitfield): Likewise.
78 (tdesc_add_bitfield): Likewise.
79 (tdesc_add_flag): Likewise.
80 (tdesc_add_enum_value): Likewise.
81 (print_c_tdesc) <visit>: Remove overload with tdesc_type
82 parameter, add overloads for tdesc_type_builtin,
83 tdesc_type_with_fields and tdesc_type_vector.
84 <m_printed_type>: Remove.
85 <m_printed_element_type, m_printed_type_with_fields>: Add.
86 * target-descriptions.h (tdesc_create_enum): Change return type.
87 (tdesc_add_typed_bitfield): Change parameter type.
88 (tdesc_add_enum_value): Change parameter type.
89 * xml-tdesc.c (struct tdesc_parsing_data) <current_type>: Change
90 type to tdesc_type_with_fields.
91 (tdesc_start_struct): Adjust.
92 (tdesc_start_flags): Adjust.
93 (tdesc_start_enum): Adjust.
94 (tdesc_start_field): Adjust.
95 * arch/tdesc.h (struct tdesc_type_builtin): Forward-declare.
96 (struct tdesc_type_vector): Forward-declare.
97 (struct tdesc_type_with_fields): Forward-declare.
98 (tdesc_create_struct): Change return type.
99 (tdesc_create_union): Likewise.
100 (tdesc_create_flags): Likewise.
101 (tdesc_add_field): Change parameter type.
102 (tdesc_set_struct_size): Likewise.
103 (tdesc_add_bitfield): Likewise.
104 (tdesc_add_flag): Likewise.
105 * features: Re-generate C files.
106
107 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * target-descriptions.c (tdesc_arch_reg): Remove typedef.
110 (struct tdesc_arch_reg): Add constructor.
111 (DEF_VEC_O (tdesc_arch_reg)): Remove.
112 (struct tdesc_arch_data): Initialize fields.
113 <arch_regs>: Change type to std::vector.
114 (target_find_description): Adjust.
115 (tdesc_find_type): Adjust.
116 (tdesc_data_init): Call tdesc_arch_data constructor.
117 (tdesc_data_alloc): Allocate tdesc_arch_data with new.
118 (tdesc_data_cleanup): Free data with delete.
119 (tdesc_numbered_register): Adjust.
120 (tdesc_find_arch_register): Adjust.
121 (tdesc_use_registers): Adjust.
122
123 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
124
125 * target-descriptions.c (tdesc_type_field): Remove typedef.
126 (DEF_VEC_O (tdesc_type_field)): Remove.
127 (struct tdesc_type_field): Add constructor.
128 <name>: Change type to std::string.
129 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
130 kind uses it.
131 <~tdesc_type>: Destroy vector if the type kind uses it.
132 <u::u::fields>: Change type to std::vector.
133 (tdesc_gdb_type): Adjust.
134 (tdesc_add_field): Adjust.
135 (tdesc_add_typed_bitfield): Adjust.
136 (tdesc_add_field): Adjust.
137 (tdesc_add_enum_value): Adjust.
138 (class print_c_tdesc) <visit>: Adjust.
139
140 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
141
142 * target-descriptions.c (struct tdesc_type) <name>: Change type
143 to std::string.
144 <~tdesc_type>: Don't manually free name.
145 <operator==>: Adjust.
146 (tdesc_named_type): Adjust.
147 (tdesc_find_type): Adjust.
148 (tdesc_gdb_type): Adjust.
149 (class print_c_tdesc) <visit>: Adjust.
150
151 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * target-descriptions.c (tdesc_type_p): Remove typedef.
154 (DEF_VEC_P (tdesc_type_p)): Remove.
155 (struct tdesc_feature) <types>: Change type to std::vector.
156 <~tdesc_feature>: Replace with default implementation.
157 <accept>: Adjust.
158 (tdesc_named_type): Adjust.
159 (tdesc_create_vector): Adjust.
160 (tdesc_create_struct): Adjust.
161 (tdesc_create_union): Adjust.
162 (tdesc_create_flags): Adjust.
163 (tdesc_create_enum): Adjust.
164
165 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
166
167 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
168 type of name_ parameter, adjust to std::string change.
169 <name, group, type>: Change type to std::string.
170 <~tdesc_reg>: Replace with default implementation.
171 <operator==>: Adjust.
172 (tdesc_find_register_early): Adjust.
173 (tdesc_register_name): Adjust.
174 (tdesc_register_type): Adjust.
175 (tdesc_register_in_reggroup_p): Adjust.
176 (class print_c_tdesc) <visit>: Adjust.
177 (class print_c_feature) <visit>: Adjust.
178 * features/arc-arcompact.c: Re-generate.
179 * features/arc-v2.c: Re-generate.
180
181 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
182
183 * target-descriptions.c (tdesc_reg_p): Remove typedef.
184 (DEF_VEC_P (tdesc_reg_p)): Remove.
185 (struct tdesc_feature) <registers>: Change type to std::vector.
186 <~tdesc_feature>: Don't manually free registers.
187 <accept>: Adjust.
188 <operator==>: Adjust.
189 (tdesc_has_registers): Adjust.
190 (tdesc_find_register_early): Adjust.
191 (tdesc_use_registers): Adjust.
192 (tdesc_create_reg): Adjust.
193
194 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
195
196 * target-descriptions.c (tdesc_feature) <name>: Change type to
197 std::string.
198 <~tdesc_feature>: Don't manually free name.
199 <operator==>: Adjust.
200 (tdesc_find_feature): Adjust.
201 (tdesc_feature_name): Adjust.
202 (class print_c_tdesc) <visit_pre>: Adjust.
203 (class print_c_feature) <visit_pre>: Adjust.
204
205 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
206
207 * target-descriptions.c (tdesc_feature_p): Remove typedef.
208 (DEF_VEC_P (tdesc_feature_p)): Remove.
209 (struct target_desc) <features>: Change type to std::vector.
210 <~target_desc>: Replace with default implementation.
211 <accept>: Adjust.
212 <operator==>: Adjust.
213 (tdesc_has_registers): Adjust.
214 (tdesc_find_feature): Adjust.
215 (tdesc_use_registers): Adjust.
216 (tdesc_create_feature): Adjust.
217
218 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
219
220 * target-descriptions.c (arch_p): Remove typedef.
221 (DEF_VEC_P (arch_p)): Remove.
222 (struct target_desc) <compatible>: Change type to std::vector.
223 <~target_desc>: Don't manually free compatible.
224 (tdesc_compatible_p): Adjust.
225 (tdesc_add_compatible): Adjust.
226 (class print_c_tdesc) <visit_pre>: Adjust.
227
228 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
229
230 * target-descriptions.c (property_s): Remove typedef.
231 (DEF_VEC_O (property_s)): Remove.
232 (struct target_desc) <properties>: Make an std::vector.
233 <~target_desc>: Don't manually free properties.
234 (tdesc_property): Adjust.
235 (set_tdesc_property): Adjust.
236 (class print_c_tdesc) <visit_pre>: Adjust.
237
238 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
239
240 * common/gdb_assert.h (gdb_static_assert): Redefine using
241 static_assert.
242
243 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
244
245 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
246 unused variables.
247 (ada_is_redundant_range_encoding): Likewise.
248 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
249 Likewise.
250 * alpha-tdep.c (alpha_software_single_step): Likewise.
251 * arm-tdep.c (_initialize_arm_tdep): Likewise.
252 * auto-load.c (info_auto_load_cmd): Likewise.
253 * break-catch-syscall.c (insert_catch_syscall): Likewise.
254 (remove_catch_syscall): Likewise.
255 * breakpoint.c (condition_completer): Likewise.
256 (clear_command): Likewise.
257 (update_breakpoint_locations): Likewise.
258 * btrace.c (btrace_disable): Likewise.
259 (btrace_teardown): Likewise.
260 (btrace_maint_update_pt_packets): Likewise.
261 (maint_btrace_clear_cmd): Likewise.
262 * cli/cli-decode.c (lookup_cmd_1): Likewise.
263 (lookup_cmd_composition): Likewise.
264 * cli/cli-dump.c (scan_filename): Likewise.
265 (restore_command): Likewise.
266 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
267 * compile/compile-object-load.c (compile_object_load): Likewise.
268 * compile/compile-object-run.c (compile_object_run): Likewise.
269 * compile/compile.c (compile_to_object): Likewise.
270 * completer.c (filename_completer): Likewise.
271 (complete_files_symbols): Likewise.
272 (complete_expression): Likewise.
273 * corelow.c (core_open): Likewise.
274 * ctf.c (ctf_start): Likewise.
275 (ctf_write_status): Likewise.
276 (ctf_write_uploaded_tsv): Likewise.
277 (ctf_write_definition_end): Likewise.
278 (ctf_open_dir): Likewise.
279 (ctf_xfer_partial): Likewise.
280 (ctf_trace_find): Likewise.
281 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
282 Likewise.
283 * dwarf2loc.c (allocate_piece_closure): Likewise.
284 (indirect_pieced_value): Likewise.
285 (dwarf2_evaluate_loc_desc_full): Likewise.
286 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
287 (dw2_expand_symtabs_matching): Likewise.
288 (dw2_map_symbol_filenames): Likewise.
289 (read_and_check_comp_unit_head): Likewise.
290 (read_cutu_die_from_dwo): Likewise.
291 (lookup_dwo_unit): Likewise.
292 (read_comp_units_from_section): Likewise.
293 (dwarf2_compute_name): Likewise.
294 (handle_DW_AT_stmt_list): Likewise.
295 (create_cus_hash_table): Likewise.
296 (create_dwp_v2_section): Likewise.
297 (dwarf2_rnglists_process): Likewise.
298 (dwarf2_ranges_process): Likewise.
299 (dwarf2_record_block_ranges): Likewise.
300 (is_vtable_name): Likewise.
301 (read_formatted_entries): Likewise.
302 (skip_form_bytes): Likewise.
303 * elfread.c (elf_symtab_read): Likewise.
304 * exec.c (exec_file_command): Likewise.
305 * f-valprint.c (f_val_print): Likewise.
306 (info_common_command_for_block): Likewise.
307 * guile/guile.c (initialize_scheme_side): Likewise.
308 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
309 * guile/scm-cmd.c (cmdscm_completer): Likewise.
310 (gdbscm_register_command_x): Likewise.
311 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
312 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
313 * guile/scm-ports.c (file_port_magic): Likewise.
314 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
315 (ppscm_pretty_print_one_value): Likewise.
316 (ppscm_print_children): Likewise.
317 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
318 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
319 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
320 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
321 * i386-tdep.c (i386_register_reggroup_p): Likewise.
322 * infcmd.c (run_command_1): Likewise.
323 (until_next_fsm_clean_up): Likewise.
324 * linespec.c (linespec_complete): Likewise.
325 (find_label_symbols): Likewise.
326 * m2-valprint.c (m2_val_print): Likewise.
327 * memattr.c (require_user_regions): Likewise.
328 (lookup_mem_region): Likewise.
329 (disable_mem_command): Likewise.
330 (mem_delete): Likewise.
331 * mep-tdep.c (mep_register_name): Likewise.
332 (mep_analyze_prologue): Likewise.
333 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
334 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
335 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
336 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
337 * minidebug.c (lzma_open): Likewise.
338 * minsyms.c (lookup_minimal_symbol): Likewise.
339 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
340 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
341 (mips_o64_return_value): Likewise.
342 (mips_single_step_through_delay): Likewise.
343 (_initialize_mips_tdep): Likewise.
344 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
345 (nios2_software_single_step): Likewise.
346 * parse.c (find_minsym_type_and_address): Likewise.
347 * psymtab.c (psym_relocate): Likewise.
348 * python/py-breakpoint.c (bppy_get_commands): Likewise.
349 (gdbpy_breakpoint_modified): Likewise.
350 * python/py-infevents.c (create_inferior_call_event_object):
351 Likewise.
352 * python/py-record-btrace.c (btpy_list_item): Likewise.
353 * python/py-type.c (typy_str): Likewise.
354 * python/py-value.c (valpy_call): Likewise.
355 * python/python.c (do_start_initialization): Likewise.
356 * record-btrace.c (record_btrace_insn_history_range): Likewise.
357 (record_btrace_call_history_range): Likewise.
358 (record_btrace_record_method): Likewise.
359 (record_btrace_xfer_partial): Likewise.
360 (btrace_get_frame_function): Likewise.
361 * record-full.c (record_full_open): Likewise.
362 * record.c (get_context_size): Likewise.
363 * registry.h (DEFINE_REGISTRY): Likewise.
364 * remote-fileio.c (remote_fileio_request): Likewise.
365 * remote.c (remote_update_thread_list): Likewise.
366 (remote_check_symbols): Likewise.
367 (remote_commit_resume): Likewise.
368 (remote_interrupt): Likewise.
369 (remote_insert_breakpoint): Likewise.
370 (compare_sections_command): Likewise.
371 * rust-exp.y (super_name): Likewise.
372 (lex_string): Likewise.
373 (convert_ast_to_type): Likewise.
374 (convert_ast_to_expression): Likewise.
375 * rust-lang.c (rust_print_struct_def): Likewise.
376 (rust_print_type): Likewise.
377 (rust_evaluate_subexp): Likewise.
378 * rx-tdep.c (rx_register_type): Likewise.
379 * ser-event.c (serial_event_clear): Likewise.
380 * serial.c (serial_open): Likewise.
381 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
382 * symfile.c (section_is_overlay): Likewise.
383 (overlay_unmapped_address): Likewise.
384 (overlay_mapped_address): Likewise.
385 (simple_overlay_update_1): Likewise.
386 (simple_overlay_update): Likewise.
387 * symtab.c (symbol_find_demangled_name): Likewise.
388 (search_symbols): Likewise.
389 * target-descriptions.c (tdesc_predefined_type): Likewise.
390 * target.c (target_commit_resume): Likewise.
391 * thread.c (print_selected_thread_frame): Likewise.
392 * top.c (new_ui_command): Likewise.
393 (gdb_readline_no_editing): Likewise.
394 * tracefile-tfile.c (tfile_open): Likewise.
395 * tracepoint.c (create_tsv_from_upload): Likewise.
396 * utils.c (quit): Likewise.
397 (defaulted_query): Likewise.
398 * valarith.c (value_concat): Likewise.
399 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
400 * xml-tdesc.c (target_fetch_description_xml): Likewise.
401 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
402 (xtensa_pseudo_register_write): Likewise.
403
404 2017-12-04 Tom Tromey <tom@tromey.com>
405
406 * NEWS: Mention Rust trait object inspection.
407
408 2017-12-04 Pedro Alves <palves@redhat.com>
409
410 PR gdb/22499
411 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
412 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
413 (vex2_prefix_p, vex3_prefix_p): New functions.
414 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
415 VEX3 prefixes.
416 (fixup_riprel): Set VEX3.!B.
417
418 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
419
420 * target.h (mem_region_vector): Remove.
421 (struct target_ops) <to_memory_map>: Change return type to
422 std::vector<mem_region>.
423 * target-debug.h (target_debug_print_mem_region_vector): Rename
424 to ...
425 (target_debug_print_std_vector_mem_region): ... this.
426 * target-delegates.c: Re-generate.
427
428 2017-12-03 Pedro Alves <palves@redhat.com>
429
430 * make-target-delegates (munge_type): Also munge '<', '>', and
431 ':'. Avoid double underscores in identifiers, and trailing
432 underscores.
433 * target-debug.h
434 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
435 ...
436 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
437 * target-delegates.c: Regenerate.
438
439 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * common/poison.h (XDELETE): Fix typo.
442
443 2017-12-01 Andrew Cagney <cagney@redhat.com>
444 Joel Brobecker <brobecker@adacore.com>
445 Sergio Durigan Junior <sergiodj@redhat.com>
446
447 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
448 feature.
449 * coffread.c (coff_symfile_read): Do not map over sections with
450 'coff_locate_sections' if readnever is on.
451 * dwarf2read.c (dwarf2_has_info): Return 0 if
452 readnever is on.
453 * elfread.c (elf_symfile_read): Do not map over sections with
454 'elf_locate_sections' if readnever is on.
455 * main.c (validate_readnow_readnever): New function.
456 (captured_main_1): Add support for --readnever.
457 (print_gdb_help): Document --readnever.
458 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
459 flag.
460 * symfile.c (readnever_symbol_files): New global.
461 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
462 'READNEVER_SYMBOL_FILES' is set.
463 (validate_readnow_readnever): New function.
464 (symbol_file_command): Handle '-readnever' option.
465 Call 'validate_readnow_readnever'.
466 (add_symbol_file_command): Handle '-readnever' option.
467 Call 'validate_readnow_readnever'.
468 (_initialize_symfile): Document new '-readnever' option for
469 both 'symbol-file' and 'add-symbol-file' commands.
470 * top.h (readnever_symbol_files): New extern global.
471 * xcoffread.c (xcoff_initial_scan): Do not read debug
472 information if readnever is on.
473
474 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
475
476 * symfile.c (symbol_file_command): Call
477 'symbol_file_add_main_1' only after processing all command
478 line options.
479 (add_symbol_file_command): Modify logic to make arguments
480 position-independent.
481
482 2017-12-01 Joel Brobecker <brobecker@adacore.com>
483
484 * ada-lang.c (symbol_list_obstack): Delete.
485 (resolve_subexp): Make sure "candidates" gets xfree'ed.
486 (ada_lookup_symbol_list_worker): Remove the limitation that
487 the result is only good until the next call, now making it
488 the responsibility of the caller to free the result when no
489 longer needed. Adjust the function's intro comment accordingly.
490 (ada_lookup_symbol_list): Adjust the function's intro comment.
491 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
492 (ada_lookup_encoded_symbol, get_var_value): Likewise.
493 (_initialize_ada_language): Remove symbol_list_obstack
494 initialization.
495 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
496 (write_var_or_type, write_name_assoc): Likewise.
497
498 2017-12-01 Tom Tromey <tom@tromey.com>
499
500 * Makefile.in (all_deps_files): New variable.
501 Include .Po files using all_deps_files.
502
503 2017-12-01 Joel Brobecker <brobecker@adacore.com>
504
505 * MAINTAINERS: Update list of maintainers, moving those who
506 stepped down or became inactive to the "Past Maintainers"
507 section.
508
509 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
510
511 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
512 sys/proc.h.
513 (NEW_PROC_API): Remove.
514 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
515 Likewise.
516 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
517 * configure: Regenerate.
518 * config.in: Regenerate.
519 * gdbserver/configure: Regenerate.
520 * gdbserver/config.in: Regenerate.
521
522 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
523 NEW_PROC_API test.
524 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
525
526 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
527
528 * proc-api.c: Remove !NEW_PROC_API support.
529 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
530 Remove tests for macros always defined on Solaris.
531 * proc-events.c: Remove !NEW_PROC_API support.
532 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
533 HAVE_SYS_USER_H tests.
534 (init_syscall_table): Remove non-Solaris syscalls.
535 Remove tests for syscalls present on all Solaris versions.
536 Add missing Solaris 10+ syscalls.
537 (signal_table): Remove non-Solaris signals.
538 Remove tests for signals present on all Solaris versions.
539 (fault_table): Remove non-Solaris faults.
540 Remove tests for faults present on all Solaris versions.
541 * proc-flags.c: Remove !NEW_PROC_API support.
542 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
543 Remove non-Solaris flags.
544 * proc-why.c: Remove !NEW_PROC_API support.
545 (pr_why_table): Remove meaningless comments.
546 Remove tests for reasons present on all Solaris versions.
547 Remove OSF/1 cases.
548 (proc_prettyfprint_why): Likewise.
549
550 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
551 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
552 Remove WA_READ test, IRIX watchpoint support.
553 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
554 types. Change users.
555 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
556 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
557 Change callers.
558 Remove CTL_PROC_NAME_FMT tests.
559 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
560 users.
561 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
562 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
563 (proc_modify_flag): Replace GDBRESET by PCUNSET.
564 Remove PR_ASYNC, PR_KLC tests.
565 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
566 (proc_parent_pid): Remove PCWATCH etc. tests.
567 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
568 Remove PCAGENT test.
569 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
570 Remove SYS_lwpcreate || SYS_lwp_create test.
571 (proc_get_current_thread): Likewise.
572 [PIOCNTHR && PIOCTLIST]: Remove.
573 [PIOCLSTATUS]: Remove.
574 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
575 [PRFS_STOPEXEC]: Remove.
576 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
577 (syscall_is_exit): Likewise.
578 (syscall_is_exec): Likewise.
579 (syscall_is_lwp_create): Likewise.
580 Remove SYS_syssgi support.
581 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
582 [SYS_syssgi]: Remove.
583 Remove non-Solaris cases, conditionals.
584 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
585 Remove.
586 (procfs_init_inferior) [SYS_syssgi]: Remove.
587 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
588 (procfs_inferior_created) [SYS_syssgi]: Remove.
589 (procfs_set_watchpoint): Remove !AIX5 test.
590 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
591 case.
592 (mappingflags) [MA_PHYS]: Remove.
593 (info_mappings_callback): Remove PCAGENT test.
594 Remove PIOCOPENLWP || PCAGENT test.
595
596 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
597
598 * sol-thread.c (info_solthreads): Constify args.
599 Cast args to void *.
600
601 2017-11-29 John Baldwin <jhb@FreeBSD.org>
602
603 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
604
605 2017-11-29 Joel Brobecker <brobecker@adacore.com>
606
607 * ada-lang.c (to_fixed_range_type): Make sure that the size
608 of the range type being returned is the same as the size
609 of the range type being fixed.
610
611 2017-11-29 Pedro Alves <palves@redhat.com>
612
613 PR c++/19436
614 * NEWS: Mention setting breakpoints on functions with C++ ABI
615 tags.
616 * completer.h (completion_match_for_lcd) <match,
617 mark_ignored_range>: New methods.
618 <finish>: Consider ignored ranges.
619 <clear>: Clear ignored ranges.
620 <m_ignored_ranges, m_finished_storage>: New fields.
621 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
622 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
623 completion_match_for_lcd pointer to strncmp_iw_with_mode.
624 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
625 * language.c (default_symbol_name_matcher): Pass the
626 completion_match_for_lcd pointer to strncmp_iw_with_mode.
627 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
628 * utils.c (skip_abi_tag): New function.
629 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
630 Handle ABI tags.
631 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
632 parameter.
633
634 2017-11-29 Pedro Alves <palves@redhat.com>
635
636 PR c++/19436
637 * NEWS: Mention setting breakpoints on functions with C++ ABI
638 tags.
639 * completer.h (completion_match_for_lcd) <match,
640 mark_ignored_range>: New methods.
641 <finish>: Consider ignored ranges.
642 <clear>: Clear ignored ranges.
643 <m_ignored_ranges, m_finished_storage>: New fields.
644 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
645 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
646 completion_match_for_lcd pointer to strncmp_iw_with_mode.
647 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
648 * language.c (default_symbol_name_matcher): Pass the
649 completion_match_for_lcd pointer to strncmp_iw_with_mode.
650 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
651 * utils.c (skip_abi_tag): New function.
652 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
653 Handle ABI tags.
654 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
655 parameter.
656
657 2017-11-29 Pedro Alves <palves@redhat.com>
658
659 * NEWS: Mention that breakpoints on C++ functions are now set on
660 on all namespaces/classes by default, and mention "break
661 -qualified".
662 * ax-gdb.c (agent_command_1): Adjust to pass a
663 symbol_name_match_type to new_linespec_location.
664 * breakpoint.c (parse_breakpoint_sals): Adjust to
665 get_linespec_location's return type change.
666 (strace_marker_create_sals_from_location): Adjust to pass a
667 symbol_name_match_type to new_linespec_location.
668 (strace_marker_decode_location): Adjust to get_linespec_location's
669 return type change.
670 (strace_command): Adjust to pass a symbol_name_match_type to
671 new_linespec_location.
672 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
673 mention "-qualified".
674 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
675 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
676 enumerator.
677 (complete_address_and_linespec_locations): New parameter
678 'match_type'. Pass it down.
679 (explicit_options): Add "-qualified".
680 (collect_explicit_location_matches): Pass the requested match type
681 to the linespec completers. Handle MATCH_QUALIFIED.
682 (location_completer): Handle "-qualified" combined with linespecs.
683 * cp-support.c (cp_search_name_hash): New.
684 (cp_symbol_name_matches_1): Implement wild matching for C++.
685 (cp_fq_symbol_name_matches): Reimplement.
686 (cp_get_symbol_name_matcher): Return different matchers depending
687 on the lookup name's match type.
688 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
689 * cp-support.h (cp_search_name_hash): New declaration.
690 * dwarf2read.c
691 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
692 symbols.
693 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
694 tests.
695 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
696 pass a symbol_name_match_type to new_linespec_location.
697 * linespec.c (linespec_parse_basic): Lookup function symbols using
698 the parser's symbol name match type.
699 (convert_explicit_location_to_linespec): New
700 symbol_name_match_type parameter. Pass it down to
701 find_linespec_symbols.
702 (convert_explicit_location_to_sals): Pass the location's name
703 match type to convert_explicit_location_to_linespec.
704 (parse_linespec): New match_type parameter. Save it in the
705 parser.
706 (linespec_parser_new): Default to symbol_name_match_type::WILD.
707 (linespec_complete_function): New symbol_name_match_type
708 parameter. Use it.
709 (complete_linespec_component): Pass down the parser's recorded
710 name match type.
711 (linespec_complete_label): New symbol_name_match_type parameter.
712 Use it.
713 (linespec_complete): New symbol_name_match_type parameter. Save
714 it in the parser and pass it down. Adjust to
715 get_linespec_location's prototype change.
716 (find_function_symbols, find_linespec_symbols): New
717 symbol_name_match_type parameter. Pass it down instead of
718 assuming symbol_name_match_type::WILD.
719 * linespec.h (linespec_complete, linespec_complete_function)
720 (linespec_complete_label): New symbol_name_match_type parameter.
721 * location.c (event_location::linespec_location): Now a struct
722 linespec_location.
723 (EL_LINESPEC): Adjust.
724 (initialize_explicit_location): Default to
725 symbol_name_match_type::WILD.
726 (new_linespec_location): New symbol_name_match_type parameter.
727 Record it in the location.
728 (get_linespec_location): Now returns a struct linespec_location.
729 (new_explicit_location): Also copy func_name_match_type.
730 (explicit_to_string_internal)
731 (string_to_explicit_location): Handle "-qualified".
732 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
733 Copy symbol_name_match_type fields.
734 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
735 type change.
736 (event_location_to_string): Adjust to LINESPEC_LOCATION type
737 change. Handle "-qualfied".
738 (string_to_explicit_location): Handle "-qualified".
739 (string_to_event_location_basic): New symbol_name_match_type
740 parameter. Pass it down.
741 (string_to_event_location): Handle "-qualified".
742 * location.h (struct linespec_location): New.
743 (explicit_location::func_name_match_type): New field.
744 (new_linespec_location): Now returns a const linespec_location *.
745 (string_to_event_location_basic): New symbol_name_match_type
746 parameter.
747 (explicit_completion_info::saw_explicit_location_option): New
748 field.
749 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
750 symbol_name_match_type to new_linespec_location.
751 * python/py-breakpoint.c (bppy_init): Likewise.
752 * python/python.c (gdbpy_decode_line): Likewise.
753
754 2017-11-29 Pedro Alves <palves@redhat.com>
755
756 * ada-lang.c (ada_lookup_name_info::matches): Change type of
757 parameter from completion_match to completion_match_result.
758 Adjust.
759 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
760 * completer.c (completion_tracker::maybe_add_completion): Add
761 match_for_lcd parameter and use it.
762 (completion_tracker::add_completion): Likewise.
763 * completer.h (class completion_match_for_lcd): New class.
764 (completion_match_result::match_for_lcd): New field.
765 (completion_match_result::set_match): New method.
766 (completion_tracker): Add comments.
767 (completion_tracker::add_completion): Add match_for_lcd parameter.
768 (completion_tracker::reset_completion_match_result): Reset
769 match_for_lcd too.
770 (completion_tracker::maybe_add_completion): Add match_for_lcd
771 parameter.
772 (completion_tracker::m_lowest_common_denominator_unique): Extend
773 comments.
774 * cp-support.c (cp_symbol_name_matches_1)
775 (cp_fq_symbol_name_matches): Change type of parameter from
776 completion_match to completion_match_result. Adjust.
777 * language.c (default_symbol_name_matcher): Change type of
778 parameter from completion_match to completion_match_result.
779 Adjust.
780 * language.h (completion_match_for_lcd): Forward declare.
781 (default_symbol_name_matcher): Change type of parameter from
782 completion_match to completion_match_result.
783 * symtab.c (compare_symbol_name): Adjust.
784 (completion_list_add_name): Pass the match_for_lcd to the tracker.
785 * symtab.h (ada_lookup_name_info::matches): Change type of
786 parameter from completion_match to completion_match_result.
787 (symbol_name_matcher_ftype): Likewise, and update comments.
788
789 2017-11-29 Pedro Alves <palves@redhat.com>
790
791 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
792 * minsyms.c (msymbol_is_text): Delete.
793 (msymbol_is_function): New function.
794 * minsyms.h (msymbol_is_text): Delete.
795 (msymbol_is_function): New declaration.
796 * symtab.c (find_function_alias_target): Use msymbol_is_function.
797
798 2017-11-29 Tom Tromey <tom@tromey.com>
799
800 * Makefile.in (distclean): Handle the case where rmdir fails.
801
802 2017-11-29 Tom Tromey <tom@tromey.com>
803
804 * symfile.c (_initialize_symfile): Update usage text for
805 add-symbol-file, symbol-file, load.
806
807 2017-11-29 Tom Tromey <tom@tromey.com>
808
809 * symfile.c (add_symbol_file_command): Error if some arguments to
810 -s are missing. Change unrecognized-argument error message.
811 (_initialize_symfile): Fix usage text for add-symbol-file.
812
813 2017-11-27 Tom Tromey <tom@tromey.com>
814
815 * Makefile.in (REMOTE_OBS): Remove.
816 (SFILES): Remove remote sources.
817 (COMMON_SFILES): Add remote sources.
818 (ALLDEPFILES): Remove dcache.c.
819
820 2017-11-27 Tom Tromey <tom@tromey.com>
821
822 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
823 variables.
824 (SFILES): Use SUBDIR_TARGET_SRCS.
825 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
826 (CONFIG_SRC_SUBDIR): Add target.
827 (%.o): Remove target rule.
828
829 2017-11-27 Tom Tromey <tom@tromey.com>
830
831 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
832 registry.o, thread-fsm.o, debug.o.
833 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
834 thread-fsm.c, debug.c.
835
836 2017-11-27 Tom Tromey <tom@tromey.com>
837
838 * Makefile.in (COMMON_SFILES): New.
839 (SFILES): Move some entries to COMMON_SFILES.
840 (COMMON_OBS): Use COMMON_SFILES.
841
842 2017-11-27 Tom Tromey <tom@tromey.com>
843
844 * Makefile.in (YYFILES): Update comment.
845 (YYOBJ): Redefine.
846
847 2017-11-27 Tom Tromey <tom@tromey.com>
848
849 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
850 (CONFIG_SRC_SUBDIR): Add python.
851 (%.o): Remove python rule.
852 (python/%.o): New rule.
853 * configure: Rebuild.
854 * configure.ac (CONFIG_OBS): Refer to python/python.o
855
856 2017-11-27 Tom Tromey <tom@tromey.com>
857
858 * configure: Rebuild.
859 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
860 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
861 (CONFIG_SRC_SUBDIR): Add guile.
862 (%.o): Remove guile rule.
863
864 2017-11-27 Tom Tromey <tom@tromey.com>
865
866 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
867 (%.o): Remove unittests rule.
868 (CONFIG_SRC_SUBDIR): Add unittests.
869
870 2017-11-27 Tom Tromey <tom@tromey.com>
871
872 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
873 (CONFIG_SRC_SUBDIR): Add tui.
874 (%.o): Remove tui rule.
875
876 2017-11-27 Tom Tromey <tom@tromey.com>
877
878 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
879 (%.o): Remove compile rule.
880 (CONFIG_SRC_SUBDIR): Add compile.
881
882 2017-11-27 Tom Tromey <tom@tromey.com>
883
884 * Makefile.in (SUBDIR_MI_OBS): Redefine.
885 (%.o): Remove mi rule.
886 (CONFIG_SRC_SUBDIR): Add mi.
887 (COMMON_OBS): Use mi/mi-common.o
888
889 2017-11-27 Tom Tromey <tom@tromey.com>
890
891 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
892 (%.o): Remove cli rule.
893 (CONFIG_SRC_SUBDIR): Add cli.
894
895 2017-11-27 Tom Tromey <tom@tromey.com>
896
897 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
898 * configure: Rebuild.
899 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
900 (CONFIG_DEP_SUBDIR): New variable.
901 (%.o): Add order-only dependency.
902 ($(CONFIG_DEP_SUBDIR)): New target.
903
904 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
905
906 PR gdb/21945
907 * findcmd.c (_initialize_mem_search): Update find command help
908 text.
909
910 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
911
912 * python/python.c (do_start_initialization): Change progname
913 type to gdb::unique_xmalloc_ptr. Release the pointer when using
914 Python 2.
915
916 2017-11-26 Tom Tromey <tom@tromey.com>
917
918 * common/format.h: Add include guards.
919
920 2017-11-26 Tom Tromey <tom@tromey.com>
921
922 * nat/linux-personality.h (class
923 maybe_disable_address_space_randomization): New class.
924 (maybe_disable_address_space_randomization): Don't declare
925 function.
926 * nat/linux-personality.c (restore_personality)
927 (make_disable_asr_cleanup): Remove.
928 (maybe_disable_address_space_randomization): Now a constructor.
929 (~maybe_disable_address_space_randomization): New destructor.
930 * linux-nat.c (linux_nat_create_inferior): Update.
931
932 2017-11-26 Tom Tromey <tom@tromey.com>
933
934 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
935
936 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
937
938 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
939 "cooked" register. Access only first four bytes of branch target
940 registers.
941
942 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
943
944 PR gdb/22491
945 * stap-probe.c (relocate_address): New function.
946 (stap_probe::get_relocated_address): Use 'relocate_address'.
947 (stap_probe::set_semaphore): Use 'relocate_address' and pass
948 'm_sem_addr'.
949 (stap_probe::clear_semaphore): Likewise.
950
951 2017-11-25 Pedro Alves <palves@redhat.com>
952
953 * dictionary.c: Include "safe-ctype.h".
954 * minsyms.c: Include "safe-ctype.h".
955 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
956
957 2017-11-25 Pedro Alves <palves@redhat.com>
958
959 * completer.c (complete_line_internal_1): Skip spaces until the
960 start of the command.
961
962 2017-11-24 Pedro Alves <palves@redhat.com>
963
964 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
965 cp_fq_symbol_name_matches. Pass language_cplus to
966 strncmp_with_mode.
967 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
968 (selftests::test_cp_symbol_name_cmp): New.
969 (_initialize_cp_support): Register "cp_symbol_name_matches"
970 selftests.
971 * language.c (default_symbol_name_matcher): Pass language_minimal
972 to strncmp_iw_with_mode.
973 * utils.c: Include "cp-support.h" and <algorithm>.
974 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
975 (cp_is_operator): New functions.
976 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
977 skip whitespace in the symbol name when the lookup name doesn't
978 have spaces, and vice versa.
979 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
980 * utils.h (strncmp_iw_with_mode): Add language parameter.
981
982 2017-11-24 Joel Brobecker <brobecker@adacore.com>
983
984 * ada-lang.c (ada_exception_message_1, ada_exception_message):
985 New functions.
986 (print_it_exception): If available, display the exception
987 message as well.
988 * NEWS: Document new feature.
989
990 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
991
992 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
993
994 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
995
996 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
997 (dtrace_probe::is_enabled, dtrace_probe::enable)
998 (dtrace_probe::disable): Remove keyword 'struct' at for-range
999 variable
1000 * probe.c (gen_ui_out_table_header_info)
1001 (print_ui_out_not_applicables): Remove keyword 'struct' at
1002 for-range variable
1003
1004 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1005
1006 * configure.tgt: Add arch/aarch64.o
1007
1008 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * common/common-utils.h: Include poison.h.
1011 (xfree): Remove declaration, add definition with static_assert.
1012 * common/common-utils.c (xfree): Remove.
1013 * common/poison.h (IsMallocatable): Define.
1014 (IsFreeable): Define.
1015 (free): Delete for non-freeable types.
1016 (xnew): New.
1017 (XNEW): Undef and redefine.
1018 (xcnew): New.
1019 (XCNEW): Undef and redefine.
1020 (xdelete): New.
1021 (XDELETE): Undef and redefine.
1022 (xnewvec): New.
1023 (XNEWVEC): Undef and redefine.
1024 (xcnewvec): New.
1025 (XCNEWVEC): Undef and redefine.
1026 (xresizevec): New.
1027 (XRESIZEVEC): Undef and redefine.
1028 (xdeletevec): New.
1029 (XDELETEVEC): Undef and redefine.
1030 (xnewvar): New.
1031 (XNEWVAR): Undef and redefine.
1032 (xcnewvar): New.
1033 (XCNEWVAR): Undef and redefine.
1034 (xresizevar): New.
1035 (XRESIZEVAR): Undef and redefine.
1036
1037 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1038
1039 * gdbthread.h (private_thread_info): Define structure type, add
1040 virtual pure destructor.
1041 (thread_info) <priv>: Change type to unique_ptr.
1042 <private_dtor>: Remove.
1043 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
1044 (private_thread_info::~private_thread_info): Provide default
1045 implementation.
1046 (thread_info::~thread_info): Don't call private_dtor nor
1047 manually free priv.
1048 * aix-thread.c (private_thread_info): Rename to ...
1049 (aix_thread_info): ... this.
1050 (get_aix_thread_info): New.
1051 (sync_threadlists): Adjust.
1052 (iter_tid): Adjust.
1053 (aix_thread_resume): Adjust.
1054 (aix_thread_fetch_registers): Adjust.
1055 (aix_thread_store_registers): Adjust.
1056 (aix_thread_extra_thread_info): Adjust.
1057 * darwin-nat.h (private_thread_info): Rename to ...
1058 (darwin_thread_info): ... this.
1059 (get_darwin_thread_info): New.
1060 * darwin-nat.c (darwin_init_thread_list): Adjust.
1061 (darwin_check_new_threads): Adjust.
1062 (thread_info_from_private_thread_info): Adjust.
1063 * linux-thread-db.c (private_thread_info): Rename to ...
1064 (thread_db_thread_info): ... this, initialize fields.
1065 (get_thread_db_thread_info): New.
1066 <dying>: Change type to bool.
1067 (update_thread_state): Adjust to type rename.
1068 (record_thread): Adjust to type rename an use of unique_ptr.
1069 (thread_db_pid_to_str): Likewise.
1070 (thread_db_extra_thread_info): Likewise.
1071 (thread_db_thread_handle_to_thread_info): Likewise.
1072 (thread_db_get_thread_local_address): Likewise.
1073 * nto-tdep.h (private_thread_info): Rename to ...
1074 (nto_thread_info): ... this, initialize fields.
1075 (get_nto_thread_info): New.
1076 <name>: Change type to std::string.
1077 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
1078 use of unique_ptr.
1079 * nto-procfs.c (update_thread_private_data_name): Adjust to
1080 std::string change, allocate nto_private_thread_info with new.
1081 (update_thread_private_data): Adjust to unique_ptr.
1082 * remote.c (private_thread_info): Rename to ...
1083 (remote_thread_info): ... this, initialize data members with
1084 default values.
1085 <extra, name>: Change type to std::string.
1086 <thread_handle>: Change type to non-pointer.
1087 (free_private_thread_info): Remove.
1088 (get_private_info_thread): Rename to...
1089 (get_remote_thread_info): ... this, change return type, adjust to
1090 use of unique_ptr, use remote_thread_info constructor.
1091 (remote_add_thread): Adjust.
1092 (get_private_info_ptid): Rename to...
1093 (get_remote_thread_info): ...this, change return type.
1094 (remote_thread_name): Use get_remote_thread_info, adjust to
1095 change to std::string.
1096 (struct thread_item) <~thread_item>: Remove.
1097 <thread_handle>: Make non pointer.
1098 (start_thread): Adjust to thread_item::thread_handle type
1099 change.
1100 (remote_update_thread_list): Adjust to type name change, move
1101 strings from temporary to long-lived object instead of
1102 duplicating.
1103 (remote_threads_extra_info): Use get_remote_thread_info.
1104 (process_initial_stop_replies): Likewise.
1105 (resume_clear_thread_private_info): Likewise.
1106 (remote_resume): Adjust to type name change.
1107 (remote_commit_resume): Use get_remote_thread_info.
1108 (process_stop_reply): Adjust to type name change.
1109 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
1110 (remote_stopped_by_hw_breakpoint): Likewise.
1111 (remote_stopped_by_watchpoint): Likewise.
1112 (remote_stopped_data_address): Likewise.
1113 (remote_core_of_thread): Likewise.
1114 (remote_thread_handle_to_thread_info): Use
1115 get_private_info_thread, adjust to thread_handle field type
1116 change.
1117
1118 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
1119
1120 * remote.c (struct thread_item): Add constructor, disable copy
1121 construction and copy assignment, define default move
1122 construction and move assignment.
1123 <extra, name>: Change type to std::string.
1124 <core>: Initialize.
1125 <thread_handle>: Make non-pointer.
1126 (thread_item_t): Remove typedef.
1127 (DEF_VEC_O(thread_item_t)): Remove.
1128 (threads_listing_context) <contains_thread>: New method.
1129 <remove_thread>: New method.
1130 <items>: Change type to std::vector.
1131 (clear_threads_listing_context): Remove.
1132 (threads_listing_context_remove): Remove.
1133 (remote_newthread_step): Use thread_item constructor, adjust to
1134 change to std::vector.
1135 (start_thread): Use thread_item constructor, adjust to change to
1136 std::vector.
1137 (end_thread): Adjust to change to std::vector and std::string.
1138 (remote_get_threads_with_qthreadinfo): Use thread_item
1139 constructor, adjust to std::vector.
1140 (remote_update_thread_list): Adjust to change to std::vector and
1141 std::string, use threads_listing_context methods.
1142 (remove_child_of_pending_fork): Adjust.
1143 (remove_new_fork_children): Adjust.
1144 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1145 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1146 * unittests/rsp-low-selftests.c: New file.
1147 * common/rsp-low.h: Include common/byte-vector.h.
1148 (hex2bin): New overload.
1149 * common/rsp-low.c (hex2bin): New overload.
1150
1151 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1152
1153 * inferior.h (private_inferior): Define structure type, add
1154 virtual pure destructor.
1155 (inferior) <priv>: Change type to unique_ptr.
1156 * inferior.c (private_inferior::~private_inferior): Provide
1157 default implementation.
1158 (inferior::~inferior): Don't free priv field.
1159 (exit_inferior_1): Likewise.
1160 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1161 (darwin_exception_info): Remove typedef.
1162 (DEF_VEC_O (darwin_thread_t)); Remove.
1163 (private_inferior): Rename to ...
1164 (darwin_private_inferior): ... this, extend private_inferior.
1165 (get_darwin_inferior): New.
1166 <threads>: Change type to std::vector of darwin_thread_t pointers.
1167 * darwin-nat.c (darwin_check_new_threads): Adjust.
1168 (find_inferior_task_it): Adjust.
1169 (darwin_find_thread); Adjust.
1170 (darwin_suspend_inferior): Adjust.
1171 (darwin_resume_inferior): Adjust.
1172 (darwin_find_new_inferior): Adjust.
1173 (darwin_decode_notify_message): Adjust.
1174 (darwin_send_reply): Adjust.
1175 (darwin_resume_inferior_threads): Adjust.
1176 (darwin_suspend_inferior_threads): Adjust.
1177 (darwin_decode_message): Adjust.
1178 (darwin_wait): Adjust.
1179 (darwin_interrupt): Adjust.
1180 (darwin_deallocate_threads): Adjust.
1181 (darwin_mourn_inferior): Adjust, don't free private data.
1182 (darwin_reply_to_all_pending_messages): Adjust.
1183 (darwin_stop_inferior): Adjust.
1184 (darwin_setup_exceptions): Adjust.
1185 (darwin_kill_inferior): Adjust.
1186 (darwin_setup_request_notification): Adjust.
1187 (darwin_attach_pid): Adjust.
1188 (darwin_init_thread_list): Adjust.
1189 (darwin_setup_fake_stop_event): Adjust.
1190 (darwin_attach): Adjust.
1191 (darwin_detach): Adjust.
1192 (darwin_xfer_partial): Adjust.
1193 (set_enable_mach_exceptions): Adjust.
1194 (darwin_pid_to_exec_file): Adjust.
1195 (darwin_get_ada_task_ptid): Adjust.
1196 * darwin-nat-info.c (get_task_from_args): Adjust.
1197 (info_mach_ports_command): Adjust.
1198 (info_mach_region_command): Adjust.
1199 (info_mach_exceptions_command): Adjust.
1200 * remote.c (private_inferior): Rename to ...
1201 (remote_private_inferior): ... this, initialize fields.
1202 (get_remote_inferior); New.
1203 (remote_commit_resume): Use get_remote_inferior.
1204 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1205
1206 2017-11-24 Pedro Alves <palves@redhat.com>
1207
1208 * NEWS: Mention linespecs and explicit locations, and completion
1209 improvements.
1210
1211 2017-11-24 Yao Qi <yao.qi@linaro.org>
1212
1213 * regcache.c (regcache::dump): Remove footnote_register_size.
1214
1215 2017-11-24 Yao Qi <yao.qi@linaro.org>
1216
1217 * regcache.c (cooked_read_test): Add more test for readonly
1218 regcache.
1219
1220 2017-11-24 Yao Qi <yao.qi@linaro.org>
1221
1222 * gdbarch-selftests.c (test_target_has_registers): Move it to
1223 target.c.
1224 (test_target_has_stack): Likewise.
1225 (test_target_has_memory): Likewise.
1226 (test_target_prepare_to_store): Likewise.
1227 (test_target_store_registers): Likewise.
1228 (test_target_ops): Likewise.
1229 * regcache.c: Include selftest-arch.h and gdbthread.h.
1230 (target_ops_no_register): New class.
1231 (test_target_fetch_registers): New.
1232 (test_target_store_registers): New.
1233 (test_target_xfer_partial): New.
1234 (readwrite_regcache): New.
1235 (cooked_read_test): New.
1236 (_initialize_regcache): Register the test.
1237 * target.c: (test_target_has_registers): Moved from
1238 gdbarch-selftests.c.
1239 (test_target_has_stack): Likewise.
1240 (test_target_has_memory): Likewise.
1241 (test_target_prepare_to_store): Likewise.
1242 (test_target_store_registers): Likewise.
1243 * target.h (test_target_ops): New class.
1244
1245 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1246
1247 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1248 selftest.
1249
1250 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1251
1252 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1253 * arch/aarch64.c (aarch64_create_target_description): Create
1254 new target description.
1255 * features/Makefile: Add new files.
1256 * features/aarch64.c: Remove file.
1257 * features/aarch64-core.c: New autogenerated file.
1258 * features/aarch64-fpu.c: New autogenerated file.
1259 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1260
1261 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1262
1263 * Makefile.in: Add new files.
1264 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1265 aarch64_read_description.
1266 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1267 Call aarch64_read_description.
1268 * aarch64-tdep.c (aarch64_read_description): New function.
1269 (aarch64_gdbarch_init): Call aarch64_read_description.
1270 * aarch64-tdep.h (aarch64_read_description): New function.
1271 * arch/aarch64.c: New file.
1272 * configure.tgt: Add new files.
1273
1274 2017-11-24 Yao Qi <yao.qi@linaro.org>
1275
1276 * mi/mi-main.c (register_changed_p): Update.
1277 * value.c (value_contents_bits_eq): Change return type.
1278 (value_contents_eq): Likewise.
1279 * value.h: Update comments.
1280
1281 2017-11-24 Yao Qi <yao.qi@linaro.org>
1282
1283 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1284 local 'changed'. Remove error.
1285 (register_changed_p): Change return type to bool.
1286
1287 2017-11-24 Yao Qi <yao.qi@linaro.org>
1288
1289 * arch/tic6x.c: New file.
1290 * arch/tic6x.h: New file.
1291 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1292 tic6x-core.xml and tic6x-gp.xml.
1293 * features/tic6x-c6xp.c: Generated.
1294 * features/tic6x-core.c: Generated.
1295 * features/tic6x-gp.c: Generated.
1296 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1297 "tic6x-".
1298
1299 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1300
1301 * mi/mi-main.c (list_available_thread_groups): Change map value
1302 type to std::vector.
1303
1304 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1305
1306 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1307
1308 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1309
1310 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1311 back to...
1312 <children_requested>: ... this.
1313 (varobj_get_num_children, varobj_update): Adjust.
1314
1315 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1316
1317 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1318 (ada_value_has_mutated): Likewise.
1319 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1320 (c_is_path_expr_parent): Likewise.
1321 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1322 (mi_cmd_var_set_frozen): Likewise.
1323 (mi_cmd_var_update_iter): Likewise.
1324 (mi_cmd_var_update): Likewise.
1325 * varobj.c (pretty_printing): Likewise.
1326 (varobj_enable_pretty_printing): Likewise.
1327 (struct varobj_root) <floating, is_valid>: Likewise.
1328 (struct varobj_dynamic) <children_requested>: Likewise.
1329 (delete_variable): Likewise.
1330 (delete_variable_1): Likewise.
1331 (install_variable): Likewise.
1332 (update_type_if_necessary): Likewise.
1333 (install_new_value): Likewise.
1334 (value_of_root): Likewise.
1335 (is_root_p): Likewise.
1336 (varobj_create): Likewise.
1337 (varobj_delete): Likewise.
1338 (varobj_has_more): Likewise.
1339 (varobj_set_frozen): Likewise.
1340 (varobj_get_frozen): Likewise.
1341 (install_dynamic_child): Likewise.
1342 (dynamic_varobj_has_child_method): Likewise.
1343 (update_dynamic_varobj_children): Likewise.
1344 (varobj_get_num_children): Likewise.
1345 (varobj_list_children): Likewise.
1346 (is_path_expr_parent): Likewise.
1347 (varobj_default_is_path_expr_parent): Likewise.
1348 (varobj_is_dynamic_p): Likewise.
1349 (varobj_set_value): Likewise.
1350 (varobj_value_has_mutated): Likewise.
1351 (varobj_update): Likewise.
1352 (check_scope): Likewise.
1353 (value_of_root_1): Likewise.
1354 (varobj_value_get_print_value): Likewise.
1355 (varobj_editable_p): Likewise.
1356 (varobj_value_is_changeable_p): Likewise.
1357 (varobj_floating_p): Likewise.
1358 (varobj_default_value_is_changeable_p): Likewise.
1359 (varobj_invalidate_iter): Likewise.
1360 * varobj.h (struct varobj_update_result) <type_changed,
1361 children_changed, changed, value_installed>: Likewise.
1362 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1363 (struct lang_varobj_ops) <value_is_changeable_p,
1364 value_has_mutated, is_path_expr_parent>: Likewise.
1365 (varobj_delete): Likewise.
1366 (varobj_set_frozen): Likewise.
1367 (varobj_get_frozen): Likewise.
1368 (varobj_set_value): Likewise.
1369 (varobj_update): Likewise.
1370 (varobj_editable_p): Likewise.
1371 (varobj_floating_p): Likewise.
1372 (varobj_has_more): Likewise.
1373 (varobj_is_dynamic_p): Likewise.
1374 (varobj_default_value_is_changeable_p): Likewise.
1375 (varobj_value_is_changeable_p): Likewise.
1376 (varobj_is_anonymous_child): Likewise.
1377 (varobj_default_is_path_expr_parent): Likewise.
1378
1379 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1380
1381 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1382 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1383 <type_str>: Convert to 'std::string'.
1384 <expr>: Convert to 'expression_up'.
1385 (dtrace_probe_arg_s): Delete type and VEC.
1386 (dtrace_probe_enabler_s): Likewise.
1387 (struct dtrace_probe): Replace by...
1388 (class dtrace_static_probe_ops): ...this and...
1389 (class dtrace_probe): ...this.
1390 (dtrace_probe_is_linespec): Rename to...
1391 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1392 to reflect change.
1393 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1394 Adjust code. Create new instance of 'dtrace_probe'.
1395 (dtrace_build_arg_exprs): Rename to...
1396 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1397 reflect change.
1398 (dtrace_get_probes): Rename to...
1399 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1400 to reflect change.
1401 (dtrace_get_arg): Rename to...
1402 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1403 reflect change.
1404 (dtrace_probe_is_enabled): Rename to...
1405 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1406 change.
1407 (dtrace_get_probe_address): Rename to...
1408 (dtrace_probe::get_relocated_address): ...this. Adjust code
1409 to reflect change.
1410 (dtrace_get_probe_argument_count): Rename to...
1411 (dtrace_probe::get_argument_count): ...this. Adjust code to
1412 reflect change.
1413 (dtrace_can_evaluate_probe_arguments): Rename to...
1414 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1415 to reflect change.
1416 (dtrace_evaluate_probe_argument): Rename to...
1417 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1418 reflect change.
1419 (dtrace_compile_to_ax): Rename to...
1420 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1421 reflect change.
1422 (dtrace_probe_destroy): Delete.
1423 (dtrace_type_name): Rename to...
1424 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1425 reflect change.
1426 (dtrace_probe::get_static_ops): New method.
1427 (dtrace_gen_info_probes_table_header): Rename to...
1428 (dtrace_static_probe_ops::gen_info_probes_table_header):
1429 ...this. Adjust code to reflect change.
1430 (dtrace_gen_info_probes_table_values): Rename to...
1431 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1432 code to reflect change.
1433 (dtrace_enable_probe): Rename to...
1434 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1435 change.
1436 (dtrace_disable_probe): Rename to...
1437 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1438 change.
1439 (struct probe_ops dtrace_probe_ops): Delete.
1440 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1441 instead of 'info_probes_for_ops'.
1442 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1443 of 'all_probe_ops'.
1444
1445 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1446 Simon Marchi <simark@simark.ca>
1447
1448 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1449 variable.
1450 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1451 <aexpr>: Change type to 'expression_up'.
1452 (stap_probe_arg_s): Delete type and VEC.
1453 (struct stap_probe): Delete. Replace by...
1454 (class stap_static_probe_ops): ...this and...
1455 (class stap_probe): ...this. Rename variables to add 'm_'
1456 prefix. Do not use 'union' for arguments anymore.
1457 (stap_get_expected_argument_type): Receive probe name instead
1458 of 'struct stap_probe'. Adjust code.
1459 (stap_parse_probe_arguments): Rename to...
1460 (stap_probe::parse_arguments): ...this. Adjust code to
1461 reflect change.
1462 (stap_get_probe_address): Rename to...
1463 (stap_probe::get_relocated_address): ...this. Adjust code
1464 to reflect change.
1465 (stap_get_probe_argument_count): Rename to...
1466 (stap_probe::get_argument_count): ...this. Adjust code
1467 to reflect change.
1468 (stap_get_arg): Rename to...
1469 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1470 reflect change.
1471 (can_evaluate_probe_arguments): Rename to...
1472 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1473 to reflect change.
1474 (stap_evaluate_probe_argument): Rename to...
1475 (stap_probe::evaluate_argument): ...this. Adjust code
1476 to reflect change.
1477 (stap_compile_to_ax): Rename to...
1478 (stap_probe::compile_to_ax): ...this. Adjust code to
1479 reflect change.
1480 (stap_probe_destroy): Delete.
1481 (stap_modify_semaphore): Adjust comment.
1482 (stap_set_semaphore): Rename to...
1483 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1484 change.
1485 (stap_clear_semaphore): Rename to...
1486 (stap_probe::clear_semaphore): ...this. Adjust code to
1487 reflect change.
1488 (stap_probe::get_static_ops): New method.
1489 (handle_stap_probe): Adjust code to create instance of
1490 'stap_probe'.
1491 (stap_get_probes): Rename to...
1492 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1493 reflect change.
1494 (stap_probe_is_linespec): Rename to...
1495 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1496 reflect change.
1497 (stap_type_name): Rename to...
1498 (stap_static_probe_ops::type_name): ...this. Adjust code to
1499 reflect change.
1500 (stap_gen_info_probes_table_header): Rename to...
1501 (stap_static_probe_ops::gen_info_probes_table_header):
1502 ...this. Adjust code to reflect change.
1503 (stap_gen_info_probes_table_values): Rename to...
1504 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1505 code to reflect change.
1506 (struct probe_ops stap_probe_ops): Delete.
1507 (info_probes_stap_command): Use 'info_probes_for_spops'
1508 instead of 'info_probes_for_ops'.
1509 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1510 of 'all_probe_ops'.
1511
1512 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1513
1514 * break-catch-throw.c (fetch_probe_arguments): Use
1515 'probe.prob' instead of 'probe.probe'.
1516 * breakpoint.c (create_longjmp_master_breakpoint): Call
1517 'can_evaluate_arguments' and 'get_relocated_address' methods
1518 from probe.
1519 (create_exception_master_breakpoint): Likewise.
1520 (add_location_to_breakpoint): Use 'sal->prob' instead of
1521 'sal->probe'.
1522 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1523 probe.
1524 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1525 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1526 of 'probe_ops'.
1527 (probe_key_free): Call 'delete' on probe.
1528 (check_exception_resume): Use 'probe.prob' instead of
1529 'probe.probe'.
1530 * location.c (string_to_event_location_basic): Call
1531 'probe_linespec_to_static_ops'.
1532 * probe.c (class any_static_probe_ops): New class.
1533 (any_static_probe_ops any_static_probe_ops): New variable.
1534 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1535 argument. Adjust code to reflect change.
1536 (parse_probes): Use 'static_probe_ops' instead of
1537 'probe_ops'. Adjust code to reflect change.
1538 (find_probes_in_objfile): Call methods to get name and
1539 provider from probe.
1540 (find_probe_by_pc): Use 'result.prob' instead of
1541 'result.probe'. Call 'get_relocated_address' method from
1542 probe.
1543 (collect_probes): Adjust comment and argument list to receive
1544 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1545 reflect change. Call necessary methods from probe.
1546 (compare_probes): Call methods to get name and provider from
1547 probes.
1548 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1549 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1550 adjust code accordingly.
1551 (print_ui_out_not_applicables): Likewise.
1552 (info_probes_for_ops): Rename to...
1553 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1554 as argument instead of 'probe_ops'. Adjust code. Call
1555 necessary methods from probe.
1556 (info_probes_command): Use 'info_probes_for_spops'.
1557 (enable_probes_command): Pass correct argument to
1558 'collect_probes'. Call methods from probe.
1559 (disable_probes_command): Likewise.
1560 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1561 (get_probe_argument_count): Move to
1562 'any_static_probe_ops::get_argument_count'.
1563 (can_evaluate_probe_arguments): Move to
1564 'any_static_probe_ops::can_evaluate_arguments'.
1565 (evaluate_probe_argument): Move to
1566 'any_static_probe_ops::evaluate_argument'.
1567 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1568 'probe.probe'.
1569 (probe_linespec_to_ops): Rename to...
1570 (probe_linespec_to_static_ops): ...this. Adjust code.
1571 (probe_any_is_linespec): Rename to...
1572 (any_static_probe_ops::is_linespec): ...this.
1573 (probe_any_get_probes): Rename to...
1574 (any_static_probe_ops::get_probes): ...this.
1575 (any_static_probe_ops::type_name): New method.
1576 (any_static_probe_ops::gen_info_probes_table_header): New
1577 method.
1578 (compute_probe_arg): Use 'pc_probe.prob' instead of
1579 'pc_probe.probe'. Call methods from probe.
1580 (compile_probe_arg): Likewise.
1581 (std::vector<const probe_ops *> all_probe_ops): Delete.
1582 (std::vector<const static_probe_ops *> all_static_probe_ops):
1583 New variable.
1584 (_initialize_probe): Use 'all_static_probe_ops' instead of
1585 'all_probe_ops'.
1586 * probe.h (struct info_probe_column) <field_name>: Delete
1587 extraneous newline
1588 (info_probe_column_s): Delete type and VEC.
1589 (struct probe_ops): Delete. Replace with...
1590 (class static_probe_ops): ...this and...
1591 (clas probe): ...this.
1592 (struct bound_probe) <bound_probe>: Delete extraneous
1593 newline. Adjust constructor to receive 'probe' instead of
1594 'struct probe'.
1595 <probe>: Rename to...
1596 <prob>: ...this. Delete extraneous newline.
1597 <objfile>: Delete extraneous newline.
1598 (register_probe_ops): Delete unused prototype.
1599 (info_probes_for_ops): Rename to...
1600 (info_probes_for_spops): ...this. Adjust comment.
1601 (get_probe_address): Move to 'probe::get_address'.
1602 (get_probe_argument_count): Move to
1603 'probe::get_argument_count'.
1604 (can_evaluate_probe_arguments): Move to
1605 'probe::can_evaluate_arguments'.
1606 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1607 * solib-svr4.c (struct svr4_info): Adjust comment.
1608 (struct probe_and_action) <probe>: Rename to...
1609 <prob>: ...this.
1610 (register_solib_event_probe): Receive 'probe' instead of
1611 'struct probe' as argument. Use 'prob' instead of 'probe'
1612 when applicable.
1613 (solib_event_probe_action): Call 'get_argument_count' method
1614 from probe. Adjust comment.
1615 (svr4_handle_solib_event): Adjust comment. Call
1616 'evaluate_argument' method from probe.
1617 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1618 from probe.
1619 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1620 'struct probe'. Call 'can_evaluate_arguments' from probe.
1621 * symfile.h: Forward declare 'class probe' instead of 'struct
1622 probe'.
1623 * symtab.h: Likewise.
1624 (struct symtab_and_line) <probe>: Rename to...
1625 <prob>: ...this.
1626 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1627 Call probe methods.
1628 (stop_tracing): Likewise.
1629
1630 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1631
1632 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1633 trailing newline at end of string in call to warning.
1634
1635 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1636
1637 * osdata.h: Include vector isntead of vec.h.
1638 (osdata_column_s): Remove typedef.
1639 (struct osdata_column): Add constructor.
1640 <name, value>: Change type to std::string.
1641 (DEF_VEC_O (osdata_column_s)): Remove.
1642 (osdata_item_s): Remove typedef.
1643 (struct osdata_item) <columns>: Change type to std::vector.
1644 (DEF_VEC_O (osdata_item_s)): Remove.
1645 (struct osdata): Add constructor.
1646 <type>: Change type to std::string.
1647 <items>: Change type to std::vector.
1648 (osdata_p): Remove typedef.
1649 (DEF_VEC_P (osdata_p)): Remove.
1650 (osdata_parse): Return a unique_ptr.
1651 (osdata_free): Remove.
1652 (make_cleanup_osdata_free): Remove.
1653 (get_osdata): Return a unique_ptr.
1654 (get_osdata_column): Return pointer to std::string, take a
1655 reference to osdata_item as parameter.
1656 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1657 unique_ptr.
1658 <property_name>: Change type to std::string.
1659 (osdata_start_osdata): Allocate osdata with new and adjust.
1660 (osdata_start_item): Adjust.
1661 (osdata_start_column): Adjust.
1662 (osdata_end_column): Adjust.
1663 (clear_parsing_data): Remove.
1664 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1665 (osdata_item_clear): Remove.
1666 (get_osdata): return a unique_ptr and adjust.
1667 (get_osdata_column): Return a pointer to std::string and adjust.
1668 (info_osdata): Adjust.
1669 * mi/mi-main.c: Include <map>.
1670 (free_vector_of_osdata_items): Remove.
1671 (list_available_thread_groups): Adjust, use std::map instead of
1672 splay tree.
1673
1674 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1675
1676 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1677 case in switch.
1678
1679 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1680
1681 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1682
1683 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1684
1685 * varobj.h (struct varobj_update_result): Add constructor, add
1686 move constructor, disable copy and assign, initialize fields.
1687 <newobj>: Change type to std::vector.
1688 (varobj_update): Return std::vector.
1689 * varobj.c (install_dynamic_child): Change VEC parameters to
1690 std::vector and adjust.
1691 (update_dynamic_varobj_children): Likewise.
1692 (varobj_update): Return std::vector and adjust.
1693 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1694
1695 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1696
1697 * varobj.h (struct varobj) <parent>: Remove const.
1698 <children>: Change type to std::vector.
1699 (varobj_list_children): Return std::vector const reference.
1700 (varobj_restrict_range): Change parameter type to std::vector
1701 const reference.
1702 * varobj.c (varobj_has_more): Adjust.
1703 (varobj_restrict_range): Change parameter type to std::vector
1704 const reference and adjust.
1705 (install_dynamic_child): Adjust.
1706 (update_dynamic_varobj_children): Adjust.
1707 (varobj_list_children): Return std::vector const reference and
1708 adjust.
1709 (varobj_add_child): Adjust.
1710 (update_type_if_necessary): Adjust.
1711 (varobj_update): Adjust.
1712 (delete_variable_1): Adjust.
1713 * ada-varobj.c (ada_value_has_mutated): Adjust.
1714 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1715
1716 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1717
1718 * varobj.h (struct varobj): Add constructor and destructor,
1719 initialize fields.
1720 * varobj.c (struct varobj_root): Initialize fields.
1721 (struct varobj_dynamic): Initialize fields.
1722 (varobj_create): Use unique_ptr instead of cleanup. Create
1723 varobj with new instead of new_root_variable.
1724 (delete_variable_1): Free variable with delete instead of
1725 free_variable.
1726 (create_child_with_value): Create variable with new instead of
1727 new_variable.
1728 (varobj::varobj): New.
1729 (varobj::~varobj): New (body mostly coming from free_variable).
1730 (new_variable): Remove.
1731 (free_variable): Remove.
1732 (do_free_variable_cleanup): Remove.
1733 (make_cleanup_free_variable): Remove.
1734
1735 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1736
1737 * core-regset.c: Remove file.
1738 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1739
1740 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1741
1742 * NEWS: Document use of GNU MPFR.
1743 * README: Likewise.
1744
1745 * Makefile.in (LIBMPFR): Add define.
1746 (CLIBS): Add $(LIBMPFR).
1747 * configure.ac: Add --with-mpfr configure option.
1748 * configure: Regenerate.
1749 * config.in: Regenerate.
1750
1751 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1752 (class mpfr_float_ops): New type.
1753 (mpfr_float_ops::from_target): Two new overloaded functions.
1754 (mpfr_float_ops::to_target): Likewise.
1755 (mpfr_float_ops::to_string): New function.
1756 (mpfr_float_ops::from_string): Likewise.
1757 (mpfr_float_ops::to_longest): Likewise.
1758 (mpfr_float_ops::from_longest): Likewise.
1759 (mpfr_float_ops::from_ulongest): Likewise.
1760 (mpfr_float_ops::to_host_double): Likewise.
1761 (mpfr_float_ops::from_host_double): Likewise.
1762 (mpfr_float_ops::convert): Likewise.
1763 (mpfr_float_ops::binop): Likewise.
1764 (mpfr_float_ops::compare): Likewise.
1765 (get_target_float_ops): Use mpfr_float_ops if available.
1766
1767 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1768
1769 * target-float.c: Do not include <math.h>.
1770 Include <cmath> and <limits>.
1771 (DOUBLEST): Do not define.
1772 (class target_float_ops): New type.
1773 (class host_float_ops): New templated type.
1774 (class decimal_float_ops): New type.
1775
1776 (floatformat_to_doublest): Rename to ...
1777 (host_float_ops<T>::from_target): ... this. Use template type T
1778 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1779 (host_float_ops<T>::from_target): New overload using a type argument.
1780 (floatformat_from_doublest): Rename to ...
1781 (host_float_ops<T>::to_target): ... this. Use template type T
1782 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1783 (host_float_ops<T>::to_target): New overload using a type argument.
1784 (floatformat_printf_format): New function.
1785 (struct printf_length_modifier): New templated type.
1786 (floatformat_to_string): Rename to ...
1787 (host_float_ops<T>::to_string): ... this. Use type instead of
1788 floatformat argument. Use floatformat_printf_format and
1789 printf_length_modifier. Remove special handling of invalid numbers,
1790 infinities and NaN (moved to target_float_to_string).
1791 (struct scanf_length_modifier): New templated type.
1792 (floatformat_from_string): Rename to ...
1793 (host_float_ops<T>::from_string): ... this. Use type instead of
1794 floatformat argument. Use scanf_length_modifier.
1795 (floatformat_to_longest): Rename to ...
1796 (host_float_ops<T>::to_longest): ... this. Use type instead of
1797 floatformat argument. Handle out-of-range values deterministically.
1798 (floatformat_from_longest): Rename to ...
1799 (host_float_ops<T>::from_longest): ... this. Use type instead of
1800 floatformat argument.
1801 (floatformat_from_ulongest): Rename to ...
1802 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1803 floatformat argument.
1804 (floatformat_to_host_double): Rename to ...
1805 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1806 floatformat argument.
1807 (floatformat_from_host_double): Rename to ...
1808 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1809 floatformat argument.
1810 (floatformat_convert): Rename to ...
1811 (host_float_ops<T>::convert): ... this. Use type instead of
1812 floatformat arguments. Remove handling of no-op conversions.
1813 (floatformat_binop): Rename to ...
1814 (host_float_ops<T>::binop): ... this. Use type instead of
1815 floatformat arguments.
1816 (floatformat_compare): Rename to ...
1817 (host_float_ops<T>::compare): ... this. Use type instead of
1818 floatformat arguments.
1819
1820 (match_endianness): Use type instead of length/byte_order arguments.
1821 (set_decnumber_context): Likewise.
1822 (decimal_from_number): Likewise. Update calls.
1823 (decimal_to_number): Likewise.
1824 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1825 (decimal_float_ops::to_host_double): New dummy function.
1826 (decimal_float_ops::from_host_double): Likewise.
1827 (decimal_to_string): Rename to ...
1828 (decimal_float_ops::to_string): ... this. Use type instead of
1829 length/byte_order arguments. Update calls.
1830 (decimal_from_string): Rename to ...
1831 (decimal_float_ops::from_string): ... this. Use type instead of
1832 length/byte_order arguments. Update calls.
1833 (decimal_from_longest): Rename to ...
1834 (decimal_float_ops::from_longest): ... this. Use type instead of
1835 length/byte_order arguments. Update calls.
1836 (decimal_from_ulongest): Rename to ...
1837 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1838 length/byte_order arguments. Update calls.
1839 (decimal_to_longest): Rename to ...
1840 (decimal_float_ops::to_longest): ... this. Use type instead of
1841 length/byte_order arguments. Update calls.
1842 (decimal_binop): Rename to ...
1843 (decimal_float_ops::binop): ... this. Use type instead of
1844 length/byte_order arguments. Update calls.
1845 (decimal_compare): Rename to ...
1846 (decimal_float_ops::compare): ... this. Use type instead of
1847 length/byte_order arguments. Update calls.
1848 (decimal_convert): Rename to ...
1849 (decimal_float_ops::convert): ... this. Use type instead of
1850 length/byte_order arguments. Update calls.
1851
1852 (target_float_same_category_p): New function.
1853 (target_float_same_format_p): Likewise.
1854 (target_float_format_length): Likewise.
1855 (enum target_float_ops_kind): New type.
1856 (get_target_float_ops_kind): New function.
1857 (get_target_float_ops): Three new overloaded functions.
1858
1859 (target_float_is_zero): Update call.
1860 (target_float_to_string): Add special handling of invalid numbers,
1861 infinities and NaN (moved from floatformat_to_string). Use
1862 target_float_ops callback.
1863 (target_float_from_string): Use target_float_ops callback.
1864 (target_float_to_longest): Likewise.
1865 (target_float_from_longest): Likewise.
1866 (target_float_from_ulongest): Likewise.
1867 (target_float_to_host_double): Likewise.
1868 (target_float_from_host_double): Likewise.
1869 (target_float_convert): Add special case for no-op conversions.
1870 Use target_float_ops callback.
1871 (target_float_binop): Use target_float_ops callback.
1872 (target_float_compare): Likewise.
1873
1874 2017-11-22 Yao Qi <yao.qi@linaro.org>
1875
1876 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1877
1878 2017-11-22 Yao Qi <yao.qi@linaro.org>
1879
1880 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1881 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1882
1883 2017-11-21 Jerome Guitton <guitton@adacore.com>
1884
1885 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1886 with event ptid from the lower layer before doing the
1887 ravenscar-specific update.
1888
1889 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1890
1891 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1892 the ptid's TID is nonzero.
1893
1894 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1895
1896 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1897 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1898 Make non-static. Change return type to char *. Adjust code
1899 accordingly. Rewrite the function's documentation.
1900 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1901 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1902 we have enough debugging information in the runtime to support
1903 Ada task debugging before we enable the ravenscar-thread layer.
1904
1905 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1906
1907 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1908 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1909 * ravenscar-thread.c: Add into comment.
1910 (base_magic_null_ptid): Delete.
1911 (base_ptid): Change documentation.
1912 (ravenscar_active_task): Renames ravenscar_running_thread.
1913 All callers updated throughout.
1914 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1915 (ravenscar_task_is_currently_active): Likewise.
1916 (get_base_thread_from_ravenscar_task): Ditto.
1917 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1918 (ravenscar_runtime_initialized): Likewise.
1919 (get_running_thread_id): Add new parameter "cpu". Adjust
1920 implementation to handle this new parameter.
1921 (ravenscar_fetch_registers): Small adjustment to use
1922 is_ravenscar_task and ravenscar_task_is_currently_active in
1923 order to decide whether to use the target beneath or this
1924 module's arch_ops.
1925 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1926 (ravenscar_stopped_by_sw_breakpoint): Use
1927 get_base_thread_from_ravenscar_task to get the underlying
1928 thread, rather than using base_ptid.
1929 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1930 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1931 Likewise.
1932 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1933
1934 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1935
1936 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1937 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1938 (get_tcb_types_info): Set fieldnos.base_cpu.
1939 (read_atcb): Set task_info->base_cpu.
1940 (info_task): Print "Base CPU" info if set by runtime.
1941
1942 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1943
1944 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1945 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1946 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1947 New functions.
1948 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1949 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1950 to_stopped_data_address and to_core_of_thread fields of
1951 ravenscar_ops.
1952
1953 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1954
1955 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1956 (struct gdbarch_tdep): New member long_double_abi.
1957 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1958 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1959 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1960 format depending on long_double_abi tdep member.
1961 (ppc_floatformat_for_type): Handle __ibm128 type.
1962
1963 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1964
1965 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1966
1967 2017-11-21 Pedro Alves <palves@redhat.com>
1968
1969 * dwarf2read.c (mapped_index::find_name_components_bounds)
1970 <completion mode, upper bound>: Use std::lower_bound instead of
1971 std::upper_bound.
1972 (test_mapped_index_find_name_component_bounds): Remove incorrect
1973 "t1_fund" from expected symbols.
1974
1975 2017-11-21 Pedro Alves <palves@redhat.com>
1976
1977 * dwarf2read.c (mapped_index::name_components_casing): New field.
1978 (mapped_index) <build_name_components,
1979 find_name_components_bounds): Declare new methods.
1980 (mapped_index::find_name_components_bounds)
1981 (mapped_index::build_name_components): New methods, factored out
1982 from dw2_expand_symtabs_matching_symbol.
1983 (check_find_bounds_finds)
1984 (test_mapped_index_find_name_component_bounds): New.
1985 (run_test): Rename to ...
1986 (test_dw2_expand_symtabs_matching_symbol): ... this.
1987 (run_test): Reimplement.
1988
1989 2017-11-21 Pedro Alves <palves@redhat.com>
1990
1991 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1992 (symbol_end): Use cp_ident_is_alnum.
1993 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1994 * dwarf2read.c (make_sort_after_prefix_name): New function.
1995 (dw2_expand_symtabs_matching_symbol): Use it.
1996 (test_symbols): Add more symbols.
1997 (run_test): Add tests.
1998
1999 2017-11-17 Tom Tromey <tom@tromey.com>
2000
2001 * symtab.h (enum symbol_subclass_kind): New.
2002 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
2003 Remove.
2004 <subclass>: New member.
2005 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
2006 * rust-lang.c (rust_get_trait_object_pointer): Update.
2007 * dwarf2read.c (read_func_scope): Update.
2008 (read_variable): Update.
2009
2010 2017-11-17 Tom Tromey <tom@tromey.com>
2011
2012 * dwarf2read.c (read_func_scope): Update.
2013 * symtab.h (struct template_symbol): Derive from symbol.
2014 <base>: Remove.
2015
2016 2017-11-17 Tom Tromey <tom@tromey.com>
2017
2018 * symtab.h (struct symbol) <is_rust_vtable>: New member.
2019 (struct rust_vtable_symbol): New.
2020 (find_symbol_at_address): Declare.
2021 * symtab.c (find_symbol_at_address): New function.
2022 * symfile.h (struct quick_symbol_functions)
2023 <find_compunit_symtab_by_address>: New member.
2024 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
2025 function.
2026 (debug_sym_quick_functions): Link to
2027 debug_qf_find_compunit_symtab_by_address.
2028 * rust-lang.c (rust_get_trait_object_pointer): New function.
2029 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
2030 rust_get_trait_object_pointer.
2031 * psymtab.c (psym_relocate): Clear psymbol_map.
2032 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
2033 functions.
2034 (psym_functions): Link to psym_find_compunit_symtab_by_address.
2035 * objfiles.h (struct objfile) <psymbol_map>: New member.
2036 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
2037 (process_die) <DW_TAG_variable>: New case. Call read_variable.
2038 (rust_containing_type, read_variable): New functions.
2039
2040 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
2043
2044 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * common/filestuff.c: Include <algorithm>.
2047 (open_fds): Change type to std::vector<int>.
2048 (do_mark_open_fd): Adjust.
2049 (unmark_fd_no_cloexec): Adjust.
2050 (do_close): Adjust.
2051
2052 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2053
2054 * breakpoint.c (output_thread_groups): Take an std::vector.
2055 (print_one_breakpoint_location): Adjust.
2056
2057 2017-11-17 Joel Brobecker <brobecker@adacore.com>
2058
2059 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
2060 (ada_evaluate_subexp_for_cast): New function.
2061 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
2062 ada_evaluate_subexp_for_cast.
2063 (ada_evaluate_subexp) <nosideret>: Replace code by call to
2064 eval_skip_value.
2065 * eval.c (evaluate_var_value): Make non-static.
2066 (evaluate_var_msym_value, eval_skip_value): Likewise.
2067 * value.h (evaluate_var_value, evaluate_var_msym_value)
2068 (eval_skip_value): Declare.
2069
2070 2017-11-16 Joel Brobecker <brobecker@adacore.com>
2071
2072 * ada-lang.c (ada_value_cast): Remove parameter "noside".
2073 Update all callers.
2074
2075 2017-11-16 Pedro Alves <palves@redhat.com>
2076
2077 * python/py-unwind.c (pyuw_sniffer): Translate
2078 PyExc_KeyboardInterrupt to a GDB Quit exception.
2079
2080 2017-11-16 Pedro Alves <palves@redhat.com>
2081
2082 * infrun.c (resume_cleanups): Delete.
2083 (resume): No longer install a resume_cleanups cleanup nor call
2084 QUIT.
2085 (proceed): Pass the terminal to the inferior.
2086 (keep_going_pass_signal): No longer install a resume_cleanups
2087 cleanup.
2088
2089 2017-11-16 Pedro Alves <palves@redhat.com>
2090
2091 * inf-loop.c (inferior_event_handler): Don't swallow the exception
2092 if the prompt is blocked.
2093
2094 2017-11-16 Pedro Alves <palves@redhat.com>
2095
2096 * breakpoint.c (insert_bp_location): Replace bp_err and
2097 bp_err_message locals by a gdb_exception local.
2098
2099 2017-11-16 Pedro Alves <palves@redhat.com>
2100
2101 * inflow.c (scoped_ignore_sigttou): New class.
2102 (child_terminal_ours_1, new_tty): Use it.
2103
2104 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2105
2106 * target-float.c (decimal_from_number): Add byte_order argument and
2107 call match_endianness. Error if unknown floating-point type.
2108 (decimal_to_number): Add byte_order argument and call match_endianness.
2109 (decimal_from_longest): Update call. Do not call match_endianness.
2110 (decimal_from_ulongest): Likewise.
2111 (decimal_binop): Likewise.
2112 (decimal_is_zero): Likewise.
2113 (decimal_compare): Likewise.
2114 (decimal_convert): Likewise.
2115
2116 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
2117
2118 * python/python.c (gdbpy_rbreak): New function.
2119 * NEWS: Document Python rbreak feature.
2120
2121 2017-11-16 Yao Qi <yao.qi@linaro.org>
2122
2123 * features/tic6x-c62x.xml: Remove.
2124 * features/tic6x-c64x.xml: Remove.
2125 * features/tic6x-c64xp.xml: Remove.
2126
2127 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2128
2129 * symtab.h: Include <array>.
2130
2131 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2132
2133 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2134 (bsd_kvm_proc_cmd): Likewise.
2135
2136 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2137
2138 * tui/tui-win.c (window_name_completer): Replace VEC with
2139 std::vector.
2140
2141 2017-11-15 Andrew Cagney <cagney@gnu.org>
2142
2143 * MAINTAINERS: Remove no-longer applicable entries.
2144
2145 2017-11-15 Andrew Cagney <cagney@gnu.org>
2146
2147 * MAINTAINERS: Move self to Past Maintainers.
2148
2149 2017-11-15 Yao Qi <yao.qi@linaro.org>
2150
2151 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2152 * features/nios2-linux.c: Remove.
2153 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2154 initialize_tdesc_nios2_linux.
2155
2156 2017-11-15 Yao Qi <yao.qi@linaro.org>
2157
2158 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2159 M68HC11_LAST_HARD_REG + 1.
2160
2161 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2162
2163 PR gdb/22388
2164 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2165 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2166 Return TARGET_XFER_EOF if size of returned data is 0.
2167
2168 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2169
2170 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2171 memory-map-selftests.c.
2172 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2173 * memory-map.c (memory_map_start_memory): Fix computation of hi
2174 address.
2175 * unittests/memory-map-selftests.c: New file.
2176
2177 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2178
2179 * ada-lang.c: Fix some typos in the general command documenting
2180 how Ada expressions are being evaluated and how their result
2181 is printed.
2182
2183 2017-11-09 Tom Tromey <tom@tromey.com>
2184
2185 * psymtab.c (psymbol_hash): Do not hash string contents.
2186 (psymbol_compare): Add comment.
2187
2188 2017-11-09 Tom Tromey <tom@tromey.com>
2189
2190 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2191
2192 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2193
2194 * ada-exp.y (write_var_from_sym): Remove parameter
2195 "orig_left_context". Update all callers.
2196
2197 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2198
2199 * tracepoint.h (class collection_list) <stringify>: Return
2200 std::vector<std::string>.
2201 (encode_actions_rsp): Change parameters to
2202 std::vector<std::string> *.
2203 * tracepoint.c (collection_list::stringify): Return
2204 std::vector<std::string> and adjust accordingly.
2205 (encode_actions_rsp): Changee parameters to
2206 std::vector<std::string> and adjust accordingly.
2207 * remote.c (free_actions_list),
2208 free_actions_list_cleanup_wrapper): Remove.
2209 (remote_download_tracepoint): Adjust to std::vector.
2210
2211 2017-11-08 Tom Tromey <tom@tromey.com>
2212
2213 * dwarf2read.c (symbolp): Remove typedef.
2214 (read_func_scope): Use std::vector.
2215 (process_structure_scope): Use std::vector.
2216
2217 2017-11-08 Pedro Alves <palves@redhat.com>
2218
2219 * ada-lang.c (ada_make_symbol_completion_list): Use
2220 completion_skip_symbol.
2221 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2222 (symbol_is_function_or_method(symbol*)): New.
2223 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2224 completion_skip_symbol.
2225 (default_collect_symbol_completion_matches_break_on): Use
2226 completion_skip_symbol. Pass down mode.
2227 (collect_file_symbol_completion_matches): Pass down mode.
2228 * symtab.h (symbol_is_function_or_method): New declarations.
2229 (completion_skip_symbol): New template function.
2230
2231 2017-11-08 Pedro Alves <palves@redhat.com>
2232
2233 * linespec.c (iterate_over_all_matching_symtabs): Add
2234 search_domain parameter. Pass it down to expand_symtabs_matching.
2235 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2236 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2237 search_domain.
2238 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2239 Pass it down.
2240 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2241 symbols.
2242 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2243 it down.
2244
2245 2017-11-08 Pedro Alves <palves@redhat.com>
2246
2247 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2248 text_len locals and don't pass them down.
2249 * symtab.c (completion_list_add_name): Remove
2250 sym_text/sym_text_len parameters and adjust.
2251 (completion_list_add_symbol, completion_list_add_msymbol)
2252 (completion_list_objc_symbol, completion_list_add_fields)
2253 (add_symtab_completions): Likewise.
2254 (default_collect_symbol_completion_matches_break_on)
2255 (collect_file_symbol_completion_matches): Remove sym_text_len
2256 local and don't pass it down.
2257 * symtab.h (completion_list_add_name): Remove
2258 sym_text/sym_text_len parameters.
2259
2260 2017-11-08 Pedro Alves <palves@redhat.com>
2261
2262 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2263 unittests/lookup_name_info-selftests.c.
2264 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2265 * cp-support.c: Include "selftest.h".
2266 (cp_remove_params_1): Rename from cp_remove_params. Add
2267 'require_param' parameter, and handle it.
2268 (cp_remove_params): Reimplement.
2269 (cp_remove_params_if_any): New.
2270 (selftests::quote): New.
2271 (selftests::check_remove_params): New.
2272 (selftests::test_cp_remove_params): New.
2273 (_initialize_cp_support): Install
2274 selftests::test_cp_remove_params.
2275 * cp-support.h (cp_remove_params_if_any): Declare.
2276 * dwarf2read.c :Include "selftest.h".
2277 (dw2_expand_symtabs_matching_symbol): Use
2278 lookup_name_info::make_ignore_params.
2279 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2280 (selftests::dw2_expand_symtabs_matching::string_or_null)
2281 (selftests::dw2_expand_symtabs_matching::check_match)
2282 (selftests::dw2_expand_symtabs_matching::test_symbols)
2283 (selftests::dw2_expand_symtabs_matching::run_test): New.
2284 (_initialize_dwarf2_read): Register
2285 selftests::dw2_expand_symtabs_matching::run_test.
2286 * psymtab.c (psym_expand_symtabs_matching): Use
2287 lookup_name_info::make_ignore_params.
2288 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2289 If the lookup name wants to ignore parameters, strip them.
2290 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2291 code handling '('.
2292 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2293 (default_collect_symbol_completion_matches_break_on): Don't try to
2294 strip parameters.
2295 * symtab.h (lookup_name_info::lookup_name_info): Add
2296 'ignore_parameters' parameter.
2297 (lookup_name_info::ignore_parameters)
2298 (lookup_name_info::make_ignore_params): New methods.
2299 (lookup_name_info::m_ignore_parameters): New field.
2300 * unittests/lookup_name_info-selftests.c: New file.
2301
2302 2017-11-08 Pedro Alves <palves@redhat.com>
2303
2304 * dwarf2read.c (dw2_expand_marked_cus)
2305 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2306 (dw2_expand_symtabs_matching): Move further below.
2307 (dw2_expand_marked_cus): Reindent.
2308
2309 2017-11-08 Pedro Alves <palves@redhat.com>
2310
2311 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2312 (struct name_component): New.
2313 (mapped_index::name_components): New field.
2314 (mapped_index::symbol_name_at): New method.
2315 (dwarf2_read_index): Call mapped_index ctor.
2316 (dw2_map_matching_symbols): Add comment about name_components
2317 table.
2318 (dw2_expand_symtabs_matching): Factor part to...
2319 (dw2_expand_symtabs_matching_symbol): ... this new function.
2320 Build name components table, and lookup symbols in it before
2321 calling the name matcher.
2322 (dw2_expand_marked_cus): New, factored out from
2323 dw2_expand_symtabs_matching.
2324 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2325
2326 2017-11-08 Pedro Alves <palves@redhat.com>
2327
2328 * ada-lang.c (ada_encode): Rename to ..
2329 (ada_encode_1): ... this. Add throw_errors parameter and handle
2330 it.
2331 (ada_encode): Reimplement.
2332 (match_name): Delete, folded into full_name.
2333 (resolve_subexp): No longer pass the encoded name to
2334 ada_lookup_symbol_list.
2335 (should_use_wild_match): Delete.
2336 (name_match_type_from_name): New.
2337 (ada_lookup_simple_minsym): Use lookup_name_info and the
2338 language's symbol_name_matcher_ftype.
2339 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2340 (ada_add_block_renamings): Adjust to use lookup_name_info.
2341 (ada_lookup_name): New.
2342 (add_nonlocal_symbols, ada_add_all_symbols)
2343 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2344 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2345 (ada_name_for_lookup): Delete.
2346 (ada_lookup_encoded_symbol): Construct a verbatim name.
2347 (wild_match): Reverse sense of return type. Use bool.
2348 (full_match): Reverse sense of return type. Inline bits of old
2349 match_name here.
2350 (ada_add_block_symbols): Adjust to use lookup_name_info.
2351 (symbol_completion_match): Delete, folded into...
2352 (ada_lookup_name_info::matches): ... .this new method.
2353 (symbol_completion_add): Delete.
2354 (ada_collect_symbol_completion_matches): Add name_match_type
2355 parameter. Adjust to use lookup_name_info and
2356 completion_list_add_name.
2357 (get_var_value, ada_add_global_exceptions): Adjust to use
2358 lookup_name_info.
2359 (ada_get_symbol_name_cmp): Delete.
2360 (do_wild_match, do_full_match): New functions.
2361 (ada_lookup_name_info::ada_lookup_name_info): New method.
2362 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2363 functions.
2364 (ada_language_defn): Install ada_get_symbol_name_matcher.
2365 * ada-lex.l (processId): If name starts with '<', copy it
2366 verbatim.
2367 * block.c (block_iter_match_step, block_iter_match_first)
2368 (block_iter_match_next, block_lookup_symbol)
2369 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2370 lookup_name_info.
2371 * block.h (block_iter_match_first, block_iter_match_next)
2372 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2373 * c-lang.c (c_language_defn, cplus_language_defn)
2374 (asm_language_defn, minimal_language_defn): Adjust comments to
2375 refer to la_get_symbol_name_matcher.
2376 * completer.c (complete_files_symbols)
2377 (collect_explicit_location_matches, symbol_completer): Pass a
2378 symbol_name_match_type down.
2379 * completer.h (class completion_match, completion_match_result):
2380 New classes.
2381 (completion_tracker::reset_completion_match_result): New method.
2382 (completion_tracker::m_completion_match_result): New field.
2383 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2384 lookup_name_info.
2385 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2386 functions.
2387 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2388 * d-lang.c: Adjust comments to refer to
2389 la_get_symbol_name_matcher.
2390 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2391 Adjust to use lookup_name_info.
2392 (dict_iter_match_first, dict_iter_match_next)
2393 (iter_match_first_hashed, iter_match_next_hashed)
2394 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2395 with a lookup_name_info.
2396 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2397 Likewise.
2398 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2399 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2400 (gdb_index_symbol_name_matcher): New class.
2401 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2402 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2403 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2404 with a symbol_name_match_type.
2405 (f_language_defn): Adjust comments to refer to
2406 la_get_symbol_name_matcher.
2407 * go-lang.c (go_language_defn): Adjust comments to refer to
2408 la_get_symbol_name_matcher.
2409 * language.c (default_symbol_name_matcher)
2410 (language_get_symbol_name_matcher): New functions.
2411 (unknown_language_defn, auto_language_defn): Adjust comments to
2412 refer to la_get_symbol_name_matcher.
2413 * language.h (symbol_name_cmp_ftype): Delete.
2414 (language_defn) <la_collect_symbol_completion_matches>: Add match
2415 type parameter.
2416 <la_get_symbol_name_cmp>: Delete field.
2417 <la_get_symbol_name_matcher>: New field.
2418 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2419 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2420 Declare.
2421 * linespec.c (iterate_over_all_matching_symtabs)
2422 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2423 (find_methods): Add language parameter, and use lookup_name_info
2424 and the language's symbol_name_matcher_ftype.
2425 (linespec_complete_function): Adjust.
2426 (lookup_prefix_sym): Use lookup_name_info.
2427 (add_all_symbol_names_from_pspace): Adjust.
2428 (find_superclass_methods): Add language parameter and pass it
2429 down.
2430 (find_method): Pass symbol language down.
2431 (find_linespec_symbols): Don't demangle or Ada encode here.
2432 (search_minsyms_for_name): Add lookup_name_info parameter.
2433 (add_matching_symbols_to_info): Add name_match_type parameter.
2434 Use lookup_name_info.
2435 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2436 la_get_symbol_name_matcher.
2437 * minsyms.c: Include <algorithm>.
2438 (add_minsym_to_demangled_hash_table): Remove table parameter and
2439 add objfile parameter. Use search_name_hash, and add language to
2440 demangled languages vector.
2441 (struct found_minimal_symbols): New struct.
2442 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2443 New functions.
2444 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2445 input names here. Use lookup_name_info instead. Lookup up
2446 demangled names once for each language in the demangled names
2447 vector.
2448 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2449 demangled names once for each language in the demangled names
2450 vector.
2451 (build_minimal_symbol_hash_tables): Adjust.
2452 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2453 lookup_name_info.
2454 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2455 la_get_symbol_name_matcher.
2456 * objfiles.h: Include <vector>.
2457 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2458 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2459 la_get_symbol_name_matcher.
2460 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2461 la_get_symbol_name_matcher.
2462 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2463 (match_partial_symbol): Use symbol_name_match_type,
2464 lookup_name_info and psymbol_name_matches.
2465 (lookup_partial_symbol): Use lookup_name_info.
2466 (map_block): Use symbol_name_match_type and lookup_name_info.
2467 (psym_map_matching_symbols): Use symbol_name_match_type.
2468 (psymbol_name_matches): New.
2469 (recursively_search_psymtabs): Use lookup_name_info and
2470 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2471 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2472 'kind' parameter to 'domain'.
2473 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2474 la_get_symbol_name_matcher.
2475 * symfile-debug.c (debug_qf_map_matching_symbols)
2476 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2477 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2478 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2479 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2480 Adjust to use symbol_name_match_type.
2481 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2482 (expand_symtabs_matching): Adjust to use lookup_name_info.
2483 * symmisc.c (maintenance_expand_symtabs): Use
2484 lookup_name_info::match_any ().
2485 * symtab.c (symbol_matches_search_name): New.
2486 (eq_symbol_entry): Adjust to use lookup_name_info and the
2487 language's matcher.
2488 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2489 (lookup_name_info::match_any): New.
2490 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2491 (compare_symbol_name): Add language, lookup_name_info and
2492 completion_match_result parameters, and use them.
2493 (completion_list_add_name): Make extern. Add language and
2494 lookup_name_info parameters. Use them.
2495 (completion_list_add_symbol, completion_list_add_msymbol)
2496 (completion_list_objc_symbol): Add lookup_name_info parameters and
2497 adjust. Pass down language.
2498 (completion_list_add_fields): Add lookup_name_info parameters and
2499 adjust. Pass down language.
2500 (add_symtab_completions): Add lookup_name_info parameters and
2501 adjust.
2502 (default_collect_symbol_completion_matches_break_on): Add
2503 name_match_type parameter, and use it. Use lookup_name_info.
2504 (default_collect_symbol_completion_matches)
2505 (collect_symbol_completion_matches): Add name_match_type
2506 parameter, and pass it down.
2507 (collect_symbol_completion_matches_type): Adjust.
2508 (collect_file_symbol_completion_matches): Add name_match_type
2509 parameter, and use lookup_name_info.
2510 * symtab.h: Include <string> and "common/gdb_optional.h".
2511 (enum class symbol_name_match_type): New.
2512 (class ada_lookup_name_info): New.
2513 (struct demangle_for_lookup_info): New.
2514 (class lookup_name_info): New.
2515 (symbol_name_matcher_ftype): New.
2516 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2517 (symbol_matches_search_name): Declare.
2518 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2519 (default_collect_symbol_completion_matches)
2520 (collect_symbol_completion_matches)
2521 (collect_file_symbol_completion_matches): Add name_match_type
2522 parameter.
2523 (iterate_over_symbols): Use lookup_name_info.
2524 (completion_list_add_name): Declare.
2525 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2526 (strncmp_iw_with_mode): Now extern.
2527 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2528 (strncmp_iw_with_mode): Declare.
2529
2530 2017-11-08 Keith Seitz <keiths@redhat.com>
2531 Pedro Alves <palves@redhat.com>
2532
2533 * ada-lang.c (ada_language_defn): Install
2534 default_search_name_hash.
2535 * buildsym.c (struct buildsym_compunit): <language>: New field.
2536 (finish_block_internal): Pass language when creating dictionaries.
2537 (start_buildsym_compunit, start_symtab): New language parameters.
2538 Use them.
2539 (restart_symtab): Pass down compilation unit's language.
2540 * buildsym.h (enum language): Forward declare.
2541 (start_symtab): New 'language' parameter.
2542 * c-lang.c (c_language_defn, cplus_language_defn)
2543 (asm_language_defn, minimal_language_defn): Install
2544 default_search_name_hash.
2545 * coffread.c (coff_start_symtab): Adjust.
2546 * d-lang.c (d_language_defn): Install default_search_name_hash.
2547 * dbxread.c (struct symloc): Add 'pst_language' field.
2548 (PST_LANGUAGE): Define.
2549 (start_psymtab, read_ofile_symtab): Use it.
2550 (process_one_symbol): New 'language' parameter. Pass it down.
2551 * dictionary.c (struct dictionary) <language>: New field.
2552 (DICT_LANGUAGE): Define.
2553 (dict_create_hashed, dict_create_hashed_expandable)
2554 (dict_create_linear, dict_create_linear_expandable): New parameter
2555 'language'. Set the dictionary's language.
2556 (iter_match_first_hashed): Adjust to rename.
2557 (insert_symbol_hashed): Assert we don't see mismatching
2558 languages. Adjust to rename.
2559 (dict_hash): Rename to ...
2560 (default_search_name_hash): ... this and make extern.
2561 * dictionary.h (struct language_defn): Forward declare.
2562 (dict_create_hashed): New parameter 'language'.
2563 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2564 * f-lang.c (f_language_defn): Install default_search_name_hash.
2565 * go-lang.c (go_language_defn): Install default_search_name_hash.
2566 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2567 creation.
2568 * language.c (unknown_language_defn, auto_language_defn):
2569 * language.h (language_defn::la_search_name_hash): New field.
2570 (default_search_name_hash): Declare.
2571 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2572 * mdebugread.c (new_block): New parameter 'language'.
2573 * mdebugread.c (parse_symbol): Pass symbol language to block
2574 allocation.
2575 (psymtab_to_symtab_1): Pass down language.
2576 (new_symtab): Pass compunit's language to block allocation.
2577 * objc-lang.c (objc_language_defn): Install
2578 default_search_name_hash.
2579 * opencl-lang.c (opencl_language_defn):
2580 * p-lang.c (pascal_language_defn): Install
2581 default_search_name_hash.
2582 * rust-lang.c (rust_language_defn): Install
2583 default_search_name_hash.
2584 * stabsread.h (enum language): Forward declare.
2585 (process_one_symbol): Add 'language' parameter.
2586 * symtab.c (search_name_hash): New function.
2587 * symtab.h (search_name_hash): Declare.
2588 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2589
2590 2017-11-08 Pedro Alves <palves@redhat.com>
2591
2592 * cp-name-parser.y (main): Don't initialize extra_chars.
2593
2594 2017-11-07 Tom Tromey <tom@tromey.com>
2595
2596 * event-top.h (command_handler): Constify.
2597 * record-full.c (cmd_record_full_start): Update.
2598 * thread.c (thread_apply_all_command): Update.
2599 * printcmd.c (eval_command): Update.
2600 * mi/mi-main.c (mi_execute_cli_command): Update.
2601 (mi_execute_async_cli_command): Update.
2602 * tui/tui-stack.c (tui_update_command): Update.
2603 * cli/cli-interp.c (safe_execute_command): Constify.
2604 * record.c (record_start): Update.
2605 (record_start, record_stop, cmd_record_start): Update.
2606 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2607 (cmd_record_btrace_pt_start): Update.
2608 (cmd_record_btrace_start): Update.
2609 (cmd_record_btrace_start): Update.
2610 * reverse.c (exec_reverse_once): Update.
2611 * python/python.c (execute_gdb_command): Don't copy the command.
2612 * event-top.c (command_line_handler): Update.
2613 (command_handler): Constify.
2614 * defs.h (deprecated_call_command_hook): Constify.
2615 * cli/cli-script.h (execute_user_command): Constify.
2616 * cli/cli-script.c (execute_user_command): Constify.
2617 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2618 (enum command_control_type): Update.
2619 * main.c (catch_command_errors): Remove non-const overload.
2620 (catch_command_errors_ftype): Remove.
2621 * python/py-cmd.c (cmdpy_function): Constify.
2622 * guile/scm-cmd.c (cmdscm_function): Constify.
2623 * cli/cli-dump.c (call_dump_func): Constify.
2624 * cli/cli-decode.c (do_const_cfunc): Constify.
2625 (do_sfunc): Constify.
2626 (cmd_func): Constify.
2627 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2628 * top.h (execute_command): Constify.
2629 * top.c (execute_command): Constify.
2630 (execute_command_to_string): Constify.
2631 (deprecated_call_command_hook): Constify.
2632 * command.h (cmd_func): Constify.
2633 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2634
2635 2017-11-07 Tom Tromey <tom@tromey.com>
2636
2637 * ada-lang.c (catch_ada_exception_command): Constify.
2638 (catch_assert_command): Constify.
2639 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2640 (catch_rethrow_command): Constify.
2641 (catch_exception_command_1): Constify.
2642 * breakpoint.h (add_catch_command): Constify.
2643 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2644 (catch_syscall_split_args): Constify.
2645 * break-catch-sig.c (catch_signal_command): Constify.
2646 (catch_signal_split_args): Constify.
2647 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2648 cmd_const_sfunc_ftype.
2649 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2650 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2651 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2652 (add_setshow_string_cmd, struct cmd_list_element)
2653 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2654 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2655 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2656 Constify.
2657 (set_cmd_sfunc): Constify.
2658 (empty_sfunc): Constify.
2659 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2660 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2661 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2662 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2663 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2664 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2665 Constify.
2666 (set_cmd_sfunc): Constify.
2667 (cmd_sfunc_ftype): Remove.
2668 * compile/compile.c (set_compile_args): Constify.
2669 * infrun.c (set_disable_randomization): Constify.
2670 * infcmd.c (set_args_command, set_cwd_command): Constify.
2671 * breakpoint.c (set_condition_evaluation_mode): Constify.
2672 (add_catch_command): Constify.
2673 (catch_fork_command_1, catch_exec_command_1)
2674 (catch_load_command_1, catch_unload_command_1): Constify.
2675 (catch_load_or_unload): Constify.
2676 * guile/scm-param.c (pascm_set_func): Constify.
2677 (add_setshow_generic): Constify.
2678 * python/py-param.c (get_set_value): Constify.
2679 * top.h (set_verbose): Constify.
2680 * tui/tui-win.c (tui_set_var_cmd): Constify.
2681 * mi/mi-main.c (set_mi_async_command): Constify.
2682 * cli/cli-logging.c (set_logging_overwrite)
2683 (set_logging_redirect): Constify.
2684 * value.c (set_max_value_size): Constify.
2685 * valprint.c (set_input_radix, set_output_radix): Constify.
2686 * utils.c (set_width_command, set_height_command): Constify.
2687 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2688 * tracepoint.c (set_disconnected_tracing)
2689 (set_circular_trace_buffer, set_trace_buffer_size)
2690 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2691 * top.c (set_history_size_command, set_verbose, set_editing)
2692 (set_gdb_datadir, set_history_filename): Constify.
2693 * target.c (set_targetdebug, maint_set_target_async_command)
2694 (maint_set_target_non_stop_command, set_target_permissions)
2695 (set_write_memory_permission): Constify.
2696 (open_target): Constify.
2697 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2698 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2699 * symtab.c (set_symbol_cache_size_handler): Constify.
2700 * symfile.c (set_ext_lang_command): Constify.
2701 * symfile-debug.c (set_debug_symfile): Constify.
2702 * source.c (set_directories_command): Constify.
2703 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2704 * serial.c (set_parity): Constify.
2705 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2706 * remote.c (set_remote_exec_file, set_remotebreak)
2707 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2708 * record.c (set_record_insn_history_size)
2709 (set_record_call_history_size): Constify.
2710 * record-full.c (set_record_full_insn_max_num): Constify.
2711 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2712 * osabi.c (set_osabi): Constify.
2713 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2714 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2715 * maint.c (maintenance_set_profile_cmd): Constify.
2716 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2717 * language.c (set_language_command, set_range_command)
2718 (set_case_command): Constify.
2719 * infrun.c (set_non_stop, set_observer_mode)
2720 (set_stop_on_solib_events, set_schedlock_func)
2721 (set_exec_direction_func): Constify.
2722 * infcmd.c (set_inferior_tty_command): Constify.
2723 * disasm.c (set_disassembler_options_sfunc): Constify.
2724 * demangle.c (set_demangling_command): Constify.
2725 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2726 * cris-tdep.c (set_cris_version, set_cris_mode)
2727 (set_cris_dwarf2_cfi): Constify.
2728 * corefile.c (set_gnutarget_command): Constify.
2729 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2730 (set_target_wide_charset_sfunc): Constify.
2731 * breakpoint.c (update_dprintf_commands): Constify.
2732 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2733 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2734 (set_disassembly_style_sfunc): Constify.
2735 * arch-utils.c (set_endian, set_architecture): Constify.
2736 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2737 * agent.c (set_can_use_agent): Constify.
2738
2739 2017-11-07 Tom Tromey <tom@tromey.com>
2740
2741 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2742 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2743 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2744 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2745 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2746 (parse_int_arg, show_thread_default_detach_sc_cmd)
2747 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2748 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2749 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2750 (show_task_pause_cmd, set_task_detach_sc_cmd)
2751 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2752 (set_noninvasive_cmd, set_thread_pause_cmd)
2753 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2754 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2755 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2756 * windows-nat.c (display_selectors): Constify.
2757 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2758 non-const "cfunc".
2759 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2760 (cmd_cfunc_eq): Likewise.
2761 (struct cmd_list_element): Likewise.
2762 (do_cfunc): Remove.
2763 (cli_user_command_p): Update.
2764 * command.h (add_cmd): Remove non-const overload.
2765 (cmd_cfunc_ftype): Remove typedef.
2766 (cmd_cfunc_eq): Remove non-const overload.
2767 * value.c (show_values): Constify.
2768 * thread.c (thread_apply_all_command): Constify.
2769 * symfile.c (load_command): Constify.
2770 * source.c (directory_command): Constify.
2771 * maint.c (maintenance_internal_error)
2772 (maintenance_demangler_warning, maintenance_space_display)
2773 (maintenance_print_architecture, maintenance_translate_address)
2774 (maintenance_info_selftests, maintenance_internal_warning):
2775 Constify.
2776 * breakpoint.c (disable_trace_command, enable_trace_command):
2777 Constify.
2778 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2779 Constify.
2780 (add_auto_load_safe_path): Constify.
2781 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2782 * top.h (show_commands): Constify.
2783 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2784 * sparc64-tdep.c (adi_examine_command): Constify.
2785 (adi_assign_command): Constify.
2786
2787 2017-11-07 Tom Tromey <tom@tromey.com>
2788
2789 * frame.h (info_locals_command, info_args_command): Constify.
2790 * auto-load.h (auto_load_info_scripts): Constify.
2791 * inferior.h (registers_info): Constify.
2792 * copying.c: Rebuild.
2793 * copying.awk: Constify generated commands.
2794 * auto-load.c (auto_load_info_scripts)
2795 (info_auto_load_gdb_scripts): Constify.
2796 * cli/cli-decode.c (struct cmd_list_element): Take a
2797 cmd_const_cfunc_ftype.
2798 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2799 * tui/tui-win.c (tui_all_windows_info): Constify.
2800 * python/py-auto-load.c (info_auto_load_python_scripts):
2801 Constify.
2802 * cli/cli-cmds.c (show_command): Remove non-const overload.
2803 * tracepoint.c (info_tvariables_command, info_scope_command):
2804 Constify.
2805 (info_static_tracepoint_markers_command): Constify.
2806 * thread.c (info_threads_command): Constify.
2807 (print_thread_info_1): Constify.
2808 * target.c (info_target_command): Constify.
2809 * symtab.c (info_sources_command, info_functions_command)
2810 (info_types_command): Constify.
2811 (info_variables_command): Remove non-const overload.
2812 * symfile.c (info_ext_lang_command): Constify.
2813 * stack.c (info_frame_command, info_locals_command)
2814 (info_args_command): Constify.
2815 (backtrace_command): Remove non-const overload.
2816 * source.c (info_source_command, info_line_command): Constify.
2817 * solib.c (info_sharedlibrary_command): Constify.
2818 * skip.c (info_skip_command): Constify.
2819 * ser-go32.c (info_serial_command): Constify.
2820 * reverse.c (info_bookmarks_command): Constify.
2821 * printcmd.c (info_symbol_command, info_address_command)
2822 (info_display_command): Constify.
2823 * osdata.c (info_osdata_command): Constify.
2824 * objc-lang.c (info_selectors_command, info_classes_command):
2825 Constify.
2826 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2827 * memattr.c (info_mem_command): Constify.
2828 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2829 * linux-fork.c (info_checkpoints_command): Constify.
2830 * infrun.c (info_signals_command): Constify.
2831 * inflow.c (info_terminal_command): Constify.
2832 * inferior.c (info_inferiors_command): Constify.
2833 (print_inferior): Constify.
2834 * infcmd.c (info_program_command, info_all_registers_command)
2835 (info_registers_command, info_vector_command)
2836 (info_float_command): Constify.
2837 (registers_info): Constify.
2838 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2839 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2840 Constify.
2841 * f-valprint.c (info_common_command): Constify.
2842 * dcache.c (info_dcache_command): Constify.
2843 (dcache_info_1): Constify.
2844 * darwin-nat-info.c (info_mach_tasks_command)
2845 (info_mach_task_command, info_mach_ports_command)
2846 (info_mach_port_command, info_mach_threads_command)
2847 (info_mach_thread_command, info_mach_regions_command)
2848 (info_mach_regions_recurse_command, info_mach_region_command)
2849 (info_mach_exceptions_command): Constify.
2850 (get_task_from_args): Constify.
2851 * cp-support.c (info_vtbl_command): Constify.
2852 * breakpoint.c (info_watchpoints_command)
2853 (info_tracepoints_command): Constify.
2854 (info_breakpoints_command): Remove non-const overload.
2855 * avr-tdep.c (avr_io_reg_read_command): Constify.
2856 * auxv.c (info_auxv_command): Constify.
2857 * ada-tasks.c (info_tasks_command): Constify.
2858 (info_task): Constify.
2859 * ada-lang.c (info_exceptions_command): Constify.
2860
2861 2017-11-07 Tom Tromey <tom@tromey.com>
2862
2863 * solib.h (no_shared_libraries): Constify.
2864 * frame.h (return_command): Constify.
2865 * cli/cli-cmds.h (quit_command): Constify.
2866 * top.h (quit_command, execute_command): Constify.
2867 * target.h (flash_erase_command): Constify.
2868 * inferior.h (set_inferior_args, attach_command): Constify.
2869 * tracepoint.h (start_tracing, stop_tracing): Constify.
2870 * breakpoint.h (break_command, tbreak_command)
2871 (hbreak_command_wrapper, thbreak_command_wrapper)
2872 (rbreak_command_wrapper, watch_command_wrapper)
2873 (awatch_command_wrapper, rwatch_command_wrapper)
2874 (get_tracepoint_by_number): Constify.
2875 * symtab.c (info_variables_command, rbreak_command)
2876 (symtab_symbol_info): Constify.
2877 (info_variables_command): Add non-const overload.
2878 * top.c (dont_repeat_command): Constify.
2879 * breakpoint.c (ignore_command, commands_command)
2880 (condition_command, tbreak_command, hbreak_command)
2881 (thbreak_command, clear_command, break_command)
2882 (info_breakpoints_command, watch_command, rwatch_command)
2883 (awatch_command, trace_command, ftrace_command, strace_command)
2884 (trace_pass_command, break_range_command, dprintf_command)
2885 (agent_printf_command, get_tracepoint_by_number)
2886 (watch_maybe_just_location, trace_pass_command): Constify.
2887 (info_breakpoints_command): Add non-const overload.
2888 * tracefile.c (tsave_command): Constify.
2889 * infcmd.c (attach_command, disconnect_command, signal_command)
2890 (queue_signal_command, stepi_command, nexti_command)
2891 (finish_command, next_command, step_command, until_command)
2892 (advance_command, jump_command, continue_command, run_command)
2893 (start_command, starti_command, interrupt_command)
2894 (run_command_1, set_inferior_args, step_1): Constify.
2895 * inferior.c (add_inferior_command, remove_inferior_command)
2896 (clone_inferior_command): Constify.
2897 * linux-fork.c (checkpoint_command, restart_command): Constify.
2898 * windows-nat.c (signal_event_command): Constify.
2899 * guile/guile.c (guile_repl_command, guile_command): Constify.
2900 * printcmd.c (x_command, display_command, printf_command)
2901 (output_command, set_command, call_command, print_command)
2902 (eval_command): Constify.
2903 (non_const_set_command): Remove.
2904 (_initialize_printcmd): Update.
2905 * source.c (forward_search_command, reverse_search_command):
2906 Constify.
2907 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2908 Constify.
2909 * infrun.c (handle_command): Constify.
2910 * memattr.c (mem_command): Constify.
2911 * stack.c (return_command, up_command, up_silently_command)
2912 (down_command, down_silently_command, frame_command)
2913 (backtrace_command, func_command, backtrace_command_1): Constify.
2914 (backtrace_command): Add non-const overload.
2915 * remote-sim.c (simulator_command): Constify.
2916 * exec.c (set_section_command): Constify.
2917 * tracepoint.c (tdump_command, trace_variable_command)
2918 (tstatus_command, tstop_command, tstart_command)
2919 (end_actions_pseudocommand, while_stepping_pseudocommand)
2920 (collect_pseudocommand, teval_pseudocommand, actions_command)
2921 (start_tracing, stop_tracing): Constify.
2922 * value.c (init_if_undefined_command): Constify.
2923 * tui/tui-stack.c (tui_update_command): Constify.
2924 * tui/tui-win.c (tui_refresh_all_command)
2925 (tui_set_tab_width_command, tui_set_win_height_command)
2926 (tui_set_focus_command, tui_scroll_forward_command)
2927 (tui_scroll_backward_command, tui_scroll_left_command)
2928 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2929 (tui_set_win_height): Constify.
2930 * tui/tui-layout.c (tui_layout_command): Constify.
2931 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2932 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2933 (proc_untrace_sysexit_cmd): Constify.
2934 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2935 (threadset_test_cmd, threadlist_update_test_cmd)
2936 (threadalive_test): Constify.
2937 * objc-lang.c (print_object_command): Constify.
2938 * command.h (add_com): Constify.
2939 * cli/cli-dump.c (restore_command): Constify.
2940 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2941 (help_command, complete_command, shell_command, edit_command)
2942 (list_command, disassemble_command, make_command)
2943 (apropos_command, alias_command): Constify.
2944 * cli/cli-script.c (document_command, define_command)
2945 (while_command, if_command, validate_comname): Constify.
2946 * cli/cli-decode.c (struct cmd_list_element): Change type of
2947 "fun".
2948 * target.c (do_monitor_command, flash_erase_command): Constify.
2949 * regcache.c (reg_flush_command): Constify.
2950 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2951 (reverse_nexti, reverse_continue, reverse_finish)
2952 (save_bookmark_command, goto_bookmark_command)
2953 (exec_reverse_once): Constify.
2954 * python/python.c (python_interactive_command, python_command):
2955 Constify.
2956 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2957 Constify.
2958 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2959 * gcore.c (gcore_command): Constify.
2960
2961 2017-11-07 Tom Tromey <tom@tromey.com>
2962
2963 * printcmd.c (x_command): Call set_repeat_arguments.
2964 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2965 * top.c (repeat_arguments): New global.
2966 (set_repeat_arguments): New function.
2967 (execute_command): Handle repeat_arguments.
2968 (show_commands): Calls set_repeat_arguments.
2969 * command.h (set_repeat_arguments): Declare.
2970
2971 2017-11-07 Tom Tromey <tom@tromey.com>
2972
2973 * stack.c (backtrace_command): Use std::string.
2974 (backtrace_command_1): Make "count_exp" const.
2975
2976 2017-11-07 Tom Tromey <tom@tromey.com>
2977
2978 * source.c (directory_switch, mod_path, add_path): Constify.
2979 * defs.h (add_path, mod_path, directory_switch): Constify.
2980 * mi/mi-cmd-env.c (env_mod_path): Constify.
2981
2982 2017-11-07 Tom Tromey <tom@tromey.com>
2983
2984 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2985 (run_command_1, continue_command, step_1, jump_command)
2986 (signal_command, until_command, advance_command, finish_command)
2987 (attach_command): Update.
2988
2989 2017-11-07 Tom Tromey <tom@tromey.com>
2990
2991 * command.h (set_cmd_cfunc): Don't declare.
2992 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2993
2994 2017-11-07 Tom Tromey <tom@tromey.com>
2995
2996 * stack.c (select_frame_command): Constify.
2997 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2998 * command.h (add_com_suppress_notification): Constify.
2999
3000 2017-11-07 Tom Tromey <tom@tromey.com>
3001
3002 * breakpoint.c (stop_command): Constify.
3003 * cli/cli-decode.c (struct cmd_list_element): Constify.
3004 * command.h (add_abbrev_prefix_cmd): Constify.
3005
3006 2017-11-07 Pedro Alves <palves@redhat.com>
3007
3008 * breakpoint.c (extract_bp_kind): New enum.
3009 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
3010 factored out from ...
3011 (extract_bp_number_and_location): ... here.
3012 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
3013
3014 2017-11-07 Pedro Alves <palves@redhat.com>
3015
3016 * breakpoint.c (extract_bp_number_and_location): Change return
3017 type to void. Throw error instead of warning.
3018 (enable_disable_command): Adjust.
3019
3020 2017-11-07 Xavier Roirand <roirand@adacore.com>
3021 Pedro Alves <palves@redhat.com>
3022
3023 * breakpoint.c (map_breakpoint_number_range): New, factored out
3024 from ...
3025 (map_breakpoint_numbers): ... here.
3026 (find_location_by_number): Change parameters from string to
3027 breakpoint number and location.
3028 (extract_bp_number_and_location): New function.
3029 (enable_disable_bp_num_loc)
3030 (enable_disable_breakpoint_location_range)
3031 (enable_disable_command): New functions, factored out ...
3032 (enable_command, disable_command): ... these functions, and
3033 adjusted to support ranges.
3034 * NEWS: Document enable/disable breakpoint location range feature.
3035
3036 2017-11-06 Luis Machado <luis.machado@linaro.org>
3037
3038 * MAINTAINERS (Write After Approval): Update my e-mail address.
3039
3040 2017-11-06 Pedro Alves <palves@redhat.com>
3041
3042 * gnu-nat.c (gnu_terminal_init): Delete.
3043 (gnu_target): Don't install gnu_terminal_init.
3044 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
3045 (child_terminal_init): ... this function.
3046
3047 2017-11-06 Pedro Alves <palves@redhat.com>
3048
3049 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
3050 sgtty.h.
3051 * config.in, configure: Regenerate.
3052
3053 2017-11-06 Pedro Alves <palves@redhat.com>
3054
3055 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
3056 (async_init_signals): Adjust.
3057 (handle_stop_sig): Rename to ...
3058 (handle_sigtstp): ... this.
3059 (async_stop_sig): Rename to ...
3060 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
3061 SIGTSTP path.
3062 * event-top.h: Move signal.h include to the top. Check SIGTSTP
3063 instead of STOP_SIGNAL thoughout.
3064 (handle_stop_sig): Rename to ...
3065 (handle_sigtstp): ... this.
3066 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
3067
3068 2017-11-06 Pedro Alves <palves@redhat.com>
3069
3070 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
3071 longer set flags twice in row.
3072
3073 2017-11-06 Pedro Alves <palves@redhat.com>
3074
3075 * Makefile.in (SER_HARDWIRE): Update comment.
3076 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
3077 * common/gdb_termios.h: Delete file.
3078 * common/job-control.c: Include termios.h and unistd.h instead of
3079 gdb_termios.h.
3080 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
3081 check.
3082 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
3083 Remove sgtty code.
3084 * configure.ac: No longer check for termio.h and sgtty.h.
3085 * configure: Regenerate.
3086 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
3087 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
3088 Replace PROCESS_GROUP_TYPE references with pid_t references
3089 throughout.
3090 (gdb_getpgrp): Delete.
3091 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
3092 (child_terminal_inferior): Remove comment. Remove sgtty code.
3093 (child_terminal_ours_1): Use tcgetpgrp directly instead of
3094 gdb_getpgrp. Use serial_set_tty_state instead aof
3095 serial_noflush_set_tty_state. Remove sgtty code.
3096 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
3097 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
3098 (inferior_process_group): Now returns pid_t.
3099 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
3100 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
3101 * ser-event.c (serial_event_ops): Update.
3102 * ser-go32.c (dos_noflush_set_tty_state): Delete.
3103 (dos_ops): Update.
3104 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
3105 * ser-pipe.c (pipe_ops): Update.
3106 * ser-tcp.c (tcp_ops): Update.
3107 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
3108 HAVE_TERMIOS checks.
3109 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
3110 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
3111 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
3112 assume termios.
3113 (hardwire_noflush_set_tty_state): Delete.
3114 (hardwire_print_tty_state, hardwire_drain_output)
3115 (hardwire_flush_output, hardwire_flush_input)
3116 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
3117 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
3118 code, and assume termios.
3119 (hardwire_ops): Update.
3120 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
3121 * serial.c (serial_noflush_set_tty_state): Delete.
3122 * serial.h (serial_noflush_set_tty_state): Delete.
3123 (serial_ops::noflush_set_tty_state): Delete.
3124
3125 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3126
3127 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3128 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3129 (COMMON_OBS): Remove doublest.o and dfp.o.
3130 Do not build target-float.c (instead of doublest.c)
3131 with -Wformat-nonliteral.
3132
3133 * doublest.c: Remove file.
3134 * doublest.h: Remove file.
3135 * dfp.c: Remove file.
3136 * dfp.h: Remove file.
3137
3138 * target-float.c: Do not include "doublest.h" and "dfp.h".
3139 (DOUBLEST): Move here from doublest.h.
3140 (enum float_kind): Likewise.
3141 (FLOATFORMAT_CHAR_BIT): Likewise.
3142 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3143 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3144 (floatformat_precision): Likewise.
3145 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3146 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3147 Likewise.
3148 (host_float_format, host_double_format, host_long_double_format):
3149 Likewise.
3150 (floatformat_to_string, floatformat_from_string): Likewise.
3151 (floatformat_to_doublest): Likewise. Also, inline the original
3152 convert_floatformat_to_doublest.
3153 (floatformat_from_doublest): Likewise. Also, inline the original
3154 convert_floatformat_from_doublest.
3155
3156 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3157 (MAX_DECIMAL_STRING): Move here from dfp.c.
3158 (match_endianness): Likewise.
3159 (set_decnumber_context, decimal_check_errors): Likewise.
3160 (decimal_from_number, decimal_to_number): Likewise.
3161 (decimal_to_string, decimal_from_string): Likewise. Make static.
3162 (decimal_from_longest, decimal_from_ulongest): Likewise.
3163 (decimal_to_longest): Likewise.
3164 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3165 (decimal_convert): Likewise.
3166
3167 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3168
3169 * doublest.c: Do not include "gdbtypes.h".
3170 (extract_typed_floating): Remove.
3171 (store_typed_floating): Remove.
3172 (convert_typed_floating): Remove.
3173 * doublest.h (struct type): Remove.
3174 (DOUBLEST_PRINT_FORMAT): Remove.
3175 (DOUBLEST_SCAN_FORMAT): Remove.
3176 (extract_typed_floating): Remove.
3177 (store_typed_floating): Remove.
3178 (convert_typed_floating): Remove.
3179
3180 * dfp.c (decimal_from_doublest): Remove.
3181 (decimal_to_doublest): Remove.
3182 * dfp.h: Do not include "doublest.h".
3183 (decimal_from_doublest): Remove.
3184 (decimal_to_doublest): Remove.
3185
3186 * value.c: Do not include "doublest.h" and "dfp.h".
3187 (value_as_double): Remove.
3188 (unpack_double): Remove.
3189 (value_from_double): Remove.
3190 (value_from_decfloat): Remove.
3191 * value.h: Do not include "doublest.h".
3192 (value_as_double): Remove.
3193 (unpack_double): Remove.
3194 (value_from_double): Remove.
3195 (value_from_decfloat): Remove.
3196
3197 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3198
3199 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3200 (i386_extract_return_value): Use target_float_convert.
3201 (i386_store_return_value): Likewise.
3202 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3203 (i387_value_to_register): Likewise.
3204 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3205 (ia64_register_to_value): Use target_float_convert.
3206 (ia64_value_to_register): Likewise.
3207 (ia64_extract_return_value): Likewise.
3208 (ia64_store_return_value): Likewise.
3209 (ia64_push_dummy_call): Likewise.
3210 * m68k-tdep.c: Include "target-float.h".
3211 (m68k_register_to_value): Use target_float_convert.
3212 (m68k_value_to_register): Likewise.
3213 (m68k_svr4_extract_return_value): Likewise.
3214 (m68k_svr4_store_return_value): Likewise.
3215 * ppc-sysv-tdep.c: Include "target-float.h".
3216 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3217 (do_ppc_sysv_return_value): Likewise.
3218 (ppc64_sysv_abi_push_freg): Likewise.
3219 (ppc64_sysv_abi_return_value_base): Likewise.
3220 * rs6000-aix-tdep.c: Include "target-float.h".
3221 (rs6000_push_dummy_call): Use target_float_convert.
3222 (rs6000_return_value): Likewise.
3223 * rs6000-lynx178-tdep.c: Include "target-float.h".
3224 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3225 (rs6000_lynx178_return_value): Likewise.
3226 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3227 (rs6000_register_to_value): Use target_float_convert.
3228 (rs6000_value_to_register): Likewise.
3229 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3230 (arm_extract_return_value): Use target_float_convert.
3231 (arm_store_return_value): Likewise.
3232 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3233 (sh_register_convert_to_virtual): Use target_float_convert.
3234 (sh_register_convert_to_raw): Likewise.
3235 * sh64-tdep.c: Include "target-float.h".
3236 (sh64_extract_return_value): Use target_float_convert.
3237 (sh64_register_convert_to_virtual): Likewise.
3238 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3239
3240 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3241
3242 * target-float.c (floatformat_to_host_double): New function.
3243 (floatformat_from_host_double): Likewise.
3244 (target_float_to_host_double): Likewise.
3245 (target_float_from_host_double): Likewise.
3246 * target-float.h (target_float_to_host_double): Add prototype.
3247 (target_float_from_host_double): Likewise.
3248
3249 * guile/scm-value.c: Include "target-float.h".
3250 (gdbscm_value_to_real): Use target_float_to_host_double.
3251 Handle integer source values via value_as_long.
3252 * guile/scm-math.c: Include "target-float.h". Do not include
3253 "doublest.h", "dfp.h", and "expression.h".
3254 (vlscm_convert_typed_number): Use target_float_from_host_double.
3255 (vlscm_convert_number): Likewise.
3256
3257 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3258 (convert_value_from_python): Use target_float_from_host_double.
3259
3260 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3261
3262 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3263 (cast_from_fixed): Likewise.
3264 (ada_scaling_type): New function.
3265 (ada_delta): Return value instead of DOUBLEST. Perform target
3266 arithmetic instead of host arithmetic.
3267 (scaling_factor): Rename to ...
3268 (ada_scaling_factor) ... this. Make non-static. Return value instead
3269 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3270 (ada_fixed_to_float): Remove.
3271 (ada_float_to_fixed): Remove.
3272 * ada-lang.h (ada_fixed_to_float): Remove.
3273 (ada_float_to_fixed): Remove.
3274 (ada_delta): Return value instead of DOUBLEST.
3275 (ada_scaling_factor): Add prototype.
3276
3277 * ada-typeprint.c: Include "target-float.h".
3278 (print_fixed_point_type): Perform target arithmetic instead of
3279 host arithmetic.
3280 * ada-valprint.c: Include "target-float.h".
3281 (ada_val_print_num): Perform target arithmetic instead of
3282 host arithmetic for fixed-point types.
3283
3284 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3285
3286 * target-float.c: Include <math.h>.
3287 (floatformat_binop): New function.
3288 (floatformat_compare): Likewise.
3289 (target_float_binop): Likewise.
3290 (target_float_compare): Likewise.
3291 * target-float.h: Include "expression.h".
3292 (target_float_binop): Add prototype.
3293 (target_float_compare): Likewise.
3294
3295 * valarith.c: Do not include "doublest.h" and "dfp.h".
3296 Include "common/byte-vector.h".
3297 (value_args_as_decimal): Remove, replace by ...
3298 (value_args_as_target_float): ... this function. Handle both
3299 binary and decimal target floating-point formats.
3300 (scalar_binop): Handle both binary and decimal FP using
3301 value_args_as_target_float and target_float_binop.
3302 (value_equal): Handle both binary and decimal FP using
3303 value_args_as_target_float and target_float_compare.
3304 (value_less): Likewise.
3305 (value_pos): Handle all scalar types as simple copy.
3306 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3307 * dfp.c (decimal_binop): Throw error instead of internal_error
3308 when called with an unsupported operation code.
3309
3310 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3311
3312 * target-float.c (target_float_to_string): New function.
3313 (target_float_from_string): New function.
3314 * target-float.h (target_float_to_string): Add prototype.
3315 (target_float_from_string): Add prototype.
3316
3317 * valprint.c: Include "target-float.h". Do not include
3318 "doublest.h" and "dfp.h".
3319 (print_floating): Use target_float_to_string.
3320 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3321 (printf_floating): Use target_float_to_string.
3322 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3323 (print_i387_value): Use target_float_to_string.
3324 * mips-tdep.c: Include "target-float.h".
3325 (mips_print_fp_register): Use target_float_to_string.
3326 * sh64-tdep.c: Include "target-float.h".
3327 (sh64_do_fp_register): Use target_float_to_string.
3328
3329 * parse.c: Include "target-float.h". Do not include
3330 "doublest.h" and "dfp.h".
3331 (parse_float): Use target_float_from_string.
3332 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3333 (define_symbol): Use target_float_from_string.
3334 * gdbarch-selftests.c: Include "target-float.h".
3335 (register_to_value_test): Use target_float_from_string.
3336
3337 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3338
3339 * Makefile.c (SFILES): Add target-float.c.
3340 (HFILES_NO_SRCDIR): Add target-float.h.
3341 (COMMON_OBS): Add target-float.o.
3342 * target-float.h: New file.
3343 * target-float.c: New file.
3344
3345 * doublest.c (floatformat_classify): Fix detection of float_zero.
3346
3347 * gdbtypes.c (is_floating_type): New function.
3348 * gdbtypes.h (is_floating_type): Add prototype.
3349
3350 * value.c: Do not include "floatformat.h".
3351 (unpack_double): Use target_float_is_valid.
3352 (is_floating_value): New function.
3353 * value.h (is_floating_value): Add prototype-
3354
3355 * valarith.c: Include "target-float.h".
3356 (value_logical_not): Use target_float_is_zero.
3357
3358 * python/py-value.c: Include "target-float.h".
3359 (valpy_nonzero): Use target_float_is_zero.
3360
3361 2017-11-04 Tom Tromey <tom@tromey.com>
3362
3363 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3364
3365 2017-11-04 Tom Tromey <tom@tromey.com>
3366
3367 * breakpoint.c (set_momentary_breakpoint): Return
3368 breakpoint_up.
3369 (until_break_command): Update.
3370 (new_until_break_fsm): Change argument types to
3371 breakpoint_up.
3372 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3373 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3374 Remove.
3375 * infcmd.c (finish_forward): Update.
3376 * breakpoint.h (set_momentary_breakpoint)
3377 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3378 (make_cleanup_delete_breakpoint): Remove.
3379 (struct breakpoint_deleter): New.
3380 (breakpoint_up): New typedef.
3381 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3382 (insert_exception_resume_breakpoint): Update.
3383 (insert_exception_resume_from_probe): Update.
3384 (insert_longjmp_resume_breakpoint): Update.
3385 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3386 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3387 * infcall.c (call_function_by_hand_dummy): Update
3388
3389 2017-11-04 Tom Tromey <tom@tromey.com>
3390
3391 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3392
3393 2017-11-04 Tom Tromey <tom@tromey.com>
3394
3395 * linux-tdep.c (linux_core_info_proc_mappings): Use
3396 gdb::def_vector.
3397 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3398 "size" argument.
3399 (linux_corefile_thread): Update.
3400 (linux_make_corefile_notes): Remove unused variable.
3401
3402 2017-11-04 Tom Tromey <tom@tromey.com>
3403
3404 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3405 gdb::byte_vector.
3406
3407 2017-11-04 Tom Tromey <tom@tromey.com>
3408
3409 * objfiles.c (do_free_objfile_cleanup): Remove.
3410 * compile/compile-object-load.c (compile_object_load): Update.
3411 * objfiles.h (make_cleanup_free_objfile): Remove.
3412
3413 2017-11-04 Tom Tromey <tom@tromey.com>
3414
3415 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3416 (adi_read_versions): Change "tags" to "gdb_byte *".
3417 (adi_print_versions): Likewise.
3418
3419 2017-11-04 Tom Tromey <tom@tromey.com>
3420
3421 * breakpoint.c
3422 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3423 from start_rbreak_breakpoints.
3424 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3425 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3426 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3427 * symtab.c (do_end_rbreak_breakpoints): Remove.
3428 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3429
3430 2017-11-04 Tom Tromey <tom@tromey.com>
3431
3432 * cp-namespace.c (reset_directive_searched): Remove.
3433 (cp_lookup_symbol_via_imports): Use scoped_restore.
3434 * cp-support.c (reset_directive_searched): Remove.
3435 (make_symbol_overload_list_using): Use scoped_restore.
3436 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3437 (reset_directive_searched): Remove.
3438
3439 2017-11-04 Tom Tromey <tom@tromey.com>
3440
3441 * symfile.c (find_separate_debug_file_by_debuglink): Use
3442 unique_xmalloc_ptr.
3443
3444 2017-11-04 Tom Tromey <tom@tromey.com>
3445
3446 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3447 type of "info".
3448 (compute_stack_depth): Likewise.
3449 (do_compile_dwarf_expr_to_c): Use std::vector.
3450
3451 2017-11-04 Tom Tromey <tom@tromey.com>
3452
3453 * compile/compile-object-load.c (link_callbacks_einfo): Use
3454 std::string.
3455
3456 2017-11-04 Tom Tromey <tom@tromey.com>
3457
3458 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3459 Use scoped_free_pendings.
3460 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3461 scoped_free_pendings.
3462 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3463 (xcoff_initial_scan): Likewise.
3464 * buildsym.c (reset_symtab_globals): Update comment.
3465 (scoped_free_pendings): Rename from really_free_pendings.
3466 (prepare_for_building): Update comment.
3467 (buildsym_init): Likewise.
3468 * buildsym.h (class scoped_free_pendings): New class.
3469 (really_free_pendings): Don't declare.
3470
3471 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3472
3473 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3474 output when converting a zero value to a special byteorder format.
3475
3476 2017-11-02 Yao Qi <yao.qi@linaro.org>
3477
3478 * frame.c (do_frame_register_read): Remove aspace.
3479 * jit.c (jit_frame_sniffer): Likwise.
3480 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3481 * regcache.c (regcache::regcache): Pass nullptr.
3482 (regcache_print): Caller updated.
3483 * regcache.h (regcache::regcache): Remove one constructor
3484 parameter aspace.
3485
3486 2017-11-02 Yao Qi <yao.qi@linaro.org>
3487
3488 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3489
3490 2017-11-02 Yao Qi <yao.qi@linaro.org>
3491
3492 * breakpoint.c (insert_single_step_breakpoints): Update.
3493 * frame.c (struct frame_info) <aspace>: Add const.
3494 (frame_save_as_regcache): Add const.
3495 (get_frame_address_space): Return const address_space *.
3496 * frame.h (get_frame_address_space): Update declaration.
3497 * infrun.c (struct step_over_info) <aspace>: Add const.
3498 (set_step_over_info): Make aspace const.
3499 (displaced_step_prepare_throw): Change variable const.
3500 (resume): Likewise.
3501 (proceed): Likewise.
3502 (adjust_pc_after_break): Likewise.
3503 (save_waitstatus): Likewise.
3504 (handle_signal_stop): Likewise.
3505 (keep_going_pass_signal): Likewise.
3506 * jit.c (jit_frame_sniffer): Add const.
3507 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3508 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3509 * record-full.c (record_full_wait_1): Likewise.
3510 * regcache.c (regcache::regcache): Change parameter to const.
3511 * regcache.h (regcache::regcache): Likewise.
3512 (regcache::aspace): Return const address_space *.
3513 (regcache) <m_aspace>: Add const.
3514
3515 2017-11-02 Yao Qi <yao.qi@linaro.org>
3516
3517 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3518 * frame.c (create_sentinel_frame): Likewise.
3519 * infrun.c (displaced_step_prepare_throw): Likewise.
3520 (resume): Likewise.
3521 (thread_still_needs_step_over_bp): Likewise.
3522 (proceed): Likewise.
3523 (do_target_wait): Likewise.
3524 (adjust_pc_after_break): Likewise.
3525 (handle_syscall_event): Likewise.
3526 (save_waitstatus): Likewise.
3527 (handle_inferior_event_1): Likewise.
3528 (handle_signal_stop): Likewise.
3529 (keep_going_pass_signal): Likewise.
3530 * linux-nat.c (status_callback): Likewise.
3531 (save_stop_reason): Likewise.
3532 (resume_stopped_resumed_lwps): Likewise.
3533 * record-full.c (record_full_exec_insn): Likewise.
3534 (record_full_wait_1): Likewise.
3535 * regcache.c (get_regcache_aspace): Remove.
3536 * regcache.h (get_regcache_aspace): Remove.
3537
3538 2017-11-02 Yao Qi <yao.qi@linaro.org>
3539
3540 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3541 (init_regcache_descr): Use gdbarch_num_regs.
3542 (regcache::regcache): Likewise.
3543 (regcache::get_register_status): Likewise.
3544 (regcache::assert_raw_regnum): Likewise.
3545 (regcache::cooked_read): Likewise.
3546 (regcache::cooked_read_value): Likewise.
3547 (regcache::cooked_write): Likewise.
3548 (regcache::dump): Likewise.
3549 (regcache::num_raw_registers): New method.
3550 * regcache.h (class regcache) <num_raw_registers>: New.
3551
3552 2017-11-02 Yao Qi <yao.qi@linaro.org>
3553
3554 * regcache.c (regcache::assert_regnum): New method.
3555 (regcache::invalidate): Call assert_regnum.
3556 (regcache::raw_update): Likewise.
3557 (regcache::raw_write): Likewise.
3558 (regcache::raw_read_part): Likewise.
3559 (regcache::raw_write_part): Likewise.
3560 (regcache::raw_supply): Likewise.
3561 (regcache::raw_supply_integer): Likewise.
3562 (regcache::raw_supply_zeroed): Likewise.
3563 (regcache::raw_collect): Likewise.
3564 (regcache::raw_collect_integer): Likewise.
3565 * regcache.h (regcache::assert_regnum): Declare.
3566
3567 2017-11-02 Yao Qi <yao.qi@linaro.org>
3568
3569 * regcache.c (regcache::dump): Remove code.
3570
3571 2017-11-02 Yao Qi <yao.qi@linaro.org>
3572
3573 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3574 Remove.
3575 <sizeof_cooked_register_status>: Remove.
3576 (init_regcache_descr): Update.
3577 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3578 (regcache::save): Likewise.
3579 (regcache::dump): Likewise.
3580
3581 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3582
3583 * ft32-tdep.c (ft32_fetch_instruction): New function.
3584 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3585
3586 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3587
3588 * cli/cli-script.c (execute_control_command): Rename to ...
3589 (execute_control_command_1): ... this.
3590 (execute_control_command): New function.
3591
3592 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3593
3594 * tracepoint.c (tfind_command): Remove const_cast.
3595
3596 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3597
3598 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3599
3600 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3601
3602 * common/common-utils.h (in_inclusive_range): New function.
3603 * arm-tdep.c (arm_record_extension_space): Use
3604 in_inclusive_range.
3605 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3606 * cris-tdep.c (cris_spec_reg_applicable): Use
3607 in_inclusive_range.
3608
3609 2017-10-30 Pedro Alves <palves@redhat.com>
3610 Simon Marchi <simon.marchi@ericsson.com>
3611
3612 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3613 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3614
3615 2017-10-30 Pedro Alves <palves@redhat.com>
3616
3617 * common/common-utils.c (string_appendf, string_vappendf): New
3618 functions.
3619 * common/common-utils.h (string_appendf, string_vappendf): New
3620 declarations.
3621 * unittests/common-utils-selftests.c (string_appendf_func)
3622 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3623 (string_vappendf_tests): New functions.
3624 (_initialize_common_utils_selftests): Register "string_appendf" and
3625 "string_vappendf tests".
3626
3627 2017-10-30 Pedro Alves <palves@redhat.com>
3628
3629 * unittests/common-utils-selftests.c (format_func): New typedef.
3630 (string_printf_tests, string_vprintf_tests): Tests factored out
3631 and merged to ...
3632 (test_format_func): ... this new function.
3633 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3634 test_format_func.
3635
3636 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3637
3638 * darwin-nat.c: Remove include of gdb.h.
3639
3640 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3641
3642 * xtensa-xtregs.c: Fix formatting issues.
3643
3644 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3645
3646 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3647
3648 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3649
3650 PR python/21213
3651 * python/py-infthread.c (thpy_get_inferior): Increment reference
3652 of inferior before returning it.
3653
3654 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3655
3656 * unittests/common-utils-selftests.c (format): Add
3657 ATTRIBUTE_PRINTF.
3658
3659 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3660
3661 * xml-syscall.c (struct syscall_desc): Add constructor.
3662 <name>: Change type to std::string.
3663 (syscall_desc_up): New typedef.
3664 (syscall_desc_p): Remove typeder.
3665 (DEF_VEC_P(syscall_desc_p)): Remove.
3666 (struct syscall_group_desc): Add constructor.
3667 <name>: Change type to std::string.
3668 <syscalls>: Change type to std::vector.
3669 (syscall_group_desc_up): New typedef.
3670 (syscall_group_desc_p): Remove typedef.
3671 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3672 (struct syscalls_info) <syscalls>: Change type to std::vector of
3673 unique_ptr.
3674 <groups>: Likewise.
3675 <my_gdb_datadir>: Change type to std::string.
3676 (syscalls_info_up): New typedef.
3677 (allocate_syscalls_info): Remove.
3678 (syscalls_info_free_syscalls_desc): Remove.
3679 (syscalls_info_free_syscall_group_desc): Remove.
3680 (free_syscalls_info): Remove.
3681 (make_cleanup_free_syscalls_info): Remove.
3682 (syscall_group_create_syscall_group_desc): Adjust.
3683 (syscall_group_add_syscall): Adjust.
3684 (syscall_create_syscall_desc): Adjust.
3685 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3686 (init_syscalls_info): Adjust.
3687 (syscall_group_get_group_by_name): Adjust.
3688 (xml_get_syscall_number): Adjust.
3689 (xml_get_syscall_name): Adjust.
3690 (xml_list_of_syscalls): Adjust.
3691 (xml_list_syscalls_by_group): Adjust.
3692 (xml_list_of_groups): Adjust.
3693
3694 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3695
3696 * probe.h: Don't include gdb_vecs.h.
3697 (DEF_VEC_P (probe_p)): Remove.
3698 (find_probes_in_objfile): Return an std::vector.
3699 * probe.c (find_probes_in_objfile): Likewise.
3700 * breakpoint.c (breakpoint_objfile_data)
3701 <longjmp_probes>: Change type to std::vector.
3702 <exception_probes>: Likewise.
3703 (free_breakpoint_probes): Don't manually free vectors.
3704 (create_longjmp_master_breakpoint): Adjust.
3705 (create_exception_master_breakpoint): Adjust.
3706 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3707 parameter type, adjust.
3708 (svr4_create_solib_event_breakpoints): Adjust.
3709
3710 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3711
3712 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3713 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3714 with new.
3715 (free_breakpoint_probes): Rename to ...
3716 (free_breakpoint_objfile_data): ... this, and call delete on
3717 bp_objfile_data..
3718
3719 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3720
3721 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3722 (loaded_script_ptr): Remove typedef.
3723 (DEF_VEC_P (loaded_script_ptr)): Remove.
3724 (struct collect_matching_scripts_data): Add constructor.
3725 <scripts_p>: Change type to (pointer to) std::vector.
3726 (collect_matching_scripts_data): Adjust.
3727 (sort_scripts_by_name): Make suitable for std::sort.
3728 (print_scripts): Don't sort vector, adjust to std::vector.
3729 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3730
3731 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3732
3733 * symfile.c (filename_language): Make struct, not typedef. Add
3734 constructor.
3735 <ext>: Change type to std::string.
3736 (DEF_VEC_O (filename_language)): Remove.
3737 (filename_language_table): Change type to std::vector.
3738 (add_filename_language): Adjust.
3739 (set_ext_lang_command): Adjust.
3740 (info_ext_lang_command): Adjust.
3741 (deduce_language_from_filename): Adjust.
3742 (class scoped_restore_filename_language_table): Remove.
3743 (test_filename_language): Use scoped_restore.
3744 (test_set_ext_lang_command): Use scoped_restore, adjust to
3745 std::vector change.
3746
3747 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3748
3749 * symfile.c: Include selftest.h.
3750 (class scoped_restore_filename_language_table): New.
3751 (test_filename_language): New test.
3752 (test_set_ext_lang_command): New test.
3753 (_initialize_symfile): Register tests.
3754
3755 2017-10-27 Keith Seitz <keiths@redhat.com>
3756
3757 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3758 in the bp_location, falling back to find_pc_sect_function when
3759 needed.
3760 (add_location_to_breakpoint): Save sal->symbol.
3761 * breakpoint.h (struct bp_location) <symbol>: New field.
3762 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3763 * symtab.h (struct symtab_and_line) <symbol>: New field.
3764
3765 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3766
3767 PR gdb/13669
3768 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3769 to rewind obstack.
3770
3771 2017-10-26 Pedro Alves <palves@redhat.com>
3772
3773 * remote.c (remote_async_terminal_ours_p): Delete.
3774 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3775 Remove references to 'remote_async_terminal_ours_p'.
3776
3777 2017-10-26 Yao Qi <yao.qi@linaro.org>
3778
3779 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3780
3781 2017-10-26 Yao Qi <yao.qi@linaro.org>
3782
3783 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3784 aspace const.
3785 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3786 Likewise.
3787 * breakpoint.c (bpstat_check_location): Remove cast.
3788 (breakpoint_hit_catch_fork): Make aspce const.
3789 (breakpoint_hit_catch_solib): Likewise.
3790 (breakpoint_hit_catch_exec): Likewise.
3791 (breakpoint_hit_ranged_breakpoint): Likewise.
3792 (breakpoint_hit_watchpoint): Likewise.
3793 (base_breakpoint_breakpoint_hit): Likewise.
3794 (bkpt_breakpoint_hit): Likewise.
3795 (dprintf_breakpoint_hit): Likewise.
3796 (tracepoint_breakpoint_hit): Likewise.
3797 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3798
3799 2017-10-26 Yao Qi <yao.qi@linaro.org>
3800
3801 * breakpoint.c (breakpoint_location_address_match): Change
3802 "struct address_space *" to "const address_space".
3803 (breakpoint_location_address_range_overlap): Likewise.
3804 (breakpoint_here_p): Likewise.
3805 (breakpoint_in_range_p): Likewise.
3806 (moribund_breakpoint_here_p): Likewise.
3807 (bp_location_inserted_here_p): Likewise.
3808 (software_breakpoint_inserted_here_p): Likewise.
3809 (hardware_breakpoint_inserted_here_p): Likewise.
3810 (hardware_watchpoint_inserted_in_range): Likewise.
3811 (bpstat_check_location): Likewise.
3812 (bpstat_stop_status): Likewise.
3813 (breakpoint_address_match): Likewise.
3814 (breakpoint_address_match_range): Likewise.
3815 (breakpoint_location_address_match): Likewise.
3816 (breakpoint_location_address_range_overlap): Likewise.
3817 (insert_single_step_breakpoint): Likewise.
3818 (breakpoint_has_location_inserted_here): Likewise.
3819 (single_step_breakpoint_inserted_here_p): Likewise.
3820 (pc_at_non_inline_function): Likewise.
3821 * breakpoint.h (bpstat_stop_status): Update declaration.
3822 (breakpoint_here_p): Likewise.
3823 (breakpoint_in_range_p): Likewise.
3824 (moribund_breakpoint_here_p): Likewise.
3825 (breakpoint_inserted_here_p): Likewise.
3826 (software_breakpoint_inserted_here_p): Likewise.
3827 (hardware_breakpoint_inserted_here_p): Likewise.
3828 (breakpoint_has_location_inserted_here): Likewise.
3829 (single_step_breakpoint_inserted_here_p): Likewise.
3830 (hardware_watchpoint_inserted_in_range): Likewise.
3831 (breakpoint_address_match): Likewise.
3832 (insert_single_step_breakpoint): Likewise.
3833 (pc_at_non_inline_function): Likewise.
3834 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3835 * record.c (record_check_stopped_by_breakpoint): Likewise.
3836 * record.h (record_check_stopped_by_breakpoint): Likewise.
3837 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3838
3839 2017-10-25 Yao Qi <yao.qi@linaro.org>
3840
3841 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3842 regcache->arch () instead get_regcache_arch.
3843 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3844 Likewise.
3845 (aarch64_fbsd_store_inferior_registers): Likewise.
3846 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3847 (store_gregs_to_thread): Likewise.
3848 (fetch_fpregs_from_thread): Likewise.
3849 (store_fpregs_to_thread): Likewise.
3850 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3851 (aarch64_store_return_value): Likewise.
3852 (aarch64_software_single_step): Likewise.
3853 * aix-thread.c (aix_thread_wait): Likewise.
3854 (supply_reg32): Likewise.
3855 (supply_sprs64): Likewise.
3856 (supply_sprs32): Likewise.
3857 (fill_gprs64): Likewise.
3858 (fill_gprs32): Likewise.
3859 (fill_sprs64): Likewise.
3860 (fill_sprs32): Likewise.
3861 (store_regs_user_thread): Likewise.
3862 (store_regs_kernel_thread): Likewise.
3863 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3864 (alphabsd_store_inferior_registers): Likewise.
3865 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3866 (alpha_store_return_value): Likewise.
3867 (alpha_deal_with_atomic_sequence): Likewise.
3868 (alpha_next_pc): Likewise.
3869 (alpha_software_single_step): Likewise.
3870 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3871 (amd64bsd_store_inferior_registers): Likewise.
3872 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3873 Likewise.
3874 (amd64_linux_store_inferior_registers): Likewise.
3875 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3876 (amd64_collect_native_gregset): Likewise.
3877 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3878 (amd64obsd_collect_uthread): Likewise.
3879 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3880 (amd64_collect_fpregset): Likewise.
3881 (amd64_supply_fxsave): Likewise.
3882 (amd64_supply_xsave): Likewise.
3883 (amd64_collect_fxsave): Likewise.
3884 (amd64_collect_xsave): Likewise.
3885 * arc-tdep.c (arc_write_pc): Likewise.
3886 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3887 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3888 (arm_fbsd_store_inferior_registers): Likewise.
3889 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3890 (store_vfp_regs): Likewise.
3891 (arm_linux_fetch_inferior_registers): Likewise.
3892 (arm_linux_store_inferior_registers): Likewise.
3893 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3894 (arm_linux_sigreturn_next_pc): Likewise.
3895 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3896 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3897 (fetch_register): Likewise.
3898 (store_register): Likewise.
3899 * arm-tdep.c (arm_is_thumb): Likewise.
3900 (displaced_in_arm_mode): Likewise.
3901 (bx_write_pc): Likewise.
3902 (arm_get_next_pcs_addr_bits_remove): Likewise.
3903 (arm_software_single_step): Likewise.
3904 (arm_extract_return_value): Likewise.
3905 (arm_store_return_value): Likewise.
3906 (arm_write_pc): Likewise.
3907 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3908 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3909 (bsd_uthread_store_registers): Likewise.
3910 * core-regset.c (fetch_core_registers): Likewise.
3911 * corelow.c (get_core_registers): Likewise.
3912 * cris-tdep.c (cris_store_return_value): Likewise.
3913 (cris_extract_return_value): Likewise.
3914 (find_step_target): Likewise.
3915 (find_step_target): Likewise.
3916 (cris_software_single_step): Likewise.
3917 * ctf.c (ctf_fetch_registers): Likewise.
3918 * darwin-nat.c (cancel_breakpoint): Likewise.
3919 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3920 * frv-tdep.c (frv_extract_return_value): Likewise.
3921 * ft32-tdep.c (ft32_store_return_value): Likewise.
3922 (ft32_extract_return_value): Likewise.
3923 * go32-nat.c (fetch_register): Likewise.
3924 (go32_fetch_registers): Likewise.
3925 (go32_store_registers): Likewise.
3926 (store_register): Likewise.
3927 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3928 (h8300_store_return_value): Likewise.
3929 * hppa-linux-nat.c (fetch_register): Likewise.
3930 (store_register): Likewise.
3931 (hppa_linux_fetch_inferior_registers): Likewise.
3932 (hppa_linux_store_inferior_registers): Likewise.
3933 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3934 (i386_darwin_store_inferior_registers): Likewise.
3935 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3936 (gnu_store_registers): Likewise.
3937 * i386-linux-nat.c (fetch_register): Likewise.
3938 (store_register): Likewise.
3939 (supply_gregset): Likewise.
3940 (fill_gregset): Likewise.
3941 (i386_linux_fetch_inferior_registers): Likewise.
3942 (i386_linux_store_inferior_registers): Likewise.
3943 (i386_linux_resume): Likewise.
3944 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3945 Likewise.
3946 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3947 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3948 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3949 (i386obsd_collect_uthread): Likewise.
3950 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3951 (i386_supply_gregset): Likewise.
3952 (i386_collect_gregset): Likewise.
3953 (i386_supply_fpregset): Likewise.
3954 (i386_collect_fpregset): Likewise.
3955 (i386_mpx_bd_base): Likewise.
3956 * i386-v4-nat.c (supply_fpregset): Likewise.
3957 (fill_fpregset): Likewise.
3958 * i387-tdep.c (i387_supply_fsave): Likewise.
3959 (i387_collect_fsave): Likewise.
3960 (i387_supply_fxsave): Likewise.
3961 (i387_collect_fxsave): Likewise.
3962 (i387_supply_xsave): Likewise.
3963 (i387_collect_xsave): Likewise.
3964 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3965 (ia64_linux_store_registers): Likewise.
3966 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3967 (ia64_extract_return_value): Likewise.
3968 (ia64_store_return_value): Likewise.
3969 (find_func_descr): Likewise.
3970 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3971 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3972 (inf_ptrace_store_registers): Likewise.
3973 * infrun.c (use_displaced_stepping): Likewise.
3974 (displaced_step_prepare_throw): Likewise.
3975 (resume): Likewise.
3976 (proceed): Likewise.
3977 (do_target_wait): Likewise.
3978 (adjust_pc_after_break): Likewise.
3979 (handle_inferior_event_1): Likewise.
3980 (handle_signal_stop): Likewise.
3981 (save_infcall_suspend_state): Likewise.
3982 (restore_infcall_suspend_state): Likewise.
3983 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3984 * jit.c (jit_frame_prev_register): Likewise.
3985 * linux-nat.c (save_stop_reason): Likewise.
3986 (linux_nat_wait_1): Likewise.
3987 (resume_stopped_resumed_lwps): Likewise.
3988 * linux-record.c (record_linux_sockaddr): Likewise.
3989 (record_linux_msghdr): Likewise.
3990 (record_linux_system_call): Likewise.
3991 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3992 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3993 (lm32_store_return_value): Likewise.
3994 * m32c-tdep.c (m32c_read_flg): Likewise.
3995 (m32c_pseudo_register_read): Likewise.
3996 (m32c_pseudo_register_write): Likewise.
3997 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3998 (m32r_linux_collect_gregset): Likewise.
3999 * m32r-tdep.c (m32r_store_return_value): Likewise.
4000 (m32r_extract_return_value): Likewise.
4001 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4002 (m68kbsd_collect_fpregset): Likewise.
4003 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
4004 * m68k-linux-nat.c (fetch_register): Likewise.
4005 (old_fetch_inferior_registers): Likewise.
4006 (old_store_inferior_registers): Likewise.
4007 (store_regs): Likewise.
4008 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
4009 (m68k_svr4_store_return_value): Likewise.
4010 * m88k-tdep.c (m88k_store_arguments): Likewise.
4011 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
4012 (mi_cmd_data_write_register_values): Likewise.
4013 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
4014 (mips_fbsd_store_inferior_registers): Likewise.
4015 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
4016 (mips_fbsd_supply_gregs): Likewise.
4017 (mips_fbsd_collect_fpregs): Likewise.
4018 (mips_fbsd_collect_gregs): Likewise.
4019 (mips_fbsd_supply_fpregset): Likewise.
4020 (mips_fbsd_collect_fpregset): Likewise.
4021 (mips_fbsd_supply_gregset): Likewise.
4022 (mips_fbsd_collect_gregset): Likewise.
4023 * mips-linux-nat.c (supply_gregset): Likewise.
4024 (fill_gregset): Likewise.
4025 (supply_fpregset): Likewise.
4026 (fill_fpregset): Likewise.
4027 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
4028 (mips_fill_gregset): Likewise.
4029 (mips_supply_fpregset): Likewise.
4030 (mips_fill_fpregset): Likewise.
4031 (mips64_supply_gregset): Likewise.
4032 (micromips_linux_sigframe_validate): Likewise.
4033 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4034 (mipsnbsd_fetch_inferior_registers): Likewise.
4035 (mipsnbsd_store_inferior_registers): Likewise.
4036 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
4037 (mipsnbsd_supply_gregset): Likewise.
4038 (mipsnbsd_iterate_over_regset_sections): Likewise.
4039 (mipsnbsd_supply_reg): Likewise.
4040 (mipsnbsd_supply_fpreg): Likewise.
4041 * mips-tdep.c (mips_in_frame_stub): Likewise.
4042 (mips_dummy_id): Likewise.
4043 (is_octeon_bbit_op): Likewise.
4044 (micromips_bc1_pc): Likewise.
4045 (extended_mips16_next_pc): Likewise.
4046 (mips16_next_pc): Likewise.
4047 (deal_with_atomic_sequence): Likewise.
4048 * moxie-tdep.c (moxie_process_readu): Likewise.
4049 * nios2-tdep.c (nios2_get_next_pc): Likewise.
4050 * nto-procfs.c (procfs_store_registers): Likewise.
4051 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
4052 (ppcfbsd_store_inferior_registers): Likewise.
4053 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
4054 (fetch_altivec_register): Likewise.
4055 (get_spe_registers): Likewise.
4056 (fetch_spe_register): Likewise.
4057 (fetch_altivec_registers): Likewise.
4058 (fetch_all_gp_regs): Likewise.
4059 (fetch_all_fp_regs): Likewise.
4060 (store_vsx_register): Likewise.
4061 (store_altivec_register): Likewise.
4062 (set_spe_registers): Likewise.
4063 (store_spe_register): Likewise.
4064 (store_altivec_registers): Likewise.
4065 (store_all_gp_regs): Likewise.
4066 (store_all_fp_regs): Likewise.
4067 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
4068 (ppc_linux_collect_gregset): Likewise.
4069 (ppc_canonicalize_syscall): Likewise.
4070 (ppc_linux_record_signal): Likewise.
4071 (ppu2spu_prev_register): Likewise.
4072 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
4073 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
4074 (ppcobsd_store_registers): Likewise.
4075 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
4076 Likewise.
4077 (ppc_ravenscar_generic_store_registers): Likewise.
4078 * procfs.c (procfs_fetch_registers): Likewise.
4079 (procfs_store_registers): Likewise.
4080 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
4081 (ravenscar_store_registers): Likewise.
4082 (ravenscar_prepare_to_store): Likewise.
4083 * record-btrace.c (record_btrace_fetch_registers): Likewise.
4084 * record-full.c (record_full_wait_1): Likewise.
4085 (record_full_registers_change): Likewise.
4086 (record_full_store_registers): Likewise.
4087 (record_full_core_fetch_registers): Likewise.
4088 (record_full_save): Likewise.
4089 (record_full_goto_insn): Likewise.
4090 * regcache.c (regcache_register_size): Likewise.
4091 (get_regcache_arch): Remove.
4092 (regcache_read_pc): Likewise.
4093 * regcache.h (get_regcache_arch): Remove.
4094 * remote-sim.c (gdbsim_fetch_register): Likewise.
4095 (gdbsim_store_register): Likewise.
4096 * remote.c (fetch_register_using_p): Likewise.
4097 (send_g_packet): Likewise.
4098 (remote_prepare_to_store): Likewise.
4099 (store_registers_using_G): Likewise.
4100 * reverse.c (save_bookmark_command): Likewise.
4101 (goto_bookmark_command): Likewise.
4102 * rs6000-aix-tdep.c (branch_dest): Likewise.
4103 * rs6000-nat.c (rs6000_ptrace64): Likewise.
4104 (fetch_register): Likewise.
4105 * rs6000-tdep.c (ppc_supply_reg): Likewise.
4106 (ppc_collect_reg): Likewise.
4107 (ppc_collect_gregset): Likewise.
4108 (ppc_collect_fpregset): Likewise.
4109 (ppc_collect_vsxregset): Likewise.
4110 (ppc_collect_vrregset): Likewise.
4111 (ppc_displaced_step_hw_singlestep): Likewise.
4112 (rs6000_pseudo_register_read): Likewise.
4113 (rs6000_pseudo_register_write): Likewise.
4114 * s390-linux-nat.c (supply_gregset): Likewise.
4115 (fill_gregset): Likewise.
4116 (s390_linux_fetch_inferior_registers): Likewise.
4117 * s390-linux-tdep.c (s390_write_pc): Likewise.
4118 (s390_software_single_step): Likewise.
4119 (s390_all_but_pc_registers_record): Likewise.
4120 (s390_linux_syscall_record): Likewise.
4121 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
4122 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4123 (shnbsd_store_inferior_registers): Likewise.
4124 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4125 (sh_extract_return_value_fpu): Likewise.
4126 (sh_store_return_value_nofpu): Likewise.
4127 (sh_corefile_supply_regset): Likewise.
4128 (sh_corefile_collect_regset): Likewise.
4129 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4130 (sh64_store_return_value): Likewise.
4131 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4132 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4133 (sparc_store_inferior_registers): Likewise.
4134 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4135 (sparc_ravenscar_prepare_to_store): Likewise.
4136 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4137 (sparc_analyze_control_transfer): Likewise.
4138 (sparc_step_trap): Likewise.
4139 (sparc_software_single_step): Likewise.
4140 (sparc32_gdbarch_init): Likewise.
4141 (sparc_supply_rwindow): Likewise.
4142 (sparc_collect_rwindow): Likewise.
4143 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4144 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4145 (sparc64nbsd_collect_gregset): Likewise.
4146 (sparc64nbsd_supply_fpregset): Likewise.
4147 (sparc64nbsd_collect_fpregset): Likewise.
4148 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4149 (sparc64_supply_gregset): Likewise.
4150 (sparc64_collect_gregset): Likewise.
4151 (sparc64_supply_fpregset): Likewise.
4152 (sparc64_collect_fpregset): Likewise.
4153 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4154 * spu-tdep.c (spu_unwind_sp): Likewise.
4155 (spu2ppu_prev_register): Likewise.
4156 (spu_memory_remove_breakpoint): Likewise.
4157 * stack.c (return_command): Likewise.
4158 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4159 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4160 * tracefile.c (trace_save_ctf): Likewise.
4161 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4162 (do_windows_store_inferior_registers): Likewise.
4163 (windows_resume): Likewise.
4164 * xtensa-linux-nat.c (fill_gregset): Likewise.
4165 (supply_gregset_reg): Likewise.
4166 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4167 (xtensa_register_read_masked): Likewise.
4168 (xtensa_supply_gregset): Likewise.
4169 (xtensa_extract_return_value): Likewise.
4170 (xtensa_store_return_value): Likewise.
4171
4172 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4173
4174 * doublest.c (floatformat_from_string): New function.
4175 * doublest.h (floatformat_from_string): Add prototype.
4176
4177 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4178 (OP_FLOAT): ... this.
4179 * expression.h: Do not include "doublest.h".
4180 (union exp_element): Replace doubleconst and decfloatconst by
4181 new element floatconst.
4182 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4183 (ada_evaluate_subexp): Likewise.
4184 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4185 OP_DOUBLE and OP_DECFLOAT.
4186 * expprint.c (print_subexp_standard): Likewise.
4187 (dump_subexp_body_standard): Likewise.
4188 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4189
4190 * parse.c: Include "dfp.h".
4191 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4192 (write_exp_elt_floatcst): New function.
4193 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4194 and OP_DECFLOAT.
4195 (operator_check_standard): Likewise.
4196 (parse_float): Do not accept suffix. Take type as input. Return bool.
4197 Return target format buffer instead of host DOUBLEST.
4198 Use floatformat_from_string and decimal_from_string to parse
4199 either binary or decimal floating-point types.
4200 (parse_c_float): Remove.
4201 * parser-defs.h: Do not include "doublest.h".
4202 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4203 (write_exp_elt_floatcst): Add prototype.
4204 (parse_float): Update prototype.
4205 (parse_c_float): Remove.
4206
4207 * c-exp.y: Do not include "dfp.h".
4208 (typed_val_float): Use byte buffer instead of DOUBLEST.
4209 (typed_val_decfloat): Remove.
4210 (DECFLOAT): Remove.
4211 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4212 (parse_number): Update to new parse_float interface.
4213 Parse suffixes and determine type before calling parse_float.
4214 Handle decimal and binary FP types the same way.
4215
4216 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4217 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4218 (parse_number): Update to new parse_float interface.
4219 Parse suffixes and determine type before calling parse_float.
4220
4221 * f-exp.y: Replace dval by typed_val_float.
4222 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4223 (parse_number): Use parse_float instead of atof.
4224
4225 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4226 (parse_go_float): Remove.
4227 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4228 (parse_number): Call parse_float instead of parse_go_float.
4229 Parse suffixes and determine type before calling parse_float.
4230
4231 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4232 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4233 (parse_number): Update to new parse_float interface.
4234 Parse suffixes and determine type before calling parse_float.
4235
4236 * m2-exp.y: Replace dval by byte buffer val.
4237 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4238 (parse_number): Call parse_float instead of atof.
4239
4240 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4241 (lex_number): Call parse_float instead of strtod.
4242 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4243 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4244 Use write_exp_elt_floatcst.
4245 (unit_testing): Remove static variable.
4246 (rust_type): Do not check unit_testing.
4247 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4248
4249 * ada-exp.y (type_float, type_double): Remove.
4250 (typed_val_float): Use byte buffer instead of DOUBLEST.
4251 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4252 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4253
4254 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4255
4256 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4257 * arch/aarch64.h: New file.
4258
4259 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4260
4261 * dfp.h (decimal_from_string): Use const reference for argument.
4262 * dfp.c (decimal_from_string): Likewise.
4263
4264 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4265
4266 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4267 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4268 * mips-tdep.c (mips_print_fp_register): Likewise.
4269
4270 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4271
4272 * common/format.h (enum argclass): Replace decfloat_arg by
4273 dec32float_arg, dec64float_arg, and dec128float_arg.
4274 * common/format.c (parse_format_string): Update to return
4275 new decimal float argument classes.
4276
4277 * printcmd.c (printf_decfloat): Rename to ...
4278 (printf_floating): ... this. Add argclass argument, and use it
4279 instead of parsing the format string again. Add support for
4280 binary floating-point values, using floatformat_to_string.
4281 Convert value to the target format if it doesn't already match.
4282 (ui_printf): Call printf_floating instead of printf_decfloat,
4283 also for double_arg / long_double_arg. Pass argclass.
4284
4285 * dfp.c (decimal_to_string): Add format string argument.
4286 * dfp.h (decimal_to_string): Likewise.
4287
4288 * doublest.c (floatformat_to_string): Add format string argument.
4289 * doublest.h (floatformat_to_string): Likewise.
4290
4291 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4292
4293 * doublest.c (floatformat_precision): New routine.
4294 (floatformat_to_string): Likewise.
4295 * doublest.c (floatformat_to_string): Add prototype.
4296
4297 * printcmd.c (print_scalar_formatted): Only call print_floating
4298 on floating-point types.
4299 * valprint.c: Do not include "floatformat.h".
4300 (generic_val_print_decfloat): Remove.
4301 (generic_val_print): Call generic_val_print_float for both
4302 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4303 (print_floating): Use floatformat_to_string. Handle decimal float.
4304 (print_decimal_floating): Remove, merge into floatformat_to_string.
4305 * value.h (print_decimal_floating): Remove.
4306
4307 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4308
4309 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4310
4311 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4312
4313 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4314
4315 * memattr.h: Don't include vec.h.
4316 (struct mem_attrib): Initialize fields.
4317 <unknown>: New static method.
4318 (struct mem_region): Add constructors, operator<, initialize
4319 fields.
4320 * memattr.c: Include algorithm.
4321 (default_mem_attrib, unknown_mem_attrib): Remove.
4322 (user_mem_region_list): New global.
4323 (target_mem_region_list, mem_region_list): Change type to
4324 std::vector<mem_region>.
4325 (mem_use_target): Now a function.
4326 (target_mem_regions_valid): Change type to bool.
4327 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4328 (require_user_regions): Adjust.
4329 (require_target_regions): Adjust.
4330 (create_mem_region): Adjust.
4331 (lookup_mem_region): Adjust.
4332 (invalidate_target_mem_regions): Adjust.
4333 (mem_clear): Rename to...
4334 (user_mem_clear): ... this, and adjust.
4335 (mem_command): Adjust.
4336 (info_mem_command): Adjust.
4337 (mem_enable, enable_mem_command, mem_disable,
4338 disable_mem_command): Adjust.
4339 (mem_delete): Adjust.
4340 (delete_mem_command): Adjust.
4341 * memory-map.h (parse_memory_map): Return an std::vector.
4342 * memory-map.c (parse_memory_map): Likewise.
4343 (struct memory_map_parsing_data): Add constructor.
4344 <memory_map>: Point to std::vector.
4345 (memory_map_start_memory): Adjust.
4346 (memory_map_end_memory): Adjust.
4347 (memory_map_end_property): Adjust.
4348 (clear_result): Remove.
4349 * remote.c (remote_memory_map): Return an std::vector.
4350 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4351 Remove.
4352 (target_debug_print_mem_region_vector): New.
4353 * target-delegates.c: Regenerate.
4354 * target.h (mem_region_vector): New typedef.
4355 (to_memory_map): Return mem_region_vector.
4356 (target_memory_map): Return an std::vector.
4357 * target.c (target_memory_map): Return an std::vector.
4358 (flash_erase_command): Adjust.
4359
4360 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4361
4362 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4363 Change type to std::string.
4364 (memory_map_start_property): Adjust.
4365 (memory_map_end_property): Adjust.
4366
4367 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4368
4369 * infrun.h: Include common/byte-vector.h.
4370 (struct displaced_step_closure): New struct.
4371 (struct buf_displaced_step_closure): New struct.
4372 * infrun.c (displaced_step_closure::~displaced_step_closure):
4373 Provide default implementation.
4374 (displaced_step_clear): Deallocate step closure with delete.
4375 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4376 (aarch64_displaced_step_closure): ... this, extend
4377 displaced_step_closure.
4378 (aarch64_displaced_step_data) <dsc>: Change type to
4379 aarch64_displaced_step_closure.
4380 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4381 unique_ptr.
4382 (aarch64_displaced_step_fixup): Add cast for displaced step
4383 closure.
4384 * amd64-tdep.c (displaced_step_closure): Rename to ...
4385 (amd64_displaced_step_closure): ... this, extend
4386 displaced_step_closure.
4387 <insn_buf>: Change type to std::vector<gdb_byte>.
4388 <max_len>: Remove.
4389 (fixup_riprel): Change type of DSC parameter, adjust to type
4390 change of insn_buf.
4391 (fixup_displaced_copy): Change type of DSC parameter.
4392 (amd64_displaced_step_copy_insn): Instantiate
4393 amd64_displaced_step_closure.
4394 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4395 to type change of insn_buf.
4396 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4397 parameter DSC.
4398 (arm_linux_copy_svc): Likewise.
4399 (cleanup_kernel_helper_return): Likewise.
4400 (arm_catch_kernel_helper_return): Likewise.
4401 (arm_linux_displaced_step_copy_insn): Instantiate
4402 arm_displaced_step_closure.
4403 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4404 (displaced_read_reg): Change type of parameter DSC.
4405 (branch_write_pc): Likewise.
4406 (load_write_pc): Likewise.
4407 (alu_write_pc): Likewise.
4408 (displaced_write_reg): Likewise.
4409 (arm_copy_unmodified): Likewise.
4410 (thumb_copy_unmodified_32bit): Likewise.
4411 (thumb_copy_unmodified_16bit): Likewise.
4412 (cleanup_preload): Likewise.
4413 (install_preload): Likewise.
4414 (arm_copy_preload): Likewise.
4415 (thumb2_copy_preload): Likewise.
4416 (install_preload_reg): Likewise.
4417 (arm_copy_preload_reg): Likewise.
4418 (cleanup_copro_load_store): Likewise.
4419 (install_copro_load_store): Likewise.
4420 (arm_copy_copro_load_store) Likewise.
4421 (thumb2_copy_copro_load_store): Likewise.
4422 (cleanup_branch): Likewise.
4423 (install_b_bl_blx): Likewise.
4424 (arm_copy_b_bl_blx): Likewise.
4425 (thumb2_copy_b_bl_blx): Likewise.
4426 (thumb_copy_b): Likewise.
4427 (install_bx_blx_reg): Likewise.
4428 (arm_copy_bx_blx_reg): Likewise.
4429 (thumb_copy_bx_blx_reg): Likewise.
4430 (cleanup_alu_imm): Likewise.
4431 (arm_copy_alu_imm): Likewise.
4432 (thumb2_copy_alu_imm): Likewise.
4433 (cleanup_alu_reg): Likewise.
4434 (install_alu_reg): Likewise.
4435 (arm_copy_alu_reg): Likewise.
4436 (thumb_copy_alu_reg): Likewise.
4437 (cleanup_alu_shifted_reg): Likewise.
4438 (install_alu_shifted_reg): Likewise.
4439 (arm_copy_alu_shifted_reg): Likewise.
4440 (cleanup_load): Likewise.
4441 (cleanup_store): Likewise.
4442 (arm_copy_extra_ld_st): Likewise.
4443 (install_load_store): Likewise.
4444 (thumb2_copy_load_literal): Likewise.
4445 (thumb2_copy_load_reg_imm): Likewise.
4446 (arm_copy_ldr_str_ldrb_strb): Likewise.
4447 (cleanup_block_load_all): Likewise.
4448 (cleanup_block_store_pc): Likewise.
4449 (cleanup_block_load_pc): Likewise.
4450 (arm_copy_block_xfer): Likewise.
4451 (thumb2_copy_block_xfer): Likewise.
4452 (cleanup_svc): Likewise.
4453 (install_svc): Likewise.
4454 (arm_copy_svc): Likewise.
4455 (thumb_copy_svc): Likewise.
4456 (arm_copy_undef): Likewise.
4457 (thumb_32bit_copy_undef): Likewise.
4458 (arm_copy_unpred): Likewise.
4459 (arm_decode_misc_memhint_neon): Likewise.
4460 (arm_decode_unconditional): Likewise.
4461 (arm_decode_miscellaneous): Likewise.
4462 (arm_decode_dp_misc): Likewise.
4463 (arm_decode_ld_st_word_ubyte): Likewise.
4464 (arm_decode_media): Likewise.
4465 (arm_decode_b_bl_ldmstm): Likewise.
4466 (arm_decode_ext_reg_ld_st): Likewise.
4467 (thumb2_decode_dp_shift_reg): Likewise.
4468 (thumb2_decode_ext_reg_ld_st): Likewise.
4469 (arm_decode_svc_copro): Likewise.
4470 (thumb2_decode_svc_copro): Likewise.
4471 (install_pc_relative): Likewise.
4472 (thumb_copy_pc_relative_16bit): Likewise.
4473 (thumb_decode_pc_relative_16bit): Likewise.
4474 (thumb_copy_pc_relative_32bit): Likewise.
4475 (thumb_copy_16bit_ldr_literal): Likewise.
4476 (thumb_copy_cbnz_cbz): Likewise.
4477 (thumb2_copy_table_branch): Likewise.
4478 (cleanup_pop_pc_16bit_all): Likewise.
4479 (thumb_copy_pop_pc_16bit): Likewise.
4480 (thumb_process_displaced_16bit_insn): Likewise.
4481 (decode_thumb_32bit_ld_mem_hints): Likewise.
4482 (thumb_process_displaced_32bit_insn): Likewise.
4483 (thumb_process_displaced_insn): Likewise.
4484 (arm_process_displaced_insn): Likewise.
4485 (arm_displaced_init_closure): Likewise.
4486 (arm_displaced_step_fixup): Add cast for closure.
4487 * arm-tdep.h: Include infrun.h.
4488 (displaced_step_closure): Rename to ...
4489 (arm_displaced_step_closure): ... this, extend
4490 displaced_step_closure.
4491 <u::svc::copy_svc_os>: Change type of parameter DSC.
4492 <cleanup>: Likewise.
4493 (arm_process_displaced_insn): Likewise.
4494 (arm_displaced_init_closure): Likewise.
4495 (displaced_read_reg): Likewise.
4496 (displaced_write_reg): Likewise.
4497 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4498 Adjust.
4499 * i386-tdep.h: Include infrun.h.
4500 (i386_displaced_step_closure): New typedef.
4501 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4502 i386_displaced_step_closure.
4503 (i386_displaced_step_fixup): Adjust.
4504 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4505 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4506 and unique_ptr.
4507 (ppc_displaced_step_fixup): Adjust.
4508 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4509 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4510 and unique_ptr.
4511 (s390_displaced_step_fixup): Adjust.
4512
4513 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4514
4515 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4516 Remove declarations.
4517
4518 2017-10-20 Tom Tromey <tom@tromey.com>
4519
4520 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4521 std::vector.
4522 (gdb_bfd_record_inclusion): Update.
4523 (bfdp): Remove typedef.
4524
4525 2017-10-20 Tom Tromey <tom@tromey.com>
4526
4527 * gdb_bfd.c (gdb_bfd_ref): Use new.
4528 (struct gdb_bfd_data): Add constructor, destructor, and member
4529 initializers.
4530 (gdb_bfd_unref): Use delete.
4531
4532 2017-10-20 Tom Tromey <tom@tromey.com>
4533
4534 * exec.c (exec_file_attach): Use new_bfd_ref.
4535 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4536 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4537 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4538 new_bfd_ref.
4539 * gdb_bfd.h (new_bfd_ref): New function.
4540
4541 2017-10-20 Pedro Alves <palves@redhat.com>
4542
4543 * main.c (captured_command_loop): Add attribute noinline.
4544
4545 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4546
4547 * interps.c (struct interp_factory): Add constructor.
4548 (interp_factory_p): Remove typedef.
4549 (DEF_VEC_P(interp_factory_p)): Remove.
4550 (interpreter_factories): Change type to std::vector.
4551 (interp_factory_register): Adjust.
4552 (interp_lookup): Adjust.
4553 (interpreter_completer): Adjust.
4554
4555 2017-10-19 Tom Tromey <tom@tromey.com>
4556
4557 * break-catch-syscall.c (catch_syscall_completer): Use
4558 std::string, gdb::unique_xmalloc_ptr.
4559
4560 2017-10-19 Tom Tromey <tom@tromey.com>
4561
4562 * infcall.c (call_function_by_hand_dummy): Use std::string.
4563
4564 2017-10-19 Tom Tromey <tom@tromey.com>
4565
4566 * mi/mi-main.c (mi_cmd_execute): Update.
4567 * top.h (prepare_execute_command): Return scoped_value_mark.
4568 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4569 Add move constructor.
4570 * top.c (prepare_execute_command): Return scoped_value_mark.
4571 (execute_command): Update.
4572
4573 2017-10-19 Pedro Alves <palves@redhat.com>
4574
4575 * xml-support.c (xml_fetch_content_from_file): Check fread's
4576 return.
4577
4578 2017-10-19 Pedro Alves <palves@redhat.com>
4579
4580 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4581 async.
4582 (handle_error_fd): New function.
4583 (ser_base_async): Add/delete an event loop file handler for
4584 error_fd.
4585
4586 2017-10-19 Pedro Alves <palves@redhat.com>
4587
4588 * xml-support.c (xml_fetch_content_from_file): Don't read in
4589 chunks. Instead use fseek to determine the file's size, and read
4590 it in one go.
4591
4592 2017-11-18 Keith Seitz <keiths@redhat.com>
4593
4594 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4595 types.
4596 Add whitespace to front of type name.
4597
4598 2017-10-18 Keith Seitz <keiths@redhat.com>
4599
4600 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4601 DW_AT_accessibility.
4602
4603 2017-10-18 Yao Qi <yao.qi@linaro.org>
4604
4605 * features/tic6x-c62x-linux.c: Remove.
4606
4607 2017-10-17 Tom Tromey <tom@tromey.com>
4608
4609 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4610 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4611 (do_mixed_source_and_assembly): Likewise.
4612
4613 2017-10-17 Tom Tromey <tom@tromey.com>
4614
4615 * regcache.c (regcache::xfer_part): Remove assertion.
4616
4617 2017-10-17 Pedro Alves <palves@redhat.com>
4618
4619 * xml-support.c (xml_fetch_content_from_file): Call
4620 unique_ptr::release() instead unique_ptr::get() when passing
4621 through xrealloc.
4622
4623 2017-10-17 Yao Qi <yao.qi@linaro.org>
4624
4625 * regcache.c (regcache::xfer_part): Remove parameters read and
4626 write, add parameter is_raw. All callers are updated.
4627
4628 2017-10-16 Keith Seitz <keiths@redhat.com>
4629
4630 * c-typeprint.c (enum access_specifier): Moved here from
4631 c_type_print_base.
4632 (output_access_specifier): New function.
4633 (c_type_print_base): Consider typedefs when assessing
4634 whether access labels are needed.
4635 Use output_access_specifier as needed.
4636 Output access specifier for typedefs, if needed.
4637 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4638 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4639 fields.
4640 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4641 accessor macros.
4642
4643 2017-10-16 Tom Tromey <tom@tromey.com>
4644
4645 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4646 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4647 * target.c (target_fileio_read_stralloc): Update.
4648 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4649 * target.h (target_fileio_read_stralloc): Return
4650 unique_xmalloc_ptr.
4651
4652 2017-10-16 Tom Tromey <tom@tromey.com>
4653
4654 * xml-syscall.c (xml_init_syscalls_info): Update.
4655 * xml-support.c (xinclude_start_include): Update.
4656 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4657 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4658 (xml_fetch_content_from_file): Likewise.
4659 * osdata.c (get_osdata): Update.
4660 * target.h (target_read_stralloc, target_get_osdata): Return
4661 unique_xmalloc_ptr.
4662 * solib-aix.c (solib_aix_get_library_list): Update.
4663 * solib-target.c (solib_target_current_sos): Update.
4664 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4665 * xml-tdesc.c (fetch_available_features_from_target): Update.
4666 (target_fetch_description_xml): Update.
4667 (file_read_description_xml): Update.
4668 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4669 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4670 (remote_pid_to_exec_file): Update.
4671 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4672 (target_get_osdata): Likewise.
4673
4674 2017-10-16 Tom Tromey <tom@tromey.com>
4675
4676 * remote.c (remote_register_number_and_offset): Use std::vector.
4677 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4678 (putpkt_binary): Use gdb::def_vector.
4679 (compare_sections_command): Use gdb::byte_vector.
4680
4681 2017-10-16 Tom Tromey <tom@tromey.com>
4682
4683 * ppc-linux-nat.c (hwdebug_insert_point): Use
4684 gdb::unique_xmalloc_ptr, XDUP.
4685
4686 2017-10-16 Tom Tromey <tom@tromey.com>
4687
4688 * probe.c (parse_probes): Use std::string.
4689 (info_probes_for_ops, enable_probes_command)
4690 (disable_probes_command): Remove cleanups.
4691
4692 2017-10-16 Tom Tromey <tom@tromey.com>
4693
4694 * buildsym.c (block_compar): Remove.
4695 (end_symtab_get_static_block): Use std::vector.
4696
4697 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4698
4699 * memrange.h (struct mem_range): Define operator< and operator==.
4700 (mem_range_s): Remove.
4701 (DEF_VEC_O (mem_range_s)): Remove.
4702 (normalize_mem_ranges): Change parameter type to std::vector.
4703 * memrange.c (compare_mem_ranges): Remove.
4704 (normalize_mem_ranges): Change parameter type to std::vector,
4705 adjust to vector change.
4706 * exec.c (section_table_available_memory): Return vector, remove
4707 parameter.
4708 (section_table_read_available_memory): Adjust to std::vector
4709 change.
4710 * remote.c (remote_read_bytes): Adjust to std::vector
4711 change.
4712 * tracepoint.h (traceframe_available_memory): Change parameter
4713 type to std::vector.
4714 * tracepoint.c (traceframe_available_memory): Change parameter
4715 type to std::vector, adjust.
4716 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4717 std::vector change.
4718 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4719 unittests/memrange-selftests.c.
4720 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4721 * gdb/unittests/memrange-selftests.c: New file.
4722
4723 2017-10-16 Pedro Alves <palves@redhat.com>
4724
4725 * elfread.c (probe_key_free): Rename range-for variable.
4726 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4727 (find_probe_by_pc, collect_probes): Rename range-for variable.
4728
4729 2017-10-16 Yao Qi <yao.qi@linaro.org>
4730
4731 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4732 * features/tic6x-c62x.c: Remove.
4733 * features/tic6x-c64x-linux.c: Remove.
4734 * features/tic6x-c64x.c: Remove.
4735 * features/tic6x-c64xp-linux.c: Remove.
4736 * features/tic6x-c64xp.c: Remove.
4737 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4738 initialize_tdesc_tic6x_*_linux functions.
4739 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4740 initialize_tdesc_tic6x_* functions.
4741
4742 2017-10-16 Yao Qi <yao.qi@linaro.org>
4743
4744 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4745 tic6x-c62x.
4746 * regformats/tic6x-c62x.dat: Remove.
4747 * regformats/tic6x-c64x.dat: Remove.
4748 * regformats/tic6x-c64xp.dat: Remove.
4749
4750 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4751
4752 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4753 (the !HAVE_LIBEXPAT version).
4754
4755 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4756
4757 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4758 const.
4759
4760 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4761
4762 * target.h: Include tracepoint.h.
4763 (enum trace_find_type): Move to tracepoint.h.
4764 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4765 * tracepoint.h: Don't include target.h
4766 (enum trace_find_type): Move from target.h.
4767 (parse_traceframe_info): Return a unique ptr.
4768 * tracepoint.c (current_traceframe_info): Change type to unique
4769 ptr.
4770 (free_traceframe_info): Remove.
4771 (clear_traceframe_info): Don't manually free
4772 current_traceframe_info.
4773 (free_result): Remove.
4774 (parse_traceframe_info): Return a unique ptr.
4775 (get_traceframe_info): Adjust to unique ptr.
4776 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4777 * remote.c (remote_traceframe_info): Return a unique ptr.
4778 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4779 ptr.
4780 * target-debug.h (target_debug_print_traceframe_info_up): New
4781 macro.
4782 * target-delegates.c: Regenerate.
4783
4784 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4785
4786 * memrange.h (struct mem_range): Add constructors.
4787 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4788 std::vector<mem_range>.
4789 * tracepoint.c (free_traceframe_info): Don't manually free
4790 vector.
4791 (traceframe_info_start_memory): Adjust to vector change.
4792 (traceframe_available_memory): Likewise.
4793 * tracefile-tfile.c (build_traceframe_info): Likewise.
4794 * ctf.c (ctf_traceframe_info): Likewise.
4795
4796 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4797
4798 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4799 std::vector<int>.
4800 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4801 (traceframe_info_start_tvar): Adjust to vector change.
4802 (parse_traceframe_info): Allocate with new.
4803 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4804 vector change.
4805 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4806 change.
4807 tfile_traceframe_info): Allocate with new.
4808 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4809 change.
4810
4811 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4812
4813 * tracepoint.c (traceframe_info): Rename to...
4814 (current_traceframe_info): ...this.
4815 (clear_traceframe_info): Adjust.
4816 (get_traceframe_info): Adjust.
4817
4818 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4819
4820 * nat/linux-osdata.c: Include algorithm.
4821 (compare_processes): Remove.
4822 (struct pid_pgid_entry): New struct.
4823 (linux_xfer_osdata_processgroups): Use std::vector instead of
4824 XNEWVEC.
4825
4826 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4827
4828 * objfiles.h: Don't include symfile.h.
4829 (struct partial_symbol): Remove forward-declaration.
4830 (struct objfile) <global_psymbols, static_psymbols>: Change type
4831 to std::vector<partial_symbol *>.
4832 * objfiles.c (objfile::objfile): Don't memset those fields.
4833 (objfile::~objfile): Don't free those fields.
4834 * psympriv.h (struct psymbol_allocation_list): Remove
4835 forward-declaration.
4836 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4837 to std::vector.
4838 (start_psymtab_common): Change parameters to std::vector.
4839 * psymtab.c: Include algorithm.
4840 (require_partial_symbols): Call shrink_to_fit.
4841 (find_pc_sect_psymbol): Adjust to vector change.
4842 (match_partial_symbol): Likewise.
4843 (lookup_partial_symbol): Likewise.
4844 (psym_relocate): Likewise.
4845 (dump_psymtab): Likewise.
4846 (recursively_search_psymtabs): Likewise.
4847 (compare_psymbols): Remove.
4848 (sort_pst_symbols): Adjust to vector change.
4849 (start_psymtab_common): Likewise.
4850 (end_psymtab_common): Likewise.
4851 (psymbol_bcache_full): De-constify return value.
4852 (add_psymbol_to_bcache): Likewise.
4853 (extend_psymbol_list): Remove.
4854 (append_psymbol_to_list): Adjust to vector change.
4855 (add_psymbol_to_list): Likewise.
4856 (init_psymbol_list): Likewise.
4857 (maintenance_info_psymtabs): Likewise.
4858 (maintenance_check_psymtabs): Likewise.
4859 * symfile.h (struct psymbol_allocation_list): Remove.
4860 * symfile.c (reread_symbols): Adjust to vector change.
4861 * dbxread.c (start_psymtab): Change type of parameters.
4862 (dbx_symfile_read): Adjust to vector change.
4863 (read_dbx_symtab): Likewise.
4864 (start_psymtab): Change type of parameters.
4865 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4866 (create_partial_symtab): Likewise.
4867 (add_partial_symbol): Likewise.
4868 (write_one_signatured_type): Likewise.
4869 (recursively_write_psymbols): Likewise.
4870 * mdebugread.c (parse_partial_symbols): Likewise.
4871 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4872 (scan_xcoff_symtab): Adjust to vector change.
4873 (xcoff_initial_scan): Likewise.
4874
4875 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4876
4877 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4878
4879 2017-10-13 Yao Qi <yao.qi@linaro.org>
4880
4881 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4882 Remove s390x-*-expedite, add s390x-expedite.
4883
4884 2017-10-13 Yao Qi <yao.qi@linaro.org>
4885
4886 * features/s390-gs-linux64.c: Regenerated.
4887 * features/s390x-gs-linux64.c: Regenerated.
4888
4889 2017-10-13 Tom Tromey <tom@tromey.com>
4890
4891 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4892 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4893 delete.
4894 * symfile.c (symbol_file_add_with_addrs): Use new.
4895 (symbol_file_add_separate): Update comment.
4896 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4897 * jit.c (jit_object_close_impl): Use new.
4898 (jit_unregister_code): Use delete.
4899 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4900 (~objfile): Rename from free_objfile.
4901 (free_objfile_separate_debug, do_free_objfile_cleanup)
4902 (free_all_objfiles, objfile_purge_solibs): Use delete.
4903 * objfiles.h (struct objfile): Add constructor and destructor.
4904 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4905 (allocate_objfile, free_objfile): Don't declare.
4906 (struct objstats): Add initializers.
4907
4908 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4909
4910 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4911 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4912 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4913 * gdbarch.h: Regenerate.
4914 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4915 Adjust comment.
4916 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4917 (i386_displaced_step_fixup): Adjust comment.
4918 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4919
4920 2017-10-12 Tom Tromey <tom@tromey.com>
4921
4922 * prologue-value.h (pv_area::store_would_trash): Return bool.
4923 (pv_area::find_reg): Likewise.
4924 * prologue-value.c (pv_area::store_would_trash): Return bool.
4925 (pv_area::find_reg): Likewise.
4926
4927 2017-10-12 Tom Tromey <tom@tromey.com>
4928
4929 * s390-linux-tdep.c (s390_store, s390_load)
4930 (s390_check_for_saved, s390_analyze_prologue): Update.
4931 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4932 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4933 * prologue-value.h (class pv_area): Move from prologue-value.c.
4934 Change names of members. Add constructor, destructor, member
4935 functions.
4936 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4937 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4938 (pv_area_fetch, pv_area_scan): Don't declare.
4939 * prologue-value.c (struct pv_area::area_entry): Now member of
4940 pv_area.
4941 (struct pv_area): Move to prologue-value.h.
4942 (pv_area::pv_area): Rename from make_pv_area.
4943 (pv_area::~pv_area): Rename from free_pv_area.
4944 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4945 (clear_entries, find_entry, overlaps, store_would_trash, store)
4946 (fetch, find_reg, scan): Now member of pv_area.
4947 Remove "area" argument. Update.
4948 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4949 Update.
4950 * mn10300-tdep.c (push_reg, check_for_saved)
4951 (mn10300_analyze_prologue): Update.
4952 * mep-tdep.c (is_arg_spill, check_for_saved)
4953 (mep_analyze_prologue): Update.
4954 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4955 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4956 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4957 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4958 Update.
4959 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4960 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4961
4962 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4963
4964 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4965 * linux-nat.c (linux_nat_delete_thread): New variable.
4966 (lwp_free): Invoke linux_nat_delete_thread if set.
4967 (linux_nat_set_delete_thread): New function.
4968 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4969 thread delete callback.
4970 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4971 (_initialize_arm_linux_nat): Assign thread delete callback.
4972 * s390-linux-nat.c (s390_delete_thread): New function.
4973 (_initialize_s390_nat): Assign thread delete callback.
4974 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4975 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4976 function.
4977 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4978 declaration.
4979 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4980 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4981
4982 2017-10-09 Tom Tromey <tom@tromey.com>
4983
4984 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4985 std::string.
4986 * tui/tui-layout.c (enum tui_status): Use std::string.
4987
4988 2017-10-11 Tom Tromey <tom@tromey.com>
4989
4990 * gdbthread.h (thread_command): Constify.
4991 * inferior.h (detach_command): Constify.
4992 * top.h (set_history, show_history): Constify.
4993 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4994 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4995 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4996 * printcmd.c (set_command): Constify.
4997 (non_const_set_command): New function.
4998 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4999 * breakpoint.c (enable_command, disable_command, delete_command)
5000 (catch_command, tcatch_command, set_breakpoint_cmd)
5001 (show_breakpoint_cmd): Constify.
5002 * macrocmd.c (macro_command): Constify.
5003 * infcmd.c (unset_command, kill_command, detach_command)
5004 (info_proc_cmd): Constify.
5005 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
5006 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
5007 (info_auto_load_cmd): Constify.
5008 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5009 (unset_tdesc_cmd): Constify.
5010 * ada-lang.c (set_ada_command, show_ada_command)
5011 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
5012 * guile/guile.c (set_guile_command, show_guile_command)
5013 (info_guile_command): Constify.
5014 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
5015 Constify.
5016 * skip.c (skip_command): Constify.
5017 * compile/compile.c (_initialize_compile): Constify.
5018 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
5019 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5020 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5021 (maint_btrace_pt_show_cmd): Constify.
5022 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
5023 Constify.
5024 * python/python.c (user_show_python, user_set_python): Constify.
5025 * mips-tdep.c (set_mips_command, show_mips_command)
5026 (set_mipsfpu_command): Constify.
5027 * record-btrace.c (cmd_record_btrace_start)
5028 (cmd_set_record_btrace, cmd_show_record_btrace)
5029 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
5030 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
5031 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
5032 Constify.
5033 * symfile.c (overlay_command): Constify.
5034 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
5035 * cli/cli-logging.c (set_logging_command, show_logging_command):
5036 Constify.
5037 * cli/cli-dump.c (dump_command, append_command)
5038 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5039 (tekhex_dump_command, binary_dump_command)
5040 (binary_append_command): Constify.
5041 * cli/cli-decode.c (struct cmd_list_element): Change type of
5042 "fun".
5043 * cli/cli-cmds.c (info_command, show_command, set_debug)
5044 (show_debug): Constify.
5045 (show_command): Add non-const overload.
5046 * top.c (set_history, show_history): Constify.
5047 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
5048 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
5049 * target.c (target_command): Constify.
5050 * sparc64-tdep.c (info_adi_command): Constify.
5051 * record-full.c (cmd_record_full_start): Constify.
5052 (set_record_full_command): Constify. Fix typo.
5053 (show_record_full_command): Constify.
5054 * thread.c (thread_command, thread_apply_command): Constify.
5055 * memattr.c (dummy_cmd): Constify.
5056 * value.c (function_command): Constify.
5057 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
5058 * probe.c (info_probes_command): Constify.
5059 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
5060 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
5061 (show_thread_cmd, set_thread_default_cmd)
5062 (show_thread_default_cmd): Constify.
5063 (check_empty): Constify.
5064 * tracepoint.c (tfind_command): Constify.
5065 * cp-support.c (maint_cplus_command): Constify.
5066 * windows-tdep.c (info_w32_command): Constify.
5067 * record.c (cmd_record_start, set_record_command)
5068 (show_record_command, info_record_command, cmd_record_goto):
5069 Constify.
5070 * ravenscar-thread.c (set_ravenscar_command)
5071 (show_ravenscar_command): Constify.
5072 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5073 Constify.
5074 (add_internal_problem_command): Remove casts.
5075 * arc-tdep.c (maintenance_print_arc_command): Constify.
5076 * valprint.c (set_print, show_print, set_print_raw)
5077 (show_print_raw): Constify.
5078 * maint.c (maintenance_command, maintenance_info_command)
5079 (maintenance_print_command, maintenance_set_cmd)
5080 (maintenance_show_cmd, set_per_command_cmd)
5081 (show_per_command_cmd, maintenance_check_command): Constify.
5082 * language.c (set_check, show_check): Constify.
5083 * typeprint.c (show_print_type, set_print_type): Constify.
5084 * go32-nat.c (go32_info_dos_command): Constify.
5085
5086 2017-10-11 Tom Tromey <tom@tromey.com>
5087
5088 * breakpoint.c (prepare_re_set_context): Remove.
5089 (breakpoint_re_set_one): Update. Don't use cleanups.
5090 (breakpoint_re_set): Use scoped_restore, std::string, and
5091 scoped_restore_current_language.
5092
5093 2017-10-11 Tom Tromey <tom@tromey.com>
5094
5095 * breakpoint.c (commands_command_1): Use std::string.
5096 (cleanup_executing_breakpoints): Remove.
5097 (bpstat_do_actions_1): Use scoped_restore.
5098 (bpstat_check_watchpoint): Use std::string.
5099 (decode_static_tracepoint_spec): Likewise.
5100 (break_range_command): Likewise.
5101 (watch_command_1): Likewise.
5102 (compare_breakpoints): Change argument types.
5103 (clear_command): Use std::vector.
5104 (cleanup_executing_breakpoints): Remove.
5105 (update_global_location_list): Use unique_xmalloc_ptr.
5106 (strace_command): Remove unused declaration.
5107
5108 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5109
5110 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
5111 * NEWS: Mention new FreeBSD/arm native configuration.
5112 * configure.host: Add arm*-*-freebsd*.
5113 * configure.nat: Likewise.
5114 * arm-fbsd-nat.c: New file.
5115
5116 2017-10-11 John Baldwin <jhb@FreeBSD.org>
5117
5118 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
5119 (ALLDEPFILES): Add arm-fbsd-tdep.c.
5120 * NEWS: Mention new FreeBSD/arm target.
5121 * configure.tgt: Add arm*-*-freebsd*.
5122 * arm-fbsd-tdep.c: New file.
5123 * arm-fbsd-tdep.h: New file.
5124
5125 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5126
5127 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5128 `gdbarch_elfcore_write_linux_prpsinfo'.
5129 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5130 method.
5131 (elf_internal_linux_prpsinfo): Remove declaration.
5132 * gdbarch.h: Regenerate.
5133 * gdbarch.c: Regenerate.
5134
5135 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5136
5137 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5138 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5139
5140 2017-10-11 Pedro Alves <palves@redhat.com>
5141
5142 * breakpoint.c (reattach_breakpoints): Delete.
5143 * breakpoint.h (reattach_breakpoints): Delete.
5144
5145 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5146
5147 * symfile.c (registered_sym_fns): Make struct, not typedef.
5148 (DEF_VEC_O (registered_sym_fns)): Remove.
5149 (symtab_fns): Change type to std::vector.
5150 (add_symtab_fns): Adjust.
5151 (find_sym_fns): Adjust.
5152
5153 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5154
5155 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5156 * arc-tdep.h (arc_arch_is_em): New function.
5157 (arc_arch_is_hs): Likewise.
5158
5159 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5160
5161 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5162 parentheses in the declaration.
5163 (macro_lookup_inclusion): Likewise.
5164 (macro_lookup_definition): Likewise.
5165 * p-lang.h (pascal_builtin_types): Likewise.
5166 * tui/tui-data.c (tui_win_list): Likewise.
5167 * tui/tui-data.h (tui_win_list): Likewise.
5168 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5169
5170 2017-10-11 Mark Rages <markrages@gmail.com>
5171
5172 * target-memory.c (block_boundaries): Fix for block address not
5173 aligned on block size.
5174
5175 2017-10-10 Pedro Alves <palves@redhat.com>
5176 Tom Tromey <tom@tromey.com>
5177
5178 * breakpoint.c (struct captured_breakpoint_query_args)
5179 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5180 (print_breakpoint): New.
5181 * breakpoint.h (print_breakpoint): Declare.
5182 * common/common-exceptions.h (enum return_reason): Remove
5183 references to catch_exceptions.
5184 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5185 Delete.
5186 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5187 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5188 * gdb.h: Delete.
5189 * gdbthread.h (thread_select): Declare.
5190 * mi/mi-cmd-break.c: Don't include gdb.h.
5191 (breakpoint_notify): Use print_breakpoint.
5192 * mi/mi-cmd-catch.c: Don't include gdb.h.
5193 * mi/mi-interp.c: Don't include gdb.h.
5194 (mi_print_breakpoint_for_event): New.
5195 (mi_breakpoint_created, mi_breakpoint_modified): Use
5196 mi_print_breakpoint_for_event.
5197 * mi/mi-main.c: Don't include gdb.h.
5198 (mi_cmd_thread_select): Parse the global thread ID here. Use
5199 thread_select instead of gdb_thread_select.
5200 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5201 of using gdb_list_thread_ids.
5202 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5203 FILEIO_ENOSYS here.
5204 (remote_fileio_request): Use TRY/CATCH instead of
5205 catch_exceptions.
5206 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5207 (symbol_file_add_from_memory_wrapper): Delete.
5208 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5209 * thread.c: Don't include gdb.h.
5210 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5211 (thread_alive): Use thread_select.
5212 (do_captured_thread_select): Delete, parts salvaged as ...
5213 (thread_select): ... this new function.
5214 (gdb_thread_select): Delete.
5215
5216 2017-10-10 Pedro Alves <palves@redhat.com>
5217 Tom Tromey <tom@tromey.com>
5218
5219 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5220 and reverse logic.
5221 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5222 No longer macros. Instead ...
5223 (enum wp_check_result): They're now values of this new
5224 enumeration.
5225 (watchpoint_check): Change return type to wp_check_result and
5226 parameter type to bpstat.
5227 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5228 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5229 catch_errors. Reverse logic of watchpoint_check call.
5230 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5231 pointer as parameter.
5232 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5233 * common/common-exceptions.c (throw_exception_sjlj): Update
5234 comments to avoid mentioning catch_errors.
5235 * exceptions.c (catch_errors): Delete.
5236 * exceptions.h: Update comments to avoid mentioning catch_errors.
5237 (catch_errors_ftype, catch_errors): Delete.
5238 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5239 (hook_stop_stub): Delete.
5240 (restore_selected_frame): Change return type to void, and
5241 parameter type to const frame_id &.
5242 (restore_infcall_control_state): Use TRY/CATCH instead of
5243 catch_errors.
5244 * main.c (captured_command_loop): Return void and remove
5245 parameter. Remove references to catch_errors.
5246 (captured_main): Use TRY/CATCH instead of catch_errors.
5247 * objc-lang.c (objc_submethod_helper_data)
5248 (find_objc_msgcall_submethod_helper): Delete.
5249 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5250 catch_errors.
5251 * record-full.c (record_full_message): Return void.
5252 (record_full_message_args, record_full_message_wrapper): Delete.
5253 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5254 instead of catch_errors.
5255 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5256 parameter type to int.
5257 * solib-darwin.c (open_symbol_file_object): Ditto.
5258 * solib-dsbt.c (open_symbol_file_object): Ditto.
5259 * solib-frv.c (open_symbol_file_object): Ditto.
5260 * solib-svr4.c (open_symbol_file_object): Ditto.
5261 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5262 * solib.c (update_solib_list): Use TRY/CATCH instead of
5263 catch_errors.
5264 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5265 Change type.
5266 * symmisc.c (struct print_symbol_args): Remove.
5267 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5268 (print_symbol): Change type.
5269 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5270 and remove parameters.
5271 (catch_errors): New.
5272 (get_windows_debug_event): Adjust.
5273
5274 2017-10-09 Tom Tromey <tom@tromey.com>
5275
5276 * mi/mi-main.c (free_splay_tree): Remove.
5277 (list_available_thread_groups): Use splay_tree_up.
5278 * common/gdb_splay_tree.h: New file.
5279
5280 2017-10-09 Tom Tromey <tom@tromey.com>
5281
5282 * mi/mi-main.c (do_nothing): Remove.
5283 (list_available_thread_groups): Update.
5284
5285 2017-10-09 Pedro Alves <palves@redhat.com>
5286
5287 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5288 reading registers when switching context.
5289
5290 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5291
5292 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5293 (fbsd_convert_siginfo): Likewise.
5294 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5295
5296 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5297
5298 * configure.ac (try_guile_versions): Remove guile-2.2.
5299 * configure: Regenerate.
5300
5301 2017-10-09 Tom Tromey <tom@tromey.com>
5302
5303 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5304 (COMPILE.pre): Use $(CXX).
5305
5306 2017-10-09 Pedro Alves <palves@redhat.com>
5307
5308 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5309 Use bool.
5310 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5311 * cp-support.h (cp_remove_params): Now returns a
5312 gdb::unique_xmalloc_ptr.
5313 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5314 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5315 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5316 returning a gdb::unique_xmalloc_ptr.
5317 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5318 * stack.c (find_frame_funname): Adjust to cp_remove_params
5319 returning a gdb::unique_xmalloc_ptr.
5320
5321 2017-10-08 Tom Tromey <tom@tromey.com>
5322
5323 * dwarf2read.c (dwarf2_get_dwz_file): Use
5324 gdb::unique_xmalloc_ptr.
5325 (find_slot_in_mapped_hash): Likewise.
5326 (dwarf2_physname): Likewise.
5327 (create_dwo_unit_in_dwp_v1): Use std::string.
5328 (create_dwo_unit_in_dwp_v2): Likewise.
5329 (lookup_dwo_cutu): Likewise.
5330 (inherit_abstract_dies): Use std::vector.
5331 (read_array_type): Likewise.
5332 (dwarf_decode_macros): Remove unused declaration.
5333 (unsigned_int_compar): Remove.
5334 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5335 (psymtabs_addrmap_cleanup): Remove.
5336
5337 2017-10-08 Tom Tromey <tom@tromey.com>
5338
5339 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5340 * frame.h (frame_cleanup_after_sniffer): Declare.
5341 (frame_prepare_for_sniffer): Return void.
5342 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5343 type of argument.
5344 (frame_prepare_for_sniffer): Return void.
5345
5346 2017-10-08 Tom Tromey <tom@tromey.com>
5347
5348 * utils.h (make_cleanup_value_free): Remove.
5349 * utils.c (do_value_free, struct cleanup): Remove.
5350 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5351 Use gdb_value_up.
5352 * value.h (struct value_deleter): New.
5353 (gdb_value_up): New typedef.
5354
5355 2017-10-08 Tom Tromey <tom@tromey.com>
5356
5357 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5358 (make_cleanup_free_search_symbols): Remove.
5359 (search_symbols): Return std::vector.
5360 (symbol_search::compare_search_syms): Now member of
5361 symbol_search. Change arguments.
5362 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5363 (symtab_symbol_info, rbreak_command): Update.
5364 * symtab.h (struct symbol_search) <next>: Remove.
5365 Add constructors.
5366 (symbol_search::operator<): New function.
5367 (symbol_search::operator==): New function.
5368 (search_symbols): Remove std::vector.
5369 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5370 (symbol_search::compare_search_syms): Declare.
5371
5372 2017-10-06 Yao Qi <yao.qi@linaro.org>
5373
5374 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5375 arch/aarch64-insn.o.
5376 Remove one rule.
5377 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5378
5379 2017-10-06 Yao Qi <yao.qi@linaro.org>
5380
5381 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5382 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5383 arch/arm-linux.o respectively.
5384 * configure.tgt: Likewise.
5385
5386 2017-10-06 Yao Qi <yao.qi@linaro.org>
5387
5388 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5389 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5390
5391 2017-10-06 Pedro Alves <palves@redhat.com>
5392
5393 * windows-nat.c: Include <algorithm>.
5394
5395 2017-10-06 Yao Qi <yao.qi@linaro.org>
5396
5397 * configure.tgt (i386_tobjs): New variable.
5398 (amd64_tobjs): New variable.
5399 Set $cpu_obs and $os_obs.
5400
5401 2017-10-06 Yao Qi <yao.qi@linaro.org>
5402
5403 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5404 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5405 (clean): Remove object files and dependency files.
5406 (distclean): Remove the directory.
5407 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5408 * configure: Re-generated.
5409 * configure.tgt: Replace amd64.o with arch/amd64.o.
5410
5411 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5412
5413 PR build/22188
5414 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5415 and SETEND.
5416
5417 2017-10-05 Pedro Alves <palves@redhat.com>
5418
5419 * linux-nat.c (linux_child_follow_fork): When following the parent
5420 and detaching the child, consult the parent thread's architecture
5421 instead of the child's.
5422
5423 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5424
5425 * ax.h: Do not include "doublest.h".
5426 (union agent_val): Remove.
5427
5428 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5429
5430 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5431 (decimal_to_string): Return std::string object.
5432 (decimal_from_string): Accept std::string object. Return bool.
5433 (decimal_from_integral, decimal_from_doublest): Remove.
5434 (decimal_from_longest): Add prototype.
5435 (decimal_from_ulongest): Likewise.
5436 (decimal_to_longest): Likewise.
5437 (decimal_from_doublest): Likewise.
5438 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5439 (MAX_DECIMAL_STRING): Move here.
5440 (decimal_to_string): Return std::string object.
5441 (decimal_from_string): Accept std::string object. Return bool.
5442 (decimal_from_integral): Remove, replace by ...
5443 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5444 (decimal_to_longest): New function.
5445 (decimal_from_floating): Remove, replace by ...
5446 (decimal_from_doublest): ... this new function.
5447 (decimal_to_doublest): Update to new decimal_to_string interface.
5448
5449 * value.c (unpack_long): Use decimal_to_longest.
5450 * valops.c (value_cast): Use decimal_from_doublest instead of
5451 decimal_from_floating. Use decimal_from_[u]longest isntead of
5452 decimal_from_integral.
5453 * valarith.c (value_args_as_decimal): Likewise.
5454 * valprint.c (print_decimal_floating): Update to new
5455 decimal_to_string interface.
5456 * printcmd.c (printf_decfloat): Likewise.
5457 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5458
5459 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5460
5461 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5462 * gdbtypes.c: Include "floatformat.h".
5463 * value.c: Likewise.
5464 * m68k-tdep.c: Likewise.
5465
5466 * findvar.c: Do not include "floatformat.h".
5467 * amd64-darwin-tdep.c: Likewise.
5468 * arm-linux-tdep.c: Likewise.
5469 * i386-darwin-tdep.c: Likewise.
5470 * i387-tdep.c: Likewise.
5471 * m68k-linux-tdep.c: Likewise.
5472 * mep-tdep.c: Likewise.
5473 * mips-tdep.c: Likewise.
5474 * nios2-tdep.c: Likewise.
5475 * s390-linux-tdep.c: Likewise.
5476 * sparc-obsd-tdep.c: Likewise.
5477 * sparc-tdep.c: Likewise.
5478 * sparc64-tdep.c: Likewise.
5479 * spu-tdep.c: Likewise.
5480 * tic6x-tdep.c: Likewise.
5481 * tilegx-tdep.c: Likewise.
5482 * vax-tdep.c: Likewise.
5483 * xstormy16-tdep.c: Likewise.
5484 * xtensa-tdep.c: Likewise.
5485
5486 * top.c: Do not include "doublest.h".
5487 * aarch64-tdep.c: Likewise.
5488 * alpha-tdep.c: Likewise.
5489 * arm-linux-tdep.c: Likewise.
5490 * m68k-linux-tdep.c: Likewise.
5491 * tilegx-tdep.c: Likewise.
5492 * xstormy16-tdep.c: Likewise.
5493
5494 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5495
5496 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5497 (mipsn32_fbsd_sigframe): Define.
5498 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5499 for FreeBSD/mipsn32.
5500
5501 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5502
5503 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5504 AT_HWCAP.
5505
5506 2017-10-05 Tristan Gingold <tgingold@free.fr>
5507
5508 * MAINTAINERS (Misc): Update my email address.
5509
5510 2017-10-04 Pedro Alves <palves@redhat.com>
5511
5512 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5513 it instead of target_gdbarch.
5514 (get_remote_state, get_remote_packet_size): Adjust
5515 get_remote_arch_state calls, passing down target_gdbarch
5516 explicitly.
5517 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5518 'gdbarch' and use it instead of target_gdbarch.
5519 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5520 passing down target_gdbarch explicitly.
5521 (struct stop_reply) <arch>: New field.
5522 (remote_parse_stop_reply): Use the stopped thread's architecture,
5523 not the current inferior's. Save the architecture in the
5524 stop_reply.
5525 (process_stop_reply): Use the stop reply's architecture.
5526 (process_g_packet, remote_fetch_registers)
5527 (remote_prepare_to_store, store_registers_using_G)
5528 (remote_store_registers): Adjust get_remote_arch_state calls,
5529 using the regcache's architecture.
5530 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5531 passing down target_gdbarch explicitly.
5532 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5533 beneath instead of calling target_gdbarch.
5534 * target.c (default_thread_architecture): Use the specified
5535 inferior's architecture, instead of the current inferior's
5536 architecture (via target_gdbarch).
5537
5538 2017-10-04 Pedro Alves <palves@redhat.com>
5539
5540 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5541 case.
5542 (regcache_print): Handle !target_has_registers here instead.
5543
5544 2017-10-04 Pedro Alves <palves@redhat.com>
5545
5546 * frame.c (create_test_frame): Delete.
5547 * frame.h (create_test_frame): Delete.
5548 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5549 (class regcache_test): Delete.
5550 (test_target_has_registers, test_target_has_stack)
5551 (test_target_has_memory, test_target_prepare_to_store)
5552 (test_target_store_registers): New functions.
5553 (test_target_ops): New class.
5554 (register_to_value_test): Error out if there's already a
5555 process_stratum (or higher) target pushed. Create a fuller mock
5556 environment, with mock target_ops, inferior, address space, thread
5557 and inferior_ptid.
5558 * progspace.c (struct address_space): Move to ...
5559 * progspace.h (struct address_space): ... here.
5560 * regcache.h (regcache::~regcache, regcache::raw_write)
5561 [GDB_SELF_TEST]: No longer virtual.
5562
5563 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5564
5565 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5566
5567 2017-10-04 Pedro Alves <palves@redhat.com>
5568
5569 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5570 out of 'between TRY and CATCH'.
5571
5572 2017-10-04 Pedro Alves <palves@redhat.com>
5573
5574 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5575 * common/common-exceptions.h (TRY): Open an outermost scope.
5576 Expand intro comment.
5577 (CATCH): Reindent.
5578 (END_CATCH): Close the outermost scope.
5579 * completer.c (complete_line_internal): Add missing END_CATCH.
5580
5581 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5582
5583 * NEWS (Changes since GDB 8.0): Add entry about new
5584 'set-cwd-on-gdbserver' feature.
5585 (New remote packets): Add entry for QSetWorkingDir.
5586 * common/common-inferior.h (set_inferior_cwd): New prototype.
5587 * infcmd.c (set_inferior_cwd): Remove "static".
5588 (show_cwd_command): Expand text to include remote debugging.
5589 * remote.c: Add PACKET_QSetWorkingDir.
5590 (remote_protocol_features) <QSetWorkingDir>: New entry for
5591 PACKET_QSetWorkingDir.
5592 (extended_remote_set_inferior_cwd): New function.
5593 (extended_remote_create_inferior): Call
5594 "extended_remote_set_inferior_cwd".
5595 (_initialize_remote): Call "add_packet_config_cmd" for
5596 QSetWorkingDir.
5597
5598 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5599
5600 * NEWS (New commands): Mention "set/show cwd".
5601 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5602 "cd" command's help text.
5603 * common/common-inferior.h (get_inferior_cwd): New prototype.
5604 * infcmd.c (inferior_cwd_scratch): New global variable.
5605 (set_inferior_cwd): New function.
5606 (get_inferior_cwd): Likewise.
5607 (set_cwd_command): Likewise.
5608 (show_cwd_command): Likewise.
5609 (_initialize_infcmd): Add "set/show cwd" commands.
5610 * inferior.h (class inferior) <cwd>: New field.
5611 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5612 (fork_inferior): Change inferior's cwd before its execution.
5613 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5614 to CreateProcess.
5615
5616 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5617
5618 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5619 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5620 (COMMON_OBS): Add gdb_tilde_expand.o.
5621 * common/gdb_tilde_expand.c: New file.
5622 * common/gdb_tilde_expand.h: Likewise.
5623
5624 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5625
5626 * gdbarch.sh (objfile): Remove duplicate declaration.
5627 * gdbarch.h: Regenerate.
5628
5629 2017-10-03 Tom Tromey <tom@tromey.com>
5630
5631 * utils.c (internal_vproblem): Use string_vprintf.
5632
5633 2017-10-03 Tom Tromey <tom@tromey.com>
5634
5635 * printcmd.c (info_symbol_command): Use std::string.
5636
5637 2017-10-03 Tom Tromey <tom@tromey.com>
5638
5639 * top.c (gdb_safe_append_history): Use std::string.
5640
5641 2017-10-03 Tom Tromey <tom@tromey.com>
5642
5643 * event-top.c (stdin_event_handler): Update.
5644 * main.c (captured_main_1): Update.
5645 * top.h (make_delete_ui_cleanup): Remove.
5646 (struct ui): Add constructor and destructor.
5647 (new_ui, delete_ui): Remove.
5648 * top.c (make_delete_ui_cleanup): Remove.
5649 (new_ui_command): Use std::unique_ptr.
5650 (delete_ui_cleanup): Remove.
5651 (ui::ui): Rename from new_ui. Update.
5652 (free_ui): Remove.
5653 (ui::~ui): Rename from delete_ui. Update.
5654
5655 2017-10-03 Tom Tromey <tom@tromey.com>
5656
5657 * symfile.c (load_progress): Use gdb::byte_vector.
5658
5659 2017-10-03 Tom Tromey <tom@tromey.com>
5660
5661 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5662 declaration.
5663 * printcmd.c (x_command): Remove unused declaration.
5664 * symfile.c (symbol_file_command): Remove unused declaration.
5665
5666 2017-10-03 Tom Tromey <tom@tromey.com>
5667
5668 * utils.c (internal_vproblem): Use std::string.
5669 (defaulted_query): Likewise.
5670
5671 2017-10-03 Tom Tromey <tom@tromey.com>
5672
5673 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5674 * top.c (execute_command_to_string): Update.
5675 * utils.c (make_cleanup_restore_page_info): Remove.
5676 (do_restore_page_info_cleanup): Remove.
5677 (set_batch_flag_and_restore_page_info):
5678 New.
5679 (make_cleanup_restore_page_info): Remove.
5680 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5681 (~set_batch_flag_and_restore_page_info): New
5682 (make_cleanup_restore_uinteger): Remove.
5683 (make_cleanup_restore_integer): Remove.
5684 (struct restore_integer_closure): Remove.
5685 (restore_integer): Remove.
5686 * utils.h (struct set_batch_flag_and_restore_page_info): New
5687 class.
5688 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5689 (make_cleanup_restore_page_info): Remove.
5690 (make_cleanup_restore_uinteger) Remove.
5691 (make_cleanup_restore_integer) Remove.
5692
5693 2017-10-03 Tom Tromey <tom@tromey.com>
5694
5695 * record-full.h (record_full_gdb_operation_disable_set): Return
5696 scoped_restore_tmpl<int>.
5697 * infrun.c (adjust_pc_after_break): Update.
5698 (handle_signal_stop): Update.
5699 * record-full.c (record_full_gdb_operation_disable_set): Return
5700 scoped_restore_tmpl<int>.
5701 (record_full_wait_1, record_full_insert_breakpoint)
5702 (record_full_remove_breakpoint, record_full_save)
5703 (record_full_goto_insn): Update.
5704
5705 2017-10-02 Tom Tromey <tom@tromey.com>
5706
5707 PR rust/22236:
5708 * rust-lang.c (rust_val_print_str): New function.
5709 (val_print_struct): Call it.
5710 (rust_subscript): Preserve name of slice type.
5711
5712 2017-10-02 Tom Tromey <tom@tromey.com>
5713
5714 * rust-lang.c (rust_subscript): Handle slices in
5715 EVAL_AVOID_SIDE_EFFECTS case.
5716
5717 2017-10-02 Tom Tromey <tom@tromey.com>
5718
5719 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5720
5721 2017-10-02 Tom Tromey <tom@tromey.com>
5722
5723 * rust-lang.h (rust_slice_type): Add "extern".
5724
5725 2017-10-02 Tom Tromey <tom@tromey.com>
5726 Pedro Alves <palves@redhat.com>
5727
5728 * ada-lang.h (ada_exc_info::operator<): Make const.
5729 (ada_exc_info::operator==): Make const.
5730 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5731 Make const.
5732
5733 2017-09-29 Tom Tromey <tom@tromey.com>
5734
5735 * target.c (read_whatever_is_readable): Change type of "result".
5736 Update.
5737 (free_memory_read_result_vector): Remove.
5738 (read_memory_robust): Change return type. Update.
5739 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5740 bin2hex, std::string.
5741 * target.h (memory_read_result_s): Remove typedef.
5742 (free_memory_read_result_vector): Remove.
5743 (read_memory_robust): Return std::vector.
5744
5745 2017-09-29 Tom Tromey <tom@tromey.com>
5746
5747 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5748
5749 2017-09-29 Tom Tromey <tom@tromey.com>
5750
5751 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5752 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5753 operator< and operator==.
5754 (ada_exceptions_list): Return a std::vector.
5755 * ada-lang.c (ada_exc_info::operator<): Rename from
5756 compare_ada_exception_info.
5757 (ada_exc_info::operator==): New.
5758 (sort_remove_dups_ada_exceptions_list): Change type of
5759 "exceptions".
5760 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5761 (ada_add_global_exceptions): Likewise.
5762 (ada_exceptions_list_1): Return a std::vector.
5763 (ada_exceptions_list): Likewise.
5764
5765 2017-09-29 Tom Tromey <tom@tromey.com>
5766
5767 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5768 'std::set *'.
5769 (print_one_inferior): Update.
5770 (free_vector_of_ints): Remove.
5771 (list_available_thread_groups): Change "ids" to std::set.
5772 (mi_cmd_list_thread_groups): Update.
5773 (struct collect_cores_data) <core>: Now a std::set.
5774 (collect_cores): Update.
5775 (unique): Remove.
5776 (print_one_inferior): Update.
5777
5778 2017-09-29 Tom Tromey <tom@tromey.com>
5779
5780 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5781 (mi_execute_async_cli_command): Likewise.
5782 (mi_cmd_trace_frame_collected): Use field_fmt.
5783
5784 2017-09-29 Tom Tromey <tom@tromey.com>
5785
5786 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5787 gdb::byte_vector.
5788
5789 2017-09-29 Tom Tromey <tom@tromey.com>
5790
5791 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5792
5793 2017-09-29 Tom Tromey <tom@tromey.com>
5794
5795 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5796
5797 2017-09-29 Tom Tromey <tom@tromey.com>
5798
5799 * varobj.h (varobj_gen_name): Return std::string.
5800 * varobj.c (varobj_gen_name): Return std::string.
5801 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5802 (mi_cmd_var_delete): Don't copy "name".
5803
5804 2017-09-29 Tom Tromey <tom@tromey.com>
5805
5806 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5807 (mi_cmd_break_insert_1): Update.
5808
5809 2017-09-29 Tom Tromey <tom@tromey.com>
5810
5811 * target.h (make_scoped_defer_target_commit_resume): Update.
5812 * target.c (make_scoped_defer_target_commit_resume): Rename from
5813 make_cleanup_defer_target_commit_resume. Return a
5814 scoped_restore.
5815 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5816
5817 2017-09-29 Tom Tromey <tom@tromey.com>
5818
5819 * main.c (captured_main_1): Remove unused declaration.
5820 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5821
5822 2017-09-29 Tom Tromey <tom@tromey.com>
5823
5824 * symtab.c (search_symbols): Remove unused outer cleanup.
5825 (make_source_files_completion_list): Remove unused declaration.
5826
5827 2017-09-29 Tom Tromey <tom@tromey.com>
5828
5829 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5830
5831 2017-09-29 Tom Tromey <tom@tromey.com>
5832
5833 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5834 gdb::byte_vector.
5835
5836 2017-09-29 Tom Tromey <tom@tromey.com>
5837
5838 * complaints.c (vcomplaint): Use std::string.
5839
5840 2017-09-29 Tom Tromey <tom@tromey.com>
5841
5842 * tracepoint.c (trace_variable_command): Use std::string.
5843 (encode_actions_1): Remove unused declarations.
5844 (create_tsv_from_upload): Use std::string.
5845
5846 2017-09-29 Tom Tromey <tom@tromey.com>
5847
5848 * cp-support.c (gdb_demangle): Use std::string.
5849
5850 2017-09-29 Tom Tromey <tom@tromey.com>
5851
5852 * stack.c (parse_frame_specification): Use std::string
5853 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5854
5855 2017-09-29 Tom Tromey <tom@tromey.com>
5856
5857 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5858
5859 2017-09-29 Tom Tromey <tom@tromey.com>
5860
5861 * utils.c (vfprintf_maybe_filtered): Use std::string.
5862 (vfprintf_unfiltered): Likewise.
5863
5864 2017-09-29 Tom Tromey <tom@tromey.com>
5865
5866 * event-top.c (top_level_prompt): Return std::string.
5867 (display_gdb_prompt): Update.
5868
5869 2017-09-29 Tom Tromey <tom@tromey.com>
5870
5871 * unittests/common-utils-selftests.c (format): New function.
5872 (string_vprintf_tests): New function.
5873 (_initialize_common_utils_selftests): Register new tests.
5874 * common/common-utils.c (string_vprintf): New function.
5875 * common/common-utils.h (string_vprintf): Declare.
5876
5877 2017-09-29 Pedro Alves <palves@redhat.com>
5878
5879 * common/rsp-low.c (unpack_varlen_hex): Constify.
5880 * common/rsp-low.h (unpack_varlen_hex): Constify.
5881 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5882 Constify.
5883 * remote.c (remote_set_permissions, read_ptid)
5884 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5885 (remote_static_tracepoint_marker_at)
5886 (remote_static_tracepoint_markers_by_strid)
5887 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5888 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5889 (parse_tracepoint_definition, parse_tsv_definition)
5890 (parse_static_tracepoint_marker_definition): Constify.
5891 * tracepoint.h (parse_static_tracepoint_marker_definition)
5892 (parse_trace_status, parse_tracepoint_status)
5893 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5894
5895 2017-09-29 Pedro Alves <palves@redhat.com>
5896
5897 * remote.c (target_buf, target_buf_size): Delete.
5898 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5899 Use the connection's packet buffer instead.
5900 All callers adjusted.
5901 (_initialize_remote): Remove references to target_buf and
5902 target_buf_size.
5903
5904 2017-09-28 Pedro Alves <palves@redhat.com>
5905
5906 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5907 unittests/common-utils-selftests.c.
5908 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5909 (COMMON_OBS): Remove utils-selftests.o.
5910 * utils-selftests.c: Move to ...
5911 * unittests/common-utils-selftests.c: ... here and rename self
5912 test to "string_printf".
5913
5914 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5915
5916 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5917 having NULL cus or tus.
5918
5919 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5920
5921 * arm-tdep.c: (convert_from_extended): Remove.
5922 (convert_to_extended): Likewise.
5923 (arm_extract_return_value): Use convert_typed_floating.
5924 (arm_store_return_value): Likewise.
5925
5926 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5927 * sh-tdep.c: Do not include "floatformat.h".
5928 (sh_littlebyte_bigword_type): New function.
5929 (sh_register_convert_to_virtual): Use convert_typed_floating.
5930 (sh_register_convert_to_raw): Likewise.
5931 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5932 (sh64_littlebyte_bigword_type): New function.
5933 (sh64_extract_return_value): Use convert_typed_floating.
5934 (sh64_register_convert_to_virtual): Likewise.
5935 (sh64_register_convert_to_raw): Likewise.
5936
5937 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5938
5939 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5940 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5941
5942 * gdbtypes.h (union type_specific): Make field floatformat hold
5943 just a single struct floatformat, not an array.
5944 (floatformat_from_type): Move here.
5945 * gdbtypes.c (floatformat_from_type): Move here. Update to
5946 changed TYPE_FLOATFORMAT definition.
5947 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5948 (recursive_dump_type): Likewise.
5949 (init_float_type): Install correct floatformat for byte order.
5950 (arch_float_type): Likewise.
5951
5952 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5953
5954 * gdbtypes.c (init_type): Change incoming argument from
5955 length-in-bytes to length-in-bits. Assert length is a
5956 multiple of TARGET_CHAR_BITS.
5957 (arch_type, arch_flags_type): Likewise.
5958 (init_integer_type): Update call to init_type.
5959 (init_character_type): Likewise.
5960 (init_boolean_type): Likewise.
5961 (init_float_type): Likewise.
5962 (init_decfloat_type): Likewise.
5963 (init_complex_type): Likewise.
5964 (init_pointer_type): Likewise.
5965 (objfile_type): Likewise.
5966 (arch_integer_type): Update call to arch_type.
5967 (arch_character_type): Likewise.
5968 (arch_boolean_type): Likewise.
5969 (arch_float_type): Likewise.
5970 (arch_decfloat_type): Likewise.
5971 (arch_complex_type): Likewise.
5972 (arch_pointer_type): Likewise.
5973 (gdbtypes_post_init): Likewise.
5974
5975 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5976 (read_base_type): Likewise.
5977 * mdebugread.c (basic_type): Likewise.
5978 * stabsread.c (dbx_init_float_type): Likewise.
5979 (rs6000_builtin_type): Likewise.
5980 (read_range_type): Likewise. Also, fix call to init_integer_type
5981 with erroneous length argument.
5982
5983 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5984 * d-lang.c (build_d_types): Likewise.
5985 * f-lang.c (build_fortran_types): Likewise.
5986 * go-lang.c (build_go_types): Likewise.
5987 * opencl-lang.c (build_opencl_types): Likewise.
5988 * jit.c (finalize_symtab): Likewise.
5989 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5990 (build_std_type_info_type): Likewise.
5991 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5992 update call to arch_flags_type.
5993
5994 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5995 arch_type.
5996 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5997 * windows-tdep.c (windows_get_tlb_type): Likewise.
5998
5999 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
6000 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6001 * m32c-tdep.c (make_types): Likewise.
6002 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
6003 (rl78_psw_type): Update call to arch_flags_type.
6004 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
6005 * rx-tdep.c (rx_psw_type): Likewise.
6006 (rx_fpsw_type): Likewise.
6007 * sparc-tdep.c (sparc_psr_type): Likewise.
6008 (sparc_fsr_type): Likewise.
6009 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
6010 (sparc64_ccr_type): Likewise.
6011 (sparc64_fsr_type): Likewise.
6012 (sparc64_fprs_type): Likewise.
6013
6014 2017-09-27 Tom Tromey <tom@tromey.com>
6015
6016 * findcmd.c (find_command): Constify.
6017
6018 2017-09-27 Tom Tromey <tom@tromey.com>
6019
6020 * ada-tasks.c (task_command_1, task_command): Constify.
6021
6022 2017-09-27 Tom Tromey <tom@tromey.com>
6023
6024 * symtab.c (maintenance_print_symbol_cache)
6025 (maintenance_flush_symbol_cache)
6026 (maintenance_print_symbol_cache_statistics): Constify.
6027
6028 2017-09-27 Tom Tromey <tom@tromey.com>
6029
6030 * inferior.c (detach_inferior_command, kill_inferior_command)
6031 (inferior_command): Constify.
6032
6033 2017-09-27 Tom Tromey <tom@tromey.com>
6034
6035 * regcache.c (regcache_print, maintenance_print_registers)
6036 (maintenance_print_raw_registers)
6037 (maintenance_print_cooked_registers)
6038 (maintenance_print_register_groups)
6039 (maintenance_print_remote_registers): Constify.
6040
6041 2017-09-27 Tom Tromey <tom@tromey.com>
6042
6043 * printcmd.c (map_display_numbers, undisplay_command)
6044 (enable_disable_display_command, enable_display_command)
6045 (disable_display_command): Constify.
6046
6047 2017-09-27 Tom Tromey <tom@tromey.com>
6048
6049 * breakpoint.h (delete_command): Don't declare.
6050 * breakpoint.c (delete_command, enable_once_command)
6051 (enable_count_command, enable_delete_command, breakpoint_1)
6052 (maintenance_info_breakpoints, stopin_command, stopat_command)
6053 (delete_command, delete_trace_command, save_breakpoints)
6054 (save_breakpoints_command, save_tracepoints_command): Constify.
6055
6056 2017-09-27 Tom Tromey <tom@tromey.com>
6057
6058 * macrocmd.c (macro_expand_command, macro_expand_once_command)
6059 (skip_ws, extract_identifier, macro_define_command)
6060 (macro_undef_command, macro_list_command): Constify.
6061
6062 2017-09-27 Tom Tromey <tom@tromey.com>
6063
6064 * infcmd.c (environment_info, set_environment_command)
6065 (unset_environment_command, path_info, info_proc_cmd_1)
6066 (info_proc_cmd_mappings, info_proc_cmd_stat)
6067 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
6068 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
6069
6070 2017-09-27 Tom Tromey <tom@tromey.com>
6071
6072 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
6073 Constify.
6074
6075 2017-09-27 Tom Tromey <tom@tromey.com>
6076
6077 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
6078
6079 2017-09-27 Tom Tromey <tom@tromey.com>
6080
6081 * demangle.c (demangle_command): Constify.
6082
6083 2017-09-27 Tom Tromey <tom@tromey.com>
6084
6085 * progspace.c (maintenance_info_program_spaces_command):
6086 Constify.
6087
6088 2017-09-27 Tom Tromey <tom@tromey.com>
6089
6090 * compile/compile.c (check_raw_argument, compile_file_command)
6091 (compile_code_command, compile_print_command): Constify.
6092
6093 2017-09-27 Tom Tromey <tom@tromey.com>
6094
6095 * reggroups.c (maintenance_print_reggroups): Constify.
6096
6097 2017-09-27 Tom Tromey <tom@tromey.com>
6098
6099 * dwarf2read.c (save_gdb_index_command): Constify.
6100
6101 2017-09-27 Tom Tromey <tom@tromey.com>
6102
6103 * stap-probe.c (info_probes_stap_command): Constify.
6104
6105 2017-09-27 Tom Tromey <tom@tromey.com>
6106
6107 * fork-child.c (unset_exec_wrapper_command): Constify.
6108
6109 2017-09-27 Tom Tromey <tom@tromey.com>
6110
6111 * btrace.c (get_uint, get_context_size, no_chunk)
6112 (maint_btrace_packet_history_cmd)
6113 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6114 (maint_info_btrace_cmd): Constify.
6115
6116 2017-09-27 Tom Tromey <tom@tromey.com>
6117
6118 * reverse.c (delete_bookmark_command): Constify.
6119
6120 2017-09-27 Tom Tromey <tom@tromey.com>
6121
6122 * remote.c (set_memory_packet_size)
6123 (set_memory_write_packet_size, show_memory_write_packet_size)
6124 (set_memory_read_packet_size, show_memory_read_packet_size)
6125 (compare_sections_command, packet_command, remote_put_command)
6126 (remote_get_command, remote_delete_command): Constify.
6127
6128 2017-09-27 Tom Tromey <tom@tromey.com>
6129
6130 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6131 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6132 (set_mipsfpu_auto_command): Constify.
6133
6134 2017-09-27 Tom Tromey <tom@tromey.com>
6135
6136 * cli/cli-cmds.h (cd_command): Constify.
6137 * cli/cli-cmds.c (cd_command): Constify.
6138
6139 2017-09-27 Tom Tromey <tom@tromey.com>
6140
6141 * thread.c (thread_name_command, thread_find_command): Constify.
6142
6143 2017-09-27 Tom Tromey <tom@tromey.com>
6144
6145 * probe.c (enable_probes_command, disable_probes_command):
6146 Constify.
6147
6148 2017-09-27 Tom Tromey <tom@tromey.com>
6149
6150 * symfile.c (symbol_file_command): Constify.
6151 * gdbcore.h (deprecated_file_changed_hook): Constify.
6152 * exec.c (deprecated_file_changed_hook, exec_file_command)
6153 (file_command): Constify.
6154 * defs.h (symbol_file_command): Constify.
6155
6156 2017-09-27 Tom Tromey <tom@tromey.com>
6157
6158 * remote-fileio.c (set_system_call_allowed)
6159 (show_system_call_allowed): Constify.
6160
6161 2017-09-27 Tom Tromey <tom@tromey.com>
6162
6163 * tracepoint.c (delete_trace_variable_command)
6164 (tfind_end_command, tfind_start_command, tfind_pc_command)
6165 (tfind_tracepoint_command, tfind_line_command)
6166 (tfind_range_command, tfind_outside_command): Constify.
6167
6168 2017-09-27 Tom Tromey <tom@tromey.com>
6169
6170 * ax-gdb.c (maint_agent_printf_command, agent_command)
6171 (agent_eval_command): Constify.
6172
6173 2017-09-27 Tom Tromey <tom@tromey.com>
6174
6175 * tracepoint.c (info_scope_command): Constify.
6176 * python/python.c (gdbpy_decode_line): Constify.
6177 * python/py-breakpoint.c (bppy_init): Constify.
6178 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6179 * location.h: (new_linespec_location)
6180 (string_to_event_location_basic, string_to_event_location):
6181 Constify.
6182 * location.c (new_linespec_location)
6183 (string_to_event_location_basic, string_to_event_location):
6184 Constify.
6185 * linespec.h (decode_line_with_current_source)
6186 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6187 * linespec.c (linespec_lex_to_end)
6188 (decode_line_with_current_source)
6189 (decode_line_with_last_displayed): Constify.
6190 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6191 Constify.
6192 * cli/cli-cmds.c (edit_command, list_command): Constify.
6193 * breakpoint.h (until_break_command, watch_command_wrapper)
6194 (awatch_command_wrapper, rwatch_command_wrapper)
6195 (init_ada_exception_breakpoint): Constify.
6196 * breakpoint.c (break_command_1, dprintf_command)
6197 (break_range_command, watch_command_wrapper)
6198 (rwatch_command_wrapper, awatch_command_wrapper)
6199 (until_break_command, init_ada_exception_breakpoint)
6200 (strace_marker_create_sals_from_location, trace_command)
6201 (ftrace_command, strace_command, struct tracepoint): Constify.
6202 * ax-gdb.c (agent_command_1): Constify.
6203 * ada-lang.c (ada_exception_sal): Constify.
6204
6205 2017-09-27 Tom Tromey <tom@tromey.com>
6206
6207 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6208 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6209 (get_context_size, no_chunk, get_insn_history_modifiers)
6210 (cmd_record_insn_history, get_call_history_modifiers)
6211 (cmd_record_call_history): Constify.
6212
6213 2017-09-27 Tom Tromey <tom@tromey.com>
6214
6215 * source.c (show_substitute_path_command)
6216 (unset_substitute_path_command, set_substitute_path_command):
6217 Constify.
6218
6219 2017-09-27 Tom Tromey <tom@tromey.com>
6220
6221 * typeprint.c (maintenance_print_type): Constify.
6222 * maint.c (maintenance_dump_me, maintenance_demangle)
6223 (maintenance_time_display, maintenance_info_sections)
6224 (maintenance_print_statistics, maintenance_deprecate)
6225 (maintenance_undeprecate): Constify.
6226 (maintenance_do_deprecate): Constify. Use std::string.
6227 (maintenance_selftest): Constify.
6228 * gdbtypes.h (maintenance_print_type): Constify.
6229
6230 2017-09-27 Tom Tromey <tom@tromey.com>
6231
6232 * hppa-tdep.c (unwind_command): Constify.
6233
6234 2017-09-27 Tom Tromey <tom@tromey.com>
6235
6236 * target-descriptions.c (unset_tdesc_filename_cmd)
6237 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6238 Constify.
6239
6240 2017-09-27 Tom Tromey <tom@tromey.com>
6241
6242 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6243
6244 2017-09-27 Tom Tromey <tom@tromey.com>
6245
6246 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6247
6248 2017-09-27 Tom Tromey <tom@tromey.com>
6249
6250 * tui/tui-regs.c (tui_reg_command): Constify.
6251
6252 2017-09-27 Tom Tromey <tom@tromey.com>
6253
6254 * skip.c (skip_file_command, skip_function_command)
6255 (skip_enable_command, skip_disable_command, skip_delete_command):
6256 Constify.
6257
6258 2017-09-27 Tom Tromey <tom@tromey.com>
6259
6260 * record-btrace.c (cmd_record_btrace_bts_start)
6261 (cmd_record_btrace_pt_start): Constify.
6262
6263 2017-09-27 Tom Tromey <tom@tromey.com>
6264
6265 * symmisc.c (maintenance_print_symbols)
6266 (maintenance_print_msymbols, maintenance_print_objfiles)
6267 (maintenance_info_symtabs, maintenance_check_symtabs)
6268 (maintenance_expand_symtabs, maintenance_info_line_tables):
6269 Constify.
6270
6271 2017-09-27 Tom Tromey <tom@tromey.com>
6272
6273 * top.c (new_ui_command): Constify.
6274
6275 2017-09-27 Tom Tromey <tom@tromey.com>
6276
6277 * symfile.c (add_symbol_file_command)
6278 (remove_symbol_file_command, list_overlays_command)
6279 (map_overlay_command, unmap_overlay_command)
6280 (overlay_auto_command, overlay_manual_command)
6281 (overlay_off_command, overlay_load_command): Constify.
6282
6283 2017-09-27 Tom Tromey <tom@tromey.com>
6284
6285 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6286 (info_spu_mailbox_command, info_spu_dma_command)
6287 (info_spu_proxydma_command): Constify.
6288
6289 2017-09-27 Tom Tromey <tom@tromey.com>
6290
6291 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6292
6293 2017-09-27 Tom Tromey <tom@tromey.com>
6294
6295 * cli/cli-script.c (user_defined_command): Constify.
6296
6297 2017-09-27 Tom Tromey <tom@tromey.com>
6298
6299 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6300 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6301 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6302 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6303 (dump_binary_value, append_binary_memory, append_binary_value):
6304 Constify.
6305 (struct dump_context) <func>: Constify.
6306 (add_dump_command): Update.
6307
6308 2017-09-27 Tom Tromey <tom@tromey.com>
6309
6310 * cli/cli-cmds.c (show_version, show_configuration)
6311 (source_command, show_user): Constify.
6312
6313 2017-09-27 Tom Tromey <tom@tromey.com>
6314
6315 * target.c (maintenance_print_target_stack): Constify.
6316
6317 2017-09-27 Tom Tromey <tom@tromey.com>
6318
6319 * interps.c (interpreter_exec_cmd): Constify.
6320
6321 2017-09-27 Tom Tromey <tom@tromey.com>
6322
6323 * record-full.c (cmd_record_full_restore): Constify.
6324
6325 2017-09-27 Tom Tromey <tom@tromey.com>
6326
6327 * memattr.c (enable_mem_command, disable_mem_command)
6328 (delete_mem_command): Constify.
6329
6330 2017-09-27 Tom Tromey <tom@tromey.com>
6331
6332 * value.c (show_convenience): Constify.
6333
6334 2017-09-27 Tom Tromey <tom@tromey.com>
6335
6336 * gdbcore.h (core_file_command): Update.
6337 * corefile.c (core_file_command): Constify.
6338
6339 2017-09-27 Tom Tromey <tom@tromey.com>
6340
6341 * user-regs.c (maintenance_print_user_registers): Constify.
6342
6343 2017-09-27 Tom Tromey <tom@tromey.com>
6344
6345 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6346
6347 2017-09-27 Tom Tromey <tom@tromey.com>
6348
6349 * cp-support.c (first_component_command): Constify.
6350
6351 2017-09-27 Tom Tromey <tom@tromey.com>
6352
6353 * psymtab.c (maintenance_print_psymbols)
6354 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6355 Constify.
6356
6357 2017-09-27 Tom Tromey <tom@tromey.com>
6358
6359 * windows-tdep.c (display_tib): Constify.
6360
6361 2017-09-27 Tom Tromey <tom@tromey.com>
6362
6363 * linux-fork.c (delete_checkpoint_command)
6364 (detach_checkpoint_command): Constify.
6365
6366 2017-09-27 Tom Tromey <tom@tromey.com>
6367
6368 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6369
6370 2017-09-27 Tom Tromey <tom@tromey.com>
6371
6372 * arc-tdep.c (dump_arc_instruction_command): Constify.
6373
6374 2017-09-27 Tom Tromey <tom@tromey.com>
6375
6376 * valprint.c (set_radix, show_radix): Constify.
6377
6378 2017-09-27 Tom Tromey <tom@tromey.com>
6379
6380 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6381
6382 2017-09-27 Tom Tromey <tom@tromey.com>
6383
6384 * command.h (not_just_help_class_command): Update.
6385 * cli/cli-decode.h (not_just_help_class_command): Update.
6386 * cli/cli-decode.c (not_just_help_class_command): Constify.
6387
6388 2017-09-27 Tom Tromey <tom@tromey.com>
6389
6390 * gdb_bfd.c (maintenance_info_bfds): Constify.
6391
6392 2017-09-27 Tom Tromey <tom@tromey.com>
6393
6394 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6395 overloads.
6396 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6397 (do_const_cfunc): New function.
6398 (cmd_cfunc_eq): New overload.
6399 (cli_user_command_p): Check do_const_cfunc.
6400 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6401 const_cfunc.
6402 * command.h (add_cmd): Add const overload and no-function
6403 overload.
6404 (set_cmd_cfunc): Add const overload.
6405 (cmd_const_cfunc_ftype): Declare.
6406 (cmd_cfunc_eq): Add const overload.
6407 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6408 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6409 overload.
6410
6411 2017-09-27 Tom Tromey <tom@tromey.com>
6412
6413 * macroexp.c (get_next_token_for_substitution): New function.
6414 (substitute_args): Call it. Check for __VA_OPT__.
6415
6416 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6417 Pedro Alves <palves@redhat.com>
6418
6419 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6420 producer_is_icc_lt_14.
6421 (producer_is_icc_lt_14): New function.
6422 (check_producer): Add code for checking version of ICC.
6423 (producer_is_icc): Move to producer.c.
6424 (read_structure_type): Restrict ICC workaround to ICC<14.
6425 * producer.c: Include selftest.h.
6426 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6427 New functions.
6428 * producer.h (producer_is_icc): New declaration.
6429
6430 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6431
6432 * Makefile.in (SFILES): Add producer.c.
6433 (COMMON_OBS): Add producer.o
6434 * amd64-tdep.c (producer.h): Add new include.
6435 * dwarf2read.c (producer.h): Add new include.
6436 * producer.c: New file.
6437 * producer.h: New file.
6438 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6439 producer.c.
6440 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6441 producer.h.
6442
6443 2017-09-26 Matthias Klose <doko@ubuntu.com>
6444
6445 * configure.ac: Search ncursesw before ncurses.
6446 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6447 * gdb_curses.h: Include <ncursesw/ncurses.h>
6448 * config.in, configure: Regenerate.
6449
6450 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6451
6452 PR gdb/22185
6453 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6454 obsolete.
6455 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6456 Remove i386sol2 support.
6457 * configure.nat <i386sol2>: Remove.
6458 <sol2-64>: Fold into ...
6459 <sol2>: ... this.
6460 Move common settings to default section.
6461 Add sol-thread.o.
6462 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6463 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6464 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6465 <i[34567]86-*-solaris*>: Remove.
6466 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6467
6468 * configure.ac: Remove wctype in libw check.
6469 (_MSE_INT_H): Don't define on Solaris 7-9.
6470 <solaris*>: Remove libthread_db.so.1 check.
6471 * configure: Regenerate.
6472 * config.in: Regenerate.
6473
6474 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6475 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6476 (gdb_ps_size_t): Remove.
6477 Use base types in users.
6478 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6479
6480 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6481
6482 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6483
6484 PR build/22206
6485 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6486 (adi_is_addr_mapped): Likewise.
6487 (PSR_ICC): Don't redefine.
6488 (PSR_IMPL): Likewise.
6489
6490 2017-09-25 Tom Tromey <tom@tromey.com>
6491
6492 * regcache.c (regcache::dump): Use string_printf.
6493
6494 2017-09-25 Tom Tromey <tom@tromey.com>
6495
6496 * regcache.c (class regcache_invalidator): New.
6497 (struct register_to_invalidate): Remove.
6498 (make_cleanup_regcache_invalidate): Remove.
6499 (regcache::raw_write): Use regcache_invalidator.
6500
6501 2017-09-25 Tom Tromey <tom@tromey.com>
6502
6503 * spu-tdep.c (spu2ppu_sniffer): Update.
6504 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6505 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6506 Remove.
6507 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6508 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6509 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6510 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6511 (frame_pop): Update.
6512
6513 2017-09-25 Tom Tromey <tom@tromey.com>
6514
6515 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6516 * regcache.h (regcache_xfree): Don't declare.
6517 * regcache.c (regcache_xfree): Remove.
6518 (do_regcache_xfree): Use delete.
6519 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6520 * linux-fork.c (free_fork): Use delete.
6521 (fork_save_infrun_state): Likewise.
6522 * jit.c (jit_dealloc_cache): Use delete.
6523 * infrun.c (discard_infcall_suspend_state): Use delete.
6524
6525 2017-09-25 Tom Tromey <tom@tromey.com>
6526
6527 * regcache.h (regcache_xmalloc): Don't declare.
6528 (regcache_raw_set_cached_value): Update comment.
6529 * regcache.c (regcache_xmalloc): Remove.
6530 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6531 * jit.c (jit_frame_sniffer): Use new.
6532 * frame.c (frame_save_as_regcache): Use new.
6533
6534 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6535
6536 * NEWS: Advertise support for guarded-storage registers on IBM z.
6537
6538 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6539
6540 * s390-linux-nat.c (have_regset_gs): New static variable.
6541 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6542 control block and guarded-storage broadcast control regsets.
6543 (s390_read_description): Detect whether the target has
6544 guarded-storage support, return appropriate tdesc.
6545 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6546 (features/s390x-gs-linux64.c): Likewise.
6547 (struct gdbarch_tdep) <have_gs>: New field.
6548 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6549 (s390_gsbc_regset): New variables.
6550 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6551 and s390_gsbc_regset, if applicable.
6552 (s390_core_read_description): Check whether core file was from a
6553 target with guarded-storage support; include appropriate regsets.
6554 (s390_gdbarch_init): Add registers for guarded-storage support.
6555 (_initialize_s390_tdep): Initialize new target descriptions that
6556 include registers for guarded-storage support.
6557 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6558 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6559 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6560 (S390_NUM_REGS): Adjust macro definition.
6561 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6562 (tdesc_s390x_gs_linux64): New declarations.
6563
6564 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6565
6566 * features/s390-gs-linux64.xml: New file.
6567 * features/s390-gs.xml: New file.
6568 * features/s390-gsbc.xml: New file.
6569 * features/s390x-gs-linux64.xml: New file.
6570 * features/Makefile (WHICH): Add s390-gs-linux64 and
6571 s390x-gs-linux64.
6572 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6573 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6574 * features/s390-gs-linux64.c: New generated file.
6575 * features/s390x-gs-linux64.c: New file.
6576 * regformats/s390-gs-linux64.dat: New file.
6577 * regformats/s390x-gs-linux64.dat: New file.
6578
6579 2017-09-23 Tom Tromey <tom@tromey.com>
6580
6581 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6582
6583 2017-09-22 Tom Tromey <tom@tromey.com>
6584
6585 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6586 type to scoped_restore_tmpl.
6587 <scoped_input_handler>: Initialize m_quit_handler directly.
6588
6589 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6590
6591 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6592 (cd_command): Likewise. Free "current_directory" before
6593 assigning to it.
6594 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6595 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6596 * top.c (gdb_dirbuf): Remove global declaration.
6597 * top.h (gdb_dirbuf): Likewise.
6598
6599 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6600
6601 * gnulib/aclocal.m4: Regenerate.
6602 * gnulib/config.in: Regenerate.
6603 * gnulib/configure: Regenerate.
6604 * gnulib/import/Makefile.am: Regenerate.
6605 * gnulib/import/Makefile.in: Regenerate.
6606 * gnulib/import/assure.h: New file.
6607 * gnulib/import/at-func.c: Likewise
6608 * gnulib/import/chdir-long.c: New file.
6609 * gnulib/import/chdir-long.h: New file.
6610 * gnulib/import/cloexec.c: New file.
6611 * gnulib/import/cloexec.h: New file.
6612 * gnulib/import/close.c: New file.
6613 * gnulib/import/closedir.c: New file.
6614 * gnulib/import/dirent-private.h: New file.
6615 * gnulib/import/dup-safer.c: New file.
6616 * gnulib/import/dup.c: New file.
6617 * gnulib/import/dup2.c: New file.
6618 * gnulib/import/error.c: New file.
6619 * gnulib/import/error.h: New file.
6620 * gnulib/import/exitfail.c: New file.
6621 * gnulib/import/exitfail.h: New file.
6622 * gnulib/import/fchdir.c: New file.
6623 * gnulib/import/fcntl.c: New file.
6624 * gnulib/import/fcntl.in.h: New file.
6625 * gnulib/import/fd-hook.c: New file.
6626 * gnulib/import/fd-hook.h: New file.
6627 * gnulib/import/fd-safer.c: New file.
6628 * gnulib/import/fdopendir.c: New file.
6629 * gnulib/import/filename.h: New file.
6630 * gnulib/import/filenamecat-lgpl.c: New file.
6631 * gnulib/import/filenamecat.h: New file.
6632 * gnulib/import/fstat.c: New file.
6633 * gnulib/import/fstatat.c: New file.
6634 * gnulib/import/getcwd-lgpl.c: New file.
6635 * gnulib/import/getcwd.c: New file.
6636 * gnulib/import/getdtablesize.c: New file.
6637 * gnulib/import/getlogin_r.c: New file.
6638 * gnulib/import/getprogname.c: New file.
6639 * gnulib/import/getprogname.h: New file.
6640 * gnulib/import/gettext.h: New file.
6641 * gnulib/import/glob-libc.h: New file.
6642 * gnulib/import/glob.c: New file.
6643 * gnulib/import/glob.in.h: New file.
6644 * gnulib/import/intprops.h: New file.
6645 * gnulib/import/m4/chdir-long.m4: New file.
6646 * gnulib/import/m4/close.m4: New file.
6647 * gnulib/import/m4/closedir.m4: New file.
6648 * gnulib/import/m4/d-ino.m4: New file.
6649 * gnulib/import/m4/d-type.m4: New file.
6650 * gnulib/import/m4/dup.m4: New file.
6651 * gnulib/import/m4/dup2.m4: New file.
6652 * gnulib/import/m4/error.m4: New file.
6653 * gnulib/import/m4/fchdir.m4: New file.
6654 * gnulib/import/m4/fcntl.m4: New file.
6655 * gnulib/import/m4/fcntl_h.m4: New file.
6656 * gnulib/import/m4/fdopendir.m4: New file.
6657 * gnulib/import/m4/filenamecat.m4: New file.
6658 * gnulib/import/m4/fstat.m4: New file.
6659 * gnulib/import/m4/fstatat.m4: New file.
6660 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6661 * gnulib/import/m4/getcwd-path-max.m4: New file.
6662 * gnulib/import/m4/getcwd.m4: New file.
6663 * gnulib/import/m4/getdtablesize.m4: New file.
6664 * gnulib/import/m4/getlogin_r.m4: New file.
6665 * gnulib/import/m4/getprogname.m4: New file.
6666 * gnulib/import/m4/glob.m4: New file.
6667 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6668 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6669 * gnulib/import/m4/mempcpy.m4: New file.
6670 * gnulib/import/m4/memrchr.m4: New file.
6671 * gnulib/import/m4/mode_t.m4: New file.
6672 * gnulib/import/m4/msvc-inval.m4: New file.
6673 * gnulib/import/m4/msvc-nothrow.m4: New file.
6674 * gnulib/import/m4/open.m4: New file.
6675 * gnulib/import/m4/openat.m4: New file.
6676 * gnulib/import/m4/opendir.m4: New file.
6677 * gnulib/import/m4/readdir.m4: New file.
6678 * gnulib/import/m4/realloc.m4: New file.
6679 * gnulib/import/m4/rewinddir.m4: New file.
6680 * gnulib/import/m4/save-cwd.m4: New file.
6681 * gnulib/import/m4/strdup.m4: New file.
6682 * gnulib/import/m4/strerror.m4: New file.
6683 * gnulib/import/m4/unistd-safer.m4: New file.
6684 * gnulib/import/mempcpy.c: New file.
6685 * gnulib/import/memrchr.c: New file.
6686 * gnulib/import/msvc-inval.c: New file.
6687 * gnulib/import/msvc-inval.h: New file.
6688 * gnulib/import/msvc-nothrow.c: New file.
6689 * gnulib/import/msvc-nothrow.h: New file.
6690 * gnulib/import/open.c: New file.
6691 * gnulib/import/openat-die.c: New file.
6692 * gnulib/import/openat-priv.h: New file.
6693 * gnulib/import/openat-proc.c: New file.
6694 * gnulib/import/openat.c: New file.
6695 * gnulib/import/openat.h: New file.
6696 * gnulib/import/opendir.c: New file.
6697 * gnulib/import/pipe-safer.c: New file.
6698 * gnulib/import/readdir.c: New file.
6699 * gnulib/import/realloc.c: New file.
6700 * gnulib/import/rewinddir.c: New file.
6701 * gnulib/import/save-cwd.c: New file.
6702 * gnulib/import/save-cwd.h: New file.
6703 * gnulib/import/strdup.c: New file.
6704 * gnulib/import/strerror-override.c: New file.
6705 * gnulib/import/strerror-override.h: New file.
6706 * gnulib/import/strerror.c: New file.
6707 * gnulib/import/unistd--.h: New file.
6708 * gnulib/import/unistd-safer.h: New file.
6709 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6710 "getcwd" and "glob".
6711 * ser-tcp.c: Undefine "close" before redefining it.
6712
6713 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6714
6715 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6716 get rid of res_val.
6717
6718 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6719
6720 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6721 <sol2,sparc>: Likewise.
6722 <sol2-64,i386>: Likewise.
6723
6724 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6725 -Wdeprecated-declarations on *-*-solaris*.
6726 * configure: Regenerate.
6727
6728 * procfs.c: Include "nat/inferior.h".
6729 (procfs_info_proc): Fix typo.
6730
6731 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6732
6733 * remote.c (vector): Include.
6734 (struct private_thread_info): Add field, thread_handle.
6735 (free_private_thread_info): Deallocate storage associated with
6736 thread handle.
6737 (get_private_info_thread): Initialize `thread_handle' field.
6738 (struct thread_item): Add field, thread_handle.
6739 (clear_threads_listing_context): Deallocate storage associated
6740 with thread handle.
6741 (start_thread): Add support for "handle" attribute.
6742 (thread_attributes): Add "handle".
6743 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6744 field.
6745 (remote_update_thread_list): Update thread_handle.
6746 (remote_thread_handle_to_thread_info): New function.
6747 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6748
6749 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6750
6751 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6752 function.
6753 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6754 * python/python-internal.h (thread_object_type): Declare.
6755
6756 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6757
6758 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6759 (target_thread_handle_to_thread_info): Declare.
6760 * target.c (target_thread_handle_to_thread_info): New function.
6761 * target-delegates.c: Regenerate.
6762 * gdbthread.h (find_thread_by_handle): Declare.
6763 * thread.c (find_thread_by_handle): New function.
6764 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6765 function.
6766 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6767
6768 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6769
6770 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6771
6772 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6773
6774 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6775
6776 2017-09-21 Yao Qi <yao.qi@linaro.org>
6777
6778 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6779 to gdb_target_obs.
6780
6781 2017-09-20 Tom Tromey <tom@tromey.com>
6782
6783 * breakpoint.c (struct counted_command_line): Remove.
6784 (breakpoint_commands): Update.
6785 (alloc_counted_command_line, incref_counted_command_line)
6786 (decref_counted_command_line, do_cleanup_counted_command_line)
6787 (make_cleanup_decref_counted_command_line): Remove.
6788 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6789 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6790 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6791 (save_breakpoints): Update.
6792 * breakpoint.h (counted_command_line): Now a typedef to
6793 shared_ptr.
6794 (struct breakpoint) <commands>: Now a counted_command_line.
6795 (struct bpstats) <command>: Likewise.
6796
6797 2017-09-20 Tom Tromey <tom@tromey.com>
6798
6799 * breakpoint.c (struct commands_info, do_map_commands_command):
6800 Remove.
6801 (commands_command_1): Update.
6802 (iterate_over_related_breakpoints): Take a function_view.
6803 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6804 (delete_command): Update.
6805 (map_breakpoint_numbers): Take a function_view.
6806 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6807 (disable_command): Update.
6808 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6809 (enable_command): Update.
6810 (struct disp_data, do_enable_breakpoint_disp)
6811 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6812 (do_map_enable_delete_breakpoint): Remove.
6813 (enable_once_command, enable_count_command, enable_delete_command)
6814 (delete_trace_variable_command): Update.
6815
6816 2017-09-20 Tom Tromey <tom@tromey.com>
6817
6818 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6819 (bpstat_clear): Use delete.
6820 (bpstats): New constructors.
6821 (bpstat_copy, bpstat_stop_status): Use new.
6822 (dprintf_after_condition_true): Update.
6823 * breakpoint.h (bpstats::bpstats): Add constructors.
6824 (bpstats::~bpstats): Add destructor.
6825
6826 2017-09-20 Pedro Alves <palves@redhat.com>
6827
6828 * eval.c (make_params): Delete, refactored as ...
6829 (class fake_method): ... this new type's ctor.
6830 (fake_method::~fake_method): New.
6831 (evaluate_subexp_standard): Use 'fake_method'.
6832
6833 2017-09-20 Tom Tromey <tom@tromey.com>
6834
6835 * windows-nat.c (get_windows_debug_event, windows_wait)
6836 (do_initial_windows_stuff, windows_attach): Update.
6837 * utils.c (vwarning, internal_vproblem): Update.
6838 (ui_unregister_input_event_handler_cleanup)
6839 (prepare_to_handle_input): Remove.
6840 (class scoped_input_handler): New.
6841 (defaulted_query, prompt_for_continue): Update.
6842 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6843 Update.
6844 * top.c (undo_terminal_modifications_before_exit): Update.
6845 * target/target.h (target_terminal_init, target_terminal_inferior)
6846 (target_terminal_ours): Don't declare.
6847 (class target_terminal): New.
6848 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6849 (target_terminal_ours_for_output)
6850 (make_cleanup_restore_target_terminal): Don't declare.
6851 (target_terminal_info): Remove.
6852 * target.c (enum terminal_state, terminal_state): Remove.
6853 (target_terminal::terminal_state): Define.
6854 (target_terminal::init): Rename from target_terminal_init.
6855 (target_terminal::inferior): Rename from
6856 target_terminal_inferior.
6857 (target_terminal::ours): Rename from target_terminal_ours.
6858 (target_terminal::ours_for_output): Rename from
6859 target_terminal_ours_for_output.
6860 (target_terminal::info): New method.
6861 (cleanup_restore_target_terminal)
6862 (make_cleanup_restore_target_terminal): Remove.
6863 * solib.c (handle_solib_event): Update.
6864 * remote.c (remote_serial_quit_handler): Update.
6865 (remote_terminal_inferior, remote_wait_as): Update.
6866 * record-full.c (record_full_wait_1): Update.
6867 * nto-procfs.c (procfs_create_inferior): Update.
6868 * nat/fork-inferior.c (startup_inferior): Update.
6869 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6870 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6871 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6872 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6873 (mi_breakpoint_created, mi_breakpoint_deleted)
6874 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6875 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6876 (mi_user_selected_context_changed, report_initial_inferior):
6877 Update.
6878 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6879 (linux_nat_terminal_inferior): Update.
6880 * infrun.c (follow_fork_inferior)
6881 (handle_vfork_child_exec_or_exit, do_target_resume)
6882 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6883 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6884 Update.
6885 * inflow.c (child_terminal_init, info_terminal_command): Update.
6886 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6887 (attach_command): Update.
6888 * infcall.c (call_thread_fsm_should_stop): Update.
6889 * gnu-nat.c (gnu_attach): Update.
6890 * extension.c (struct active_ext_lang_state)
6891 (restore_active_ext_lang): Update.
6892 * exceptions.c (print_flush): Update.
6893 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6894 (struct quit_handler_cleanup_data, restore_quit_handler)
6895 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6896 Remove.
6897 * cp-support.c (gdb_demangle): Update.
6898 * breakpoint.c (update_inserted_breakpoint_locations)
6899 (insert_breakpoint_locations, handle_jit_event)
6900 (disable_breakpoints_in_unloaded_shlib): Update.
6901 * annotate.c (annotate_breakpoints_invalid)
6902 (annotate_frames_invalid): Update.
6903
6904 2017-09-20 Tom Tromey <tom@tromey.com>
6905
6906 * main.c (catch_command_errors): Rename from
6907 catch_command_errors_const.
6908 (captured_main_1): Update.
6909
6910 2017-09-20 Pedro Alves <palves@redhat.com>
6911
6912 * cli/cli-cmds.c (list_command): Use print_sal_location.
6913 (print_sal_location): New function.
6914 (ambiguous_line_spec): Use print_sal_location.
6915 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6916 * symtab.c (find_function_start_sal): Likewise.
6917 * symtab.h (symtab_and_line::symbol): New field.
6918
6919 2017-09-20 Pedro Alves <palves@redhat.com>
6920
6921 * linespec.c (minsym_found): Handle non-text minsyms.
6922 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6923
6924 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6925
6926 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6927 backslash.
6928
6929 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6930
6931 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6932 vmovups instead vmovaps.
6933 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6934
6935 2017-09-19 John Baldwin <jhb@FreeBSD.org>
6936
6937 * NEWS (Changes since GDB 8.0): Add starti.
6938 * infcmd.c (enum run_break): New.
6939 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6940 case.
6941 (run_command): Use enum run_how.
6942 (start_command): Likewise.
6943 (starti_command): New function.
6944 (RUN_ARGS_HELP): New macro.
6945 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6946 commands. Add starti command.
6947
6948 2017-09-19 Yao Qi <yao.qi@linaro.org>
6949
6950 * Makefile.in (monitor.o): Remove the rule.
6951
6952 2017-09-19 Yao Qi <yao.qi@linaro.org>
6953
6954 * annotate.h (struct annotate_arg_emitter): Use
6955 DISABLE_COPY_AND_ASSIGN.
6956 * common/refcounted-object.h (refcounted_object): Likewise.
6957 * completer.h (struct completion_result): Likewise.
6958 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6959 * filename-seen-cache.h (filename_seen_cache): Likewise.
6960 * gdbcore.h (thread_section_name): Likewise.
6961 * gdb_regex.h (compiled_regex): Likewise.
6962 * gdbthread.h (scoped_restore_current_thread): Likewise.
6963 * inferior.h (scoped_restore_current_inferior): Likewise.
6964 * jit.c (jit_reader): Likewise.
6965 * linespec.h (struct linespec_result): Likewise.
6966 * mi/mi-parse.h (struct mi_parse): Likewise.
6967 * nat/fork-inferior.c (execv_argv): Likewise.
6968 * progspace.h (scoped_restore_current_program_space): Likewise.
6969 * python/python-internal.h (class gdbpy_enter): Likewise.
6970 * regcache.h (regcache): Likewise.
6971 * target-descriptions.c (struct tdesc_reg): Likewise.
6972 (struct tdesc_type): Likewise.
6973 (struct tdesc_feature): Likewise.
6974 * ui-out.h (ui_out_emit_type): Likewise.
6975
6976 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6977
6978 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6979 label abort_expression.
6980
6981 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6982
6983 * common/buffer.c (buffer_xml_printf): Adjust.
6984 * common/xml-utils.c (xml_escape_text): Change return type to
6985 std::string, update code accordingly.
6986 * common/xml-utils.h (xml_escape_text): Change return type to
6987 std::string.
6988 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6989 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6990 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6991 Adjust.
6992
6993 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6994
6995 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6996 (SUBDIR_UNITTESTS_OBS): Add new object file.
6997 * unittests/xml-utils-selftests.c: New file.
6998
6999 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7000
7001 * common/selftest.h (selftest): New struct/interface.
7002 (register_test): Add name parameter, add new overload.
7003 (run_tests): Add filter parameter.
7004 (for_each_selftest_ftype): New typedef.
7005 (for_each_selftest): New declaration.
7006 * common/selftest.c (tests): Change type to
7007 map<string, unique_ptr<selftest>>.
7008 (simple_selftest): New struct.
7009 (register_test): New function.
7010 (register_test): Add name parameter and use it.
7011 (run_tests): Add filter parameter and use it. Add prints.
7012 Adjust to vector -> map change.
7013 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
7014 registering selftests.
7015 * arm-tdep.c (_initialize_arm_tdep): Likewise.
7016 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
7017 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
7018 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
7019 * findvar.c (_initialize_findvar): Likewise.
7020 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
7021 * maint.c (maintenance_selftest): Update call to run_tests.
7022 (maintenance_info_selftests): New function.
7023 (_initialize_maint_cmds): Register "maintenance info selftests"
7024 command. Update "maintenance selftest" doc.
7025 * regcache.c (_initialize_regcache): Add names when registering
7026 selftests.
7027 * rust-exp.y (_initialize_rust_exp): Likewise.
7028 * selftest-arch.c (gdbarch_selftest): New struct.
7029 (gdbarch_tests): Remove.
7030 (register_test_foreach_arch): Add name parameter. Call
7031 register_test.
7032 (tests_with_arch): Remove, move most content to
7033 gdbarch_selftest::operator().
7034 (_initialize_selftests_foreach_arch): Remove.
7035 * selftest-arch.h (register_test_foreach_arch): Add name
7036 parameter.
7037 (run_tests_with_arch): New declaration.
7038 * utils-selftests.c (_initialize_utils_selftests): Add names
7039 when registering selftests.
7040 * utils.c (_initialize_utils): Likewise.
7041 * unittests/array-view-selftests.c
7042 (_initialize_array_view_selftests): Likewise.
7043 * unittests/environ-selftests.c (_initialize_environ_selftests):
7044 Likewise.
7045 * unittests/function-view-selftests.c
7046 (_initialize_function_view_selftests): Likewise.
7047 * unittests/offset-type-selftests.c
7048 (_initialize_offset_type_selftests): Likewise.
7049 * unittests/optional-selftests.c
7050 (_initialize_optional_selftests): Likewise.
7051 * unittests/scoped_restore-selftests.c
7052 (_initialize_scoped_restore_selftests): Likewise.
7053 * NEWS: Document "maintenance selftest" and "maint info
7054 selftests".
7055
7056 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7057
7058 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
7059 scoped_restore.
7060
7061 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7062
7063 * mi/mi-main.c (mi_load_progress): Make uiout variable
7064 a unique_ptr.
7065
7066 2017-09-15 Pedro Alves <palves@redhat.com>
7067
7068 * compile/compile-c-types.c (convert_enum, convert_int)
7069 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
7070
7071 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7072
7073 * dwarf2read.c (copy_string): Remove.
7074 (parse_macro_definition): Replace copy_string with savestring.
7075
7076 2017-09-15 Yao Qi <yao.qi@linaro.org>
7077
7078 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
7079 gdb_target_obs.
7080 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
7081 Likewise.
7082 (i[34567]86-*-linux*): Likewise.
7083
7084 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7085
7086 * dwarf2expr.h (dwarf_stack_value): Add constructor.
7087 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
7088 <stack>: Change type to std::vector.
7089 <stack_len, stack_allocated>: Remove.
7090 <grow_stack>: Remove.
7091 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7092 (dwarf_expr_context::~dwarf_expr_context): Remove.
7093 (dwarf_expr_context::grow_stack): Remove.
7094 (dwarf_expr_context::push): Adjust.
7095 (dwarf_expr_context::pop): Adjust.
7096 (dwarf_expr_context::fetch): Adjust.
7097 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
7098 (dwarf_expr_context::stack_empty_p): Adjust.
7099 (dwarf_expr_context::execute_stack_op): Adjust.
7100
7101 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7102
7103 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
7104 return type to bool.
7105 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
7106
7107 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7108
7109 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
7110 Change type to bool.
7111 (dwarf_stack_value) <in_stack_memory>: Likewise.
7112 (dwarf_expr_context) <push_address>: Change parameter type to
7113 bool.
7114 <fetch_in_stack_memory>: Change return type to bool.
7115 <push>: Change parameter type to bool.
7116 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
7117 to bool.
7118 (dwarf_expr_context::push_address): Likewise.
7119 (dwarf_expr_context::fetch_in_stack_memory): Change return type
7120 to bool.
7121 (dwarf_expr_context::execute_stack_op): Adjust.
7122 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
7123
7124 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7125
7126 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7127 (struct dwarf_expr_context) <n_pieces>: Remove.
7128 <pieces>: Change type to std::vector.
7129 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7130 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7131 pieces.
7132 (dwarf_expr_context::add_piece): Adjust.
7133 * dwarf2loc.c (struct piece_closure): Initialize fields.
7134 <n_pieces>: Remove.
7135 <pieces>: Change type to std::vector.
7136 (allocate_piece_closure): Adjust, change parameter to
7137 std::vector rvalue and std::move it to piece_closure.
7138 (rw_pieced_value): Adjust.
7139 (check_pieced_synthetic_pointer): Adjust.
7140 (indirect_synthetic_pointer): Adjust.
7141 (coerce_pieced_ref): Adjust.
7142 (free_pieced_value_closure): Adjust. Use delete to free
7143 piece_closure.
7144 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7145 to allocate_piece_closure.
7146 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7147
7148 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7149
7150 * probe.h (probe_ops_cp): Remove typedef.
7151 (DEF_VEC_P (probe_ops_cp)): Remove.
7152 (all_probe_ops): Change type to std::vector.
7153 * probe.c (info_probes_for_ops): Adjust to vector change.
7154 (probe_linespec_to_ops): Likewise.
7155 (all_probe_ops): Change type to std::vector.
7156 (_initialize_probe): Adjust to vector change.
7157 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7158 * elfread.c (elf_get_probes): Likewise.
7159 * stap-probe.c (_initialize_stap_probe): Likewise.
7160
7161 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7162
7163 * probe.h (struct bound_probe): Define constructors.
7164 * probe.c (bound_probe_s): Remove typedef.
7165 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7166 (collect_probes): Change return type to std::vector, remove
7167 cleanup.
7168 (compare_probes): Return bool, change parameter type. Change
7169 semantic to "less than".
7170 (gen_ui_out_table_header_info): Change parameter to std::vector
7171 and update.
7172 (exists_probe_with_pops): Likewise.
7173 (info_probes_for_ops): Update to std::vector change.
7174 (enable_probes_command): Likewise.
7175 (disable_probes_command): Likewise.
7176
7177 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7178
7179 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7180 vec to std::vector.
7181 * probe.c (parse_probes_in_pspace): Update.
7182 (find_probes_in_objfile): Update.
7183 (find_probe_by_pc): Update.
7184 (collect_probes): Update.
7185 (probe_any_get_probes): Update.
7186 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7187 return type to reference to std::vector.
7188 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7189 std::vector and update.
7190 (dtrace_process_dof): Likewise.
7191 (dtrace_get_probes): Likewise.
7192 * elfread.c (elf_get_probes): Change return type to std::vector,
7193 store an std::vector in bfd_data.
7194 (probe_key_free): Update to std::vector.
7195 * stap-probe.c (handle_stap_probe): Change parameter to
7196 std::vector and update.
7197 (stap_get_probes): Likewise.
7198 * symfile-debug.c (debug_sym_get_probes): Change return type to
7199 std::vector and update.
7200
7201 2017-09-11 Tom Tromey <tom@tromey.com>
7202
7203 * breakpoint.c (program_breakpoint_here_p): Update.
7204 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7205 from make_show_memory_breakpoints_cleanup. Return a
7206 scoped_restore_tmpl<int>.
7207 (restore_show_memory_breakpoints): Remove.
7208 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7209 * mem-break.c (memory_validate_breakpoint): Update.
7210 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7211 (ia64_memory_remove_breakpoint): Update.
7212 (ia64_breakpoint_from_pc): Update.
7213 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7214 from make_show_memory_breakpoints_cleanup.
7215
7216 2017-09-11 Tom Tromey <tom@tromey.com>
7217
7218 * d-namespace.c (d_lookup_symbol): Use std::string.
7219 (find_symbol_in_baseclass): Likewise.
7220
7221 2017-09-11 Tom Tromey <tom@tromey.com>
7222
7223 * ctf.c (ctf_start): Use std::string.
7224
7225 2017-09-11 Tom Tromey <tom@tromey.com>
7226
7227 * ada-lang.c (is_known_support_routine): Update.
7228 (ada_unhandled_exception_name_addr_from_raise): Update.
7229 * guile/scm-frame.c (gdbscm_frame_name): Update.
7230 * python/py-frame.c (frapy_name): Update.
7231 (frapy_function): Update.
7232 * stack.h (find_frame_funname): Update.
7233 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7234 (print_frame): Update.
7235
7236 2017-09-11 Tom Tromey <tom@tromey.com>
7237
7238 * findcmd.c (put_bits): Take a gdb::byte_vector.
7239 (parse_find_args): Return gdb::byte_vector. "args" now const.
7240 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7241 cleanups.
7242 (find_command): Update.
7243
7244 2017-09-11 Tom Tromey <tom@tromey.com>
7245
7246 * cli/cli-script.c (class scoped_restore_hook_in): New.
7247 (clear_hook_in_cleanup): Remove.
7248 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7249 scoped_restore_hook_in.
7250
7251 2017-09-11 Tom Tromey <tom@tromey.com>
7252
7253 * cli/cli-script.c (restore_interp): Remove.
7254 (read_command_lines): Use scoped_restore_interp.
7255 * interps.c (scoped_restore_interp::set_temp): Rename from
7256 interp_set_temp.
7257 * interps.h (class scoped_restore_interp): New.
7258 (interp_set_temp): Remove.
7259
7260 2017-09-11 Tom Tromey <tom@tromey.com>
7261
7262 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7263 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7264 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7265 scoped_restore.
7266 (mi_cmd_break_insert_1): Update.
7267 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7268 scoped_restore.
7269
7270 2017-09-11 Tom Tromey <tom@tromey.com>
7271
7272 * demangle.c (demangle_command): Update.
7273 * breakpoint.c (disable_command): Update.
7274 (enable_command): Update.
7275 (find_location_by_number): Make "number" const. Use
7276 get_number_trailer.
7277 * cli/cli-utils.c (extract_arg): Return std::string.
7278 * probe.c (parse_probe_linespec): Update. Change types.
7279 (collect_probes): Take string arguments.
7280 (parse_probe_linespec): Likewise.
7281 (info_probes_for_ops): Update.
7282 (enable_probes_command): Update.
7283 (disable_probes_command): Update.
7284 * break-catch-sig.c (catch_signal_split_args): Update.
7285 * mi/mi-parse.c (mi_parse): Update.
7286
7287 2017-09-11 Tom Tromey <tom@tromey.com>
7288
7289 * language.h (language_enum): Make argument const.
7290 * language.c (language_enum): Make argument const.
7291
7292 2017-09-11 Tom Tromey <tom@tromey.com>
7293
7294 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7295 as function.
7296 (skip_to_space): Rename from skip_to_space_const.
7297 * common/common-utils.c (skip_to_space): New function.
7298 (skip_to_space): Rename from skip_to_space_const.
7299 * cli/cli-utils.h (get_number): Rename from get_number_const.
7300 (extract_arg): Rename from extract_arg_const.
7301 * cli/cli-utils.c (get_number): Rename from get_number_const.
7302 (extract_arg): Rename from extract_arg_const.
7303 (number_or_range_parser::get_number): Use ::get_number.
7304 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7305 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7306 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7307 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7308 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7309 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7310 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7311 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7312
7313 2017-09-11 Tom Tromey <tom@tromey.com>
7314
7315 * python/python.c (do_start_initialization): Use
7316 py-event-types.def to initialize types.
7317 Define all object type structures.
7318 * python/python-internal.h: Don't declare event initialization
7319 functions.
7320 * python/py-threadevent.c (thread_event_object_type): Don't
7321 define.
7322 * python/py-stopevent.c (stop_event_object_type): Don't define.
7323 * python/py-signalevent.c (signal_event_object_type): Don't
7324 declare or define.
7325 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7326 (clear_objfiles_event_object_type): Don't declare or define.
7327 * python/py-infevents.c (inferior_call_pre_event_object_type)
7328 (inferior_call_post_event_object_type)
7329 (register_changed_event_object_type)
7330 (memory_changed_event_object_type): Don't declare or define.
7331 * python/py-inferior.c (new_thread_event_object_type)
7332 (new_inferior_event_object_type)
7333 (inferior_deleted_event_object_type): Don't declare or define.
7334 * python/py-exitedevent.c (exited_event_object_type): Don't
7335 declare or define.
7336 * python/py-evts.c (gdbpy_initialize_py_events): Use
7337 py-all-events.def.
7338 * python/py-events.h (thread_event_object_type): Don't declare.
7339 (events_object): Use py-all-events.def.
7340 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7341 py-event-types.def.
7342 * python/py-event-types.def: New file.
7343 * python/py-continueevent.c (create_continue_event_object): Don't
7344 declare or define.
7345 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7346 declare or define.
7347 * python/py-all-events.def: New file.
7348
7349 2017-09-11 Tom Tromey <tom@tromey.com>
7350
7351 * python/py-threadevent.c (create_thread_event_object): Return
7352 gdbpy_ref.
7353 * python/py-stopevent.h (create_stop_event_object)
7354 (create_breakpoint_event_object, create_signal_event_object):
7355 Update.
7356 * python/py-stopevent.c (create_stop_event_object): Return
7357 gdbpy_ref.
7358 (emit_stop_event): Update.
7359 * python/py-signalevent.c (create_signal_event_object): Return
7360 gdbpy_ref.
7361 * python/py-infevents.c (create_inferior_call_event_object):
7362 Update.
7363 * python/py-event.h (create_event_object)
7364 (create_thread_event_object): Update.
7365 * python/py-event.c (create_event_object): Return gdbpy_ref.
7366 * python/py-continueevent.c: Return gdbpy_ref.
7367 * python/py-bpevent.c (create_breakpoint_event_object): Return
7368 gdbpy_ref.
7369
7370 2017-09-11 Tom Tromey <tom@tromey.com>
7371
7372 PR python/15622:
7373 * NEWS: Add entry.
7374 * python/python.c (do_start_initialization): Initialize new event
7375 types.
7376 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7377 (gdbpy_initialize_inferior_deleted_event)
7378 (gdbpy_initialize_new_thread_event): Declare.
7379 * python/py-threadevent.c (create_thread_event_object): Add option
7380 "thread" parameter.
7381 * python/py-inferior.c (new_thread_event_object_type)
7382 (new_inferior_event_object_type)
7383 (inferior_deleted_event_object_type): Declare.
7384 (python_new_inferior, python_inferior_deleted): New functions.
7385 (add_thread_object): Emit new_thread event.
7386 (gdbpy_initialize_inferior): Attach new functions to corresponding
7387 observers.
7388 (new_thread, new_inferior, inferior_deleted): Define new event
7389 types.
7390 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7391 registries.
7392 * python/py-events.h (events_object) <new_inferior,
7393 inferior_deleted, new_thread>: New fields.
7394 * python/py-event.h (create_thread_event_breakpoint): Add optional
7395 "thread" parameter.
7396
7397 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7398
7399 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7400 check current_ui instead.
7401 (internal_vproblem): Likewise.
7402
7403 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7404
7405 * thread.c (print_thread_info_1): Remove unnecessary calls to
7406 uiout->is_mi_like_p.
7407
7408 2017-09-09 Tom Tromey <tom@tromey.com>
7409
7410 * namespace.h (add_using_directive): Update.
7411 * namespace.c (add_using_directive): Change type of excludes to
7412 std::vector.
7413 * dwarf2read.c (read_import_statement): Use std::vector.
7414 (read_namespace): Update.
7415 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7416
7417 2017-09-09 Tom Tromey <tom@tromey.com>
7418
7419 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7420
7421 2017-09-09 Tom Tromey <tom@tromey.com>
7422
7423 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7424
7425 2017-09-09 Tom Tromey <tom@tromey.com>
7426
7427 * stack.c (func_command): Use gdb::def_vector.
7428
7429 2017-09-09 Tom Tromey <tom@tromey.com>
7430
7431 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7432 ui_out_emit_list, ui_out_emit_tuple.
7433 (mi_cmd_var_update): Likewise.
7434
7435 2017-09-09 Tom Tromey <tom@tromey.com>
7436
7437 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7438 ui_out_redirect_pop.
7439 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7440 ui_out_redirect_pop.
7441 * utils.c (do_ui_out_redirect_pop)
7442 (make_cleanup_ui_out_redirect_pop): Remove.
7443 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7444 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7445 * ui-out.h (ui_out_redirect_pop): New class.
7446
7447 2017-09-09 Tom Tromey <tom@tromey.com>
7448
7449 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7450 (list_available_thread_groups, mi_cmd_list_thread_groups)
7451 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7452 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7453 Likewise.
7454
7455 2017-09-09 Tom Tromey <tom@tromey.com>
7456
7457 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7458 ui_out_emit_tuple.
7459
7460 2017-09-09 Tom Tromey <tom@tromey.com>
7461
7462 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7463 * stack.c (print_frame): Use ui_out_emit_tuple.
7464 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7465 (info_spu_mailbox_command, info_spu_dma_command)
7466 (info_spu_proxydma_command): Likewise.
7467 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7468 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7469 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7470 ui_out_emit_tuple.
7471 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7472
7473 2017-09-09 Tom Tromey <tom@tromey.com>
7474
7475 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7476 (class ui_out_emit_table): Update comment.
7477 * ui-out.c (do_cleanup_table_end)
7478 (make_cleanup_ui_out_table_begin_end): Remove.
7479 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7480 (info_spu_dma_cmdlist): Likewise.
7481 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7482 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7483 ui_out_emit_table.
7484
7485 2017-09-09 Tom Tromey <tom@tromey.com>
7486
7487 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7488 ui_out_emit_list, gdb::optional.
7489
7490 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7491
7492 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7493 prototype.
7494 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7495 prototype.
7496 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7497 prototype.
7498 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7499 * ada-exp.y: Remove _initialize_ada_exp prototype.
7500 * ada-lang.c: Remove _initialize_ada_language prototype.
7501 * ada-tasks.c: Remove _initialize_tasks prototype.
7502 * addrmap.c: Remove _initialize_addrmap prototype.
7503 * agent.c: Remove _initialize_agent prototype.
7504 * aix-thread.c: Remove _initialize_aix_thread prototype.
7505 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7506 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7507 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7508 prototype.
7509 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7510 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7511 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7512 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7513 prototype.
7514 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7515 prototype.
7516 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7517 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7518 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7519 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7520 prototype.
7521 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7522 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7523 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7524 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7525 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7526 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7527 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7528 prototype.
7529 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7530 prototype.
7531 * annotate.c: Remove _initialize_annotate prototype.
7532 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7533 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7534 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7535 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7536 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7537 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7538 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7539 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7540 prototype.
7541 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7542 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7543 * auto-load.c: Remove _initialize_auto_load prototype.
7544 * auxv.c: Remove _initialize_auxv prototype.
7545 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7546 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7547 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7548 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7549 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7550 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7551 prototype.
7552 * break-catch-throw.c: Remove _initialize_break_catch_throw
7553 prototype.
7554 * breakpoint.c: Remove _initialize_breakpoint prototype.
7555 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7556 * btrace.c: Remove _initialize_btrace prototype.
7557 * charset.c: Remove _initialize_charset prototype.
7558 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7559 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7560 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7561 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7562 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7563 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7564 * coffread.c: Remove _initialize_coffread prototype.
7565 * compile/compile.c: Remove _initialize_compile prototype.
7566 * complaints.c: Remove _initialize_complaints prototype.
7567 * completer.c: Remove _initialize_completer prototype.
7568 * copying.awk: Remove _initialize_copying prototype.
7569 * copying.c: Regenerate.
7570 * core-regset.c: Remove _initialize_core_regset prototype.
7571 * corefile.c: Remove _initialize_core prototype.
7572 * corelow.c: Remove _initialize_corelow prototype.
7573 * cp-abi.c: Remove _initialize_cp_abi prototype.
7574 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7575 * cp-support.c: Remove _initialize_cp_support prototype.
7576 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7577 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7578 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7579 * ctf.c: Remove _initialize_ctf prototype.
7580 * d-lang.c: Remove _initialize_d_language prototype.
7581 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7582 prototype.
7583 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7584 * dbxread.c: Remove _initialize_dbxread prototype.
7585 * dcache.c: Remove _initialize_dcache prototype.
7586 * demangle.c: Remove _initialize_demangler prototype.
7587 * disasm-selftests.c: Remove _initialize_disasm_selftests
7588 prototype.
7589 * disasm.c: Remove _initialize_disasm prototype.
7590 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7591 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7592 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7593 prototype.
7594 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7595 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7596 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7597 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7598 * elfread.c: Remove _initialize_elfread prototype.
7599 * exec.c: Remove _initialize_exec prototype.
7600 * extension.c: Remove _initialize_extension prototype.
7601 * f-lang.c: Remove _initialize_f_language prototype.
7602 * f-valprint.c: Remove _initialize_f_valprint prototype.
7603 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7604 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7605 * filesystem.c: Remove _initialize_filesystem prototype.
7606 * findcmd.c: Remove _initialize_mem_search prototype.
7607 * fork-child.c: Remove _initialize_fork_child prototype.
7608 * frame-base.c: Remove _initialize_frame_base prototype.
7609 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7610 * frame.c: Remove _initialize_frame prototype.
7611 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7612 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7613 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7614 * gcore.c: Remove _initialize_gcore prototype.
7615 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7616 * gdbarch.c: Regenerate.
7617 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7618 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7619 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7620 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7621 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7622 * go-lang.c: Remove _initialize_go_language prototype.
7623 * go32-nat.c: Remove _initialize_go32_nat prototype.
7624 * guile/guile.c: Remove _initialize_guile prototype.
7625 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7626 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7627 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7628 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7629 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7630 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7631 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7632 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7633 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7634 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7635 prototype.
7636 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7637 prototype.
7638 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7639 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7640 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7641 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7642 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7643 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7644 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7645 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7646 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7647 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7648 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7649 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7650 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7651 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7652 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7653 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7654 prototype.
7655 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7656 prototype.
7657 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7658 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7659 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7660 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7661 * infcall.c: Remove _initialize_infcall prototype.
7662 * infcmd.c: Remove _initialize_infcmd prototype.
7663 * inferior.c: Remove _initialize_inferiors prototype.
7664 * inflow.c: Remove _initialize_inflow prototype.
7665 * infrun.c: Remove _initialize_infrun prototype.
7666 * interps.c: Remove _initialize_interpreter prototype.
7667 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7668 * jit.c: Remove _initialize_jit prototype.
7669 * language.c: Remove _initialize_language prototype.
7670 * linux-fork.c: Remove _initialize_linux_fork prototype.
7671 * linux-nat.c: Remove _initialize_linux_nat prototype.
7672 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7673 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7674 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7675 * m2-lang.c: Remove _initialize_m2_language prototype.
7676 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7677 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7678 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7679 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7680 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7681 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7682 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7683 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7684 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7685 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7686 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7687 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7688 * machoread.c: Remove _initialize_machoread prototype.
7689 * macrocmd.c: Remove _initialize_macrocmd prototype.
7690 * macroscope.c: Remove _initialize_macroscope prototype.
7691 * maint.c: Remove _initialize_maint_cmds prototype.
7692 * mdebugread.c: Remove _initialize_mdebugread prototype.
7693 * memattr.c: Remove _initialize_mem prototype.
7694 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7695 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7696 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7697 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7698 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7699 * microblaze-linux-tdep.c: Remove
7700 _initialize_microblaze_linux_tdep prototype.
7701 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7702 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7703 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7704 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7705 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7706 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7707 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7708 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7709 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7710 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7711 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7712 prototype.
7713 * mipsread.c: Remove _initialize_mipsread prototype.
7714 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7715 prototype.
7716 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7717 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7718 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7719 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7720 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7721 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7722 prototype.
7723 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7724 * nto-procfs.c: Remove _initialize_procfs prototype.
7725 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7726 * objc-lang.c: Remove _initialize_objc_language prototype.
7727 * objfiles.c: Remove _initialize_objfiles prototype.
7728 * observer.c: Remove observer_test_first_notification_function,
7729 observer_test_second_notification_function,
7730 observer_test_third_notification_function, and
7731 _initialize_observer prototypes.
7732 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7733 * osabi.c: Remove _initialize_gdb_osabi prototype.
7734 * osdata.c: Remove _initialize_osdata prototype.
7735 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7736 * parse.c: Remove _initialize_parse prototype.
7737 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7738 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7739 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7740 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7741 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7742 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7743 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7744 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7745 * printcmd.c: Remove _initialize_printcmd prototype.
7746 * probe.c: Remove _initialize_probe prototype.
7747 * proc-api.c: Remove _initialize_proc_api prototype.
7748 * proc-events.c: Remove _initialize_proc_events prototype.
7749 * proc-service.c: Remove _initialize_proc_service prototype.
7750 * procfs.c: Remove _initialize_procfs prototype.
7751 * psymtab.c: Remove _initialize_psymtab prototype.
7752 * python/python.c: Remove _initialize_python prototype.
7753 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7754 * record-btrace.c: Remove _initialize_record_btrace prototype.
7755 * record-full.c: Remove _initialize_record_full prototype.
7756 * record.c: Remove _initialize_record prototype.
7757 * regcache.c: Remove _initialize_regcache prototype.
7758 * reggroups.c: Remove _initialize_reggroup prototype.
7759 * remote-notif.c: Remove _initialize_notif prototype.
7760 * remote-sim.c: Remove _initialize_remote_sim prototype.
7761 * remote.c: Remove _initialize_remote prototype.
7762 * reverse.c: Remove _initialize_reverse prototype.
7763 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7764 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7765 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7766 prototype.
7767 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7768 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7769 * rust-exp.y: Remove _initialize_rust_exp prototype.
7770 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7771 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7772 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7773 * score-tdep.c: Remove _initialize_score_tdep prototype.
7774 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7775 prototype.
7776 * ser-go32.c: Remove _initialize_ser_dos prototype.
7777 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7778 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7779 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7780 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7781 * serial.c: Remove _initialize_serial prototype.
7782 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7783 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7784 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7785 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7786 * skip.c: Remove _initialize_step_skip prototype.
7787 * sol-thread.c: Remove _initialize_sol_thread prototype.
7788 * solib-aix.c: Remove _initialize_solib_aix prototype.
7789 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7790 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7791 * solib-frv.c: Remove _initialize_frv_solib prototype.
7792 * solib-spu.c: Remove _initialize_spu_solib prototype.
7793 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7794 * solib-target.c: Remove _initialize_solib_target prototype.
7795 * solib.c: Remove _initialize_solib prototype.
7796 * source.c: Remove _initialize_source prototype.
7797 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7798 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7799 prototype.
7800 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7801 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7802 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7803 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7804 prototype.
7805 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7806 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7807 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7808 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7809 prototype.
7810 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7811 prototype.
7812 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7813 prototype.
7814 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7815 prototype.
7816 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7817 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7818 prototype.
7819 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7820 prototype.
7821 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7822 prototype.
7823 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7824 prototype.
7825 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7826 prototype.
7827 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7828 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7829 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7830 * stabsread.c: Remove _initialize_stabsread prototype.
7831 * stack.c: Remove _initialize_stack prototype.
7832 * stap-probe.c: Remove _initialize_stap_probe prototype.
7833 * std-regs.c: Remove _initialize_frame_reg prototype.
7834 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7835 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7836 * symfile.c: Remove _initialize_symfile prototype.
7837 * symmisc.c: Remove _initialize_symmisc prototype.
7838 * symtab.c: Remove _initialize_symtab prototype.
7839 * target-dcache.c: Remove _initialize_target_dcache prototype.
7840 * target-descriptions.c: Remove _initialize_target_descriptions
7841 prototype.
7842 * thread.c: Remove _initialize_thread prototype.
7843 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7844 prototype.
7845 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7846 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7847 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7848 prototype.
7849 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7850 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7851 * tracefile.c: Remove _initialize_tracefile prototype.
7852 * tracepoint.c: Remove _initialize_tracepoint prototype.
7853 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7854 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7855 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7856 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7857 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7858 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7859 * tui/tui.c: Remove _initialize_tui prototype.
7860 * typeprint.c: Remove _initialize_typeprint prototype.
7861 * user-regs.c: Remove _initialize_user_regs prototype.
7862 * utils.c: Remove _initialize_utils prototype.
7863 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7864 * valarith.c: Remove _initialize_valarith prototype.
7865 * valops.c: Remove _initialize_valops prototype.
7866 * valprint.c: Remove _initialize_valprint prototype.
7867 * value.c: Remove _initialize_values prototype.
7868 * varobj.c: Remove _initialize_varobj prototype.
7869 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7870 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7871 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7872 * windows-nat.c: Remove _initialize_windows_nat,
7873 _initialize_check_for_gdb_ini, and _initialize_loadable
7874 prototypes.
7875 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7876 * xcoffread.c: Remove _initialize_xcoffread prototype.
7877 * xml-support.c: Remove _initialize_xml_support prototype.
7878 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7879 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7880 prototype.
7881 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7882 prototype.
7883 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7884
7885 2017-09-08 Keith Seitz <keiths@redhat.com>
7886
7887 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7888 field.
7889
7890 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7891
7892 * f-valprint.c (f_val_print): Remove check for one byte
7893 sized integers. Remove printing of character type.
7894
7895 2017-09-08 Frank Penczek <frank.penczek@intel.com>
7896 Christoph Weinmann <christoph.t.weinmann@intel.com>
7897 Bernhard Heckel <bernhard.heckel@intel.com>
7898
7899 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7900 to maintain proper indentation when printing pointers/refs.
7901
7902 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7903
7904 GDB 8.0.1 released.
7905
7906 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7907
7908 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7909
7910 2017-09-05 Tom Tromey <tom@tromey.com>
7911
7912 * parse.c (funcall_chain): Now a std::vector.
7913 (start_arglist, end_arglist): Simplify.
7914 (free_funcalls): Remove.
7915 (parse_exp_in_context_1): Remove cleanup.
7916
7917 2017-09-05 Tom Tromey <tom@tromey.com>
7918
7919 * go-exp.y (go_parse): Don't create a cleanup.
7920
7921 2017-09-05 Tom Tromey <tom@tromey.com>
7922
7923 * d-exp.y (PrimaryExpression): Use std::string.
7924 (d_parse): Don't create a cleanup.
7925
7926 2017-09-05 Tom Tromey <tom@tromey.com>
7927
7928 * utils.c (do_clear_parser_state): Remove.
7929 (make_cleanup_clear_parser_state): Remove.
7930 * p-exp.y (pascal_parse): Use scoped_restore.
7931 * m2-exp.y (m2_parse): Use scoped_restore.
7932 * f-exp.y (f_parse): Use scoped_restore.
7933 * d-exp.y (d_parse): Use scoped_restore.
7934 * c-exp.y (c_parse): Use scoped_restore.
7935 * ada-exp.y (ada_parse): Use scoped_restore.
7936 * utils.h (make_cleanup_clear_parser_state): Remove.
7937
7938 2017-09-06 Keith Seitz <keiths@redhat.com>
7939
7940 * dwarf2read.c (dw2_linkage_name_attr): New function.
7941 (dw2_linkage_name): New function.
7942 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7943 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7944 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7945
7946 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7947
7948 * config/djgpp/djconfig.sh: Correct shell portability issue.
7949
7950 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7951
7952 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7953
7954 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7955
7956 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7957 * NEWS: Mention new FreeBSD/mips native configuration.
7958 * configure.host: Add aarch64*-*-freebsd*.
7959 * configure.nat: Likewise.
7960 * aarch64-fbsd-nat.c: New file.
7961
7962 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7963
7964 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7965 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7966 * NEWS: Mention new FreeBSD/aarch64 target.
7967 * configure.tgt: Add aarch64*-*-freebsd*.
7968 * aarch64-fbsd-tdep.c: New file.
7969 * aarch64-fbsd-tdep.h: New file.
7970
7971 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7972
7973 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7974
7975 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7976
7977 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7978 of TLS symbols.
7979
7980 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7981
7982 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7983 call.
7984
7985 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7986
7987 * infrun.c (follow_exec): Call add_thread after
7988 target_find_description.
7989
7990 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7991
7992 * infrun.c (handle_inferior_event_1): When exec'ing, read
7993 stop_pc after follow_exec.
7994
7995 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7996
7997 * remote.c (process_g_packet): Update error message.
7998
7999 2017-09-05 Yao Qi <yao.qi@linaro.org>
8000
8001 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
8002 targets.
8003
8004 2017-09-05 Pedro Alves <palves@redhat.com>
8005
8006 * eval.c (eval_call, evaluate_funcall): New functions, factored
8007 out from ...
8008 (evaluate_subexp_standard): ... this.
8009
8010 2017-09-05 Yao Qi <yao.qi@linaro.org>
8011
8012 * amd64-tdep.c (amd64_target_description): Create target
8013 descriptions.
8014 (_initialize_amd64_tdep): Don't call functions
8015 initialize_tdesc_amd64_*. Add self tests.
8016 * arch/amd64.c (amd64_create_target_description): Add parameter
8017 is_linux. Call set_tdesc_osabi if is_linux is true.
8018 * arch/amd64.h (amd64_create_target_description): Update the
8019 declaration.
8020 * arch/i386.c (i386_create_target_description): Add parameter
8021 is_linux. Call set_tdesc_osabi if is_linux is true.
8022 * arch/i386.h (i386_create_target_description): Update
8023 declaration.
8024 * configure.tgt: Add i386.o to gdb_target_obs.
8025 * features/Makefile (XMLTOC): Remove i386/*.xml.
8026 * features/i386/amd64-avx-avx512.c: Remove.
8027 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
8028 * features/i386/amd64-avx-mpx.c: Remove.
8029 * features/i386/amd64-avx.c: Remove.
8030 * features/i386/amd64-mpx.c: Remove.
8031 * features/i386/amd64.c: Remove.
8032 * features/i386/i386-avx-avx512.c: Remove.
8033 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
8034 * features/i386/i386-avx-mpx.c: Remove.
8035 * features/i386/i386-avx.c: Remove.
8036 * features/i386/i386-mmx.c: Remove.
8037 * features/i386/i386-mpx.c: Remove.
8038 * features/i386/i386.c: Remove.
8039 * i386-tdep.c: Don't include features/i386/i386*.c., include
8040 target-descriptions.h and arch/i386.h.
8041 (i386_target_description): Create target descriptions.
8042 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
8043 functions. Do self tests.
8044
8045 2017-09-05 Yao Qi <yao.qi@linaro.org>
8046
8047 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
8048 * features/i386/amd64-avx-avx512-linux.c: Removed.
8049 * features/i386/amd64-avx-linux.c: Removed.
8050 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
8051 * features/i386/amd64-avx-mpx-linux.c: Removed.
8052 * features/i386/amd64-linux.c: Removed.
8053 * features/i386/amd64-mpx-linux.c: Removed.
8054 * features/i386/x32-avx-avx512-linux.c: Removed.
8055 * features/i386/x32-avx-linux.c: Removed.
8056 * features/i386/x32-linux.c: Removed.
8057
8058 2017-09-05 Yao Qi <yao.qi@linaro.org>
8059
8060 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
8061 features/i386/*.c.
8062 (amd64_linux_read_description): Call
8063 amd64_create_target_description.
8064 * arch/amd64.c: New file.
8065 * arch/amd64.h: New file.
8066 * configure.tgt (x86_64-*-linux*): Append amd64.o.
8067 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
8068
8069 2017-09-05 Yao Qi <yao.qi@linaro.org>
8070
8071 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
8072 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
8073 (amd64_linux_read_description): Create target descriptions.
8074 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
8075 functions. Add unit tests.
8076 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
8077 x32-core.xml.
8078 * features/i386/64bit-avx.c: Generated.
8079 * features/i386/64bit-avx512.c: Generated.
8080 * features/i386/64bit-core.c: Generated.
8081 * features/i386/64bit-linux.c: Generated.
8082 * features/i386/64bit-mpx.c: Generated.
8083 * features/i386/64bit-pkeys.c: Generated.
8084 * features/i386/64bit-segments.c: Generated.
8085 * features/i386/64bit-sse.c: Generated.
8086 * features/i386/x32-core.c: Generated.
8087 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
8088 c files for amd64-linux and x32-linux.
8089
8090 2017-09-05 Yao Qi <yao.qi@linaro.org>
8091
8092 * amd64-linux-tdep.c (amd64_linux_read_description): New
8093 function.
8094 (amd64_linux_core_read_description): Call
8095 amd64_linux_read_description.
8096 (amd64_linux_init_abi): Likewise.
8097 (amd64_x32_linux_init_abi): Likewise.
8098 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
8099 * x86-linux-nat.c (x86_linux_read_description): Call
8100 amd64_linux_read_description.
8101
8102 2017-09-05 Yao Qi <yao.qi@linaro.org>
8103
8104 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
8105 comments.
8106
8107 2017-09-05 Yao Qi <yao.qi@linaro.org>
8108
8109 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
8110 * features/i386/i386-avx-avx512-linux.c: Remove.
8111 * features/i386/i386-avx-linux.c: Remove.
8112 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
8113 * features/i386/i386-avx-mpx-linux.c: Remove.
8114 * features/i386/i386-linux.c: Remove.
8115 * features/i386/i386-mmx-linux.c: Remove.
8116 * features/i386/i386-mpx-linux.c: Remove.
8117
8118 2017-09-05 Yao Qi <yao.qi@linaro.org>
8119
8120 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
8121 (SFILES): Add arch/i386.c.
8122 (HFILES_NO_SRCDIR): Add arch/i386.h.
8123 * arch/i386.c: New file.
8124 * arch/i386.h: New file.
8125 * arch/tdesc.h (allocate_target_description): Declare.
8126 (set_tdesc_architecture): Declare.
8127 (set_tdesc_osabi): Declare.
8128 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8129 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8130 include arch/i386.h.
8131 (i386_linux_read_description): Remove code and call
8132 i386_create_target_description.
8133 (set_tdesc_architecture): New function.
8134 (set_tdesc_osabi): New function.
8135 * target-descriptions.h (allocate_target_description): Remove.
8136
8137 2017-09-05 Yao Qi <yao.qi@linaro.org>
8138
8139 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8140 * target-descriptions.c (tdesc_create_feature): Likewise, and
8141 adjust code.
8142 * features/i386/32bit-avx.c: Re-generated.
8143 * features/i386/32bit-avx512.c: Re-generated.
8144 * features/i386/32bit-core.c: Re-generated.
8145 * features/i386/32bit-linux.c: Re-generated.
8146 * features/i386/32bit-mpx.c: Re-generated.
8147 * features/i386/32bit-pkeys.c: Re-generated.
8148 * features/i386/32bit-sse.c: Re-generated.
8149
8150 2017-09-05 Yao Qi <yao.qi@linaro.org>
8151
8152 * regformats/regdef.h (struct reg): Override operator == and !=.
8153
8154 2017-09-05 Yao Qi <yao.qi@linaro.org>
8155
8156 * arch/tdesc.h: New file.
8157 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8158 * target-descriptions.c: Update comments.
8159 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8160 declarations.
8161 * features/i386/32bit-avx.c: Re-generated.
8162 * features/i386/32bit-avx512.c: Re-generated.
8163 * features/i386/32bit-core.c: Re-generated.
8164 * features/i386/32bit-linux.c: Re-generated.
8165 * features/i386/32bit-mpx.c: Re-generated.
8166 * features/i386/32bit-pkeys.c: Re-generated.
8167 * features/i386/32bit-sse.c: Re-generated.
8168
8169 2017-09-05 Yao Qi <yao.qi@linaro.org>
8170
8171 * regformats/regdat.sh: Update generated code.
8172
8173 2017-09-05 Yao Qi <yao.qi@linaro.org>
8174
8175 * regformats/regdat.sh: Adjust code order.
8176
8177 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8178
8179 * expprint.c (dump_subexp_body_standard): Use constant format
8180 string in fprintf_filtered call.
8181
8182 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8183
8184 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8185 NetBSD/i386.
8186 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8187
8188 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8189
8190 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8191
8192 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8193
8194 * bsd-kvm.o: Define _KMEMUSER.
8195 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8196 * configure: Regenerate.
8197
8198 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8199
8200 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8201 * i386-fbsd-nat.c: Likewise.
8202
8203 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8204
8205 * unittests/array-view-selftests.c: Add include of <array>.
8206
8207 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8208
8209 * spu-tdep.c (flush_ea_cache): Add missing argument to
8210 call_function_by_hand.
8211
8212 2017-09-04 Pedro Alves <palves@redhat.com>
8213
8214 * NEWS (Safer support for debugging with no debug info): New.
8215
8216 2017-09-04 Pedro Alves <palves@redhat.com>
8217
8218 * c-exp.y (function_method, function_method_void): Add current
8219 instance flags to TYPE_INSTANCE.
8220 * dwarf2read.c (check_modifier): New.
8221 (compute_delayed_physnames): Assert that only C++ adds delayed
8222 physnames. Mark fn_fields as const/volatile depending on
8223 physname.
8224 * eval.c (make_params): New type_instance_flags parameter. Use
8225 it as the new type's instance flags.
8226 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8227 flags element and pass it to make_params.
8228 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8229 instance flags element.
8230 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8231 * gdbtypes.h: Include "enum-flags.h".
8232 (type_instance_flags): New enum-flags type.
8233 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8234 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8235 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8236 (follow_type_instance_flags): New function.
8237 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8238 * parser-defs.h (follow_type_instance_flags): Declare.
8239 * valops.c (value_struct_elt_for_reference): const/volatile must
8240 match too.
8241
8242 2017-09-04 Pedro Alves <palves@redhat.com>
8243
8244 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8245 function/method scopes; lookup the nested name as a function local
8246 static variable.
8247
8248 2017-09-04 Pedro Alves <palves@redhat.com>
8249
8250 (%type <voidval>): Add function_method.
8251 * c-exp.y (exp): New production for calls with no arguments.
8252 (function_method, function_method_void_or_typelist): New
8253 productions.
8254 (exp): New production for "method()::static_var".
8255 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8256 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8257 Handle OP_FUNC_STATIC_VAR.
8258 * parse.c (operator_length_standard):
8259 Handle OP_FUNC_STATIC_VAR.
8260
8261 2017-09-04 Pedro Alves <palves@redhat.com>
8262
8263 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8264 handling.
8265 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8266 Ditto.
8267 * parse.c (operator_length_standard, operator_check_standard):
8268 Ditto.
8269 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8270
8271 2017-09-04 Pedro Alves <palves@redhat.com>
8272
8273 * ax-gdb.c: Include "typeprint.h".
8274 (gen_expr_for_cast): New function.
8275 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8276 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8277 type is unknown.
8278 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8279 nodebug_data_symbol.
8280 * eval.c: Include "typeprint.h".
8281 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8282 Error out if symbol has unknown type.
8283 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8284 evaluate_subexp_for_cast.
8285 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8286 OP_VAR_MSYM_VALUE.
8287 (evaluate_subexp_for_cast): New function.
8288 * gdbtypes.c (init_nodebug_var_type): New function.
8289 (objfile_type): Use it to initialize types of variables with no
8290 debug info.
8291 * typeprint.c (error_unknown_type): New.
8292 * typeprint.h (error_unknown_type): New declaration.
8293 * compile/compile-c-types.c (convert_type_basic): Handle
8294 TYPE_CODE_ERROR; warn and fallback to int for variables with
8295 unknown type.
8296
8297 2017-09-04 Pedro Alves <palves@redhat.com>
8298
8299 * eval.c (evaluate_var_value): New function, factored out from ...
8300 (evaluate_subexp_standard): ... here.
8301
8302 2017-09-04 Pedro Alves <palves@redhat.com>
8303
8304 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8305 Remove useless assignments to 'op'.
8306
8307 2017-09-04 Pedro Alves <palves@redhat.com>
8308
8309 * eval.c (eval_skip_value): New function.
8310 (evaluate_subexp_standard): Use it.
8311
8312 2017-09-04 Pedro Alves <palves@redhat.com>
8313
8314 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8315 function name from symbol/minsym and pass it to
8316 error_call_unknown_return_type.
8317
8318 2017-09-04 Pedro Alves <palves@redhat.com>
8319
8320 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8321 * ax-gdb.c (gen_msym_var_ref): New function.
8322 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8323 * eval.c (evaluate_var_msym_value): New function.
8324 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8325 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8326 to call_function_by_hand.
8327 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8328 Handle OP_VAR_MSYM_VALUE.
8329 (union exp_element) <msymbol>: New field.
8330 * minsyms.h (struct type): Forward declare.
8331 (find_minsym_type_and_address): Declare.
8332 * parse.c (write_exp_elt_msym): New function.
8333 (write_exp_msymbol): Delete, refactored as ...
8334 (find_minsym_type_and_address): ... this new function.
8335 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8336 (operator_length_standard, operator_check_standard): Handle
8337 OP_VAR_MSYM_VALUE.
8338 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8339
8340 2017-09-04 Pedro Alves <palves@redhat.com>
8341
8342 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8343 TYPE_GNU_IFUNC specially here. Throw error if return type is
8344 unknown.
8345 * ada-typeprint.c (print_func_type): Handle functions with unknown
8346 return type.
8347 * c-typeprint.c (c_type_print_base): Handle functions and methods
8348 with unknown return type.
8349 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8350 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8351 * compile/compile-c-types.c: Include "objfiles.h".
8352 (convert_func): For functions with unknown return type, warn and
8353 default to int.
8354 * compile/compile-object-run.c (compile_object_run): Adjust call
8355 to call_function_by_hand_dummy.
8356 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8357 call_function_by_hand.
8358 * eval.c (evaluate_subexp_standard): Adjust calls to
8359 call_function_by_hand. Handle functions and methods with unknown
8360 return type. Pass expect_type to call_function_by_hand.
8361 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8362 return type.
8363 * gcore.c (call_target_sbrk): Adjust call to
8364 call_function_by_hand.
8365 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8366 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8367 an integer address type instead of nodebug.
8368 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8369 call_function_by_hand.
8370 * infcall.c (error_call_unknown_return_type): New function.
8371 (call_function_by_hand): New "default_return_type" parameter.
8372 Pass it down.
8373 (call_function_by_hand_dummy): New "default_return_type"
8374 parameter. Use it instead of defaulting to int. If there's no
8375 default and the return type is unknown, throw an error. If
8376 there's a default return type, and the called function has no
8377 debug info, then assume the function is prototyped.
8378 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8379 New "default_return_type" parameter.
8380 (error_call_unknown_return_type): New declaration.
8381 * linux-fork.c (call_lseek): Cast return type of lseek.
8382 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8383 call_function_by_hand.
8384 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8385 calls to call_function_by_hand.
8386 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8387 return type.
8388 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8389 (value_nsstring, print_object_command): Adjust calls to
8390 call_function_by_hand.
8391 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8392 functions with unknown return type.
8393 (pascal_type_print_func_varspec_suffix): New function.
8394 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8395 TYPE_CODE_METHOD>: Use it.
8396 * python/py-value.c (valpy_call): Adjust call to
8397 call_function_by_hand.
8398 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8399 call_function_by_hand.
8400 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8401 call_function_by_hand.
8402 * valops.c (value_allocate_space_in_inferior): Adjust call to
8403 call_function_by_hand.
8404 * typeprint.c (type_print_unknown_return_type): New function.
8405 * typeprint.h (type_print_unknown_return_type): New declaration.
8406
8407 2017-09-04 Pedro Alves <palves@redhat.com>
8408
8409 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8410 types with more than one parameter as prototyped.
8411
8412 2017-09-04 Pedro Alves <palves@redhat.com>
8413
8414 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8415 (disassemble_command): Use gdb_disassembly_flags instead of bare
8416 int.
8417 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8418 (dump_insns, do_mixed_source_and_assembly_deprecated)
8419 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8420 Use gdb_disassembly_flags instead of bare int.
8421 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8422 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8423 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8424 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8425 (enum gdb_disassembly_flag): ... values of this new enumeration.
8426 (gdb_disassembly_flags): Define.
8427 (gdb_disassembly)
8428 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8429 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8430 gdb_disassembly_flags instead of bare int.
8431 * record-btrace.c (btrace_insn_history)
8432 (record_btrace_insn_history, record_btrace_insn_history_range)
8433 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8434 instead of bare int.
8435 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8436 Use gdb_disassembly_flags instead of bare int.
8437 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8438 Define.
8439 * target-delegates.c: Regenerate.
8440 * target.c (target_insn_history, target_insn_history_from)
8441 (target_insn_history_range): Use gdb_disassembly_flags instead of
8442 bare int.
8443 * target.h: Include "disasm.h".
8444 (struct target_ops) <to_insn_history, to_insn_history_from,
8445 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8446 int.
8447 (target_insn_history, target_insn_history_from)
8448 (target_insn_history_range): Use gdb_disassembly_flags instead of
8449 bare int.
8450
8451 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8452
8453 * cli/cli-script.c (build_command_line): For if/while commands,
8454 check whether args is empty.
8455
8456 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8457
8458 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8459 (enum command_control_type): Likewise.
8460 (struct command_line): Likewise.
8461 (free_command_lines): Likewise.
8462 (struct command_lines_deleter): Likewise.
8463 (command_line_up): Likewise.
8464 (read_command_lines): Likewise.
8465 (read_command_lines_1): Likewise.
8466 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8467 (enum command_control_type): Likewise.
8468 (struct command_line): Likewise.
8469 (free_command_lines): Likewise.
8470 (struct command_lines_deleter): Likewise.
8471 (command_line_up): Likewise.
8472 (read_command_lines): Likewise.
8473 (read_command_lines_1): Likewise.
8474 * breakpoint.h: Include cli/cli-script.h.
8475 * extension-priv.h: Likewise.
8476 * gdbcmd.h: Likewise.
8477
8478 2017-09-04 Pedro Alves <palves@redhat.com>
8479
8480 * ada-lang.c (is_known_support_routine): Move sal declaration to
8481 where it is initialized.
8482 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8483 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8484 (clear_command, update_static_tracepoint): Remove init_sal
8485 references. Move declarations closer to initializations.
8486 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8487 initializations.
8488 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8489 references. Move sal declarations closer to initializations.
8490 * frame.c (find_frame_sal): Return a symtab_and_line via function
8491 return instead of output parameter. Remove init_sal references.
8492 * frame.h (find_frame_sal): Return a symtab_and_line via function
8493 return instead of output parameter.
8494 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8495 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8496 instead of memset.
8497 (gdbscm_find_pc_line): Remove init_sal reference.
8498 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8499 references. Move declarations closer to initializations.
8500 * infcmd.c (set_step_frame): Update. Move declarations closer to
8501 initializations.
8502 (finish_backward): Remove init_sal references. Move declarations
8503 closer to initializations.
8504 * infrun.c (process_event_stop_test, handle_step_into_function)
8505 (insert_hp_step_resume_breakpoint_at_frame)
8506 (insert_step_resume_breakpoint_at_caller): Likewise.
8507 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8508 (symbol_to_sal): Likewise.
8509 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8510 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8511 to its initialization.
8512 * reverse.c (save_bookmark_command): Use new/delete. Remove
8513 init_sal references. Move declarations closer to initializations.
8514 * source.c (get_current_source_symtab_and_line): Remove brace
8515 initialization.
8516 (set_current_source_symtab_and_line): Now takes the sal by const
8517 reference. Remove brace initialization.
8518 (line_info): Remove init_sal reference.
8519 * source.h (set_current_source_symtab_and_line): Now takes a
8520 symtab_and_line via const reference.
8521 * stack.c (set_current_sal_from_frame): Adjust.
8522 (print_frame_info): Adjust.
8523 (get_last_displayed_sal): Return the sal via function return
8524 instead of via output parameter. Simplify.
8525 (frame_info): Adjust.
8526 * stack.h (get_last_displayed_sal): Return the sal via function
8527 return instead of via output parameter.
8528 * symtab.c (init_sal): Delete.
8529 (find_pc_sect_line): Remove init_sal references. Move
8530 declarations closer to initializations.
8531 (find_function_start_sal): Remove init_sal references. Move
8532 declarations closer to initializations.
8533 * symtab.h (struct symtab_and_line): In-class initialize all
8534 fields.
8535 * tracepoint.c (set_traceframe_context)
8536 (print_one_static_tracepoint_marker): Remove init_sal references.
8537 Move declarations closer to initializations.
8538 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8539 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8540 declarations closer to initializations.
8541 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8542 init_sal references. Adjust.
8543
8544 2017-09-04 Pedro Alves <palves@redhat.com>
8545
8546 * ax-gdb.c (agent_command_1): Use range-for.
8547 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8548 * breakpoint.c: Include "common/array-view.h".
8549 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8550 parameter from struct symtabs_and_lines to
8551 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8552 (breakpoint_sals_to_pc): Change sals parameter from struct
8553 symtabs_and_lines to std::vector reference.
8554 (check_fast_tracepoint_sals): Change sals parameter from struct
8555 symtabs_and_lines to std::array_view. Use range-for.
8556 (decode_static_tracepoint_spec): Return a std::vector instead of
8557 symtabs_and_lines. Update.
8558 (create_breakpoint): Update.
8559 (break_range_command, until_break_command, clear_command): Update.
8560 (base_breakpoint_decode_location, bkpt_decode_location)
8561 (bkpt_probe_create_sals_from_location)
8562 (bkpt_probe_decode_location, tracepoint_decode_location)
8563 (tracepoint_probe_decode_location)
8564 (strace_marker_create_sals_from_location): Return a std::vector
8565 instead of symtabs_and_lines.
8566 (strace_marker_create_breakpoints_sal): Update.
8567 (strace_marker_decode_location): Return a std::vector instead of
8568 symtabs_and_lines. Update.
8569 (update_breakpoint_locations): Change struct symtabs_and_lines
8570 parameters to gdb::array_view. Adjust.
8571 (location_to_sals): Return a std::vector instead of
8572 symtabs_and_lines. Update.
8573 (breakpoint_re_set_default): Use std::vector instead of struct
8574 symtabs_and_lines.
8575 (decode_location_default): Return a std::vector instead of
8576 symtabs_and_lines. Update.
8577 * breakpoint.h: Include "common/array-view.h".
8578 (struct breakpoint_ops) <decode_location>: Now returns a
8579 std::vector instead of returning a symtabs_and_lines via output
8580 parameter.
8581 (update_breakpoint_locations): Change sals parameters to use
8582 gdb::array_view.
8583 * cli/cli-cmds.c (edit_command, list_command): Update to use
8584 std::vector and gdb::array_view.
8585 (ambiguous_line_spec): Adjust to use gdb::array_view and
8586 range-for.
8587 (compare_symtabs): Rename to ...
8588 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8589 const reference and adjust.
8590 (filter_sals): Rewrite using std::vector and standard algorithms.
8591 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8592 (jump_command): Update to use std::vector.
8593 * linespec.c (struct linespec_state) <canonical_names>: Update
8594 comment.
8595 (add_sal_to_sals_basic): Delete.
8596 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8597 (decode_line_2, create_sals_line_offset)
8598 (convert_address_location_to_sals, convert_linespec_to_sals)
8599 (convert_explicit_location_to_sals, parse_linespec)
8600 (event_location_to_sals, decode_line_full, decode_line_1)
8601 (decode_line_with_current_source)
8602 (decode_line_with_last_displayed, decode_objc)
8603 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8604 (linespec_result::~linespec_result): Adjust to use std::vector
8605 instead of symtabs_and_lines.
8606 * linespec.h (linespec_sals::sals): Now a std::vector.
8607 (struct linespec_result): Use std::vector, bool, and in-class
8608 initialization.
8609 (decode_line_1, decode_line_with_current_source)
8610 (decode_line_with_last_displayed): Return std::vector.
8611 * macrocmd.c (info_macros_command): Use std::vector.
8612 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8613 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8614 std::vector.
8615 * probe.h (parse_probes): Return a std::vector.
8616 * python/python.c (gdbpy_decode_line): Use std::vector and
8617 gdb::array_view.
8618 * source.c (select_source_symtab, line_info): Use std::vector.
8619 * stack.c (func_command): Use std::vector.
8620 * symtab.h (struct symtabs_and_lines): Delete.
8621 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8622
8623 2017-09-04 Pedro Alves <palves@redhat.com>
8624
8625 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8626 unittests/array-view-selftests.c.
8627 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8628 * common/array-view.h: New file.
8629 * unittests/array-view-selftests.c: New file.
8630
8631 2017-09-04 Pedro Alves <palves@redhat.com>
8632
8633 * cli/cli-cmds.c (edit_command): Pass message to
8634 ambiguous_line_spec.
8635 (list_command): Pass message to ambiguous_line_spec. Say
8636 "first"/"last" instead of "start" and "end" to be consistent with
8637 the manual.
8638 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8639 them to print formatted message.
8640
8641 2017-09-04 Pedro Alves <palves@redhat.com>
8642
8643 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8644 ftrace_update_insns by reference instead of pointer.
8645
8646 2017-09-04 Yao Qi <yao.qi@linaro.org>
8647
8648 * i386-go32-tdep.c: Include x86-xstate.h.
8649 (i386_go32_init_abi): Call i386_target_description.
8650 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8651 if xcr0 is X86_XSTATE_X87_MASK.
8652 * i386-tdep.h (tdesc_i386): Remove the declaration.
8653 (tdesc_i386_mmx): Likewise.
8654
8655 2017-09-04 Yao Qi <yao.qi@linaro.org>
8656
8657 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8658 X86_XSTATE_SSE_MASK instead of 0.
8659
8660 2017-09-04 Yao Qi <yao.qi@linaro.org>
8661
8662 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8663 i386_target_description.
8664 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8665 i386_target_description.
8666 * i386-tdep.c (i386_gdbarch_init): Likewise.
8667
8668 2017-09-04 Yao Qi <yao.qi@linaro.org>
8669
8670 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8671 (x86_darwin_init_abi_64): Call amd64_target_description.
8672 * amd64-dicos-tdep.c: Likewise.
8673 * amd64-fbsd-nat.c: Likewise.
8674 * amd64-fbsd-tdep.c: Likewise.
8675 * amd64-nbsd-tdep.c: Likewise.
8676 * amd64-obsd-tdep.c: Likewise.
8677 * amd64-sol2-tdep.c: Likewise.
8678 * amd64-windows-tdep.c: Likewise.
8679 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8680
8681 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8682
8683 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8684 (btrace_function) <insn>: Change type to use std::vector.
8685 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8686 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8687 ftrace_update_insns, ftrace_compute_global_level_offset,
8688 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8689 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8690 change to std::vector.
8691 (ftrace_update_insns): Adjust to change to std::vector, change
8692 type of INSN parameter.
8693 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8694 * record-btrace.c (btrace_call_history_insn_range,
8695 btrace_compute_src_line_range,
8696 record_btrace_frame_prev_register): Adjust to change to
8697 std::vector.
8698 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8699 to change to std::vector.
8700
8701 2017-09-03 Tom Tromey <tom@tromey.com>
8702
8703 * corefile.c (reopen_exec_file): Use std::string.
8704
8705 2017-09-03 Tom Tromey <tom@tromey.com>
8706
8707 * compile/compile.c (compile_register_name_mangled): Return
8708 std::string.
8709 * compile/compile-loc2c.c (pushf_register_address): Update.
8710 (pushf_register): Update.
8711 * compile/compile-c-types.c (convert_array): Update.
8712 * compile/compile-c-symbols.c (generate_vla_size): Update.
8713 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8714 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8715 (convert_one_symbol): Update.
8716 (generate_c_for_for_one_variable): Update.
8717 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8718 std::string.
8719 (generate_register_struct): Update.
8720 * compile/compile-internal.h (c_get_range_decl_name): Return a
8721 std::string.
8722 (compile_register_name_mangled): Return std::string.
8723
8724 2017-09-03 Tom Tromey <tom@tromey.com>
8725
8726 * utils.c (perror_string): Return a std::string.
8727 (throw_perror_with_name, perror_warning_with_name): Update.
8728
8729 2017-09-03 Tom Tromey <tom@tromey.com>
8730
8731 * demangle.c (demangle_command): Use std::string,
8732 unique_xmalloc_ptr.
8733
8734 2017-09-03 Tom Tromey <tom@tromey.com>
8735
8736 * cli/cli-setshow.c (do_set_command): Use std::string.
8737
8738 2017-09-03 Tom Tromey <tom@tromey.com>
8739
8740 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8741
8742 2017-09-03 Tom Tromey <tom@tromey.com>
8743
8744 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8745
8746 2017-09-03 Tom Tromey <tom@tromey.com>
8747
8748 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8749 gdb::unique_xmalloc_ptr.
8750
8751 2017-09-03 Tom Tromey <tom@tromey.com>
8752
8753 * thread.c (print_thread_info_1): Use string_printf.
8754 (thread_apply_command, thread_apply_all_command): Use
8755 std::string.
8756
8757 2017-09-03 Tom Tromey <tom@tromey.com>
8758
8759 * valprint.c (val_print_string): Update.
8760 * gdbcore.h (memory_error_message): Return std::string.
8761 * corefile.c (memory_error_message): Return std::string.
8762 (memory_error): Update.
8763 * breakpoint.c (insert_bp_location): Update.
8764
8765 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8766
8767 * target/waitstatus.h (target_waitstatus_to_string): Change
8768 return type to std::string.
8769 * target/waitstatus.c (target_waitstatus_to_string): Return
8770 std::string.
8771 * target.h (target_waitstatus_to_string): Remove declaration.
8772 * infrun.c (resume, clear_proceed_status_thread,
8773 print_target_wait_results, do_target_wait, save_waitstatus,
8774 stop_all_threads): Adjust.
8775 * record-btrace.c (record_btrace_wait): Adjust.
8776 * target-debug.h
8777 (target_debug_print_struct_target_waitstatus_p): Adjust.
8778
8779 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8780
8781 PR gdb/22046
8782 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8783 detection.
8784
8785 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8786
8787 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8788 for setting/unsetting environment variables on the remote target.
8789 (New remote packets): Add entries for QEnvironmentHexEncoded,
8790 QEnvironmentUnset and QEnvironmentReset.
8791 * common/environ.c (gdb_environ::operator=): Extend method to
8792 handle m_user_set_env_list and m_user_unset_env_list.
8793 (gdb_environ::clear): Likewise.
8794 (match_var_in_string): Change type of first parameter from 'char
8795 *' to 'const char *'.
8796 (gdb_environ::set): Extend method to handle
8797 m_user_set_env_list and m_user_unset_env_list.
8798 (gdb_environ::unset): Likewise.
8799 (gdb_environ::clear_user_set_env): New method.
8800 (gdb_environ::user_set_envp): Likewise.
8801 (gdb_environ::user_unset_envp): Likewise.
8802 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8803 m_user_unset_env_list on move constructor/assignment.
8804 (unset): Add new default parameter 'update_unset_list = true'.
8805 (clear_user_set_env): New method.
8806 (user_set_envp): Likewise.
8807 (user_unset_envp): Likewise.
8808 (m_user_set_env_list): New std::set.
8809 (m_user_unset_env_list): Likewise.
8810 * common/rsp-low.c (hex2str): New function.
8811 (bin2hex): New overload for bin2hex function.
8812 * common/rsp-low.c (hex2str): New prototype.
8813 (str2hex): New overload prototype.
8814 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8815 QEnvironmentUnset and QEnvironmentReset.
8816 (remote_protocol_features): Add QEnvironmentHexEncoded,
8817 QEnvironmentUnset and QEnvironmentReset packets.
8818 (send_environment_packet): New function.
8819 (extended_remote_environment_support): Likewise.
8820 (extended_remote_create_inferior): Call
8821 extended_remote_environment_support.
8822 (_initialize_remote): Add QEnvironmentHexEncoded,
8823 QEnvironmentUnset and QEnvironmentReset packet configs.
8824 * unittests/environ-selftests.c (gdb_selftest_env_var):
8825 New variable.
8826 (test_vector_initialization): New function.
8827 (test_init_from_host_environ): Likewise.
8828 (test_reinit_from_host_environ): Likewise.
8829 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8830 Likewise.
8831 (test_unset_set_empty_vector): Likewise.
8832 (test_vector_clear): Likewise.
8833 (test_std_move): Likewise.
8834 (test_move_constructor):
8835 (test_self_move): Likewise.
8836 (test_set_unset_reset): Likewise.
8837 (run_tests): Rewrite in terms of the functions above.
8838
8839 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8840
8841 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8842 (adi_available): Use a temp variable of type CORE_ADDR as argument
8843 3 when calling target_auxv_search.
8844 (adi_normalize_address): Use masks and xor operators to calculate
8845 normalized address.
8846 (adi_read_versions, adi_write_versions, adi_print_versions)
8847 (do_examine, do_assign): Use paddress.
8848
8849 2017-08-29 John Baldwin <jhb@FreeBSD.org>
8850
8851 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8852 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8853 out of loop and add supply of FIR.
8854 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8855 add collect of FIR.
8856
8857 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8858
8859 PR gdb/21827
8860 * cli/cli-script.c (define_command): Don't convert command name
8861 to lower case.
8862
8863 2017-08-25 Joel Brobecker <brobecker@adacore.com>
8864
8865 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8866 Update all callers accordingly. Remove all code blocks handling
8867 the case where DISPP is not NULL.
8868
8869 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8870
8871 PR symtab/22003
8872 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8873 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8874 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8875
8876 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8877
8878 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8879 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8880 (read_comp_units_from_section): New parameter abbrev_section, use
8881 read_and_check_comp_unit_head, allocate signatured_type if needed.
8882 (create_all_comp_units): Update read_comp_units_from_section caller.
8883
8884 2017-08-23 Pedro Alves <palves@redhat.com>
8885
8886 PR remote/21852
8887 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8888 to null_ptid and switch to thread without reading the registers
8889 after adding the inferior.
8890
8891 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8892
8893 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8894 compile-gcc.
8895 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8896 (compile_to_object): Implement compile_gcc.
8897 (_initialize_compile): Install "set compile-gcc". Initialize
8898 compile_gcc.
8899
8900 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8901
8902 * compile/compile.c (compile_to_object): Conditionally call
8903 set_verbose. Conditionally call compile or compile_v0.
8904
8905 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
8906
8907 * sparc64-tdep.h: (adi_normalize_address): New export.
8908 * sparc-nat.h: (open_adi_tag_fd): New export.
8909 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8910 * sparc64-linux-tdep.c:
8911 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8912 (sparc64_linux_handle_segmentation_fault): New function.
8913 (sparc64_linux_init_abi): Register
8914 sparc64_linux_handle_segmentation_fault
8915 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8916 (sparc64_addr_bits_remove): New function.
8917 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8918 (MAX_PROC_NAME_SIZE): New macro.
8919 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8920 (sparc64adilist): New variable.
8921 (adi_proc_list): New variable.
8922 (find_adi_info): New function.
8923 (add_adi_info): New function.
8924 (get_adi_info_proc): New function.
8925 (get_adi_info): New function.
8926 (info_adi_command): New function.
8927 (read_maps_entry): New function.
8928 (adi_available): New function.
8929 (adi_normalize_address): New function.
8930 (adi_align_address): New function.
8931 (adi_convert_byte_count): New function.
8932 (adi_tag_fd): New function.
8933 (adi_is_addr_mapped): New function.
8934 (adi_read_versions): New function.
8935 (adi_write_versions): New function.
8936 (adi_print_versions): New function.
8937 (do_examine): New function.
8938 (do_assign): New function.
8939 (adi_examine_command): New function.
8940 (adi_assign_command): New function.
8941 (_initialize_sparc64_adi_tdep): New function.
8942
8943 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8944
8945 * breakpoint.c (breakpoints_info): Rename to ...
8946 (info_breakpoints_command): ... this.
8947 (watchpoints_info): Rename to ...
8948 (info_watchpoints_command): ... this.
8949 (tracepoints_info): Rename to ...
8950 (info_tracepoints_command): ... this.
8951 (_initialize_breakpoint): Adjust.
8952 * dcache.c (dcache_info): Rename to ...
8953 (info_display_command): ... this.
8954 (_initialize_dcache): Adjust.
8955 * frame.h (args_info): Rename to ...
8956 (info_args_command): ... this.
8957 (locals_info): Rename to ...
8958 (info_locals_command): ... this.
8959 * infcmd.c (nofp_registers_info): Rename to ...
8960 (info_registers_command): ... this.
8961 (float_info): Rename to ...
8962 (info_float_command): ... this.
8963 (program_info): Rename to ...
8964 (info_program_command): ... this.
8965 (all_registers_info): Rename to ...
8966 (info_all_registers_command): ... this.
8967 (vector_info): Rename to ...
8968 (info_vector_command): ... this.
8969 (float_info): Rename to ...
8970 (info_float_command): ... this.
8971 (_initialize_infcmd): Adjust.
8972 * inferior.h (term_info): Rename to ...
8973 (info_terminal_command): ... this.
8974 * inflow.c (term_info): Rename to ...
8975 (info_terminal_command): ... this.
8976 (_initialize_inflow): Adjust.
8977 * infrun.c (signals_info): Rename to ...
8978 (info_signals_command): ... this.
8979 (_initialize_infrun): Adjust.
8980 * objc-lang.c (classes_info): Rename to ...
8981 (info_classes_command): ... this.
8982 (selectors_info): Rename to ...
8983 (info_selectors_command): ... this.
8984 (_initialize_objc_language): Adjust.
8985 * printcmd.c (sym_info): Rename to ...
8986 (info_symbol_command): ... this.
8987 (address_info): Rename to ...
8988 (info_address_command): ... this.
8989 (display_info): Rename to ...
8990 (info_display_command): ... this.
8991 (_initialize_printcmd): Adjust.
8992 * reverse.c (bookmarks_info): Rename to ...
8993 (info_breakpoints_command): ... this.
8994 (_initialize_reverse): Adjust.
8995 * ser-go32.c (dos_info): Rename to ...
8996 (info_serial_command): ... this.
8997 (_initialize_ser_dos): Adjust.
8998 * skip.c (skip_info): Rename to ...
8999 (info_skip_command): ... this.
9000 (_initialize_step_skip): Adjust.
9001 * source.c (line_info): Rename to ...
9002 (info_line_command): ... this.
9003 (source_info): Rename to ...
9004 (info_source_command)
9005 * stack.c (frame_info): Rename to ...
9006 (info_frame_command): ... this.
9007 (locals_info): Rename to ...
9008 (info_locals_command): ... this.
9009 (args_info): Rename to ...
9010 (info_args_command): ... this.
9011 (_initialize_stack): Adjust.
9012 * symtab.c (sources_info): Rename to ...
9013 (info_sources_command): ... this.
9014 (variables_info): Rename to ...
9015 (info_variables_command): ... this.
9016 (functions_info): Rename to ...
9017 (info_functions_command): ... this.
9018 (types_info): Rename to ...
9019 (info_types_command): ... this.
9020 (_initialize_symtab): Adjust.
9021 * target.c (target_info): Rename to ...
9022 (info_target_command): ... this.
9023 (initialize_targets): Adjust.
9024 * tracepoint.c (tvariables_info): Rename to ...
9025 (info_tvariables_command): ... this.
9026 (scope_info): Rename to ...
9027 (info_scope_command): ... this.
9028 (trace_dump_actions): Adjust.
9029 (_initialize_tracepoint): Adjust.
9030
9031 2017-08-22 Tom Tromey <tom@tromey.com>
9032
9033 * breakpoint.h (install_breakpoint): Update.
9034 * breakpoint.c (add_solib_catchpoint): Update.
9035 (install_breakpoint): Change argument to a std::unique_ptr.
9036 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
9037 (create_breakpoint_sal, create_breakpoint): Update.
9038 (watch_command_1, catch_exec_command_1)
9039 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
9040 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
9041 Return the breakpoint.
9042 (set_raw_breakpoint_without_location, set_raw_breakpoint)
9043 (new_single_step_breakpoint): Update.
9044 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
9045 std::unique_ptr.
9046 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9047 std::unique_ptr.
9048 * break-catch-sig.c (create_signal_catchpoint): Use
9049 std::unique_ptr.
9050 * ada-lang.c (create_ada_exception_catchpoint): Use
9051 std::unique_ptr.
9052
9053 2017-08-22 Tom Tromey <tom@tromey.com>
9054
9055 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
9056
9057 2017-08-22 Tom Tromey <tom@tromey.com>
9058
9059 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
9060 (lookup_partial_symbol): Update.
9061
9062 2017-08-22 Tom Tromey <tom@tromey.com>
9063
9064 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
9065 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
9066 (find_and_open_source, symtab_to_fullname): Update.
9067 * psymtab.c (psymtab_to_fullname): Update.
9068
9069 2017-08-22 Tom Tromey <tom@tromey.com>
9070
9071 * exec.c (exec_file_attach): Update.
9072 * linux-thread-db.c (try_thread_db_load): Update.
9073 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
9074 * utils.c (gdb_realpath): Change return type.
9075 (gdb_realpath_keepfile): Update.
9076 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
9077 (_initialize_utils): Register the new self test.
9078 * source.c (openp): Update.
9079 (find_and_open_source): Update.
9080 * nto-tdep.c (nto_find_and_open_solib): Update.
9081 * main.c (set_gdb_data_directory): Update.
9082 (captured_main_1): Update.
9083 * dwarf2read.c (dwarf2_get_dwz_file): Update
9084 (dw2_map_symbol_filenames): Update.
9085 * auto-load.c (auto_load_safe_path_vec_update): Update.
9086 (filename_is_in_auto_load_safe_path_vec): Change type of
9087 "filename_realp".
9088 (auto_load_objfile_script): Update.
9089 (file_is_auto_load_safe): Update. Use std::string.
9090 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
9091
9092 2017-08-22 Tom Tromey <tom@tromey.com>
9093
9094 * utils.c (gdb_realpath_keepfile): Return a
9095 gdb::unique_xmalloc_ptr.
9096 * exec.c (exec_file_attach): Update.
9097 * utils.h (gdb_realpath_keepfile): Return a
9098 gdb::unique_xmalloc_ptr.
9099
9100 2017-08-22 Tom Tromey <tom@tromey.com>
9101
9102 * compile/compile.c (compile_file_command): Use
9103 gdb::unique_xmalloc_ptr, std::string.
9104 * utils.c (gdb_abspath): Change return type.
9105 * source.c (openp): Update.
9106 * objfiles.c (allocate_objfile): Update.
9107 * main.c (set_gdb_data_directory): Update.
9108 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
9109
9110 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
9111
9112 * cli-cmds.c (list_commands): List actual code around more than
9113 one location.
9114
9115 2017-08-21 John Baldwin <jhb@FreeBSD.org>
9116
9117 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
9118
9119 2017-08-21 Pedro Alves <palves@redhat.com>
9120
9121 PR gdb/19487
9122 * c-exp.y (variable production): Handle function aliases.
9123 * minsyms.c (msymbol_is_text): New function.
9124 * minsyms.h (msymbol_is_text): Declare.
9125 * symtab.c (find_function_alias_target): New function.
9126 * symtab.h (find_function_alias_target): Declare.
9127
9128 2017-08-21 Pedro Alves <palves@redhat.com>
9129
9130 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9131 typedefs.
9132 * typeprint.c (whatis_exp): If handling "whatis", and expression
9133 is OP_TYPE, strip one typedef level. Otherwise don't strip
9134 typedefs here.
9135 * valops.c (value_cast): Save "to" type before resolving
9136 stubs/typedefs. Use that type as resulting value's type.
9137
9138 2017-08-18 Tom Tromey <tom@tromey.com>
9139 Pedro Alves <palves@redhat.com>
9140
9141 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9142 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9143 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9144 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9145 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9146 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9147 (linux_get_siginfo_data): Add "thread" argument. Use
9148 scoped_restore.
9149 * linux-nat.c (linux_child_follow_fork)
9150 (check_stopped_by_watchpoint): Use scoped_restore.
9151 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9152 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9153 (restore_inferior_ptid, save_inferior_ptid): Remove.
9154 * btrace.c (btrace_fetch): Use scoped_restore.
9155 * bsd-uthread.c (bsd_uthread_fetch_registers)
9156 (bsd_uthread_store_registers): Use scoped_restore.
9157 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9158 scoped_restore.
9159 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9160 (aix_thread_xfer_partial): Use scoped_restore.
9161 * inferior.h (save_inferior_ptid): Remove.
9162
9163 2017-08-18 Yao Qi <yao.qi@linaro.org>
9164
9165 PR tdep/21818
9166 * arm-tdep.c (gdb_print_insn_arm): Mark
9167 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9168
9169 2017-08-18 Yao Qi <yao.qi@linaro.org>
9170
9171 * NEWS: Mention GDBserver's new option "--selftest".
9172 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9173 * selftest.c: Move it to common/selftest.c.
9174 * selftest.h: Move it to common/selftest.h.
9175 * selftest-arch.c (reset): New function.
9176 (tests_with_arch): Call reset.
9177
9178 2017-08-18 Yao Qi <yao.qi@linaro.org>
9179
9180 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9181 instead of exception_fprintf and printf_filtered.
9182
9183 2017-08-18 Yao Qi <yao.qi@linaro.org>
9184
9185 * selftest.c (register_self_test): Rename it to
9186 selftests::register_test.
9187 (run_self_tests): selftest::run_tests.
9188 * selftest.h: Update declarations.
9189 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9190 selftests::register_test_foreach_arch.
9191 * selftest-arch.h: Update declaration.
9192 * aarch64-tdep.c: Update.
9193 * arm-tdep.c: Likewise.
9194 * disasm-selftests.c: Likewise.
9195 * dwarf2loc.c: Likewise.
9196 * dwarf2-frame.c: Likewise.
9197 * findvar.c: Likewise.
9198 * gdbarch-selftests.c: Likewise.
9199 * maint.c (maintenance_selftest): Likewise.
9200 * regcache.c: Likewise.
9201 * rust-exp.y: Likewise.
9202 * selftest-arch.c: Likewise.
9203 * unittests/environ-selftests.c: Likewise.
9204 * unittests/function-view-selftests.c: Likewise.
9205 * unittests/offset-type-selftests.c: Likewise.
9206 * unittests/optional-selftests.c: Likewise.
9207 * unittests/scoped_restore-selftests.c: Likewise.
9208 * utils-selftests.c: Likewise.
9209
9210 2017-08-17 Pedro Alves <palves@redhat.com>
9211
9212 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9213 local.
9214
9215 2017-08-17 Pedro Alves <palves@redhat.com>
9216
9217 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9218 field.
9219 (reset_die_in_process): Delete, replaced by ...
9220 (process_die_scope): ... this new class. Make it responsible for
9221 freeing cu->line_header too.
9222 (process_die): Use process_die_scope.
9223 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9224 cu->line_header_die_owner. Don't release the line header if it's
9225 owned by the CU.
9226 (setup_type_unit_groups): Make the CU/DIE own the line header.
9227 Don't release the line header here.
9228
9229 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9230
9231 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9232
9233 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9234
9235 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9236 Single-Key mode
9237
9238 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9239
9240 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9241 mode command list.
9242
9243 2017-08-15 Stafford Horne <shorne@gmail.com>
9244
9245 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9246
9247 2017-08-15 Stafford Horne <shorne@gmail.com>
9248
9249 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9250
9251 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9252
9253 PR gdb/21954
9254 * infcmd.c (unset_environment_command): Use the 'clear' method on
9255 the environment instead of resetting it.
9256
9257 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9258
9259 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9260 platforms.
9261
9262 2017-08-14 Tom Tromey <tom@tromey.com>
9263
9264 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9265 (print_binary_chars): Likewise.
9266 (BITS_IN_BYTES): Remove.
9267
9268 2017-08-14 Tom Tromey <tom@tromey.com>
9269
9270 PR gdb/21675
9271 * valprint.c (LOW_ZERO): Change value to 034.
9272 (print_octal_chars): Add static_asserts for octal constants.
9273 * printcmd.c (print_scalar_formatted): Add 'd' case.
9274
9275 2017-08-11 Tom Tromey <tom@tromey.com>
9276
9277 * symfile.c (add_symbol_file_command): Use std::vector.
9278
9279 2017-08-14 Tom Tromey <tom@tromey.com>
9280
9281 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9282 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9283 std::move.
9284 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9285
9286 2017-08-11 Pedro Alves <palves@redhat.com>
9287
9288 * infrun.c (process_event_stop_test): Adjust
9289 function_name_is_marked_for_skip call.
9290 * skip.c: Include <list>.
9291 (skiplist_entry): Make it a class with private fields, and
9292 getters/setters.
9293 (skiplist_entry_chain): Delete.
9294 (skiplist_entries): New.
9295 (skiplist_entry_count): Delete.
9296 (highest_skiplist_entry_num): New.
9297 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9298 (add_skiplist_entry): Delete.
9299 (skiplist_entry::skiplist_entry): New.
9300 (skiplist_entry::add_entry): New.
9301 (skip_file_command, skip_function): Adjust.
9302 (compile_skip_regexp): Delete.
9303 (skip_command): Don't compile regexp here. Adjust to use
9304 skiplist_entry::add_entry.
9305 (skip_info): Adjust to use range-for and getters.
9306 (skip_enable_command, skip_disable_command): Adjust to use
9307 range-for and setters.
9308 (skip_delete_command): Adjust to use std::list.
9309 (add_skiplist_entry): Delete.
9310 (skip_file_p): Delete, refactored as ...
9311 (skiplist_entry::do_skip_file_p): ... this new method.
9312 (skip_gfile_p): Delete, refactored as ...
9313 (skiplist_entry::do_gskip_file_p): ... this new method.
9314 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9315 (skiplist_entry::skip_function_p): ... this new method.
9316 (function_name_is_marked_for_skip): Now returns bool, and takes
9317 the function sal by const reference. Adjust to use range-for and
9318 skiplist_entry methods.
9319 (_initialize_step_skip): Remove references to
9320 skiplist_entry_chain, skiplist_entry_count.
9321 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9322 takes the function sal by const reference.
9323
9324 2017-08-11 Yao Qi <yao.qi@linaro.org>
9325
9326 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9327 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9328 (dwarf2_frame_cache):
9329 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9330 RETURN_MASK_ALL and set *this_case to NULL.
9331 * frame-unwind.h: Update comments.
9332
9333 2017-08-11 Yao Qi <yao.qi@linaro.org>
9334
9335 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9336 (dwarf2_frame_state_copy_regs): Remove.
9337 (dwarf2_frame_state_free_regs): Remove.
9338 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9339 (dwarf2_restore_rule): Call method .alloc_regs instead of
9340 dwarf2_frame_state_alloc_regs.
9341 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9342 constructor. Call std::move.
9343 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9344 (dwarf2_frame_cache): Likewise.
9345
9346 [GDB_SELF_TEST]: Include selftest.h and
9347 selftest-arch.h.
9348 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9349 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9350 execute_cfa_program_test.
9351
9352 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9353 copy ctor, assignment operator, move assignment.
9354 <alloc_regs>: New method.
9355 <swap>: New method.
9356 (struct dwarf2_frame_state): Delete dtor.
9357 (dwarf2_frame_state_alloc_regs): Remove declaration.
9358 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9359 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9360
9361 2017-08-11 Yao Qi <yao.qi@linaro.org>
9362
9363 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9364 (dwarf2_frame_state::dwarf2_frame_state): New.
9365 (dwarf2_frame_state::~dwarf2_frame_state): New.
9366 (dwarf2_fetch_cfa_info): Update.
9367 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9368 rather than a pointer. Update code.
9369 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9370 dtor.
9371 <data_align, code_align, retaddr_column>: Change them to const.
9372 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9373 to bool.
9374
9375 2017-08-11 Yao Qi <yao.qi@linaro.org>
9376
9377 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9378 <loc.exp>: New field.
9379 * dwarf2-frame.c (execute_cfa_program): Update.
9380 (dwarf2_frame_prev_register): Update.
9381
9382 2017-08-10 Pedro Alves <palves@redhat.com>
9383
9384 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9385
9386 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9387
9388 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9389 (fbsd_pending_children): Use std::list.
9390 (fbsd_remember_child): Likewise.
9391 (fbsd_is_child_pending): Likewise.
9392 (fbsd_pending_vfork_done): Use std::forward_list.
9393 (fbsd_add_vfork_done): Likewise.
9394 (fbsd_is_vfork_done_pending): Likewise.
9395 (fbsd_next_vfork_done): Likewise.
9396
9397 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9398
9399 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9400 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9401 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9402 for `mapfilename'.
9403 (fbsd_xfer_partial): Use gdb::byte_vector.
9404 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9405
9406 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9407
9408 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9409 "filestuff.h".
9410 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9411
9412 2017-08-09 Tom Tromey <tom@tromey.com>
9413
9414 * skip.c (skiplist_entry): New constructor.
9415 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9416 (skiplist_entry::file_is_glob): Now bool.
9417 (skiplist_entry::file, skiplist_entry::function): Now
9418 std::string.
9419 (make_skip_entry): Return a unique_ptr. Use new.
9420 (free_skiplist_entry, free_skiplist_entry_cleanup)
9421 (make_free_skiplist_entry_cleanup): Remove.
9422 (skip_command, skip_disable_command, add_skiplist_entry)
9423 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9424 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9425 (function_name_is_marked_for_skip): Update.
9426 (skip_delete_command): Update. Use delete.
9427
9428 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9429
9430 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9431 (aarch64_linux_core_read_description): New function.
9432 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9433
9434 2017-08-09 Pedro Alves <palves@redhat.com>
9435
9436 * cp-name-parser.y (cp_comp_to_string): Return a
9437 gdb::unique_xmalloc_ptr<char>.
9438 * cp-support.c (replace_typedefs_qualified_name)
9439 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9440 (cp_canonicalize_string_full): Use op= instead of explicit
9441 convertion.
9442 (cp_class_name_from_physname, method_name_from_physname)
9443 (cp_func_name, cp_remove_params): Adjust to use
9444 gdb::unique_xmalloc_ptr<char>.
9445 * cp-support.h (cp_comp_to_string): Return a
9446 gdb::unique_xmalloc_ptr<char>.
9447 * python/py-type.c (typy_lookup_type): Adjust to use
9448 gdb::unique_xmalloc_ptr<char>.
9449
9450 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9451
9452 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9453
9454 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9455 Yao Qi <yao.qi@linaro.org>
9456
9457 * cp-support.c (cp_canonicalize_string_full): Use
9458 gdb::unique_xmalloc_ptr<char>.
9459 (cp_canonicalize_string): Likewise.
9460
9461 2017-08-09 Yao Qi <yao.qi@linaro.org>
9462
9463 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9464 * regformats/i386/amd64-avx-avx512.dat: Remove.
9465 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9466 * regformats/i386/amd64-avx-mpx.dat:Remove.
9467 * regformats/i386/amd64-avx.dat: Remove.
9468 * regformats/i386/amd64-mpx.dat: Remove.
9469 * regformats/i386/i386-avx-avx512.dat: Remove.
9470 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9471 * regformats/i386/i386-avx-mpx.dat: Remove.
9472 * regformats/i386/i386-mmx.dat: Remove.
9473 * regformats/i386/i386-mpx.dat: Remove.
9474
9475 2017-08-09 Yao Qi <yao.qi@linaro.org>
9476
9477 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9478 * amd64-tdep.c: Don't include features/i386/x32*.c.
9479 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9480 functions.
9481 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9482 and i386/x32-avx-avx512.
9483 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9484 and i386/x32.xml.
9485 * features/i386/x32-avx-avx512.c: Removed.
9486 * features/i386/x32-avx-avx512.xml: Removed.
9487 * features/i386/x32-avx.c: Removed.
9488 * features/i386/x32-avx.xml: Removed.
9489 * features/i386/x32.c: Removed.
9490 * features/i386/x32.xml: Removed.
9491 * regformats/i386/x32-avx-avx512.dat: Removed.
9492 * regformats/i386/x32-avx.dat: Removed.
9493 * regformats/i386/x32.dat: Removed.
9494
9495 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9496
9497 PR breakpoints/21886
9498 * mem-break.c (default_memory_insert_breakpoint): Use
9499 `->placed_address' rather than `->reqstd_address' for the
9500 breakpoint location.
9501
9502 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9503
9504 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9505 assertions.
9506
9507 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9508
9509 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9510 a union of `tdep_info', `tdesc_data' and `id'.
9511 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9512 rather than `info.tdep_info'.
9513 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9514 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9515 * i386-tdep.c (i386_gdbarch_init): Likewise.
9516 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9517 * mips-tdep.c (mips_gdbarch_init): Likewise.
9518 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9519 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9520 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9521 `info.tdep_info'.
9522 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9523 `info.tdep_info'.
9524 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9525 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9526 `info.tdep_info'.
9527 * spu-tdep.c (spu_gdbarch_init): Likewise.
9528 * gdbarch.h: Regenerate.
9529
9530 2017-08-07 Leszek Swirski <leszeks@google.com>
9531
9532 PR symtab/20899
9533 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9534
9535 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9536
9537 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9538 (gdbsim_open): Rename gdb_argv args object to argv.
9539
9540 2017-08-05 Tom Tromey <tom@tromey.com>
9541
9542 * compile/compile-object-load.c (compile_object_load): Use
9543 gdb::unique_xmalloc_ptr.
9544 * cli/cli-dump.c (scan_filename): Rename from
9545 scan_filename_with_cleanup. Change return type.
9546 (scan_expression): Rename from scan_expression_with_cleanup.
9547 Change return type.
9548 (dump_memory_to_file, dump_value_to_file, restore_command):
9549 Use gdb::unique_xmalloc_ptr. Update.
9550 * cli/cli-cmds.c (find_and_open_script): Use
9551 gdb::unique_xmalloc_ptr.
9552 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9553 * symmisc.c (maintenance_print_symbols)
9554 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9555 * symfile.c (symfile_bfd_open, generic_load)
9556 (add_symbol_file_command, remove_symbol_file_command): Use
9557 gdb::unique_xmalloc_ptr.
9558 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9559 * psymtab.c (maintenance_print_psymbols): Use
9560 gdb::unique_xmalloc_ptr.
9561 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9562 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9563 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9564 (reload_shared_libraries_1): Likewise.
9565
9566 2017-08-05 Tom Tromey <tom@tromey.com>
9567
9568 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9569 (rust_op_vector, rust_set_vector): New typedefs.
9570 (current_parser): New global.
9571 (work_obstack): Change to pointer type. Update all users.
9572 (rust_ast, pstate): Remove globals.
9573 (struct rust_parser): New.
9574 (%union) <params, field_inits>: Change type.
9575 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9576 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9577 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9578 (convert_params_to_types, convert_params_to_expression): Change
9579 type of "params".
9580 (ast_string): Change type of "fields".
9581 (rust_parse): Make a rust_parser. Remove cleanups.
9582 (rust_lex_tests): Make and install an auto_obstack.
9583
9584 2017-08-04 Yao Qi <yao.qi@linaro.org>
9585
9586 * configure.srv (ipa_x32_linux_regobj): New.
9587 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9588 instead of X86_TDESC_AVX512.
9589 (initialize_low_tracepoint): Call
9590 init_registers_x32_avx_avx512_linux.
9591
9592 2017-08-04 Yao Qi <yao.qi@linaro.org>
9593
9594 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9595
9596 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9597
9598 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9599
9600 2017-08-03 Tom Tromey <tom@tromey.com>
9601
9602 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9603 Remove.
9604 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9605
9606 2017-08-03 Tom Tromey <tom@tromey.com>
9607
9608 * python/py-param.c (compute_enum_values): Use gdb_argv.
9609
9610 2017-08-03 Tom Tromey <tom@tromey.com>
9611
9612 * utils.h (struct gdb_argv_deleter): New.
9613 (gdb_argv): New class.
9614 * utils.c (gdb_argv::reset): New method.
9615 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9616 * tracefile.c (tsave_command): Use gdb_argv.
9617 * top.c (new_ui_command): Use gdb_argv.
9618 * symmisc.c (maintenance_print_symbols)
9619 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9620 * symfile.c (symbol_file_command, generic_load)
9621 (remove_symbol_file_command): Use gdb_argv.
9622 * stack.c (backtrace_command): Use gdb_argv.
9623 * source.c (add_path, show_substitute_path_command)
9624 (unset_substitute_path_command, set_substitute_path_command):
9625 Use gdb_argv.
9626 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9627 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9628 * remote.c (extended_remote_run, remote_put_command)
9629 (remote_get_command, remote_delete_command): Use gdb_argv.
9630 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9631 (gdbsim_open): Use gdb_argv.
9632 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9633 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9634 * procfs.c (procfs_info_proc): Use gdb_argv.
9635 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9636 * infrun.c (handle_command): Use gdb_argv.
9637 * inferior.c (add_inferior_command, clone_inferior_command):
9638 Use gdb_argv.
9639 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9640 * exec.c (exec_file_command): Use gdb_argv.
9641 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9642 * compile/compile.c (build_argc_argv): Use gdb_argv.
9643
9644 2017-08-03 Tom Tromey <tom@tromey.com>
9645
9646 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9647
9648 2017-08-03 Tom Tromey <tom@tromey.com>
9649
9650 * python/python.c (compute_python_string): Return std::string.
9651 (gdbpy_eval_from_control_command): Update.
9652 (do_start_initialization): Use std::string.
9653 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9654 xstrprintf.
9655 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9656 xstrprintf.
9657
9658 2017-08-03 Tom Tromey <tom@tromey.com>
9659
9660 * top.h (do_restore_instream_cleanup): Remove.
9661 * top.c (do_restore_instream_cleanup): Remove.
9662 (read_command_file): Use scoped_restore.
9663 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9664
9665 2017-08-03 Tom Tromey <tom@tromey.com>
9666
9667 * cli/cli-script.c (execute_user_command)
9668 (execute_control_command): Use scoped_restore.
9669
9670 2017-08-03 Tom Tromey <tom@tromey.com>
9671
9672 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9673 (execute_user_command): Remove user_call_depth; use
9674 user_args_stack's size instead.
9675
9676 2017-08-03 Tom Tromey <tom@tromey.com>
9677
9678 * top.h (in_user_command): Remove.
9679 * top.c (in_user_command): Remove.
9680 * cli/cli-script.c (do_restore_user_call_depth)
9681 (execute_user_command): Update.
9682
9683 2017-08-03 Tom Tromey <tom@tromey.com>
9684
9685 * valops.c (search_struct_method): Use gdb::byte_vector.
9686 * valarith.c (value_concat): Use std::vector.
9687 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9688 (simple_search_memory): Likewise.
9689 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9690 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9691 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9692 * elfread.c (elf_rel_plt_read): Use std::string.
9693 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9694 * cli/cli-dump.c (restore_section_callback): Use
9695 gdb::byte_vector.
9696
9697 2017-08-03 Tom Tromey <tom@tromey.com>
9698
9699 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9700
9701 2017-08-03 Tom Tromey <tom@tromey.com>
9702
9703 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9704 (tui_register_format): Use scoped_restore.
9705
9706 2017-08-03 Tom Tromey <tom@tromey.com>
9707
9708 * reverse.c (exec_direction_default): Remove.
9709 (exec_reverse_once): Use scoped_restore.
9710 * remote.c (restore_remote_timeout): Remove.
9711 (remote_flash_erase, remote_flash_write, remote_flash_done)
9712 (readchar, remote_serial_write): Use scoped_restore.
9713 * cli/cli-script.c (struct source_cleanup_lines_args)
9714 (source_cleanup_lines): Remove.
9715 (script_from_file): Use scoped_restore.
9716 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9717 (source_command): Use scoped_restore.
9718
9719 2017-08-03 Tom Tromey <tom@tromey.com>
9720
9721 * utils.h (make_cleanup_free_so): Remove.
9722 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9723 * solist.h (struct so_deleter): New.
9724 (so_list_up): New typedef.
9725 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9726
9727 2017-08-03 Tom Tromey <tom@tromey.com>
9728
9729 * utils.h (make_cleanup_restore_current_language): Remove.
9730 * utils.c (do_restore_current_language)
9731 (make_cleanup_restore_current_language): Remove.
9732 * parse.c (parse_exp_in_context_1)
9733 (parse_expression_with_language): Use
9734 scoped_restore_current_language.
9735 * mi/mi-main.c (mi_cmd_execute): Use
9736 scoped_restore_current_language.
9737 * language.h (scoped_restore_current_language): New class.
9738
9739 2017-08-03 Tom Tromey <tom@tromey.com>
9740
9741 * compile/compile.c (cleanup_unlink_file): Remove.
9742 (compile_to_object): Use gdb::unlinker.
9743 (eval_compile_command): Likewise.
9744
9745 2017-08-03 Tom Tromey <tom@tromey.com>
9746
9747 * utils.h (make_cleanup_fclose): Remove.
9748 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9749
9750 2017-08-03 Tom Tromey <tom@tromey.com>
9751
9752 * top.c (open_terminal_stream): Return gdb_file_up.
9753 (new_ui_command): Update.
9754
9755 2017-08-03 Tom Tromey <tom@tromey.com>
9756
9757 * source.c (print_source_lines_base, forward_search_command)
9758 (reverse_search_command): Use gdb_file_up.
9759
9760 2017-08-03 Tom Tromey <tom@tromey.com>
9761
9762 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9763
9764 2017-08-03 Tom Tromey <tom@tromey.com>
9765
9766 * cli/cli-cmds.c (find_and_open_script): Change return type.
9767 Remove "streamp" and "full_path" parameters.
9768 (source_script_with_search): Update.
9769 * auto-load.c (source_script_file): Update.
9770 * cli/cli-cmds.h (find_and_open_script): Change type.
9771 (open_script): New struct.
9772
9773 2017-08-03 Tom Tromey <tom@tromey.com>
9774
9775 * xml-support.c (xml_fetch_content_from_file): Update.
9776 * ui-file.c (stdio_file::open): Update.
9777 * tracefile-tfile.c (tfile_start): Update.
9778 * remote.c (remote_file_put, remote_file_get): Update.
9779 * nat/linux-procfs.c (linux_proc_get_int)
9780 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9781 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9782 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9783 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9784 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9785 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9786 * linux-nat.c (linux_proc_pending_signals): Update.
9787 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9788 (file_closer): Remove.
9789 * compile/compile.c (compile_to_object): Update.
9790 * common/filestuff.h (struct gdb_file_deleter): New.
9791 (gdb_file_up): New typedef.
9792 (gdb_fopen_cloexec): Change return type.
9793 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9794 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9795 (dump_binary_file, restore_binary_file): Update.
9796 * auto-load.c (auto_load_objfile_script_1): Update.
9797
9798 2017-08-03 Tom Tromey <tom@tromey.com>
9799
9800 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9801 (info_static_tracepoint_markers_command): Likewise.
9802 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9803 * skip.c (skip_info): Use ui_out_emit_table.
9804 * progspace.c (print_program_space): Use ui_out_emit_table.
9805 * osdata.c (info_osdata): Use ui_out_emit_table.
9806 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9807 ui_out_emit_table.
9808 * linux-thread-db.c (info_auto_load_libthread_db): Use
9809 ui_out_emit_table.
9810 * inferior.c (print_inferior): Use ui_out_emit_table.
9811 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9812 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9813 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9814 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9815 * ui-out.h (class ui_out_emit_table): New.
9816
9817 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9818
9819 * mips-tdep.c (mips_fpu_type_str): New function.
9820 (mips_dump_tdep): Call it.
9821
9822 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9823
9824 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9825 `->mips_fpu_type'.
9826
9827 2017-07-31 Xavier Roirand <roirand@adacore.com>
9828
9829 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9830
9831 2017-07-27 Xavier Roirand <roirand@adacore.com>
9832
9833 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9834
9835 2017-07-26 Yao Qi <yao.qi@linaro.org>
9836
9837 * cli/cli-cmds.c (maintenancechecklist): New variable.
9838 * gdbcmd.h (maintenancechecklist): Declare it.
9839 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9840 Call i386_linux_read_description with different masks.
9841 * maint.c (maintenance_check_command): New function.
9842 (_initialize_maint_cmds): Call add_prefix_cmd.
9843 * target-descriptions.c (tdesc_reg): override operator != and ==.
9844 (tdesc_type): Likewise.
9845 (tdesc_feature): Likewise.
9846 (target_desc): Likewise.
9847 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9848 (maintenance_check_xml_descriptions): New function.
9849 (_initialize_target_descriptions) Add command "xml-descriptions".
9850 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9851
9852 2017-07-26 Yao Qi <yao.qi@linaro.org>
9853
9854 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9855 Include features/i386/32bit-*.c.
9856 (i386_linux_read_description): Generate target description if it
9857 doesn't exist.
9858 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9859 functions.
9860 * features/i386/32bit-linux.c: Re-generated.
9861 * features/i386/32bit-sse.c: Likewise.
9862 * target-descriptions.c (print_c_feature::visit): Print code to
9863 set register number if needed.
9864 (print_c_feature) <m_next_regnum>: New field.
9865
9866 2017-07-26 Yao Qi <yao.qi@linaro.org>
9867
9868 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9869 (FEATURE_XMLFILES): New.
9870 (FEATURE_CFILES): New.
9871 New rules.
9872 (clean-cfiles): Remove generated c files.
9873 * features/i386/32bit-avx.c: Generated.
9874 * features/i386/32bit-avx512.c: Generated.
9875 * features/i386/32bit-core.c: Generated.
9876 * features/i386/32bit-linux.c: Generated.
9877 * features/i386/32bit-mpx.c: Generated.
9878 * features/i386/32bit-pkeys.c: Generated.
9879 * features/i386/32bit-sse.c: Generated.
9880 * target-descriptions.c: Include algorithm.
9881 (tdesc_element_visitor): Add method visit_end.
9882 (print_c_tdesc): Implement visit_end.
9883 (print_c_tdesc:: m_filename_after_features): Move it to
9884 protected.
9885 (print_c_feature): New class.
9886 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9887 name starts with "i386/32bit-".
9888
9889 2017-07-26 Yao Qi <yao.qi@linaro.org>
9890
9891 * target-descriptions.c (tdesc_element_visitor): New class.
9892 (tdesc_element): New class.
9893 (tdesc_reg): Inherit from tdesc_element.
9894 (tdesc_reg::accept): New function.
9895 (tdesc_type): Inherit from tdesc_element.
9896 (tdesc_type::accept): New function.
9897 (tdesc_feature): Inherit from tdesc_element.
9898 (tdesc_feature::accept): New function.
9899 (target_desc): Inherit from tdesc_element.
9900 (target_desc::target_desc): New.
9901 (target_desc::~target_desc): New.
9902 (target_desc::accept): New.
9903 (allocate_target_description): Use new.
9904 (free_target_description): Use delete.
9905 (print_c_tdesc): New class.
9906 (maint_print_c_tdesc_cmd): Adjust.
9907
9908 * features/aarch64.c: Re-generated.
9909 * features/arc-arcompact.c: Re-generated.
9910 * features/arc-v2.c: Re-generated.
9911 * features/arm/arm-with-iwmmxt.c: Re-generated.
9912 * features/arm/arm-with-m.c: Re-generated.
9913 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9914 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9915 * features/arm/arm-with-neon.c: Re-generated.
9916 * features/arm/arm-with-vfpv2.c: Re-generated.
9917 * features/arm/arm-with-vfpv3.c: Re-generated.
9918 * features/i386/amd64-avx-avx512.c: Re-generated.
9919 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9920 * features/i386/amd64-avx.c: Re-generated.
9921 * features/i386/amd64-avx-linux.c: Re-generated.
9922 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9923 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9924 * features/i386/amd64-avx-mpx.c: Re-generated.
9925 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9926 * features/i386/amd64.c: Re-generated.
9927 * features/i386/amd64-linux.c: Re-generated.
9928 * features/i386/amd64-mpx.c: Re-generated.
9929 * features/i386/amd64-mpx-linux.c: Re-generated.
9930 * features/i386/i386-avx-avx512.c: Re-generated.
9931 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9932 * features/i386/i386-avx.c: Re-generated.
9933 * features/i386/i386-avx-linux.c: Re-generated.
9934 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9935 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9936 * features/i386/i386-avx-mpx.c: Re-generated.
9937 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9938 * features/i386/i386.c: Re-generated.
9939 * features/i386/i386-linux.c: Re-generated.
9940 * features/i386/i386-mmx.c: Re-generated.
9941 * features/i386/i386-mmx-linux.c: Re-generated.
9942 * features/i386/i386-mpx.c: Re-generated.
9943 * features/i386/i386-mpx-linux.c: Re-generated.
9944 * features/i386/x32-avx-avx512.c: Re-generated.
9945 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9946 * features/i386/x32-avx.c: Re-generated.
9947 * features/i386/x32-avx-linux.c: Re-generated.
9948 * features/i386/x32.c: Re-generated.
9949 * features/i386/x32-linux.c: Re-generated.
9950 * features/microblaze.c: Re-generated.
9951 * features/microblaze-with-stack-protect.c: Re-generated.
9952 * features/mips64-dsp-linux.c: Re-generated.
9953 * features/mips64-linux.c: Re-generated.
9954 * features/mips-dsp-linux.c: Re-generated.
9955 * features/mips-linux.c: Re-generated.
9956 * features/nds32.c: Re-generated.
9957 * features/nios2.c: Re-generated.
9958 * features/nios2-linux.c: Re-generated.
9959 * features/rs6000/powerpc-32.c: Re-generated.
9960 * features/rs6000/powerpc-32l.c: Re-generated.
9961 * features/rs6000/powerpc-403.c: Re-generated.
9962 * features/rs6000/powerpc-403gc.c : Re-generated.
9963 * features/rs6000/powerpc-405.c: Re-generated.
9964 * features/rs6000/powerpc-505.c: Re-generated.
9965 * features/rs6000/powerpc-601.c: Re-generated.
9966 * features/rs6000/powerpc-602.c: Re-generated.
9967 * features/rs6000/powerpc-603.c: Re-generated.
9968 * features/rs6000/powerpc-604.c: Re-generated.
9969 * features/rs6000/powerpc-64.c: Re-generated.
9970 * features/rs6000/powerpc-64l.c: Re-generated.
9971 * features/rs6000/powerpc-7400.c: Re-generated.
9972 * features/rs6000/powerpc-750.c: Re-generated.
9973 * features/rs6000/powerpc-860.c: Re-generated.
9974 * features/rs6000/powerpc-altivec32.c: Re-generated.
9975 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9976 * features/rs6000/powerpc-altivec64.c: Re-generated.
9977 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9978 * features/rs6000/powerpc-cell32l.c: Re-generated.
9979 * features/rs6000/powerpc-cell64l.c: Re-generated.
9980 * features/rs6000/powerpc-e500.c: Re-generated.
9981 * features/rs6000/powerpc-e500l.c: Re-generated.
9982 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9983 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9984 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9985 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9986 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9987 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9988 * features/rs6000/powerpc-vsx32.c: Re-generated.
9989 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9990 * features/rs6000/powerpc-vsx64.c: Re-generated.
9991 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9992 * features/rs6000/rs6000.c: Re-generated.
9993 * features/s390-linux32.c: Re-generated.
9994 * features/s390-linux32v1.c: Re-generated.
9995 * features/s390-linux32v2.c: Re-generated.
9996 * features/s390-linux64.c: Re-generated.
9997 * features/s390-linux64v1.c: Re-generated.
9998 * features/s390-linux64v2.c: Re-generated.
9999 * features/s390-te-linux64.c: Re-generated.
10000 * features/s390-tevx-linux64.c: Re-generated.
10001 * features/s390-vx-linux64.c: Re-generated.
10002 * features/s390x-linux64.c: Re-generated.
10003 * features/s390x-linux64v1.c: Re-generated.
10004 * features/s390x-linux64v2.c: Re-generated.
10005 * features/s390x-te-linux64.c: Re-generated.
10006 * features/s390x-tevx-linux64.c: Re-generated.
10007 * features/s390x-vx-linux64.c: Re-generated.
10008 * features/sparc/sparc32-solaris.c: Re-generated.
10009 * features/sparc/sparc64-solaris.c: Re-generated.
10010 * features/tic6x-c62x.c: Re-generated.
10011 * features/tic6x-c62x-linux.c: Re-generated.
10012 * features/tic6x-c64x.c: Re-generated.
10013 * features/tic6x-c64x-linux.c: Re-generated.
10014 * features/tic6x-c64xp.c: Re-generated.
10015 * features/tic6x-c64xp-linux.c: Re-generated.
10016
10017 2017-07-26 Yao Qi <yao.qi@linaro.org>
10018
10019 * i386-linux-tdep.c (i386_linux_read_description): New function.
10020 (i386_linux_core_read_description): Call
10021 i386_linux_read_description.
10022 * i386-linux-tdep.h (i386_linux_read_description): Declare.
10023 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
10024 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
10025 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
10026 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
10027 * x86-linux-nat.c (x86_linux_read_description): Call
10028 i386_linux_read_description.
10029
10030 2017-07-26 Yao Qi <yao.qi@linaro.org>
10031
10032 * NEWS: Mention it.
10033 * features/Makefile (%.c: %.xml): Pass the xml file name to
10034 command "maint print c-tdesc".
10035 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
10036 name from 'arg'.
10037
10038 2017-07-26 Yao Qi <yao.qi@linaro.org>
10039
10040 * target-descriptions.c (target_desc): Add ctor and dtor. Do
10041 in-class initialization.
10042 (tdesc_create_feature): Call new instead of XCNEW.
10043 (free_target_description): Ue delete.
10044
10045 2017-07-25 John Baldwin <jhb@FreeBSD.org>
10046
10047 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
10048
10049 2017-07-25 Yao Qi <yao.qi@linaro.org>
10050
10051 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
10052 constant.
10053 (amd64_x32_init_abi): Likewise.
10054 * amd64-tdep.h (amd64_init_abi): Update declaration.
10055 (amd64_x32_init_abi): Likewise.
10056
10057 2017-07-25 Yao Qi <yao.qi@linaro.org>
10058
10059 PR tdep/21717
10060 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
10061 condition for FPSCR.
10062 (arm_linux_store_inferior_registers): Likewise.
10063
10064 2017-07-22 Tom Tromey <tom@tromey.com>
10065
10066 * break-catch-syscall.c (struct catch_syscall_inferior_data)
10067 <syscalls_counts>: Now a std::vector.
10068 (get_catch_syscall_inferior_data): Use "new".
10069 (catch_syscall_inferior_data_cleanup): Use "delete".
10070 (insert_catch_syscall, remove_catch_syscall)
10071 (clear_syscall_counts): Update.
10072
10073 2017-07-22 Tom Tromey <tom@tromey.com>
10074
10075 * break-catch-syscall.c (syscall_catchpoint)
10076 <syscalls_to_be_caught>: Now a std::vector<int>
10077 (~syscall_catchpoint): Remove.
10078 (insert_catch_syscall, remove_catch_syscall)
10079 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
10080 (print_mention_catch_syscall, print_recreate_catch_syscall):
10081 Update.
10082 (create_syscall_event_catchpoint): Change type of "filter"
10083 parameter.
10084 (catch_syscall_split_args): Return a std::vector.
10085 (catch_syscall_command_1, catching_syscall_number_1): Update.
10086
10087 2017-07-22 Tom Tromey <tom@tromey.com>
10088
10089 * break-catch-throw.c (struct exception_catchpoint)
10090 <exception_rx>: Now a std::string.
10091 (~exception_catchpoint): Remove.
10092 (print_one_detail_exception_catchpoint): Update.
10093 (handle_gnu_v3_exceptions): Change type of except_rx.
10094 (extract_exception_regexp): Return a std::string.
10095 (catch_exception_command_1): Update.
10096
10097 2017-07-22 Tom Tromey <tom@tromey.com>
10098
10099 * break-catch-sig.c (gdb_signal_type): Remove typedef.
10100 (struct signal_catchpoint) <signals_to_be_caught>: Now a
10101 std::vector.
10102 <catch_all>: Now a bool.
10103 (~signal_catchpoint): Remove.
10104 (signal_catchpoint_insert_location)
10105 (signal_catchpoint_remove_location)
10106 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
10107 (signal_catchpoint_print_mention)
10108 (signal_catchpoint_print_recreate)
10109 (signal_catchpoint_explains_signal): Update.
10110 (create_signal_catchpoint): Change type of "filter" and
10111 "catch_all".
10112 (catch_signal_split_args): Return a std::vector. Change type of
10113 "catch_all".
10114 (catch_signal_command): Update.
10115
10116 2017-07-20 Pedro Alves <palves@redhat.com>
10117
10118 * ada-lang.c (ada_language_defn): Make extern.
10119 (_initialize_ada_language): Remove add_language call.
10120 * c-lang.c (c_language_defn, cplus_language_defn)
10121 (asm_language_defn, minimal_language_defn): Make extern.
10122 (_initialize_c_language): Delete.
10123 * completer.c (compare_cstrings): Delete, moved to utils.h.
10124 * d-lang.c (d_language_defn): Make extern.
10125 (_initialize_d_language): Remove add_language calls.
10126 * defs.h (enum language): Add comment.
10127 * f-lang.c (f_language_defn): Make extern.
10128 (_initialize_f_language): Remove add_language call.
10129 * go-lang.c (go_language_defn): Make extern.
10130 (_initialize_go_language): Remove add_language call.
10131 * language.c: Include <algorithm>.
10132 (languages): Redefine as const array.
10133 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10134 (set_language_command): Handle "local". Use for-range loop.
10135 (set_language): Remove loop.
10136 (language_enum): Rewrite.
10137 (language_def, language_str): Remove loops.
10138 (add_language): Delete.
10139 (add_set_language_command): New, based on add_languages.
10140 (skip_language_trampoline): Adjust.
10141 (local_language_defn): Delete.
10142 (language_gdbarch_post_init): Adjust.
10143 (_initialize_language): Remove add_language calls. Call
10144 add_set_language_command.
10145 * language.h (add_language): Delete.
10146 (auto_language_defn)
10147 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10148 (asm_language_defn, c_language_defn, cplus_language_defn)
10149 (d_language_defn, f_language_defn, go_language_defn)
10150 (m2_language_defn, objc_language_defn, opencl_language_defn)
10151 (pascal_language_defn, rust_language_defn): Declare.
10152 * m2-lang.c (m2_language_defn): Make extern.
10153 (_initialize_m2_language): Remove add_language call.
10154 * objc-lang.c (objc_language_defn): Make extern.
10155 (_initialize_objc_language): Remove add_language call.
10156 * opencl-lang.c (opencl_language_defn): Make extern.
10157 (_initialize_opencl_language): Remove add_language call.
10158 * p-lang.c (pascal_language_defn): Make extern.
10159 (_initialize_pascal_language): Delete.
10160 * rust-lang.c (rust_language_defn): Make extern.
10161 (_initialize_rust_language): Delete.
10162 * utils.h (compare_cstrings): New static inline function.
10163
10164 2017-07-20 Pedro Alves <palves@redhat.com>
10165
10166 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10167 (get_var_value): Constify parameters.
10168 (get_int_var_value): Change prototype.
10169 (to_fixed_range_type): Adjust.
10170 * ada-lang.h (get_int_var_value): Change prototype.
10171
10172 2017-07-20 Pedro Alves <palves@redhat.com>
10173
10174 * dwarf2read.c (dw2_lookup_symbol): Use
10175 SYMBOL_MATCHES_SEARCH_NAME.
10176 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10177
10178 2017-07-20 Pedro Alves <palves@redhat.com>
10179
10180 * block.c (block_iter_name_step, block_iter_name_first)
10181 (block_iter_name_next): Delete.
10182 (block_lookup_symbol_primary): Adjust to use
10183 dict_iter_match_first/dict_iter_match_next.
10184 * block.h (block_iter_name_first, block_iter_name_next): Delete
10185 declarations.
10186 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10187 dict_iter_match_first/dict_iter_match_next.
10188
10189 2017-07-20 Pedro Alves <palves@redhat.com>
10190
10191 * cp-support.c (cp_find_first_component_aux): Add missing case for
10192 end of string.
10193
10194 2017-07-18 David Blaikie <dblaikie@gmail.com>
10195
10196 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10197 of dwo_cu's dwo_file.
10198
10199 2017-07-18 Yao Qi <yao.qi@linaro.org>
10200
10201 * remote.c (store_registers_using_G): Remove one line comment.
10202
10203 2017-07-18 Yao Qi <yao.qi@linaro.org>
10204
10205 * regcache.c (regcache_cpy): Simplify it.
10206 (regcache::cpy_no_passthrough): Remove it.
10207 * regcache.h (cpy_no_passthrough): Remove it.
10208 (regcache_dup, regcache_cpy): Update comments.
10209
10210 2017-07-18 Pedro Alves <palves@redhat.com>
10211
10212 * remote-sim.c (sim_command_completer): Adjust to work with a
10213 completion_tracker instead of a VEC.
10214
10215 2017-07-17 Pedro Alves <palves@redhat.com>
10216
10217 * completer.c (complete_source_filenames): New function.
10218 (complete_address_and_linespec_locations): New function.
10219 (location_completer): Use complete_address_and_linespec_locations.
10220 (completion_tracker::build_completion_result): Honor the tracker's
10221 request to suppress append.
10222 * completer.h (completion_tracker::suppress_append_ws)
10223 (completion_tracker::set_suppress_append_ws): New methods.
10224 (completion_tracker::m_suppress_append_ws): New field.
10225 (complete_source_filenames): New declaration.
10226 * linespec.c (linespec_complete_what): New.
10227 (struct ls_parser) <complete_what, completion_word,
10228 completion_quote_char, completion_quote_end, completion_tracker>:
10229 New fields.
10230 (string_find_incomplete_keyword_at_end): New.
10231 (linespec_lexer_lex_string): Record quote char. If in completion
10232 mode, don't throw.
10233 (linespec_lexer_consume_token): Advance the completion word point.
10234 (linespec_lexer_peek_token): Save/restore completion info.
10235 (save_stream_and_consume_token): New.
10236 (set_completion_after_number): New.
10237 (linespec_parse_basic): Set what to complete next depending on
10238 token. Handle function and label completions specially.
10239 (parse_linespec): Disable objc shortcut in completion mode. Set
10240 what to complete next depending on token type. Skip keyword if in
10241 completion mode.
10242 (complete_linespec_component, linespec_complete): New.
10243 * linespec.h (linespec_complete): Declare.
10244
10245 2017-07-17 Pedro Alves <palves@redhat.com>
10246
10247 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10248 Handle 'operator<' / 'operator<<'.
10249
10250 2017-07-17 Pedro Alves <palves@redhat.com>
10251
10252 * completer.c (collect_explicit_location_matches): Handle
10253 MATCH_LABEL.
10254 (convert_explicit_location_to_linespec): New, factored out from
10255 ...
10256 (convert_explicit_location_to_sals): ... this.
10257 (complete_label): New.
10258 (linespec_complete_label, find_label_symbols_in_block): New.
10259 (find_label_symbols): Add completion_mode parameter and adjust to
10260 call find_label_symbols_in_block.
10261 * linespec.h (linespec_complete_label): Declare.
10262
10263 2017-07-17 Pedro Alves <palves@redhat.com>
10264
10265 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10266 complete_symbol_mode parameter.
10267 * cli/cli-cmds.c (complete_command): Get the completion result out
10268 of the handle_brkchars tracker if used a custom word point.
10269 * completer.c: Include "linespec.h".
10270 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10271 (advance_to_expression_complete_word_point): New.
10272 (completion_tracker::completes_to_completion_word): New.
10273 (complete_files_symbols): Pass down
10274 complete_symbol_mode::EXPRESSION.
10275 (explicit_options, probe_options): New.
10276 (collect_explicit_location_matches): Complete on the
10277 explictit_loc->foo instead of word. Use
10278 linespec_complete_function. Handle MATCH_LINE. Handle offering
10279 keyword and options completions.
10280 (backup_text_ptr): Delete.
10281 (skip_keyword): New.
10282 (complete_explicit_location): Remove 'word' parameter. Add
10283 language, quoted_arg_start and quoted_arg_end parameters.
10284 Rewrite, parsing left to right.
10285 (location_completer): Rewrite.
10286 (location_completer_handle_brkchars): New function.
10287 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10288 (enum complete_line_internal_reason): Adjust comments.
10289 (completion_tracker::discard_completions): New.
10290 (completer_handle_brkchars_func_for_completer): Handle
10291 location_completer.
10292 (gdb_custom_word_point_brkchars)
10293 (gdb_org_rl_basic_quote_characters): New.
10294 (gdb_completion_word_break_characters_throw)
10295 (completion_find_completion_word): Handle trackers that use a
10296 custom word point.
10297 (completion_tracker::advance_custom_word_point_by): New.
10298 (completion_tracker::build_completion_result): Don't rely on
10299 readline appending the quote char.
10300 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10301 use a custom word point.
10302 (gdb_rl_attempted_completion_function): Restore
10303 rl_basic_quote_characters.
10304 * completer.h (class completion_tracker): Extend intro comment.
10305 (completion_tracker::set_quote_char)
10306 (completion_tracker::quote_char)
10307 (completion_tracker::set_use_custom_word_point)
10308 (completion_tracker::use_custom_word_point)
10309 (completion_tracker::custom_word_point)
10310 (completion_tracker::set_custom_word_point)
10311 (completion_tracker::advance_custom_word_point_by)
10312 (completion_tracker::completes_to_completion_word)
10313 (completion_tracker::discard_completions): New methods.
10314 (completion_tracker::m_quote_char)
10315 (completion_tracker::m_use_custom_word_point)
10316 (completion_tracker::m_custom_word_point): New fields.
10317 (advance_to_expression_complete_word_point): Declare.
10318 * f-lang.c (f_collect_symbol_completion_matches): Add
10319 complete_symbol_mode parameter.
10320 * language.h (struct language_defn)
10321 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10322 parameter.
10323 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10324 (linespec_complete_function): New function.
10325 (linespec_lexer_lex_keyword): Adjust.
10326 * linespec.h (linespec_keywords, linespec_complete_function): New
10327 declarations.
10328 * location.c (find_end_quote): New function.
10329 (explicit_location_lex_one): Add explicit_completion_info
10330 parameter. Save quoting info. Don't throw if being called for
10331 completion. Don't handle Ada operators here.
10332 (is_cp_operator, skip_op_false_positives, first_of)
10333 (explicit_location_lex_one_function): New function.
10334 (string_to_explicit_location): Replace 'dont_throw' parameter with
10335 an explicit_completion_info pointer parameter. Handle it. Don't
10336 use explicit_location_lex_one to lex function names. Use
10337 explicit_location_lex_one_function instead.
10338 * location.h (struct explicit_completion_info): New.
10339 (string_to_explicit_location): Replace 'dont_throw' parameter with
10340 an explicit_completion_info pointer parameter.
10341 * symtab.c (default_collect_symbol_completion_matches_break_on):
10342 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10343 (default_collect_symbol_completion_matches)
10344 (collect_symbol_completion_matches): Add complete_symbol_mode
10345 parameter.
10346 (collect_symbol_completion_matches_type): Pass down
10347 complete_symbol_mode::EXPRESSION.
10348 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10349 parameter. Handle LINESPEC mode.
10350 * symtab.h (complete_symbol_mode): New.
10351 (default_collect_symbol_completion_matches_break_on)
10352 (default_collect_symbol_completion_matches)
10353 (collect_symbol_completion_matches)
10354 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10355 parameter.
10356
10357 2017-07-17 Pedro Alves <palves@redhat.com>
10358
10359 * utils.c (enum class strncmp_iw_mode): New.
10360 (strcmp_iw): Rename to ...
10361 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10362 parameters. Handle them.
10363 (strncmp_iw): New.
10364 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10365 * utils.h (strncmp_iw): Declare.
10366 (strcmp_iw): Move describing comments here.
10367
10368 2017-07-17 Pedro Alves <palves@redhat.com>
10369
10370 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10371 CP_OPERATOR_STR.
10372 * c-typeprint.c (is_type_conversion_operator): Use
10373 CP_OPERATOR_STR.
10374 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10375 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10376 CP_OPERATOR_LEN.
10377 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10378 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10379 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10380 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10381 CP_OPERATOR_STR.
10382 * location.c: Include "cp-support.h".
10383 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10384 CP_OPERATOR_STR.
10385 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10386 CP_OPERATOR_LEN.
10387
10388 2017-07-17 Pedro Alves <palves@redhat.com>
10389
10390 * cli/cli-cmds.c (complete_command): Use a completion tracker
10391 along with completion_find_completion_word for handle_brkchars
10392 phase.
10393 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10394 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10395 (struct gdb_rl_completion_word_info): New.
10396 (gdb_rl_find_completion_word): New.
10397 (completion_find_completion_word): New.
10398 * completer.h (completion_find_completion_word): Declare.
10399
10400 2017-07-17 Pedro Alves <palves@redhat.com>
10401
10402 * ada-lang.c (symbol_completion_match): Adjust comments.
10403 (symbol_completion_add): Replace vector parameter with
10404 completion_tracker parameter. Use it.
10405 (ada_make_symbol_completion_list): Rename to...
10406 (ada_collect_symbol_completion_matches): ... this. Add
10407 completion_tracker parameter and use it.
10408 (ada_language_defn): Adjust.
10409 * break-catch-syscall.c (catch_syscall_completer): Adjust
10410 prototype and work with completion_tracker instead of VEC.
10411 * breakpoint.c (condition_completer): Adjust prototype and work
10412 with completion_tracker instead of VEC.
10413 * c-lang.c (c_language_defn, cplus_language_defn)
10414 (asm_language_defn, minimal_language_defn): Adjust to renames.
10415 * cli/cli-cmds.c (complete_command): Rework using
10416 completion_tracker. Catch exceptions when completing.
10417 * cli/cli-decode.c (integer_unlimited_completer)
10418 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10419 with completion_tracker instead of VEC.
10420 * command.h (struct completion_tracker): Forward declare.
10421 (completer_ftype, completer_handle_brkchars_ftype): Change
10422 types.
10423 (complete_on_cmdlist, complete_on_enum): Adjust.
10424 * completer.c: Include <algorithm>.
10425 (struct gdb_completer_state): New.
10426 (current_completion): New global.
10427 (readline_line_completion_function): Delete.
10428 (noop_completer, filename_completer)
10429 (filename_completer_handle_brkchars, complete_files_symbols)
10430 (linespec_location_completer): Adjust to work with a
10431 completion_tracker instead of a VEC.
10432 (string_or_empty): New.
10433 (collect_explicit_location_matches): Adjust to work with a
10434 completion_tracker instead of a VEC.
10435 (explicit_location_completer): Rename to ...
10436 (complete_explicit_location): ... this and adjust to work with a
10437 completion_tracker instead of a VEC.
10438 (location_completer): Adjust to work with a completion_tracker
10439 instead of a VEC.
10440 (add_struct_fields): Adjust to work with a completion_list instead
10441 of VEC.
10442 (expression_completer): Rename to ...
10443 (complete_expression): ... this and adjust to work with a
10444 completion_tracker instead of a VEC. Use complete_files_symbols.
10445 (expression_completer): Reimplement on top of complete_expression.
10446 (symbol_completer): Adjust to work with a completion_tracker
10447 instead of a VEC.
10448 (enum complete_line_internal_reason): Add describing comments.
10449 (complete_line_internal_normal_command): Adjust to work with a
10450 completion_tracker instead of a VEC.
10451 (complete_line_internal): Rename to ...
10452 (complete_line_internal_1): ... this and adjust to work with a
10453 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10454 handle_brkchars phase.
10455 (new_completion_tracker): Delete.
10456 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10457 complete_line_internal_1.
10458 (free_completion_tracker): Delete.
10459 (INITIAL_COMPLETION_HTAB_SIZE): New.
10460 (completion_tracker::completion_tracker)
10461 (completion_tracker::~completion_tracker): New.
10462 (maybe_add_completion): Delete.
10463 (completion_tracker::maybe_add_completion)
10464 (completion_tracker::add_completion)
10465 (completion_tracker::add_completions): New.
10466 (throw_max_completions_reached_error): Delete.
10467 (complete_line): Adjust to work with a completion_tracker instead
10468 of a VEC. Don't create a completion_tracker_t or check for max
10469 completions here.
10470 (command_completer, command_completer_handle_brkchars)
10471 (signal_completer, reg_or_group_completer_1)
10472 (reg_or_group_completer, default_completer_handle_brkchars):
10473 Adjust to work with a completion_tracker.
10474 (gdb_completion_word_break_characters_throw): New.
10475 (gdb_completion_word_break_characters): Reimplement.
10476 (line_completion_function): Delete.
10477 (completion_tracker::recompute_lowest_common_denominator)
10478 (expand_preserving_ws)
10479 (completion_tracker::build_completion_result)
10480 (completion_result::completion_result)
10481 (completion_result::completion_result)
10482 (completion_result::~completion_result)
10483 (completion_result::completion_result)
10484 (completion_result::release_match_list, compare_cstrings)
10485 (completion_result::sort_match_list)
10486 (completion_result::reset_match_list)
10487 (gdb_rl_attempted_completion_function_throw)
10488 (gdb_rl_attempted_completion_function): New.
10489 * completer.h (completion_list, struct completion_result)
10490 (class completion_tracker): New.
10491 (complete_line): Add completion_tracker parameter.
10492 (readline_line_completion_function): Delete.
10493 (gdb_rl_attempted_completion_function): New.
10494 (noop_completer, filename_completer, expression_completer)
10495 (location_completer, symbol_completer, command_completer)
10496 (signal_completer, reg_or_group_completer): Update prototypes.
10497 (completion_tracker_t, new_completion_tracker)
10498 (make_cleanup_free_completion_tracker): Delete.
10499 (enum maybe_add_completion_enum): Delete.
10500 (maybe_add_completion): Delete.
10501 (throw_max_completions_reached_error): Delete.
10502 * corefile.c (complete_set_gnutarget): Adjust to work with a
10503 completion_tracker instead of a VEC.
10504 * cp-abi.c (cp_abi_completer): Adjust to work with a
10505 completion_tracker instead of a VEC.
10506 * d-lang.c (d_language_defn): Adjust.
10507 * disasm.c (disassembler_options_completer): Adjust to work with a
10508 completion_tracker instead of a VEC.
10509 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10510 (f_collect_symbol_completion_matches): ... this. Adjust to work
10511 with a completion_tracker instead of a VEC.
10512 (f_language_defn): Adjust.
10513 * go-lang.c (go_language_defn): Adjust.
10514 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10515 Adjust to work with a completion_tracker instead of a VEC.
10516 * infrun.c (handle_completer): Likewise.
10517 * interps.c (interpreter_completer): Likewise.
10518 * interps.h (interpreter_completer): Likewise.
10519 * language.c (unknown_language_defn, auto_language_defn)
10520 (local_language_defn): Adjust.
10521 * language.h (language_defn::la_make_symbol_completion_list):
10522 Rename to ...
10523 (language_defn::la_collect_symbol_completion_matches): ... this
10524 and adjust to work with a completion_tracker instead of a VEC.
10525 * m2-lang.c (m2_language_defn): Adjust.
10526 * objc-lang.c (objc_language_defn): Adjust.
10527 * opencl-lang.c (opencl_language_defn): Adjust.
10528 * p-lang.c (pascal_language_defn): Adjust.
10529 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10530 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10531 with a completion_tracker.
10532 * rust-lang.c (rust_language_defn): Adjust.
10533 * symtab.c (free_completion_list, do_free_completion_list)
10534 (return_val, completion_tracker): Delete.
10535 (completion_list_add_name, completion_list_add_symbol)
10536 (completion_list_add_msymbol, completion_list_objc_symbol)
10537 (completion_list_add_fields, add_symtab_completions): Add
10538 completion_tracker parameter and use it.
10539 (default_make_symbol_completion_list_break_on_1): Rename to...
10540 (default_collect_symbol_completion_matches_break_on): ... this.
10541 Add completion_tracker parameter and use it instead of allocating
10542 a completion tracker here.
10543 (default_make_symbol_completion_list_break_on): Delete old
10544 implementation.
10545 (default_make_symbol_completion_list): Delete.
10546 (default_collect_symbol_completion_matches): New.
10547 (make_symbol_completion_list): Delete.
10548 (collect_symbol_completion_matches): New.
10549 (make_symbol_completion_type): Rename to ...
10550 (collect_symbol_completion_matches_type): ... this. Add
10551 completion_tracker parameter and use it instead of VEC.
10552 (make_file_symbol_completion_list_1): Rename to...
10553 (collect_file_symbol_completion_matches): ... this. Add
10554 completion_tracker parameter and use it instead of VEC.
10555 (make_file_symbol_completion_list): Delete.
10556 (add_filename_to_list): Use completion_list instead of a VEC.
10557 (add_partial_filename_data::list): Now a completion_list.
10558 (make_source_files_completion_list): Work with a completion_list
10559 instead of a VEC.
10560 * symtab.h: Include "completer.h".
10561 (default_make_symbol_completion_list_break_on)
10562 (default_make_symbol_completion_list, make_symbol_completion_list)
10563 (make_symbol_completion_type, make_file_symbol_completion_list)
10564 (make_source_files_completion_list): Delete.
10565 (default_collect_symbol_completion_matches_break_on)
10566 (default_collect_symbol_completion_matches)
10567 (collect_symbol_completion_matches)
10568 (collect_symbol_completion_matches_type)
10569 (collect_file_symbol_completion_matches)
10570 (make_source_files_completion_list): New.
10571 * top.c (init_main): Don't install a rl_completion_entry_function
10572 hook. Install a rl_attempted_completion_function hook instead.
10573 * tui/tui-layout.c (layout_completer): Adjust to work with a
10574 completion_tracker.
10575 * tui/tui-regs.c (tui_reggroup_completer):
10576 * tui/tui-win.c (window_name_completer, focus_completer)
10577 (winheight_completer): Adjust to work with a completion_tracker.
10578 * value.c: Include "completer.h".
10579 (complete_internalvar): Adjust to work with a completion_tracker.
10580 * value.h (complete_internalvar): Likewise.
10581
10582 2017-07-17 Pedro Alves <palves@redhat.com>
10583
10584 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10585 renames.
10586 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10587 comments to completer_ftype's declaration.
10588 <completer_handle_brkchars>: Change type to
10589 completer_handle_brkchars_ftype.
10590 * command.h (completer_ftype): Add describing comment and give
10591 names to parameters.
10592 (completer_ftype_void): Rename to ...
10593 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10594 (set_cmd_completer_handle_brkchars): Adjust.
10595 * completer.c (filename_completer_handle_brkchars): New function.
10596 (complete_line_internal_normal_command): New function, factored
10597 out from ...
10598 (complete_line_internal): ... here.
10599 (command_completer_handle_brkchars)
10600 (default_completer_handle_brkchars)
10601 (completer_handle_brkchars_func_for_completer): New functions.
10602 * completer.h (set_gdb_completion_word_break_characters): Delete
10603 declaration.
10604 (completer_handle_brkchars_func_for_completer): New declaration.
10605 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10606 completer_handle_brkchars_func_for_completer.
10607
10608 2017-07-17 Pedro Alves <palves@redhat.com>
10609
10610 * completer.c (symbol_completer): New function, based on
10611 make_symbol_completion_list_fn.
10612 * completer.h (symbol_completer): New declaration.
10613 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10614 * python/py-cmd.c (completers): Adjust.
10615 * symtab.c (make_symbol_completion_list_fn): Delete.
10616 * symtab.h (make_symbol_completion_list_fn): Delete.
10617 * cli/cli-decode.c (add_cmd): Adjust.
10618
10619 2017-07-17 Pedro Alves <palves@redhat.com>
10620
10621 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10622 * dwarf2read.c: Include "filename-seen-cache.h".
10623 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10624 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10625 * filename-seen-cache.c: New file.
10626 * filename-seen-cache.h: New file.
10627 * symtab.c: Include "filename-seen-cache.h".
10628 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10629 (create_filename_seen_cache, clear_filename_seen_cache)
10630 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10631 to filename-seen-cache.h/filename-seen-cache.c.
10632 (output_source_filename, sources_info)
10633 (maybe_add_partial_symtab_filename)
10634 (make_source_files_completion_list): Adjust to use
10635 filename_seen_cache.
10636
10637 2017-07-17 Pedro Alves <palves@redhat.com>
10638
10639 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10640 fields.
10641 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10642 dwarf2_debug_sections*)): New.
10643 (dwarf2_per_objfile::dwarf2_per_objfile(const
10644 dwarf2_per_objfile&)): Declare as deleted.
10645 (dwarf2_per_objfile::operator=): Declare as deleted.
10646 (dwarf2_per_objfile::dwarf2_per_objfile)
10647 (dwarf2_per_objfile::~dwarf2_per_objfile)
10648 (dwarf2_per_objfile::free_cached_comp_units): New.
10649 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10650 ctor. Call dwarf2_per_objfile's ctor manually.
10651 (dwarf2_locate_sections): Deleted/refactored as ...
10652 (dwarf2_per_objfile::locate_sections): ... this new method.
10653 (free_cached_comp_units): Defer to
10654 dwarf2_per_objfile::free_cached_comp_units.
10655 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10656
10657 2017-07-14 Tom Tromey <tom@tromey.com>
10658
10659 PR rust/21764:
10660 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10661 parameter.
10662 <UNOP_SIZEOF>: Split into separate case.
10663 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10664
10665 2017-07-14 Tom Tromey <tom@tromey.com>
10666
10667 PR rust/21763:
10668 * symtab.c (symbol_matches_domain): Add language_rust to special
10669 case.
10670 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10671 treat LOC_TYPEDEF symbols as variables.
10672
10673 2017-07-14 Pedro Alves <palves@redhat.com>
10674
10675 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10676 symtabs matching all symtabs with SRCFILE as file name instead of
10677 only considering the first hit, with lookup_symtab.
10678
10679 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10680
10681 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10682 operator_name parameters.
10683 (gen_expr): Update function call.
10684
10685 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10686
10687 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10688 parameter.
10689 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10690 Likewise.
10691 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10692 parameter, use agent_expr::gdbarch instead, update function
10693 calls.
10694 (locexpr_tracepoint_var_ref): Likewise.
10695 (loclist_tracepoint_var_ref): Likewise.
10696 * ax-gdb.c (gen_trace_static_fields): Likewise.
10697 (gen_traced_pop): Likewise.
10698 (gen_frame_args_address): Likewise.
10699 (gen_frame_locals_address): Likewise.
10700 (gen_var_ref): Likewise.
10701 (gen_struct_ref_recursive): Likewise.
10702 (gen_static_field): Likewise.
10703 (gen_maybe_namespace_elt): Likewise.
10704 (gen_expr): Likewise.
10705 (gen_trace_for_var): Likewise.
10706 (gen_trace_for_expr): Likewise.
10707 (gen_trace_for_return_address): Likewise.
10708
10709 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10710
10711 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10712 parameter.
10713 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10714
10715 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10716
10717 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10718 from ax, update calls.
10719 (gen_usual_arithmetic): Likewise.
10720 (gen_integral_promotions): Likewise.
10721 (gen_bitfield_ref): Likewise.
10722 (gen_primitive_field): Likewise.
10723 (gen_struct_ref_recursive): Likewise.
10724 (gen_struct_ref): Likewise.
10725 (gen_maybe_namespace_elt): Likewise.
10726 (gen_struct_elt_for_reference): Likewise.
10727 (gen_namespace_elt): Likewise.
10728 (gen_aggregate_elt_ref): Likewise.
10729 (gen_expr): Get gdbarch from ax, update calls.
10730 (gen_expr_binop_rest): Likewise.
10731
10732 2017-07-13 Pedro Alves <palves@redhat.com>
10733
10734 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10735 as default tdesc.
10736 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10737 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10738 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10739 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10740 tdep.
10741 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10742 Get final tdesc from the tdep.
10743 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10744 default tdesc.
10745 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10746 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10747 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10748 Use it as default tdesc.
10749 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10750 down to amd_init_abi. No longer handle fallback tdesc here.
10751 * amd64-tdep.h (tdesc_x32): Declare.
10752 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10753 parameter.
10754 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10755 as default tdesc.
10756
10757 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10758
10759 * s390-linux-tdep.c (s390_process_record): Add support for
10760 instructions new in arch12.
10761
10762 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10763
10764 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10765 PT_GETFSBASE and PT_GETGSBASE.
10766 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10767 PT_SETGSBASE.
10768
10769 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10770
10771 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10772 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10773 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10774 those rules.
10775 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10776 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10777 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10778 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10779 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10780 * features/i386/amd64.xml: Add 64bit-segments.xml.
10781 * features/i386/amd64-avx-avx512.c: Regenerated.
10782 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10783 * features/i386/amd64-avx-mpx.c: Regenerated.
10784 * features/i386/amd64-avx.c: Regenerated.
10785 * features/i386/amd64-mpx.c: Regenerated.
10786 * features/i386/amd64.c: Regenerated.
10787 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10788 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10789 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10790 * regformats/i386/amd64-avx.dat: Regenerated.
10791 * regformats/i386/amd64-mpx.dat: Regenerated.
10792 * regformats/i386/amd64.dat: Regenerated.
10793
10794 2017-07-10 Yao Qi <yao.qi@linaro.org>
10795
10796 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10797 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10798
10799 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10800
10801 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10802 unsetenv.
10803 * gnulib/aclocal.m4: Regenerate.
10804 * gnulib/config.in: Regenerate.
10805 * gnulib/configure: Regenerate.
10806 * gnulib/import/Makefile.am: Regenerate.
10807 * gnulib/import/Makefile.in: Regenerate.
10808 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10809 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10810 * gnulib/import/m4/environ.m4: New file.
10811 * gnulib/import/m4/setenv.m4: New file.
10812 * gnulib/import/setenv.c: New file.
10813 * gnulib/import/unsetenv.c: New file.
10814
10815 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10816
10817 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10818 address when op is DW_OP_addr.
10819
10820 2017-07-09 Tom Tromey <tom@tromey.com>
10821
10822 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10823 check and apply to outer type.
10824
10825 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10826
10827 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10828 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10829 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10830 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10831
10832 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10833
10834 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10835
10836 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10837
10838 * corelow.c (get_core_siginfo): Remove.
10839 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10840 instead of get_core_siginfo.
10841 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10842 * gdbarch.h: Re-generate.
10843 * gdbarch.c: Re-generate.
10844 * linux-tdep.c (linux_core_xfer_siginfo): New.
10845 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10846
10847 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10848
10849 * corelow.c (thread_section_name): Move to ...
10850 * gdbcore.h (thread_section_name): ... here.
10851
10852 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10853
10854 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10855 (struct siginfo32): New.
10856 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10857 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10858 via ptrace(PT_LWPINFO).
10859
10860 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10861
10862 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10863 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10864 (fbsd_get_siginfo_type): New.
10865 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10866 (_initialize_fbsd_tdep): New.
10867
10868 2017-07-06 David Blaikie <dblaikie@gmail.com>
10869
10870 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10871 a singular dwo_unit*) to support multiple CUs in the same way that
10872 multiple TUs are supported.
10873 (create_cus_hash_table): Replace create_dwo_cu with a function for
10874 parsing multiple CUs from a DWO file.
10875 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10876 create_dwo_cu.
10877 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10878 htab_find, rather than comparing the signature to a singleton CU in
10879 the dwo_file.
10880
10881 2017-07-06 Pedro Alves <palves@redhat.com>
10882
10883 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10884
10885 2017-07-04 Pedro Alves <palves@redhat.com>
10886
10887 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10888 * gdbtypes.h (TYPE_STATIC): Delete.
10889 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10890 is_synchronized, is_native>: Delete.
10891 <dummy>: Bump.
10892 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10893 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10894 (TYPE_FN_FIELD_ABSTRACT): Delete.
10895
10896 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10897
10898 * buffer.h (buffer_finish): Fix spelling mistakes.
10899
10900 2017-07-01 Eli Zaretskii <eliz@gnu.org>
10901
10902 * .dir-locals.el: Automatically switch to C-style comments in
10903 versions of Emacs that support the feature.
10904
10905 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10906 Pedro Alves <palves@redhat.com>
10907
10908 PR cli/21688
10909 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10910 (process_next_line): New variable 'inline_cmd'.
10911 Adjust 'if' clauses for "python", "compile" and "guile" to use
10912 'command_name_equals' and check for '!inline_cmd'.
10913
10914 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10915
10916 PR cli/21688
10917 * cli/cli-script.c (command_name_equals_not_inline): New function.
10918 (process_next_line): Adjust 'if' clauses for "python", "compile"
10919 and "guile" to use command_name_equals_not_inline.
10920
10921 2017-06-29 Pedro Alves <palves@redhat.com>
10922
10923 * completer.c (expression_completer): Call
10924 linespec_location_completer instead of location_completer.
10925
10926 2017-06-29 Pedro Alves <palves@redhat.com>
10927
10928 * completer.c (expression_completer): Remove code that recomputes
10929 'text' from 'word'.
10930
10931 2017-06-29 Yao Qi <yao.qi@linaro.org>
10932
10933 * regformats/regdat.sh: Generate code with
10934 "ifndef IN_PROCESS_AGENT".
10935
10936 2017-06-28 Pedro Alves <palves@redhat.com>
10937
10938 * command.h: Include "common/scoped_restore.h".
10939
10940 2017-06-28 Yao Qi <yao.qi@linaro.org>
10941
10942 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10943 instead of obstack_grow.
10944
10945 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10946
10947 PR gdb/21337
10948 * symfile.c (reread_symbols): Call objfiles_changed just before
10949 read_symbols.
10950
10951 2017-06-27 Pedro Alves <palves@redhat.com>
10952
10953 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10954 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10955 (completion_list_add_symbol, completion_list_add_msymbol):
10956 ... these new functions.
10957 (add_symtab_completions)
10958 (default_make_symbol_completion_list_break_on_1): Adjust.
10959
10960 2017-06-27 Pedro Alves <palves@redhat.com>
10961
10962 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10963 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10964 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10965 dtor.
10966 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10967 'storage_obstack' field an auto_obstack. In-class initialize all
10968 non-bitfield fields. Make minsyms_read bool.
10969 * symfile.c (read_symbols): Adjust.
10970
10971 2017-06-27 Alan Hayward <alan.hayward@arm.com>
10972
10973 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10974 (gdbsim_store_register): Likewise.
10975
10976 2017-06-27 Pedro Alves <palves@redhat.com>
10977
10978 * c-exp.y (name_obstack): Now an auto_obstack.
10979 (yylex): Use auto_obstack::clear.
10980 (c_parse): Use auto_obstack::clear instead of reinitializing and
10981 freeing the obstack.
10982 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10983 * d-exp.y (name_obstack): Now an auto_obstack.
10984 (yylex): Use auto_obstack::clear.
10985 (d_parse): Use auto_obstack::clear instead of reinitializing and
10986 freeing the obstack.
10987 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10988 auto_obstack.
10989 * dwarf2read.c (create_addrmap_from_index)
10990 (dwarf2_build_psymtabs_hard)
10991 (update_enumeration_type_from_children): Likewise.
10992 * gdb_obstack.h (auto_obstack): New type.
10993 * go-exp.y (name_obstack): Now an auto_obstack.
10994 (build_packaged_name): Use auto_obstack::clear.
10995 (go_parse): Use auto_obstack::clear instead of reinitializing and
10996 freeing the obstack.
10997 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10998 auto_obstack.
10999 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
11000 * rust-exp.y (work_obstack): Now an auto_obstack.
11001 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
11002 reinitializing and freeing the obstack.
11003 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
11004 (host_char_to_target): Use auto_obstack.
11005 * utils.h (make_cleanup_obstack_free): Delete declaration.
11006 * valprint.c (generic_emit_char, generic_printstr): Use
11007 auto_obstack.
11008
11009 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
11010
11011 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
11012 thread.
11013 (darwin_init_thread_list): Don't update dummy thread.
11014 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
11015
11016 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11017
11018 * record-full.c (netorder16): Remove.
11019
11020 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11021
11022 * common/diagnostics.h: Define macros for GCC.
11023 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
11024 * common/vec.h: Include diagnostics.h.
11025 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
11026 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
11027 warning.
11028
11029 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
11030
11031 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
11032 New macro.
11033 * ada-lex.l: Ignore deprecated register warnings.
11034
11035 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11036
11037 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
11038 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
11039
11040 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11041
11042 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
11043 its own line.
11044
11045 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
11046
11047 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
11048
11049 2017-06-23 Alan Hayward <alan.hayward@arm.com>
11050
11051 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
11052 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
11053 (xtensa_register_read_masked): Likewise.
11054
11055 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
11056
11057 * common/environ.c (gdb_environ::unset): Update comment.
11058
11059 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11060
11061 * python/py-unwind.c (pyuw_sniffer): Allocate space for
11062 registers.
11063
11064 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11065
11066 * record-full.c (record_full_exec_insn): Use byte_vector.
11067
11068 2017-06-22 Yao Qi <yao.qi@linaro.org>
11069
11070 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
11071 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
11072
11073 2017-06-22 Alan Hayward <alan.hayward@arm.com>
11074
11075 * remote.c (cached_reg): Move from here...
11076 * regcache.h (cached_reg): ...to here.
11077 * python/py-unwind.c (struct reg_info): Remove.
11078 (cached_frame_info): Use cached_reg_t.
11079 (pyuw_prev_register): Likewise.
11080 (pyuw_sniffer): Use cached_reg_t and allocate registers.
11081 (pyuw_dealloc_cache): Free all registers.
11082
11083 2017-06-22 Pedro Alves <palves@redhat.com>
11084 Simon Marchi <simon.marchi@ericsson.com>
11085
11086 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
11087 warning.
11088 * common/diagnostics.h: New file.
11089
11090 2017-06-22 Pedro Alves <palves@redhat.com>
11091
11092 * common/agent.h: Add include guards.
11093
11094 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
11095
11096 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
11097 talk about addressable units instead of bytes.
11098
11099 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11100
11101 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
11102 of '::const_iterator'.
11103
11104 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
11105
11106 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11107 'unittests/environ-selftests.c'.
11108 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
11109 * charset.c (find_charset_names): Declare object 'iconv_env'.
11110 Update code to use 'iconv_env' object. Remove call to
11111 'free_environ'.
11112 * common/environ.c: Include <utility>.
11113 (make_environ): Delete function.
11114 (free_environ): Delete function.
11115 (gdb_environ::clear): New function.
11116 (gdb_environ::operator=): New function.
11117 (gdb_environ::get): Likewise.
11118 (environ_vector): Delete function.
11119 (set_in_environ): Delete function.
11120 (gdb_environ::set): New function.
11121 (unset_in_environ): Delete function.
11122 (gdb_environ::unset): New function.
11123 (gdb_environ::envp): Likewise.
11124 * common/environ.h: Include <vector>.
11125 (struct gdb_environ): Delete; transform into...
11126 (class gdb_environ): ... this class.
11127 (free_environ): Delete prototype.
11128 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11129 environ_vector): Likewise.
11130 * infcmd.c (run_command_1): Update code to call
11131 'envp' from 'gdb_environ' class.
11132 (environment_info): Update code to call methods from 'gdb_environ'
11133 class.
11134 (unset_environment_command): Likewise.
11135 (path_info): Likewise.
11136 (path_command): Likewise.
11137 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11138 (inferior::inferior): Initialize 'environment' using the host's
11139 information.
11140 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11141 Include "environ.h".
11142 (class inferior) <environment>: Change type from 'struct
11143 gdb_environ' to 'gdb_environ'.
11144 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11145 methods from 'gdb_environ' class.
11146 * solib.c (solib_find_1): Likewise
11147 * unittests/environ-selftests.c: New file.
11148
11149 2017-06-20 Yao Qi <yao.qi@linaro.org>
11150
11151 * features/i386/i386-linux.xml: Exchange the order of including
11152 32bit-linux.xml and 32bit-sse.xml.
11153 * features/i386/i386-linux.c: Regenerated.
11154
11155 2017-06-20 Yao Qi <yao.qi@linaro.org>
11156
11157 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11158 Delete copy ctor and assignment operator.
11159 (tdesc_type): Likewise.
11160 (tdesc_feature): Likewise.
11161 (tdesc_free_reg): Remove.
11162 (tdesc_create_reg): Use new.
11163 (tdesc_free_type): Remove.
11164 (tdesc_create_vector): Use new.
11165 (tdesc_create_union): Likewise.
11166 (tdesc_create_flags): Likewise.
11167 (tdesc_create_enum): Likewise.
11168 (tdesc_free_feature): Delete.
11169 (free_target_description): Use delete.
11170
11171 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11172
11173 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11174 registers.
11175
11176 2017-06-19 Pedro Alves <palves@redhat.com>
11177
11178 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11179 after gdb::unlinker.
11180
11181 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11182
11183 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11184 gdb_environ to access an environment variable.
11185
11186 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11187
11188 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11189 gdb_byte*.
11190
11191 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11192
11193 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11194
11195 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11196
11197 * configure: Re-generate.
11198 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11199
11200 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11201
11202 * configure: Re-generate.
11203 * warning.m4: Pass -Werror to compiler when checking for
11204 supported warning flags.
11205
11206 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11207
11208 * Makefile.in (COMPILE.pre): Add "-x c++".
11209
11210 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11211 Pedro Alves <palves@redhat.com>
11212 Yao Qi <yao.qi@linaro.org>
11213
11214 * defs.h (RequireLongest): New.
11215 (extract_integer): Declare function template.
11216 (extract_signed_integer): Remove the declaration, but define it
11217 static inline.
11218 (extract_unsigned_integer): Likewise.
11219 (store_integer): Declare function template.
11220 (store_signed_integer): Remove the declaration, but define it
11221 static inline.
11222 (store_unsigned_integer): Likewise.
11223 * findvar.c (extract_integer): New function template.
11224 (extract_signed_integer): Remove.
11225 (extract_unsigned_integer): Remove.
11226 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11227 instantiations.
11228 (store_integer): New function template.
11229 (store_signed_integer): Remove.
11230 (store_unsigned_integer): Remove.
11231 (store_integer): Explicit instantiations.
11232 * regcache.c (regcache_raw_read_signed): Update.
11233 (regcache::raw_read): New function.
11234 (regcache::raw_read_signed): Remove.
11235 (regcache::raw_read_unsigned): Remove.
11236 (regcache_raw_read_unsigned): Update.
11237 (regcache_raw_write_unsigned): Update.
11238 (regcache::raw_write_signed): Remove.
11239 (regcache::raw_write): New function.
11240 (regcache_cooked_read_signed): Update.
11241 (regcache::raw_write_unsigned): Remove.
11242 (regcache::cooked_read_signed): Remove.
11243 (regcache_cooked_read_unsigned): Update.
11244 (regcache::cooked_read_unsigned): Remove.
11245 (regcache_cooked_write_signed): Update.
11246 (regcache_cooked_write_unsigned): Update.
11247 * regcache.h (regcache) <raw_read_signed>: Remove.
11248 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11249 <raw_read, raw_write>: New.
11250 <cooked_read_signed, cooked_write_signed>: Remove.
11251 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11252 <cooked_read, cooked_write>: New.
11253 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11254 (sh64_pseudo_register_write): Update.
11255
11256 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11257
11258 * arc-tdep.c (arc_disassembler_options): New variable.
11259 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11260 of default_print_insn.
11261 (arc_delayed_print_insn): Set info->section when needed,
11262 use default_print_insn to retrieve a disassembler.
11263
11264 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11265
11266 PR gdb/21574
11267 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11268 to mention $SHELL and startup-with-shell.
11269
11270 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11271
11272 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11273
11274 2017-06-14 Yao Qi <yao.qi@linaro.org>
11275
11276 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11277 default_print_insn instead of print_insn_aarch64.
11278 * arm-tdep.c (gdb_print_insn_arm): Call
11279 default_print_insn instead of print_insn_big_arm
11280 and print_insn_little_arm.
11281 * i386-tdep.c (i386_print_insn): Call default_print_insn
11282 instead of print_insn_i386.
11283 * ia64-tdep.c (ia64_print_insn): Call
11284 default_print_insn instead of print_insn_ia64.
11285 * mips-tdep.c (gdb_print_insn_mips): Call
11286 default_print_insn instead of print_insn_big_mips
11287 and print_insn_little_mips.
11288 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11289 instead of print_insn_spu.
11290
11291 2017-06-14 Pedro Alves <palves@redhat.com>
11292
11293 * ada-lang.c: Include "common/byte-vector.h".
11294 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11295 * charset.c (wchar_iterator::iterate): Resize the vector instead
11296 of reserving it.
11297 * common/byte-vector.h: Include "common/def-vector.h".
11298 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11299 * cli/cli-dump.c: Include "common/byte-vector.h".
11300 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11301 * common/byte-vector.h: New file.
11302 * common/def-vector.h: New file.
11303 * common/default-init-alloc.h: New file.
11304 * dwarf2loc.c: Include "common/byte-vector.h".
11305 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11306 instead of reserving it.
11307 * dwarf2read.c: Include "common/byte-vector.h".
11308 (data_buf::m_vec): Now a gdb::byte_vector.
11309 * gdb_regex.c: Include "common/def-vector.h".
11310 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11311 * mi/mi-main.c: Include "common/byte-vector.h".
11312 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11313 * printcmd.c: Include "common/byte-vector.h".
11314 (print_scalar_formatted): Use gdb::byte_vector.
11315 * valprint.c: Include "common/byte-vector.h".
11316 (maybe_negate_by_bytes, print_decimal_chars): Use
11317 gdb::byte_vector.
11318
11319 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11320
11321 * darwin-nat.c: Include "nat/fork-inferior.h".
11322
11323 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11324
11325 * configure.nat: Factor out Darwin bits that are not
11326 architecture-specific. Add fork-inferior.o.
11327
11328 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11329
11330 * configure.nat: Factor out AIX bits that are not
11331 architecture-specific. Add fork-inferior.o.
11332
11333 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11334
11335 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11336 (read_pieced_value, write_pieced_value): ...here. Reduce to
11337 wrappers that just call rw_pieced_value.
11338
11339 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11340
11341 * dwarf2loc.c (write_pieced_value): When writing the data for a
11342 memory piece, use write_memory_with_notification instead of
11343 write_memory.
11344
11345 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11346
11347 * valops.c (read_value_memory): Change embedded_offset to
11348 represent a bit offset instead of a byte offset.
11349 * value.h (read_value_memory): Adjust comment.
11350
11351 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11352
11353 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11354 dest_offset_bits and source_offset_bits.
11355 (write_pieced_value): Likewise.
11356
11357 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11358
11359 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11360 given by DW_OP_bit_piece.
11361 (write_pieced_value): Likewise.
11362
11363 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11364
11365 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11366 some other preparations to the places where sufficient information
11367 is available.
11368 (write_pieced_value): Likewise.
11369
11370 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11371
11372 * dwarf2loc.c (bits_to_bytes): New function.
11373 (read_pieced_value): Fix offset calculations for register pieces
11374 on big-endian targets.
11375 (write_pieced_value): Likewise.
11376
11377 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11378
11379 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11380 (write_pieced_value): Likewise.
11381
11382 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11383
11384 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11385 transfer the source value's least significant bits, instead of its
11386 lowest-addressed ones. Rename type_len to max_offset.
11387 (read_pieced_value): Mirror above changes to write_pieced_value as
11388 applicable.
11389
11390 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11391
11392 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11393 truncate full bytes from dest_offset_bits before using it as an
11394 offset into the buffer.
11395
11396 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11397
11398 * dwarf2loc.c (write_pieced_value): Include transfer size in
11399 byte-wise check.
11400
11401 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11402
11403 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11404 calculation of this_size.
11405
11406 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11407
11408 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11409 when targeting a bit-field.
11410 (write_pieced_value): Likewise.
11411
11412 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11413
11414 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11415 (allocate_piece_closure): Drop addr_size parameter.
11416 (dwarf2_evaluate_loc_desc_full): Adjust call to
11417 allocate_piece_closure.
11418
11419 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11420
11421 PR gdb/21226
11422 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11423 the LSB end, independent of endianness.
11424
11425 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11426
11427 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11428 size capping.
11429
11430 2017-06-13 Yao Qi <yao.qi@linaro.org>
11431
11432 * mips-linux-nat.c: Move include features/mips*-linux.c to
11433 mips-linux-tdep.c.
11434 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11435 to mips-linux-tdep.c.
11436 * mips-linux-tdep.c: Include features/mips*-linux.c
11437 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11438 functions.
11439 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11440 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11441 (tdesc_mips64_dsp_linux): Declare.
11442
11443 2017-06-12 Tom Tromey <tom@tromey.com>
11444
11445 * valprint.h (val_print_type_code_int): Remove.
11446 * valprint.c (generic_val_print_int): Always call
11447 val_print_scalar_formatted.
11448 (val_print_type_code_int): Remove.
11449 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11450 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11451 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11452 * ada-valprint.c (ada_val_print_num): Use
11453 val_print_scalar_formatted.
11454
11455 2017-06-12 Tom Tromey <tom@tromey.com>
11456
11457 * printcmd.c (print_scalar_formatted): Unify the two switches.
11458 Don't convert scalars to LONGEST.
11459
11460 2017-06-12 Tom Tromey <tom@tromey.com>
11461
11462 PR exp/16225:
11463 * valprint.h (print_decimal_chars): Update.
11464 * valprint.c (maybe_negate_by_bytes): New function.
11465 (print_decimal_chars): Add "is_signed" argument.
11466 * printcmd.c (print_scalar_formatted): Update.
11467
11468 2017-06-12 Tom Tromey <tom@tromey.com>
11469
11470 PR exp/16225:
11471 * valprint.h (print_binary_chars, print_hex_chars): Update.
11472 * valprint.c (val_print_type_code_int): Update.
11473 (print_binary_chars): Add "zero_pad" argument.
11474 (emit_octal_digit): New function.
11475 (print_octal_chars): Don't zero-pad.
11476 (print_decimal_chars): Likewise.
11477 (print_hex_chars): Add "zero_pad" argument.
11478 * sh64-tdep.c (sh64_do_fp_register): Update.
11479 * regcache.c (regcache::dump): Update.
11480 * printcmd.c (print_scalar_formatted): Update.
11481 * infcmd.c (default_print_one_register_info): Update.
11482
11483 2017-06-12 Pedro Alves <palves@redhat.com>
11484 Alan Hayward <alan.hayward@arm.com>
11485
11486 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11487 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11488 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11489 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11490 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11491
11492 2017-06-12 Pedro Alves <palves@redhat.com>
11493
11494 * dwarf2read.c (mapped_symtab::data): Now a vector of
11495 symtab_index_entry instead of vector of
11496 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11497 whether an element's name is NULL instead of checking whether the
11498 element itself is NULL.
11499 (find_slot): Change return type. Adjust.
11500 (hash_expand, , add_index_entry, uniquify_cu_indices)
11501 (write_hash_table): Adjust.
11502
11503 2017-06-12 Pedro Alves <palves@redhat.com>
11504
11505 * dwarf2read.c (recursively_count_psymbols): New function.
11506 (write_psymtabs_to_index): Call it to compute number of psyms and
11507 pass estimate size of psyms_seen to unordered_set's ctor.
11508
11509 2017-06-12 Pedro Alves <palves@redhat.com>
11510
11511 * dwarf2read.c (write_hash_table): Check if key already exists
11512 before emplacing.
11513
11514 2017-06-12 Pedro Alves <palves@redhat.com>
11515
11516 * dwarf2read.c (data_buf::append_space): Rename to...
11517 (data_buf::grow): ... this, and make private. Adjust all callers.
11518 (data_buf::append_uint): New method.
11519 (add_address_entry, write_one_signatured_type)
11520 (write_psymtabs_to_index): Use it.
11521
11522 2017-06-12 Pedro Alves <palves@redhat.com>
11523
11524 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11525 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11526 (data_buf::file_write): Call ::fwrite directly.
11527
11528 2017-06-12 Pedro Alves <palves@redhat.com>
11529
11530 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11531 std::vector::erase.
11532
11533 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11534
11535 Code cleanup: C++ify .gdb_index producer.
11536 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11537 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11538 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11539 (create_strtab, add_string): Remove.
11540 (file_write, data_buf): New.
11541 (struct symtab_index_entry): Use std::vector for cu_indices.
11542 (struct mapped_symtab): Use std::vector for data.
11543 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11544 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11545 Remove.
11546 (find_slot): Change return type. Update it to the new data structures.
11547 (hash_expand, add_index_entry): Update it to the new data structures.
11548 (offset_type_compare): Remove.
11549 (uniquify_cu_indices): Update it to the new data structures.
11550 (c_str_view, c_str_view_hasher, vector_hasher): New.
11551 (add_indices_to_cpool): Remove.
11552 (write_hash_table): Update it to the new data structures.
11553 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11554 (eq_psymtab_cu_index): Remove.
11555 (psym_index_map): New typedef.
11556 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11557 reference and std::unordered_map for cu_index_htab.
11558 (add_address_entry, add_address_entry_worker, write_address_map)
11559 (write_psymbols): Update it to the new data structures.
11560 (write_obstack): Remove.
11561 (struct signatured_type_index_data): Change types_list to a data_buf
11562 reference and psyms_seen to a std::unordered_set reference.
11563 (write_one_signatured_type, recursively_write_psymbols)
11564 (write_psymtabs_to_index): Update it to the new data structures.
11565
11566 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11567
11568 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11569 separate-debug-file commands.
11570 * symfile.h (separate_debug_file_debug): New global.
11571 * symfile.c (separate_debug_file_debug): New global.
11572 (separate_debug_file_exists, find_separate_debug_file): Add
11573 debug output.
11574 (_initialize_symfile): Add "set debug separate-debug-file"
11575 command.
11576 * build-id.c (build_id_to_debug_bfd,
11577 find_separate_debug_file_by_buildid): Add debug output.
11578
11579 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11580
11581 * gdbarch.sh (displaced_step_free_closure): Remove.
11582 * gdbarch.h, gdbarch.c: Re-generate.
11583 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11584 displaced_step_free_closure.
11585 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11586 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11587 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11588 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11589 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11590 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11591 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11592 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11593 * infrun.c (displaced_step_clear): Call xfree instead of
11594 gdbarch_displaced_step_free_closure.
11595
11596 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11597
11598 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11599 NULL".
11600
11601 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11602
11603 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11604 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11605 (mn10300_push_dummy_call): Likewise.
11606
11607 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11608
11609 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11610
11611 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11612
11613 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11614
11615 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11616
11617 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11618 able to start inferiors using a shell.
11619 (New remote packets): Announce new packet "QStartupWithShell".
11620 * remote.c: Add PACKET_QStartupWithShell.
11621 (extended_remote_create_inferior): Handle new
11622 PACKET_QStartupWithShell.
11623 (remote_protocol_features) <QStartupWithShell>: New entry for
11624 PACKET_QStartupWithShell.
11625 (_initialize_remote): Call "add_packet_config_cmd" for
11626 QStartupShell.
11627
11628 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11629 Pedro Alves <palves@redhat.com>
11630
11631 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11632 and "nat/fork-inferior.h".
11633 * common/common-inferior.h: New file, with contents from
11634 "gdb/inferior.h".
11635 * commom/common-utils.c: Include "common-utils.h".
11636 (stringify_argv): New function.
11637 * common/common-utils.h (stringify_argv): New prototype.
11638 * configure.nat: Add "fork-inferior.o" as a dependency for
11639 "*linux*", "fbsd*" and "nbsd*" hosts.
11640 * corefile.c (get_exec_file): Update comment.
11641 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11642 instead of "startup_inferior".
11643 (darwin_create_inferior): Call "add_thread_silent" after
11644 "fork_inferior".
11645 * fork-child.c: Cleanup unnecessary includes.
11646 (SHELL_FILE): Move to "common/common-fork-child.c".
11647 (environ): Likewise.
11648 (exec_wrapper): Initialize.
11649 (get_exec_wrapper): New function.
11650 (breakup_args): Move to "common/common-fork-child.c"; rename to
11651 "breakup_args_for_exec".
11652 (escape_bang_in_quoted_argument): Move to
11653 "common/common-fork-child.c".
11654 (saved_ui): New variable.
11655 (prefork_hook): New function.
11656 (postfork_hook): Likewise.
11657 (postfork_child_hook): Likewise.
11658 (gdb_startup_inferior): Likewise.
11659 (fork_inferior): Move to "common/common-fork-child.c". Update
11660 function to support gdbserver.
11661 (startup_inferior): Likewise.
11662 * gdbcore.h (get_exec_file): Remove declaration.
11663 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11664 instead of "startup_inferior". Call "add_thread_silent" after
11665 "fork_inferior".
11666 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11667 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11668 instead of "startup_inferior". Call "add_thread_silent" after
11669 "fork_inferior".
11670 * inferior.h: Include "common-inferior.h".
11671 (trace_start_error): Move to "common/common-utils.h".
11672 (trace_start_error_with_name): Likewise.
11673 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11674 (startup_inferior): Likewise.
11675 (gdb_startup_inferior): New prototype.
11676 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11677 * nat/fork-inferior.h: New file.
11678 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11679 instead of "startup_inferior". Call "add_thread_silent" after
11680 "fork_inferior".
11681 * target.h (target_terminal_init): Move prototype to
11682 "target/target.h".
11683 (target_terminal_inferior): Likewise.
11684 (target_terminal_ours): Likewise.
11685 * target/target.h (target_terminal_init): New prototype, moved
11686 from "target.h".
11687 (target_terminal_inferior): Likewise.
11688 (target_terminal_ours): Likewise.
11689 * utils.c (gdb_flush_out_err): New function.
11690
11691 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11692
11693 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11694 * common/common-gdbthread.h: New file, with parts from
11695 "gdb/gdbthread.h".
11696 * gdbthread.h: Include "common-gdbthread.h".
11697 (switch_to_thread): Moved to "common/common-gdbthread.h".
11698
11699 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11700
11701 * Makefile.in (SFILES): Add "common/job-control.c".
11702 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11703 (COMMON_OBS): Add "job-control.o".
11704 * common/job-control.c: New file, with contents from
11705 "gdb/inflow.c".
11706 * common/job-control.h: New file, with contents from "terminal.h".
11707 * fork-child.c: Include "job-control.h".
11708 * inflow.c: Include "job-control.h".
11709 (gdb_setpgid): Move to "common/common-inflow.c".
11710 (_initialize_inflow): Move setting of "job_control" to
11711 "handle_job_control".
11712 * terminal.h (job_control): Moved to "common/common-terminal.h".
11713 (gdb_setpgid): Likewise.
11714 * top.c: Include "job_control.h".
11715 * utils.c: Likewise.
11716 (job_control): Moved to "job-control.c".
11717
11718 2017-06-07 Pedro Alves <palves@redhat.com>
11719
11720 * Makefile.in (SFILES): Add gdb_regex.c.
11721 (COMMON_OBS): Add gdb_regex.o.
11722 * ada-lang.c (ada_add_standard_exceptions)
11723 (ada_add_exceptions_from_frame, name_matches_regex)
11724 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11725 parameter type to compiled_regex. Adjust.
11726 (ada_exceptions_list): Use compiled_regex.
11727 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11728 std::unique_ptr<compiled_regex>.
11729 (exception_catchpoint::~exception_catchpoint): Remove regfree
11730 call.
11731 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11732 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11733 * breakpoint.c (solib_catchpoint::compiled): Now a
11734 std::unique_ptr<compiled_regex>.
11735 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11736 (check_status_catch_solib): Adjust to use compiled_regex.
11737 (add_solib_catchpoint): Adjust to use compiled_regex.
11738 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11739 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11740 compiled_regex reference. Adjust to use it.
11741 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11742 declaration. Include "gdb_regex.h".
11743 (apropos_cmd): Change regex parameter to compiled_regex reference.
11744 * gdb_regex.c: New file.
11745 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11746 declarations.
11747 (class compiled_regex): New.
11748 * linux-tdep.c: Include "common/gdb_optional.h".
11749 (struct mapping_regexes): New, factored out from
11750 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11751 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11752 gdb::optional and remove cleanups. Adjust to compiled_regex.
11753 * probe.c: Include "common/gdb_optional.h".
11754 (collect_probes): Use compiled_regex and gdb::optional and remove
11755 cleanups.
11756 * skip.c: Include "common/gdb_optional.h".
11757 (skiplist_entry::compiled_function_regexp): Now a
11758 gdb::optional<compiled_regex>.
11759 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11760 (free_skiplist_entry): Remove regfree call.
11761 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11762 compiled_regex and gdb::optional.
11763 * symtab.c: Include "common/gdb_optional.h".
11764 (search_symbols): Use compiled_regex and gdb::optional.
11765 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11766 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11767 to gdb_regex.c.
11768
11769 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11770
11771 * regcache.c (regcache::save): Avoid buffer use.
11772 (regcache::dump): Likewise.
11773
11774 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11775
11776 * sh-tdep.c (sh_pseudo_register_read): Remove
11777 MAX_REGISTER_SIZE.
11778 (sh_pseudo_register_write): Likewise.
11779 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11780 (sh64_pseudo_register_write): Likewise
11781
11782 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11783
11784 * aarch64-tdep.c (aarch64_store_return_value): Use
11785 V_REGISTER_SIZE.
11786 (aarch64_pseudo_read_value): Likewise.
11787 (aarch64_pseudo_write): Likewise.
11788
11789 2017-06-06 Yao Qi <yao.qi@linaro.org>
11790
11791 * regformats/regdef.h (set_register_cache): Remove the
11792 declaration.
11793
11794 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11795
11796 * frame.c (frame_unwind_register_signed): Use
11797 frame_unwind_register_value.
11798
11799 2017-06-06 Pedro Alves <palves@redhat.com>
11800
11801 PR breakpoints/21553
11802 * breakpoint.c (create_breakpoints_sal_default)
11803 (init_breakpoint_sal, create_breakpoint_sal): Use
11804 gdb::unique_xmalloc_ptr for string parameters.
11805 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11806 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11807 (base_breakpoint_create_breakpoints_sal)
11808 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11809 (strace_marker_create_breakpoints_sal)
11810 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11811 string parameters.
11812 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11813 gdb::unique_xmalloc_ptr for string parameters.
11814 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11815 parameters.
11816
11817 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11818
11819 * alpha-tdep.c (alpha_register_to_value): Use
11820 get_frame_register_value.
11821 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11822
11823 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11824
11825 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11826 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11827 (ia64_value_to_register): Likewise.
11828 (ia64_extract_return_value): Likewise.
11829 (ia64_store_return_value): Likewise.
11830 (ia64_push_dummy_call): Likewise.
11831
11832 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11833
11834 GDB 8.0 released.
11835
11836 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11837
11838 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11839
11840 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11841
11842 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11843 parameter.
11844 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11845
11846 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11847
11848 * event-loop.c (poll_timers): Unallocate timer using delete
11849 instead of xfree.
11850
11851 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11852
11853 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11854 (struct breakpoint) <~breakpoint>: New.
11855 (struct watchpoint): Inherit from breakpoint.
11856 <~watchpoint>: New.
11857 <base>: Remove.
11858 (struct tracepoint): Inherit from breakpoint.
11859 <base>: Remove.
11860 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11861 (struct longjmp_breakpoint): Inherit from breakpoint.
11862 <~longjmp_breakpoint>: New.
11863 <base>: Remove.
11864 (new_breakpoint_from_type): Remove casts.
11865 (watchpoint_in_thread_scope): Remove reference to base field.
11866 (watchpoint_del_at_next_stop): Likewise.
11867 (update_watchpoint): Likewise.
11868 (watchpoint_check): Likewise.
11869 (bpstat_check_watchpoint): Likewise.
11870 (set_longjmp_breakpoint): Likewise.
11871 (struct fork_catchpoint): Inherit from breakpoint.
11872 <base>: Remove.
11873 (struct solib_catchpoint): Inherit from breakpoint.
11874 <~solib_catchpoint>: New.
11875 <base>: Remove.
11876 (dtor_catch_solib): Change to ...
11877 (solib_catchpoint::~solib_catchpoint): ... this.
11878 (breakpoint_hit_catch_solib): Remove reference to base field.
11879 (add_solib_catchpoint): Likewise.
11880 (create_fork_vfork_event_catchpoint): Likewise.
11881 (struct exec_catchpoint): Inherit from breakpoint.
11882 <~exec_catchpoint>: New.
11883 <base>: Remove.
11884 (dtor_catch_exec): Change to ...
11885 (exec_catchpoint::~exec_catchpoint): ... this.
11886 (dtor_watchpoint): Change to ...
11887 (watchpoint::~watchpoint): ... this.
11888 (watch_command_1): Remove reference to base field.
11889 (catch_exec_command_1): Likewise.
11890 (base_breakpoint_dtor): Change to ...
11891 (breakpoint::~breakpoint): ... this.
11892 (base_breakpoint_ops): Remove dtor field value.
11893 (longjmp_bkpt_dtor): Change to ...
11894 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11895 (strace_marker_create_breakpoints_sal): Remove reference to base
11896 field.
11897 (delete_breakpoint): Don't manually call breakpoint destructor.
11898 (create_tracepoint_from_upload): Remove reference to base field.
11899 (trace_pass_set_count): Likewise.
11900 (initialize_breakpoint_ops): Don't initialize
11901 momentary_breakpoint_ops, don't set dtors.
11902 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11903 <~ada_catchpoint>: New.
11904 <base>: Remove.
11905 (create_excep_cond_exprs): Remove reference to base field.
11906 (dtor_exception): Change to ...
11907 (ada_catchpoint::~ada_catchpoint): ... this.
11908 (dtor_catch_exception): Remove.
11909 (dtor_catch_exception_unhandled): Remove.
11910 (dtor_catch_assert): Remove.
11911 (create_ada_exception_catchpoint): Remove reference to base
11912 field.
11913 (initialize_ada_catchpoint_ops): Don't set dtors.
11914 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11915 breakpoint.
11916 <~signal_catchpoint>: New.
11917 <base>: Remove.
11918 (signal_catchpoint_dtor): Change to ...
11919 (signal_catchpoint::~signal_catchpoint): ... this.
11920 (create_signal_catchpoint): Remove reference to base field.
11921 (initialize_signal_catchpoint_ops): Don't set dtor.
11922 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11923 from breakpoint.
11924 <~syscall_catchpoint>: New.
11925 <base>: Remove.
11926 (dtor_catch_syscall): Change to ...
11927 (syscall_catchpoint::~syscall_catchpoint): ... this.
11928 (create_syscall_event_catchpoint): Remove reference to base
11929 field.
11930 (initialize_syscall_catchpoint_ops): Don't set dtor.
11931 * break-catch-throw.c (struct exception_catchpoint): Inherit
11932 from breakpoint.
11933 <~exception_catchpoint>: New.
11934 <base>: Remove.
11935 (dtor_exception_catchpoint): Change to ...
11936 (exception_catchpoint::~exception_catchpoint): ... this.
11937 (handle_gnu_v3_exceptions): Remove reference to base field.
11938 (initialize_throw_catchpoint_ops): Don't set dtor.
11939 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11940 field.
11941 * remote.c (remote_get_tracepoint_status): Likewise.
11942 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11943 * tracefile.c (tracefile_fetch_registers): Likewise.
11944 * tracepoint.c (actions_command): Likewise.
11945 (validate_actionline): Likewise.
11946 (tfind_1): Likewise.
11947 (get_traceframe_location): Likewise.
11948 (find_matching_tracepoint_location): Likewise.
11949 (parse_tracepoint_status): Likewise.
11950 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11951
11952 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11953
11954 * breakpoint.c (struct longjmp_breakpoint): New struct.
11955 (is_tracepoint_type): Change return type to bool.
11956 (is_longjmp_type): New function.
11957 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11958 (set_raw_breakpoint_without_location): Use
11959 new_breakpoint_from_type.
11960 (set_raw_breakpoint): Likewise.
11961
11962 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11963
11964 * breakpoint.c (new_breakpoint_from_type): New function.
11965 (create_breakpoint_sal): Use new_breakpoint_from_type and
11966 unique_ptr.
11967 (create_breakpoint): Likewise.
11968
11969 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11970
11971 * memattr.c (mem_info_command): Rename to ...
11972 (info_mem_command): ... this.
11973 (mem_enable_command): Rename to ...
11974 (enable_mem_command): ... this.
11975 (mem_disable_command): Rename to ...
11976 (disable_mem_command): ... this.
11977 (mem_delete_command): Rename to ...
11978 (delete_mem_command): ... this.
11979 (_initialize_mem): Adjust function names.
11980
11981 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11982
11983 * btrace.c (handle_pt_insn_events): New.
11984 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11985 STATUS. Split into this and ...
11986 (handle_pt_insn_event_flags): ... this.
11987
11988 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11989
11990 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11991 and struct pt_insn.resynced.
11992 * configure: Regenerated.
11993 * config.in: Regenerated.
11994
11995 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11996
11997 * btrace.c (ftrace_find_call_by_number): New function.
11998 (ftrace_new_function): Store objects, not pointers.
11999 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
12000 ftrace_new_gap, ftrace_update_function,
12001 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
12002 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
12003 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
12004 btrace_ends_with_single_insn, btrace_call_get): Account for
12005 btrace_thread_info::functions now storing objects.
12006 * btrace.h (struct btrace_thread_info): Add constructor.
12007 (struct btrace_thread_info) <functions>: Make std::vector.
12008 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
12009 Initialize with default values.
12010 * record-btrace.c (record_btrace_frame_sniffer): Account for
12011 btrace_thread_info::functions now storing objects.
12012
12013 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12014
12015 * btrace.c: Remove typedef bfun_s.
12016 (ftrace_new_gap): Directly add gaps to the list of gaps.
12017 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
12018 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
12019 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
12020 instead of gdb VEC.
12021
12022 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12023
12024 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
12025 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
12026 with btrace_thread_info::next_segment and
12027 btrace_thread_info::prev_segment.
12028 * btrace.h: Remove struct btrace_func_link.
12029 (struct btrace_function): Replace pair of function segment pointers
12030 with pair of indices.
12031 * python/py-record-btrace.c (btpy_call_prev_sibling,
12032 btpy_call_next_sibling): Replace references to
12033 btrace_thread_info::segment with btrace_thread_info::next_segment and
12034 btrace_thread_info::prev_segment.
12035 * record-btrace.c (record_btrace_frame_this_id): Use
12036 btrace_find_call_by_number.
12037
12038 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12039
12040 * btrace.c (ftrace_new_function, ftrace_fixup_level,
12041 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
12042 btrace_insn_next, btrace_insn_prev): Remove references to
12043 btrace_thread_info::flow.
12044 * btrace.h (struct btrace_function): Remove FLOW.
12045
12046 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12047
12048 * btrace.c (ftrace_find_call_by_number): New function.
12049 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
12050 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
12051 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
12052 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
12053 index.
12054 * btrace.h (struct btrace_function): Turn UP into an index.
12055 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
12056 as an index.
12057 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
12058 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
12059 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
12060
12061 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12062
12063 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12064 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12065 ftrace_update_function, ftrace_compute_global_level_offset,
12066 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
12067 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
12068 btrace_insn_end, btrace_is_empty): Remove references to
12069 btrace_thread_info::begin and btrace_thread_info::end.
12070 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
12071 (struct btrace_thread_info) <functions>: Adjust comment.
12072 * record-btrace.c (record_btrace_start_replaying): Remove reference to
12073 btrace_thread_info::begin.
12074
12075 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12076
12077 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
12078 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
12079 ftrace_update_function): Remove arguments that implicitly were always
12080 BTINFO->END.
12081 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
12082 Don't pass BTINFO->END.
12083
12084 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12085
12086 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
12087 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
12088 btrace_find_insn_by_number): Replace function segment pointer with
12089 index.
12090 (btrace_insn_cmp): Simplify.
12091 * btrace.h: (struct btrace_insn_iterator) Rename index to
12092 insn_index. Replace function segment pointer with index into function
12093 segment vector.
12094 * record-btrace.c (record_btrace_call_history): Replace function
12095 segment pointer use with index.
12096 (record_btrace_frame_sniffer): Retrieve function call segment through
12097 vector.
12098 (record_btrace_set_replay): Remove defunc't safety check.
12099
12100 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12101
12102 * btrace.c (btrace_ends_with_single_insn): New function.
12103 (btrace_call_get, btrace_call_number, btrace_call_begin,
12104 btrace_call_end, btrace_call_next, btrace_call_prev,
12105 btrace_find_call_by_number): Use index into call segment vector
12106 instead of pointer.
12107 (btrace_call_cmp): Simplify.
12108 * btrace.h (struct btrace_call_iterator): Replace function call segment
12109 pointer with index into vector.
12110 * record-btrace.c (record_btrace_call_history): Use index instead of
12111 pointer.
12112
12113 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12114
12115 * btrace.c (btrace_insn_begin, btrace_insn_end,
12116 btrace_find_insn_by_number): Add btinfo to iterator.
12117 * btrace.h (struct btrace_insn_iterator): Add btinfo.
12118
12119 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12120
12121 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
12122 and save pointers directly.
12123 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12124 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12125 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12126 changed signature of functions.
12127 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12128 (btrace_fetch): Remove code that adds btrace_function pointers to
12129 vector of btrace_functions.
12130 (btrace_clear): Simplify freeing vector of btrace_functions.
12131
12132 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12133
12134 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12135 Replace VEC_* with std::vector functions.
12136 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12137 (struct btrace_thread_info)<functions>: Change type to std::vector.
12138
12139 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12140
12141 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12142 "Removed targets and native configurations" up. Merge duplicate
12143 "New commands" sub-sections. Add "New options" sub-sections.
12144
12145 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12146
12147 * defs.h (copy_integer_to_size): New declaration.
12148 * findvar.c (copy_integer_to_size): New function.
12149 (do_cint_test): New selftest function.
12150 (copy_integer_to_size_test): Likewise.
12151 (_initialize_findvar): Likewise.
12152 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12153 (mips_fbsd_collect_reg): Use raw_collect_integer.
12154 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12155 (mips64_fill_gregset): Use raw_collect_integer
12156 (mips64_fill_fpregset): Use raw_supply_integer.
12157 * regcache.c (regcache::raw_supply_integer): New function.
12158 (regcache::raw_collect_integer): Likewise.
12159 * regcache.h: (regcache::raw_supply_integer): New declaration.
12160 (regcache::raw_collect_integer): Likewise.
12161
12162 2017-05-24 Yao Qi <yao.qi@linaro.org>
12163
12164 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12165 (COMMON_OBS): Add gdbarch-selftests.o.
12166 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12167 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12168 * gdbarch-selftests.c: New file.
12169 * regcache.h (regcache) <~regcache>: Mark it virtual if
12170 GDB_SELF_TEST.
12171 <raw_write>: Likewise.
12172
12173 2017-05-24 Yao Qi <yao.qi@linaro.org>
12174
12175 * regcache.c (current_regcache): Change it to
12176 regcache::current_regcache.
12177 (regcache_observer_target_changed): Update.
12178 (regcache_thread_ptid_changed): Make it a regcache static
12179 method.
12180 (regcache_thread_ptid_changed): Update.
12181 (class regcache_access): New.
12182 (current_regcache_test): Update.
12183 (_initialize_regcache): Update.
12184 * regcache.h: Include forward_list.
12185 (regcache): Declare regcache_thread_ptid_changed and declare
12186 registers_changed_ptid as friend.
12187
12188 2017-05-24 Yao Qi <yao.qi@linaro.org>
12189
12190 * i387-tdep.c (i387_register_to_value): Use register_size
12191 instead of TYPE_LENGTH.
12192 * m68k-tdep.c (m68k_register_to_value): Likewise.
12193
12194 2017-05-24 Yao Qi <yao.qi@linaro.org>
12195
12196 * i387-tdep.c (i387_convert_register_p): Return false if type
12197 code isn't TYPE_CODE_FLT.
12198
12199 2017-05-24 Yao Qi <yao.qi@linaro.org>
12200
12201 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12202 length is 4.
12203 (alpha_register_to_value): Remove type length check.
12204 (alpha_value_to_register): Likewise.
12205
12206 2017-05-24 Yao Qi <yao.qi@linaro.org>
12207
12208 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12209 TYPE_CODE_FLT.
12210
12211 2017-05-24 Yao Qi <yao.qi@linaro.org>
12212
12213 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12214 TYPE_CODE_FLT or not.
12215
12216 2017-05-24 Yao Qi <yao.qi@linaro.org>
12217
12218 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12219 * avr-tdep.c (avr_gdbarch_init): Likewise.
12220 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12221 * cris-tdep.c (cris_gdbarch_init): Likewise.
12222 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12223 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12224 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12226 * mep-tdep.c (mep_gdbarch_init): Likewise.
12227 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12228 * mips-tdep.c (mips_gdbarch_init): Likewise.
12229 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12230 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12231 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12232 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12233 * v850-tdep.c (v850_gdbarch_init): Likewise.
12234
12235 2017-05-24 Yao Qi <yao.qi@linaro.org>
12236
12237 * selftest-arch.c (tests_with_arch): Call registers_changed
12238 and reinit_frame_cache.
12239 * selftest.c (run_self_tests): Likewise.
12240
12241 2017-05-24 Yao Qi <yao.qi@linaro.org>
12242
12243 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12244 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12245
12246 2017-05-24 Yao Qi <yao.qi@linaro.org>
12247
12248 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12249 set_gdbarch_print_insn.
12250
12251 2017-05-24 Yao Qi <yao.qi@linaro.org>
12252
12253 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12254 set_gdbarch_print_insn.
12255
12256 2017-05-24 Yao Qi <yao.qi@linaro.org>
12257
12258 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12259 set_gdbarch_print_insn.
12260 * arc-tdep.c (arc_gdbarch_init): Likewise.
12261 * arch-utils.c: include dis-asm.h.
12262 (default_print_insn): New function.
12263 * arch-utils.h (default_print_insn): Declare.
12264 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12265 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12266 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12267 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12268 * frv-tdep.c (frv_gdbarch_init): Likewise.
12269 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12270 * gdbarch.sh (print_insn): Use default_print_insn.
12271 * gdbarch.c: Regenerated.
12272 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12273 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12274 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12275 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12276 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12277 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12278 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12279 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12280 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12281 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12282 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12283 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12284 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12285 * mt-tdep.c (mt_gdbarch_init): Likewise.
12286 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12287 * nios2-tdep.c (nios2_print_insn): Remove.
12288 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12289 * rx-tdep.c (rx_gdbarch_init): Likewise.
12290 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12291 * score-tdep.c (score_print_insn): Remove.
12292 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12293 * sh-tdep.c (sh_gdbarch_init): Likewise.
12294 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12295 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12296 * tic6x-tdep.c (tic6x_print_insn): Remove.
12297 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12298 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12299 * v850-tdep.c (v850_gdbarch_init): Likewise.
12300 * vax-tdep.c (vax_gdbarch_init): Likewise.
12301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12302 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12303
12304 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12305
12306 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12307 (MIPS_FP0_REGNUM): Remove.
12308 (MIPS_FSR_REGNUM): Remove.
12309 (mips_fbsd_supply_fpregs): Use mips_regnum.
12310 (mips_fbsd_supply_gregs): Likewise.
12311 (mips_fbsd_collect_fpregs): Likewise.
12312 (mips_fbsd_collect_gregs): Likewise.
12313
12314 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12315
12316 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12317 (getpfpregs_supplies): New function.
12318 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12319 getfpregs_supplies.
12320 (mips_fbsd_store_inferior_registers): Likewise.
12321
12322 2017-05-22 Pedro Alves <palves@redhat.com>
12323
12324 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12325 maintainer.
12326
12327 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12328
12329 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12330 (store_register): Likewise.
12331 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12332 (get_decimal_float_return_value): Likewise.
12333 (do_ppc_sysv_return_value): Likewise.
12334 (ppc64_sysv_abi_push_integer): Likewise.
12335 (ppc64_sysv_abi_push_freg): Likewise.
12336 (ppc64_sysv_abi_return_value_base): Likewise.
12337 (ppc64_sysv_abi_return_value): Likewise.
12338 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12339 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12340 * rs6000-nat.c: Likewise.
12341 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12342 (rs6000_value_to_register): Likewise.
12343 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12344
12345 2017-05-21 Tom Tromey <tom@tromey.com>
12346
12347 PR rust/21466:
12348 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12349 arrays as "[T]", not "[T; ]".
12350
12351 2017-05-19 Tom Tromey <tom@tromey.com>
12352
12353 PR rust/21484:
12354 * rust-lang.c (exp_descriptor_rust): New function.
12355 (rust_language_defn): Use it.
12356 * p-lang.c (pascal_language_defn): Update.
12357 * opencl-lang.c (opencl_language_defn): Update.
12358 * objc-lang.c (objc_language_defn): Update.
12359 * m2-lang.c (m2_language_defn): Update.
12360 * language.h (struct language_defn)
12361 <la_watch_location_expression>: New member.
12362 * language.c (unknown_language_defn, auto_language_defn)
12363 (local_language_defn): Update.
12364 * go-lang.c (go_language_defn): Update.
12365 * f-lang.c (f_language_defn): Update.
12366 * d-lang.c (d_language_defn): Update.
12367 * c-lang.h (c_watch_location_expression): Declare.
12368 * c-lang.c (c_watch_location_expression): New function.
12369 (c_language_defn, cplus_language_defn, asm_language_defn)
12370 (minimal_language_defn): Use it.
12371 * breakpoint.c (watch_command_1): Call
12372 la_watch_location_expression.
12373 * ada-lang.c (ada_language_defn): Update.
12374
12375 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12376
12377 PR tui/21482
12378 * gdb_curses.h (NOMACROS): Define.
12379 (NCURSES_NOMACROS): Define.
12380
12381 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12382
12383 PR tui/21482
12384 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12385 arg to char *.
12386 * tui/tui-wingeneral.c (box_win): Likewise.
12387 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12388 (tui_show_source_line): Likewise.
12389 (tui_show_exec_info_content): Likewise.
12390
12391 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12392
12393 * sparc-tdep.c (sparc_structure_return_p)
12394 (sparc_arg_on_registers_p): New functions.
12395 (sparc32_store_arguments): Use them.
12396 * sparc64-tdep.c (sparc64_16_byte_align_p)
12397 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12398 Handle TYPE_CODE_ARRAY.
12399
12400 2017-05-17 Yao Qi <yao.qi@linaro.org>
12401
12402 * cli/cli-decode.c (add_alias_cmd): New function.
12403 * command.h (add_alias_cmd): Declare.
12404 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12405 instead call add_alias_cmd.
12406
12407 2017-05-17 Pedro Alves <palves@redhat.com>
12408
12409 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12410 (nat_makefile_frag): ... this. All references updated.
12411 * configure.ac: Likewise.
12412 * configure.nat: Likewise. Enhance comments.
12413 * configure: Regenerate.
12414
12415 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12416
12417 * procfs.c (procfs_create_inferior): Change prototype to match
12418 definition.
12419
12420 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12421
12422 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12423 C++ compiler warning.
12424
12425 2017-05-12 Tom Tromey <tom@tromey.com>
12426
12427 PR rust/21483:
12428 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12429 recurse, just call value_struct_elt directly.
12430
12431 2017-05-12 Tom Tromey <tom@tromey.com>
12432
12433 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12434 OP_RUST_ARRAY>: Fix.
12435
12436 2017-05-12 Tom Tromey <tom@tromey.com>
12437
12438 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12439
12440 2017-05-09 Yao Qi <yao.qi@linaro.org>
12441
12442 * regcache.c: Include <forward_list>.
12443 (struct regcache_list): Remove.
12444 (current_regcache): Update.
12445 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12446 (regcache_thread_ptid_changed): Likewise.
12447 (registers_changed_ptid): Likewise.
12448 (current_regcache_size): Likewise.
12449
12450 2017-05-09 Yao Qi <yao.qi@linaro.org>
12451
12452 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12453 (current_regcache_size): New function.
12454 (current_regcache_test): New function.
12455 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12456
12457 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12458
12459 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12460 (print_gp_register_row): Use get_frame_register_value.
12461
12462 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12463
12464 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12465 (mips_supply_fpregset): Likewise.
12466 (mips64_supply_gregset): Likewise.
12467
12468 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12469
12470 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12471 regcache->raw_supply_zeroed.
12472
12473 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12474
12475 * configure.nat: Rearrange 'case' statements to match
12476 host before cpu.
12477
12478 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12479
12480 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12481 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12482 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12483 "@nat_extra_makefile_frag@".
12484 (Makefile): Remove dependency on "@frags@".
12485 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12486 (data-directory/Makefile): Likewise.
12487 * config/aarch64/linux.mh: Deleted; moved contents to
12488 "gdb/configure.nat".
12489 * config/alpha/alpha-linux.mh: Likewise.
12490 * config/alpha/nbsd.mh: Likewise.
12491 * config/arm/linux.mh: Likewise.
12492 * config/arm/nbsdelf.mh: Likewise.
12493 * config/i386/cygwin.mh: Likewise.
12494 * config/i386/cygwin64.mh: Likewise.
12495 * config/i386/darwin.mh: Likewise.
12496 * config/i386/fbsd.mh: Likewise.
12497 * config/i386/fbsd64.mh: Likewise.
12498 * config/i386/go32.mh: Likewise.
12499 * config/i386/i386gnu.mh: Likewise.
12500 * config/i386/i386sol2.mh: Likewise.
12501 * config/i386/linux.mh: Likewise.
12502 * config/i386/linux64.mh: Likewise.
12503 * config/i386/mingw.mh: Likewise.
12504 * config/i386/mingw64.mh: Likewise.
12505 * config/i386/nbsd64.mh: Likewise.
12506 * config/i386/nbsdelf.mh: Likewise.
12507 * config/i386/nto.mh: Likewise.
12508 * config/i386/obsd.mh: Likewise.
12509 * config/i386/obsd64.mh: Likewise.
12510 * config/i386/sol2-64.mh: Likewise.
12511 * config/ia64/linux.mh: Likewise.
12512 * config/m32r/linux.mh: Likewise.
12513 * config/m68k/linux.mh: Likewise.
12514 * config/m68k/nbsdelf.mh: Likewise.
12515 * config/m68k/obsd.mh: Likewise.
12516 * config/m88k/obsd.mh: Likewise.
12517 * config/mips/fbsd.mh: Likewise.
12518 * config/mips/linux.mh: Likewise.
12519 * config/mips/nbsd.mh: Likewise.
12520 * config/mips/obsd64.mh: Likewise.
12521 * config/pa/linux.mh: Likewise.
12522 * config/pa/nbsd.mh: Likewise.
12523 * config/pa/obsd.mh: Likewise.
12524 * config/powerpc/aix.mh: Likewise.
12525 * config/powerpc/fbsd.mh: Likewise.
12526 * config/powerpc/linux.mh: Likewise.
12527 * config/powerpc/nbsd.mh: Likewise.
12528 * config/powerpc/obsd.mh: Likewise.
12529 * config/powerpc/ppc64-linux.mh: Likewise.
12530 * config/powerpc/spu-linux.mh: Likewise.
12531 * config/s390/linux.mh: Likewise.
12532 * config/sh/nbsd.mh: Likewise.
12533 * config/sparc/fbsd.mh: Likewise.
12534 * config/sparc/linux.mh: Likewise.
12535 * config/sparc/linux64.mh: Likewise.
12536 * config/sparc/nbsd64.mh: Likewise.
12537 * config/sparc/nbsdelf.mh: Likewise.
12538 * config/sparc/obsd64.mh: Likewise.
12539 * config/sparc/sol2.mh: Likewise.
12540 * config/tilegx/linux.mh: Likewise.
12541 * config/vax/nbsdelf.mh: Likewise.
12542 * config/vax/obsd.mh: Likewise.
12543 * config/xtensa/linux.mh: Likewise.
12544 * config/i386/i386gnu.mn: New file, with excerpts from
12545 "config/i386/i386gnu.mh".
12546 * configure: Regenerate.
12547 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12548 *.mh files under "gdb/config".
12549 * configure.nat: New file, with contents from the
12550 "gdb/config/*/*.mh" files.
12551
12552 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12553
12554 * btrace.c (btrace_clear): Free insn vector.
12555
12556 2017-05-05 Pedro Alves <palves@redhat.com>
12557
12558 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12559 * configure: Regenerate.
12560
12561 2017-05-04 Pedro Alves <palves@redhat.com>
12562
12563 * Makefile.in (SFILES): Add progspace-and-thread.c.
12564 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12565 (COMMON_OBS): Add progspace-and-thread.o.
12566 * breakpoint.c: Include "progspace-and-thread.h".
12567 (update_inserted_breakpoint_locations)
12568 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12569 Use scoped_restore_current_pspace_and_thread.
12570 (create_std_terminate_master_breakpoint): Use
12571 scoped_restore_current_program_space.
12572 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12573 (print_breakpoint_location): Use
12574 scoped_restore_current_program_space.
12575 (bp_loc_is_permanent): Use
12576 scoped_restore_current_pspace_and_thread.
12577 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12578 (download_tracepoint_locations): Use
12579 scoped_restore_current_pspace_and_thread.
12580 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12581 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12582 (enum step_over_calls_kind): Moved from inferior.h.
12583 (class scoped_restore_current_thread): New class.
12584 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12585 declaration.
12586 (scoped_restore_current_thread): New class.
12587 * infcmd.c: Include "common/gdb_optional.h".
12588 (continue_1, proceed_after_attach): Use
12589 scoped_restore_current_thread.
12590 (notice_new_inferior): Use scoped_restore_current_thread.
12591 * inferior.c: Include "progspace-and-thread.h".
12592 (restore_inferior, save_current_inferior): Delete.
12593 (add_inferior_command, clone_inferior_command): Use
12594 scoped_restore_current_pspace_and_thread.
12595 * inferior.h (scoped_restore_current_inferior): New class.
12596 * infrun.c: Include "progspace-and-thread.h" and
12597 "common/gdb_optional.h".
12598 (follow_fork_inferior): Use
12599 scoped_restore_current_pspace_and_thread.
12600 (scoped_restore_exited_inferior): New class.
12601 (handle_vfork_child_exec_or_exit): Use
12602 scoped_restore_exited_inferior,
12603 scoped_restore_current_pspace_and_thread,
12604 scoped_restore_current_thread and scoped_restore.
12605 (fetch_inferior_event): Use scoped_restore_current_thread.
12606 * linespec.c (decode_line_full, decode_line_1): Use
12607 scoped_restore_current_program_space.
12608 * mi/mi-main.c: Include "progspace-and-thread.h".
12609 (exec_continue): Use scoped_restore_current_thread.
12610 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12611 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12612 * proc-service.c (ps_pglobal_lookup): Use
12613 scoped_restore_current_program_space.
12614 * progspace-and-thread.c: New file.
12615 * progspace-and-thread.h: New file.
12616 * progspace.c (release_program_space, clone_program_space): Use
12617 scoped_restore_current_program_space.
12618 (restore_program_space, save_current_program_space)
12619 (save_current_space_and_thread): Delete.
12620 (switch_to_program_space_and_thread): Moved to
12621 progspace-and-thread.c.
12622 * progspace.h (save_current_program_space)
12623 (save_current_space_and_thread): Delete declarations.
12624 (scoped_restore_current_program_space): New class.
12625 * remote.c (remote_btrace_maybe_reopen): Use
12626 scoped_restore_current_thread.
12627 * symtab.c: Include "progspace-and-thread.h".
12628 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12629 * thread.c (print_thread_info_1): Use
12630 scoped_restore_current_thread.
12631 (struct current_thread_cleanup): Delete.
12632 (do_restore_current_thread_cleanup)
12633 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12634 (scoped_restore_current_thread::~scoped_restore_current_thread):
12635 ... this new dtor.
12636 (make_cleanup_restore_current_thread): Rename/convert to ...
12637 (scoped_restore_current_thread::scoped_restore_current_thread):
12638 ... this new ctor.
12639 (thread_apply_all_command): Use scoped_restore_current_thread.
12640 (thread_apply_command): Use scoped_restore_current_thread.
12641 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12642 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12643
12644 2017-05-04 Pedro Alves <palves@redhat.com>
12645
12646 * thread.c (make_cleanup_restore_current_thread): Move
12647 find_thread_ptid call before the is_stopped call. Assert that the
12648 thread is found. Replace is_stopped call by checking the thread's
12649 state directly. Remove unnecessary NULL-thread check.
12650
12651 2017-05-04 Pedro Alves <palves@redhat.com>
12652
12653 * corelow.c (thread_section_name): New class.
12654 (get_core_register_section, get_core_siginfo): Use it.
12655
12656 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12657
12658 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12659 (get_core_register_section): Remove xfree of NULL pointer.
12660
12661 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12662
12663 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12664 * regcache.c (regcache::raw_supply_zeroed): New function.
12665 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12666
12667 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12668
12669 * gdbarch.sh: Remove commented out definition of
12670 TARGET_CHAR_BIT.
12671 * gdbarch.h: Re-generate.
12672
12673 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12674
12675 * configure: Regenerate.
12676
12677 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12678
12679 * solib-target.c (solib_target_relocate_section_addresses):
12680 Remove num_section_bases, num_bases, segment_bases variables.
12681
12682 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12683
12684 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12685
12686 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12687
12688 * solib-target.c: Include <vector>
12689 (struct lm_info_target) <~lm_info_target>: Remove.
12690 <segment_bases, section_bases>: Change type to
12691 std::vector<CORE_ADDR>.
12692 (library_list_start_segment, library_list_start_section,
12693 library_list_end_library,
12694 solib_target_relocate_section_addresses): Adjust.
12695
12696 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12697
12698 * gdbarch.sh (software_single_step): Change return type to
12699 std::vector<CORE_ADDR>.
12700 * gdbarch.c, gdbarch.h: Re-generate.
12701 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12702 Adjust.
12703 (arm_deal_with_atomic_sequence_raw): Adjust.
12704 (thumb_get_next_pcs_raw): Adjust.
12705 (arm_get_next_pcs_raw): Adjust.
12706 (arm_get_next_pcs): Adjust.
12707 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12708 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12709 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12710 (alpha_software_single_step): Adjust.
12711 * alpha-tdep.h (alpha_software_single_step): Adjust.
12712 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12713 * arm-tdep.c (arm_software_single_step): Adjust.
12714 (arm_breakpoint_kind_from_current_state): Adjust.
12715 * arm-tdep.h (arm_software_single_step): Adjust.
12716 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12717 * cris-tdep.c (cris_software_single_step): Adjust.
12718 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12719 (micromips_deal_with_atomic_sequence): Adjust.
12720 (deal_with_atomic_sequence): Adjust.
12721 (mips_software_single_step): Adjust.
12722 * mips-tdep.h (mips_software_single_step): Adjust.
12723 * moxie-tdep.c (moxie_software_single_step): Adjust.
12724 * nios2-tdep.c (nios2_software_single_step): Adjust.
12725 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12726 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12727 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12728 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12729 * sparc-tdep.c (sparc_software_single_step): Adjust.
12730 * spu-tdep.c (spu_software_single_step): Adjust.
12731 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12732
12733 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12734
12735 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12736 * gdbarch.h: Re-generate.
12737
12738 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12739
12740 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12741 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12742 * python/py-instruction.c, python/py-instruction.h: New file.
12743 * python/py-record.c: Add py-instruction.h include.
12744 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12745 gdb.RecordInstruction.
12746 * python/python-internal.h: Add gdbpy_initialize_instruction
12747 declaration.
12748 * python/python.c (do_start_initialization): Add
12749 gdbpy_initialize_instruction.
12750
12751 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12752
12753 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12754 Remove.
12755 (btrace_func_from_recpy_func): New function.
12756 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12757 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12758 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12759 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12760 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12761 Also, use new helper functions.
12762 (btpy_list_item): Use new helper functions.
12763 (recpy_bt_function_call_history): Use new type name.
12764 (btpy_call_getset): Remove.
12765 (gdbpy_initialize_btrace): Remove code to initialize
12766 gdb.BtraceFunctionCall.
12767 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12768 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12769 recpy_bt_func_prev, recpy_bt_func_next): New export.
12770 * python/py-record.c (recpy_func_type): New static object.
12771 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12772 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12773 recpy_func_next): New function.
12774 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12775 (recpy_func_getset): New static object.
12776 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12777 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12778
12779 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12780
12781 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12782 (btpy_object, btpy_insn_type, btpy_new): Remove.
12783 (btpy_list_object): Use gdb.RecordInstruction type instead of
12784 gdb.BtraceInstruction type.
12785 (btrace_insn_from_recpy_insn): New function.
12786 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12787 btpy_new.
12788 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12789 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12790 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12791 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12792 instead of btpy_object.
12793 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12794 btpy_insn_data, btpy_insn_decode): Rename to ...
12795 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12796 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12797 recpy_bt_insn_decode): This. Also, use new helper functions.
12798 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12799 recpy_insn_type.
12800 (btpy_insn_getset): Remove.
12801 (gdbpy_initialize_btrace): Remove code to initialize
12802 gdb.BtraceInstruction. Use recpy_element_object.
12803 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12804 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12805 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12806 * python/py-record.c (recpy_insn_type): New static object.
12807 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12808 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12809 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12810 New function.
12811 (recpy_insn_getset): New static object.
12812 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12813 * python/py-record.h (recpy_element_object): New typedef.
12814 (recpy_insn_type, recpy_insn_new): New export.
12815
12816 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12817
12818 * py-record-btrace.c (btpy_insn_new): Removed.
12819 (btpy_insn_or_gap_new): New function.
12820 (btpy_insn_error): Removed.
12821 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12822 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12823 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12824 btpy_insn_or_gap_new instead of btpy_insn_new.
12825 (btpy_insn_getset): Remove btpy_insn_error.
12826 * py-record.c (recpy_gap_type): New static object.
12827 (recpy_gap_object): New typedef.
12828 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12829 recpy_gap_reason_string): New function.
12830 (recpy_gap_getset): New static object.
12831 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12832 * py-record.h (recpy_gap_new): New export.
12833
12834 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12835
12836 * python/py-record.c (recpy_ptid): Remove.
12837 (recpy_record_getset): Remove recpy_ptid.
12838
12839 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12840
12841 * btrace.c (btrace_fetch): Set inferior_ptid.
12842 * python/py-record-btrace.c: Add "py-record.h" include.
12843 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12844 recpy_bt_end, recpy_bt_instruction_history,
12845 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12846 in gdb.Record object instead of current ptid.
12847 * python/py-record.c: Include new "py-record.h" file.
12848 (recpy_record_object): Moved to py-record.h.
12849 * python/py-record.h: New file.
12850
12851 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12852
12853 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12854 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12855 indentation.
12856
12857 2017-05-01 Joel Brobecker <brobecker@adacore.com>
12858
12859 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12860 the past maintainers section.
12861
12862 2017-04-28 Yao Qi <yao.qi@linaro.org>
12863
12864 * infcmd.c (get_return_value): Use regcache ctor, and remove
12865 cleanup.
12866
12867 2017-04-28 Yao Qi <yao.qi@linaro.org>
12868 Pedro Alves <palves@redhat.com>
12869
12870 * regcache.c (regcache::regcache): New tag dispatch ctor.
12871 (do_cooked_read): Moved above.
12872 (regcache_dup): Use the tag dispatch ctor..
12873 * regcache.h (regcache): Declare ctor, delete copy ctor and
12874 assignment operator, remove friend regcache_dup.
12875
12876 2017-04-28 Yao Qi <yao.qi@linaro.org>
12877
12878 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12879 call method save instead of regcache_cpy.
12880 * regcache.h (struct regcache): Make regcache_dup a friend.
12881
12882 2017-04-28 Yao Qi <yao.qi@linaro.org>
12883
12884 * regcache.c (struct regcache): Move to regcache.h
12885 (regcache::arch): New method.
12886 (regcache_get_ptid): Update.
12887 (get_regcache_arch): Call arch method.
12888 (get_regcache_aspace): Call method aspace.
12889 (register_buffer): Change it to method.
12890 (regcache_save): Change it to regcache::save.
12891 (regcache_restore): Likewise.
12892 (regcache_cpy_no_passthrough): Remove the declaration.
12893 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12894 (regcache_cpy_no_passthrough): Change it to method
12895 cpy_no_passthrough.
12896 (regcache_register_status): Change it to method
12897 get_register_status.
12898 (regcache_invalidate): Change it to method invalidate.
12899 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12900 (regcache_raw_update): Change it to method raw_update.
12901 (regcache_raw_read): Likewise.
12902 (regcache_raw_read_signed): Likewise.
12903 (regcache_raw_read_unsigned): Likewise.
12904 (regcache_raw_write_signed): Likewise.
12905 (regcache_raw_write_unsigned): Likewise.
12906 (regcache_cooked_read): Likewise.
12907 (regcache_cooked_read_value): Likewise.
12908 (regcache_cooked_read_signed): Likewise.
12909 (regcache_cooked_read_unsigned): Likewise.
12910 (regcache_cooked_write_signed): Likewise.
12911 (regcache_cooked_write_unsigned): Likewise.
12912 (regcache_raw_set_cached_value): Likewise.
12913 (regcache_raw_write): Likewise.
12914 (regcache_cooked_write): Likewise.
12915 (regcache_xfer_part): Likewise.
12916 (regcache_raw_read_part): Likewise.
12917 (regcache_raw_write_part): Likewise.
12918 (regcache_cooked_read_part): Likewise.
12919 (regcache_cooked_write_part): Likewise.
12920 (regcache_raw_supply): Likewise.
12921 (regcache_raw_collect): Likewise.
12922 (regcache_transfer_regset): Likewise.
12923 (regcache_supply_regset): Likewise.
12924 (regcache_collect_regset): Likewise.
12925 (regcache_debug_print_register): Likewise.
12926 (enum regcache_dump_what): Move it to regcache.h.
12927 (regcache_dump): Change it to method dump.
12928 * regcache.h (enum regcache_dump_what): New.
12929 (class regcache): New.
12930 * target.c (target_fetch_registers): Call method
12931 debug_print_register.
12932 (target_store_registers): Likewise.
12933
12934 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12935
12936 * windows-nat.c (struct lm_info_windows): Initialize field.
12937 (windows_make_so): Allocate lm_info_windows with new.
12938 (windows_free_so): Free lm_info_windows with delete.
12939
12940 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12941
12942 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12943 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12944 cleanup.
12945 (darwin_free_so): Free lm_info_darwin with delete.
12946
12947 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12948
12949 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12950 <l_addr_p>: Change type to bool.
12951 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12952 (svr4_free_so): Free lm_info_svr4 with delete.
12953 (svr4_copy_library_list): Replace memcpy with call to copy
12954 constructor.
12955 (library_list_start_library, svr4_default_sos): Allocate
12956 lm_info_svr4 with new.
12957
12958 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12959
12960 * solib-target.c (struct lm_info_target): Add destructor,
12961 initialize fields.
12962 <name>: Change type to std::string.
12963 (library_list_start_library): Allocate lm_info_target with new.
12964 (solib_target_free_library_list): Free lm_info_target with
12965 delete.
12966 (solib_target_current_sos): Adapt to std::string.
12967 (solib_target_free_so): Free lm_info_target with delete.
12968
12969 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12970
12971 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12972 fields.
12973 (frv_current_sos): Allocate lm_info_frv with new.
12974 (frv_relocate_main_executable): Free lm_info_frv with delete,
12975 allocate with new.
12976 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12977
12978 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12979
12980 * solib-frv.c (struct lm_info_frv): Fix indentation.
12981
12982 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12983
12984 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12985 map field.
12986 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12987 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12988 and allocate with new.
12989 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12990
12991 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12992
12993 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12994 <filename, member_name>: Change type to std::string.
12995 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12996 (library_list_start_library): Allocate lm_info_aix with new.
12997 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12998 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12999 with copy constructor.
13000
13001 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13002
13003 * solist.h (struct lm_info): Remove.
13004 (struct lm_info_base): New class.
13005 (struct so_list) <lm_info>: Change type to lm_info_base *.
13006 * nto-tdep.c (struct lm_info): Remove.
13007 (lm_addr): Adjust.
13008 * solib-aix.c (struct lm_info): Rename to ...
13009 (struct lm_info_aix): ... this. Extend lm_info_base.
13010 (lm_info_p): Rename to ...
13011 (lm_info_aix_p): ... this, and adjust.
13012 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
13013 solib_aix_parse_libraries, library_list_start_library,
13014 solib_aix_free_library_list, solib_aix_parse_libraries,
13015 solib_aix_get_library_list,
13016 solib_aix_relocate_section_addresses, solib_aix_free_so,
13017 solib_aix_get_section_offsets,
13018 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
13019 Adjust.
13020 (struct solib_aix_inferior_data) <library_list>: Adjust.
13021 * solib-darwin.c (struct lm_info): Rename to ...
13022 (struct lm_info_darwin): ... this. Extend lm_info_base.
13023 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
13024 * solib-dsbt.c (struct lm_info): Rename to ...
13025 (struct lm_info_dsbt): ... this. Extend lm_info_base.
13026 (struct dsbt_info) <main_executable_lm_info): Adjust.
13027 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
13028 dsbt_relocate_section_addresses): Adjust.
13029 * solib-frv.c (struct lm_info): Rename to ...
13030 (struct lm_info_frv): ... this. Extend lm_info_base.
13031 (main_executable_lm_info): Adjust.
13032 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
13033 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
13034 find_canonical_descriptor_in_load_object,
13035 frv_fdpic_find_canonical_descriptor): Adjust.
13036 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
13037 to lm_info_svr4.
13038 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
13039 svr4_clear_so, svr4_copy_library_list,
13040 library_list_start_library, svr4_default_sos, svr4_read_so_list,
13041 svr4_current_sos, svr4_fetch_objfile_link_map,
13042 solist_update_incremental): Adjust.
13043 * solib-svr4.h (struct lm_info_svr4): Move here from
13044 solib-svr4.c.
13045 * solib-target.c (struct lm_info): Rename to ...
13046 (struct lm_info_target): ... this. Extend lm_info_base.
13047 (lm_info_p): Rename to ...
13048 (lm_info_target_p): ... this.
13049 (solib_target_parse_libraries, library_list_start_segment,
13050 library_list_start_section, library_list_start_library,
13051 library_list_end_library, solib_target_free_library_list,
13052 solib_target_current_sos, solib_target_free_so,
13053 solib_target_relocate_section_addresses): Adjust.
13054 * windows-nat.c (struct lm_info): Rename to ...
13055 (struct lm_info_windows): ... this. Extend lm_info_base.
13056 (windows_make_so, handle_load_dll, handle_unload_dll,
13057 windows_xfer_shared_libraries): Adjust.
13058
13059 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
13060
13061 * solib-darwin.c (struct darwin_so_list): Remove.
13062 (darwin_current_sos): Allocate an so_list object instead of a
13063 darwin_so_list, separately allocate an lm_info object.
13064 (darwin_free_so): Free lm_info.
13065
13066 2017-04-28 John Baldwin <jhb@FreeBSD.org>
13067
13068 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
13069 with fprintf_filtered.
13070
13071 2017-04-28 Yao Qi <yao.qi@linaro.org>
13072
13073 * regcache.c (regcache::regcache): New function.
13074 (regcache::~regcache): New function.
13075 (regcache_xmalloc_1): Remove.
13076 (regcache_xmalloc): Call new regcache.
13077 (regcache_xfree): Call delete regcache.
13078 (get_thread_arch_aspace_regcache): Call new regcache.
13079
13080 2017-04-28 Yao Qi <yao.qi@linaro.org>
13081
13082 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
13083 lwp instead of ptid_get_lwp.
13084
13085 2017-04-28 Yao Qi <yao.qi@linaro.org>
13086
13087 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
13088 lwp_info instead of getting from inferior_ptid.
13089
13090 2017-04-27 Keith Seitz <keiths@redhat.com>
13091
13092 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
13093 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
13094 (CV_CONVERSION_BADNESS): Define.
13095 (rank_one_type): Remove overly restrictive rvalue reference
13096 rank checks.
13097 Add cv-qualifier checks and subranks for type equality.
13098 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
13099 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
13100 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
13101
13102 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
13103
13104 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
13105 count when creating the object.
13106
13107 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
13108 Ulrich Weigand <uweigand@de.ibm.com>
13109
13110 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
13111 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
13112 is used in AIX.
13113 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
13114 (process_xcoff_symbol): Likewise.
13115 (scan_xcoff_symtab): Likewise.
13116
13117 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13118
13119 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
13120 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
13121 (ia64_access_reg): Use get_frame_register_unsigned.
13122 (ia64_access_rse_reg): Likewise.
13123 (ia64_libunwind_frame_prev_register): Likewise.
13124
13125 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13126
13127 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13128 * gdbarch.c: Regenerated.
13129 * gdbarch.h: Regenerated.
13130 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13131 visibility external.
13132 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13133 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13134 (enum cfa_how_kind): Move to ...
13135 (struct dwarf2_frame_state_reg_info): Likewise.
13136 (struct dwarf2_frame_state): Likewise.
13137 * dwarf2-frame.h: ... here.
13138 (dwarf2_frame_state_alloc_regs): New declaration.
13139 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13140 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13141
13142 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13143
13144 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13145 regcache_raw_read_unsigned.
13146 (xtensa_pseudo_register_write): Likewise.
13147
13148 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13149
13150 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13151 (nds32_pseudo_register_write): Likewise.
13152
13153 2017-04-25 Yao Qi <yao.qi@linaro.org>
13154
13155 * regcache.c (struct regcache) <readonly_p>: Change its type
13156 to bool.
13157 (regcache_xmalloc_1): Update parameter type and callers update.
13158
13159 2017-04-25 Yao Qi <yao.qi@linaro.org>
13160
13161 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13162 set_gdbarch_wchar_bit.
13163 * arm-tdep.c (arm_gdbarch_init): Likewise.
13164
13165 2017-04-25 Pedro Alves <palves@redhat.com>
13166
13167 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13168 (BothAreRelocatable, memcopy, memmove): Don't define.
13169 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13170 macros.
13171
13172 2017-04-25 Pedro Alves <palves@redhat.com>
13173
13174 * common/common-defs.h: Include "common/poison.h".
13175 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13176 and adjust.
13177 * common/poison.h: New file.
13178 * common/traits.h: Include <type_traits>.
13179 (Not, Or, Requires): New, moved from common/function-view.h.
13180
13181 2017-04-25 Pedro Alves <palves@redhat.com>
13182
13183 * breakpoint.h (struct breakpoint): In-class initialize all
13184 fields. Make boolean fields "bool".
13185 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13186 memset call and initializations no longer necessary.
13187
13188 2017-04-25 Pedro Alves <palves@redhat.com>
13189
13190 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13191 reference.
13192 (pt_btrace_insn): New function.
13193 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13194
13195 2017-04-25 Pedro Alves <palves@redhat.com>
13196
13197 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13198 "base" field and inherit from "bp_location" instead. Add
13199 non-default ctor.
13200 (allocate_location_exception): Use new non-default ctor.
13201 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13202 (init_bp_location): Convert to ...
13203 (bp_location::bp_location): ... this new ctor, and remove memset
13204 call.
13205 (base_breakpoint_allocate_location): Use the new non-default ctor.
13206 * breakpoint.h (bp_location): Now a class. Declare default and
13207 non-default ctors. In-class initialize all members.
13208 (init_bp_location): Remove declaration.
13209
13210 2017-04-25 Pedro Alves <palves@redhat.com>
13211
13212 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13213 assignment operator.
13214
13215 2017-04-24 Yao Qi <yao.qi@linaro.org>
13216
13217 * doublest.c (convert_doublest_to_floatformat): Call
13218 floatformat_totalsize_bytes.
13219
13220 2017-04-22 Tom Tromey <tom@tromey.com>
13221
13222 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13223 ui_out_emit_list.
13224 * stack.c (print_frame): Use ui_out_emit_list.
13225 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13226 ui_out_emit_list.
13227 * mi/mi-main.c (print_one_inferior)
13228 (mi_cmd_data_list_register_names)
13229 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13230 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13231 ui_out_emit_list.
13232 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13233 (mi_output_solib_attribs): Use ui_out_emit_list,
13234 ui_out_emit_tuple.
13235 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13236 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13237 (mi_cmd_stack_list_args, list_args_or_locals): Use
13238 ui_out_emit_list.
13239 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13240 * breakpoint.c (print_solib_event, output_thread_groups): Use
13241 ui_out_emit_list.
13242
13243 2017-04-22 Tom Tromey <tom@tromey.com>
13244
13245 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13246 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13247 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13248
13249 2017-04-22 Tom Tromey <tom@tromey.com>
13250
13251 * tracepoint.c (tvariables_info_1)
13252 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13253
13254 2017-04-22 Tom Tromey <tom@tromey.com>
13255
13256 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13257 annotate_arg_emitter.
13258 * breakpoint.c (print_mention_watchpoint)
13259 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13260 * annotate.h (struct annotate_arg_emitter): New.
13261
13262 2017-04-22 Tom Tromey <tom@tromey.com>
13263
13264 * record-btrace.c (record_btrace_insn_history)
13265 (record_btrace_insn_history_range, record_btrace_call_history)
13266 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13267 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13268 ui_out_emit_tuple.
13269 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13270 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13271 * skip.c (skip_info): Use ui_out_emit_tuple.
13272 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13273 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13274 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13275 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13276 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13277 ui_out_emit_tuple.
13278 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13279 (output_register, mi_cmd_data_read_memory)
13280 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13281 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13282 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13283 Use ui_out_emit_tuple.
13284 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13285 ui_out_emit_tuple.
13286 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13287 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13288 * linux-thread-db.c (info_auto_load_libthread_db): Use
13289 ui_out_emit_tuple.
13290 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13291 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13292 * disasm.c (do_mixed_source_and_assembly_deprecated)
13293 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13294 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13295 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13296 * breakpoint.c (print_one_breakpoint_location)
13297 (print_one_breakpoint): Use ui_out_emit_tuple.
13298 * auto-load.c (print_script, info_auto_load_cmd): Use
13299 ui_out_emit_tuple.
13300 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13301
13302 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13303
13304 * thread.c (print_thread_info_1): Remove dead code.
13305
13306 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13307
13308 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13309 GDB_SELF_TEST.
13310 * arm-tdep.c (selftests::arm_record_test): Likewise.
13311
13312 2017-04-21 Yao Qi <yao.qi@linaro.org>
13313
13314 * regcache.c (regcache_restore): Remove argument 2. Replace
13315 argument 3 with regcache. Get register status from
13316 src->register_status and get register contents from
13317 register_buffer (src, regnum).
13318 (regcache_cpy): Update.
13319
13320 2017-04-19 Pedro Alves <palves@redhat.com>
13321
13322 * gdbthread.h (thread): Add missing closing parenthesis in
13323 comment.
13324
13325 2017-04-19 Pedro Alves <palves@redhat.com>
13326
13327 * common/refcounted-object.h: New file.
13328 * gdbthread.h: Include "common/refcounted-object.h".
13329 (thread_info): Inherit from refcounted_object and add comments.
13330 (thread_info::incref, thread_info::decref)
13331 (thread_info::m_refcount): Delete.
13332 (thread_info::deletable): Use the refcounted_object::refcount()
13333 method.
13334 * inferior.c (current_inferior_): Add comment.
13335 (set_current_inferior): Increment/decrement refcounts.
13336 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13337 not-deletable instead of comparing with the current inferior.
13338 (initialize_inferiors): Increment the initial inferior's refcount.
13339 * inferior.h (struct inferior): Forward declare.
13340 Include "common/refcounted-object.h".
13341 (current_inferior, set_current_inferior): Move declaration to
13342 before struct inferior's definition, and fix comment.
13343 (inferior): Inherit from refcounted_object. Add comments.
13344 * thread.c (switch_to_thread_no_regs): Reference the thread's
13345 inferior pointer directly instead of doing a ptid lookup.
13346 (switch_to_no_thread): New function.
13347 (switch_to_thread(thread_info *)): New function, factored out
13348 from ...
13349 (switch_to_thread(ptid_t)): ... this.
13350 (restore_current_thread): Delete.
13351 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13352 fields, and add 'inf' field.
13353 (do_restore_current_thread_cleanup): Check whether old->inf is
13354 alive instead of looking up an inferior by ptid. Use
13355 switch_to_thread and switch_to_no_thread.
13356 (restore_current_thread_cleanup_dtor): Use old->inf directly
13357 instead of lookup up an inferior by id. Decref the inferior.
13358 Don't restore 'removable'.
13359 (make_cleanup_restore_current_thread): Same the inferior pointer
13360 in old, instead of the inferior number. Incref the inferior.
13361 Don't save/clear 'removable'.
13362
13363 2017-04-19 Pedro Alves <palves@redhat.com>
13364
13365 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13366 unittests/scoped_restore-selftests.c.
13367 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13368 * common/scoped_restore.h (scoped_restore_base): Make "class".
13369 (scoped_restore_base::release): New public method.
13370 (scoped_restore_base::scoped_restore_base): New protected ctor.
13371 (scoped_restore_base::m_saved_var): New protected field.
13372 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13373 scoped_restore_base base class instead of m_saved_var directly.
13374 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13375 (scoped_restore_tmpl::scoped_restore_tmpl(const
13376 scoped_restore_tmpl<T>&)): Likewise.
13377 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13378 method.
13379 (scoped_restore_tmpl::saved_var): New method.
13380 (scoped_restore_tmpl::m_saved_var): Delete.
13381 * inferior.h (inferior::detaching): Now a bool.
13382 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13383 cleanup.
13384 * unittests/scoped_restore-selftests.c: New file.
13385
13386 2017-04-19 Pedro Alves <palves@redhat.com>
13387
13388 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13389 Re-sort in alphabetic order.
13390
13391 2017-04-18 Pedro Alves <palves@redhat.com>
13392
13393 * xml-support.c (obstack_xml_printf): Delete.
13394 * xml-support.h (obstack_xml_printf): Delete.
13395
13396 2017-04-18 Pedro Alves <palves@redhat.com>
13397
13398 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13399 vdebug, verror, body_text, start_element, end_element, name,
13400 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13401 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13402 is_xinclude>: Make private and add m_ prefix.
13403 (gdb_xml_parser::body_text): New method, based on ...
13404 (gdb_xml_body_text): ... this. Adjust.
13405 (gdb_xml_parser::vdebug): New method, based on ...
13406 (gdb_xml_debug): ... this. Adjust.
13407 (gdb_xml_parser::verror): New method, based on ...
13408 (gdb_xml_error): ... this. Adjust.
13409 (gdb_xml_parser::start_element): New method, based on ...
13410 (gdb_xml_start_element): ... this. Adjust.
13411 (gdb_xml_start_element_wrapper): Defer to
13412 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13413 (gdb_xml_parser::end_element): New method, based on ...
13414 (gdb_xml_end_element_wrapper): ... this. Adjust.
13415 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13416 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13417 (gdb_xml_parser::use_dtd): New method, based on ...
13418 (gdb_xml_use_dtd): ... this. Adjust.
13419 (gdb_xml_parser::parse): New method, based on ...
13420 (gdb_xml_parse): ... this. Adjust.
13421 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13422 (xinclude_start_include): Adjust to call the parser's name method.
13423 (xml_xinclude_default, xml_xinclude_start_doctype)
13424 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13425 method.
13426 (xml_process_xincludes): Adjust to call parser methods.
13427 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13428 declarations.
13429
13430 2017-04-18 Pedro Alves <palves@redhat.com>
13431
13432 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13433 gdb::optional<std::string>.
13434 * xml-support.c: Include <string>.
13435 (scope_level::scope_level(scope_level &&))
13436 (scope_level::~scope_level): Delete.
13437 (scope_level::body): Now a std::string.
13438 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13439 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13440 parameter.
13441 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13442 (xinclude_parsing_data::output): Now a std::string reference.
13443 (xinclude_start_include): Adjust.
13444 (xml_xinclude_default): Adjust.
13445 (xml_process_xincludes): Add 'output' parameter, and return bool.
13446 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13447 and return bool.
13448 * xml-tdesc.c: Include <unordered_map> and <string>.
13449 (tdesc_xml_cache): Delete.
13450 (tdesc_xml_cache_s): Delete.
13451 (xml_cache): Now an std::unordered_map.
13452 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13453 (target_fetch_description_xml): Change return type to
13454 gdb::optional<std::string>, and adjust.
13455 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13456 (target_fetch_description_xml): Change return type to
13457 gdb::optional<std::string>.
13458
13459 2017-04-18 Pedro Alves <palves@redhat.com>
13460
13461 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13462 unittests/optional-selftests.c.
13463 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13464 * unittests/optional-selftests.c: New file.
13465 * unittests/optional/assignment/1.cc: New file.
13466 * unittests/optional/assignment/2.cc: New file.
13467 * unittests/optional/assignment/3.cc: New file.
13468 * unittests/optional/assignment/4.cc: New file.
13469 * unittests/optional/assignment/5.cc: New file.
13470 * unittests/optional/assignment/6.cc: New file.
13471 * unittests/optional/assignment/7.cc: New file.
13472 * unittests/optional/cons/copy.cc: New file.
13473 * unittests/optional/cons/default.cc: New file.
13474 * unittests/optional/cons/move.cc: New file.
13475 * unittests/optional/cons/value.cc: New file.
13476 * unittests/optional/in_place.cc: New file.
13477 * unittests/optional/observers/1.cc: New file.
13478 * unittests/optional/observers/2.cc: New file.
13479
13480 2017-04-18 Pedro Alves <palves@redhat.com>
13481
13482 * common/gdb_optional.h: Include common/traits.h.
13483 (in_place_t): New type.
13484 (in_place): New constexpr variable.
13485 (optional::optional): Remove member initialization of
13486 m_instantiated.
13487 (optional::optional(in_place_t...)): New constructor.
13488 (optional::~optional): Use reset.
13489 (optional::optional(const optional&)): New.
13490 (optional::optional(const optional&&)): New.
13491 (optional::optional(T &)): New.
13492 (optional::optional(T &&)): New.
13493 (operator::operator=(const optional &)): New.
13494 (operator::operator=(optional &&)): New.
13495 (operator::operator= (const T &))
13496 (operator::operator= (T &&))
13497 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13498 (operator::reset): New.
13499 (operator::m_instantiated):: Add in-class initializer.
13500 * common/traits.h: Include <type_traits>.
13501 (struct And): New types.
13502
13503 2017-04-18 Pedro Alves <palves@redhat.com>
13504
13505 * xml-support.c: Include <vector>.
13506 (scope_level::scope_level(const gdb_xml_element *))
13507 (scope_level::scope_level(scope_level&&)): New.
13508 (scope_level::~scope_level): New.
13509 (scope_level_s): Delete.
13510 (gdb_xml_parser::scopes): Now a std::vector.
13511 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13512 Use std::vector.
13513 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13514 scope cleanup code.
13515 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13516 of the scopes member. Use std::vector::emplace_back.
13517
13518 2017-04-18 Pedro Alves <palves@redhat.com>
13519
13520 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13521 a bool.
13522 (gdb_xml_end_element): Change type of first parameter.
13523 (gdb_xml_cleanup): Rename to ...
13524 (gdb_xml_parser::~gdb_xml_parser): ... this.
13525 (gdb_xml_create_parser_and_cleanup): Delete with ...
13526 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13527 to this new ctor.
13528 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13529 using gdb_xml_create_parser_and_cleanup.
13530 (xinclude_parsing_data): Add ctor/dtor.
13531 (xml_xinclude_cleanup): Delete.
13532 (xml_process_xincludes): Create a local xinclude_parsing_data
13533 instead of heap-allocating one. Create a local gdb_xml_parser
13534 instead of heap-allocating one with
13535 gdb_xml_create_parser_and_cleanup.
13536
13537 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13538
13539 PR threads/20743
13540 * fbsd-nat.c (resume_one_thread_cb): Remove.
13541 (resume_all_threads_cb): Remove.
13542 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13543 iterate_over_threads.
13544
13545 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13546
13547 * NEWS: Create a new section for the next release branch.
13548 Rename the section of the current branch, now that it has
13549 been cut.
13550
13551 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13552
13553 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13554 * version.in: Bump version to 8.0.50.DATE-git.
13555
13556 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13557
13558 PR gdb/21385
13559 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13560 independently of the host, and fix build breakage on Cygwin.
13561
13562 2017-04-13 Pedro Alves <palves@redhat.com>
13563
13564 * inferior.c (free_inferior): Convert to ...
13565 (inferior::~inferior): ... this dtor.
13566 (inferior::inferior): New ctor, factored out from ...
13567 (add_inferior_silent): ... here. Allocate the inferior with a new
13568 expression.
13569 (delete_inferior): Call delete instead of free_inferior.
13570 * inferior.h (gdb_environ, continuation): Forward declare.
13571 (inferior): Now a class. Add in-class initialization to all
13572 members. Make boolean fields bool, except 'detaching'.
13573 (inferior::inferior): New explicit ctor.
13574 (inferior::~inferior): New.
13575
13576 2017-04-13 Pedro Alves <palves@redhat.com>
13577
13578 * inferior.c (init_inferior_list): Delete.
13579 * inferior.h (init_inferior_list): Delete.
13580
13581 2017-04-13 Pedro Alves <palves@redhat.com>
13582
13583 PR threads/13217
13584 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13585 (top level): Call it twice, with different thread sets.
13586
13587 2017-04-13 Pedro Alves <palves@redhat.com>
13588
13589 * thread.c: Include <algorithm>.
13590 (thread_array_cleanup): Delete.
13591 (scoped_inc_dec_ref): New class.
13592 (live_threads_count): New function.
13593 (set_thread_refcount): Delete.
13594 (tp_array_compar_ascending): Now a bool.
13595 (tp_array_compar): Convert to a std::sort comparison function.
13596 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13597 and live_threads_count.
13598
13599 2017-04-13 Pedro Alves <palves@redhat.com>
13600
13601 * infrun.c (follow_fork_inferior): Also switch the current
13602 inferior.
13603
13604 2017-04-13 Pedro Alves <palves@redhat.com>
13605
13606 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13607 before calling create_internal_breakpoint.
13608
13609 2017-04-13 Pedro Alves <palves@redhat.com>
13610
13611 * fork-child.c (execv_argv): New class.
13612 (breakup_args): Refactored as ...
13613 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13614 Copy arguments to storage and replace separators with NULL
13615 terminators in place.
13616 (escape_bang_in_quoted_argument): Adjust to return bool.
13617 (execv_argv::execv_argv): New ctor.
13618 (execv_argv::init_for_shell): New method, factored out from
13619 fork_inferior. Don't strdup strings into the vector.
13620 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13621 Remove free_vector_argv call.
13622
13623 2017-04-13 Yao Qi <yao.qi@linaro.org>
13624
13625 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13626 tdep->rx_psw_type.
13627
13628 2017-04-13 Yao Qi <yao.qi@linaro.org>
13629
13630 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13631 * rx-tdep.c (rx_gdbarch_init): Likewise.
13632
13633 2017-04-13 Pedro Alves <palves@redhat.com>
13634
13635 * breakpoint.h (struct breakpoint): Reindent.
13636
13637 2017-04-13 Pedro Alves <palves@redhat.com>
13638
13639 * breakpoint.c (bp_location): Rename to ...
13640 (bp_locations): ... this. All references updated.
13641 (bp_location_count): Rename to ...
13642 (bp_locations_count): ... this. All references updated.
13643 (bp_location_placed_address_before_address_max): Rename to ...
13644 (bp_locations_placed_address_before_address_max): ... this. All
13645 references updated.
13646 (bp_location_shadow_len_after_address_max): Rename to ...
13647 (bp_locations_shadow_len_after_address_max): ... this. All
13648 references updated.
13649 (bp_location_compare_addrs): Rename to ...
13650 (bp_locations_compare_addrs): ... this. All references updated.
13651 (bp_location_compare):Rename to ...
13652 (bp_locations_compare): ... this. All references updated.
13653 (bp_location_target_extensions_update): Rename to ...
13654 (bp_locations_target_extensions_update): ... this. All references
13655 updated.
13656
13657 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13658
13659 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13660 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13661 'sgtty.h'.
13662 * common/gdb_termios.h: New file, with parts of "terminal.h".
13663 * inflow.c: Include "gdb_termios.h".
13664 * ser-unix.c: Include "gdb_termios.h".
13665 * terminal.h: Move terminal-related defines to
13666 "common/gdb_termios.h".
13667
13668 2017-04-12 Tom Tromey <tom@tromey.com>
13669
13670 * probe.c (parse_probes): Update.
13671 * location.h (delete_event_location): Don't declare.
13672 (event_location_deleter::operator()): Update.
13673 * location.c (event_location_deleter::operator()): Rename from
13674 delete_event_location.
13675 * linespec.h (linespec_result) <location>: Change type to
13676 event_location_up.
13677 * linespec.c (canonicalize_linespec, event_location_to_sals)
13678 (decode_objc): Update.
13679 (linespec_result): Don't call delete_event_location.
13680 * breakpoint.c (create_breakpoints_sal)
13681 (bkpt_probe_create_sals_from_location)
13682 (strace_marker_create_sals_from_location): Update.
13683
13684 2017-04-12 Tom Tromey <tom@tromey.com>
13685
13686 * linespec.h (struct linespec_result): Add constructor and
13687 destructor.
13688 (init_linespec_result, destroy_linespec_result)
13689 (make_cleanup_destroy_linespec_result): Don't declare.
13690 * linespec.c (init_linespec_result): Remove.
13691 (linespec_result::~linespec_result): Rename from
13692 destroy_linespec_result. Update.
13693 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13694 Remove.
13695 * breakpoint.c (create_breakpoint, break_range_command)
13696 (decode_location_default): Update.
13697 * ax-gdb.c (agent_command_1): Update.
13698
13699 2017-04-12 Tom Tromey <tom@tromey.com>
13700
13701 * remote.c (remote_download_tracepoint): Update.
13702 * python/py-breakpoint.c (bppy_get_location): Update.
13703 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13704 (gdbscm_breakpoint_location): Update.
13705 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13706 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13707 Change type to event_location_up.
13708 * breakpoint.c (create_overlay_event_breakpoint)
13709 (create_longjmp_master_breakpoint)
13710 (create_std_terminate_master_breakpoint)
13711 (create_exception_master_breakpoint)
13712 (breakpoint_event_location_empty_p, print_breakpoint_location)
13713 (print_one_breakpoint_location, create_thread_event_breakpoint)
13714 (init_breakpoint_sal, create_breakpoint)
13715 (print_recreate_ranged_breakpoint, break_range_command)
13716 (init_ada_exception_breakpoint, say_where): Update.
13717 (base_breakpoint_dtor): Don't call delete_event_location.
13718 (bkpt_print_recreate, tracepoint_print_recreate)
13719 (dprintf_print_recreate, update_static_tracepoint)
13720 (breakpoint_re_set_default): Update.
13721
13722 2017-04-12 Tom Tromey <tom@tromey.com>
13723
13724 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13725 type of "to_do". Update.
13726 (compute_stack_depth): Use std::vector.
13727
13728 2017-04-12 Tom Tromey <tom@tromey.com>
13729
13730 * printcmd.c (find_instruction_backward): Use std::vector.
13731
13732 2017-04-12 Tom Tromey <tom@tromey.com>
13733
13734 * symfile.c (objfilep): Remove typedef.
13735 (reread_symbols): Use a std::vector.
13736
13737 2017-04-12 Tom Tromey <tom@tromey.com>
13738
13739 * mi/mi-main.c (exec_direction_forward): Remove.
13740 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13741 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13742 scoped_restore.
13743 * guile/guile.c (guile_repl_command, guile_command)
13744 (gdbscm_execute_gdb_command): Use scoped_restore.
13745 * go-exp.y (go_parse): Use scoped_restore.
13746 * d-exp.y (d_parse): Use scoped_restore.
13747 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13748 * c-exp.y (c_parse): Use scoped_restore.
13749
13750 2017-04-12 Tom Tromey <tom@tromey.com>
13751
13752 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13753 (mi_parse): Update return type.
13754 (mi_parse_free): Remove.
13755 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13756 (mi_parse::~mi_parse): Rename from mi_parse_free.
13757 (mi_parse_cleanup): Remove.
13758 (mi_parse): Return a unique_ptr. Use new.
13759 * mi/mi-main.c (mi_execute_command): Update.
13760
13761 2017-04-12 Tom Tromey <tom@tromey.com>
13762
13763 * location.c (explicit_location_lex_one): Return a
13764 unique_xmalloc_ptr.
13765 (string_to_explicit_location): Update. Remove cleanups.
13766
13767 2017-04-12 Tom Tromey <tom@tromey.com>
13768
13769 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13770 (compare_value_and_voffset): Change type. Update.
13771 (compute_vtable_size): Change type of "offset_vec".
13772 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13773 (gnuv3_get_typeid): Remove extraneous declaration.
13774
13775 2017-04-12 Tom Tromey <tom@tromey.com>
13776
13777 * charset.h (wchar_iterator): Fix comment.
13778
13779 2017-04-12 Tom Tromey <tom@tromey.com>
13780
13781 * charset.c (iconv_wrapper): New class.
13782 (cleanup_iconv): Remove.
13783 (convert_between_encodings): Use it.
13784
13785 2017-04-12 Tom Tromey <tom@tromey.com>
13786
13787 * symfile.h (increment_reading_symtab): Update type.
13788 * symfile.c (decrement_reading_symtab): Remove.
13789 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13790 * psymtab.c (psymtab_to_symtab): Update.
13791 * dwarf2read.c (dw2_instantiate_symtab): Update.
13792
13793 2017-04-12 Tom Tromey <tom@tromey.com>
13794
13795 * jit.c (struct jit_reader): Declare separately. Add constructor
13796 and destructor. Change type of "handle".
13797 (loaded_jit_reader): Define separately.
13798 (jit_reader_load): Update. New "new".
13799 (jit_reader_unload_command): Use "delete".
13800 * gdb-dlfcn.h (struct dlclose_deleter): New.
13801 (gdb_dlhandle_up): New typedef.
13802 (gdb_dlopen, gdb_dlsym): Update types.
13803 (gdb_dlclose): Remove.
13804 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13805 (gdb_dlsym): Change type of "handle".
13806 (make_cleanup_dlclose): Remove.
13807 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13808 * compile/compile-c-support.c (load_libcc): Update.
13809
13810 2017-04-12 Tom Tromey <tom@tromey.com>
13811
13812 * symtab.h (find_pcs_for_symtab_line): Change return type.
13813 * symtab.c (find_pcs_for_symtab_line): Change return type.
13814 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13815 type of "vec". Update.
13816 (ltpy_get_pcs_for_line): Update.
13817 * linespec.c (decode_digits_ordinary): Update.
13818
13819 2017-04-12 Tom Tromey <tom@tromey.com>
13820
13821 * tracepoint.c (actions_command): Update.
13822 * python/python.c (python_command, python_interactive_command):
13823 Update.
13824 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13825 * guile/guile.c (guile_command): Update.
13826 * defs.h (read_command_lines, read_command_lines_1): Return
13827 command_line_up.
13828 (command_lines_deleter): New struct.
13829 (command_line_up): New typedef.
13830 * compile/compile.c (compile_code_command)
13831 (compile_print_command): Update.
13832 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13833 command_line_up.
13834 (make_cleanup_free_command_lines): Remove.
13835 * cli/cli-script.c (get_command_line, read_command_lines_1)
13836 (copy_command_lines): Return command_line_up.
13837 (while_command, if_command, read_command_lines, define_command)
13838 (document_command): Update.
13839 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13840 Remove.
13841 * breakpoint.h (breakpoint_set_commands): Change type of
13842 "commands".
13843 * breakpoint.c (breakpoint_set_commands): Change type of
13844 "commands". Update.
13845 (do_map_commands_command, update_dprintf_command_list)
13846 (create_tracepoint_from_upload): Update.
13847
13848 2017-04-12 Tom Tromey <tom@tromey.com>
13849
13850 * tracepoint.c (scope_info): Update.
13851 * spu-tdep.c (spu_catch_start): Update.
13852 * python/python.c (gdbpy_decode_line): Update.
13853 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13854 * python/py-breakpoint.c (bppy_init): Update.
13855 * probe.c (parse_probes): Update.
13856 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13857 * location.h (event_location_deleter): New struct.
13858 (event_location_up): New typedef.
13859 (new_linespec_location, new_address_location, new_probe_location)
13860 (new_explicit_location, copy_event_location)
13861 (string_to_event_location, string_to_event_location_basic)
13862 (string_to_explicit_location): Update return type.
13863 (make_cleanup_delete_event_location): Remove.
13864 * location.c (new_linespec_location, new_address_location)
13865 (new_probe_location, new_explicit_location, copy_event_location):
13866 Return event_location_up.
13867 (delete_event_location_cleanup)
13868 (make_cleanup_delete_event_location): Remove.
13869 (string_to_explicit_location, string_to_event_location_basic)
13870 (string_to_event_location): Return event_location_up.
13871 * linespec.c (canonicalize_linespec, event_location_to_sals)
13872 (decode_line_with_current_source)
13873 (decode_line_with_last_displayed, decode_objc): Update.
13874 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13875 * completer.c (location_completer): Update.
13876 * cli/cli-cmds.c (edit_command, list_command): Update.
13877 * breakpoint.c (create_overlay_event_breakpoint)
13878 (create_longjmp_master_breakpoint)
13879 (create_std_terminate_master_breakpoint)
13880 (create_exception_master_breakpoint)
13881 (create_thread_event_breakpoint): Update.
13882 (init_breakpoint_sal): Update. Remove some dead code.
13883 (create_breakpoint_sal): Change type of "location". Update.
13884 (create_breakpoints_sal, create_breakpoint, break_command_1)
13885 (dprintf_command, break_range_command, until_break_command)
13886 (init_ada_exception_breakpoint)
13887 (strace_marker_create_sals_from_location)
13888 (update_static_tracepoint, trace_command, ftrace_command)
13889 (strace_command, create_tracepoint_from_upload): Update.
13890 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13891 * ax-gdb.c (agent_command_1): Update.
13892
13893 2017-04-12 Pedro Alves <palves@redhat.com>
13894
13895 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13896 * configure.tgt: Handle i[34567]86-*-go32* and
13897 i[34567]86-*-msdosdjgpp*.
13898 * i386-tdep.c (i386_svr4_reg_to_regnum):
13899 Make extern.
13900 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13901 i386-go32-tdep.c.
13902 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13903 * i386-go32-tdep.c: New file.
13904 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13905 declarations.
13906
13907 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13908
13909 * aix-thread.c (pd_status2str): Change return type to const char *.
13910
13911 2017-04-12 Pedro Alves <palves@redhat.com>
13912
13913 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13914 calls to set_gdbarch_gnu_triplet_regexp.
13915
13916 2017-04-12 Pedro Alves <palves@redhat.com>
13917
13918 PR gdb/21323
13919 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13920 New enum value.
13921 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13922 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13923 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13924 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13925 * gdbarch.h, gdbarch.c: Regenerate.
13926 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13927 gdbarch_wchar_bit and gdbarch_wchar_signed.
13928 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13929 * arm-tdep.c (arm_gdbarch_init): Likewise.
13930 * avr-tdep.c (avr_gdbarch_init): Likewise.
13931 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13932 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13933 * i386-tdep.c (i386_go32_init_abi): Likewise.
13934 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13935 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13936 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13937 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13938 * sh-tdep.c (sh_gdbarch_init): Likewise.
13939 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13940 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13941 * windows-tdep.c (windows_init_abi): Likewise.
13942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13943
13944 2017-04-12 Pedro Alves <palves@redhat.com>
13945
13946 PR c++/21323
13947 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13948 cplus_primitive_type_char32_t>: New enum values.
13949 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13950 and cplus_primitive_type_char32_t.
13951 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13952 32, use the archtecture's built-in type for char16_t and char32_t,
13953 respectively. Otherwise, fallback to init_integer_type as before,
13954 but make the type unsigned, and issue a complaint.
13955 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13956
13957 2017-04-12 Alan Hayward <alan.hayward@arm.com>
13958
13959 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
13960 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13961
13962 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13963
13964 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13965 'const char *'.
13966
13967 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13968
13969 * common/common-utils.c (free_vector_argv): New function.
13970 * common/common-utils.h: Include <vector>.
13971 (free_vector_argv): New prototype.
13972 * darwin-nat.c (darwin_create_inferior): Rewrite function
13973 prototype in order to constify "exec_file" and accept a
13974 "std::string" for "allargs".
13975 * fork-child.c: Include <vector>.
13976 (breakup_args): Rewrite function, using C++.
13977 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13978 and accept "std::string" for "allargs". Update the code to
13979 calculate "argv" based on "allargs". Update calls to "exec_fun"
13980 and "execvp".
13981 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13982 order to constify "exec_file" and accept a "std::string" for
13983 "allargs".
13984 * go32-nat.c (go32_create_inferior): Likewise.
13985 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13986 * infcmd.c (run_command_1): Constify "exec_file". Use
13987 "std::string" for inferior arguments.
13988 * inferior.h (fork_inferior): Update prototype.
13989 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13990 prototype in order to constify "exec_file" and accept a
13991 "std::string" for "allargs".
13992 * nto-procfs.c (procfs_create_inferior): Likewise.
13993 * procfs.c (procfs_create_inferior): Likewise.
13994 * remote-sim.c (gdbsim_create_inferior): Likewise.
13995 * remote.c (extended_remote_run): Update code to accept
13996 "std::string" as argument.
13997 (extended_remote_create_inferior): Rewrite function prototype in
13998 order to constify "exec_file" and accept a "std::string" for
13999 "allargs".
14000 * rs6000-nat.c (super_create_inferior): Likewise.
14001 (rs6000_create_inferior): Likewise.
14002 * target.h (struct target_ops) <to_create_inferior>: Likewise.
14003 * windows-nat.c (windows_create_inferior): Likewise.
14004
14005 2017-04-11 Pedro Alves <palves@redhat.com>
14006
14007 * thread.c: Fix whitespace throughout.
14008
14009 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
14010
14011 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
14012
14013 2017-04-11 Alan Hayward <alan.hayward@arm.com>
14014
14015 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
14016
14017 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
14018
14019 PR gdb/21364
14020 * osdata.c (info_osdata): Check if 'type' is an empty string
14021 instead of NULL.
14022
14023 2017-04-10 Pedro Alves <palves@redhat.com>
14024
14025 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
14026 (ptid_to_global_thread_id, in_thread_list)
14027 (do_captured_list_thread_ids, set_resumed, set_running)
14028 (set_executing, set_stop_requested, finish_thread_state)
14029 (validate_registers_access, can_access_registers_ptid)
14030 (print_thread_info_1, switch_to_thread)
14031 (do_restore_current_thread_cleanup)
14032 (make_cleanup_restore_current_thread, thread_command)
14033 (thread_name_command): Use operator== instead of ptid_equal.
14034
14035 2017-04-10 Pedro Alves <palves@redhat.com>
14036
14037 * thread.c (struct current_thread_cleanup) <next>: Delete field.
14038 (current_thread_cleanup_chain): Delete.
14039 (restore_current_thread_cleanup_dtor)
14040 (make_cleanup_restore_current_thread): Remove references to
14041 current_thread_cleanup_chain.
14042
14043 2017-04-10 Alan Hayward <alan.hayward@arm.com>
14044
14045 * msp430-tdep.c (msp430_pseudo_register_read): Never return
14046 REG_UNKNOWN.
14047
14048 2017-04-10 Yao Qi <yao.qi@linaro.org>
14049
14050 PR gdb/19942
14051 * gdbthread.h (thread_info::deletable): New method.
14052 (thread_info::incref): New method.
14053 (thread_info::decref): New method.
14054 (thread_info::refcount): Move it to private.
14055 * infrun.c (save_stop_context): Call inc_refcount.
14056 (release_stop_context_cleanup): Likewise.
14057 * thread.c (set_thread_exited): New function.
14058 (init_thread_list): Delete "tp" only it is deletable, otherwise
14059 call set_thread_exited.
14060 (delete_thread_1): Call set_thread_exited.
14061 (current_thread_cleanup) <inferior_pid>: Remove.
14062 <thread>: New field.
14063 (restore_current_thread_ptid_changed): Removed.
14064 (do_restore_current_thread_cleanup): Adjust.
14065 (restore_current_thread_cleanup_dtor): Don't call
14066 find_thread_ptid.
14067 (set_thread_refcount): Use dec_refcount.
14068 (make_cleanup_restore_current_thread): Adjust.
14069 (thread_apply_all_command): Call inc_refcount.
14070 (_initialize_thread): Don't call
14071 observer_attach_thread_ptid_changed.
14072
14073 2017-04-10 Yao Qi <yao.qi@linaro.org>
14074
14075 * thread.c (delete_thread_1): Hoist code on marking thread as
14076 exited.
14077
14078 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
14079
14080 * windows-nat.c (windows_detach): Initialize ptid with
14081 minus_one_ptid.
14082
14083 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
14084
14085 * unittests/ptid-selftests.c: Fix erroneous assert messages.
14086
14087 2017-04-07 Alan Hayward <alan.hayward@arm.com>
14088
14089 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
14090 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
14091 (bfin_pseudo_register_write): Likewise
14092
14093 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
14094
14095 * common/ptid.h (struct ptid): Change to...
14096 (class ptid_t): ... this.
14097 <ptid_t>: New constructors.
14098 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
14099 matches>: New methods.
14100 <make_null, make_minus_one>: New static methods.
14101 <pid>: Rename to...
14102 <m_pid>: ...this.
14103 <lwp>: Rename to...
14104 <m_lwp>: ...this.
14105 <tid>: Rename to...
14106 <m_tid>: ...this.
14107 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
14108 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
14109 as references, move comment to class ptid_t.
14110 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
14111 ptid_t static methods.
14112 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
14113 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
14114 Take ptid arguments as references, implement using ptid_t methods.
14115 * unittests/ptid-selftests.c: New file.
14116 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14117 unittests/ptid-selftests.c.
14118 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
14119
14120 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14121
14122 * python/python.c (python_run_simple_file): Cast mode literal to
14123 non-const char pointer as expected by PyFile_FromString.
14124
14125 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14126
14127 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14128 minus_one_ptid and null_ptid.
14129
14130 2017-04-05 Pedro Alves <palves@redhat.com>
14131
14132 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14133 * configure: Regenerate.
14134
14135 2017-04-05 Pedro Alves <palves@redhat.com>
14136
14137 * ada-exp.y (yyerror): Constify.
14138 * ada-lang.c (bound_name, get_selections)
14139 (ada_variant_discrim_type)
14140 (ada_variant_discrim_name, ada_value_struct_elt)
14141 (ada_lookup_struct_elt_type, is_unchecked_variant)
14142 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14143 (catch_ada_exception_command_split)
14144 (catch_ada_assert_command_split, catch_assert_command)
14145 (ada_op_name): Constify.
14146 * ada-lang.h (ada_yyerror, get_selections)
14147 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14148 * arc-tdep.c (arc_print_frame_cache): Constify.
14149 * arm-tdep.c (arm_skip_stub): Constify.
14150 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14151 (gen_aggregate_elt_ref): Constify.
14152 * bcache.c (print_bcache_statistics): Constify.
14153 * bcache.h (print_bcache_statistics): Constify.
14154 * break-catch-throw.c (catch_exception_command_1):
14155 * breakpoint.c (struct ep_type_description::description):
14156 Constify.
14157 (add_solib_catchpoint): Constify.
14158 (catch_fork_command_1): Add cast.
14159 (add_catch_command): Constify.
14160 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14161 Constify.
14162 * bsd-uthread.c (bsd_uthread_state): Constify.
14163 * buildsym.c (patch_subfile_names): Constify.
14164 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14165 Constify.
14166 * c-exp.y (yyerror): Constify.
14167 (token::oper): Constify.
14168 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14169 * c-varobj.c (cplus_describe_child): Constify.
14170 * charset.c (find_charset_names): Add cast.
14171 (find_charset_names): Constify array and add const_cast.
14172 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14173 (edit_command): Constify.
14174 * cli/cli-decode.c (lookup_cmd): Constify.
14175 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14176 Constify.
14177 (struct dump_context): Constify.
14178 (add_dump_command, restore_command): Constify.
14179 * cli/cli-script.c (get_command_line): Constify.
14180 * cli/cli-script.h (get_command_line): Constify.
14181 * cli/cli-utils.c (check_for_argument): Constify.
14182 * cli/cli-utils.h (check_for_argument): Constify.
14183 * coff-pe-read.c (struct read_pe_section_data): Constify.
14184 * command.h (lookup_cmd): Constify.
14185 * common/print-utils.c (decimal2str): Constify.
14186 * completer.c (gdb_print_filename): Constify.
14187 * corefile.c (set_gnutarget): Constify.
14188 * cp-name-parser.y (yyerror): Constify.
14189 * cp-valprint.c (cp_print_class_member): Constify.
14190 * cris-tdep.c (cris_register_name, crisv32_register_name):
14191 Constify.
14192 * d-exp.y (yyerror): Constify.
14193 (struct token::oper): Constify.
14194 * d-lang.h (d_yyerror): Constify.
14195 * dbxread.c (struct header_file_location::name): Constify.
14196 (add_old_header_file, add_new_header_file, last_function_name)
14197 (dbx_next_symbol_text, add_bincl_to_list)
14198 (find_corresponding_bincl_psymtab, set_namestring)
14199 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14200 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14201 * defs.h (command_line_input, print_address_symbolic)
14202 (deprecated_readline_begin_hook): Constify.
14203 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14204 Constify.
14205 * event-top.c (handle_line_of_input): Constify and add cast.
14206 * exceptions.c (catch_errors): Constify.
14207 * exceptions.h (catch_errors): Constify.
14208 * expprint.c (print_subexp_standard, op_string, op_name)
14209 (op_name_standard, dump_raw_expression, dump_raw_expression):
14210 * expression.h (op_name, op_string, dump_raw_expression):
14211 Constify.
14212 * f-exp.y (yyerror): Constify.
14213 (struct token::oper): Constify.
14214 (struct f77_boolean_val::name): Constify.
14215 * f-lang.c (f_word_break_characters): Constify.
14216 * f-lang.h (f_yyerror): Constify.
14217 * fork-child.c (fork_inferior): Add cast.
14218 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14219 (new_variant): Constify.
14220 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14221 * gdbarch.c: Regenerate.
14222 * gdbcore.h (set_gnutarget): Constify.
14223 * go-exp.y (yyerror): Constify.
14224 (token::oper): Constify.
14225 * go-lang.h (go_yyerror): Constify.
14226 * go32-nat.c (go32_sysinfo): Constify.
14227 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14228 * guile/scm-cmd.c (cmdscm_function): Constify.
14229 * guile/scm-param.c (pascm_param_value): Constify.
14230 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14231 (h8300sx_register_name): Constify.
14232 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14233 Constify.
14234 * ia64-tdep.c (ia64_register_names): Constify.
14235 * infcmd.c (construct_inferior_arguments): Constify.
14236 (path_command, attach_post_wait): Constify.
14237 * language.c (show_range_command, show_case_command)
14238 (unk_lang_error): Constify.
14239 * language.h (language_defn::la_error)
14240 (language_defn::la_name_of_this): Constify.
14241 * linespec.c (decode_line_2): Constify.
14242 * linux-thread-db.c (thread_db_err_str): Constify.
14243 * lm32-tdep.c (lm32_register_name): Constify.
14244 * m2-exp.y (yyerror): Constify.
14245 * m2-lang.h (m2_yyerror): Constify.
14246 * m32r-tdep.c (m32r_register_names): Constify and make static.
14247 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14248 * m88k-tdep.c (m88k_register_name): Constify.
14249 * macroexp.c (appendmem): Constify.
14250 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14251 (upgrade_type, parse_external, parse_partial_symbols)
14252 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14253 (new_symbol): Constify.
14254 * memattr.c (mem_info_command): Constify.
14255 * mep-tdep.c (register_name_from_keyword): Constify.
14256 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14257 Constify.
14258 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14259 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14260 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14261 cast.
14262 (mi_execute_async_cli_command): Constify.
14263 * mips-tdep.c (mips_register_name): Constify.
14264 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14265 (am33_register_name, am33_2_register_name)
14266 * moxie-tdep.c (moxie_register_names): Constify.
14267 * nat/linux-osdata.c (osdata_type): Constify fields.
14268 * nto-tdep.c (nto_parse_redirection): Constify.
14269 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14270 (lookup_child_selector): Constify.
14271 (objc_methcall::name): Constify.
14272 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14273 (lookup_struct_typedef): Constify.
14274 * objfiles.c (pc_in_section): Constify.
14275 * objfiles.h (pc_in_section): Constify.
14276 * p-exp.y (struct token::oper): Constify.
14277 (yyerror): Constify.
14278 * p-lang.h (pascal_yyerror): Constify.
14279 * parser-defs.h (op_name_standard): Constify.
14280 (op_print::string): Constify.
14281 (exp_descriptor::op_name): Constify.
14282 * printcmd.c (print_address_symbolic): Constify.
14283 * psymtab.c (print_partial_symbols): Constify.
14284 * python/py-breakpoint.c (stop_func): Constify.
14285 (bppy_get_expression): Constify.
14286 * python/py-cmd.c (cmdpy_completer::name): Constify.
14287 (cmdpy_function): Constify.
14288 * python/py-event.c (evpy_add_attribute)
14289 (gdbpy_initialize_event_generic): Constify.
14290 * python/py-event.h (evpy_add_attribute)
14291 (gdbpy_initialize_event_generic): Constify.
14292 * python/py-evts.c (add_new_registry): Constify.
14293 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14294 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14295 * python/py-inferior.c (get_buffer): Add cast.
14296 * python/py-param.c (parm_constant::name): Constify.
14297 * python/py-unwind.c (fprint_frame_id): Constify.
14298 * python/python.c (gdbpy_parameter_value): Constify.
14299 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14300 * remote.c (memory_packet_config::name): Constify.
14301 (show_packet_config_cmd, remote_write_bytes)
14302 (remote_buffer_add_string):
14303 * reverse.c (exec_reverse_once): Constify.
14304 * rs6000-tdep.c (variant::name, variant::description): Constify.
14305 * rust-exp.y (rustyyerror): Constify.
14306 * rust-lang.c (rust_op_name): Constify.
14307 * rust-lang.h (rustyyerror): Constify.
14308 * serial.h (serial_ops::name): Constify.
14309 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14310 (sh_sh3e_register_name, sh_sh2e_register_name)
14311 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14312 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14313 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14314 (sh_sh4al_dsp_register_name): Constify.
14315 * sh64-tdep.c (sh64_register_name): Constify.
14316 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14317 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14318 * stabsread.c (patch_block_stabs, read_type_number)
14319 (ref_map::stabs, ref_add, process_reference)
14320 (symbol_reference_defined, define_symbol, define_symbol)
14321 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14322 (read_one_struct_field, read_struct_fields, read_baseclasses)
14323 (read_tilde_fields, read_struct_type, read_array_type)
14324 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14325 (read_huge_number, read_range_type, read_args, common_block_start)
14326 (find_name_end): Constify.
14327 * stabsread.h (common_block_start, define_symbol)
14328 (process_one_symbol, symbol_reference_defined, ref_add):
14329 * symfile.c (get_section_index, add_symbol_file_command):
14330 * symfile.h (get_section_index): Constify.
14331 * target-descriptions.c (tdesc_type::name): Constify.
14332 (tdesc_free_type): Add cast.
14333 * target.c (find_default_run_target):
14334 (add_deprecated_target_alias, find_default_run_target)
14335 (target_announce_detach): Constify.
14336 (do_option): Constify.
14337 * target.h (add_deprecated_target_alias): Constify.
14338 * thread.c (print_thread_info_1): Constify.
14339 * top.c (deprecated_readline_begin_hook, command_line_input):
14340 Constify.
14341 (init_main): Add casts.
14342 * top.h (handle_line_of_input): Constify.
14343 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14344 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14345 (tfind_command): Rename to ...
14346 (tfind_command_1): ... this and constify.
14347 (tfind_command): New function.
14348 (tfind_end_command, tfind_start_command): Adjust.
14349 (encode_source_string): Constify.
14350 * tracepoint.h (encode_source_string): Constify.
14351 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14352 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14353 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14354 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14355 * tui/tui-win.c (parse_scrolling_args): Constify.
14356 * tui/tui-windata.c (tui_erase_data_content): Constify.
14357 * tui/tui-windata.h (tui_erase_data_content): Constify.
14358 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14359 * tui/tui.c (tui_enable): Add cast.
14360 * utils.c (defaulted_query): Constify.
14361 (init_page_info): Add cast.
14362 (puts_debug, subset_compare): Constify.
14363 * utils.h (subset_compare): Constify.
14364 * varobj.c (varobj_format_string): Constify.
14365 * varobj.h (varobj_format_string): Constify.
14366 * vax-tdep.c (vax_register_name): Constify.
14367 * windows-nat.c (windows_detach): Constify.
14368 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14369 * xml-support.c (gdb_xml_end_element): Constify.
14370 * xml-tdesc.c (tdesc_start_reg): Constify.
14371 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14372 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14373 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14374
14375 2017-04-05 Pedro Alves <palves@redhat.com>
14376
14377 * proc-api.c (struct trans): Constify.
14378 (procfs_note): Constify.
14379 * proc-events.c (struct trans, syscall_table):
14380 * proc-flags.c (struct trans): Constify.
14381 * proc-utils.h (procfs_note): Constify.
14382 * proc-why.c (struct trans): Constify.
14383 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14384 (procfs_detach): Constify.
14385 * sol-thread.c (struct string_map): Constify.
14386 (td_err_string, td_state_string): Constify.
14387
14388 2017-04-05 Pedro Alves <palves@redhat.com>
14389
14390 * proc-api.c (procfs_filename): Don't initialize
14391 procfs_filename.
14392 (prepare_to_trace): Assume procfs_filename is non-NULL.
14393 (_initialize_proc_api): Give procfs_filename a default value here.
14394
14395 2017-04-05 Pedro Alves <palves@redhat.com>
14396
14397 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14398 'cond_string' parameter.
14399 (extract_exception_regexp): Constify 'string' parameter.
14400 (catch_exception_command_1): Constify.
14401 * breakpoint.c (init_catchpoint)
14402 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14403 parameter.
14404 (ep_parse_optional_if_clause, catch_fork_command_1)
14405 (catch_exec_command_1): Constify.
14406 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14407 parameter.
14408 (ep_parse_optional_if_clause): Constify.
14409 * cli/cli-utils.c (remove_trailing_whitespace)
14410 (check_for_argument): Constify.
14411 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14412 non-const overload.
14413 (check_for_argument): Likewise.
14414
14415 2017-04-05 Pedro Alves <palves@redhat.com>
14416
14417 * event-top.c (command_line_handler): Add cast to execute_command
14418 call.
14419 * record-btrace.c (cmd_record_btrace_bts_start)
14420 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14421 (cmd_record_btrace_start): Add cast to execute_command call.
14422 * record-full.c (record_full_goto_insn):
14423 * record.c (record_start, record_stop): Add cast to
14424 execute_command_to_string calls.
14425 (cmd_record_start): Add cast to execute_command calls.
14426
14427 2017-04-05 Pedro Alves <palves@redhat.com>
14428
14429 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14430 static inline function.
14431 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14432 array and use gdb_PyArg_ParseTupleAndKeywords.
14433 * python/py-cmd.c (cmdpy_init): Likewise.
14434 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14435 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14436 (infpy_search_memory): Likewise.
14437 * python/py-objfile.c (objfpy_add_separate_debug_file)
14438 (gdbpy_lookup_objfile): Likewise.
14439 * python/py-symbol.c (gdbpy_lookup_symbol)
14440 (gdbpy_lookup_global_symbol): Likewise.
14441 * python/py-type.c (gdbpy_lookup_type): Likewise.
14442 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14443 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14444 Likewise.
14445
14446 2017-04-05 Pedro Alves <palves@redhat.com>
14447
14448 * python/python-internal.h (gdb_PyGetSetDef): New type.
14449 * python/py-block.c (block_object_getset)
14450 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14451 * python/py-event.c (event_object_getset)
14452 (finish_breakpoint_object_getset): Likewise.
14453 * python/py-inferior.c (inferior_object_getset): Likewise.
14454 * python/py-infthread.c (thread_object_getset): Likewise.
14455 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14456 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14457 * python/py-objfile.c (objfile_getset): Likewise.
14458 * python/py-progspace.c (pspace_getset): Likewise.
14459 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14460 Likewise.
14461 * python/py-record.c (recpy_record_getset): Likewise.
14462 * python/py-symbol.c (symbol_object_getset): Likewise.
14463 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14464 Likewise.
14465 * python/py-type.c (type_object_getset, field_object_getset):
14466 Likewise.
14467 * python/py-value.c (value_object_getset): Likewise.
14468
14469 2017-04-05 Pedro Alves <palves@redhat.com>
14470
14471 * python/python-internal.h (gdb_PyObject_CallMethod)
14472 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14473 New functions.
14474 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14475 (PySys_GetObject, PySys_SetPath): New macros.
14476
14477 2017-04-05 Pedro Alves <palves@redhat.com>
14478
14479 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14480 info_osdata_command.
14481 * osdata.c (info_osdata_command): Rename to ...
14482 (info_osdata): ... this. Constify 'type' parameter, and remove
14483 the 'from_tty' parameter. Accept NULL TYPE.
14484 (info_osdata_command): New function.
14485 * osdata.h (info_osdata_command): Remove declaration.
14486 (info_osdata): New declaration.
14487
14488 2017-04-05 Pedro Alves <palves@redhat.com>
14489
14490 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14491 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14492 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14493 parameter.
14494 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14495 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14496 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14497 parameter.
14498 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14499 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14500 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14501 (mi_cmd_file_list_exec_source_files)
14502 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14503 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14504 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14505 parameter.
14506 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14507 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14508 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14509 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14510 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14511 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14512 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14513 'command' parameter.
14514 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14515 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14516 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14517 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14518 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14519 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14520 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14521 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14522 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14523 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14524 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14525 parameter.
14526 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14527 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14528 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14529 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14530 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14531 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14532 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14533 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14534 (mi_cmd_data_list_changed_registers)
14535 (mi_cmd_data_write_register_values)
14536 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14537 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14538 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14539 (mi_cmd_list_features, mi_cmd_list_target_features)
14540 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14541 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14542 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14543 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14544 (mi_cmd_trace_frame_collected): Constify 'command'
14545 parameter.
14546 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14547 'command' parameter.
14548
14549 2017-04-05 Pedro Alves <palves@redhat.com>
14550
14551 * ada-lang.c (ada_completer_word_break_characters): Now a const
14552 array.
14553 (ada_get_gdb_completer_word_break_characters): Constify.
14554 * completer.c (gdb_completer_command_word_break_characters)
14555 (gdb_completer_file_name_break_characters)
14556 (gdb_completer_quote_characters): Now const arrays.
14557 (get_gdb_completer_quote_characters): Constify.
14558 (set_rl_completer_word_break_characters): New function.
14559 (set_gdb_completion_word_break_characters)
14560 (complete_line_internal): Use it.
14561 * completer.h (get_gdb_completer_quote_characters): Constify.
14562 (set_rl_completer_word_break_characters): Declare.
14563 * f-lang.c (f_word_break_characters): Constify.
14564 * language.c (default_word_break_characters): Constify.
14565 * language.h (language_defn::la_word_break_characters): Constify.
14566 (default_word_break_characters): Constify.
14567 * top.c (init_main): Use set_rl_completer_word_break_characters.
14568
14569 2017-04-05 Pedro Alves <palves@redhat.com>
14570
14571 * aix-thread.c (aix_thread_pid_to_str)
14572 (aix_thread_extra_thread_info): Constify.
14573 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14574 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14575 (bsd_uthread_pid_to_str): Constify.
14576 * corelow.c (core_pid_to_str): Constify.
14577 * darwin-nat.c (darwin_pid_to_str): Constify.
14578 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14579 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14580 Constify.
14581 * gnu-nat.c (gnu_pid_to_str): Constify.
14582 * go32-nat.c (go32_pid_to_str): Constify.
14583 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14584 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14585 * inferior.c (inferior_pid_to_str): Constify.
14586 * linux-nat.c (linux_nat_pid_to_str): Constify.
14587 * linux-tdep.c (linux_core_pid_to_str): Constify.
14588 * linux-thread-db.c (thread_db_pid_to_str)
14589 (thread_db_extra_thread_info): Constify.
14590 * nto-tdep.c (nto_extra_thread_info): Constify.
14591 * nto-tdep.h (nto_extra_thread_info): Constify.
14592 * obsd-nat.c (obsd_pid_to_str): Constify.
14593 * procfs.c (procfs_pid_to_str): Constify.
14594 * ravenscar-thread.c (ravenscar_extra_thread_info)
14595 (ravenscar_pid_to_str): Constify.
14596 * remote-sim.c (gdbsim_pid_to_str): Constify.
14597 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14598 Constify.
14599 * sol-thread.c (solaris_pid_to_str): Constify.
14600 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14601 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14602 * target.c (default_pid_to_str, target_pid_to_str)
14603 (normal_pid_to_str, default_pid_to_str): Constify.
14604 * target.h (target_ops::to_pid_to_str)
14605 (target_ops::to_extra_thread_info): Constify.
14606 (target_pid_to_str, normal_pid_to_str): Constify.
14607 * windows-nat.c (windows_pid_to_str): Constify.
14608 * gdbarch.sh (core_pid_to_str): Constify.
14609 * target-delegates.c: Regenerate.
14610 * gdbarch.h, gdbarch.c: Regenerate.
14611
14612 2017-04-05 Pedro Alves <palves@redhat.com>
14613
14614 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14615 the memory of the temporary warning_pre_print override.
14616 * utils.c (warning_pre_print): Constify.
14617 * utils.h (warning_pre_print): Constify.
14618
14619 2017-04-05 Pedro Alves <palves@redhat.com>
14620
14621 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14622 (shell_command): New function.
14623 (make_command): Use std::string.
14624 (init_cli_cmds): Register shell_command instead of shell_escape.
14625
14626 2017-04-05 Pedro Alves <palves@redhat.com>
14627
14628 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14629 * tracepoint.c (default_collect): Don't initialize.
14630
14631 2017-04-05 Pedro Alves <palves@redhat.com>
14632
14633 * macroexp.c (macro_buffer::shared): Now a bool.
14634 (init_buffer): Update.
14635 (init_shared_buffer): Constify 'addr' parameter.
14636 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14637 casts.
14638
14639 2017-04-05 Pedro Alves <palves@redhat.com>
14640
14641 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14642 * disasm.c (set_disassembler_options): Constify local.
14643 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14644
14645 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14646
14647 PR gdb/21352
14648 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14649 option.
14650
14651 2017-04-05 Yao Qi <yao.qi@linaro.org>
14652
14653 * frame.c (frame_unwind_register_unsigned): Call
14654 frame_unwind_register_value.
14655
14656 2017-04-05 Yao Qi <yao.qi@linaro.org>
14657
14658 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14659 Use gdb_test_multiple, and don't match anchor.
14660
14661 2017-04-05 Pedro Alves <palves@redhat.com>
14662
14663 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14664 (Write After Approval): Remove Simon Marchi.
14665
14666 2017-04-05 Pedro Alves <palves@redhat.com>
14667
14668 * common/gdb_optional.h (optional::optional): Make constexpr and
14669 initialize m_dummy.
14670
14671 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14672
14673 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14674 (amd64fbsd_jmp_buf_reg_offset): Remove.
14675 (amd64fbsd_supply_uthread): Remove function.
14676 (amd64fbsd_collect_uthread): Remove function.
14677 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14678 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14679 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14680 (fbsd-nat.c): Update comment.
14681 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14682 (i386fbsd_jmp_buf_reg_offset): Remove.
14683 (i386fbsd_supply_uthread): Remove function.
14684 (i386fbsd_collect_uthread): Remove function.
14685 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14686
14687 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14688
14689 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14690 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14691 * NEWS: Mention that support for FreeBSD/alpha was removed.
14692 * alpha-fbsd-tdep.c: Delete file.
14693 * config/alpha/fbsd.mh: Delete file.
14694 * configure.host: Delete alpha*-*-freebsd* and
14695 alpha*-*-kfreebsd*-gnu.
14696 * configure.tgt: Delete alpha*-*-freebsd* and
14697 alpha*-*-kfreebsd*-gnu.
14698
14699 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14700
14701 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14702 amd64bsd_store_inferior_registers): Use ptid from regcache.
14703
14704 2017-04-04 Pedro Alves <palves@redhat.com>
14705
14706 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14707 data fields, make them private and add "m_" prefixes.
14708 (lnp_state_machine::lnp_state_machine): New ctor.
14709 (record_line, check_line_address, handle_set_discriminator)
14710 (handle_set_address, handle_advance_pc, handle_special_opcode)
14711 (handle_advance_line, handle_set_file, handle_negate_stmt)
14712 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14713 (end_sequence, advance_line): New methods.
14714 (m_gdbarch, m_record_lines_p): New fields.
14715 (lnp_reader_state): Delete.
14716 (dwarf_record_line): Rename to ...
14717 (lnp_state_machine::record_line): ... adjust.
14718 (init_lnp_state_machine): Delete.
14719 (lnp_state_machine::lnp_state_machine): New.
14720 (check_line_address): Rename to ...
14721 (lnp_state_machine::check_line_address): This.
14722 (dwarf_decode_lines_1): Remove reference to "reader_state".
14723 Adjust lnp_state_machine having a non-default ctor. Use bool.
14724 State machine internal state manipulation moved to
14725 lnp_state_machine methods.
14726
14727 2017-04-04 Pedro Alves <palves@redhat.com>
14728
14729 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14730 unittests/offset-type-selftests.c.
14731 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14732 * common/offset-type.h: New file.
14733 * common/preprocessor.h: New file.
14734 * common/traits.h: New file.
14735 * common/valid-expr.h: New file.
14736 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14737 sect_offset and cu_offset strong typedefs throughout.
14738 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14739 typedefs throughout.
14740 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14741 sect_offset and cu_offset strong typedefs throughout.
14742 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14743 typedefs throughout.
14744 * gdbtypes.h: Include "common/offset-type.h".
14745 (cu_offset): Now an offset type (strong typedef) instead of a
14746 struct.
14747 (sect_offset): Likewise.
14748 (union call_site_parameter_u): Rename "param_offset" field to
14749 "param_cu_off".
14750 * unittests/offset-type-selftests.c: New file.
14751
14752 2017-04-04 Pedro Alves <palves@redhat.com>
14753
14754 * common/underlying.h: New file.
14755 * dwarf2read.c: Include "common/gdb_optional.h" and
14756 "common/underlying.h".
14757 (dir_index, file_name_index): New types.
14758 (file_entry): Use them.
14759 (file_entry::include): Use to_underlying.
14760 (line_header::add_file_name): Use dir_index.
14761 (read_formatted_entries): Use gdb::optional. Read form before
14762 writting to file_entry.
14763 (dwarf_decode_line_header): Use dir_index.
14764 (lnp_state_machine::current_file): Use to_underlying.
14765 (lnp_state_machine::file): Change type to file_name_index.
14766 (dwarf_record_line): Use to_underlying.
14767 (init_lnp_state_machine): Use file_name_index.
14768 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14769
14770 2017-04-04 Pedro Alves <palves@redhat.com>
14771
14772 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14773 operator bool, has_value and get methods.
14774
14775 2017-04-04 Pedro Alves <palves@redhat.com>
14776
14777 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14778 fields.
14779 (line_header): Initialize all data fields. Change type of
14780 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14781 Change type of include_dirs to std::vector<const char *>. Remove
14782 num_include_dirs, include_dirs_size. Change type of file_names to
14783 std::vector<file_entry>. Remove num_file_names, file_names_size.
14784 (line_header::line_header): New.
14785 (line_header::add_include_dir, line_header::add_file_name): New
14786 methods.
14787 (line_header::include_dir_at): Remove NULL check.
14788 (line_header::file_name_at): Add const overload.
14789 (line_header_up): New unique_ptr typedef.
14790 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14791 std::vector. Remove free_line_header call.
14792 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14793 free_line_header call.
14794 (free_cu_line_header): Delete.
14795 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14796 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14797 Adjust to use std::vector.
14798 (free_line_header): Delete.
14799 (free_line_header_voidp): Use delete.
14800 (add_include_dir): Replace with ...
14801 (line_header::add_include_dir): ... this method. Use std::vector.
14802 (add_file_name): Replace with ...
14803 (line_header::add_file_name): ... this method. Use std::vector.
14804 (add_include_dir_stub): Delete.
14805 (read_formatted_entries): Remove memset.
14806 (dwarf_decode_line_header): Return a line_header_up instead of a
14807 raw pointer. Remove cleanup handling. Pass lambdas to
14808 read_formatted_entries. Adjust to use line_header methods.
14809 (dwarf_decode_lines_1): Adjust to use line_header methods.
14810 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14811 use std::vector.
14812
14813 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14814
14815 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14816 instead of struct ptid.
14817
14818 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14819
14820 * frame.c (get_frame_register_bytes): Unwind using value.
14821 (put_frame_register_bytes): Likewise.
14822
14823 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14824
14825 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14826 aggregate-like.
14827
14828 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14829
14830 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14831
14832 2017-03-29 Yao Qi <yao.qi@linaro.org>
14833
14834 * gdbthread.h (struct thread_info): Declare constructor and
14835 destructor. Add some in-class member initializers.
14836 * thread.c (free_thread): Remove.
14837 (init_thread_list): Call delete instead of free_thread.
14838 (new_thread): Call thread_info constructor.
14839 (thread_info::thread_info): New function.
14840 (thread_info::~thread_info): New function.
14841 (delete_thread_1): Call delete instead of free_thread.
14842 (make_cleanup_restore_current_thread): Move tp and frame to
14843 inner block.
14844
14845 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14846
14847 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14848 (arc_skip_prologue): Likewise.
14849 (arc_make_frame_cache): Likewise.
14850 (arc_pv_get_operand): New function.
14851 (arc_is_in_prologue): Likewise.
14852 (arc_analyze_prologue): Likewise.
14853 (arc_print_frame_cache): Likewise.
14854 (MAX_PROLOGUE_LENGTH): New constant.
14855
14856 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14857
14858 * configure.tgt: Add arc-insn.o.
14859 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14860 (dump_arc_instruction_command): New function.
14861 (arc_fprintf_disasm): Likewise.
14862 (arc_disassemble_info): Likewise.
14863 (arc_insn_get_operand_value): Likewise.
14864 (arc_insn_get_operand_value_signed): Likewise.
14865 (arc_insn_get_memory_base_reg): Likewise.
14866 (arc_insn_get_memory_offset): Likewise.
14867 (arc_insn_get_branch_target): Likewise.
14868 (arc_insn_dump): Likewise.
14869 (arc_insn_get_linear_next_pc): Likewise.
14870 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14871 (arc_disassemble_info): Likewise.
14872 (arc_insn_get_branch_target): Likewise.
14873 (arc_insn_get_linear_next_pc): Likewise.
14874 * NEWS: Mention new "maint print arc arc-instruction".
14875
14876 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14877
14878 * arc-tdep (maintenance_print_arc_list): New variable.
14879 (maintenance_print_arc_command): New function.
14880
14881 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14882
14883 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14884 Add "limm" and "reserved".
14885 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14886 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14887 * arc-tdep.h (arc_regnum): Likewise.
14888
14889 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14890
14891 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14892 for THREADPTR register.
14893 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14894 register.
14895 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14896 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14897 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14898
14899 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14900
14901 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14902 registers above gdbarch_num_regs (gdbarch) as privileged in
14903 call0 ABI.
14904
14905 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14906
14907 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14908 for a single specified register or for all registers in
14909 a0_base..a0_base + C0_NREGS range.
14910 (supply_gregset_reg): Call regcache_raw_supply for a single
14911 specified register or for all registers in a0_base..a0_base +
14912 C0_NREGS range.
14913
14914 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14915
14916 * arch/xtensa.h (C0_NREGS): Add definition.
14917 * xtensa-tdep.c (C0_NREGS): Remove definition.
14918
14919 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14920
14921 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14922 Drop xtensa_default_isa initialization.
14923 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14924
14925 2017-03-27 Pedro Alves <palves@redhat.com>
14926
14927 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14928 (file_entry::include_dir): New method.
14929 (line_header::include_dir_at, line_header::file_name_at): New
14930 methods.
14931 (setup_type_unit_groups, setup_type_unit_groups)
14932 (psymtab_include_file_name): Simplify using the new methods.
14933 (lnp_state_machine) <the_line_header>: New field.
14934 <file>: Add comment.
14935 (lnp_state_machine::current_file): New method.
14936 (dwarf_record_line): Simplify using the new methods.
14937 (init_lnp_state_machine): Initialize the "the_line_header" field.
14938 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14939 Simplify using the new methods.
14940
14941 2017-03-27 Pedro Alves <palves@redhat.com>
14942
14943 * cp-name-parser.y (make_empty): Delete.
14944 (demangler_special, nested_name, ptr_operator, array_indicator)
14945 (direct_declarator, declarator_1): Use fill_comp instead of
14946 make_empty.
14947
14948 2017-03-27 Pedro Alves <palves@redhat.com>
14949
14950 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14951 to ATTRIBUTE_PRINTF.
14952 * solib-target.c (library_list_start_list): Print "string" not
14953 "version".
14954 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14955 gdb_xml_error call.
14956
14957 2017-03-27 Pedro Alves <palves@redhat.com>
14958
14959 * dwarf2read.c (struct file_and_directory): New.
14960 (dwarf2_get_dwz_file): Adjust to use std::string.
14961 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14962 (find_file_and_directory): Adjust to return a file_and_directory
14963 object.
14964 (read_file_scope): Adjust to use file_and_directory. Remove
14965 make_cleanup/do_cleanups calls.
14966 (open_and_init_dwp_file): Adjust to use std::string. Remove
14967 make_cleanup/do_cleanups calls.
14968 * python/python.c (do_start_initialization): Adjust to ldirname
14969 returning a std::string.
14970 * utils.c (ldirname): Now returns a std::string.
14971 * utils.h (ldirname): Change return type to std::string.
14972 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14973 returning a std::string.
14974 * xml-tdesc.c (file_read_description_xml): Likewise.
14975
14976 2017-03-24 Alan Hayward <alan.hayward@arm.com>
14977
14978 * regcache.c (regcache_debug_print_register): New function.
14979 * regcache.h (regcache_debug_print_register): New declaration.
14980 * target.c (debug_print_register): Remove.
14981 (target_fetch_registers): Call regcache_debug_print_register.
14982 (target_store_registers): Likewise.
14983
14984 2017-03-24 Pádraig Brady <pbrady@fb.com>
14985
14986 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14987 reference beyond the 'lh->include_dirs' array before accessing to
14988 it.
14989 (psymtab_include_file_name): Likewise.
14990 (dwarf_decode_lines_1): Likewise.
14991 (dwarf_decode_lines): Likewise.
14992 (file_file_name): Likewise.
14993
14994 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14995
14996 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14997 inferior_ptid.
14998 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14999 ps_lsetfpregs): Likewise.
15000 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
15001 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
15002 ps_lsetfpregs): Likewise.
15003 * target.c (target_fetch_registers, target_store_registers):
15004 Remove asserts.
15005
15006 2017-03-23 Alan Hayward <alan.hayward@arm.com>
15007
15008 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
15009
15010 2017-03-23 Yao Qi <yao.qi@linaro.org>
15011
15012 * aarch64-tdep.c (aarch64_process_record_test): Declare.
15013 (_initialize_aarch64_tdep): Register it.
15014 (aarch64_record_load_store): Handle PRFM instruction.
15015 (aarch64_process_record_test): New function.
15016
15017 2017-03-23 Yao Qi <yao.qi@linaro.org>
15018
15019 * aarch64-tdep.c (aarch64_record_load_store): Fix code
15020 indentation.
15021
15022 2017-03-23 Yao Qi <yao.qi@linaro.org>
15023
15024 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
15025
15026 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
15027
15028 python/python.c (do_start_initialization): Fix memory leak.
15029
15030 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
15031
15032 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
15033 using get_ptrace_pid.
15034 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
15035 inferior_ptid.
15036 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
15037 inferior_ptid instead of pid.
15038
15039 2017-03-22 Yao Qi <yao.qi@linaro.org>
15040
15041 * aarch64-tdep.c: Wrap locally used classes in anonymous
15042 namespace.
15043 * arm-tdep.c: Likewise.
15044 * linespec.c: Likewise.
15045 * ui-out.c: Likewise.
15046
15047 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
15048
15049 PR gdb/19637
15050 * python/lib/gdb/printer/bound_registers.py: Import sys.
15051
15052 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15053
15054 * windows-nat.c (do_windows_fetch_inferior_registers): Add
15055 windows_thread_info parameter and use it instead of
15056 current_thread.
15057 (windows_fetch_inferior_registers): Don't set current_thread,
15058 pass the thread to do_windows_fetch_inferior_registers. Use
15059 ptid from regcache instead of inferior_ptid.
15060 (do_windows_store_inferior_registers): Add windows_thread_info
15061 parameter and use it instead of current_thread.
15062 (windows_store_inferior_registers): Don't set current_thread,
15063 pass the thread to do_windows_store_inferior_registers. Use
15064 ptid from regcache instead of inferior_ptid.
15065
15066 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
15067
15068 * ser-mingw.c (ser_windows_raw): Remove reference to
15069 struct serial::current_timeout.
15070
15071 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
15072
15073 PR tdep/20928
15074 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
15075 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
15076 (sparc64_fsr_type): Fix %fsr decoding.
15077
15078 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
15079
15080 * python/py-record-btrace.c (btpy_insn_data): Change return type
15081 for Python 2.
15082
15083 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15084
15085 * spu-linux-nat.c (spu_fetch_inferior_registers,
15086 spu_store_inferior_registers): Use ptid from regcache, set and
15087 restore inferior_ptid.
15088 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
15089 Likewise.
15090
15091 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
15092
15093 * i386-linux-nat.c (fetch_register, store_register,
15094 i386_linux_fetch_inferior_registers,
15095 i386_linux_store_inferior_registers): Use ptid from regcache.
15096 * ia64-linux-nat.c (ia64_linux_fetch_register,
15097 ia64_linux_store_register): Likewise.
15098 * inf-ptrace.c (inf_ptrace_fetch_register,
15099 inf_ptrace_store_register): Likewise.
15100 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
15101 m32r_linux_store_inferior_registers): Likewise.
15102 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
15103 m68kbsd_store_inferior_registers): Likewise.
15104 * m68k-linux-nat.c (fetch_register, store_register,
15105 m68k_linux_fetch_inferior_registers,
15106 m68k_linux_store_inferior_registers): Likewise.
15107 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
15108 m88kbsd_store_inferior_registers): Likewise.
15109 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
15110 mips_fbsd_store_inferior_registers): Likewise.
15111 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
15112 mips64_linux_regsets_store_registers): Likewise.
15113 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
15114 mipsnbsd_store_inferior_registers): Likewise.
15115 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
15116 mips64obsd_store_inferior_registers): Likewise.
15117 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
15118 Likewise.
15119 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
15120 ppcfbsd_store_inferior_registers): Likewise.
15121 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
15122 ppc_linux_store_inferior_registers): Likewise.
15123 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15124 ppcnbsd_store_inferior_registers): Likewise.
15125 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15126 ppcobsd_store_registers): Likewise.
15127 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15128 Likewise.
15129 * ravenscar-thread.c (ravenscar_fetch_registers,
15130 ravenscar_store_registers, ravenscar_prepare_to_store):
15131 Likewise.
15132 * record-btrace.c (record_btrace_fetch_registers,
15133 record_btrace_store_registers, record_btrace_prepare_to_store):
15134 Likewise.
15135 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15136 Lookup inferior using ptid from regcache, instead of
15137 current_inferior.
15138 * remote.c (remote_fetch_registers, remote_store_registers): Use
15139 ptid from regcache.
15140 * rs6000-nat.c (fetch_register, store_register): Likewise.
15141 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15142 s390_linux_store_inferior_registers): Likewise.
15143 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15144 shnbsd_store_inferior_registers): Likewise.
15145 * sol-thread.c (sol_thread_fetch_registers,
15146 sol_thread_store_registers): Likewise.
15147 * sparc-nat.c (sparc_fetch_inferior_registers,
15148 sparc_store_inferior_registers): Likewise.
15149 * tilegx-linux-nat.c (fetch_inferior_registers,
15150 store_inferior_registers): Likewise.
15151 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15152 vaxbsd_store_inferior_registers): Likewise.
15153 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15154 store_xtregs): Likewise.
15155
15156 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15157
15158 PR gdb/14441
15159 * NEWS: Mention support for rvalue references in GDB and python.
15160 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15161 supports both lvalue and rvalue references.
15162
15163 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15164
15165 PR gdb/14441
15166 * gdbtypes.c (rank_one_type): Implement overloading
15167 resolution rules regarding rvalue references.
15168
15169 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15170
15171 PR gdb/14441
15172 * aarch64-tdep.c (aarch64_type_align)
15173 (aarch64_extract_return_value, aarch64_store_return_value): Change
15174 lvalue reference type checks to general reference type checks.
15175 * amd64-tdep.c (amd64_classify): Likewise.
15176 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15177 Likewise.
15178 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15179 (arm_store_return_value): Likewise.
15180 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15181 * c-typeprint.c (c_print_type): Likewise.
15182 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15183 (cplus_number_of_children, cplus_describe_child): Likewise.
15184 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15185 * completer.c (expression_completer): Likewise.
15186 * cp-support.c (make_symbol_overload_list_adl_namespace):
15187 Likewise.
15188 * darwin-nat-info.c (info_mach_region_command): Likewise.
15189 * dwarf2loc.c (entry_data_value_coerce_ref)
15190 (value_of_dwarf_reg_entry): Likewise.
15191 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15192 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15193 Likewise.
15194 * findvar.c (extract_typed_address, store_typed_address):
15195 Likewise.
15196 * gdbtypes.c (rank_one_type): Likewise.
15197 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15198 * infcall.c (value_arg_coerce): Likewise.
15199 * language.c (pointer_type): Likewise.
15200 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15201 Likewise.
15202 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15203 * mn10300-tdep.c (mn10300_type_align): Likewise.
15204 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15205 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15206 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15207 Likewise.
15208 * printcmd.c (print_formatted, x_command): Likewise.
15209 * python/py-type.c (typy_get_composite, typy_template_argument):
15210 Likewise.
15211 * python/py-value.c (valpy_referenced_value)
15212 (valpy_get_dynamic_type, value_has_field): Likewise.
15213 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15214 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15215 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15216 * spu-tdep.c (spu_scalar_value_p): Likewise.
15217 * symtab.c (lookup_symbol_aux): Likewise.
15218 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15219 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15220 Likewise.
15221 * valops.c (value_cast_pointers, value_cast)
15222 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15223 (value_struct_elt, value_struct_elt_bitpos)
15224 (value_find_oload_method_list, find_overload_match)
15225 (value_rtti_indirect_type): Likewise.
15226 * valprint.c (val_print_scalar_type_p, generic_val_print):
15227 Likewise.
15228 * value.c (value_actual_type, value_as_address, unpack_long)
15229 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15230 (coerce_ref): Likewise.
15231 * varobj.c (varobj_get_value_type): Likewise.
15232
15233 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15234
15235 PR gdb/14441
15236 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15237 table of constants.
15238 * python/lib/gdb/command/explore.py: Support exploring values
15239 of rvalue reference types.
15240 * python/lib/gdb/types.py: Implement get_basic_type() for
15241 rvalue reference types.
15242 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15243 constant.
15244 * python/py-value.c (valpy_getitem): Add an rvalue reference
15245 check.
15246 (valpy_reference_value): Add new parameter "refcode".
15247 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15248 New wrappers for valpy_reference_value().
15249 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15250 (gdbpy_invoke_xmethod): Likewise.
15251
15252 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15253
15254 PR gdb/14441
15255 * dwarf2read.c (process_die, read_type_die_1): Handle the
15256 DW_TAG_rvalue_reference_type DIE.
15257 (read_tag_reference_type): Add new parameter "refcode".
15258
15259 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15260
15261 PR gdb/14441
15262 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15263 (c_type_print_modifier, c_type_print_varspec_suffix)
15264 (c_type_print_base): Support printing rvalue reference types.
15265 * c-valprint.c (c_val_print, c_value_print): Support printing
15266 rvalue reference values.
15267
15268 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15269
15270 PR gdb/14441
15271 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15272 typename.
15273 * cp-support.c (replace_typedefs): Handle
15274 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15275 * python/py-type.c (typy_lookup_type): Likewise.
15276
15277 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15278
15279 PR gdb/14441
15280 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15281 * parse.c (insert_type): Change assert statement.
15282 (follow_types): Handle rvalue reference types.
15283 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15284 constant.
15285
15286 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15287
15288 PR gdb/14441
15289 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15290 value_ref() interface.
15291 * c-valprint.c (c_value_print): Likewise.
15292 * infcall.c (value_arg_coerce): Likewise.
15293 * python/py-value.c (valpy_reference_value): Likewise.
15294 * valops.c (value_cast, value_reinterpret_cast)
15295 (value_dynamic_cast, typecmp): Likewise.
15296 (value_ref): Parameterize by kind of return value reference type.
15297 * value.h (value_ref): Add new parameter "refcode".
15298
15299 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15300
15301 PR gdb/14441
15302 * dwarf2read.c (read_tag_reference_type): Use
15303 lookup_lvalue_reference_type() instead of lookup_reference_type().
15304 * eval.c (evaluate_subexp_standard): Likewise.
15305 * f-exp.y: Likewise.
15306 * gdbtypes.c (make_reference_type, lookup_reference_type):
15307 Generalize with rvalue reference types.
15308 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15309 convenience wrappers for lookup_reference_type().
15310 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15311 reference kind parameter.
15312 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15313 wrappers for lookup_reference_type().
15314 * guile/scm-type.c (gdbscm_type_reference): Use
15315 lookup_lvalue_reference_type() instead of lookup_reference_type().
15316 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15317 * parse.c (follow_types): Likewise.
15318 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15319 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15320 Likewise.
15321 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15322 (gdbpy_invoke_xmethod): Likewise.
15323 * stabsread.c: Provide extra argument to make_reference_type()
15324 call.
15325 * valops.c (value_ref, value_rtti_indirect_type): Use
15326 lookup_lvalue_reference_type() instead of lookup_reference_type().
15327
15328 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15329
15330 PR gdb/14441
15331 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15332 (TYPE_IS_REFERENCE): New macro.
15333 (struct type): Add rvalue_reference_type field.
15334 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15335
15336 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15337
15338 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15339 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15340 New function definition.
15341 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15342 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15343 New function declaration.
15344 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15345 * mi/mi-interp.h: New file.
15346 * solib.c (info_sharedlibrary_command): Replace for loop with
15347 ALL_SO_LIBS macro
15348 * solib.h (update_solib_list): New function declaration.
15349 (so_list_head): Move macro.
15350 * solist.h (ALL_SO_LIBS): New macro.
15351
15352 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15353
15354 * infcmd.c (post_create_inferior): Remove unused argument in
15355 call to solib_add.
15356 * remote.c (remote_start_remote): Likewise.
15357 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15358 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15359 (enable_break): Likewise.
15360 * solib.c (update_solib_list): Remove unused target argument
15361 and its documentation.
15362 (solib_add): Remove unused target argument. Remove unused
15363 argument in call to update_solib_list.
15364 (info_sharedlibrary_command): Remove unused argument in call
15365 to update_solib_list.
15366 (sharedlibrary_command): Remove unused argument in call to
15367 solib_add.
15368 (handle_solib_event): Likewise.
15369 (reload_shared_libraries): Likewise.
15370 * solib.h (solib_add): Remove unused target argument.
15371
15372 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15373
15374 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15375 (s390_displaced_step_fixup): Cover relative branches with the
15376 default fixup handling. This fixes lack of support for some
15377 relative branch instructions.
15378
15379 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15380
15381 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15382 ptid from regcache.
15383
15384 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15385
15386 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15387 i386_darwin_store_inferior_registers): Use ptid from regcache.
15388
15389 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15390
15391 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15392 i386bsd_store_inferior_registers): Use ptid from regcache.
15393
15394 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15395
15396 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15397 hppaobsd_store_registers): Use ptid from regcache.
15398
15399 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15400
15401 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15402 hppanbsd_store_registers): Use ptid from regcache.
15403
15404 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15405
15406 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15407 from regcache. Use get_ptrace_pid.
15408
15409 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15410
15411 * corelow.c (get_core_register_section): Use ptid from regcache,
15412 update doc.
15413
15414 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15415
15416 * bsd-uthread.c (bsd_uthread_fetch_registers,
15417 bsd_uthread_store_registers): Use ptid from regcache, set and
15418 restore inferior_ptid.
15419
15420 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15421
15422 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15423 fetch_fp_regs, store_register, store_regs, store_fp_register,
15424 store_fp_regs): Use ptid from regcache.
15425
15426 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15427
15428 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15429 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15430 store_vfp_regs): Use ptid from regcache.
15431
15432 2017-03-17 Pedro Alves <palves@redhat.com>
15433
15434 PR remote/21188
15435 * ser-base.c (ser_base_wait_for): Add comment.
15436 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15437 version.
15438 * ser-unix.c (hardwire_raw): Remove reference to
15439 scb->current_timeout.
15440 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15441 (hardwire_ops): Install ser_base_readchar instead of
15442 hardwire_readchar.
15443 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15444 Remove fields.
15445
15446 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15447
15448 PR gdb/19637
15449 * python/lib/gdb/printer/bound_registers.py: Add support for
15450 Python 3.
15451
15452 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15453
15454 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15455 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15456 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15457 byte_offset to subobj_byte_offset. Fix the handling of
15458 DWARF_VALUE_STACK on big-endian targets when coming via an
15459 implicit pointer.
15460 (dwarf2_evaluate_loc_desc): Adjust call to
15461 dwarf2_evaluate_loc_desc_full.
15462 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15463 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15464
15465 2017-03-16 Yao Qi <yao.qi@linaro.org>
15466
15467 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15468 and REVSH instructions.
15469
15470 2017-03-16 Yao Qi <yao.qi@linaro.org>
15471
15472 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15473 (arm_record_test): Declare.
15474 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15475 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15476 align with the manual.
15477 (thumb_record_misc): Adjust the code order to align with the
15478 manual.
15479 (thumb2_record_decode_insn_handler): Fix instruction matching.
15480 (instruction_reader_thumb): New class.
15481 (arm_record_test): New function.
15482
15483 2017-03-16 Yao Qi <yao.qi@linaro.org>
15484
15485 * arm-tdep.c (abstract_memory_reader): New class.
15486 (instruction_reader): New class.
15487 (extract_arm_insn): Add argument 'reader'. Callers updated.
15488 (decode_insn): Likewise.
15489
15490 2017-03-16 Doug Evans <dje@google.com>
15491
15492 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15493 member. Change type of TYPE member to SCM. All uses updated.
15494 (lsscm_make_lazy_string_smob): Add assert.
15495 (lsscm_make_lazy_string): Flag bad length values.
15496 (lsscm_elt_type): New function.
15497 (gdbscm_lazy_string_to_value): Rewrite to use
15498 lsscm_safe_lazy_string_to_value.
15499 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15500 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15501 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15502 in incoming type.
15503 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15504 * guile/scm-type.c (tyscm_scm_to_type): New function.
15505
15506 2017-03-15 Doug Evans <dje@google.com>
15507
15508 PR python/17728, python/18439, python/18779
15509 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15510 member. Change type of TYPE member to PyObject *. All uses updated.
15511 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15512 (gdbpy_create_lazy_string_object): Flag bad length values.
15513 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15514 Handle typedefs in incoming type.
15515 (stpy_lazy_string_elt_type): New function.
15516 (gdbpy_extract_lazy_string): Call it.
15517 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15518 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15519 typedefs in incoming type.
15520
15521 2017-03-16 Doug Evans <dje@google.com>
15522
15523 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15524 * guile/scm-type.c (tyscm_scm_to_type): New function.
15525
15526 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15527
15528 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15529 "ULONGEST" for "skip".
15530
15531 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15532
15533 PR gdb/21220
15534 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15535 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15536 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15537 over ptrace peek/poke until end of buffer or error.
15538
15539 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15540
15541 * parse.c (length_of_subexp): Make static.
15542 * parser-defs.h (length_of_subexp): Remove.
15543
15544 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15545
15546 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15547 as well.
15548
15549 2017-03-14 Pedro Alves <palves@redhat.com>
15550
15551 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15552 (main): Use std::unique_ptr. Remove calls to
15553 cp_demangled_name_parse_free.
15554
15555 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15556
15557 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15558 alphabsd_store_inferior_registers): Use regcache->ptid instead
15559 of inferior_ptid.
15560
15561 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15562
15563 * aix-thread.c (aix_thread_fetch_registers,
15564 aix_thread_store_registers): Use regcache->ptid instead of
15565 inferior_ptid.
15566
15567 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15568
15569 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15570 store_gregs_to_thread, fetch_fpregs_from_thread,
15571 store_fpregs_to_thread): Use regcache->ptid instead of
15572 inferior_ptid.
15573
15574 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15575
15576 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15577 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15578 instead of inferior_ptid.
15579
15580 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15581
15582 * target.c (target_fetch_registers, target_store_registers): Add
15583 assert.
15584
15585 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15586
15587 * regcache.h (regcache_get_ptid): New function.
15588 * regcache.c (regcache_get_ptid): New function.
15589
15590 2017-03-13 Mark Wielaard <mark@klomp.org>
15591
15592 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15593
15594 2017-03-10 Keith Seitz <keiths@redhat.com>
15595
15596 PR c++/8218
15597 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15598
15599 2017-03-08 Pedro Alves <palves@redhat.com>
15600
15601 PR gdb/18360
15602 * infrun.c (start_step_over, do_target_resume, resume)
15603 (restart_threads): Assert we're not resuming a thread that is
15604 meant to be stopped.
15605 (infrun_thread_stop_requested_callback): Delete.
15606 (infrun_thread_stop_requested): If the thread is internally
15607 stopped, queue a pending stop event and clear the thread's
15608 inline-frame state.
15609 (handle_stop_requested): New function.
15610 (handle_syscall_event, handle_inferior_event_1): Use
15611 handle_stop_requested.
15612 (handle_stop_requested): New function.
15613 (handle_signal_stop): Set the thread's stop_signal here instead of
15614 at caller.
15615 (finish_step_over): Clear step over info unconditionally.
15616 (handle_signal_stop): If the user had interrupted the event
15617 thread, consider the stop a random signal.
15618 (handle_signal_stop) <signal arrived while stepping over
15619 breakpoint>: Don't restart threads here.
15620 (stop_waiting): Don't clear step-over info here.
15621
15622 2017-03-08 Pedro Alves <palves@redhat.com>
15623
15624 PR 21206
15625 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15626 goes to argument 2, not 1.
15627
15628 2017-03-08 Pedro Alves <palves@redhat.com>
15629
15630 PR cli/21218
15631 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15632 display_gdb_prompt.
15633 (command_line_input): Add comment.
15634
15635 2017-03-08 Pedro Alves <palves@redhat.com>
15636
15637 PR tui/21216
15638 * tui/tui-file.c (tui_file::write): New.
15639 * tui/tui-file.h (tui_file): Override "write".
15640 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15641 factored out from ...
15642 (tui_puts): ... here.
15643 (tui_putc): Use them.
15644 (tui_write): New function.
15645 * tui/tui-io.h (tui_write): Declare.
15646
15647 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15648
15649 * Makefile.in (SFILES): Replace "environ.c" with
15650 "common/environ.c".
15651 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15652 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15653 to...
15654 * common/environ.c: ... here.
15655 * environ.h: Moved to...
15656 * common/environ.h: ... here.
15657
15658 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15659
15660 * gdbarch.sh (pstring_ptr): New static function.
15661 (gdbarch_disassembler_options): Use it.
15662 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15663 not valid_disassembler_option->name.
15664 * gdbarch.c: Regenerate.
15665
15666 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15667
15668 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15669
15670 2017-03-07 Pedro Alves <palves@redhat.com>
15671
15672 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15673
15674 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15675
15676 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15677 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15678 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15679 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15680
15681 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15682
15683 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15684
15685 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15686
15687 * remote.c (remote_add_target_side_commands): Use range-based
15688 for loop.
15689
15690 2017-03-03 Yao Qi <yao.qi@linaro.org>
15691
15692 PR gdb/21165
15693 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15694 value is lazy.
15695 * valprint.c (common_val_print): Likewise.
15696
15697 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15698
15699 * NEWS: Mention new set/show disassembler-options commands.
15700 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15701 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15702 (prospective_options): New static variable.
15703 (gdb_disassembler::gdb_disassembler): Initialize
15704 m_di.disassembler_options.
15705 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15706 (get_disassembler_options): New function.
15707 (set_disassembler_options): Likewise.
15708 (set_disassembler_options_sfunc): Likewise.
15709 (show_disassembler_options_sfunc): Likewise.
15710 (disassembler_options_completer): Likewise.
15711 (_initialize_disasm): Likewise.
15712 * disasm.h (get_disassembler_options): New prototype.
15713 (set_disassembler_options): Likewise.
15714 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15715 (gdbarch_verify_disassembler_options): Likewise.
15716 * gdbarch.c: Regenerate.
15717 * gdbarch.h: Likewise.
15718 * arm-tdep.c (num_disassembly_options): Delete.
15719 (set_disassembly_style): Likewise.
15720 (arm_disassembler_options): New static variable.
15721 (set_disassembly_style_sfunc): Convert short style name into long
15722 option name. Call set_disassembler_options.
15723 (show_disassembly_style_sfunc): New function.
15724 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15725 set_gdbarch_verify_disassembler_options.
15726 (_initialize_arm_tdep): Delete regnames variable and update callers.
15727 (arm_disassembler_options): Initialize.
15728 (disasm_options): New variable.
15729 (num_disassembly_options): Rename from this...
15730 (num_disassembly_styles): ...to this. Compute by scanning through
15731 disasm_options.
15732 (valid_disassembly_styles): Initialize using disasm_options.
15733 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15734 set_arm_regname_option.
15735 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15736 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15737 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15738 set_gdbarch_verify_disassembler_options.
15739 * s390-tdep.c (s390_disassembler_options): New static variable.
15740 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15741 set_gdbarch_verify_disassembler_options.
15742
15743 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15744
15745 * remote.c (remote_add_target_side_condition): Remove "struct"
15746 keyword from range-based for loop.
15747
15748 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15749
15750 * remote.c (remote_add_target_side_condition): Use range-based
15751 for loop. Update comment.
15752
15753 2017-02-27 Yao Qi <yao.qi@linaro.org>
15754
15755 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15756
15757 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15758
15759 * regcache.c (regcache_raw_update): New function.
15760 (regcache_raw_read): Move code to regcache_raw_update.
15761 * regcache.h (regcache_raw_update): New declaration.
15762 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15763
15764 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15765
15766 * dwarf2read.c (create_debug_type_hash_table): Initialize
15767 header.signature and header.type_offset_in_tu.
15768
15769 2017-02-24 Pedro Alves <palves@redhat.com>
15770
15771 * symtab.c (make_file_symbol_completion_list_1): Use
15772 add_symtab_completions.
15773
15774 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15775
15776 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15777
15778 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15779
15780 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15781 I386_MAX_REGISTER_SIZE.
15782 (i386_pseudo_register_write): Likewise.
15783 (i386_process_record): Likewise.
15784 * i387-tdep.c (i387_supply_xsave): Likewise.
15785 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15786 (store_register): Likewise.
15787
15788 2017-02-23 Pedro Alves <palves@redhat.com>
15789
15790 * ada-lang.c: Include "common/function-view.h".
15791 (ada_iterate_over_symbols): Adjust to use function_view as
15792 callback type.
15793 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15794 (ada_make_symbol_completion_list): Use a lambda.
15795 (ada_exc_search_name_matches): Delete.
15796 (name_matches_regex): New.
15797 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15798 * compile/compile-c-support.c: Include "common/function-view.h".
15799 (print_one_macro): Change prototype to accept a ui_file pointer.
15800 (write_macro_definitions): Use a lambda.
15801 * dwarf2read.c: Include "common/function-view.h".
15802 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15803 (dw2_expand_symtabs_matching): Adjust to use function_view as
15804 callback type.
15805 * language.h: Include "common/function-view.h".
15806 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15807 function_view as callback type.
15808 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15809 * linespec.c: Include "common/function-view.h".
15810 (collect_info::add_symbol): New method.
15811 (struct symbol_and_data_callback, iterate_inline_only, struct
15812 symbol_matcher_data, iterate_name_matcher): Delete.
15813 (iterate_over_all_matching_symtabs): Adjust to use function_view
15814 as callback type and lambdas.
15815 (iterate_over_file_blocks): Adjust to use function_view as
15816 callback type.
15817 (decode_compound_collector): Now a class with private fields.
15818 (decode_compound_collector::release_symbols): New method.
15819 (collect_one_symbol): Rename to...
15820 (decode_compound_collector::operator()): ... this and adjust.
15821 (lookup_prefix_sym): decode_compound_collector construction bits
15822 move to decode_compound_collector ctor. Pass the
15823 decode_compound_collector object directly as callback. Remove
15824 cleanups and use decode_compound_collector::release_symbols
15825 instead.
15826 (symtab_collector): Now a class with private fields.
15827 (symtab_collector::release_symtabs): New method.
15828 (add_symtabs_to_list): Rename to...
15829 (symtab_collector::operator()): ... this and adjust.
15830 (collect_symtabs_from_filename): symtab_collector construction
15831 bits move to symtab_collector ctor. Pass the symtab_collector
15832 object directly as callback. Remove cleanups and use
15833 symtab_collector::release_symtabs instead.
15834 (collect_symbols): Delete.
15835 (add_matching_symbols_to_info): Use lambdas.
15836 * macrocmd.c (print_macro_callback): Delete.
15837 (info_macro_command): Use a lambda.
15838 (info_macros_command): Pass print_macro_definition as callable
15839 directly.
15840 (print_one_macro): Remove 'ignore' parameter.
15841 (macro_list_command): Adjust.
15842 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15843 (macro_for_each_data::user_data): Delete field.
15844 (foreach_macro): Adjust to call the function_view.
15845 (macro_for_each): Adjust to use function_view as callback type.
15846 (foreach_macro_in_scope): Adjust to call the function_view.
15847 (macro_for_each_in_scope): Adjust to use function_view as callback
15848 type.
15849 * macrotab.h: Include "common/function-view.h".
15850 (macro_callback_fn): Declare a prototype instead of a pointer.
15851 Remove "user_data" parameter.
15852 (macro_for_each, macro_for_each_in_scope): Adjust to use
15853 function_view as callback type.
15854 * psymtab.c (partial_map_expand_apply)
15855 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15856 Adjust to use function_view as callback type and to return bool.
15857 (psym_expand_symtabs_matching): Adjust to use function_view as
15858 callback types.
15859 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15860 to use function_view as callback type and to return bool.
15861 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15862 callback types.
15863 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15864 as callback types.
15865 * symfile.h: Include "common/function-view.h".
15866 (expand_symtabs_file_matcher_ftype)
15867 (expand_symtabs_symbol_matcher_ftype)
15868 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15869 return bool.
15870 (quick_symbol_functions::map_symtabs_matching_filename)
15871 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15872 function_view as callback type and return bool.
15873 (expand_symtabs_matching): Adjust to use function_view as callback
15874 type.
15875 (maintenance_expand_name_matcher)
15876 (maintenance_expand_file_matcher): Delete.
15877 (maintenance_expand_symtabs): Use lambdas.
15878 * symtab.c (iterate_over_some_symtabs): Adjust to use
15879 function_view as callback types and return bool.
15880 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15881 of a cleanup.
15882 (lookup_symtab_callback): Delete.
15883 (lookup_symtab): Use a lambda.
15884 (iterate_over_symbols): Adjust to use function_view as callback
15885 type.
15886 (struct search_symbols_data, search_symbols_file_matches)
15887 (search_symbols_name_matches): Delete.
15888 (search_symbols): Use a pair of lambdas.
15889 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15890 (symtab_expansion_callback): Delete.
15891 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15892 * symtab.h: Include "common/function-view.h".
15893 (iterate_over_some_symtabs): Adjust to use function_view as
15894 callback type and return bool.
15895 (iterate_over_symtabs): Adjust to use function_view as callback
15896 type.
15897 (symbol_found_callback_ftype): Remove 'data' parameter and return
15898 bool.
15899 (iterate_over_symbols): Adjust to use function_view as callback
15900 type.
15901
15902 2017-02-23 Pedro Alves <palves@redhat.com>
15903
15904 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15905 (%.o) <unittests/%.c>: New pattern.
15906 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15907 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15908 * common/function-view.h: New file.
15909 * unittests/function-view-selftests.c: New file.
15910 * configure: Regenerate.
15911
15912 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15913
15914 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15915 inferior_ptid.
15916 * go32-nat.c (go32_thread_alive): Likewise.
15917
15918 2017-02-23 Yao Qi <yao.qi@linaro.org>
15919
15920 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15921 delete.
15922
15923 2017-02-23 Yao Qi <yao.qi@linaro.org>
15924
15925 * varobj.c (varobj_clear_saved_item): Use delete instead of
15926 xfree.
15927 (update_dynamic_varobj_children): Likewise.
15928
15929 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15930
15931 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15932
15933 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15934
15935 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15936 m_enum_value to 0 in default constructor.
15937
15938 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15939
15940 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15941 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15942 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15943 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15944 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15945 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15946 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15947 IS_STORE_CONDITIONAL_INSN.
15948
15949 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15950
15951 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15952
15953 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15954
15955 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15956
15957 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15958
15959 * dwarf2read.c (skip_one_die, read_attribute_value)
15960 (dwarf2_const_value_attr, dump_die_shallow)
15961 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15962 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15963
15964 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15965
15966 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15967 (dwarf_parse_macro_header): Accept DWARF version 5.
15968 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15969
15970 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15971
15972 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15973 DW_AT_GNU_*.
15974 * common/common-exceptions.h (enum errors): Likewise.
15975 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15976 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15977 (dwarf_expr_context::execute_stack_op): Likewise.
15978 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15979 Likewise.
15980 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15981 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15982 (show_entry_values_debug, call_site_to_target_addr)
15983 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15984 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15985 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15986 (value_of_dwarf_block_entry, indirect_pieced_value)
15987 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15988 (disassemble_dwarf_expression): Likewise.
15989 * dwarf2read.c (process_die, inherit_abstract_dies)
15990 (read_call_site_scope): Likewise.
15991 * gdbtypes.h (struct func_type, struct call_site_parameter)
15992 (struct call_site): Likewise.
15993 * stack.c (read_frame_arg): Likewise.
15994 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15995
15996 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15997
15998 * defs.h (read_unsigned_leb128): New declaration.
15999 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
16000 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
16001 (dwarf2_find_location_expression): Call also
16002 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
16003 * dwarf2loc.h (dwarf2_version): New declaration.
16004 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
16005 rnglists.
16006 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
16007 .debug_rnglists.
16008 (struct dwop_section_names): Add loclists_dwo.
16009 (dwop_section_names): Add .debug_loclists.dwo.
16010 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
16011 (struct dwarf2_per_cu_data): Add dwarf_version.
16012 (struct dwo_sections): Add loclists.
16013 (struct attr_abbrev): Add implicit_const.
16014 (read_indirect_line_string): New declaration.
16015 (read_unsigned_leb128): Delete declaration.
16016 (rcuh_kind): New definition.
16017 (read_and_check_comp_unit_head): Change parameter
16018 is_debug_types_section to section_kind.
16019 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
16020 (read_comp_unit_head): Change parameter abfd to section, add parameter
16021 section_kind. Handle DWARF-5.
16022 (error_check_comp_unit_head): Accept also DWARF version 5.
16023 (read_and_check_comp_unit_head): Change parameter
16024 is_debug_types_section to section_kind.
16025 (read_and_check_type_unit_head): Delete function.
16026 (read_abbrev_offset): Handle DWARF-5.
16027 (create_debug_type_hash_table): Add parameter section_kind. Process
16028 only DW_UT_type. Use signature and type_offset_in_tu from struct
16029 comp_unit_head.
16030 (create_debug_types_hash_table): Update create_debug_type_hash_table
16031 caller.
16032 (create_all_type_units): Call create_debug_type_hash_table.
16033 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
16034 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
16035 caller.
16036 (skip_one_die): Handle DW_FORM_implicit_const.
16037 (dwarf2_rnglists_process): New function.
16038 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
16039 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
16040 (read_attribute_value): Handle DW_FORM_implicit_const,
16041 DW_FORM_line_strp.
16042 (read_attribute): Handle DW_FORM_implicit_const.
16043 (read_indirect_string_at_offset_from): New function from
16044 read_indirect_string_at_offset.
16045 (read_indirect_string_at_offset): Call
16046 read_indirect_string_at_offset_from.
16047 (read_indirect_line_string_at_offset): New function.
16048 (read_indirect_string): New function comment.
16049 (read_indirect_line_string): New function.
16050 (read_unsigned_leb128): Make it global.
16051 (dwarf2_string_attr): Handle DWARF-5.
16052 (add_include_dir_stub, read_formatted_entries): New functions.
16053 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
16054 Handle DWARF-5.
16055 (per_cu_header_read_in): Update read_comp_unit_head caller.
16056 (dwarf2_version): New function.
16057 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
16058 rnglists.
16059 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
16060 fields.
16061
16062 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16063
16064 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
16065
16066 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16067
16068 * dwarf2read.c (dwarf2_ranges_process): New function from
16069 dwarf2_ranges_read.
16070 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
16071 dwarf2_ranges_process.
16072
16073 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16074
16075 * dwarf2read.c (create_debug_type_hash_table): New function from
16076 create_debug_types_hash_table.
16077 (create_debug_types_hash_table): Call create_debug_type_hash_table.
16078 (create_all_type_units, open_and_init_dwo_file): Update
16079 create_debug_types_hash_table callers.
16080
16081 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16082
16083 PR gdb/16188
16084 * fork-child.c (trace_start_error): Fix thinko. va_end should
16085 refer to 'ap', not 'args'.
16086
16087 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
16088 Pedro Alves <palves@redhat.com>
16089
16090 PR gdb/16188
16091 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
16092 calls succeeded.
16093 * fork-child.c (trace_start_error): New function.
16094 (trace_start_error_with_name): Likewise.
16095 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
16096 * inf-ptrace.c (inf_ptrace_me): Likewise.
16097 * inferior.h (trace_start_error): New prototype.
16098 (trace_start_error_with_name): Likewise.
16099
16100 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
16101
16102 PR gdb/21164
16103 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
16104 NULL before using it.
16105 * symmisc.c (maintenance_print_symbols): Likewise.
16106 (maintenance_print_msymbols): Likewise.
16107
16108 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16109
16110 * NEWS: Add record Python bindings entry.
16111
16112 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16113
16114 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
16115 py-record-full.o.
16116 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
16117 * python/py-record-btrace.c, python/py-record-btrace.h,
16118 python/py-record-full.c, python/py-record-full.h: New file.
16119 * python/py-record.c: Add include for py-record-btrace.h and
16120 py-record-full.h.
16121 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
16122 recpy_instruction_history, recpy_function_call_history, recpy_begin,
16123 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16124 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16125 New definition.
16126 (gdbpy_initialize_btrace): New export.
16127 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16128
16129 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16130
16131 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16132 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16133 * python/py-record.c: New file.
16134 * python/python-internal.h (gdbpy_start_recording,
16135 gdbpy_current_recording, gdpy_stop_recording,
16136 gdbpy_initialize_record): New export.
16137 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16138 (python_GdbMethods): Add gdbpy_start_recording,
16139 gdbpy_current_recording and gdbpy_stop_recording.
16140
16141 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16142
16143 * record-btrace.c (record_btrace_record_method): New function.
16144 (init_record_btrace_ops): Initialize to_record_method.
16145 * record-full.c (record_full_record_method): New function.
16146 (init_record_full_ops, init_record_full_core_ops): Add
16147 record_full_record_method.
16148 * record.h (enum record_method): New enum.
16149 * target-debug.h (target_debug_print_enum_record_method: New define.
16150 * target-delegates.c: Regenerate.
16151 * target.c (target_record_method): New function.
16152 * target.h: Include record.h.
16153 (struct target_ops) <to_record_method>: New field.
16154 (target_record_method): New export.
16155
16156 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16157
16158 * record.h (record_start, record_stop): New export.
16159 * record.c (record_start, record_stop): New function.
16160
16161 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16162
16163 * btrace.c (btrace_fetch): Copy function call segments pointer
16164 into a vector.
16165 (btrace_clear): Clear the vector.
16166 (btrace_find_insn_by_number): Use binary search to find the correct
16167 function call segment.
16168 * btrace.h (brace_fun_p): New typedef.
16169 (struct btrace_thread_info) <functions>: New field.
16170
16171 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16172
16173 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16174 * btrace.c (btrace_decode_error): ... here. New function.
16175 * btrace.h (btrace_decode_error): New export.
16176
16177 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16178
16179 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16180 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16181 btrace_find_insn_by_number): Remove special case for gaps.
16182 * btrace.h (btrace_insn_get_error): New export.
16183 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16184 * record-btrace.c (btrace_insn_history): Print number for gaps.
16185 (record_btrace_info, record_btrace_goto): Handle gaps.
16186
16187 2017-02-14 Tom Tromey <tom@tromey.com>
16188
16189 PR python/13598:
16190 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16191 event.
16192 * python/py-evts.c (gdbpy_initialize_py_events): Add
16193 before_prompt registry.
16194 * python/py-events.h (events_object) <before_prompt>: New field.
16195
16196 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16197
16198 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16199
16200 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16201
16202 * symfile (_initialize_symfile): Add usage text to the load command's
16203 help text.
16204
16205 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16206
16207 * utils.c (defaulted_query): Don't query on secondary UIs.
16208
16209 2017-02-10 Tom Tromey <tom@tromey.com>
16210
16211 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16212
16213 2017-02-10 Tom Tromey <tom@tromey.com>
16214
16215 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16216 "cleanup" local.
16217 * python/py-type.c (typy_legacy_template_argument): Remove
16218 unnecessary "cleanup" local.
16219
16220 2017-02-10 Tom Tromey <tom@tromey.com>
16221
16222 * python/python.c (do_start_initialization): New function, from
16223 _initialize_python.
16224 (_initialize_python): Call do_start_initialization.
16225 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16226 goto.
16227
16228 2017-02-10 Tom Tromey <tom@tromey.com>
16229
16230 * python/py-prettyprint.c (pretty_print_one_value): Use
16231 gdbpy_ref.
16232
16233 2017-02-10 Tom Tromey <tom@tromey.com>
16234
16235 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16236 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16237 gdbpy_ref.
16238 * python/py-type.c (field_new): Use gdbpy_ref.
16239 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16240 gdbpy_ref.
16241 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16242 (py_free_pspace): Likewise.
16243 (pspace_to_pspace_object): Likewise.
16244 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16245 (py_free_objfile): Likewise.
16246 (objfile_to_objfile_object): Likewise.
16247 * python/py-inferior.c (delete_thread_object): Use
16248 gdbpy_ref.
16249 (infpy_read_memory): Likewise.
16250 (py_free_inferior): Likewise.
16251 * python/py-evtregistry.c (create_eventregistry_object): Use
16252 gdbpy_ref.
16253 * python/py-event.c (create_event_object): Use gdbpy_ref.
16254
16255 2017-02-10 Tom Tromey <tom@tromey.com>
16256
16257 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16258 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16259 used.
16260 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16261 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16262 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16263 python/py-framefilter.c, python/py-function.c,
16264 python/py-inferior.c, python/py-infevents.c,
16265 python/py-linetable.c, python/py-newobjfileevent.c,
16266 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16267 python/py-signalevent.c, python/py-stopevent.c,
16268 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16269 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16270 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16271 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16272
16273 2017-02-10 Tom Tromey <tom@tromey.com>
16274
16275 * ui-out.h (ui_out_emit_type): New class.
16276 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16277 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16278 and ui_out_emit_tuple.
16279 (enumerate_locals): Likewise.
16280 (py_mi_print_variables, py_print_locals, py_print_args): Use
16281 ui_out_emit_list.
16282 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16283 ui_out_emit_list.
16284 * common/gdb_optional.h: New file.
16285
16286 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16287
16288 * MAINTAINERS (Write After Approval): Update my e-mail address.
16289
16290 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16291
16292 PR gdb/21122
16293 * breakpoint.c (_initialize_breakpoint): Update the help description
16294 of the 'commands' command to indicate that it takes a list argument.
16295
16296 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16297
16298 * interps.c (current_interp_set_logging): Remove "return".
16299
16300 2017-02-09 Gary Benson <gbenson@redhat.com>
16301
16302 * symtab.c (add_symtab_completions): Prevent NULL pointer
16303 dereference.
16304
16305 2017-02-08 Pedro Alves <palves@redhat.com>
16306
16307 * interps.c (interp::interp): Remove reference to quiet_p.
16308 (interp_set): Make static. Remove dead "Switching to" output
16309 code.
16310 (interp_quiet_p, interp_set_quiet): Delete.
16311 (interpreter_exec_cmd): Don't set the interpreter quiet.
16312 * interps.h (interp_quiet_p): Make static.
16313 (class interp) <quiet_p>: Remove field
16314
16315 2017-02-08 Jerome Guitton <guitton@adacore.com>
16316
16317 * cli/cli-decode.c (find_command_name_length): Make it extern.
16318 * cli/cli-decode.h (find_command_name_length): Declare.
16319 * cli/cli-script.c (command_name_equals, line_first_arg):
16320 New functions.
16321 (process_next_line): Use cli-decode to parse command names.
16322 (build_command_line): Make args a constant pointer.
16323
16324 2017-02-08 Jerome Guitton <guitton@adacore.com>
16325
16326 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16327 Remove case-insensitive search.
16328
16329 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16330
16331 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16332 at the end of the line. Avoids an ARI warning.
16333
16334 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16335
16336 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16337 rdseed instructions.
16338 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16339
16340 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16341
16342 PR tdep/20936
16343 Provide and use sparc32 and sparc64 target description XML files.
16344 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16345 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16346 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16347 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16348 * features/sparc/sparc32-solaris.xml: New file.
16349 * features/sparc/sparc64-solaris.xml: New file.
16350 * features/sparc/sparc32-solaris.c: Generated.
16351 * features/sparc/sparc64-solaris.c: Generated.
16352 * sparc-tdep.h: Account for differences in target descriptions.
16353 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16354 (sparc32_register_type): Use target provided registers.
16355 (validate_tdesc_registers): New function.
16356 (sparc32_gdbarch_init): Use tdesc_has_registers.
16357 Set pseudoregister functions.
16358 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16359 (sparc64_register_type): Use target provided registers.
16360 (sparc64_init_abi): Set pseudoregister functions.
16361
16362 2017-02-03 Tom Tromey <tom@tromey.com>
16363
16364 PR rust/21097:
16365 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16366 with a single member.
16367
16368 2017-02-03 Pedro Alves <palves@redhat.com>
16369
16370 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16371 (cli_interp_base::~cli_interp_base): New.
16372 (cli_interp): New struct.
16373 (as_cli_interp): Cast the interp itself to cli_interp.
16374 (cli_interpreter_pre_command_loop): Rename to ...
16375 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16376 parameter.
16377 (cli_interpreter_init): Rename to ...
16378 (cli_interp::init): ... this. Remove 'self' parameter. Use
16379 boolean. Make extern.
16380 (cli_interpreter_resume): Rename to ...
16381 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16382 extern.
16383 (cli_interpreter_suspend): Rename to ...
16384 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16385 extern.
16386 (cli_interpreter_exec): Rename to ...
16387 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16388 extern.
16389 (cli_interpreter_supports_command_editing): Rename to ...
16390 (cli_interp_base::supports_command_editing): ... this. Remove
16391 'interp' parameter. Make extern.
16392 (cli_ui_out): Rename to ...
16393 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16394 Make extern.
16395 (cli_set_logging): Rename to ...
16396 (cli_interp_base::set_logging): ... this. Remove 'interp'
16397 parameter. Make extern.
16398 (cli_interp_procs): Delete.
16399 (cli_interp_factory): Adjust to use "new".
16400 * cli/cli-interp.h: Include "interps.h".
16401 (struct cli_interp_base): New struct.
16402 * interps.c (struct interp): Delete. Fields moved to interps.h.
16403 (interp_new): Delete.
16404 (interp::interp, interp::~interp): New.
16405 (interp_set): Use bool, and return void. Assume the interpreter
16406 has suspend, init and resume methods, and that the all return
16407 void.
16408 (set_top_level_interpreter): interp_set returns void.
16409 (interp_ui_out): Adapt.
16410 (current_interp_set_logging): Adapt.
16411 (interp_data): Delete.
16412 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16413 (interp_exec): Adapt.
16414 (top_level_interpreter_data): Delete.
16415 * interps.h (interp_init_ftype, interp_resume_ftype)
16416 (interp_suspend_ftype, interp_exec_ftype)
16417 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16418 (class interp): New.
16419 (interp_new): Delete.
16420 (interp_set): Now returns void. Use bool.
16421 (interp_data, top_level_interpreter_data): Delete.
16422 * mi/mi-common.h: Include interps.h.
16423 (class mi_interp): Inherit from interp. Define a ctor. Declare
16424 init, resume, suspect, exec, interp_ui_out, set_logging and
16425 pre_command_loop methods.
16426 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16427 (mi_interpreter_init): Rename to ...
16428 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16429 bool, return void and make extern. Adjust.
16430 (mi_interpreter_resume): ... Rename to ...
16431 (mi_interp::resume): ... this. Remove the 'data' parameter,
16432 return void and make extern. Adjust.
16433 (mi_interpreter_suspend): ... Rename to ...
16434 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16435 return void and make extern. Adjust.
16436 (mi_interpreter_exec): ... Rename to ...
16437 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16438 extern. Adjust.
16439 (mi_interpreter_pre_command_loop): ... Rename to ...
16440 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16441 parameter and make extern.
16442 (mi_on_normal_stop_1): Adjust.
16443 (mi_ui_out): Rename to ...
16444 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16445 parameter and make extern. Adjust.
16446 (mi_set_logging): Rename to ...
16447 (mi_interp::set_logging): ... this. Remove the 'interp'
16448 parameter and make extern. Adjust.
16449 (mi_interp_procs): Delete.
16450 (mi_interp_factory): Adjust to use 'new'.
16451 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16452 (mi_print_exception, mi_execute_command, mi_load_progress):
16453 Adjust.
16454 * tui/tui-interp.c (tui_interp): New class.
16455 (as_tui_interp): Return a tui_interp pointer.
16456 (tui_on_normal_stop, tui_on_signal_received)
16457 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16458 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16459 to use interp::interp_ui_out.
16460 (tui_init): Rename to ...
16461 (tui_interp::init): ... this. Remove the 'self' parameter, use
16462 bool, return void and make extern. Adjust.
16463 (tui_resume): Rename to ...
16464 (tui_interp::resume): ... this. Remove the 'data' parameter,
16465 return void and make extern. Adjust.
16466 (tui_suspend): Rename to ...
16467 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16468 return void and make extern. Adjust.
16469 (tui_ui_out): Rename to ...
16470 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16471 parameter, and make extern. Adjust.
16472 (tui_exec): Rename to ...
16473 (tui_interp::exec): ... this. Remove the 'data' parameter and
16474 make extern.
16475 (tui_interp_procs): Delete.
16476 (tui_interp_factory): Use "new".
16477
16478 2017-02-02 Tom Tromey <tom@tromey.com>
16479
16480 * rust-exp.y (ends_raw_string, space_then_number)
16481 (rust_identifier_start_p): Return bool.
16482 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16483 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16484 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16485 (rust_chartype_p): Return bool.
16486 (val_print_struct, rust_print_struct_def, rust_print_type):
16487 Update.
16488 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16489 Return bool.
16490
16491 2017-02-02 Tom Tromey <tom@tromey.com>
16492
16493 * rust-lang.c: Reindent.
16494
16495 2017-02-02 Tom Tromey <tom@tromey.com>
16496
16497 * rust-lang.h (rust_crate_for_block): Update.
16498 * rust-lang.c (rust_crate_for_block): Return std::string.
16499 (rust_get_disr_info): Use std:;string, not
16500 gdb::unique_xmalloc_ptr.
16501 * rust-exp.y (crate_name): Update.
16502
16503 2017-02-02 Pedro Alves <palves@redhat.com>
16504
16505 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16506 field out of gdb_disassembler_test and make it static.
16507
16508 2017-02-02 Pedro Alves <palves@redhat.com>
16509
16510 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16511 mi1_interp and mi_interp fields.
16512
16513 2017-02-02 Pedro Alves <palves@redhat.com>
16514
16515 * cli/cli-interp.c (struct saved_output_files, saved_output):
16516 Moved from cli/cli-logging.c.
16517 (cli_set_logging): New function.
16518 (cli_interp_procs): Install cli_set_logging.
16519 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16520 Declare.
16521 * cli/cli-logging.c (struct saved_output_files, saved_output):
16522 Moved to cli/cli-interp.c.
16523 (pop_output_files): Don't save outputs here.
16524 (make_logging_output): New function.
16525 (handle_redirections): Don't build tee nor save previous outputs
16526 here.
16527 * interps.c (current_interp_set_logging): Change prototype.
16528 Assume there's always a set_logging_proc method installed.
16529 * interps.h (interp_set_logging_ftype): Change prototype.
16530 (current_interp_set_logging): Change prototype and adjust comment.
16531 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16532 use make_logging_output.
16533 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16534 2017-02-02 Pedro Alves <palves@redhat.com>
16535
16536 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16537 from ...
16538 (set_logging_overwrite): ... here.
16539 (logging_no_redirect_file): Delete.
16540 (set_logging_redirect): Don't handle redirection on the fly.
16541 Instead warn that "logging off" / "logging on" is necessary.
16542 (pop_output_files): Delete references to logging_no_redirect_file.
16543 (show_logging_command): Always speak in terms of what will happen
16544 once logging is reenabled.
16545
16546 2017-02-02 Pedro Alves <palves@redhat.com>
16547
16548 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16549
16550 2017-02-02 Pedro Alves <palves@redhat.com>
16551
16552 * disasm.c (gdb_pretty_print_insn): Rename to ...
16553 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16554 Remove gdbarch parameter. Adapt to clear the object's buffers
16555 instead of allocating new buffers, and to print using the object's
16556 gdb_disassembler instead of calling gdb_print_insn.
16557 (dump_insns): Use gdb_pretty_print_disassembler.
16558 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16559 (gdb_pretty_print_disassembler): New class.
16560 * record-btrace.c (btrace_insn_history): Use
16561 gdb_pretty_print_disassembler.
16562
16563 2017-02-02 Pedro Alves <palves@redhat.com>
16564
16565 * ada-lang.c (type_as_string): Use string_file.
16566 * ada-valprint.c (ada_print_floating): Use string_file.
16567 * ada-varobj.c (ada_varobj_scalar_image)
16568 (ada_varobj_get_value_image): Use string_file.
16569 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16570 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16571 * breakpoint.c (update_inserted_breakpoint_locations)
16572 (insert_breakpoint_locations, reattach_breakpoints)
16573 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16574 (print_it_watchpoint): Use string_file.
16575 (save_breakpoints): Use stdio_file.
16576 * c-exp.y (oper): Use string_file.
16577 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16578 tee_file.
16579 (pop_output_files): Use delete.
16580 (handle_redirections): Use stdio_file and tee_file.
16581 * cli/cli-setshow.c (do_show_command): Use string_file.
16582 * compile/compile-c-support.c (c_compute_program): Use
16583 string_file.
16584 * compile/compile-c-symbols.c (generate_vla_size): Take a
16585 'string_file &' instead of a 'ui_file *'.
16586 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16587 of a 'ui_file *'. Use string_file.
16588 (generate_c_for_variable_locations): Take a 'string_file &'
16589 instead of a 'ui_file *'.
16590 * compile/compile-internal.h (generate_c_for_for_one_variable):
16591 Take a 'string_file &' instead of a 'ui_file *'.
16592 * compile/compile-loc2c.c (push, pushf, unary, binary)
16593 (print_label, pushf_register_address, pushf_register)
16594 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16595 'ui_file *'. Adjust.
16596 * compile/compile.c (compile_to_object): Use string_file.
16597 * compile/compile.h (compile_dwarf_expr_to_c)
16598 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16599 'ui_file *'.
16600 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16601 (replace_typedefs_qualified_name): Use string_file and
16602 obstack_copy0.
16603 * disasm.c (gdb_pretty_print_insn): Use string_file.
16604 (gdb_disassembly): Adjust reference the null_stream global.
16605 (do_ui_file_delete): Delete.
16606 (gdb_insn_length): Use null_stream.
16607 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16608 * dwarf2loc.c (dwarf2_compile_property_to_c)
16609 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16610 'string_file &' instead of a 'ui_file *'.
16611 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16612 * dwarf2read.c (do_ui_file_peek_last): Delete.
16613 (dwarf2_compute_name): Use string_file.
16614 * event-top.c (gdb_setup_readline): Use stdio_file.
16615 * gdbarch.sh (verify_gdbarch): Use string_file.
16616 * gdbtypes.c (safe_parse_type): Use null_stream.
16617 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16618 string_file.
16619 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16620 'string_file *' instead of a 'ui_file *'.
16621 (gdbscm_arch_disassemble): Use string_file.
16622 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16623 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16624 inherits from ui_file.
16625 (ioscm_file_port_delete, ioscm_file_port_rewind)
16626 (ioscm_file_port_put): Delete.
16627 (ioscm_file_port_write): Rename to ...
16628 (ioscm_file_port::write): ... this. Remove file_port_magic
16629 checks.
16630 (ioscm_file_port_new): Delete.
16631 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16632 ui_file_up.
16633 * guile/scm-type.c (tyscm_type_name): Use string_file.
16634 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16635 Use string_file.
16636 * infcmd.c (print_return_value_1): Use string_file.
16637 * infrun.c (print_target_wait_results): Use string_file.
16638 * language.c (add_language): Use string_file.
16639 * location.c (explicit_to_string_internal): Use string_file.
16640 * main.c (captured_main_1): Use null_file.
16641 * maint.c (maintenance_print_architecture): Use stdio_file.
16642 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16643 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16644 event_channel>: Change type to mi_console_file pointer.
16645 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16646 (mi_console_file_delete): Delete.
16647 (struct mi_console_file): Delete.
16648 (mi_console_file_magic): Delete.
16649 (mi_console_file_new): Delete.
16650 (mi_console_file::mi_console_file): New.
16651 (mi_console_file_delete): Delete.
16652 (mi_console_file_fputs): Delete.
16653 (mi_console_file::write): New.
16654 (mi_console_raw_packet): Delete.
16655 (mi_console_file::flush): New.
16656 (mi_console_file_flush): Delete.
16657 (mi_console_set_raw): Rename to ...
16658 (mi_console_file::set_raw): ... this.
16659 * mi/mi-console.h (class mi_console_file): New class.
16660 (mi_console_file_new, mi_console_set_raw): Delete.
16661 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16662 (mi_set_logging): Use delete and tee_file. Adjust.
16663 * mi/mi-main.c (output_register): Use string_file.
16664 (mi_cmd_data_evaluate_expression): Use string_file.
16665 (mi_cmd_data_read_memory): Use string_file.
16666 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16667 * mi/mi-out.c (mi_ui_out::main_stream): New.
16668 (mi_ui_out::rewind): Use main_stream and
16669 string_file.
16670 (mi_ui_out::put): Use main_stream and string_file.
16671 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16672 Allocate a 'string_file' instead.
16673 (mi_out_new): Don't allocate a mem_fileopen stream here.
16674 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16675 (mi_ui_out::main_stream): Declare method.
16676 * printcmd.c (eval_command): Use string_file.
16677 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16678 * python/py-arch.c (archpy_disassemble): Use string_file.
16679 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16680 * python/py-frame.c (frapy_str): Use string_file.
16681 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16682 Use string_file.
16683 * python/py-type.c (typy_str): Use string_file.
16684 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16685 * python/py-value.c (valpy_str): Use string_file.
16686 * record-btrace.c (btrace_insn_history): Use string_file.
16687 * regcache.c (regcache_print): Use stdio_file.
16688 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16689 * remote.c (escape_buffer): Use string_file.
16690 * rust-lang.c (rust_get_disr_info): Use string_file.
16691 * serial.c (serial_open_ops_1): Use stdio_file.
16692 (do_serial_close): Use delete.
16693 * stack.c (print_frame_arg): Use string_file.
16694 (print_frame_args): Remove local mem_fileopen stream, not used.
16695 (print_frame): Use string_file.
16696 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16697 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16698 Take a 'string_file *' instead of a 'ui_file *'.
16699 * top.c (new_ui): Use stdio_file and stderr_file.
16700 (free_ui): Use delete.
16701 (execute_command_to_string): Use string_file.
16702 (quit_confirm): Use string_file.
16703 * tracepoint.c (collection_list::append_exp): Use string_file.
16704 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16705 * tui/tui-file.c: Don't include "ui-file.h".
16706 (enum streamtype, struct tui_stream): Delete.
16707 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16708 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16709 (tui_file::tui_file): New method.
16710 (tui_file_fputs): Delete.
16711 (tui_file_get_strbuf): Delete.
16712 (tui_file::puts): New method.
16713 (tui_file_adjust_strbuf): Delete.
16714 (tui_file_flush): Delete.
16715 (tui_file::flush): New method.
16716 * tui/tui-file.h: Tweak intro comment.
16717 Include ui-file.h.
16718 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16719 (tui_file_adjust_strbuf): Delete declarations.
16720 (class tui_file): New class.
16721 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16722 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16723 (tui_register_format): Use string_stream.
16724 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16725 (tui_get_function_from_frame): Use string_file.
16726 * typeprint.c (type_to_string): Use string_file.
16727 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16728 (null_stream): New global.
16729 (ui_file_delete): Delete.
16730 (ui_file::ui_file): New.
16731 (null_file_isatty): Delete.
16732 (ui_file::~ui_file): New.
16733 (null_file_rewind): Delete.
16734 (ui_file::printf): New.
16735 (null_file_put): Delete.
16736 (null_file_flush): Delete.
16737 (ui_file::putstr): New.
16738 (null_file_write): Delete.
16739 (ui_file::putstrn): New.
16740 (null_file_read): Delete.
16741 (ui_file::putc): New.
16742 (null_file_fputs): Delete.
16743 (null_file_write_async_safe): Delete.
16744 (ui_file::vprintf): New.
16745 (null_file_delete): Delete.
16746 (null_file::write): New.
16747 (null_file_fseek): Delete.
16748 (null_file::puts): New.
16749 (ui_file_data): Delete.
16750 (null_file::write_async_safe): New.
16751 (gdb_flush, ui_file_isatty): Adjust.
16752 (ui_file_put, ui_file_rewind): Delete.
16753 (ui_file_write): Adjust.
16754 (ui_file_write_for_put): Delete.
16755 (ui_file_write_async_safe, ui_file_read): Adjust.
16756 (ui_file_fseek): Delete.
16757 (fputs_unfiltered): Adjust.
16758 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16759 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16760 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16761 (set_ui_file_data): Delete.
16762 (string_file::~string_file, string_file::write)
16763 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16764 (do_ui_file_as_string, ui_file_as_string): Delete.
16765 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16766 (struct mem_file): Delete.
16767 (mem_file_new): Delete.
16768 (stdio_file::stdio_file): New.
16769 (mem_file_delete): Delete.
16770 (stdio_file::stdio_file): New.
16771 (mem_fileopen): Delete.
16772 (stdio_file::~stdio_file): New.
16773 (mem_file_rewind): Delete.
16774 (stdio_file::set_stream): New.
16775 (mem_file_put): Delete.
16776 (stdio_file::open): New.
16777 (mem_file_write): Delete.
16778 (stdio_file_magic, struct stdio_file): Delete.
16779 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16780 (stdio_file::flush): New.
16781 (stdio_file_read): Rename to ...
16782 (stdio_file::read): ... this. Adjust.
16783 (stdio_file_write): Rename to ...
16784 (stdio_file::write): ... this. Adjust.
16785 (stdio_file_write_async_safe): Rename to ...
16786 (stdio_file::write_async_safe) ... this. Adjust.
16787 (stdio_file_fputs): Rename to ...
16788 (stdio_file::puts) ... this. Adjust.
16789 (stdio_file_isatty): Delete.
16790 (stdio_file_fseek): Delete.
16791 (stdio_file::isatty): New.
16792 (stderr_file_write): Rename to ...
16793 (stderr_file::write) ... this. Adjust.
16794 (stderr_file_fputs): Rename to ...
16795 (stderr_file::puts) ... this. Adjust.
16796 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16797 (stderr_file::stderr_file): New.
16798 (tee_file_magic): Delete.
16799 (struct tee_file): Delete.
16800 (tee_file::tee_file): New.
16801 (tee_file_new): Delete.
16802 (tee_file::~tee_file): New.
16803 (tee_file_delete): Delete.
16804 (tee_file_flush): Rename to ...
16805 (tee_file::flush): ... this. Adjust.
16806 (tee_file_write): Rename to ...
16807 (tee_file::write): ... this. Adjust.
16808 (tee_file::write_async_safe): New.
16809 (tee_file_fputs): Rename to ...
16810 (tee_file::puts): ... this. Adjust.
16811 (tee_file_isatty): Rename to ...
16812 (tee_file::isatty): ... this. Adjust.
16813 * ui-file.h (struct obstack, struct ui_file): Don't
16814 forward-declare.
16815 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16816 (ui_file_write_ftype)
16817 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16818 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16819 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16820 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16821 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16822 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16823 (set_ui_file_fseek): Delete.
16824 (ui_file_data, ui_file_delete, ui_file_rewind)
16825 (struct ui_file): New.
16826 (ui_file_up): New.
16827 (class null_file): New.
16828 (null_stream): Declare.
16829 (ui_file_write_for_put, ui_file_put): Delete.
16830 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16831 Delete.
16832 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16833 (gdb_fopen, tee_file_new): Delete.
16834 (struct string_file): New.
16835 (struct stdio_file): New.
16836 (stdio_file_up): New.
16837 (struct stderr_file): New.
16838 (class tee_file): New.
16839 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16840 of a 'ui_file *'. Adjust.
16841 * ui-out.h (class ui_out) <field_stream>: Likewise.
16842 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16843 (null_stream): Delete.
16844 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16845 Adjust.
16846 * utils.h (struct ui_file): Delete forward declaration..
16847 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16848 (error_stream): Take a 'string_file &' instead of a
16849 'ui_file *'.
16850 * varobj.c (varobj_value_get_print_value): Use string_file.
16851 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16852 * gdbarch.c: Regenerate.
16853
16854 2017-02-02 Pedro Alves <palves@redhat.com>
16855
16856 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16857 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16858 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16859 Adjust to call gdb_print_insn instead of
16860 gdb_disassembler::print_insn.
16861 (dump_insns, do_mixed_source_and_assembly_deprecated)
16862 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16863 'gdbarch' parameter. Remove gdb_disassembler parameter.
16864 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16865 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16866 declaration.
16867 (gdb_pretty_print_insn): Re-add declaration.
16868 * record-btrace.c (btrace_insn_history): Don't allocate a
16869 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16870
16871 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16872
16873 * disasm.h (gdb_disassembly): Remove file_string parameter.
16874 * disasm.c (gdb_disassembly): Likewise.
16875 * cli/cli-cmds.c (print_disassembly): Adapt.
16876 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16877 * stack.c (do_gdb_disassembly): Likewise.
16878
16879 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16880
16881 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16882 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16883 targets. And if the implicit value is longer than needed, extract
16884 the first bytes instead of the "least significant" ones.
16885
16886 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16887
16888 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16889 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16890 (btrace_fetch): Assert can_access_registers_ptid.
16891 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16892 validate_registers_access.
16893
16894 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16895
16896 * gdbthread.h (can_access_registers_ptid): New.
16897 * thread.c (can_access_registers_ptid): New.
16898
16899 2017-02-01 Pedro Alves <palves@redhat.com>
16900
16901 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16902
16903 2017-01-31 Pedro Alves <palves@redhat.com>
16904
16905 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16906 Fix typos.
16907
16908 2017-01-31 Pedro Alves <palves@redhat.com>
16909
16910 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16911 not used.
16912
16913 2017-01-31 Pedro Alves <palves@redhat.com>
16914
16915 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16916
16917 2017-01-31 Pedro Alves <palves@redhat.com>
16918
16919 * common/scoped_restore.h
16920 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16921 change the value's parameter type to T2.
16922 (make_scoped_restore): Likewise.
16923
16924 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16925 Richard Henderson <rth@redhat.com>
16926
16927 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16928 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16929 GS_BASE for older kernels.
16930 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16931 GS_BASE for older kernels.
16932 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16933 and GS_BASE to the offset table.
16934 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16935 system register group.
16936 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16937 for older kernels.
16938 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16939 amd64 ABI.
16940 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16941 AMD64_GSBASE_REGNUM.
16942 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16943 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16944 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16945 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16946 i386/64bit-segments.xml in those rules.
16947 * features/i386/64bit-segments.xml: New file.
16948 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16949 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16950 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16951 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16952 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16953 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16954 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16955 * features/i386/amd64-avx-linux.c: Regenerated.
16956 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16957 * features/i386/amd64-avx-mpx.c: Regenerated.
16958 * features/i386/amd64-avx512-linux.c: Regenerated.
16959 * features/i386/amd64-linux.c: Regenerated.
16960 * features/i386/amd64-mpx-linux.c: Regenerated.
16961 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16962 * features/i386/i386-avx-mpx.c: Regenerated.
16963 * features/i386/x32-avx-linux.c: Regenerated.
16964 * features/i386/x32-avx512-linux.c: Regenerated.
16965 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16966 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16967 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16968 * regformats/i386/amd64-linux.dat: Regenerated.
16969 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16970 * regformats/i386/x32-avx-linux.dat: Regenerated.
16971 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16972 * regformats/i386/x32-linux.dat: Regenerated.
16973
16974 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16975
16976 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16977 Set to AMD64_NUM_REGS.
16978
16979 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16980
16981 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16982 that checks validity of a register number.
16983
16984 2017-01-27 Kees Cook <keescook@google.com>
16985
16986 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16987 fetch_fpregs if target has fpa registers.
16988 (arm_linux_store_inferior_registers): Call store_fpregs if target
16989 has fpa registers.
16990
16991 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16992
16993 * cris-tdep.c (cris_gdbarch_init): Remove check for
16994 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16995
16996 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16997
16998 * corelow.c (get_core_register_section): Check for regset
16999 existence before checking for REGSET_VARIABLE_SIZE.
17000
17001 2017-01-26 Yao Qi <yao.qi@linaro.org>
17002 Pedro Alves <palves@redhat.com>
17003
17004 PR gdb/20939
17005 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
17006 call memory_error, save memaddr instead.
17007 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
17008 negative, cal memory_error.
17009 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
17010
17011 2017-01-26 Yao Qi <yao.qi@linaro.org>
17012
17013 * disasm-selftests.c (memory_error_test): New function.
17014 (_initialize_disasm_selftests): Register memory_error_test.
17015
17016 2017-01-26 Yao Qi <yao.qi@linaro.org>
17017
17018 * Makefile.in (SFILES): Add disasm-selftests.c and
17019 selftest-arch.c.
17020 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
17021 * disasm-selftests.c: New file.
17022 * selftest-arch.c: New file.
17023 * selftest-arch.h: New file.
17024
17025 2017-01-26 Yao Qi <yao.qi@linaro.org>
17026
17027 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
17028 to bfd_arch_mep. Don't return 0 if section is not
17029 found. Call print_insn_mep.
17030
17031 2017-01-26 Pedro Alves <palves@redhat.com>
17032 Yao Qi <yao.qi@linaro.org>
17033
17034 * arm-tdep.c: Include "disasm.h".
17035 (gdb_print_insn_arm): Update code to get gdbarch.
17036 * disasm.c (dis_asm_read_memory): Change it to
17037 gdb_disassembler::dis_asm_read_memory.
17038 (dis_asm_memory_error): Likewise.
17039 (dis_asm_print_address): Likewise.
17040 (gdb_pretty_print_insn): Change it to
17041 gdb_disassembler::pretty_print_insn.
17042 (dump_insns): Add one argument gdb_disassemlber. All
17043 callers updated.
17044 (do_mixed_source_and_assembly_deprecated): Likewise.
17045 (do_mixed_source_and_assembly): Likewise.
17046 (do_assembly_only): Likewise.
17047 (gdb_disassembler::gdb_disassembler): New.
17048 (gdb_disassembler::print_insn): New.
17049 * disasm.h (class gdb_disassembler): New.
17050 (gdb_pretty_print_insn): Remove declaration.
17051 (gdb_disassemble_info): Likewise.
17052 * guile/scm-disasm.c (class gdbscm_disassembler): New.
17053 (gdbscm_disasm_read_memory_worker): Update.
17054 (gdbscm_disasm_read_memory): Update.
17055 (gdbscm_disasm_memory_error): Remove.
17056 (gdbscm_disasm_print_address): Remove.
17057 (gdbscm_disassembler::gdbscm_disassembler): New.
17058 (gdbscm_print_insn_from_port): Update.
17059 * mips-tdep.c: Include disasm.h.
17060 (gdb_print_insn_mips): Update code to get gdbarch.
17061 * record-btrace.c (btrace_insn_history): Update.
17062 * spu-tdep.c: Include disasm.h.
17063 (struct spu_dis_asm_data): Remove.
17064 (struct spu_dis_asm_info): New.
17065 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
17066 SPU id.
17067 (gdb_print_insn_spu): Cast disassemble_info to
17068 spu_dis_asm_info.
17069
17070 2017-01-26 Yao Qi <yao.qi@linaro.org>
17071
17072 * disasm.c (do_ui_file_delete): Delete.
17073 (gdb_insn_length): Move code creating stream to ...
17074 * utils.c (null_stream): ... here. New function.
17075 * utils.h (null_stream): Declare.
17076
17077 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
17078
17079 * python/py-inferior.c (find_thread_object): Return directly
17080 from the loop. Remove "found" variable.
17081
17082 2017-01-21 Joel Brobecker <brobecker@adacore.com>
17083
17084 GDB 7.12.1 released.
17085
17086 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17087
17088 * python/py-function.c (fnpy_call): Reorder declarations to have
17089 the gdbpy_enter object declared first.
17090 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
17091
17092 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
17093
17094 PR python/21068
17095 * python/python-internal.h (PyMem_RawMalloc): Define for
17096 Python < 3.4.
17097 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
17098 PyMem_RawMalloc instead of PyMem_Malloc.
17099
17100 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
17101 Luis Machado <lgustavo@codesourcery.com>
17102
17103 * NEWS (New commands): Mention flash-erase.
17104 (New MI commands): Mention target-flash-erase.
17105 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
17106 command.
17107 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
17108 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
17109 * target.c (flash_erase_command): New function.
17110 (initialize_targets): Add new flash-erase command.
17111 * target.h (flash_erase_command): New declaration.
17112
17113 2017-01-20 Joel Brobecker <brobecker@adacore.com>
17114
17115 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
17116 HAVE_SYS_PROCFS_H is defined.
17117
17118 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17119
17120 * remote.c (struct cached_reg): Change data into a pointer.
17121 * (stop_reply_dtr): Free data pointers before deleting vector.
17122 (process_stop_reply): Likewise.
17123 (remote_parse_stop_reply): Allocate space for data
17124
17125 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17126
17127 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17128 MAX_REGISTER_SIZE.
17129 (amd64_pseudo_register_read_value): Likewise.
17130 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17131 (store_register_using_P): Likewise.
17132 * regcache.c (regcache_xfer_part): Likewise.
17133
17134 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17135
17136 Split real and pseudo registers.
17137 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17138 (sparc32_pseudo_regnum): New enum.
17139 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17140 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17141 (SPARC32_CP0_REGISTERS): New macro.
17142 (sparc32_pseudo_register_name): New function.
17143 (sparc32_register_name): Use sparc32_pseudo_register_name.
17144 (sparc32_pseudo_register_type): New function.
17145 (sparc32_register_type): Use sparc32_pseudo_register_type.
17146 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17147 pseudo register numbers.
17148 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17149 (SPARC64_CP0_REGISTERS): New macro.
17150 (sparc64_pseudo_register_name): New function.
17151 (sparc64_register_name): Use sparc64_pseudo_register_name.
17152 (sparc64_pseudo_register_type): New function.
17153 (sparc64_register_type): Use sparc64_pseudo_register_type.
17154 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17155 pseudo register numbers.
17156 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17157 sparc64_store_arguments): Handle pseudo register numbers.
17158
17159 2017-01-13 Yao Qi <yao.qi@linaro.org>
17160
17161 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17162 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17163 output.
17164 (getpkt_or_notif_sane_1): Likewise.
17165
17166 2017-01-13 Yao Qi <yao.qi@linaro.org>
17167
17168 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17169 of CC. Pass "-x c++-header" instead of "-x c".
17170
17171 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17172
17173 * remote.c (remote_can_async_p): Update comment.
17174
17175 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17176
17177 * linux-nat.c (linux_nat_can_async_p): Update comment.
17178
17179 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17180
17181 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17182
17183 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17184
17185 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17186
17187 2017-01-10 Tom Tromey <tom@tromey.com>
17188
17189 * python/py-type.c (typy_legacy_template_argument): Update.
17190 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17191 ~demangle_parse_info): Declare new members.
17192 (cp_demangled_name_to_comp): Return unique_ptr.
17193 (cp_demangled_name_parse_free)
17194 (make_cleanup_cp_demangled_name_parse_free)
17195 (cp_new_demangle_parse_info): Remove.
17196 * cp-support.c (do_demangled_name_parse_free_cleanup)
17197 (make_cleanup_cp_demangled_name_parse_free): Remove.
17198 (inspect_type, cp_canonicalize_string_full)
17199 (cp_canonicalize_string): Update.
17200 (mangled_name_to_comp): Change return type.
17201 (cp_class_name_from_physname, method_name_from_physname)
17202 (cp_func_name, cp_remove_params): Update.
17203 * cp-name-parser.y (demangle_parse_info): New constructor, from
17204 cp_new_demangle_parse_info.
17205 (~demangle_parse_info): New destructor, from
17206 cp_demangled_name_parse_free.
17207 (cp_merge_demangle_parse_infos): Update.
17208 (cp_demangled_name_to_comp): Change return type.
17209
17210 2017-01-10 Tom Tromey <tom@tromey.com>
17211
17212 * top.c (prevent_dont_repeat): Change return type.
17213 * python/python.c (execute_gdb_command): Use std::string.
17214 Update.
17215 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17216 * command.h (prevent_dont_repeat): Change return type.
17217 * breakpoint.c (bpstat_do_actions_1): Update.
17218
17219 2017-01-10 Tom Tromey <tom@tromey.com>
17220
17221 * value.h (scoped_value_mark::~scoped_value_mark): Call
17222 free_to_mark.
17223 (scoped_value_mark::free_to_mark): New method.
17224 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17225 scoped_value_mark.
17226
17227 2017-01-10 Tom Tromey <tom@tromey.com>
17228
17229 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17230 (valpy_reference_value, valpy_const_value, valpy_get_address)
17231 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17232 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17233 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17234 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17235 scoped_value_mark.
17236 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17237 * value.h (scoped_value_mark): New class.
17238
17239 2017-01-10 Tom Tromey <tom@tromey.com>
17240
17241 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17242 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17243 * psymtab.c (discard_psymtabs_upto): Remove.
17244 (make_cleanup_discard_psymtabs): Remove.
17245 (struct psymtab_state): Remove.
17246
17247 2017-01-10 Tom Tromey <tom@tromey.com>
17248
17249 * record-full.c (record_full_save_cleanups): Remove.
17250 (record_full_save): Use gdb::unlinker.
17251 * gcore.c (do_bfd_delete_cleanup): Remove.
17252 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17253 cleanups.
17254 * dwarf2read.c (unlink_if_set): Remove.
17255 (write_psymtabs_to_index): Use gdb::unlinker.
17256 * common/gdb_unlinker.h: New file.
17257
17258 2017-01-10 Tom Tromey <tom@tromey.com>
17259
17260 * windows-tdep.c (windows_xfer_shared_library): Update.
17261 * windows-nat.c (windows_make_so): Update.
17262 * utils.h (make_cleanup_bfd_unref): Remove.
17263 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17264 * symfile.h (symfile_bfd_open)
17265 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17266 * symfile.c (read_symbols, symbol_file_add)
17267 (separate_debug_file_exists): Update.
17268 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17269 (generic_load, reread_symbols): Update.
17270 * symfile-mem.c (symbol_file_add_from_memory): Update.
17271 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17272 (spu_symbol_file_add_from_memory): Update.
17273 * solist.h (struct target_so_ops) <bfd_open>: Return
17274 gdb_bfd_ref_ptr.
17275 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17276 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17277 gdb_bfd_ref_ptr.
17278 (solib_map_sections, reload_shared_libraries_1): Update.
17279 * solib-svr4.c (enable_break): Update.
17280 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17281 * solib-frv.c (enable_break2): Update.
17282 * solib-dsbt.c (enable_break): Update.
17283 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17284 gdb_bfd_ref_ptr.
17285 (darwin_solib_get_all_image_info_addr_at_init): Update.
17286 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17287 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17288 * record-full.c (record_full_save): Update.
17289 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17290 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17291 * minidebug.c (find_separate_debug_file_in_section): Return
17292 gdb_bfd_ref_ptr.
17293 * machoread.c (macho_add_oso_symfile): Change abfd to
17294 gdb_bfd_ref_ptr.
17295 (macho_symfile_read_all_oso): Update.
17296 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17297 (macho_symfile_read): Update.
17298 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17299 (jit_bfd_try_read_symtab): Update.
17300 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17301 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17302 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17303 gdb_bfd_ref_ptr.
17304 (gdb_bfd_ref_policy): New struct.
17305 (gdb_bfd_ref_ptr): New typedef.
17306 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17307 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17308 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17309 gdb_bfd_ref_ptr.
17310 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17311 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17312 (gcore_command): Update.
17313 * exec.c (exec_file_attach): Update.
17314 * elfread.c (elf_symfile_read): Update.
17315 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17316 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17317 (open_and_init_dwo_file): Update.
17318 (open_dwp_file): Return gdb_bfd_ref_ptr.
17319 (open_and_init_dwp_file): Update.
17320 * corelow.c (core_open): Update.
17321 * compile/compile-object-load.c (compile_object_load): Update.
17322 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17323 * coffread.c (coff_symfile_read): Update.
17324 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17325 gdb_bfd_ref_ptr. Rename.
17326 (dump_bfd_file, restore_command): Update.
17327 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17328 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17329 (find_separate_debug_file_by_buildid): Update.
17330
17331 2017-01-10 Tom Tromey <tom@tromey.com>
17332
17333 * common/gdb_ref_ptr.h: New file.
17334 * python/py-ref.h (struct gdbpy_ref_policy): New.
17335 (gdbpy_ref): Now a typedef.
17336
17337 2017-01-10 Tom Tromey <tom@tromey.com>
17338
17339 * utils.h (make_cleanup_htab_delete): Don't declare.
17340 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17341 Remove.
17342 * linespec.c (decode_compound_collector): Add constructor,
17343 destructor.
17344 (lookup_prefix_sym): Remove cleanup.
17345 (symtab_collector): Add constructor, destructor.
17346 (collect_symtabs_from_filename): Remove cleanup.
17347 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17348 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17349 Use htab_up.
17350 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17351 * dwarf2read.c (dw2_expand_symtabs_matching)
17352 (dw2_map_symbol_filenames, dwarf_decode_macros)
17353 (write_psymtabs_to_index): Use htab_up.
17354 * dwarf2loc.c (func_verify_no_selftailcall)
17355 (call_site_find_chain_1, func_verify_no_selftailcall)
17356 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17357 std::vector, gdb::unique_xmalloc_ptr.
17358 (call_sitep): Remove typedef.
17359 (dwarf2_locexpr_baton_eval): Remove unused variable.
17360
17361 2017-01-10 Tom Tromey <tom@tromey.com>
17362
17363 * python/python-internal.h (make_cleanup_py_decref)
17364 (make_cleanup_py_xdecref): Don't declare.
17365 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17366 (py_xdecref, make_cleanup_py_xdecref): Remove.
17367
17368 2017-01-10 Tom Tromey <tom@tromey.com>
17369
17370 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17371 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17372
17373 2017-01-10 Tom Tromey <tom@tromey.com>
17374
17375 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17376
17377 2017-01-10 Tom Tromey <tom@tromey.com>
17378
17379 * python/py-utils.c (unicode_to_encoded_string)
17380 (python_string_to_target_string)
17381 (python_string_to_target_python_string)
17382 (python_string_to_host_string, gdbpy_obj_to_string)
17383 (get_addr_from_python): Use gdbpy_ref.
17384
17385 2017-01-10 Tom Tromey <tom@tromey.com>
17386
17387 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17388 gdbpy_ref.
17389
17390 2017-01-10 Tom Tromey <tom@tromey.com>
17391
17392 * python/python.c (eval_python_command, gdbpy_decode_line)
17393 (gdbpy_run_events, gdbpy_start_type_printers)
17394 (gdbpy_apply_type_printers): Use gdbpy_ref.
17395
17396 2017-01-10 Tom Tromey <tom@tromey.com>
17397
17398 * python/py-param.c (get_doc_string, compute_enum_values): Use
17399 gdbpy_ref.
17400
17401 2017-01-10 Tom Tromey <tom@tromey.com>
17402
17403 * python/py-inferior.c (find_thread_object, build_inferior_list):
17404 Use gdbpy_ref.
17405
17406 2017-01-10 Tom Tromey <tom@tromey.com>
17407
17408 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17409
17410 2017-01-10 Tom Tromey <tom@tromey.com>
17411
17412 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17413 gdbpy_ref.
17414
17415 2017-01-10 Tom Tromey <tom@tromey.com>
17416
17417 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17418 extra incref.
17419 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17420 Use gdbpy_ref.
17421
17422 2017-01-10 Tom Tromey <tom@tromey.com>
17423
17424 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17425 gdbpy_ref.
17426
17427 2017-01-10 Tom Tromey <tom@tromey.com>
17428
17429 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17430 decref results of PyArg_ParseTupleAndKeywords.
17431
17432 2017-01-10 Tom Tromey <tom@tromey.com>
17433
17434 * python/python.c (python_run_simple_file): Use
17435 unique_xmalloc_ptr, gdbpy_ref.
17436
17437 2017-01-10 Tom Tromey <tom@tromey.com>
17438
17439 * python/py-prettyprint.c (print_stack_unless_memory_error)
17440 (print_string_repr, print_children): Use gdbpy_ref.
17441 (dummy_python_frame): New class.
17442 (dummy_python_frame::dummy_python_frame): Rename from
17443 push_dummy_python_frame.
17444 (py_restore_tstate): Remove.
17445
17446 2017-01-10 Tom Tromey <tom@tromey.com>
17447
17448 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17449
17450 2017-01-10 Tom Tromey <tom@tromey.com>
17451
17452 * python/python.c (ensure_python_env, restore_python_env):
17453 Remove.
17454 * python/python-internal.h (ensure_python_env): Don't declare.
17455 * varobj.h (varobj_ensure_python_env): Don't declare.
17456 * varobj.c (varobj_ensure_python_env): Remove.
17457
17458 2017-01-10 Tom Tromey <tom@tromey.com>
17459
17460 * varobj.c (varobj_value_get_print_value): Use
17461 gdbpy_enter_varobj.
17462
17463 2017-01-10 Tom Tromey <tom@tromey.com>
17464
17465 * python/py-prettyprint.c (print_string_repr, print_children):
17466 Update.
17467 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17468 of "encoding".
17469 * varobj.c (varobj_value_get_print_value): Update.
17470 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17471
17472 2017-01-10 Tom Tromey <tom@tromey.com>
17473
17474 * varobj.c (varobj_get_display_hint)
17475 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17476 (varobj_set_visualizer, free_variable): Use
17477 gdbpy_enter_varobj.
17478
17479 2017-01-10 Tom Tromey <tom@tromey.com>
17480
17481 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17482 (do_finish_initialization): New function. Use gdbpy_ref.
17483 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17484 do_finish_initialization.
17485
17486 2017-01-10 Tom Tromey <tom@tromey.com>
17487
17488 * python/py-param.c (get_set_value, get_show_value): Use
17489 gdbpy_enter, gdbpy_ref.
17490
17491 2017-01-10 Tom Tromey <tom@tromey.com>
17492
17493 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17494
17495 2017-01-10 Tom Tromey <tom@tromey.com>
17496
17497 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17498
17499 2017-01-10 Tom Tromey <tom@tromey.com>
17500
17501 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17502 Use gdbpy_enter_varobj.
17503
17504 2017-01-10 Tom Tromey <tom@tromey.com>
17505
17506 * varobj.c (gdbpy_enter_varobj): New constructor.
17507 * python/python-internal.h (gdbpy_enter_varobj): New class.
17508 * python/py-varobj.c (py_varobj_get_iterator): Use
17509 gdbpy_enter_varobj.
17510
17511 2017-01-10 Tom Tromey <tom@tromey.com>
17512
17513 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17514 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17515 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17516 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17517 unique_xmalloc_ptr.
17518 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17519
17520 2017-01-10 Tom Tromey <tom@tromey.com>
17521
17522 * python/py-xmethods.c (invoke_match_method): Use
17523 gdbpy_ref.
17524
17525 2017-01-10 Tom Tromey <tom@tromey.com>
17526
17527 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17528 gdbpy_enter, gdbpy_ref.
17529
17530 2017-01-10 Tom Tromey <tom@tromey.com>
17531
17532 * python/python.c (python_interactive_command): Use gdbpy_enter.
17533
17534 2017-01-10 Tom Tromey <tom@tromey.com>
17535
17536 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17537 gdbpy_ref.
17538
17539 2017-01-10 Tom Tromey <tom@tromey.com>
17540
17541 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17542 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17543
17544 2017-01-10 Tom Tromey <tom@tromey.com>
17545
17546 * utils.h (htab_deleter): New struct.
17547 (htab_up): New typedef.
17548 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17549 gdbpy_enter, gdbpy_ref, htab_up.
17550
17551 2017-01-10 Tom Tromey <tom@tromey.com>
17552
17553 * python/py-unwind.c (pending_frame_invalidate): Remove.
17554 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17555
17556 2017-01-10 Tom Tromey <tom@tromey.com>
17557
17558 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17559 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17560
17561 2017-01-10 Tom Tromey <tom@tromey.com>
17562
17563 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17564
17565 2017-01-10 Tom Tromey <tom@tromey.com>
17566
17567 * python/python.c (gdbpy_eval_from_control_command)
17568 (gdbpy_source_script, gdbpy_run_events)
17569 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17570 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17571 gdbpy_enter.
17572
17573 2017-01-10 Tom Tromey <tom@tromey.com>
17574
17575 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17576
17577 2017-01-10 Tom Tromey <tom@tromey.com>
17578
17579 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17580
17581 2017-01-10 Tom Tromey <tom@tromey.com>
17582
17583 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17584 (python_on_inferior_call_pre, python_on_inferior_call_post)
17585 (python_on_memory_change, python_on_register_change)
17586 (python_inferior_exit, python_new_objfile, add_thread_object)
17587 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17588
17589 2017-01-10 Tom Tromey <tom@tromey.com>
17590
17591 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17592 (bpfinishpy_handle_exit): Use gdbpy_enter.
17593
17594 2017-01-10 Tom Tromey <tom@tromey.com>
17595
17596 * python/py-cmd.c (cmdpy_destroyer)
17597 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17598 gdbpy_enter.
17599
17600 2017-01-10 Tom Tromey <tom@tromey.com>
17601
17602 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17603 gdbpy_enter.
17604 (gdbpy_breakpoint_has_cond): Likewise.
17605
17606 2017-01-10 Tom Tromey <tom@tromey.com>
17607
17608 * python/python.c (gdbpy_enter): New constructor.
17609 (~gdbpy_enter): New destructor.
17610 (restore_python_env, ensure_python_env): Rewrite.
17611 * python/python-internal.h (gdbpy_enter): New class.
17612
17613 2017-01-10 Tom Tromey <tom@tromey.com>
17614
17615 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17616
17617 2017-01-10 Tom Tromey <tom@tromey.com>
17618
17619 * python/py-value.c (value_has_field, get_field_flag)
17620 (get_field_type, valpy_getitem, convert_value_from_python): Use
17621 gdbpy_ref.
17622
17623 2017-01-10 Tom Tromey <tom@tromey.com>
17624
17625 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17626 gdbpy_ref.
17627
17628 2017-01-10 Tom Tromey <tom@tromey.com>
17629
17630 * python/py-prettyprint.c (search_pp_list)
17631 (find_pretty_printer_from_objfiles)
17632 (find_pretty_printer_from_progspace)
17633 (find_pretty_printer_from_gdb, find_pretty_printer)
17634 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17635 gdbpy_ref.
17636
17637 2017-01-10 Tom Tromey <tom@tromey.com>
17638
17639 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17640
17641 2017-01-10 Tom Tromey <tom@tromey.com>
17642
17643 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17644 (ltpy_get_all_source_lines): Use gdbpy_ref.
17645
17646 2017-01-10 Tom Tromey <tom@tromey.com>
17647
17648 * python/py-framefilter.c (extract_sym, extract_value)
17649 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17650 gdbpy_ref.
17651
17652 2017-01-10 Tom Tromey <tom@tromey.com>
17653
17654 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17655
17656 2017-01-10 Tom Tromey <tom@tromey.com>
17657
17658 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17659
17660 2017-01-10 Tom Tromey <tom@tromey.com>
17661
17662 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17663 gdbpy_ref.
17664
17665 2017-01-10 Tom Tromey <tom@tromey.com>
17666
17667 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17668
17669 2017-01-10 Tom Tromey <tom@tromey.com>
17670
17671 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17672 (typy_range): Use gdbpy_ref.
17673
17674 2017-01-10 Tom Tromey <tom@tromey.com>
17675
17676 * python/py-threadevent.c (create_thread_event_object): Use
17677 gdbpy_ref.
17678 * python/py-stopevent.c (create_stop_event_object): Simplify.
17679 (emit_stop_event): Use gdbpy_ref.
17680 * python/py-signalevent.c (create_signal_event_object): Use
17681 gdbpy_ref.
17682 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17683 (emit_new_objfile_event, create_clear_objfiles_event_object)
17684 (emit_clear_objfiles_event): Use gdbpy_ref.
17685 * python/py-infevents.c (create_inferior_call_event_object)
17686 (create_register_changed_event_object)
17687 (create_memory_changed_event_object, emit_inferior_call_event)
17688 (emit_memory_changed_event, emit_register_changed_event): Use
17689 gdbpy_ref.
17690 * python/py-exitedevent.c (create_exited_event_object)
17691 (emit_exited_event): Use gdbpy_ref.
17692 * python/py-event.h (evpy_emit_event): Remove
17693 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17694 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17695 * python/py-continueevent.c (emit_continue_event): Use
17696 gdbpy_ref.
17697 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17698 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17699 gdbpy_ref.
17700 * python/py-bpevent.c (create_breakpoint_event_object): Use
17701 gdbpy_ref.
17702
17703 2017-01-10 Tom Tromey <tom@tromey.com>
17704
17705 * python/py-ref.h: New file.
17706
17707 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17708
17709 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17710 void.
17711 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17712 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17713 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17714 * ui-out.c (ui_out::redirect): Likewise.
17715 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17716 * cli/cli-logging.c (set_logging_redirect): Update call site of
17717 ui_out::redirect.
17718 (handle_redirections): Likewise.
17719 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17720 * top.c (execute_command_to_string): Likewise.
17721 * utils.c (do_ui_out_redirect_pop): Likewise.
17722
17723 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17724
17725 * stack.c (_initialize_stack): Update "frame" command help message.
17726
17727 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17728
17729 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17730
17731 2017-01-06 Yao Qi <yao.qi@linaro.org>
17732
17733 * x86-linux-nat.h: Include gdb_proc_service.h.
17734
17735 2017-01-06 Yao Qi <yao.qi@linaro.org>
17736
17737 * ser-base.h: Include serial.h.
17738
17739 2017-01-06 Yao Qi <yao.qi@linaro.org>
17740
17741 * ppc-linux-tdep.h: Include ppc-tdep.h.
17742
17743 2017-01-06 Yao Qi <yao.qi@linaro.org>
17744
17745 * nat/amd64-linux-siginfo.h: Include signal.h.
17746
17747 2017-01-06 Yao Qi <yao.qi@linaro.org>
17748
17749 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17750
17751 2017-01-06 Yao Qi <yao.qi@linaro.org>
17752
17753 * mi/mi-parse.h: Include mi-cmds.h.
17754
17755 2017-01-06 Yao Qi <yao.qi@linaro.org>
17756
17757 * inf-loop.c: Don't include "target.h".
17758 * inf-loop.h: Include it here.
17759
17760 2017-01-06 Yao Qi <yao.qi@linaro.org>
17761
17762 * dfp.h: Include "dboulest.h" and "expression.h".
17763
17764 2017-01-06 Yao Qi <yao.qi@linaro.org>
17765
17766 * ax-gdb.h: Include "ax.h".
17767
17768 2017-01-06 Yao Qi <yao.qi@linaro.org>
17769
17770 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17771 with nat/gdb_ptrace.h.
17772
17773 2017-01-05 Yao Qi <yao.qi@linaro.org>
17774
17775 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17776 new line.
17777 (mips64_fbsd_sigframe_init): Likewise.
17778
17779 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17780
17781 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17782 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17783
17784 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17785
17786 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17787 * NEWS: Mention new FreeBSD/mips native configuration.
17788 * config/mips/fbsd.mh: New file.
17789 * configure.host: Add mips*-*-freebsd*.
17790 * mips-fbsd-nat.c: New file.
17791
17792 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17793
17794 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17795 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17796 * NEWS: Mention new FreeBSD/mips target.
17797 * configure.tgt: Add mips*-*-freebsd*.
17798 * mips-fbsd-tdep.c: New file.
17799 * mips-fbsd-tdep.h: New file.
17800
17801 2017-01-04 Yao Qi <yao.qi@linaro.org>
17802
17803 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17804 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17805
17806 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17807
17808 Update copyright year range in all GDB files.
17809
17810 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17811
17812 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17813
17814 For older changes see ChangeLog-2016.
17815 \f
17816 Local Variables:
17817 mode: change-log
17818 left-margin: 8
17819 fill-column: 74
17820 version-control: never
17821 coding: utf-8
17822 End: