Make tdesc_type::u::u::fields an std::vector
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * target-descriptions.c (tdesc_type_field): Remove typedef.
4 (DEF_VEC_O (tdesc_type_field)): Remove.
5 (struct tdesc_type_field): Add constructor.
6 <name>: Change type to std::string.
7 (struct tdesc_type) <tdesc_type>: Instantiate vector if the type
8 kind uses it.
9 <~tdesc_type>: Destroy vector if the type kind uses it.
10 <u::u::fields>: Change type to std::vector.
11 (tdesc_gdb_type): Adjust.
12 (tdesc_add_field): Adjust.
13 (tdesc_add_typed_bitfield): Adjust.
14 (tdesc_add_field): Adjust.
15 (tdesc_add_enum_value): Adjust.
16 (class print_c_tdesc) <visit>: Adjust.
17
18 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * target-descriptions.c (struct tdesc_type) <name>: Change type
21 to std::string.
22 <~tdesc_type>: Don't manually free name.
23 <operator==>: Adjust.
24 (tdesc_named_type): Adjust.
25 (tdesc_find_type): Adjust.
26 (tdesc_gdb_type): Adjust.
27 (class print_c_tdesc) <visit>: Adjust.
28
29 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
30
31 * target-descriptions.c (tdesc_type_p): Remove typedef.
32 (DEF_VEC_P (tdesc_type_p)): Remove.
33 (struct tdesc_feature) <types>: Change type to std::vector.
34 <~tdesc_feature>: Replace with default implementation.
35 <accept>: Adjust.
36 (tdesc_named_type): Adjust.
37 (tdesc_create_vector): Adjust.
38 (tdesc_create_struct): Adjust.
39 (tdesc_create_union): Adjust.
40 (tdesc_create_flags): Adjust.
41 (tdesc_create_enum): Adjust.
42
43 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
44
45 * target-descriptions.c (struct tdesc_reg) <tdesc_reg>: Change
46 type of name_ parameter, adjust to std::string change.
47 <name, group, type>: Change type to std::string.
48 <~tdesc_reg>: Replace with default implementation.
49 <operator==>: Adjust.
50 (tdesc_find_register_early): Adjust.
51 (tdesc_register_name): Adjust.
52 (tdesc_register_type): Adjust.
53 (tdesc_register_in_reggroup_p): Adjust.
54 (class print_c_tdesc) <visit>: Adjust.
55 (class print_c_feature) <visit>: Adjust.
56
57 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
58
59 * target-descriptions.c (tdesc_reg_p): Remove typedef.
60 (DEF_VEC_P (tdesc_reg_p)): Remove.
61 (struct tdesc_feature) <registers>: Change type to std::vector.
62 <~tdesc_feature>: Don't manually free registers.
63 <accept>: Adjust.
64 <operator==>: Adjust.
65 (tdesc_has_registers): Adjust.
66 (tdesc_find_register_early): Adjust.
67 (tdesc_use_registers): Adjust.
68 (tdesc_create_reg): Adjust.
69
70 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * target-descriptions.c (tdesc_feature) <name>: Change type to
73 std::string.
74 <~tdesc_feature>: Don't manually free name.
75 <operator==>: Adjust.
76 (tdesc_find_feature): Adjust.
77 (tdesc_feature_name): Adjust.
78 (class print_c_tdesc) <visit_pre>: Adjust.
79 (class print_c_feature) <visit_pre>: Adjust.
80
81 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * target-descriptions.c (tdesc_feature_p): Remove typedef.
84 (DEF_VEC_P (tdesc_feature_p)): Remove.
85 (struct target_desc) <features>: Change type to std::vector.
86 <~target_desc>: Replace with default implementation.
87 <accept>: Adjust.
88 <operator==>: Adjust.
89 (tdesc_has_registers): Adjust.
90 (tdesc_find_feature): Adjust.
91 (tdesc_use_registers): Adjust.
92 (tdesc_create_feature): Adjust.
93
94 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * target-descriptions.c (arch_p): Remove typedef.
97 (DEF_VEC_P (arch_p)): Remove.
98 (struct target_desc) <compatible>: Change type to std::vector.
99 <~target_desc>: Don't manually free compatible.
100 (tdesc_compatible_p): Adjust.
101 (tdesc_add_compatible): Adjust.
102 (class print_c_tdesc) <visit_pre>: Adjust.
103
104 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * target-descriptions.c (property_s): Remove typedef.
107 (DEF_VEC_O (property_s)): Remove.
108 (struct target_desc) <properties>: Make an std::vector.
109 <~target_desc>: Don't manually free properties.
110 (tdesc_property): Adjust.
111 (set_tdesc_property): Adjust.
112 (class print_c_tdesc) <visit_pre>: Adjust.
113
114 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
115
116 * common/gdb_assert.h (gdb_static_assert): Redefine using
117 static_assert.
118
119 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
120
121 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
122 unused variables.
123 (ada_is_redundant_range_encoding): Likewise.
124 * ada-varobj.c (ada_varobj_get_value_of_array_variable):
125 Likewise.
126 * alpha-tdep.c (alpha_software_single_step): Likewise.
127 * arm-tdep.c (_initialize_arm_tdep): Likewise.
128 * auto-load.c (info_auto_load_cmd): Likewise.
129 * break-catch-syscall.c (insert_catch_syscall): Likewise.
130 (remove_catch_syscall): Likewise.
131 * breakpoint.c (condition_completer): Likewise.
132 (clear_command): Likewise.
133 (update_breakpoint_locations): Likewise.
134 * btrace.c (btrace_disable): Likewise.
135 (btrace_teardown): Likewise.
136 (btrace_maint_update_pt_packets): Likewise.
137 (maint_btrace_clear_cmd): Likewise.
138 * cli/cli-decode.c (lookup_cmd_1): Likewise.
139 (lookup_cmd_composition): Likewise.
140 * cli/cli-dump.c (scan_filename): Likewise.
141 (restore_command): Likewise.
142 * compile/compile-loc2c.c (compute_stack_depth): Likewise.
143 * compile/compile-object-load.c (compile_object_load): Likewise.
144 * compile/compile-object-run.c (compile_object_run): Likewise.
145 * compile/compile.c (compile_to_object): Likewise.
146 * completer.c (filename_completer): Likewise.
147 (complete_files_symbols): Likewise.
148 (complete_expression): Likewise.
149 * corelow.c (core_open): Likewise.
150 * ctf.c (ctf_start): Likewise.
151 (ctf_write_status): Likewise.
152 (ctf_write_uploaded_tsv): Likewise.
153 (ctf_write_definition_end): Likewise.
154 (ctf_open_dir): Likewise.
155 (ctf_xfer_partial): Likewise.
156 (ctf_trace_find): Likewise.
157 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
158 Likewise.
159 * dwarf2loc.c (allocate_piece_closure): Likewise.
160 (indirect_pieced_value): Likewise.
161 (dwarf2_evaluate_loc_desc_full): Likewise.
162 * dwarf2read.c (dw2_expand_marked_cus): Likewise.
163 (dw2_expand_symtabs_matching): Likewise.
164 (dw2_map_symbol_filenames): Likewise.
165 (read_and_check_comp_unit_head): Likewise.
166 (read_cutu_die_from_dwo): Likewise.
167 (lookup_dwo_unit): Likewise.
168 (read_comp_units_from_section): Likewise.
169 (dwarf2_compute_name): Likewise.
170 (handle_DW_AT_stmt_list): Likewise.
171 (create_cus_hash_table): Likewise.
172 (create_dwp_v2_section): Likewise.
173 (dwarf2_rnglists_process): Likewise.
174 (dwarf2_ranges_process): Likewise.
175 (dwarf2_record_block_ranges): Likewise.
176 (is_vtable_name): Likewise.
177 (read_formatted_entries): Likewise.
178 (skip_form_bytes): Likewise.
179 * elfread.c (elf_symtab_read): Likewise.
180 * exec.c (exec_file_command): Likewise.
181 * f-valprint.c (f_val_print): Likewise.
182 (info_common_command_for_block): Likewise.
183 * guile/guile.c (initialize_scheme_side): Likewise.
184 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Likewise.
185 * guile/scm-cmd.c (cmdscm_completer): Likewise.
186 (gdbscm_register_command_x): Likewise.
187 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
188 * guile/scm-param.c (gdbscm_parameter_value): Likewise.
189 * guile/scm-ports.c (file_port_magic): Likewise.
190 * guile/scm-pretty-print.c (ppscm_search_pp_list): Likewise.
191 (ppscm_pretty_print_one_value): Likewise.
192 (ppscm_print_children): Likewise.
193 * guile/scm-string.c (gdbscm_string_to_argv): Likewise.
194 * guile/scm-symtab.c (gdbscm_sal_symtab): Likewise.
195 * guile/scm-type.c (gdbscm_type_next_field_x): Likewise.
196 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
197 * i386-tdep.c (i386_register_reggroup_p): Likewise.
198 * infcmd.c (run_command_1): Likewise.
199 (until_next_fsm_clean_up): Likewise.
200 * linespec.c (linespec_complete): Likewise.
201 (find_label_symbols): Likewise.
202 * m2-valprint.c (m2_val_print): Likewise.
203 * memattr.c (require_user_regions): Likewise.
204 (lookup_mem_region): Likewise.
205 (disable_mem_command): Likewise.
206 (mem_delete): Likewise.
207 * mep-tdep.c (mep_register_name): Likewise.
208 (mep_analyze_prologue): Likewise.
209 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Likewise.
210 * mi/mi-interp.c (mi_on_sync_execution_done): Likewise.
211 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
212 * microblaze-linux-tdep.c (microblaze_linux_init_abi): Likewise.
213 * minidebug.c (lzma_open): Likewise.
214 * minsyms.c (lookup_minimal_symbol): Likewise.
215 * mips-linux-tdep.c (mips64_fill_fpregset): Likewise.
216 * mips-tdep.c (mips_stub_frame_sniffer): Likewise.
217 (mips_o64_return_value): Likewise.
218 (mips_single_step_through_delay): Likewise.
219 (_initialize_mips_tdep): Likewise.
220 * nios2-tdep.c (nios2_push_dummy_call): Likewise.
221 (nios2_software_single_step): Likewise.
222 * parse.c (find_minsym_type_and_address): Likewise.
223 * psymtab.c (psym_relocate): Likewise.
224 * python/py-breakpoint.c (bppy_get_commands): Likewise.
225 (gdbpy_breakpoint_modified): Likewise.
226 * python/py-infevents.c (create_inferior_call_event_object):
227 Likewise.
228 * python/py-record-btrace.c (btpy_list_item): Likewise.
229 * python/py-type.c (typy_str): Likewise.
230 * python/py-value.c (valpy_call): Likewise.
231 * python/python.c (do_start_initialization): Likewise.
232 * record-btrace.c (record_btrace_insn_history_range): Likewise.
233 (record_btrace_call_history_range): Likewise.
234 (record_btrace_record_method): Likewise.
235 (record_btrace_xfer_partial): Likewise.
236 (btrace_get_frame_function): Likewise.
237 * record-full.c (record_full_open): Likewise.
238 * record.c (get_context_size): Likewise.
239 * registry.h (DEFINE_REGISTRY): Likewise.
240 * remote-fileio.c (remote_fileio_request): Likewise.
241 * remote.c (remote_update_thread_list): Likewise.
242 (remote_check_symbols): Likewise.
243 (remote_commit_resume): Likewise.
244 (remote_interrupt): Likewise.
245 (remote_insert_breakpoint): Likewise.
246 (compare_sections_command): Likewise.
247 * rust-exp.y (super_name): Likewise.
248 (lex_string): Likewise.
249 (convert_ast_to_type): Likewise.
250 (convert_ast_to_expression): Likewise.
251 * rust-lang.c (rust_print_struct_def): Likewise.
252 (rust_print_type): Likewise.
253 (rust_evaluate_subexp): Likewise.
254 * rx-tdep.c (rx_register_type): Likewise.
255 * ser-event.c (serial_event_clear): Likewise.
256 * serial.c (serial_open): Likewise.
257 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
258 * symfile.c (section_is_overlay): Likewise.
259 (overlay_unmapped_address): Likewise.
260 (overlay_mapped_address): Likewise.
261 (simple_overlay_update_1): Likewise.
262 (simple_overlay_update): Likewise.
263 * symtab.c (symbol_find_demangled_name): Likewise.
264 (search_symbols): Likewise.
265 * target-descriptions.c (tdesc_predefined_type): Likewise.
266 * target.c (target_commit_resume): Likewise.
267 * thread.c (print_selected_thread_frame): Likewise.
268 * top.c (new_ui_command): Likewise.
269 (gdb_readline_no_editing): Likewise.
270 * tracefile-tfile.c (tfile_open): Likewise.
271 * tracepoint.c (create_tsv_from_upload): Likewise.
272 * utils.c (quit): Likewise.
273 (defaulted_query): Likewise.
274 * valarith.c (value_concat): Likewise.
275 * xml-syscall.c (xml_list_syscalls_by_group): Likewise.
276 * xml-tdesc.c (target_fetch_description_xml): Likewise.
277 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
278 (xtensa_pseudo_register_write): Likewise.
279
280 2017-12-04 Tom Tromey <tom@tromey.com>
281
282 * NEWS: Mention Rust trait object inspection.
283
284 2017-12-04 Pedro Alves <palves@redhat.com>
285
286 PR gdb/22499
287 * amd64-tdep.c (amd64_insn::rex_offset): Rename to...
288 (amd64_insn::enc_prefix_offset): ... this, and tweak comment.
289 (vex2_prefix_p, vex3_prefix_p): New functions.
290 (amd64_get_insn_details): Adjust to rename. Also skip VEX2 and
291 VEX3 prefixes.
292 (fixup_riprel): Set VEX3.!B.
293
294 2017-12-03 Simon Marchi <simon.marchi@ericsson.com>
295
296 * target.h (mem_region_vector): Remove.
297 (struct target_ops) <to_memory_map>: Change return type to
298 std::vector<mem_region>.
299 * target-debug.h (target_debug_print_mem_region_vector): Rename
300 to ...
301 (target_debug_print_std_vector_mem_region): ... this.
302 * target-delegates.c: Re-generate.
303
304 2017-12-03 Pedro Alves <palves@redhat.com>
305
306 * make-target-delegates (munge_type): Also munge '<', '>', and
307 ':'. Avoid double underscores in identifiers, and trailing
308 underscores.
309 * target-debug.h
310 (target_debug_print_VEC_static_tracepoint_marker_p__p): Rename to
311 ...
312 (target_debug_print_VEC_static_tracepoint_marker_p_p): ... this.
313 * target-delegates.c: Regenerate.
314
315 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
316
317 * common/poison.h (XDELETE): Fix typo.
318
319 2017-12-01 Andrew Cagney <cagney@redhat.com>
320 Joel Brobecker <brobecker@adacore.com>
321 Sergio Durigan Junior <sergiodj@redhat.com>
322
323 * NEWS (Changes since GDB 8.0: Mention new '--readnever'
324 feature.
325 * coffread.c (coff_symfile_read): Do not map over sections with
326 'coff_locate_sections' if readnever is on.
327 * dwarf2read.c (dwarf2_has_info): Return 0 if
328 readnever is on.
329 * elfread.c (elf_symfile_read): Do not map over sections with
330 'elf_locate_sections' if readnever is on.
331 * main.c (validate_readnow_readnever): New function.
332 (captured_main_1): Add support for --readnever.
333 (print_gdb_help): Document --readnever.
334 * objfile-flags.h (enum objfile_flag) <OBJF_READNEVER>: New
335 flag.
336 * symfile.c (readnever_symbol_files): New global.
337 (symbol_file_add_with_addrs): Set 'OBJF_READNEVER' when
338 'READNEVER_SYMBOL_FILES' is set.
339 (validate_readnow_readnever): New function.
340 (symbol_file_command): Handle '-readnever' option.
341 Call 'validate_readnow_readnever'.
342 (add_symbol_file_command): Handle '-readnever' option.
343 Call 'validate_readnow_readnever'.
344 (_initialize_symfile): Document new '-readnever' option for
345 both 'symbol-file' and 'add-symbol-file' commands.
346 * top.h (readnever_symbol_files): New extern global.
347 * xcoffread.c (xcoff_initial_scan): Do not read debug
348 information if readnever is on.
349
350 2017-12-01 Sergio Durigan Junior <sergiodj@redhat.com>
351
352 * symfile.c (symbol_file_command): Call
353 'symbol_file_add_main_1' only after processing all command
354 line options.
355 (add_symbol_file_command): Modify logic to make arguments
356 position-independent.
357
358 2017-12-01 Joel Brobecker <brobecker@adacore.com>
359
360 * ada-lang.c (symbol_list_obstack): Delete.
361 (resolve_subexp): Make sure "candidates" gets xfree'ed.
362 (ada_lookup_symbol_list_worker): Remove the limitation that
363 the result is only good until the next call, now making it
364 the responsibility of the caller to free the result when no
365 longer needed. Adjust the function's intro comment accordingly.
366 (ada_lookup_symbol_list): Adjust the function's intro comment.
367 (ada_iterate_over_symbols): Make sure "results" gets xfree'ed.
368 (ada_lookup_encoded_symbol, get_var_value): Likewise.
369 (_initialize_ada_language): Remove symbol_list_obstack
370 initialization.
371 * ada-exp.y (block_lookup): Make sure "syms" gets xfree'ed.
372 (write_var_or_type, write_name_assoc): Likewise.
373
374 2017-12-01 Tom Tromey <tom@tromey.com>
375
376 * Makefile.in (all_deps_files): New variable.
377 Include .Po files using all_deps_files.
378
379 2017-12-01 Joel Brobecker <brobecker@adacore.com>
380
381 * MAINTAINERS: Update list of maintainers, moving those who
382 stepped down or became inactive to the "Past Maintainers"
383 section.
384
385 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
386
387 * configure.ac Don't check for sys/fault.h, sys/syscall.h,
388 sys/proc.h.
389 (NEW_PROC_API): Remove.
390 (prsysent_t, pr_sigset_t, pr_sigaction64_t, pr_siginfo64_t):
391 Likewise.
392 * common/common.m4 (GDB_AC_COMMON): Don't check for sys/syscall.h.
393 * configure: Regenerate.
394 * config.in: Regenerate.
395 * gdbserver/configure: Regenerate.
396 * gdbserver/config.in: Regenerate.
397
398 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Remove
399 NEW_PROC_API test.
400 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Likewise.
401
402 * linux-btrace.c: Remove HAVE_SYS_SYSCALL_H test.
403
404 * proc-api.c: Remove !NEW_PROC_API support.
405 Remove HAVE_SYS_PROC_H and HAVE_SYS_USER_H tests.
406 Remove tests for macros always defined on Solaris.
407 * proc-events.c: Remove !NEW_PROC_API support.
408 Remove Remove HAVE_SYS_SYSCALL_H, HAVE_SYS_PROC_H and
409 HAVE_SYS_USER_H tests.
410 (init_syscall_table): Remove non-Solaris syscalls.
411 Remove tests for syscalls present on all Solaris versions.
412 Add missing Solaris 10+ syscalls.
413 (signal_table): Remove non-Solaris signals.
414 Remove tests for signals present on all Solaris versions.
415 (fault_table): Remove non-Solaris faults.
416 Remove tests for faults present on all Solaris versions.
417 * proc-flags.c: Remove !NEW_PROC_API support.
418 (pr_flag_table): Remove non-Solaris and pre-Solaris 7 comments.
419 Remove non-Solaris flags.
420 * proc-why.c: Remove !NEW_PROC_API support.
421 (pr_why_table): Remove meaningless comments.
422 Remove tests for reasons present on all Solaris versions.
423 Remove OSF/1 cases.
424 (proc_prettyfprint_why): Likewise.
425
426 * procfs.c: Remove !NEW_PROC_API and DYNAMIC_SYSCALLS support.
427 Remove HAVE_SYS_FAULT_H and HAVE_SYS_SYSCALL_H tests.
428 Remove WA_READ test, IRIX watchpoint support.
429 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t): Replace by base
430 types. Change users.
431 (gdb_praddset, gdb_prdelset, gdb_premptysysset, gdb_praddsysset)
432 (gdb_prdelset, gdb_pr_issyssetmember): Replace by base macros.
433 Change callers.
434 Remove CTL_PROC_NAME_FMT tests.
435 (gdb_prstatus_t, gdb_lwpstatus_t): Replace by base types. Change
436 users.
437 (sysset_t_size): Remove. Use sizeof (sysset_t) in callers.
438 Remove PROCFS_DONT_PIOCSSIG_CURSIG support.
439 (proc_modify_flag): Replace GDBRESET by PCUNSET.
440 Remove PR_ASYNC, PR_KLC tests.
441 (proc_unset_inherit_on_fork): Remove PR_ASYNC test.
442 (proc_parent_pid): Remove PCWATCH etc. tests.
443 (proc_set_watchpoint): Remove !PCWATCH && !PIOCSWATCH support.
444 Remove PCAGENT test.
445 (proc_get_nthreads) [PIOCNTHR && PIOCTLIST]: Remove.
446 Remove SYS_lwpcreate || SYS_lwp_create test.
447 (proc_get_current_thread): Likewise.
448 [PIOCNTHR && PIOCTLIST]: Remove.
449 [PIOCLSTATUS]: Remove.
450 (procfs_debug_inferior): Remove non-Solaris cases, conditionals.
451 [PRFS_STOPEXEC]: Remove.
452 (syscall_is_lwp_exit): Remove non-Solaris cases, conditionals.
453 (syscall_is_exit): Likewise.
454 (syscall_is_exec): Likewise.
455 (syscall_is_lwp_create): Likewise.
456 Remove SYS_syssgi support.
457 (procfs_wait): Remove PR_ASYNC, !PIOCSSPCACT tests.
458 [SYS_syssgi]: Remove.
459 Remove non-Solaris cases, conditionals.
460 (unconditionally_kill_inferior) [PROCFS_NEED_PIOCSSIG_FOR_KILL]:
461 Remove.
462 (procfs_init_inferior) [SYS_syssgi]: Remove.
463 (procfs_set_exec_trap) [PRFS_STOPEXEC]: Remove.
464 (procfs_inferior_created) [SYS_syssgi]: Remove.
465 (procfs_set_watchpoint): Remove !AIX5 test.
466 (procfs_stopped_by_watchpoint): Remove FLTWATCH test, FLTKWATCH
467 case.
468 (mappingflags) [MA_PHYS]: Remove.
469 (info_mappings_callback): Remove PCAGENT test.
470 Remove PIOCOPENLWP || PCAGENT test.
471
472 2017-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
473
474 * sol-thread.c (info_solthreads): Constify args.
475 Cast args to void *.
476
477 2017-11-29 John Baldwin <jhb@FreeBSD.org>
478
479 * target-float.c [HAVE_LIBMPFR]: Define MPFR_USE_INTMAX_T.
480
481 2017-11-29 Joel Brobecker <brobecker@adacore.com>
482
483 * ada-lang.c (to_fixed_range_type): Make sure that the size
484 of the range type being returned is the same as the size
485 of the range type being fixed.
486
487 2017-11-29 Pedro Alves <palves@redhat.com>
488
489 PR c++/19436
490 * NEWS: Mention setting breakpoints on functions with C++ ABI
491 tags.
492 * completer.h (completion_match_for_lcd) <match,
493 mark_ignored_range>: New methods.
494 <finish>: Consider ignored ranges.
495 <clear>: Clear ignored ranges.
496 <m_ignored_ranges, m_finished_storage>: New fields.
497 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
498 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
499 completion_match_for_lcd pointer to strncmp_iw_with_mode.
500 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
501 * language.c (default_symbol_name_matcher): Pass the
502 completion_match_for_lcd pointer to strncmp_iw_with_mode.
503 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
504 * utils.c (skip_abi_tag): New function.
505 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
506 Handle ABI tags.
507 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
508 parameter.
509
510 2017-11-29 Pedro Alves <palves@redhat.com>
511
512 PR c++/19436
513 * NEWS: Mention setting breakpoints on functions with C++ ABI
514 tags.
515 * completer.h (completion_match_for_lcd) <match,
516 mark_ignored_range>: New methods.
517 <finish>: Consider ignored ranges.
518 <clear>: Clear ignored ranges.
519 <m_ignored_ranges, m_finished_storage>: New fields.
520 * cp-support.c (cp_search_name_hash): Ignore ABI tags.
521 (cp_symbol_name_matches_1, cp_fq_symbol_name_matches): Pass the
522 completion_match_for_lcd pointer to strncmp_iw_with_mode.
523 (test_cp_symbol_name_cmp): Add [abi:...] tags unit tests.
524 * language.c (default_symbol_name_matcher): Pass the
525 completion_match_for_lcd pointer to strncmp_iw_with_mode.
526 * linespec.c (linespec_lexer_lex_string): Don't tokenize ABI tags.
527 * utils.c (skip_abi_tag): New function.
528 (strncmp_iw_with_mode): Add completion_match_for_lcd parameter.
529 Handle ABI tags.
530 * utils.h (strncmp_iw_with_mode): Add completion_match_for_lcd
531 parameter.
532
533 2017-11-29 Pedro Alves <palves@redhat.com>
534
535 * NEWS: Mention that breakpoints on C++ functions are now set on
536 on all namespaces/classes by default, and mention "break
537 -qualified".
538 * ax-gdb.c (agent_command_1): Adjust to pass a
539 symbol_name_match_type to new_linespec_location.
540 * breakpoint.c (parse_breakpoint_sals): Adjust to
541 get_linespec_location's return type change.
542 (strace_marker_create_sals_from_location): Adjust to pass a
543 symbol_name_match_type to new_linespec_location.
544 (strace_marker_decode_location): Adjust to get_linespec_location's
545 return type change.
546 (strace_command): Adjust to pass a symbol_name_match_type to
547 new_linespec_location.
548 (LOCATION_HELP_STRING): Add paragraph about wildmatching, and
549 mention "-qualified".
550 * c-lang.c (cplus_language_defn): Install cp_search_name_hash.
551 * completer.c (explicit_location_match_type::MATCH_QUALIFIED): New
552 enumerator.
553 (complete_address_and_linespec_locations): New parameter
554 'match_type'. Pass it down.
555 (explicit_options): Add "-qualified".
556 (collect_explicit_location_matches): Pass the requested match type
557 to the linespec completers. Handle MATCH_QUALIFIED.
558 (location_completer): Handle "-qualified" combined with linespecs.
559 * cp-support.c (cp_search_name_hash): New.
560 (cp_symbol_name_matches_1): Implement wild matching for C++.
561 (cp_fq_symbol_name_matches): Reimplement.
562 (cp_get_symbol_name_matcher): Return different matchers depending
563 on the lookup name's match type.
564 (selftests::test_cp_symbol_name_matches): Add wild matching tests.
565 * cp-support.h (cp_search_name_hash): New declaration.
566 * dwarf2read.c
567 (selftests::dw2_expand_symtabs_matching::test_symbols): Add
568 symbols.
569 (test_dw2_expand_symtabs_matching_symbol): Add wild matching
570 tests.
571 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Adjust to
572 pass a symbol_name_match_type to new_linespec_location.
573 * linespec.c (linespec_parse_basic): Lookup function symbols using
574 the parser's symbol name match type.
575 (convert_explicit_location_to_linespec): New
576 symbol_name_match_type parameter. Pass it down to
577 find_linespec_symbols.
578 (convert_explicit_location_to_sals): Pass the location's name
579 match type to convert_explicit_location_to_linespec.
580 (parse_linespec): New match_type parameter. Save it in the
581 parser.
582 (linespec_parser_new): Default to symbol_name_match_type::WILD.
583 (linespec_complete_function): New symbol_name_match_type
584 parameter. Use it.
585 (complete_linespec_component): Pass down the parser's recorded
586 name match type.
587 (linespec_complete_label): New symbol_name_match_type parameter.
588 Use it.
589 (linespec_complete): New symbol_name_match_type parameter. Save
590 it in the parser and pass it down. Adjust to
591 get_linespec_location's prototype change.
592 (find_function_symbols, find_linespec_symbols): New
593 symbol_name_match_type parameter. Pass it down instead of
594 assuming symbol_name_match_type::WILD.
595 * linespec.h (linespec_complete, linespec_complete_function)
596 (linespec_complete_label): New symbol_name_match_type parameter.
597 * location.c (event_location::linespec_location): Now a struct
598 linespec_location.
599 (EL_LINESPEC): Adjust.
600 (initialize_explicit_location): Default to
601 symbol_name_match_type::WILD.
602 (new_linespec_location): New symbol_name_match_type parameter.
603 Record it in the location.
604 (get_linespec_location): Now returns a struct linespec_location.
605 (new_explicit_location): Also copy func_name_match_type.
606 (explicit_to_string_internal)
607 (string_to_explicit_location): Handle "-qualified".
608 (copy_event_location): Adjust to LINESPEC_LOCATION type change.
609 Copy symbol_name_match_type fields.
610 (event_location_deleter::operator()): Adjust to LINESPEC_LOCATION
611 type change.
612 (event_location_to_string): Adjust to LINESPEC_LOCATION type
613 change. Handle "-qualfied".
614 (string_to_explicit_location): Handle "-qualified".
615 (string_to_event_location_basic): New symbol_name_match_type
616 parameter. Pass it down.
617 (string_to_event_location): Handle "-qualified".
618 * location.h (struct linespec_location): New.
619 (explicit_location::func_name_match_type): New field.
620 (new_linespec_location): Now returns a const linespec_location *.
621 (string_to_event_location_basic): New symbol_name_match_type
622 parameter.
623 (explicit_completion_info::saw_explicit_location_option): New
624 field.
625 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Adjust to pass a
626 symbol_name_match_type to new_linespec_location.
627 * python/py-breakpoint.c (bppy_init): Likewise.
628 * python/python.c (gdbpy_decode_line): Likewise.
629
630 2017-11-29 Pedro Alves <palves@redhat.com>
631
632 * ada-lang.c (ada_lookup_name_info::matches): Change type of
633 parameter from completion_match to completion_match_result.
634 Adjust.
635 (do_wild_match, do_full_match, ada_symbol_name_matches): Likewise.
636 * completer.c (completion_tracker::maybe_add_completion): Add
637 match_for_lcd parameter and use it.
638 (completion_tracker::add_completion): Likewise.
639 * completer.h (class completion_match_for_lcd): New class.
640 (completion_match_result::match_for_lcd): New field.
641 (completion_match_result::set_match): New method.
642 (completion_tracker): Add comments.
643 (completion_tracker::add_completion): Add match_for_lcd parameter.
644 (completion_tracker::reset_completion_match_result): Reset
645 match_for_lcd too.
646 (completion_tracker::maybe_add_completion): Add match_for_lcd
647 parameter.
648 (completion_tracker::m_lowest_common_denominator_unique): Extend
649 comments.
650 * cp-support.c (cp_symbol_name_matches_1)
651 (cp_fq_symbol_name_matches): Change type of parameter from
652 completion_match to completion_match_result. Adjust.
653 * language.c (default_symbol_name_matcher): Change type of
654 parameter from completion_match to completion_match_result.
655 Adjust.
656 * language.h (completion_match_for_lcd): Forward declare.
657 (default_symbol_name_matcher): Change type of parameter from
658 completion_match to completion_match_result.
659 * symtab.c (compare_symbol_name): Adjust.
660 (completion_list_add_name): Pass the match_for_lcd to the tracker.
661 * symtab.h (ada_lookup_name_info::matches): Change type of
662 parameter from completion_match to completion_match_result.
663 (symbol_name_matcher_ftype): Likewise, and update comments.
664
665 2017-11-29 Pedro Alves <palves@redhat.com>
666
667 * linespec.c (minsym_found, add_minsym): Use msymbol_is_function.
668 * minsyms.c (msymbol_is_text): Delete.
669 (msymbol_is_function): New function.
670 * minsyms.h (msymbol_is_text): Delete.
671 (msymbol_is_function): New declaration.
672 * symtab.c (find_function_alias_target): Use msymbol_is_function.
673
674 2017-11-29 Tom Tromey <tom@tromey.com>
675
676 * Makefile.in (distclean): Handle the case where rmdir fails.
677
678 2017-11-29 Tom Tromey <tom@tromey.com>
679
680 * symfile.c (_initialize_symfile): Update usage text for
681 add-symbol-file, symbol-file, load.
682
683 2017-11-29 Tom Tromey <tom@tromey.com>
684
685 * symfile.c (add_symbol_file_command): Error if some arguments to
686 -s are missing. Change unrecognized-argument error message.
687 (_initialize_symfile): Fix usage text for add-symbol-file.
688
689 2017-11-27 Tom Tromey <tom@tromey.com>
690
691 * Makefile.in (REMOTE_OBS): Remove.
692 (SFILES): Remove remote sources.
693 (COMMON_SFILES): Add remote sources.
694 (ALLDEPFILES): Remove dcache.c.
695
696 2017-11-27 Tom Tromey <tom@tromey.com>
697
698 * Makefile.in (SUBDIR_TARGET_SRCS, SUBDIR_TARGET_OBS): New
699 variables.
700 (SFILES): Use SUBDIR_TARGET_SRCS.
701 (COMMON_OBS): Use SUBDIR_TARGET_OBS. Remove waitstatus.o.
702 (CONFIG_SRC_SUBDIR): Add target.
703 (%.o): Remove target rule.
704
705 2017-11-27 Tom Tromey <tom@tromey.com>
706
707 * Makefile.in (COMMON_OBS): Remove filename-seen-cache.o,
708 registry.o, thread-fsm.o, debug.o.
709 (COMMON_SFILES): Add filename-seen-cache.c, registry.c,
710 thread-fsm.c, debug.c.
711
712 2017-11-27 Tom Tromey <tom@tromey.com>
713
714 * Makefile.in (COMMON_SFILES): New.
715 (SFILES): Move some entries to COMMON_SFILES.
716 (COMMON_OBS): Use COMMON_SFILES.
717
718 2017-11-27 Tom Tromey <tom@tromey.com>
719
720 * Makefile.in (YYFILES): Update comment.
721 (YYOBJ): Redefine.
722
723 2017-11-27 Tom Tromey <tom@tromey.com>
724
725 * Makefile.in (SUBDIR_PYTHON_OBS): Redefine.
726 (CONFIG_SRC_SUBDIR): Add python.
727 (%.o): Remove python rule.
728 (python/%.o): New rule.
729 * configure: Rebuild.
730 * configure.ac (CONFIG_OBS): Refer to python/python.o
731
732 2017-11-27 Tom Tromey <tom@tromey.com>
733
734 * configure: Rebuild.
735 * configure.ac (CONFIG_OBS): Refer to guile/guile.o.
736 * Makefile.in (SUBDIR_GUILE_OBS): Redefine.
737 (CONFIG_SRC_SUBDIR): Add guile.
738 (%.o): Remove guile rule.
739
740 2017-11-27 Tom Tromey <tom@tromey.com>
741
742 * Makefile.in (SUBDIR_UNITTESTS_OBS): Redefine.
743 (%.o): Remove unittests rule.
744 (CONFIG_SRC_SUBDIR): Add unittests.
745
746 2017-11-27 Tom Tromey <tom@tromey.com>
747
748 * Makefile.in (SUBDIR_TUI_OBS): Redefine.
749 (CONFIG_SRC_SUBDIR): Add tui.
750 (%.o): Remove tui rule.
751
752 2017-11-27 Tom Tromey <tom@tromey.com>
753
754 * Makefile.in (SUBDIR_GCC_COMPILE_OBS): Redefine.
755 (%.o): Remove compile rule.
756 (CONFIG_SRC_SUBDIR): Add compile.
757
758 2017-11-27 Tom Tromey <tom@tromey.com>
759
760 * Makefile.in (SUBDIR_MI_OBS): Redefine.
761 (%.o): Remove mi rule.
762 (CONFIG_SRC_SUBDIR): Add mi.
763 (COMMON_OBS): Use mi/mi-common.o
764
765 2017-11-27 Tom Tromey <tom@tromey.com>
766
767 * Makefile.in (SUBDIR_CLI_OBS): Redefine.
768 (%.o): Remove cli rule.
769 (CONFIG_SRC_SUBDIR): Add cli.
770
771 2017-11-27 Tom Tromey <tom@tromey.com>
772
773 * configure.ac (CONFIG_SRC_SUBDIR): Don't subst.
774 * configure: Rebuild.
775 * Makefile.in (CONFIG_SRC_SUBDIR): Redefine.
776 (CONFIG_DEP_SUBDIR): New variable.
777 (%.o): Add order-only dependency.
778 ($(CONFIG_DEP_SUBDIR)): New target.
779
780 2017-11-26 Dominik Czarnota <dominik.b.czarnota@gmail.com>
781
782 PR gdb/21945
783 * findcmd.c (_initialize_mem_search): Update find command help
784 text.
785
786 2017-11-26 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * python/python.c (do_start_initialization): Change progname
789 type to gdb::unique_xmalloc_ptr. Release the pointer when using
790 Python 2.
791
792 2017-11-26 Tom Tromey <tom@tromey.com>
793
794 * common/format.h: Add include guards.
795
796 2017-11-26 Tom Tromey <tom@tromey.com>
797
798 * nat/linux-personality.h (class
799 maybe_disable_address_space_randomization): New class.
800 (maybe_disable_address_space_randomization): Don't declare
801 function.
802 * nat/linux-personality.c (restore_personality)
803 (make_disable_asr_cleanup): Remove.
804 (maybe_disable_address_space_randomization): Now a constructor.
805 (~maybe_disable_address_space_randomization): New destructor.
806 * linux-nat.c (linux_nat_create_inferior): Update.
807
808 2017-11-26 Tom Tromey <tom@tromey.com>
809
810 * gcore.c (write_gcore_file_1): Use gdb::unique_xmalloc_ptr.
811
812 2017-11-26 Ulrich Weigand <uweigand@de.ibm.com>
813
814 * spu-tdep.c (spu_software_single_step): Access SPU_LSLR_REGNUM as
815 "cooked" register. Access only first four bytes of branch target
816 registers.
817
818 2017-11-25 Sergio Durigan Junior <sergiodj@redhat.com>
819
820 PR gdb/22491
821 * stap-probe.c (relocate_address): New function.
822 (stap_probe::get_relocated_address): Use 'relocate_address'.
823 (stap_probe::set_semaphore): Use 'relocate_address' and pass
824 'm_sem_addr'.
825 (stap_probe::clear_semaphore): Likewise.
826
827 2017-11-25 Pedro Alves <palves@redhat.com>
828
829 * dictionary.c: Include "safe-ctype.h".
830 * minsyms.c: Include "safe-ctype.h".
831 * minsyms.c (SYMBOL_HASH_NEXT): Use TOLOWER instead of tolower.
832
833 2017-11-25 Pedro Alves <palves@redhat.com>
834
835 * completer.c (complete_line_internal_1): Skip spaces until the
836 start of the command.
837
838 2017-11-24 Pedro Alves <palves@redhat.com>
839
840 * cp-support.c (cp_symbol_name_matches_1): New, factored out from
841 cp_fq_symbol_name_matches. Pass language_cplus to
842 strncmp_with_mode.
843 (cp_fq_symbol_name_matches): Call cp_symbol_name_matches_1.
844 (selftests::test_cp_symbol_name_cmp): New.
845 (_initialize_cp_support): Register "cp_symbol_name_matches"
846 selftests.
847 * language.c (default_symbol_name_matcher): Pass language_minimal
848 to strncmp_iw_with_mode.
849 * utils.c: Include "cp-support.h" and <algorithm>.
850 (valid_identifier_name_char, cp_skip_operator_token, skip_ws)
851 (cp_is_operator): New functions.
852 (strncmp_iw_with_mode): Use them. Add language parameter. Don't
853 skip whitespace in the symbol name when the lookup name doesn't
854 have spaces, and vice versa.
855 (strncmp_iw, strcmp_iw): Pass language to strncmp_iw_with_mode.
856 * utils.h (strncmp_iw_with_mode): Add language parameter.
857
858 2017-11-24 Joel Brobecker <brobecker@adacore.com>
859
860 * ada-lang.c (ada_exception_message_1, ada_exception_message):
861 New functions.
862 (print_it_exception): If available, display the exception
863 message as well.
864 * NEWS: Document new feature.
865
866 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
867
868 * configure.nat <spu-linux>: Add fork-inferior.o to NATDEPFILES.
869
870 2017-11-24 Philipp Rudo <prudo@linux.vnet.ibm.com>
871
872 * dtrace-probe.c (dtrace_probe::build_arg_exprs)
873 (dtrace_probe::is_enabled, dtrace_probe::enable)
874 (dtrace_probe::disable): Remove keyword 'struct' at for-range
875 variable
876 * probe.c (gen_ui_out_table_header_info)
877 (print_ui_out_not_applicables): Remove keyword 'struct' at
878 for-range variable
879
880 2017-11-24 Alan Hayward <alan.hayward@arm.com>
881
882 * configure.tgt: Add arch/aarch64.o
883
884 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
885
886 * common/common-utils.h: Include poison.h.
887 (xfree): Remove declaration, add definition with static_assert.
888 * common/common-utils.c (xfree): Remove.
889 * common/poison.h (IsMallocatable): Define.
890 (IsFreeable): Define.
891 (free): Delete for non-freeable types.
892 (xnew): New.
893 (XNEW): Undef and redefine.
894 (xcnew): New.
895 (XCNEW): Undef and redefine.
896 (xdelete): New.
897 (XDELETE): Undef and redefine.
898 (xnewvec): New.
899 (XNEWVEC): Undef and redefine.
900 (xcnewvec): New.
901 (XCNEWVEC): Undef and redefine.
902 (xresizevec): New.
903 (XRESIZEVEC): Undef and redefine.
904 (xdeletevec): New.
905 (XDELETEVEC): Undef and redefine.
906 (xnewvar): New.
907 (XNEWVAR): Undef and redefine.
908 (xcnewvar): New.
909 (XCNEWVAR): Undef and redefine.
910 (xresizevar): New.
911 (XRESIZEVAR): Undef and redefine.
912
913 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
914
915 * gdbthread.h (private_thread_info): Define structure type, add
916 virtual pure destructor.
917 (thread_info) <priv>: Change type to unique_ptr.
918 <private_dtor>: Remove.
919 * thread.c (add_thread_with_info): Adjust to use of unique_ptr.
920 (private_thread_info::~private_thread_info): Provide default
921 implementation.
922 (thread_info::~thread_info): Don't call private_dtor nor
923 manually free priv.
924 * aix-thread.c (private_thread_info): Rename to ...
925 (aix_thread_info): ... this.
926 (get_aix_thread_info): New.
927 (sync_threadlists): Adjust.
928 (iter_tid): Adjust.
929 (aix_thread_resume): Adjust.
930 (aix_thread_fetch_registers): Adjust.
931 (aix_thread_store_registers): Adjust.
932 (aix_thread_extra_thread_info): Adjust.
933 * darwin-nat.h (private_thread_info): Rename to ...
934 (darwin_thread_info): ... this.
935 (get_darwin_thread_info): New.
936 * darwin-nat.c (darwin_init_thread_list): Adjust.
937 (darwin_check_new_threads): Adjust.
938 (thread_info_from_private_thread_info): Adjust.
939 * linux-thread-db.c (private_thread_info): Rename to ...
940 (thread_db_thread_info): ... this, initialize fields.
941 (get_thread_db_thread_info): New.
942 <dying>: Change type to bool.
943 (update_thread_state): Adjust to type rename.
944 (record_thread): Adjust to type rename an use of unique_ptr.
945 (thread_db_pid_to_str): Likewise.
946 (thread_db_extra_thread_info): Likewise.
947 (thread_db_thread_handle_to_thread_info): Likewise.
948 (thread_db_get_thread_local_address): Likewise.
949 * nto-tdep.h (private_thread_info): Rename to ...
950 (nto_thread_info): ... this, initialize fields.
951 (get_nto_thread_info): New.
952 <name>: Change type to std::string.
953 * nto-tdep.c (nto_extra_thread_info): Adjust to type rename and
954 use of unique_ptr.
955 * nto-procfs.c (update_thread_private_data_name): Adjust to
956 std::string change, allocate nto_private_thread_info with new.
957 (update_thread_private_data): Adjust to unique_ptr.
958 * remote.c (private_thread_info): Rename to ...
959 (remote_thread_info): ... this, initialize data members with
960 default values.
961 <extra, name>: Change type to std::string.
962 <thread_handle>: Change type to non-pointer.
963 (free_private_thread_info): Remove.
964 (get_private_info_thread): Rename to...
965 (get_remote_thread_info): ... this, change return type, adjust to
966 use of unique_ptr, use remote_thread_info constructor.
967 (remote_add_thread): Adjust.
968 (get_private_info_ptid): Rename to...
969 (get_remote_thread_info): ...this, change return type.
970 (remote_thread_name): Use get_remote_thread_info, adjust to
971 change to std::string.
972 (struct thread_item) <~thread_item>: Remove.
973 <thread_handle>: Make non pointer.
974 (start_thread): Adjust to thread_item::thread_handle type
975 change.
976 (remote_update_thread_list): Adjust to type name change, move
977 strings from temporary to long-lived object instead of
978 duplicating.
979 (remote_threads_extra_info): Use get_remote_thread_info.
980 (process_initial_stop_replies): Likewise.
981 (resume_clear_thread_private_info): Likewise.
982 (remote_resume): Adjust to type name change.
983 (remote_commit_resume): Use get_remote_thread_info.
984 (process_stop_reply): Adjust to type name change.
985 (remote_stopped_by_sw_breakpoint): Use get_remote_thread_info.
986 (remote_stopped_by_hw_breakpoint): Likewise.
987 (remote_stopped_by_watchpoint): Likewise.
988 (remote_stopped_data_address): Likewise.
989 (remote_core_of_thread): Likewise.
990 (remote_thread_handle_to_thread_info): Use
991 get_private_info_thread, adjust to thread_handle field type
992 change.
993
994 2017-11-24 Simon Marchi <simon.marchi@polymtl.ca>
995
996 * remote.c (struct thread_item): Add constructor, disable copy
997 construction and copy assignment, define default move
998 construction and move assignment.
999 <extra, name>: Change type to std::string.
1000 <core>: Initialize.
1001 <thread_handle>: Make non-pointer.
1002 (thread_item_t): Remove typedef.
1003 (DEF_VEC_O(thread_item_t)): Remove.
1004 (threads_listing_context) <contains_thread>: New method.
1005 <remove_thread>: New method.
1006 <items>: Change type to std::vector.
1007 (clear_threads_listing_context): Remove.
1008 (threads_listing_context_remove): Remove.
1009 (remote_newthread_step): Use thread_item constructor, adjust to
1010 change to std::vector.
1011 (start_thread): Use thread_item constructor, adjust to change to
1012 std::vector.
1013 (end_thread): Adjust to change to std::vector and std::string.
1014 (remote_get_threads_with_qthreadinfo): Use thread_item
1015 constructor, adjust to std::vector.
1016 (remote_update_thread_list): Adjust to change to std::vector and
1017 std::string, use threads_listing_context methods.
1018 (remove_child_of_pending_fork): Adjust.
1019 (remove_new_fork_children): Adjust.
1020 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add rsp-low-selftests.c.
1021 (SUBDIR_UNITTESTS_OBS): Add rsp-low-selftests.o.
1022 * unittests/rsp-low-selftests.c: New file.
1023 * common/rsp-low.h: Include common/byte-vector.h.
1024 (hex2bin): New overload.
1025 * common/rsp-low.c (hex2bin): New overload.
1026
1027 2017-11-24 Simon Marchi <simon.marchi@ericsson.com>
1028
1029 * inferior.h (private_inferior): Define structure type, add
1030 virtual pure destructor.
1031 (inferior) <priv>: Change type to unique_ptr.
1032 * inferior.c (private_inferior::~private_inferior): Provide
1033 default implementation.
1034 (inferior::~inferior): Don't free priv field.
1035 (exit_inferior_1): Likewise.
1036 * darwin-nat.h (struct darwin_exception_info): Initialize fields.
1037 (darwin_exception_info): Remove typedef.
1038 (DEF_VEC_O (darwin_thread_t)); Remove.
1039 (private_inferior): Rename to ...
1040 (darwin_private_inferior): ... this, extend private_inferior.
1041 (get_darwin_inferior): New.
1042 <threads>: Change type to std::vector of darwin_thread_t pointers.
1043 * darwin-nat.c (darwin_check_new_threads): Adjust.
1044 (find_inferior_task_it): Adjust.
1045 (darwin_find_thread); Adjust.
1046 (darwin_suspend_inferior): Adjust.
1047 (darwin_resume_inferior): Adjust.
1048 (darwin_find_new_inferior): Adjust.
1049 (darwin_decode_notify_message): Adjust.
1050 (darwin_send_reply): Adjust.
1051 (darwin_resume_inferior_threads): Adjust.
1052 (darwin_suspend_inferior_threads): Adjust.
1053 (darwin_decode_message): Adjust.
1054 (darwin_wait): Adjust.
1055 (darwin_interrupt): Adjust.
1056 (darwin_deallocate_threads): Adjust.
1057 (darwin_mourn_inferior): Adjust, don't free private data.
1058 (darwin_reply_to_all_pending_messages): Adjust.
1059 (darwin_stop_inferior): Adjust.
1060 (darwin_setup_exceptions): Adjust.
1061 (darwin_kill_inferior): Adjust.
1062 (darwin_setup_request_notification): Adjust.
1063 (darwin_attach_pid): Adjust.
1064 (darwin_init_thread_list): Adjust.
1065 (darwin_setup_fake_stop_event): Adjust.
1066 (darwin_attach): Adjust.
1067 (darwin_detach): Adjust.
1068 (darwin_xfer_partial): Adjust.
1069 (set_enable_mach_exceptions): Adjust.
1070 (darwin_pid_to_exec_file): Adjust.
1071 (darwin_get_ada_task_ptid): Adjust.
1072 * darwin-nat-info.c (get_task_from_args): Adjust.
1073 (info_mach_ports_command): Adjust.
1074 (info_mach_region_command): Adjust.
1075 (info_mach_exceptions_command): Adjust.
1076 * remote.c (private_inferior): Rename to ...
1077 (remote_private_inferior): ... this, initialize fields.
1078 (get_remote_inferior); New.
1079 (remote_commit_resume): Use get_remote_inferior.
1080 (check_pending_event_prevents_wildcard_vcont_callback): Likewise.
1081
1082 2017-11-24 Pedro Alves <palves@redhat.com>
1083
1084 * NEWS: Mention linespecs and explicit locations, and completion
1085 improvements.
1086
1087 2017-11-24 Yao Qi <yao.qi@linaro.org>
1088
1089 * regcache.c (regcache::dump): Remove footnote_register_size.
1090
1091 2017-11-24 Yao Qi <yao.qi@linaro.org>
1092
1093 * regcache.c (cooked_read_test): Add more test for readonly
1094 regcache.
1095
1096 2017-11-24 Yao Qi <yao.qi@linaro.org>
1097
1098 * gdbarch-selftests.c (test_target_has_registers): Move it to
1099 target.c.
1100 (test_target_has_stack): Likewise.
1101 (test_target_has_memory): Likewise.
1102 (test_target_prepare_to_store): Likewise.
1103 (test_target_store_registers): Likewise.
1104 (test_target_ops): Likewise.
1105 * regcache.c: Include selftest-arch.h and gdbthread.h.
1106 (target_ops_no_register): New class.
1107 (test_target_fetch_registers): New.
1108 (test_target_store_registers): New.
1109 (test_target_xfer_partial): New.
1110 (readwrite_regcache): New.
1111 (cooked_read_test): New.
1112 (_initialize_regcache): Register the test.
1113 * target.c: (test_target_has_registers): Moved from
1114 gdbarch-selftests.c.
1115 (test_target_has_stack): Likewise.
1116 (test_target_has_memory): Likewise.
1117 (test_target_prepare_to_store): Likewise.
1118 (test_target_store_registers): Likewise.
1119 * target.h (test_target_ops): New class.
1120
1121 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1122
1123 * aarch64-tdep.c (_initialize_aarch64_tdep): Add target desc
1124 selftest.
1125
1126 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1127
1128 * aarch64-tdep.c (_initialize_aarch64_tdep): Remove init.
1129 * arch/aarch64.c (aarch64_create_target_description): Create
1130 new target description.
1131 * features/Makefile: Add new files.
1132 * features/aarch64.c: Remove file.
1133 * features/aarch64-core.c: New autogenerated file.
1134 * features/aarch64-fpu.c: New autogenerated file.
1135 * target-descriptions.c (maint_print_c_tdesc_cmd): Check for aarch64.
1136
1137 2017-11-24 Alan Hayward <alan.hayward@arm.com>
1138
1139 * Makefile.in: Add new files.
1140 * aarch64-linux-nat.c (aarch64_linux_read_description): Call
1141 aarch64_read_description.
1142 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
1143 Call aarch64_read_description.
1144 * aarch64-tdep.c (aarch64_read_description): New function.
1145 (aarch64_gdbarch_init): Call aarch64_read_description.
1146 * aarch64-tdep.h (aarch64_read_description): New function.
1147 * arch/aarch64.c: New file.
1148 * configure.tgt: Add new files.
1149
1150 2017-11-24 Yao Qi <yao.qi@linaro.org>
1151
1152 * mi/mi-main.c (register_changed_p): Update.
1153 * value.c (value_contents_bits_eq): Change return type.
1154 (value_contents_eq): Likewise.
1155 * value.h: Update comments.
1156
1157 2017-11-24 Yao Qi <yao.qi@linaro.org>
1158
1159 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
1160 local 'changed'. Remove error.
1161 (register_changed_p): Change return type to bool.
1162
1163 2017-11-24 Yao Qi <yao.qi@linaro.org>
1164
1165 * arch/tic6x.c: New file.
1166 * arch/tic6x.h: New file.
1167 * features/Makefile (FEATURE_XMLFILES): Add tic6x-c6xp.xml,
1168 tic6x-core.xml and tic6x-gp.xml.
1169 * features/tic6x-c6xp.c: Generated.
1170 * features/tic6x-core.c: Generated.
1171 * features/tic6x-gp.c: Generated.
1172 * target-descriptions.c (maint_print_c_tdesc_cmd): Match
1173 "tic6x-".
1174
1175 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1176
1177 * mi/mi-main.c (list_available_thread_groups): Change map value
1178 type to std::vector.
1179
1180 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1181
1182 * osdata.c (osdata_end_column, get_osdata): Remove std::move.
1183
1184 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1185
1186 * varobj.c (struct varobj_dynamic) <children_requested_>: Rename
1187 back to...
1188 <children_requested>: ... this.
1189 (varobj_get_num_children, varobj_update): Adjust.
1190
1191 2017-11-23 Simon Marchi <simon.marchi@ericsson.com>
1192
1193 * ada-varobj.c (ada_value_is_changeable_p): Change int to bool where applicable.
1194 (ada_value_has_mutated): Likewise.
1195 * c-varobj.c (varobj_is_anonymous_child): Likewise.
1196 (c_is_path_expr_parent): Likewise.
1197 * mi/mi-cmd-var.c (varobj_update_one): Likewise.
1198 (mi_cmd_var_set_frozen): Likewise.
1199 (mi_cmd_var_update_iter): Likewise.
1200 (mi_cmd_var_update): Likewise.
1201 * varobj.c (pretty_printing): Likewise.
1202 (varobj_enable_pretty_printing): Likewise.
1203 (struct varobj_root) <floating, is_valid>: Likewise.
1204 (struct varobj_dynamic) <children_requested>: Likewise.
1205 (delete_variable): Likewise.
1206 (delete_variable_1): Likewise.
1207 (install_variable): Likewise.
1208 (update_type_if_necessary): Likewise.
1209 (install_new_value): Likewise.
1210 (value_of_root): Likewise.
1211 (is_root_p): Likewise.
1212 (varobj_create): Likewise.
1213 (varobj_delete): Likewise.
1214 (varobj_has_more): Likewise.
1215 (varobj_set_frozen): Likewise.
1216 (varobj_get_frozen): Likewise.
1217 (install_dynamic_child): Likewise.
1218 (dynamic_varobj_has_child_method): Likewise.
1219 (update_dynamic_varobj_children): Likewise.
1220 (varobj_get_num_children): Likewise.
1221 (varobj_list_children): Likewise.
1222 (is_path_expr_parent): Likewise.
1223 (varobj_default_is_path_expr_parent): Likewise.
1224 (varobj_is_dynamic_p): Likewise.
1225 (varobj_set_value): Likewise.
1226 (varobj_value_has_mutated): Likewise.
1227 (varobj_update): Likewise.
1228 (check_scope): Likewise.
1229 (value_of_root_1): Likewise.
1230 (varobj_value_get_print_value): Likewise.
1231 (varobj_editable_p): Likewise.
1232 (varobj_value_is_changeable_p): Likewise.
1233 (varobj_floating_p): Likewise.
1234 (varobj_default_value_is_changeable_p): Likewise.
1235 (varobj_invalidate_iter): Likewise.
1236 * varobj.h (struct varobj_update_result) <type_changed,
1237 children_changed, changed, value_installed>: Likewise.
1238 (struct varobj) <updated, frozen, not_fetched>: Likewise.
1239 (struct lang_varobj_ops) <value_is_changeable_p,
1240 value_has_mutated, is_path_expr_parent>: Likewise.
1241 (varobj_delete): Likewise.
1242 (varobj_set_frozen): Likewise.
1243 (varobj_get_frozen): Likewise.
1244 (varobj_set_value): Likewise.
1245 (varobj_update): Likewise.
1246 (varobj_editable_p): Likewise.
1247 (varobj_floating_p): Likewise.
1248 (varobj_has_more): Likewise.
1249 (varobj_is_dynamic_p): Likewise.
1250 (varobj_default_value_is_changeable_p): Likewise.
1251 (varobj_value_is_changeable_p): Likewise.
1252 (varobj_is_anonymous_child): Likewise.
1253 (varobj_default_is_path_expr_parent): Likewise.
1254
1255 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1256
1257 * dtrace-probe.c (struct probe_ops dtrace_probe_ops): Delete.
1258 (struct dtrace_probe_arg) <dtrace_probe_arg>: New constructor.
1259 <type_str>: Convert to 'std::string'.
1260 <expr>: Convert to 'expression_up'.
1261 (dtrace_probe_arg_s): Delete type and VEC.
1262 (dtrace_probe_enabler_s): Likewise.
1263 (struct dtrace_probe): Replace by...
1264 (class dtrace_static_probe_ops): ...this and...
1265 (class dtrace_probe): ...this.
1266 (dtrace_probe_is_linespec): Rename to...
1267 (dtrace_static_probe_ops::is_linespec): ...this. Adjust code
1268 to reflect change.
1269 (dtrace_process_dof_probe): Use 'std::vector' instead of VEC.
1270 Adjust code. Create new instance of 'dtrace_probe'.
1271 (dtrace_build_arg_exprs): Rename to...
1272 (dtrace_probe::build_arg_exprs): ...this. Adjust code to
1273 reflect change.
1274 (dtrace_get_probes): Rename to...
1275 (dtrace_static_probe_ops::get_probes): ...this. Adjust code
1276 to reflect change.
1277 (dtrace_get_arg): Rename to...
1278 (dtrace_probe::get_arg_by_number): ...this. Adjust code to
1279 reflect change.
1280 (dtrace_probe_is_enabled): Rename to...
1281 (dtrace_probe::is_enabled): ...this. Adjust code to reflect
1282 change.
1283 (dtrace_get_probe_address): Rename to...
1284 (dtrace_probe::get_relocated_address): ...this. Adjust code
1285 to reflect change.
1286 (dtrace_get_probe_argument_count): Rename to...
1287 (dtrace_probe::get_argument_count): ...this. Adjust code to
1288 reflect change.
1289 (dtrace_can_evaluate_probe_arguments): Rename to...
1290 (dtrace_probe::can_evaluate_arguments): ...this. Adjust code
1291 to reflect change.
1292 (dtrace_evaluate_probe_argument): Rename to...
1293 (dtrace_probe::evaluate_argument): ...this. Adjust code to
1294 reflect change.
1295 (dtrace_compile_to_ax): Rename to...
1296 (dtrace_probe::compile_to_ax): ...this. Adjust code to
1297 reflect change.
1298 (dtrace_probe_destroy): Delete.
1299 (dtrace_type_name): Rename to...
1300 (dtrace_static_probe_ops::type_name): ...this. Adjust code to
1301 reflect change.
1302 (dtrace_probe::get_static_ops): New method.
1303 (dtrace_gen_info_probes_table_header): Rename to...
1304 (dtrace_static_probe_ops::gen_info_probes_table_header):
1305 ...this. Adjust code to reflect change.
1306 (dtrace_gen_info_probes_table_values): Rename to...
1307 (dtrace_probe::gen_info_probes_table_values): ...this. Adjust
1308 code to reflect change.
1309 (dtrace_enable_probe): Rename to...
1310 (dtrace_probe::enable_probe): ...this. Adjust code to reflect
1311 change.
1312 (dtrace_disable_probe): Rename to...
1313 (dtrace_probe::disable_probe): ...this. Adjust code to reflect
1314 change.
1315 (struct probe_ops dtrace_probe_ops): Delete.
1316 (info_probes_dtrace_command): Call 'info_probes_for_spops'
1317 instead of 'info_probes_for_ops'.
1318 (_initialize_dtrace_probe): Use 'all_static_probe_ops' instead
1319 of 'all_probe_ops'.
1320
1321 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1322 Simon Marchi <simark@simark.ca>
1323
1324 * stap-probe.c (struct probe_ops stap_probe_ops): Delete
1325 variable.
1326 (struct stap_probe_arg) <stap_probe_arg>: New constructor.
1327 <aexpr>: Change type to 'expression_up'.
1328 (stap_probe_arg_s): Delete type and VEC.
1329 (struct stap_probe): Delete. Replace by...
1330 (class stap_static_probe_ops): ...this and...
1331 (class stap_probe): ...this. Rename variables to add 'm_'
1332 prefix. Do not use 'union' for arguments anymore.
1333 (stap_get_expected_argument_type): Receive probe name instead
1334 of 'struct stap_probe'. Adjust code.
1335 (stap_parse_probe_arguments): Rename to...
1336 (stap_probe::parse_arguments): ...this. Adjust code to
1337 reflect change.
1338 (stap_get_probe_address): Rename to...
1339 (stap_probe::get_relocated_address): ...this. Adjust code
1340 to reflect change.
1341 (stap_get_probe_argument_count): Rename to...
1342 (stap_probe::get_argument_count): ...this. Adjust code
1343 to reflect change.
1344 (stap_get_arg): Rename to...
1345 (stap_probe::get_arg_by_number'): ...this. Adjust code to
1346 reflect change.
1347 (can_evaluate_probe_arguments): Rename to...
1348 (stap_probe::can_evaluate_arguments): ...this. Adjust code
1349 to reflect change.
1350 (stap_evaluate_probe_argument): Rename to...
1351 (stap_probe::evaluate_argument): ...this. Adjust code
1352 to reflect change.
1353 (stap_compile_to_ax): Rename to...
1354 (stap_probe::compile_to_ax): ...this. Adjust code to
1355 reflect change.
1356 (stap_probe_destroy): Delete.
1357 (stap_modify_semaphore): Adjust comment.
1358 (stap_set_semaphore): Rename to...
1359 (stap_probe::set_semaphore): ...this. Adjust code to reflect
1360 change.
1361 (stap_clear_semaphore): Rename to...
1362 (stap_probe::clear_semaphore): ...this. Adjust code to
1363 reflect change.
1364 (stap_probe::get_static_ops): New method.
1365 (handle_stap_probe): Adjust code to create instance of
1366 'stap_probe'.
1367 (stap_get_probes): Rename to...
1368 (stap_static_probe_ops::get_probes): ...this. Adjust code to
1369 reflect change.
1370 (stap_probe_is_linespec): Rename to...
1371 (stap_static_probe_ops::is_linespec): ...this. Adjust code to
1372 reflect change.
1373 (stap_type_name): Rename to...
1374 (stap_static_probe_ops::type_name): ...this. Adjust code to
1375 reflect change.
1376 (stap_gen_info_probes_table_header): Rename to...
1377 (stap_static_probe_ops::gen_info_probes_table_header):
1378 ...this. Adjust code to reflect change.
1379 (stap_gen_info_probes_table_values): Rename to...
1380 (stap_probe::gen_info_probes_table_values): ...this. Adjust
1381 code to reflect change.
1382 (struct probe_ops stap_probe_ops): Delete.
1383 (info_probes_stap_command): Use 'info_probes_for_spops'
1384 instead of 'info_probes_for_ops'.
1385 (_initialize_stap_probe): Use 'all_static_probe_ops' instead
1386 of 'all_probe_ops'.
1387
1388 2017-11-22 Sergio Durigan Junior <sergiodj@redhat.com>
1389
1390 * break-catch-throw.c (fetch_probe_arguments): Use
1391 'probe.prob' instead of 'probe.probe'.
1392 * breakpoint.c (create_longjmp_master_breakpoint): Call
1393 'can_evaluate_arguments' and 'get_relocated_address' methods
1394 from probe.
1395 (create_exception_master_breakpoint): Likewise.
1396 (add_location_to_breakpoint): Use 'sal->prob' instead of
1397 'sal->probe'.
1398 (bkpt_probe_insert_location): Call 'set_semaphore' method from
1399 probe.
1400 (bkpt_probe_remove_location): Likewise, for 'clear_semaphore'.
1401 * elfread.c (elf_get_probes): Use 'static_probe_ops' instead
1402 of 'probe_ops'.
1403 (probe_key_free): Call 'delete' on probe.
1404 (check_exception_resume): Use 'probe.prob' instead of
1405 'probe.probe'.
1406 * location.c (string_to_event_location_basic): Call
1407 'probe_linespec_to_static_ops'.
1408 * probe.c (class any_static_probe_ops): New class.
1409 (any_static_probe_ops any_static_probe_ops): New variable.
1410 (parse_probes_in_pspace): Receive 'static_probe_ops' as
1411 argument. Adjust code to reflect change.
1412 (parse_probes): Use 'static_probe_ops' instead of
1413 'probe_ops'. Adjust code to reflect change.
1414 (find_probes_in_objfile): Call methods to get name and
1415 provider from probe.
1416 (find_probe_by_pc): Use 'result.prob' instead of
1417 'result.probe'. Call 'get_relocated_address' method from
1418 probe.
1419 (collect_probes): Adjust comment and argument list to receive
1420 'static_probe_ops' instead of 'probe_ops'. Adjust code to
1421 reflect change. Call necessary methods from probe.
1422 (compare_probes): Call methods to get name and provider from
1423 probes.
1424 (gen_ui_out_table_header_info): Receive 'static_probe_ops'
1425 instead of 'probe_ops'. Use 'std::vector' instead of VEC,
1426 adjust code accordingly.
1427 (print_ui_out_not_applicables): Likewise.
1428 (info_probes_for_ops): Rename to...
1429 (info_probes_for_spops): ...this. Receive 'static_probe_ops'
1430 as argument instead of 'probe_ops'. Adjust code. Call
1431 necessary methods from probe.
1432 (info_probes_command): Use 'info_probes_for_spops'.
1433 (enable_probes_command): Pass correct argument to
1434 'collect_probes'. Call methods from probe.
1435 (disable_probes_command): Likewise.
1436 (get_probe_address): Move to 'any_static_probe_ops::get_address'.
1437 (get_probe_argument_count): Move to
1438 'any_static_probe_ops::get_argument_count'.
1439 (can_evaluate_probe_arguments): Move to
1440 'any_static_probe_ops::can_evaluate_arguments'.
1441 (evaluate_probe_argument): Move to
1442 'any_static_probe_ops::evaluate_argument'.
1443 (probe_safe_evaluate_at_pc): Use 'probe.prob' instead of
1444 'probe.probe'.
1445 (probe_linespec_to_ops): Rename to...
1446 (probe_linespec_to_static_ops): ...this. Adjust code.
1447 (probe_any_is_linespec): Rename to...
1448 (any_static_probe_ops::is_linespec): ...this.
1449 (probe_any_get_probes): Rename to...
1450 (any_static_probe_ops::get_probes): ...this.
1451 (any_static_probe_ops::type_name): New method.
1452 (any_static_probe_ops::gen_info_probes_table_header): New
1453 method.
1454 (compute_probe_arg): Use 'pc_probe.prob' instead of
1455 'pc_probe.probe'. Call methods from probe.
1456 (compile_probe_arg): Likewise.
1457 (std::vector<const probe_ops *> all_probe_ops): Delete.
1458 (std::vector<const static_probe_ops *> all_static_probe_ops):
1459 New variable.
1460 (_initialize_probe): Use 'all_static_probe_ops' instead of
1461 'all_probe_ops'.
1462 * probe.h (struct info_probe_column) <field_name>: Delete
1463 extraneous newline
1464 (info_probe_column_s): Delete type and VEC.
1465 (struct probe_ops): Delete. Replace with...
1466 (class static_probe_ops): ...this and...
1467 (clas probe): ...this.
1468 (struct bound_probe) <bound_probe>: Delete extraneous
1469 newline. Adjust constructor to receive 'probe' instead of
1470 'struct probe'.
1471 <probe>: Rename to...
1472 <prob>: ...this. Delete extraneous newline.
1473 <objfile>: Delete extraneous newline.
1474 (register_probe_ops): Delete unused prototype.
1475 (info_probes_for_ops): Rename to...
1476 (info_probes_for_spops): ...this. Adjust comment.
1477 (get_probe_address): Move to 'probe::get_address'.
1478 (get_probe_argument_count): Move to
1479 'probe::get_argument_count'.
1480 (can_evaluate_probe_arguments): Move to
1481 'probe::can_evaluate_arguments'.
1482 (evaluate_probe_argument): Move to 'probe::evaluate_argument'.
1483 * solib-svr4.c (struct svr4_info): Adjust comment.
1484 (struct probe_and_action) <probe>: Rename to...
1485 <prob>: ...this.
1486 (register_solib_event_probe): Receive 'probe' instead of
1487 'struct probe' as argument. Use 'prob' instead of 'probe'
1488 when applicable.
1489 (solib_event_probe_action): Call 'get_argument_count' method
1490 from probe. Adjust comment.
1491 (svr4_handle_solib_event): Adjust comment. Call
1492 'evaluate_argument' method from probe.
1493 (svr4_create_probe_breakpoints): Call 'get_relocated_address'
1494 from probe.
1495 (svr4_create_solib_event_breakpoints): Use 'probe' instead of
1496 'struct probe'. Call 'can_evaluate_arguments' from probe.
1497 * symfile.h: Forward declare 'class probe' instead of 'struct
1498 probe'.
1499 * symtab.h: Likewise.
1500 (struct symtab_and_line) <probe>: Rename to...
1501 <prob>: ...this.
1502 * tracepoint.c (start_tracing): Use 'prob' when applicable.
1503 Call probe methods.
1504 (stop_tracing): Likewise.
1505
1506 2017-11-22 Joel Brobecker <brobecker@adacore.com>
1507
1508 * ravenscar-thread.c (ravenscar_inferior_created): Remove
1509 trailing newline at end of string in call to warning.
1510
1511 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1512
1513 * osdata.h: Include vector isntead of vec.h.
1514 (osdata_column_s): Remove typedef.
1515 (struct osdata_column): Add constructor.
1516 <name, value>: Change type to std::string.
1517 (DEF_VEC_O (osdata_column_s)): Remove.
1518 (osdata_item_s): Remove typedef.
1519 (struct osdata_item) <columns>: Change type to std::vector.
1520 (DEF_VEC_O (osdata_item_s)): Remove.
1521 (struct osdata): Add constructor.
1522 <type>: Change type to std::string.
1523 <items>: Change type to std::vector.
1524 (osdata_p): Remove typedef.
1525 (DEF_VEC_P (osdata_p)): Remove.
1526 (osdata_parse): Return a unique_ptr.
1527 (osdata_free): Remove.
1528 (make_cleanup_osdata_free): Remove.
1529 (get_osdata): Return a unique_ptr.
1530 (get_osdata_column): Return pointer to std::string, take a
1531 reference to osdata_item as parameter.
1532 * osdata.c (struct osdata_parsing_data) <osdata>: Change type to
1533 unique_ptr.
1534 <property_name>: Change type to std::string.
1535 (osdata_start_osdata): Allocate osdata with new and adjust.
1536 (osdata_start_item): Adjust.
1537 (osdata_start_column): Adjust.
1538 (osdata_end_column): Adjust.
1539 (clear_parsing_data): Remove.
1540 (osdata_parse): Return a unique_ptr and adjust, remove cleanup.
1541 (osdata_item_clear): Remove.
1542 (get_osdata): return a unique_ptr and adjust.
1543 (get_osdata_column): Return a pointer to std::string and adjust.
1544 (info_osdata): Adjust.
1545 * mi/mi-main.c: Include <map>.
1546 (free_vector_of_osdata_items): Remove.
1547 (list_available_thread_groups): Adjust, use std::map instead of
1548 splay tree.
1549
1550 2017-11-22 Simon Marchi <simon.marchi@ericsson.com>
1551
1552 * stack.c (iterate_over_block_locals): Add LOC_OPTIMIZED_OUT
1553 case in switch.
1554
1555 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1556
1557 * varobj.h (DEF_VEC_P (varobj_p)): Remove.
1558
1559 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 * varobj.h (struct varobj_update_result): Add constructor, add
1562 move constructor, disable copy and assign, initialize fields.
1563 <newobj>: Change type to std::vector.
1564 (varobj_update): Return std::vector.
1565 * varobj.c (install_dynamic_child): Change VEC parameters to
1566 std::vector and adjust.
1567 (update_dynamic_varobj_children): Likewise.
1568 (varobj_update): Return std::vector and adjust.
1569 * mi/mi-cmd-var.c (varobj_update_one): Adjust to vector changes.
1570
1571 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * varobj.h (struct varobj) <parent>: Remove const.
1574 <children>: Change type to std::vector.
1575 (varobj_list_children): Return std::vector const reference.
1576 (varobj_restrict_range): Change parameter type to std::vector
1577 const reference.
1578 * varobj.c (varobj_has_more): Adjust.
1579 (varobj_restrict_range): Change parameter type to std::vector
1580 const reference and adjust.
1581 (install_dynamic_child): Adjust.
1582 (update_dynamic_varobj_children): Adjust.
1583 (varobj_list_children): Return std::vector const reference and
1584 adjust.
1585 (varobj_add_child): Adjust.
1586 (update_type_if_necessary): Adjust.
1587 (varobj_update): Adjust.
1588 (delete_variable_1): Adjust.
1589 * ada-varobj.c (ada_value_has_mutated): Adjust.
1590 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust.
1591
1592 2017-11-22 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 * varobj.h (struct varobj): Add constructor and destructor,
1595 initialize fields.
1596 * varobj.c (struct varobj_root): Initialize fields.
1597 (struct varobj_dynamic): Initialize fields.
1598 (varobj_create): Use unique_ptr instead of cleanup. Create
1599 varobj with new instead of new_root_variable.
1600 (delete_variable_1): Free variable with delete instead of
1601 free_variable.
1602 (create_child_with_value): Create variable with new instead of
1603 new_variable.
1604 (varobj::varobj): New.
1605 (varobj::~varobj): New (body mostly coming from free_variable).
1606 (new_variable): Remove.
1607 (free_variable): Remove.
1608 (do_free_variable_cleanup): Remove.
1609 (make_cleanup_free_variable): Remove.
1610
1611 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1612
1613 * core-regset.c: Remove file.
1614 * Makefile.in (ALLDEPFILES): Remove core-regset.c.
1615
1616 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1617
1618 * NEWS: Document use of GNU MPFR.
1619 * README: Likewise.
1620
1621 * Makefile.in (LIBMPFR): Add define.
1622 (CLIBS): Add $(LIBMPFR).
1623 * configure.ac: Add --with-mpfr configure option.
1624 * configure: Regenerate.
1625 * config.in: Regenerate.
1626
1627 * target-float.c [HAVE_LIBMPFR]: Include <mpfr.h>.
1628 (class mpfr_float_ops): New type.
1629 (mpfr_float_ops::from_target): Two new overloaded functions.
1630 (mpfr_float_ops::to_target): Likewise.
1631 (mpfr_float_ops::to_string): New function.
1632 (mpfr_float_ops::from_string): Likewise.
1633 (mpfr_float_ops::to_longest): Likewise.
1634 (mpfr_float_ops::from_longest): Likewise.
1635 (mpfr_float_ops::from_ulongest): Likewise.
1636 (mpfr_float_ops::to_host_double): Likewise.
1637 (mpfr_float_ops::from_host_double): Likewise.
1638 (mpfr_float_ops::convert): Likewise.
1639 (mpfr_float_ops::binop): Likewise.
1640 (mpfr_float_ops::compare): Likewise.
1641 (get_target_float_ops): Use mpfr_float_ops if available.
1642
1643 2017-11-22 Ulrich Weigand <uweigand@de.ibm.com>
1644
1645 * target-float.c: Do not include <math.h>.
1646 Include <cmath> and <limits>.
1647 (DOUBLEST): Do not define.
1648 (class target_float_ops): New type.
1649 (class host_float_ops): New templated type.
1650 (class decimal_float_ops): New type.
1651
1652 (floatformat_to_doublest): Rename to ...
1653 (host_float_ops<T>::from_target): ... this. Use template type T
1654 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1655 (host_float_ops<T>::from_target): New overload using a type argument.
1656 (floatformat_from_doublest): Rename to ...
1657 (host_float_ops<T>::to_target): ... this. Use template type T
1658 instead of DOUBLEST. Use C++ math routines. Update recursive calls.
1659 (host_float_ops<T>::to_target): New overload using a type argument.
1660 (floatformat_printf_format): New function.
1661 (struct printf_length_modifier): New templated type.
1662 (floatformat_to_string): Rename to ...
1663 (host_float_ops<T>::to_string): ... this. Use type instead of
1664 floatformat argument. Use floatformat_printf_format and
1665 printf_length_modifier. Remove special handling of invalid numbers,
1666 infinities and NaN (moved to target_float_to_string).
1667 (struct scanf_length_modifier): New templated type.
1668 (floatformat_from_string): Rename to ...
1669 (host_float_ops<T>::from_string): ... this. Use type instead of
1670 floatformat argument. Use scanf_length_modifier.
1671 (floatformat_to_longest): Rename to ...
1672 (host_float_ops<T>::to_longest): ... this. Use type instead of
1673 floatformat argument. Handle out-of-range values deterministically.
1674 (floatformat_from_longest): Rename to ...
1675 (host_float_ops<T>::from_longest): ... this. Use type instead of
1676 floatformat argument.
1677 (floatformat_from_ulongest): Rename to ...
1678 (host_float_ops<T>::from_ulongest): ... this. Use type instead of
1679 floatformat argument.
1680 (floatformat_to_host_double): Rename to ...
1681 (host_float_ops<T>::to_host_double): ... this. Use type instead of
1682 floatformat argument.
1683 (floatformat_from_host_double): Rename to ...
1684 (host_float_ops<T>::from_host_double): ... this. Use type instead of
1685 floatformat argument.
1686 (floatformat_convert): Rename to ...
1687 (host_float_ops<T>::convert): ... this. Use type instead of
1688 floatformat arguments. Remove handling of no-op conversions.
1689 (floatformat_binop): Rename to ...
1690 (host_float_ops<T>::binop): ... this. Use type instead of
1691 floatformat arguments.
1692 (floatformat_compare): Rename to ...
1693 (host_float_ops<T>::compare): ... this. Use type instead of
1694 floatformat arguments.
1695
1696 (match_endianness): Use type instead of length/byte_order arguments.
1697 (set_decnumber_context): Likewise.
1698 (decimal_from_number): Likewise. Update calls.
1699 (decimal_to_number): Likewise.
1700 (decimal_is_zero): Likewise. Update calls. Move to earlier in file.
1701 (decimal_float_ops::to_host_double): New dummy function.
1702 (decimal_float_ops::from_host_double): Likewise.
1703 (decimal_to_string): Rename to ...
1704 (decimal_float_ops::to_string): ... this. Use type instead of
1705 length/byte_order arguments. Update calls.
1706 (decimal_from_string): Rename to ...
1707 (decimal_float_ops::from_string): ... this. Use type instead of
1708 length/byte_order arguments. Update calls.
1709 (decimal_from_longest): Rename to ...
1710 (decimal_float_ops::from_longest): ... this. Use type instead of
1711 length/byte_order arguments. Update calls.
1712 (decimal_from_ulongest): Rename to ...
1713 (decimal_float_ops::from_ulongest): ... this. Use type instead of
1714 length/byte_order arguments. Update calls.
1715 (decimal_to_longest): Rename to ...
1716 (decimal_float_ops::to_longest): ... this. Use type instead of
1717 length/byte_order arguments. Update calls.
1718 (decimal_binop): Rename to ...
1719 (decimal_float_ops::binop): ... this. Use type instead of
1720 length/byte_order arguments. Update calls.
1721 (decimal_compare): Rename to ...
1722 (decimal_float_ops::compare): ... this. Use type instead of
1723 length/byte_order arguments. Update calls.
1724 (decimal_convert): Rename to ...
1725 (decimal_float_ops::convert): ... this. Use type instead of
1726 length/byte_order arguments. Update calls.
1727
1728 (target_float_same_category_p): New function.
1729 (target_float_same_format_p): Likewise.
1730 (target_float_format_length): Likewise.
1731 (enum target_float_ops_kind): New type.
1732 (get_target_float_ops_kind): New function.
1733 (get_target_float_ops): Three new overloaded functions.
1734
1735 (target_float_is_zero): Update call.
1736 (target_float_to_string): Add special handling of invalid numbers,
1737 infinities and NaN (moved from floatformat_to_string). Use
1738 target_float_ops callback.
1739 (target_float_from_string): Use target_float_ops callback.
1740 (target_float_to_longest): Likewise.
1741 (target_float_from_longest): Likewise.
1742 (target_float_from_ulongest): Likewise.
1743 (target_float_to_host_double): Likewise.
1744 (target_float_from_host_double): Likewise.
1745 (target_float_convert): Add special case for no-op conversions.
1746 Use target_float_ops callback.
1747 (target_float_binop): Use target_float_ops callback.
1748 (target_float_compare): Likewise.
1749
1750 2017-11-22 Yao Qi <yao.qi@linaro.org>
1751
1752 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use strcpy.
1753
1754 2017-11-22 Yao Qi <yao.qi@linaro.org>
1755
1756 * cli/cli-decode.c (help_list): Use memcpy instead of strncpy.
1757 * cp-namespace.c (cp_lookup_transparent_type_loop): Likewise.
1758
1759 2017-11-21 Jerome Guitton <guitton@adacore.com>
1760
1761 * ravenscar-thread.c (ravenscar_wait): Update inferior ptid
1762 with event ptid from the lower layer before doing the
1763 ravenscar-specific update.
1764
1765 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1766
1767 * ravenscar-thread.c (is_ravenscar_task): Also verify that
1768 the ptid's TID is nonzero.
1769
1770 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1771
1772 * ada-lang.h (ada_get_tcb_types_info): Add declaration.
1773 * ada-tasks.c (ada_get_tcb_types_info): Renames get_tcb_types_info.
1774 Make non-static. Change return type to char *. Adjust code
1775 accordingly. Rewrite the function's documentation.
1776 (read_atcb): Adjust call to get_tcb_types_info accordingly.
1777 * ravenscar-thread.c (ravenscar_inferior_created): Check that
1778 we have enough debugging information in the runtime to support
1779 Ada task debugging before we enable the ravenscar-thread layer.
1780
1781 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1782
1783 * ada-lang.h (ada_get_task_info_from_ptid): Add declaration.
1784 * ada-tasks.c (ada_get_task_info_from_ptid): New function.
1785 * ravenscar-thread.c: Add into comment.
1786 (base_magic_null_ptid): Delete.
1787 (base_ptid): Change documentation.
1788 (ravenscar_active_task): Renames ravenscar_running_thread.
1789 All callers updated throughout.
1790 (is_ravenscar_task, ravenscar_get_thread_base_cpu): New function.
1791 (ravenscar_task_is_currently_active): Likewise.
1792 (get_base_thread_from_ravenscar_task): Ditto.
1793 (ravenscar_update_inferior_ptid): Adjust to handle multiple CPUs.
1794 (ravenscar_runtime_initialized): Likewise.
1795 (get_running_thread_id): Add new parameter "cpu". Adjust
1796 implementation to handle this new parameter.
1797 (ravenscar_fetch_registers): Small adjustment to use
1798 is_ravenscar_task and ravenscar_task_is_currently_active in
1799 order to decide whether to use the target beneath or this
1800 module's arch_ops.
1801 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
1802 (ravenscar_stopped_by_sw_breakpoint): Use
1803 get_base_thread_from_ravenscar_task to get the underlying
1804 thread, rather than using base_ptid.
1805 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1806 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1807 Likewise.
1808 (ravenscar_inferior_created): Do not set base_magic_null_ptid.
1809
1810 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1811
1812 * ada-lang.h (struct ada_task_info) <base_cpu>: New field.
1813 * ada-lang.c (struct atcb_fieldno) <base_cpu>: New field.
1814 (get_tcb_types_info): Set fieldnos.base_cpu.
1815 (read_atcb): Set task_info->base_cpu.
1816 (info_task): Print "Base CPU" info if set by runtime.
1817
1818 2017-11-21 Joel Brobecker <brobecker@adacore.com>
1819
1820 * ravenscar-thread.c (ravenscar_stopped_by_sw_breakpoint)
1821 (ravenscar_stopped_by_hw_breakpoint, ravenscar_stopped_by_watchpoint)
1822 (ravenscar_stopped_data_address, ravenscar_core_of_thread):
1823 New functions.
1824 (init_ravenscar_thread_ops): Set the to_stopped_by_sw_breakpoint,
1825 to_stopped_by_hw_breakpoint, to_stopped_by_watchpoint,
1826 to_stopped_data_address and to_core_of_thread fields of
1827 ravenscar_ops.
1828
1829 2017-11-21 Ulrich Weigand <uweigand@de.ibm.com>
1830
1831 * ppc-tdep.h (enum powerpc_long_double_abi): New data type.
1832 (struct gdbarch_tdep): New member long_double_abi.
1833 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize long_double_abi
1834 member of tdep struct based on Tag_GNU_Power_ABI_FP attribute.
1835 * ppc-linux-tdep.c (ppc_linux_init_abi): Install long double data
1836 format depending on long_double_abi tdep member.
1837 (ppc_floatformat_for_type): Handle __ibm128 type.
1838
1839 2017-11-20 Simon Marchi <simon.marchi@polymtl.ca>
1840
1841 * darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
1842
1843 2017-11-21 Pedro Alves <palves@redhat.com>
1844
1845 * dwarf2read.c (mapped_index::find_name_components_bounds)
1846 <completion mode, upper bound>: Use std::lower_bound instead of
1847 std::upper_bound.
1848 (test_mapped_index_find_name_component_bounds): Remove incorrect
1849 "t1_fund" from expected symbols.
1850
1851 2017-11-21 Pedro Alves <palves@redhat.com>
1852
1853 * dwarf2read.c (mapped_index::name_components_casing): New field.
1854 (mapped_index) <build_name_components,
1855 find_name_components_bounds): Declare new methods.
1856 (mapped_index::find_name_components_bounds)
1857 (mapped_index::build_name_components): New methods, factored out
1858 from dw2_expand_symtabs_matching_symbol.
1859 (check_find_bounds_finds)
1860 (test_mapped_index_find_name_component_bounds): New.
1861 (run_test): Rename to ...
1862 (test_dw2_expand_symtabs_matching_symbol): ... this.
1863 (run_test): Reimplement.
1864
1865 2017-11-21 Pedro Alves <palves@redhat.com>
1866
1867 * cp-name-parser.y (cp_ident_is_alpha, cp_ident_is_alnum): New.
1868 (symbol_end): Use cp_ident_is_alnum.
1869 (yylex): Use cp_ident_is_alpha and cp_ident_is_alnum.
1870 * dwarf2read.c (make_sort_after_prefix_name): New function.
1871 (dw2_expand_symtabs_matching_symbol): Use it.
1872 (test_symbols): Add more symbols.
1873 (run_test): Add tests.
1874
1875 2017-11-17 Tom Tromey <tom@tromey.com>
1876
1877 * symtab.h (enum symbol_subclass_kind): New.
1878 (struct symbol) <is_cplus_template_function, is_rust_vtable>:
1879 Remove.
1880 <subclass>: New member.
1881 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): Update.
1882 * rust-lang.c (rust_get_trait_object_pointer): Update.
1883 * dwarf2read.c (read_func_scope): Update.
1884 (read_variable): Update.
1885
1886 2017-11-17 Tom Tromey <tom@tromey.com>
1887
1888 * dwarf2read.c (read_func_scope): Update.
1889 * symtab.h (struct template_symbol): Derive from symbol.
1890 <base>: Remove.
1891
1892 2017-11-17 Tom Tromey <tom@tromey.com>
1893
1894 * symtab.h (struct symbol) <is_rust_vtable>: New member.
1895 (struct rust_vtable_symbol): New.
1896 (find_symbol_at_address): Declare.
1897 * symtab.c (find_symbol_at_address): New function.
1898 * symfile.h (struct quick_symbol_functions)
1899 <find_compunit_symtab_by_address>: New member.
1900 * symfile-debug.c (debug_qf_find_compunit_symtab_by_address): New
1901 function.
1902 (debug_sym_quick_functions): Link to
1903 debug_qf_find_compunit_symtab_by_address.
1904 * rust-lang.c (rust_get_trait_object_pointer): New function.
1905 (rust_evaluate_subexp) <case UNOP_IND>: New case. Call
1906 rust_get_trait_object_pointer.
1907 * psymtab.c (psym_relocate): Clear psymbol_map.
1908 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address): New
1909 functions.
1910 (psym_functions): Link to psym_find_compunit_symtab_by_address.
1911 * objfiles.h (struct objfile) <psymbol_map>: New member.
1912 * dwarf2read.c (dwarf2_gdb_index_functions): Update.
1913 (process_die) <DW_TAG_variable>: New case. Call read_variable.
1914 (rust_containing_type, read_variable): New functions.
1915
1916 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1917
1918 * common/gdb_vecs.h (DEF_VEC_I (int)): Remove.
1919
1920 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 * common/filestuff.c: Include <algorithm>.
1923 (open_fds): Change type to std::vector<int>.
1924 (do_mark_open_fd): Adjust.
1925 (unmark_fd_no_cloexec): Adjust.
1926 (do_close): Adjust.
1927
1928 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
1929
1930 * breakpoint.c (output_thread_groups): Take an std::vector.
1931 (print_one_breakpoint_location): Adjust.
1932
1933 2017-11-17 Joel Brobecker <brobecker@adacore.com>
1934
1935 * ada-lang.c (resolve_subexp): Add handling of OP_VAR_MSYM_VALUE.
1936 (ada_evaluate_subexp_for_cast): New function.
1937 (ada_evaluate_subexp) <UNOP_CAST>: Replace code by call to
1938 ada_evaluate_subexp_for_cast.
1939 (ada_evaluate_subexp) <nosideret>: Replace code by call to
1940 eval_skip_value.
1941 * eval.c (evaluate_var_value): Make non-static.
1942 (evaluate_var_msym_value, eval_skip_value): Likewise.
1943 * value.h (evaluate_var_value, evaluate_var_msym_value)
1944 (eval_skip_value): Declare.
1945
1946 2017-11-16 Joel Brobecker <brobecker@adacore.com>
1947
1948 * ada-lang.c (ada_value_cast): Remove parameter "noside".
1949 Update all callers.
1950
1951 2017-11-16 Pedro Alves <palves@redhat.com>
1952
1953 * python/py-unwind.c (pyuw_sniffer): Translate
1954 PyExc_KeyboardInterrupt to a GDB Quit exception.
1955
1956 2017-11-16 Pedro Alves <palves@redhat.com>
1957
1958 * infrun.c (resume_cleanups): Delete.
1959 (resume): No longer install a resume_cleanups cleanup nor call
1960 QUIT.
1961 (proceed): Pass the terminal to the inferior.
1962 (keep_going_pass_signal): No longer install a resume_cleanups
1963 cleanup.
1964
1965 2017-11-16 Pedro Alves <palves@redhat.com>
1966
1967 * inf-loop.c (inferior_event_handler): Don't swallow the exception
1968 if the prompt is blocked.
1969
1970 2017-11-16 Pedro Alves <palves@redhat.com>
1971
1972 * breakpoint.c (insert_bp_location): Replace bp_err and
1973 bp_err_message locals by a gdb_exception local.
1974
1975 2017-11-16 Pedro Alves <palves@redhat.com>
1976
1977 * inflow.c (scoped_ignore_sigttou): New class.
1978 (child_terminal_ours_1, new_tty): Use it.
1979
1980 2017-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1981
1982 * target-float.c (decimal_from_number): Add byte_order argument and
1983 call match_endianness. Error if unknown floating-point type.
1984 (decimal_to_number): Add byte_order argument and call match_endianness.
1985 (decimal_from_longest): Update call. Do not call match_endianness.
1986 (decimal_from_ulongest): Likewise.
1987 (decimal_binop): Likewise.
1988 (decimal_is_zero): Likewise.
1989 (decimal_compare): Likewise.
1990 (decimal_convert): Likewise.
1991
1992 2017-11-16 Phil Muldoon <pmuldoon@redhat.com>
1993
1994 * python/python.c (gdbpy_rbreak): New function.
1995 * NEWS: Document Python rbreak feature.
1996
1997 2017-11-16 Yao Qi <yao.qi@linaro.org>
1998
1999 * features/tic6x-c62x.xml: Remove.
2000 * features/tic6x-c64x.xml: Remove.
2001 * features/tic6x-c64xp.xml: Remove.
2002
2003 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2004
2005 * symtab.h: Include <array>.
2006
2007 2017-11-15 John Baldwin <jhb@FreeBSD.org>
2008
2009 * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
2010 (bsd_kvm_proc_cmd): Likewise.
2011
2012 2017-11-15 Simon Marchi <simon.marchi@ericsson.com>
2013
2014 * tui/tui-win.c (window_name_completer): Replace VEC with
2015 std::vector.
2016
2017 2017-11-15 Andrew Cagney <cagney@gnu.org>
2018
2019 * MAINTAINERS: Remove no-longer applicable entries.
2020
2021 2017-11-15 Andrew Cagney <cagney@gnu.org>
2022
2023 * MAINTAINERS: Move self to Past Maintainers.
2024
2025 2017-11-15 Yao Qi <yao.qi@linaro.org>
2026
2027 * features/Makefile (XMLTOC): Remove nios2-linux.xml.
2028 * features/nios2-linux.c: Remove.
2029 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Don't call
2030 initialize_tdesc_nios2_linux.
2031
2032 2017-11-15 Yao Qi <yao.qi@linaro.org>
2033
2034 * m68hc11-tdep.c (M68HC11_NUM_REGS): Change it to
2035 M68HC11_LAST_HARD_REG + 1.
2036
2037 2017-11-14 Paul Carroll <pcarroll@codesourcery.com>
2038
2039 PR gdb/22388
2040 * remote.c (remote_write_bytes_aux, remote_read_bytes_1,
2041 remote_read_bytes, remote_write_qxfer, remote_xfer_partial):
2042 Return TARGET_XFER_EOF if size of returned data is 0.
2043
2044 2017-11-14 Simon Marchi <simon.marchi@ericsson.com>
2045
2046 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2047 memory-map-selftests.c.
2048 (SUBDIR_UNITTESTS_OBS): Add memory-map-selftests.o.
2049 * memory-map.c (memory_map_start_memory): Fix computation of hi
2050 address.
2051 * unittests/memory-map-selftests.c: New file.
2052
2053 2017-11-09 Joel Brobecker <brobecker@adacore.com>
2054
2055 * ada-lang.c: Fix some typos in the general command documenting
2056 how Ada expressions are being evaluated and how their result
2057 is printed.
2058
2059 2017-11-09 Tom Tromey <tom@tromey.com>
2060
2061 * psymtab.c (psymbol_hash): Do not hash string contents.
2062 (psymbol_compare): Add comment.
2063
2064 2017-11-09 Tom Tromey <tom@tromey.com>
2065
2066 * dictionary.c (dict_hash): Move "TKB" check into the "switch".
2067
2068 2017-11-08 Joel Brobecker <brobecker@adacore.com>
2069
2070 * ada-exp.y (write_var_from_sym): Remove parameter
2071 "orig_left_context". Update all callers.
2072
2073 2017-11-08 Simon Marchi <simon.marchi@ericsson.com>
2074
2075 * tracepoint.h (class collection_list) <stringify>: Return
2076 std::vector<std::string>.
2077 (encode_actions_rsp): Change parameters to
2078 std::vector<std::string> *.
2079 * tracepoint.c (collection_list::stringify): Return
2080 std::vector<std::string> and adjust accordingly.
2081 (encode_actions_rsp): Changee parameters to
2082 std::vector<std::string> and adjust accordingly.
2083 * remote.c (free_actions_list),
2084 free_actions_list_cleanup_wrapper): Remove.
2085 (remote_download_tracepoint): Adjust to std::vector.
2086
2087 2017-11-08 Tom Tromey <tom@tromey.com>
2088
2089 * dwarf2read.c (symbolp): Remove typedef.
2090 (read_func_scope): Use std::vector.
2091 (process_structure_scope): Use std::vector.
2092
2093 2017-11-08 Pedro Alves <palves@redhat.com>
2094
2095 * ada-lang.c (ada_make_symbol_completion_list): Use
2096 completion_skip_symbol.
2097 * symtab.c (symbol_is_function_or_method(minimal_symbol*)): New.
2098 (symbol_is_function_or_method(symbol*)): New.
2099 (add_symtab_completions): Add complete_symbol_mode parameter. Use
2100 completion_skip_symbol.
2101 (default_collect_symbol_completion_matches_break_on): Use
2102 completion_skip_symbol. Pass down mode.
2103 (collect_file_symbol_completion_matches): Pass down mode.
2104 * symtab.h (symbol_is_function_or_method): New declarations.
2105 (completion_skip_symbol): New template function.
2106
2107 2017-11-08 Pedro Alves <palves@redhat.com>
2108
2109 * linespec.c (iterate_over_all_matching_symtabs): Add
2110 search_domain parameter. Pass it down to expand_symtabs_matching.
2111 (decode_objc): Request FUNCTIONS_DOMAIN symbols only.
2112 (lookup_prefix_sym): Adjust by passing ALL_DOMAIN as
2113 search_domain.
2114 (add_all_symbol_names_from_pspace): Add search_domain parameter.
2115 Pass it down.
2116 (find_method, find_function_symbols): Request FUNCTIONS_DOMAIN
2117 symbols.
2118 (add_matching_symbols_to_info): Add search_domain parameter. Pass
2119 it down.
2120
2121 2017-11-08 Pedro Alves <palves@redhat.com>
2122
2123 * ada-lang.c (ada_make_symbol_completion_list): Remove text and
2124 text_len locals and don't pass them down.
2125 * symtab.c (completion_list_add_name): Remove
2126 sym_text/sym_text_len parameters and adjust.
2127 (completion_list_add_symbol, completion_list_add_msymbol)
2128 (completion_list_objc_symbol, completion_list_add_fields)
2129 (add_symtab_completions): Likewise.
2130 (default_collect_symbol_completion_matches_break_on)
2131 (collect_file_symbol_completion_matches): Remove sym_text_len
2132 local and don't pass it down.
2133 * symtab.h (completion_list_add_name): Remove
2134 sym_text/sym_text_len parameters.
2135
2136 2017-11-08 Pedro Alves <palves@redhat.com>
2137
2138 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2139 unittests/lookup_name_info-selftests.c.
2140 (SUBDIR_UNITTESTS_OBS): Add lookup_name_info-selftests.o.
2141 * cp-support.c: Include "selftest.h".
2142 (cp_remove_params_1): Rename from cp_remove_params. Add
2143 'require_param' parameter, and handle it.
2144 (cp_remove_params): Reimplement.
2145 (cp_remove_params_if_any): New.
2146 (selftests::quote): New.
2147 (selftests::check_remove_params): New.
2148 (selftests::test_cp_remove_params): New.
2149 (_initialize_cp_support): Install
2150 selftests::test_cp_remove_params.
2151 * cp-support.h (cp_remove_params_if_any): Declare.
2152 * dwarf2read.c :Include "selftest.h".
2153 (dw2_expand_symtabs_matching_symbol): Use
2154 lookup_name_info::make_ignore_params.
2155 (selftests::dw2_expand_symtabs_matching::mock_mapped_index)
2156 (selftests::dw2_expand_symtabs_matching::string_or_null)
2157 (selftests::dw2_expand_symtabs_matching::check_match)
2158 (selftests::dw2_expand_symtabs_matching::test_symbols)
2159 (selftests::dw2_expand_symtabs_matching::run_test): New.
2160 (_initialize_dwarf2_read): Register
2161 selftests::dw2_expand_symtabs_matching::run_test.
2162 * psymtab.c (psym_expand_symtabs_matching): Use
2163 lookup_name_info::make_ignore_params.
2164 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info):
2165 If the lookup name wants to ignore parameters, strip them.
2166 (compare_symbol_name): Remove sym_text/sym_text_len parameters and
2167 code handling '('.
2168 (completion_list_add_name): Don't pass down sym_text/sym_text_len.
2169 (default_collect_symbol_completion_matches_break_on): Don't try to
2170 strip parameters.
2171 * symtab.h (lookup_name_info::lookup_name_info): Add
2172 'ignore_parameters' parameter.
2173 (lookup_name_info::ignore_parameters)
2174 (lookup_name_info::make_ignore_params): New methods.
2175 (lookup_name_info::m_ignore_parameters): New field.
2176 * unittests/lookup_name_info-selftests.c: New file.
2177
2178 2017-11-08 Pedro Alves <palves@redhat.com>
2179
2180 * dwarf2read.c (dw2_expand_marked_cus)
2181 (dw2_expand_symtabs_matching_symbol): Remove forward declarations.
2182 (dw2_expand_symtabs_matching): Move further below.
2183 (dw2_expand_marked_cus): Reindent.
2184
2185 2017-11-08 Pedro Alves <palves@redhat.com>
2186
2187 * dwarf2read.c (byte_swap, MAYBE_SWAP): Move higher up in file.
2188 (struct name_component): New.
2189 (mapped_index::name_components): New field.
2190 (mapped_index::symbol_name_at): New method.
2191 (dwarf2_read_index): Call mapped_index ctor.
2192 (dw2_map_matching_symbols): Add comment about name_components
2193 table.
2194 (dw2_expand_symtabs_matching): Factor part to...
2195 (dw2_expand_symtabs_matching_symbol): ... this new function.
2196 Build name components table, and lookup symbols in it before
2197 calling the name matcher.
2198 (dw2_expand_marked_cus): New, factored out from
2199 dw2_expand_symtabs_matching.
2200 (dwarf2_per_objfile_free): Call the mapped_index's dtor.
2201
2202 2017-11-08 Pedro Alves <palves@redhat.com>
2203
2204 * ada-lang.c (ada_encode): Rename to ..
2205 (ada_encode_1): ... this. Add throw_errors parameter and handle
2206 it.
2207 (ada_encode): Reimplement.
2208 (match_name): Delete, folded into full_name.
2209 (resolve_subexp): No longer pass the encoded name to
2210 ada_lookup_symbol_list.
2211 (should_use_wild_match): Delete.
2212 (name_match_type_from_name): New.
2213 (ada_lookup_simple_minsym): Use lookup_name_info and the
2214 language's symbol_name_matcher_ftype.
2215 (add_symbols_from_enclosing_procs, ada_add_local_symbols)
2216 (ada_add_block_renamings): Adjust to use lookup_name_info.
2217 (ada_lookup_name): New.
2218 (add_nonlocal_symbols, ada_add_all_symbols)
2219 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list)
2220 (ada_iterate_over_symbols): Adjust to use lookup_name_info.
2221 (ada_name_for_lookup): Delete.
2222 (ada_lookup_encoded_symbol): Construct a verbatim name.
2223 (wild_match): Reverse sense of return type. Use bool.
2224 (full_match): Reverse sense of return type. Inline bits of old
2225 match_name here.
2226 (ada_add_block_symbols): Adjust to use lookup_name_info.
2227 (symbol_completion_match): Delete, folded into...
2228 (ada_lookup_name_info::matches): ... .this new method.
2229 (symbol_completion_add): Delete.
2230 (ada_collect_symbol_completion_matches): Add name_match_type
2231 parameter. Adjust to use lookup_name_info and
2232 completion_list_add_name.
2233 (get_var_value, ada_add_global_exceptions): Adjust to use
2234 lookup_name_info.
2235 (ada_get_symbol_name_cmp): Delete.
2236 (do_wild_match, do_full_match): New functions.
2237 (ada_lookup_name_info::ada_lookup_name_info): New method.
2238 (ada_symbol_name_matches, ada_get_symbol_name_matcher): New
2239 functions.
2240 (ada_language_defn): Install ada_get_symbol_name_matcher.
2241 * ada-lex.l (processId): If name starts with '<', copy it
2242 verbatim.
2243 * block.c (block_iter_match_step, block_iter_match_first)
2244 (block_iter_match_next, block_lookup_symbol)
2245 (block_lookup_symbol_primary, block_find_symbol): Adjust to use
2246 lookup_name_info.
2247 * block.h (block_iter_match_first, block_iter_match_next)
2248 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use lookup_name_info.
2249 * c-lang.c (c_language_defn, cplus_language_defn)
2250 (asm_language_defn, minimal_language_defn): Adjust comments to
2251 refer to la_get_symbol_name_matcher.
2252 * completer.c (complete_files_symbols)
2253 (collect_explicit_location_matches, symbol_completer): Pass a
2254 symbol_name_match_type down.
2255 * completer.h (class completion_match, completion_match_result):
2256 New classes.
2257 (completion_tracker::reset_completion_match_result): New method.
2258 (completion_tracker::m_completion_match_result): New field.
2259 * cp-support.c (make_symbol_overload_list_block): Adjust to use
2260 lookup_name_info.
2261 (cp_fq_symbol_name_matches, cp_get_symbol_name_matcher): New
2262 functions.
2263 * cp-support.h (cp_get_symbol_name_matcher): New declaration.
2264 * d-lang.c: Adjust comments to refer to
2265 la_get_symbol_name_matcher.
2266 * dictionary.c (dict_vector) <iter_match_first, iter_match_next>:
2267 Adjust to use lookup_name_info.
2268 (dict_iter_match_first, dict_iter_match_next)
2269 (iter_match_first_hashed, iter_match_next_hashed)
2270 (iter_match_first_linear, iter_match_next_linear): Adjust to work
2271 with a lookup_name_info.
2272 * dictionary.h (dict_iter_match_first, dict_iter_match_next):
2273 Likewise.
2274 * dwarf2read.c (dw2_lookup_symbol): Adjust to use lookup_name_info.
2275 (dw2_map_matching_symbols): Adjust to use symbol_name_match_type.
2276 (gdb_index_symbol_name_matcher): New class.
2277 (dw2_expand_symtabs_matching) Adjust to use lookup_name_info and
2278 gdb_index_symbol_name_matcher. Accept a NULL symbol_matcher.
2279 * f-lang.c (f_collect_symbol_completion_matches): Adjust to work
2280 with a symbol_name_match_type.
2281 (f_language_defn): Adjust comments to refer to
2282 la_get_symbol_name_matcher.
2283 * go-lang.c (go_language_defn): Adjust comments to refer to
2284 la_get_symbol_name_matcher.
2285 * language.c (default_symbol_name_matcher)
2286 (language_get_symbol_name_matcher): New functions.
2287 (unknown_language_defn, auto_language_defn): Adjust comments to
2288 refer to la_get_symbol_name_matcher.
2289 * language.h (symbol_name_cmp_ftype): Delete.
2290 (language_defn) <la_collect_symbol_completion_matches>: Add match
2291 type parameter.
2292 <la_get_symbol_name_cmp>: Delete field.
2293 <la_get_symbol_name_matcher>: New field.
2294 <la_iterate_over_symbols>: Adjust to use lookup_name_info.
2295 (default_symbol_name_matcher, language_get_symbol_name_matcher):
2296 Declare.
2297 * linespec.c (iterate_over_all_matching_symtabs)
2298 (iterate_over_file_blocks): Adjust to use lookup_name_info.
2299 (find_methods): Add language parameter, and use lookup_name_info
2300 and the language's symbol_name_matcher_ftype.
2301 (linespec_complete_function): Adjust.
2302 (lookup_prefix_sym): Use lookup_name_info.
2303 (add_all_symbol_names_from_pspace): Adjust.
2304 (find_superclass_methods): Add language parameter and pass it
2305 down.
2306 (find_method): Pass symbol language down.
2307 (find_linespec_symbols): Don't demangle or Ada encode here.
2308 (search_minsyms_for_name): Add lookup_name_info parameter.
2309 (add_matching_symbols_to_info): Add name_match_type parameter.
2310 Use lookup_name_info.
2311 * m2-lang.c (m2_language_defn): Adjust comments to refer to
2312 la_get_symbol_name_matcher.
2313 * minsyms.c: Include <algorithm>.
2314 (add_minsym_to_demangled_hash_table): Remove table parameter and
2315 add objfile parameter. Use search_name_hash, and add language to
2316 demangled languages vector.
2317 (struct found_minimal_symbols): New struct.
2318 (lookup_minimal_symbol_mangled, lookup_minimal_symbol_demangled):
2319 New functions.
2320 (lookup_minimal_symbol): Adjust to use them. Don't canonicalize
2321 input names here. Use lookup_name_info instead. Lookup up
2322 demangled names once for each language in the demangled names
2323 vector.
2324 (iterate_over_minimal_symbols): Use lookup_name_info. Lookup up
2325 demangled names once for each language in the demangled names
2326 vector.
2327 (build_minimal_symbol_hash_tables): Adjust.
2328 * minsyms.h (iterate_over_minimal_symbols): Adjust to pass down a
2329 lookup_name_info.
2330 * objc-lang.c (objc_language_defn): Adjust comment to refer to
2331 la_get_symbol_name_matcher.
2332 * objfiles.h: Include <vector>.
2333 (objfile_per_bfd_storage) <demangled_hash_languages>: New field.
2334 * opencl-lang.c (opencl_language_defn): Adjust comment to refer to
2335 la_get_symbol_name_matcher.
2336 * p-lang.c (pascal_language_defn): Adjust comment to refer to
2337 la_get_symbol_name_matcher.
2338 * psymtab.c (psym_lookup_symbol): Use lookup_name_info.
2339 (match_partial_symbol): Use symbol_name_match_type,
2340 lookup_name_info and psymbol_name_matches.
2341 (lookup_partial_symbol): Use lookup_name_info.
2342 (map_block): Use symbol_name_match_type and lookup_name_info.
2343 (psym_map_matching_symbols): Use symbol_name_match_type.
2344 (psymbol_name_matches): New.
2345 (recursively_search_psymtabs): Use lookup_name_info and
2346 psymbol_name_matches. Rename 'kind' parameter to 'domain'.
2347 (psym_expand_symtabs_matching): Use lookup_name_info. Rename
2348 'kind' parameter to 'domain'.
2349 * rust-lang.c (rust_language_defn): Adjust comment to refer to
2350 la_get_symbol_name_matcher.
2351 * symfile-debug.c (debug_qf_map_matching_symbols)
2352 (debug_qf_map_matching_symbols): Use symbol_name_match_type.
2353 (debug_qf_expand_symtabs_matching): Use lookup_name_info.
2354 * symfile.c (expand_symtabs_matching): Use lookup_name_info.
2355 * symfile.h (quick_symbol_functions) <map_matching_symbols>:
2356 Adjust to use symbol_name_match_type.
2357 <expand_symtabs_matching>: Adjust to use lookup_name_info.
2358 (expand_symtabs_matching): Adjust to use lookup_name_info.
2359 * symmisc.c (maintenance_expand_symtabs): Use
2360 lookup_name_info::match_any ().
2361 * symtab.c (symbol_matches_search_name): New.
2362 (eq_symbol_entry): Adjust to use lookup_name_info and the
2363 language's matcher.
2364 (demangle_for_lookup_info::demangle_for_lookup_info): New.
2365 (lookup_name_info::match_any): New.
2366 (iterate_over_symbols, search_symbols): Use lookup_name_info.
2367 (compare_symbol_name): Add language, lookup_name_info and
2368 completion_match_result parameters, and use them.
2369 (completion_list_add_name): Make extern. Add language and
2370 lookup_name_info parameters. Use them.
2371 (completion_list_add_symbol, completion_list_add_msymbol)
2372 (completion_list_objc_symbol): Add lookup_name_info parameters and
2373 adjust. Pass down language.
2374 (completion_list_add_fields): Add lookup_name_info parameters and
2375 adjust. Pass down language.
2376 (add_symtab_completions): Add lookup_name_info parameters and
2377 adjust.
2378 (default_collect_symbol_completion_matches_break_on): Add
2379 name_match_type parameter, and use it. Use lookup_name_info.
2380 (default_collect_symbol_completion_matches)
2381 (collect_symbol_completion_matches): Add name_match_type
2382 parameter, and pass it down.
2383 (collect_symbol_completion_matches_type): Adjust.
2384 (collect_file_symbol_completion_matches): Add name_match_type
2385 parameter, and use lookup_name_info.
2386 * symtab.h: Include <string> and "common/gdb_optional.h".
2387 (enum class symbol_name_match_type): New.
2388 (class ada_lookup_name_info): New.
2389 (struct demangle_for_lookup_info): New.
2390 (class lookup_name_info): New.
2391 (symbol_name_matcher_ftype): New.
2392 (SYMBOL_MATCHES_SEARCH_NAME): Use symbol_matches_search_name.
2393 (symbol_matches_search_name): Declare.
2394 (MSYMBOL_MATCHES_SEARCH_NAME): Delete.
2395 (default_collect_symbol_completion_matches)
2396 (collect_symbol_completion_matches)
2397 (collect_file_symbol_completion_matches): Add name_match_type
2398 parameter.
2399 (iterate_over_symbols): Use lookup_name_info.
2400 (completion_list_add_name): Declare.
2401 * utils.c (enum class strncmp_iw_mode): Moved to utils.h.
2402 (strncmp_iw_with_mode): Now extern.
2403 * utils.h (enum class strncmp_iw_mode): Moved from utils.c.
2404 (strncmp_iw_with_mode): Declare.
2405
2406 2017-11-08 Keith Seitz <keiths@redhat.com>
2407 Pedro Alves <palves@redhat.com>
2408
2409 * ada-lang.c (ada_language_defn): Install
2410 default_search_name_hash.
2411 * buildsym.c (struct buildsym_compunit): <language>: New field.
2412 (finish_block_internal): Pass language when creating dictionaries.
2413 (start_buildsym_compunit, start_symtab): New language parameters.
2414 Use them.
2415 (restart_symtab): Pass down compilation unit's language.
2416 * buildsym.h (enum language): Forward declare.
2417 (start_symtab): New 'language' parameter.
2418 * c-lang.c (c_language_defn, cplus_language_defn)
2419 (asm_language_defn, minimal_language_defn): Install
2420 default_search_name_hash.
2421 * coffread.c (coff_start_symtab): Adjust.
2422 * d-lang.c (d_language_defn): Install default_search_name_hash.
2423 * dbxread.c (struct symloc): Add 'pst_language' field.
2424 (PST_LANGUAGE): Define.
2425 (start_psymtab, read_ofile_symtab): Use it.
2426 (process_one_symbol): New 'language' parameter. Pass it down.
2427 * dictionary.c (struct dictionary) <language>: New field.
2428 (DICT_LANGUAGE): Define.
2429 (dict_create_hashed, dict_create_hashed_expandable)
2430 (dict_create_linear, dict_create_linear_expandable): New parameter
2431 'language'. Set the dictionary's language.
2432 (iter_match_first_hashed): Adjust to rename.
2433 (insert_symbol_hashed): Assert we don't see mismatching
2434 languages. Adjust to rename.
2435 (dict_hash): Rename to ...
2436 (default_search_name_hash): ... this and make extern.
2437 * dictionary.h (struct language_defn): Forward declare.
2438 (dict_create_hashed): New parameter 'language'.
2439 * dwarf2read.c (dwarf2_start_symtab): Pass down language.
2440 * f-lang.c (f_language_defn): Install default_search_name_hash.
2441 * go-lang.c (go_language_defn): Install default_search_name_hash.
2442 * jit.c (finalize_symtab): Pass compunit's language to dictionary
2443 creation.
2444 * language.c (unknown_language_defn, auto_language_defn):
2445 * language.h (language_defn::la_search_name_hash): New field.
2446 (default_search_name_hash): Declare.
2447 * m2-lang.c (m2_language_defn): Install default_search_name_hash.
2448 * mdebugread.c (new_block): New parameter 'language'.
2449 * mdebugread.c (parse_symbol): Pass symbol language to block
2450 allocation.
2451 (psymtab_to_symtab_1): Pass down language.
2452 (new_symtab): Pass compunit's language to block allocation.
2453 * objc-lang.c (objc_language_defn): Install
2454 default_search_name_hash.
2455 * opencl-lang.c (opencl_language_defn):
2456 * p-lang.c (pascal_language_defn): Install
2457 default_search_name_hash.
2458 * rust-lang.c (rust_language_defn): Install
2459 default_search_name_hash.
2460 * stabsread.h (enum language): Forward declare.
2461 (process_one_symbol): Add 'language' parameter.
2462 * symtab.c (search_name_hash): New function.
2463 * symtab.h (search_name_hash): Declare.
2464 * xcoffread.c (read_xcoff_symtab): Pass language to start_symtab.
2465
2466 2017-11-08 Pedro Alves <palves@redhat.com>
2467
2468 * cp-name-parser.y (main): Don't initialize extra_chars.
2469
2470 2017-11-07 Tom Tromey <tom@tromey.com>
2471
2472 * event-top.h (command_handler): Constify.
2473 * record-full.c (cmd_record_full_start): Update.
2474 * thread.c (thread_apply_all_command): Update.
2475 * printcmd.c (eval_command): Update.
2476 * mi/mi-main.c (mi_execute_cli_command): Update.
2477 (mi_execute_async_cli_command): Update.
2478 * tui/tui-stack.c (tui_update_command): Update.
2479 * cli/cli-interp.c (safe_execute_command): Constify.
2480 * record.c (record_start): Update.
2481 (record_start, record_stop, cmd_record_start): Update.
2482 * record-btrace.c (cmd_record_btrace_bts_start): Update.
2483 (cmd_record_btrace_pt_start): Update.
2484 (cmd_record_btrace_start): Update.
2485 (cmd_record_btrace_start): Update.
2486 * reverse.c (exec_reverse_once): Update.
2487 * python/python.c (execute_gdb_command): Don't copy the command.
2488 * event-top.c (command_line_handler): Update.
2489 (command_handler): Constify.
2490 * defs.h (deprecated_call_command_hook): Constify.
2491 * cli/cli-script.h (execute_user_command): Constify.
2492 * cli/cli-script.c (execute_user_command): Constify.
2493 (execute_cmd_pre_hook, execute_cmd_post_hook): Constify.
2494 (enum command_control_type): Update.
2495 * main.c (catch_command_errors): Remove non-const overload.
2496 (catch_command_errors_ftype): Remove.
2497 * python/py-cmd.c (cmdpy_function): Constify.
2498 * guile/scm-cmd.c (cmdscm_function): Constify.
2499 * cli/cli-dump.c (call_dump_func): Constify.
2500 * cli/cli-decode.c (do_const_cfunc): Constify.
2501 (do_sfunc): Constify.
2502 (cmd_func): Constify.
2503 * gdbcmd.h (execute_command, execute_command_to_string): Constify.
2504 * top.h (execute_command): Constify.
2505 * top.c (execute_command): Constify.
2506 (execute_command_to_string): Constify.
2507 (deprecated_call_command_hook): Constify.
2508 * command.h (cmd_func): Constify.
2509 * cli/cli-decode.h (struct cmd_list_element) <func>: Constify.
2510
2511 2017-11-07 Tom Tromey <tom@tromey.com>
2512
2513 * ada-lang.c (catch_ada_exception_command): Constify.
2514 (catch_assert_command): Constify.
2515 * break-catch-throw.c (catch_catch_command, catch_throw_command)
2516 (catch_rethrow_command): Constify.
2517 (catch_exception_command_1): Constify.
2518 * breakpoint.h (add_catch_command): Constify.
2519 * break-catch-syscall.c (catch_syscall_command_1): Constify.
2520 (catch_syscall_split_args): Constify.
2521 * break-catch-sig.c (catch_signal_command): Constify.
2522 (catch_signal_split_args): Constify.
2523 * cli/cli-decode.h (struct cmd_list_element) <function>: Use
2524 cmd_const_sfunc_ftype.
2525 * cli/cli-decode.c (add_setshow_cmd_full): Constify.
2526 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2527 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2528 (add_setshow_string_cmd, struct cmd_list_element)
2529 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2530 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2531 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd):
2532 Constify.
2533 (set_cmd_sfunc): Constify.
2534 (empty_sfunc): Constify.
2535 * command.h (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd)
2536 (add_setshow_boolean_cmd, add_setshow_filename_cmd)
2537 (add_setshow_string_cmd, add_setshow_string_noescape_cmd)
2538 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2539 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2540 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2541 Constify.
2542 (set_cmd_sfunc): Constify.
2543 (cmd_sfunc_ftype): Remove.
2544 * compile/compile.c (set_compile_args): Constify.
2545 * infrun.c (set_disable_randomization): Constify.
2546 * infcmd.c (set_args_command, set_cwd_command): Constify.
2547 * breakpoint.c (set_condition_evaluation_mode): Constify.
2548 (add_catch_command): Constify.
2549 (catch_fork_command_1, catch_exec_command_1)
2550 (catch_load_command_1, catch_unload_command_1): Constify.
2551 (catch_load_or_unload): Constify.
2552 * guile/scm-param.c (pascm_set_func): Constify.
2553 (add_setshow_generic): Constify.
2554 * python/py-param.c (get_set_value): Constify.
2555 * top.h (set_verbose): Constify.
2556 * tui/tui-win.c (tui_set_var_cmd): Constify.
2557 * mi/mi-main.c (set_mi_async_command): Constify.
2558 * cli/cli-logging.c (set_logging_overwrite)
2559 (set_logging_redirect): Constify.
2560 * value.c (set_max_value_size): Constify.
2561 * valprint.c (set_input_radix, set_output_radix): Constify.
2562 * utils.c (set_width_command, set_height_command): Constify.
2563 * typeprint.c (set_print_type_methods, set_print_type_typedefs): Constify.
2564 * tracepoint.c (set_disconnected_tracing)
2565 (set_circular_trace_buffer, set_trace_buffer_size)
2566 (set_trace_user, set_trace_notes, set_trace_stop_notes): Constify.
2567 * top.c (set_history_size_command, set_verbose, set_editing)
2568 (set_gdb_datadir, set_history_filename): Constify.
2569 * target.c (set_targetdebug, maint_set_target_async_command)
2570 (maint_set_target_non_stop_command, set_target_permissions)
2571 (set_write_memory_permission): Constify.
2572 (open_target): Constify.
2573 * target-descriptions.c (set_tdesc_filename_cmd): Constify.
2574 * target-dcache.c (set_stack_cache, set_code_cache): Constify.
2575 * symtab.c (set_symbol_cache_size_handler): Constify.
2576 * symfile.c (set_ext_lang_command): Constify.
2577 * symfile-debug.c (set_debug_symfile): Constify.
2578 * source.c (set_directories_command): Constify.
2579 * solib.c (reload_shared_libraries, gdb_sysroot_changed): Constify.
2580 * serial.c (set_parity): Constify.
2581 * rs6000-tdep.c (powerpc_set_soft_float, powerpc_set_vector_abi): Constify.
2582 * remote.c (set_remote_exec_file, set_remotebreak)
2583 (set_remote_protocol_Z_packet_cmd, set_range_stepping): Constify.
2584 * record.c (set_record_insn_history_size)
2585 (set_record_call_history_size): Constify.
2586 * record-full.c (set_record_full_insn_max_num): Constify.
2587 * proc-api.c (set_procfs_trace_cmd, set_procfs_file_cmd): Constify.
2588 * osabi.c (set_osabi): Constify.
2589 * mips-tdep.c (set_mips64_transfers_32bit_regs)
2590 (reinit_frame_cache_sfunc, mips_abi_update): Constify.
2591 * maint.c (maintenance_set_profile_cmd): Constify.
2592 * linux-thread-db.c (set_libthread_db_search_path): Constify.
2593 * language.c (set_language_command, set_range_command)
2594 (set_case_command): Constify.
2595 * infrun.c (set_non_stop, set_observer_mode)
2596 (set_stop_on_solib_events, set_schedlock_func)
2597 (set_exec_direction_func): Constify.
2598 * infcmd.c (set_inferior_tty_command): Constify.
2599 * disasm.c (set_disassembler_options_sfunc): Constify.
2600 * demangle.c (set_demangling_command): Constify.
2601 * dcache.c (set_dcache_size, set_dcache_line_size): Constify.
2602 * cris-tdep.c (set_cris_version, set_cris_mode)
2603 (set_cris_dwarf2_cfi): Constify.
2604 * corefile.c (set_gnutarget_command): Constify.
2605 * charset.c (set_host_charset_sfunc, set_target_charset_sfunc)
2606 (set_target_wide_charset_sfunc): Constify.
2607 * breakpoint.c (update_dprintf_commands): Constify.
2608 * auto-load.c (set_auto_load_dir, set_auto_load_safe_path): Constify.
2609 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi)
2610 (set_disassembly_style_sfunc): Constify.
2611 * arch-utils.c (set_endian, set_architecture): Constify.
2612 * alpha-tdep.c (reinit_frame_cache_sfunc): Constify.
2613 * agent.c (set_can_use_agent): Constify.
2614
2615 2017-11-07 Tom Tromey <tom@tromey.com>
2616
2617 * go32-nat.c (go32_sysinfo, go32_sldt, go32_sgdt, go32_sidt)
2618 (go32_pde, go32_pte, go32_pte_for_address): Constify.
2619 * gnu-nat.c (_parse_bool_arg, show_thread_default_pause_cmd)
2620 (set_thread_default_pause_cmd, set_thread_default_run_cmd)
2621 (show_thread_default_run_cmd, set_thread_default_detach_sc_cmd)
2622 (parse_int_arg, show_thread_default_detach_sc_cmd)
2623 (set_signals_cmd, show_signals_cmd, set_sig_thread_cmd)
2624 (show_sig_thread_cmd, set_stopped_cmd, show_stopped_cmd)
2625 (set_exceptions_cmd, show_exceptions_cmd, set_task_pause_cmd)
2626 (show_task_pause_cmd, set_task_detach_sc_cmd)
2627 (show_task_detach_sc_cmd, set_task_exc_port_cmd)
2628 (set_noninvasive_cmd, set_thread_pause_cmd)
2629 (show_thread_pause_cmd, set_thread_run_cmd, show_thread_run_cmd)
2630 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd)
2631 (set_thread_exc_port_cmd, thread_takeover_sc_cmd): Constify.
2632 * windows-nat.c (display_selectors): Constify.
2633 * cli/cli-decode.h (struct cmd_list_element) <function>: Remove
2634 non-const "cfunc".
2635 * cli/cli-decode.c (set_cmd_cfunc): Remove non-const overload.
2636 (cmd_cfunc_eq): Likewise.
2637 (struct cmd_list_element): Likewise.
2638 (do_cfunc): Remove.
2639 (cli_user_command_p): Update.
2640 * command.h (add_cmd): Remove non-const overload.
2641 (cmd_cfunc_ftype): Remove typedef.
2642 (cmd_cfunc_eq): Remove non-const overload.
2643 * value.c (show_values): Constify.
2644 * thread.c (thread_apply_all_command): Constify.
2645 * symfile.c (load_command): Constify.
2646 * source.c (directory_command): Constify.
2647 * maint.c (maintenance_internal_error)
2648 (maintenance_demangler_warning, maintenance_space_display)
2649 (maintenance_print_architecture, maintenance_translate_address)
2650 (maintenance_info_selftests, maintenance_internal_warning):
2651 Constify.
2652 * breakpoint.c (disable_trace_command, enable_trace_command):
2653 Constify.
2654 * auto-load.c (info_auto_load_local_gdbinit, add_auto_load_dir):
2655 Constify.
2656 (add_auto_load_safe_path): Constify.
2657 * guile/scm-auto-load.c (info_auto_load_guile_scripts): Constify.
2658 * top.h (show_commands): Constify.
2659 * linux-thread-db.c (info_auto_load_libthread_db): Constify.
2660 * sparc64-tdep.c (adi_examine_command): Constify.
2661 (adi_assign_command): Constify.
2662
2663 2017-11-07 Tom Tromey <tom@tromey.com>
2664
2665 * frame.h (info_locals_command, info_args_command): Constify.
2666 * auto-load.h (auto_load_info_scripts): Constify.
2667 * inferior.h (registers_info): Constify.
2668 * copying.c: Rebuild.
2669 * copying.awk: Constify generated commands.
2670 * auto-load.c (auto_load_info_scripts)
2671 (info_auto_load_gdb_scripts): Constify.
2672 * cli/cli-decode.c (struct cmd_list_element): Take a
2673 cmd_const_cfunc_ftype.
2674 * command.h (add_info): Take a cmd_const_cfunc_ftype.
2675 * tui/tui-win.c (tui_all_windows_info): Constify.
2676 * python/py-auto-load.c (info_auto_load_python_scripts):
2677 Constify.
2678 * cli/cli-cmds.c (show_command): Remove non-const overload.
2679 * tracepoint.c (info_tvariables_command, info_scope_command):
2680 Constify.
2681 (info_static_tracepoint_markers_command): Constify.
2682 * thread.c (info_threads_command): Constify.
2683 (print_thread_info_1): Constify.
2684 * target.c (info_target_command): Constify.
2685 * symtab.c (info_sources_command, info_functions_command)
2686 (info_types_command): Constify.
2687 (info_variables_command): Remove non-const overload.
2688 * symfile.c (info_ext_lang_command): Constify.
2689 * stack.c (info_frame_command, info_locals_command)
2690 (info_args_command): Constify.
2691 (backtrace_command): Remove non-const overload.
2692 * source.c (info_source_command, info_line_command): Constify.
2693 * solib.c (info_sharedlibrary_command): Constify.
2694 * skip.c (info_skip_command): Constify.
2695 * ser-go32.c (info_serial_command): Constify.
2696 * reverse.c (info_bookmarks_command): Constify.
2697 * printcmd.c (info_symbol_command, info_address_command)
2698 (info_display_command): Constify.
2699 * osdata.c (info_osdata_command): Constify.
2700 * objc-lang.c (info_selectors_command, info_classes_command):
2701 Constify.
2702 * nto-procfs.c (procfs_pidlist, procfs_meminfo): Constify.
2703 * memattr.c (info_mem_command): Constify.
2704 * macrocmd.c (info_macro_command, info_macros_command): Constify.
2705 * linux-fork.c (info_checkpoints_command): Constify.
2706 * infrun.c (info_signals_command): Constify.
2707 * inflow.c (info_terminal_command): Constify.
2708 * inferior.c (info_inferiors_command): Constify.
2709 (print_inferior): Constify.
2710 * infcmd.c (info_program_command, info_all_registers_command)
2711 (info_registers_command, info_vector_command)
2712 (info_float_command): Constify.
2713 (registers_info): Constify.
2714 * gnu-nat.c (info_send_rights_cmd, info_recv_rights_cmd)
2715 (info_port_sets_cmd, info_dead_names_cmd, info_port_rights_cmd):
2716 Constify.
2717 * f-valprint.c (info_common_command): Constify.
2718 * dcache.c (info_dcache_command): Constify.
2719 (dcache_info_1): Constify.
2720 * darwin-nat-info.c (info_mach_tasks_command)
2721 (info_mach_task_command, info_mach_ports_command)
2722 (info_mach_port_command, info_mach_threads_command)
2723 (info_mach_thread_command, info_mach_regions_command)
2724 (info_mach_regions_recurse_command, info_mach_region_command)
2725 (info_mach_exceptions_command): Constify.
2726 (get_task_from_args): Constify.
2727 * cp-support.c (info_vtbl_command): Constify.
2728 * breakpoint.c (info_watchpoints_command)
2729 (info_tracepoints_command): Constify.
2730 (info_breakpoints_command): Remove non-const overload.
2731 * avr-tdep.c (avr_io_reg_read_command): Constify.
2732 * auxv.c (info_auxv_command): Constify.
2733 * ada-tasks.c (info_tasks_command): Constify.
2734 (info_task): Constify.
2735 * ada-lang.c (info_exceptions_command): Constify.
2736
2737 2017-11-07 Tom Tromey <tom@tromey.com>
2738
2739 * solib.h (no_shared_libraries): Constify.
2740 * frame.h (return_command): Constify.
2741 * cli/cli-cmds.h (quit_command): Constify.
2742 * top.h (quit_command, execute_command): Constify.
2743 * target.h (flash_erase_command): Constify.
2744 * inferior.h (set_inferior_args, attach_command): Constify.
2745 * tracepoint.h (start_tracing, stop_tracing): Constify.
2746 * breakpoint.h (break_command, tbreak_command)
2747 (hbreak_command_wrapper, thbreak_command_wrapper)
2748 (rbreak_command_wrapper, watch_command_wrapper)
2749 (awatch_command_wrapper, rwatch_command_wrapper)
2750 (get_tracepoint_by_number): Constify.
2751 * symtab.c (info_variables_command, rbreak_command)
2752 (symtab_symbol_info): Constify.
2753 (info_variables_command): Add non-const overload.
2754 * top.c (dont_repeat_command): Constify.
2755 * breakpoint.c (ignore_command, commands_command)
2756 (condition_command, tbreak_command, hbreak_command)
2757 (thbreak_command, clear_command, break_command)
2758 (info_breakpoints_command, watch_command, rwatch_command)
2759 (awatch_command, trace_command, ftrace_command, strace_command)
2760 (trace_pass_command, break_range_command, dprintf_command)
2761 (agent_printf_command, get_tracepoint_by_number)
2762 (watch_maybe_just_location, trace_pass_command): Constify.
2763 (info_breakpoints_command): Add non-const overload.
2764 * tracefile.c (tsave_command): Constify.
2765 * infcmd.c (attach_command, disconnect_command, signal_command)
2766 (queue_signal_command, stepi_command, nexti_command)
2767 (finish_command, next_command, step_command, until_command)
2768 (advance_command, jump_command, continue_command, run_command)
2769 (start_command, starti_command, interrupt_command)
2770 (run_command_1, set_inferior_args, step_1): Constify.
2771 * inferior.c (add_inferior_command, remove_inferior_command)
2772 (clone_inferior_command): Constify.
2773 * linux-fork.c (checkpoint_command, restart_command): Constify.
2774 * windows-nat.c (signal_event_command): Constify.
2775 * guile/guile.c (guile_repl_command, guile_command): Constify.
2776 * printcmd.c (x_command, display_command, printf_command)
2777 (output_command, set_command, call_command, print_command)
2778 (eval_command): Constify.
2779 (non_const_set_command): Remove.
2780 (_initialize_printcmd): Update.
2781 * source.c (forward_search_command, reverse_search_command):
2782 Constify.
2783 * jit.c (jit_reader_load_command, jit_reader_unload_command):
2784 Constify.
2785 * infrun.c (handle_command): Constify.
2786 * memattr.c (mem_command): Constify.
2787 * stack.c (return_command, up_command, up_silently_command)
2788 (down_command, down_silently_command, frame_command)
2789 (backtrace_command, func_command, backtrace_command_1): Constify.
2790 (backtrace_command): Add non-const overload.
2791 * remote-sim.c (simulator_command): Constify.
2792 * exec.c (set_section_command): Constify.
2793 * tracepoint.c (tdump_command, trace_variable_command)
2794 (tstatus_command, tstop_command, tstart_command)
2795 (end_actions_pseudocommand, while_stepping_pseudocommand)
2796 (collect_pseudocommand, teval_pseudocommand, actions_command)
2797 (start_tracing, stop_tracing): Constify.
2798 * value.c (init_if_undefined_command): Constify.
2799 * tui/tui-stack.c (tui_update_command): Constify.
2800 * tui/tui-win.c (tui_refresh_all_command)
2801 (tui_set_tab_width_command, tui_set_win_height_command)
2802 (tui_set_focus_command, tui_scroll_forward_command)
2803 (tui_scroll_backward_command, tui_scroll_left_command)
2804 (tui_scroll_right_command, parse_scrolling_args, tui_set_focus)
2805 (tui_set_win_height): Constify.
2806 * tui/tui-layout.c (tui_layout_command): Constify.
2807 * procfs.c (proc_trace_syscalls, proc_trace_sysentry_cmd)
2808 (proc_trace_sysexit_cmd, proc_untrace_sysentry_cmd)
2809 (proc_untrace_sysexit_cmd): Constify.
2810 * remote.c (threadlist_test_cmd, threadinfo_test_cmd)
2811 (threadset_test_cmd, threadlist_update_test_cmd)
2812 (threadalive_test): Constify.
2813 * objc-lang.c (print_object_command): Constify.
2814 * command.h (add_com): Constify.
2815 * cli/cli-dump.c (restore_command): Constify.
2816 * cli/cli-cmds.c (pwd_command, echo_command, quit_command)
2817 (help_command, complete_command, shell_command, edit_command)
2818 (list_command, disassemble_command, make_command)
2819 (apropos_command, alias_command): Constify.
2820 * cli/cli-script.c (document_command, define_command)
2821 (while_command, if_command, validate_comname): Constify.
2822 * cli/cli-decode.c (struct cmd_list_element): Change type of
2823 "fun".
2824 * target.c (do_monitor_command, flash_erase_command): Constify.
2825 * regcache.c (reg_flush_command): Constify.
2826 * reverse.c (reverse_step, reverse_next, reverse_stepi)
2827 (reverse_nexti, reverse_continue, reverse_finish)
2828 (save_bookmark_command, goto_bookmark_command)
2829 (exec_reverse_once): Constify.
2830 * python/python.c (python_interactive_command, python_command):
2831 Constify.
2832 * typeprint.c (ptype_command, whatis_command, whatis_exp):
2833 Constify.
2834 * solib.c (sharedlibrary_command, no_shared_libraries): Constify.
2835 * gcore.c (gcore_command): Constify.
2836
2837 2017-11-07 Tom Tromey <tom@tromey.com>
2838
2839 * printcmd.c (x_command): Call set_repeat_arguments.
2840 * cli/cli-cmds.c (list_command): Call set_repeat_arguments.
2841 * top.c (repeat_arguments): New global.
2842 (set_repeat_arguments): New function.
2843 (execute_command): Handle repeat_arguments.
2844 (show_commands): Calls set_repeat_arguments.
2845 * command.h (set_repeat_arguments): Declare.
2846
2847 2017-11-07 Tom Tromey <tom@tromey.com>
2848
2849 * stack.c (backtrace_command): Use std::string.
2850 (backtrace_command_1): Make "count_exp" const.
2851
2852 2017-11-07 Tom Tromey <tom@tromey.com>
2853
2854 * source.c (directory_switch, mod_path, add_path): Constify.
2855 * defs.h (add_path, mod_path, directory_switch): Constify.
2856 * mi/mi-cmd-env.c (env_mod_path): Constify.
2857
2858 2017-11-07 Tom Tromey <tom@tromey.com>
2859
2860 * infcmd.c (strip_bg_char): Return gdb::unique_xmalloc_ptr.
2861 (run_command_1, continue_command, step_1, jump_command)
2862 (signal_command, until_command, advance_command, finish_command)
2863 (attach_command): Update.
2864
2865 2017-11-07 Tom Tromey <tom@tromey.com>
2866
2867 * command.h (set_cmd_cfunc): Don't declare.
2868 * cli/cli-decode.c (set_cmd_cfunc): Now static.
2869
2870 2017-11-07 Tom Tromey <tom@tromey.com>
2871
2872 * stack.c (select_frame_command): Constify.
2873 * cli/cli-decode.c (add_com_suppress_notification): Constify.
2874 * command.h (add_com_suppress_notification): Constify.
2875
2876 2017-11-07 Tom Tromey <tom@tromey.com>
2877
2878 * breakpoint.c (stop_command): Constify.
2879 * cli/cli-decode.c (struct cmd_list_element): Constify.
2880 * command.h (add_abbrev_prefix_cmd): Constify.
2881
2882 2017-11-07 Pedro Alves <palves@redhat.com>
2883
2884 * breakpoint.c (extract_bp_kind): New enum.
2885 (extract_bp_num, extract_bp_or_bp_range): New functions, partially
2886 factored out from ...
2887 (extract_bp_number_and_location): ... here.
2888 * cli/cli-utils.c (get_number_trailer): Handle '-$variable'.
2889
2890 2017-11-07 Pedro Alves <palves@redhat.com>
2891
2892 * breakpoint.c (extract_bp_number_and_location): Change return
2893 type to void. Throw error instead of warning.
2894 (enable_disable_command): Adjust.
2895
2896 2017-11-07 Xavier Roirand <roirand@adacore.com>
2897 Pedro Alves <palves@redhat.com>
2898
2899 * breakpoint.c (map_breakpoint_number_range): New, factored out
2900 from ...
2901 (map_breakpoint_numbers): ... here.
2902 (find_location_by_number): Change parameters from string to
2903 breakpoint number and location.
2904 (extract_bp_number_and_location): New function.
2905 (enable_disable_bp_num_loc)
2906 (enable_disable_breakpoint_location_range)
2907 (enable_disable_command): New functions, factored out ...
2908 (enable_command, disable_command): ... these functions, and
2909 adjusted to support ranges.
2910 * NEWS: Document enable/disable breakpoint location range feature.
2911
2912 2017-11-06 Luis Machado <luis.machado@linaro.org>
2913
2914 * MAINTAINERS (Write After Approval): Update my e-mail address.
2915
2916 2017-11-06 Pedro Alves <palves@redhat.com>
2917
2918 * gnu-nat.c (gnu_terminal_init): Delete.
2919 (gnu_target): Don't install gnu_terminal_init.
2920 * inflow.c (child_terminal_init_with_pgrp): Delete, merged with ...
2921 (child_terminal_init): ... this function.
2922
2923 2017-11-06 Pedro Alves <palves@redhat.com>
2924
2925 * common/common.m4 (GDB_AC_COMMON): No longer check termio.h nor
2926 sgtty.h.
2927 * config.in, configure: Regenerate.
2928
2929 2017-11-06 Pedro Alves <palves@redhat.com>
2930
2931 * event-top.c: Check SIGTSTP instead of STOP_SIGNAL thoughout.
2932 (async_init_signals): Adjust.
2933 (handle_stop_sig): Rename to ...
2934 (handle_sigtstp): ... this.
2935 (async_stop_sig): Rename to ...
2936 (async_sigtstp_handler): ... this, and delete STOP_SIGNAL !=
2937 SIGTSTP path.
2938 * event-top.h: Move signal.h include to the top. Check SIGTSTP
2939 instead of STOP_SIGNAL thoughout.
2940 (handle_stop_sig): Rename to ...
2941 (handle_sigtstp): ... this.
2942 * top.c (command_line_input): Replace STOP_SIGNAL -> SIGTSTP.
2943
2944 2017-11-06 Pedro Alves <palves@redhat.com>
2945
2946 * inflow.c (child_terminal_inferior, child_terminal_ours_1): No
2947 longer set flags twice in row.
2948
2949 2017-11-06 Pedro Alves <palves@redhat.com>
2950
2951 * Makefile.in (SER_HARDWIRE): Update comment.
2952 (HFILES_NO_SRCDIR): Remove gdb_termios.h.
2953 * common/gdb_termios.h: Delete file.
2954 * common/job-control.c: Include termios.h and unistd.h instead of
2955 gdb_termios.h.
2956 (gdb_setpgid): Remove HAVE_TERMIOS || TIOCGPGRP preprocessor
2957 check.
2958 (have_job_control): Check HAVE_TERMIOS_H instead of HAVE_TERMIOS.
2959 Remove sgtty code.
2960 * configure.ac: No longer check for termio.h and sgtty.h.
2961 * configure: Regenerate.
2962 * inflow.c: Include termios.h instead of gdb_termios.h. Replace
2963 PROCESS_GROUP_TYPE checks with HAVE_TERMIOS_H checks throughout.
2964 Replace PROCESS_GROUP_TYPE references with pid_t references
2965 throughout.
2966 (gdb_getpgrp): Delete.
2967 (set_initial_gdb_ttystate): Use tcgetpgrp instead of gdb_getpgrp.
2968 (child_terminal_inferior): Remove comment. Remove sgtty code.
2969 (child_terminal_ours_1): Use tcgetpgrp directly instead of
2970 gdb_getpgrp. Use serial_set_tty_state instead aof
2971 serial_noflush_set_tty_state. Remove sgtty code.
2972 * inflow.h: Include unistd.h instead of gdb_termios.h. Replace
2973 PROCESS_GROUP_TYPE check with HAVE_TERMIOS_H check.
2974 (inferior_process_group): Now returns pid_t.
2975 * ser-base.c (ser_base_noflush_set_tty_state): Delete.
2976 * ser-base.h (ser_base_noflush_set_tty_state): Delete.
2977 * ser-event.c (serial_event_ops): Update.
2978 * ser-go32.c (dos_noflush_set_tty_state): Delete.
2979 (dos_ops): Update.
2980 * ser-mingw.c (hardwire_ops, tty_ops, pipe_ops, tcp_ops): Update.
2981 * ser-pipe.c (pipe_ops): Update.
2982 * ser-tcp.c (tcp_ops): Update.
2983 * ser-unix.c: Include termios.h instead of gdb_termios.h. Remove
2984 HAVE_TERMIOS checks.
2985 [HAVE_TERMIO] (struct hardwire_ttystate): Delete.
2986 [HAVE_SGTTY] (struct hardwire_ttystate): Delete.
2987 (get_tty_state, set_tty_state): Drop termio and sgtty code, and
2988 assume termios.
2989 (hardwire_noflush_set_tty_state): Delete.
2990 (hardwire_print_tty_state, hardwire_drain_output)
2991 (hardwire_flush_output, hardwire_flush_input)
2992 (hardwire_send_break, hardwire_raw, hardwire_setbaudrate)
2993 (hardwire_setstopbits, hardwire_setparity): Drop termio and sgtty
2994 code, and assume termios.
2995 (hardwire_ops): Update.
2996 (_initialize_ser_hardwire): Remove HAVE_TERMIOS check.
2997 * serial.c (serial_noflush_set_tty_state): Delete.
2998 * serial.h (serial_noflush_set_tty_state): Delete.
2999 (serial_ops::noflush_set_tty_state): Delete.
3000
3001 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3002
3003 * Makefile.in (SFILES): Remove doublest.c and dfp.c.
3004 (HFILES_NO_SRCDIR): Remove doublest.h and dfp.h.
3005 (COMMON_OBS): Remove doublest.o and dfp.o.
3006 Do not build target-float.c (instead of doublest.c)
3007 with -Wformat-nonliteral.
3008
3009 * doublest.c: Remove file.
3010 * doublest.h: Remove file.
3011 * dfp.c: Remove file.
3012 * dfp.h: Remove file.
3013
3014 * target-float.c: Do not include "doublest.h" and "dfp.h".
3015 (DOUBLEST): Move here from doublest.h.
3016 (enum float_kind): Likewise.
3017 (FLOATFORMAT_CHAR_BIT): Likewise.
3018 (FLOATFORMAT_LARGEST_BYTES): Likewise.
3019 (floatformat_totalsize_bytes): Move here from doublest.c. Make static.
3020 (floatformat_precision): Likewise.
3021 (floatformat_normalize_byteorder, get_field, put_field): Likewise.
3022 (floatformat_is_negative, floatformat_classify, floatformat_mantissa):
3023 Likewise.
3024 (host_float_format, host_double_format, host_long_double_format):
3025 Likewise.
3026 (floatformat_to_string, floatformat_from_string): Likewise.
3027 (floatformat_to_doublest): Likewise. Also, inline the original
3028 convert_floatformat_to_doublest.
3029 (floatformat_from_doublest): Likewise. Also, inline the original
3030 convert_floatformat_from_doublest.
3031
3032 Include "dpd/decimal128.h", "dpd/decimal64.h", and "dpd/decimal32.h".
3033 (MAX_DECIMAL_STRING): Move here from dfp.c.
3034 (match_endianness): Likewise.
3035 (set_decnumber_context, decimal_check_errors): Likewise.
3036 (decimal_from_number, decimal_to_number): Likewise.
3037 (decimal_to_string, decimal_from_string): Likewise. Make static.
3038 (decimal_from_longest, decimal_from_ulongest): Likewise.
3039 (decimal_to_longest): Likewise.
3040 (decimal_binop, decimal_is_zero, decimal_compare): Likewise.
3041 (decimal_convert): Likewise.
3042
3043 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3044
3045 * doublest.c: Do not include "gdbtypes.h".
3046 (extract_typed_floating): Remove.
3047 (store_typed_floating): Remove.
3048 (convert_typed_floating): Remove.
3049 * doublest.h (struct type): Remove.
3050 (DOUBLEST_PRINT_FORMAT): Remove.
3051 (DOUBLEST_SCAN_FORMAT): Remove.
3052 (extract_typed_floating): Remove.
3053 (store_typed_floating): Remove.
3054 (convert_typed_floating): Remove.
3055
3056 * dfp.c (decimal_from_doublest): Remove.
3057 (decimal_to_doublest): Remove.
3058 * dfp.h: Do not include "doublest.h".
3059 (decimal_from_doublest): Remove.
3060 (decimal_to_doublest): Remove.
3061
3062 * value.c: Do not include "doublest.h" and "dfp.h".
3063 (value_as_double): Remove.
3064 (unpack_double): Remove.
3065 (value_from_double): Remove.
3066 (value_from_decfloat): Remove.
3067 * value.h: Do not include "doublest.h".
3068 (value_as_double): Remove.
3069 (unpack_double): Remove.
3070 (value_from_double): Remove.
3071 (value_from_decfloat): Remove.
3072
3073 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3074
3075 * i386-tdep.c: Include "target-float.h". Do not include "doublest.h".
3076 (i386_extract_return_value): Use target_float_convert.
3077 (i386_store_return_value): Likewise.
3078 * i387-tdep.c (i387_register_to_value): Use target_float_convert.
3079 (i387_value_to_register): Likewise.
3080 * ia64-tdep.c: Include "target-float.h". Do not include "doublest.h".
3081 (ia64_register_to_value): Use target_float_convert.
3082 (ia64_value_to_register): Likewise.
3083 (ia64_extract_return_value): Likewise.
3084 (ia64_store_return_value): Likewise.
3085 (ia64_push_dummy_call): Likewise.
3086 * m68k-tdep.c: Include "target-float.h".
3087 (m68k_register_to_value): Use target_float_convert.
3088 (m68k_value_to_register): Likewise.
3089 (m68k_svr4_extract_return_value): Likewise.
3090 (m68k_svr4_store_return_value): Likewise.
3091 * ppc-sysv-tdep.c: Include "target-float.h".
3092 (ppc_sysv_abi_push_dummy_call): Use target_float_convert.
3093 (do_ppc_sysv_return_value): Likewise.
3094 (ppc64_sysv_abi_push_freg): Likewise.
3095 (ppc64_sysv_abi_return_value_base): Likewise.
3096 * rs6000-aix-tdep.c: Include "target-float.h".
3097 (rs6000_push_dummy_call): Use target_float_convert.
3098 (rs6000_return_value): Likewise.
3099 * rs6000-lynx178-tdep.c: Include "target-float.h".
3100 (rs6000_lynx178_push_dummy_call): Use target_float_convert.
3101 (rs6000_lynx178_return_value): Likewise.
3102 * rs6000-tdep.c: Include "target-float.h". Do not include "doublest.h".
3103 (rs6000_register_to_value): Use target_float_convert.
3104 (rs6000_value_to_register): Likewise.
3105 * arm-tdep.c: Include "target-float.h". Do not include "doublest.h".
3106 (arm_extract_return_value): Use target_float_convert.
3107 (arm_store_return_value): Likewise.
3108 * sh-tdep.c: Include "target-float.h". Do not include "doublest.h".
3109 (sh_register_convert_to_virtual): Use target_float_convert.
3110 (sh_register_convert_to_raw): Likewise.
3111 * sh64-tdep.c: Include "target-float.h".
3112 (sh64_extract_return_value): Use target_float_convert.
3113 (sh64_register_convert_to_virtual): Likewise.
3114 (sh64_register_convert_to_raw): Likewise. Fix argument types.
3115
3116 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3117
3118 * target-float.c (floatformat_to_host_double): New function.
3119 (floatformat_from_host_double): Likewise.
3120 (target_float_to_host_double): Likewise.
3121 (target_float_from_host_double): Likewise.
3122 * target-float.h (target_float_to_host_double): Add prototype.
3123 (target_float_from_host_double): Likewise.
3124
3125 * guile/scm-value.c: Include "target-float.h".
3126 (gdbscm_value_to_real): Use target_float_to_host_double.
3127 Handle integer source values via value_as_long.
3128 * guile/scm-math.c: Include "target-float.h". Do not include
3129 "doublest.h", "dfp.h", and "expression.h".
3130 (vlscm_convert_typed_number): Use target_float_from_host_double.
3131 (vlscm_convert_number): Likewise.
3132
3133 * python/py-value.c (valpy_float): Use target_float_to_host_double.
3134 (convert_value_from_python): Use target_float_from_host_double.
3135
3136 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3137
3138 * ada-lang.c (cast_to_fixed): Reimplement in target arithmetic.
3139 (cast_from_fixed): Likewise.
3140 (ada_scaling_type): New function.
3141 (ada_delta): Return value instead of DOUBLEST. Perform target
3142 arithmetic instead of host arithmetic.
3143 (scaling_factor): Rename to ...
3144 (ada_scaling_factor) ... this. Make non-static. Return value instead
3145 of DOUBLEST. Perform target arithmetic instead of host arithmetic.
3146 (ada_fixed_to_float): Remove.
3147 (ada_float_to_fixed): Remove.
3148 * ada-lang.h (ada_fixed_to_float): Remove.
3149 (ada_float_to_fixed): Remove.
3150 (ada_delta): Return value instead of DOUBLEST.
3151 (ada_scaling_factor): Add prototype.
3152
3153 * ada-typeprint.c: Include "target-float.h".
3154 (print_fixed_point_type): Perform target arithmetic instead of
3155 host arithmetic.
3156 * ada-valprint.c: Include "target-float.h".
3157 (ada_val_print_num): Perform target arithmetic instead of
3158 host arithmetic for fixed-point types.
3159
3160 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3161
3162 * target-float.c: Include <math.h>.
3163 (floatformat_binop): New function.
3164 (floatformat_compare): Likewise.
3165 (target_float_binop): Likewise.
3166 (target_float_compare): Likewise.
3167 * target-float.h: Include "expression.h".
3168 (target_float_binop): Add prototype.
3169 (target_float_compare): Likewise.
3170
3171 * valarith.c: Do not include "doublest.h" and "dfp.h".
3172 Include "common/byte-vector.h".
3173 (value_args_as_decimal): Remove, replace by ...
3174 (value_args_as_target_float): ... this function. Handle both
3175 binary and decimal target floating-point formats.
3176 (scalar_binop): Handle both binary and decimal FP using
3177 value_args_as_target_float and target_float_binop.
3178 (value_equal): Handle both binary and decimal FP using
3179 value_args_as_target_float and target_float_compare.
3180 (value_less): Likewise.
3181 (value_pos): Handle all scalar types as simple copy.
3182 (value_neg): Handle all scalar types via BINOP_SUB from 0.
3183 * dfp.c (decimal_binop): Throw error instead of internal_error
3184 when called with an unsupported operation code.
3185
3186 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3187
3188 * target-float.c (target_float_to_string): New function.
3189 (target_float_from_string): New function.
3190 * target-float.h (target_float_to_string): Add prototype.
3191 (target_float_from_string): Add prototype.
3192
3193 * valprint.c: Include "target-float.h". Do not include
3194 "doublest.h" and "dfp.h".
3195 (print_floating): Use target_float_to_string.
3196 * printcmd.c: Include "target-float.h". Do not include "dfp.h".
3197 (printf_floating): Use target_float_to_string.
3198 * i387-tdep.c: Include "target-float.h". Do not include "doublest.h".
3199 (print_i387_value): Use target_float_to_string.
3200 * mips-tdep.c: Include "target-float.h".
3201 (mips_print_fp_register): Use target_float_to_string.
3202 * sh64-tdep.c: Include "target-float.h".
3203 (sh64_do_fp_register): Use target_float_to_string.
3204
3205 * parse.c: Include "target-float.h". Do not include
3206 "doublest.h" and "dfp.h".
3207 (parse_float): Use target_float_from_string.
3208 * stabsread.c: Include "target-float.h". Do not include "doublest.h".
3209 (define_symbol): Use target_float_from_string.
3210 * gdbarch-selftests.c: Include "target-float.h".
3211 (register_to_value_test): Use target_float_from_string.
3212
3213 2017-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3214
3215 * Makefile.c (SFILES): Add target-float.c.
3216 (HFILES_NO_SRCDIR): Add target-float.h.
3217 (COMMON_OBS): Add target-float.o.
3218 * target-float.h: New file.
3219 * target-float.c: New file.
3220
3221 * doublest.c (floatformat_classify): Fix detection of float_zero.
3222
3223 * gdbtypes.c (is_floating_type): New function.
3224 * gdbtypes.h (is_floating_type): Add prototype.
3225
3226 * value.c: Do not include "floatformat.h".
3227 (unpack_double): Use target_float_is_valid.
3228 (is_floating_value): New function.
3229 * value.h (is_floating_value): Add prototype-
3230
3231 * valarith.c: Include "target-float.h".
3232 (value_logical_not): Use target_float_is_zero.
3233
3234 * python/py-value.c: Include "target-float.h".
3235 (valpy_nonzero): Use target_float_is_zero.
3236
3237 2017-11-04 Tom Tromey <tom@tromey.com>
3238
3239 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
3240
3241 2017-11-04 Tom Tromey <tom@tromey.com>
3242
3243 * breakpoint.c (set_momentary_breakpoint): Return
3244 breakpoint_up.
3245 (until_break_command): Update.
3246 (new_until_break_fsm): Change argument types to
3247 breakpoint_up.
3248 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3249 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
3250 Remove.
3251 * infcmd.c (finish_forward): Update.
3252 * breakpoint.h (set_momentary_breakpoint)
3253 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
3254 (make_cleanup_delete_breakpoint): Remove.
3255 (struct breakpoint_deleter): New.
3256 (breakpoint_up): New typedef.
3257 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
3258 (insert_exception_resume_breakpoint): Update.
3259 (insert_exception_resume_from_probe): Update.
3260 (insert_longjmp_resume_breakpoint): Update.
3261 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
3262 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
3263 * infcall.c (call_function_by_hand_dummy): Update
3264
3265 2017-11-04 Tom Tromey <tom@tromey.com>
3266
3267 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
3268
3269 2017-11-04 Tom Tromey <tom@tromey.com>
3270
3271 * linux-tdep.c (linux_core_info_proc_mappings): Use
3272 gdb::def_vector.
3273 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
3274 "size" argument.
3275 (linux_corefile_thread): Update.
3276 (linux_make_corefile_notes): Remove unused variable.
3277
3278 2017-11-04 Tom Tromey <tom@tromey.com>
3279
3280 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
3281 gdb::byte_vector.
3282
3283 2017-11-04 Tom Tromey <tom@tromey.com>
3284
3285 * objfiles.c (do_free_objfile_cleanup): Remove.
3286 * compile/compile-object-load.c (compile_object_load): Update.
3287 * objfiles.h (make_cleanup_free_objfile): Remove.
3288
3289 2017-11-04 Tom Tromey <tom@tromey.com>
3290
3291 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
3292 (adi_read_versions): Change "tags" to "gdb_byte *".
3293 (adi_print_versions): Likewise.
3294
3295 2017-11-04 Tom Tromey <tom@tromey.com>
3296
3297 * breakpoint.c
3298 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
3299 from start_rbreak_breakpoints.
3300 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
3301 * breakpoint.h (class scoped_rbreak_breakpoints): New.
3302 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
3303 * symtab.c (do_end_rbreak_breakpoints): Remove.
3304 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
3305
3306 2017-11-04 Tom Tromey <tom@tromey.com>
3307
3308 * cp-namespace.c (reset_directive_searched): Remove.
3309 (cp_lookup_symbol_via_imports): Use scoped_restore.
3310 * cp-support.c (reset_directive_searched): Remove.
3311 (make_symbol_overload_list_using): Use scoped_restore.
3312 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
3313 (reset_directive_searched): Remove.
3314
3315 2017-11-04 Tom Tromey <tom@tromey.com>
3316
3317 * symfile.c (find_separate_debug_file_by_debuglink): Use
3318 unique_xmalloc_ptr.
3319
3320 2017-11-04 Tom Tromey <tom@tromey.com>
3321
3322 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
3323 type of "info".
3324 (compute_stack_depth): Likewise.
3325 (do_compile_dwarf_expr_to_c): Use std::vector.
3326
3327 2017-11-04 Tom Tromey <tom@tromey.com>
3328
3329 * compile/compile-object-load.c (link_callbacks_einfo): Use
3330 std::string.
3331
3332 2017-11-04 Tom Tromey <tom@tromey.com>
3333
3334 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3335 Use scoped_free_pendings.
3336 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
3337 scoped_free_pendings.
3338 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
3339 (xcoff_initial_scan): Likewise.
3340 * buildsym.c (reset_symtab_globals): Update comment.
3341 (scoped_free_pendings): Rename from really_free_pendings.
3342 (prepare_for_building): Update comment.
3343 (buildsym_init): Likewise.
3344 * buildsym.h (class scoped_free_pendings): New class.
3345 (really_free_pendings): Don't declare.
3346
3347 2017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3348
3349 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
3350 output when converting a zero value to a special byteorder format.
3351
3352 2017-11-02 Yao Qi <yao.qi@linaro.org>
3353
3354 * frame.c (do_frame_register_read): Remove aspace.
3355 * jit.c (jit_frame_sniffer): Likwise.
3356 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3357 * regcache.c (regcache::regcache): Pass nullptr.
3358 (regcache_print): Caller updated.
3359 * regcache.h (regcache::regcache): Remove one constructor
3360 parameter aspace.
3361
3362 2017-11-02 Yao Qi <yao.qi@linaro.org>
3363
3364 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
3365
3366 2017-11-02 Yao Qi <yao.qi@linaro.org>
3367
3368 * breakpoint.c (insert_single_step_breakpoints): Update.
3369 * frame.c (struct frame_info) <aspace>: Add const.
3370 (frame_save_as_regcache): Add const.
3371 (get_frame_address_space): Return const address_space *.
3372 * frame.h (get_frame_address_space): Update declaration.
3373 * infrun.c (struct step_over_info) <aspace>: Add const.
3374 (set_step_over_info): Make aspace const.
3375 (displaced_step_prepare_throw): Change variable const.
3376 (resume): Likewise.
3377 (proceed): Likewise.
3378 (adjust_pc_after_break): Likewise.
3379 (save_waitstatus): Likewise.
3380 (handle_signal_stop): Likewise.
3381 (keep_going_pass_signal): Likewise.
3382 * jit.c (jit_frame_sniffer): Add const.
3383 * mips-tdep.c (mips_single_step_through_delay): Likewise.
3384 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
3385 * record-full.c (record_full_wait_1): Likewise.
3386 * regcache.c (regcache::regcache): Change parameter to const.
3387 * regcache.h (regcache::regcache): Likewise.
3388 (regcache::aspace): Return const address_space *.
3389 (regcache) <m_aspace>: Add const.
3390
3391 2017-11-02 Yao Qi <yao.qi@linaro.org>
3392
3393 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
3394 * frame.c (create_sentinel_frame): Likewise.
3395 * infrun.c (displaced_step_prepare_throw): Likewise.
3396 (resume): Likewise.
3397 (thread_still_needs_step_over_bp): Likewise.
3398 (proceed): Likewise.
3399 (do_target_wait): Likewise.
3400 (adjust_pc_after_break): Likewise.
3401 (handle_syscall_event): Likewise.
3402 (save_waitstatus): Likewise.
3403 (handle_inferior_event_1): Likewise.
3404 (handle_signal_stop): Likewise.
3405 (keep_going_pass_signal): Likewise.
3406 * linux-nat.c (status_callback): Likewise.
3407 (save_stop_reason): Likewise.
3408 (resume_stopped_resumed_lwps): Likewise.
3409 * record-full.c (record_full_exec_insn): Likewise.
3410 (record_full_wait_1): Likewise.
3411 * regcache.c (get_regcache_aspace): Remove.
3412 * regcache.h (get_regcache_aspace): Remove.
3413
3414 2017-11-02 Yao Qi <yao.qi@linaro.org>
3415
3416 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
3417 (init_regcache_descr): Use gdbarch_num_regs.
3418 (regcache::regcache): Likewise.
3419 (regcache::get_register_status): Likewise.
3420 (regcache::assert_raw_regnum): Likewise.
3421 (regcache::cooked_read): Likewise.
3422 (regcache::cooked_read_value): Likewise.
3423 (regcache::cooked_write): Likewise.
3424 (regcache::dump): Likewise.
3425 (regcache::num_raw_registers): New method.
3426 * regcache.h (class regcache) <num_raw_registers>: New.
3427
3428 2017-11-02 Yao Qi <yao.qi@linaro.org>
3429
3430 * regcache.c (regcache::assert_regnum): New method.
3431 (regcache::invalidate): Call assert_regnum.
3432 (regcache::raw_update): Likewise.
3433 (regcache::raw_write): Likewise.
3434 (regcache::raw_read_part): Likewise.
3435 (regcache::raw_write_part): Likewise.
3436 (regcache::raw_supply): Likewise.
3437 (regcache::raw_supply_integer): Likewise.
3438 (regcache::raw_supply_zeroed): Likewise.
3439 (regcache::raw_collect): Likewise.
3440 (regcache::raw_collect_integer): Likewise.
3441 * regcache.h (regcache::assert_regnum): Declare.
3442
3443 2017-11-02 Yao Qi <yao.qi@linaro.org>
3444
3445 * regcache.c (regcache::dump): Remove code.
3446
3447 2017-11-02 Yao Qi <yao.qi@linaro.org>
3448
3449 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
3450 Remove.
3451 <sizeof_cooked_register_status>: Remove.
3452 (init_regcache_descr): Update.
3453 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
3454 (regcache::save): Likewise.
3455 (regcache::dump): Likewise.
3456
3457 2017-11-01 James Bowman <james.bowman@ftdichip.com>
3458
3459 * ft32-tdep.c (ft32_fetch_instruction): New function.
3460 (ft32_analyze_prologue): Use ft32_fetch_instruction().
3461
3462 2017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
3463
3464 * cli/cli-script.c (execute_control_command): Rename to ...
3465 (execute_control_command_1): ... this.
3466 (execute_control_command): New function.
3467
3468 2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
3469
3470 * tracepoint.c (tfind_command): Remove const_cast.
3471
3472 2017-10-30 Mike Gulick <mgulick@mathworks.com>
3473
3474 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
3475
3476 2017-10-30 Simon Marchi <simon.marchi@ericsson.com>
3477
3478 * common/common-utils.h (in_inclusive_range): New function.
3479 * arm-tdep.c (arm_record_extension_space): Use
3480 in_inclusive_range.
3481 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
3482 * cris-tdep.c (cris_spec_reg_applicable): Use
3483 in_inclusive_range.
3484
3485 2017-10-30 Pedro Alves <palves@redhat.com>
3486 Simon Marchi <simon.marchi@ericsson.com>
3487
3488 * remote.c (remote_set_syscall_catchpoint): Build a std::string
3489 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
3490
3491 2017-10-30 Pedro Alves <palves@redhat.com>
3492
3493 * common/common-utils.c (string_appendf, string_vappendf): New
3494 functions.
3495 * common/common-utils.h (string_appendf, string_vappendf): New
3496 declarations.
3497 * unittests/common-utils-selftests.c (string_appendf_func)
3498 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
3499 (string_vappendf_tests): New functions.
3500 (_initialize_common_utils_selftests): Register "string_appendf" and
3501 "string_vappendf tests".
3502
3503 2017-10-30 Pedro Alves <palves@redhat.com>
3504
3505 * unittests/common-utils-selftests.c (format_func): New typedef.
3506 (string_printf_tests, string_vprintf_tests): Tests factored out
3507 and merged to ...
3508 (test_format_func): ... this new function.
3509 (string_printf_tests, string_vprintf_tests): Reimplement on top of
3510 test_format_func.
3511
3512 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3513
3514 * darwin-nat.c: Remove include of gdb.h.
3515
3516 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3517
3518 * xtensa-xtregs.c: Fix formatting issues.
3519
3520 2017-10-29 Simon Marchi <simon.marchi@ericsson.com>
3521
3522 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
3523
3524 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
3525
3526 PR python/21213
3527 * python/py-infthread.c (thpy_get_inferior): Increment reference
3528 of inferior before returning it.
3529
3530 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3531
3532 * unittests/common-utils-selftests.c (format): Add
3533 ATTRIBUTE_PRINTF.
3534
3535 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3536
3537 * xml-syscall.c (struct syscall_desc): Add constructor.
3538 <name>: Change type to std::string.
3539 (syscall_desc_up): New typedef.
3540 (syscall_desc_p): Remove typeder.
3541 (DEF_VEC_P(syscall_desc_p)): Remove.
3542 (struct syscall_group_desc): Add constructor.
3543 <name>: Change type to std::string.
3544 <syscalls>: Change type to std::vector.
3545 (syscall_group_desc_up): New typedef.
3546 (syscall_group_desc_p): Remove typedef.
3547 (DEF_VEC_P(syscall_group_desc_p)): Remove.
3548 (struct syscalls_info) <syscalls>: Change type to std::vector of
3549 unique_ptr.
3550 <groups>: Likewise.
3551 <my_gdb_datadir>: Change type to std::string.
3552 (syscalls_info_up): New typedef.
3553 (allocate_syscalls_info): Remove.
3554 (syscalls_info_free_syscalls_desc): Remove.
3555 (syscalls_info_free_syscall_group_desc): Remove.
3556 (free_syscalls_info): Remove.
3557 (make_cleanup_free_syscalls_info): Remove.
3558 (syscall_group_create_syscall_group_desc): Adjust.
3559 (syscall_group_add_syscall): Adjust.
3560 (syscall_create_syscall_desc): Adjust.
3561 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
3562 (init_syscalls_info): Adjust.
3563 (syscall_group_get_group_by_name): Adjust.
3564 (xml_get_syscall_number): Adjust.
3565 (xml_get_syscall_name): Adjust.
3566 (xml_list_of_syscalls): Adjust.
3567 (xml_list_syscalls_by_group): Adjust.
3568 (xml_list_of_groups): Adjust.
3569
3570 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3571
3572 * probe.h: Don't include gdb_vecs.h.
3573 (DEF_VEC_P (probe_p)): Remove.
3574 (find_probes_in_objfile): Return an std::vector.
3575 * probe.c (find_probes_in_objfile): Likewise.
3576 * breakpoint.c (breakpoint_objfile_data)
3577 <longjmp_probes>: Change type to std::vector.
3578 <exception_probes>: Likewise.
3579 (free_breakpoint_probes): Don't manually free vectors.
3580 (create_longjmp_master_breakpoint): Adjust.
3581 (create_exception_master_breakpoint): Adjust.
3582 * solib-svr4.c (svr4_create_probe_breakpoints): Change
3583 parameter type, adjust.
3584 (svr4_create_solib_event_breakpoints): Adjust.
3585
3586 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3587
3588 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
3589 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
3590 with new.
3591 (free_breakpoint_probes): Rename to ...
3592 (free_breakpoint_objfile_data): ... this, and call delete on
3593 bp_objfile_data..
3594
3595 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
3596
3597 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
3598 (loaded_script_ptr): Remove typedef.
3599 (DEF_VEC_P (loaded_script_ptr)): Remove.
3600 (struct collect_matching_scripts_data): Add constructor.
3601 <scripts_p>: Change type to (pointer to) std::vector.
3602 (collect_matching_scripts_data): Adjust.
3603 (sort_scripts_by_name): Make suitable for std::sort.
3604 (print_scripts): Don't sort vector, adjust to std::vector.
3605 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
3606
3607 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3608
3609 * symfile.c (filename_language): Make struct, not typedef. Add
3610 constructor.
3611 <ext>: Change type to std::string.
3612 (DEF_VEC_O (filename_language)): Remove.
3613 (filename_language_table): Change type to std::vector.
3614 (add_filename_language): Adjust.
3615 (set_ext_lang_command): Adjust.
3616 (info_ext_lang_command): Adjust.
3617 (deduce_language_from_filename): Adjust.
3618 (class scoped_restore_filename_language_table): Remove.
3619 (test_filename_language): Use scoped_restore.
3620 (test_set_ext_lang_command): Use scoped_restore, adjust to
3621 std::vector change.
3622
3623 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3624
3625 * symfile.c: Include selftest.h.
3626 (class scoped_restore_filename_language_table): New.
3627 (test_filename_language): New test.
3628 (test_set_ext_lang_command): New test.
3629 (_initialize_symfile): Register tests.
3630
3631 2017-10-27 Keith Seitz <keiths@redhat.com>
3632
3633 * breakpoint.c (print_breakpoint_location): Use the symbol saved
3634 in the bp_location, falling back to find_pc_sect_function when
3635 needed.
3636 (add_location_to_breakpoint): Save sal->symbol.
3637 * breakpoint.h (struct bp_location) <symbol>: New field.
3638 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
3639 * symtab.h (struct symtab_and_line) <symbol>: New field.
3640
3641 2017-10-26 Patrick Frants <osscontribute@gmail.com>
3642
3643 PR gdb/13669
3644 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
3645 to rewind obstack.
3646
3647 2017-10-26 Pedro Alves <palves@redhat.com>
3648
3649 * remote.c (remote_async_terminal_ours_p): Delete.
3650 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
3651 Remove references to 'remote_async_terminal_ours_p'.
3652
3653 2017-10-26 Yao Qi <yao.qi@linaro.org>
3654
3655 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
3656
3657 2017-10-26 Yao Qi <yao.qi@linaro.org>
3658
3659 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
3660 aspace const.
3661 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
3662 Likewise.
3663 * breakpoint.c (bpstat_check_location): Remove cast.
3664 (breakpoint_hit_catch_fork): Make aspce const.
3665 (breakpoint_hit_catch_solib): Likewise.
3666 (breakpoint_hit_catch_exec): Likewise.
3667 (breakpoint_hit_ranged_breakpoint): Likewise.
3668 (breakpoint_hit_watchpoint): Likewise.
3669 (base_breakpoint_breakpoint_hit): Likewise.
3670 (bkpt_breakpoint_hit): Likewise.
3671 (dprintf_breakpoint_hit): Likewise.
3672 (tracepoint_breakpoint_hit): Likewise.
3673 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
3674
3675 2017-10-26 Yao Qi <yao.qi@linaro.org>
3676
3677 * breakpoint.c (breakpoint_location_address_match): Change
3678 "struct address_space *" to "const address_space".
3679 (breakpoint_location_address_range_overlap): Likewise.
3680 (breakpoint_here_p): Likewise.
3681 (breakpoint_in_range_p): Likewise.
3682 (moribund_breakpoint_here_p): Likewise.
3683 (bp_location_inserted_here_p): Likewise.
3684 (software_breakpoint_inserted_here_p): Likewise.
3685 (hardware_breakpoint_inserted_here_p): Likewise.
3686 (hardware_watchpoint_inserted_in_range): Likewise.
3687 (bpstat_check_location): Likewise.
3688 (bpstat_stop_status): Likewise.
3689 (breakpoint_address_match): Likewise.
3690 (breakpoint_address_match_range): Likewise.
3691 (breakpoint_location_address_match): Likewise.
3692 (breakpoint_location_address_range_overlap): Likewise.
3693 (insert_single_step_breakpoint): Likewise.
3694 (breakpoint_has_location_inserted_here): Likewise.
3695 (single_step_breakpoint_inserted_here_p): Likewise.
3696 (pc_at_non_inline_function): Likewise.
3697 * breakpoint.h (bpstat_stop_status): Update declaration.
3698 (breakpoint_here_p): Likewise.
3699 (breakpoint_in_range_p): Likewise.
3700 (moribund_breakpoint_here_p): Likewise.
3701 (breakpoint_inserted_here_p): Likewise.
3702 (software_breakpoint_inserted_here_p): Likewise.
3703 (hardware_breakpoint_inserted_here_p): Likewise.
3704 (breakpoint_has_location_inserted_here): Likewise.
3705 (single_step_breakpoint_inserted_here_p): Likewise.
3706 (hardware_watchpoint_inserted_in_range): Likewise.
3707 (breakpoint_address_match): Likewise.
3708 (insert_single_step_breakpoint): Likewise.
3709 (pc_at_non_inline_function): Likewise.
3710 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
3711 * record.c (record_check_stopped_by_breakpoint): Likewise.
3712 * record.h (record_check_stopped_by_breakpoint): Likewise.
3713 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
3714
3715 2017-10-25 Yao Qi <yao.qi@linaro.org>
3716
3717 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
3718 regcache->arch () instead get_regcache_arch.
3719 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
3720 Likewise.
3721 (aarch64_fbsd_store_inferior_registers): Likewise.
3722 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
3723 (store_gregs_to_thread): Likewise.
3724 (fetch_fpregs_from_thread): Likewise.
3725 (store_fpregs_to_thread): Likewise.
3726 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
3727 (aarch64_store_return_value): Likewise.
3728 (aarch64_software_single_step): Likewise.
3729 * aix-thread.c (aix_thread_wait): Likewise.
3730 (supply_reg32): Likewise.
3731 (supply_sprs64): Likewise.
3732 (supply_sprs32): Likewise.
3733 (fill_gprs64): Likewise.
3734 (fill_gprs32): Likewise.
3735 (fill_sprs64): Likewise.
3736 (fill_sprs32): Likewise.
3737 (store_regs_user_thread): Likewise.
3738 (store_regs_kernel_thread): Likewise.
3739 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3740 (alphabsd_store_inferior_registers): Likewise.
3741 * alpha-tdep.c (alpha_extract_return_value): Likewise.
3742 (alpha_store_return_value): Likewise.
3743 (alpha_deal_with_atomic_sequence): Likewise.
3744 (alpha_next_pc): Likewise.
3745 (alpha_software_single_step): Likewise.
3746 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3747 (amd64bsd_store_inferior_registers): Likewise.
3748 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3749 Likewise.
3750 (amd64_linux_store_inferior_registers): Likewise.
3751 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
3752 (amd64_collect_native_gregset): Likewise.
3753 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
3754 (amd64obsd_collect_uthread): Likewise.
3755 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
3756 (amd64_collect_fpregset): Likewise.
3757 (amd64_supply_fxsave): Likewise.
3758 (amd64_supply_xsave): Likewise.
3759 (amd64_collect_fxsave): Likewise.
3760 (amd64_collect_xsave): Likewise.
3761 * arc-tdep.c (arc_write_pc): Likewise.
3762 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
3763 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
3764 (arm_fbsd_store_inferior_registers): Likewise.
3765 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
3766 (store_vfp_regs): Likewise.
3767 (arm_linux_fetch_inferior_registers): Likewise.
3768 (arm_linux_store_inferior_registers): Likewise.
3769 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3770 (arm_linux_sigreturn_next_pc): Likewise.
3771 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
3772 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
3773 (fetch_register): Likewise.
3774 (store_register): Likewise.
3775 * arm-tdep.c (arm_is_thumb): Likewise.
3776 (displaced_in_arm_mode): Likewise.
3777 (bx_write_pc): Likewise.
3778 (arm_get_next_pcs_addr_bits_remove): Likewise.
3779 (arm_software_single_step): Likewise.
3780 (arm_extract_return_value): Likewise.
3781 (arm_store_return_value): Likewise.
3782 (arm_write_pc): Likewise.
3783 * bfin-tdep.c (bfin_extract_return_value): Likewise.
3784 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3785 (bsd_uthread_store_registers): Likewise.
3786 * core-regset.c (fetch_core_registers): Likewise.
3787 * corelow.c (get_core_registers): Likewise.
3788 * cris-tdep.c (cris_store_return_value): Likewise.
3789 (cris_extract_return_value): Likewise.
3790 (find_step_target): Likewise.
3791 (find_step_target): Likewise.
3792 (cris_software_single_step): Likewise.
3793 * ctf.c (ctf_fetch_registers): Likewise.
3794 * darwin-nat.c (cancel_breakpoint): Likewise.
3795 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
3796 * frv-tdep.c (frv_extract_return_value): Likewise.
3797 * ft32-tdep.c (ft32_store_return_value): Likewise.
3798 (ft32_extract_return_value): Likewise.
3799 * go32-nat.c (fetch_register): Likewise.
3800 (go32_fetch_registers): Likewise.
3801 (go32_store_registers): Likewise.
3802 (store_register): Likewise.
3803 * h8300-tdep.c (h8300_extract_return_value): Likewise.
3804 (h8300_store_return_value): Likewise.
3805 * hppa-linux-nat.c (fetch_register): Likewise.
3806 (store_register): Likewise.
3807 (hppa_linux_fetch_inferior_registers): Likewise.
3808 (hppa_linux_store_inferior_registers): Likewise.
3809 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
3810 (i386_darwin_store_inferior_registers): Likewise.
3811 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
3812 (gnu_store_registers): Likewise.
3813 * i386-linux-nat.c (fetch_register): Likewise.
3814 (store_register): Likewise.
3815 (supply_gregset): Likewise.
3816 (fill_gregset): Likewise.
3817 (i386_linux_fetch_inferior_registers): Likewise.
3818 (i386_linux_store_inferior_registers): Likewise.
3819 (i386_linux_resume): Likewise.
3820 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
3821 Likewise.
3822 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
3823 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
3824 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
3825 (i386obsd_collect_uthread): Likewise.
3826 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
3827 (i386_supply_gregset): Likewise.
3828 (i386_collect_gregset): Likewise.
3829 (i386_supply_fpregset): Likewise.
3830 (i386_collect_fpregset): Likewise.
3831 (i386_mpx_bd_base): Likewise.
3832 * i386-v4-nat.c (supply_fpregset): Likewise.
3833 (fill_fpregset): Likewise.
3834 * i387-tdep.c (i387_supply_fsave): Likewise.
3835 (i387_collect_fsave): Likewise.
3836 (i387_supply_fxsave): Likewise.
3837 (i387_collect_fxsave): Likewise.
3838 (i387_supply_xsave): Likewise.
3839 (i387_collect_xsave): Likewise.
3840 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
3841 (ia64_linux_store_registers): Likewise.
3842 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
3843 (ia64_extract_return_value): Likewise.
3844 (ia64_store_return_value): Likewise.
3845 (find_func_descr): Likewise.
3846 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3847 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
3848 (inf_ptrace_store_registers): Likewise.
3849 * infrun.c (use_displaced_stepping): Likewise.
3850 (displaced_step_prepare_throw): Likewise.
3851 (resume): Likewise.
3852 (proceed): Likewise.
3853 (do_target_wait): Likewise.
3854 (adjust_pc_after_break): Likewise.
3855 (handle_inferior_event_1): Likewise.
3856 (handle_signal_stop): Likewise.
3857 (save_infcall_suspend_state): Likewise.
3858 (restore_infcall_suspend_state): Likewise.
3859 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
3860 * jit.c (jit_frame_prev_register): Likewise.
3861 * linux-nat.c (save_stop_reason): Likewise.
3862 (linux_nat_wait_1): Likewise.
3863 (resume_stopped_resumed_lwps): Likewise.
3864 * linux-record.c (record_linux_sockaddr): Likewise.
3865 (record_linux_msghdr): Likewise.
3866 (record_linux_system_call): Likewise.
3867 * linux-tdep.c (linux_collect_thread_registers): Likewise.
3868 * lm32-tdep.c (lm32_extract_return_value): Likewise.
3869 (lm32_store_return_value): Likewise.
3870 * m32c-tdep.c (m32c_read_flg): Likewise.
3871 (m32c_pseudo_register_read): Likewise.
3872 (m32c_pseudo_register_write): Likewise.
3873 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
3874 (m32r_linux_collect_gregset): Likewise.
3875 * m32r-tdep.c (m32r_store_return_value): Likewise.
3876 (m32r_extract_return_value): Likewise.
3877 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3878 (m68kbsd_collect_fpregset): Likewise.
3879 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
3880 * m68k-linux-nat.c (fetch_register): Likewise.
3881 (old_fetch_inferior_registers): Likewise.
3882 (old_store_inferior_registers): Likewise.
3883 (store_regs): Likewise.
3884 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
3885 (m68k_svr4_store_return_value): Likewise.
3886 * m88k-tdep.c (m88k_store_arguments): Likewise.
3887 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
3888 (mi_cmd_data_write_register_values): Likewise.
3889 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
3890 (mips_fbsd_store_inferior_registers): Likewise.
3891 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
3892 (mips_fbsd_supply_gregs): Likewise.
3893 (mips_fbsd_collect_fpregs): Likewise.
3894 (mips_fbsd_collect_gregs): Likewise.
3895 (mips_fbsd_supply_fpregset): Likewise.
3896 (mips_fbsd_collect_fpregset): Likewise.
3897 (mips_fbsd_supply_gregset): Likewise.
3898 (mips_fbsd_collect_gregset): Likewise.
3899 * mips-linux-nat.c (supply_gregset): Likewise.
3900 (fill_gregset): Likewise.
3901 (supply_fpregset): Likewise.
3902 (fill_fpregset): Likewise.
3903 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
3904 (mips_fill_gregset): Likewise.
3905 (mips_supply_fpregset): Likewise.
3906 (mips_fill_fpregset): Likewise.
3907 (mips64_supply_gregset): Likewise.
3908 (micromips_linux_sigframe_validate): Likewise.
3909 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3910 (mipsnbsd_fetch_inferior_registers): Likewise.
3911 (mipsnbsd_store_inferior_registers): Likewise.
3912 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
3913 (mipsnbsd_supply_gregset): Likewise.
3914 (mipsnbsd_iterate_over_regset_sections): Likewise.
3915 (mipsnbsd_supply_reg): Likewise.
3916 (mipsnbsd_supply_fpreg): Likewise.
3917 * mips-tdep.c (mips_in_frame_stub): Likewise.
3918 (mips_dummy_id): Likewise.
3919 (is_octeon_bbit_op): Likewise.
3920 (micromips_bc1_pc): Likewise.
3921 (extended_mips16_next_pc): Likewise.
3922 (mips16_next_pc): Likewise.
3923 (deal_with_atomic_sequence): Likewise.
3924 * moxie-tdep.c (moxie_process_readu): Likewise.
3925 * nios2-tdep.c (nios2_get_next_pc): Likewise.
3926 * nto-procfs.c (procfs_store_registers): Likewise.
3927 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
3928 (ppcfbsd_store_inferior_registers): Likewise.
3929 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
3930 (fetch_altivec_register): Likewise.
3931 (get_spe_registers): Likewise.
3932 (fetch_spe_register): Likewise.
3933 (fetch_altivec_registers): Likewise.
3934 (fetch_all_gp_regs): Likewise.
3935 (fetch_all_fp_regs): Likewise.
3936 (store_vsx_register): Likewise.
3937 (store_altivec_register): Likewise.
3938 (set_spe_registers): Likewise.
3939 (store_spe_register): Likewise.
3940 (store_altivec_registers): Likewise.
3941 (store_all_gp_regs): Likewise.
3942 (store_all_fp_regs): Likewise.
3943 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
3944 (ppc_linux_collect_gregset): Likewise.
3945 (ppc_canonicalize_syscall): Likewise.
3946 (ppc_linux_record_signal): Likewise.
3947 (ppu2spu_prev_register): Likewise.
3948 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
3949 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
3950 (ppcobsd_store_registers): Likewise.
3951 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
3952 Likewise.
3953 (ppc_ravenscar_generic_store_registers): Likewise.
3954 * procfs.c (procfs_fetch_registers): Likewise.
3955 (procfs_store_registers): Likewise.
3956 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
3957 (ravenscar_store_registers): Likewise.
3958 (ravenscar_prepare_to_store): Likewise.
3959 * record-btrace.c (record_btrace_fetch_registers): Likewise.
3960 * record-full.c (record_full_wait_1): Likewise.
3961 (record_full_registers_change): Likewise.
3962 (record_full_store_registers): Likewise.
3963 (record_full_core_fetch_registers): Likewise.
3964 (record_full_save): Likewise.
3965 (record_full_goto_insn): Likewise.
3966 * regcache.c (regcache_register_size): Likewise.
3967 (get_regcache_arch): Remove.
3968 (regcache_read_pc): Likewise.
3969 * regcache.h (get_regcache_arch): Remove.
3970 * remote-sim.c (gdbsim_fetch_register): Likewise.
3971 (gdbsim_store_register): Likewise.
3972 * remote.c (fetch_register_using_p): Likewise.
3973 (send_g_packet): Likewise.
3974 (remote_prepare_to_store): Likewise.
3975 (store_registers_using_G): Likewise.
3976 * reverse.c (save_bookmark_command): Likewise.
3977 (goto_bookmark_command): Likewise.
3978 * rs6000-aix-tdep.c (branch_dest): Likewise.
3979 * rs6000-nat.c (rs6000_ptrace64): Likewise.
3980 (fetch_register): Likewise.
3981 * rs6000-tdep.c (ppc_supply_reg): Likewise.
3982 (ppc_collect_reg): Likewise.
3983 (ppc_collect_gregset): Likewise.
3984 (ppc_collect_fpregset): Likewise.
3985 (ppc_collect_vsxregset): Likewise.
3986 (ppc_collect_vrregset): Likewise.
3987 (ppc_displaced_step_hw_singlestep): Likewise.
3988 (rs6000_pseudo_register_read): Likewise.
3989 (rs6000_pseudo_register_write): Likewise.
3990 * s390-linux-nat.c (supply_gregset): Likewise.
3991 (fill_gregset): Likewise.
3992 (s390_linux_fetch_inferior_registers): Likewise.
3993 * s390-linux-tdep.c (s390_write_pc): Likewise.
3994 (s390_software_single_step): Likewise.
3995 (s390_all_but_pc_registers_record): Likewise.
3996 (s390_linux_syscall_record): Likewise.
3997 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
3998 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3999 (shnbsd_store_inferior_registers): Likewise.
4000 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
4001 (sh_extract_return_value_fpu): Likewise.
4002 (sh_store_return_value_nofpu): Likewise.
4003 (sh_corefile_supply_regset): Likewise.
4004 (sh_corefile_collect_regset): Likewise.
4005 * sh64-tdep.c (sh64_extract_return_value): Likewise.
4006 (sh64_store_return_value): Likewise.
4007 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
4008 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
4009 (sparc_store_inferior_registers): Likewise.
4010 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
4011 (sparc_ravenscar_prepare_to_store): Likewise.
4012 * sparc-tdep.c (sparc32_store_arguments): Likewise.
4013 (sparc_analyze_control_transfer): Likewise.
4014 (sparc_step_trap): Likewise.
4015 (sparc_software_single_step): Likewise.
4016 (sparc32_gdbarch_init): Likewise.
4017 (sparc_supply_rwindow): Likewise.
4018 (sparc_collect_rwindow): Likewise.
4019 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
4020 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
4021 (sparc64nbsd_collect_gregset): Likewise.
4022 (sparc64nbsd_supply_fpregset): Likewise.
4023 (sparc64nbsd_collect_fpregset): Likewise.
4024 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
4025 (sparc64_supply_gregset): Likewise.
4026 (sparc64_collect_gregset): Likewise.
4027 (sparc64_supply_fpregset): Likewise.
4028 (sparc64_collect_fpregset): Likewise.
4029 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4030 * spu-tdep.c (spu_unwind_sp): Likewise.
4031 (spu2ppu_prev_register): Likewise.
4032 (spu_memory_remove_breakpoint): Likewise.
4033 * stack.c (return_command): Likewise.
4034 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
4035 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
4036 * tracefile.c (trace_save_ctf): Likewise.
4037 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
4038 (do_windows_store_inferior_registers): Likewise.
4039 (windows_resume): Likewise.
4040 * xtensa-linux-nat.c (fill_gregset): Likewise.
4041 (supply_gregset_reg): Likewise.
4042 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
4043 (xtensa_register_read_masked): Likewise.
4044 (xtensa_supply_gregset): Likewise.
4045 (xtensa_extract_return_value): Likewise.
4046 (xtensa_store_return_value): Likewise.
4047
4048 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
4049
4050 * doublest.c (floatformat_from_string): New function.
4051 * doublest.h (floatformat_from_string): Add prototype.
4052
4053 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
4054 (OP_FLOAT): ... this.
4055 * expression.h: Do not include "doublest.h".
4056 (union exp_element): Replace doubleconst and decfloatconst by
4057 new element floatconst.
4058 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
4059 (ada_evaluate_subexp): Likewise.
4060 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
4061 OP_DOUBLE and OP_DECFLOAT.
4062 * expprint.c (print_subexp_standard): Likewise.
4063 (dump_subexp_body_standard): Likewise.
4064 * breakpoint.c (watchpoint_exp_is_const): Likewise.
4065
4066 * parse.c: Include "dfp.h".
4067 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4068 (write_exp_elt_floatcst): New function.
4069 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
4070 and OP_DECFLOAT.
4071 (operator_check_standard): Likewise.
4072 (parse_float): Do not accept suffix. Take type as input. Return bool.
4073 Return target format buffer instead of host DOUBLEST.
4074 Use floatformat_from_string and decimal_from_string to parse
4075 either binary or decimal floating-point types.
4076 (parse_c_float): Remove.
4077 * parser-defs.h: Do not include "doublest.h".
4078 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
4079 (write_exp_elt_floatcst): Add prototype.
4080 (parse_float): Update prototype.
4081 (parse_c_float): Remove.
4082
4083 * c-exp.y: Do not include "dfp.h".
4084 (typed_val_float): Use byte buffer instead of DOUBLEST.
4085 (typed_val_decfloat): Remove.
4086 (DECFLOAT): Remove.
4087 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4088 (parse_number): Update to new parse_float interface.
4089 Parse suffixes and determine type before calling parse_float.
4090 Handle decimal and binary FP types the same way.
4091
4092 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4093 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
4094 (parse_number): Update to new parse_float interface.
4095 Parse suffixes and determine type before calling parse_float.
4096
4097 * f-exp.y: Replace dval by typed_val_float.
4098 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4099 (parse_number): Use parse_float instead of atof.
4100
4101 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4102 (parse_go_float): Remove.
4103 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4104 (parse_number): Call parse_float instead of parse_go_float.
4105 Parse suffixes and determine type before calling parse_float.
4106
4107 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4108 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4109 (parse_number): Update to new parse_float interface.
4110 Parse suffixes and determine type before calling parse_float.
4111
4112 * m2-exp.y: Replace dval by byte buffer val.
4113 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4114 (parse_number): Call parse_float instead of atof.
4115
4116 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
4117 (lex_number): Call parse_float instead of strtod.
4118 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
4119 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
4120 Use write_exp_elt_floatcst.
4121 (unit_testing): Remove static variable.
4122 (rust_type): Do not check unit_testing.
4123 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
4124
4125 * ada-exp.y (type_float, type_double): Remove.
4126 (typed_val_float): Use byte buffer instead of DOUBLEST.
4127 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
4128 * ada-lex.l (processReal): Use parse_float instead of sscanf.
4129
4130 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4131
4132 * aarch64-tdep.h (enum aarch64_regnum): Remove.
4133 * arch/aarch64.h: New file.
4134
4135 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4136
4137 * dfp.h (decimal_from_string): Use const reference for argument.
4138 * dfp.c (decimal_from_string): Likewise.
4139
4140 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4141
4142 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
4143 * sh64-tdep.c (sh64_do_fp_register): Likewise.
4144 * mips-tdep.c (mips_print_fp_register): Likewise.
4145
4146 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4147
4148 * common/format.h (enum argclass): Replace decfloat_arg by
4149 dec32float_arg, dec64float_arg, and dec128float_arg.
4150 * common/format.c (parse_format_string): Update to return
4151 new decimal float argument classes.
4152
4153 * printcmd.c (printf_decfloat): Rename to ...
4154 (printf_floating): ... this. Add argclass argument, and use it
4155 instead of parsing the format string again. Add support for
4156 binary floating-point values, using floatformat_to_string.
4157 Convert value to the target format if it doesn't already match.
4158 (ui_printf): Call printf_floating instead of printf_decfloat,
4159 also for double_arg / long_double_arg. Pass argclass.
4160
4161 * dfp.c (decimal_to_string): Add format string argument.
4162 * dfp.h (decimal_to_string): Likewise.
4163
4164 * doublest.c (floatformat_to_string): Add format string argument.
4165 * doublest.h (floatformat_to_string): Likewise.
4166
4167 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4168
4169 * doublest.c (floatformat_precision): New routine.
4170 (floatformat_to_string): Likewise.
4171 * doublest.c (floatformat_to_string): Add prototype.
4172
4173 * printcmd.c (print_scalar_formatted): Only call print_floating
4174 on floating-point types.
4175 * valprint.c: Do not include "floatformat.h".
4176 (generic_val_print_decfloat): Remove.
4177 (generic_val_print): Call generic_val_print_float for both
4178 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
4179 (print_floating): Use floatformat_to_string. Handle decimal float.
4180 (print_decimal_floating): Remove, merge into floatformat_to_string.
4181 * value.h (print_decimal_floating): Remove.
4182
4183 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
4184
4185 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
4186
4187 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
4188
4189 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4190
4191 * memattr.h: Don't include vec.h.
4192 (struct mem_attrib): Initialize fields.
4193 <unknown>: New static method.
4194 (struct mem_region): Add constructors, operator<, initialize
4195 fields.
4196 * memattr.c: Include algorithm.
4197 (default_mem_attrib, unknown_mem_attrib): Remove.
4198 (user_mem_region_list): New global.
4199 (target_mem_region_list, mem_region_list): Change type to
4200 std::vector<mem_region>.
4201 (mem_use_target): Now a function.
4202 (target_mem_regions_valid): Change type to bool.
4203 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
4204 (require_user_regions): Adjust.
4205 (require_target_regions): Adjust.
4206 (create_mem_region): Adjust.
4207 (lookup_mem_region): Adjust.
4208 (invalidate_target_mem_regions): Adjust.
4209 (mem_clear): Rename to...
4210 (user_mem_clear): ... this, and adjust.
4211 (mem_command): Adjust.
4212 (info_mem_command): Adjust.
4213 (mem_enable, enable_mem_command, mem_disable,
4214 disable_mem_command): Adjust.
4215 (mem_delete): Adjust.
4216 (delete_mem_command): Adjust.
4217 * memory-map.h (parse_memory_map): Return an std::vector.
4218 * memory-map.c (parse_memory_map): Likewise.
4219 (struct memory_map_parsing_data): Add constructor.
4220 <memory_map>: Point to std::vector.
4221 (memory_map_start_memory): Adjust.
4222 (memory_map_end_memory): Adjust.
4223 (memory_map_end_property): Adjust.
4224 (clear_result): Remove.
4225 * remote.c (remote_memory_map): Return an std::vector.
4226 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
4227 Remove.
4228 (target_debug_print_mem_region_vector): New.
4229 * target-delegates.c: Regenerate.
4230 * target.h (mem_region_vector): New typedef.
4231 (to_memory_map): Return mem_region_vector.
4232 (target_memory_map): Return an std::vector.
4233 * target.c (target_memory_map): Return an std::vector.
4234 (flash_erase_command): Adjust.
4235
4236 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4237
4238 * memory-map.c (struct memory_map_parsing_data) <property_name>:
4239 Change type to std::string.
4240 (memory_map_start_property): Adjust.
4241 (memory_map_end_property): Adjust.
4242
4243 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4244
4245 * infrun.h: Include common/byte-vector.h.
4246 (struct displaced_step_closure): New struct.
4247 (struct buf_displaced_step_closure): New struct.
4248 * infrun.c (displaced_step_closure::~displaced_step_closure):
4249 Provide default implementation.
4250 (displaced_step_clear): Deallocate step closure with delete.
4251 * aarch64-tdep.c (displaced_step_closure): Rename to ...
4252 (aarch64_displaced_step_closure): ... this, extend
4253 displaced_step_closure.
4254 (aarch64_displaced_step_data) <dsc>: Change type to
4255 aarch64_displaced_step_closure.
4256 (aarch64_displaced_step_copy_insn): Adjust to type change, use
4257 unique_ptr.
4258 (aarch64_displaced_step_fixup): Add cast for displaced step
4259 closure.
4260 * amd64-tdep.c (displaced_step_closure): Rename to ...
4261 (amd64_displaced_step_closure): ... this, extend
4262 displaced_step_closure.
4263 <insn_buf>: Change type to std::vector<gdb_byte>.
4264 <max_len>: Remove.
4265 (fixup_riprel): Change type of DSC parameter, adjust to type
4266 change of insn_buf.
4267 (fixup_displaced_copy): Change type of DSC parameter.
4268 (amd64_displaced_step_copy_insn): Instantiate
4269 amd64_displaced_step_closure.
4270 (amd64_displaced_step_fixup): Add cast for closure type, adjust
4271 to type change of insn_buf.
4272 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
4273 parameter DSC.
4274 (arm_linux_copy_svc): Likewise.
4275 (cleanup_kernel_helper_return): Likewise.
4276 (arm_catch_kernel_helper_return): Likewise.
4277 (arm_linux_displaced_step_copy_insn): Instantiate
4278 arm_displaced_step_closure.
4279 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
4280 (displaced_read_reg): Change type of parameter DSC.
4281 (branch_write_pc): Likewise.
4282 (load_write_pc): Likewise.
4283 (alu_write_pc): Likewise.
4284 (displaced_write_reg): Likewise.
4285 (arm_copy_unmodified): Likewise.
4286 (thumb_copy_unmodified_32bit): Likewise.
4287 (thumb_copy_unmodified_16bit): Likewise.
4288 (cleanup_preload): Likewise.
4289 (install_preload): Likewise.
4290 (arm_copy_preload): Likewise.
4291 (thumb2_copy_preload): Likewise.
4292 (install_preload_reg): Likewise.
4293 (arm_copy_preload_reg): Likewise.
4294 (cleanup_copro_load_store): Likewise.
4295 (install_copro_load_store): Likewise.
4296 (arm_copy_copro_load_store) Likewise.
4297 (thumb2_copy_copro_load_store): Likewise.
4298 (cleanup_branch): Likewise.
4299 (install_b_bl_blx): Likewise.
4300 (arm_copy_b_bl_blx): Likewise.
4301 (thumb2_copy_b_bl_blx): Likewise.
4302 (thumb_copy_b): Likewise.
4303 (install_bx_blx_reg): Likewise.
4304 (arm_copy_bx_blx_reg): Likewise.
4305 (thumb_copy_bx_blx_reg): Likewise.
4306 (cleanup_alu_imm): Likewise.
4307 (arm_copy_alu_imm): Likewise.
4308 (thumb2_copy_alu_imm): Likewise.
4309 (cleanup_alu_reg): Likewise.
4310 (install_alu_reg): Likewise.
4311 (arm_copy_alu_reg): Likewise.
4312 (thumb_copy_alu_reg): Likewise.
4313 (cleanup_alu_shifted_reg): Likewise.
4314 (install_alu_shifted_reg): Likewise.
4315 (arm_copy_alu_shifted_reg): Likewise.
4316 (cleanup_load): Likewise.
4317 (cleanup_store): Likewise.
4318 (arm_copy_extra_ld_st): Likewise.
4319 (install_load_store): Likewise.
4320 (thumb2_copy_load_literal): Likewise.
4321 (thumb2_copy_load_reg_imm): Likewise.
4322 (arm_copy_ldr_str_ldrb_strb): Likewise.
4323 (cleanup_block_load_all): Likewise.
4324 (cleanup_block_store_pc): Likewise.
4325 (cleanup_block_load_pc): Likewise.
4326 (arm_copy_block_xfer): Likewise.
4327 (thumb2_copy_block_xfer): Likewise.
4328 (cleanup_svc): Likewise.
4329 (install_svc): Likewise.
4330 (arm_copy_svc): Likewise.
4331 (thumb_copy_svc): Likewise.
4332 (arm_copy_undef): Likewise.
4333 (thumb_32bit_copy_undef): Likewise.
4334 (arm_copy_unpred): Likewise.
4335 (arm_decode_misc_memhint_neon): Likewise.
4336 (arm_decode_unconditional): Likewise.
4337 (arm_decode_miscellaneous): Likewise.
4338 (arm_decode_dp_misc): Likewise.
4339 (arm_decode_ld_st_word_ubyte): Likewise.
4340 (arm_decode_media): Likewise.
4341 (arm_decode_b_bl_ldmstm): Likewise.
4342 (arm_decode_ext_reg_ld_st): Likewise.
4343 (thumb2_decode_dp_shift_reg): Likewise.
4344 (thumb2_decode_ext_reg_ld_st): Likewise.
4345 (arm_decode_svc_copro): Likewise.
4346 (thumb2_decode_svc_copro): Likewise.
4347 (install_pc_relative): Likewise.
4348 (thumb_copy_pc_relative_16bit): Likewise.
4349 (thumb_decode_pc_relative_16bit): Likewise.
4350 (thumb_copy_pc_relative_32bit): Likewise.
4351 (thumb_copy_16bit_ldr_literal): Likewise.
4352 (thumb_copy_cbnz_cbz): Likewise.
4353 (thumb2_copy_table_branch): Likewise.
4354 (cleanup_pop_pc_16bit_all): Likewise.
4355 (thumb_copy_pop_pc_16bit): Likewise.
4356 (thumb_process_displaced_16bit_insn): Likewise.
4357 (decode_thumb_32bit_ld_mem_hints): Likewise.
4358 (thumb_process_displaced_32bit_insn): Likewise.
4359 (thumb_process_displaced_insn): Likewise.
4360 (arm_process_displaced_insn): Likewise.
4361 (arm_displaced_init_closure): Likewise.
4362 (arm_displaced_step_fixup): Add cast for closure.
4363 * arm-tdep.h: Include infrun.h.
4364 (displaced_step_closure): Rename to ...
4365 (arm_displaced_step_closure): ... this, extend
4366 displaced_step_closure.
4367 <u::svc::copy_svc_os>: Change type of parameter DSC.
4368 <cleanup>: Likewise.
4369 (arm_process_displaced_insn): Likewise.
4370 (arm_displaced_init_closure): Likewise.
4371 (displaced_read_reg): Likewise.
4372 (displaced_write_reg): Likewise.
4373 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4374 Adjust.
4375 * i386-tdep.h: Include infrun.h.
4376 (i386_displaced_step_closure): New typedef.
4377 * i386-tdep.c (i386_displaced_step_copy_insn): Use
4378 i386_displaced_step_closure.
4379 (i386_displaced_step_fixup): Adjust.
4380 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
4381 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
4382 and unique_ptr.
4383 (ppc_displaced_step_fixup): Adjust.
4384 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
4385 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
4386 and unique_ptr.
4387 (s390_displaced_step_fixup): Adjust.
4388
4389 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
4390
4391 * interps.h (interp_resume, interp_suspend, interp_set_temp):
4392 Remove declarations.
4393
4394 2017-10-20 Tom Tromey <tom@tromey.com>
4395
4396 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
4397 std::vector.
4398 (gdb_bfd_record_inclusion): Update.
4399 (bfdp): Remove typedef.
4400
4401 2017-10-20 Tom Tromey <tom@tromey.com>
4402
4403 * gdb_bfd.c (gdb_bfd_ref): Use new.
4404 (struct gdb_bfd_data): Add constructor, destructor, and member
4405 initializers.
4406 (gdb_bfd_unref): Use delete.
4407
4408 2017-10-20 Tom Tromey <tom@tromey.com>
4409
4410 * exec.c (exec_file_attach): Use new_bfd_ref.
4411 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
4412 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
4413 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
4414 new_bfd_ref.
4415 * gdb_bfd.h (new_bfd_ref): New function.
4416
4417 2017-10-20 Pedro Alves <palves@redhat.com>
4418
4419 * main.c (captured_command_loop): Add attribute noinline.
4420
4421 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
4422
4423 * interps.c (struct interp_factory): Add constructor.
4424 (interp_factory_p): Remove typedef.
4425 (DEF_VEC_P(interp_factory_p)): Remove.
4426 (interpreter_factories): Change type to std::vector.
4427 (interp_factory_register): Adjust.
4428 (interp_lookup): Adjust.
4429 (interpreter_completer): Adjust.
4430
4431 2017-10-19 Tom Tromey <tom@tromey.com>
4432
4433 * break-catch-syscall.c (catch_syscall_completer): Use
4434 std::string, gdb::unique_xmalloc_ptr.
4435
4436 2017-10-19 Tom Tromey <tom@tromey.com>
4437
4438 * infcall.c (call_function_by_hand_dummy): Use std::string.
4439
4440 2017-10-19 Tom Tromey <tom@tromey.com>
4441
4442 * mi/mi-main.c (mi_cmd_execute): Update.
4443 * top.h (prepare_execute_command): Return scoped_value_mark.
4444 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
4445 Add move constructor.
4446 * top.c (prepare_execute_command): Return scoped_value_mark.
4447 (execute_command): Update.
4448
4449 2017-10-19 Pedro Alves <palves@redhat.com>
4450
4451 * xml-support.c (xml_fetch_content_from_file): Check fread's
4452 return.
4453
4454 2017-10-19 Pedro Alves <palves@redhat.com>
4455
4456 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
4457 async.
4458 (handle_error_fd): New function.
4459 (ser_base_async): Add/delete an event loop file handler for
4460 error_fd.
4461
4462 2017-10-19 Pedro Alves <palves@redhat.com>
4463
4464 * xml-support.c (xml_fetch_content_from_file): Don't read in
4465 chunks. Instead use fseek to determine the file's size, and read
4466 it in one go.
4467
4468 2017-11-18 Keith Seitz <keiths@redhat.com>
4469
4470 * c-exp.y (oper): Canonicalize conversion operators of user-defined
4471 types.
4472 Add whitespace to front of type name.
4473
4474 2017-10-18 Keith Seitz <keiths@redhat.com>
4475
4476 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
4477 DW_AT_accessibility.
4478
4479 2017-10-18 Yao Qi <yao.qi@linaro.org>
4480
4481 * features/tic6x-c62x-linux.c: Remove.
4482
4483 2017-10-17 Tom Tromey <tom@tromey.com>
4484
4485 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
4486 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
4487 (do_mixed_source_and_assembly): Likewise.
4488
4489 2017-10-17 Tom Tromey <tom@tromey.com>
4490
4491 * regcache.c (regcache::xfer_part): Remove assertion.
4492
4493 2017-10-17 Pedro Alves <palves@redhat.com>
4494
4495 * xml-support.c (xml_fetch_content_from_file): Call
4496 unique_ptr::release() instead unique_ptr::get() when passing
4497 through xrealloc.
4498
4499 2017-10-17 Yao Qi <yao.qi@linaro.org>
4500
4501 * regcache.c (regcache::xfer_part): Remove parameters read and
4502 write, add parameter is_raw. All callers are updated.
4503
4504 2017-10-16 Keith Seitz <keiths@redhat.com>
4505
4506 * c-typeprint.c (enum access_specifier): Moved here from
4507 c_type_print_base.
4508 (output_access_specifier): New function.
4509 (c_type_print_base): Consider typedefs when assessing
4510 whether access labels are needed.
4511 Use output_access_specifier as needed.
4512 Output access specifier for typedefs, if needed.
4513 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
4514 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
4515 fields.
4516 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
4517 accessor macros.
4518
4519 2017-10-16 Tom Tromey <tom@tromey.com>
4520
4521 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
4522 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
4523 * target.c (target_fileio_read_stralloc): Update.
4524 * sparc64-tdep.c (adi_is_addr_mapped): Update.
4525 * target.h (target_fileio_read_stralloc): Return
4526 unique_xmalloc_ptr.
4527
4528 2017-10-16 Tom Tromey <tom@tromey.com>
4529
4530 * xml-syscall.c (xml_init_syscalls_info): Update.
4531 * xml-support.c (xinclude_start_include): Update.
4532 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
4533 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
4534 (xml_fetch_content_from_file): Likewise.
4535 * osdata.c (get_osdata): Update.
4536 * target.h (target_read_stralloc, target_get_osdata): Return
4537 unique_xmalloc_ptr.
4538 * solib-aix.c (solib_aix_get_library_list): Update.
4539 * solib-target.c (solib_target_current_sos): Update.
4540 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
4541 * xml-tdesc.c (fetch_available_features_from_target): Update.
4542 (target_fetch_description_xml): Update.
4543 (file_read_description_xml): Update.
4544 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
4545 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
4546 (remote_pid_to_exec_file): Update.
4547 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
4548 (target_get_osdata): Likewise.
4549
4550 2017-10-16 Tom Tromey <tom@tromey.com>
4551
4552 * remote.c (remote_register_number_and_offset): Use std::vector.
4553 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
4554 (putpkt_binary): Use gdb::def_vector.
4555 (compare_sections_command): Use gdb::byte_vector.
4556
4557 2017-10-16 Tom Tromey <tom@tromey.com>
4558
4559 * ppc-linux-nat.c (hwdebug_insert_point): Use
4560 gdb::unique_xmalloc_ptr, XDUP.
4561
4562 2017-10-16 Tom Tromey <tom@tromey.com>
4563
4564 * probe.c (parse_probes): Use std::string.
4565 (info_probes_for_ops, enable_probes_command)
4566 (disable_probes_command): Remove cleanups.
4567
4568 2017-10-16 Tom Tromey <tom@tromey.com>
4569
4570 * buildsym.c (block_compar): Remove.
4571 (end_symtab_get_static_block): Use std::vector.
4572
4573 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
4574
4575 * memrange.h (struct mem_range): Define operator< and operator==.
4576 (mem_range_s): Remove.
4577 (DEF_VEC_O (mem_range_s)): Remove.
4578 (normalize_mem_ranges): Change parameter type to std::vector.
4579 * memrange.c (compare_mem_ranges): Remove.
4580 (normalize_mem_ranges): Change parameter type to std::vector,
4581 adjust to vector change.
4582 * exec.c (section_table_available_memory): Return vector, remove
4583 parameter.
4584 (section_table_read_available_memory): Adjust to std::vector
4585 change.
4586 * remote.c (remote_read_bytes): Adjust to std::vector
4587 change.
4588 * tracepoint.h (traceframe_available_memory): Change parameter
4589 type to std::vector.
4590 * tracepoint.c (traceframe_available_memory): Change parameter
4591 type to std::vector, adjust.
4592 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
4593 std::vector change.
4594 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4595 unittests/memrange-selftests.c.
4596 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
4597 * gdb/unittests/memrange-selftests.c: New file.
4598
4599 2017-10-16 Pedro Alves <palves@redhat.com>
4600
4601 * elfread.c (probe_key_free): Rename range-for variable.
4602 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
4603 (find_probe_by_pc, collect_probes): Rename range-for variable.
4604
4605 2017-10-16 Yao Qi <yao.qi@linaro.org>
4606
4607 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
4608 * features/tic6x-c62x.c: Remove.
4609 * features/tic6x-c64x-linux.c: Remove.
4610 * features/tic6x-c64x.c: Remove.
4611 * features/tic6x-c64xp-linux.c: Remove.
4612 * features/tic6x-c64xp.c: Remove.
4613 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
4614 initialize_tdesc_tic6x_*_linux functions.
4615 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
4616 initialize_tdesc_tic6x_* functions.
4617
4618 2017-10-16 Yao Qi <yao.qi@linaro.org>
4619
4620 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
4621 tic6x-c62x.
4622 * regformats/tic6x-c62x.dat: Remove.
4623 * regformats/tic6x-c64x.dat: Remove.
4624 * regformats/tic6x-c64xp.dat: Remove.
4625
4626 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
4627
4628 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
4629 (the !HAVE_LIBEXPAT version).
4630
4631 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4632
4633 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
4634 const.
4635
4636 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4637
4638 * target.h: Include tracepoint.h.
4639 (enum trace_find_type): Move to tracepoint.h.
4640 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
4641 * tracepoint.h: Don't include target.h
4642 (enum trace_find_type): Move from target.h.
4643 (parse_traceframe_info): Return a unique ptr.
4644 * tracepoint.c (current_traceframe_info): Change type to unique
4645 ptr.
4646 (free_traceframe_info): Remove.
4647 (clear_traceframe_info): Don't manually free
4648 current_traceframe_info.
4649 (free_result): Remove.
4650 (parse_traceframe_info): Return a unique ptr.
4651 (get_traceframe_info): Adjust to unique ptr.
4652 * ctf.c (ctf_traceframe_info): Return a unique ptr.
4653 * remote.c (remote_traceframe_info): Return a unique ptr.
4654 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
4655 ptr.
4656 * target-debug.h (target_debug_print_traceframe_info_up): New
4657 macro.
4658 * target-delegates.c: Regenerate.
4659
4660 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4661
4662 * memrange.h (struct mem_range): Add constructors.
4663 * tracepoint.h (struct traceframe_info) <memory>: Change type to
4664 std::vector<mem_range>.
4665 * tracepoint.c (free_traceframe_info): Don't manually free
4666 vector.
4667 (traceframe_info_start_memory): Adjust to vector change.
4668 (traceframe_available_memory): Likewise.
4669 * tracefile-tfile.c (build_traceframe_info): Likewise.
4670 * ctf.c (ctf_traceframe_info): Likewise.
4671
4672 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4673
4674 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
4675 std::vector<int>.
4676 * tracepoint.c (free_traceframe_info): Deallocate with delete.
4677 (traceframe_info_start_tvar): Adjust to vector change.
4678 (parse_traceframe_info): Allocate with new.
4679 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
4680 vector change.
4681 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
4682 change.
4683 tfile_traceframe_info): Allocate with new.
4684 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
4685 change.
4686
4687 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4688
4689 * tracepoint.c (traceframe_info): Rename to...
4690 (current_traceframe_info): ...this.
4691 (clear_traceframe_info): Adjust.
4692 (get_traceframe_info): Adjust.
4693
4694 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4695
4696 * nat/linux-osdata.c: Include algorithm.
4697 (compare_processes): Remove.
4698 (struct pid_pgid_entry): New struct.
4699 (linux_xfer_osdata_processgroups): Use std::vector instead of
4700 XNEWVEC.
4701
4702 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
4703
4704 * objfiles.h: Don't include symfile.h.
4705 (struct partial_symbol): Remove forward-declaration.
4706 (struct objfile) <global_psymbols, static_psymbols>: Change type
4707 to std::vector<partial_symbol *>.
4708 * objfiles.c (objfile::objfile): Don't memset those fields.
4709 (objfile::~objfile): Don't free those fields.
4710 * psympriv.h (struct psymbol_allocation_list): Remove
4711 forward-declaration.
4712 (add_psymbol_to_list): Change psymbol_allocation_list parameter
4713 to std::vector.
4714 (start_psymtab_common): Change parameters to std::vector.
4715 * psymtab.c: Include algorithm.
4716 (require_partial_symbols): Call shrink_to_fit.
4717 (find_pc_sect_psymbol): Adjust to vector change.
4718 (match_partial_symbol): Likewise.
4719 (lookup_partial_symbol): Likewise.
4720 (psym_relocate): Likewise.
4721 (dump_psymtab): Likewise.
4722 (recursively_search_psymtabs): Likewise.
4723 (compare_psymbols): Remove.
4724 (sort_pst_symbols): Adjust to vector change.
4725 (start_psymtab_common): Likewise.
4726 (end_psymtab_common): Likewise.
4727 (psymbol_bcache_full): De-constify return value.
4728 (add_psymbol_to_bcache): Likewise.
4729 (extend_psymbol_list): Remove.
4730 (append_psymbol_to_list): Adjust to vector change.
4731 (add_psymbol_to_list): Likewise.
4732 (init_psymbol_list): Likewise.
4733 (maintenance_info_psymtabs): Likewise.
4734 (maintenance_check_psymtabs): Likewise.
4735 * symfile.h (struct psymbol_allocation_list): Remove.
4736 * symfile.c (reread_symbols): Adjust to vector change.
4737 * dbxread.c (start_psymtab): Change type of parameters.
4738 (dbx_symfile_read): Adjust to vector change.
4739 (read_dbx_symtab): Likewise.
4740 (start_psymtab): Change type of parameters.
4741 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
4742 (create_partial_symtab): Likewise.
4743 (add_partial_symbol): Likewise.
4744 (write_one_signatured_type): Likewise.
4745 (recursively_write_psymbols): Likewise.
4746 * mdebugread.c (parse_partial_symbols): Likewise.
4747 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
4748 (scan_xcoff_symtab): Adjust to vector change.
4749 (xcoff_initial_scan): Likewise.
4750
4751 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
4752
4753 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
4754
4755 2017-10-13 Yao Qi <yao.qi@linaro.org>
4756
4757 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
4758 Remove s390x-*-expedite, add s390x-expedite.
4759
4760 2017-10-13 Yao Qi <yao.qi@linaro.org>
4761
4762 * features/s390-gs-linux64.c: Regenerated.
4763 * features/s390x-gs-linux64.c: Regenerated.
4764
4765 2017-10-13 Tom Tromey <tom@tromey.com>
4766
4767 * compile/compile-object-run.c (do_module_cleanup): Use delete.
4768 * solib.c (update_solib_list, reload_shared_libraries_1): Use
4769 delete.
4770 * symfile.c (symbol_file_add_with_addrs): Use new.
4771 (symbol_file_add_separate): Update comment.
4772 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
4773 * jit.c (jit_object_close_impl): Use new.
4774 (jit_unregister_code): Use delete.
4775 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
4776 (~objfile): Rename from free_objfile.
4777 (free_objfile_separate_debug, do_free_objfile_cleanup)
4778 (free_all_objfiles, objfile_purge_solibs): Use delete.
4779 * objfiles.h (struct objfile): Add constructor and destructor.
4780 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
4781 (allocate_objfile, free_objfile): Don't declare.
4782 (struct objstats): Add initializers.
4783
4784 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4785
4786 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
4787 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
4788 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
4789 * gdbarch.h: Regenerate.
4790 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
4791 Adjust comment.
4792 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
4793 (i386_displaced_step_fixup): Adjust comment.
4794 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
4795
4796 2017-10-12 Tom Tromey <tom@tromey.com>
4797
4798 * prologue-value.h (pv_area::store_would_trash): Return bool.
4799 (pv_area::find_reg): Likewise.
4800 * prologue-value.c (pv_area::store_would_trash): Return bool.
4801 (pv_area::find_reg): Likewise.
4802
4803 2017-10-12 Tom Tromey <tom@tromey.com>
4804
4805 * s390-linux-tdep.c (s390_store, s390_load)
4806 (s390_check_for_saved, s390_analyze_prologue): Update.
4807 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
4808 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
4809 * prologue-value.h (class pv_area): Move from prologue-value.c.
4810 Change names of members. Add constructor, destructor, member
4811 functions.
4812 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
4813 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
4814 (pv_area_fetch, pv_area_scan): Don't declare.
4815 * prologue-value.c (struct pv_area::area_entry): Now member of
4816 pv_area.
4817 (struct pv_area): Move to prologue-value.h.
4818 (pv_area::pv_area): Rename from make_pv_area.
4819 (pv_area::~pv_area): Rename from free_pv_area.
4820 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
4821 (clear_entries, find_entry, overlaps, store_would_trash, store)
4822 (fetch, find_reg, scan): Now member of pv_area.
4823 Remove "area" argument. Update.
4824 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
4825 Update.
4826 * mn10300-tdep.c (push_reg, check_for_saved)
4827 (mn10300_analyze_prologue): Update.
4828 * mep-tdep.c (is_arg_spill, check_for_saved)
4829 (mep_analyze_prologue): Update.
4830 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
4831 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
4832 (m32c_is_struct_return, m32c_analyze_prologue): Update.
4833 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
4834 Update.
4835 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
4836 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
4837
4838 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4839
4840 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4841 * linux-nat.c (linux_nat_delete_thread): New variable.
4842 (lwp_free): Invoke linux_nat_delete_thread if set.
4843 (linux_nat_set_delete_thread): New function.
4844 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
4845 thread delete callback.
4846 * arm-linux-nat.c (arm_linux_delete_thread): New function.
4847 (_initialize_arm_linux_nat): Assign thread delete callback.
4848 * s390-linux-nat.c (s390_delete_thread): New function.
4849 (_initialize_s390_nat): Assign thread delete callback.
4850 * x86-linux-nat.c (x86_linux_add_target): Likewise.
4851 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
4852 function.
4853 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
4854 declaration.
4855 * nat/x86-linux.c (x86_linux_delete_thread): New function.
4856 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
4857
4858 2017-10-09 Tom Tromey <tom@tromey.com>
4859
4860 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
4861 std::string.
4862 * tui/tui-layout.c (enum tui_status): Use std::string.
4863
4864 2017-10-11 Tom Tromey <tom@tromey.com>
4865
4866 * gdbthread.h (thread_command): Constify.
4867 * inferior.h (detach_command): Constify.
4868 * top.h (set_history, show_history): Constify.
4869 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
4870 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
4871 * bsd-kvm.c (bsd_kvm_cmd): Constify.
4872 * printcmd.c (set_command): Constify.
4873 (non_const_set_command): New function.
4874 * dcache.c (set_dcache_command, show_dcache_command): Constify.
4875 * breakpoint.c (enable_command, disable_command, delete_command)
4876 (catch_command, tcatch_command, set_breakpoint_cmd)
4877 (show_breakpoint_cmd): Constify.
4878 * macrocmd.c (macro_command): Constify.
4879 * infcmd.c (unset_command, kill_command, detach_command)
4880 (info_proc_cmd): Constify.
4881 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
4882 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
4883 (info_auto_load_cmd): Constify.
4884 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
4885 (unset_tdesc_cmd): Constify.
4886 * ada-lang.c (set_ada_command, show_ada_command)
4887 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
4888 * guile/guile.c (set_guile_command, show_guile_command)
4889 (info_guile_command): Constify.
4890 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
4891 Constify.
4892 * skip.c (skip_command): Constify.
4893 * compile/compile.c (_initialize_compile): Constify.
4894 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
4895 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
4896 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
4897 (maint_btrace_pt_show_cmd): Constify.
4898 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
4899 Constify.
4900 * python/python.c (user_show_python, user_set_python): Constify.
4901 * mips-tdep.c (set_mips_command, show_mips_command)
4902 (set_mipsfpu_command): Constify.
4903 * record-btrace.c (cmd_record_btrace_start)
4904 (cmd_set_record_btrace, cmd_show_record_btrace)
4905 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
4906 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
4907 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
4908 Constify.
4909 * symfile.c (overlay_command): Constify.
4910 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
4911 * cli/cli-logging.c (set_logging_command, show_logging_command):
4912 Constify.
4913 * cli/cli-dump.c (dump_command, append_command)
4914 (srec_dump_command, ihex_dump_command, verilog_dump_command)
4915 (tekhex_dump_command, binary_dump_command)
4916 (binary_append_command): Constify.
4917 * cli/cli-decode.c (struct cmd_list_element): Change type of
4918 "fun".
4919 * cli/cli-cmds.c (info_command, show_command, set_debug)
4920 (show_debug): Constify.
4921 (show_command): Add non-const overload.
4922 * top.c (set_history, show_history): Constify.
4923 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
4924 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
4925 * target.c (target_command): Constify.
4926 * sparc64-tdep.c (info_adi_command): Constify.
4927 * record-full.c (cmd_record_full_start): Constify.
4928 (set_record_full_command): Constify. Fix typo.
4929 (show_record_full_command): Constify.
4930 * thread.c (thread_command, thread_apply_command): Constify.
4931 * memattr.c (dummy_cmd): Constify.
4932 * value.c (function_command): Constify.
4933 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
4934 * probe.c (info_probes_command): Constify.
4935 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
4936 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
4937 (show_thread_cmd, set_thread_default_cmd)
4938 (show_thread_default_cmd): Constify.
4939 (check_empty): Constify.
4940 * tracepoint.c (tfind_command): Constify.
4941 * cp-support.c (maint_cplus_command): Constify.
4942 * windows-tdep.c (info_w32_command): Constify.
4943 * record.c (cmd_record_start, set_record_command)
4944 (show_record_command, info_record_command, cmd_record_goto):
4945 Constify.
4946 * ravenscar-thread.c (set_ravenscar_command)
4947 (show_ravenscar_command): Constify.
4948 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4949 Constify.
4950 (add_internal_problem_command): Remove casts.
4951 * arc-tdep.c (maintenance_print_arc_command): Constify.
4952 * valprint.c (set_print, show_print, set_print_raw)
4953 (show_print_raw): Constify.
4954 * maint.c (maintenance_command, maintenance_info_command)
4955 (maintenance_print_command, maintenance_set_cmd)
4956 (maintenance_show_cmd, set_per_command_cmd)
4957 (show_per_command_cmd, maintenance_check_command): Constify.
4958 * language.c (set_check, show_check): Constify.
4959 * typeprint.c (show_print_type, set_print_type): Constify.
4960 * go32-nat.c (go32_info_dos_command): Constify.
4961
4962 2017-10-11 Tom Tromey <tom@tromey.com>
4963
4964 * breakpoint.c (prepare_re_set_context): Remove.
4965 (breakpoint_re_set_one): Update. Don't use cleanups.
4966 (breakpoint_re_set): Use scoped_restore, std::string, and
4967 scoped_restore_current_language.
4968
4969 2017-10-11 Tom Tromey <tom@tromey.com>
4970
4971 * breakpoint.c (commands_command_1): Use std::string.
4972 (cleanup_executing_breakpoints): Remove.
4973 (bpstat_do_actions_1): Use scoped_restore.
4974 (bpstat_check_watchpoint): Use std::string.
4975 (decode_static_tracepoint_spec): Likewise.
4976 (break_range_command): Likewise.
4977 (watch_command_1): Likewise.
4978 (compare_breakpoints): Change argument types.
4979 (clear_command): Use std::vector.
4980 (cleanup_executing_breakpoints): Remove.
4981 (update_global_location_list): Use unique_xmalloc_ptr.
4982 (strace_command): Remove unused declaration.
4983
4984 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4985
4986 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
4987 * NEWS: Mention new FreeBSD/arm native configuration.
4988 * configure.host: Add arm*-*-freebsd*.
4989 * configure.nat: Likewise.
4990 * arm-fbsd-nat.c: New file.
4991
4992 2017-10-11 John Baldwin <jhb@FreeBSD.org>
4993
4994 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
4995 (ALLDEPFILES): Add arm-fbsd-tdep.c.
4996 * NEWS: Mention new FreeBSD/arm target.
4997 * configure.tgt: Add arm*-*-freebsd*.
4998 * arm-fbsd-tdep.c: New file.
4999 * arm-fbsd-tdep.h: New file.
5000
5001 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5002
5003 * linux-tdep.c (linux_make_corefile_notes): Remove call to
5004 `gdbarch_elfcore_write_linux_prpsinfo'.
5005 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
5006 method.
5007 (elf_internal_linux_prpsinfo): Remove declaration.
5008 * gdbarch.h: Regenerate.
5009 * gdbarch.c: Regenerate.
5010
5011 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
5012
5013 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
5014 `set_gdbarch_elfcore_write_linux_prpsinfo'.
5015
5016 2017-10-11 Pedro Alves <palves@redhat.com>
5017
5018 * breakpoint.c (reattach_breakpoints): Delete.
5019 * breakpoint.h (reattach_breakpoints): Delete.
5020
5021 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
5022
5023 * symfile.c (registered_sym_fns): Make struct, not typedef.
5024 (DEF_VEC_O (registered_sym_fns)): Remove.
5025 (symtab_fns): Change type to std::vector.
5026 (add_symtab_fns): Adjust.
5027 (find_sym_fns): Adjust.
5028
5029 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
5030
5031 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
5032 * arc-tdep.h (arc_arch_is_em): New function.
5033 (arc_arch_is_hs): Likewise.
5034
5035 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
5036
5037 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
5038 parentheses in the declaration.
5039 (macro_lookup_inclusion): Likewise.
5040 (macro_lookup_definition): Likewise.
5041 * p-lang.h (pascal_builtin_types): Likewise.
5042 * tui/tui-data.c (tui_win_list): Likewise.
5043 * tui/tui-data.h (tui_win_list): Likewise.
5044 * utils.h (make_cleanup_free_section_addr_info): Likewise.
5045
5046 2017-10-11 Mark Rages <markrages@gmail.com>
5047
5048 * target-memory.c (block_boundaries): Fix for block address not
5049 aligned on block size.
5050
5051 2017-10-10 Pedro Alves <palves@redhat.com>
5052 Tom Tromey <tom@tromey.com>
5053
5054 * breakpoint.c (struct captured_breakpoint_query_args)
5055 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
5056 (print_breakpoint): New.
5057 * breakpoint.h (print_breakpoint): Declare.
5058 * common/common-exceptions.h (enum return_reason): Remove
5059 references to catch_exceptions.
5060 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
5061 Delete.
5062 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
5063 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
5064 * gdb.h: Delete.
5065 * gdbthread.h (thread_select): Declare.
5066 * mi/mi-cmd-break.c: Don't include gdb.h.
5067 (breakpoint_notify): Use print_breakpoint.
5068 * mi/mi-cmd-catch.c: Don't include gdb.h.
5069 * mi/mi-interp.c: Don't include gdb.h.
5070 (mi_print_breakpoint_for_event): New.
5071 (mi_breakpoint_created, mi_breakpoint_modified): Use
5072 mi_print_breakpoint_for_event.
5073 * mi/mi-main.c: Don't include gdb.h.
5074 (mi_cmd_thread_select): Parse the global thread ID here. Use
5075 thread_select instead of gdb_thread_select.
5076 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
5077 of using gdb_list_thread_ids.
5078 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
5079 FILEIO_ENOSYS here.
5080 (remote_fileio_request): Use TRY/CATCH instead of
5081 catch_exceptions.
5082 * symfile-mem.c (struct symbol_file_add_from_memory_args)
5083 (symbol_file_add_from_memory_wrapper): Delete.
5084 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
5085 * thread.c: Don't include gdb.h.
5086 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
5087 (thread_alive): Use thread_select.
5088 (do_captured_thread_select): Delete, parts salvaged as ...
5089 (thread_select): ... this new function.
5090 (gdb_thread_select): Delete.
5091
5092 2017-10-10 Pedro Alves <palves@redhat.com>
5093 Tom Tromey <tom@tromey.com>
5094
5095 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
5096 and reverse logic.
5097 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
5098 No longer macros. Instead ...
5099 (enum wp_check_result): They're now values of this new
5100 enumeration.
5101 (watchpoint_check): Change return type to wp_check_result and
5102 parameter type to bpstat.
5103 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
5104 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
5105 catch_errors. Reverse logic of watchpoint_check call.
5106 (breakpoint_re_set_one): Now returns void and takes a breakpoint
5107 pointer as parameter.
5108 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
5109 * common/common-exceptions.c (throw_exception_sjlj): Update
5110 comments to avoid mentioning catch_errors.
5111 * exceptions.c (catch_errors): Delete.
5112 * exceptions.h: Update comments to avoid mentioning catch_errors.
5113 (catch_errors_ftype, catch_errors): Delete.
5114 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
5115 (hook_stop_stub): Delete.
5116 (restore_selected_frame): Change return type to void, and
5117 parameter type to const frame_id &.
5118 (restore_infcall_control_state): Use TRY/CATCH instead of
5119 catch_errors.
5120 * main.c (captured_command_loop): Return void and remove
5121 parameter. Remove references to catch_errors.
5122 (captured_main): Use TRY/CATCH instead of catch_errors.
5123 * objc-lang.c (objc_submethod_helper_data)
5124 (find_objc_msgcall_submethod_helper): Delete.
5125 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
5126 catch_errors.
5127 * record-full.c (record_full_message): Return void.
5128 (record_full_message_args, record_full_message_wrapper): Delete.
5129 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
5130 instead of catch_errors.
5131 * solib-aix.c (solib_aix_open_symbol_file_object): Change
5132 parameter type to int.
5133 * solib-darwin.c (open_symbol_file_object): Ditto.
5134 * solib-dsbt.c (open_symbol_file_object): Ditto.
5135 * solib-frv.c (open_symbol_file_object): Ditto.
5136 * solib-svr4.c (open_symbol_file_object): Ditto.
5137 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
5138 * solib.c (update_solib_list): Use TRY/CATCH instead of
5139 catch_errors.
5140 * solist.h (struct target_so_ops) <open_symbol_file_object>:
5141 Change type.
5142 * symmisc.c (struct print_symbol_args): Remove.
5143 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
5144 (print_symbol): Change type.
5145 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
5146 and remove parameters.
5147 (catch_errors): New.
5148 (get_windows_debug_event): Adjust.
5149
5150 2017-10-09 Tom Tromey <tom@tromey.com>
5151
5152 * mi/mi-main.c (free_splay_tree): Remove.
5153 (list_available_thread_groups): Use splay_tree_up.
5154 * common/gdb_splay_tree.h: New file.
5155
5156 2017-10-09 Tom Tromey <tom@tromey.com>
5157
5158 * mi/mi-main.c (do_nothing): Remove.
5159 (list_available_thread_groups): Update.
5160
5161 2017-10-09 Pedro Alves <palves@redhat.com>
5162
5163 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
5164 reading registers when switching context.
5165
5166 2017-10-09 John Baldwin <jhb@FreeBSD.org>
5167
5168 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
5169 (fbsd_convert_siginfo): Likewise.
5170 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
5171
5172 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
5173
5174 * configure.ac (try_guile_versions): Remove guile-2.2.
5175 * configure: Regenerate.
5176
5177 2017-10-09 Tom Tromey <tom@tromey.com>
5178
5179 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
5180 (COMPILE.pre): Use $(CXX).
5181
5182 2017-10-09 Pedro Alves <palves@redhat.com>
5183
5184 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
5185 Use bool.
5186 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5187 * cp-support.h (cp_remove_params): Now returns a
5188 gdb::unique_xmalloc_ptr.
5189 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
5190 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
5191 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
5192 returning a gdb::unique_xmalloc_ptr.
5193 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
5194 * stack.c (find_frame_funname): Adjust to cp_remove_params
5195 returning a gdb::unique_xmalloc_ptr.
5196
5197 2017-10-08 Tom Tromey <tom@tromey.com>
5198
5199 * dwarf2read.c (dwarf2_get_dwz_file): Use
5200 gdb::unique_xmalloc_ptr.
5201 (find_slot_in_mapped_hash): Likewise.
5202 (dwarf2_physname): Likewise.
5203 (create_dwo_unit_in_dwp_v1): Use std::string.
5204 (create_dwo_unit_in_dwp_v2): Likewise.
5205 (lookup_dwo_cutu): Likewise.
5206 (inherit_abstract_dies): Use std::vector.
5207 (read_array_type): Likewise.
5208 (dwarf_decode_macros): Remove unused declaration.
5209 (unsigned_int_compar): Remove.
5210 (dwarf2_build_psymtabs_hard): Use scoped_restore.
5211 (psymtabs_addrmap_cleanup): Remove.
5212
5213 2017-10-08 Tom Tromey <tom@tromey.com>
5214
5215 * frame-unwind.c (frame_unwind_try_unwinder): Update.
5216 * frame.h (frame_cleanup_after_sniffer): Declare.
5217 (frame_prepare_for_sniffer): Return void.
5218 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
5219 type of argument.
5220 (frame_prepare_for_sniffer): Return void.
5221
5222 2017-10-08 Tom Tromey <tom@tromey.com>
5223
5224 * utils.h (make_cleanup_value_free): Remove.
5225 * utils.c (do_value_free, struct cleanup): Remove.
5226 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
5227 Use gdb_value_up.
5228 * value.h (struct value_deleter): New.
5229 (gdb_value_up): New typedef.
5230
5231 2017-10-08 Tom Tromey <tom@tromey.com>
5232
5233 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
5234 (make_cleanup_free_search_symbols): Remove.
5235 (search_symbols): Return std::vector.
5236 (symbol_search::compare_search_syms): Now member of
5237 symbol_search. Change arguments.
5238 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
5239 (symtab_symbol_info, rbreak_command): Update.
5240 * symtab.h (struct symbol_search) <next>: Remove.
5241 Add constructors.
5242 (symbol_search::operator<): New function.
5243 (symbol_search::operator==): New function.
5244 (search_symbols): Remove std::vector.
5245 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
5246 (symbol_search::compare_search_syms): Declare.
5247
5248 2017-10-06 Yao Qi <yao.qi@linaro.org>
5249
5250 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
5251 arch/aarch64-insn.o.
5252 Remove one rule.
5253 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
5254
5255 2017-10-06 Yao Qi <yao.qi@linaro.org>
5256
5257 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
5258 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
5259 arch/arm-linux.o respectively.
5260 * configure.tgt: Likewise.
5261
5262 2017-10-06 Yao Qi <yao.qi@linaro.org>
5263
5264 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
5265 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
5266
5267 2017-10-06 Pedro Alves <palves@redhat.com>
5268
5269 * windows-nat.c: Include <algorithm>.
5270
5271 2017-10-06 Yao Qi <yao.qi@linaro.org>
5272
5273 * configure.tgt (i386_tobjs): New variable.
5274 (amd64_tobjs): New variable.
5275 Set $cpu_obs and $os_obs.
5276
5277 2017-10-06 Yao Qi <yao.qi@linaro.org>
5278
5279 * Makefile.in (CONFIG_SRC_SUBDIR): New.
5280 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
5281 (clean): Remove object files and dependency files.
5282 (distclean): Remove the directory.
5283 * configure.ac: Invoke AC_CONFIG_COMMANDS.
5284 * configure: Re-generated.
5285 * configure.tgt: Replace amd64.o with arch/amd64.o.
5286
5287 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
5288
5289 PR build/22188
5290 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
5291 and SETEND.
5292
5293 2017-10-05 Pedro Alves <palves@redhat.com>
5294
5295 * linux-nat.c (linux_child_follow_fork): When following the parent
5296 and detaching the child, consult the parent thread's architecture
5297 instead of the child's.
5298
5299 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5300
5301 * ax.h: Do not include "doublest.h".
5302 (union agent_val): Remove.
5303
5304 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5305
5306 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
5307 (decimal_to_string): Return std::string object.
5308 (decimal_from_string): Accept std::string object. Return bool.
5309 (decimal_from_integral, decimal_from_doublest): Remove.
5310 (decimal_from_longest): Add prototype.
5311 (decimal_from_ulongest): Likewise.
5312 (decimal_to_longest): Likewise.
5313 (decimal_from_doublest): Likewise.
5314 * dfp.c: Do not include "gdbtypes.h" or "value.h".
5315 (MAX_DECIMAL_STRING): Move here.
5316 (decimal_to_string): Return std::string object.
5317 (decimal_from_string): Accept std::string object. Return bool.
5318 (decimal_from_integral): Remove, replace by ...
5319 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
5320 (decimal_to_longest): New function.
5321 (decimal_from_floating): Remove, replace by ...
5322 (decimal_from_doublest): ... this new function.
5323 (decimal_to_doublest): Update to new decimal_to_string interface.
5324
5325 * value.c (unpack_long): Use decimal_to_longest.
5326 * valops.c (value_cast): Use decimal_from_doublest instead of
5327 decimal_from_floating. Use decimal_from_[u]longest isntead of
5328 decimal_from_integral.
5329 * valarith.c (value_args_as_decimal): Likewise.
5330 * valprint.c (print_decimal_floating): Update to new
5331 decimal_to_string interface.
5332 * printcmd.c (printf_decfloat): Likewise.
5333 * c-exp.y (parse_number): Update to new decimal_from_string interface.
5334
5335 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
5336
5337 * doublest.h: Do not include "floatformat.h". Remove stale comments.
5338 * gdbtypes.c: Include "floatformat.h".
5339 * value.c: Likewise.
5340 * m68k-tdep.c: Likewise.
5341
5342 * findvar.c: Do not include "floatformat.h".
5343 * amd64-darwin-tdep.c: Likewise.
5344 * arm-linux-tdep.c: Likewise.
5345 * i386-darwin-tdep.c: Likewise.
5346 * i387-tdep.c: Likewise.
5347 * m68k-linux-tdep.c: Likewise.
5348 * mep-tdep.c: Likewise.
5349 * mips-tdep.c: Likewise.
5350 * nios2-tdep.c: Likewise.
5351 * s390-linux-tdep.c: Likewise.
5352 * sparc-obsd-tdep.c: Likewise.
5353 * sparc-tdep.c: Likewise.
5354 * sparc64-tdep.c: Likewise.
5355 * spu-tdep.c: Likewise.
5356 * tic6x-tdep.c: Likewise.
5357 * tilegx-tdep.c: Likewise.
5358 * vax-tdep.c: Likewise.
5359 * xstormy16-tdep.c: Likewise.
5360 * xtensa-tdep.c: Likewise.
5361
5362 * top.c: Do not include "doublest.h".
5363 * aarch64-tdep.c: Likewise.
5364 * alpha-tdep.c: Likewise.
5365 * arm-linux-tdep.c: Likewise.
5366 * m68k-linux-tdep.c: Likewise.
5367 * tilegx-tdep.c: Likewise.
5368 * xstormy16-tdep.c: Likewise.
5369
5370 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5371
5372 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
5373 (mipsn32_fbsd_sigframe): Define.
5374 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
5375 for FreeBSD/mipsn32.
5376
5377 2017-10-05 John Baldwin <jhb@FreeBSD.org>
5378
5379 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
5380 AT_HWCAP.
5381
5382 2017-10-05 Tristan Gingold <tgingold@free.fr>
5383
5384 * MAINTAINERS (Misc): Update my email address.
5385
5386 2017-10-04 Pedro Alves <palves@redhat.com>
5387
5388 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
5389 it instead of target_gdbarch.
5390 (get_remote_state, get_remote_packet_size): Adjust
5391 get_remote_arch_state calls, passing down target_gdbarch
5392 explicitly.
5393 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
5394 'gdbarch' and use it instead of target_gdbarch.
5395 (get_memory_packet_size): Adjust get_remote_arch_state calls,
5396 passing down target_gdbarch explicitly.
5397 (struct stop_reply) <arch>: New field.
5398 (remote_parse_stop_reply): Use the stopped thread's architecture,
5399 not the current inferior's. Save the architecture in the
5400 stop_reply.
5401 (process_stop_reply): Use the stop reply's architecture.
5402 (process_g_packet, remote_fetch_registers)
5403 (remote_prepare_to_store, store_registers_using_G)
5404 (remote_store_registers): Adjust get_remote_arch_state calls,
5405 using the regcache's architecture.
5406 (remote_get_trace_status): Adjust get_remote_arch_state calls,
5407 passing down target_gdbarch explicitly.
5408 * spu-multiarch.c (spu_thread_architecture): Defer to the target
5409 beneath instead of calling target_gdbarch.
5410 * target.c (default_thread_architecture): Use the specified
5411 inferior's architecture, instead of the current inferior's
5412 architecture (via target_gdbarch).
5413
5414 2017-10-04 Pedro Alves <palves@redhat.com>
5415
5416 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
5417 case.
5418 (regcache_print): Handle !target_has_registers here instead.
5419
5420 2017-10-04 Pedro Alves <palves@redhat.com>
5421
5422 * frame.c (create_test_frame): Delete.
5423 * frame.h (create_test_frame): Delete.
5424 * gdbarch-selftests.c: Include gdbthread.h and target.h.
5425 (class regcache_test): Delete.
5426 (test_target_has_registers, test_target_has_stack)
5427 (test_target_has_memory, test_target_prepare_to_store)
5428 (test_target_store_registers): New functions.
5429 (test_target_ops): New class.
5430 (register_to_value_test): Error out if there's already a
5431 process_stratum (or higher) target pushed. Create a fuller mock
5432 environment, with mock target_ops, inferior, address space, thread
5433 and inferior_ptid.
5434 * progspace.c (struct address_space): Move to ...
5435 * progspace.h (struct address_space): ... here.
5436 * regcache.h (regcache::~regcache, regcache::raw_write)
5437 [GDB_SELF_TEST]: No longer virtual.
5438
5439 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
5440
5441 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
5442
5443 2017-10-04 Pedro Alves <palves@redhat.com>
5444
5445 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
5446 out of 'between TRY and CATCH'.
5447
5448 2017-10-04 Pedro Alves <palves@redhat.com>
5449
5450 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
5451 * common/common-exceptions.h (TRY): Open an outermost scope.
5452 Expand intro comment.
5453 (CATCH): Reindent.
5454 (END_CATCH): Close the outermost scope.
5455 * completer.c (complete_line_internal): Add missing END_CATCH.
5456
5457 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5458
5459 * NEWS (Changes since GDB 8.0): Add entry about new
5460 'set-cwd-on-gdbserver' feature.
5461 (New remote packets): Add entry for QSetWorkingDir.
5462 * common/common-inferior.h (set_inferior_cwd): New prototype.
5463 * infcmd.c (set_inferior_cwd): Remove "static".
5464 (show_cwd_command): Expand text to include remote debugging.
5465 * remote.c: Add PACKET_QSetWorkingDir.
5466 (remote_protocol_features) <QSetWorkingDir>: New entry for
5467 PACKET_QSetWorkingDir.
5468 (extended_remote_set_inferior_cwd): New function.
5469 (extended_remote_create_inferior): Call
5470 "extended_remote_set_inferior_cwd".
5471 (_initialize_remote): Call "add_packet_config_cmd" for
5472 QSetWorkingDir.
5473
5474 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5475
5476 * NEWS (New commands): Mention "set/show cwd".
5477 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
5478 "cd" command's help text.
5479 * common/common-inferior.h (get_inferior_cwd): New prototype.
5480 * infcmd.c (inferior_cwd_scratch): New global variable.
5481 (set_inferior_cwd): New function.
5482 (get_inferior_cwd): Likewise.
5483 (set_cwd_command): Likewise.
5484 (show_cwd_command): Likewise.
5485 (_initialize_infcmd): Add "set/show cwd" commands.
5486 * inferior.h (class inferior) <cwd>: New field.
5487 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
5488 (fork_inferior): Change inferior's cwd before its execution.
5489 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
5490 to CreateProcess.
5491
5492 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
5493
5494 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
5495 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
5496 (COMMON_OBS): Add gdb_tilde_expand.o.
5497 * common/gdb_tilde_expand.c: New file.
5498 * common/gdb_tilde_expand.h: Likewise.
5499
5500 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
5501
5502 * gdbarch.sh (objfile): Remove duplicate declaration.
5503 * gdbarch.h: Regenerate.
5504
5505 2017-10-03 Tom Tromey <tom@tromey.com>
5506
5507 * utils.c (internal_vproblem): Use string_vprintf.
5508
5509 2017-10-03 Tom Tromey <tom@tromey.com>
5510
5511 * printcmd.c (info_symbol_command): Use std::string.
5512
5513 2017-10-03 Tom Tromey <tom@tromey.com>
5514
5515 * top.c (gdb_safe_append_history): Use std::string.
5516
5517 2017-10-03 Tom Tromey <tom@tromey.com>
5518
5519 * event-top.c (stdin_event_handler): Update.
5520 * main.c (captured_main_1): Update.
5521 * top.h (make_delete_ui_cleanup): Remove.
5522 (struct ui): Add constructor and destructor.
5523 (new_ui, delete_ui): Remove.
5524 * top.c (make_delete_ui_cleanup): Remove.
5525 (new_ui_command): Use std::unique_ptr.
5526 (delete_ui_cleanup): Remove.
5527 (ui::ui): Rename from new_ui. Update.
5528 (free_ui): Remove.
5529 (ui::~ui): Rename from delete_ui. Update.
5530
5531 2017-10-03 Tom Tromey <tom@tromey.com>
5532
5533 * symfile.c (load_progress): Use gdb::byte_vector.
5534
5535 2017-10-03 Tom Tromey <tom@tromey.com>
5536
5537 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
5538 declaration.
5539 * printcmd.c (x_command): Remove unused declaration.
5540 * symfile.c (symbol_file_command): Remove unused declaration.
5541
5542 2017-10-03 Tom Tromey <tom@tromey.com>
5543
5544 * utils.c (internal_vproblem): Use std::string.
5545 (defaulted_query): Likewise.
5546
5547 2017-10-03 Tom Tromey <tom@tromey.com>
5548
5549 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
5550 * top.c (execute_command_to_string): Update.
5551 * utils.c (make_cleanup_restore_page_info): Remove.
5552 (do_restore_page_info_cleanup): Remove.
5553 (set_batch_flag_and_restore_page_info):
5554 New.
5555 (make_cleanup_restore_page_info): Remove.
5556 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5557 (~set_batch_flag_and_restore_page_info): New
5558 (make_cleanup_restore_uinteger): Remove.
5559 (make_cleanup_restore_integer): Remove.
5560 (struct restore_integer_closure): Remove.
5561 (restore_integer): Remove.
5562 * utils.h (struct set_batch_flag_and_restore_page_info): New
5563 class.
5564 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
5565 (make_cleanup_restore_page_info): Remove.
5566 (make_cleanup_restore_uinteger) Remove.
5567 (make_cleanup_restore_integer) Remove.
5568
5569 2017-10-03 Tom Tromey <tom@tromey.com>
5570
5571 * record-full.h (record_full_gdb_operation_disable_set): Return
5572 scoped_restore_tmpl<int>.
5573 * infrun.c (adjust_pc_after_break): Update.
5574 (handle_signal_stop): Update.
5575 * record-full.c (record_full_gdb_operation_disable_set): Return
5576 scoped_restore_tmpl<int>.
5577 (record_full_wait_1, record_full_insert_breakpoint)
5578 (record_full_remove_breakpoint, record_full_save)
5579 (record_full_goto_insn): Update.
5580
5581 2017-10-02 Tom Tromey <tom@tromey.com>
5582
5583 PR rust/22236:
5584 * rust-lang.c (rust_val_print_str): New function.
5585 (val_print_struct): Call it.
5586 (rust_subscript): Preserve name of slice type.
5587
5588 2017-10-02 Tom Tromey <tom@tromey.com>
5589
5590 * rust-lang.c (rust_subscript): Handle slices in
5591 EVAL_AVOID_SIDE_EFFECTS case.
5592
5593 2017-10-02 Tom Tromey <tom@tromey.com>
5594
5595 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
5596
5597 2017-10-02 Tom Tromey <tom@tromey.com>
5598
5599 * rust-lang.h (rust_slice_type): Add "extern".
5600
5601 2017-10-02 Tom Tromey <tom@tromey.com>
5602 Pedro Alves <palves@redhat.com>
5603
5604 * ada-lang.h (ada_exc_info::operator<): Make const.
5605 (ada_exc_info::operator==): Make const.
5606 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
5607 Make const.
5608
5609 2017-09-29 Tom Tromey <tom@tromey.com>
5610
5611 * target.c (read_whatever_is_readable): Change type of "result".
5612 Update.
5613 (free_memory_read_result_vector): Remove.
5614 (read_memory_robust): Change return type. Update.
5615 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
5616 bin2hex, std::string.
5617 * target.h (memory_read_result_s): Remove typedef.
5618 (free_memory_read_result_vector): Remove.
5619 (read_memory_robust): Return std::vector.
5620
5621 2017-09-29 Tom Tromey <tom@tromey.com>
5622
5623 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
5624
5625 2017-09-29 Tom Tromey <tom@tromey.com>
5626
5627 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
5628 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
5629 operator< and operator==.
5630 (ada_exceptions_list): Return a std::vector.
5631 * ada-lang.c (ada_exc_info::operator<): Rename from
5632 compare_ada_exception_info.
5633 (ada_exc_info::operator==): New.
5634 (sort_remove_dups_ada_exceptions_list): Change type of
5635 "exceptions".
5636 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
5637 (ada_add_global_exceptions): Likewise.
5638 (ada_exceptions_list_1): Return a std::vector.
5639 (ada_exceptions_list): Likewise.
5640
5641 2017-09-29 Tom Tromey <tom@tromey.com>
5642
5643 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
5644 'std::set *'.
5645 (print_one_inferior): Update.
5646 (free_vector_of_ints): Remove.
5647 (list_available_thread_groups): Change "ids" to std::set.
5648 (mi_cmd_list_thread_groups): Update.
5649 (struct collect_cores_data) <core>: Now a std::set.
5650 (collect_cores): Update.
5651 (unique): Remove.
5652 (print_one_inferior): Update.
5653
5654 2017-09-29 Tom Tromey <tom@tromey.com>
5655
5656 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
5657 (mi_execute_async_cli_command): Likewise.
5658 (mi_cmd_trace_frame_collected): Use field_fmt.
5659
5660 2017-09-29 Tom Tromey <tom@tromey.com>
5661
5662 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
5663 gdb::byte_vector.
5664
5665 2017-09-29 Tom Tromey <tom@tromey.com>
5666
5667 * mi/mi-parse.c (mi_parse): Remove unused declaration.
5668
5669 2017-09-29 Tom Tromey <tom@tromey.com>
5670
5671 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
5672
5673 2017-09-29 Tom Tromey <tom@tromey.com>
5674
5675 * varobj.h (varobj_gen_name): Return std::string.
5676 * varobj.c (varobj_gen_name): Return std::string.
5677 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
5678 (mi_cmd_var_delete): Don't copy "name".
5679
5680 2017-09-29 Tom Tromey <tom@tromey.com>
5681
5682 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
5683 (mi_cmd_break_insert_1): Update.
5684
5685 2017-09-29 Tom Tromey <tom@tromey.com>
5686
5687 * target.h (make_scoped_defer_target_commit_resume): Update.
5688 * target.c (make_scoped_defer_target_commit_resume): Rename from
5689 make_cleanup_defer_target_commit_resume. Return a
5690 scoped_restore.
5691 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
5692
5693 2017-09-29 Tom Tromey <tom@tromey.com>
5694
5695 * main.c (captured_main_1): Remove unused declaration.
5696 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
5697
5698 2017-09-29 Tom Tromey <tom@tromey.com>
5699
5700 * symtab.c (search_symbols): Remove unused outer cleanup.
5701 (make_source_files_completion_list): Remove unused declaration.
5702
5703 2017-09-29 Tom Tromey <tom@tromey.com>
5704
5705 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
5706
5707 2017-09-29 Tom Tromey <tom@tromey.com>
5708
5709 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
5710 gdb::byte_vector.
5711
5712 2017-09-29 Tom Tromey <tom@tromey.com>
5713
5714 * complaints.c (vcomplaint): Use std::string.
5715
5716 2017-09-29 Tom Tromey <tom@tromey.com>
5717
5718 * tracepoint.c (trace_variable_command): Use std::string.
5719 (encode_actions_1): Remove unused declarations.
5720 (create_tsv_from_upload): Use std::string.
5721
5722 2017-09-29 Tom Tromey <tom@tromey.com>
5723
5724 * cp-support.c (gdb_demangle): Use std::string.
5725
5726 2017-09-29 Tom Tromey <tom@tromey.com>
5727
5728 * stack.c (parse_frame_specification): Use std::string
5729 (info_frame_command): Use gdb::unique_xmalloc_ptr.
5730
5731 2017-09-29 Tom Tromey <tom@tromey.com>
5732
5733 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
5734
5735 2017-09-29 Tom Tromey <tom@tromey.com>
5736
5737 * utils.c (vfprintf_maybe_filtered): Use std::string.
5738 (vfprintf_unfiltered): Likewise.
5739
5740 2017-09-29 Tom Tromey <tom@tromey.com>
5741
5742 * event-top.c (top_level_prompt): Return std::string.
5743 (display_gdb_prompt): Update.
5744
5745 2017-09-29 Tom Tromey <tom@tromey.com>
5746
5747 * unittests/common-utils-selftests.c (format): New function.
5748 (string_vprintf_tests): New function.
5749 (_initialize_common_utils_selftests): Register new tests.
5750 * common/common-utils.c (string_vprintf): New function.
5751 * common/common-utils.h (string_vprintf): Declare.
5752
5753 2017-09-29 Pedro Alves <palves@redhat.com>
5754
5755 * common/rsp-low.c (unpack_varlen_hex): Constify.
5756 * common/rsp-low.h (unpack_varlen_hex): Constify.
5757 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5758 Constify.
5759 * remote.c (remote_set_permissions, read_ptid)
5760 (remote_current_thread, remote_get_threads_with_qthreadinfo)
5761 (remote_static_tracepoint_marker_at)
5762 (remote_static_tracepoint_markers_by_strid)
5763 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
5764 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
5765 (parse_tracepoint_definition, parse_tsv_definition)
5766 (parse_static_tracepoint_marker_definition): Constify.
5767 * tracepoint.h (parse_static_tracepoint_marker_definition)
5768 (parse_trace_status, parse_tracepoint_status)
5769 (parse_tracepoint_definition, parse_tsv_definition): Constify.
5770
5771 2017-09-29 Pedro Alves <palves@redhat.com>
5772
5773 * remote.c (target_buf, target_buf_size): Delete.
5774 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
5775 Use the connection's packet buffer instead.
5776 All callers adjusted.
5777 (_initialize_remote): Remove references to target_buf and
5778 target_buf_size.
5779
5780 2017-09-28 Pedro Alves <palves@redhat.com>
5781
5782 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5783 unittests/common-utils-selftests.c.
5784 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
5785 (COMMON_OBS): Remove utils-selftests.o.
5786 * utils-selftests.c: Move to ...
5787 * unittests/common-utils-selftests.c: ... here and rename self
5788 test to "string_printf".
5789
5790 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
5791
5792 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
5793 having NULL cus or tus.
5794
5795 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5796
5797 * arm-tdep.c: (convert_from_extended): Remove.
5798 (convert_to_extended): Likewise.
5799 (arm_extract_return_value): Use convert_typed_floating.
5800 (arm_store_return_value): Likewise.
5801
5802 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5803 * sh-tdep.c: Do not include "floatformat.h".
5804 (sh_littlebyte_bigword_type): New function.
5805 (sh_register_convert_to_virtual): Use convert_typed_floating.
5806 (sh_register_convert_to_raw): Likewise.
5807 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
5808 (sh64_littlebyte_bigword_type): New function.
5809 (sh64_extract_return_value): Use convert_typed_floating.
5810 (sh64_register_convert_to_virtual): Likewise.
5811 (sh64_register_convert_to_raw): Likewise.
5812
5813 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5814
5815 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
5816 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
5817
5818 * gdbtypes.h (union type_specific): Make field floatformat hold
5819 just a single struct floatformat, not an array.
5820 (floatformat_from_type): Move here.
5821 * gdbtypes.c (floatformat_from_type): Move here. Update to
5822 changed TYPE_FLOATFORMAT definition.
5823 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
5824 (recursive_dump_type): Likewise.
5825 (init_float_type): Install correct floatformat for byte order.
5826 (arch_float_type): Likewise.
5827
5828 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
5829
5830 * gdbtypes.c (init_type): Change incoming argument from
5831 length-in-bytes to length-in-bits. Assert length is a
5832 multiple of TARGET_CHAR_BITS.
5833 (arch_type, arch_flags_type): Likewise.
5834 (init_integer_type): Update call to init_type.
5835 (init_character_type): Likewise.
5836 (init_boolean_type): Likewise.
5837 (init_float_type): Likewise.
5838 (init_decfloat_type): Likewise.
5839 (init_complex_type): Likewise.
5840 (init_pointer_type): Likewise.
5841 (objfile_type): Likewise.
5842 (arch_integer_type): Update call to arch_type.
5843 (arch_character_type): Likewise.
5844 (arch_boolean_type): Likewise.
5845 (arch_float_type): Likewise.
5846 (arch_decfloat_type): Likewise.
5847 (arch_complex_type): Likewise.
5848 (arch_pointer_type): Likewise.
5849 (gdbtypes_post_init): Likewise.
5850
5851 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
5852 (read_base_type): Likewise.
5853 * mdebugread.c (basic_type): Likewise.
5854 * stabsread.c (dbx_init_float_type): Likewise.
5855 (rs6000_builtin_type): Likewise.
5856 (read_range_type): Likewise. Also, fix call to init_integer_type
5857 with erroneous length argument.
5858
5859 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
5860 * d-lang.c (build_d_types): Likewise.
5861 * f-lang.c (build_fortran_types): Likewise.
5862 * go-lang.c (build_go_types): Likewise.
5863 * opencl-lang.c (build_opencl_types): Likewise.
5864 * jit.c (finalize_symtab): Likewise.
5865 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5866 (build_std_type_info_type): Likewise.
5867 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
5868 update call to arch_flags_type.
5869
5870 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
5871 arch_type.
5872 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
5873 * windows-tdep.c (windows_get_tlb_type): Likewise.
5874
5875 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
5876 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
5877 * m32c-tdep.c (make_types): Likewise.
5878 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
5879 (rl78_psw_type): Update call to arch_flags_type.
5880 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
5881 * rx-tdep.c (rx_psw_type): Likewise.
5882 (rx_fpsw_type): Likewise.
5883 * sparc-tdep.c (sparc_psr_type): Likewise.
5884 (sparc_fsr_type): Likewise.
5885 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
5886 (sparc64_ccr_type): Likewise.
5887 (sparc64_fsr_type): Likewise.
5888 (sparc64_fprs_type): Likewise.
5889
5890 2017-09-27 Tom Tromey <tom@tromey.com>
5891
5892 * findcmd.c (find_command): Constify.
5893
5894 2017-09-27 Tom Tromey <tom@tromey.com>
5895
5896 * ada-tasks.c (task_command_1, task_command): Constify.
5897
5898 2017-09-27 Tom Tromey <tom@tromey.com>
5899
5900 * symtab.c (maintenance_print_symbol_cache)
5901 (maintenance_flush_symbol_cache)
5902 (maintenance_print_symbol_cache_statistics): Constify.
5903
5904 2017-09-27 Tom Tromey <tom@tromey.com>
5905
5906 * inferior.c (detach_inferior_command, kill_inferior_command)
5907 (inferior_command): Constify.
5908
5909 2017-09-27 Tom Tromey <tom@tromey.com>
5910
5911 * regcache.c (regcache_print, maintenance_print_registers)
5912 (maintenance_print_raw_registers)
5913 (maintenance_print_cooked_registers)
5914 (maintenance_print_register_groups)
5915 (maintenance_print_remote_registers): Constify.
5916
5917 2017-09-27 Tom Tromey <tom@tromey.com>
5918
5919 * printcmd.c (map_display_numbers, undisplay_command)
5920 (enable_disable_display_command, enable_display_command)
5921 (disable_display_command): Constify.
5922
5923 2017-09-27 Tom Tromey <tom@tromey.com>
5924
5925 * breakpoint.h (delete_command): Don't declare.
5926 * breakpoint.c (delete_command, enable_once_command)
5927 (enable_count_command, enable_delete_command, breakpoint_1)
5928 (maintenance_info_breakpoints, stopin_command, stopat_command)
5929 (delete_command, delete_trace_command, save_breakpoints)
5930 (save_breakpoints_command, save_tracepoints_command): Constify.
5931
5932 2017-09-27 Tom Tromey <tom@tromey.com>
5933
5934 * macrocmd.c (macro_expand_command, macro_expand_once_command)
5935 (skip_ws, extract_identifier, macro_define_command)
5936 (macro_undef_command, macro_list_command): Constify.
5937
5938 2017-09-27 Tom Tromey <tom@tromey.com>
5939
5940 * infcmd.c (environment_info, set_environment_command)
5941 (unset_environment_command, path_info, info_proc_cmd_1)
5942 (info_proc_cmd_mappings, info_proc_cmd_stat)
5943 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
5944 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
5945
5946 2017-09-27 Tom Tromey <tom@tromey.com>
5947
5948 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
5949 Constify.
5950
5951 2017-09-27 Tom Tromey <tom@tromey.com>
5952
5953 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
5954
5955 2017-09-27 Tom Tromey <tom@tromey.com>
5956
5957 * demangle.c (demangle_command): Constify.
5958
5959 2017-09-27 Tom Tromey <tom@tromey.com>
5960
5961 * progspace.c (maintenance_info_program_spaces_command):
5962 Constify.
5963
5964 2017-09-27 Tom Tromey <tom@tromey.com>
5965
5966 * compile/compile.c (check_raw_argument, compile_file_command)
5967 (compile_code_command, compile_print_command): Constify.
5968
5969 2017-09-27 Tom Tromey <tom@tromey.com>
5970
5971 * reggroups.c (maintenance_print_reggroups): Constify.
5972
5973 2017-09-27 Tom Tromey <tom@tromey.com>
5974
5975 * dwarf2read.c (save_gdb_index_command): Constify.
5976
5977 2017-09-27 Tom Tromey <tom@tromey.com>
5978
5979 * stap-probe.c (info_probes_stap_command): Constify.
5980
5981 2017-09-27 Tom Tromey <tom@tromey.com>
5982
5983 * fork-child.c (unset_exec_wrapper_command): Constify.
5984
5985 2017-09-27 Tom Tromey <tom@tromey.com>
5986
5987 * btrace.c (get_uint, get_context_size, no_chunk)
5988 (maint_btrace_packet_history_cmd)
5989 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5990 (maint_info_btrace_cmd): Constify.
5991
5992 2017-09-27 Tom Tromey <tom@tromey.com>
5993
5994 * reverse.c (delete_bookmark_command): Constify.
5995
5996 2017-09-27 Tom Tromey <tom@tromey.com>
5997
5998 * remote.c (set_memory_packet_size)
5999 (set_memory_write_packet_size, show_memory_write_packet_size)
6000 (set_memory_read_packet_size, show_memory_read_packet_size)
6001 (compare_sections_command, packet_command, remote_put_command)
6002 (remote_get_command, remote_delete_command): Constify.
6003
6004 2017-09-27 Tom Tromey <tom@tromey.com>
6005
6006 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
6007 (set_mipsfpu_double_command, set_mipsfpu_none_command)
6008 (set_mipsfpu_auto_command): Constify.
6009
6010 2017-09-27 Tom Tromey <tom@tromey.com>
6011
6012 * cli/cli-cmds.h (cd_command): Constify.
6013 * cli/cli-cmds.c (cd_command): Constify.
6014
6015 2017-09-27 Tom Tromey <tom@tromey.com>
6016
6017 * thread.c (thread_name_command, thread_find_command): Constify.
6018
6019 2017-09-27 Tom Tromey <tom@tromey.com>
6020
6021 * probe.c (enable_probes_command, disable_probes_command):
6022 Constify.
6023
6024 2017-09-27 Tom Tromey <tom@tromey.com>
6025
6026 * symfile.c (symbol_file_command): Constify.
6027 * gdbcore.h (deprecated_file_changed_hook): Constify.
6028 * exec.c (deprecated_file_changed_hook, exec_file_command)
6029 (file_command): Constify.
6030 * defs.h (symbol_file_command): Constify.
6031
6032 2017-09-27 Tom Tromey <tom@tromey.com>
6033
6034 * remote-fileio.c (set_system_call_allowed)
6035 (show_system_call_allowed): Constify.
6036
6037 2017-09-27 Tom Tromey <tom@tromey.com>
6038
6039 * tracepoint.c (delete_trace_variable_command)
6040 (tfind_end_command, tfind_start_command, tfind_pc_command)
6041 (tfind_tracepoint_command, tfind_line_command)
6042 (tfind_range_command, tfind_outside_command): Constify.
6043
6044 2017-09-27 Tom Tromey <tom@tromey.com>
6045
6046 * ax-gdb.c (maint_agent_printf_command, agent_command)
6047 (agent_eval_command): Constify.
6048
6049 2017-09-27 Tom Tromey <tom@tromey.com>
6050
6051 * tracepoint.c (info_scope_command): Constify.
6052 * python/python.c (gdbpy_decode_line): Constify.
6053 * python/py-breakpoint.c (bppy_init): Constify.
6054 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
6055 * location.h: (new_linespec_location)
6056 (string_to_event_location_basic, string_to_event_location):
6057 Constify.
6058 * location.c (new_linespec_location)
6059 (string_to_event_location_basic, string_to_event_location):
6060 Constify.
6061 * linespec.h (decode_line_with_current_source)
6062 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
6063 * linespec.c (linespec_lex_to_end)
6064 (decode_line_with_current_source)
6065 (decode_line_with_last_displayed): Constify.
6066 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
6067 Constify.
6068 * cli/cli-cmds.c (edit_command, list_command): Constify.
6069 * breakpoint.h (until_break_command, watch_command_wrapper)
6070 (awatch_command_wrapper, rwatch_command_wrapper)
6071 (init_ada_exception_breakpoint): Constify.
6072 * breakpoint.c (break_command_1, dprintf_command)
6073 (break_range_command, watch_command_wrapper)
6074 (rwatch_command_wrapper, awatch_command_wrapper)
6075 (until_break_command, init_ada_exception_breakpoint)
6076 (strace_marker_create_sals_from_location, trace_command)
6077 (ftrace_command, strace_command, struct tracepoint): Constify.
6078 * ax-gdb.c (agent_command_1): Constify.
6079 * ada-lang.c (ada_exception_sal): Constify.
6080
6081 2017-09-27 Tom Tromey <tom@tromey.com>
6082
6083 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
6084 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
6085 (get_context_size, no_chunk, get_insn_history_modifiers)
6086 (cmd_record_insn_history, get_call_history_modifiers)
6087 (cmd_record_call_history): Constify.
6088
6089 2017-09-27 Tom Tromey <tom@tromey.com>
6090
6091 * source.c (show_substitute_path_command)
6092 (unset_substitute_path_command, set_substitute_path_command):
6093 Constify.
6094
6095 2017-09-27 Tom Tromey <tom@tromey.com>
6096
6097 * typeprint.c (maintenance_print_type): Constify.
6098 * maint.c (maintenance_dump_me, maintenance_demangle)
6099 (maintenance_time_display, maintenance_info_sections)
6100 (maintenance_print_statistics, maintenance_deprecate)
6101 (maintenance_undeprecate): Constify.
6102 (maintenance_do_deprecate): Constify. Use std::string.
6103 (maintenance_selftest): Constify.
6104 * gdbtypes.h (maintenance_print_type): Constify.
6105
6106 2017-09-27 Tom Tromey <tom@tromey.com>
6107
6108 * hppa-tdep.c (unwind_command): Constify.
6109
6110 2017-09-27 Tom Tromey <tom@tromey.com>
6111
6112 * target-descriptions.c (unset_tdesc_filename_cmd)
6113 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
6114 Constify.
6115
6116 2017-09-27 Tom Tromey <tom@tromey.com>
6117
6118 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
6119
6120 2017-09-27 Tom Tromey <tom@tromey.com>
6121
6122 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
6123
6124 2017-09-27 Tom Tromey <tom@tromey.com>
6125
6126 * tui/tui-regs.c (tui_reg_command): Constify.
6127
6128 2017-09-27 Tom Tromey <tom@tromey.com>
6129
6130 * skip.c (skip_file_command, skip_function_command)
6131 (skip_enable_command, skip_disable_command, skip_delete_command):
6132 Constify.
6133
6134 2017-09-27 Tom Tromey <tom@tromey.com>
6135
6136 * record-btrace.c (cmd_record_btrace_bts_start)
6137 (cmd_record_btrace_pt_start): Constify.
6138
6139 2017-09-27 Tom Tromey <tom@tromey.com>
6140
6141 * symmisc.c (maintenance_print_symbols)
6142 (maintenance_print_msymbols, maintenance_print_objfiles)
6143 (maintenance_info_symtabs, maintenance_check_symtabs)
6144 (maintenance_expand_symtabs, maintenance_info_line_tables):
6145 Constify.
6146
6147 2017-09-27 Tom Tromey <tom@tromey.com>
6148
6149 * top.c (new_ui_command): Constify.
6150
6151 2017-09-27 Tom Tromey <tom@tromey.com>
6152
6153 * symfile.c (add_symbol_file_command)
6154 (remove_symbol_file_command, list_overlays_command)
6155 (map_overlay_command, unmap_overlay_command)
6156 (overlay_auto_command, overlay_manual_command)
6157 (overlay_off_command, overlay_load_command): Constify.
6158
6159 2017-09-27 Tom Tromey <tom@tromey.com>
6160
6161 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
6162 (info_spu_mailbox_command, info_spu_dma_command)
6163 (info_spu_proxydma_command): Constify.
6164
6165 2017-09-27 Tom Tromey <tom@tromey.com>
6166
6167 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
6168
6169 2017-09-27 Tom Tromey <tom@tromey.com>
6170
6171 * cli/cli-script.c (user_defined_command): Constify.
6172
6173 2017-09-27 Tom Tromey <tom@tromey.com>
6174
6175 * cli/cli-dump.c (dump_memory_command, dump_value_command)
6176 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
6177 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
6178 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
6179 (dump_binary_value, append_binary_memory, append_binary_value):
6180 Constify.
6181 (struct dump_context) <func>: Constify.
6182 (add_dump_command): Update.
6183
6184 2017-09-27 Tom Tromey <tom@tromey.com>
6185
6186 * cli/cli-cmds.c (show_version, show_configuration)
6187 (source_command, show_user): Constify.
6188
6189 2017-09-27 Tom Tromey <tom@tromey.com>
6190
6191 * target.c (maintenance_print_target_stack): Constify.
6192
6193 2017-09-27 Tom Tromey <tom@tromey.com>
6194
6195 * interps.c (interpreter_exec_cmd): Constify.
6196
6197 2017-09-27 Tom Tromey <tom@tromey.com>
6198
6199 * record-full.c (cmd_record_full_restore): Constify.
6200
6201 2017-09-27 Tom Tromey <tom@tromey.com>
6202
6203 * memattr.c (enable_mem_command, disable_mem_command)
6204 (delete_mem_command): Constify.
6205
6206 2017-09-27 Tom Tromey <tom@tromey.com>
6207
6208 * value.c (show_convenience): Constify.
6209
6210 2017-09-27 Tom Tromey <tom@tromey.com>
6211
6212 * gdbcore.h (core_file_command): Update.
6213 * corefile.c (core_file_command): Constify.
6214
6215 2017-09-27 Tom Tromey <tom@tromey.com>
6216
6217 * user-regs.c (maintenance_print_user_registers): Constify.
6218
6219 2017-09-27 Tom Tromey <tom@tromey.com>
6220
6221 * cp-namespace.c (maintenance_cplus_namespace): Constify.
6222
6223 2017-09-27 Tom Tromey <tom@tromey.com>
6224
6225 * cp-support.c (first_component_command): Constify.
6226
6227 2017-09-27 Tom Tromey <tom@tromey.com>
6228
6229 * psymtab.c (maintenance_print_psymbols)
6230 (maintenance_info_psymtabs, maintenance_check_psymtabs):
6231 Constify.
6232
6233 2017-09-27 Tom Tromey <tom@tromey.com>
6234
6235 * windows-tdep.c (display_tib): Constify.
6236
6237 2017-09-27 Tom Tromey <tom@tromey.com>
6238
6239 * linux-fork.c (delete_checkpoint_command)
6240 (detach_checkpoint_command): Constify.
6241
6242 2017-09-27 Tom Tromey <tom@tromey.com>
6243
6244 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
6245
6246 2017-09-27 Tom Tromey <tom@tromey.com>
6247
6248 * arc-tdep.c (dump_arc_instruction_command): Constify.
6249
6250 2017-09-27 Tom Tromey <tom@tromey.com>
6251
6252 * valprint.c (set_radix, show_radix): Constify.
6253
6254 2017-09-27 Tom Tromey <tom@tromey.com>
6255
6256 * dtrace-probe.c (info_probes_dtrace_command): Constify.
6257
6258 2017-09-27 Tom Tromey <tom@tromey.com>
6259
6260 * command.h (not_just_help_class_command): Update.
6261 * cli/cli-decode.h (not_just_help_class_command): Update.
6262 * cli/cli-decode.c (not_just_help_class_command): Constify.
6263
6264 2017-09-27 Tom Tromey <tom@tromey.com>
6265
6266 * gdb_bfd.c (maintenance_info_bfds): Constify.
6267
6268 2017-09-27 Tom Tromey <tom@tromey.com>
6269
6270 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
6271 overloads.
6272 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
6273 (do_const_cfunc): New function.
6274 (cmd_cfunc_eq): New overload.
6275 (cli_user_command_p): Check do_const_cfunc.
6276 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
6277 const_cfunc.
6278 * command.h (add_cmd): Add const overload and no-function
6279 overload.
6280 (set_cmd_cfunc): Add const overload.
6281 (cmd_const_cfunc_ftype): Declare.
6282 (cmd_cfunc_eq): Add const overload.
6283 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
6284 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
6285 overload.
6286
6287 2017-09-27 Tom Tromey <tom@tromey.com>
6288
6289 * macroexp.c (get_next_token_for_substitution): New function.
6290 (substitute_args): Call it. Check for __VA_OPT__.
6291
6292 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6293 Pedro Alves <palves@redhat.com>
6294
6295 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
6296 producer_is_icc_lt_14.
6297 (producer_is_icc_lt_14): New function.
6298 (check_producer): Add code for checking version of ICC.
6299 (producer_is_icc): Move to producer.c.
6300 (read_structure_type): Restrict ICC workaround to ICC<14.
6301 * producer.c: Include selftest.h.
6302 (producer_is_icc, producer_parsing_tests, _initialize_producer):
6303 New functions.
6304 * producer.h (producer_is_icc): New declaration.
6305
6306 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
6307
6308 * Makefile.in (SFILES): Add producer.c.
6309 (COMMON_OBS): Add producer.o
6310 * amd64-tdep.c (producer.h): Add new include.
6311 * dwarf2read.c (producer.h): Add new include.
6312 * producer.c: New file.
6313 * producer.h: New file.
6314 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
6315 producer.c.
6316 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
6317 producer.h.
6318
6319 2017-09-26 Matthias Klose <doko@ubuntu.com>
6320
6321 * configure.ac: Search ncursesw before ncurses.
6322 Check ncursesw/ncurses.h before ncurses/ncurses.h.
6323 * gdb_curses.h: Include <ncursesw/ncurses.h>
6324 * config.in, configure: Regenerate.
6325
6326 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6327
6328 PR gdb/22185
6329 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
6330 obsolete.
6331 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
6332 Remove i386sol2 support.
6333 * configure.nat <i386sol2>: Remove.
6334 <sol2-64>: Fold into ...
6335 <sol2>: ... this.
6336 Move common settings to default section.
6337 Add sol-thread.o.
6338 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
6339 x86_64-*-solaris2.1[0-9]*>: Rename to ...
6340 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
6341 <i[34567]86-*-solaris*>: Remove.
6342 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
6343
6344 * configure.ac: Remove wctype in libw check.
6345 (_MSE_INT_H): Don't define on Solaris 7-9.
6346 <solaris*>: Remove libthread_db.so.1 check.
6347 * configure: Regenerate.
6348 * config.in: Regenerate.
6349
6350 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
6351 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
6352 (gdb_ps_size_t): Remove.
6353 Use base types in users.
6354 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
6355
6356 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
6357
6358 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6359
6360 PR build/22206
6361 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
6362 (adi_is_addr_mapped): Likewise.
6363 (PSR_ICC): Don't redefine.
6364 (PSR_IMPL): Likewise.
6365
6366 2017-09-25 Tom Tromey <tom@tromey.com>
6367
6368 * regcache.c (regcache::dump): Use string_printf.
6369
6370 2017-09-25 Tom Tromey <tom@tromey.com>
6371
6372 * regcache.c (class regcache_invalidator): New.
6373 (struct register_to_invalidate): Remove.
6374 (make_cleanup_regcache_invalidate): Remove.
6375 (regcache::raw_write): Use regcache_invalidator.
6376
6377 2017-09-25 Tom Tromey <tom@tromey.com>
6378
6379 * spu-tdep.c (spu2ppu_sniffer): Update.
6380 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
6381 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
6382 Remove.
6383 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
6384 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
6385 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
6386 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
6387 (frame_pop): Update.
6388
6389 2017-09-25 Tom Tromey <tom@tromey.com>
6390
6391 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
6392 * regcache.h (regcache_xfree): Don't declare.
6393 * regcache.c (regcache_xfree): Remove.
6394 (do_regcache_xfree): Use delete.
6395 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
6396 * linux-fork.c (free_fork): Use delete.
6397 (fork_save_infrun_state): Likewise.
6398 * jit.c (jit_dealloc_cache): Use delete.
6399 * infrun.c (discard_infcall_suspend_state): Use delete.
6400
6401 2017-09-25 Tom Tromey <tom@tromey.com>
6402
6403 * regcache.h (regcache_xmalloc): Don't declare.
6404 (regcache_raw_set_cached_value): Update comment.
6405 * regcache.c (regcache_xmalloc): Remove.
6406 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
6407 * jit.c (jit_frame_sniffer): Use new.
6408 * frame.c (frame_save_as_regcache): Use new.
6409
6410 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6411
6412 * NEWS: Advertise support for guarded-storage registers on IBM z.
6413
6414 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6415
6416 * s390-linux-nat.c (have_regset_gs): New static variable.
6417 (s390_linux_fetch_inferior_registers): Handle guarded-storage
6418 control block and guarded-storage broadcast control regsets.
6419 (s390_read_description): Detect whether the target has
6420 guarded-storage support, return appropriate tdesc.
6421 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
6422 (features/s390x-gs-linux64.c): Likewise.
6423 (struct gdbarch_tdep) <have_gs>: New field.
6424 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
6425 (s390_gsbc_regset): New variables.
6426 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
6427 and s390_gsbc_regset, if applicable.
6428 (s390_core_read_description): Check whether core file was from a
6429 target with guarded-storage support; include appropriate regsets.
6430 (s390_gdbarch_init): Add registers for guarded-storage support.
6431 (_initialize_s390_tdep): Initialize new target descriptions that
6432 include registers for guarded-storage support.
6433 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
6434 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
6435 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
6436 (S390_NUM_REGS): Adjust macro definition.
6437 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
6438 (tdesc_s390x_gs_linux64): New declarations.
6439
6440 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6441
6442 * features/s390-gs-linux64.xml: New file.
6443 * features/s390-gs.xml: New file.
6444 * features/s390-gsbc.xml: New file.
6445 * features/s390x-gs-linux64.xml: New file.
6446 * features/Makefile (WHICH): Add s390-gs-linux64 and
6447 s390x-gs-linux64.
6448 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
6449 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
6450 * features/s390-gs-linux64.c: New generated file.
6451 * features/s390x-gs-linux64.c: New file.
6452 * regformats/s390-gs-linux64.dat: New file.
6453 * regformats/s390x-gs-linux64.dat: New file.
6454
6455 2017-09-23 Tom Tromey <tom@tromey.com>
6456
6457 * defs.h (make_cleanup_override_quit_handler): Don't declare.
6458
6459 2017-09-22 Tom Tromey <tom@tromey.com>
6460
6461 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
6462 type to scoped_restore_tmpl.
6463 <scoped_input_handler>: Initialize m_quit_handler directly.
6464
6465 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6466
6467 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
6468 (cd_command): Likewise. Free "current_directory" before
6469 assigning to it.
6470 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
6471 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
6472 * top.c (gdb_dirbuf): Remove global declaration.
6473 * top.h (gdb_dirbuf): Likewise.
6474
6475 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
6476
6477 * gnulib/aclocal.m4: Regenerate.
6478 * gnulib/config.in: Regenerate.
6479 * gnulib/configure: Regenerate.
6480 * gnulib/import/Makefile.am: Regenerate.
6481 * gnulib/import/Makefile.in: Regenerate.
6482 * gnulib/import/assure.h: New file.
6483 * gnulib/import/at-func.c: Likewise
6484 * gnulib/import/chdir-long.c: New file.
6485 * gnulib/import/chdir-long.h: New file.
6486 * gnulib/import/cloexec.c: New file.
6487 * gnulib/import/cloexec.h: New file.
6488 * gnulib/import/close.c: New file.
6489 * gnulib/import/closedir.c: New file.
6490 * gnulib/import/dirent-private.h: New file.
6491 * gnulib/import/dup-safer.c: New file.
6492 * gnulib/import/dup.c: New file.
6493 * gnulib/import/dup2.c: New file.
6494 * gnulib/import/error.c: New file.
6495 * gnulib/import/error.h: New file.
6496 * gnulib/import/exitfail.c: New file.
6497 * gnulib/import/exitfail.h: New file.
6498 * gnulib/import/fchdir.c: New file.
6499 * gnulib/import/fcntl.c: New file.
6500 * gnulib/import/fcntl.in.h: New file.
6501 * gnulib/import/fd-hook.c: New file.
6502 * gnulib/import/fd-hook.h: New file.
6503 * gnulib/import/fd-safer.c: New file.
6504 * gnulib/import/fdopendir.c: New file.
6505 * gnulib/import/filename.h: New file.
6506 * gnulib/import/filenamecat-lgpl.c: New file.
6507 * gnulib/import/filenamecat.h: New file.
6508 * gnulib/import/fstat.c: New file.
6509 * gnulib/import/fstatat.c: New file.
6510 * gnulib/import/getcwd-lgpl.c: New file.
6511 * gnulib/import/getcwd.c: New file.
6512 * gnulib/import/getdtablesize.c: New file.
6513 * gnulib/import/getlogin_r.c: New file.
6514 * gnulib/import/getprogname.c: New file.
6515 * gnulib/import/getprogname.h: New file.
6516 * gnulib/import/gettext.h: New file.
6517 * gnulib/import/glob-libc.h: New file.
6518 * gnulib/import/glob.c: New file.
6519 * gnulib/import/glob.in.h: New file.
6520 * gnulib/import/intprops.h: New file.
6521 * gnulib/import/m4/chdir-long.m4: New file.
6522 * gnulib/import/m4/close.m4: New file.
6523 * gnulib/import/m4/closedir.m4: New file.
6524 * gnulib/import/m4/d-ino.m4: New file.
6525 * gnulib/import/m4/d-type.m4: New file.
6526 * gnulib/import/m4/dup.m4: New file.
6527 * gnulib/import/m4/dup2.m4: New file.
6528 * gnulib/import/m4/error.m4: New file.
6529 * gnulib/import/m4/fchdir.m4: New file.
6530 * gnulib/import/m4/fcntl.m4: New file.
6531 * gnulib/import/m4/fcntl_h.m4: New file.
6532 * gnulib/import/m4/fdopendir.m4: New file.
6533 * gnulib/import/m4/filenamecat.m4: New file.
6534 * gnulib/import/m4/fstat.m4: New file.
6535 * gnulib/import/m4/fstatat.m4: New file.
6536 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
6537 * gnulib/import/m4/getcwd-path-max.m4: New file.
6538 * gnulib/import/m4/getcwd.m4: New file.
6539 * gnulib/import/m4/getdtablesize.m4: New file.
6540 * gnulib/import/m4/getlogin_r.m4: New file.
6541 * gnulib/import/m4/getprogname.m4: New file.
6542 * gnulib/import/m4/glob.m4: New file.
6543 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6544 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6545 * gnulib/import/m4/mempcpy.m4: New file.
6546 * gnulib/import/m4/memrchr.m4: New file.
6547 * gnulib/import/m4/mode_t.m4: New file.
6548 * gnulib/import/m4/msvc-inval.m4: New file.
6549 * gnulib/import/m4/msvc-nothrow.m4: New file.
6550 * gnulib/import/m4/open.m4: New file.
6551 * gnulib/import/m4/openat.m4: New file.
6552 * gnulib/import/m4/opendir.m4: New file.
6553 * gnulib/import/m4/readdir.m4: New file.
6554 * gnulib/import/m4/realloc.m4: New file.
6555 * gnulib/import/m4/rewinddir.m4: New file.
6556 * gnulib/import/m4/save-cwd.m4: New file.
6557 * gnulib/import/m4/strdup.m4: New file.
6558 * gnulib/import/m4/strerror.m4: New file.
6559 * gnulib/import/m4/unistd-safer.m4: New file.
6560 * gnulib/import/mempcpy.c: New file.
6561 * gnulib/import/memrchr.c: New file.
6562 * gnulib/import/msvc-inval.c: New file.
6563 * gnulib/import/msvc-inval.h: New file.
6564 * gnulib/import/msvc-nothrow.c: New file.
6565 * gnulib/import/msvc-nothrow.h: New file.
6566 * gnulib/import/open.c: New file.
6567 * gnulib/import/openat-die.c: New file.
6568 * gnulib/import/openat-priv.h: New file.
6569 * gnulib/import/openat-proc.c: New file.
6570 * gnulib/import/openat.c: New file.
6571 * gnulib/import/openat.h: New file.
6572 * gnulib/import/opendir.c: New file.
6573 * gnulib/import/pipe-safer.c: New file.
6574 * gnulib/import/readdir.c: New file.
6575 * gnulib/import/realloc.c: New file.
6576 * gnulib/import/rewinddir.c: New file.
6577 * gnulib/import/save-cwd.c: New file.
6578 * gnulib/import/save-cwd.h: New file.
6579 * gnulib/import/strdup.c: New file.
6580 * gnulib/import/strerror-override.c: New file.
6581 * gnulib/import/strerror-override.h: New file.
6582 * gnulib/import/strerror.c: New file.
6583 * gnulib/import/unistd--.h: New file.
6584 * gnulib/import/unistd-safer.h: New file.
6585 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
6586 "getcwd" and "glob".
6587 * ser-tcp.c: Undefine "close" before redefining it.
6588
6589 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6590
6591 * guile/scm-value.c (gdbscm_value_address): Initialize address,
6592 get rid of res_val.
6593
6594 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6595
6596 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
6597 <sol2,sparc>: Likewise.
6598 <sol2-64,i386>: Likewise.
6599
6600 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
6601 -Wdeprecated-declarations on *-*-solaris*.
6602 * configure: Regenerate.
6603
6604 * procfs.c: Include "nat/inferior.h".
6605 (procfs_info_proc): Fix typo.
6606
6607 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6608
6609 * remote.c (vector): Include.
6610 (struct private_thread_info): Add field, thread_handle.
6611 (free_private_thread_info): Deallocate storage associated with
6612 thread handle.
6613 (get_private_info_thread): Initialize `thread_handle' field.
6614 (struct thread_item): Add field, thread_handle.
6615 (clear_threads_listing_context): Deallocate storage associated
6616 with thread handle.
6617 (start_thread): Add support for "handle" attribute.
6618 (thread_attributes): Add "handle".
6619 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
6620 field.
6621 (remote_update_thread_list): Update thread_handle.
6622 (remote_thread_handle_to_thread_info): New function.
6623 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
6624
6625 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6626
6627 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
6628 function.
6629 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
6630 * python/python-internal.h (thread_object_type): Declare.
6631
6632 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6633
6634 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
6635 (target_thread_handle_to_thread_info): Declare.
6636 * target.c (target_thread_handle_to_thread_info): New function.
6637 * target-delegates.c: Regenerate.
6638 * gdbthread.h (find_thread_by_handle): Declare.
6639 * thread.c (find_thread_by_handle): New function.
6640 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
6641 function.
6642 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
6643
6644 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6645
6646 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
6647
6648 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
6649
6650 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
6651
6652 2017-09-21 Yao Qi <yao.qi@linaro.org>
6653
6654 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
6655 to gdb_target_obs.
6656
6657 2017-09-20 Tom Tromey <tom@tromey.com>
6658
6659 * breakpoint.c (struct counted_command_line): Remove.
6660 (breakpoint_commands): Update.
6661 (alloc_counted_command_line, incref_counted_command_line)
6662 (decref_counted_command_line, do_cleanup_counted_command_line)
6663 (make_cleanup_decref_counted_command_line): Remove.
6664 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
6665 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
6666 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
6667 (save_breakpoints): Update.
6668 * breakpoint.h (counted_command_line): Now a typedef to
6669 shared_ptr.
6670 (struct breakpoint) <commands>: Now a counted_command_line.
6671 (struct bpstats) <command>: Likewise.
6672
6673 2017-09-20 Tom Tromey <tom@tromey.com>
6674
6675 * breakpoint.c (struct commands_info, do_map_commands_command):
6676 Remove.
6677 (commands_command_1): Update.
6678 (iterate_over_related_breakpoints): Take a function_view.
6679 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
6680 (delete_command): Update.
6681 (map_breakpoint_numbers): Take a function_view.
6682 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
6683 (disable_command): Update.
6684 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
6685 (enable_command): Update.
6686 (struct disp_data, do_enable_breakpoint_disp)
6687 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
6688 (do_map_enable_delete_breakpoint): Remove.
6689 (enable_once_command, enable_count_command, enable_delete_command)
6690 (delete_trace_variable_command): Update.
6691
6692 2017-09-20 Tom Tromey <tom@tromey.com>
6693
6694 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
6695 (bpstat_clear): Use delete.
6696 (bpstats): New constructors.
6697 (bpstat_copy, bpstat_stop_status): Use new.
6698 (dprintf_after_condition_true): Update.
6699 * breakpoint.h (bpstats::bpstats): Add constructors.
6700 (bpstats::~bpstats): Add destructor.
6701
6702 2017-09-20 Pedro Alves <palves@redhat.com>
6703
6704 * eval.c (make_params): Delete, refactored as ...
6705 (class fake_method): ... this new type's ctor.
6706 (fake_method::~fake_method): New.
6707 (evaluate_subexp_standard): Use 'fake_method'.
6708
6709 2017-09-20 Tom Tromey <tom@tromey.com>
6710
6711 * windows-nat.c (get_windows_debug_event, windows_wait)
6712 (do_initial_windows_stuff, windows_attach): Update.
6713 * utils.c (vwarning, internal_vproblem): Update.
6714 (ui_unregister_input_event_handler_cleanup)
6715 (prepare_to_handle_input): Remove.
6716 (class scoped_input_handler): New.
6717 (defaulted_query, prompt_for_continue): Update.
6718 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6719 Update.
6720 * top.c (undo_terminal_modifications_before_exit): Update.
6721 * target/target.h (target_terminal_init, target_terminal_inferior)
6722 (target_terminal_ours): Don't declare.
6723 (class target_terminal): New.
6724 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
6725 (target_terminal_ours_for_output)
6726 (make_cleanup_restore_target_terminal): Don't declare.
6727 (target_terminal_info): Remove.
6728 * target.c (enum terminal_state, terminal_state): Remove.
6729 (target_terminal::terminal_state): Define.
6730 (target_terminal::init): Rename from target_terminal_init.
6731 (target_terminal::inferior): Rename from
6732 target_terminal_inferior.
6733 (target_terminal::ours): Rename from target_terminal_ours.
6734 (target_terminal::ours_for_output): Rename from
6735 target_terminal_ours_for_output.
6736 (target_terminal::info): New method.
6737 (cleanup_restore_target_terminal)
6738 (make_cleanup_restore_target_terminal): Remove.
6739 * solib.c (handle_solib_event): Update.
6740 * remote.c (remote_serial_quit_handler): Update.
6741 (remote_terminal_inferior, remote_wait_as): Update.
6742 * record-full.c (record_full_wait_1): Update.
6743 * nto-procfs.c (procfs_create_inferior): Update.
6744 * nat/fork-inferior.c (startup_inferior): Update.
6745 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
6746 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
6747 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
6748 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
6749 (mi_breakpoint_created, mi_breakpoint_deleted)
6750 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
6751 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6752 (mi_user_selected_context_changed, report_initial_inferior):
6753 Update.
6754 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
6755 (linux_nat_terminal_inferior): Update.
6756 * infrun.c (follow_fork_inferior)
6757 (handle_vfork_child_exec_or_exit, do_target_resume)
6758 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
6759 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
6760 Update.
6761 * inflow.c (child_terminal_init, info_terminal_command): Update.
6762 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
6763 (attach_command): Update.
6764 * infcall.c (call_thread_fsm_should_stop): Update.
6765 * gnu-nat.c (gnu_attach): Update.
6766 * extension.c (struct active_ext_lang_state)
6767 (restore_active_ext_lang): Update.
6768 * exceptions.c (print_flush): Update.
6769 * event-top.c (async_enable_stdin, default_quit_handler): Update.
6770 (struct quit_handler_cleanup_data, restore_quit_handler)
6771 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
6772 Remove.
6773 * cp-support.c (gdb_demangle): Update.
6774 * breakpoint.c (update_inserted_breakpoint_locations)
6775 (insert_breakpoint_locations, handle_jit_event)
6776 (disable_breakpoints_in_unloaded_shlib): Update.
6777 * annotate.c (annotate_breakpoints_invalid)
6778 (annotate_frames_invalid): Update.
6779
6780 2017-09-20 Tom Tromey <tom@tromey.com>
6781
6782 * main.c (catch_command_errors): Rename from
6783 catch_command_errors_const.
6784 (captured_main_1): Update.
6785
6786 2017-09-20 Pedro Alves <palves@redhat.com>
6787
6788 * cli/cli-cmds.c (list_command): Use print_sal_location.
6789 (print_sal_location): New function.
6790 (ambiguous_line_spec): Use print_sal_location.
6791 * linespec.c (symbol_to_sal): Record the symbol in the sal.
6792 * symtab.c (find_function_start_sal): Likewise.
6793 * symtab.h (symtab_and_line::symbol): New field.
6794
6795 2017-09-20 Pedro Alves <palves@redhat.com>
6796
6797 * linespec.c (minsym_found): Handle non-text minsyms.
6798 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
6799
6800 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6801
6802 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
6803 backslash.
6804
6805 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
6806
6807 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
6808 vmovups instead vmovaps.
6809 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
6810
6811 2017-09-19 John Baldwin <jhb@FreeBSD.org>
6812
6813 * NEWS (Changes since GDB 8.0): Add starti.
6814 * infcmd.c (enum run_break): New.
6815 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
6816 case.
6817 (run_command): Use enum run_how.
6818 (start_command): Likewise.
6819 (starti_command): New function.
6820 (RUN_ARGS_HELP): New macro.
6821 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
6822 commands. Add starti command.
6823
6824 2017-09-19 Yao Qi <yao.qi@linaro.org>
6825
6826 * Makefile.in (monitor.o): Remove the rule.
6827
6828 2017-09-19 Yao Qi <yao.qi@linaro.org>
6829
6830 * annotate.h (struct annotate_arg_emitter): Use
6831 DISABLE_COPY_AND_ASSIGN.
6832 * common/refcounted-object.h (refcounted_object): Likewise.
6833 * completer.h (struct completion_result): Likewise.
6834 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
6835 * filename-seen-cache.h (filename_seen_cache): Likewise.
6836 * gdbcore.h (thread_section_name): Likewise.
6837 * gdb_regex.h (compiled_regex): Likewise.
6838 * gdbthread.h (scoped_restore_current_thread): Likewise.
6839 * inferior.h (scoped_restore_current_inferior): Likewise.
6840 * jit.c (jit_reader): Likewise.
6841 * linespec.h (struct linespec_result): Likewise.
6842 * mi/mi-parse.h (struct mi_parse): Likewise.
6843 * nat/fork-inferior.c (execv_argv): Likewise.
6844 * progspace.h (scoped_restore_current_program_space): Likewise.
6845 * python/python-internal.h (class gdbpy_enter): Likewise.
6846 * regcache.h (regcache): Likewise.
6847 * target-descriptions.c (struct tdesc_reg): Likewise.
6848 (struct tdesc_type): Likewise.
6849 (struct tdesc_feature): Likewise.
6850 * ui-out.h (ui_out_emit_type): Likewise.
6851
6852 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
6853
6854 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
6855 label abort_expression.
6856
6857 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6858
6859 * common/buffer.c (buffer_xml_printf): Adjust.
6860 * common/xml-utils.c (xml_escape_text): Change return type to
6861 std::string, update code accordingly.
6862 * common/xml-utils.h (xml_escape_text): Change return type to
6863 std::string.
6864 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
6865 * windows-tdep.c (windows_xfer_shared_library): Adjust.
6866 * unittests/xml-utils-selftests.c (test_xml_escape_text):
6867 Adjust.
6868
6869 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6870
6871 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
6872 (SUBDIR_UNITTESTS_OBS): Add new object file.
6873 * unittests/xml-utils-selftests.c: New file.
6874
6875 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6876
6877 * common/selftest.h (selftest): New struct/interface.
6878 (register_test): Add name parameter, add new overload.
6879 (run_tests): Add filter parameter.
6880 (for_each_selftest_ftype): New typedef.
6881 (for_each_selftest): New declaration.
6882 * common/selftest.c (tests): Change type to
6883 map<string, unique_ptr<selftest>>.
6884 (simple_selftest): New struct.
6885 (register_test): New function.
6886 (register_test): Add name parameter and use it.
6887 (run_tests): Add filter parameter and use it. Add prints.
6888 Adjust to vector -> map change.
6889 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
6890 registering selftests.
6891 * arm-tdep.c (_initialize_arm_tdep): Likewise.
6892 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
6893 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
6894 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
6895 * findvar.c (_initialize_findvar): Likewise.
6896 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
6897 * maint.c (maintenance_selftest): Update call to run_tests.
6898 (maintenance_info_selftests): New function.
6899 (_initialize_maint_cmds): Register "maintenance info selftests"
6900 command. Update "maintenance selftest" doc.
6901 * regcache.c (_initialize_regcache): Add names when registering
6902 selftests.
6903 * rust-exp.y (_initialize_rust_exp): Likewise.
6904 * selftest-arch.c (gdbarch_selftest): New struct.
6905 (gdbarch_tests): Remove.
6906 (register_test_foreach_arch): Add name parameter. Call
6907 register_test.
6908 (tests_with_arch): Remove, move most content to
6909 gdbarch_selftest::operator().
6910 (_initialize_selftests_foreach_arch): Remove.
6911 * selftest-arch.h (register_test_foreach_arch): Add name
6912 parameter.
6913 (run_tests_with_arch): New declaration.
6914 * utils-selftests.c (_initialize_utils_selftests): Add names
6915 when registering selftests.
6916 * utils.c (_initialize_utils): Likewise.
6917 * unittests/array-view-selftests.c
6918 (_initialize_array_view_selftests): Likewise.
6919 * unittests/environ-selftests.c (_initialize_environ_selftests):
6920 Likewise.
6921 * unittests/function-view-selftests.c
6922 (_initialize_function_view_selftests): Likewise.
6923 * unittests/offset-type-selftests.c
6924 (_initialize_offset_type_selftests): Likewise.
6925 * unittests/optional-selftests.c
6926 (_initialize_optional_selftests): Likewise.
6927 * unittests/scoped_restore-selftests.c
6928 (_initialize_scoped_restore_selftests): Likewise.
6929 * NEWS: Document "maintenance selftest" and "maint info
6930 selftests".
6931
6932 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6933
6934 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
6935 scoped_restore.
6936
6937 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6938
6939 * mi/mi-main.c (mi_load_progress): Make uiout variable
6940 a unique_ptr.
6941
6942 2017-09-15 Pedro Alves <palves@redhat.com>
6943
6944 * compile/compile-c-types.c (convert_enum, convert_int)
6945 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
6946
6947 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6948
6949 * dwarf2read.c (copy_string): Remove.
6950 (parse_macro_definition): Replace copy_string with savestring.
6951
6952 2017-09-15 Yao Qi <yao.qi@linaro.org>
6953
6954 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
6955 gdb_target_obs.
6956 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
6957 Likewise.
6958 (i[34567]86-*-linux*): Likewise.
6959
6960 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6961
6962 * dwarf2expr.h (dwarf_stack_value): Add constructor.
6963 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
6964 <stack>: Change type to std::vector.
6965 <stack_len, stack_allocated>: Remove.
6966 <grow_stack>: Remove.
6967 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
6968 (dwarf_expr_context::~dwarf_expr_context): Remove.
6969 (dwarf_expr_context::grow_stack): Remove.
6970 (dwarf_expr_context::push): Adjust.
6971 (dwarf_expr_context::pop): Adjust.
6972 (dwarf_expr_context::fetch): Adjust.
6973 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
6974 (dwarf_expr_context::stack_empty_p): Adjust.
6975 (dwarf_expr_context::execute_stack_op): Adjust.
6976
6977 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6978
6979 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
6980 return type to bool.
6981 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
6982
6983 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
6984
6985 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
6986 Change type to bool.
6987 (dwarf_stack_value) <in_stack_memory>: Likewise.
6988 (dwarf_expr_context) <push_address>: Change parameter type to
6989 bool.
6990 <fetch_in_stack_memory>: Change return type to bool.
6991 <push>: Change parameter type to bool.
6992 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
6993 to bool.
6994 (dwarf_expr_context::push_address): Likewise.
6995 (dwarf_expr_context::fetch_in_stack_memory): Change return type
6996 to bool.
6997 (dwarf_expr_context::execute_stack_op): Adjust.
6998 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
6999
7000 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
7001
7002 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
7003 (struct dwarf_expr_context) <n_pieces>: Remove.
7004 <pieces>: Change type to std::vector.
7005 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
7006 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
7007 pieces.
7008 (dwarf_expr_context::add_piece): Adjust.
7009 * dwarf2loc.c (struct piece_closure): Initialize fields.
7010 <n_pieces>: Remove.
7011 <pieces>: Change type to std::vector.
7012 (allocate_piece_closure): Adjust, change parameter to
7013 std::vector rvalue and std::move it to piece_closure.
7014 (rw_pieced_value): Adjust.
7015 (check_pieced_synthetic_pointer): Adjust.
7016 (indirect_synthetic_pointer): Adjust.
7017 (coerce_pieced_ref): Adjust.
7018 (free_pieced_value_closure): Adjust. Use delete to free
7019 piece_closure.
7020 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
7021 to allocate_piece_closure.
7022 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
7023
7024 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7025
7026 * probe.h (probe_ops_cp): Remove typedef.
7027 (DEF_VEC_P (probe_ops_cp)): Remove.
7028 (all_probe_ops): Change type to std::vector.
7029 * probe.c (info_probes_for_ops): Adjust to vector change.
7030 (probe_linespec_to_ops): Likewise.
7031 (all_probe_ops): Change type to std::vector.
7032 (_initialize_probe): Adjust to vector change.
7033 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
7034 * elfread.c (elf_get_probes): Likewise.
7035 * stap-probe.c (_initialize_stap_probe): Likewise.
7036
7037 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7038
7039 * probe.h (struct bound_probe): Define constructors.
7040 * probe.c (bound_probe_s): Remove typedef.
7041 (DEF_VEC_O (bound_probe_s)): Remove VEC.
7042 (collect_probes): Change return type to std::vector, remove
7043 cleanup.
7044 (compare_probes): Return bool, change parameter type. Change
7045 semantic to "less than".
7046 (gen_ui_out_table_header_info): Change parameter to std::vector
7047 and update.
7048 (exists_probe_with_pops): Likewise.
7049 (info_probes_for_ops): Update to std::vector change.
7050 (enable_probes_command): Likewise.
7051 (disable_probes_command): Likewise.
7052
7053 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
7054
7055 * probe.h (struct probe_ops) <get_probes>: Change parameter from
7056 vec to std::vector.
7057 * probe.c (parse_probes_in_pspace): Update.
7058 (find_probes_in_objfile): Update.
7059 (find_probe_by_pc): Update.
7060 (collect_probes): Update.
7061 (probe_any_get_probes): Update.
7062 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
7063 return type to reference to std::vector.
7064 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
7065 std::vector and update.
7066 (dtrace_process_dof): Likewise.
7067 (dtrace_get_probes): Likewise.
7068 * elfread.c (elf_get_probes): Change return type to std::vector,
7069 store an std::vector in bfd_data.
7070 (probe_key_free): Update to std::vector.
7071 * stap-probe.c (handle_stap_probe): Change parameter to
7072 std::vector and update.
7073 (stap_get_probes): Likewise.
7074 * symfile-debug.c (debug_sym_get_probes): Change return type to
7075 std::vector and update.
7076
7077 2017-09-11 Tom Tromey <tom@tromey.com>
7078
7079 * breakpoint.c (program_breakpoint_here_p): Update.
7080 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
7081 from make_show_memory_breakpoints_cleanup. Return a
7082 scoped_restore_tmpl<int>.
7083 (restore_show_memory_breakpoints): Remove.
7084 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
7085 * mem-break.c (memory_validate_breakpoint): Update.
7086 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
7087 (ia64_memory_remove_breakpoint): Update.
7088 (ia64_breakpoint_from_pc): Update.
7089 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
7090 from make_show_memory_breakpoints_cleanup.
7091
7092 2017-09-11 Tom Tromey <tom@tromey.com>
7093
7094 * d-namespace.c (d_lookup_symbol): Use std::string.
7095 (find_symbol_in_baseclass): Likewise.
7096
7097 2017-09-11 Tom Tromey <tom@tromey.com>
7098
7099 * ctf.c (ctf_start): Use std::string.
7100
7101 2017-09-11 Tom Tromey <tom@tromey.com>
7102
7103 * ada-lang.c (is_known_support_routine): Update.
7104 (ada_unhandled_exception_name_addr_from_raise): Update.
7105 * guile/scm-frame.c (gdbscm_frame_name): Update.
7106 * python/py-frame.c (frapy_name): Update.
7107 (frapy_function): Update.
7108 * stack.h (find_frame_funname): Update.
7109 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
7110 (print_frame): Update.
7111
7112 2017-09-11 Tom Tromey <tom@tromey.com>
7113
7114 * findcmd.c (put_bits): Take a gdb::byte_vector.
7115 (parse_find_args): Return gdb::byte_vector. "args" now const.
7116 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
7117 cleanups.
7118 (find_command): Update.
7119
7120 2017-09-11 Tom Tromey <tom@tromey.com>
7121
7122 * cli/cli-script.c (class scoped_restore_hook_in): New.
7123 (clear_hook_in_cleanup): Remove.
7124 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
7125 scoped_restore_hook_in.
7126
7127 2017-09-11 Tom Tromey <tom@tromey.com>
7128
7129 * cli/cli-script.c (restore_interp): Remove.
7130 (read_command_lines): Use scoped_restore_interp.
7131 * interps.c (scoped_restore_interp::set_temp): Rename from
7132 interp_set_temp.
7133 * interps.h (class scoped_restore_interp): New.
7134 (interp_set_temp): Remove.
7135
7136 2017-09-11 Tom Tromey <tom@tromey.com>
7137
7138 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7139 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
7140 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
7141 scoped_restore.
7142 (mi_cmd_break_insert_1): Update.
7143 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
7144 scoped_restore.
7145
7146 2017-09-11 Tom Tromey <tom@tromey.com>
7147
7148 * demangle.c (demangle_command): Update.
7149 * breakpoint.c (disable_command): Update.
7150 (enable_command): Update.
7151 (find_location_by_number): Make "number" const. Use
7152 get_number_trailer.
7153 * cli/cli-utils.c (extract_arg): Return std::string.
7154 * probe.c (parse_probe_linespec): Update. Change types.
7155 (collect_probes): Take string arguments.
7156 (parse_probe_linespec): Likewise.
7157 (info_probes_for_ops): Update.
7158 (enable_probes_command): Update.
7159 (disable_probes_command): Update.
7160 * break-catch-sig.c (catch_signal_split_args): Update.
7161 * mi/mi-parse.c (mi_parse): Update.
7162
7163 2017-09-11 Tom Tromey <tom@tromey.com>
7164
7165 * language.h (language_enum): Make argument const.
7166 * language.c (language_enum): Make argument const.
7167
7168 2017-09-11 Tom Tromey <tom@tromey.com>
7169
7170 * common/common-utils.h (skip_to_space): Remove macro, redeclare
7171 as function.
7172 (skip_to_space): Rename from skip_to_space_const.
7173 * common/common-utils.c (skip_to_space): New function.
7174 (skip_to_space): Rename from skip_to_space_const.
7175 * cli/cli-utils.h (get_number): Rename from get_number_const.
7176 (extract_arg): Rename from extract_arg_const.
7177 * cli/cli-utils.c (get_number): Rename from get_number_const.
7178 (extract_arg): Rename from extract_arg_const.
7179 (number_or_range_parser::get_number): Use ::get_number.
7180 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
7181 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
7182 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
7183 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
7184 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
7185 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
7186 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
7187 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
7188
7189 2017-09-11 Tom Tromey <tom@tromey.com>
7190
7191 * python/python.c (do_start_initialization): Use
7192 py-event-types.def to initialize types.
7193 Define all object type structures.
7194 * python/python-internal.h: Don't declare event initialization
7195 functions.
7196 * python/py-threadevent.c (thread_event_object_type): Don't
7197 define.
7198 * python/py-stopevent.c (stop_event_object_type): Don't define.
7199 * python/py-signalevent.c (signal_event_object_type): Don't
7200 declare or define.
7201 * python/py-newobjfileevent.c (new_objfile_event_object_type)
7202 (clear_objfiles_event_object_type): Don't declare or define.
7203 * python/py-infevents.c (inferior_call_pre_event_object_type)
7204 (inferior_call_post_event_object_type)
7205 (register_changed_event_object_type)
7206 (memory_changed_event_object_type): Don't declare or define.
7207 * python/py-inferior.c (new_thread_event_object_type)
7208 (new_inferior_event_object_type)
7209 (inferior_deleted_event_object_type): Don't declare or define.
7210 * python/py-exitedevent.c (exited_event_object_type): Don't
7211 declare or define.
7212 * python/py-evts.c (gdbpy_initialize_py_events): Use
7213 py-all-events.def.
7214 * python/py-events.h (thread_event_object_type): Don't declare.
7215 (events_object): Use py-all-events.def.
7216 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
7217 py-event-types.def.
7218 * python/py-event-types.def: New file.
7219 * python/py-continueevent.c (create_continue_event_object): Don't
7220 declare or define.
7221 * python/py-bpevent.c (breakpoint_event_object_type): Don't
7222 declare or define.
7223 * python/py-all-events.def: New file.
7224
7225 2017-09-11 Tom Tromey <tom@tromey.com>
7226
7227 * python/py-threadevent.c (create_thread_event_object): Return
7228 gdbpy_ref.
7229 * python/py-stopevent.h (create_stop_event_object)
7230 (create_breakpoint_event_object, create_signal_event_object):
7231 Update.
7232 * python/py-stopevent.c (create_stop_event_object): Return
7233 gdbpy_ref.
7234 (emit_stop_event): Update.
7235 * python/py-signalevent.c (create_signal_event_object): Return
7236 gdbpy_ref.
7237 * python/py-infevents.c (create_inferior_call_event_object):
7238 Update.
7239 * python/py-event.h (create_event_object)
7240 (create_thread_event_object): Update.
7241 * python/py-event.c (create_event_object): Return gdbpy_ref.
7242 * python/py-continueevent.c: Return gdbpy_ref.
7243 * python/py-bpevent.c (create_breakpoint_event_object): Return
7244 gdbpy_ref.
7245
7246 2017-09-11 Tom Tromey <tom@tromey.com>
7247
7248 PR python/15622:
7249 * NEWS: Add entry.
7250 * python/python.c (do_start_initialization): Initialize new event
7251 types.
7252 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
7253 (gdbpy_initialize_inferior_deleted_event)
7254 (gdbpy_initialize_new_thread_event): Declare.
7255 * python/py-threadevent.c (create_thread_event_object): Add option
7256 "thread" parameter.
7257 * python/py-inferior.c (new_thread_event_object_type)
7258 (new_inferior_event_object_type)
7259 (inferior_deleted_event_object_type): Declare.
7260 (python_new_inferior, python_inferior_deleted): New functions.
7261 (add_thread_object): Emit new_thread event.
7262 (gdbpy_initialize_inferior): Attach new functions to corresponding
7263 observers.
7264 (new_thread, new_inferior, inferior_deleted): Define new event
7265 types.
7266 * python/py-evts.c (gdbpy_initialize_py_events): Add new
7267 registries.
7268 * python/py-events.h (events_object) <new_inferior,
7269 inferior_deleted, new_thread>: New fields.
7270 * python/py-event.h (create_thread_event_breakpoint): Add optional
7271 "thread" parameter.
7272
7273 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
7274
7275 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
7276 check current_ui instead.
7277 (internal_vproblem): Likewise.
7278
7279 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
7280
7281 * thread.c (print_thread_info_1): Remove unnecessary calls to
7282 uiout->is_mi_like_p.
7283
7284 2017-09-09 Tom Tromey <tom@tromey.com>
7285
7286 * namespace.h (add_using_directive): Update.
7287 * namespace.c (add_using_directive): Change type of excludes to
7288 std::vector.
7289 * dwarf2read.c (read_import_statement): Use std::vector.
7290 (read_namespace): Update.
7291 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7292
7293 2017-09-09 Tom Tromey <tom@tromey.com>
7294
7295 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
7296
7297 2017-09-09 Tom Tromey <tom@tromey.com>
7298
7299 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
7300
7301 2017-09-09 Tom Tromey <tom@tromey.com>
7302
7303 * stack.c (func_command): Use gdb::def_vector.
7304
7305 2017-09-09 Tom Tromey <tom@tromey.com>
7306
7307 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
7308 ui_out_emit_list, ui_out_emit_tuple.
7309 (mi_cmd_var_update): Likewise.
7310
7311 2017-09-09 Tom Tromey <tom@tromey.com>
7312
7313 * mi/mi-interp.c (mi_user_selected_context_changed): Use
7314 ui_out_redirect_pop.
7315 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7316 ui_out_redirect_pop.
7317 * utils.c (do_ui_out_redirect_pop)
7318 (make_cleanup_ui_out_redirect_pop): Remove.
7319 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
7320 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
7321 * ui-out.h (ui_out_redirect_pop): New class.
7322
7323 2017-09-09 Tom Tromey <tom@tromey.com>
7324
7325 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
7326 (list_available_thread_groups, mi_cmd_list_thread_groups)
7327 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
7328 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
7329 Likewise.
7330
7331 2017-09-09 Tom Tromey <tom@tromey.com>
7332
7333 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7334 ui_out_emit_tuple.
7335
7336 2017-09-09 Tom Tromey <tom@tromey.com>
7337
7338 * target.c (flash_erase_command): Use ui_out_emit_tuple.
7339 * stack.c (print_frame): Use ui_out_emit_tuple.
7340 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
7341 (info_spu_mailbox_command, info_spu_dma_command)
7342 (info_spu_proxydma_command): Likewise.
7343 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
7344 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
7345 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7346 ui_out_emit_tuple.
7347 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
7348
7349 2017-09-09 Tom Tromey <tom@tromey.com>
7350
7351 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
7352 (class ui_out_emit_table): Update comment.
7353 * ui-out.c (do_cleanup_table_end)
7354 (make_cleanup_ui_out_table_begin_end): Remove.
7355 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
7356 (info_spu_dma_cmdlist): Likewise.
7357 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
7358 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
7359 ui_out_emit_table.
7360
7361 2017-09-09 Tom Tromey <tom@tromey.com>
7362
7363 * thread.c (print_thread_info_1): Use ui_out_emit_table,
7364 ui_out_emit_list, gdb::optional.
7365
7366 2017-09-09 John Baldwin <jhb@FreeBSD.org>
7367
7368 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
7369 prototype.
7370 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
7371 prototype.
7372 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
7373 prototype.
7374 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
7375 * ada-exp.y: Remove _initialize_ada_exp prototype.
7376 * ada-lang.c: Remove _initialize_ada_language prototype.
7377 * ada-tasks.c: Remove _initialize_tasks prototype.
7378 * addrmap.c: Remove _initialize_addrmap prototype.
7379 * agent.c: Remove _initialize_agent prototype.
7380 * aix-thread.c: Remove _initialize_aix_thread prototype.
7381 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
7382 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
7383 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
7384 prototype.
7385 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
7386 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
7387 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
7388 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
7389 prototype.
7390 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
7391 prototype.
7392 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
7393 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
7394 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
7395 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
7396 prototype.
7397 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
7398 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
7399 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
7400 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
7401 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7402 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
7403 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
7404 prototype.
7405 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
7406 prototype.
7407 * annotate.c: Remove _initialize_annotate prototype.
7408 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
7409 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
7410 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
7411 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
7412 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
7413 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
7414 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
7415 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
7416 prototype.
7417 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
7418 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
7419 * auto-load.c: Remove _initialize_auto_load prototype.
7420 * auxv.c: Remove _initialize_auxv prototype.
7421 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
7422 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
7423 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
7424 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
7425 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
7426 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
7427 prototype.
7428 * break-catch-throw.c: Remove _initialize_break_catch_throw
7429 prototype.
7430 * breakpoint.c: Remove _initialize_breakpoint prototype.
7431 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
7432 * btrace.c: Remove _initialize_btrace prototype.
7433 * charset.c: Remove _initialize_charset prototype.
7434 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
7435 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
7436 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
7437 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
7438 * cli/cli-script.c: Remove _initialize_cli_script prototype.
7439 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
7440 * coffread.c: Remove _initialize_coffread prototype.
7441 * compile/compile.c: Remove _initialize_compile prototype.
7442 * complaints.c: Remove _initialize_complaints prototype.
7443 * completer.c: Remove _initialize_completer prototype.
7444 * copying.awk: Remove _initialize_copying prototype.
7445 * copying.c: Regenerate.
7446 * core-regset.c: Remove _initialize_core_regset prototype.
7447 * corefile.c: Remove _initialize_core prototype.
7448 * corelow.c: Remove _initialize_corelow prototype.
7449 * cp-abi.c: Remove _initialize_cp_abi prototype.
7450 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
7451 * cp-support.c: Remove _initialize_cp_support prototype.
7452 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
7453 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
7454 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
7455 * ctf.c: Remove _initialize_ctf prototype.
7456 * d-lang.c: Remove _initialize_d_language prototype.
7457 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
7458 prototype.
7459 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
7460 * dbxread.c: Remove _initialize_dbxread prototype.
7461 * dcache.c: Remove _initialize_dcache prototype.
7462 * demangle.c: Remove _initialize_demangler prototype.
7463 * disasm-selftests.c: Remove _initialize_disasm_selftests
7464 prototype.
7465 * disasm.c: Remove _initialize_disasm prototype.
7466 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
7467 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
7468 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
7469 prototype.
7470 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
7471 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
7472 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
7473 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
7474 * elfread.c: Remove _initialize_elfread prototype.
7475 * exec.c: Remove _initialize_exec prototype.
7476 * extension.c: Remove _initialize_extension prototype.
7477 * f-lang.c: Remove _initialize_f_language prototype.
7478 * f-valprint.c: Remove _initialize_f_valprint prototype.
7479 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
7480 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
7481 * filesystem.c: Remove _initialize_filesystem prototype.
7482 * findcmd.c: Remove _initialize_mem_search prototype.
7483 * fork-child.c: Remove _initialize_fork_child prototype.
7484 * frame-base.c: Remove _initialize_frame_base prototype.
7485 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
7486 * frame.c: Remove _initialize_frame prototype.
7487 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
7488 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
7489 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
7490 * gcore.c: Remove _initialize_gcore prototype.
7491 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
7492 * gdbarch.c: Regenerate.
7493 * gdbarch.sh: Remove _initialize_gdbarch prototype.
7494 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
7495 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
7496 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
7497 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
7498 * go-lang.c: Remove _initialize_go_language prototype.
7499 * go32-nat.c: Remove _initialize_go32_nat prototype.
7500 * guile/guile.c: Remove _initialize_guile prototype.
7501 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
7502 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
7503 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
7504 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
7505 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
7506 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
7507 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
7508 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
7509 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
7510 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
7511 prototype.
7512 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
7513 prototype.
7514 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
7515 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
7516 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
7517 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
7518 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
7519 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
7520 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
7521 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
7522 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
7523 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
7524 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
7525 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
7526 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
7527 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
7528 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
7529 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
7530 prototype.
7531 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
7532 prototype.
7533 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
7534 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
7535 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
7536 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
7537 * infcall.c: Remove _initialize_infcall prototype.
7538 * infcmd.c: Remove _initialize_infcmd prototype.
7539 * inferior.c: Remove _initialize_inferiors prototype.
7540 * inflow.c: Remove _initialize_inflow prototype.
7541 * infrun.c: Remove _initialize_infrun prototype.
7542 * interps.c: Remove _initialize_interpreter prototype.
7543 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
7544 * jit.c: Remove _initialize_jit prototype.
7545 * language.c: Remove _initialize_language prototype.
7546 * linux-fork.c: Remove _initialize_linux_fork prototype.
7547 * linux-nat.c: Remove _initialize_linux_nat prototype.
7548 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
7549 * linux-thread-db.c: Remove _initialize_thread_db prototype.
7550 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
7551 * m2-lang.c: Remove _initialize_m2_language prototype.
7552 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
7553 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
7554 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
7555 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
7556 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
7557 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7558 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7559 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
7560 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
7561 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
7562 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
7563 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
7564 * machoread.c: Remove _initialize_machoread prototype.
7565 * macrocmd.c: Remove _initialize_macrocmd prototype.
7566 * macroscope.c: Remove _initialize_macroscope prototype.
7567 * maint.c: Remove _initialize_maint_cmds prototype.
7568 * mdebugread.c: Remove _initialize_mdebugread prototype.
7569 * memattr.c: Remove _initialize_mem prototype.
7570 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
7571 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
7572 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
7573 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
7574 * mi/mi-main.c: Remove _initialize_mi_main prototype.
7575 * microblaze-linux-tdep.c: Remove
7576 _initialize_microblaze_linux_tdep prototype.
7577 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
7578 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
7579 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
7580 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
7581 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
7582 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
7583 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
7584 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
7585 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
7586 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
7587 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
7588 prototype.
7589 * mipsread.c: Remove _initialize_mipsread prototype.
7590 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
7591 prototype.
7592 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
7593 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
7594 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
7595 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
7596 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
7597 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
7598 prototype.
7599 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
7600 * nto-procfs.c: Remove _initialize_procfs prototype.
7601 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
7602 * objc-lang.c: Remove _initialize_objc_language prototype.
7603 * objfiles.c: Remove _initialize_objfiles prototype.
7604 * observer.c: Remove observer_test_first_notification_function,
7605 observer_test_second_notification_function,
7606 observer_test_third_notification_function, and
7607 _initialize_observer prototypes.
7608 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
7609 * osabi.c: Remove _initialize_gdb_osabi prototype.
7610 * osdata.c: Remove _initialize_osdata prototype.
7611 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
7612 * parse.c: Remove _initialize_parse prototype.
7613 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
7614 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
7615 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
7616 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
7617 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
7618 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
7619 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
7620 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
7621 * printcmd.c: Remove _initialize_printcmd prototype.
7622 * probe.c: Remove _initialize_probe prototype.
7623 * proc-api.c: Remove _initialize_proc_api prototype.
7624 * proc-events.c: Remove _initialize_proc_events prototype.
7625 * proc-service.c: Remove _initialize_proc_service prototype.
7626 * procfs.c: Remove _initialize_procfs prototype.
7627 * psymtab.c: Remove _initialize_psymtab prototype.
7628 * python/python.c: Remove _initialize_python prototype.
7629 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
7630 * record-btrace.c: Remove _initialize_record_btrace prototype.
7631 * record-full.c: Remove _initialize_record_full prototype.
7632 * record.c: Remove _initialize_record prototype.
7633 * regcache.c: Remove _initialize_regcache prototype.
7634 * reggroups.c: Remove _initialize_reggroup prototype.
7635 * remote-notif.c: Remove _initialize_notif prototype.
7636 * remote-sim.c: Remove _initialize_remote_sim prototype.
7637 * remote.c: Remove _initialize_remote prototype.
7638 * reverse.c: Remove _initialize_reverse prototype.
7639 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
7640 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
7641 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
7642 prototype.
7643 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
7644 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
7645 * rust-exp.y: Remove _initialize_rust_exp prototype.
7646 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
7647 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
7648 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
7649 * score-tdep.c: Remove _initialize_score_tdep prototype.
7650 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
7651 prototype.
7652 * ser-go32.c: Remove _initialize_ser_dos prototype.
7653 * ser-mingw.c: Remove _initialize_ser_windows prototype.
7654 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
7655 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
7656 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
7657 * serial.c: Remove _initialize_serial prototype.
7658 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
7659 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
7660 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
7661 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
7662 * skip.c: Remove _initialize_step_skip prototype.
7663 * sol-thread.c: Remove _initialize_sol_thread prototype.
7664 * solib-aix.c: Remove _initialize_solib_aix prototype.
7665 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
7666 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
7667 * solib-frv.c: Remove _initialize_frv_solib prototype.
7668 * solib-spu.c: Remove _initialize_spu_solib prototype.
7669 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
7670 * solib-target.c: Remove _initialize_solib_target prototype.
7671 * solib.c: Remove _initialize_solib prototype.
7672 * source.c: Remove _initialize_source prototype.
7673 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
7674 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
7675 prototype.
7676 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
7677 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
7678 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
7679 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
7680 prototype.
7681 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
7682 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
7683 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
7684 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
7685 prototype.
7686 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
7687 prototype.
7688 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
7689 prototype.
7690 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
7691 prototype.
7692 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
7693 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
7694 prototype.
7695 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
7696 prototype.
7697 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
7698 prototype.
7699 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
7700 prototype.
7701 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
7702 prototype.
7703 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
7704 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
7705 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
7706 * stabsread.c: Remove _initialize_stabsread prototype.
7707 * stack.c: Remove _initialize_stack prototype.
7708 * stap-probe.c: Remove _initialize_stap_probe prototype.
7709 * std-regs.c: Remove _initialize_frame_reg prototype.
7710 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
7711 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
7712 * symfile.c: Remove _initialize_symfile prototype.
7713 * symmisc.c: Remove _initialize_symmisc prototype.
7714 * symtab.c: Remove _initialize_symtab prototype.
7715 * target-dcache.c: Remove _initialize_target_dcache prototype.
7716 * target-descriptions.c: Remove _initialize_target_descriptions
7717 prototype.
7718 * thread.c: Remove _initialize_thread prototype.
7719 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
7720 prototype.
7721 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
7722 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
7723 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
7724 prototype.
7725 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
7726 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
7727 * tracefile.c: Remove _initialize_tracefile prototype.
7728 * tracepoint.c: Remove _initialize_tracepoint prototype.
7729 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
7730 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
7731 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
7732 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
7733 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
7734 * tui/tui-win.c: Remove _initialize_tui_win prototype.
7735 * tui/tui.c: Remove _initialize_tui prototype.
7736 * typeprint.c: Remove _initialize_typeprint prototype.
7737 * user-regs.c: Remove _initialize_user_regs prototype.
7738 * utils.c: Remove _initialize_utils prototype.
7739 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
7740 * valarith.c: Remove _initialize_valarith prototype.
7741 * valops.c: Remove _initialize_valops prototype.
7742 * valprint.c: Remove _initialize_valprint prototype.
7743 * value.c: Remove _initialize_values prototype.
7744 * varobj.c: Remove _initialize_varobj prototype.
7745 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
7746 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
7747 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
7748 * windows-nat.c: Remove _initialize_windows_nat,
7749 _initialize_check_for_gdb_ini, and _initialize_loadable
7750 prototypes.
7751 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
7752 * xcoffread.c: Remove _initialize_xcoffread prototype.
7753 * xml-support.c: Remove _initialize_xml_support prototype.
7754 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
7755 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
7756 prototype.
7757 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
7758 prototype.
7759 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
7760
7761 2017-09-08 Keith Seitz <keiths@redhat.com>
7762
7763 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
7764 field.
7765
7766 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
7767
7768 * f-valprint.c (f_val_print): Remove check for one byte
7769 sized integers. Remove printing of character type.
7770
7771 2017-09-08 Frank Penczek <frank.penczek@intel.com>
7772 Christoph Weinmann <christoph.t.weinmann@intel.com>
7773 Bernhard Heckel <bernhard.heckel@intel.com>
7774
7775 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
7776 to maintain proper indentation when printing pointers/refs.
7777
7778 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7779
7780 GDB 8.0.1 released.
7781
7782 2017-09-07 Joel Brobecker <brobecker@adacore.com>
7783
7784 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
7785
7786 2017-09-05 Tom Tromey <tom@tromey.com>
7787
7788 * parse.c (funcall_chain): Now a std::vector.
7789 (start_arglist, end_arglist): Simplify.
7790 (free_funcalls): Remove.
7791 (parse_exp_in_context_1): Remove cleanup.
7792
7793 2017-09-05 Tom Tromey <tom@tromey.com>
7794
7795 * go-exp.y (go_parse): Don't create a cleanup.
7796
7797 2017-09-05 Tom Tromey <tom@tromey.com>
7798
7799 * d-exp.y (PrimaryExpression): Use std::string.
7800 (d_parse): Don't create a cleanup.
7801
7802 2017-09-05 Tom Tromey <tom@tromey.com>
7803
7804 * utils.c (do_clear_parser_state): Remove.
7805 (make_cleanup_clear_parser_state): Remove.
7806 * p-exp.y (pascal_parse): Use scoped_restore.
7807 * m2-exp.y (m2_parse): Use scoped_restore.
7808 * f-exp.y (f_parse): Use scoped_restore.
7809 * d-exp.y (d_parse): Use scoped_restore.
7810 * c-exp.y (c_parse): Use scoped_restore.
7811 * ada-exp.y (ada_parse): Use scoped_restore.
7812 * utils.h (make_cleanup_clear_parser_state): Remove.
7813
7814 2017-09-06 Keith Seitz <keiths@redhat.com>
7815
7816 * dwarf2read.c (dw2_linkage_name_attr): New function.
7817 (dw2_linkage_name): New function.
7818 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
7819 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
7820 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
7821
7822 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7823
7824 * config/djgpp/djconfig.sh: Correct shell portability issue.
7825
7826 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7827
7828 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
7829
7830 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7831
7832 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
7833 * NEWS: Mention new FreeBSD/mips native configuration.
7834 * configure.host: Add aarch64*-*-freebsd*.
7835 * configure.nat: Likewise.
7836 * aarch64-fbsd-nat.c: New file.
7837
7838 2017-09-06 John Baldwin <jhb@FreeBSD.org>
7839
7840 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
7841 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
7842 * NEWS: Mention new FreeBSD/aarch64 target.
7843 * configure.tgt: Add aarch64*-*-freebsd*.
7844 * aarch64-fbsd-tdep.c: New file.
7845 * aarch64-fbsd-tdep.h: New file.
7846
7847 2017-09-06 Kamil Rytarowski <n54@gmx.com>
7848
7849 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
7850
7851 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7852
7853 * parse.c (find_minsym_type_and_address): Don't relocate addresses
7854 of TLS symbols.
7855
7856 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7857
7858 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
7859 call.
7860
7861 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7862
7863 * infrun.c (follow_exec): Call add_thread after
7864 target_find_description.
7865
7866 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7867
7868 * infrun.c (handle_inferior_event_1): When exec'ing, read
7869 stop_pc after follow_exec.
7870
7871 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
7872
7873 * remote.c (process_g_packet): Update error message.
7874
7875 2017-09-05 Yao Qi <yao.qi@linaro.org>
7876
7877 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
7878 targets.
7879
7880 2017-09-05 Pedro Alves <palves@redhat.com>
7881
7882 * eval.c (eval_call, evaluate_funcall): New functions, factored
7883 out from ...
7884 (evaluate_subexp_standard): ... this.
7885
7886 2017-09-05 Yao Qi <yao.qi@linaro.org>
7887
7888 * amd64-tdep.c (amd64_target_description): Create target
7889 descriptions.
7890 (_initialize_amd64_tdep): Don't call functions
7891 initialize_tdesc_amd64_*. Add self tests.
7892 * arch/amd64.c (amd64_create_target_description): Add parameter
7893 is_linux. Call set_tdesc_osabi if is_linux is true.
7894 * arch/amd64.h (amd64_create_target_description): Update the
7895 declaration.
7896 * arch/i386.c (i386_create_target_description): Add parameter
7897 is_linux. Call set_tdesc_osabi if is_linux is true.
7898 * arch/i386.h (i386_create_target_description): Update
7899 declaration.
7900 * configure.tgt: Add i386.o to gdb_target_obs.
7901 * features/Makefile (XMLTOC): Remove i386/*.xml.
7902 * features/i386/amd64-avx-avx512.c: Remove.
7903 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
7904 * features/i386/amd64-avx-mpx.c: Remove.
7905 * features/i386/amd64-avx.c: Remove.
7906 * features/i386/amd64-mpx.c: Remove.
7907 * features/i386/amd64.c: Remove.
7908 * features/i386/i386-avx-avx512.c: Remove.
7909 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
7910 * features/i386/i386-avx-mpx.c: Remove.
7911 * features/i386/i386-avx.c: Remove.
7912 * features/i386/i386-mmx.c: Remove.
7913 * features/i386/i386-mpx.c: Remove.
7914 * features/i386/i386.c: Remove.
7915 * i386-tdep.c: Don't include features/i386/i386*.c., include
7916 target-descriptions.h and arch/i386.h.
7917 (i386_target_description): Create target descriptions.
7918 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
7919 functions. Do self tests.
7920
7921 2017-09-05 Yao Qi <yao.qi@linaro.org>
7922
7923 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
7924 * features/i386/amd64-avx-avx512-linux.c: Removed.
7925 * features/i386/amd64-avx-linux.c: Removed.
7926 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
7927 * features/i386/amd64-avx-mpx-linux.c: Removed.
7928 * features/i386/amd64-linux.c: Removed.
7929 * features/i386/amd64-mpx-linux.c: Removed.
7930 * features/i386/x32-avx-avx512-linux.c: Removed.
7931 * features/i386/x32-avx-linux.c: Removed.
7932 * features/i386/x32-linux.c: Removed.
7933
7934 2017-09-05 Yao Qi <yao.qi@linaro.org>
7935
7936 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
7937 features/i386/*.c.
7938 (amd64_linux_read_description): Call
7939 amd64_create_target_description.
7940 * arch/amd64.c: New file.
7941 * arch/amd64.h: New file.
7942 * configure.tgt (x86_64-*-linux*): Append amd64.o.
7943 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
7944
7945 2017-09-05 Yao Qi <yao.qi@linaro.org>
7946
7947 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
7948 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
7949 (amd64_linux_read_description): Create target descriptions.
7950 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
7951 functions. Add unit tests.
7952 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
7953 x32-core.xml.
7954 * features/i386/64bit-avx.c: Generated.
7955 * features/i386/64bit-avx512.c: Generated.
7956 * features/i386/64bit-core.c: Generated.
7957 * features/i386/64bit-linux.c: Generated.
7958 * features/i386/64bit-mpx.c: Generated.
7959 * features/i386/64bit-pkeys.c: Generated.
7960 * features/i386/64bit-segments.c: Generated.
7961 * features/i386/64bit-sse.c: Generated.
7962 * features/i386/x32-core.c: Generated.
7963 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
7964 c files for amd64-linux and x32-linux.
7965
7966 2017-09-05 Yao Qi <yao.qi@linaro.org>
7967
7968 * amd64-linux-tdep.c (amd64_linux_read_description): New
7969 function.
7970 (amd64_linux_core_read_description): Call
7971 amd64_linux_read_description.
7972 (amd64_linux_init_abi): Likewise.
7973 (amd64_x32_linux_init_abi): Likewise.
7974 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
7975 * x86-linux-nat.c (x86_linux_read_description): Call
7976 amd64_linux_read_description.
7977
7978 2017-09-05 Yao Qi <yao.qi@linaro.org>
7979
7980 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
7981 comments.
7982
7983 2017-09-05 Yao Qi <yao.qi@linaro.org>
7984
7985 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
7986 * features/i386/i386-avx-avx512-linux.c: Remove.
7987 * features/i386/i386-avx-linux.c: Remove.
7988 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
7989 * features/i386/i386-avx-mpx-linux.c: Remove.
7990 * features/i386/i386-linux.c: Remove.
7991 * features/i386/i386-mmx-linux.c: Remove.
7992 * features/i386/i386-mpx-linux.c: Remove.
7993
7994 2017-09-05 Yao Qi <yao.qi@linaro.org>
7995
7996 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
7997 (SFILES): Add arch/i386.c.
7998 (HFILES_NO_SRCDIR): Add arch/i386.h.
7999 * arch/i386.c: New file.
8000 * arch/i386.h: New file.
8001 * arch/tdesc.h (allocate_target_description): Declare.
8002 (set_tdesc_architecture): Declare.
8003 (set_tdesc_osabi): Declare.
8004 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
8005 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
8006 include arch/i386.h.
8007 (i386_linux_read_description): Remove code and call
8008 i386_create_target_description.
8009 (set_tdesc_architecture): New function.
8010 (set_tdesc_osabi): New function.
8011 * target-descriptions.h (allocate_target_description): Remove.
8012
8013 2017-09-05 Yao Qi <yao.qi@linaro.org>
8014
8015 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
8016 * target-descriptions.c (tdesc_create_feature): Likewise, and
8017 adjust code.
8018 * features/i386/32bit-avx.c: Re-generated.
8019 * features/i386/32bit-avx512.c: Re-generated.
8020 * features/i386/32bit-core.c: Re-generated.
8021 * features/i386/32bit-linux.c: Re-generated.
8022 * features/i386/32bit-mpx.c: Re-generated.
8023 * features/i386/32bit-pkeys.c: Re-generated.
8024 * features/i386/32bit-sse.c: Re-generated.
8025
8026 2017-09-05 Yao Qi <yao.qi@linaro.org>
8027
8028 * regformats/regdef.h (struct reg): Override operator == and !=.
8029
8030 2017-09-05 Yao Qi <yao.qi@linaro.org>
8031
8032 * arch/tdesc.h: New file.
8033 * regformats/regdat.sh: Generate code using tdesc_create_reg.
8034 * target-descriptions.c: Update comments.
8035 * target-descriptions.h: Include "arch/tdesc.h". Remove the
8036 declarations.
8037 * features/i386/32bit-avx.c: Re-generated.
8038 * features/i386/32bit-avx512.c: Re-generated.
8039 * features/i386/32bit-core.c: Re-generated.
8040 * features/i386/32bit-linux.c: Re-generated.
8041 * features/i386/32bit-mpx.c: Re-generated.
8042 * features/i386/32bit-pkeys.c: Re-generated.
8043 * features/i386/32bit-sse.c: Re-generated.
8044
8045 2017-09-05 Yao Qi <yao.qi@linaro.org>
8046
8047 * regformats/regdat.sh: Update generated code.
8048
8049 2017-09-05 Yao Qi <yao.qi@linaro.org>
8050
8051 * regformats/regdat.sh: Adjust code order.
8052
8053 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
8054
8055 * expprint.c (dump_subexp_body_standard): Use constant format
8056 string in fprintf_filtered call.
8057
8058 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8059
8060 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
8061 NetBSD/i386.
8062 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
8063
8064 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8065
8066 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
8067
8068 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8069
8070 * bsd-kvm.o: Define _KMEMUSER.
8071 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
8072 * configure: Regenerate.
8073
8074 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8075
8076 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
8077 * i386-fbsd-nat.c: Likewise.
8078
8079 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8080
8081 * unittests/array-view-selftests.c: Add include of <array>.
8082
8083 2017-09-04 John Baldwin <jhb@FreeBSD.org>
8084
8085 * spu-tdep.c (flush_ea_cache): Add missing argument to
8086 call_function_by_hand.
8087
8088 2017-09-04 Pedro Alves <palves@redhat.com>
8089
8090 * NEWS (Safer support for debugging with no debug info): New.
8091
8092 2017-09-04 Pedro Alves <palves@redhat.com>
8093
8094 * c-exp.y (function_method, function_method_void): Add current
8095 instance flags to TYPE_INSTANCE.
8096 * dwarf2read.c (check_modifier): New.
8097 (compute_delayed_physnames): Assert that only C++ adds delayed
8098 physnames. Mark fn_fields as const/volatile depending on
8099 physname.
8100 * eval.c (make_params): New type_instance_flags parameter. Use
8101 it as the new type's instance flags.
8102 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
8103 flags element and pass it to make_params.
8104 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
8105 instance flags element.
8106 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
8107 * gdbtypes.h: Include "enum-flags.h".
8108 (type_instance_flags): New enum-flags type.
8109 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
8110 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
8111 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
8112 (follow_type_instance_flags): New function.
8113 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
8114 * parser-defs.h (follow_type_instance_flags): Declare.
8115 * valops.c (value_struct_elt_for_reference): const/volatile must
8116 match too.
8117
8118 2017-09-04 Pedro Alves <palves@redhat.com>
8119
8120 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
8121 function/method scopes; lookup the nested name as a function local
8122 static variable.
8123
8124 2017-09-04 Pedro Alves <palves@redhat.com>
8125
8126 (%type <voidval>): Add function_method.
8127 * c-exp.y (exp): New production for calls with no arguments.
8128 (function_method, function_method_void_or_typelist): New
8129 productions.
8130 (exp): New production for "method()::static_var".
8131 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
8132 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8133 Handle OP_FUNC_STATIC_VAR.
8134 * parse.c (operator_length_standard):
8135 Handle OP_FUNC_STATIC_VAR.
8136
8137 2017-09-04 Pedro Alves <palves@redhat.com>
8138
8139 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
8140 handling.
8141 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8142 Ditto.
8143 * parse.c (operator_length_standard, operator_check_standard):
8144 Ditto.
8145 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
8146
8147 2017-09-04 Pedro Alves <palves@redhat.com>
8148
8149 * ax-gdb.c: Include "typeprint.h".
8150 (gen_expr_for_cast): New function.
8151 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
8152 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
8153 type is unknown.
8154 * dwarf2read.c (new_symbol_full): Fallback to int instead of
8155 nodebug_data_symbol.
8156 * eval.c: Include "typeprint.h".
8157 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
8158 Error out if symbol has unknown type.
8159 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
8160 evaluate_subexp_for_cast.
8161 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
8162 OP_VAR_MSYM_VALUE.
8163 (evaluate_subexp_for_cast): New function.
8164 * gdbtypes.c (init_nodebug_var_type): New function.
8165 (objfile_type): Use it to initialize types of variables with no
8166 debug info.
8167 * typeprint.c (error_unknown_type): New.
8168 * typeprint.h (error_unknown_type): New declaration.
8169 * compile/compile-c-types.c (convert_type_basic): Handle
8170 TYPE_CODE_ERROR; warn and fallback to int for variables with
8171 unknown type.
8172
8173 2017-09-04 Pedro Alves <palves@redhat.com>
8174
8175 * eval.c (evaluate_var_value): New function, factored out from ...
8176 (evaluate_subexp_standard): ... here.
8177
8178 2017-09-04 Pedro Alves <palves@redhat.com>
8179
8180 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
8181 Remove useless assignments to 'op'.
8182
8183 2017-09-04 Pedro Alves <palves@redhat.com>
8184
8185 * eval.c (eval_skip_value): New function.
8186 (evaluate_subexp_standard): Use it.
8187
8188 2017-09-04 Pedro Alves <palves@redhat.com>
8189
8190 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
8191 function name from symbol/minsym and pass it to
8192 error_call_unknown_return_type.
8193
8194 2017-09-04 Pedro Alves <palves@redhat.com>
8195
8196 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
8197 * ax-gdb.c (gen_msym_var_ref): New function.
8198 (gen_expr): Handle OP_VAR_MSYM_VALUE.
8199 * eval.c (evaluate_var_msym_value): New function.
8200 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
8201 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
8202 to call_function_by_hand.
8203 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
8204 Handle OP_VAR_MSYM_VALUE.
8205 (union exp_element) <msymbol>: New field.
8206 * minsyms.h (struct type): Forward declare.
8207 (find_minsym_type_and_address): Declare.
8208 * parse.c (write_exp_elt_msym): New function.
8209 (write_exp_msymbol): Delete, refactored as ...
8210 (find_minsym_type_and_address): ... this new function.
8211 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
8212 (operator_length_standard, operator_check_standard): Handle
8213 OP_VAR_MSYM_VALUE.
8214 * std-operator.def (OP_VAR_MSYM_VALUE): New.
8215
8216 2017-09-04 Pedro Alves <palves@redhat.com>
8217
8218 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
8219 TYPE_GNU_IFUNC specially here. Throw error if return type is
8220 unknown.
8221 * ada-typeprint.c (print_func_type): Handle functions with unknown
8222 return type.
8223 * c-typeprint.c (c_type_print_base): Handle functions and methods
8224 with unknown return type.
8225 * compile/compile-c-symbols.c (convert_symbol_bmsym)
8226 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
8227 * compile/compile-c-types.c: Include "objfiles.h".
8228 (convert_func): For functions with unknown return type, warn and
8229 default to int.
8230 * compile/compile-object-run.c (compile_object_run): Adjust call
8231 to call_function_by_hand_dummy.
8232 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
8233 call_function_by_hand.
8234 * eval.c (evaluate_subexp_standard): Adjust calls to
8235 call_function_by_hand. Handle functions and methods with unknown
8236 return type. Pass expect_type to call_function_by_hand.
8237 * f-typeprint.c (f_type_print_base): Handle functions with unknown
8238 return type.
8239 * gcore.c (call_target_sbrk): Adjust call to
8240 call_function_by_hand.
8241 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
8242 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
8243 an integer address type instead of nodebug.
8244 * guile/scm-value.c (gdbscm_value_call): Adjust call to
8245 call_function_by_hand.
8246 * infcall.c (error_call_unknown_return_type): New function.
8247 (call_function_by_hand): New "default_return_type" parameter.
8248 Pass it down.
8249 (call_function_by_hand_dummy): New "default_return_type"
8250 parameter. Use it instead of defaulting to int. If there's no
8251 default and the return type is unknown, throw an error. If
8252 there's a default return type, and the called function has no
8253 debug info, then assume the function is prototyped.
8254 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
8255 New "default_return_type" parameter.
8256 (error_call_unknown_return_type): New declaration.
8257 * linux-fork.c (call_lseek): Cast return type of lseek.
8258 (inferior_call_waitpid, checkpoint_command): Adjust calls to
8259 call_function_by_hand.
8260 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
8261 calls to call_function_by_hand.
8262 * m2-typeprint.c (m2_procedure): Handle functions with unknown
8263 return type.
8264 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8265 (value_nsstring, print_object_command): Adjust calls to
8266 call_function_by_hand.
8267 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
8268 functions with unknown return type.
8269 (pascal_type_print_func_varspec_suffix): New function.
8270 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
8271 TYPE_CODE_METHOD>: Use it.
8272 * python/py-value.c (valpy_call): Adjust call to
8273 call_function_by_hand.
8274 * rust-lang.c (rust_evaluate_funcall): Adjust call to
8275 call_function_by_hand.
8276 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
8277 call_function_by_hand.
8278 * valops.c (value_allocate_space_in_inferior): Adjust call to
8279 call_function_by_hand.
8280 * typeprint.c (type_print_unknown_return_type): New function.
8281 * typeprint.h (type_print_unknown_return_type): New declaration.
8282
8283 2017-09-04 Pedro Alves <palves@redhat.com>
8284
8285 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
8286 types with more than one parameter as prototyped.
8287
8288 2017-09-04 Pedro Alves <palves@redhat.com>
8289
8290 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
8291 (disassemble_command): Use gdb_disassembly_flags instead of bare
8292 int.
8293 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
8294 (dump_insns, do_mixed_source_and_assembly_deprecated)
8295 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
8296 Use gdb_disassembly_flags instead of bare int.
8297 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
8298 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
8299 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
8300 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
8301 (enum gdb_disassembly_flag): ... values of this new enumeration.
8302 (gdb_disassembly_flags): Define.
8303 (gdb_disassembly)
8304 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
8305 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
8306 gdb_disassembly_flags instead of bare int.
8307 * record-btrace.c (btrace_insn_history)
8308 (record_btrace_insn_history, record_btrace_insn_history_range)
8309 (record_btrace_insn_history_from): Use gdb_disassembly_flags
8310 instead of bare int.
8311 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
8312 Use gdb_disassembly_flags instead of bare int.
8313 * target-debug.h (target_debug_print_gdb_disassembly_flags):
8314 Define.
8315 * target-delegates.c: Regenerate.
8316 * target.c (target_insn_history, target_insn_history_from)
8317 (target_insn_history_range): Use gdb_disassembly_flags instead of
8318 bare int.
8319 * target.h: Include "disasm.h".
8320 (struct target_ops) <to_insn_history, to_insn_history_from,
8321 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
8322 int.
8323 (target_insn_history, target_insn_history_from)
8324 (target_insn_history_range): Use gdb_disassembly_flags instead of
8325 bare int.
8326
8327 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8328
8329 * cli/cli-script.c (build_command_line): For if/while commands,
8330 check whether args is empty.
8331
8332 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8333
8334 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
8335 (enum command_control_type): Likewise.
8336 (struct command_line): Likewise.
8337 (free_command_lines): Likewise.
8338 (struct command_lines_deleter): Likewise.
8339 (command_line_up): Likewise.
8340 (read_command_lines): Likewise.
8341 (read_command_lines_1): Likewise.
8342 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
8343 (enum command_control_type): Likewise.
8344 (struct command_line): Likewise.
8345 (free_command_lines): Likewise.
8346 (struct command_lines_deleter): Likewise.
8347 (command_line_up): Likewise.
8348 (read_command_lines): Likewise.
8349 (read_command_lines_1): Likewise.
8350 * breakpoint.h: Include cli/cli-script.h.
8351 * extension-priv.h: Likewise.
8352 * gdbcmd.h: Likewise.
8353
8354 2017-09-04 Pedro Alves <palves@redhat.com>
8355
8356 * ada-lang.c (is_known_support_routine): Move sal declaration to
8357 where it is initialized.
8358 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
8359 (parse_breakpoint_sals, decode_static_tracepoint_spec)
8360 (clear_command, update_static_tracepoint): Remove init_sal
8361 references. Move declarations closer to initializations.
8362 * cli/cli-cmds.c (list_command): Move sal declarations closer to
8363 initializations.
8364 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
8365 references. Move sal declarations closer to initializations.
8366 * frame.c (find_frame_sal): Return a symtab_and_line via function
8367 return instead of output parameter. Remove init_sal references.
8368 * frame.h (find_frame_sal): Return a symtab_and_line via function
8369 return instead of output parameter.
8370 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
8371 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
8372 instead of memset.
8373 (gdbscm_find_pc_line): Remove init_sal reference.
8374 * infcall.c (call_function_by_hand_dummy): Remove init_sal
8375 references. Move declarations closer to initializations.
8376 * infcmd.c (set_step_frame): Update. Move declarations closer to
8377 initializations.
8378 (finish_backward): Remove init_sal references. Move declarations
8379 closer to initializations.
8380 * infrun.c (process_event_stop_test, handle_step_into_function)
8381 (insert_hp_step_resume_breakpoint_at_frame)
8382 (insert_step_resume_breakpoint_at_caller): Likewise.
8383 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
8384 (symbol_to_sal): Likewise.
8385 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
8386 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
8387 to its initialization.
8388 * reverse.c (save_bookmark_command): Use new/delete. Remove
8389 init_sal references. Move declarations closer to initializations.
8390 * source.c (get_current_source_symtab_and_line): Remove brace
8391 initialization.
8392 (set_current_source_symtab_and_line): Now takes the sal by const
8393 reference. Remove brace initialization.
8394 (line_info): Remove init_sal reference.
8395 * source.h (set_current_source_symtab_and_line): Now takes a
8396 symtab_and_line via const reference.
8397 * stack.c (set_current_sal_from_frame): Adjust.
8398 (print_frame_info): Adjust.
8399 (get_last_displayed_sal): Return the sal via function return
8400 instead of via output parameter. Simplify.
8401 (frame_info): Adjust.
8402 * stack.h (get_last_displayed_sal): Return the sal via function
8403 return instead of via output parameter.
8404 * symtab.c (init_sal): Delete.
8405 (find_pc_sect_line): Remove init_sal references. Move
8406 declarations closer to initializations.
8407 (find_function_start_sal): Remove init_sal references. Move
8408 declarations closer to initializations.
8409 * symtab.h (struct symtab_and_line): In-class initialize all
8410 fields.
8411 * tracepoint.c (set_traceframe_context)
8412 (print_one_static_tracepoint_marker): Remove init_sal references.
8413 Move declarations closer to initializations.
8414 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
8415 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
8416 declarations closer to initializations.
8417 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
8418 init_sal references. Adjust.
8419
8420 2017-09-04 Pedro Alves <palves@redhat.com>
8421
8422 * ax-gdb.c (agent_command_1): Use range-for.
8423 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8424 * breakpoint.c: Include "common/array-view.h".
8425 (init_breakpoint_sal, create_breakpoint_sal): Change sals
8426 parameter from struct symtabs_and_lines to
8427 array_view<symtab_and_line>. Adjust. Use range-for. Update.
8428 (breakpoint_sals_to_pc): Change sals parameter from struct
8429 symtabs_and_lines to std::vector reference.
8430 (check_fast_tracepoint_sals): Change sals parameter from struct
8431 symtabs_and_lines to std::array_view. Use range-for.
8432 (decode_static_tracepoint_spec): Return a std::vector instead of
8433 symtabs_and_lines. Update.
8434 (create_breakpoint): Update.
8435 (break_range_command, until_break_command, clear_command): Update.
8436 (base_breakpoint_decode_location, bkpt_decode_location)
8437 (bkpt_probe_create_sals_from_location)
8438 (bkpt_probe_decode_location, tracepoint_decode_location)
8439 (tracepoint_probe_decode_location)
8440 (strace_marker_create_sals_from_location): Return a std::vector
8441 instead of symtabs_and_lines.
8442 (strace_marker_create_breakpoints_sal): Update.
8443 (strace_marker_decode_location): Return a std::vector instead of
8444 symtabs_and_lines. Update.
8445 (update_breakpoint_locations): Change struct symtabs_and_lines
8446 parameters to gdb::array_view. Adjust.
8447 (location_to_sals): Return a std::vector instead of
8448 symtabs_and_lines. Update.
8449 (breakpoint_re_set_default): Use std::vector instead of struct
8450 symtabs_and_lines.
8451 (decode_location_default): Return a std::vector instead of
8452 symtabs_and_lines. Update.
8453 * breakpoint.h: Include "common/array-view.h".
8454 (struct breakpoint_ops) <decode_location>: Now returns a
8455 std::vector instead of returning a symtabs_and_lines via output
8456 parameter.
8457 (update_breakpoint_locations): Change sals parameters to use
8458 gdb::array_view.
8459 * cli/cli-cmds.c (edit_command, list_command): Update to use
8460 std::vector and gdb::array_view.
8461 (ambiguous_line_spec): Adjust to use gdb::array_view and
8462 range-for.
8463 (compare_symtabs): Rename to ...
8464 (cmp_symtabs): ... this. Change parameters to symtab_and_line
8465 const reference and adjust.
8466 (filter_sals): Rewrite using std::vector and standard algorithms.
8467 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
8468 (jump_command): Update to use std::vector.
8469 * linespec.c (struct linespec_state) <canonical_names>: Update
8470 comment.
8471 (add_sal_to_sals_basic): Delete.
8472 (add_sal_to_sals, filter_results, convert_results_to_lsals)
8473 (decode_line_2, create_sals_line_offset)
8474 (convert_address_location_to_sals, convert_linespec_to_sals)
8475 (convert_explicit_location_to_sals, parse_linespec)
8476 (event_location_to_sals, decode_line_full, decode_line_1)
8477 (decode_line_with_current_source)
8478 (decode_line_with_last_displayed, decode_objc)
8479 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
8480 (linespec_result::~linespec_result): Adjust to use std::vector
8481 instead of symtabs_and_lines.
8482 * linespec.h (linespec_sals::sals): Now a std::vector.
8483 (struct linespec_result): Use std::vector, bool, and in-class
8484 initialization.
8485 (decode_line_1, decode_line_with_current_source)
8486 (decode_line_with_last_displayed): Return std::vector.
8487 * macrocmd.c (info_macros_command): Use std::vector.
8488 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
8489 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
8490 std::vector.
8491 * probe.h (parse_probes): Return a std::vector.
8492 * python/python.c (gdbpy_decode_line): Use std::vector and
8493 gdb::array_view.
8494 * source.c (select_source_symtab, line_info): Use std::vector.
8495 * stack.c (func_command): Use std::vector.
8496 * symtab.h (struct symtabs_and_lines): Delete.
8497 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
8498
8499 2017-09-04 Pedro Alves <palves@redhat.com>
8500
8501 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8502 unittests/array-view-selftests.c.
8503 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
8504 * common/array-view.h: New file.
8505 * unittests/array-view-selftests.c: New file.
8506
8507 2017-09-04 Pedro Alves <palves@redhat.com>
8508
8509 * cli/cli-cmds.c (edit_command): Pass message to
8510 ambiguous_line_spec.
8511 (list_command): Pass message to ambiguous_line_spec. Say
8512 "first"/"last" instead of "start" and "end" to be consistent with
8513 the manual.
8514 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
8515 them to print formatted message.
8516
8517 2017-09-04 Pedro Alves <palves@redhat.com>
8518
8519 * btrace.c (ftrace_add_pt): Pass btrace_insn to
8520 ftrace_update_insns by reference instead of pointer.
8521
8522 2017-09-04 Yao Qi <yao.qi@linaro.org>
8523
8524 * i386-go32-tdep.c: Include x86-xstate.h.
8525 (i386_go32_init_abi): Call i386_target_description.
8526 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
8527 if xcr0 is X86_XSTATE_X87_MASK.
8528 * i386-tdep.h (tdesc_i386): Remove the declaration.
8529 (tdesc_i386_mmx): Likewise.
8530
8531 2017-09-04 Yao Qi <yao.qi@linaro.org>
8532
8533 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
8534 X86_XSTATE_SSE_MASK instead of 0.
8535
8536 2017-09-04 Yao Qi <yao.qi@linaro.org>
8537
8538 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
8539 i386_target_description.
8540 * i386-fbsd-nat.c (i386fbsd_read_description): Call
8541 i386_target_description.
8542 * i386-tdep.c (i386_gdbarch_init): Likewise.
8543
8544 2017-09-04 Yao Qi <yao.qi@linaro.org>
8545
8546 * amd64-darwin-tdep.c: Include "x86-xstate.h".
8547 (x86_darwin_init_abi_64): Call amd64_target_description.
8548 * amd64-dicos-tdep.c: Likewise.
8549 * amd64-fbsd-nat.c: Likewise.
8550 * amd64-fbsd-tdep.c: Likewise.
8551 * amd64-nbsd-tdep.c: Likewise.
8552 * amd64-obsd-tdep.c: Likewise.
8553 * amd64-sol2-tdep.c: Likewise.
8554 * amd64-windows-tdep.c: Likewise.
8555 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
8556
8557 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
8558
8559 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
8560 (btrace_function) <insn>: Change type to use std::vector.
8561 * btrace.c (ftrace_debug, ftrace_call_num_insn,
8562 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
8563 ftrace_update_insns, ftrace_compute_global_level_offset,
8564 btrace_stitch_bts, btrace_clear, btrace_insn_get,
8565 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
8566 change to std::vector.
8567 (ftrace_update_insns): Adjust to change to std::vector, change
8568 type of INSN parameter.
8569 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
8570 * record-btrace.c (btrace_call_history_insn_range,
8571 btrace_compute_src_line_range,
8572 record_btrace_frame_prev_register): Adjust to change to
8573 std::vector.
8574 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
8575 to change to std::vector.
8576
8577 2017-09-03 Tom Tromey <tom@tromey.com>
8578
8579 * corefile.c (reopen_exec_file): Use std::string.
8580
8581 2017-09-03 Tom Tromey <tom@tromey.com>
8582
8583 * compile/compile.c (compile_register_name_mangled): Return
8584 std::string.
8585 * compile/compile-loc2c.c (pushf_register_address): Update.
8586 (pushf_register): Update.
8587 * compile/compile-c-types.c (convert_array): Update.
8588 * compile/compile-c-symbols.c (generate_vla_size): Update.
8589 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
8590 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
8591 (convert_one_symbol): Update.
8592 (generate_c_for_for_one_variable): Update.
8593 * compile/compile-c-support.c (c_get_range_decl_name): Return a
8594 std::string.
8595 (generate_register_struct): Update.
8596 * compile/compile-internal.h (c_get_range_decl_name): Return a
8597 std::string.
8598 (compile_register_name_mangled): Return std::string.
8599
8600 2017-09-03 Tom Tromey <tom@tromey.com>
8601
8602 * utils.c (perror_string): Return a std::string.
8603 (throw_perror_with_name, perror_warning_with_name): Update.
8604
8605 2017-09-03 Tom Tromey <tom@tromey.com>
8606
8607 * demangle.c (demangle_command): Use std::string,
8608 unique_xmalloc_ptr.
8609
8610 2017-09-03 Tom Tromey <tom@tromey.com>
8611
8612 * cli/cli-setshow.c (do_set_command): Use std::string.
8613
8614 2017-09-03 Tom Tromey <tom@tromey.com>
8615
8616 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
8617
8618 2017-09-03 Tom Tromey <tom@tromey.com>
8619
8620 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
8621
8622 2017-09-03 Tom Tromey <tom@tromey.com>
8623
8624 * mi/mi-cmd-env.c (env_execute_cli_command): Use
8625 gdb::unique_xmalloc_ptr.
8626
8627 2017-09-03 Tom Tromey <tom@tromey.com>
8628
8629 * thread.c (print_thread_info_1): Use string_printf.
8630 (thread_apply_command, thread_apply_all_command): Use
8631 std::string.
8632
8633 2017-09-03 Tom Tromey <tom@tromey.com>
8634
8635 * valprint.c (val_print_string): Update.
8636 * gdbcore.h (memory_error_message): Return std::string.
8637 * corefile.c (memory_error_message): Return std::string.
8638 (memory_error): Update.
8639 * breakpoint.c (insert_bp_location): Update.
8640
8641 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
8642
8643 * target/waitstatus.h (target_waitstatus_to_string): Change
8644 return type to std::string.
8645 * target/waitstatus.c (target_waitstatus_to_string): Return
8646 std::string.
8647 * target.h (target_waitstatus_to_string): Remove declaration.
8648 * infrun.c (resume, clear_proceed_status_thread,
8649 print_target_wait_results, do_target_wait, save_waitstatus,
8650 stop_all_threads): Adjust.
8651 * record-btrace.c (record_btrace_wait): Adjust.
8652 * target-debug.h
8653 (target_debug_print_struct_target_waitstatus_p): Adjust.
8654
8655 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8656
8657 PR gdb/22046
8658 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
8659 detection.
8660
8661 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
8662
8663 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
8664 for setting/unsetting environment variables on the remote target.
8665 (New remote packets): Add entries for QEnvironmentHexEncoded,
8666 QEnvironmentUnset and QEnvironmentReset.
8667 * common/environ.c (gdb_environ::operator=): Extend method to
8668 handle m_user_set_env_list and m_user_unset_env_list.
8669 (gdb_environ::clear): Likewise.
8670 (match_var_in_string): Change type of first parameter from 'char
8671 *' to 'const char *'.
8672 (gdb_environ::set): Extend method to handle
8673 m_user_set_env_list and m_user_unset_env_list.
8674 (gdb_environ::unset): Likewise.
8675 (gdb_environ::clear_user_set_env): New method.
8676 (gdb_environ::user_set_envp): Likewise.
8677 (gdb_environ::user_unset_envp): Likewise.
8678 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
8679 m_user_unset_env_list on move constructor/assignment.
8680 (unset): Add new default parameter 'update_unset_list = true'.
8681 (clear_user_set_env): New method.
8682 (user_set_envp): Likewise.
8683 (user_unset_envp): Likewise.
8684 (m_user_set_env_list): New std::set.
8685 (m_user_unset_env_list): Likewise.
8686 * common/rsp-low.c (hex2str): New function.
8687 (bin2hex): New overload for bin2hex function.
8688 * common/rsp-low.c (hex2str): New prototype.
8689 (str2hex): New overload prototype.
8690 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
8691 QEnvironmentUnset and QEnvironmentReset.
8692 (remote_protocol_features): Add QEnvironmentHexEncoded,
8693 QEnvironmentUnset and QEnvironmentReset packets.
8694 (send_environment_packet): New function.
8695 (extended_remote_environment_support): Likewise.
8696 (extended_remote_create_inferior): Call
8697 extended_remote_environment_support.
8698 (_initialize_remote): Add QEnvironmentHexEncoded,
8699 QEnvironmentUnset and QEnvironmentReset packet configs.
8700 * unittests/environ-selftests.c (gdb_selftest_env_var):
8701 New variable.
8702 (test_vector_initialization): New function.
8703 (test_init_from_host_environ): Likewise.
8704 (test_reinit_from_host_environ): Likewise.
8705 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
8706 Likewise.
8707 (test_unset_set_empty_vector): Likewise.
8708 (test_vector_clear): Likewise.
8709 (test_std_move): Likewise.
8710 (test_move_constructor):
8711 (test_self_move): Likewise.
8712 (test_set_unset_reset): Likewise.
8713 (run_tests): Rewrite in terms of the functions above.
8714
8715 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
8716
8717 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
8718 (adi_available): Use a temp variable of type CORE_ADDR as argument
8719 3 when calling target_auxv_search.
8720 (adi_normalize_address): Use masks and xor operators to calculate
8721 normalized address.
8722 (adi_read_versions, adi_write_versions, adi_print_versions)
8723 (do_examine, do_assign): Use paddress.
8724
8725 2017-08-29 John Baldwin <jhb@FreeBSD.org>
8726
8727 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
8728 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
8729 out of loop and add supply of FIR.
8730 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
8731 add collect of FIR.
8732
8733 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
8734
8735 PR gdb/21827
8736 * cli/cli-script.c (define_command): Don't convert command name
8737 to lower case.
8738
8739 2017-08-25 Joel Brobecker <brobecker@adacore.com>
8740
8741 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
8742 Update all callers accordingly. Remove all code blocks handling
8743 the case where DISPP is not NULL.
8744
8745 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8746
8747 PR symtab/22003
8748 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
8749 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
8750 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
8751
8752 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8753
8754 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
8755 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
8756 (read_comp_units_from_section): New parameter abbrev_section, use
8757 read_and_check_comp_unit_head, allocate signatured_type if needed.
8758 (create_all_comp_units): Update read_comp_units_from_section caller.
8759
8760 2017-08-23 Pedro Alves <palves@redhat.com>
8761
8762 PR remote/21852
8763 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
8764 to null_ptid and switch to thread without reading the registers
8765 after adding the inferior.
8766
8767 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8768
8769 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
8770 compile-gcc.
8771 * compile/compile.c (compile_gcc, show_compile_gcc): New.
8772 (compile_to_object): Implement compile_gcc.
8773 (_initialize_compile): Install "set compile-gcc". Initialize
8774 compile_gcc.
8775
8776 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8777
8778 * compile/compile.c (compile_to_object): Conditionally call
8779 set_verbose. Conditionally call compile or compile_v0.
8780
8781 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
8782
8783 * sparc64-tdep.h: (adi_normalize_address): New export.
8784 * sparc-nat.h: (open_adi_tag_fd): New export.
8785 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
8786 * sparc64-linux-tdep.c:
8787 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
8788 (sparc64_linux_handle_segmentation_fault): New function.
8789 (sparc64_linux_init_abi): Register
8790 sparc64_linux_handle_segmentation_fault
8791 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
8792 (sparc64_addr_bits_remove): New function.
8793 (sparc64_init_abi): Register sparc64_addr_bits_remove.
8794 (MAX_PROC_NAME_SIZE): New macro.
8795 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
8796 (sparc64adilist): New variable.
8797 (adi_proc_list): New variable.
8798 (find_adi_info): New function.
8799 (add_adi_info): New function.
8800 (get_adi_info_proc): New function.
8801 (get_adi_info): New function.
8802 (info_adi_command): New function.
8803 (read_maps_entry): New function.
8804 (adi_available): New function.
8805 (adi_normalize_address): New function.
8806 (adi_align_address): New function.
8807 (adi_convert_byte_count): New function.
8808 (adi_tag_fd): New function.
8809 (adi_is_addr_mapped): New function.
8810 (adi_read_versions): New function.
8811 (adi_write_versions): New function.
8812 (adi_print_versions): New function.
8813 (do_examine): New function.
8814 (do_assign): New function.
8815 (adi_examine_command): New function.
8816 (adi_assign_command): New function.
8817 (_initialize_sparc64_adi_tdep): New function.
8818
8819 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
8820
8821 * breakpoint.c (breakpoints_info): Rename to ...
8822 (info_breakpoints_command): ... this.
8823 (watchpoints_info): Rename to ...
8824 (info_watchpoints_command): ... this.
8825 (tracepoints_info): Rename to ...
8826 (info_tracepoints_command): ... this.
8827 (_initialize_breakpoint): Adjust.
8828 * dcache.c (dcache_info): Rename to ...
8829 (info_display_command): ... this.
8830 (_initialize_dcache): Adjust.
8831 * frame.h (args_info): Rename to ...
8832 (info_args_command): ... this.
8833 (locals_info): Rename to ...
8834 (info_locals_command): ... this.
8835 * infcmd.c (nofp_registers_info): Rename to ...
8836 (info_registers_command): ... this.
8837 (float_info): Rename to ...
8838 (info_float_command): ... this.
8839 (program_info): Rename to ...
8840 (info_program_command): ... this.
8841 (all_registers_info): Rename to ...
8842 (info_all_registers_command): ... this.
8843 (vector_info): Rename to ...
8844 (info_vector_command): ... this.
8845 (float_info): Rename to ...
8846 (info_float_command): ... this.
8847 (_initialize_infcmd): Adjust.
8848 * inferior.h (term_info): Rename to ...
8849 (info_terminal_command): ... this.
8850 * inflow.c (term_info): Rename to ...
8851 (info_terminal_command): ... this.
8852 (_initialize_inflow): Adjust.
8853 * infrun.c (signals_info): Rename to ...
8854 (info_signals_command): ... this.
8855 (_initialize_infrun): Adjust.
8856 * objc-lang.c (classes_info): Rename to ...
8857 (info_classes_command): ... this.
8858 (selectors_info): Rename to ...
8859 (info_selectors_command): ... this.
8860 (_initialize_objc_language): Adjust.
8861 * printcmd.c (sym_info): Rename to ...
8862 (info_symbol_command): ... this.
8863 (address_info): Rename to ...
8864 (info_address_command): ... this.
8865 (display_info): Rename to ...
8866 (info_display_command): ... this.
8867 (_initialize_printcmd): Adjust.
8868 * reverse.c (bookmarks_info): Rename to ...
8869 (info_breakpoints_command): ... this.
8870 (_initialize_reverse): Adjust.
8871 * ser-go32.c (dos_info): Rename to ...
8872 (info_serial_command): ... this.
8873 (_initialize_ser_dos): Adjust.
8874 * skip.c (skip_info): Rename to ...
8875 (info_skip_command): ... this.
8876 (_initialize_step_skip): Adjust.
8877 * source.c (line_info): Rename to ...
8878 (info_line_command): ... this.
8879 (source_info): Rename to ...
8880 (info_source_command)
8881 * stack.c (frame_info): Rename to ...
8882 (info_frame_command): ... this.
8883 (locals_info): Rename to ...
8884 (info_locals_command): ... this.
8885 (args_info): Rename to ...
8886 (info_args_command): ... this.
8887 (_initialize_stack): Adjust.
8888 * symtab.c (sources_info): Rename to ...
8889 (info_sources_command): ... this.
8890 (variables_info): Rename to ...
8891 (info_variables_command): ... this.
8892 (functions_info): Rename to ...
8893 (info_functions_command): ... this.
8894 (types_info): Rename to ...
8895 (info_types_command): ... this.
8896 (_initialize_symtab): Adjust.
8897 * target.c (target_info): Rename to ...
8898 (info_target_command): ... this.
8899 (initialize_targets): Adjust.
8900 * tracepoint.c (tvariables_info): Rename to ...
8901 (info_tvariables_command): ... this.
8902 (scope_info): Rename to ...
8903 (info_scope_command): ... this.
8904 (trace_dump_actions): Adjust.
8905 (_initialize_tracepoint): Adjust.
8906
8907 2017-08-22 Tom Tromey <tom@tromey.com>
8908
8909 * breakpoint.h (install_breakpoint): Update.
8910 * breakpoint.c (add_solib_catchpoint): Update.
8911 (install_breakpoint): Change argument to a std::unique_ptr.
8912 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
8913 (create_breakpoint_sal, create_breakpoint): Update.
8914 (watch_command_1, catch_exec_command_1)
8915 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
8916 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
8917 Return the breakpoint.
8918 (set_raw_breakpoint_without_location, set_raw_breakpoint)
8919 (new_single_step_breakpoint): Update.
8920 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
8921 std::unique_ptr.
8922 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
8923 std::unique_ptr.
8924 * break-catch-sig.c (create_signal_catchpoint): Use
8925 std::unique_ptr.
8926 * ada-lang.c (create_ada_exception_catchpoint): Use
8927 std::unique_ptr.
8928
8929 2017-08-22 Tom Tromey <tom@tromey.com>
8930
8931 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
8932
8933 2017-08-22 Tom Tromey <tom@tromey.com>
8934
8935 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
8936 (lookup_partial_symbol): Update.
8937
8938 2017-08-22 Tom Tromey <tom@tromey.com>
8939
8940 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
8941 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
8942 (find_and_open_source, symtab_to_fullname): Update.
8943 * psymtab.c (psymtab_to_fullname): Update.
8944
8945 2017-08-22 Tom Tromey <tom@tromey.com>
8946
8947 * exec.c (exec_file_attach): Update.
8948 * linux-thread-db.c (try_thread_db_load): Update.
8949 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
8950 * utils.c (gdb_realpath): Change return type.
8951 (gdb_realpath_keepfile): Update.
8952 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
8953 (_initialize_utils): Register the new self test.
8954 * source.c (openp): Update.
8955 (find_and_open_source): Update.
8956 * nto-tdep.c (nto_find_and_open_solib): Update.
8957 * main.c (set_gdb_data_directory): Update.
8958 (captured_main_1): Update.
8959 * dwarf2read.c (dwarf2_get_dwz_file): Update
8960 (dw2_map_symbol_filenames): Update.
8961 * auto-load.c (auto_load_safe_path_vec_update): Update.
8962 (filename_is_in_auto_load_safe_path_vec): Change type of
8963 "filename_realp".
8964 (auto_load_objfile_script): Update.
8965 (file_is_auto_load_safe): Update. Use std::string.
8966 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
8967
8968 2017-08-22 Tom Tromey <tom@tromey.com>
8969
8970 * utils.c (gdb_realpath_keepfile): Return a
8971 gdb::unique_xmalloc_ptr.
8972 * exec.c (exec_file_attach): Update.
8973 * utils.h (gdb_realpath_keepfile): Return a
8974 gdb::unique_xmalloc_ptr.
8975
8976 2017-08-22 Tom Tromey <tom@tromey.com>
8977
8978 * compile/compile.c (compile_file_command): Use
8979 gdb::unique_xmalloc_ptr, std::string.
8980 * utils.c (gdb_abspath): Change return type.
8981 * source.c (openp): Update.
8982 * objfiles.c (allocate_objfile): Update.
8983 * main.c (set_gdb_data_directory): Update.
8984 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
8985
8986 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
8987
8988 * cli-cmds.c (list_commands): List actual code around more than
8989 one location.
8990
8991 2017-08-21 John Baldwin <jhb@FreeBSD.org>
8992
8993 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
8994
8995 2017-08-21 Pedro Alves <palves@redhat.com>
8996
8997 PR gdb/19487
8998 * c-exp.y (variable production): Handle function aliases.
8999 * minsyms.c (msymbol_is_text): New function.
9000 * minsyms.h (msymbol_is_text): Declare.
9001 * symtab.c (find_function_alias_target): New function.
9002 * symtab.h (find_function_alias_target): Declare.
9003
9004 2017-08-21 Pedro Alves <palves@redhat.com>
9005
9006 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
9007 typedefs.
9008 * typeprint.c (whatis_exp): If handling "whatis", and expression
9009 is OP_TYPE, strip one typedef level. Otherwise don't strip
9010 typedefs here.
9011 * valops.c (value_cast): Save "to" type before resolving
9012 stubs/typedefs. Use that type as resulting value's type.
9013
9014 2017-08-18 Tom Tromey <tom@tromey.com>
9015 Pedro Alves <palves@redhat.com>
9016
9017 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
9018 * sol-thread.c (sol_thread_resume, sol_thread_wait)
9019 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
9020 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
9021 * proc-service.c (ps_xfer_memory): Use scoped_restore.
9022 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
9023 (linux_get_siginfo_data): Add "thread" argument. Use
9024 scoped_restore.
9025 * linux-nat.c (linux_child_follow_fork)
9026 (check_stopped_by_watchpoint): Use scoped_restore.
9027 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
9028 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
9029 (restore_inferior_ptid, save_inferior_ptid): Remove.
9030 * btrace.c (btrace_fetch): Use scoped_restore.
9031 * bsd-uthread.c (bsd_uthread_fetch_registers)
9032 (bsd_uthread_store_registers): Use scoped_restore.
9033 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
9034 scoped_restore.
9035 * aix-thread.c (aix_thread_resume, aix_thread_wait)
9036 (aix_thread_xfer_partial): Use scoped_restore.
9037 * inferior.h (save_inferior_ptid): Remove.
9038
9039 2017-08-18 Yao Qi <yao.qi@linaro.org>
9040
9041 PR tdep/21818
9042 * arm-tdep.c (gdb_print_insn_arm): Mark
9043 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
9044
9045 2017-08-18 Yao Qi <yao.qi@linaro.org>
9046
9047 * NEWS: Mention GDBserver's new option "--selftest".
9048 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
9049 * selftest.c: Move it to common/selftest.c.
9050 * selftest.h: Move it to common/selftest.h.
9051 * selftest-arch.c (reset): New function.
9052 (tests_with_arch): Call reset.
9053
9054 2017-08-18 Yao Qi <yao.qi@linaro.org>
9055
9056 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
9057 instead of exception_fprintf and printf_filtered.
9058
9059 2017-08-18 Yao Qi <yao.qi@linaro.org>
9060
9061 * selftest.c (register_self_test): Rename it to
9062 selftests::register_test.
9063 (run_self_tests): selftest::run_tests.
9064 * selftest.h: Update declarations.
9065 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
9066 selftests::register_test_foreach_arch.
9067 * selftest-arch.h: Update declaration.
9068 * aarch64-tdep.c: Update.
9069 * arm-tdep.c: Likewise.
9070 * disasm-selftests.c: Likewise.
9071 * dwarf2loc.c: Likewise.
9072 * dwarf2-frame.c: Likewise.
9073 * findvar.c: Likewise.
9074 * gdbarch-selftests.c: Likewise.
9075 * maint.c (maintenance_selftest): Likewise.
9076 * regcache.c: Likewise.
9077 * rust-exp.y: Likewise.
9078 * selftest-arch.c: Likewise.
9079 * unittests/environ-selftests.c: Likewise.
9080 * unittests/function-view-selftests.c: Likewise.
9081 * unittests/offset-type-selftests.c: Likewise.
9082 * unittests/optional-selftests.c: Likewise.
9083 * unittests/scoped_restore-selftests.c: Likewise.
9084 * utils-selftests.c: Likewise.
9085
9086 2017-08-17 Pedro Alves <palves@redhat.com>
9087
9088 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
9089 local.
9090
9091 2017-08-17 Pedro Alves <palves@redhat.com>
9092
9093 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
9094 field.
9095 (reset_die_in_process): Delete, replaced by ...
9096 (process_die_scope): ... this new class. Make it responsible for
9097 freeing cu->line_header too.
9098 (process_die): Use process_die_scope.
9099 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
9100 cu->line_header_die_owner. Don't release the line header if it's
9101 owned by the CU.
9102 (setup_type_unit_groups): Make the CU/DIE own the line header.
9103 Don't release the line header here.
9104
9105 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
9106
9107 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
9108
9109 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
9110
9111 * NEWS: Mention new shortcuts for nexti and stepi in TUI
9112 Single-Key mode
9113
9114 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
9115
9116 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
9117 mode command list.
9118
9119 2017-08-15 Stafford Horne <shorne@gmail.com>
9120
9121 * MAINTAINERS (Write After Approval): Add Stafford Horne.
9122
9123 2017-08-15 Stafford Horne <shorne@gmail.com>
9124
9125 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
9126
9127 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
9128
9129 PR gdb/21954
9130 * infcmd.c (unset_environment_command): Use the 'clear' method on
9131 the environment instead of resetting it.
9132
9133 2017-08-15 John Baldwin <jhb@FreeBSD.org>
9134
9135 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
9136 platforms.
9137
9138 2017-08-14 Tom Tromey <tom@tromey.com>
9139
9140 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
9141 (print_binary_chars): Likewise.
9142 (BITS_IN_BYTES): Remove.
9143
9144 2017-08-14 Tom Tromey <tom@tromey.com>
9145
9146 PR gdb/21675
9147 * valprint.c (LOW_ZERO): Change value to 034.
9148 (print_octal_chars): Add static_asserts for octal constants.
9149 * printcmd.c (print_scalar_formatted): Add 'd' case.
9150
9151 2017-08-11 Tom Tromey <tom@tromey.com>
9152
9153 * symfile.c (add_symbol_file_command): Use std::vector.
9154
9155 2017-08-14 Tom Tromey <tom@tromey.com>
9156
9157 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
9158 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
9159 std::move.
9160 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
9161
9162 2017-08-11 Pedro Alves <palves@redhat.com>
9163
9164 * infrun.c (process_event_stop_test): Adjust
9165 function_name_is_marked_for_skip call.
9166 * skip.c: Include <list>.
9167 (skiplist_entry): Make it a class with private fields, and
9168 getters/setters.
9169 (skiplist_entry_chain): Delete.
9170 (skiplist_entries): New.
9171 (skiplist_entry_count): Delete.
9172 (highest_skiplist_entry_num): New.
9173 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
9174 (add_skiplist_entry): Delete.
9175 (skiplist_entry::skiplist_entry): New.
9176 (skiplist_entry::add_entry): New.
9177 (skip_file_command, skip_function): Adjust.
9178 (compile_skip_regexp): Delete.
9179 (skip_command): Don't compile regexp here. Adjust to use
9180 skiplist_entry::add_entry.
9181 (skip_info): Adjust to use range-for and getters.
9182 (skip_enable_command, skip_disable_command): Adjust to use
9183 range-for and setters.
9184 (skip_delete_command): Adjust to use std::list.
9185 (add_skiplist_entry): Delete.
9186 (skip_file_p): Delete, refactored as ...
9187 (skiplist_entry::do_skip_file_p): ... this new method.
9188 (skip_gfile_p): Delete, refactored as ...
9189 (skiplist_entry::do_gskip_file_p): ... this new method.
9190 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
9191 (skiplist_entry::skip_function_p): ... this new method.
9192 (function_name_is_marked_for_skip): Now returns bool, and takes
9193 the function sal by const reference. Adjust to use range-for and
9194 skiplist_entry methods.
9195 (_initialize_step_skip): Remove references to
9196 skiplist_entry_chain, skiplist_entry_count.
9197 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
9198 takes the function sal by const reference.
9199
9200 2017-08-11 Yao Qi <yao.qi@linaro.org>
9201
9202 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
9203 (dwarf2_frame_cache): Remove reset_cache_cleanup.
9204 (dwarf2_frame_cache):
9205 * frame-unwind.c (frame_unwind_try_unwinder): Catch
9206 RETURN_MASK_ALL and set *this_case to NULL.
9207 * frame-unwind.h: Update comments.
9208
9209 2017-08-11 Yao Qi <yao.qi@linaro.org>
9210
9211 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
9212 (dwarf2_frame_state_copy_regs): Remove.
9213 (dwarf2_frame_state_free_regs): Remove.
9214 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
9215 (dwarf2_restore_rule): Call method .alloc_regs instead of
9216 dwarf2_frame_state_alloc_regs.
9217 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
9218 constructor. Call std::move.
9219 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
9220 (dwarf2_frame_cache): Likewise.
9221
9222 [GDB_SELF_TEST]: Include selftest.h and
9223 selftest-arch.h.
9224 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
9225 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
9226 execute_cfa_program_test.
9227
9228 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
9229 copy ctor, assignment operator, move assignment.
9230 <alloc_regs>: New method.
9231 <swap>: New method.
9232 (struct dwarf2_frame_state): Delete dtor.
9233 (dwarf2_frame_state_alloc_regs): Remove declaration.
9234 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
9235 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
9236
9237 2017-08-11 Yao Qi <yao.qi@linaro.org>
9238
9239 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
9240 (dwarf2_frame_state::dwarf2_frame_state): New.
9241 (dwarf2_frame_state::~dwarf2_frame_state): New.
9242 (dwarf2_fetch_cfa_info): Update.
9243 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
9244 rather than a pointer. Update code.
9245 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
9246 dtor.
9247 <data_align, code_align, retaddr_column>: Change them to const.
9248 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
9249 to bool.
9250
9251 2017-08-11 Yao Qi <yao.qi@linaro.org>
9252
9253 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
9254 <loc.exp>: New field.
9255 * dwarf2-frame.c (execute_cfa_program): Update.
9256 (dwarf2_frame_prev_register): Update.
9257
9258 2017-08-10 Pedro Alves <palves@redhat.com>
9259
9260 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
9261
9262 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9263
9264 * fbsd-nat.c (struct fbsd_fork_info): Remove.
9265 (fbsd_pending_children): Use std::list.
9266 (fbsd_remember_child): Likewise.
9267 (fbsd_is_child_pending): Likewise.
9268 (fbsd_pending_vfork_done): Use std::forward_list.
9269 (fbsd_add_vfork_done): Likewise.
9270 (fbsd_is_vfork_done_pending): Likewise.
9271 (fbsd_next_vfork_done): Likewise.
9272
9273 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9274
9275 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
9276 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
9277 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
9278 for `mapfilename'.
9279 (fbsd_xfer_partial): Use gdb::byte_vector.
9280 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
9281
9282 2017-08-09 John Baldwin <jhb@FreeBSD.org>
9283
9284 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
9285 "filestuff.h".
9286 (fbsd_find_memory_regions): Fix `mapfile' initialization.
9287
9288 2017-08-09 Tom Tromey <tom@tromey.com>
9289
9290 * skip.c (skiplist_entry): New constructor.
9291 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
9292 (skiplist_entry::file_is_glob): Now bool.
9293 (skiplist_entry::file, skiplist_entry::function): Now
9294 std::string.
9295 (make_skip_entry): Return a unique_ptr. Use new.
9296 (free_skiplist_entry, free_skiplist_entry_cleanup)
9297 (make_free_skiplist_entry_cleanup): Remove.
9298 (skip_command, skip_disable_command, add_skiplist_entry)
9299 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
9300 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
9301 (function_name_is_marked_for_skip): Update.
9302 (skip_delete_command): Update. Use delete.
9303
9304 2017-08-09 Jiong Wang <jiong.wang@arm.com>
9305
9306 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
9307 (aarch64_linux_core_read_description): New function.
9308 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
9309
9310 2017-08-09 Pedro Alves <palves@redhat.com>
9311
9312 * cp-name-parser.y (cp_comp_to_string): Return a
9313 gdb::unique_xmalloc_ptr<char>.
9314 * cp-support.c (replace_typedefs_qualified_name)
9315 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
9316 (cp_canonicalize_string_full): Use op= instead of explicit
9317 convertion.
9318 (cp_class_name_from_physname, method_name_from_physname)
9319 (cp_func_name, cp_remove_params): Adjust to use
9320 gdb::unique_xmalloc_ptr<char>.
9321 * cp-support.h (cp_comp_to_string): Return a
9322 gdb::unique_xmalloc_ptr<char>.
9323 * python/py-type.c (typy_lookup_type): Adjust to use
9324 gdb::unique_xmalloc_ptr<char>.
9325
9326 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
9327
9328 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
9329
9330 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
9331 Yao Qi <yao.qi@linaro.org>
9332
9333 * cp-support.c (cp_canonicalize_string_full): Use
9334 gdb::unique_xmalloc_ptr<char>.
9335 (cp_canonicalize_string): Likewise.
9336
9337 2017-08-09 Yao Qi <yao.qi@linaro.org>
9338
9339 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
9340 * regformats/i386/amd64-avx-avx512.dat: Remove.
9341 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
9342 * regformats/i386/amd64-avx-mpx.dat:Remove.
9343 * regformats/i386/amd64-avx.dat: Remove.
9344 * regformats/i386/amd64-mpx.dat: Remove.
9345 * regformats/i386/i386-avx-avx512.dat: Remove.
9346 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
9347 * regformats/i386/i386-avx-mpx.dat: Remove.
9348 * regformats/i386/i386-mmx.dat: Remove.
9349 * regformats/i386/i386-mpx.dat: Remove.
9350
9351 2017-08-09 Yao Qi <yao.qi@linaro.org>
9352
9353 * amd64-tdep.h (tdesc_x32): Remove the declaration.
9354 * amd64-tdep.c: Don't include features/i386/x32*.c.
9355 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
9356 functions.
9357 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
9358 and i386/x32-avx-avx512.
9359 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
9360 and i386/x32.xml.
9361 * features/i386/x32-avx-avx512.c: Removed.
9362 * features/i386/x32-avx-avx512.xml: Removed.
9363 * features/i386/x32-avx.c: Removed.
9364 * features/i386/x32-avx.xml: Removed.
9365 * features/i386/x32.c: Removed.
9366 * features/i386/x32.xml: Removed.
9367 * regformats/i386/x32-avx-avx512.dat: Removed.
9368 * regformats/i386/x32-avx.dat: Removed.
9369 * regformats/i386/x32.dat: Removed.
9370
9371 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9372
9373 PR breakpoints/21886
9374 * mem-break.c (default_memory_insert_breakpoint): Use
9375 `->placed_address' rather than `->reqstd_address' for the
9376 breakpoint location.
9377
9378 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9379
9380 * arch-utils.c (default_print_insn): Remove arch/mach/endian
9381 assertions.
9382
9383 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
9384
9385 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
9386 a union of `tdep_info', `tdesc_data' and `id'.
9387 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
9388 rather than `info.tdep_info'.
9389 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
9390 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9391 * i386-tdep.c (i386_gdbarch_init): Likewise.
9392 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
9393 * mips-tdep.c (mips_gdbarch_init): Likewise.
9394 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9395 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9396 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
9397 `info.tdep_info'.
9398 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
9399 `info.tdep_info'.
9400 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9401 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
9402 `info.tdep_info'.
9403 * spu-tdep.c (spu_gdbarch_init): Likewise.
9404 * gdbarch.h: Regenerate.
9405
9406 2017-08-07 Leszek Swirski <leszeks@google.com>
9407
9408 PR symtab/20899
9409 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
9410
9411 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
9412
9413 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
9414 (gdbsim_open): Rename gdb_argv args object to argv.
9415
9416 2017-08-05 Tom Tromey <tom@tromey.com>
9417
9418 * compile/compile-object-load.c (compile_object_load): Use
9419 gdb::unique_xmalloc_ptr.
9420 * cli/cli-dump.c (scan_filename): Rename from
9421 scan_filename_with_cleanup. Change return type.
9422 (scan_expression): Rename from scan_expression_with_cleanup.
9423 Change return type.
9424 (dump_memory_to_file, dump_value_to_file, restore_command):
9425 Use gdb::unique_xmalloc_ptr. Update.
9426 * cli/cli-cmds.c (find_and_open_script): Use
9427 gdb::unique_xmalloc_ptr.
9428 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
9429 * symmisc.c (maintenance_print_symbols)
9430 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
9431 * symfile.c (symfile_bfd_open, generic_load)
9432 (add_symbol_file_command, remove_symbol_file_command): Use
9433 gdb::unique_xmalloc_ptr.
9434 * source.c (openp): Use gdb::unique_xmalloc_ptr.
9435 * psymtab.c (maintenance_print_psymbols): Use
9436 gdb::unique_xmalloc_ptr.
9437 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
9438 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
9439 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
9440 (reload_shared_libraries_1): Likewise.
9441
9442 2017-08-05 Tom Tromey <tom@tromey.com>
9443
9444 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
9445 (rust_op_vector, rust_set_vector): New typedefs.
9446 (current_parser): New global.
9447 (work_obstack): Change to pointer type. Update all users.
9448 (rust_ast, pstate): Remove globals.
9449 (struct rust_parser): New.
9450 (%union) <params, field_inits>: Change type.
9451 (start, tuple_expr, unit_expr, struct_expr_list, literal)
9452 (field_expr, expr_list, maybe_expr_list, type_list): Update.
9453 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
9454 (convert_params_to_types, convert_params_to_expression): Change
9455 type of "params".
9456 (ast_string): Change type of "fields".
9457 (rust_parse): Make a rust_parser. Remove cleanups.
9458 (rust_lex_tests): Make and install an auto_obstack.
9459
9460 2017-08-04 Yao Qi <yao.qi@linaro.org>
9461
9462 * configure.srv (ipa_x32_linux_regobj): New.
9463 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
9464 instead of X86_TDESC_AVX512.
9465 (initialize_low_tracepoint): Call
9466 init_registers_x32_avx_avx512_linux.
9467
9468 2017-08-04 Yao Qi <yao.qi@linaro.org>
9469
9470 * utils.h (gdb_argv): Add namespace std for nullptr_t.
9471
9472 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
9473
9474 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
9475
9476 2017-08-03 Tom Tromey <tom@tromey.com>
9477
9478 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
9479 Remove.
9480 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
9481
9482 2017-08-03 Tom Tromey <tom@tromey.com>
9483
9484 * python/py-param.c (compute_enum_values): Use gdb_argv.
9485
9486 2017-08-03 Tom Tromey <tom@tromey.com>
9487
9488 * utils.h (struct gdb_argv_deleter): New.
9489 (gdb_argv): New class.
9490 * utils.c (gdb_argv::reset): New method.
9491 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
9492 * tracefile.c (tsave_command): Use gdb_argv.
9493 * top.c (new_ui_command): Use gdb_argv.
9494 * symmisc.c (maintenance_print_symbols)
9495 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
9496 * symfile.c (symbol_file_command, generic_load)
9497 (remove_symbol_file_command): Use gdb_argv.
9498 * stack.c (backtrace_command): Use gdb_argv.
9499 * source.c (add_path, show_substitute_path_command)
9500 (unset_substitute_path_command, set_substitute_path_command):
9501 Use gdb_argv.
9502 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
9503 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
9504 * remote.c (extended_remote_run, remote_put_command)
9505 (remote_get_command, remote_delete_command): Use gdb_argv.
9506 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
9507 (gdbsim_open): Use gdb_argv.
9508 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
9509 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
9510 * procfs.c (procfs_info_proc): Use gdb_argv.
9511 * interps.c (interpreter_exec_cmd): Use gdb_argv.
9512 * infrun.c (handle_command): Use gdb_argv.
9513 * inferior.c (add_inferior_command, clone_inferior_command):
9514 Use gdb_argv.
9515 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
9516 * exec.c (exec_file_command): Use gdb_argv.
9517 * cli/cli-cmds.c (alias_command): Use gdb_argv.
9518 * compile/compile.c (build_argc_argv): Use gdb_argv.
9519
9520 2017-08-03 Tom Tromey <tom@tromey.com>
9521
9522 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
9523
9524 2017-08-03 Tom Tromey <tom@tromey.com>
9525
9526 * python/python.c (compute_python_string): Return std::string.
9527 (gdbpy_eval_from_control_command): Update.
9528 (do_start_initialization): Use std::string.
9529 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
9530 xstrprintf.
9531 * python/py-breakpoint.c (local_setattro): Use string_printf, not
9532 xstrprintf.
9533
9534 2017-08-03 Tom Tromey <tom@tromey.com>
9535
9536 * top.h (do_restore_instream_cleanup): Remove.
9537 * top.c (do_restore_instream_cleanup): Remove.
9538 (read_command_file): Use scoped_restore.
9539 * cli/cli-script.c (execute_user_command): Use scoped_restore.
9540
9541 2017-08-03 Tom Tromey <tom@tromey.com>
9542
9543 * cli/cli-script.c (execute_user_command)
9544 (execute_control_command): Use scoped_restore.
9545
9546 2017-08-03 Tom Tromey <tom@tromey.com>
9547
9548 * cli/cli-script.c (do_restore_user_call_depth): Remove.
9549 (execute_user_command): Remove user_call_depth; use
9550 user_args_stack's size instead.
9551
9552 2017-08-03 Tom Tromey <tom@tromey.com>
9553
9554 * top.h (in_user_command): Remove.
9555 * top.c (in_user_command): Remove.
9556 * cli/cli-script.c (do_restore_user_call_depth)
9557 (execute_user_command): Update.
9558
9559 2017-08-03 Tom Tromey <tom@tromey.com>
9560
9561 * valops.c (search_struct_method): Use gdb::byte_vector.
9562 * valarith.c (value_concat): Use std::vector.
9563 * target.c (memory_xfer_partial): Use gdb::byte_vector.
9564 (simple_search_memory): Likewise.
9565 * printcmd.c (find_string_backward): Use gdb::byte_vector.
9566 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
9567 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
9568 * elfread.c (elf_rel_plt_read): Use std::string.
9569 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
9570 * cli/cli-dump.c (restore_section_callback): Use
9571 gdb::byte_vector.
9572
9573 2017-08-03 Tom Tromey <tom@tromey.com>
9574
9575 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
9576
9577 2017-08-03 Tom Tromey <tom@tromey.com>
9578
9579 * tui/tui-regs.c (tui_restore_gdbout): Remove.
9580 (tui_register_format): Use scoped_restore.
9581
9582 2017-08-03 Tom Tromey <tom@tromey.com>
9583
9584 * reverse.c (exec_direction_default): Remove.
9585 (exec_reverse_once): Use scoped_restore.
9586 * remote.c (restore_remote_timeout): Remove.
9587 (remote_flash_erase, remote_flash_write, remote_flash_done)
9588 (readchar, remote_serial_write): Use scoped_restore.
9589 * cli/cli-script.c (struct source_cleanup_lines_args)
9590 (source_cleanup_lines): Remove.
9591 (script_from_file): Use scoped_restore.
9592 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
9593 (source_command): Use scoped_restore.
9594
9595 2017-08-03 Tom Tromey <tom@tromey.com>
9596
9597 * utils.h (make_cleanup_free_so): Remove.
9598 * utils.c (do_free_so, make_cleanup_free_so): Remove.
9599 * solist.h (struct so_deleter): New.
9600 (so_list_up): New typedef.
9601 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
9602
9603 2017-08-03 Tom Tromey <tom@tromey.com>
9604
9605 * utils.h (make_cleanup_restore_current_language): Remove.
9606 * utils.c (do_restore_current_language)
9607 (make_cleanup_restore_current_language): Remove.
9608 * parse.c (parse_exp_in_context_1)
9609 (parse_expression_with_language): Use
9610 scoped_restore_current_language.
9611 * mi/mi-main.c (mi_cmd_execute): Use
9612 scoped_restore_current_language.
9613 * language.h (scoped_restore_current_language): New class.
9614
9615 2017-08-03 Tom Tromey <tom@tromey.com>
9616
9617 * compile/compile.c (cleanup_unlink_file): Remove.
9618 (compile_to_object): Use gdb::unlinker.
9619 (eval_compile_command): Likewise.
9620
9621 2017-08-03 Tom Tromey <tom@tromey.com>
9622
9623 * utils.h (make_cleanup_fclose): Remove.
9624 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
9625
9626 2017-08-03 Tom Tromey <tom@tromey.com>
9627
9628 * top.c (open_terminal_stream): Return gdb_file_up.
9629 (new_ui_command): Update.
9630
9631 2017-08-03 Tom Tromey <tom@tromey.com>
9632
9633 * source.c (print_source_lines_base, forward_search_command)
9634 (reverse_search_command): Use gdb_file_up.
9635
9636 2017-08-03 Tom Tromey <tom@tromey.com>
9637
9638 * fbsd-nat.c (fbsd_find_memory_regions): Update.
9639
9640 2017-08-03 Tom Tromey <tom@tromey.com>
9641
9642 * cli/cli-cmds.c (find_and_open_script): Change return type.
9643 Remove "streamp" and "full_path" parameters.
9644 (source_script_with_search): Update.
9645 * auto-load.c (source_script_file): Update.
9646 * cli/cli-cmds.h (find_and_open_script): Change type.
9647 (open_script): New struct.
9648
9649 2017-08-03 Tom Tromey <tom@tromey.com>
9650
9651 * xml-support.c (xml_fetch_content_from_file): Update.
9652 * ui-file.c (stdio_file::open): Update.
9653 * tracefile-tfile.c (tfile_start): Update.
9654 * remote.c (remote_file_put, remote_file_get): Update.
9655 * nat/linux-procfs.c (linux_proc_get_int)
9656 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
9657 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
9658 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
9659 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
9660 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
9661 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
9662 * linux-nat.c (linux_proc_pending_signals): Update.
9663 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
9664 (file_closer): Remove.
9665 * compile/compile.c (compile_to_object): Update.
9666 * common/filestuff.h (struct gdb_file_deleter): New.
9667 (gdb_file_up): New typedef.
9668 (gdb_fopen_cloexec): Change return type.
9669 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
9670 * cli/cli-dump.c (fopen_with_cleanup): Remove.
9671 (dump_binary_file, restore_binary_file): Update.
9672 * auto-load.c (auto_load_objfile_script_1): Update.
9673
9674 2017-08-03 Tom Tromey <tom@tromey.com>
9675
9676 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
9677 (info_static_tracepoint_markers_command): Likewise.
9678 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
9679 * skip.c (skip_info): Use ui_out_emit_table.
9680 * progspace.c (print_program_space): Use ui_out_emit_table.
9681 * osdata.c (info_osdata): Use ui_out_emit_table.
9682 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
9683 ui_out_emit_table.
9684 * linux-thread-db.c (info_auto_load_libthread_db): Use
9685 ui_out_emit_table.
9686 * inferior.c (print_inferior): Use ui_out_emit_table.
9687 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
9688 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
9689 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
9690 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
9691 * ui-out.h (class ui_out_emit_table): New.
9692
9693 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
9694
9695 * mips-tdep.c (mips_fpu_type_str): New function.
9696 (mips_dump_tdep): Call it.
9697
9698 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
9699
9700 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
9701 `->mips_fpu_type'.
9702
9703 2017-07-31 Xavier Roirand <roirand@adacore.com>
9704
9705 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9706
9707 2017-07-27 Xavier Roirand <roirand@adacore.com>
9708
9709 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
9710
9711 2017-07-26 Yao Qi <yao.qi@linaro.org>
9712
9713 * cli/cli-cmds.c (maintenancechecklist): New variable.
9714 * gdbcmd.h (maintenancechecklist): Declare it.
9715 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
9716 Call i386_linux_read_description with different masks.
9717 * maint.c (maintenance_check_command): New function.
9718 (_initialize_maint_cmds): Call add_prefix_cmd.
9719 * target-descriptions.c (tdesc_reg): override operator != and ==.
9720 (tdesc_type): Likewise.
9721 (tdesc_feature): Likewise.
9722 (target_desc): Likewise.
9723 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
9724 (maintenance_check_xml_descriptions): New function.
9725 (_initialize_target_descriptions) Add command "xml-descriptions".
9726 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
9727
9728 2017-07-26 Yao Qi <yao.qi@linaro.org>
9729
9730 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
9731 Include features/i386/32bit-*.c.
9732 (i386_linux_read_description): Generate target description if it
9733 doesn't exist.
9734 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
9735 functions.
9736 * features/i386/32bit-linux.c: Re-generated.
9737 * features/i386/32bit-sse.c: Likewise.
9738 * target-descriptions.c (print_c_feature::visit): Print code to
9739 set register number if needed.
9740 (print_c_feature) <m_next_regnum>: New field.
9741
9742 2017-07-26 Yao Qi <yao.qi@linaro.org>
9743
9744 * features/Makefile (CFILES): Rename with TDESC_CFILES.
9745 (FEATURE_XMLFILES): New.
9746 (FEATURE_CFILES): New.
9747 New rules.
9748 (clean-cfiles): Remove generated c files.
9749 * features/i386/32bit-avx.c: Generated.
9750 * features/i386/32bit-avx512.c: Generated.
9751 * features/i386/32bit-core.c: Generated.
9752 * features/i386/32bit-linux.c: Generated.
9753 * features/i386/32bit-mpx.c: Generated.
9754 * features/i386/32bit-pkeys.c: Generated.
9755 * features/i386/32bit-sse.c: Generated.
9756 * target-descriptions.c: Include algorithm.
9757 (tdesc_element_visitor): Add method visit_end.
9758 (print_c_tdesc): Implement visit_end.
9759 (print_c_tdesc:: m_filename_after_features): Move it to
9760 protected.
9761 (print_c_feature): New class.
9762 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
9763 name starts with "i386/32bit-".
9764
9765 2017-07-26 Yao Qi <yao.qi@linaro.org>
9766
9767 * target-descriptions.c (tdesc_element_visitor): New class.
9768 (tdesc_element): New class.
9769 (tdesc_reg): Inherit from tdesc_element.
9770 (tdesc_reg::accept): New function.
9771 (tdesc_type): Inherit from tdesc_element.
9772 (tdesc_type::accept): New function.
9773 (tdesc_feature): Inherit from tdesc_element.
9774 (tdesc_feature::accept): New function.
9775 (target_desc): Inherit from tdesc_element.
9776 (target_desc::target_desc): New.
9777 (target_desc::~target_desc): New.
9778 (target_desc::accept): New.
9779 (allocate_target_description): Use new.
9780 (free_target_description): Use delete.
9781 (print_c_tdesc): New class.
9782 (maint_print_c_tdesc_cmd): Adjust.
9783
9784 * features/aarch64.c: Re-generated.
9785 * features/arc-arcompact.c: Re-generated.
9786 * features/arc-v2.c: Re-generated.
9787 * features/arm/arm-with-iwmmxt.c: Re-generated.
9788 * features/arm/arm-with-m.c: Re-generated.
9789 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
9790 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
9791 * features/arm/arm-with-neon.c: Re-generated.
9792 * features/arm/arm-with-vfpv2.c: Re-generated.
9793 * features/arm/arm-with-vfpv3.c: Re-generated.
9794 * features/i386/amd64-avx-avx512.c: Re-generated.
9795 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
9796 * features/i386/amd64-avx.c: Re-generated.
9797 * features/i386/amd64-avx-linux.c: Re-generated.
9798 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
9799 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
9800 * features/i386/amd64-avx-mpx.c: Re-generated.
9801 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
9802 * features/i386/amd64.c: Re-generated.
9803 * features/i386/amd64-linux.c: Re-generated.
9804 * features/i386/amd64-mpx.c: Re-generated.
9805 * features/i386/amd64-mpx-linux.c: Re-generated.
9806 * features/i386/i386-avx-avx512.c: Re-generated.
9807 * features/i386/i386-avx-avx512-linux.c: Re-generated.
9808 * features/i386/i386-avx.c: Re-generated.
9809 * features/i386/i386-avx-linux.c: Re-generated.
9810 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
9811 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
9812 * features/i386/i386-avx-mpx.c: Re-generated.
9813 * features/i386/i386-avx-mpx-linux.c: Re-generated.
9814 * features/i386/i386.c: Re-generated.
9815 * features/i386/i386-linux.c: Re-generated.
9816 * features/i386/i386-mmx.c: Re-generated.
9817 * features/i386/i386-mmx-linux.c: Re-generated.
9818 * features/i386/i386-mpx.c: Re-generated.
9819 * features/i386/i386-mpx-linux.c: Re-generated.
9820 * features/i386/x32-avx-avx512.c: Re-generated.
9821 * features/i386/x32-avx-avx512-linux.c: Re-generated.
9822 * features/i386/x32-avx.c: Re-generated.
9823 * features/i386/x32-avx-linux.c: Re-generated.
9824 * features/i386/x32.c: Re-generated.
9825 * features/i386/x32-linux.c: Re-generated.
9826 * features/microblaze.c: Re-generated.
9827 * features/microblaze-with-stack-protect.c: Re-generated.
9828 * features/mips64-dsp-linux.c: Re-generated.
9829 * features/mips64-linux.c: Re-generated.
9830 * features/mips-dsp-linux.c: Re-generated.
9831 * features/mips-linux.c: Re-generated.
9832 * features/nds32.c: Re-generated.
9833 * features/nios2.c: Re-generated.
9834 * features/nios2-linux.c: Re-generated.
9835 * features/rs6000/powerpc-32.c: Re-generated.
9836 * features/rs6000/powerpc-32l.c: Re-generated.
9837 * features/rs6000/powerpc-403.c: Re-generated.
9838 * features/rs6000/powerpc-403gc.c : Re-generated.
9839 * features/rs6000/powerpc-405.c: Re-generated.
9840 * features/rs6000/powerpc-505.c: Re-generated.
9841 * features/rs6000/powerpc-601.c: Re-generated.
9842 * features/rs6000/powerpc-602.c: Re-generated.
9843 * features/rs6000/powerpc-603.c: Re-generated.
9844 * features/rs6000/powerpc-604.c: Re-generated.
9845 * features/rs6000/powerpc-64.c: Re-generated.
9846 * features/rs6000/powerpc-64l.c: Re-generated.
9847 * features/rs6000/powerpc-7400.c: Re-generated.
9848 * features/rs6000/powerpc-750.c: Re-generated.
9849 * features/rs6000/powerpc-860.c: Re-generated.
9850 * features/rs6000/powerpc-altivec32.c: Re-generated.
9851 * features/rs6000/powerpc-altivec32l.c: Re-generated.
9852 * features/rs6000/powerpc-altivec64.c: Re-generated.
9853 * features/rs6000/powerpc-altivec64l.c: Re-generated.
9854 * features/rs6000/powerpc-cell32l.c: Re-generated.
9855 * features/rs6000/powerpc-cell64l.c: Re-generated.
9856 * features/rs6000/powerpc-e500.c: Re-generated.
9857 * features/rs6000/powerpc-e500l.c: Re-generated.
9858 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
9859 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
9860 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
9861 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
9862 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
9863 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
9864 * features/rs6000/powerpc-vsx32.c: Re-generated.
9865 * features/rs6000/powerpc-vsx32l.c: Re-generated.
9866 * features/rs6000/powerpc-vsx64.c: Re-generated.
9867 * features/rs6000/powerpc-vsx64l.c: Re-generated.
9868 * features/rs6000/rs6000.c: Re-generated.
9869 * features/s390-linux32.c: Re-generated.
9870 * features/s390-linux32v1.c: Re-generated.
9871 * features/s390-linux32v2.c: Re-generated.
9872 * features/s390-linux64.c: Re-generated.
9873 * features/s390-linux64v1.c: Re-generated.
9874 * features/s390-linux64v2.c: Re-generated.
9875 * features/s390-te-linux64.c: Re-generated.
9876 * features/s390-tevx-linux64.c: Re-generated.
9877 * features/s390-vx-linux64.c: Re-generated.
9878 * features/s390x-linux64.c: Re-generated.
9879 * features/s390x-linux64v1.c: Re-generated.
9880 * features/s390x-linux64v2.c: Re-generated.
9881 * features/s390x-te-linux64.c: Re-generated.
9882 * features/s390x-tevx-linux64.c: Re-generated.
9883 * features/s390x-vx-linux64.c: Re-generated.
9884 * features/sparc/sparc32-solaris.c: Re-generated.
9885 * features/sparc/sparc64-solaris.c: Re-generated.
9886 * features/tic6x-c62x.c: Re-generated.
9887 * features/tic6x-c62x-linux.c: Re-generated.
9888 * features/tic6x-c64x.c: Re-generated.
9889 * features/tic6x-c64x-linux.c: Re-generated.
9890 * features/tic6x-c64xp.c: Re-generated.
9891 * features/tic6x-c64xp-linux.c: Re-generated.
9892
9893 2017-07-26 Yao Qi <yao.qi@linaro.org>
9894
9895 * i386-linux-tdep.c (i386_linux_read_description): New function.
9896 (i386_linux_core_read_description): Call
9897 i386_linux_read_description.
9898 * i386-linux-tdep.h (i386_linux_read_description): Declare.
9899 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
9900 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
9901 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
9902 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
9903 * x86-linux-nat.c (x86_linux_read_description): Call
9904 i386_linux_read_description.
9905
9906 2017-07-26 Yao Qi <yao.qi@linaro.org>
9907
9908 * NEWS: Mention it.
9909 * features/Makefile (%.c: %.xml): Pass the xml file name to
9910 command "maint print c-tdesc".
9911 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
9912 name from 'arg'.
9913
9914 2017-07-26 Yao Qi <yao.qi@linaro.org>
9915
9916 * target-descriptions.c (target_desc): Add ctor and dtor. Do
9917 in-class initialization.
9918 (tdesc_create_feature): Call new instead of XCNEW.
9919 (free_target_description): Ue delete.
9920
9921 2017-07-25 John Baldwin <jhb@FreeBSD.org>
9922
9923 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
9924
9925 2017-07-25 Yao Qi <yao.qi@linaro.org>
9926
9927 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
9928 constant.
9929 (amd64_x32_init_abi): Likewise.
9930 * amd64-tdep.h (amd64_init_abi): Update declaration.
9931 (amd64_x32_init_abi): Likewise.
9932
9933 2017-07-25 Yao Qi <yao.qi@linaro.org>
9934
9935 PR tdep/21717
9936 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
9937 condition for FPSCR.
9938 (arm_linux_store_inferior_registers): Likewise.
9939
9940 2017-07-22 Tom Tromey <tom@tromey.com>
9941
9942 * break-catch-syscall.c (struct catch_syscall_inferior_data)
9943 <syscalls_counts>: Now a std::vector.
9944 (get_catch_syscall_inferior_data): Use "new".
9945 (catch_syscall_inferior_data_cleanup): Use "delete".
9946 (insert_catch_syscall, remove_catch_syscall)
9947 (clear_syscall_counts): Update.
9948
9949 2017-07-22 Tom Tromey <tom@tromey.com>
9950
9951 * break-catch-syscall.c (syscall_catchpoint)
9952 <syscalls_to_be_caught>: Now a std::vector<int>
9953 (~syscall_catchpoint): Remove.
9954 (insert_catch_syscall, remove_catch_syscall)
9955 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
9956 (print_mention_catch_syscall, print_recreate_catch_syscall):
9957 Update.
9958 (create_syscall_event_catchpoint): Change type of "filter"
9959 parameter.
9960 (catch_syscall_split_args): Return a std::vector.
9961 (catch_syscall_command_1, catching_syscall_number_1): Update.
9962
9963 2017-07-22 Tom Tromey <tom@tromey.com>
9964
9965 * break-catch-throw.c (struct exception_catchpoint)
9966 <exception_rx>: Now a std::string.
9967 (~exception_catchpoint): Remove.
9968 (print_one_detail_exception_catchpoint): Update.
9969 (handle_gnu_v3_exceptions): Change type of except_rx.
9970 (extract_exception_regexp): Return a std::string.
9971 (catch_exception_command_1): Update.
9972
9973 2017-07-22 Tom Tromey <tom@tromey.com>
9974
9975 * break-catch-sig.c (gdb_signal_type): Remove typedef.
9976 (struct signal_catchpoint) <signals_to_be_caught>: Now a
9977 std::vector.
9978 <catch_all>: Now a bool.
9979 (~signal_catchpoint): Remove.
9980 (signal_catchpoint_insert_location)
9981 (signal_catchpoint_remove_location)
9982 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
9983 (signal_catchpoint_print_mention)
9984 (signal_catchpoint_print_recreate)
9985 (signal_catchpoint_explains_signal): Update.
9986 (create_signal_catchpoint): Change type of "filter" and
9987 "catch_all".
9988 (catch_signal_split_args): Return a std::vector. Change type of
9989 "catch_all".
9990 (catch_signal_command): Update.
9991
9992 2017-07-20 Pedro Alves <palves@redhat.com>
9993
9994 * ada-lang.c (ada_language_defn): Make extern.
9995 (_initialize_ada_language): Remove add_language call.
9996 * c-lang.c (c_language_defn, cplus_language_defn)
9997 (asm_language_defn, minimal_language_defn): Make extern.
9998 (_initialize_c_language): Delete.
9999 * completer.c (compare_cstrings): Delete, moved to utils.h.
10000 * d-lang.c (d_language_defn): Make extern.
10001 (_initialize_d_language): Remove add_language calls.
10002 * defs.h (enum language): Add comment.
10003 * f-lang.c (f_language_defn): Make extern.
10004 (_initialize_f_language): Remove add_language call.
10005 * go-lang.c (go_language_defn): Make extern.
10006 (_initialize_go_language): Remove add_language call.
10007 * language.c: Include <algorithm>.
10008 (languages): Redefine as const array.
10009 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
10010 (set_language_command): Handle "local". Use for-range loop.
10011 (set_language): Remove loop.
10012 (language_enum): Rewrite.
10013 (language_def, language_str): Remove loops.
10014 (add_language): Delete.
10015 (add_set_language_command): New, based on add_languages.
10016 (skip_language_trampoline): Adjust.
10017 (local_language_defn): Delete.
10018 (language_gdbarch_post_init): Adjust.
10019 (_initialize_language): Remove add_language calls. Call
10020 add_set_language_command.
10021 * language.h (add_language): Delete.
10022 (auto_language_defn)
10023 (unknown_language_defn, minimal_language_defn, ada_language_defn)
10024 (asm_language_defn, c_language_defn, cplus_language_defn)
10025 (d_language_defn, f_language_defn, go_language_defn)
10026 (m2_language_defn, objc_language_defn, opencl_language_defn)
10027 (pascal_language_defn, rust_language_defn): Declare.
10028 * m2-lang.c (m2_language_defn): Make extern.
10029 (_initialize_m2_language): Remove add_language call.
10030 * objc-lang.c (objc_language_defn): Make extern.
10031 (_initialize_objc_language): Remove add_language call.
10032 * opencl-lang.c (opencl_language_defn): Make extern.
10033 (_initialize_opencl_language): Remove add_language call.
10034 * p-lang.c (pascal_language_defn): Make extern.
10035 (_initialize_pascal_language): Delete.
10036 * rust-lang.c (rust_language_defn): Make extern.
10037 (_initialize_rust_language): Delete.
10038 * utils.h (compare_cstrings): New static inline function.
10039
10040 2017-07-20 Pedro Alves <palves@redhat.com>
10041
10042 * ada-lang.c (ada_to_fixed_type_1): Adjust.
10043 (get_var_value): Constify parameters.
10044 (get_int_var_value): Change prototype.
10045 (to_fixed_range_type): Adjust.
10046 * ada-lang.h (get_int_var_value): Change prototype.
10047
10048 2017-07-20 Pedro Alves <palves@redhat.com>
10049
10050 * dwarf2read.c (dw2_lookup_symbol): Use
10051 SYMBOL_MATCHES_SEARCH_NAME.
10052 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
10053
10054 2017-07-20 Pedro Alves <palves@redhat.com>
10055
10056 * block.c (block_iter_name_step, block_iter_name_first)
10057 (block_iter_name_next): Delete.
10058 (block_lookup_symbol_primary): Adjust to use
10059 dict_iter_match_first/dict_iter_match_next.
10060 * block.h (block_iter_name_first, block_iter_name_next): Delete
10061 declarations.
10062 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
10063 dict_iter_match_first/dict_iter_match_next.
10064
10065 2017-07-20 Pedro Alves <palves@redhat.com>
10066
10067 * cp-support.c (cp_find_first_component_aux): Add missing case for
10068 end of string.
10069
10070 2017-07-18 David Blaikie <dblaikie@gmail.com>
10071
10072 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
10073 of dwo_cu's dwo_file.
10074
10075 2017-07-18 Yao Qi <yao.qi@linaro.org>
10076
10077 * remote.c (store_registers_using_G): Remove one line comment.
10078
10079 2017-07-18 Yao Qi <yao.qi@linaro.org>
10080
10081 * regcache.c (regcache_cpy): Simplify it.
10082 (regcache::cpy_no_passthrough): Remove it.
10083 * regcache.h (cpy_no_passthrough): Remove it.
10084 (regcache_dup, regcache_cpy): Update comments.
10085
10086 2017-07-18 Pedro Alves <palves@redhat.com>
10087
10088 * remote-sim.c (sim_command_completer): Adjust to work with a
10089 completion_tracker instead of a VEC.
10090
10091 2017-07-17 Pedro Alves <palves@redhat.com>
10092
10093 * completer.c (complete_source_filenames): New function.
10094 (complete_address_and_linespec_locations): New function.
10095 (location_completer): Use complete_address_and_linespec_locations.
10096 (completion_tracker::build_completion_result): Honor the tracker's
10097 request to suppress append.
10098 * completer.h (completion_tracker::suppress_append_ws)
10099 (completion_tracker::set_suppress_append_ws): New methods.
10100 (completion_tracker::m_suppress_append_ws): New field.
10101 (complete_source_filenames): New declaration.
10102 * linespec.c (linespec_complete_what): New.
10103 (struct ls_parser) <complete_what, completion_word,
10104 completion_quote_char, completion_quote_end, completion_tracker>:
10105 New fields.
10106 (string_find_incomplete_keyword_at_end): New.
10107 (linespec_lexer_lex_string): Record quote char. If in completion
10108 mode, don't throw.
10109 (linespec_lexer_consume_token): Advance the completion word point.
10110 (linespec_lexer_peek_token): Save/restore completion info.
10111 (save_stream_and_consume_token): New.
10112 (set_completion_after_number): New.
10113 (linespec_parse_basic): Set what to complete next depending on
10114 token. Handle function and label completions specially.
10115 (parse_linespec): Disable objc shortcut in completion mode. Set
10116 what to complete next depending on token type. Skip keyword if in
10117 completion mode.
10118 (complete_linespec_component, linespec_complete): New.
10119 * linespec.h (linespec_complete): Declare.
10120
10121 2017-07-17 Pedro Alves <palves@redhat.com>
10122
10123 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
10124 Handle 'operator<' / 'operator<<'.
10125
10126 2017-07-17 Pedro Alves <palves@redhat.com>
10127
10128 * completer.c (collect_explicit_location_matches): Handle
10129 MATCH_LABEL.
10130 (convert_explicit_location_to_linespec): New, factored out from
10131 ...
10132 (convert_explicit_location_to_sals): ... this.
10133 (complete_label): New.
10134 (linespec_complete_label, find_label_symbols_in_block): New.
10135 (find_label_symbols): Add completion_mode parameter and adjust to
10136 call find_label_symbols_in_block.
10137 * linespec.h (linespec_complete_label): Declare.
10138
10139 2017-07-17 Pedro Alves <palves@redhat.com>
10140
10141 * ada-lang.c (ada_collect_symbol_completion_matches): Add
10142 complete_symbol_mode parameter.
10143 * cli/cli-cmds.c (complete_command): Get the completion result out
10144 of the handle_brkchars tracker if used a custom word point.
10145 * completer.c: Include "linespec.h".
10146 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
10147 (advance_to_expression_complete_word_point): New.
10148 (completion_tracker::completes_to_completion_word): New.
10149 (complete_files_symbols): Pass down
10150 complete_symbol_mode::EXPRESSION.
10151 (explicit_options, probe_options): New.
10152 (collect_explicit_location_matches): Complete on the
10153 explictit_loc->foo instead of word. Use
10154 linespec_complete_function. Handle MATCH_LINE. Handle offering
10155 keyword and options completions.
10156 (backup_text_ptr): Delete.
10157 (skip_keyword): New.
10158 (complete_explicit_location): Remove 'word' parameter. Add
10159 language, quoted_arg_start and quoted_arg_end parameters.
10160 Rewrite, parsing left to right.
10161 (location_completer): Rewrite.
10162 (location_completer_handle_brkchars): New function.
10163 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
10164 (enum complete_line_internal_reason): Adjust comments.
10165 (completion_tracker::discard_completions): New.
10166 (completer_handle_brkchars_func_for_completer): Handle
10167 location_completer.
10168 (gdb_custom_word_point_brkchars)
10169 (gdb_org_rl_basic_quote_characters): New.
10170 (gdb_completion_word_break_characters_throw)
10171 (completion_find_completion_word): Handle trackers that use a
10172 custom word point.
10173 (completion_tracker::advance_custom_word_point_by): New.
10174 (completion_tracker::build_completion_result): Don't rely on
10175 readline appending the quote char.
10176 (gdb_rl_attempted_completion_function_throw): Handle trackers that
10177 use a custom word point.
10178 (gdb_rl_attempted_completion_function): Restore
10179 rl_basic_quote_characters.
10180 * completer.h (class completion_tracker): Extend intro comment.
10181 (completion_tracker::set_quote_char)
10182 (completion_tracker::quote_char)
10183 (completion_tracker::set_use_custom_word_point)
10184 (completion_tracker::use_custom_word_point)
10185 (completion_tracker::custom_word_point)
10186 (completion_tracker::set_custom_word_point)
10187 (completion_tracker::advance_custom_word_point_by)
10188 (completion_tracker::completes_to_completion_word)
10189 (completion_tracker::discard_completions): New methods.
10190 (completion_tracker::m_quote_char)
10191 (completion_tracker::m_use_custom_word_point)
10192 (completion_tracker::m_custom_word_point): New fields.
10193 (advance_to_expression_complete_word_point): Declare.
10194 * f-lang.c (f_collect_symbol_completion_matches): Add
10195 complete_symbol_mode parameter.
10196 * language.h (struct language_defn)
10197 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
10198 parameter.
10199 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
10200 (linespec_complete_function): New function.
10201 (linespec_lexer_lex_keyword): Adjust.
10202 * linespec.h (linespec_keywords, linespec_complete_function): New
10203 declarations.
10204 * location.c (find_end_quote): New function.
10205 (explicit_location_lex_one): Add explicit_completion_info
10206 parameter. Save quoting info. Don't throw if being called for
10207 completion. Don't handle Ada operators here.
10208 (is_cp_operator, skip_op_false_positives, first_of)
10209 (explicit_location_lex_one_function): New function.
10210 (string_to_explicit_location): Replace 'dont_throw' parameter with
10211 an explicit_completion_info pointer parameter. Handle it. Don't
10212 use explicit_location_lex_one to lex function names. Use
10213 explicit_location_lex_one_function instead.
10214 * location.h (struct explicit_completion_info): New.
10215 (string_to_explicit_location): Replace 'dont_throw' parameter with
10216 an explicit_completion_info pointer parameter.
10217 * symtab.c (default_collect_symbol_completion_matches_break_on):
10218 Add complete_symbol_mode parameter. Handle LINESPEC mode.
10219 (default_collect_symbol_completion_matches)
10220 (collect_symbol_completion_matches): Add complete_symbol_mode
10221 parameter.
10222 (collect_symbol_completion_matches_type): Pass down
10223 complete_symbol_mode::EXPRESSION.
10224 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10225 parameter. Handle LINESPEC mode.
10226 * symtab.h (complete_symbol_mode): New.
10227 (default_collect_symbol_completion_matches_break_on)
10228 (default_collect_symbol_completion_matches)
10229 (collect_symbol_completion_matches)
10230 (collect_file_symbol_completion_matches): Add complete_symbol_mode
10231 parameter.
10232
10233 2017-07-17 Pedro Alves <palves@redhat.com>
10234
10235 * utils.c (enum class strncmp_iw_mode): New.
10236 (strcmp_iw): Rename to ...
10237 (strncmp_iw_with_mode): ... this. Add string2_len and mode
10238 parameters. Handle them.
10239 (strncmp_iw): New.
10240 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
10241 * utils.h (strncmp_iw): Declare.
10242 (strcmp_iw): Move describing comments here.
10243
10244 2017-07-17 Pedro Alves <palves@redhat.com>
10245
10246 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
10247 CP_OPERATOR_STR.
10248 * c-typeprint.c (is_type_conversion_operator): Use
10249 CP_OPERATOR_STR.
10250 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
10251 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
10252 CP_OPERATOR_LEN.
10253 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
10254 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
10255 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
10256 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
10257 CP_OPERATOR_STR.
10258 * location.c: Include "cp-support.h".
10259 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
10260 CP_OPERATOR_STR.
10261 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
10262 CP_OPERATOR_LEN.
10263
10264 2017-07-17 Pedro Alves <palves@redhat.com>
10265
10266 * cli/cli-cmds.c (complete_command): Use a completion tracker
10267 along with completion_find_completion_word for handle_brkchars
10268 phase.
10269 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
10270 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
10271 (struct gdb_rl_completion_word_info): New.
10272 (gdb_rl_find_completion_word): New.
10273 (completion_find_completion_word): New.
10274 * completer.h (completion_find_completion_word): Declare.
10275
10276 2017-07-17 Pedro Alves <palves@redhat.com>
10277
10278 * ada-lang.c (symbol_completion_match): Adjust comments.
10279 (symbol_completion_add): Replace vector parameter with
10280 completion_tracker parameter. Use it.
10281 (ada_make_symbol_completion_list): Rename to...
10282 (ada_collect_symbol_completion_matches): ... this. Add
10283 completion_tracker parameter and use it.
10284 (ada_language_defn): Adjust.
10285 * break-catch-syscall.c (catch_syscall_completer): Adjust
10286 prototype and work with completion_tracker instead of VEC.
10287 * breakpoint.c (condition_completer): Adjust prototype and work
10288 with completion_tracker instead of VEC.
10289 * c-lang.c (c_language_defn, cplus_language_defn)
10290 (asm_language_defn, minimal_language_defn): Adjust to renames.
10291 * cli/cli-cmds.c (complete_command): Rework using
10292 completion_tracker. Catch exceptions when completing.
10293 * cli/cli-decode.c (integer_unlimited_completer)
10294 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
10295 with completion_tracker instead of VEC.
10296 * command.h (struct completion_tracker): Forward declare.
10297 (completer_ftype, completer_handle_brkchars_ftype): Change
10298 types.
10299 (complete_on_cmdlist, complete_on_enum): Adjust.
10300 * completer.c: Include <algorithm>.
10301 (struct gdb_completer_state): New.
10302 (current_completion): New global.
10303 (readline_line_completion_function): Delete.
10304 (noop_completer, filename_completer)
10305 (filename_completer_handle_brkchars, complete_files_symbols)
10306 (linespec_location_completer): Adjust to work with a
10307 completion_tracker instead of a VEC.
10308 (string_or_empty): New.
10309 (collect_explicit_location_matches): Adjust to work with a
10310 completion_tracker instead of a VEC.
10311 (explicit_location_completer): Rename to ...
10312 (complete_explicit_location): ... this and adjust to work with a
10313 completion_tracker instead of a VEC.
10314 (location_completer): Adjust to work with a completion_tracker
10315 instead of a VEC.
10316 (add_struct_fields): Adjust to work with a completion_list instead
10317 of VEC.
10318 (expression_completer): Rename to ...
10319 (complete_expression): ... this and adjust to work with a
10320 completion_tracker instead of a VEC. Use complete_files_symbols.
10321 (expression_completer): Reimplement on top of complete_expression.
10322 (symbol_completer): Adjust to work with a completion_tracker
10323 instead of a VEC.
10324 (enum complete_line_internal_reason): Add describing comments.
10325 (complete_line_internal_normal_command): Adjust to work with a
10326 completion_tracker instead of a VEC.
10327 (complete_line_internal): Rename to ...
10328 (complete_line_internal_1): ... this and adjust to work with a
10329 completion_tracker instead of a VEC. Assert TEXT is NULL in the
10330 handle_brkchars phase.
10331 (new_completion_tracker): Delete.
10332 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
10333 complete_line_internal_1.
10334 (free_completion_tracker): Delete.
10335 (INITIAL_COMPLETION_HTAB_SIZE): New.
10336 (completion_tracker::completion_tracker)
10337 (completion_tracker::~completion_tracker): New.
10338 (maybe_add_completion): Delete.
10339 (completion_tracker::maybe_add_completion)
10340 (completion_tracker::add_completion)
10341 (completion_tracker::add_completions): New.
10342 (throw_max_completions_reached_error): Delete.
10343 (complete_line): Adjust to work with a completion_tracker instead
10344 of a VEC. Don't create a completion_tracker_t or check for max
10345 completions here.
10346 (command_completer, command_completer_handle_brkchars)
10347 (signal_completer, reg_or_group_completer_1)
10348 (reg_or_group_completer, default_completer_handle_brkchars):
10349 Adjust to work with a completion_tracker.
10350 (gdb_completion_word_break_characters_throw): New.
10351 (gdb_completion_word_break_characters): Reimplement.
10352 (line_completion_function): Delete.
10353 (completion_tracker::recompute_lowest_common_denominator)
10354 (expand_preserving_ws)
10355 (completion_tracker::build_completion_result)
10356 (completion_result::completion_result)
10357 (completion_result::completion_result)
10358 (completion_result::~completion_result)
10359 (completion_result::completion_result)
10360 (completion_result::release_match_list, compare_cstrings)
10361 (completion_result::sort_match_list)
10362 (completion_result::reset_match_list)
10363 (gdb_rl_attempted_completion_function_throw)
10364 (gdb_rl_attempted_completion_function): New.
10365 * completer.h (completion_list, struct completion_result)
10366 (class completion_tracker): New.
10367 (complete_line): Add completion_tracker parameter.
10368 (readline_line_completion_function): Delete.
10369 (gdb_rl_attempted_completion_function): New.
10370 (noop_completer, filename_completer, expression_completer)
10371 (location_completer, symbol_completer, command_completer)
10372 (signal_completer, reg_or_group_completer): Update prototypes.
10373 (completion_tracker_t, new_completion_tracker)
10374 (make_cleanup_free_completion_tracker): Delete.
10375 (enum maybe_add_completion_enum): Delete.
10376 (maybe_add_completion): Delete.
10377 (throw_max_completions_reached_error): Delete.
10378 * corefile.c (complete_set_gnutarget): Adjust to work with a
10379 completion_tracker instead of a VEC.
10380 * cp-abi.c (cp_abi_completer): Adjust to work with a
10381 completion_tracker instead of a VEC.
10382 * d-lang.c (d_language_defn): Adjust.
10383 * disasm.c (disassembler_options_completer): Adjust to work with a
10384 completion_tracker instead of a VEC.
10385 * f-lang.c (f_make_symbol_completion_list): Rename to ...
10386 (f_collect_symbol_completion_matches): ... this. Adjust to work
10387 with a completion_tracker instead of a VEC.
10388 (f_language_defn): Adjust.
10389 * go-lang.c (go_language_defn): Adjust.
10390 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
10391 Adjust to work with a completion_tracker instead of a VEC.
10392 * infrun.c (handle_completer): Likewise.
10393 * interps.c (interpreter_completer): Likewise.
10394 * interps.h (interpreter_completer): Likewise.
10395 * language.c (unknown_language_defn, auto_language_defn)
10396 (local_language_defn): Adjust.
10397 * language.h (language_defn::la_make_symbol_completion_list):
10398 Rename to ...
10399 (language_defn::la_collect_symbol_completion_matches): ... this
10400 and adjust to work with a completion_tracker instead of a VEC.
10401 * m2-lang.c (m2_language_defn): Adjust.
10402 * objc-lang.c (objc_language_defn): Adjust.
10403 * opencl-lang.c (opencl_language_defn): Adjust.
10404 * p-lang.c (pascal_language_defn): Adjust.
10405 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
10406 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
10407 with a completion_tracker.
10408 * rust-lang.c (rust_language_defn): Adjust.
10409 * symtab.c (free_completion_list, do_free_completion_list)
10410 (return_val, completion_tracker): Delete.
10411 (completion_list_add_name, completion_list_add_symbol)
10412 (completion_list_add_msymbol, completion_list_objc_symbol)
10413 (completion_list_add_fields, add_symtab_completions): Add
10414 completion_tracker parameter and use it.
10415 (default_make_symbol_completion_list_break_on_1): Rename to...
10416 (default_collect_symbol_completion_matches_break_on): ... this.
10417 Add completion_tracker parameter and use it instead of allocating
10418 a completion tracker here.
10419 (default_make_symbol_completion_list_break_on): Delete old
10420 implementation.
10421 (default_make_symbol_completion_list): Delete.
10422 (default_collect_symbol_completion_matches): New.
10423 (make_symbol_completion_list): Delete.
10424 (collect_symbol_completion_matches): New.
10425 (make_symbol_completion_type): Rename to ...
10426 (collect_symbol_completion_matches_type): ... this. Add
10427 completion_tracker parameter and use it instead of VEC.
10428 (make_file_symbol_completion_list_1): Rename to...
10429 (collect_file_symbol_completion_matches): ... this. Add
10430 completion_tracker parameter and use it instead of VEC.
10431 (make_file_symbol_completion_list): Delete.
10432 (add_filename_to_list): Use completion_list instead of a VEC.
10433 (add_partial_filename_data::list): Now a completion_list.
10434 (make_source_files_completion_list): Work with a completion_list
10435 instead of a VEC.
10436 * symtab.h: Include "completer.h".
10437 (default_make_symbol_completion_list_break_on)
10438 (default_make_symbol_completion_list, make_symbol_completion_list)
10439 (make_symbol_completion_type, make_file_symbol_completion_list)
10440 (make_source_files_completion_list): Delete.
10441 (default_collect_symbol_completion_matches_break_on)
10442 (default_collect_symbol_completion_matches)
10443 (collect_symbol_completion_matches)
10444 (collect_symbol_completion_matches_type)
10445 (collect_file_symbol_completion_matches)
10446 (make_source_files_completion_list): New.
10447 * top.c (init_main): Don't install a rl_completion_entry_function
10448 hook. Install a rl_attempted_completion_function hook instead.
10449 * tui/tui-layout.c (layout_completer): Adjust to work with a
10450 completion_tracker.
10451 * tui/tui-regs.c (tui_reggroup_completer):
10452 * tui/tui-win.c (window_name_completer, focus_completer)
10453 (winheight_completer): Adjust to work with a completion_tracker.
10454 * value.c: Include "completer.h".
10455 (complete_internalvar): Adjust to work with a completion_tracker.
10456 * value.h (complete_internalvar): Likewise.
10457
10458 2017-07-17 Pedro Alves <palves@redhat.com>
10459
10460 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
10461 renames.
10462 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
10463 comments to completer_ftype's declaration.
10464 <completer_handle_brkchars>: Change type to
10465 completer_handle_brkchars_ftype.
10466 * command.h (completer_ftype): Add describing comment and give
10467 names to parameters.
10468 (completer_ftype_void): Rename to ...
10469 (completer_handle_brkchars_ftype) ... this. Add describing comment.
10470 (set_cmd_completer_handle_brkchars): Adjust.
10471 * completer.c (filename_completer_handle_brkchars): New function.
10472 (complete_line_internal_normal_command): New function, factored
10473 out from ...
10474 (complete_line_internal): ... here.
10475 (command_completer_handle_brkchars)
10476 (default_completer_handle_brkchars)
10477 (completer_handle_brkchars_func_for_completer): New functions.
10478 * completer.h (set_gdb_completion_word_break_characters): Delete
10479 declaration.
10480 (completer_handle_brkchars_func_for_completer): New declaration.
10481 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
10482 completer_handle_brkchars_func_for_completer.
10483
10484 2017-07-17 Pedro Alves <palves@redhat.com>
10485
10486 * completer.c (symbol_completer): New function, based on
10487 make_symbol_completion_list_fn.
10488 * completer.h (symbol_completer): New declaration.
10489 * guile/scm-cmd.c (cmdscm_completers): Adjust.
10490 * python/py-cmd.c (completers): Adjust.
10491 * symtab.c (make_symbol_completion_list_fn): Delete.
10492 * symtab.h (make_symbol_completion_list_fn): Delete.
10493 * cli/cli-decode.c (add_cmd): Adjust.
10494
10495 2017-07-17 Pedro Alves <palves@redhat.com>
10496
10497 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
10498 * dwarf2read.c: Include "filename-seen-cache.h".
10499 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
10500 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
10501 * filename-seen-cache.c: New file.
10502 * filename-seen-cache.h: New file.
10503 * symtab.c: Include "filename-seen-cache.h".
10504 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
10505 (create_filename_seen_cache, clear_filename_seen_cache)
10506 (delete_filename_seen_cache, filename_seen): Delete, parts moved
10507 to filename-seen-cache.h/filename-seen-cache.c.
10508 (output_source_filename, sources_info)
10509 (maybe_add_partial_symtab_filename)
10510 (make_source_files_completion_list): Adjust to use
10511 filename_seen_cache.
10512
10513 2017-07-17 Pedro Alves <palves@redhat.com>
10514
10515 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
10516 fields.
10517 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
10518 dwarf2_debug_sections*)): New.
10519 (dwarf2_per_objfile::dwarf2_per_objfile(const
10520 dwarf2_per_objfile&)): Declare as deleted.
10521 (dwarf2_per_objfile::operator=): Declare as deleted.
10522 (dwarf2_per_objfile::dwarf2_per_objfile)
10523 (dwarf2_per_objfile::~dwarf2_per_objfile)
10524 (dwarf2_per_objfile::free_cached_comp_units): New.
10525 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
10526 ctor. Call dwarf2_per_objfile's ctor manually.
10527 (dwarf2_locate_sections): Deleted/refactored as ...
10528 (dwarf2_per_objfile::locate_sections): ... this new method.
10529 (free_cached_comp_units): Defer to
10530 dwarf2_per_objfile::free_cached_comp_units.
10531 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
10532
10533 2017-07-14 Tom Tromey <tom@tromey.com>
10534
10535 PR rust/21764:
10536 * rust-exp.y (convert_ast_to_expression): Add "want_type"
10537 parameter.
10538 <UNOP_SIZEOF>: Split into separate case.
10539 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
10540
10541 2017-07-14 Tom Tromey <tom@tromey.com>
10542
10543 PR rust/21763:
10544 * symtab.c (symbol_matches_domain): Add language_rust to special
10545 case.
10546 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
10547 treat LOC_TYPEDEF symbols as variables.
10548
10549 2017-07-14 Pedro Alves <palves@redhat.com>
10550
10551 * symtab.c (make_file_symbol_completion_list_1): Iterate over
10552 symtabs matching all symtabs with SRCFILE as file name instead of
10553 only considering the first hit, with lookup_symtab.
10554
10555 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10556
10557 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
10558 operator_name parameters.
10559 (gen_expr): Update function call.
10560
10561 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10562
10563 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
10564 parameter.
10565 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
10566 Likewise.
10567 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
10568 parameter, use agent_expr::gdbarch instead, update function
10569 calls.
10570 (locexpr_tracepoint_var_ref): Likewise.
10571 (loclist_tracepoint_var_ref): Likewise.
10572 * ax-gdb.c (gen_trace_static_fields): Likewise.
10573 (gen_traced_pop): Likewise.
10574 (gen_frame_args_address): Likewise.
10575 (gen_frame_locals_address): Likewise.
10576 (gen_var_ref): Likewise.
10577 (gen_struct_ref_recursive): Likewise.
10578 (gen_static_field): Likewise.
10579 (gen_maybe_namespace_elt): Likewise.
10580 (gen_expr): Likewise.
10581 (gen_trace_for_var): Likewise.
10582 (gen_trace_for_expr): Likewise.
10583 (gen_trace_for_return_address): Likewise.
10584
10585 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10586
10587 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
10588 parameter.
10589 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
10590
10591 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
10592
10593 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
10594 from ax, update calls.
10595 (gen_usual_arithmetic): Likewise.
10596 (gen_integral_promotions): Likewise.
10597 (gen_bitfield_ref): Likewise.
10598 (gen_primitive_field): Likewise.
10599 (gen_struct_ref_recursive): Likewise.
10600 (gen_struct_ref): Likewise.
10601 (gen_maybe_namespace_elt): Likewise.
10602 (gen_struct_elt_for_reference): Likewise.
10603 (gen_namespace_elt): Likewise.
10604 (gen_aggregate_elt_ref): Likewise.
10605 (gen_expr): Get gdbarch from ax, update calls.
10606 (gen_expr_binop_rest): Likewise.
10607
10608 2017-07-13 Pedro Alves <palves@redhat.com>
10609
10610 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
10611 as default tdesc.
10612 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
10613 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
10614 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
10615 tdesc_amd64_linux as default tdesc. Get final tdesc from the
10616 tdep.
10617 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
10618 Get final tdesc from the tdep.
10619 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
10620 default tdesc.
10621 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
10622 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
10623 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
10624 Use it as default tdesc.
10625 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
10626 down to amd_init_abi. No longer handle fallback tdesc here.
10627 * amd64-tdep.h (tdesc_x32): Declare.
10628 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
10629 parameter.
10630 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
10631 as default tdesc.
10632
10633 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10634
10635 * s390-linux-tdep.c (s390_process_record): Add support for
10636 instructions new in arch12.
10637
10638 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10639
10640 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
10641 PT_GETFSBASE and PT_GETGSBASE.
10642 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
10643 PT_SETGSBASE.
10644
10645 2017-07-11 John Baldwin <jhb@FreeBSD.org>
10646
10647 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
10648 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
10649 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
10650 those rules.
10651 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
10652 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
10653 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
10654 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
10655 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
10656 * features/i386/amd64.xml: Add 64bit-segments.xml.
10657 * features/i386/amd64-avx-avx512.c: Regenerated.
10658 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
10659 * features/i386/amd64-avx-mpx.c: Regenerated.
10660 * features/i386/amd64-avx.c: Regenerated.
10661 * features/i386/amd64-mpx.c: Regenerated.
10662 * features/i386/amd64.c: Regenerated.
10663 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
10664 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10665 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
10666 * regformats/i386/amd64-avx.dat: Regenerated.
10667 * regformats/i386/amd64-mpx.dat: Regenerated.
10668 * regformats/i386/amd64.dat: Regenerated.
10669
10670 2017-07-10 Yao Qi <yao.qi@linaro.org>
10671
10672 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
10673 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
10674
10675 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
10676
10677 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
10678 unsetenv.
10679 * gnulib/aclocal.m4: Regenerate.
10680 * gnulib/config.in: Regenerate.
10681 * gnulib/configure: Regenerate.
10682 * gnulib/import/Makefile.am: Regenerate.
10683 * gnulib/import/Makefile.in: Regenerate.
10684 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
10685 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
10686 * gnulib/import/m4/environ.m4: New file.
10687 * gnulib/import/m4/setenv.m4: New file.
10688 * gnulib/import/setenv.c: New file.
10689 * gnulib/import/unsetenv.c: New file.
10690
10691 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
10692
10693 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
10694 address when op is DW_OP_addr.
10695
10696 2017-07-09 Tom Tromey <tom@tromey.com>
10697
10698 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
10699 check and apply to outer type.
10700
10701 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10702
10703 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
10704 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
10705 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
10706 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
10707
10708 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10709
10710 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
10711
10712 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10713
10714 * corelow.c (get_core_siginfo): Remove.
10715 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
10716 instead of get_core_siginfo.
10717 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
10718 * gdbarch.h: Re-generate.
10719 * gdbarch.c: Re-generate.
10720 * linux-tdep.c (linux_core_xfer_siginfo): New.
10721 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
10722
10723 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10724
10725 * corelow.c (thread_section_name): Move to ...
10726 * gdbcore.h (thread_section_name): ... here.
10727
10728 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10729
10730 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
10731 (struct siginfo32): New.
10732 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
10733 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
10734 via ptrace(PT_LWPINFO).
10735
10736 2017-07-07 John Baldwin <jhb@FreeBSD.org>
10737
10738 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
10739 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
10740 (fbsd_get_siginfo_type): New.
10741 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
10742 (_initialize_fbsd_tdep): New.
10743
10744 2017-07-06 David Blaikie <dblaikie@gmail.com>
10745
10746 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
10747 a singular dwo_unit*) to support multiple CUs in the same way that
10748 multiple TUs are supported.
10749 (create_cus_hash_table): Replace create_dwo_cu with a function for
10750 parsing multiple CUs from a DWO file.
10751 (open_and_init_dwo_file): Use create_cus_hash_table rather than
10752 create_dwo_cu.
10753 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
10754 htab_find, rather than comparing the signature to a singleton CU in
10755 the dwo_file.
10756
10757 2017-07-06 Pedro Alves <palves@redhat.com>
10758
10759 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
10760
10761 2017-07-04 Pedro Alves <palves@redhat.com>
10762
10763 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
10764 * gdbtypes.h (TYPE_STATIC): Delete.
10765 (struct fn_field) <is_public, is_abstract, is_static, is_final,
10766 is_synchronized, is_native>: Delete.
10767 <dummy>: Bump.
10768 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
10769 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
10770 (TYPE_FN_FIELD_ABSTRACT): Delete.
10771
10772 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
10773
10774 * buffer.h (buffer_finish): Fix spelling mistakes.
10775
10776 2017-07-01 Eli Zaretskii <eliz@gnu.org>
10777
10778 * .dir-locals.el: Automatically switch to C-style comments in
10779 versions of Emacs that support the feature.
10780
10781 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10782 Pedro Alves <palves@redhat.com>
10783
10784 PR cli/21688
10785 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
10786 (process_next_line): New variable 'inline_cmd'.
10787 Adjust 'if' clauses for "python", "compile" and "guile" to use
10788 'command_name_equals' and check for '!inline_cmd'.
10789
10790 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
10791
10792 PR cli/21688
10793 * cli/cli-script.c (command_name_equals_not_inline): New function.
10794 (process_next_line): Adjust 'if' clauses for "python", "compile"
10795 and "guile" to use command_name_equals_not_inline.
10796
10797 2017-06-29 Pedro Alves <palves@redhat.com>
10798
10799 * completer.c (expression_completer): Call
10800 linespec_location_completer instead of location_completer.
10801
10802 2017-06-29 Pedro Alves <palves@redhat.com>
10803
10804 * completer.c (expression_completer): Remove code that recomputes
10805 'text' from 'word'.
10806
10807 2017-06-29 Yao Qi <yao.qi@linaro.org>
10808
10809 * regformats/regdat.sh: Generate code with
10810 "ifndef IN_PROCESS_AGENT".
10811
10812 2017-06-28 Pedro Alves <palves@redhat.com>
10813
10814 * command.h: Include "common/scoped_restore.h".
10815
10816 2017-06-28 Yao Qi <yao.qi@linaro.org>
10817
10818 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
10819 instead of obstack_grow.
10820
10821 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
10822
10823 PR gdb/21337
10824 * symfile.c (reread_symbols): Call objfiles_changed just before
10825 read_symbols.
10826
10827 2017-06-27 Pedro Alves <palves@redhat.com>
10828
10829 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
10830 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
10831 (completion_list_add_symbol, completion_list_add_msymbol):
10832 ... these new functions.
10833 (add_symtab_completions)
10834 (default_make_symbol_completion_list_break_on_1): Adjust.
10835
10836 2017-06-27 Pedro Alves <palves@redhat.com>
10837
10838 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
10839 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
10840 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
10841 dtor.
10842 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
10843 'storage_obstack' field an auto_obstack. In-class initialize all
10844 non-bitfield fields. Make minsyms_read bool.
10845 * symfile.c (read_symbols): Adjust.
10846
10847 2017-06-27 Alan Hayward <alan.hayward@arm.com>
10848
10849 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
10850 (gdbsim_store_register): Likewise.
10851
10852 2017-06-27 Pedro Alves <palves@redhat.com>
10853
10854 * c-exp.y (name_obstack): Now an auto_obstack.
10855 (yylex): Use auto_obstack::clear.
10856 (c_parse): Use auto_obstack::clear instead of reinitializing and
10857 freeing the obstack.
10858 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
10859 * d-exp.y (name_obstack): Now an auto_obstack.
10860 (yylex): Use auto_obstack::clear.
10861 (d_parse): Use auto_obstack::clear instead of reinitializing and
10862 freeing the obstack.
10863 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
10864 auto_obstack.
10865 * dwarf2read.c (create_addrmap_from_index)
10866 (dwarf2_build_psymtabs_hard)
10867 (update_enumeration_type_from_children): Likewise.
10868 * gdb_obstack.h (auto_obstack): New type.
10869 * go-exp.y (name_obstack): Now an auto_obstack.
10870 (build_packaged_name): Use auto_obstack::clear.
10871 (go_parse): Use auto_obstack::clear instead of reinitializing and
10872 freeing the obstack.
10873 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
10874 auto_obstack.
10875 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
10876 * rust-exp.y (work_obstack): Now an auto_obstack.
10877 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
10878 reinitializing and freeing the obstack.
10879 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
10880 (host_char_to_target): Use auto_obstack.
10881 * utils.h (make_cleanup_obstack_free): Delete declaration.
10882 * valprint.c (generic_emit_char, generic_printstr): Use
10883 auto_obstack.
10884
10885 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
10886
10887 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
10888 thread.
10889 (darwin_init_thread_list): Don't update dummy thread.
10890 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
10891
10892 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10893
10894 * record-full.c (netorder16): Remove.
10895
10896 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10897
10898 * common/diagnostics.h: Define macros for GCC.
10899 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
10900 * common/vec.h: Include diagnostics.h.
10901 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
10902 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
10903 warning.
10904
10905 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
10906
10907 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
10908 New macro.
10909 * ada-lex.l: Ignore deprecated register warnings.
10910
10911 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10912
10913 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
10914 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
10915
10916 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10917
10918 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
10919 its own line.
10920
10921 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
10922
10923 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
10924
10925 2017-06-23 Alan Hayward <alan.hayward@arm.com>
10926
10927 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
10928 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
10929 (xtensa_register_read_masked): Likewise.
10930
10931 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
10932
10933 * common/environ.c (gdb_environ::unset): Update comment.
10934
10935 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10936
10937 * python/py-unwind.c (pyuw_sniffer): Allocate space for
10938 registers.
10939
10940 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10941
10942 * record-full.c (record_full_exec_insn): Use byte_vector.
10943
10944 2017-06-22 Yao Qi <yao.qi@linaro.org>
10945
10946 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
10947 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
10948
10949 2017-06-22 Alan Hayward <alan.hayward@arm.com>
10950
10951 * remote.c (cached_reg): Move from here...
10952 * regcache.h (cached_reg): ...to here.
10953 * python/py-unwind.c (struct reg_info): Remove.
10954 (cached_frame_info): Use cached_reg_t.
10955 (pyuw_prev_register): Likewise.
10956 (pyuw_sniffer): Use cached_reg_t and allocate registers.
10957 (pyuw_dealloc_cache): Free all registers.
10958
10959 2017-06-22 Pedro Alves <palves@redhat.com>
10960 Simon Marchi <simon.marchi@ericsson.com>
10961
10962 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
10963 warning.
10964 * common/diagnostics.h: New file.
10965
10966 2017-06-22 Pedro Alves <palves@redhat.com>
10967
10968 * common/agent.h: Add include guards.
10969
10970 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
10971
10972 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
10973 talk about addressable units instead of bytes.
10974
10975 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10976
10977 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
10978 of '::const_iterator'.
10979
10980 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
10981
10982 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10983 'unittests/environ-selftests.c'.
10984 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
10985 * charset.c (find_charset_names): Declare object 'iconv_env'.
10986 Update code to use 'iconv_env' object. Remove call to
10987 'free_environ'.
10988 * common/environ.c: Include <utility>.
10989 (make_environ): Delete function.
10990 (free_environ): Delete function.
10991 (gdb_environ::clear): New function.
10992 (gdb_environ::operator=): New function.
10993 (gdb_environ::get): Likewise.
10994 (environ_vector): Delete function.
10995 (set_in_environ): Delete function.
10996 (gdb_environ::set): New function.
10997 (unset_in_environ): Delete function.
10998 (gdb_environ::unset): New function.
10999 (gdb_environ::envp): Likewise.
11000 * common/environ.h: Include <vector>.
11001 (struct gdb_environ): Delete; transform into...
11002 (class gdb_environ): ... this class.
11003 (free_environ): Delete prototype.
11004 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
11005 environ_vector): Likewise.
11006 * infcmd.c (run_command_1): Update code to call
11007 'envp' from 'gdb_environ' class.
11008 (environment_info): Update code to call methods from 'gdb_environ'
11009 class.
11010 (unset_environment_command): Likewise.
11011 (path_info): Likewise.
11012 (path_command): Likewise.
11013 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
11014 (inferior::inferior): Initialize 'environment' using the host's
11015 information.
11016 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
11017 Include "environ.h".
11018 (class inferior) <environment>: Change type from 'struct
11019 gdb_environ' to 'gdb_environ'.
11020 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
11021 methods from 'gdb_environ' class.
11022 * solib.c (solib_find_1): Likewise
11023 * unittests/environ-selftests.c: New file.
11024
11025 2017-06-20 Yao Qi <yao.qi@linaro.org>
11026
11027 * features/i386/i386-linux.xml: Exchange the order of including
11028 32bit-linux.xml and 32bit-sse.xml.
11029 * features/i386/i386-linux.c: Regenerated.
11030
11031 2017-06-20 Yao Qi <yao.qi@linaro.org>
11032
11033 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
11034 Delete copy ctor and assignment operator.
11035 (tdesc_type): Likewise.
11036 (tdesc_feature): Likewise.
11037 (tdesc_free_reg): Remove.
11038 (tdesc_create_reg): Use new.
11039 (tdesc_free_type): Remove.
11040 (tdesc_create_vector): Use new.
11041 (tdesc_create_union): Likewise.
11042 (tdesc_create_flags): Likewise.
11043 (tdesc_create_enum): Likewise.
11044 (tdesc_free_feature): Delete.
11045 (free_target_description): Use delete.
11046
11047 2017-06-19 John Baldwin <jhb@FreeBSD.org>
11048
11049 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
11050 registers.
11051
11052 2017-06-19 Pedro Alves <palves@redhat.com>
11053
11054 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
11055 after gdb::unlinker.
11056
11057 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
11058
11059 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
11060 gdb_environ to access an environment variable.
11061
11062 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11063
11064 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
11065 gdb_byte*.
11066
11067 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11068
11069 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
11070
11071 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11072
11073 * configure: Re-generate.
11074 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
11075
11076 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11077
11078 * configure: Re-generate.
11079 * warning.m4: Pass -Werror to compiler when checking for
11080 supported warning flags.
11081
11082 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
11083
11084 * Makefile.in (COMPILE.pre): Add "-x c++".
11085
11086 2017-06-16 Alan Hayward <alan.hayward@arm.com>
11087 Pedro Alves <palves@redhat.com>
11088 Yao Qi <yao.qi@linaro.org>
11089
11090 * defs.h (RequireLongest): New.
11091 (extract_integer): Declare function template.
11092 (extract_signed_integer): Remove the declaration, but define it
11093 static inline.
11094 (extract_unsigned_integer): Likewise.
11095 (store_integer): Declare function template.
11096 (store_signed_integer): Remove the declaration, but define it
11097 static inline.
11098 (store_unsigned_integer): Likewise.
11099 * findvar.c (extract_integer): New function template.
11100 (extract_signed_integer): Remove.
11101 (extract_unsigned_integer): Remove.
11102 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
11103 instantiations.
11104 (store_integer): New function template.
11105 (store_signed_integer): Remove.
11106 (store_unsigned_integer): Remove.
11107 (store_integer): Explicit instantiations.
11108 * regcache.c (regcache_raw_read_signed): Update.
11109 (regcache::raw_read): New function.
11110 (regcache::raw_read_signed): Remove.
11111 (regcache::raw_read_unsigned): Remove.
11112 (regcache_raw_read_unsigned): Update.
11113 (regcache_raw_write_unsigned): Update.
11114 (regcache::raw_write_signed): Remove.
11115 (regcache::raw_write): New function.
11116 (regcache_cooked_read_signed): Update.
11117 (regcache::raw_write_unsigned): Remove.
11118 (regcache::cooked_read_signed): Remove.
11119 (regcache_cooked_read_unsigned): Update.
11120 (regcache::cooked_read_unsigned): Remove.
11121 (regcache_cooked_write_signed): Update.
11122 (regcache_cooked_write_unsigned): Update.
11123 * regcache.h (regcache) <raw_read_signed>: Remove.
11124 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
11125 <raw_read, raw_write>: New.
11126 <cooked_read_signed, cooked_write_signed>: Remove.
11127 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
11128 <cooked_read, cooked_write>: New.
11129 * sh64-tdep.c (sh64_pseudo_register_read): Update.
11130 (sh64_pseudo_register_write): Update.
11131
11132 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
11133
11134 * arc-tdep.c (arc_disassembler_options): New variable.
11135 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
11136 of default_print_insn.
11137 (arc_delayed_print_insn): Set info->section when needed,
11138 use default_print_insn to retrieve a disassembler.
11139
11140 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
11141
11142 PR gdb/21574
11143 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
11144 to mention $SHELL and startup-with-shell.
11145
11146 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
11147
11148 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
11149
11150 2017-06-14 Yao Qi <yao.qi@linaro.org>
11151
11152 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
11153 default_print_insn instead of print_insn_aarch64.
11154 * arm-tdep.c (gdb_print_insn_arm): Call
11155 default_print_insn instead of print_insn_big_arm
11156 and print_insn_little_arm.
11157 * i386-tdep.c (i386_print_insn): Call default_print_insn
11158 instead of print_insn_i386.
11159 * ia64-tdep.c (ia64_print_insn): Call
11160 default_print_insn instead of print_insn_ia64.
11161 * mips-tdep.c (gdb_print_insn_mips): Call
11162 default_print_insn instead of print_insn_big_mips
11163 and print_insn_little_mips.
11164 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
11165 instead of print_insn_spu.
11166
11167 2017-06-14 Pedro Alves <palves@redhat.com>
11168
11169 * ada-lang.c: Include "common/byte-vector.h".
11170 (ada_value_primitive_packed_val): Use gdb::byte_vector.
11171 * charset.c (wchar_iterator::iterate): Resize the vector instead
11172 of reserving it.
11173 * common/byte-vector.h: Include "common/def-vector.h".
11174 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
11175 * cli/cli-dump.c: Include "common/byte-vector.h".
11176 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
11177 * common/byte-vector.h: New file.
11178 * common/def-vector.h: New file.
11179 * common/default-init-alloc.h: New file.
11180 * dwarf2loc.c: Include "common/byte-vector.h".
11181 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
11182 instead of reserving it.
11183 * dwarf2read.c: Include "common/byte-vector.h".
11184 (data_buf::m_vec): Now a gdb::byte_vector.
11185 * gdb_regex.c: Include "common/def-vector.h".
11186 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
11187 * mi/mi-main.c: Include "common/byte-vector.h".
11188 (mi_cmd_data_read_memory): Use gdb::byte_vector.
11189 * printcmd.c: Include "common/byte-vector.h".
11190 (print_scalar_formatted): Use gdb::byte_vector.
11191 * valprint.c: Include "common/byte-vector.h".
11192 (maybe_negate_by_bytes, print_decimal_chars): Use
11193 gdb::byte_vector.
11194
11195 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11196
11197 * darwin-nat.c: Include "nat/fork-inferior.h".
11198
11199 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11200
11201 * configure.nat: Factor out Darwin bits that are not
11202 architecture-specific. Add fork-inferior.o.
11203
11204 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
11205
11206 * configure.nat: Factor out AIX bits that are not
11207 architecture-specific. Add fork-inferior.o.
11208
11209 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11210
11211 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
11212 (read_pieced_value, write_pieced_value): ...here. Reduce to
11213 wrappers that just call rw_pieced_value.
11214
11215 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11216
11217 * dwarf2loc.c (write_pieced_value): When writing the data for a
11218 memory piece, use write_memory_with_notification instead of
11219 write_memory.
11220
11221 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11222
11223 * valops.c (read_value_memory): Change embedded_offset to
11224 represent a bit offset instead of a byte offset.
11225 * value.h (read_value_memory): Adjust comment.
11226
11227 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11228
11229 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
11230 dest_offset_bits and source_offset_bits.
11231 (write_pieced_value): Likewise.
11232
11233 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11234
11235 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
11236 given by DW_OP_bit_piece.
11237 (write_pieced_value): Likewise.
11238
11239 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11240
11241 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
11242 some other preparations to the places where sufficient information
11243 is available.
11244 (write_pieced_value): Likewise.
11245
11246 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11247
11248 * dwarf2loc.c (bits_to_bytes): New function.
11249 (read_pieced_value): Fix offset calculations for register pieces
11250 on big-endian targets.
11251 (write_pieced_value): Likewise.
11252
11253 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11254
11255 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
11256 (write_pieced_value): Likewise.
11257
11258 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11259
11260 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
11261 transfer the source value's least significant bits, instead of its
11262 lowest-addressed ones. Rename type_len to max_offset.
11263 (read_pieced_value): Mirror above changes to write_pieced_value as
11264 applicable.
11265
11266 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11267
11268 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
11269 truncate full bytes from dest_offset_bits before using it as an
11270 offset into the buffer.
11271
11272 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11273
11274 * dwarf2loc.c (write_pieced_value): Include transfer size in
11275 byte-wise check.
11276
11277 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11278
11279 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
11280 calculation of this_size.
11281
11282 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11283
11284 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
11285 when targeting a bit-field.
11286 (write_pieced_value): Likewise.
11287
11288 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11289
11290 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
11291 (allocate_piece_closure): Drop addr_size parameter.
11292 (dwarf2_evaluate_loc_desc_full): Adjust call to
11293 allocate_piece_closure.
11294
11295 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11296
11297 PR gdb/21226
11298 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
11299 the LSB end, independent of endianness.
11300
11301 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
11302
11303 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
11304 size capping.
11305
11306 2017-06-13 Yao Qi <yao.qi@linaro.org>
11307
11308 * mips-linux-nat.c: Move include features/mips*-linux.c to
11309 mips-linux-tdep.c.
11310 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
11311 to mips-linux-tdep.c.
11312 * mips-linux-tdep.c: Include features/mips*-linux.c
11313 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
11314 functions.
11315 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
11316 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
11317 (tdesc_mips64_dsp_linux): Declare.
11318
11319 2017-06-12 Tom Tromey <tom@tromey.com>
11320
11321 * valprint.h (val_print_type_code_int): Remove.
11322 * valprint.c (generic_val_print_int): Always call
11323 val_print_scalar_formatted.
11324 (val_print_type_code_int): Remove.
11325 * printcmd.c (print_scalar_formatted): Handle options->format==0.
11326 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
11327 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
11328 * ada-valprint.c (ada_val_print_num): Use
11329 val_print_scalar_formatted.
11330
11331 2017-06-12 Tom Tromey <tom@tromey.com>
11332
11333 * printcmd.c (print_scalar_formatted): Unify the two switches.
11334 Don't convert scalars to LONGEST.
11335
11336 2017-06-12 Tom Tromey <tom@tromey.com>
11337
11338 PR exp/16225:
11339 * valprint.h (print_decimal_chars): Update.
11340 * valprint.c (maybe_negate_by_bytes): New function.
11341 (print_decimal_chars): Add "is_signed" argument.
11342 * printcmd.c (print_scalar_formatted): Update.
11343
11344 2017-06-12 Tom Tromey <tom@tromey.com>
11345
11346 PR exp/16225:
11347 * valprint.h (print_binary_chars, print_hex_chars): Update.
11348 * valprint.c (val_print_type_code_int): Update.
11349 (print_binary_chars): Add "zero_pad" argument.
11350 (emit_octal_digit): New function.
11351 (print_octal_chars): Don't zero-pad.
11352 (print_decimal_chars): Likewise.
11353 (print_hex_chars): Add "zero_pad" argument.
11354 * sh64-tdep.c (sh64_do_fp_register): Update.
11355 * regcache.c (regcache::dump): Update.
11356 * printcmd.c (print_scalar_formatted): Update.
11357 * infcmd.c (default_print_one_register_info): Update.
11358
11359 2017-06-12 Pedro Alves <palves@redhat.com>
11360 Alan Hayward <alan.hayward@arm.com>
11361
11362 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
11363 (mips_eabi_push_dummy_call): Rename local 'regsize' to
11364 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
11365 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
11366 Assert that abi_regsize bytes fit in 'ref_valbuf'.
11367
11368 2017-06-12 Pedro Alves <palves@redhat.com>
11369
11370 * dwarf2read.c (mapped_symtab::data): Now a vector of
11371 symtab_index_entry instead of vector of
11372 std::unique_ptr<symtab_index_entry>. All users adjusted to check
11373 whether an element's name is NULL instead of checking whether the
11374 element itself is NULL.
11375 (find_slot): Change return type. Adjust.
11376 (hash_expand, , add_index_entry, uniquify_cu_indices)
11377 (write_hash_table): Adjust.
11378
11379 2017-06-12 Pedro Alves <palves@redhat.com>
11380
11381 * dwarf2read.c (recursively_count_psymbols): New function.
11382 (write_psymtabs_to_index): Call it to compute number of psyms and
11383 pass estimate size of psyms_seen to unordered_set's ctor.
11384
11385 2017-06-12 Pedro Alves <palves@redhat.com>
11386
11387 * dwarf2read.c (write_hash_table): Check if key already exists
11388 before emplacing.
11389
11390 2017-06-12 Pedro Alves <palves@redhat.com>
11391
11392 * dwarf2read.c (data_buf::append_space): Rename to...
11393 (data_buf::grow): ... this, and make private. Adjust all callers.
11394 (data_buf::append_uint): New method.
11395 (add_address_entry, write_one_signatured_type)
11396 (write_psymtabs_to_index): Use it.
11397
11398 2017-06-12 Pedro Alves <palves@redhat.com>
11399
11400 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
11401 (file_write (FILE *, const std::vector<Elem>&)): Delete.
11402 (data_buf::file_write): Call ::fwrite directly.
11403
11404 2017-06-12 Pedro Alves <palves@redhat.com>
11405
11406 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
11407 std::vector::erase.
11408
11409 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11410
11411 Code cleanup: C++ify .gdb_index producer.
11412 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
11413 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
11414 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
11415 (create_strtab, add_string): Remove.
11416 (file_write, data_buf): New.
11417 (struct symtab_index_entry): Use std::vector for cu_indices.
11418 (struct mapped_symtab): Use std::vector for data.
11419 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
11420 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
11421 Remove.
11422 (find_slot): Change return type. Update it to the new data structures.
11423 (hash_expand, add_index_entry): Update it to the new data structures.
11424 (offset_type_compare): Remove.
11425 (uniquify_cu_indices): Update it to the new data structures.
11426 (c_str_view, c_str_view_hasher, vector_hasher): New.
11427 (add_indices_to_cpool): Remove.
11428 (write_hash_table): Update it to the new data structures.
11429 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
11430 (eq_psymtab_cu_index): Remove.
11431 (psym_index_map): New typedef.
11432 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
11433 reference and std::unordered_map for cu_index_htab.
11434 (add_address_entry, add_address_entry_worker, write_address_map)
11435 (write_psymbols): Update it to the new data structures.
11436 (write_obstack): Remove.
11437 (struct signatured_type_index_data): Change types_list to a data_buf
11438 reference and psyms_seen to a std::unordered_set reference.
11439 (write_one_signatured_type, recursively_write_psymbols)
11440 (write_psymtabs_to_index): Update it to the new data structures.
11441
11442 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
11443
11444 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
11445 separate-debug-file commands.
11446 * symfile.h (separate_debug_file_debug): New global.
11447 * symfile.c (separate_debug_file_debug): New global.
11448 (separate_debug_file_exists, find_separate_debug_file): Add
11449 debug output.
11450 (_initialize_symfile): Add "set debug separate-debug-file"
11451 command.
11452 * build-id.c (build_id_to_debug_bfd,
11453 find_separate_debug_file_by_buildid): Add debug output.
11454
11455 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
11456
11457 * gdbarch.sh (displaced_step_free_closure): Remove.
11458 * gdbarch.h, gdbarch.c: Re-generate.
11459 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
11460 displaced_step_free_closure.
11461 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
11462 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
11463 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
11464 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
11465 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11466 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11467 * arch-utils.h (simple_displaced_step_free_closure): Remove.
11468 * arch-utils.c (simple_displaced_step_free_closure): Remove.
11469 * infrun.c (displaced_step_clear): Call xfree instead of
11470 gdbarch_displaced_step_free_closure.
11471
11472 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
11473
11474 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
11475 NULL".
11476
11477 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11478
11479 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
11480 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
11481 (mn10300_push_dummy_call): Likewise.
11482
11483 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11484
11485 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
11486
11487 2017-06-08 Alan Hayward <alan.hayward@arm.com>
11488
11489 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
11490
11491 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11492
11493 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
11494 able to start inferiors using a shell.
11495 (New remote packets): Announce new packet "QStartupWithShell".
11496 * remote.c: Add PACKET_QStartupWithShell.
11497 (extended_remote_create_inferior): Handle new
11498 PACKET_QStartupWithShell.
11499 (remote_protocol_features) <QStartupWithShell>: New entry for
11500 PACKET_QStartupWithShell.
11501 (_initialize_remote): Call "add_packet_config_cmd" for
11502 QStartupShell.
11503
11504 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11505 Pedro Alves <palves@redhat.com>
11506
11507 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
11508 and "nat/fork-inferior.h".
11509 * common/common-inferior.h: New file, with contents from
11510 "gdb/inferior.h".
11511 * commom/common-utils.c: Include "common-utils.h".
11512 (stringify_argv): New function.
11513 * common/common-utils.h (stringify_argv): New prototype.
11514 * configure.nat: Add "fork-inferior.o" as a dependency for
11515 "*linux*", "fbsd*" and "nbsd*" hosts.
11516 * corefile.c (get_exec_file): Update comment.
11517 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
11518 instead of "startup_inferior".
11519 (darwin_create_inferior): Call "add_thread_silent" after
11520 "fork_inferior".
11521 * fork-child.c: Cleanup unnecessary includes.
11522 (SHELL_FILE): Move to "common/common-fork-child.c".
11523 (environ): Likewise.
11524 (exec_wrapper): Initialize.
11525 (get_exec_wrapper): New function.
11526 (breakup_args): Move to "common/common-fork-child.c"; rename to
11527 "breakup_args_for_exec".
11528 (escape_bang_in_quoted_argument): Move to
11529 "common/common-fork-child.c".
11530 (saved_ui): New variable.
11531 (prefork_hook): New function.
11532 (postfork_hook): Likewise.
11533 (postfork_child_hook): Likewise.
11534 (gdb_startup_inferior): Likewise.
11535 (fork_inferior): Move to "common/common-fork-child.c". Update
11536 function to support gdbserver.
11537 (startup_inferior): Likewise.
11538 * gdbcore.h (get_exec_file): Remove declaration.
11539 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
11540 instead of "startup_inferior". Call "add_thread_silent" after
11541 "fork_inferior".
11542 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
11543 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
11544 instead of "startup_inferior". Call "add_thread_silent" after
11545 "fork_inferior".
11546 * inferior.h: Include "common-inferior.h".
11547 (trace_start_error): Move to "common/common-utils.h".
11548 (trace_start_error_with_name): Likewise.
11549 (fork_inferior): Move prototype to "nat/fork-inferior.h".
11550 (startup_inferior): Likewise.
11551 (gdb_startup_inferior): New prototype.
11552 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
11553 * nat/fork-inferior.h: New file.
11554 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
11555 instead of "startup_inferior". Call "add_thread_silent" after
11556 "fork_inferior".
11557 * target.h (target_terminal_init): Move prototype to
11558 "target/target.h".
11559 (target_terminal_inferior): Likewise.
11560 (target_terminal_ours): Likewise.
11561 * target/target.h (target_terminal_init): New prototype, moved
11562 from "target.h".
11563 (target_terminal_inferior): Likewise.
11564 (target_terminal_ours): Likewise.
11565 * utils.c (gdb_flush_out_err): New function.
11566
11567 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11568
11569 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
11570 * common/common-gdbthread.h: New file, with parts from
11571 "gdb/gdbthread.h".
11572 * gdbthread.h: Include "common-gdbthread.h".
11573 (switch_to_thread): Moved to "common/common-gdbthread.h".
11574
11575 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
11576
11577 * Makefile.in (SFILES): Add "common/job-control.c".
11578 (HFILES_NO_SRCDIR): Add "common/job-control.h".
11579 (COMMON_OBS): Add "job-control.o".
11580 * common/job-control.c: New file, with contents from
11581 "gdb/inflow.c".
11582 * common/job-control.h: New file, with contents from "terminal.h".
11583 * fork-child.c: Include "job-control.h".
11584 * inflow.c: Include "job-control.h".
11585 (gdb_setpgid): Move to "common/common-inflow.c".
11586 (_initialize_inflow): Move setting of "job_control" to
11587 "handle_job_control".
11588 * terminal.h (job_control): Moved to "common/common-terminal.h".
11589 (gdb_setpgid): Likewise.
11590 * top.c: Include "job_control.h".
11591 * utils.c: Likewise.
11592 (job_control): Moved to "job-control.c".
11593
11594 2017-06-07 Pedro Alves <palves@redhat.com>
11595
11596 * Makefile.in (SFILES): Add gdb_regex.c.
11597 (COMMON_OBS): Add gdb_regex.o.
11598 * ada-lang.c (ada_add_standard_exceptions)
11599 (ada_add_exceptions_from_frame, name_matches_regex)
11600 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
11601 parameter type to compiled_regex. Adjust.
11602 (ada_exceptions_list): Use compiled_regex.
11603 * break-catch-throw.c (exception_catchpoint::pattern): Now a
11604 std::unique_ptr<compiled_regex>.
11605 (exception_catchpoint::~exception_catchpoint): Remove regfree
11606 call.
11607 (check_status_exception_catchpoint): Adjust to use compiled_regex.
11608 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
11609 * breakpoint.c (solib_catchpoint::compiled): Now a
11610 std::unique_ptr<compiled_regex>.
11611 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
11612 (check_status_catch_solib): Adjust to use compiled_regex.
11613 (add_solib_catchpoint): Adjust to use compiled_regex.
11614 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
11615 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
11616 compiled_regex reference. Adjust to use it.
11617 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
11618 declaration. Include "gdb_regex.h".
11619 (apropos_cmd): Change regex parameter to compiled_regex reference.
11620 * gdb_regex.c: New file.
11621 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
11622 declarations.
11623 (class compiled_regex): New.
11624 * linux-tdep.c: Include "common/gdb_optional.h".
11625 (struct mapping_regexes): New, factored out from
11626 mapping_is_anonymous_p, and adjusted to use compiled_regex.
11627 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
11628 gdb::optional and remove cleanups. Adjust to compiled_regex.
11629 * probe.c: Include "common/gdb_optional.h".
11630 (collect_probes): Use compiled_regex and gdb::optional and remove
11631 cleanups.
11632 * skip.c: Include "common/gdb_optional.h".
11633 (skiplist_entry::compiled_function_regexp): Now a
11634 gdb::optional<compiled_regex>.
11635 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
11636 (free_skiplist_entry): Remove regfree call.
11637 (compile_skip_regexp, skip_rfunction_p): Adjust to use
11638 compiled_regex and gdb::optional.
11639 * symtab.c: Include "common/gdb_optional.h".
11640 (search_symbols): Use compiled_regex and gdb::optional.
11641 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
11642 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
11643 to gdb_regex.c.
11644
11645 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11646
11647 * regcache.c (regcache::save): Avoid buffer use.
11648 (regcache::dump): Likewise.
11649
11650 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11651
11652 * sh-tdep.c (sh_pseudo_register_read): Remove
11653 MAX_REGISTER_SIZE.
11654 (sh_pseudo_register_write): Likewise.
11655 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
11656 (sh64_pseudo_register_write): Likewise
11657
11658 2017-06-07 Alan Hayward <alan.hayward@arm.com>
11659
11660 * aarch64-tdep.c (aarch64_store_return_value): Use
11661 V_REGISTER_SIZE.
11662 (aarch64_pseudo_read_value): Likewise.
11663 (aarch64_pseudo_write): Likewise.
11664
11665 2017-06-06 Yao Qi <yao.qi@linaro.org>
11666
11667 * regformats/regdef.h (set_register_cache): Remove the
11668 declaration.
11669
11670 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11671
11672 * frame.c (frame_unwind_register_signed): Use
11673 frame_unwind_register_value.
11674
11675 2017-06-06 Pedro Alves <palves@redhat.com>
11676
11677 PR breakpoints/21553
11678 * breakpoint.c (create_breakpoints_sal_default)
11679 (init_breakpoint_sal, create_breakpoint_sal): Use
11680 gdb::unique_xmalloc_ptr for string parameters.
11681 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11682 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
11683 (base_breakpoint_create_breakpoints_sal)
11684 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
11685 (strace_marker_create_breakpoints_sal)
11686 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
11687 string parameters.
11688 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
11689 gdb::unique_xmalloc_ptr for string parameters.
11690 (create_breakpoint): Constify 'extra_string' and 'cond_string'
11691 parameters.
11692
11693 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11694
11695 * alpha-tdep.c (alpha_register_to_value): Use
11696 get_frame_register_value.
11697 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
11698
11699 2017-06-06 Alan Hayward <alan.hayward@arm.com>
11700
11701 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
11702 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
11703 (ia64_value_to_register): Likewise.
11704 (ia64_extract_return_value): Likewise.
11705 (ia64_store_return_value): Likewise.
11706 (ia64_push_dummy_call): Likewise.
11707
11708 2017-06-04 Joel Brobecker <brobecker@adacore.com>
11709
11710 GDB 8.0 released.
11711
11712 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
11713
11714 * x86-linux-nat.c (struct arch_lwp_info): Remove.
11715
11716 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
11717
11718 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
11719 parameter.
11720 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
11721
11722 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
11723
11724 * event-loop.c (poll_timers): Unallocate timer using delete
11725 instead of xfree.
11726
11727 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11728
11729 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
11730 (struct breakpoint) <~breakpoint>: New.
11731 (struct watchpoint): Inherit from breakpoint.
11732 <~watchpoint>: New.
11733 <base>: Remove.
11734 (struct tracepoint): Inherit from breakpoint.
11735 <base>: Remove.
11736 * breakpoint.c (longjmp_breakpoint_ops): Remove.
11737 (struct longjmp_breakpoint): Inherit from breakpoint.
11738 <~longjmp_breakpoint>: New.
11739 <base>: Remove.
11740 (new_breakpoint_from_type): Remove casts.
11741 (watchpoint_in_thread_scope): Remove reference to base field.
11742 (watchpoint_del_at_next_stop): Likewise.
11743 (update_watchpoint): Likewise.
11744 (watchpoint_check): Likewise.
11745 (bpstat_check_watchpoint): Likewise.
11746 (set_longjmp_breakpoint): Likewise.
11747 (struct fork_catchpoint): Inherit from breakpoint.
11748 <base>: Remove.
11749 (struct solib_catchpoint): Inherit from breakpoint.
11750 <~solib_catchpoint>: New.
11751 <base>: Remove.
11752 (dtor_catch_solib): Change to ...
11753 (solib_catchpoint::~solib_catchpoint): ... this.
11754 (breakpoint_hit_catch_solib): Remove reference to base field.
11755 (add_solib_catchpoint): Likewise.
11756 (create_fork_vfork_event_catchpoint): Likewise.
11757 (struct exec_catchpoint): Inherit from breakpoint.
11758 <~exec_catchpoint>: New.
11759 <base>: Remove.
11760 (dtor_catch_exec): Change to ...
11761 (exec_catchpoint::~exec_catchpoint): ... this.
11762 (dtor_watchpoint): Change to ...
11763 (watchpoint::~watchpoint): ... this.
11764 (watch_command_1): Remove reference to base field.
11765 (catch_exec_command_1): Likewise.
11766 (base_breakpoint_dtor): Change to ...
11767 (breakpoint::~breakpoint): ... this.
11768 (base_breakpoint_ops): Remove dtor field value.
11769 (longjmp_bkpt_dtor): Change to ...
11770 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
11771 (strace_marker_create_breakpoints_sal): Remove reference to base
11772 field.
11773 (delete_breakpoint): Don't manually call breakpoint destructor.
11774 (create_tracepoint_from_upload): Remove reference to base field.
11775 (trace_pass_set_count): Likewise.
11776 (initialize_breakpoint_ops): Don't initialize
11777 momentary_breakpoint_ops, don't set dtors.
11778 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
11779 <~ada_catchpoint>: New.
11780 <base>: Remove.
11781 (create_excep_cond_exprs): Remove reference to base field.
11782 (dtor_exception): Change to ...
11783 (ada_catchpoint::~ada_catchpoint): ... this.
11784 (dtor_catch_exception): Remove.
11785 (dtor_catch_exception_unhandled): Remove.
11786 (dtor_catch_assert): Remove.
11787 (create_ada_exception_catchpoint): Remove reference to base
11788 field.
11789 (initialize_ada_catchpoint_ops): Don't set dtors.
11790 * break-catch-sig.c (struct signal_catchpoint): Inherit from
11791 breakpoint.
11792 <~signal_catchpoint>: New.
11793 <base>: Remove.
11794 (signal_catchpoint_dtor): Change to ...
11795 (signal_catchpoint::~signal_catchpoint): ... this.
11796 (create_signal_catchpoint): Remove reference to base field.
11797 (initialize_signal_catchpoint_ops): Don't set dtor.
11798 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
11799 from breakpoint.
11800 <~syscall_catchpoint>: New.
11801 <base>: Remove.
11802 (dtor_catch_syscall): Change to ...
11803 (syscall_catchpoint::~syscall_catchpoint): ... this.
11804 (create_syscall_event_catchpoint): Remove reference to base
11805 field.
11806 (initialize_syscall_catchpoint_ops): Don't set dtor.
11807 * break-catch-throw.c (struct exception_catchpoint): Inherit
11808 from breakpoint.
11809 <~exception_catchpoint>: New.
11810 <base>: Remove.
11811 (dtor_exception_catchpoint): Change to ...
11812 (exception_catchpoint::~exception_catchpoint): ... this.
11813 (handle_gnu_v3_exceptions): Remove reference to base field.
11814 (initialize_throw_catchpoint_ops): Don't set dtor.
11815 * ctf.c (ctf_get_traceframe_address): Remove reference to base
11816 field.
11817 * remote.c (remote_get_tracepoint_status): Likewise.
11818 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
11819 * tracefile.c (tracefile_fetch_registers): Likewise.
11820 * tracepoint.c (actions_command): Likewise.
11821 (validate_actionline): Likewise.
11822 (tfind_1): Likewise.
11823 (get_traceframe_location): Likewise.
11824 (find_matching_tracepoint_location): Likewise.
11825 (parse_tracepoint_status): Likewise.
11826 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
11827
11828 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11829
11830 * breakpoint.c (struct longjmp_breakpoint): New struct.
11831 (is_tracepoint_type): Change return type to bool.
11832 (is_longjmp_type): New function.
11833 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
11834 (set_raw_breakpoint_without_location): Use
11835 new_breakpoint_from_type.
11836 (set_raw_breakpoint): Likewise.
11837
11838 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
11839
11840 * breakpoint.c (new_breakpoint_from_type): New function.
11841 (create_breakpoint_sal): Use new_breakpoint_from_type and
11842 unique_ptr.
11843 (create_breakpoint): Likewise.
11844
11845 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
11846
11847 * memattr.c (mem_info_command): Rename to ...
11848 (info_mem_command): ... this.
11849 (mem_enable_command): Rename to ...
11850 (enable_mem_command): ... this.
11851 (mem_disable_command): Rename to ...
11852 (disable_mem_command): ... this.
11853 (mem_delete_command): Rename to ...
11854 (delete_mem_command): ... this.
11855 (_initialize_mem): Adjust function names.
11856
11857 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11858
11859 * btrace.c (handle_pt_insn_events): New.
11860 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
11861 STATUS. Split into this and ...
11862 (handle_pt_insn_event_flags): ... this.
11863
11864 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
11865
11866 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
11867 and struct pt_insn.resynced.
11868 * configure: Regenerated.
11869 * config.in: Regenerated.
11870
11871 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11872
11873 * btrace.c (ftrace_find_call_by_number): New function.
11874 (ftrace_new_function): Store objects, not pointers.
11875 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
11876 ftrace_new_gap, ftrace_update_function,
11877 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
11878 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
11879 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
11880 btrace_ends_with_single_insn, btrace_call_get): Account for
11881 btrace_thread_info::functions now storing objects.
11882 * btrace.h (struct btrace_thread_info): Add constructor.
11883 (struct btrace_thread_info) <functions>: Make std::vector.
11884 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
11885 Initialize with default values.
11886 * record-btrace.c (record_btrace_frame_sniffer): Account for
11887 btrace_thread_info::functions now storing objects.
11888
11889 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11890
11891 * btrace.c: Remove typedef bfun_s.
11892 (ftrace_new_gap): Directly add gaps to the list of gaps.
11893 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
11894 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
11895 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
11896 instead of gdb VEC.
11897
11898 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11899
11900 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
11901 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
11902 with btrace_thread_info::next_segment and
11903 btrace_thread_info::prev_segment.
11904 * btrace.h: Remove struct btrace_func_link.
11905 (struct btrace_function): Replace pair of function segment pointers
11906 with pair of indices.
11907 * python/py-record-btrace.c (btpy_call_prev_sibling,
11908 btpy_call_next_sibling): Replace references to
11909 btrace_thread_info::segment with btrace_thread_info::next_segment and
11910 btrace_thread_info::prev_segment.
11911 * record-btrace.c (record_btrace_frame_this_id): Use
11912 btrace_find_call_by_number.
11913
11914 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11915
11916 * btrace.c (ftrace_new_function, ftrace_fixup_level,
11917 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
11918 btrace_insn_next, btrace_insn_prev): Remove references to
11919 btrace_thread_info::flow.
11920 * btrace.h (struct btrace_function): Remove FLOW.
11921
11922 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11923
11924 * btrace.c (ftrace_find_call_by_number): New function.
11925 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
11926 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
11927 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
11928 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
11929 index.
11930 * btrace.h (struct btrace_function): Turn UP into an index.
11931 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
11932 as an index.
11933 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
11934 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
11935 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
11936
11937 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11938
11939 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11940 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11941 ftrace_update_function, ftrace_compute_global_level_offset,
11942 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
11943 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
11944 btrace_insn_end, btrace_is_empty): Remove references to
11945 btrace_thread_info::begin and btrace_thread_info::end.
11946 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
11947 (struct btrace_thread_info) <functions>: Adjust comment.
11948 * record-btrace.c (record_btrace_start_replaying): Remove reference to
11949 btrace_thread_info::begin.
11950
11951 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11952
11953 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
11954 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
11955 ftrace_update_function): Remove arguments that implicitly were always
11956 BTINFO->END.
11957 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
11958 Don't pass BTINFO->END.
11959
11960 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11961
11962 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
11963 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
11964 btrace_find_insn_by_number): Replace function segment pointer with
11965 index.
11966 (btrace_insn_cmp): Simplify.
11967 * btrace.h: (struct btrace_insn_iterator) Rename index to
11968 insn_index. Replace function segment pointer with index into function
11969 segment vector.
11970 * record-btrace.c (record_btrace_call_history): Replace function
11971 segment pointer use with index.
11972 (record_btrace_frame_sniffer): Retrieve function call segment through
11973 vector.
11974 (record_btrace_set_replay): Remove defunc't safety check.
11975
11976 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11977
11978 * btrace.c (btrace_ends_with_single_insn): New function.
11979 (btrace_call_get, btrace_call_number, btrace_call_begin,
11980 btrace_call_end, btrace_call_next, btrace_call_prev,
11981 btrace_find_call_by_number): Use index into call segment vector
11982 instead of pointer.
11983 (btrace_call_cmp): Simplify.
11984 * btrace.h (struct btrace_call_iterator): Replace function call segment
11985 pointer with index into vector.
11986 * record-btrace.c (record_btrace_call_history): Use index instead of
11987 pointer.
11988
11989 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11990
11991 * btrace.c (btrace_insn_begin, btrace_insn_end,
11992 btrace_find_insn_by_number): Add btinfo to iterator.
11993 * btrace.h (struct btrace_insn_iterator): Add btinfo.
11994
11995 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
11996
11997 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
11998 and save pointers directly.
11999 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
12000 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
12001 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
12002 changed signature of functions.
12003 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
12004 (btrace_fetch): Remove code that adds btrace_function pointers to
12005 vector of btrace_functions.
12006 (btrace_clear): Simplify freeing vector of btrace_functions.
12007
12008 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
12009
12010 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
12011 Replace VEC_* with std::vector functions.
12012 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
12013 (struct btrace_thread_info)<functions>: Change type to std::vector.
12014
12015 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
12016
12017 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
12018 "Removed targets and native configurations" up. Merge duplicate
12019 "New commands" sub-sections. Add "New options" sub-sections.
12020
12021 2017-05-26 Alan Hayward <alan.hayward@arm.com>
12022
12023 * defs.h (copy_integer_to_size): New declaration.
12024 * findvar.c (copy_integer_to_size): New function.
12025 (do_cint_test): New selftest function.
12026 (copy_integer_to_size_test): Likewise.
12027 (_initialize_findvar): Likewise.
12028 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
12029 (mips_fbsd_collect_reg): Use raw_collect_integer.
12030 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
12031 (mips64_fill_gregset): Use raw_collect_integer
12032 (mips64_fill_fpregset): Use raw_supply_integer.
12033 * regcache.c (regcache::raw_supply_integer): New function.
12034 (regcache::raw_collect_integer): Likewise.
12035 * regcache.h: (regcache::raw_supply_integer): New declaration.
12036 (regcache::raw_collect_integer): Likewise.
12037
12038 2017-05-24 Yao Qi <yao.qi@linaro.org>
12039
12040 * Makefile.in (SFILES): Add gdbarch-selftests.c.
12041 (COMMON_OBS): Add gdbarch-selftests.o.
12042 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
12043 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
12044 * gdbarch-selftests.c: New file.
12045 * regcache.h (regcache) <~regcache>: Mark it virtual if
12046 GDB_SELF_TEST.
12047 <raw_write>: Likewise.
12048
12049 2017-05-24 Yao Qi <yao.qi@linaro.org>
12050
12051 * regcache.c (current_regcache): Change it to
12052 regcache::current_regcache.
12053 (regcache_observer_target_changed): Update.
12054 (regcache_thread_ptid_changed): Make it a regcache static
12055 method.
12056 (regcache_thread_ptid_changed): Update.
12057 (class regcache_access): New.
12058 (current_regcache_test): Update.
12059 (_initialize_regcache): Update.
12060 * regcache.h: Include forward_list.
12061 (regcache): Declare regcache_thread_ptid_changed and declare
12062 registers_changed_ptid as friend.
12063
12064 2017-05-24 Yao Qi <yao.qi@linaro.org>
12065
12066 * i387-tdep.c (i387_register_to_value): Use register_size
12067 instead of TYPE_LENGTH.
12068 * m68k-tdep.c (m68k_register_to_value): Likewise.
12069
12070 2017-05-24 Yao Qi <yao.qi@linaro.org>
12071
12072 * i387-tdep.c (i387_convert_register_p): Return false if type
12073 code isn't TYPE_CODE_FLT.
12074
12075 2017-05-24 Yao Qi <yao.qi@linaro.org>
12076
12077 * alpha-tdep.c (alpha_convert_register_p): Return true if type
12078 length is 4.
12079 (alpha_register_to_value): Remove type length check.
12080 (alpha_value_to_register): Likewise.
12081
12082 2017-05-24 Yao Qi <yao.qi@linaro.org>
12083
12084 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
12085 TYPE_CODE_FLT.
12086
12087 2017-05-24 Yao Qi <yao.qi@linaro.org>
12088
12089 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
12090 TYPE_CODE_FLT or not.
12091
12092 2017-05-24 Yao Qi <yao.qi@linaro.org>
12093
12094 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
12095 * avr-tdep.c (avr_gdbarch_init): Likewise.
12096 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12097 * cris-tdep.c (cris_gdbarch_init): Likewise.
12098 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12099 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12100 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12102 * mep-tdep.c (mep_gdbarch_init): Likewise.
12103 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12104 * mips-tdep.c (mips_gdbarch_init): Likewise.
12105 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12106 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12107 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12108 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12109 * v850-tdep.c (v850_gdbarch_init): Likewise.
12110
12111 2017-05-24 Yao Qi <yao.qi@linaro.org>
12112
12113 * selftest-arch.c (tests_with_arch): Call registers_changed
12114 and reinit_frame_cache.
12115 * selftest.c (run_self_tests): Likewise.
12116
12117 2017-05-24 Yao Qi <yao.qi@linaro.org>
12118
12119 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
12120 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
12121
12122 2017-05-24 Yao Qi <yao.qi@linaro.org>
12123
12124 * rl78-tdep.c (rl78_gdbarch_init): Don't call
12125 set_gdbarch_print_insn.
12126
12127 2017-05-24 Yao Qi <yao.qi@linaro.org>
12128
12129 * h8300-tdep.c (h8300_gdbarch_init): Don't call
12130 set_gdbarch_print_insn.
12131
12132 2017-05-24 Yao Qi <yao.qi@linaro.org>
12133
12134 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12135 set_gdbarch_print_insn.
12136 * arc-tdep.c (arc_gdbarch_init): Likewise.
12137 * arch-utils.c: include dis-asm.h.
12138 (default_print_insn): New function.
12139 * arch-utils.h (default_print_insn): Declare.
12140 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
12141 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12142 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
12143 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
12144 * frv-tdep.c (frv_gdbarch_init): Likewise.
12145 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
12146 * gdbarch.sh (print_insn): Use default_print_insn.
12147 * gdbarch.c: Regenerated.
12148 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12149 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
12150 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12151 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
12152 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12153 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
12154 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
12155 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12156 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
12157 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12158 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12159 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12160 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
12161 * mt-tdep.c (mt_gdbarch_init): Likewise.
12162 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
12163 * nios2-tdep.c (nios2_print_insn): Remove.
12164 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
12165 * rx-tdep.c (rx_gdbarch_init): Likewise.
12166 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12167 * score-tdep.c (score_print_insn): Remove.
12168 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
12169 * sh-tdep.c (sh_gdbarch_init): Likewise.
12170 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12171 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12172 * tic6x-tdep.c (tic6x_print_insn): Remove.
12173 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
12174 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
12175 * v850-tdep.c (v850_gdbarch_init): Likewise.
12176 * vax-tdep.c (vax_gdbarch_init): Likewise.
12177 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12178 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
12179
12180 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12181
12182 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
12183 (MIPS_FP0_REGNUM): Remove.
12184 (MIPS_FSR_REGNUM): Remove.
12185 (mips_fbsd_supply_fpregs): Use mips_regnum.
12186 (mips_fbsd_supply_gregs): Likewise.
12187 (mips_fbsd_collect_fpregs): Likewise.
12188 (mips_fbsd_collect_gregs): Likewise.
12189
12190 2017-05-23 John Baldwin <jhb@FreeBSD.org>
12191
12192 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
12193 (getpfpregs_supplies): New function.
12194 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
12195 getfpregs_supplies.
12196 (mips_fbsd_store_inferior_registers): Likewise.
12197
12198 2017-05-22 Pedro Alves <palves@redhat.com>
12199
12200 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
12201 maintainer.
12202
12203 2017-05-22 Alan Hayward <alan.hayward@arm.com>
12204
12205 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
12206 (store_register): Likewise.
12207 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
12208 (get_decimal_float_return_value): Likewise.
12209 (do_ppc_sysv_return_value): Likewise.
12210 (ppc64_sysv_abi_push_integer): Likewise.
12211 (ppc64_sysv_abi_push_freg): Likewise.
12212 (ppc64_sysv_abi_return_value_base): Likewise.
12213 (ppc64_sysv_abi_return_value): Likewise.
12214 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
12215 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
12216 * rs6000-nat.c: Likewise.
12217 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
12218 (rs6000_value_to_register): Likewise.
12219 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
12220
12221 2017-05-21 Tom Tromey <tom@tromey.com>
12222
12223 PR rust/21466:
12224 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
12225 arrays as "[T]", not "[T; ]".
12226
12227 2017-05-19 Tom Tromey <tom@tromey.com>
12228
12229 PR rust/21484:
12230 * rust-lang.c (exp_descriptor_rust): New function.
12231 (rust_language_defn): Use it.
12232 * p-lang.c (pascal_language_defn): Update.
12233 * opencl-lang.c (opencl_language_defn): Update.
12234 * objc-lang.c (objc_language_defn): Update.
12235 * m2-lang.c (m2_language_defn): Update.
12236 * language.h (struct language_defn)
12237 <la_watch_location_expression>: New member.
12238 * language.c (unknown_language_defn, auto_language_defn)
12239 (local_language_defn): Update.
12240 * go-lang.c (go_language_defn): Update.
12241 * f-lang.c (f_language_defn): Update.
12242 * d-lang.c (d_language_defn): Update.
12243 * c-lang.h (c_watch_location_expression): Declare.
12244 * c-lang.c (c_watch_location_expression): New function.
12245 (c_language_defn, cplus_language_defn, asm_language_defn)
12246 (minimal_language_defn): Use it.
12247 * breakpoint.c (watch_command_1): Call
12248 la_watch_location_expression.
12249 * ada-lang.c (ada_language_defn): Update.
12250
12251 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12252
12253 PR tui/21482
12254 * gdb_curses.h (NOMACROS): Define.
12255 (NCURSES_NOMACROS): Define.
12256
12257 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12258
12259 PR tui/21482
12260 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
12261 arg to char *.
12262 * tui/tui-wingeneral.c (box_win): Likewise.
12263 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
12264 (tui_show_source_line): Likewise.
12265 (tui_show_exec_info_content): Likewise.
12266
12267 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
12268
12269 * sparc-tdep.c (sparc_structure_return_p)
12270 (sparc_arg_on_registers_p): New functions.
12271 (sparc32_store_arguments): Use them.
12272 * sparc64-tdep.c (sparc64_16_byte_align_p)
12273 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
12274 Handle TYPE_CODE_ARRAY.
12275
12276 2017-05-17 Yao Qi <yao.qi@linaro.org>
12277
12278 * cli/cli-decode.c (add_alias_cmd): New function.
12279 * command.h (add_alias_cmd): Declare.
12280 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
12281 instead call add_alias_cmd.
12282
12283 2017-05-17 Pedro Alves <palves@redhat.com>
12284
12285 * Makefile.in (nat_extra_makefile_frag): Rename to ...
12286 (nat_makefile_frag): ... this. All references updated.
12287 * configure.ac: Likewise.
12288 * configure.nat: Likewise. Enhance comments.
12289 * configure: Regenerate.
12290
12291 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12292
12293 * procfs.c (procfs_create_inferior): Change prototype to match
12294 definition.
12295
12296 2017-05-13 Eli Zaretskii <eliz@gnu.org>
12297
12298 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
12299 C++ compiler warning.
12300
12301 2017-05-12 Tom Tromey <tom@tromey.com>
12302
12303 PR rust/21483:
12304 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
12305 recurse, just call value_struct_elt directly.
12306
12307 2017-05-12 Tom Tromey <tom@tromey.com>
12308
12309 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
12310 OP_RUST_ARRAY>: Fix.
12311
12312 2017-05-12 Tom Tromey <tom@tromey.com>
12313
12314 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
12315
12316 2017-05-09 Yao Qi <yao.qi@linaro.org>
12317
12318 * regcache.c: Include <forward_list>.
12319 (struct regcache_list): Remove.
12320 (current_regcache): Update.
12321 (get_thread_arch_aspace_regcache): Update for std::forward_list.
12322 (regcache_thread_ptid_changed): Likewise.
12323 (registers_changed_ptid): Likewise.
12324 (current_regcache_size): Likewise.
12325
12326 2017-05-09 Yao Qi <yao.qi@linaro.org>
12327
12328 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
12329 (current_regcache_size): New function.
12330 (current_regcache_test): New function.
12331 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
12332
12333 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12334
12335 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
12336 (print_gp_register_row): Use get_frame_register_value.
12337
12338 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12339
12340 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
12341 (mips_supply_fpregset): Likewise.
12342 (mips64_supply_gregset): Likewise.
12343
12344 2017-05-08 Alan Hayward <alan.hayward@arm.com>
12345
12346 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
12347 regcache->raw_supply_zeroed.
12348
12349 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12350
12351 * configure.nat: Rearrange 'case' statements to match
12352 host before cpu.
12353
12354 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
12355
12356 * Makefile.in: Remove "@host_makefile_frag@". Add variables
12357 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
12358 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
12359 "@nat_extra_makefile_frag@".
12360 (Makefile): Remove dependency on "@frags@".
12361 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
12362 (data-directory/Makefile): Likewise.
12363 * config/aarch64/linux.mh: Deleted; moved contents to
12364 "gdb/configure.nat".
12365 * config/alpha/alpha-linux.mh: Likewise.
12366 * config/alpha/nbsd.mh: Likewise.
12367 * config/arm/linux.mh: Likewise.
12368 * config/arm/nbsdelf.mh: Likewise.
12369 * config/i386/cygwin.mh: Likewise.
12370 * config/i386/cygwin64.mh: Likewise.
12371 * config/i386/darwin.mh: Likewise.
12372 * config/i386/fbsd.mh: Likewise.
12373 * config/i386/fbsd64.mh: Likewise.
12374 * config/i386/go32.mh: Likewise.
12375 * config/i386/i386gnu.mh: Likewise.
12376 * config/i386/i386sol2.mh: Likewise.
12377 * config/i386/linux.mh: Likewise.
12378 * config/i386/linux64.mh: Likewise.
12379 * config/i386/mingw.mh: Likewise.
12380 * config/i386/mingw64.mh: Likewise.
12381 * config/i386/nbsd64.mh: Likewise.
12382 * config/i386/nbsdelf.mh: Likewise.
12383 * config/i386/nto.mh: Likewise.
12384 * config/i386/obsd.mh: Likewise.
12385 * config/i386/obsd64.mh: Likewise.
12386 * config/i386/sol2-64.mh: Likewise.
12387 * config/ia64/linux.mh: Likewise.
12388 * config/m32r/linux.mh: Likewise.
12389 * config/m68k/linux.mh: Likewise.
12390 * config/m68k/nbsdelf.mh: Likewise.
12391 * config/m68k/obsd.mh: Likewise.
12392 * config/m88k/obsd.mh: Likewise.
12393 * config/mips/fbsd.mh: Likewise.
12394 * config/mips/linux.mh: Likewise.
12395 * config/mips/nbsd.mh: Likewise.
12396 * config/mips/obsd64.mh: Likewise.
12397 * config/pa/linux.mh: Likewise.
12398 * config/pa/nbsd.mh: Likewise.
12399 * config/pa/obsd.mh: Likewise.
12400 * config/powerpc/aix.mh: Likewise.
12401 * config/powerpc/fbsd.mh: Likewise.
12402 * config/powerpc/linux.mh: Likewise.
12403 * config/powerpc/nbsd.mh: Likewise.
12404 * config/powerpc/obsd.mh: Likewise.
12405 * config/powerpc/ppc64-linux.mh: Likewise.
12406 * config/powerpc/spu-linux.mh: Likewise.
12407 * config/s390/linux.mh: Likewise.
12408 * config/sh/nbsd.mh: Likewise.
12409 * config/sparc/fbsd.mh: Likewise.
12410 * config/sparc/linux.mh: Likewise.
12411 * config/sparc/linux64.mh: Likewise.
12412 * config/sparc/nbsd64.mh: Likewise.
12413 * config/sparc/nbsdelf.mh: Likewise.
12414 * config/sparc/obsd64.mh: Likewise.
12415 * config/sparc/sol2.mh: Likewise.
12416 * config/tilegx/linux.mh: Likewise.
12417 * config/vax/nbsdelf.mh: Likewise.
12418 * config/vax/obsd.mh: Likewise.
12419 * config/xtensa/linux.mh: Likewise.
12420 * config/i386/i386gnu.mn: New file, with excerpts from
12421 "config/i386/i386gnu.mh".
12422 * configure: Regenerate.
12423 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
12424 *.mh files under "gdb/config".
12425 * configure.nat: New file, with contents from the
12426 "gdb/config/*/*.mh" files.
12427
12428 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
12429
12430 * btrace.c (btrace_clear): Free insn vector.
12431
12432 2017-05-05 Pedro Alves <palves@redhat.com>
12433
12434 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
12435 * configure: Regenerate.
12436
12437 2017-05-04 Pedro Alves <palves@redhat.com>
12438
12439 * Makefile.in (SFILES): Add progspace-and-thread.c.
12440 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
12441 (COMMON_OBS): Add progspace-and-thread.o.
12442 * breakpoint.c: Include "progspace-and-thread.h".
12443 (update_inserted_breakpoint_locations)
12444 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
12445 Use scoped_restore_current_pspace_and_thread.
12446 (create_std_terminate_master_breakpoint): Use
12447 scoped_restore_current_program_space.
12448 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
12449 (print_breakpoint_location): Use
12450 scoped_restore_current_program_space.
12451 (bp_loc_is_permanent): Use
12452 scoped_restore_current_pspace_and_thread.
12453 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
12454 (download_tracepoint_locations): Use
12455 scoped_restore_current_pspace_and_thread.
12456 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
12457 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
12458 (enum step_over_calls_kind): Moved from inferior.h.
12459 (class scoped_restore_current_thread): New class.
12460 * gdbthread.h (make_cleanup_restore_current_thread): Delete
12461 declaration.
12462 (scoped_restore_current_thread): New class.
12463 * infcmd.c: Include "common/gdb_optional.h".
12464 (continue_1, proceed_after_attach): Use
12465 scoped_restore_current_thread.
12466 (notice_new_inferior): Use scoped_restore_current_thread.
12467 * inferior.c: Include "progspace-and-thread.h".
12468 (restore_inferior, save_current_inferior): Delete.
12469 (add_inferior_command, clone_inferior_command): Use
12470 scoped_restore_current_pspace_and_thread.
12471 * inferior.h (scoped_restore_current_inferior): New class.
12472 * infrun.c: Include "progspace-and-thread.h" and
12473 "common/gdb_optional.h".
12474 (follow_fork_inferior): Use
12475 scoped_restore_current_pspace_and_thread.
12476 (scoped_restore_exited_inferior): New class.
12477 (handle_vfork_child_exec_or_exit): Use
12478 scoped_restore_exited_inferior,
12479 scoped_restore_current_pspace_and_thread,
12480 scoped_restore_current_thread and scoped_restore.
12481 (fetch_inferior_event): Use scoped_restore_current_thread.
12482 * linespec.c (decode_line_full, decode_line_1): Use
12483 scoped_restore_current_program_space.
12484 * mi/mi-main.c: Include "progspace-and-thread.h".
12485 (exec_continue): Use scoped_restore_current_thread.
12486 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
12487 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
12488 * proc-service.c (ps_pglobal_lookup): Use
12489 scoped_restore_current_program_space.
12490 * progspace-and-thread.c: New file.
12491 * progspace-and-thread.h: New file.
12492 * progspace.c (release_program_space, clone_program_space): Use
12493 scoped_restore_current_program_space.
12494 (restore_program_space, save_current_program_space)
12495 (save_current_space_and_thread): Delete.
12496 (switch_to_program_space_and_thread): Moved to
12497 progspace-and-thread.c.
12498 * progspace.h (save_current_program_space)
12499 (save_current_space_and_thread): Delete declarations.
12500 (scoped_restore_current_program_space): New class.
12501 * remote.c (remote_btrace_maybe_reopen): Use
12502 scoped_restore_current_thread.
12503 * symtab.c: Include "progspace-and-thread.h".
12504 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
12505 * thread.c (print_thread_info_1): Use
12506 scoped_restore_current_thread.
12507 (struct current_thread_cleanup): Delete.
12508 (do_restore_current_thread_cleanup)
12509 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
12510 (scoped_restore_current_thread::~scoped_restore_current_thread):
12511 ... this new dtor.
12512 (make_cleanup_restore_current_thread): Rename/convert to ...
12513 (scoped_restore_current_thread::scoped_restore_current_thread):
12514 ... this new ctor.
12515 (thread_apply_all_command): Use scoped_restore_current_thread.
12516 (thread_apply_command): Use scoped_restore_current_thread.
12517 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
12518 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
12519
12520 2017-05-04 Pedro Alves <palves@redhat.com>
12521
12522 * thread.c (make_cleanup_restore_current_thread): Move
12523 find_thread_ptid call before the is_stopped call. Assert that the
12524 thread is found. Replace is_stopped call by checking the thread's
12525 state directly. Remove unnecessary NULL-thread check.
12526
12527 2017-05-04 Pedro Alves <palves@redhat.com>
12528
12529 * corelow.c (thread_section_name): New class.
12530 (get_core_register_section, get_core_siginfo): Use it.
12531
12532 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12533
12534 * corelow.c (sniff_core_bfd): Remove extra semicolon.
12535 (get_core_register_section): Remove xfree of NULL pointer.
12536
12537 2017-05-03 Alan Hayward <alan.hayward@arm.com>
12538
12539 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
12540 * regcache.c (regcache::raw_supply_zeroed): New function.
12541 * regcache.h (regcache::raw_supply_zeroed): New declaration.
12542
12543 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
12544
12545 * gdbarch.sh: Remove commented out definition of
12546 TARGET_CHAR_BIT.
12547 * gdbarch.h: Re-generate.
12548
12549 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
12550
12551 * configure: Regenerate.
12552
12553 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
12554
12555 * solib-target.c (solib_target_relocate_section_addresses):
12556 Remove num_section_bases, num_bases, segment_bases variables.
12557
12558 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12559
12560 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
12561
12562 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12563
12564 * solib-target.c: Include <vector>
12565 (struct lm_info_target) <~lm_info_target>: Remove.
12566 <segment_bases, section_bases>: Change type to
12567 std::vector<CORE_ADDR>.
12568 (library_list_start_segment, library_list_start_section,
12569 library_list_end_library,
12570 solib_target_relocate_section_addresses): Adjust.
12571
12572 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12573
12574 * gdbarch.sh (software_single_step): Change return type to
12575 std::vector<CORE_ADDR>.
12576 * gdbarch.c, gdbarch.h: Re-generate.
12577 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
12578 Adjust.
12579 (arm_deal_with_atomic_sequence_raw): Adjust.
12580 (thumb_get_next_pcs_raw): Adjust.
12581 (arm_get_next_pcs_raw): Adjust.
12582 (arm_get_next_pcs): Adjust.
12583 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
12584 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
12585 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
12586 (alpha_software_single_step): Adjust.
12587 * alpha-tdep.h (alpha_software_single_step): Adjust.
12588 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
12589 * arm-tdep.c (arm_software_single_step): Adjust.
12590 (arm_breakpoint_kind_from_current_state): Adjust.
12591 * arm-tdep.h (arm_software_single_step): Adjust.
12592 * breakpoint.c (insert_single_step_breakpoint): Adjust.
12593 * cris-tdep.c (cris_software_single_step): Adjust.
12594 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
12595 (micromips_deal_with_atomic_sequence): Adjust.
12596 (deal_with_atomic_sequence): Adjust.
12597 (mips_software_single_step): Adjust.
12598 * mips-tdep.h (mips_software_single_step): Adjust.
12599 * moxie-tdep.c (moxie_software_single_step): Adjust.
12600 * nios2-tdep.c (nios2_software_single_step): Adjust.
12601 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
12602 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
12603 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
12604 * s390-linux-tdep.c (s390_software_single_step): Adjust.
12605 * sparc-tdep.c (sparc_software_single_step): Adjust.
12606 * spu-tdep.c (spu_software_single_step): Adjust.
12607 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
12608
12609 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
12610
12611 * gdbarch.sh: Use semi-colon as field separator instead of colon.
12612 * gdbarch.h: Re-generate.
12613
12614 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12615
12616 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
12617 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
12618 * python/py-instruction.c, python/py-instruction.h: New file.
12619 * python/py-record.c: Add py-instruction.h include.
12620 (gdbpy_initialize_record): Make gdb.Instruction a super class of
12621 gdb.RecordInstruction.
12622 * python/python-internal.h: Add gdbpy_initialize_instruction
12623 declaration.
12624 * python/python.c (do_start_initialization): Add
12625 gdbpy_initialize_instruction.
12626
12627 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12628
12629 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
12630 Remove.
12631 (btrace_func_from_recpy_func): New function.
12632 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
12633 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
12634 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
12635 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
12636 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
12637 Also, use new helper functions.
12638 (btpy_list_item): Use new helper functions.
12639 (recpy_bt_function_call_history): Use new type name.
12640 (btpy_call_getset): Remove.
12641 (gdbpy_initialize_btrace): Remove code to initialize
12642 gdb.BtraceFunctionCall.
12643 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
12644 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
12645 recpy_bt_func_prev, recpy_bt_func_next): New export.
12646 * python/py-record.c (recpy_func_type): New static object.
12647 (recpy_func_new, recpy_func_level, recpy_func_symbol,
12648 recpy_func_instructions, recpy_func_up, recpy_func_prev,
12649 recpy_func_next): New function.
12650 (recpy_element_hash, recpy_element_richcompare): Updated comment.
12651 (recpy_func_getset): New static object.
12652 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
12653 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
12654
12655 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12656
12657 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
12658 (btpy_object, btpy_insn_type, btpy_new): Remove.
12659 (btpy_list_object): Use gdb.RecordInstruction type instead of
12660 gdb.BtraceInstruction type.
12661 (btrace_insn_from_recpy_insn): New function.
12662 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
12663 btpy_new.
12664 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
12665 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
12666 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
12667 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
12668 instead of btpy_object.
12669 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12670 btpy_insn_data, btpy_insn_decode): Rename to ...
12671 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
12672 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
12673 recpy_bt_insn_decode): This. Also, use new helper functions.
12674 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
12675 recpy_insn_type.
12676 (btpy_insn_getset): Remove.
12677 (gdbpy_initialize_btrace): Remove code to initialize
12678 gdb.BtraceInstruction. Use recpy_element_object.
12679 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
12680 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
12681 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
12682 * python/py-record.c (recpy_insn_type): New static object.
12683 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
12684 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
12685 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
12686 New function.
12687 (recpy_insn_getset): New static object.
12688 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
12689 * python/py-record.h (recpy_element_object): New typedef.
12690 (recpy_insn_type, recpy_insn_new): New export.
12691
12692 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12693
12694 * py-record-btrace.c (btpy_insn_new): Removed.
12695 (btpy_insn_or_gap_new): New function.
12696 (btpy_insn_error): Removed.
12697 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
12698 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
12699 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
12700 btpy_insn_or_gap_new instead of btpy_insn_new.
12701 (btpy_insn_getset): Remove btpy_insn_error.
12702 * py-record.c (recpy_gap_type): New static object.
12703 (recpy_gap_object): New typedef.
12704 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
12705 recpy_gap_reason_string): New function.
12706 (recpy_gap_getset): New static object.
12707 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
12708 * py-record.h (recpy_gap_new): New export.
12709
12710 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12711
12712 * python/py-record.c (recpy_ptid): Remove.
12713 (recpy_record_getset): Remove recpy_ptid.
12714
12715 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12716
12717 * btrace.c (btrace_fetch): Set inferior_ptid.
12718 * python/py-record-btrace.c: Add "py-record.h" include.
12719 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
12720 recpy_bt_end, recpy_bt_instruction_history,
12721 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
12722 in gdb.Record object instead of current ptid.
12723 * python/py-record.c: Include new "py-record.h" file.
12724 (recpy_record_object): Moved to py-record.h.
12725 * python/py-record.h: New file.
12726
12727 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
12728
12729 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
12730 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
12731 indentation.
12732
12733 2017-05-01 Joel Brobecker <brobecker@adacore.com>
12734
12735 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
12736 the past maintainers section.
12737
12738 2017-04-28 Yao Qi <yao.qi@linaro.org>
12739
12740 * infcmd.c (get_return_value): Use regcache ctor, and remove
12741 cleanup.
12742
12743 2017-04-28 Yao Qi <yao.qi@linaro.org>
12744 Pedro Alves <palves@redhat.com>
12745
12746 * regcache.c (regcache::regcache): New tag dispatch ctor.
12747 (do_cooked_read): Moved above.
12748 (regcache_dup): Use the tag dispatch ctor..
12749 * regcache.h (regcache): Declare ctor, delete copy ctor and
12750 assignment operator, remove friend regcache_dup.
12751
12752 2017-04-28 Yao Qi <yao.qi@linaro.org>
12753
12754 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
12755 call method save instead of regcache_cpy.
12756 * regcache.h (struct regcache): Make regcache_dup a friend.
12757
12758 2017-04-28 Yao Qi <yao.qi@linaro.org>
12759
12760 * regcache.c (struct regcache): Move to regcache.h
12761 (regcache::arch): New method.
12762 (regcache_get_ptid): Update.
12763 (get_regcache_arch): Call arch method.
12764 (get_regcache_aspace): Call method aspace.
12765 (register_buffer): Change it to method.
12766 (regcache_save): Change it to regcache::save.
12767 (regcache_restore): Likewise.
12768 (regcache_cpy_no_passthrough): Remove the declaration.
12769 (regcache_cpy): Call methods restore and cpy_no_passthrough.
12770 (regcache_cpy_no_passthrough): Change it to method
12771 cpy_no_passthrough.
12772 (regcache_register_status): Change it to method
12773 get_register_status.
12774 (regcache_invalidate): Change it to method invalidate.
12775 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
12776 (regcache_raw_update): Change it to method raw_update.
12777 (regcache_raw_read): Likewise.
12778 (regcache_raw_read_signed): Likewise.
12779 (regcache_raw_read_unsigned): Likewise.
12780 (regcache_raw_write_signed): Likewise.
12781 (regcache_raw_write_unsigned): Likewise.
12782 (regcache_cooked_read): Likewise.
12783 (regcache_cooked_read_value): Likewise.
12784 (regcache_cooked_read_signed): Likewise.
12785 (regcache_cooked_read_unsigned): Likewise.
12786 (regcache_cooked_write_signed): Likewise.
12787 (regcache_cooked_write_unsigned): Likewise.
12788 (regcache_raw_set_cached_value): Likewise.
12789 (regcache_raw_write): Likewise.
12790 (regcache_cooked_write): Likewise.
12791 (regcache_xfer_part): Likewise.
12792 (regcache_raw_read_part): Likewise.
12793 (regcache_raw_write_part): Likewise.
12794 (regcache_cooked_read_part): Likewise.
12795 (regcache_cooked_write_part): Likewise.
12796 (regcache_raw_supply): Likewise.
12797 (regcache_raw_collect): Likewise.
12798 (regcache_transfer_regset): Likewise.
12799 (regcache_supply_regset): Likewise.
12800 (regcache_collect_regset): Likewise.
12801 (regcache_debug_print_register): Likewise.
12802 (enum regcache_dump_what): Move it to regcache.h.
12803 (regcache_dump): Change it to method dump.
12804 * regcache.h (enum regcache_dump_what): New.
12805 (class regcache): New.
12806 * target.c (target_fetch_registers): Call method
12807 debug_print_register.
12808 (target_store_registers): Likewise.
12809
12810 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12811
12812 * windows-nat.c (struct lm_info_windows): Initialize field.
12813 (windows_make_so): Allocate lm_info_windows with new.
12814 (windows_free_so): Free lm_info_windows with delete.
12815
12816 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12817
12818 * solib-darwin.c (struct lm_info_darwin): Initialize field.
12819 (darwin_current_sos): Allocate lm_info_darwin with new, remove
12820 cleanup.
12821 (darwin_free_so): Free lm_info_darwin with delete.
12822
12823 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12824
12825 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
12826 <l_addr_p>: Change type to bool.
12827 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
12828 (svr4_free_so): Free lm_info_svr4 with delete.
12829 (svr4_copy_library_list): Replace memcpy with call to copy
12830 constructor.
12831 (library_list_start_library, svr4_default_sos): Allocate
12832 lm_info_svr4 with new.
12833
12834 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12835
12836 * solib-target.c (struct lm_info_target): Add destructor,
12837 initialize fields.
12838 <name>: Change type to std::string.
12839 (library_list_start_library): Allocate lm_info_target with new.
12840 (solib_target_free_library_list): Free lm_info_target with
12841 delete.
12842 (solib_target_current_sos): Adapt to std::string.
12843 (solib_target_free_so): Free lm_info_target with delete.
12844
12845 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12846
12847 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
12848 fields.
12849 (frv_current_sos): Allocate lm_info_frv with new.
12850 (frv_relocate_main_executable): Free lm_info_frv with delete,
12851 allocate with new.
12852 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
12853
12854 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12855
12856 * solib-frv.c (struct lm_info_frv): Fix indentation.
12857
12858 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12859
12860 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
12861 map field.
12862 (dsbt_current_sos): Allocate lm_info_dsbt with new.
12863 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
12864 and allocate with new.
12865 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
12866
12867 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12868
12869 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
12870 <filename, member_name>: Change type to std::string.
12871 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
12872 (library_list_start_library): Allocate lm_info_aix with new.
12873 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
12874 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
12875 with copy constructor.
12876
12877 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12878
12879 * solist.h (struct lm_info): Remove.
12880 (struct lm_info_base): New class.
12881 (struct so_list) <lm_info>: Change type to lm_info_base *.
12882 * nto-tdep.c (struct lm_info): Remove.
12883 (lm_addr): Adjust.
12884 * solib-aix.c (struct lm_info): Rename to ...
12885 (struct lm_info_aix): ... this. Extend lm_info_base.
12886 (lm_info_p): Rename to ...
12887 (lm_info_aix_p): ... this, and adjust.
12888 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
12889 solib_aix_parse_libraries, library_list_start_library,
12890 solib_aix_free_library_list, solib_aix_parse_libraries,
12891 solib_aix_get_library_list,
12892 solib_aix_relocate_section_addresses, solib_aix_free_so,
12893 solib_aix_get_section_offsets,
12894 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
12895 Adjust.
12896 (struct solib_aix_inferior_data) <library_list>: Adjust.
12897 * solib-darwin.c (struct lm_info): Rename to ...
12898 (struct lm_info_darwin): ... this. Extend lm_info_base.
12899 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
12900 * solib-dsbt.c (struct lm_info): Rename to ...
12901 (struct lm_info_dsbt): ... this. Extend lm_info_base.
12902 (struct dsbt_info) <main_executable_lm_info): Adjust.
12903 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
12904 dsbt_relocate_section_addresses): Adjust.
12905 * solib-frv.c (struct lm_info): Rename to ...
12906 (struct lm_info_frv): ... this. Extend lm_info_base.
12907 (main_executable_lm_info): Adjust.
12908 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
12909 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
12910 find_canonical_descriptor_in_load_object,
12911 frv_fdpic_find_canonical_descriptor): Adjust.
12912 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
12913 to lm_info_svr4.
12914 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
12915 svr4_clear_so, svr4_copy_library_list,
12916 library_list_start_library, svr4_default_sos, svr4_read_so_list,
12917 svr4_current_sos, svr4_fetch_objfile_link_map,
12918 solist_update_incremental): Adjust.
12919 * solib-svr4.h (struct lm_info_svr4): Move here from
12920 solib-svr4.c.
12921 * solib-target.c (struct lm_info): Rename to ...
12922 (struct lm_info_target): ... this. Extend lm_info_base.
12923 (lm_info_p): Rename to ...
12924 (lm_info_target_p): ... this.
12925 (solib_target_parse_libraries, library_list_start_segment,
12926 library_list_start_section, library_list_start_library,
12927 library_list_end_library, solib_target_free_library_list,
12928 solib_target_current_sos, solib_target_free_so,
12929 solib_target_relocate_section_addresses): Adjust.
12930 * windows-nat.c (struct lm_info): Rename to ...
12931 (struct lm_info_windows): ... this. Extend lm_info_base.
12932 (windows_make_so, handle_load_dll, handle_unload_dll,
12933 windows_xfer_shared_libraries): Adjust.
12934
12935 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
12936
12937 * solib-darwin.c (struct darwin_so_list): Remove.
12938 (darwin_current_sos): Allocate an so_list object instead of a
12939 darwin_so_list, separately allocate an lm_info object.
12940 (darwin_free_so): Free lm_info.
12941
12942 2017-04-28 John Baldwin <jhb@FreeBSD.org>
12943
12944 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
12945 with fprintf_filtered.
12946
12947 2017-04-28 Yao Qi <yao.qi@linaro.org>
12948
12949 * regcache.c (regcache::regcache): New function.
12950 (regcache::~regcache): New function.
12951 (regcache_xmalloc_1): Remove.
12952 (regcache_xmalloc): Call new regcache.
12953 (regcache_xfree): Call delete regcache.
12954 (get_thread_arch_aspace_regcache): Call new regcache.
12955
12956 2017-04-28 Yao Qi <yao.qi@linaro.org>
12957
12958 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
12959 lwp instead of ptid_get_lwp.
12960
12961 2017-04-28 Yao Qi <yao.qi@linaro.org>
12962
12963 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
12964 lwp_info instead of getting from inferior_ptid.
12965
12966 2017-04-27 Keith Seitz <keiths@redhat.com>
12967
12968 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
12969 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
12970 (CV_CONVERSION_BADNESS): Define.
12971 (rank_one_type): Remove overly restrictive rvalue reference
12972 rank checks.
12973 Add cv-qualifier checks and subranks for type equality.
12974 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
12975 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
12976 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
12977
12978 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
12979
12980 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
12981 count when creating the object.
12982
12983 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
12984 Ulrich Weigand <uweigand@de.ibm.com>
12985
12986 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
12987 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
12988 is used in AIX.
12989 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
12990 (process_xcoff_symbol): Likewise.
12991 (scan_xcoff_symtab): Likewise.
12992
12993 2017-04-26 Alan Hayward <alan.hayward@arm.com>
12994
12995 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
12996 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
12997 (ia64_access_reg): Use get_frame_register_unsigned.
12998 (ia64_access_rse_reg): Likewise.
12999 (ia64_libunwind_frame_prev_register): Likewise.
13000
13001 2017-04-26 Jiong Wang <jiong.wang@arm.com>
13002
13003 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
13004 * gdbarch.c: Regenerated.
13005 * gdbarch.h: Regenerated.
13006 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
13007 visibility external.
13008 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
13009 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
13010 (enum cfa_how_kind): Move to ...
13011 (struct dwarf2_frame_state_reg_info): Likewise.
13012 (struct dwarf2_frame_state): Likewise.
13013 * dwarf2-frame.h: ... here.
13014 (dwarf2_frame_state_alloc_regs): New declaration.
13015 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
13016 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
13017
13018 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13019
13020 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
13021 regcache_raw_read_unsigned.
13022 (xtensa_pseudo_register_write): Likewise.
13023
13024 2017-04-26 Alan Hayward <alan.hayward@arm.com>
13025
13026 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
13027 (nds32_pseudo_register_write): Likewise.
13028
13029 2017-04-25 Yao Qi <yao.qi@linaro.org>
13030
13031 * regcache.c (struct regcache) <readonly_p>: Change its type
13032 to bool.
13033 (regcache_xmalloc_1): Update parameter type and callers update.
13034
13035 2017-04-25 Yao Qi <yao.qi@linaro.org>
13036
13037 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
13038 set_gdbarch_wchar_bit.
13039 * arm-tdep.c (arm_gdbarch_init): Likewise.
13040
13041 2017-04-25 Pedro Alves <palves@redhat.com>
13042
13043 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
13044 (BothAreRelocatable, memcopy, memmove): Don't define.
13045 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
13046 macros.
13047
13048 2017-04-25 Pedro Alves <palves@redhat.com>
13049
13050 * common/common-defs.h: Include "common/poison.h".
13051 * common/function-view.h: (Not, Or, Requires): Move to traits.h
13052 and adjust.
13053 * common/poison.h: New file.
13054 * common/traits.h: Include <type_traits>.
13055 (Not, Or, Requires): New, moved from common/function-view.h.
13056
13057 2017-04-25 Pedro Alves <palves@redhat.com>
13058
13059 * breakpoint.h (struct breakpoint): In-class initialize all
13060 fields. Make boolean fields "bool".
13061 * breakpoint.c (init_raw_breakpoint_without_location): Remove
13062 memset call and initializations no longer necessary.
13063
13064 2017-04-25 Pedro Alves <palves@redhat.com>
13065
13066 * btrace.c (pt_btrace_insn_flags): Change parameter type to
13067 reference.
13068 (pt_btrace_insn): New function.
13069 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
13070
13071 2017-04-25 Pedro Alves <palves@redhat.com>
13072
13073 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
13074 "base" field and inherit from "bp_location" instead. Add
13075 non-default ctor.
13076 (allocate_location_exception): Use new non-default ctor.
13077 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
13078 (init_bp_location): Convert to ...
13079 (bp_location::bp_location): ... this new ctor, and remove memset
13080 call.
13081 (base_breakpoint_allocate_location): Use the new non-default ctor.
13082 * breakpoint.h (bp_location): Now a class. Declare default and
13083 non-default ctors. In-class initialize all members.
13084 (init_bp_location): Remove declaration.
13085
13086 2017-04-25 Pedro Alves <palves@redhat.com>
13087
13088 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
13089 assignment operator.
13090
13091 2017-04-24 Yao Qi <yao.qi@linaro.org>
13092
13093 * doublest.c (convert_doublest_to_floatformat): Call
13094 floatformat_totalsize_bytes.
13095
13096 2017-04-22 Tom Tromey <tom@tromey.com>
13097
13098 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
13099 ui_out_emit_list.
13100 * stack.c (print_frame): Use ui_out_emit_list.
13101 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13102 ui_out_emit_list.
13103 * mi/mi-main.c (print_one_inferior)
13104 (mi_cmd_data_list_register_names)
13105 (mi_cmd_data_list_register_values, mi_cmd_list_features)
13106 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
13107 ui_out_emit_list.
13108 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
13109 (mi_output_solib_attribs): Use ui_out_emit_list,
13110 ui_out_emit_tuple.
13111 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
13112 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
13113 (mi_cmd_stack_list_args, list_args_or_locals): Use
13114 ui_out_emit_list.
13115 * disasm.c (do_assembly_only): Use ui_out_emit_list.
13116 * breakpoint.c (print_solib_event, output_thread_groups): Use
13117 ui_out_emit_list.
13118
13119 2017-04-22 Tom Tromey <tom@tromey.com>
13120
13121 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
13122 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
13123 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
13124
13125 2017-04-22 Tom Tromey <tom@tromey.com>
13126
13127 * tracepoint.c (tvariables_info_1)
13128 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
13129
13130 2017-04-22 Tom Tromey <tom@tromey.com>
13131
13132 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
13133 annotate_arg_emitter.
13134 * breakpoint.c (print_mention_watchpoint)
13135 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
13136 * annotate.h (struct annotate_arg_emitter): New.
13137
13138 2017-04-22 Tom Tromey <tom@tromey.com>
13139
13140 * record-btrace.c (record_btrace_insn_history)
13141 (record_btrace_insn_history_range, record_btrace_call_history)
13142 (record_btrace_call_history_range): Use ui_out_emit_tuple.
13143 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
13144 ui_out_emit_tuple.
13145 * stack.c (print_frame_info): Use ui_out_emit_tuple.
13146 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
13147 * skip.c (skip_info): Use ui_out_emit_tuple.
13148 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
13149 * progspace.c (print_program_space): Use ui_out_emit_tuple.
13150 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
13151 * osdata.c (info_osdata): Use ui_out_emit_tuple.
13152 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
13153 ui_out_emit_tuple.
13154 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
13155 (output_register, mi_cmd_data_read_memory)
13156 (mi_cmd_data_read_memory_bytes, mi_load_progress)
13157 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
13158 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
13159 Use ui_out_emit_tuple.
13160 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
13161 ui_out_emit_tuple.
13162 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
13163 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
13164 * linux-thread-db.c (info_auto_load_libthread_db): Use
13165 ui_out_emit_tuple.
13166 * inferior.c (print_inferior): Use ui_out_emit_tuple.
13167 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
13168 * disasm.c (do_mixed_source_and_assembly_deprecated)
13169 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
13170 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
13171 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
13172 * breakpoint.c (print_one_breakpoint_location)
13173 (print_one_breakpoint): Use ui_out_emit_tuple.
13174 * auto-load.c (print_script, info_auto_load_cmd): Use
13175 ui_out_emit_tuple.
13176 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
13177
13178 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
13179
13180 * thread.c (print_thread_info_1): Remove dead code.
13181
13182 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13183
13184 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
13185 GDB_SELF_TEST.
13186 * arm-tdep.c (selftests::arm_record_test): Likewise.
13187
13188 2017-04-21 Yao Qi <yao.qi@linaro.org>
13189
13190 * regcache.c (regcache_restore): Remove argument 2. Replace
13191 argument 3 with regcache. Get register status from
13192 src->register_status and get register contents from
13193 register_buffer (src, regnum).
13194 (regcache_cpy): Update.
13195
13196 2017-04-19 Pedro Alves <palves@redhat.com>
13197
13198 * gdbthread.h (thread): Add missing closing parenthesis in
13199 comment.
13200
13201 2017-04-19 Pedro Alves <palves@redhat.com>
13202
13203 * common/refcounted-object.h: New file.
13204 * gdbthread.h: Include "common/refcounted-object.h".
13205 (thread_info): Inherit from refcounted_object and add comments.
13206 (thread_info::incref, thread_info::decref)
13207 (thread_info::m_refcount): Delete.
13208 (thread_info::deletable): Use the refcounted_object::refcount()
13209 method.
13210 * inferior.c (current_inferior_): Add comment.
13211 (set_current_inferior): Increment/decrement refcounts.
13212 (prune_inferiors, remove_inferior_command): Skip inferiors marked
13213 not-deletable instead of comparing with the current inferior.
13214 (initialize_inferiors): Increment the initial inferior's refcount.
13215 * inferior.h (struct inferior): Forward declare.
13216 Include "common/refcounted-object.h".
13217 (current_inferior, set_current_inferior): Move declaration to
13218 before struct inferior's definition, and fix comment.
13219 (inferior): Inherit from refcounted_object. Add comments.
13220 * thread.c (switch_to_thread_no_regs): Reference the thread's
13221 inferior pointer directly instead of doing a ptid lookup.
13222 (switch_to_no_thread): New function.
13223 (switch_to_thread(thread_info *)): New function, factored out
13224 from ...
13225 (switch_to_thread(ptid_t)): ... this.
13226 (restore_current_thread): Delete.
13227 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
13228 fields, and add 'inf' field.
13229 (do_restore_current_thread_cleanup): Check whether old->inf is
13230 alive instead of looking up an inferior by ptid. Use
13231 switch_to_thread and switch_to_no_thread.
13232 (restore_current_thread_cleanup_dtor): Use old->inf directly
13233 instead of lookup up an inferior by id. Decref the inferior.
13234 Don't restore 'removable'.
13235 (make_cleanup_restore_current_thread): Same the inferior pointer
13236 in old, instead of the inferior number. Incref the inferior.
13237 Don't save/clear 'removable'.
13238
13239 2017-04-19 Pedro Alves <palves@redhat.com>
13240
13241 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13242 unittests/scoped_restore-selftests.c.
13243 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
13244 * common/scoped_restore.h (scoped_restore_base): Make "class".
13245 (scoped_restore_base::release): New public method.
13246 (scoped_restore_base::scoped_restore_base): New protected ctor.
13247 (scoped_restore_base::m_saved_var): New protected field.
13248 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
13249 scoped_restore_base base class instead of m_saved_var directly.
13250 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
13251 (scoped_restore_tmpl::scoped_restore_tmpl(const
13252 scoped_restore_tmpl<T>&)): Likewise.
13253 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
13254 method.
13255 (scoped_restore_tmpl::saved_var): New method.
13256 (scoped_restore_tmpl::m_saved_var): Delete.
13257 * inferior.h (inferior::detaching): Now a bool.
13258 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
13259 cleanup.
13260 * unittests/scoped_restore-selftests.c: New file.
13261
13262 2017-04-19 Pedro Alves <palves@redhat.com>
13263
13264 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
13265 Re-sort in alphabetic order.
13266
13267 2017-04-18 Pedro Alves <palves@redhat.com>
13268
13269 * xml-support.c (obstack_xml_printf): Delete.
13270 * xml-support.h (obstack_xml_printf): Delete.
13271
13272 2017-04-18 Pedro Alves <palves@redhat.com>
13273
13274 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
13275 vdebug, verror, body_text, start_element, end_element, name,
13276 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
13277 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
13278 is_xinclude>: Make private and add m_ prefix.
13279 (gdb_xml_parser::body_text): New method, based on ...
13280 (gdb_xml_body_text): ... this. Adjust.
13281 (gdb_xml_parser::vdebug): New method, based on ...
13282 (gdb_xml_debug): ... this. Adjust.
13283 (gdb_xml_parser::verror): New method, based on ...
13284 (gdb_xml_error): ... this. Adjust.
13285 (gdb_xml_parser::start_element): New method, based on ...
13286 (gdb_xml_start_element): ... this. Adjust.
13287 (gdb_xml_start_element_wrapper): Defer to
13288 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
13289 (gdb_xml_parser::end_element): New method, based on ...
13290 (gdb_xml_end_element_wrapper): ... this. Adjust.
13291 (gdb_xml_parser::~gdb_xml_parser): Adjust.
13292 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
13293 (gdb_xml_parser::use_dtd): New method, based on ...
13294 (gdb_xml_use_dtd): ... this. Adjust.
13295 (gdb_xml_parser::parse): New method, based on ...
13296 (gdb_xml_parse): ... this. Adjust.
13297 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
13298 (xinclude_start_include): Adjust to call the parser's name method.
13299 (xml_xinclude_default, xml_xinclude_start_doctype)
13300 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
13301 method.
13302 (xml_process_xincludes): Adjust to call parser methods.
13303 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
13304 declarations.
13305
13306 2017-04-18 Pedro Alves <palves@redhat.com>
13307
13308 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
13309 gdb::optional<std::string>.
13310 * xml-support.c: Include <string>.
13311 (scope_level::scope_level(scope_level &&))
13312 (scope_level::~scope_level): Delete.
13313 (scope_level::body): Now a std::string.
13314 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
13315 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
13316 parameter.
13317 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
13318 (xinclude_parsing_data::output): Now a std::string reference.
13319 (xinclude_start_include): Adjust.
13320 (xml_xinclude_default): Adjust.
13321 (xml_process_xincludes): Add 'output' parameter, and return bool.
13322 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
13323 and return bool.
13324 * xml-tdesc.c: Include <unordered_map> and <string>.
13325 (tdesc_xml_cache): Delete.
13326 (tdesc_xml_cache_s): Delete.
13327 (xml_cache): Now an std::unordered_map.
13328 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
13329 (target_fetch_description_xml): Change return type to
13330 gdb::optional<std::string>, and adjust.
13331 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
13332 (target_fetch_description_xml): Change return type to
13333 gdb::optional<std::string>.
13334
13335 2017-04-18 Pedro Alves <palves@redhat.com>
13336
13337 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13338 unittests/optional-selftests.c.
13339 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
13340 * unittests/optional-selftests.c: New file.
13341 * unittests/optional/assignment/1.cc: New file.
13342 * unittests/optional/assignment/2.cc: New file.
13343 * unittests/optional/assignment/3.cc: New file.
13344 * unittests/optional/assignment/4.cc: New file.
13345 * unittests/optional/assignment/5.cc: New file.
13346 * unittests/optional/assignment/6.cc: New file.
13347 * unittests/optional/assignment/7.cc: New file.
13348 * unittests/optional/cons/copy.cc: New file.
13349 * unittests/optional/cons/default.cc: New file.
13350 * unittests/optional/cons/move.cc: New file.
13351 * unittests/optional/cons/value.cc: New file.
13352 * unittests/optional/in_place.cc: New file.
13353 * unittests/optional/observers/1.cc: New file.
13354 * unittests/optional/observers/2.cc: New file.
13355
13356 2017-04-18 Pedro Alves <palves@redhat.com>
13357
13358 * common/gdb_optional.h: Include common/traits.h.
13359 (in_place_t): New type.
13360 (in_place): New constexpr variable.
13361 (optional::optional): Remove member initialization of
13362 m_instantiated.
13363 (optional::optional(in_place_t...)): New constructor.
13364 (optional::~optional): Use reset.
13365 (optional::optional(const optional&)): New.
13366 (optional::optional(const optional&&)): New.
13367 (optional::optional(T &)): New.
13368 (optional::optional(T &&)): New.
13369 (operator::operator=(const optional &)): New.
13370 (operator::operator=(optional &&)): New.
13371 (operator::operator= (const T &))
13372 (operator::operator= (T &&))
13373 (operator::emplace (Args &&... args)): Return a T&. Use reset.
13374 (operator::reset): New.
13375 (operator::m_instantiated):: Add in-class initializer.
13376 * common/traits.h: Include <type_traits>.
13377 (struct And): New types.
13378
13379 2017-04-18 Pedro Alves <palves@redhat.com>
13380
13381 * xml-support.c: Include <vector>.
13382 (scope_level::scope_level(const gdb_xml_element *))
13383 (scope_level::scope_level(scope_level&&)): New.
13384 (scope_level::~scope_level): New.
13385 (scope_level_s): Delete.
13386 (gdb_xml_parser::scopes): Now a std::vector.
13387 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
13388 Use std::vector.
13389 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
13390 scope cleanup code.
13391 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
13392 of the scopes member. Use std::vector::emplace_back.
13393
13394 2017-04-18 Pedro Alves <palves@redhat.com>
13395
13396 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
13397 a bool.
13398 (gdb_xml_end_element): Change type of first parameter.
13399 (gdb_xml_cleanup): Rename to ...
13400 (gdb_xml_parser::~gdb_xml_parser): ... this.
13401 (gdb_xml_create_parser_and_cleanup): Delete with ...
13402 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
13403 to this new ctor.
13404 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
13405 using gdb_xml_create_parser_and_cleanup.
13406 (xinclude_parsing_data): Add ctor/dtor.
13407 (xml_xinclude_cleanup): Delete.
13408 (xml_process_xincludes): Create a local xinclude_parsing_data
13409 instead of heap-allocating one. Create a local gdb_xml_parser
13410 instead of heap-allocating one with
13411 gdb_xml_create_parser_and_cleanup.
13412
13413 2017-04-18 John Baldwin <jhb@FreeBSD.org>
13414
13415 PR threads/20743
13416 * fbsd-nat.c (resume_one_thread_cb): Remove.
13417 (resume_all_threads_cb): Remove.
13418 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
13419 iterate_over_threads.
13420
13421 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13422
13423 * NEWS: Create a new section for the next release branch.
13424 Rename the section of the current branch, now that it has
13425 been cut.
13426
13427 2017-04-17 Joel Brobecker <brobecker@adacore.com>
13428
13429 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
13430 * version.in: Bump version to 8.0.50.DATE-git.
13431
13432 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
13433
13434 PR gdb/21385
13435 * windows-nat.c (windows_create_inferior): Declare 'allargs'
13436 independently of the host, and fix build breakage on Cygwin.
13437
13438 2017-04-13 Pedro Alves <palves@redhat.com>
13439
13440 * inferior.c (free_inferior): Convert to ...
13441 (inferior::~inferior): ... this dtor.
13442 (inferior::inferior): New ctor, factored out from ...
13443 (add_inferior_silent): ... here. Allocate the inferior with a new
13444 expression.
13445 (delete_inferior): Call delete instead of free_inferior.
13446 * inferior.h (gdb_environ, continuation): Forward declare.
13447 (inferior): Now a class. Add in-class initialization to all
13448 members. Make boolean fields bool, except 'detaching'.
13449 (inferior::inferior): New explicit ctor.
13450 (inferior::~inferior): New.
13451
13452 2017-04-13 Pedro Alves <palves@redhat.com>
13453
13454 * inferior.c (init_inferior_list): Delete.
13455 * inferior.h (init_inferior_list): Delete.
13456
13457 2017-04-13 Pedro Alves <palves@redhat.com>
13458
13459 PR threads/13217
13460 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
13461 (top level): Call it twice, with different thread sets.
13462
13463 2017-04-13 Pedro Alves <palves@redhat.com>
13464
13465 * thread.c: Include <algorithm>.
13466 (thread_array_cleanup): Delete.
13467 (scoped_inc_dec_ref): New class.
13468 (live_threads_count): New function.
13469 (set_thread_refcount): Delete.
13470 (tp_array_compar_ascending): Now a bool.
13471 (tp_array_compar): Convert to a std::sort comparison function.
13472 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
13473 and live_threads_count.
13474
13475 2017-04-13 Pedro Alves <palves@redhat.com>
13476
13477 * infrun.c (follow_fork_inferior): Also switch the current
13478 inferior.
13479
13480 2017-04-13 Pedro Alves <palves@redhat.com>
13481
13482 * breakpoint.c (watch_command_1): Save watchpoint-frame info
13483 before calling create_internal_breakpoint.
13484
13485 2017-04-13 Pedro Alves <palves@redhat.com>
13486
13487 * fork-child.c (execv_argv): New class.
13488 (breakup_args): Refactored as ...
13489 (execv_argv::init_for_no_shell): .. this method of execv_argv.
13490 Copy arguments to storage and replace separators with NULL
13491 terminators in place.
13492 (escape_bang_in_quoted_argument): Adjust to return bool.
13493 (execv_argv::execv_argv): New ctor.
13494 (execv_argv::init_for_shell): New method, factored out from
13495 fork_inferior. Don't strdup strings into the vector.
13496 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
13497 Remove free_vector_argv call.
13498
13499 2017-04-13 Yao Qi <yao.qi@linaro.org>
13500
13501 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
13502 tdep->rx_psw_type.
13503
13504 2017-04-13 Yao Qi <yao.qi@linaro.org>
13505
13506 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
13507 * rx-tdep.c (rx_gdbarch_init): Likewise.
13508
13509 2017-04-13 Pedro Alves <palves@redhat.com>
13510
13511 * breakpoint.h (struct breakpoint): Reindent.
13512
13513 2017-04-13 Pedro Alves <palves@redhat.com>
13514
13515 * breakpoint.c (bp_location): Rename to ...
13516 (bp_locations): ... this. All references updated.
13517 (bp_location_count): Rename to ...
13518 (bp_locations_count): ... this. All references updated.
13519 (bp_location_placed_address_before_address_max): Rename to ...
13520 (bp_locations_placed_address_before_address_max): ... this. All
13521 references updated.
13522 (bp_location_shadow_len_after_address_max): Rename to ...
13523 (bp_locations_shadow_len_after_address_max): ... this. All
13524 references updated.
13525 (bp_location_compare_addrs): Rename to ...
13526 (bp_locations_compare_addrs): ... this. All references updated.
13527 (bp_location_compare):Rename to ...
13528 (bp_locations_compare): ... this. All references updated.
13529 (bp_location_target_extensions_update): Rename to ...
13530 (bp_locations_target_extensions_update): ... this. All references
13531 updated.
13532
13533 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13534
13535 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
13536 * common/common.m4: Check headers 'termios.h', 'termio.h' and
13537 'sgtty.h'.
13538 * common/gdb_termios.h: New file, with parts of "terminal.h".
13539 * inflow.c: Include "gdb_termios.h".
13540 * ser-unix.c: Include "gdb_termios.h".
13541 * terminal.h: Move terminal-related defines to
13542 "common/gdb_termios.h".
13543
13544 2017-04-12 Tom Tromey <tom@tromey.com>
13545
13546 * probe.c (parse_probes): Update.
13547 * location.h (delete_event_location): Don't declare.
13548 (event_location_deleter::operator()): Update.
13549 * location.c (event_location_deleter::operator()): Rename from
13550 delete_event_location.
13551 * linespec.h (linespec_result) <location>: Change type to
13552 event_location_up.
13553 * linespec.c (canonicalize_linespec, event_location_to_sals)
13554 (decode_objc): Update.
13555 (linespec_result): Don't call delete_event_location.
13556 * breakpoint.c (create_breakpoints_sal)
13557 (bkpt_probe_create_sals_from_location)
13558 (strace_marker_create_sals_from_location): Update.
13559
13560 2017-04-12 Tom Tromey <tom@tromey.com>
13561
13562 * linespec.h (struct linespec_result): Add constructor and
13563 destructor.
13564 (init_linespec_result, destroy_linespec_result)
13565 (make_cleanup_destroy_linespec_result): Don't declare.
13566 * linespec.c (init_linespec_result): Remove.
13567 (linespec_result::~linespec_result): Rename from
13568 destroy_linespec_result. Update.
13569 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
13570 Remove.
13571 * breakpoint.c (create_breakpoint, break_range_command)
13572 (decode_location_default): Update.
13573 * ax-gdb.c (agent_command_1): Update.
13574
13575 2017-04-12 Tom Tromey <tom@tromey.com>
13576
13577 * remote.c (remote_download_tracepoint): Update.
13578 * python/py-breakpoint.c (bppy_get_location): Update.
13579 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
13580 (gdbscm_breakpoint_location): Update.
13581 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
13582 * breakpoint.h (struct breakpoint) <location, location_range_end>:
13583 Change type to event_location_up.
13584 * breakpoint.c (create_overlay_event_breakpoint)
13585 (create_longjmp_master_breakpoint)
13586 (create_std_terminate_master_breakpoint)
13587 (create_exception_master_breakpoint)
13588 (breakpoint_event_location_empty_p, print_breakpoint_location)
13589 (print_one_breakpoint_location, create_thread_event_breakpoint)
13590 (init_breakpoint_sal, create_breakpoint)
13591 (print_recreate_ranged_breakpoint, break_range_command)
13592 (init_ada_exception_breakpoint, say_where): Update.
13593 (base_breakpoint_dtor): Don't call delete_event_location.
13594 (bkpt_print_recreate, tracepoint_print_recreate)
13595 (dprintf_print_recreate, update_static_tracepoint)
13596 (breakpoint_re_set_default): Update.
13597
13598 2017-04-12 Tom Tromey <tom@tromey.com>
13599
13600 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
13601 type of "to_do". Update.
13602 (compute_stack_depth): Use std::vector.
13603
13604 2017-04-12 Tom Tromey <tom@tromey.com>
13605
13606 * printcmd.c (find_instruction_backward): Use std::vector.
13607
13608 2017-04-12 Tom Tromey <tom@tromey.com>
13609
13610 * symfile.c (objfilep): Remove typedef.
13611 (reread_symbols): Use a std::vector.
13612
13613 2017-04-12 Tom Tromey <tom@tromey.com>
13614
13615 * mi/mi-main.c (exec_direction_forward): Remove.
13616 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
13617 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
13618 scoped_restore.
13619 * guile/guile.c (guile_repl_command, guile_command)
13620 (gdbscm_execute_gdb_command): Use scoped_restore.
13621 * go-exp.y (go_parse): Use scoped_restore.
13622 * d-exp.y (d_parse): Use scoped_restore.
13623 * cli/cli-decode.c (cmd_func): Use scoped_restore.
13624 * c-exp.y (c_parse): Use scoped_restore.
13625
13626 2017-04-12 Tom Tromey <tom@tromey.com>
13627
13628 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
13629 (mi_parse): Update return type.
13630 (mi_parse_free): Remove.
13631 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
13632 (mi_parse::~mi_parse): Rename from mi_parse_free.
13633 (mi_parse_cleanup): Remove.
13634 (mi_parse): Return a unique_ptr. Use new.
13635 * mi/mi-main.c (mi_execute_command): Update.
13636
13637 2017-04-12 Tom Tromey <tom@tromey.com>
13638
13639 * location.c (explicit_location_lex_one): Return a
13640 unique_xmalloc_ptr.
13641 (string_to_explicit_location): Update. Remove cleanups.
13642
13643 2017-04-12 Tom Tromey <tom@tromey.com>
13644
13645 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
13646 (compare_value_and_voffset): Change type. Update.
13647 (compute_vtable_size): Change type of "offset_vec".
13648 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
13649 (gnuv3_get_typeid): Remove extraneous declaration.
13650
13651 2017-04-12 Tom Tromey <tom@tromey.com>
13652
13653 * charset.h (wchar_iterator): Fix comment.
13654
13655 2017-04-12 Tom Tromey <tom@tromey.com>
13656
13657 * charset.c (iconv_wrapper): New class.
13658 (cleanup_iconv): Remove.
13659 (convert_between_encodings): Use it.
13660
13661 2017-04-12 Tom Tromey <tom@tromey.com>
13662
13663 * symfile.h (increment_reading_symtab): Update type.
13664 * symfile.c (decrement_reading_symtab): Remove.
13665 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
13666 * psymtab.c (psymtab_to_symtab): Update.
13667 * dwarf2read.c (dw2_instantiate_symtab): Update.
13668
13669 2017-04-12 Tom Tromey <tom@tromey.com>
13670
13671 * jit.c (struct jit_reader): Declare separately. Add constructor
13672 and destructor. Change type of "handle".
13673 (loaded_jit_reader): Define separately.
13674 (jit_reader_load): Update. New "new".
13675 (jit_reader_unload_command): Use "delete".
13676 * gdb-dlfcn.h (struct dlclose_deleter): New.
13677 (gdb_dlhandle_up): New typedef.
13678 (gdb_dlopen, gdb_dlsym): Update types.
13679 (gdb_dlclose): Remove.
13680 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
13681 (gdb_dlsym): Change type of "handle".
13682 (make_cleanup_dlclose): Remove.
13683 (dlclose_deleter::operator()): Rename from gdb_dlclose.
13684 * compile/compile-c-support.c (load_libcc): Update.
13685
13686 2017-04-12 Tom Tromey <tom@tromey.com>
13687
13688 * symtab.h (find_pcs_for_symtab_line): Change return type.
13689 * symtab.c (find_pcs_for_symtab_line): Change return type.
13690 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
13691 type of "vec". Update.
13692 (ltpy_get_pcs_for_line): Update.
13693 * linespec.c (decode_digits_ordinary): Update.
13694
13695 2017-04-12 Tom Tromey <tom@tromey.com>
13696
13697 * tracepoint.c (actions_command): Update.
13698 * python/python.c (python_command, python_interactive_command):
13699 Update.
13700 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
13701 * guile/guile.c (guile_command): Update.
13702 * defs.h (read_command_lines, read_command_lines_1): Return
13703 command_line_up.
13704 (command_lines_deleter): New struct.
13705 (command_line_up): New typedef.
13706 * compile/compile.c (compile_code_command)
13707 (compile_print_command): Update.
13708 * cli/cli-script.h (get_command_line, copy_command_lines): Return
13709 command_line_up.
13710 (make_cleanup_free_command_lines): Remove.
13711 * cli/cli-script.c (get_command_line, read_command_lines_1)
13712 (copy_command_lines): Return command_line_up.
13713 (while_command, if_command, read_command_lines, define_command)
13714 (document_command): Update.
13715 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
13716 Remove.
13717 * breakpoint.h (breakpoint_set_commands): Change type of
13718 "commands".
13719 * breakpoint.c (breakpoint_set_commands): Change type of
13720 "commands". Update.
13721 (do_map_commands_command, update_dprintf_command_list)
13722 (create_tracepoint_from_upload): Update.
13723
13724 2017-04-12 Tom Tromey <tom@tromey.com>
13725
13726 * tracepoint.c (scope_info): Update.
13727 * spu-tdep.c (spu_catch_start): Update.
13728 * python/python.c (gdbpy_decode_line): Update.
13729 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
13730 * python/py-breakpoint.c (bppy_init): Update.
13731 * probe.c (parse_probes): Update.
13732 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
13733 * location.h (event_location_deleter): New struct.
13734 (event_location_up): New typedef.
13735 (new_linespec_location, new_address_location, new_probe_location)
13736 (new_explicit_location, copy_event_location)
13737 (string_to_event_location, string_to_event_location_basic)
13738 (string_to_explicit_location): Update return type.
13739 (make_cleanup_delete_event_location): Remove.
13740 * location.c (new_linespec_location, new_address_location)
13741 (new_probe_location, new_explicit_location, copy_event_location):
13742 Return event_location_up.
13743 (delete_event_location_cleanup)
13744 (make_cleanup_delete_event_location): Remove.
13745 (string_to_explicit_location, string_to_event_location_basic)
13746 (string_to_event_location): Return event_location_up.
13747 * linespec.c (canonicalize_linespec, event_location_to_sals)
13748 (decode_line_with_current_source)
13749 (decode_line_with_last_displayed, decode_objc): Update.
13750 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
13751 * completer.c (location_completer): Update.
13752 * cli/cli-cmds.c (edit_command, list_command): Update.
13753 * breakpoint.c (create_overlay_event_breakpoint)
13754 (create_longjmp_master_breakpoint)
13755 (create_std_terminate_master_breakpoint)
13756 (create_exception_master_breakpoint)
13757 (create_thread_event_breakpoint): Update.
13758 (init_breakpoint_sal): Update. Remove some dead code.
13759 (create_breakpoint_sal): Change type of "location". Update.
13760 (create_breakpoints_sal, create_breakpoint, break_command_1)
13761 (dprintf_command, break_range_command, until_break_command)
13762 (init_ada_exception_breakpoint)
13763 (strace_marker_create_sals_from_location)
13764 (update_static_tracepoint, trace_command, ftrace_command)
13765 (strace_command, create_tracepoint_from_upload): Update.
13766 * break-catch-throw.c (re_set_exception_catchpoint): Update.
13767 * ax-gdb.c (agent_command_1): Update.
13768
13769 2017-04-12 Pedro Alves <palves@redhat.com>
13770
13771 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
13772 * configure.tgt: Handle i[34567]86-*-go32* and
13773 i[34567]86-*-msdosdjgpp*.
13774 * i386-tdep.c (i386_svr4_reg_to_regnum):
13775 Make extern.
13776 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
13777 i386-go32-tdep.c.
13778 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
13779 * i386-go32-tdep.c: New file.
13780 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
13781 declarations.
13782
13783 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
13784
13785 * aix-thread.c (pd_status2str): Change return type to const char *.
13786
13787 2017-04-12 Pedro Alves <palves@redhat.com>
13788
13789 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
13790 calls to set_gdbarch_gnu_triplet_regexp.
13791
13792 2017-04-12 Pedro Alves <palves@redhat.com>
13793
13794 PR gdb/21323
13795 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
13796 New enum value.
13797 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
13798 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
13799 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
13800 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
13801 * gdbarch.h, gdbarch.c: Regenerate.
13802 * aarch64-tdep.c (aarch64_gdbarch_init): Override
13803 gdbarch_wchar_bit and gdbarch_wchar_signed.
13804 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
13805 * arm-tdep.c (arm_gdbarch_init): Likewise.
13806 * avr-tdep.c (avr_gdbarch_init): Likewise.
13807 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13808 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
13809 * i386-tdep.c (i386_go32_init_abi): Likewise.
13810 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13811 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13812 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
13813 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
13814 * sh-tdep.c (sh_gdbarch_init): Likewise.
13815 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13816 * sparc64-tdep.c (sparc64_init_abi): Likewise.
13817 * windows-tdep.c (windows_init_abi): Likewise.
13818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13819
13820 2017-04-12 Pedro Alves <palves@redhat.com>
13821
13822 PR c++/21323
13823 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
13824 cplus_primitive_type_char32_t>: New enum values.
13825 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
13826 and cplus_primitive_type_char32_t.
13827 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
13828 32, use the archtecture's built-in type for char16_t and char32_t,
13829 respectively. Otherwise, fallback to init_integer_type as before,
13830 but make the type unsigned, and issue a complaint.
13831 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
13832
13833 2017-04-12 Alan Hayward <alan.hayward@arm.com>
13834
13835 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
13836 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
13837
13838 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13839
13840 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
13841 'const char *'.
13842
13843 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
13844
13845 * common/common-utils.c (free_vector_argv): New function.
13846 * common/common-utils.h: Include <vector>.
13847 (free_vector_argv): New prototype.
13848 * darwin-nat.c (darwin_create_inferior): Rewrite function
13849 prototype in order to constify "exec_file" and accept a
13850 "std::string" for "allargs".
13851 * fork-child.c: Include <vector>.
13852 (breakup_args): Rewrite function, using C++.
13853 (fork_inferior): Rewrite function header, constify "exec_file_arg"
13854 and accept "std::string" for "allargs". Update the code to
13855 calculate "argv" based on "allargs". Update calls to "exec_fun"
13856 and "execvp".
13857 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
13858 order to constify "exec_file" and accept a "std::string" for
13859 "allargs".
13860 * go32-nat.c (go32_create_inferior): Likewise.
13861 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
13862 * infcmd.c (run_command_1): Constify "exec_file". Use
13863 "std::string" for inferior arguments.
13864 * inferior.h (fork_inferior): Update prototype.
13865 * linux-nat.c (linux_nat_create_inferior): Rewrite function
13866 prototype in order to constify "exec_file" and accept a
13867 "std::string" for "allargs".
13868 * nto-procfs.c (procfs_create_inferior): Likewise.
13869 * procfs.c (procfs_create_inferior): Likewise.
13870 * remote-sim.c (gdbsim_create_inferior): Likewise.
13871 * remote.c (extended_remote_run): Update code to accept
13872 "std::string" as argument.
13873 (extended_remote_create_inferior): Rewrite function prototype in
13874 order to constify "exec_file" and accept a "std::string" for
13875 "allargs".
13876 * rs6000-nat.c (super_create_inferior): Likewise.
13877 (rs6000_create_inferior): Likewise.
13878 * target.h (struct target_ops) <to_create_inferior>: Likewise.
13879 * windows-nat.c (windows_create_inferior): Likewise.
13880
13881 2017-04-11 Pedro Alves <palves@redhat.com>
13882
13883 * thread.c: Fix whitespace throughout.
13884
13885 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
13886
13887 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
13888
13889 2017-04-11 Alan Hayward <alan.hayward@arm.com>
13890
13891 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
13892
13893 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
13894
13895 PR gdb/21364
13896 * osdata.c (info_osdata): Check if 'type' is an empty string
13897 instead of NULL.
13898
13899 2017-04-10 Pedro Alves <palves@redhat.com>
13900
13901 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
13902 (ptid_to_global_thread_id, in_thread_list)
13903 (do_captured_list_thread_ids, set_resumed, set_running)
13904 (set_executing, set_stop_requested, finish_thread_state)
13905 (validate_registers_access, can_access_registers_ptid)
13906 (print_thread_info_1, switch_to_thread)
13907 (do_restore_current_thread_cleanup)
13908 (make_cleanup_restore_current_thread, thread_command)
13909 (thread_name_command): Use operator== instead of ptid_equal.
13910
13911 2017-04-10 Pedro Alves <palves@redhat.com>
13912
13913 * thread.c (struct current_thread_cleanup) <next>: Delete field.
13914 (current_thread_cleanup_chain): Delete.
13915 (restore_current_thread_cleanup_dtor)
13916 (make_cleanup_restore_current_thread): Remove references to
13917 current_thread_cleanup_chain.
13918
13919 2017-04-10 Alan Hayward <alan.hayward@arm.com>
13920
13921 * msp430-tdep.c (msp430_pseudo_register_read): Never return
13922 REG_UNKNOWN.
13923
13924 2017-04-10 Yao Qi <yao.qi@linaro.org>
13925
13926 PR gdb/19942
13927 * gdbthread.h (thread_info::deletable): New method.
13928 (thread_info::incref): New method.
13929 (thread_info::decref): New method.
13930 (thread_info::refcount): Move it to private.
13931 * infrun.c (save_stop_context): Call inc_refcount.
13932 (release_stop_context_cleanup): Likewise.
13933 * thread.c (set_thread_exited): New function.
13934 (init_thread_list): Delete "tp" only it is deletable, otherwise
13935 call set_thread_exited.
13936 (delete_thread_1): Call set_thread_exited.
13937 (current_thread_cleanup) <inferior_pid>: Remove.
13938 <thread>: New field.
13939 (restore_current_thread_ptid_changed): Removed.
13940 (do_restore_current_thread_cleanup): Adjust.
13941 (restore_current_thread_cleanup_dtor): Don't call
13942 find_thread_ptid.
13943 (set_thread_refcount): Use dec_refcount.
13944 (make_cleanup_restore_current_thread): Adjust.
13945 (thread_apply_all_command): Call inc_refcount.
13946 (_initialize_thread): Don't call
13947 observer_attach_thread_ptid_changed.
13948
13949 2017-04-10 Yao Qi <yao.qi@linaro.org>
13950
13951 * thread.c (delete_thread_1): Hoist code on marking thread as
13952 exited.
13953
13954 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
13955
13956 * windows-nat.c (windows_detach): Initialize ptid with
13957 minus_one_ptid.
13958
13959 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
13960
13961 * unittests/ptid-selftests.c: Fix erroneous assert messages.
13962
13963 2017-04-07 Alan Hayward <alan.hayward@arm.com>
13964
13965 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
13966 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
13967 (bfin_pseudo_register_write): Likewise
13968
13969 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
13970
13971 * common/ptid.h (struct ptid): Change to...
13972 (class ptid_t): ... this.
13973 <ptid_t>: New constructors.
13974 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
13975 matches>: New methods.
13976 <make_null, make_minus_one>: New static methods.
13977 <pid>: Rename to...
13978 <m_pid>: ...this.
13979 <lwp>: Rename to...
13980 <m_lwp>: ...this.
13981 <tid>: Rename to...
13982 <m_tid>: ...this.
13983 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
13984 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
13985 as references, move comment to class ptid_t.
13986 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
13987 ptid_t static methods.
13988 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
13989 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
13990 Take ptid arguments as references, implement using ptid_t methods.
13991 * unittests/ptid-selftests.c: New file.
13992 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13993 unittests/ptid-selftests.c.
13994 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
13995
13996 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13997
13998 * python/python.c (python_run_simple_file): Cast mode literal to
13999 non-const char pointer as expected by PyFile_FromString.
14000
14001 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
14002
14003 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
14004 minus_one_ptid and null_ptid.
14005
14006 2017-04-05 Pedro Alves <palves@redhat.com>
14007
14008 * warning.m4 (build_warnings): Remove -Wno-write-strings.
14009 * configure: Regenerate.
14010
14011 2017-04-05 Pedro Alves <palves@redhat.com>
14012
14013 * ada-exp.y (yyerror): Constify.
14014 * ada-lang.c (bound_name, get_selections)
14015 (ada_variant_discrim_type)
14016 (ada_variant_discrim_name, ada_value_struct_elt)
14017 (ada_lookup_struct_elt_type, is_unchecked_variant)
14018 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
14019 (catch_ada_exception_command_split)
14020 (catch_ada_assert_command_split, catch_assert_command)
14021 (ada_op_name): Constify.
14022 * ada-lang.h (ada_yyerror, get_selections)
14023 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
14024 * arc-tdep.c (arc_print_frame_cache): Constify.
14025 * arm-tdep.c (arm_skip_stub): Constify.
14026 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
14027 (gen_aggregate_elt_ref): Constify.
14028 * bcache.c (print_bcache_statistics): Constify.
14029 * bcache.h (print_bcache_statistics): Constify.
14030 * break-catch-throw.c (catch_exception_command_1):
14031 * breakpoint.c (struct ep_type_description::description):
14032 Constify.
14033 (add_solib_catchpoint): Constify.
14034 (catch_fork_command_1): Add cast.
14035 (add_catch_command): Constify.
14036 * breakpoint.h (add_catch_command, add_solib_catchpoint):
14037 Constify.
14038 * bsd-uthread.c (bsd_uthread_state): Constify.
14039 * buildsym.c (patch_subfile_names): Constify.
14040 * buildsym.h (next_symbol_text_func, patch_subfile_names):
14041 Constify.
14042 * c-exp.y (yyerror): Constify.
14043 (token::oper): Constify.
14044 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
14045 * c-varobj.c (cplus_describe_child): Constify.
14046 * charset.c (find_charset_names): Add cast.
14047 (find_charset_names): Constify array and add const_cast.
14048 * cli/cli-cmds.c (complete_command, cd_command): Constify.
14049 (edit_command): Constify.
14050 * cli/cli-decode.c (lookup_cmd): Constify.
14051 * cli/cli-dump.c (dump_memory_command, dump_value_command):
14052 Constify.
14053 (struct dump_context): Constify.
14054 (add_dump_command, restore_command): Constify.
14055 * cli/cli-script.c (get_command_line): Constify.
14056 * cli/cli-script.h (get_command_line): Constify.
14057 * cli/cli-utils.c (check_for_argument): Constify.
14058 * cli/cli-utils.h (check_for_argument): Constify.
14059 * coff-pe-read.c (struct read_pe_section_data): Constify.
14060 * command.h (lookup_cmd): Constify.
14061 * common/print-utils.c (decimal2str): Constify.
14062 * completer.c (gdb_print_filename): Constify.
14063 * corefile.c (set_gnutarget): Constify.
14064 * cp-name-parser.y (yyerror): Constify.
14065 * cp-valprint.c (cp_print_class_member): Constify.
14066 * cris-tdep.c (cris_register_name, crisv32_register_name):
14067 Constify.
14068 * d-exp.y (yyerror): Constify.
14069 (struct token::oper): Constify.
14070 * d-lang.h (d_yyerror): Constify.
14071 * dbxread.c (struct header_file_location::name): Constify.
14072 (add_old_header_file, add_new_header_file, last_function_name)
14073 (dbx_next_symbol_text, add_bincl_to_list)
14074 (find_corresponding_bincl_psymtab, set_namestring)
14075 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
14076 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
14077 * defs.h (command_line_input, print_address_symbolic)
14078 (deprecated_readline_begin_hook): Constify.
14079 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
14080 Constify.
14081 * event-top.c (handle_line_of_input): Constify and add cast.
14082 * exceptions.c (catch_errors): Constify.
14083 * exceptions.h (catch_errors): Constify.
14084 * expprint.c (print_subexp_standard, op_string, op_name)
14085 (op_name_standard, dump_raw_expression, dump_raw_expression):
14086 * expression.h (op_name, op_string, dump_raw_expression):
14087 Constify.
14088 * f-exp.y (yyerror): Constify.
14089 (struct token::oper): Constify.
14090 (struct f77_boolean_val::name): Constify.
14091 * f-lang.c (f_word_break_characters): Constify.
14092 * f-lang.h (f_yyerror): Constify.
14093 * fork-child.c (fork_inferior): Add cast.
14094 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
14095 (new_variant): Constify.
14096 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
14097 * gdbarch.c: Regenerate.
14098 * gdbcore.h (set_gnutarget): Constify.
14099 * go-exp.y (yyerror): Constify.
14100 (token::oper): Constify.
14101 * go-lang.h (go_yyerror): Constify.
14102 * go32-nat.c (go32_sysinfo): Constify.
14103 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
14104 * guile/scm-cmd.c (cmdscm_function): Constify.
14105 * guile/scm-param.c (pascm_param_value): Constify.
14106 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
14107 (h8300sx_register_name): Constify.
14108 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
14109 Constify.
14110 * ia64-tdep.c (ia64_register_names): Constify.
14111 * infcmd.c (construct_inferior_arguments): Constify.
14112 (path_command, attach_post_wait): Constify.
14113 * language.c (show_range_command, show_case_command)
14114 (unk_lang_error): Constify.
14115 * language.h (language_defn::la_error)
14116 (language_defn::la_name_of_this): Constify.
14117 * linespec.c (decode_line_2): Constify.
14118 * linux-thread-db.c (thread_db_err_str): Constify.
14119 * lm32-tdep.c (lm32_register_name): Constify.
14120 * m2-exp.y (yyerror): Constify.
14121 * m2-lang.h (m2_yyerror): Constify.
14122 * m32r-tdep.c (m32r_register_names): Constify and make static.
14123 * m68hc11-tdep.c (m68hc11_register_names): Constify.
14124 * m88k-tdep.c (m88k_register_name): Constify.
14125 * macroexp.c (appendmem): Constify.
14126 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
14127 (upgrade_type, parse_external, parse_partial_symbols)
14128 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
14129 (new_symbol): Constify.
14130 * memattr.c (mem_info_command): Constify.
14131 * mep-tdep.c (register_name_from_keyword): Constify.
14132 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
14133 Constify.
14134 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
14135 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
14136 * mi/mi-main.c (captured_mi_execute_command): Constify and add
14137 cast.
14138 (mi_execute_async_cli_command): Constify.
14139 * mips-tdep.c (mips_register_name): Constify.
14140 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
14141 (am33_register_name, am33_2_register_name)
14142 * moxie-tdep.c (moxie_register_names): Constify.
14143 * nat/linux-osdata.c (osdata_type): Constify fields.
14144 * nto-tdep.c (nto_parse_redirection): Constify.
14145 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
14146 (lookup_child_selector): Constify.
14147 (objc_methcall::name): Constify.
14148 * objc-lang.h (lookup_objc_class, lookup_child_selector)
14149 (lookup_struct_typedef): Constify.
14150 * objfiles.c (pc_in_section): Constify.
14151 * objfiles.h (pc_in_section): Constify.
14152 * p-exp.y (struct token::oper): Constify.
14153 (yyerror): Constify.
14154 * p-lang.h (pascal_yyerror): Constify.
14155 * parser-defs.h (op_name_standard): Constify.
14156 (op_print::string): Constify.
14157 (exp_descriptor::op_name): Constify.
14158 * printcmd.c (print_address_symbolic): Constify.
14159 * psymtab.c (print_partial_symbols): Constify.
14160 * python/py-breakpoint.c (stop_func): Constify.
14161 (bppy_get_expression): Constify.
14162 * python/py-cmd.c (cmdpy_completer::name): Constify.
14163 (cmdpy_function): Constify.
14164 * python/py-event.c (evpy_add_attribute)
14165 (gdbpy_initialize_event_generic): Constify.
14166 * python/py-event.h (evpy_add_attribute)
14167 (gdbpy_initialize_event_generic): Constify.
14168 * python/py-evts.c (add_new_registry): Constify.
14169 * python/py-finishbreakpoint.c (outofscope_func): Constify.
14170 * python/py-framefilter.c (get_py_iter_from_func): Constify.
14171 * python/py-inferior.c (get_buffer): Add cast.
14172 * python/py-param.c (parm_constant::name): Constify.
14173 * python/py-unwind.c (fprint_frame_id): Constify.
14174 * python/python.c (gdbpy_parameter_value): Constify.
14175 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
14176 * remote.c (memory_packet_config::name): Constify.
14177 (show_packet_config_cmd, remote_write_bytes)
14178 (remote_buffer_add_string):
14179 * reverse.c (exec_reverse_once): Constify.
14180 * rs6000-tdep.c (variant::name, variant::description): Constify.
14181 * rust-exp.y (rustyyerror): Constify.
14182 * rust-lang.c (rust_op_name): Constify.
14183 * rust-lang.h (rustyyerror): Constify.
14184 * serial.h (serial_ops::name): Constify.
14185 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
14186 (sh_sh3e_register_name, sh_sh2e_register_name)
14187 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
14188 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
14189 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
14190 (sh_sh4al_dsp_register_name): Constify.
14191 * sh64-tdep.c (sh64_register_name): Constify.
14192 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
14193 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
14194 * stabsread.c (patch_block_stabs, read_type_number)
14195 (ref_map::stabs, ref_add, process_reference)
14196 (symbol_reference_defined, define_symbol, define_symbol)
14197 (error_type, read_type, read_member_functions, read_cpp_abbrev)
14198 (read_one_struct_field, read_struct_fields, read_baseclasses)
14199 (read_tilde_fields, read_struct_type, read_array_type)
14200 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
14201 (read_huge_number, read_range_type, read_args, common_block_start)
14202 (find_name_end): Constify.
14203 * stabsread.h (common_block_start, define_symbol)
14204 (process_one_symbol, symbol_reference_defined, ref_add):
14205 * symfile.c (get_section_index, add_symbol_file_command):
14206 * symfile.h (get_section_index): Constify.
14207 * target-descriptions.c (tdesc_type::name): Constify.
14208 (tdesc_free_type): Add cast.
14209 * target.c (find_default_run_target):
14210 (add_deprecated_target_alias, find_default_run_target)
14211 (target_announce_detach): Constify.
14212 (do_option): Constify.
14213 * target.h (add_deprecated_target_alias): Constify.
14214 * thread.c (print_thread_info_1): Constify.
14215 * top.c (deprecated_readline_begin_hook, command_line_input):
14216 Constify.
14217 (init_main): Add casts.
14218 * top.h (handle_line_of_input): Constify.
14219 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
14220 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
14221 (tfind_command): Rename to ...
14222 (tfind_command_1): ... this and constify.
14223 (tfind_command): New function.
14224 (tfind_end_command, tfind_start_command): Adjust.
14225 (encode_source_string): Constify.
14226 * tracepoint.h (encode_source_string): Constify.
14227 * tui/tui-data.c (tui_partial_win_by_name): Constify.
14228 * tui/tui-data.h (tui_partial_win_by_name): Constify.
14229 * tui/tui-source.c (tui_set_source_content_nil): Constify.
14230 * tui/tui-source.h (tui_set_source_content_nil): Constify.
14231 * tui/tui-win.c (parse_scrolling_args): Constify.
14232 * tui/tui-windata.c (tui_erase_data_content): Constify.
14233 * tui/tui-windata.h (tui_erase_data_content): Constify.
14234 * tui/tui-winsource.c (tui_erase_source_content): Constify.
14235 * tui/tui.c (tui_enable): Add cast.
14236 * utils.c (defaulted_query): Constify.
14237 (init_page_info): Add cast.
14238 (puts_debug, subset_compare): Constify.
14239 * utils.h (subset_compare): Constify.
14240 * varobj.c (varobj_format_string): Constify.
14241 * varobj.h (varobj_format_string): Constify.
14242 * vax-tdep.c (vax_register_name): Constify.
14243 * windows-nat.c (windows_detach): Constify.
14244 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
14245 * xml-support.c (gdb_xml_end_element): Constify.
14246 * xml-tdesc.c (tdesc_start_reg): Constify.
14247 * xstormy16-tdep.c (xstormy16_register_name): Constify.
14248 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
14249 * xtensa-tdep.h (xtensa_register_t::name): Constify.
14250
14251 2017-04-05 Pedro Alves <palves@redhat.com>
14252
14253 * proc-api.c (struct trans): Constify.
14254 (procfs_note): Constify.
14255 * proc-events.c (struct trans, syscall_table):
14256 * proc-flags.c (struct trans): Constify.
14257 * proc-utils.h (procfs_note): Constify.
14258 * proc-why.c (struct trans): Constify.
14259 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
14260 (procfs_detach): Constify.
14261 * sol-thread.c (struct string_map): Constify.
14262 (td_err_string, td_state_string): Constify.
14263
14264 2017-04-05 Pedro Alves <palves@redhat.com>
14265
14266 * proc-api.c (procfs_filename): Don't initialize
14267 procfs_filename.
14268 (prepare_to_trace): Assume procfs_filename is non-NULL.
14269 (_initialize_proc_api): Give procfs_filename a default value here.
14270
14271 2017-04-05 Pedro Alves <palves@redhat.com>
14272
14273 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
14274 'cond_string' parameter.
14275 (extract_exception_regexp): Constify 'string' parameter.
14276 (catch_exception_command_1): Constify.
14277 * breakpoint.c (init_catchpoint)
14278 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
14279 parameter.
14280 (ep_parse_optional_if_clause, catch_fork_command_1)
14281 (catch_exec_command_1): Constify.
14282 * breakpoint.h (init_catchpoint): Constify 'cond_string'
14283 parameter.
14284 (ep_parse_optional_if_clause): Constify.
14285 * cli/cli-utils.c (remove_trailing_whitespace)
14286 (check_for_argument): Constify.
14287 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
14288 non-const overload.
14289 (check_for_argument): Likewise.
14290
14291 2017-04-05 Pedro Alves <palves@redhat.com>
14292
14293 * event-top.c (command_line_handler): Add cast to execute_command
14294 call.
14295 * record-btrace.c (cmd_record_btrace_bts_start)
14296 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
14297 (cmd_record_btrace_start): Add cast to execute_command call.
14298 * record-full.c (record_full_goto_insn):
14299 * record.c (record_start, record_stop): Add cast to
14300 execute_command_to_string calls.
14301 (cmd_record_start): Add cast to execute_command calls.
14302
14303 2017-04-05 Pedro Alves <palves@redhat.com>
14304
14305 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
14306 static inline function.
14307 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
14308 array and use gdb_PyArg_ParseTupleAndKeywords.
14309 * python/py-cmd.c (cmdpy_init): Likewise.
14310 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
14311 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
14312 (infpy_search_memory): Likewise.
14313 * python/py-objfile.c (objfpy_add_separate_debug_file)
14314 (gdbpy_lookup_objfile): Likewise.
14315 * python/py-symbol.c (gdbpy_lookup_symbol)
14316 (gdbpy_lookup_global_symbol): Likewise.
14317 * python/py-type.c (gdbpy_lookup_type): Likewise.
14318 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
14319 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
14320 Likewise.
14321
14322 2017-04-05 Pedro Alves <palves@redhat.com>
14323
14324 * python/python-internal.h (gdb_PyGetSetDef): New type.
14325 * python/py-block.c (block_object_getset)
14326 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
14327 * python/py-event.c (event_object_getset)
14328 (finish_breakpoint_object_getset): Likewise.
14329 * python/py-inferior.c (inferior_object_getset): Likewise.
14330 * python/py-infthread.c (thread_object_getset): Likewise.
14331 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
14332 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
14333 * python/py-objfile.c (objfile_getset): Likewise.
14334 * python/py-progspace.c (pspace_getset): Likewise.
14335 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
14336 Likewise.
14337 * python/py-record.c (recpy_record_getset): Likewise.
14338 * python/py-symbol.c (symbol_object_getset): Likewise.
14339 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
14340 Likewise.
14341 * python/py-type.c (type_object_getset, field_object_getset):
14342 Likewise.
14343 * python/py-value.c (value_object_getset): Likewise.
14344
14345 2017-04-05 Pedro Alves <palves@redhat.com>
14346
14347 * python/python-internal.h (gdb_PyObject_CallMethod)
14348 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
14349 New functions.
14350 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
14351 (PySys_GetObject, PySys_SetPath): New macros.
14352
14353 2017-04-05 Pedro Alves <palves@redhat.com>
14354
14355 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
14356 info_osdata_command.
14357 * osdata.c (info_osdata_command): Rename to ...
14358 (info_osdata): ... this. Constify 'type' parameter, and remove
14359 the 'from_tty' parameter. Accept NULL TYPE.
14360 (info_osdata_command): New function.
14361 * osdata.h (info_osdata_command): Remove declaration.
14362 (info_osdata): New declaration.
14363
14364 2017-04-05 Pedro Alves <palves@redhat.com>
14365
14366 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
14367 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
14368 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
14369 parameter.
14370 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
14371 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
14372 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
14373 parameter.
14374 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
14375 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
14376 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
14377 (mi_cmd_file_list_exec_source_files)
14378 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
14379 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
14380 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
14381 parameter.
14382 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
14383 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
14384 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
14385 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
14386 (mi_cmd_stack_info_frame): Constify 'command' parameter.
14387 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
14388 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
14389 'command' parameter.
14390 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
14391 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
14392 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
14393 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
14394 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
14395 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
14396 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
14397 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
14398 (mi_cmd_var_set_update_range): Constify 'command' parameter.
14399 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
14400 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
14401 parameter.
14402 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
14403 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
14404 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
14405 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
14406 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
14407 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
14408 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
14409 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
14410 (mi_cmd_data_list_changed_registers)
14411 (mi_cmd_data_write_register_values)
14412 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
14413 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
14414 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
14415 (mi_cmd_list_features, mi_cmd_list_target_features)
14416 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
14417 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
14418 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
14419 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
14420 (mi_cmd_trace_frame_collected): Constify 'command'
14421 parameter.
14422 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
14423 'command' parameter.
14424
14425 2017-04-05 Pedro Alves <palves@redhat.com>
14426
14427 * ada-lang.c (ada_completer_word_break_characters): Now a const
14428 array.
14429 (ada_get_gdb_completer_word_break_characters): Constify.
14430 * completer.c (gdb_completer_command_word_break_characters)
14431 (gdb_completer_file_name_break_characters)
14432 (gdb_completer_quote_characters): Now const arrays.
14433 (get_gdb_completer_quote_characters): Constify.
14434 (set_rl_completer_word_break_characters): New function.
14435 (set_gdb_completion_word_break_characters)
14436 (complete_line_internal): Use it.
14437 * completer.h (get_gdb_completer_quote_characters): Constify.
14438 (set_rl_completer_word_break_characters): Declare.
14439 * f-lang.c (f_word_break_characters): Constify.
14440 * language.c (default_word_break_characters): Constify.
14441 * language.h (language_defn::la_word_break_characters): Constify.
14442 (default_word_break_characters): Constify.
14443 * top.c (init_main): Use set_rl_completer_word_break_characters.
14444
14445 2017-04-05 Pedro Alves <palves@redhat.com>
14446
14447 * aix-thread.c (aix_thread_pid_to_str)
14448 (aix_thread_extra_thread_info): Constify.
14449 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
14450 * bsd-uthread.c (bsd_uthread_extra_thread_info)
14451 (bsd_uthread_pid_to_str): Constify.
14452 * corelow.c (core_pid_to_str): Constify.
14453 * darwin-nat.c (darwin_pid_to_str): Constify.
14454 * fbsd-nat.c (fbsd_pid_to_str): Constify.
14455 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
14456 Constify.
14457 * gnu-nat.c (gnu_pid_to_str): Constify.
14458 * go32-nat.c (go32_pid_to_str): Constify.
14459 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
14460 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
14461 * inferior.c (inferior_pid_to_str): Constify.
14462 * linux-nat.c (linux_nat_pid_to_str): Constify.
14463 * linux-tdep.c (linux_core_pid_to_str): Constify.
14464 * linux-thread-db.c (thread_db_pid_to_str)
14465 (thread_db_extra_thread_info): Constify.
14466 * nto-tdep.c (nto_extra_thread_info): Constify.
14467 * nto-tdep.h (nto_extra_thread_info): Constify.
14468 * obsd-nat.c (obsd_pid_to_str): Constify.
14469 * procfs.c (procfs_pid_to_str): Constify.
14470 * ravenscar-thread.c (ravenscar_extra_thread_info)
14471 (ravenscar_pid_to_str): Constify.
14472 * remote-sim.c (gdbsim_pid_to_str): Constify.
14473 * remote.c (remote_threads_extra_info, remote_pid_to_str):
14474 Constify.
14475 * sol-thread.c (solaris_pid_to_str): Constify.
14476 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
14477 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
14478 * target.c (default_pid_to_str, target_pid_to_str)
14479 (normal_pid_to_str, default_pid_to_str): Constify.
14480 * target.h (target_ops::to_pid_to_str)
14481 (target_ops::to_extra_thread_info): Constify.
14482 (target_pid_to_str, normal_pid_to_str): Constify.
14483 * windows-nat.c (windows_pid_to_str): Constify.
14484 * gdbarch.sh (core_pid_to_str): Constify.
14485 * target-delegates.c: Regenerate.
14486 * gdbarch.h, gdbarch.c: Regenerate.
14487
14488 2017-04-05 Pedro Alves <palves@redhat.com>
14489
14490 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
14491 the memory of the temporary warning_pre_print override.
14492 * utils.c (warning_pre_print): Constify.
14493 * utils.h (warning_pre_print): Constify.
14494
14495 2017-04-05 Pedro Alves <palves@redhat.com>
14496
14497 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
14498 (shell_command): New function.
14499 (make_command): Use std::string.
14500 (init_cli_cmds): Register shell_command instead of shell_escape.
14501
14502 2017-04-05 Pedro Alves <palves@redhat.com>
14503
14504 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
14505 * tracepoint.c (default_collect): Don't initialize.
14506
14507 2017-04-05 Pedro Alves <palves@redhat.com>
14508
14509 * macroexp.c (macro_buffer::shared): Now a bool.
14510 (init_buffer): Update.
14511 (init_shared_buffer): Constify 'addr' parameter.
14512 (substitute_args, expand, macro_expand, macro_expand_next): Remove
14513 casts.
14514
14515 2017-04-05 Pedro Alves <palves@redhat.com>
14516
14517 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
14518 * disasm.c (set_disassembler_options): Constify local.
14519 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
14520
14521 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
14522
14523 PR gdb/21352
14524 * tracefile.c (tsave_command): Fix argument parsing for '-r'
14525 option.
14526
14527 2017-04-05 Yao Qi <yao.qi@linaro.org>
14528
14529 * frame.c (frame_unwind_register_unsigned): Call
14530 frame_unwind_register_value.
14531
14532 2017-04-05 Yao Qi <yao.qi@linaro.org>
14533
14534 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
14535 Use gdb_test_multiple, and don't match anchor.
14536
14537 2017-04-05 Pedro Alves <palves@redhat.com>
14538
14539 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
14540 (Write After Approval): Remove Simon Marchi.
14541
14542 2017-04-05 Pedro Alves <palves@redhat.com>
14543
14544 * common/gdb_optional.h (optional::optional): Make constexpr and
14545 initialize m_dummy.
14546
14547 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14548
14549 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14550 (amd64fbsd_jmp_buf_reg_offset): Remove.
14551 (amd64fbsd_supply_uthread): Remove function.
14552 (amd64fbsd_collect_uthread): Remove function.
14553 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
14554 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
14555 (x86_64-*-freebsd*): Remove bsd-uthread.o.
14556 (fbsd-nat.c): Update comment.
14557 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
14558 (i386fbsd_jmp_buf_reg_offset): Remove.
14559 (i386fbsd_supply_uthread): Remove function.
14560 (i386fbsd_collect_uthread): Remove function.
14561 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
14562
14563 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14564
14565 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
14566 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
14567 * NEWS: Mention that support for FreeBSD/alpha was removed.
14568 * alpha-fbsd-tdep.c: Delete file.
14569 * config/alpha/fbsd.mh: Delete file.
14570 * configure.host: Delete alpha*-*-freebsd* and
14571 alpha*-*-kfreebsd*-gnu.
14572 * configure.tgt: Delete alpha*-*-freebsd* and
14573 alpha*-*-kfreebsd*-gnu.
14574
14575 2017-04-04 John Baldwin <jhb@FreeBSD.org>
14576
14577 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
14578 amd64bsd_store_inferior_registers): Use ptid from regcache.
14579
14580 2017-04-04 Pedro Alves <palves@redhat.com>
14581
14582 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
14583 data fields, make them private and add "m_" prefixes.
14584 (lnp_state_machine::lnp_state_machine): New ctor.
14585 (record_line, check_line_address, handle_set_discriminator)
14586 (handle_set_address, handle_advance_pc, handle_special_opcode)
14587 (handle_advance_line, handle_set_file, handle_negate_stmt)
14588 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
14589 (end_sequence, advance_line): New methods.
14590 (m_gdbarch, m_record_lines_p): New fields.
14591 (lnp_reader_state): Delete.
14592 (dwarf_record_line): Rename to ...
14593 (lnp_state_machine::record_line): ... adjust.
14594 (init_lnp_state_machine): Delete.
14595 (lnp_state_machine::lnp_state_machine): New.
14596 (check_line_address): Rename to ...
14597 (lnp_state_machine::check_line_address): This.
14598 (dwarf_decode_lines_1): Remove reference to "reader_state".
14599 Adjust lnp_state_machine having a non-default ctor. Use bool.
14600 State machine internal state manipulation moved to
14601 lnp_state_machine methods.
14602
14603 2017-04-04 Pedro Alves <palves@redhat.com>
14604
14605 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14606 unittests/offset-type-selftests.c.
14607 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
14608 * common/offset-type.h: New file.
14609 * common/preprocessor.h: New file.
14610 * common/traits.h: New file.
14611 * common/valid-expr.h: New file.
14612 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
14613 sect_offset and cu_offset strong typedefs throughout.
14614 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
14615 typedefs throughout.
14616 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
14617 sect_offset and cu_offset strong typedefs throughout.
14618 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
14619 typedefs throughout.
14620 * gdbtypes.h: Include "common/offset-type.h".
14621 (cu_offset): Now an offset type (strong typedef) instead of a
14622 struct.
14623 (sect_offset): Likewise.
14624 (union call_site_parameter_u): Rename "param_offset" field to
14625 "param_cu_off".
14626 * unittests/offset-type-selftests.c: New file.
14627
14628 2017-04-04 Pedro Alves <palves@redhat.com>
14629
14630 * common/underlying.h: New file.
14631 * dwarf2read.c: Include "common/gdb_optional.h" and
14632 "common/underlying.h".
14633 (dir_index, file_name_index): New types.
14634 (file_entry): Use them.
14635 (file_entry::include): Use to_underlying.
14636 (line_header::add_file_name): Use dir_index.
14637 (read_formatted_entries): Use gdb::optional. Read form before
14638 writting to file_entry.
14639 (dwarf_decode_line_header): Use dir_index.
14640 (lnp_state_machine::current_file): Use to_underlying.
14641 (lnp_state_machine::file): Change type to file_name_index.
14642 (dwarf_record_line): Use to_underlying.
14643 (init_lnp_state_machine): Use file_name_index.
14644 (dwarf_decode_lines_1): Use dir_index and file_name_index.
14645
14646 2017-04-04 Pedro Alves <palves@redhat.com>
14647
14648 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
14649 operator bool, has_value and get methods.
14650
14651 2017-04-04 Pedro Alves <palves@redhat.com>
14652
14653 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
14654 fields.
14655 (line_header): Initialize all data fields. Change type of
14656 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
14657 Change type of include_dirs to std::vector<const char *>. Remove
14658 num_include_dirs, include_dirs_size. Change type of file_names to
14659 std::vector<file_entry>. Remove num_file_names, file_names_size.
14660 (line_header::line_header): New.
14661 (line_header::add_include_dir, line_header::add_file_name): New
14662 methods.
14663 (line_header::include_dir_at): Remove NULL check.
14664 (line_header::file_name_at): Add const overload.
14665 (line_header_up): New unique_ptr typedef.
14666 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
14667 std::vector. Remove free_line_header call.
14668 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
14669 free_line_header call.
14670 (free_cu_line_header): Delete.
14671 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
14672 (setup_type_unit_groups): Use line_header_up instead of cleanups.
14673 Adjust to use std::vector.
14674 (free_line_header): Delete.
14675 (free_line_header_voidp): Use delete.
14676 (add_include_dir): Replace with ...
14677 (line_header::add_include_dir): ... this method. Use std::vector.
14678 (add_file_name): Replace with ...
14679 (line_header::add_file_name): ... this method. Use std::vector.
14680 (add_include_dir_stub): Delete.
14681 (read_formatted_entries): Remove memset.
14682 (dwarf_decode_line_header): Return a line_header_up instead of a
14683 raw pointer. Remove cleanup handling. Pass lambdas to
14684 read_formatted_entries. Adjust to use line_header methods.
14685 (dwarf_decode_lines_1): Adjust to use line_header methods.
14686 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
14687 use std::vector.
14688
14689 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
14690
14691 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
14692 instead of struct ptid.
14693
14694 2017-05-04 Alan Hayward <alan.hayward@arm.com>
14695
14696 * frame.c (get_frame_register_bytes): Unwind using value.
14697 (put_frame_register_bytes): Likewise.
14698
14699 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
14700
14701 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
14702 aggregate-like.
14703
14704 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
14705
14706 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
14707
14708 2017-03-29 Yao Qi <yao.qi@linaro.org>
14709
14710 * gdbthread.h (struct thread_info): Declare constructor and
14711 destructor. Add some in-class member initializers.
14712 * thread.c (free_thread): Remove.
14713 (init_thread_list): Call delete instead of free_thread.
14714 (new_thread): Call thread_info constructor.
14715 (thread_info::thread_info): New function.
14716 (thread_info::~thread_info): New function.
14717 (delete_thread_1): Call delete instead of free_thread.
14718 (make_cleanup_restore_current_thread): Move tp and frame to
14719 inner block.
14720
14721 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14722
14723 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
14724 (arc_skip_prologue): Likewise.
14725 (arc_make_frame_cache): Likewise.
14726 (arc_pv_get_operand): New function.
14727 (arc_is_in_prologue): Likewise.
14728 (arc_analyze_prologue): Likewise.
14729 (arc_print_frame_cache): Likewise.
14730 (MAX_PROLOGUE_LENGTH): New constant.
14731
14732 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14733
14734 * configure.tgt: Add arc-insn.o.
14735 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
14736 (dump_arc_instruction_command): New function.
14737 (arc_fprintf_disasm): Likewise.
14738 (arc_disassemble_info): Likewise.
14739 (arc_insn_get_operand_value): Likewise.
14740 (arc_insn_get_operand_value_signed): Likewise.
14741 (arc_insn_get_memory_base_reg): Likewise.
14742 (arc_insn_get_memory_offset): Likewise.
14743 (arc_insn_get_branch_target): Likewise.
14744 (arc_insn_dump): Likewise.
14745 (arc_insn_get_linear_next_pc): Likewise.
14746 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
14747 (arc_disassemble_info): Likewise.
14748 (arc_insn_get_branch_target): Likewise.
14749 (arc_insn_get_linear_next_pc): Likewise.
14750 * NEWS: Mention new "maint print arc arc-instruction".
14751
14752 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14753
14754 * arc-tdep (maintenance_print_arc_list): New variable.
14755 (maintenance_print_arc_command): New function.
14756
14757 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
14758
14759 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
14760 Add "limm" and "reserved".
14761 (arc_cannot_fetch_register, arc_cannot_store_register): Add
14762 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
14763 * arc-tdep.h (arc_regnum): Likewise.
14764
14765 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14766
14767 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14768 for THREADPTR register.
14769 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
14770 register.
14771 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
14772 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
14773 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
14774
14775 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14776
14777 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
14778 registers above gdbarch_num_regs (gdbarch) as privileged in
14779 call0 ABI.
14780
14781 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14782
14783 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
14784 for a single specified register or for all registers in
14785 a0_base..a0_base + C0_NREGS range.
14786 (supply_gregset_reg): Call regcache_raw_supply for a single
14787 specified register or for all registers in a0_base..a0_base +
14788 C0_NREGS range.
14789
14790 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14791
14792 * arch/xtensa.h (C0_NREGS): Add definition.
14793 * xtensa-tdep.c (C0_NREGS): Remove definition.
14794
14795 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
14796
14797 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
14798 Drop xtensa_default_isa initialization.
14799 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
14800
14801 2017-03-27 Pedro Alves <palves@redhat.com>
14802
14803 * dwarf2read.c (file_entry) <dir_index>: Add comment.
14804 (file_entry::include_dir): New method.
14805 (line_header::include_dir_at, line_header::file_name_at): New
14806 methods.
14807 (setup_type_unit_groups, setup_type_unit_groups)
14808 (psymtab_include_file_name): Simplify using the new methods.
14809 (lnp_state_machine) <the_line_header>: New field.
14810 <file>: Add comment.
14811 (lnp_state_machine::current_file): New method.
14812 (dwarf_record_line): Simplify using the new methods.
14813 (init_lnp_state_machine): Initialize the "the_line_header" field.
14814 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
14815 Simplify using the new methods.
14816
14817 2017-03-27 Pedro Alves <palves@redhat.com>
14818
14819 * cp-name-parser.y (make_empty): Delete.
14820 (demangler_special, nested_name, ptr_operator, array_indicator)
14821 (direct_declarator, declarator_1): Use fill_comp instead of
14822 make_empty.
14823
14824 2017-03-27 Pedro Alves <palves@redhat.com>
14825
14826 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
14827 to ATTRIBUTE_PRINTF.
14828 * solib-target.c (library_list_start_list): Print "string" not
14829 "version".
14830 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
14831 gdb_xml_error call.
14832
14833 2017-03-27 Pedro Alves <palves@redhat.com>
14834
14835 * dwarf2read.c (struct file_and_directory): New.
14836 (dwarf2_get_dwz_file): Adjust to use std::string.
14837 (dw2_get_file_names_reader): Adjust to use file_and_directory.
14838 (find_file_and_directory): Adjust to return a file_and_directory
14839 object.
14840 (read_file_scope): Adjust to use file_and_directory. Remove
14841 make_cleanup/do_cleanups calls.
14842 (open_and_init_dwp_file): Adjust to use std::string. Remove
14843 make_cleanup/do_cleanups calls.
14844 * python/python.c (do_start_initialization): Adjust to ldirname
14845 returning a std::string.
14846 * utils.c (ldirname): Now returns a std::string.
14847 * utils.h (ldirname): Change return type to std::string.
14848 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
14849 returning a std::string.
14850 * xml-tdesc.c (file_read_description_xml): Likewise.
14851
14852 2017-03-24 Alan Hayward <alan.hayward@arm.com>
14853
14854 * regcache.c (regcache_debug_print_register): New function.
14855 * regcache.h (regcache_debug_print_register): New declaration.
14856 * target.c (debug_print_register): Remove.
14857 (target_fetch_registers): Call regcache_debug_print_register.
14858 (target_store_registers): Likewise.
14859
14860 2017-03-24 Pádraig Brady <pbrady@fb.com>
14861
14862 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
14863 reference beyond the 'lh->include_dirs' array before accessing to
14864 it.
14865 (psymtab_include_file_name): Likewise.
14866 (dwarf_decode_lines_1): Likewise.
14867 (dwarf_decode_lines): Likewise.
14868 (file_file_name): Likewise.
14869
14870 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
14871
14872 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
14873 inferior_ptid.
14874 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14875 ps_lsetfpregs): Likewise.
14876 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
14877 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
14878 ps_lsetfpregs): Likewise.
14879 * target.c (target_fetch_registers, target_store_registers):
14880 Remove asserts.
14881
14882 2017-03-23 Alan Hayward <alan.hayward@arm.com>
14883
14884 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
14885
14886 2017-03-23 Yao Qi <yao.qi@linaro.org>
14887
14888 * aarch64-tdep.c (aarch64_process_record_test): Declare.
14889 (_initialize_aarch64_tdep): Register it.
14890 (aarch64_record_load_store): Handle PRFM instruction.
14891 (aarch64_process_record_test): New function.
14892
14893 2017-03-23 Yao Qi <yao.qi@linaro.org>
14894
14895 * aarch64-tdep.c (aarch64_record_load_store): Fix code
14896 indentation.
14897
14898 2017-03-23 Yao Qi <yao.qi@linaro.org>
14899
14900 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
14901
14902 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14903
14904 python/python.c (do_start_initialization): Fix memory leak.
14905
14906 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
14907
14908 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
14909 using get_ptrace_pid.
14910 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
14911 inferior_ptid.
14912 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
14913 inferior_ptid instead of pid.
14914
14915 2017-03-22 Yao Qi <yao.qi@linaro.org>
14916
14917 * aarch64-tdep.c: Wrap locally used classes in anonymous
14918 namespace.
14919 * arm-tdep.c: Likewise.
14920 * linespec.c: Likewise.
14921 * ui-out.c: Likewise.
14922
14923 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
14924
14925 PR gdb/19637
14926 * python/lib/gdb/printer/bound_registers.py: Import sys.
14927
14928 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14929
14930 * windows-nat.c (do_windows_fetch_inferior_registers): Add
14931 windows_thread_info parameter and use it instead of
14932 current_thread.
14933 (windows_fetch_inferior_registers): Don't set current_thread,
14934 pass the thread to do_windows_fetch_inferior_registers. Use
14935 ptid from regcache instead of inferior_ptid.
14936 (do_windows_store_inferior_registers): Add windows_thread_info
14937 parameter and use it instead of current_thread.
14938 (windows_store_inferior_registers): Don't set current_thread,
14939 pass the thread to do_windows_store_inferior_registers. Use
14940 ptid from regcache instead of inferior_ptid.
14941
14942 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
14943
14944 * ser-mingw.c (ser_windows_raw): Remove reference to
14945 struct serial::current_timeout.
14946
14947 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
14948
14949 PR tdep/20928
14950 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
14951 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
14952 (sparc64_fsr_type): Fix %fsr decoding.
14953
14954 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
14955
14956 * python/py-record-btrace.c (btpy_insn_data): Change return type
14957 for Python 2.
14958
14959 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14960
14961 * spu-linux-nat.c (spu_fetch_inferior_registers,
14962 spu_store_inferior_registers): Use ptid from regcache, set and
14963 restore inferior_ptid.
14964 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
14965 Likewise.
14966
14967 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
14968
14969 * i386-linux-nat.c (fetch_register, store_register,
14970 i386_linux_fetch_inferior_registers,
14971 i386_linux_store_inferior_registers): Use ptid from regcache.
14972 * ia64-linux-nat.c (ia64_linux_fetch_register,
14973 ia64_linux_store_register): Likewise.
14974 * inf-ptrace.c (inf_ptrace_fetch_register,
14975 inf_ptrace_store_register): Likewise.
14976 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
14977 m32r_linux_store_inferior_registers): Likewise.
14978 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
14979 m68kbsd_store_inferior_registers): Likewise.
14980 * m68k-linux-nat.c (fetch_register, store_register,
14981 m68k_linux_fetch_inferior_registers,
14982 m68k_linux_store_inferior_registers): Likewise.
14983 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
14984 m88kbsd_store_inferior_registers): Likewise.
14985 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
14986 mips_fbsd_store_inferior_registers): Likewise.
14987 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
14988 mips64_linux_regsets_store_registers): Likewise.
14989 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
14990 mipsnbsd_store_inferior_registers): Likewise.
14991 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
14992 mips64obsd_store_inferior_registers): Likewise.
14993 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
14994 Likewise.
14995 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
14996 ppcfbsd_store_inferior_registers): Likewise.
14997 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
14998 ppc_linux_store_inferior_registers): Likewise.
14999 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
15000 ppcnbsd_store_inferior_registers): Likewise.
15001 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
15002 ppcobsd_store_registers): Likewise.
15003 * procfs.c (procfs_fetch_registers, procfs_store_registers):
15004 Likewise.
15005 * ravenscar-thread.c (ravenscar_fetch_registers,
15006 ravenscar_store_registers, ravenscar_prepare_to_store):
15007 Likewise.
15008 * record-btrace.c (record_btrace_fetch_registers,
15009 record_btrace_store_registers, record_btrace_prepare_to_store):
15010 Likewise.
15011 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
15012 Lookup inferior using ptid from regcache, instead of
15013 current_inferior.
15014 * remote.c (remote_fetch_registers, remote_store_registers): Use
15015 ptid from regcache.
15016 * rs6000-nat.c (fetch_register, store_register): Likewise.
15017 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
15018 s390_linux_store_inferior_registers): Likewise.
15019 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
15020 shnbsd_store_inferior_registers): Likewise.
15021 * sol-thread.c (sol_thread_fetch_registers,
15022 sol_thread_store_registers): Likewise.
15023 * sparc-nat.c (sparc_fetch_inferior_registers,
15024 sparc_store_inferior_registers): Likewise.
15025 * tilegx-linux-nat.c (fetch_inferior_registers,
15026 store_inferior_registers): Likewise.
15027 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
15028 vaxbsd_store_inferior_registers): Likewise.
15029 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
15030 store_xtregs): Likewise.
15031
15032 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15033
15034 PR gdb/14441
15035 * NEWS: Mention support for rvalue references in GDB and python.
15036 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
15037 supports both lvalue and rvalue references.
15038
15039 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15040
15041 PR gdb/14441
15042 * gdbtypes.c (rank_one_type): Implement overloading
15043 resolution rules regarding rvalue references.
15044
15045 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15046
15047 PR gdb/14441
15048 * aarch64-tdep.c (aarch64_type_align)
15049 (aarch64_extract_return_value, aarch64_store_return_value): Change
15050 lvalue reference type checks to general reference type checks.
15051 * amd64-tdep.c (amd64_classify): Likewise.
15052 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
15053 Likewise.
15054 * arm-tdep.c (arm_type_align, arm_extract_return_value)
15055 (arm_store_return_value): Likewise.
15056 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
15057 * c-typeprint.c (c_print_type): Likewise.
15058 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
15059 (cplus_number_of_children, cplus_describe_child): Likewise.
15060 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
15061 * completer.c (expression_completer): Likewise.
15062 * cp-support.c (make_symbol_overload_list_adl_namespace):
15063 Likewise.
15064 * darwin-nat-info.c (info_mach_region_command): Likewise.
15065 * dwarf2loc.c (entry_data_value_coerce_ref)
15066 (value_of_dwarf_reg_entry): Likewise.
15067 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
15068 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
15069 Likewise.
15070 * findvar.c (extract_typed_address, store_typed_address):
15071 Likewise.
15072 * gdbtypes.c (rank_one_type): Likewise.
15073 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
15074 * infcall.c (value_arg_coerce): Likewise.
15075 * language.c (pointer_type): Likewise.
15076 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
15077 Likewise.
15078 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
15079 * mn10300-tdep.c (mn10300_type_align): Likewise.
15080 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
15081 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
15082 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
15083 Likewise.
15084 * printcmd.c (print_formatted, x_command): Likewise.
15085 * python/py-type.c (typy_get_composite, typy_template_argument):
15086 Likewise.
15087 * python/py-value.c (valpy_referenced_value)
15088 (valpy_get_dynamic_type, value_has_field): Likewise.
15089 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
15090 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
15091 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
15092 * spu-tdep.c (spu_scalar_value_p): Likewise.
15093 * symtab.c (lookup_symbol_aux): Likewise.
15094 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
15095 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
15096 Likewise.
15097 * valops.c (value_cast_pointers, value_cast)
15098 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
15099 (value_struct_elt, value_struct_elt_bitpos)
15100 (value_find_oload_method_list, find_overload_match)
15101 (value_rtti_indirect_type): Likewise.
15102 * valprint.c (val_print_scalar_type_p, generic_val_print):
15103 Likewise.
15104 * value.c (value_actual_type, value_as_address, unpack_long)
15105 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
15106 (coerce_ref): Likewise.
15107 * varobj.c (varobj_get_value_type): Likewise.
15108
15109 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15110
15111 PR gdb/14441
15112 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
15113 table of constants.
15114 * python/lib/gdb/command/explore.py: Support exploring values
15115 of rvalue reference types.
15116 * python/lib/gdb/types.py: Implement get_basic_type() for
15117 rvalue reference types.
15118 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
15119 constant.
15120 * python/py-value.c (valpy_getitem): Add an rvalue reference
15121 check.
15122 (valpy_reference_value): Add new parameter "refcode".
15123 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
15124 New wrappers for valpy_reference_value().
15125 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15126 (gdbpy_invoke_xmethod): Likewise.
15127
15128 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15129
15130 PR gdb/14441
15131 * dwarf2read.c (process_die, read_type_die_1): Handle the
15132 DW_TAG_rvalue_reference_type DIE.
15133 (read_tag_reference_type): Add new parameter "refcode".
15134
15135 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15136
15137 PR gdb/14441
15138 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
15139 (c_type_print_modifier, c_type_print_varspec_suffix)
15140 (c_type_print_base): Support printing rvalue reference types.
15141 * c-valprint.c (c_val_print, c_value_print): Support printing
15142 rvalue reference values.
15143
15144 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15145
15146 PR gdb/14441
15147 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
15148 typename.
15149 * cp-support.c (replace_typedefs): Handle
15150 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
15151 * python/py-type.c (typy_lookup_type): Likewise.
15152
15153 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15154
15155 PR gdb/14441
15156 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
15157 * parse.c (insert_type): Change assert statement.
15158 (follow_types): Handle rvalue reference types.
15159 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
15160 constant.
15161
15162 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15163
15164 PR gdb/14441
15165 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
15166 value_ref() interface.
15167 * c-valprint.c (c_value_print): Likewise.
15168 * infcall.c (value_arg_coerce): Likewise.
15169 * python/py-value.c (valpy_reference_value): Likewise.
15170 * valops.c (value_cast, value_reinterpret_cast)
15171 (value_dynamic_cast, typecmp): Likewise.
15172 (value_ref): Parameterize by kind of return value reference type.
15173 * value.h (value_ref): Add new parameter "refcode".
15174
15175 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15176
15177 PR gdb/14441
15178 * dwarf2read.c (read_tag_reference_type): Use
15179 lookup_lvalue_reference_type() instead of lookup_reference_type().
15180 * eval.c (evaluate_subexp_standard): Likewise.
15181 * f-exp.y: Likewise.
15182 * gdbtypes.c (make_reference_type, lookup_reference_type):
15183 Generalize with rvalue reference types.
15184 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
15185 convenience wrappers for lookup_reference_type().
15186 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
15187 reference kind parameter.
15188 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
15189 wrappers for lookup_reference_type().
15190 * guile/scm-type.c (gdbscm_type_reference): Use
15191 lookup_lvalue_reference_type() instead of lookup_reference_type().
15192 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
15193 * parse.c (follow_types): Likewise.
15194 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
15195 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
15196 Likewise.
15197 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
15198 (gdbpy_invoke_xmethod): Likewise.
15199 * stabsread.c: Provide extra argument to make_reference_type()
15200 call.
15201 * valops.c (value_ref, value_rtti_indirect_type): Use
15202 lookup_lvalue_reference_type() instead of lookup_reference_type().
15203
15204 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
15205
15206 PR gdb/14441
15207 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
15208 (TYPE_IS_REFERENCE): New macro.
15209 (struct type): Add rvalue_reference_type field.
15210 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
15211
15212 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15213
15214 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
15215 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
15216 New function definition.
15217 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
15218 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
15219 New function declaration.
15220 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
15221 * mi/mi-interp.h: New file.
15222 * solib.c (info_sharedlibrary_command): Replace for loop with
15223 ALL_SO_LIBS macro
15224 * solib.h (update_solib_list): New function declaration.
15225 (so_list_head): Move macro.
15226 * solist.h (ALL_SO_LIBS): New macro.
15227
15228 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
15229
15230 * infcmd.c (post_create_inferior): Remove unused argument in
15231 call to solib_add.
15232 * remote.c (remote_start_remote): Likewise.
15233 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
15234 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
15235 (enable_break): Likewise.
15236 * solib.c (update_solib_list): Remove unused target argument
15237 and its documentation.
15238 (solib_add): Remove unused target argument. Remove unused
15239 argument in call to update_solib_list.
15240 (info_sharedlibrary_command): Remove unused argument in call
15241 to update_solib_list.
15242 (sharedlibrary_command): Remove unused argument in call to
15243 solib_add.
15244 (handle_solib_event): Likewise.
15245 (reload_shared_libraries): Likewise.
15246 * solib.h (solib_add): Remove unused target argument.
15247
15248 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
15249
15250 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
15251 (s390_displaced_step_fixup): Cover relative branches with the
15252 default fixup handling. This fixes lack of support for some
15253 relative branch instructions.
15254
15255 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15256
15257 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
15258 ptid from regcache.
15259
15260 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15261
15262 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
15263 i386_darwin_store_inferior_registers): Use ptid from regcache.
15264
15265 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15266
15267 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
15268 i386bsd_store_inferior_registers): Use ptid from regcache.
15269
15270 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15271
15272 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
15273 hppaobsd_store_registers): Use ptid from regcache.
15274
15275 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15276
15277 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
15278 hppanbsd_store_registers): Use ptid from regcache.
15279
15280 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15281
15282 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
15283 from regcache. Use get_ptrace_pid.
15284
15285 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15286
15287 * corelow.c (get_core_register_section): Use ptid from regcache,
15288 update doc.
15289
15290 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15291
15292 * bsd-uthread.c (bsd_uthread_fetch_registers,
15293 bsd_uthread_store_registers): Use ptid from regcache, set and
15294 restore inferior_ptid.
15295
15296 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15297
15298 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
15299 fetch_fp_regs, store_register, store_regs, store_fp_register,
15300 store_fp_regs): Use ptid from regcache.
15301
15302 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
15303
15304 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
15305 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
15306 store_vfp_regs): Use ptid from regcache.
15307
15308 2017-03-17 Pedro Alves <palves@redhat.com>
15309
15310 PR remote/21188
15311 * ser-base.c (ser_base_wait_for): Add comment.
15312 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
15313 version.
15314 * ser-unix.c (hardwire_raw): Remove reference to
15315 scb->current_timeout.
15316 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
15317 (hardwire_ops): Install ser_base_readchar instead of
15318 hardwire_readchar.
15319 * serial.h (struct serial) <current_timeout, timeout_remaining>:
15320 Remove fields.
15321
15322 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
15323
15324 PR gdb/19637
15325 * python/lib/gdb/printer/bound_registers.py: Add support for
15326 Python 3.
15327
15328 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
15329
15330 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
15331 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
15332 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
15333 byte_offset to subobj_byte_offset. Fix the handling of
15334 DWARF_VALUE_STACK on big-endian targets when coming via an
15335 implicit pointer.
15336 (dwarf2_evaluate_loc_desc): Adjust call to
15337 dwarf2_evaluate_loc_desc_full.
15338 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
15339 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
15340
15341 2017-03-16 Yao Qi <yao.qi@linaro.org>
15342
15343 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
15344 and REVSH instructions.
15345
15346 2017-03-16 Yao Qi <yao.qi@linaro.org>
15347
15348 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
15349 (arm_record_test): Declare.
15350 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
15351 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
15352 align with the manual.
15353 (thumb_record_misc): Adjust the code order to align with the
15354 manual.
15355 (thumb2_record_decode_insn_handler): Fix instruction matching.
15356 (instruction_reader_thumb): New class.
15357 (arm_record_test): New function.
15358
15359 2017-03-16 Yao Qi <yao.qi@linaro.org>
15360
15361 * arm-tdep.c (abstract_memory_reader): New class.
15362 (instruction_reader): New class.
15363 (extract_arm_insn): Add argument 'reader'. Callers updated.
15364 (decode_insn): Likewise.
15365
15366 2017-03-16 Doug Evans <dje@google.com>
15367
15368 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
15369 member. Change type of TYPE member to SCM. All uses updated.
15370 (lsscm_make_lazy_string_smob): Add assert.
15371 (lsscm_make_lazy_string): Flag bad length values.
15372 (lsscm_elt_type): New function.
15373 (gdbscm_lazy_string_to_value): Rewrite to use
15374 lsscm_safe_lazy_string_to_value.
15375 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
15376 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
15377 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
15378 in incoming type.
15379 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15380 * guile/scm-type.c (tyscm_scm_to_type): New function.
15381
15382 2017-03-15 Doug Evans <dje@google.com>
15383
15384 PR python/17728, python/18439, python/18779
15385 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
15386 member. Change type of TYPE member to PyObject *. All uses updated.
15387 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
15388 (gdbpy_create_lazy_string_object): Flag bad length values.
15389 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
15390 Handle typedefs in incoming type.
15391 (stpy_lazy_string_elt_type): New function.
15392 (gdbpy_extract_lazy_string): Call it.
15393 * python/py-value.c (valpy_lazy_string): Flag bad length values.
15394 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
15395 typedefs in incoming type.
15396
15397 2017-03-16 Doug Evans <dje@google.com>
15398
15399 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
15400 * guile/scm-type.c (tyscm_scm_to_type): New function.
15401
15402 2017-03-16 Jiong Wang <jiong.wang@arm.com>
15403
15404 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
15405 "ULONGEST" for "skip".
15406
15407 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15408
15409 PR gdb/21220
15410 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
15411 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
15412 (inf_ptrace_peek_poke): ...here. New function. Now also loop
15413 over ptrace peek/poke until end of buffer or error.
15414
15415 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
15416
15417 * parse.c (length_of_subexp): Make static.
15418 * parser-defs.h (length_of_subexp): Remove.
15419
15420 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
15421
15422 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
15423 as well.
15424
15425 2017-03-14 Pedro Alves <palves@redhat.com>
15426
15427 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
15428 (main): Use std::unique_ptr. Remove calls to
15429 cp_demangled_name_parse_free.
15430
15431 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15432
15433 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
15434 alphabsd_store_inferior_registers): Use regcache->ptid instead
15435 of inferior_ptid.
15436
15437 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15438
15439 * aix-thread.c (aix_thread_fetch_registers,
15440 aix_thread_store_registers): Use regcache->ptid instead of
15441 inferior_ptid.
15442
15443 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15444
15445 * aarch64-linux-nat.c (fetch_gregs_from_thread,
15446 store_gregs_to_thread, fetch_fpregs_from_thread,
15447 store_fpregs_to_thread): Use regcache->ptid instead of
15448 inferior_ptid.
15449
15450 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15451
15452 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
15453 amd64_linux_fetch_inferior_registers): Use regcache->ptid
15454 instead of inferior_ptid.
15455
15456 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15457
15458 * target.c (target_fetch_registers, target_store_registers): Add
15459 assert.
15460
15461 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
15462
15463 * regcache.h (regcache_get_ptid): New function.
15464 * regcache.c (regcache_get_ptid): New function.
15465
15466 2017-03-13 Mark Wielaard <mark@klomp.org>
15467
15468 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
15469
15470 2017-03-10 Keith Seitz <keiths@redhat.com>
15471
15472 PR c++/8218
15473 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
15474
15475 2017-03-08 Pedro Alves <palves@redhat.com>
15476
15477 PR gdb/18360
15478 * infrun.c (start_step_over, do_target_resume, resume)
15479 (restart_threads): Assert we're not resuming a thread that is
15480 meant to be stopped.
15481 (infrun_thread_stop_requested_callback): Delete.
15482 (infrun_thread_stop_requested): If the thread is internally
15483 stopped, queue a pending stop event and clear the thread's
15484 inline-frame state.
15485 (handle_stop_requested): New function.
15486 (handle_syscall_event, handle_inferior_event_1): Use
15487 handle_stop_requested.
15488 (handle_stop_requested): New function.
15489 (handle_signal_stop): Set the thread's stop_signal here instead of
15490 at caller.
15491 (finish_step_over): Clear step over info unconditionally.
15492 (handle_signal_stop): If the user had interrupted the event
15493 thread, consider the stop a random signal.
15494 (handle_signal_stop) <signal arrived while stepping over
15495 breakpoint>: Don't restart threads here.
15496 (stop_waiting): Don't clear step-over info here.
15497
15498 2017-03-08 Pedro Alves <palves@redhat.com>
15499
15500 PR 21206
15501 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
15502 goes to argument 2, not 1.
15503
15504 2017-03-08 Pedro Alves <palves@redhat.com>
15505
15506 PR cli/21218
15507 * top.c (gdb_readline_wrapper): Avoid passing NULL to
15508 display_gdb_prompt.
15509 (command_line_input): Add comment.
15510
15511 2017-03-08 Pedro Alves <palves@redhat.com>
15512
15513 PR tui/21216
15514 * tui/tui-file.c (tui_file::write): New.
15515 * tui/tui-file.h (tui_file): Override "write".
15516 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
15517 factored out from ...
15518 (tui_puts): ... here.
15519 (tui_putc): Use them.
15520 (tui_write): New function.
15521 * tui/tui-io.h (tui_write): Declare.
15522
15523 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
15524
15525 * Makefile.in (SFILES): Replace "environ.c" with
15526 "common/environ.c".
15527 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
15528 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
15529 to...
15530 * common/environ.c: ... here.
15531 * environ.h: Moved to...
15532 * common/environ.h: ... here.
15533
15534 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15535
15536 * gdbarch.sh (pstring_ptr): New static function.
15537 (gdbarch_disassembler_options): Use it.
15538 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
15539 not valid_disassembler_option->name.
15540 * gdbarch.c: Regenerate.
15541
15542 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
15543
15544 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
15545
15546 2017-03-07 Pedro Alves <palves@redhat.com>
15547
15548 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
15549
15550 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
15551
15552 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
15553 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
15554 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
15555 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
15556
15557 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
15558
15559 * xtensa-linux-nat.c (fetch_gregs): Remove const.
15560
15561 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
15562
15563 * remote.c (remote_add_target_side_commands): Use range-based
15564 for loop.
15565
15566 2017-03-03 Yao Qi <yao.qi@linaro.org>
15567
15568 PR gdb/21165
15569 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
15570 value is lazy.
15571 * valprint.c (common_val_print): Likewise.
15572
15573 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
15574
15575 * NEWS: Mention new set/show disassembler-options commands.
15576 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
15577 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
15578 (prospective_options): New static variable.
15579 (gdb_disassembler::gdb_disassembler): Initialize
15580 m_di.disassembler_options.
15581 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
15582 (get_disassembler_options): New function.
15583 (set_disassembler_options): Likewise.
15584 (set_disassembler_options_sfunc): Likewise.
15585 (show_disassembler_options_sfunc): Likewise.
15586 (disassembler_options_completer): Likewise.
15587 (_initialize_disasm): Likewise.
15588 * disasm.h (get_disassembler_options): New prototype.
15589 (set_disassembler_options): Likewise.
15590 * gdbarch.sh (gdbarch_disassembler_options): New variable.
15591 (gdbarch_verify_disassembler_options): Likewise.
15592 * gdbarch.c: Regenerate.
15593 * gdbarch.h: Likewise.
15594 * arm-tdep.c (num_disassembly_options): Delete.
15595 (set_disassembly_style): Likewise.
15596 (arm_disassembler_options): New static variable.
15597 (set_disassembly_style_sfunc): Convert short style name into long
15598 option name. Call set_disassembler_options.
15599 (show_disassembly_style_sfunc): New function.
15600 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
15601 set_gdbarch_verify_disassembler_options.
15602 (_initialize_arm_tdep): Delete regnames variable and update callers.
15603 (arm_disassembler_options): Initialize.
15604 (disasm_options): New variable.
15605 (num_disassembly_options): Rename from this...
15606 (num_disassembly_styles): ...to this. Compute by scanning through
15607 disasm_options.
15608 (valid_disassembly_styles): Initialize using disasm_options.
15609 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
15610 set_arm_regname_option.
15611 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
15612 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
15613 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
15614 set_gdbarch_verify_disassembler_options.
15615 * s390-tdep.c (s390_disassembler_options): New static variable.
15616 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
15617 set_gdbarch_verify_disassembler_options.
15618
15619 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15620
15621 * remote.c (remote_add_target_side_condition): Remove "struct"
15622 keyword from range-based for loop.
15623
15624 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
15625
15626 * remote.c (remote_add_target_side_condition): Use range-based
15627 for loop. Update comment.
15628
15629 2017-02-27 Yao Qi <yao.qi@linaro.org>
15630
15631 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
15632
15633 2017-02-26 Alan Hayward <alan.hayward@arm.com>
15634
15635 * regcache.c (regcache_raw_update): New function.
15636 (regcache_raw_read): Move code to regcache_raw_update.
15637 * regcache.h (regcache_raw_update): New declaration.
15638 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
15639
15640 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15641
15642 * dwarf2read.c (create_debug_type_hash_table): Initialize
15643 header.signature and header.type_offset_in_tu.
15644
15645 2017-02-24 Pedro Alves <palves@redhat.com>
15646
15647 * symtab.c (make_file_symbol_completion_list_1): Use
15648 add_symtab_completions.
15649
15650 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15651
15652 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
15653
15654 2017-02-24 Alan Hayward <alan.hayward@arm.com>
15655
15656 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
15657 I386_MAX_REGISTER_SIZE.
15658 (i386_pseudo_register_write): Likewise.
15659 (i386_process_record): Likewise.
15660 * i387-tdep.c (i387_supply_xsave): Likewise.
15661 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
15662 (store_register): Likewise.
15663
15664 2017-02-23 Pedro Alves <palves@redhat.com>
15665
15666 * ada-lang.c: Include "common/function-view.h".
15667 (ada_iterate_over_symbols): Adjust to use function_view as
15668 callback type.
15669 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
15670 (ada_make_symbol_completion_list): Use a lambda.
15671 (ada_exc_search_name_matches): Delete.
15672 (name_matches_regex): New.
15673 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
15674 * compile/compile-c-support.c: Include "common/function-view.h".
15675 (print_one_macro): Change prototype to accept a ui_file pointer.
15676 (write_macro_definitions): Use a lambda.
15677 * dwarf2read.c: Include "common/function-view.h".
15678 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
15679 (dw2_expand_symtabs_matching): Adjust to use function_view as
15680 callback type.
15681 * language.h: Include "common/function-view.h".
15682 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
15683 function_view as callback type.
15684 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
15685 * linespec.c: Include "common/function-view.h".
15686 (collect_info::add_symbol): New method.
15687 (struct symbol_and_data_callback, iterate_inline_only, struct
15688 symbol_matcher_data, iterate_name_matcher): Delete.
15689 (iterate_over_all_matching_symtabs): Adjust to use function_view
15690 as callback type and lambdas.
15691 (iterate_over_file_blocks): Adjust to use function_view as
15692 callback type.
15693 (decode_compound_collector): Now a class with private fields.
15694 (decode_compound_collector::release_symbols): New method.
15695 (collect_one_symbol): Rename to...
15696 (decode_compound_collector::operator()): ... this and adjust.
15697 (lookup_prefix_sym): decode_compound_collector construction bits
15698 move to decode_compound_collector ctor. Pass the
15699 decode_compound_collector object directly as callback. Remove
15700 cleanups and use decode_compound_collector::release_symbols
15701 instead.
15702 (symtab_collector): Now a class with private fields.
15703 (symtab_collector::release_symtabs): New method.
15704 (add_symtabs_to_list): Rename to...
15705 (symtab_collector::operator()): ... this and adjust.
15706 (collect_symtabs_from_filename): symtab_collector construction
15707 bits move to symtab_collector ctor. Pass the symtab_collector
15708 object directly as callback. Remove cleanups and use
15709 symtab_collector::release_symtabs instead.
15710 (collect_symbols): Delete.
15711 (add_matching_symbols_to_info): Use lambdas.
15712 * macrocmd.c (print_macro_callback): Delete.
15713 (info_macro_command): Use a lambda.
15714 (info_macros_command): Pass print_macro_definition as callable
15715 directly.
15716 (print_one_macro): Remove 'ignore' parameter.
15717 (macro_list_command): Adjust.
15718 * macrotab.c (macro_for_each_data::fn): Now a function_view.
15719 (macro_for_each_data::user_data): Delete field.
15720 (foreach_macro): Adjust to call the function_view.
15721 (macro_for_each): Adjust to use function_view as callback type.
15722 (foreach_macro_in_scope): Adjust to call the function_view.
15723 (macro_for_each_in_scope): Adjust to use function_view as callback
15724 type.
15725 * macrotab.h: Include "common/function-view.h".
15726 (macro_callback_fn): Declare a prototype instead of a pointer.
15727 Remove "user_data" parameter.
15728 (macro_for_each, macro_for_each_in_scope): Adjust to use
15729 function_view as callback type.
15730 * psymtab.c (partial_map_expand_apply)
15731 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
15732 Adjust to use function_view as callback type and to return bool.
15733 (psym_expand_symtabs_matching): Adjust to use function_view as
15734 callback types.
15735 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
15736 to use function_view as callback type and to return bool.
15737 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
15738 callback types.
15739 * symfile.c (expand_symtabs_matching): Adjust to use function_view
15740 as callback types.
15741 * symfile.h: Include "common/function-view.h".
15742 (expand_symtabs_file_matcher_ftype)
15743 (expand_symtabs_symbol_matcher_ftype)
15744 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
15745 return bool.
15746 (quick_symbol_functions::map_symtabs_matching_filename)
15747 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
15748 function_view as callback type and return bool.
15749 (expand_symtabs_matching): Adjust to use function_view as callback
15750 type.
15751 (maintenance_expand_name_matcher)
15752 (maintenance_expand_file_matcher): Delete.
15753 (maintenance_expand_symtabs): Use lambdas.
15754 * symtab.c (iterate_over_some_symtabs): Adjust to use
15755 function_view as callback types and return bool.
15756 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
15757 of a cleanup.
15758 (lookup_symtab_callback): Delete.
15759 (lookup_symtab): Use a lambda.
15760 (iterate_over_symbols): Adjust to use function_view as callback
15761 type.
15762 (struct search_symbols_data, search_symbols_file_matches)
15763 (search_symbols_name_matches): Delete.
15764 (search_symbols): Use a pair of lambdas.
15765 (struct add_name_data, add_macro_name, symbol_completion_matcher)
15766 (symtab_expansion_callback): Delete.
15767 (default_make_symbol_completion_list_break_on_1): Use lambdas.
15768 * symtab.h: Include "common/function-view.h".
15769 (iterate_over_some_symtabs): Adjust to use function_view as
15770 callback type and return bool.
15771 (iterate_over_symtabs): Adjust to use function_view as callback
15772 type.
15773 (symbol_found_callback_ftype): Remove 'data' parameter and return
15774 bool.
15775 (iterate_over_symbols): Adjust to use function_view as callback
15776 type.
15777
15778 2017-02-23 Pedro Alves <palves@redhat.com>
15779
15780 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
15781 (%.o) <unittests/%.c>: New pattern.
15782 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
15783 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
15784 * common/function-view.h: New file.
15785 * unittests/function-view-selftests.c: New file.
15786 * configure: Regenerate.
15787
15788 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
15789
15790 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
15791 inferior_ptid.
15792 * go32-nat.c (go32_thread_alive): Likewise.
15793
15794 2017-02-23 Yao Qi <yao.qi@linaro.org>
15795
15796 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
15797 delete.
15798
15799 2017-02-23 Yao Qi <yao.qi@linaro.org>
15800
15801 * varobj.c (varobj_clear_saved_item): Use delete instead of
15802 xfree.
15803 (update_dynamic_varobj_children): Likewise.
15804
15805 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15806
15807 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
15808
15809 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
15810
15811 * common/enum-flags.h (enum_flags::enum_flags): Initialize
15812 m_enum_value to 0 in default constructor.
15813
15814 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15815
15816 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
15817 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
15818 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
15819 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
15820 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
15821 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
15822 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
15823 IS_STORE_CONDITIONAL_INSN.
15824
15825 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15826
15827 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
15828
15829 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15830
15831 * NEWS (Changes since GDB 7.12): Add DWARF-5.
15832
15833 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15834
15835 * dwarf2read.c (skip_one_die, read_attribute_value)
15836 (dwarf2_const_value_attr, dump_die_shallow)
15837 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
15838 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
15839
15840 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15841
15842 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
15843 (dwarf_parse_macro_header): Accept DWARF version 5.
15844 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
15845
15846 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15847
15848 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
15849 DW_AT_GNU_*.
15850 * common/common-exceptions.h (enum errors): Likewise.
15851 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
15852 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
15853 (dwarf_expr_context::execute_stack_op): Likewise.
15854 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
15855 Likewise.
15856 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
15857 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15858 (show_entry_values_debug, call_site_to_target_addr)
15859 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
15860 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
15861 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
15862 (value_of_dwarf_block_entry, indirect_pieced_value)
15863 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
15864 (disassemble_dwarf_expression): Likewise.
15865 * dwarf2read.c (process_die, inherit_abstract_dies)
15866 (read_call_site_scope): Likewise.
15867 * gdbtypes.h (struct func_type, struct call_site_parameter)
15868 (struct call_site): Likewise.
15869 * stack.c (read_frame_arg): Likewise.
15870 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
15871
15872 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15873
15874 * defs.h (read_unsigned_leb128): New declaration.
15875 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
15876 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
15877 (dwarf2_find_location_expression): Call also
15878 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
15879 * dwarf2loc.h (dwarf2_version): New declaration.
15880 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
15881 rnglists.
15882 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
15883 .debug_rnglists.
15884 (struct dwop_section_names): Add loclists_dwo.
15885 (dwop_section_names): Add .debug_loclists.dwo.
15886 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
15887 (struct dwarf2_per_cu_data): Add dwarf_version.
15888 (struct dwo_sections): Add loclists.
15889 (struct attr_abbrev): Add implicit_const.
15890 (read_indirect_line_string): New declaration.
15891 (read_unsigned_leb128): Delete declaration.
15892 (rcuh_kind): New definition.
15893 (read_and_check_comp_unit_head): Change parameter
15894 is_debug_types_section to section_kind.
15895 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
15896 (read_comp_unit_head): Change parameter abfd to section, add parameter
15897 section_kind. Handle DWARF-5.
15898 (error_check_comp_unit_head): Accept also DWARF version 5.
15899 (read_and_check_comp_unit_head): Change parameter
15900 is_debug_types_section to section_kind.
15901 (read_and_check_type_unit_head): Delete function.
15902 (read_abbrev_offset): Handle DWARF-5.
15903 (create_debug_type_hash_table): Add parameter section_kind. Process
15904 only DW_UT_type. Use signature and type_offset_in_tu from struct
15905 comp_unit_head.
15906 (create_debug_types_hash_table): Update create_debug_type_hash_table
15907 caller.
15908 (create_all_type_units): Call create_debug_type_hash_table.
15909 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
15910 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
15911 caller.
15912 (skip_one_die): Handle DW_FORM_implicit_const.
15913 (dwarf2_rnglists_process): New function.
15914 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
15915 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
15916 (read_attribute_value): Handle DW_FORM_implicit_const,
15917 DW_FORM_line_strp.
15918 (read_attribute): Handle DW_FORM_implicit_const.
15919 (read_indirect_string_at_offset_from): New function from
15920 read_indirect_string_at_offset.
15921 (read_indirect_string_at_offset): Call
15922 read_indirect_string_at_offset_from.
15923 (read_indirect_line_string_at_offset): New function.
15924 (read_indirect_string): New function comment.
15925 (read_indirect_line_string): New function.
15926 (read_unsigned_leb128): Make it global.
15927 (dwarf2_string_attr): Handle DWARF-5.
15928 (add_include_dir_stub, read_formatted_entries): New functions.
15929 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
15930 Handle DWARF-5.
15931 (per_cu_header_read_in): Update read_comp_unit_head caller.
15932 (dwarf2_version): New function.
15933 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
15934 rnglists.
15935 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
15936 fields.
15937
15938 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15939
15940 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
15941
15942 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15943
15944 * dwarf2read.c (dwarf2_ranges_process): New function from
15945 dwarf2_ranges_read.
15946 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
15947 dwarf2_ranges_process.
15948
15949 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15950
15951 * dwarf2read.c (create_debug_type_hash_table): New function from
15952 create_debug_types_hash_table.
15953 (create_debug_types_hash_table): Call create_debug_type_hash_table.
15954 (create_all_type_units, open_and_init_dwo_file): Update
15955 create_debug_types_hash_table callers.
15956
15957 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15958
15959 PR gdb/16188
15960 * fork-child.c (trace_start_error): Fix thinko. va_end should
15961 refer to 'ap', not 'args'.
15962
15963 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
15964 Pedro Alves <palves@redhat.com>
15965
15966 PR gdb/16188
15967 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
15968 calls succeeded.
15969 * fork-child.c (trace_start_error): New function.
15970 (trace_start_error_with_name): Likewise.
15971 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
15972 * inf-ptrace.c (inf_ptrace_me): Likewise.
15973 * inferior.h (trace_start_error): New prototype.
15974 (trace_start_error_with_name): Likewise.
15975
15976 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
15977
15978 PR gdb/21164
15979 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
15980 NULL before using it.
15981 * symmisc.c (maintenance_print_symbols): Likewise.
15982 (maintenance_print_msymbols): Likewise.
15983
15984 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15985
15986 * NEWS: Add record Python bindings entry.
15987
15988 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
15989
15990 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
15991 py-record-full.o.
15992 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
15993 * python/py-record-btrace.c, python/py-record-btrace.h,
15994 python/py-record-full.c, python/py-record-full.h: New file.
15995 * python/py-record.c: Add include for py-record-btrace.h and
15996 py-record-full.h.
15997 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
15998 recpy_instruction_history, recpy_function_call_history, recpy_begin,
15999 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
16000 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
16001 New definition.
16002 (gdbpy_initialize_btrace): New export.
16003 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
16004
16005 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16006
16007 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
16008 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
16009 * python/py-record.c: New file.
16010 * python/python-internal.h (gdbpy_start_recording,
16011 gdbpy_current_recording, gdpy_stop_recording,
16012 gdbpy_initialize_record): New export.
16013 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
16014 (python_GdbMethods): Add gdbpy_start_recording,
16015 gdbpy_current_recording and gdbpy_stop_recording.
16016
16017 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16018
16019 * record-btrace.c (record_btrace_record_method): New function.
16020 (init_record_btrace_ops): Initialize to_record_method.
16021 * record-full.c (record_full_record_method): New function.
16022 (init_record_full_ops, init_record_full_core_ops): Add
16023 record_full_record_method.
16024 * record.h (enum record_method): New enum.
16025 * target-debug.h (target_debug_print_enum_record_method: New define.
16026 * target-delegates.c: Regenerate.
16027 * target.c (target_record_method): New function.
16028 * target.h: Include record.h.
16029 (struct target_ops) <to_record_method>: New field.
16030 (target_record_method): New export.
16031
16032 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16033
16034 * record.h (record_start, record_stop): New export.
16035 * record.c (record_start, record_stop): New function.
16036
16037 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16038
16039 * btrace.c (btrace_fetch): Copy function call segments pointer
16040 into a vector.
16041 (btrace_clear): Clear the vector.
16042 (btrace_find_insn_by_number): Use binary search to find the correct
16043 function call segment.
16044 * btrace.h (brace_fun_p): New typedef.
16045 (struct btrace_thread_info) <functions>: New field.
16046
16047 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16048
16049 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
16050 * btrace.c (btrace_decode_error): ... here. New function.
16051 * btrace.h (btrace_decode_error): New export.
16052
16053 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
16054
16055 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
16056 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
16057 btrace_find_insn_by_number): Remove special case for gaps.
16058 * btrace.h (btrace_insn_get_error): New export.
16059 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
16060 * record-btrace.c (btrace_insn_history): Print number for gaps.
16061 (record_btrace_info, record_btrace_goto): Handle gaps.
16062
16063 2017-02-14 Tom Tromey <tom@tromey.com>
16064
16065 PR python/13598:
16066 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
16067 event.
16068 * python/py-evts.c (gdbpy_initialize_py_events): Add
16069 before_prompt registry.
16070 * python/py-events.h (events_object) <before_prompt>: New field.
16071
16072 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
16073
16074 * btrace.c (ftrace_new_switch): Preserve up link and flags.
16075
16076 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
16077
16078 * symfile (_initialize_symfile): Add usage text to the load command's
16079 help text.
16080
16081 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
16082
16083 * utils.c (defaulted_query): Don't query on secondary UIs.
16084
16085 2017-02-10 Tom Tromey <tom@tromey.com>
16086
16087 * rust-lang.c (rust_get_disr_info): Remove unused variable.
16088
16089 2017-02-10 Tom Tromey <tom@tromey.com>
16090
16091 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
16092 "cleanup" local.
16093 * python/py-type.c (typy_legacy_template_argument): Remove
16094 unnecessary "cleanup" local.
16095
16096 2017-02-10 Tom Tromey <tom@tromey.com>
16097
16098 * python/python.c (do_start_initialization): New function, from
16099 _initialize_python.
16100 (_initialize_python): Call do_start_initialization.
16101 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
16102 goto.
16103
16104 2017-02-10 Tom Tromey <tom@tromey.com>
16105
16106 * python/py-prettyprint.c (pretty_print_one_value): Use
16107 gdbpy_ref.
16108
16109 2017-02-10 Tom Tromey <tom@tromey.com>
16110
16111 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
16112 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
16113 gdbpy_ref.
16114 * python/py-type.c (field_new): Use gdbpy_ref.
16115 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
16116 gdbpy_ref.
16117 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
16118 (py_free_pspace): Likewise.
16119 (pspace_to_pspace_object): Likewise.
16120 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
16121 (py_free_objfile): Likewise.
16122 (objfile_to_objfile_object): Likewise.
16123 * python/py-inferior.c (delete_thread_object): Use
16124 gdbpy_ref.
16125 (infpy_read_memory): Likewise.
16126 (py_free_inferior): Likewise.
16127 * python/py-evtregistry.c (create_eventregistry_object): Use
16128 gdbpy_ref.
16129 * python/py-event.c (create_event_object): Use gdbpy_ref.
16130
16131 2017-02-10 Tom Tromey <tom@tromey.com>
16132
16133 * python/py-ref.h (gdbpy_ref_policy): Now a template.
16134 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
16135 used.
16136 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
16137 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
16138 python/py-exitedevent.c, python/py-finishbreakpoint.c,
16139 python/py-framefilter.c, python/py-function.c,
16140 python/py-inferior.c, python/py-infevents.c,
16141 python/py-linetable.c, python/py-newobjfileevent.c,
16142 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
16143 python/py-signalevent.c, python/py-stopevent.c,
16144 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
16145 python/py-unwind.c, python/py-utils.c, python/py-value.c,
16146 python/py-varobj.c, python/py-xmethods.c, python/python.c,
16147 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
16148
16149 2017-02-10 Tom Tromey <tom@tromey.com>
16150
16151 * ui-out.h (ui_out_emit_type): New class.
16152 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
16153 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
16154 and ui_out_emit_tuple.
16155 (enumerate_locals): Likewise.
16156 (py_mi_print_variables, py_print_locals, py_print_args): Use
16157 ui_out_emit_list.
16158 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
16159 ui_out_emit_list.
16160 * common/gdb_optional.h: New file.
16161
16162 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16163
16164 * MAINTAINERS (Write After Approval): Update my e-mail address.
16165
16166 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
16167
16168 PR gdb/21122
16169 * breakpoint.c (_initialize_breakpoint): Update the help description
16170 of the 'commands' command to indicate that it takes a list argument.
16171
16172 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
16173
16174 * interps.c (current_interp_set_logging): Remove "return".
16175
16176 2017-02-09 Gary Benson <gbenson@redhat.com>
16177
16178 * symtab.c (add_symtab_completions): Prevent NULL pointer
16179 dereference.
16180
16181 2017-02-08 Pedro Alves <palves@redhat.com>
16182
16183 * interps.c (interp::interp): Remove reference to quiet_p.
16184 (interp_set): Make static. Remove dead "Switching to" output
16185 code.
16186 (interp_quiet_p, interp_set_quiet): Delete.
16187 (interpreter_exec_cmd): Don't set the interpreter quiet.
16188 * interps.h (interp_quiet_p): Make static.
16189 (class interp) <quiet_p>: Remove field
16190
16191 2017-02-08 Jerome Guitton <guitton@adacore.com>
16192
16193 * cli/cli-decode.c (find_command_name_length): Make it extern.
16194 * cli/cli-decode.h (find_command_name_length): Declare.
16195 * cli/cli-script.c (command_name_equals, line_first_arg):
16196 New functions.
16197 (process_next_line): Use cli-decode to parse command names.
16198 (build_command_line): Make args a constant pointer.
16199
16200 2017-02-08 Jerome Guitton <guitton@adacore.com>
16201
16202 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
16203 Remove case-insensitive search.
16204
16205 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
16206
16207 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
16208 at the end of the line. Avoids an ARI warning.
16209
16210 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
16211
16212 * NEWS: Mention support for record/replay of Intel 64 rdrand and
16213 rdseed instructions.
16214 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
16215
16216 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
16217
16218 PR tdep/20936
16219 Provide and use sparc32 and sparc64 target description XML files.
16220 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
16221 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
16222 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
16223 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
16224 * features/sparc/sparc32-solaris.xml: New file.
16225 * features/sparc/sparc64-solaris.xml: New file.
16226 * features/sparc/sparc32-solaris.c: Generated.
16227 * features/sparc/sparc64-solaris.c: Generated.
16228 * sparc-tdep.h: Account for differences in target descriptions.
16229 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
16230 (sparc32_register_type): Use target provided registers.
16231 (validate_tdesc_registers): New function.
16232 (sparc32_gdbarch_init): Use tdesc_has_registers.
16233 Set pseudoregister functions.
16234 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
16235 (sparc64_register_type): Use target provided registers.
16236 (sparc64_init_abi): Set pseudoregister functions.
16237
16238 2017-02-03 Tom Tromey <tom@tromey.com>
16239
16240 PR rust/21097:
16241 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
16242 with a single member.
16243
16244 2017-02-03 Pedro Alves <palves@redhat.com>
16245
16246 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
16247 (cli_interp_base::~cli_interp_base): New.
16248 (cli_interp): New struct.
16249 (as_cli_interp): Cast the interp itself to cli_interp.
16250 (cli_interpreter_pre_command_loop): Rename to ...
16251 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
16252 parameter.
16253 (cli_interpreter_init): Rename to ...
16254 (cli_interp::init): ... this. Remove 'self' parameter. Use
16255 boolean. Make extern.
16256 (cli_interpreter_resume): Rename to ...
16257 (cli_interp::resume): ... this. Remove 'data' parameter. Make
16258 extern.
16259 (cli_interpreter_suspend): Rename to ...
16260 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
16261 extern.
16262 (cli_interpreter_exec): Rename to ...
16263 (cli_interp::exec): ... this. Remove 'data' parameter. Make
16264 extern.
16265 (cli_interpreter_supports_command_editing): Rename to ...
16266 (cli_interp_base::supports_command_editing): ... this. Remove
16267 'interp' parameter. Make extern.
16268 (cli_ui_out): Rename to ...
16269 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
16270 Make extern.
16271 (cli_set_logging): Rename to ...
16272 (cli_interp_base::set_logging): ... this. Remove 'interp'
16273 parameter. Make extern.
16274 (cli_interp_procs): Delete.
16275 (cli_interp_factory): Adjust to use "new".
16276 * cli/cli-interp.h: Include "interps.h".
16277 (struct cli_interp_base): New struct.
16278 * interps.c (struct interp): Delete. Fields moved to interps.h.
16279 (interp_new): Delete.
16280 (interp::interp, interp::~interp): New.
16281 (interp_set): Use bool, and return void. Assume the interpreter
16282 has suspend, init and resume methods, and that the all return
16283 void.
16284 (set_top_level_interpreter): interp_set returns void.
16285 (interp_ui_out): Adapt.
16286 (current_interp_set_logging): Adapt.
16287 (interp_data): Delete.
16288 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
16289 (interp_exec): Adapt.
16290 (top_level_interpreter_data): Delete.
16291 * interps.h (interp_init_ftype, interp_resume_ftype)
16292 (interp_suspend_ftype, interp_exec_ftype)
16293 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
16294 (class interp): New.
16295 (interp_new): Delete.
16296 (interp_set): Now returns void. Use bool.
16297 (interp_data, top_level_interpreter_data): Delete.
16298 * mi/mi-common.h: Include interps.h.
16299 (class mi_interp): Inherit from interp. Define a ctor. Declare
16300 init, resume, suspect, exec, interp_ui_out, set_logging and
16301 pre_command_loop methods.
16302 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
16303 (mi_interpreter_init): Rename to ...
16304 (mi_interp::init): ... this. Remove the 'interp' parameter, use
16305 bool, return void and make extern. Adjust.
16306 (mi_interpreter_resume): ... Rename to ...
16307 (mi_interp::resume): ... this. Remove the 'data' parameter,
16308 return void and make extern. Adjust.
16309 (mi_interpreter_suspend): ... Rename to ...
16310 (mi_interp::suspend): ... this. Remove the 'data' parameter,
16311 return void and make extern. Adjust.
16312 (mi_interpreter_exec): ... Rename to ...
16313 (mi_interp::exec): ... this. Remove the 'data' parameter and make
16314 extern. Adjust.
16315 (mi_interpreter_pre_command_loop): ... Rename to ...
16316 (mi_interp::pre_command_loop): ... this. Remove the 'self'
16317 parameter and make extern.
16318 (mi_on_normal_stop_1): Adjust.
16319 (mi_ui_out): Rename to ...
16320 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
16321 parameter and make extern. Adjust.
16322 (mi_set_logging): Rename to ...
16323 (mi_interp::set_logging): ... this. Remove the 'interp'
16324 parameter and make extern. Adjust.
16325 (mi_interp_procs): Delete.
16326 (mi_interp_factory): Adjust to use 'new'.
16327 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
16328 (mi_print_exception, mi_execute_command, mi_load_progress):
16329 Adjust.
16330 * tui/tui-interp.c (tui_interp): New class.
16331 (as_tui_interp): Return a tui_interp pointer.
16332 (tui_on_normal_stop, tui_on_signal_received)
16333 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
16334 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
16335 to use interp::interp_ui_out.
16336 (tui_init): Rename to ...
16337 (tui_interp::init): ... this. Remove the 'self' parameter, use
16338 bool, return void and make extern. Adjust.
16339 (tui_resume): Rename to ...
16340 (tui_interp::resume): ... this. Remove the 'data' parameter,
16341 return void and make extern. Adjust.
16342 (tui_suspend): Rename to ...
16343 (tui_interp::suspend): ... this. Remove the 'data' parameter,
16344 return void and make extern. Adjust.
16345 (tui_ui_out): Rename to ...
16346 (tui_interp::interp_ui_out): ... this. Remove the 'self'
16347 parameter, and make extern. Adjust.
16348 (tui_exec): Rename to ...
16349 (tui_interp::exec): ... this. Remove the 'data' parameter and
16350 make extern.
16351 (tui_interp_procs): Delete.
16352 (tui_interp_factory): Use "new".
16353
16354 2017-02-02 Tom Tromey <tom@tromey.com>
16355
16356 * rust-exp.y (ends_raw_string, space_then_number)
16357 (rust_identifier_start_p): Return bool.
16358 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
16359 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
16360 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
16361 (rust_chartype_p): Return bool.
16362 (val_print_struct, rust_print_struct_def, rust_print_type):
16363 Update.
16364 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
16365 Return bool.
16366
16367 2017-02-02 Tom Tromey <tom@tromey.com>
16368
16369 * rust-lang.c: Reindent.
16370
16371 2017-02-02 Tom Tromey <tom@tromey.com>
16372
16373 * rust-lang.h (rust_crate_for_block): Update.
16374 * rust-lang.c (rust_crate_for_block): Return std::string.
16375 (rust_get_disr_info): Use std:;string, not
16376 gdb::unique_xmalloc_ptr.
16377 * rust-exp.y (crate_name): Update.
16378
16379 2017-02-02 Pedro Alves <palves@redhat.com>
16380
16381 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
16382 field out of gdb_disassembler_test and make it static.
16383
16384 2017-02-02 Pedro Alves <palves@redhat.com>
16385
16386 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
16387 mi1_interp and mi_interp fields.
16388
16389 2017-02-02 Pedro Alves <palves@redhat.com>
16390
16391 * cli/cli-interp.c (struct saved_output_files, saved_output):
16392 Moved from cli/cli-logging.c.
16393 (cli_set_logging): New function.
16394 (cli_interp_procs): Install cli_set_logging.
16395 * cli/cli-interp.h (make_logging_output, cli_set_logging):
16396 Declare.
16397 * cli/cli-logging.c (struct saved_output_files, saved_output):
16398 Moved to cli/cli-interp.c.
16399 (pop_output_files): Don't save outputs here.
16400 (make_logging_output): New function.
16401 (handle_redirections): Don't build tee nor save previous outputs
16402 here.
16403 * interps.c (current_interp_set_logging): Change prototype.
16404 Assume there's always a set_logging_proc method installed.
16405 * interps.h (interp_set_logging_ftype): Change prototype.
16406 (current_interp_set_logging): Change prototype and adjust comment.
16407 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
16408 use make_logging_output.
16409 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
16410 2017-02-02 Pedro Alves <palves@redhat.com>
16411
16412 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
16413 from ...
16414 (set_logging_overwrite): ... here.
16415 (logging_no_redirect_file): Delete.
16416 (set_logging_redirect): Don't handle redirection on the fly.
16417 Instead warn that "logging off" / "logging on" is necessary.
16418 (pop_output_files): Delete references to logging_no_redirect_file.
16419 (show_logging_command): Always speak in terms of what will happen
16420 once logging is reenabled.
16421
16422 2017-02-02 Pedro Alves <palves@redhat.com>
16423
16424 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
16425
16426 2017-02-02 Pedro Alves <palves@redhat.com>
16427
16428 * disasm.c (gdb_pretty_print_insn): Rename to ...
16429 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
16430 Remove gdbarch parameter. Adapt to clear the object's buffers
16431 instead of allocating new buffers, and to print using the object's
16432 gdb_disassembler instead of calling gdb_print_insn.
16433 (dump_insns): Use gdb_pretty_print_disassembler.
16434 * disasm.h (gdb_pretty_print_insn): Delete declaration.
16435 (gdb_pretty_print_disassembler): New class.
16436 * record-btrace.c (btrace_insn_history): Use
16437 gdb_pretty_print_disassembler.
16438
16439 2017-02-02 Pedro Alves <palves@redhat.com>
16440
16441 * ada-lang.c (type_as_string): Use string_file.
16442 * ada-valprint.c (ada_print_floating): Use string_file.
16443 * ada-varobj.c (ada_varobj_scalar_image)
16444 (ada_varobj_get_value_image): Use string_file.
16445 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
16446 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
16447 * breakpoint.c (update_inserted_breakpoint_locations)
16448 (insert_breakpoint_locations, reattach_breakpoints)
16449 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
16450 (print_it_watchpoint): Use string_file.
16451 (save_breakpoints): Use stdio_file.
16452 * c-exp.y (oper): Use string_file.
16453 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
16454 tee_file.
16455 (pop_output_files): Use delete.
16456 (handle_redirections): Use stdio_file and tee_file.
16457 * cli/cli-setshow.c (do_show_command): Use string_file.
16458 * compile/compile-c-support.c (c_compute_program): Use
16459 string_file.
16460 * compile/compile-c-symbols.c (generate_vla_size): Take a
16461 'string_file &' instead of a 'ui_file *'.
16462 (generate_c_for_for_one_variable): Take a 'string_file &' instead
16463 of a 'ui_file *'. Use string_file.
16464 (generate_c_for_variable_locations): Take a 'string_file &'
16465 instead of a 'ui_file *'.
16466 * compile/compile-internal.h (generate_c_for_for_one_variable):
16467 Take a 'string_file &' instead of a 'ui_file *'.
16468 * compile/compile-loc2c.c (push, pushf, unary, binary)
16469 (print_label, pushf_register_address, pushf_register)
16470 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
16471 'ui_file *'. Adjust.
16472 * compile/compile.c (compile_to_object): Use string_file.
16473 * compile/compile.h (compile_dwarf_expr_to_c)
16474 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
16475 'ui_file *'.
16476 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
16477 (replace_typedefs_qualified_name): Use string_file and
16478 obstack_copy0.
16479 * disasm.c (gdb_pretty_print_insn): Use string_file.
16480 (gdb_disassembly): Adjust reference the null_stream global.
16481 (do_ui_file_delete): Delete.
16482 (gdb_insn_length): Use null_stream.
16483 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
16484 * dwarf2loc.c (dwarf2_compile_property_to_c)
16485 (locexpr_generate_c_location, loclist_generate_c_location): Take a
16486 'string_file &' instead of a 'ui_file *'.
16487 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
16488 * dwarf2read.c (do_ui_file_peek_last): Delete.
16489 (dwarf2_compute_name): Use string_file.
16490 * event-top.c (gdb_setup_readline): Use stdio_file.
16491 * gdbarch.sh (verify_gdbarch): Use string_file.
16492 * gdbtypes.c (safe_parse_type): Use null_stream.
16493 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
16494 string_file.
16495 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
16496 'string_file *' instead of a 'ui_file *'.
16497 (gdbscm_arch_disassemble): Use string_file.
16498 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
16499 * guile/scm-ports.c (class ioscm_file_port): Now a class that
16500 inherits from ui_file.
16501 (ioscm_file_port_delete, ioscm_file_port_rewind)
16502 (ioscm_file_port_put): Delete.
16503 (ioscm_file_port_write): Rename to ...
16504 (ioscm_file_port::write): ... this. Remove file_port_magic
16505 checks.
16506 (ioscm_file_port_new): Delete.
16507 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
16508 ui_file_up.
16509 * guile/scm-type.c (tyscm_type_name): Use string_file.
16510 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
16511 Use string_file.
16512 * infcmd.c (print_return_value_1): Use string_file.
16513 * infrun.c (print_target_wait_results): Use string_file.
16514 * language.c (add_language): Use string_file.
16515 * location.c (explicit_to_string_internal): Use string_file.
16516 * main.c (captured_main_1): Use null_file.
16517 * maint.c (maintenance_print_architecture): Use stdio_file.
16518 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
16519 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
16520 event_channel>: Change type to mi_console_file pointer.
16521 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
16522 (mi_console_file_delete): Delete.
16523 (struct mi_console_file): Delete.
16524 (mi_console_file_magic): Delete.
16525 (mi_console_file_new): Delete.
16526 (mi_console_file::mi_console_file): New.
16527 (mi_console_file_delete): Delete.
16528 (mi_console_file_fputs): Delete.
16529 (mi_console_file::write): New.
16530 (mi_console_raw_packet): Delete.
16531 (mi_console_file::flush): New.
16532 (mi_console_file_flush): Delete.
16533 (mi_console_set_raw): Rename to ...
16534 (mi_console_file::set_raw): ... this.
16535 * mi/mi-console.h (class mi_console_file): New class.
16536 (mi_console_file_new, mi_console_set_raw): Delete.
16537 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
16538 (mi_set_logging): Use delete and tee_file. Adjust.
16539 * mi/mi-main.c (output_register): Use string_file.
16540 (mi_cmd_data_evaluate_expression): Use string_file.
16541 (mi_cmd_data_read_memory): Use string_file.
16542 (mi_cmd_execute, print_variable_or_computed): Use string_file.
16543 * mi/mi-out.c (mi_ui_out::main_stream): New.
16544 (mi_ui_out::rewind): Use main_stream and
16545 string_file.
16546 (mi_ui_out::put): Use main_stream and string_file.
16547 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16548 Allocate a 'string_file' instead.
16549 (mi_out_new): Don't allocate a mem_fileopen stream here.
16550 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
16551 (mi_ui_out::main_stream): Declare method.
16552 * printcmd.c (eval_command): Use string_file.
16553 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
16554 * python/py-arch.c (archpy_disassemble): Use string_file.
16555 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
16556 * python/py-frame.c (frapy_str): Use string_file.
16557 * python/py-framefilter.c (py_print_type, py_print_single_arg):
16558 Use string_file.
16559 * python/py-type.c (typy_str): Use string_file.
16560 * python/py-unwind.c (unwind_infopy_str): Use string_file.
16561 * python/py-value.c (valpy_str): Use string_file.
16562 * record-btrace.c (btrace_insn_history): Use string_file.
16563 * regcache.c (regcache_print): Use stdio_file.
16564 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
16565 * remote.c (escape_buffer): Use string_file.
16566 * rust-lang.c (rust_get_disr_info): Use string_file.
16567 * serial.c (serial_open_ops_1): Use stdio_file.
16568 (do_serial_close): Use delete.
16569 * stack.c (print_frame_arg): Use string_file.
16570 (print_frame_args): Remove local mem_fileopen stream, not used.
16571 (print_frame): Use string_file.
16572 * symmisc.c (maintenance_print_symbols): Use stdio_file.
16573 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
16574 Take a 'string_file *' instead of a 'ui_file *'.
16575 * top.c (new_ui): Use stdio_file and stderr_file.
16576 (free_ui): Use delete.
16577 (execute_command_to_string): Use string_file.
16578 (quit_confirm): Use string_file.
16579 * tracepoint.c (collection_list::append_exp): Use string_file.
16580 * tui/tui-disasm.c (tui_disassemble): Use string_file.
16581 * tui/tui-file.c: Don't include "ui-file.h".
16582 (enum streamtype, struct tui_stream): Delete.
16583 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
16584 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
16585 (tui_file::tui_file): New method.
16586 (tui_file_fputs): Delete.
16587 (tui_file_get_strbuf): Delete.
16588 (tui_file::puts): New method.
16589 (tui_file_adjust_strbuf): Delete.
16590 (tui_file_flush): Delete.
16591 (tui_file::flush): New method.
16592 * tui/tui-file.h: Tweak intro comment.
16593 Include ui-file.h.
16594 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
16595 (tui_file_adjust_strbuf): Delete declarations.
16596 (class tui_file): New class.
16597 * tui/tui-io.c (tui_initialize_io): Use tui_file.
16598 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
16599 (tui_register_format): Use string_stream.
16600 * tui/tui-stack.c (tui_make_status_line): Use string_file.
16601 (tui_get_function_from_frame): Use string_file.
16602 * typeprint.c (type_to_string): Use string_file.
16603 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
16604 (null_stream): New global.
16605 (ui_file_delete): Delete.
16606 (ui_file::ui_file): New.
16607 (null_file_isatty): Delete.
16608 (ui_file::~ui_file): New.
16609 (null_file_rewind): Delete.
16610 (ui_file::printf): New.
16611 (null_file_put): Delete.
16612 (null_file_flush): Delete.
16613 (ui_file::putstr): New.
16614 (null_file_write): Delete.
16615 (ui_file::putstrn): New.
16616 (null_file_read): Delete.
16617 (ui_file::putc): New.
16618 (null_file_fputs): Delete.
16619 (null_file_write_async_safe): Delete.
16620 (ui_file::vprintf): New.
16621 (null_file_delete): Delete.
16622 (null_file::write): New.
16623 (null_file_fseek): Delete.
16624 (null_file::puts): New.
16625 (ui_file_data): Delete.
16626 (null_file::write_async_safe): New.
16627 (gdb_flush, ui_file_isatty): Adjust.
16628 (ui_file_put, ui_file_rewind): Delete.
16629 (ui_file_write): Adjust.
16630 (ui_file_write_for_put): Delete.
16631 (ui_file_write_async_safe, ui_file_read): Adjust.
16632 (ui_file_fseek): Delete.
16633 (fputs_unfiltered): Adjust.
16634 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
16635 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
16636 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
16637 (set_ui_file_data): Delete.
16638 (string_file::~string_file, string_file::write)
16639 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
16640 (do_ui_file_as_string, ui_file_as_string): Delete.
16641 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
16642 (struct mem_file): Delete.
16643 (mem_file_new): Delete.
16644 (stdio_file::stdio_file): New.
16645 (mem_file_delete): Delete.
16646 (stdio_file::stdio_file): New.
16647 (mem_fileopen): Delete.
16648 (stdio_file::~stdio_file): New.
16649 (mem_file_rewind): Delete.
16650 (stdio_file::set_stream): New.
16651 (mem_file_put): Delete.
16652 (stdio_file::open): New.
16653 (mem_file_write): Delete.
16654 (stdio_file_magic, struct stdio_file): Delete.
16655 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
16656 (stdio_file::flush): New.
16657 (stdio_file_read): Rename to ...
16658 (stdio_file::read): ... this. Adjust.
16659 (stdio_file_write): Rename to ...
16660 (stdio_file::write): ... this. Adjust.
16661 (stdio_file_write_async_safe): Rename to ...
16662 (stdio_file::write_async_safe) ... this. Adjust.
16663 (stdio_file_fputs): Rename to ...
16664 (stdio_file::puts) ... this. Adjust.
16665 (stdio_file_isatty): Delete.
16666 (stdio_file_fseek): Delete.
16667 (stdio_file::isatty): New.
16668 (stderr_file_write): Rename to ...
16669 (stderr_file::write) ... this. Adjust.
16670 (stderr_file_fputs): Rename to ...
16671 (stderr_file::puts) ... this. Adjust.
16672 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
16673 (stderr_file::stderr_file): New.
16674 (tee_file_magic): Delete.
16675 (struct tee_file): Delete.
16676 (tee_file::tee_file): New.
16677 (tee_file_new): Delete.
16678 (tee_file::~tee_file): New.
16679 (tee_file_delete): Delete.
16680 (tee_file_flush): Rename to ...
16681 (tee_file::flush): ... this. Adjust.
16682 (tee_file_write): Rename to ...
16683 (tee_file::write): ... this. Adjust.
16684 (tee_file::write_async_safe): New.
16685 (tee_file_fputs): Rename to ...
16686 (tee_file::puts): ... this. Adjust.
16687 (tee_file_isatty): Rename to ...
16688 (tee_file::isatty): ... this. Adjust.
16689 * ui-file.h (struct obstack, struct ui_file): Don't
16690 forward-declare.
16691 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
16692 (ui_file_write_ftype)
16693 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
16694 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
16695 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
16696 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
16697 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
16698 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
16699 (set_ui_file_fseek): Delete.
16700 (ui_file_data, ui_file_delete, ui_file_rewind)
16701 (struct ui_file): New.
16702 (ui_file_up): New.
16703 (class null_file): New.
16704 (null_stream): Declare.
16705 (ui_file_write_for_put, ui_file_put): Delete.
16706 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
16707 Delete.
16708 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
16709 (gdb_fopen, tee_file_new): Delete.
16710 (struct string_file): New.
16711 (struct stdio_file): New.
16712 (stdio_file_up): New.
16713 (struct stderr_file): New.
16714 (class tee_file): New.
16715 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
16716 of a 'ui_file *'. Adjust.
16717 * ui-out.h (class ui_out) <field_stream>: Likewise.
16718 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
16719 (null_stream): Delete.
16720 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
16721 Adjust.
16722 * utils.h (struct ui_file): Delete forward declaration..
16723 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
16724 (error_stream): Take a 'string_file &' instead of a
16725 'ui_file *'.
16726 * varobj.c (varobj_value_get_print_value): Use string_file.
16727 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
16728 * gdbarch.c: Regenerate.
16729
16730 2017-02-02 Pedro Alves <palves@redhat.com>
16731
16732 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
16733 (gdb_pretty_print_insn): ... this. Now a free function. Add back
16734 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
16735 Adjust to call gdb_print_insn instead of
16736 gdb_disassembler::print_insn.
16737 (dump_insns, do_mixed_source_and_assembly_deprecated)
16738 (do_mixed_source_and_assembly, do_assembly_only): Add back a
16739 'gdbarch' parameter. Remove gdb_disassembler parameter.
16740 (gdb_disassembly): Don't allocate a gdb_disassembler here.
16741 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
16742 declaration.
16743 (gdb_pretty_print_insn): Re-add declaration.
16744 * record-btrace.c (btrace_insn_history): Don't allocate a
16745 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
16746
16747 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
16748
16749 * disasm.h (gdb_disassembly): Remove file_string parameter.
16750 * disasm.c (gdb_disassembly): Likewise.
16751 * cli/cli-cmds.c (print_disassembly): Adapt.
16752 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
16753 * stack.c (do_gdb_disassembly): Likewise.
16754
16755 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
16756
16757 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
16758 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
16759 targets. And if the implicit value is longer than needed, extract
16760 the first bytes instead of the "least significant" ones.
16761
16762 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16763
16764 * btrace.c (btrace_enable): Do not call btrace_add_pc for
16765 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
16766 (btrace_fetch): Assert can_access_registers_ptid.
16767 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
16768 validate_registers_access.
16769
16770 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
16771
16772 * gdbthread.h (can_access_registers_ptid): New.
16773 * thread.c (can_access_registers_ptid): New.
16774
16775 2017-02-01 Pedro Alves <palves@redhat.com>
16776
16777 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
16778
16779 2017-01-31 Pedro Alves <palves@redhat.com>
16780
16781 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
16782 Fix typos.
16783
16784 2017-01-31 Pedro Alves <palves@redhat.com>
16785
16786 * stack.c (print_frame_args): Remove local mem_fileopen stream,
16787 not used.
16788
16789 2017-01-31 Pedro Alves <palves@redhat.com>
16790
16791 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
16792
16793 2017-01-31 Pedro Alves <palves@redhat.com>
16794
16795 * common/scoped_restore.h
16796 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
16797 change the value's parameter type to T2.
16798 (make_scoped_restore): Likewise.
16799
16800 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16801 Richard Henderson <rth@redhat.com>
16802
16803 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
16804 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
16805 GS_BASE for older kernels.
16806 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
16807 GS_BASE for older kernels.
16808 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
16809 and GS_BASE to the offset table.
16810 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
16811 system register group.
16812 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
16813 for older kernels.
16814 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
16815 amd64 ABI.
16816 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
16817 AMD64_GSBASE_REGNUM.
16818 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
16819 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
16820 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
16821 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
16822 i386/64bit-segments.xml in those rules.
16823 * features/i386/64bit-segments.xml: New file.
16824 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
16825 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
16826 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
16827 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
16828 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
16829 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
16830 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
16831 * features/i386/amd64-avx-linux.c: Regenerated.
16832 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
16833 * features/i386/amd64-avx-mpx.c: Regenerated.
16834 * features/i386/amd64-avx512-linux.c: Regenerated.
16835 * features/i386/amd64-linux.c: Regenerated.
16836 * features/i386/amd64-mpx-linux.c: Regenerated.
16837 * features/i386/i386-avx-mpx-linux.c: Regenerated.
16838 * features/i386/i386-avx-mpx.c: Regenerated.
16839 * features/i386/x32-avx-linux.c: Regenerated.
16840 * features/i386/x32-avx512-linux.c: Regenerated.
16841 * regformats/i386/amd64-avx-linux.dat: Regenerated.
16842 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
16843 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
16844 * regformats/i386/amd64-linux.dat: Regenerated.
16845 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
16846 * regformats/i386/x32-avx-linux.dat: Regenerated.
16847 * regformats/i386/x32-avx512-linux.dat: Regenerated.
16848 * regformats/i386/x32-linux.dat: Regenerated.
16849
16850 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16851
16852 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
16853 Set to AMD64_NUM_REGS.
16854
16855 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
16856
16857 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
16858 that checks validity of a register number.
16859
16860 2017-01-27 Kees Cook <keescook@google.com>
16861
16862 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
16863 fetch_fpregs if target has fpa registers.
16864 (arm_linux_store_inferior_registers): Call store_fpregs if target
16865 has fpa registers.
16866
16867 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
16868
16869 * cris-tdep.c (cris_gdbarch_init): Remove check for
16870 info.byte_order and force it to BFD_ENDIAN_LITTLE.
16871
16872 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
16873
16874 * corelow.c (get_core_register_section): Check for regset
16875 existence before checking for REGSET_VARIABLE_SIZE.
16876
16877 2017-01-26 Yao Qi <yao.qi@linaro.org>
16878 Pedro Alves <palves@redhat.com>
16879
16880 PR gdb/20939
16881 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
16882 call memory_error, save memaddr instead.
16883 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
16884 negative, cal memory_error.
16885 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
16886
16887 2017-01-26 Yao Qi <yao.qi@linaro.org>
16888
16889 * disasm-selftests.c (memory_error_test): New function.
16890 (_initialize_disasm_selftests): Register memory_error_test.
16891
16892 2017-01-26 Yao Qi <yao.qi@linaro.org>
16893
16894 * Makefile.in (SFILES): Add disasm-selftests.c and
16895 selftest-arch.c.
16896 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
16897 * disasm-selftests.c: New file.
16898 * selftest-arch.c: New file.
16899 * selftest-arch.h: New file.
16900
16901 2017-01-26 Yao Qi <yao.qi@linaro.org>
16902
16903 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
16904 to bfd_arch_mep. Don't return 0 if section is not
16905 found. Call print_insn_mep.
16906
16907 2017-01-26 Pedro Alves <palves@redhat.com>
16908 Yao Qi <yao.qi@linaro.org>
16909
16910 * arm-tdep.c: Include "disasm.h".
16911 (gdb_print_insn_arm): Update code to get gdbarch.
16912 * disasm.c (dis_asm_read_memory): Change it to
16913 gdb_disassembler::dis_asm_read_memory.
16914 (dis_asm_memory_error): Likewise.
16915 (dis_asm_print_address): Likewise.
16916 (gdb_pretty_print_insn): Change it to
16917 gdb_disassembler::pretty_print_insn.
16918 (dump_insns): Add one argument gdb_disassemlber. All
16919 callers updated.
16920 (do_mixed_source_and_assembly_deprecated): Likewise.
16921 (do_mixed_source_and_assembly): Likewise.
16922 (do_assembly_only): Likewise.
16923 (gdb_disassembler::gdb_disassembler): New.
16924 (gdb_disassembler::print_insn): New.
16925 * disasm.h (class gdb_disassembler): New.
16926 (gdb_pretty_print_insn): Remove declaration.
16927 (gdb_disassemble_info): Likewise.
16928 * guile/scm-disasm.c (class gdbscm_disassembler): New.
16929 (gdbscm_disasm_read_memory_worker): Update.
16930 (gdbscm_disasm_read_memory): Update.
16931 (gdbscm_disasm_memory_error): Remove.
16932 (gdbscm_disasm_print_address): Remove.
16933 (gdbscm_disassembler::gdbscm_disassembler): New.
16934 (gdbscm_print_insn_from_port): Update.
16935 * mips-tdep.c: Include disasm.h.
16936 (gdb_print_insn_mips): Update code to get gdbarch.
16937 * record-btrace.c (btrace_insn_history): Update.
16938 * spu-tdep.c: Include disasm.h.
16939 (struct spu_dis_asm_data): Remove.
16940 (struct spu_dis_asm_info): New.
16941 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
16942 SPU id.
16943 (gdb_print_insn_spu): Cast disassemble_info to
16944 spu_dis_asm_info.
16945
16946 2017-01-26 Yao Qi <yao.qi@linaro.org>
16947
16948 * disasm.c (do_ui_file_delete): Delete.
16949 (gdb_insn_length): Move code creating stream to ...
16950 * utils.c (null_stream): ... here. New function.
16951 * utils.h (null_stream): Declare.
16952
16953 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
16954
16955 * python/py-inferior.c (find_thread_object): Return directly
16956 from the loop. Remove "found" variable.
16957
16958 2017-01-21 Joel Brobecker <brobecker@adacore.com>
16959
16960 GDB 7.12.1 released.
16961
16962 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16963
16964 * python/py-function.c (fnpy_call): Reorder declarations to have
16965 the gdbpy_enter object declared first.
16966 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
16967
16968 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
16969
16970 PR python/21068
16971 * python/python-internal.h (PyMem_RawMalloc): Define for
16972 Python < 3.4.
16973 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
16974 PyMem_RawMalloc instead of PyMem_Malloc.
16975
16976 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
16977 Luis Machado <lgustavo@codesourcery.com>
16978
16979 * NEWS (New commands): Mention flash-erase.
16980 (New MI commands): Mention target-flash-erase.
16981 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
16982 command.
16983 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
16984 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
16985 * target.c (flash_erase_command): New function.
16986 (initialize_targets): Add new flash-erase command.
16987 * target.h (flash_erase_command): New declaration.
16988
16989 2017-01-20 Joel Brobecker <brobecker@adacore.com>
16990
16991 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
16992 HAVE_SYS_PROCFS_H is defined.
16993
16994 2017-01-18 Alan Hayward <alan.hayward@arm.com>
16995
16996 * remote.c (struct cached_reg): Change data into a pointer.
16997 * (stop_reply_dtr): Free data pointers before deleting vector.
16998 (process_stop_reply): Likewise.
16999 (remote_parse_stop_reply): Allocate space for data
17000
17001 2017-01-18 Alan Hayward <alan.hayward@arm.com>
17002
17003 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
17004 MAX_REGISTER_SIZE.
17005 (amd64_pseudo_register_read_value): Likewise.
17006 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
17007 (store_register_using_P): Likewise.
17008 * regcache.c (regcache_xfer_part): Likewise.
17009
17010 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
17011
17012 Split real and pseudo registers.
17013 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
17014 (sparc32_pseudo_regnum): New enum.
17015 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
17016 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
17017 (SPARC32_CP0_REGISTERS): New macro.
17018 (sparc32_pseudo_register_name): New function.
17019 (sparc32_register_name): Use sparc32_pseudo_register_name.
17020 (sparc32_pseudo_register_type): New function.
17021 (sparc32_register_type): Use sparc32_pseudo_register_type.
17022 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
17023 pseudo register numbers.
17024 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
17025 (SPARC64_CP0_REGISTERS): New macro.
17026 (sparc64_pseudo_register_name): New function.
17027 (sparc64_register_name): Use sparc64_pseudo_register_name.
17028 (sparc64_pseudo_register_type): New function.
17029 (sparc64_register_type): Use sparc64_pseudo_register_type.
17030 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
17031 pseudo register numbers.
17032 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
17033 sparc64_store_arguments): Handle pseudo register numbers.
17034
17035 2017-01-13 Yao Qi <yao.qi@linaro.org>
17036
17037 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
17038 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
17039 output.
17040 (getpkt_or_notif_sane_1): Likewise.
17041
17042 2017-01-13 Yao Qi <yao.qi@linaro.org>
17043
17044 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
17045 of CC. Pass "-x c++-header" instead of "-x c".
17046
17047 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17048
17049 * remote.c (remote_can_async_p): Update comment.
17050
17051 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17052
17053 * linux-nat.c (linux_nat_can_async_p): Update comment.
17054
17055 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
17056
17057 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
17058
17059 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
17060
17061 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
17062
17063 2017-01-10 Tom Tromey <tom@tromey.com>
17064
17065 * python/py-type.c (typy_legacy_template_argument): Update.
17066 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
17067 ~demangle_parse_info): Declare new members.
17068 (cp_demangled_name_to_comp): Return unique_ptr.
17069 (cp_demangled_name_parse_free)
17070 (make_cleanup_cp_demangled_name_parse_free)
17071 (cp_new_demangle_parse_info): Remove.
17072 * cp-support.c (do_demangled_name_parse_free_cleanup)
17073 (make_cleanup_cp_demangled_name_parse_free): Remove.
17074 (inspect_type, cp_canonicalize_string_full)
17075 (cp_canonicalize_string): Update.
17076 (mangled_name_to_comp): Change return type.
17077 (cp_class_name_from_physname, method_name_from_physname)
17078 (cp_func_name, cp_remove_params): Update.
17079 * cp-name-parser.y (demangle_parse_info): New constructor, from
17080 cp_new_demangle_parse_info.
17081 (~demangle_parse_info): New destructor, from
17082 cp_demangled_name_parse_free.
17083 (cp_merge_demangle_parse_infos): Update.
17084 (cp_demangled_name_to_comp): Change return type.
17085
17086 2017-01-10 Tom Tromey <tom@tromey.com>
17087
17088 * top.c (prevent_dont_repeat): Change return type.
17089 * python/python.c (execute_gdb_command): Use std::string.
17090 Update.
17091 * guile/guile.c (gdbscm_execute_gdb_command): Update.
17092 * command.h (prevent_dont_repeat): Change return type.
17093 * breakpoint.c (bpstat_do_actions_1): Update.
17094
17095 2017-01-10 Tom Tromey <tom@tromey.com>
17096
17097 * value.h (scoped_value_mark::~scoped_value_mark): Call
17098 free_to_mark.
17099 (scoped_value_mark::free_to_mark): New method.
17100 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
17101 scoped_value_mark.
17102
17103 2017-01-10 Tom Tromey <tom@tromey.com>
17104
17105 * python/py-value.c (valpy_dereference, valpy_referenced_value)
17106 (valpy_reference_value, valpy_const_value, valpy_get_address)
17107 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
17108 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
17109 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
17110 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
17111 scoped_value_mark.
17112 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
17113 * value.h (scoped_value_mark): New class.
17114
17115 2017-01-10 Tom Tromey <tom@tromey.com>
17116
17117 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
17118 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
17119 * psymtab.c (discard_psymtabs_upto): Remove.
17120 (make_cleanup_discard_psymtabs): Remove.
17121 (struct psymtab_state): Remove.
17122
17123 2017-01-10 Tom Tromey <tom@tromey.com>
17124
17125 * record-full.c (record_full_save_cleanups): Remove.
17126 (record_full_save): Use gdb::unlinker.
17127 * gcore.c (do_bfd_delete_cleanup): Remove.
17128 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
17129 cleanups.
17130 * dwarf2read.c (unlink_if_set): Remove.
17131 (write_psymtabs_to_index): Use gdb::unlinker.
17132 * common/gdb_unlinker.h: New file.
17133
17134 2017-01-10 Tom Tromey <tom@tromey.com>
17135
17136 * windows-tdep.c (windows_xfer_shared_library): Update.
17137 * windows-nat.c (windows_make_so): Update.
17138 * utils.h (make_cleanup_bfd_unref): Remove.
17139 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
17140 * symfile.h (symfile_bfd_open)
17141 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
17142 * symfile.c (read_symbols, symbol_file_add)
17143 (separate_debug_file_exists): Update.
17144 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
17145 (generic_load, reread_symbols): Update.
17146 * symfile-mem.c (symbol_file_add_from_memory): Update.
17147 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
17148 (spu_symbol_file_add_from_memory): Update.
17149 * solist.h (struct target_so_ops) <bfd_open>: Return
17150 gdb_bfd_ref_ptr.
17151 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
17152 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
17153 gdb_bfd_ref_ptr.
17154 (solib_map_sections, reload_shared_libraries_1): Update.
17155 * solib-svr4.c (enable_break): Update.
17156 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
17157 * solib-frv.c (enable_break2): Update.
17158 * solib-dsbt.c (enable_break): Update.
17159 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
17160 gdb_bfd_ref_ptr.
17161 (darwin_solib_get_all_image_info_addr_at_init): Update.
17162 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
17163 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
17164 * record-full.c (record_full_save): Update.
17165 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
17166 * procfs.c (insert_dbx_link_bpt_in_file): Update.
17167 * minidebug.c (find_separate_debug_file_in_section): Return
17168 gdb_bfd_ref_ptr.
17169 * machoread.c (macho_add_oso_symfile): Change abfd to
17170 gdb_bfd_ref_ptr.
17171 (macho_symfile_read_all_oso): Update.
17172 (macho_check_dsym): Return gdb_bfd_ref_ptr.
17173 (macho_symfile_read): Update.
17174 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
17175 (jit_bfd_try_read_symtab): Update.
17176 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17177 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17178 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17179 gdb_bfd_ref_ptr.
17180 (gdb_bfd_ref_policy): New struct.
17181 (gdb_bfd_ref_ptr): New typedef.
17182 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
17183 (gdb_bfd_openw, gdb_bfd_openr_iovec)
17184 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
17185 gdb_bfd_ref_ptr.
17186 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17187 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
17188 (gcore_command): Update.
17189 * exec.c (exec_file_attach): Update.
17190 * elfread.c (elf_symfile_read): Update.
17191 * dwarf2read.c (dwarf2_get_dwz_file): Update.
17192 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
17193 (open_and_init_dwo_file): Update.
17194 (open_dwp_file): Return gdb_bfd_ref_ptr.
17195 (open_and_init_dwp_file): Update.
17196 * corelow.c (core_open): Update.
17197 * compile/compile-object-load.c (compile_object_load): Update.
17198 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
17199 * coffread.c (coff_symfile_read): Update.
17200 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
17201 gdb_bfd_ref_ptr. Rename.
17202 (dump_bfd_file, restore_command): Update.
17203 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17204 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
17205 (find_separate_debug_file_by_buildid): Update.
17206
17207 2017-01-10 Tom Tromey <tom@tromey.com>
17208
17209 * common/gdb_ref_ptr.h: New file.
17210 * python/py-ref.h (struct gdbpy_ref_policy): New.
17211 (gdbpy_ref): Now a typedef.
17212
17213 2017-01-10 Tom Tromey <tom@tromey.com>
17214
17215 * utils.h (make_cleanup_htab_delete): Don't declare.
17216 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
17217 Remove.
17218 * linespec.c (decode_compound_collector): Add constructor,
17219 destructor.
17220 (lookup_prefix_sym): Remove cleanup.
17221 (symtab_collector): Add constructor, destructor.
17222 (collect_symtabs_from_filename): Remove cleanup.
17223 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
17224 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
17225 Use htab_up.
17226 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
17227 * dwarf2read.c (dw2_expand_symtabs_matching)
17228 (dw2_map_symbol_filenames, dwarf_decode_macros)
17229 (write_psymtabs_to_index): Use htab_up.
17230 * dwarf2loc.c (func_verify_no_selftailcall)
17231 (call_site_find_chain_1, func_verify_no_selftailcall)
17232 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
17233 std::vector, gdb::unique_xmalloc_ptr.
17234 (call_sitep): Remove typedef.
17235 (dwarf2_locexpr_baton_eval): Remove unused variable.
17236
17237 2017-01-10 Tom Tromey <tom@tromey.com>
17238
17239 * python/python-internal.h (make_cleanup_py_decref)
17240 (make_cleanup_py_xdecref): Don't declare.
17241 * python/py-utils.c (py_decref, make_cleanup_py_decref)
17242 (py_xdecref, make_cleanup_py_xdecref): Remove.
17243
17244 2017-01-10 Tom Tromey <tom@tromey.com>
17245
17246 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
17247 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
17248
17249 2017-01-10 Tom Tromey <tom@tromey.com>
17250
17251 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
17252
17253 2017-01-10 Tom Tromey <tom@tromey.com>
17254
17255 * python/py-utils.c (unicode_to_encoded_string)
17256 (python_string_to_target_string)
17257 (python_string_to_target_python_string)
17258 (python_string_to_host_string, gdbpy_obj_to_string)
17259 (get_addr_from_python): Use gdbpy_ref.
17260
17261 2017-01-10 Tom Tromey <tom@tromey.com>
17262
17263 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
17264 gdbpy_ref.
17265
17266 2017-01-10 Tom Tromey <tom@tromey.com>
17267
17268 * python/python.c (eval_python_command, gdbpy_decode_line)
17269 (gdbpy_run_events, gdbpy_start_type_printers)
17270 (gdbpy_apply_type_printers): Use gdbpy_ref.
17271
17272 2017-01-10 Tom Tromey <tom@tromey.com>
17273
17274 * python/py-param.c (get_doc_string, compute_enum_values): Use
17275 gdbpy_ref.
17276
17277 2017-01-10 Tom Tromey <tom@tromey.com>
17278
17279 * python/py-inferior.c (find_thread_object, build_inferior_list):
17280 Use gdbpy_ref.
17281
17282 2017-01-10 Tom Tromey <tom@tromey.com>
17283
17284 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17285
17286 2017-01-10 Tom Tromey <tom@tromey.com>
17287
17288 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
17289 gdbpy_ref.
17290
17291 2017-01-10 Tom Tromey <tom@tromey.com>
17292
17293 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
17294 extra incref.
17295 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
17296 Use gdbpy_ref.
17297
17298 2017-01-10 Tom Tromey <tom@tromey.com>
17299
17300 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17301 gdbpy_ref.
17302
17303 2017-01-10 Tom Tromey <tom@tromey.com>
17304
17305 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
17306 decref results of PyArg_ParseTupleAndKeywords.
17307
17308 2017-01-10 Tom Tromey <tom@tromey.com>
17309
17310 * python/python.c (python_run_simple_file): Use
17311 unique_xmalloc_ptr, gdbpy_ref.
17312
17313 2017-01-10 Tom Tromey <tom@tromey.com>
17314
17315 * python/py-prettyprint.c (print_stack_unless_memory_error)
17316 (print_string_repr, print_children): Use gdbpy_ref.
17317 (dummy_python_frame): New class.
17318 (dummy_python_frame::dummy_python_frame): Rename from
17319 push_dummy_python_frame.
17320 (py_restore_tstate): Remove.
17321
17322 2017-01-10 Tom Tromey <tom@tromey.com>
17323
17324 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
17325
17326 2017-01-10 Tom Tromey <tom@tromey.com>
17327
17328 * python/python.c (ensure_python_env, restore_python_env):
17329 Remove.
17330 * python/python-internal.h (ensure_python_env): Don't declare.
17331 * varobj.h (varobj_ensure_python_env): Don't declare.
17332 * varobj.c (varobj_ensure_python_env): Remove.
17333
17334 2017-01-10 Tom Tromey <tom@tromey.com>
17335
17336 * varobj.c (varobj_value_get_print_value): Use
17337 gdbpy_enter_varobj.
17338
17339 2017-01-10 Tom Tromey <tom@tromey.com>
17340
17341 * python/py-prettyprint.c (print_string_repr, print_children):
17342 Update.
17343 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
17344 of "encoding".
17345 * varobj.c (varobj_value_get_print_value): Update.
17346 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
17347
17348 2017-01-10 Tom Tromey <tom@tromey.com>
17349
17350 * varobj.c (varobj_get_display_hint)
17351 (dynamic_varobj_has_child_method, install_new_value_visualizer)
17352 (varobj_set_visualizer, free_variable): Use
17353 gdbpy_enter_varobj.
17354
17355 2017-01-10 Tom Tromey <tom@tromey.com>
17356
17357 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
17358 (do_finish_initialization): New function. Use gdbpy_ref.
17359 (gdbpy_finish_initialization): Use gdbpy_enter. Call
17360 do_finish_initialization.
17361
17362 2017-01-10 Tom Tromey <tom@tromey.com>
17363
17364 * python/py-param.c (get_set_value, get_show_value): Use
17365 gdbpy_enter, gdbpy_ref.
17366
17367 2017-01-10 Tom Tromey <tom@tromey.com>
17368
17369 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
17370
17371 2017-01-10 Tom Tromey <tom@tromey.com>
17372
17373 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
17374
17375 2017-01-10 Tom Tromey <tom@tromey.com>
17376
17377 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
17378 Use gdbpy_enter_varobj.
17379
17380 2017-01-10 Tom Tromey <tom@tromey.com>
17381
17382 * varobj.c (gdbpy_enter_varobj): New constructor.
17383 * python/python-internal.h (gdbpy_enter_varobj): New class.
17384 * python/py-varobj.c (py_varobj_get_iterator): Use
17385 gdbpy_enter_varobj.
17386
17387 2017-01-10 Tom Tromey <tom@tromey.com>
17388
17389 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
17390 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17391 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
17392 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
17393 unique_xmalloc_ptr.
17394 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
17395
17396 2017-01-10 Tom Tromey <tom@tromey.com>
17397
17398 * python/py-xmethods.c (invoke_match_method): Use
17399 gdbpy_ref.
17400
17401 2017-01-10 Tom Tromey <tom@tromey.com>
17402
17403 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
17404 gdbpy_enter, gdbpy_ref.
17405
17406 2017-01-10 Tom Tromey <tom@tromey.com>
17407
17408 * python/python.c (python_interactive_command): Use gdbpy_enter.
17409
17410 2017-01-10 Tom Tromey <tom@tromey.com>
17411
17412 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
17413 gdbpy_ref.
17414
17415 2017-01-10 Tom Tromey <tom@tromey.com>
17416
17417 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
17418 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
17419
17420 2017-01-10 Tom Tromey <tom@tromey.com>
17421
17422 * utils.h (htab_deleter): New struct.
17423 (htab_up): New typedef.
17424 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
17425 gdbpy_enter, gdbpy_ref, htab_up.
17426
17427 2017-01-10 Tom Tromey <tom@tromey.com>
17428
17429 * python/py-unwind.c (pending_frame_invalidate): Remove.
17430 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
17431
17432 2017-01-10 Tom Tromey <tom@tromey.com>
17433
17434 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
17435 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
17436
17437 2017-01-10 Tom Tromey <tom@tromey.com>
17438
17439 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
17440
17441 2017-01-10 Tom Tromey <tom@tromey.com>
17442
17443 * python/python.c (gdbpy_eval_from_control_command)
17444 (gdbpy_source_script, gdbpy_run_events)
17445 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
17446 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
17447 gdbpy_enter.
17448
17449 2017-01-10 Tom Tromey <tom@tromey.com>
17450
17451 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
17452
17453 2017-01-10 Tom Tromey <tom@tromey.com>
17454
17455 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
17456
17457 2017-01-10 Tom Tromey <tom@tromey.com>
17458
17459 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
17460 (python_on_inferior_call_pre, python_on_inferior_call_post)
17461 (python_on_memory_change, python_on_register_change)
17462 (python_inferior_exit, python_new_objfile, add_thread_object)
17463 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
17464
17465 2017-01-10 Tom Tromey <tom@tromey.com>
17466
17467 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
17468 (bpfinishpy_handle_exit): Use gdbpy_enter.
17469
17470 2017-01-10 Tom Tromey <tom@tromey.com>
17471
17472 * python/py-cmd.c (cmdpy_destroyer)
17473 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
17474 gdbpy_enter.
17475
17476 2017-01-10 Tom Tromey <tom@tromey.com>
17477
17478 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
17479 gdbpy_enter.
17480 (gdbpy_breakpoint_has_cond): Likewise.
17481
17482 2017-01-10 Tom Tromey <tom@tromey.com>
17483
17484 * python/python.c (gdbpy_enter): New constructor.
17485 (~gdbpy_enter): New destructor.
17486 (restore_python_env, ensure_python_env): Rewrite.
17487 * python/python-internal.h (gdbpy_enter): New class.
17488
17489 2017-01-10 Tom Tromey <tom@tromey.com>
17490
17491 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
17492
17493 2017-01-10 Tom Tromey <tom@tromey.com>
17494
17495 * python/py-value.c (value_has_field, get_field_flag)
17496 (get_field_type, valpy_getitem, convert_value_from_python): Use
17497 gdbpy_ref.
17498
17499 2017-01-10 Tom Tromey <tom@tromey.com>
17500
17501 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
17502 gdbpy_ref.
17503
17504 2017-01-10 Tom Tromey <tom@tromey.com>
17505
17506 * python/py-prettyprint.c (search_pp_list)
17507 (find_pretty_printer_from_objfiles)
17508 (find_pretty_printer_from_progspace)
17509 (find_pretty_printer_from_gdb, find_pretty_printer)
17510 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
17511 gdbpy_ref.
17512
17513 2017-01-10 Tom Tromey <tom@tromey.com>
17514
17515 * python/py-param.c (call_doc_function): Use gdbpy_ref.
17516
17517 2017-01-10 Tom Tromey <tom@tromey.com>
17518
17519 * python/py-linetable.c (build_line_table_tuple_from_pcs)
17520 (ltpy_get_all_source_lines): Use gdbpy_ref.
17521
17522 2017-01-10 Tom Tromey <tom@tromey.com>
17523
17524 * python/py-framefilter.c (extract_sym, extract_value)
17525 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
17526 gdbpy_ref.
17527
17528 2017-01-10 Tom Tromey <tom@tromey.com>
17529
17530 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
17531
17532 2017-01-10 Tom Tromey <tom@tromey.com>
17533
17534 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
17535
17536 2017-01-10 Tom Tromey <tom@tromey.com>
17537
17538 * python/py-function.c (convert_values_to_python, fnpy_init): Use
17539 gdbpy_ref.
17540
17541 2017-01-10 Tom Tromey <tom@tromey.com>
17542
17543 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
17544
17545 2017-01-10 Tom Tromey <tom@tromey.com>
17546
17547 * python/py-type.c (convert_field, make_fielditem, typy_fields)
17548 (typy_range): Use gdbpy_ref.
17549
17550 2017-01-10 Tom Tromey <tom@tromey.com>
17551
17552 * python/py-threadevent.c (create_thread_event_object): Use
17553 gdbpy_ref.
17554 * python/py-stopevent.c (create_stop_event_object): Simplify.
17555 (emit_stop_event): Use gdbpy_ref.
17556 * python/py-signalevent.c (create_signal_event_object): Use
17557 gdbpy_ref.
17558 * python/py-newobjfileevent.c (create_new_objfile_event_object)
17559 (emit_new_objfile_event, create_clear_objfiles_event_object)
17560 (emit_clear_objfiles_event): Use gdbpy_ref.
17561 * python/py-infevents.c (create_inferior_call_event_object)
17562 (create_register_changed_event_object)
17563 (create_memory_changed_event_object, emit_inferior_call_event)
17564 (emit_memory_changed_event, emit_register_changed_event): Use
17565 gdbpy_ref.
17566 * python/py-exitedevent.c (create_exited_event_object)
17567 (emit_exited_event): Use gdbpy_ref.
17568 * python/py-event.h (evpy_emit_event): Remove
17569 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
17570 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
17571 * python/py-continueevent.c (emit_continue_event): Use
17572 gdbpy_ref.
17573 * python/py-breakpoint.c (gdbpy_breakpoint_created)
17574 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
17575 gdbpy_ref.
17576 * python/py-bpevent.c (create_breakpoint_event_object): Use
17577 gdbpy_ref.
17578
17579 2017-01-10 Tom Tromey <tom@tromey.com>
17580
17581 * python/py-ref.h: New file.
17582
17583 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17584
17585 * cli-out.c (cli_ui_out::do_redirect): Change return type to
17586 void.
17587 * cli-out.h (cli_ui_out::do_redirect): Likewise.
17588 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
17589 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
17590 * ui-out.c (ui_out::redirect): Likewise.
17591 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
17592 * cli/cli-logging.c (set_logging_redirect): Update call site of
17593 ui_out::redirect.
17594 (handle_redirections): Likewise.
17595 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
17596 * top.c (execute_command_to_string): Likewise.
17597 * utils.c (do_ui_out_redirect_pop): Likewise.
17598
17599 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
17600
17601 * stack.c (_initialize_stack): Update "frame" command help message.
17602
17603 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
17604
17605 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
17606
17607 2017-01-06 Yao Qi <yao.qi@linaro.org>
17608
17609 * x86-linux-nat.h: Include gdb_proc_service.h.
17610
17611 2017-01-06 Yao Qi <yao.qi@linaro.org>
17612
17613 * ser-base.h: Include serial.h.
17614
17615 2017-01-06 Yao Qi <yao.qi@linaro.org>
17616
17617 * ppc-linux-tdep.h: Include ppc-tdep.h.
17618
17619 2017-01-06 Yao Qi <yao.qi@linaro.org>
17620
17621 * nat/amd64-linux-siginfo.h: Include signal.h.
17622
17623 2017-01-06 Yao Qi <yao.qi@linaro.org>
17624
17625 * nat/aarch64-linux-hw-point.h: Include break-common.h.
17626
17627 2017-01-06 Yao Qi <yao.qi@linaro.org>
17628
17629 * mi/mi-parse.h: Include mi-cmds.h.
17630
17631 2017-01-06 Yao Qi <yao.qi@linaro.org>
17632
17633 * inf-loop.c: Don't include "target.h".
17634 * inf-loop.h: Include it here.
17635
17636 2017-01-06 Yao Qi <yao.qi@linaro.org>
17637
17638 * dfp.h: Include "dboulest.h" and "expression.h".
17639
17640 2017-01-06 Yao Qi <yao.qi@linaro.org>
17641
17642 * ax-gdb.h: Include "ax.h".
17643
17644 2017-01-06 Yao Qi <yao.qi@linaro.org>
17645
17646 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
17647 with nat/gdb_ptrace.h.
17648
17649 2017-01-05 Yao Qi <yao.qi@linaro.org>
17650
17651 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
17652 new line.
17653 (mips64_fbsd_sigframe_init): Likewise.
17654
17655 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17656
17657 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
17658 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
17659
17660 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17661
17662 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
17663 * NEWS: Mention new FreeBSD/mips native configuration.
17664 * config/mips/fbsd.mh: New file.
17665 * configure.host: Add mips*-*-freebsd*.
17666 * mips-fbsd-nat.c: New file.
17667
17668 2017-01-04 John Baldwin <jhb@FreeBSD.org>
17669
17670 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
17671 (ALLDEPFILES): Add mips-fbsd-tdep.c.
17672 * NEWS: Mention new FreeBSD/mips target.
17673 * configure.tgt: Add mips*-*-freebsd*.
17674 * mips-fbsd-tdep.c: New file.
17675 * mips-fbsd-tdep.h: New file.
17676
17677 2017-01-04 Yao Qi <yao.qi@linaro.org>
17678
17679 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
17680 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
17681
17682 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17683
17684 Update copyright year range in all GDB files.
17685
17686 2017-01-01 Joel Brobecker <brobecker@adacore.com>
17687
17688 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
17689
17690 For older changes see ChangeLog-2016.
17691 \f
17692 Local Variables:
17693 mode: change-log
17694 left-margin: 8
17695 fill-column: 74
17696 version-control: never
17697 coding: utf-8
17698 End:
This page took 0.452698 seconds and 5 git commands to generate.