Copy string_view files from libstdc++
[external/binutils.git] / gdb / ChangeLog
1 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
2
3         * common/gdb_string_view.h: New file.
4         * common/gdb_string_view.tcc: New file.
5
6 2018-04-09  Simon Marchi  <simon.marchi@polymtl.ca>
7
8         * ax_cxx_compile_stdcxx.m4: Sync with upstream.
9         * configure: Re-generate.
10
11 2018-04-09  Pedro Alves  <palves@redhat.com>
12
13         * gdbarch.sh: Include "observable.h" instead of "observer.h".
14         (set_target_gdbarch): Call
15         gdb::observers::architecture_changed.notify instead of
16         observer_notify_architecture_changed.
17
18 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
19
20         * tracepoint.c (struct current_traceframe_cleanup): Remove.
21         (do_restore_current_traceframe_cleanup): Remove.
22         (restore_current_traceframe_cleanup_dtor): Remove.
23         (make_cleanup_restore_current_traceframe): Remove.
24         (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
25         New.
26         * tracepoint.h (struct scoped_restore_current_traceframe): New.
27         * infrun.c (fetch_inferior_event): Use
28         scoped_restore_current_traceframe.
29
30 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
31
32         * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
33         Remove.
34         <n_allocated_type_units>: Remove.
35         <all_type_units>: Change to std::vector.
36         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
37         to std::vector change.
38         (dwarf2_per_objfile::get_cutu): Likewise.
39         (dwarf2_per_objfile::get_tu): Likewise.
40         (create_signatured_type_table_from_index): Likewise.
41         (create_signatured_type_table_from_debug_names): Likewise.
42         (dw2_symtab_iter_next): Likewise.
43         (dw2_print_stats): Likewise.
44         (dw2_expand_all_symtabs): Likewise.
45         (dw2_expand_marked_cus): Likewise.
46         (dw2_debug_names_iterator::next): Likewise.
47         (dwarf2_initialize_objfile): Likewise.
48         (add_signatured_type_cu_to_table): Likewise.
49         (create_all_type_units): Likewise.
50         (add_type_unit): Likewise.
51         (struct tu_abbrev_offset): Add constructor.
52         (build_type_psymtabs_1): Adjust to std::vector change.
53         (print_tu_stats): Likewise.
54         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
55         (write_debug_names): Likewise.
56
57 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
58
59         * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
60         Make an std::vector.
61         <n_comp_units>: Remove.
62         * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
63         to std::vector change.
64         (dwarf2_per_objfile::get_cutu): Likewise.
65         (dwarf2_per_objfile::get_cu): Likewise.
66         (create_cus_from_index): Likewise.
67         (create_addrmap_from_index): Likewise.
68         (create_addrmap_from_aranges): Likewise.
69         (dwarf2_read_index): Likewise.
70         (dw2_find_last_source_symtab): Likewise.
71         (dw2_map_symtabs_matching_filename): Likewise.
72         (dw2_symtab_iter_next): Likewise.
73         (dw2_print_stats): Likewise.
74         (dw2_expand_all_symtabs): Likewise.
75         (dw2_expand_symtabs_with_fullname): Likewise.
76         (dw2_expand_marked_cus): Likewise.
77         (dw2_map_symbol_filenames): Likewise.
78         (create_cus_from_debug_names): Likewise.
79         (dwarf2_read_debug_names): Likewise.
80         (dw2_debug_names_iterator::next): Likewise.
81         (dwarf2_initialize_objfile): Likewise.
82         (set_partial_user): Likewise.
83         (dwarf2_build_psymtabs_hard): Likewise.
84         (read_comp_units_from_section): Remove arguments, adjust to
85         std::vector change.
86         (create_all_comp_units): Adjust to std::vector and
87         read_comp_units_from_section changes.
88         (dwarf2_find_containing_comp_unit): Adjust to std::vector
89         change.
90         * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
91         (psyms_seen_size): Likewise.
92         (write_gdbindex): Likewise.
93         (write_debug_names): Likewise.
94
95 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
96
97         * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
98         with dwarf2_per_objfile.
99         (create_cus_from_index): Likewise.
100         (create_signatured_type_table_from_index): Likewise.
101         (dwarf2_read_index): Likewise.
102         (dwarf2_initialize_objfile): Likewise.
103         (dwarf2_fetch_die_loc_sect_off):  Get dwarf2_per_objfile from
104         per_cu rather than get_dwarf2_per_objfile.
105
106 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
107
108         * dwarf2read.h (struct signatured_type): Forward declare.
109         (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
110         New methods.
111         * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
112         (dw2_get_cutu): ...this.
113         (dwarf2_per_objfile::get_cu): Rename from...
114         (dw2_get_cu): ...this.
115         (dwarf2_per_objfile::get_tu): New.
116         (create_addrmap_from_index): Adjust.
117         (create_addrmap_from_aranges): Adjust.
118         (dw2_find_last_source_symtab): Adjust.
119         (dw2_map_symtabs_matching_filename): Adjust.
120         (dw2_symtab_iter_next): Adjust.
121         (dw2_print_stats): Adjust.
122         (dw2_expand_all_symtabs): Adjust.
123         (dw2_expand_symtabs_with_fullname): Adjust.
124         (dw2_expand_marked_cus): Adjust.
125         (dw_expand_symtabs_matching_file_matcher): Adjust.
126         (dw2_map_symbol_filenames): Adjust.
127         (dw2_debug_names_iterator::next): Adjust.
128         (dwarf2_initialize_objfile): Adjust.
129         (set_partial_user): Adjust.
130         (dwarf2_build_psymtabs_hard): Adjust.
131
132 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
133
134         * dwarf2read.c (create_signatured_type_table_from_debug_names):
135         Remove unused variables.
136         (dw2_map_symtabs_matching_filename): Likewise.
137         (dwarf2_record_block_ranges): Likewise.
138         (dwarf2_read_addr_index): Likewise.
139         (follow_die_offset): Likewise.
140
141 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
142
143         * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
144         to symbol_file_add_main.
145
146 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
147
148         PR mi/22299
149         * mi/mi-console.c (do_fputc_async_safe): New.
150         (mi_console_file::write_async_safe): New.
151         (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
152         * mi/mi-console.h (class mi_console_file) <write_async_safe>:
153         New.
154         * ui-file.c (ui_file::putstrn): Adjust call to
155         fputstrn_unfiltered.
156         * utils.c (printchar): Replace do_fputs and do_fprintf
157         parameters by do_fputc.
158         (fputstr_filtered): Adjust call to printchar.
159         (fputstr_unfiltered): Likewise.
160         (fputstrn_filtered): Likewise.
161         (fputstrn_unfiltered): Add do_fputc parameter, pass to
162         printchar.
163         * utils.h (do_fputc_ftype): New typedef.
164         (fputstrn_unfiltered): Add do_fputc parameter.
165
166 2018-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
167
168         * regformats/i386/i386-avx.dat: Remove.
169
170 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
171
172         PR gdb/22979
173         * amd64-tdep.c (amd64_none_init_abi): New function.
174         (amd64_x32_none_init_abi): New function.
175         (_initialize_amd64_tdep): Register handlers for x86-64 and
176         x64_32 with GDB_OSABI_NONE.
177         * osabi.c (gdbarch_init_osabi): Allow running handlers for the
178         GDB_OSABI_NONE osabi.
179
180 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
181
182         PR gdb/22980
183         * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
184         GDB_OSABI_NONE.
185         * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
186         * osabi.c (gdb_osabi_names): Add "unknown" entry.
187
188 2018-04-07  Simon Marchi  <simon.marchi@ericsson.com>
189
190         * common/byte-vector.h (char_vector): New type.
191         * target.h (target_read_alloc): Return
192         gdb::optional<byte_vector>.
193         (target_read_stralloc): Return gdb::optional<char_vector>.
194         (target_get_osdata): Return gdb::optional<char_vector>.
195         * target.c (target_read_alloc_1): Templatize.  Replacement
196         manual memory management with vector.
197         (target_read_alloc): Change return type, adjust.
198         (target_read_stralloc): Change return type, adjust.
199         (target_get_osdata): Change return type, adjust.
200         * auxv.c (struct auxv_info) <length>: Remove.
201         <data>: Change type to gdb::optional<byte_vector>.
202         (auxv_inferior_data_cleanup): Free auxv_info with delete.
203         (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
204         (target_auxv_search): Adjust.
205         (fprint_target_auxv): Adjust.
206         * avr-tdep.c (avr_io_reg_read_command): Adjust.
207         * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
208         (linux_make_corefile_notes): Adjust.
209         * osdata.c (get_osdata): Adjust.
210         * remote.c (remote_get_threads_with_qxfer): Adjust.
211         (remote_memory_map): Adjust.
212         (remote_traceframe_info): Adjust.
213         (btrace_read_config): Adjust.
214         (remote_read_btrace): Adjust.
215         (remote_pid_to_exec_file): Adjust.
216         * solib-aix.c (solib_aix_get_library_list): Adjust.
217         * solib-dsbt.c (decode_loadmap): Don't free buf.
218         (dsbt_get_initial_loadmaps): Adjust.
219         * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
220         * solib-target.c (solib_target_current_sos): Adjust.
221         * tracepoint.c (sdata_make_value): Adjust.
222         * xml-support.c (xinclude_start_include): Adjust.
223         (xml_fetch_content_from_file): Adjust.
224         * xml-support.h (xml_fetch_another): Change return type.
225         (xml_fetch_content_from_file): Change return type.
226         * xml-syscall.c (xml_init_syscalls_info): Adjust.
227         * xml-tdesc.c (file_read_description_xml): Adjust.
228         (fetch_available_features_from_target): Change return type.
229         (target_fetch_description_xml): Adjust.
230         (target_read_description_xml): Adjust.
231
232 2018-04-06  Tom Tromey  <tom@tromey.com>
233
234         * value.c (~value): Update.
235         (struct value) <contents>: Now unique_xmalloc_ptr.
236         (value_contents_bits_eq, allocate_value_contents)
237         (value_contents_raw, value_contents_all_raw)
238         (value_contents_for_printing, value_contents_for_printing_const)
239         (set_value_enclosing_type): Update.
240
241 2018-04-06  Tom Tromey  <tom@tromey.com>
242
243         * value.c (range_s): Remove typedef, VEC.
244         (struct range): Add operator<.
245         (range_lessthan): Remove.
246         (ranges_contain): Change type.
247         (~value): Update.
248         (struct value) <unavailable, optimized_out>: Now std::vector.
249         (value_entirely_available)
250         (value_entirely_covered_by_range_vector)
251         (value_entirely_unavailable, value_entirely_optimized_out):
252         Update.
253         (insert_into_bit_range_vector): Change argument type.
254         (find_first_range_overlap): Likewise.
255         (struct ranges_and_idx, value_contents_bits_eq)
256         (require_not_optimized_out, require_available): Update.
257         (ranges_copy_adjusted): Change argument types.
258         (value_optimized_out, value_copy, value_fetch_lazy): Update.
259
260 2018-04-06  Tom Tromey  <tom@tromey.com>
261
262         * value.c (~value): Update.
263         (struct value) <parent>: Now a value_ref_ptr.
264         (value_parent, set_value_parent, value_address, value_copy):
265         Update.
266
267 2018-04-06  Tom Tromey  <tom@tromey.com>
268
269         * value.c (struct value): Add constructor, destructor, and member
270         initializers.
271         (allocate_value_lazy, value_decref): Update.
272
273 2018-04-06  Tom Tromey  <tom@tromey.com>
274
275         * value.c (struct value) <released, next>: Remove.
276         (all_values): Now a std::vector.
277         (allocate_value_lazy): Update.
278         (value_next): Remove.
279         (value_mark, value_free_to_mark, release_value)
280         (value_release_to_mark): Update.
281
282 2018-04-06  Tom Tromey  <tom@tromey.com>
283
284         * value.h (fetch_subexp_value, value_release_to_mark): Update.
285         (free_value_chain): Remove.
286         * value.c (free_value_chain): Remove.
287         (value_release_to_mark): Return a std::vector.
288         * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
289         std::vector.
290         (check_condition): Update.
291         * eval.c (fetch_subexp_value): Change "val_chain" to a
292         std::vector.
293         * breakpoint.c (update_watchpoint): Update.
294         (can_use_hardware_watchpoint): Change "vals" to a std::vector.
295
296 2018-04-06  Tom Tromey  <tom@tromey.com>
297
298         * value.h (free_all_values): Remove.
299         * value.c (free_all_values): Remove.
300
301 2018-04-06  Tom Tromey  <tom@tromey.com>
302
303         * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
304         (value_history_chain, value_history_count): Remove.
305         (value_history): New global.
306         (record_latest_value, access_value_history, show_values)
307         (preserve_values): Update.
308
309 2018-04-06  Tom Tromey  <tom@tromey.com>
310
311         * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
312         * varobj.c (varobj_set_display_format, varobj_set_value)
313         (install_default_visualizer, construct_visualizer)
314         (install_new_value, ~varobj, varobj_get_value_type)
315         (my_value_of_variable, varobj_editable_p): Update.
316         * c-varobj.c (c_describe_child, c_value_of_variable)
317         (cplus_number_of_children, cplus_describe_child): Update.
318         * ada-varobj.c (ada_number_of_children, ada_name_of_child)
319         (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
320         (ada_value_of_variable, ada_value_is_changeable_p): Update.
321
322 2018-04-06  Tom Tromey  <tom@tromey.com>
323
324         * printcmd.c (last_examine_address): Change type to
325         value_ref_ptr.
326         (do_examine, x_command): Update.
327
328 2018-04-06  Tom Tromey  <tom@tromey.com>
329
330         * value.c (release_value): Update.
331         * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
332         (struct bpstats) <val>: Now a value_ref_ptr.
333         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
334         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
335         (~watchpoint, print_it_watchpoint, watch_command_1)
336         (invalidate_bp_value_on_memory_change): Update.
337
338 2018-04-06  Tom Tromey  <tom@tromey.com>
339
340         * varobj.c (varobj_clear_saved_item)
341         (update_dynamic_varobj_children, install_new_value, ~varobj):
342         Update.
343         * value.h (value_incref): Move declaration earlier.
344         (value_decref): Rename from value_free.
345         (struct value_ref_policy): New.
346         (value_ref_ptr): New typedef.
347         (struct value_deleter): Remove.
348         (gdb_value_up): Remove typedef.
349         (release_value): Change return type.
350         (release_value_or_incref): Remove.
351         * value.c (set_value_parent): Update.
352         (value_incref): Change return type.
353         (value_decref): Rename from value_free.
354         (value_free_to_mark, free_all_values, free_value_chain): Update.
355         (release_value): Return value_ref_ptr.
356         (release_value_or_incref): Remove.
357         (record_latest_value, set_internalvar, clear_internalvar):
358         Update.
359         * stack.c (info_frame_command): Don't call value_free.
360         * python/py-value.c (valpy_dealloc, valpy_new)
361         (value_to_value_object): Update.
362         * printcmd.c (do_examine): Update.
363         * opencl-lang.c (lval_func_free_closure): Update.
364         * mi/mi-main.c (register_changed_p): Don't call value_free.
365         * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
366         * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
367         * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
368         value_free.
369         * guile/scm-value.c (vlscm_free_value_smob)
370         (vlscm_scm_from_value): Update.
371         * frame.c (frame_register_unwind, frame_unwind_register_signed)
372         (frame_unwind_register_unsigned, get_frame_register_bytes)
373         (put_frame_register_bytes): Don't call value_free.
374         * findvar.c (address_from_register): Don't call value_free.
375         * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
376         * dwarf2loc.c (entry_data_value_free_closure)
377         (value_of_dwarf_reg_entry, free_pieced_value_closure)
378         (dwarf2_evaluate_loc_desc_full): Update.
379         * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
380         (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
381         (~watchpoint, watch_command_1)
382         (invalidate_bp_value_on_memory_change): Update.
383         * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
384
385 2018-04-06  Simon Marchi  <simon.marchi@polymtl.ca>
386
387         PR gdb/23022
388         * warning.m4: Add -Wno-error=deprecated-register.
389         * configure: Re-generate.
390
391 2018-04-05  Tom Tromey  <tom@tromey.com>
392
393         * linespec.h: Remove include of "vec.h".
394
395 2018-04-05  Tom Tromey  <tom@tromey.com>
396
397         * linespec.c (typep): Remove typedef.
398         (find_methods, find_superclass_methods): Take a std::vector.
399         (find_method): Use std::vector.
400
401 2018-04-05  Tom Tromey  <tom@tromey.com>
402
403         * utils.c (compare_strings): Remove.
404         * utils.h (compare_strings): Remove.
405         * objc-lang.h (find_imps): Update.
406         * objc-lang.c (find_methods): Take a std::vector.
407         (uniquify_strings, find_imps): Likewise.
408         * linespec.c (find_methods): Take a std::vector.
409         (decode_objc): Use std::vector.
410         (add_all_symbol_names_from_pspace, find_superclass_methods): Take
411         a std::vector.
412         (find_method, find_function_symbols): Use std::vector.
413
414 2018-04-05  Tom Tromey  <tom@tromey.com>
415
416         * completer.c (completion_tracker::completion_tracker): Remove
417         cast.
418         (completion_tracker::discard_completions): Likewise.
419         * breakpoint.c (ambiguous_names_p): Remove cast.
420         * ada-lang.c (_initialize_ada_language): Remove cast.
421         * utils.h (streq): Update.
422         (streq_hash): Add new declaration.
423         * utils.c (streq): Return bool.
424         (streq_hash): New function.
425
426 2018-04-05  Tom Tromey  <tom@tromey.com>
427
428         * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
429         Remove a string copy.
430
431 2018-04-05  Tom Tromey  <tom@tromey.com>
432
433         * linespec.c (filter_results): Use std::vector.
434         (decode_line_2, decode_line_full): Update.
435
436 2018-04-05  Tom Tromey  <tom@tromey.com>
437
438         * linespec.c (canonical_to_fullform): Return std::string.
439         (filter_results): Update.
440         (struct decode_line_2_item): Add constructor.
441         <fullform, displayform>: Now std::string.
442         (decode_line_2_compare_items): Now a std::sort comparator.
443         (decode_line_2): Update.
444
445 2018-04-05  Tom Tromey  <tom@tromey.com>
446
447         * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
448         (unexpected_linespec_error): Update.
449         (linespec_parse_basic, parse_linespec): Update.
450
451 2018-04-05  Tom Tromey  <tom@tromey.com>
452
453         * linespec.c (linespec_parse_basic): Reindent.
454
455 2018-04-05  Tom Tromey  <tom@tromey.com>
456
457         * minsyms.h (iterate_over_minimal_symbols): Update.
458         * minsyms.c (iterate_over_minimal_symbols): Take a
459         gdb::function_view.
460         * linespec.c (struct collect_minsyms): Remove.
461         (compare_msyms): Now a std::sort comparator.
462         (add_minsym): Add parameters.
463         (search_minsyms_for_name): Update.  Use std::vector.
464
465 2018-04-03  Tom Tromey  <tom@tromey.com>
466
467         * mipsread.c (read_alphacoff_dynamic_symtab): Use
468         gdb::byte_vector.
469
470 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
471
472         * MAINTAINERS (Write After Approval): Add Weimin Pan.
473
474 2018-04-02  Weimin Pan  <weimin.pan@oracle.com>
475
476         PR gdb/16959
477         * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when 
478         printing static type.
479
480 2018-04-01  Tom Tromey  <tom@tromey.com>
481
482         * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
483         (rs6000_xfer_shared_libraries): Update.
484
485 2018-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
486
487         * common/gdb_vecs.h (char_ptr): Remove.
488         * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
489
490 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
491
492         * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
493         with std::vector.
494         * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
495
496 2018-03-30  Simon Marchi  <simon.marchi@polymtl.ca>
497
498         * tracepoint.h (struct uploaded_tp): Initialize fields.
499         <actions, step_actions, cmd_strings>: Change type to
500         std::vector<char *>.
501         * tracepoint.c (get_uploaded_tp): Allocate with new.
502         (free_uploaded_tps): Free with delete.
503         (parse_tracepoint_definition): Adjust to std::vector change.
504         * breakpoint.c (read_uploaded_action): Likewise.
505         (create_tracepoint_from_upload): Likewise.
506         * ctf.c (ctf_write_uploaded_tp): Likewise.
507         (SET_ARRAY_FIELD): Likewise.
508         * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
509
510 2018-03-30  Tom Tromey  <tom@tromey.com>
511
512         * solib-svr4.c (lm_info_read): Use gdb::byte_vector.  Return
513         std::unique_ptr.
514         (svr4_keep_data_in_core): Update.
515         (svr4_read_so_list): Update.
516
517 2018-03-30  Tom Tromey  <tom@tromey.com>
518
519         * windows-nat.c (handle_output_debug_string, handle_exception):
520         Update.
521         * target.h (target_read_string): Update.
522         * target.c (target_read_string): Change "string" to
523         unique_xmalloc_ptr.
524         * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
525         Update.
526         * solib-frv.c (frv_current_sos): Update.
527         * solib-dsbt.c (dsbt_current_sos): Update.
528         * solib-darwin.c (darwin_current_sos): Update.
529         * linux-thread-db.c (inferior_has_bug): Update.
530         * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
531         Update.  Remove alloca.
532         * ada-lang.c (ada_main_name): Update.
533
534 2018-03-30  Tom Tromey  <tom@tromey.com>
535
536         * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
537         (struct dwo_file_deleter): New.
538         (dwo_file_up): New typedef.
539         (open_and_init_dwo_file): Use dwo_file_up.
540         (free_dwo_file_cleanup): Remove.
541
542 2018-03-30  Tom Tromey  <tom@tromey.com>
543
544         * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
545         (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
546
547 2018-03-30  Tom Tromey  <tom@tromey.com>
548
549         * dwarf2read.c (class free_cached_comp_units): New class.
550         (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
551         (free_cached_comp_units): Remove function.
552
553 2018-03-30  Tom Tromey  <tom@tromey.com>
554
555         * utils.h (make_cleanup_unpush_target): Remove.
556         * inf-ptrace.c (struct target_unpusher): New.
557         (target_unpush_up) New typedef.
558         (inf_ptrace_create_inferior, inf_ptrace_attach): Use
559         target_unpush_up.
560         * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
561
562 2018-03-27  Tom Tromey  <tom@tromey.com>
563
564         * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
565
566 2018-03-27  Pedro Alves  <palves@redhat.com>
567             Tom Tromey  <tom@tromey.com>
568
569         * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
570         destructor.  Now a class.
571         (gdb_readline_wrapper_cleanup): Remove function.
572         (gdb_readline_wrapper): Remove cleanups.
573
574 2018-03-27  Tom Tromey  <tom@tromey.com>
575
576         * typeprint.h (struct type_print_options) <local_typedefs,
577         global_typedefs>: Remove "struct" keyword.
578         (class typedef_hash_table): New class.
579         (recursively_update_typedef_hash, add_template_parameters)
580         (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
581         (find_typedef_in_hash): Don't declare.
582         * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
583         (typedef_hash_table::recursively_update): Rename from
584         recursively_update_typedef_hash.  Now a member.
585         (typedef_hash_table::add_template_parameters): Rename from
586         add_template_parameters.  Now a member.
587         (typedef_hash_table::typedef_hash_table): Now a constructor;
588         rename from create_typedef_hash.
589         (typedef_hash_table::~typedef_hash_table): Now a destructor;
590         rename from free_typedef_hash.
591         (do_free_typedef_hash, make_cleanup_free_typedef_hash)
592         (do_free_global_table): Remove.
593         (typedef_hash_table::typedef_hash_table): New constructor; renamed
594         from copy_type_recursive.
595         (create_global_typedef_table): Remove.
596         (typedef_hash_table::find_global_typedef): Now a member of
597         typedef_hash_table.
598         (typedef_hash_table::find_typedef): Rename from
599         find_typedef_in_hash; now a member.
600         (whatis_exp): Update.
601         * extension.h (struct ext_lang_type_printers): Add constructor and
602         destructor.
603         (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
604         declare.
605         * extension.c (ext_lang_type_printers::ext_lang_type_printers):
606         Now a constructor; rename from start_ext_lang_type_printers.
607         (ext_lang_type_printers): Now a destructor; rename from
608         free_ext_lang_type_printers.
609         * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
610         Update.
611         (c_type_print_base_struct_union): Update.  Remove cleanups.
612
613 2018-03-27  Tom Tromey  <tom@tromey.com>
614
615         * dwarf-index-write.c: Include <cmath>.
616
617 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
618
619         * NEWS: Add entry describing new "set|show varsize-limit" command.
620         * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
621         command.
622         * printcmd.c (_initialize_printcmd): Add "set var" alias of
623         "set variable".
624
625 2018-03-27  Simon Marchi  <simon.marchi@ericsson.com>
626
627         * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
628         dwarf-index-write.c
629         (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
630         * dwarf-index-common.c: New file.
631         * dwarf-index-common.h: New file.
632         * dwarf-index-write.c: New file.
633         * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
634         (struct dwarf2_section_info): Move from here.
635         (dwarf2_section_info_def): Likewise.
636         (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
637         (offset_type): Likewise.
638         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
639         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
640         (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
641         (byte_swap): Likewise.
642         (MAYBE_SWAP): Likewise.
643         (dwarf2_per_cu_ptr): Likewise.
644         (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
645         (struct tu_stats): Likewise.
646         (struct dwarf2_per_objfile): Likewise.
647         (struct dwarf2_per_cu_data): Likewise.
648         (struct signatured_type): Likewise.
649         (sig_type_ptr): Likewise.
650         (DEF_VEC_P (sig_type_ptr)): Likewise.
651         (INDEX4_SUFFIX): Likewise.
652         (INDEX5_SUFFIX): Likewise.
653         (DEBUG_STR_SUFFIX): Likewise.
654         (dwarf2_read_section): Make non-static.
655         (mapped_index_string_hash): Move from here.
656         (dwarf5_djb_hash): Likewise.
657         (file_write): Likewise.
658         (class data_buf): Likewise.
659         (struct symtab_index_entry): Likewise.
660         (struct mapped_symtab): Likewise.
661         (find_slot): Likewise.
662         (hash_expand): Likewise.
663         (add_index_entry): Likewise.
664         (uniquify_cu_indices): Likewise.
665         (class c_str_view): Likewise.
666         (class c_str_view_hasher): Likewise.
667         (class vector_hasher): Likewise.
668         (write_hash_table): Likewise.
669         (psym_index_map): Likewise.
670         (struct addrmap_index_data): Likewise.
671         (add_address_entry): Likewise.
672         (add_address_entry_worker): Likewise.
673         (write_address_map): Likewise.
674         (symbol_kind): Likewise.
675         (write_psymbols): Likewise.
676         (struct signatured_type_index_data): Likewise.
677         (write_one_signatured_type): Likewise.
678         (recursively_count_psymbols): Likewise.
679         (recursively_write_psymbols): Likewise.
680         (class debug_names): Likewise.
681         (check_dwarf64_offsets): Likewise.
682         (psyms_seen_size): Likewise.
683         (write_gdbindex): Likewise.
684         (write_debug_names): Likewise.
685         (assert_file_size): Likewise.
686         (write_psymtabs_to_index): Likewise.
687         (save_gdb_index_command): Likewise.
688         (_initialize_dwarf2_read): Don't register the "save gdb-index"
689         command.
690         * dwarf2read.h: New file.
691
692 2018-03-27  Joel Brobecker  <brobecker@adacore.com>
693
694         PR gdb/22670
695         * dwarf2read.c (dwarf2_physname): Do not return the demangled
696         symbol name if the CU's language stores symbol names in linkage
697         format.
698         * language.h (struct language_defn)
699         <la_store_sym_names_in_linkage_form_p>: New field.  Adjust
700         all instances of this struct.
701
702 2018-03-26  Tom Tromey  <tom@tromey.com>
703
704         * stack.c (backtrace_command_1): Remove verbose code.
705
706 2018-03-26  Tom Tromey  <tom@tromey.com>
707
708         * python/py-framefilter.c (py_print_type): Don't catch
709         exceptions.  Return void.
710         (py_print_value): Likewise.
711         (py_print_single_arg): Likewise.
712         (enumerate_args): Don't catch exceptions.
713         (py_print_args): Likewise.
714         (py_print_frame): Likewise.
715         (gdbpy_apply_frame_filter): Catch exceptions here.
716
717 2018-03-26  Tom Tromey  <tom@tromey.com>
718
719         * stack.c (_initialize_stack): Remove trailing newlines from help
720         text.  Add "Usage" line to "backtrace" help.
721
722 2018-03-26  Tom Tromey  <tom@tromey.com>
723
724         PR python/16486:
725         * python/py-framefilter.c (py_print_args): Call wrap_hint.
726
727 2018-03-26  Tom Tromey  <tom@tromey.com>
728
729         * python/py-framefilter.c (py_print_single_arg): Return
730         EXT_LANG_BT_ERROR from catch.
731
732 2018-03-26  Tom Tromey  <tom@tromey.com>
733
734         PR backtrace/15584:
735         * stack.c (backtrace_command_1): Move some code into no-filters
736         "if".
737
738 2018-03-26  Tom Tromey  <tom@tromey.com>
739
740         * python/py-framefilter.c (throw_quit_or_print_exception): New
741         function.
742         (gdbpy_apply_frame_filter): Use it.
743
744 2018-03-26  Tom Tromey  <tom@tromey.com>
745
746         PR cli/17716:
747         * python/py-framefilter.c (py_print_type, py_print_value)
748         (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
749         RETURN_MASK_ERROR.
750
751 2018-03-26  Tom Tromey  <tom@tromey.com>
752
753         * python/py-framefilter.c (enumerate_args): Use
754         gdb::unique_xmalloc_ptr.
755
756 2018-03-26  Tom Tromey  <tom@tromey.com>
757
758         * python/py-framefilter.c (py_print_frame): Return
759         EXT_LANG_BT_OK.
760         (gdbpy_apply_frame_filter): Update comment.
761         * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
762         Remove.
763         <EXT_LANG_BT_NO_FILTERS>: Change value.
764
765 2018-03-26  Tom Tromey  <tom@tromey.com>
766
767         PR backtrace/15582:
768         * stack.c (backtrace_command): Parse "hide" argument.
769         * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
770         * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
771         constant.
772
773 2018-03-26  Tom Tromey  <tom@tromey.com>
774
775         * stack.c (backtrace_command_1): Remove "show_locals" parameter,
776         add "flags".
777         (backtrace_command): Remove "fulltrace", add "flags".
778
779 2018-03-26  Tom Tromey  <tom@tromey.com>
780
781         * stack.c (backtrace_command): Rewrite command line parsing.
782
783 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
784
785         * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
786
787 2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
788
789         * filename-seen-cache.h: Add include guard.
790
791 2018-03-26  Keith Seitz  <keiths@redhat.com>
792
793         * symfile.c (place_section): Remove "struct" from section_addr_info
794         in comment.
795         * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
796         "struct" keyword from section_addr_info.
797
798 2018-03-26  Alan Hayward  <alan.hayward@arm.com>
799
800         * regformats/regdef.h (reg): Add constructors.
801
802 2018-03-25  Pedro Alves  <palves@redhat.com>
803
804         * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
805         if then/else bodies in var_func_name extraction.
806
807 2018-03-23  Weimin Pan  <weimin.pan@oracle.com>
808
809         * minsyms.c (lookup_minimal_symbol_and_objfile): Use
810         lookup_minimal_symbol() to find symbol entry.
811         * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
812
813 2018-03-23  Keith Seitz  <keiths@redhat.com>
814
815         PR c++/22968
816         * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
817         nested type definitions for C++, too.
818
819 2018-03-23  Tom Tromey  <tom@tromey.com>
820
821         * machoread.c (struct oso_el): Add a constructor.  Don't define as
822         a typedef.
823         (macho_register_oso): Remove.
824         (macho_symtab_read): Take a std::vector.
825         (oso_el_compare_name): Now a std::sort comparator.
826         (macho_symfile_read_all_oso): Take a std::vector.
827         (macho_symfile_read): Use std::vector.  Remove cleanups.
828
829 2018-03-22  Tom Tromey  <tom@tromey.com>
830
831         * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
832         (record_full_goto_bookmark): Use std::string.
833
834 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
835
836         PR tdep/18295
837         * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
838         a single mask.
839
840 2018-03-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
841
842         * rs6000-tdep.c (store_insn_p): New function.
843         (skip_prologue): New variable alloca_reg_offset. Set lr_reg
844         and cr_reg to their unshifted values. Use store_insn_p to
845         match LR saves using either R1 or fdata->alloca_reg. Use
846         store_insn_p to match CR saves. Set alloca_reg_offset
847         when alloca_reg and framep are set. Remove lr_reg shift
848         when assigning to fdata->lr_register.
849
850 2018-03-22  Andreas Arnez  <arnez@linux.vnet.ibm.com>
851
852         * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
853         command line args instead of emitting a warning.
854
855 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
856
857         * tracepoint.h (struct static_tracepoint_marker): Initialize
858         fields, define default constructor, move constructor and move
859         assignment, disable the rest.
860         <str_id, extra>: Make std::string.
861         (release_static_tracepoint_marker): Remove.
862         (free_current_marker): Remove.
863         * tracepoint.c (free_current_marker): Remove.
864         (parse_static_tracepoint_marker_definition): Adjust to
865         std::string, use new hex2str overload.
866         (release_static_tracepoint_marker): Remove.
867         (print_one_static_tracepoint_marker): Get marker by reference
868         and adjust to std::string.
869         (info_static_tracepoint_markers_command): Adjust to std::vector
870         changes
871         * target.h (static_tracepoint_marker_p): Remove typedef.
872         (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
873         (struct target_ops) <to_static_tracepoint_marker_at>: Return
874         bool.
875         <to_static_tracepoint_markers_by_strid>: Return std::vector.
876         * target-debug.h
877         (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
878         (target_debug_print_std_vector_static_tracepoint_marker): New.
879         (target_debug_print_struct_static_tracepoint_marker_p): Rename
880         to...
881         (target_debug_print_static_tracepoint_marker_p): ... this.
882         * target-delegates.c: Re-generate.
883         * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
884         Make std::string.
885         * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
886         (decode_static_tracepoint_spec): Adjust to std::vector.
887         (tracepoint_print_one_detail): Adjust to std::string.
888         (strace_marker_decode_location): Adjust to std::string.
889         (update_static_tracepoint): Adjust to std::string, remove call
890         to release_static_tracepoint_marker.
891         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
892         Adjust to std::vector.
893         * remote.c (remote_static_tracepoint_marker_at): Return bool.
894         (remote_static_tracepoint_markers_by_strid): Adjust to
895         std::vector.
896         * common/rsp-low.h (hex2str): New overload with explicit count
897         of bytes.
898         * common/rsp-low.c (hex2str): New overload with explicit count
899         of bytes.
900         * unittests/rsp-low-selftests.c (test_hex2str): New function.
901         (_initialize_rsp_low_selftests): Add test_hex2str test.
902         * unittests/tracepoint-selftests.c
903         (test_parse_static_tracepoint_marker_definition): Adjust to
904         std::string.
905
906 2018-03-22  Simon Marchi  <simon.marchi@polymtl.ca>
907
908         * tracepoint.c (parse_static_tracepoint_marker_definition):
909         Consider case where the definition is followed by more
910         definitions.
911         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
912         tracepoint-selftests.c.
913         * unittests/tracepoint-selftests.c: New.
914
915 2018-03-21  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
916
917         * MAINTAINERS (Write After Approval): Add Pedro Franco de
918         Carvalho.
919
920 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
921
922         * symtab.c (find_pc_sect_line): fixed indentation.
923
924 2018-03-20  Stephen Roberts  <stephen.roberts@arm.com>
925
926         * symtab.c (find_pc_sect_line): now uses binary search.
927
928 2018-03-19  Tom Tromey  <tom@tromey.com>
929
930         * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
931         "IDENT" production.
932
933 2018-03-19  Pedro Alves  <palves@redhat.com>
934             Tom Tromey  <tom@tromey.com>
935
936         * unittests/observable-selftests.c: New file.
937         * common/observable.h: New file.
938         * observable.h: New file.
939         * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
940         arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
941         breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
942         corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
943         extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
944         infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
945         linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
946         mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
947         ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
948         python/py-breakpoint.c, python/py-finishbreakpoint.c,
949         python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
950         record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
951         riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
952         spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
953         symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
954         tui/tui-interp.c, valops.c: Update all users.
955         * tui/tui-hooks.c (tui_bp_created_observer)
956         (tui_bp_deleted_observer, tui_bp_modified_observer)
957         (tui_inferior_exit_observer, tui_before_prompt_observer)
958         (tui_normal_stop_observer, tui_register_changed_observer):
959         Remove.
960         (tui_observers_token): New global.
961         (attach_or_detach, tui_attach_detach_observers): New functions.
962         (tui_install_hooks, tui_remove_hooks): Use
963         tui_attach_detach_observers.
964         * record-btrace.c (record_btrace_thread_observer): Remove.
965         (record_btrace_thread_observer_token): New global.
966         * observer.sh: Remove.
967         * observer.c: Rename to observable.c.
968         * observable.c (namespace gdb_observers): Define new objects.
969         (observer_debug): Move into gdb_observers namespace.
970         (struct observer, struct observer_list, xalloc_observer_list_node)
971         (xfree_observer_list_node, generic_observer_attach)
972         (generic_observer_detach, generic_observer_notify): Remove.
973         (_initialize_observer): Update.
974         Don't include observer.inc.
975         * Makefile.in (generated_files): Remove observer.h, observer.inc.
976         (clean mostlyclean): Likewise.
977         (observer.h, observer.inc): Remove targets.
978         (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
979         (COMMON_SFILES): Use observable.c, not observer.c.
980         * .gitignore: Remove observer.h.
981
982 2018-03-18  Tom Tromey  <tom@tromey.com>
983
984         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
985         gdb::def_vector.
986         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
987
988 2018-03-17  Tom Tromey  <tom@tromey.com>
989
990         * auto-load.c (auto_load_objfile_script_1): Use std::string.
991
992 2018-03-17  Tom Tromey  <tom@tromey.com>
993
994         * target.c (class scoped_target_fd): New.
995         (target_fileio_close_cleanup): Remove.
996         (target_fileio_read_alloc_1): Use scoped_target_fd.
997
998 2018-03-16  Simon Marchi  <simon.marchi@polymtl.ca>
999
1000         * silent-rules.mk: New.
1001         * Makefile.in: Include silent-rules.mk
1002         (srcdir, VPATH, top_srcdir): Move up.
1003         (COMPILE): Add ECHO_CXX.
1004         (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
1005         (init.c): Add ECHO_INIT_C.
1006         (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
1007         (version.c): Add ECHO_GEN.
1008         (printcmd.o): Add ECHO_CXX.
1009         (target-float.o): Add ECHO_CXX.
1010         (ada-exp.o): Add ECHO_CXX.
1011         (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
1012         (insight$(EXEEXT)): Add ECHO_CXXLD.
1013         * gnulib/configure.ac: Add AM_SILENT_RULES.
1014         * gnulib/aclocal.m4: Re-generate.
1015         * gnulib/configure: Re-generate.
1016         * gnulib/import/Makefile.in: Re-generate.
1017
1018 2018-03-16  Tom Tromey  <tom@tromey.com>
1019
1020         * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
1021         * utils.h (make_cleanup_free_section_addr_info): Don't declare.
1022         * utils.c (do_free_section_addr_info)
1023         (make_cleanup_free_section_addr_info): Remove.
1024         * symfile.h (struct other_sections): Add constructor.
1025         (struct section_addr_info): Remove.
1026         (section_addr_info): New typedef.
1027         (struct sym_fns) <sym_offsets>: Change type of parameter.
1028         (build_section_addr_info_from_objfile)
1029         (relative_addr_info_to_section_offsets, addr_info_make_relative)
1030         (default_symfile_offsets, symbol_file_add)
1031         (symbol_file_add_from_bfd)
1032         (build_section_addr_info_from_section_table): Update.
1033         (alloc_section_addr_info, free_section_addr_info): Don't declare.
1034         * symfile.c (alloc_section_addr_info): Remove.
1035         (build_section_addr_info_from_section_table): Change return type.
1036         Update.
1037         (build_section_addr_info_from_bfd)
1038         (build_section_addr_info_from_objfile): Likewise.
1039         (free_section_addr_info): Remove.
1040         (relative_addr_info_to_section_offsets): Change type of "addrs".
1041         (addrs_section_compar): Now a std::sort comparator.
1042         (addrs_section_sort): Change return type.
1043         (addr_info_make_relative): Change type of "addrs".  Update.
1044         (default_symfile_offsets, syms_from_objfile_1)
1045         (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
1046         (symbol_file_add_separate): Update.
1047         (symbol_file_add): Change type of "addrs".  Update.
1048         (add_symbol_file_command): Update.  Remove cleanups.
1049         * symfile-mem.c (symbol_file_add_from_memory): Update.  Remove
1050         cleanups.
1051         * symfile-debug.c (debug_sym_offsets): Change type of "info".
1052         * solib.c (solib_read_symbols): Update.
1053         * objfiles.c (objfile_relocate): Update.  Remove cleanups.
1054         * machoread.c (macho_symfile_offsets): Update.
1055         * jit.c (jit_bfd_try_read_symtab): Update.
1056
1057 2018-03-15  Simon Marchi  <simon.marchi@polymtl.ca>
1058
1059         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1060         unittests/utils-selftests.c.
1061         * unittests/utils-selftests.c: New file.
1062
1063 2018-03-14  Tom Tromey  <tom@tromey.com>
1064
1065         PR cli/14977:
1066         * printcmd.c (printf_c_string, printf_wide_c_string): Special case
1067         for NULL.
1068
1069 2018-03-14  Tom Tromey  <tom@tromey.com>
1070
1071         PR cli/19918:
1072         * printcmd.c (printf_pointer): Allow "-" in format.
1073
1074 2018-03-14  Tom Tromey  <tom@tromey.com>
1075
1076         * printcmd.c (_initialize_printcmd): Add usage to printf.
1077
1078 2018-03-14  Yao Qi  <qiyao@sourceware.org>
1079
1080         * MAINTAINERS: Update my email address.
1081
1082 2018-03-13  Tom Tromey  <tom@tromey.com>
1083
1084         * machoread.c (macho_check_dsym): Change filenamep to a
1085         std::string*.
1086         (macho_symfile_read): Update.
1087         * symfile.c (load_command): Use std::string.
1088
1089 2018-03-12  Andrew Burgess  <andrew.burgess@embecosm.com>
1090
1091         * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
1092         to error message string.
1093         (riscv_register_name): Use xsnprintf instead of sprintf.
1094         (riscv_insn::fetch_instruction): Use gdb_assert instead of
1095         internal_error.
1096         (riscv_print_arg_location): Use gdb_assert_not_reached instead of
1097         error.
1098         (riscv_push_dummy_call): Likewise.
1099
1100 2018-03-12  Tom Tromey  <tom@tromey.com>
1101
1102         * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
1103         Use gdb::byte_vector.
1104         * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
1105
1106 2018-03-12  Yao Qi  <yao.qi@linaro.org>
1107
1108         * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
1109         parameter type to readable_regcache.
1110         * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
1111         the declaration.
1112
1113 2018-03-11  Tom Tromey  <tom@tromey.com>
1114
1115         * dwarf2read.c (struct nextfield): Add initializers.
1116         (struct nextfnfield): Remove.
1117         (struct fnfieldlist): Add initializers.  Remove "length" and
1118         "head", use std::vector.
1119         (struct decl_field_list): Remove.
1120         (struct field_info): Add initializers.
1121         <fields, baseclasses>: Now std::vector.
1122         <nbaseclasses, nfnfields, typedef_field_list_count,
1123         nested_types_list_count>: Remove.
1124         (dwarf2_add_field, dwarf2_add_type_defn)
1125         (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1126         (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
1127         (process_structure_scope): Update.
1128
1129 2018-03-11  Tom Tromey  <tom@tromey.com>
1130
1131         * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
1132         for use by std::sort.
1133         (build_type_psymtabs_1): Use std::vector.
1134
1135 2018-03-09  Eli Zaretskii  <eliz@gnu.org>
1136
1137         * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
1138         and LIBMPFR in the printed configuration.
1139
1140 2018-03-08  Tom Tromey  <tom@tromey.com>
1141
1142         * source.c (get_filename_and_charpos): Use scoped_fd.
1143         * nto-procfs.c (procfs_open_1): Use scoped_fd.
1144         (procfs_pidlist): Likewise.
1145         * procfs.c (proc_get_LDT_entry): Use scoped_fd.
1146         (iterate_over_mappings): Likewise.
1147
1148 2018-03-08  Tom Tromey  <tom@tromey.com>
1149
1150         * infcall.c (struct call_return_meta_info)
1151         <stack_temporaries_enabled>: Remove.
1152         (get_call_return_value, call_function_by_hand_dummy): Update.
1153         * thread.c (disable_thread_stack_temporaries): Remove.
1154         (enable_thread_stack_temporaries): Remove.
1155         (thread_stack_temporaries_enabled_p): Return bool.
1156         (push_thread_stack_temporary, value_in_thread_stack_temporaries)
1157         (get_last_thread_stack_temporary): Update.
1158         * eval.c (evaluate_subexp): Update.
1159         * gdbthread.h (class enable_thread_stack_temporaries): Now a
1160         class, not a function.
1161         (value_ptr, value_vec): Remove typedefs.
1162         (class thread_info) <stack_temporaries_enabled>: Now bool.
1163         <stack_temporaries>: Now a std::vector.
1164         (thread_stack_temporaries_enabled_p)
1165         (value_in_thread_stack_temporaries): Return bool.
1166
1167 2018-03-08  Simon Marchi  <simon.marchi@ericsson.com>
1168
1169         * remote.c (putpkt_binary): Fix omitted bytes reporting.
1170         (getpkt_or_notif_sane_1): Likewise.
1171
1172 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
1173
1174         * build-id.c (build_id_to_debug_bfd): Use std::string.
1175
1176 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
1177
1178         * build-id.c (find_separate_debug_file_by_buildid): Return
1179         std::string.
1180         * build-id.h (find_separate_debug_file_by_buildid): Return
1181         std::string.
1182         * coffread.c (coff_symfile_read): Adjust to std::string.
1183         * elfread.c (elf_symfile_read): Adjust to std::string.
1184         * symfile.c (separate_debug_file_exists): Change parameter to
1185         std::string.
1186         (find_separate_debug_file): Return std::string.
1187         (find_separate_debug_file_by_debuglink): Return std::string.
1188         * symfile.h (find_separate_debug_file_by_debuglink): Return
1189         std::string.
1190
1191 2018-03-08  Simon Marchi  <simon.marchi@polymtl.ca>
1192
1193         * common/xml-utils.c (xml_escape_text): Move code to...
1194         (xml_escape_text_append): ... this new function.
1195         * common/xml-utils.h (xml_escape_text_append): New declaration.
1196         * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
1197         New function.
1198         (_initialize_xml_utils): register test_xml_escape_text_append as
1199         a selftest.
1200
1201 2018-03-07  Alan Hayward  <alan.hayward@arm.com>
1202
1203         * defs.h: Remove MAX_REGISTER_SIZE.
1204         * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
1205         asserts.
1206         * python/py-unwind.c (pyuw_sniffer): Likewise.
1207
1208 2018-03-07  Tom Tromey  <tom@tromey.com>
1209
1210         * linux-tdep.c (linux_info_proc): Update.
1211         * target.h (struct target_ops) <to_fileio_readlink>: Return
1212         optional<string>.
1213         (target_fileio_readlink): Return optional<string>.
1214         * remote.c (remote_hostio_readlink): Return optional<string>.
1215         * inf-child.c (inf_child_fileio_readlink): Return
1216         optional<string>.
1217         * target.c (target_fileio_readlink): Return optional<string>.
1218
1219 2018-03-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1220
1221         * regcache.c (cooked_read_test): Add riscv to the list of
1222         architectures that have a save_reggroup.
1223
1224 2018-03-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1225
1226         * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
1227         value is not a dynamic class object.
1228
1229 2018-03-06  Tom Tromey  <tom@tromey.com>
1230
1231         * rust-exp.y: Formatting fixes.
1232
1233 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1234
1235         * riscv-tdep.c (riscv_register_name): Remove target description
1236         support.
1237         (riscv_gdbarch_init): Remove target description check.
1238
1239 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1240
1241         * riscv-tdep.c: Remove 'Contributed by ...' lines from header
1242         comment.
1243         * riscv-tdep.h: Likewise.
1244
1245 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1246
1247         * riscv-tdep.c (riscv_pseudo_register_read): Delete.
1248         (riscv_pseudo_register_write): Delete.
1249         (riscv_gdbarch_init): Remove all use of pseudo registers.
1250
1251 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
1252
1253         * record-btrace.c (btrace_print_lines): Replace cleanup
1254         parameter with RAII equivalents.
1255         (btrace_insn_history): Replace cleanup with RAII equivalents.
1256         * ui-out.h (make_cleanup_ui_out_list_begin_end,
1257         make_cleanup_ui_out_tuple_begin_end): Remove.
1258         * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
1259         make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
1260         make_cleanup_ui_out_list_begin_end): Remove.
1261
1262 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
1263
1264         * record-btrace.c (record_btrace_maybe_mark_async_event): Change
1265         parameter types to std::vector.  Use bool.
1266         (record_btrace_wait): Replace VEC(tp_t) with
1267         std::vector<thread_info *>.
1268         * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
1269
1270 2018-03-06  Simon Marchi  <simon.marchi@polymtl.ca>
1271
1272         * record-btrace.c (record_btrace_disable_callback): Remove.
1273         (struct scoped_btrace_disable): New.
1274         (record_btrace_open): Use scoped_btrace_disable.
1275
1276 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1277
1278         * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
1279         reading values from registers.
1280
1281 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1282
1283         * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
1284         where appropriate.
1285
1286 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1287
1288         * riscv-tdep.c (riscv_print_arg_location): Add header comment,
1289         change parameter type.  Use GDB's print functions, and use
1290         core_addr_to_string where appropriate.
1291         (riscv_push_dummy_call): Use core_addr_to_string where
1292         appropriate, update call to riscv_print_arg_location, and reindent
1293         a few lines.
1294         (riscv_return_value): Update call to riscv_print_arg_location.
1295
1296 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1297             Tim Newsome <tim@sifive.com>
1298             Albert Ou <a0u@eecs.berkeley.edu>
1299             Darius Rad <darius@bluespec.com>
1300
1301         * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
1302         (HFILES_NO_SRCDIR): Add riscv-tdep.h.
1303         (ALLDEPFILES): Add riscv-tdep.c
1304         * configure.tgt: Add riscv support.
1305         * riscv-tdep.c: New file.
1306         * riscv-tdep.h: New file.
1307         * NEWS: Mention new target.
1308         * MAINTAINERS: Add entry for riscv.
1309
1310 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1311
1312         * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
1313         fields within aggregates.
1314
1315 2018-03-04  Simon Marchi  <simon.marchi@polymtl.ca>
1316
1317         * record-btrace.c (btrace_print_lines): Change type of flags to
1318         gdb_disassembly_flags.
1319
1320 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
1321
1322         * fbsd-nat.c: Include "inf-ptrace.h".
1323         (USE_SIGTRAP_SIGINFO): Conditionally define.
1324         [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
1325         (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
1326         [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
1327         function.
1328         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
1329         Likewise.
1330         [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
1331         Likewise.
1332         (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
1333         "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
1334         "supports_stopped_by_hw_breakpoint" target methods.
1335
1336 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
1337
1338         * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
1339         * fbsd-nat.c (debug_fbsd_nat): New variable.
1340         (show_fbsd_nat_debug): New function.
1341         (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
1342         (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
1343
1344 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
1345
1346         * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
1347         * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
1348         prototype.
1349         * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
1350         (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
1351         method.
1352
1353 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1354
1355         * common/gdb_vecs.c (free_char_ptr_vec): Remove.
1356         * common/gdb_vecs.h (free_char_ptr_vec): Remove.
1357
1358 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1359
1360         * charset.c (struct charset_vector): New.
1361         (charsets): Change type to charset_vector.
1362         (find_charset_names): Adjust.
1363         (add_one): Adjust.
1364         (_initialize_charset): Adjust.
1365
1366 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1367
1368         * progspace.h (struct program_space) <deleted_solibs>: Change
1369         type to std::vector<std::string>.
1370         * progspace.c (clear_program_space_solib_cache): Adjust.
1371         * breakpoint.c (print_solib_event): Adjust.
1372         (check_status_catch_solib): Adjust.
1373         * solib.c (update_solib_list): Adjust.
1374         * ui-out.h (class ui_out) <field_string>: New overload.
1375         * ui-out.c (ui_out::field_string): New overload.
1376
1377 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1378
1379         * progspace.h (struct program_space): Add constructor and
1380         destructor, initialize fields.
1381         (add_program_space): Remove.
1382         * progspace.c (add_program_space): Rename to...
1383         (program_space::program_space): ... this.
1384         (release_program_space): Rename to...
1385         (program_space::~program_space): ... this.
1386         (delete_program_space): Use delete to delete program_space.
1387         (initialize_progspace): Use new to allocate program_space.
1388         * inferior.c (add_inferior_with_spaces): Likewise.
1389         (clone_inferior_command): Likewise.
1390         * infrun.c (follow_fork_inferior): Likewise.
1391         (handle_vfork_child_exec_or_exit): Likewise.
1392
1393 2018-03-02  Simon Marchi  <simon.marchi@polymtl.ca>
1394
1395         * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
1396         (delim_string_to_char_ptr_vec): Return std::vector of
1397         gdb::unique_xmalloc_ptr.
1398         (dirnames_to_char_ptr_vec_append): Take std::vector of
1399         gdb::unique_xmalloc_ptr.
1400         (dirnames_to_char_ptr_vec): Return std::vector of
1401         gdb::unique_xmalloc_ptr.
1402         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
1403         Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
1404         (delim_string_to_char_ptr_vec): Return an std::vector of
1405         gdb::unique_xmalloc_ptr, adjust the code.
1406         (dirnames_to_char_ptr_vec_append): Take an std::vector of
1407         gdb::unique_xmalloc_ptr, adjust the code.
1408         (dirnames_to_char_ptr_vec): Return an std::vector of
1409         gdb::unique_xmalloc_ptr, adjust the code.
1410         * auto-load.c (auto_load_safe_path_vec): Change type to
1411         std::vector of gdb::unique_xmalloc_ptr.
1412         (auto_load_expand_dir_vars): Return an std::vector of
1413         gdb::unique_xmalloc_ptr, adjust the code.
1414         (auto_load_safe_path_vec_update): Adjust.
1415         (filename_is_in_auto_load_safe_path_vec): Adjust.
1416         (auto_load_objfile_script_1): Adjust.
1417         * build-id.c (build_id_to_debug_bfd): Adjust.
1418         * linux-thread-db.c (thread_db_load_search): Adjust.
1419         * source.c (add_path): Adjust.
1420         (openp): Adjust.
1421         * symfile.c (find_separate_debug_file): Adjust.
1422         * utils.c (do_free_char_ptr_vec): Remove.
1423         (make_cleanup_free_char_ptr_vec): Remove.
1424
1425 2018-03-01  Sergio Durigan Junior  <sergiodj@redhat.com>
1426
1427         PR gdb/22907
1428         * common/pathstuff.c: Conditionally include "<windows.h>".
1429
1430 2018-03-01  Georg Sauthoff  <mail@georg.so>
1431
1432         PR gdb/22888
1433         * gcore.in: Quote variables and switch interpreter to bash.
1434
1435 2018-03-01  Tom Tromey  <tom@tromey.com>
1436
1437         * dwarf2read.c (alloc_discriminant_info): Fix default_index
1438         assertion.  Add assertion for discriminant_index.
1439         (quirk_rust_enum): Use correct base type name in univariant case.
1440
1441 2018-03-01  Simon Marchi  <simon.marchi@ericsson.com>
1442
1443         * record.c (get_call_history_modifiers): Return a
1444         record_print_flags.
1445         (cmd_record_call_history): Adjust.
1446         * record-btrace.c (record_btrace_call_history): Adjust.
1447         (record_btrace_call_history_range): Adjust.
1448         (record_btrace_call_history_from): Adjust.
1449         * target-debug.h (target_debug_print_record_print_flags): New.
1450         * target-delegates.c: Re-generate.
1451         * target.c (target_call_history): Change flags type.
1452         (target_call_history_from): Likewise.
1453         (target_call_history_range): Likewise.
1454         * target.h (struct target_ops) <target_call_history>: Likewise.
1455         (target_call_history_from): Likewise.
1456         (target_call_history_range): Likewise.
1457
1458 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
1459             Simon Marchi  <simon.marchi@polymtl.ca>
1460
1461         * common/common-utils.c: Include "sys/stat.h".
1462         (is_regular_file): Move here from "source.c"; change return
1463         type to "bool".
1464         * common/common-utils.h (is_regular_file): New prototype.
1465         * common/pathstuff.c (contains_dir_separator): New function.
1466         * common/pathstuff.h (contains_dir_separator): New prototype.
1467         * source.c: Don't include "sys/stat.h".
1468         (is_regular_file): Move to "common/common-utils.c".
1469
1470 2018-02-28  Sergio Durigan Junior  <sergiodj@redhat.com>
1471
1472         * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
1473         (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
1474         * auto-load.c: Include "common/pathstuff.h".
1475         * common/common-def.h (current_directory): Move here.
1476         * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
1477         function.
1478         * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
1479         prototype.
1480         * common/pathstuff.c: New file.
1481         * common/pathstuff.h: New file.
1482         * compile/compile.c: Include "common/pathstuff.h".
1483         * defs.h (current_directory): Move to "common/common-defs.h".
1484         * dwarf2read.c: Include "common/pathstuff.h".
1485         * exec.c: Likewise.
1486         * guile/scm-safe-call.c: Likewise.
1487         * linux-thread-db.c: Likewise.
1488         * main.c: Likewise.
1489         * nto-tdep.c: Likewise.
1490         * objfiles.c: Likewise.
1491         * source.c: Likewise.
1492         * symtab.c: Likewise.
1493         * utils.c: Include "common/pathstuff.h".
1494         (gdb_realpath): Move to "common/pathstuff.c".
1495         (gdb_realpath_keepfile): Likewise.
1496         (gdb_abspath): Likewise.
1497         * utils.h (gdb_realpath): Move to "common/pathstuff.h".
1498         (gdb_realpath_keepfile): Likewise.
1499         (gdb_abspath): Likewise.
1500
1501 2018-02-28  John Baldwin  <jhb@FreeBSD.org>
1502
1503         * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
1504         wildcard process pid for super_resume for kernels with a
1505         specific bug.
1506
1507 2018-02-27  Phil Muldoon  <pmuldoon@redhat.com>
1508
1509         * compile/compile.c (get_args): Add additional comments
1510         explaining function.
1511
1512 2018-02-27  Simon Marchi  <simon.marchi@polymtl.ca>
1513             Tom Tromey  <tom@tromey.com>
1514
1515         * target.h (memory_write_request_s): Remove typedef.  Don't define
1516         VEC.
1517         (target_write_memory_blocks): Change argument to std::vector.
1518         (struct memory_write_request): Add constructor.
1519         * target-memory.c (compare_block_starting_address): Return bool.
1520         Change argument types.
1521         (claim_memory): Change arguments to use std::vector.
1522         (split_regular_and_flash_blocks, blocks_to_erase)
1523         (compute_garbled_blocks): Likewise.
1524         (cleanup_request_data, cleanup_write_requests_vector): Remove.
1525         (target_write_memory_blocks): Change argument to std::vector.
1526         * symfile.c (struct load_section_data): Add constructor and
1527         destructor.  Use std::vector for "requests".
1528         (struct load_progress_data): Add initializers.
1529         (load_section_callback): Update.  Use "new".
1530         (clear_memory_write_data): Remove.
1531         (generic_load): Update.
1532
1533 2018-02-27  Alan Hayward  <alan.hayward@arm.com>
1534
1535         * arch/aarch64.h: Use common/tdesc.h.
1536
1537 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
1538
1539         * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
1540         architecture with a 64-bit ABI.
1541
1542 2018-02-26  Maciej W. Rozycki  <macro@mips.com>
1543
1544         * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
1545         ahead of target description loading.
1546
1547 2018-02-26  Tom Tromey  <tom@tromey.com>
1548
1549         * stack.c (backtrace_command_1): Update.
1550         * python/python-internal.h (gdbpy_apply_frame_filter): Change type
1551         of "flags".
1552         * python/py-framefilter.c (py_print_frame)
1553         (gdbpy_apply_frame_filter): Change type of "flags".
1554         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
1555         of "flags".
1556         (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
1557         (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
1558         * extension.h (enum frame_filter_flag): Rename from
1559         frame_filter_flags.
1560         (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
1561         (apply_ext_lang_frame_filter): Change type of "flags".
1562         * extension.c (apply_ext_lang_frame_filter): Change type of
1563         "flags".
1564         * extension-priv.h (struct extension_language_ops)
1565         <apply_frame_filter>: Change type of "flags".
1566
1567 2018-02-26  Tom Tromey  <tom@tromey.com>
1568
1569         PR python/16497:
1570         * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag.  Fix
1571         off-by-one in py_end computation.
1572         * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
1573         PRINT_MORE_FRAMES.
1574         * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
1575         constant.
1576
1577 2018-02-26  Tom Tromey  <tom@tromey.com>
1578
1579         * dwarf2read.c (struct variant_field): New.
1580         (struct nextfield) <variant>: New field.
1581         (dwarf2_add_field): Handle DW_TAG_variant_part.
1582         (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
1583         discriminated union.
1584         (read_structure_type): Handle DW_TAG_variant_part.
1585         (handle_struct_member_die): New function, extracted from
1586         process_structure_scope.  Handle DW_TAG_variant.
1587         (process_structure_scope): Handle discriminated unions.  Call
1588         handle_struct_member_die.
1589
1590 2018-02-26  Tom Tromey  <tom@tromey.com>
1591
1592         * rust-lang.h (rust_last_path_segment): Declare.
1593         * rust-lang.c (rust_last_path_segment): Now public.  Change
1594         contract.
1595         (struct disr_info): Remove.
1596         (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
1597         (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
1598         (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
1599         (rust_enum_p, rust_enum_variant): New function.
1600         (rust_underscore_fields): Remove "offset" parameter.
1601         (rust_print_enum): New function.
1602         (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
1603         <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
1604         (rust_print_struct_def): Add "for_rust_enum" parameter.  Handle
1605         enums.
1606         (rust_internal_print_type): New function, from rust_print_type.
1607         Remove enum code.
1608         (rust_print_type): Call rust_internal_print_type.
1609         (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
1610         Update enum handling.
1611         * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
1612         (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
1613         (rust_union_quirks): New functions.
1614         (process_full_comp_unit, process_full_type_unit): Call
1615         rust_union_quirks.
1616         (process_structure_scope): Update rust_unions if necessary.
1617
1618 2018-02-26  Tom Tromey  <tom@tromey.com>
1619
1620         * value.h (value_union_variant): Declare.
1621         * valops.c (value_union_variant): New function.
1622         * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
1623         (struct discriminant_info): New.
1624         (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
1625         enumerator.
1626         (struct main_type) <flag_discriminated_union>: New field.
1627
1628 2018-02-26  Tom Tromey  <tom@tromey.com>
1629
1630         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1631         unittests/unpack-selftests.c.
1632         * unittests/unpack-selftests.c: New file.
1633         * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
1634
1635 2018-02-26  Yao Qi  <yao.qi@linaro.org>
1636
1637         * dwarf2read.c (struct partial_die_info) <read>: New method.
1638         (read_partial_die): Remove the declaration.
1639         (load_partial_dies): Update.
1640         (partial_die_info::partial_die_info):
1641         (read_partial_die): Change it to partial_die_info::read.
1642
1643 2018-02-26  Yao Qi  <yao.qi@linaro.org>
1644
1645         * dwarf2read.c (struct partial_die_info) <fixup>: New method.
1646         (fixup_partial_die): Remove declaration.
1647         (scan_partial_symbols): Update.
1648         (partial_die_parent_scope): Likewise.
1649         (partial_die_full_name): Likewise.
1650         (fixup_partial_die): Change it to partial_die_info::fixup.
1651
1652 2018-02-26  Yao Qi  <yao.qi@linaro.org>
1653
1654         * dwarf2read.c (read_partial_die): Update the declaration.
1655         (load_partial_dies): Caller update.
1656         (read_partial_die): Remove one argument abbrev_len.
1657
1658 2018-02-26  Yao Qi  <yao.qi@linaro.org>
1659
1660         * dwarf2read.c (struct partial_die_info): Add ctor, delete
1661         assignment operator.
1662         (load_partial_dies): Use ctor and copy ctor.
1663         (read_partial_die): Update.
1664         (dwarf2_cu::find_partial_die): Use ctor.
1665
1666 2018-02-26  Yao Qi  <yao.qi@linaro.org>
1667
1668         * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
1669         (find_partial_die_in_comp_unit): Change it to
1670         dwarf2_cu::find_partial_die.
1671         (find_partial_die): Update.
1672
1673 2018-02-26  Yao Qi  <yao.qi@linaro.org>
1674
1675         * dwarf2read.c (read_partial_die): Remove the code checking abbrev
1676         is NULL.
1677
1678 2018-02-26  Yao Qi  <yao.qi@linaro.org>
1679
1680         * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
1681
1682 2018-02-26  Alan Hayward  <alan.hayward@arm.com>
1683
1684         * arch/amd64.h: Use common/tdesc.h.
1685         * arch/i386.c: Likewise.
1686         * arch/i386.h: Likewise.
1687         * arch/tic6x.c: Likewise.
1688         * arch/tdesc.h: Move file from here...
1689         * common/tdesc.h: ...to here.
1690         * features/aarch64-core.c: Regenerate.
1691         * features/aarch64-fpu.c: Regenerate.
1692         * features/i386/32bit-avx.c: Regenerate.
1693         * features/i386/32bit-avx512.c: Regenerate.
1694         * features/i386/32bit-core.c: Regenerate.
1695         * features/i386/32bit-linux.c: Regenerate.
1696         * features/i386/32bit-mpx.c: Regenerate.
1697         * features/i386/32bit-pkeys.c: Regenerate.
1698         * features/i386/32bit-sse.c: Regenerate.
1699         * features/i386/64bit-avx.c: Regenerate.
1700         * features/i386/64bit-avx512.c: Regenerate.
1701         * features/i386/64bit-core.c: Regenerate.
1702         * features/i386/64bit-linux.c: Regenerate.
1703         * features/i386/64bit-mpx.c: Regenerate.
1704         * features/i386/64bit-pkeys.c: Regenerate.
1705         * features/i386/64bit-segments.c: Regenerate.
1706         * features/i386/64bit-sse.c: Regenerate.
1707         * features/i386/x32-core.c: Regenerate.
1708         * features/tic6x-c6xp.c: Regenerate.
1709         * features/tic6x-core.c: Regenerate.
1710         * features/tic6x-gp.c: Regenerate.
1711         * target-descriptions.c: Use common/tdesc.h.
1712         * target-descriptions.h: Likewise.
1713
1714 2018-02-24  Tom Tromey  <tom@tromey.com>
1715
1716         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1717         (try_thread_db_load_from_dir, thread_db_load_search): Use
1718         std::string.
1719         (info_auto_load_libthread_db_compare): Return bool.  Change
1720         argument types.
1721         (info_auto_load_libthread_db): Use std::vector, std::string.
1722         Remove cleanups.
1723
1724 2018-02-24  Tom Tromey  <tom@tromey.com>
1725
1726         * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
1727         std::string.
1728         * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
1729         std::string*.
1730         * gdbarch.c: Rebuild.
1731         * gdbarch.h: Rebuild.
1732         * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1733         * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1734         * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1735         std::string*.
1736
1737 2018-02-23  Simon Marchi  <simon.marchi@polymtl.ca>
1738
1739         * gdbtypes.h (sect_offset): Change type to uint64_t.
1740         (sect_offset_str): New function.
1741         * dwarf2read.c (create_addrmap_from_aranges): Use
1742         sect_offset_str.
1743         (error_check_comp_unit_head): Likewise.
1744         (create_debug_type_hash_table): Likewise.
1745         (read_cutu_die_from_dwo): Likewise.
1746         (init_cutu_and_read_dies): Likewise.
1747         (init_cutu_and_read_dies_no_follow): Likewise.
1748         (process_psymtab_comp_unit_reader): Likewise.
1749         (partial_die_parent_scope): Likewise.
1750         (peek_die_abbrev): Likewise.
1751         (process_queue): Likewise.
1752         (dwarf2_physname): Likewise.
1753         (read_namespace_alias): Likewise.
1754         (read_import_statement): Likewise.
1755         (create_dwo_cu_reader): Likewise.
1756         (create_cus_hash_table): Likewise.
1757         (lookup_dwo_cutu): Likewise.
1758         (inherit_abstract_dies): Likewise.
1759         (read_func_scope): Likewise.
1760         (read_call_site_scope): Likewise.
1761         (dwarf2_add_member_fn): Likewise.
1762         (read_common_block): Likewise.
1763         (read_module_type): Likewise.
1764         (read_typedef): Likewise.
1765         (read_subrange_type): Likewise.
1766         (load_partial_dies): Likewise.
1767         (read_partial_die): Likewise.
1768         (find_partial_die): Likewise.
1769         (read_str_index): Likewise.
1770         (dwarf2_string_attr): Likewise.
1771         (build_error_marker_type): Likewise.
1772         (lookup_die_type): Likewise.
1773         (dump_die_shallow): Likewise.
1774         (follow_die_ref): Likewise.
1775         (dwarf2_fetch_die_loc_sect_off): Likewise.
1776         (dwarf2_fetch_constant_bytes): Likewise.
1777         (follow_die_sig): Likewise.
1778         (get_signatured_type): Likewise.
1779         (get_DW_AT_signature_type): Likewise.
1780         (dwarf2_find_containing_comp_unit): Likewise.
1781         (set_die_type): Likewise.
1782
1783 2018-02-21  John Baldwin  <jhb@FreeBSD.org>
1784
1785         * arch/aarch64.c: Include "common-defs.h".
1786         * arch/amd64.c: Likewise.
1787         * arch/i386.c: Likewise.
1788
1789 2018-02-21  Tom Tromey  <tom@tromey.com>
1790
1791         * value.h: (extract_field_op): Update.
1792         * eval.c (extract_field_op): Return a const char *.
1793         * expression.h (parse_expression_for_completion): Update.
1794         * completer.c (complete_expression): Update.
1795         (add_struct_fields): Make fieldname const.
1796         * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1797         (mark_completion_tag, parse_exp_in_context_1): Update.
1798         (parse_expression_for_completion): Change "name" to
1799         unique_xmalloc_ptr*.
1800
1801 2018-02-21  Tom Tromey  <tom@tromey.com>
1802
1803         * infcall.c (call_function_by_hand_dummy): Use std::vector.
1804
1805 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1806
1807         * avr-tdep.c (avr_read_pc): Change parameter type to
1808         readable_regcache.
1809         * gdbarch.sh (read_pc): Likewise.
1810         * gdbarch.c: Re-generated.
1811         * gdbarch.h: Re-generated.
1812         * hppa-tdep.c (hppa_read_pc): Change parameter type to
1813         readable_regcache.
1814         * ia64-tdep.c (ia64_read_pc): Likewise.
1815         * mips-tdep.c (mips_read_pc): Likewise.
1816         * spu-tdep.c (spu_read_pc): Likewise.
1817
1818 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1819
1820         * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1821         * regcache-dump.c: New file.
1822         * regcache.c: Move register_dump to regcache-dump.c.
1823         (maintenance_print_registers): Likewise.
1824         (maintenance_print_raw_registers): Likewise.
1825         (maintenance_print_cooked_registers): Likewise.
1826         (maintenance_print_register_groups): Likewise.
1827         (maintenance_print_remote_registers): Likewise.
1828         (_initialize_regcache): Likewise.
1829         * regcache.h (register_dump): Moved from regcache.c.
1830
1831 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1832
1833         * regcache.c (regcache::regcache): Update.
1834         (regcache::invalidate): Move it to detached_regcache::invalidate.
1835         (get_thread_arch_aspace_regcache): Update.
1836         (regcache::raw_update): Update.
1837         (regcache::cooked_read): Remove some code.
1838         (regcache::cooked_read_value): Likewise.
1839         (regcache::raw_write): Remove assert on m_readonly_p.
1840         (regcache::raw_supply_integer): Move it to
1841         detached_regcache::raw_supply_integer.
1842         (regcache::raw_supply_zeroed): Likewise.
1843         * regcache.h (detached_regcache) <raw_supply_integer>: New
1844         declaration.
1845         <raw_supply_zeroed, invalidate>: Likewise.
1846         (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1847         <invalidate>: Likewise.
1848         <m_readonly_p>: Removed.
1849
1850 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1851
1852         * infcmd.c (get_return_value): Let stop_regs point to
1853         get_current_regcache.
1854         * regcache.c (regcache::regcache): Remove.
1855         (register_dump_reg_buffer): New class.
1856         (regcache_print): Adjust.
1857         * regcache.h (regcache): Remove constructors.
1858
1859 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1860
1861         * regcache.c (class register_dump): New class.
1862         (register_dump_regcache, register_dump_none): New class.
1863         (register_dump_remote, register_dump_groups): New class.
1864         (regcache_print): Update.
1865         * regcache.h (regcache_dump_what): Move it to regcache.c.
1866         (regcache) <dump>: Remove.
1867
1868 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1869
1870         * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1871          reg_buffer_rw *.
1872         (jit_unwind_reg_set_impl): Call raw_supply.
1873         (jit_frame_sniffer): Use reg_buffer_rw.
1874         * record-full.c (record_full_core_regbuf): Change its type.
1875         (record_full_core_open_1): Use reg_buffer_rw.
1876         (record_full_close): Likewise.
1877         (record_full_core_fetch_registers): Use regcache->raw_supply.
1878         (record_full_core_store_registers): Likewise.
1879         * regcache.c (regcache::get_register_status): Move it to
1880         reg_buffer.
1881         (regcache_raw_set_cached_value): Remove.
1882         (regcache::raw_set_cached_value): Remove.
1883         (regcache::raw_write): Call raw_supply.
1884         (regcache::raw_supply): Move it to reg_buffer_rw.
1885         * regcache.h (regcache_raw_set_cached_value): Remove.
1886         (reg_buffer_rw): New class.
1887
1888 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1889
1890         * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1891         readonly_detached_regcache.
1892         (dummy_frame_prev_register): Use regcache->cooked_read.
1893         * frame.c (frame_save_as_regcache): Change return type.
1894         (frame_pop): Update.
1895         * frame.h (frame_save_as_regcache): Update declaration.
1896         * inferior.h (get_infcall_suspend_state_regcache): Update
1897         declaration.
1898         * infrun.c (infcall_suspend_state) <registers>: use
1899         readonly_detached_regcache.
1900         (save_infcall_suspend_state): Don't use regcache_dup.
1901         (get_infcall_suspend_state_regcache): Change return type.
1902         * linux-fork.c (struct fork_info) <savedregs>: Change to
1903         readonly_detached_regcache.
1904         <pc>: New field.
1905         (fork_save_infrun_state): Don't use regcache_dup.
1906         (info_checkpoints_command): Adjust.
1907         * mi/mi-main.c (register_changed_p): Update declaration.
1908         (mi_cmd_data_list_changed_registers): Use
1909         readonly_detached_regcache.
1910         (register_changed_p): Change parameter type to
1911         readonly_detached_regcache.
1912         * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1913         readonly_detached_regcache.
1914         (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1915         * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1916         New.
1917         (regcache::save): Move it to reg_buffer.
1918         (regcache::restore): Change parameter type.
1919         (regcache_dup): Remove.
1920         * regcache.h (reg_buffer) <save>: New method.
1921         (readonly_detached_regcache): New class.
1922         * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1923         readonly_detached_regcache.
1924         (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1925
1926 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1927
1928         * frame.c (frame_save_as_regcache): Use regcache method save.
1929         (frame_pop): Use regcache method restore.
1930         * infrun.c (restore_infcall_suspend_state): Likewise.
1931         * linux-fork.c (fork_load_infrun_state): Likewise.
1932         * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1933         save.
1934         * regcache.c (regcache_save): Remove.
1935         (regcache::restore): More asserts.
1936         (regcache_cpy): Remove.
1937         * regcache.h (regcache_save): Remove the declaration.
1938         (regcache::restore): Move from private to public.
1939         Remove the friend declaration of regcache_cpy.
1940         (regcache_cpy): Remove declaration.
1941
1942 2018-02-21  Yao Qi  <yao.qi@linaro.org>
1943
1944         * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1945         parameter type to 'readable_regcache *'.
1946         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1947         * arm-tdep.c (arm_neon_quad_read): Likewise.
1948         (arm_pseudo_read): Likewise.
1949         * avr-tdep.c (avr_pseudo_register_read): Likewise.
1950         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1951         * frv-tdep.c (frv_pseudo_register_read): Likewise.
1952         * gdbarch.c: Re-generated.
1953         * gdbarch.h: Re-generated.
1954         * gdbarch.sh (pseudo_register_read): Change parameter type to
1955         'readable_regcache *'.
1956         (pseudo_register_read_value): Likewise.
1957         * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1958         (h8300_pseudo_register_read): Likewise.
1959         * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1960         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1961         (i386_pseudo_register_read_into_value): Likewise.
1962         (i386_pseudo_register_read_value): Likewise.
1963         * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1964         declaration.
1965         * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1966         * m32c-tdep.c (m32c_raw_read): Likewise.
1967         (m32c_read_flg): Likewise.
1968         (m32c_banked_register): Likewise.
1969         (m32c_banked_read): Likewise.
1970         (m32c_sb_read): Likewise.
1971         (m32c_part_read): Likewise.
1972         (m32c_cat_read): Likewise.
1973         (m32c_r3r2r1r0_read): Likewise.
1974         (m32c_pseudo_register_read): Likewise.
1975         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1976         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1977         (mep_pseudo_cr64_read): Likewise.
1978         (mep_pseudo_register_read): Likewise.
1979         * mips-tdep.c (mips_pseudo_register_read): Likewise.
1980         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1981         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1982         * regcache.c (regcache::raw_read): Move it to readable_regcache.
1983         (regcache::cooked_read): Likewise.
1984         (regcache::cooked_read_value): Likewise.
1985         (regcache_cooked_read_signed):
1986         (regcache::cooked_read): Likewise.
1987         * regcache.h (readable_regcache): New class.
1988         (regcache): Inherit readable_regcache.  Move some methods to
1989         readable_regcache.
1990         * rl78-tdep.c (rl78_pseudo_register_read): Change
1991         parameter type to 'readable_regcache *'.
1992         * rs6000-tdep.c (do_regcache_raw_read): Remove.
1993         (e500_pseudo_register_read): Change parameter type to
1994         'readable_regcache *'.
1995         (dfp_pseudo_register_read): Likewise.
1996         (vsx_pseudo_register_read): Likewise.
1997         (efpr_pseudo_register_read): Likewise.
1998         * s390-tdep.c (s390_pseudo_register_read): Likewise.
1999         * sh-tdep.c (sh_pseudo_register_read): Likewise.
2000         * sh64-tdep.c (pseudo_register_read_portions): Likewise.
2001         (sh64_pseudo_register_read): Likewise.
2002         * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2003         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2004         * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2005         (spu_pseudo_register_read): Likewise.
2006         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2007         (xtensa_pseudo_register_read): Likewise.
2008
2009 2018-02-21  Yao Qi  <yao.qi@linaro.org>
2010
2011         * regcache.c (regcache::regcache): Call reg_buffer ctor.
2012         (regcache::arch): Move it to reg_buffer::arch.
2013         (regcache::register_buffer): Likewise.
2014         (regcache::assert_regnum): Likewise.
2015         (regcache::num_raw_registers): Likewise.
2016         * regcache.h (reg_buffer): New class.
2017         (regcache): Inherit reg_buffer.
2018
2019 2018-02-20  Simon Marchi  <simon.marchi@ericsson.com>
2020
2021         * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
2022         gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
2023
2024 2018-02-20  Markus Metzger  <markus.t.metzger@intel.com>
2025
2026         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
2027
2028 2018-02-19  Alan Hayward  <alan.hayward@arm.com>
2029
2030         * Makefile.in: (COMMON_SFILES): Add common/*.c files.
2031         (SFILES): Remove common/*.c files.
2032         (COMMON_OBS): Remove some *.o files built from common/*.c files.
2033         * common/common.host: Add common reference.
2034         * configure.ac: Likewise.
2035         * configure: Regenerate.
2036
2037 2018-02-16  Yao Qi  <yao.qi@linaro.org>
2038
2039         * block.c (block_namespace_info): Inherit allocate_on_obstack.
2040         (block_initialize_namespace): Use new.
2041         * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
2042         (dwarf2_free_objfile): Use delete.
2043         * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
2044         (copy_type_recursive): Use new.
2045         * gdb_obstack.h (allocate_on_obstack): New.
2046
2047 2018-02-15  Yao Qi  <yao.qi@linaro.org>
2048
2049         PR gdb/22849
2050         * inferior.c (exit_inferior_1): Reset inf->control.
2051
2052 2018-02-15  Joel Brobecker  <brobecker@adacore.com>
2053
2054         * ada-lang.c (ada_to_fixed_value_create): Delete advance
2055         declaration.
2056
2057 2018-02-14  Pedro Alves  <palves@redhat.com>
2058
2059         * frame-unwind.c (frame_unwind_try_unwinder): Always call
2060         frame_cleanup_after_sniffer on exception.
2061
2062 2018-02-14  Tom Tromey  <tom@tromey.com>
2063
2064         * solist.h (struct target_so_ops) <bfd_open>: Make pathname
2065         const.
2066         (solib_bfd_open): Make pathname const.
2067         * solib.c (solib_bfd_open): Make pathname const.
2068         * solib-spu.c (spu_bfd_fopen): Make name const.
2069         (spu_bfd_open): Make pathname const.
2070         * solib-darwin.c (darwin_bfd_open): Make pathname const.
2071         * solib-aix.c (solib_aix_bfd_open): Make pathname const.
2072
2073 2018-02-14  Tom Tromey  <tom@tromey.com>
2074
2075         * symfile.c (symfile_bfd_open): Update.
2076         * source.h (openp, source_full_path_of, find_and_open_source):
2077         Change argument type to unique_xmalloc_ptr.
2078         * source.c (openp): Take a unique_xmalloc_ptr.
2079         (source_full_path_of, find_and_open_source): Likewise.
2080         (open_source_file, symtab_to_fullname): Update.
2081         * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
2082         unique_xmalloc_ptr.
2083         * solib.c (solib_find_1): Use unique_xmalloc_ptr.
2084         (exec_file_find): Update.
2085         * psymtab.c (psymtab_to_fullname): Update.
2086         * nto-tdep.h (nto_find_and_open_solib): Update.
2087         * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
2088         unique_xmalloc_ptr.
2089         * exec.c (exec_file_attach): Update.
2090         * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
2091         * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
2092
2093 2018-02-14  Tom Tromey  <tom@tromey.com>
2094
2095         * solib.c: Include source.h.
2096         * nto-tdep.c: Include source.h.
2097         * mi/mi-cmd-env.c: Include source.h.
2098         * infcmd.c: Include source.h.
2099         * exec.c: Include source.h.
2100         * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
2101         (add_path, directory_switch, source_path, init_source_path): Move
2102         declarations...
2103         * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
2104         (add_path, directory_switch, source_path, init_source_path):
2105         ...here.
2106
2107 2018-02-14  Tom Tromey  <tom@tromey.com>
2108
2109         * solist.h (exec_file_find, solib_find): Return
2110         unique_xmalloc_ptr.
2111         (solib_bfd_fopen): Take a const char *.
2112         * solib.c (solib_find_1): Return unique_xmalloc_ptr.
2113         (exec_file_find, solib_find): Likewise.
2114         (solib_bfd_fopen): Do not take ownership of "pathname".
2115         (solib_bfd_open): Use unique_xmalloc_ptr.
2116         * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
2117         * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
2118         * infrun.c (follow_exec): Use unique_xmalloc_ptr.
2119         * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
2120
2121 2018-02-14  Joel Brobecker  <brobecker@adacore.com>
2122
2123         * ada-lang.c (name_match_type_from_name): Remove reference to
2124         ada_name_for_lookup in function's documentation.
2125         * ada-lang.h (ada_name_for_lookup): Delete declaration.
2126
2127 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
2128
2129         * defs.h (enum openp_flags): New enum.
2130         (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
2131         Move to enum openp_flags.
2132         (openp_flags): New enum flags.
2133         (openp): Change parameter type to openp_flags.
2134         * source.c (openp): Change parameter type to openp_flags.
2135         * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
2136         * dwarf2read.c (try_open_dwop_file): Use openp_flags.
2137
2138 2018-02-13  Simon Marchi  <simon.marchi@polymtl.ca>
2139
2140         * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
2141         per-command.
2142
2143 2018-02-12  Andrew Burgess  <andrew.burgess@embecosm.com>
2144
2145         * dwarf2read.c (dwarf2_release_queue): Delete function, move body
2146         into...
2147         (class dwarf2_queue_guard): ...the destructor of this new class.
2148         (dw2_do_instantiate_symtab): Create instance of the new class
2149         dwarf2_queue_guard, remove cleanup.
2150
2151 2018-02-09  Tom Tromey  <tom@tromey.com>
2152
2153         * source.c (find_source_lines): Don't reference past the end of
2154         the vector.
2155
2156 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2157
2158         * remote.c (remote_btrace_maybe_reopen): Change error message.
2159         * btrace.c (btrace_enable): Likewise.
2160         (parse_xml_btrace): Likewise.
2161         (parse_xml_btrace_conf): Likewise.
2162
2163 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2164
2165         * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
2166         (linux_enable_pt, linux_enable_bts): Call
2167         diagnose_perf_event_open_fail.
2168
2169 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2170
2171         * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
2172         Remove parameter and change return type.  Update callers.  Move it.
2173         (linux_enable_bts, linux_enable_pt): Improve error message.
2174         (linux_enable_pt): Remove zero buffer size check.
2175         (linux_enable_btrace): Improve error messages.  Remove NULL return
2176         check.
2177
2178 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2179
2180         * btrace.c (btrace_enable): Remove target_supports_btrace call.
2181         * nat/linux-btrace.c (perf_event_pt_event_type): Move.
2182         (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
2183         (linux_supports_pt, linux_supports_btrace): Remove.
2184         (linux_enable_bts): Call cpu_supports_bts.
2185         * nat/linux-btrace.h (linux_supports_btrace): Remove.
2186         * remote.c (remote_supports_btrace): Remove.
2187         (init_remote_ops): Remove remote_supports_btrace.
2188         * target-delegates.c: Regenerated.
2189         * target.c (target_supports_btrace): Remove.
2190         * target.h (target_ops) <to_supports_btrace>: Remove
2191         (target_supports_btrace): Remove.
2192         * x86-linux-nat.c (x86_linux_create_target): Remove
2193         linux_supports_btrace.
2194
2195 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2196
2197         * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
2198         btrace failed.
2199         * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
2200         exception and use message in own exception.
2201
2202 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2203
2204         * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
2205         (perf_event_pt_event_type): Use gdb_file_up.
2206         (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
2207         scoped_fd, and scoped_mmap.
2208
2209 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2210
2211         * common/scoped_mmap.h: New.
2212         * unittests/scoped_mmap-selftest.c: New.
2213         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2214         unittests/scoped_mmap-selftest.c.
2215
2216 2018-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2217
2218         * common/scoped_fd.h: New.
2219         * unittests/scoped_fd-selftest.c: New.
2220         * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2221         unittests/scoped_fd-selftest.c.
2222
2223 2018-02-09  Tom Tromey  <tom@tromey.com>
2224
2225         * auto-load.c (auto_load_section_scripts): Use
2226         gdb::unique_xmalloc_ptr.
2227
2228 2018-02-09  Tom Tromey  <tom@tromey.com>
2229
2230         * auto-load.c (execute_script_contents): Use std::string.
2231
2232 2018-02-09  Joel Brobecker  <brobecker@adacore.com>
2233
2234         * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
2235         Python function, rather than a new command.
2236
2237 2018-02-08  Tom Tromey  <tom@tromey.com>
2238
2239         * solib.c (solib_find_1): Use std::string.
2240         (solib_bfd_fopen): Use unique_xmalloc_ptr.
2241
2242 2018-02-08  Tom Tromey  <tom@tromey.com>
2243
2244         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
2245
2246 2018-02-08  Tom Tromey  <tom@tromey.com>
2247
2248         * source.c (find_source_lines): Use gdb::def_vector.
2249
2250 2018-02-08  Tom Tromey  <tom@tromey.com>
2251
2252         * macrocmd.c (struct temporary_macro_definition): New.
2253         (macro_define_command): Use temporary_macro_definition.  Remove
2254         cleanups.
2255         (free_macro_definition_ptr): Remove.
2256
2257 2018-02-08  Tom Tromey  <tom@tromey.com>
2258
2259         * macroexp.c (maybe_expand): Use std::string.
2260
2261 2018-02-08  Tom Tromey  <tom@tromey.com>
2262
2263         * macroexp.c (struct macro_buffer): Add initializers for some
2264         members.
2265         (init_buffer, init_shared_buffer, free_buffer)
2266         (free_buffer_return_text): Remove.
2267         (macro_buffer): New constructors.
2268         (~macro_buffer): New destructor.
2269         (macro_buffer::set_shared): New method.
2270         (macro_buffer::resize_buffer, macro_buffer::appendc)
2271         (macro_buffer::appendmem): Now methods, not free functions.
2272         (set_token, append_tokens_without_splicing, stringify)
2273         (macro_stringify): Update.
2274         (gather_arguments): Change return type.  Remove argc_p argument,
2275         add args_ptr argument.  Use std::vector.
2276         (substitute_args): Remove argc argument.  Accept std::vector.
2277         (expand): Update.  Use std::vector.
2278         (scan, macro_expand, macro_expand_next): Update.
2279
2280 2018-02-08  Tom Tromey  <tom@tromey.com>
2281
2282         * symtab.c (default_collect_symbol_completion_matches_break_on):
2283         Use unique_xmalloc_ptr.
2284         * macroscope.h: (sal_macro_scope, user_macro_scope)
2285         (default_macro_scope): Return unique_xmalloc_ptr.
2286         * macroscope.c (sal_macro_scope, user_macro_scope)
2287         (default_macro_scope): Return unique_xmalloc_ptr.
2288         * macroexp.h (macro_expand, macro_expand_once): Return
2289         unique_xmalloc_ptr.
2290         * macroexp.c (macro_expand, macro_expand_once): Return
2291         unique_xmalloc_ptr.
2292         * macrocmd.c (macro_expand_command, macro_expand_once_command)
2293         (info_macro_command, info_macros_command): Use
2294         unique_xmalloc_ptr.
2295         * compile/compile-c-support.c (write_macro_definitions): Use
2296         unique_xmalloc_ptr.
2297         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
2298
2299 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
2300
2301         * value.c (value_static_field): Assign field type instead of
2302         containing type when returning an optimized out value.
2303
2304 2018-02-06  Yao Qi  <yao.qi@linaro.org>
2305
2306         * ft32-tdep.c (ft32_read_pc): Remove.
2307         (ft32_write_pc): Remove.
2308         (ft32_gdbarch_init): Update.
2309         * m32r-tdep.c (m32r_read_pc): Remove.
2310         (m32r_gdbarch_init): Update.
2311         * mep-tdep.c (mep_read_pc): Remove.
2312         (mep_gdbarch_init): Update.
2313         * microblaze-tdep.c (microblaze_write_pc): Remove.
2314         (microblaze_gdbarch_init): Update.
2315         * mn10300-tdep.c (mn10300_read_pc): Remove.
2316         (mn10300_write_pc): Remove.
2317         (mn10300_gdbarch_init): Update.
2318         * moxie-tdep.c (moxie_read_pc): Remove.
2319         (moxie_write_pc): Remove.
2320         (moxie_gdbarch_init): Update.
2321
2322 2018-02-06  Yao Qi  <yao.qi@linaro.org>
2323
2324         * expprint.c (print_subexp_standard): Handle
2325         OP_F77_UNDETERMINED_ARGLIST.
2326         (dump_subexp_body_standard): Likewise.
2327
2328 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
2329
2330         * target-descriptions.c (tdesc_element_visitor) Add empty
2331         implementations.
2332         (tdesc_type): Move make_gdb_type from here.
2333         (tdesc_type_builtin): Likewise.
2334         (tdesc_type_vector): Likewise.
2335         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
2336         (make_gdb_type_struct): Move from tdesc_type_with_fields.
2337         (make_gdb_type_union): Likewise.
2338         (make_gdb_type_flags): Likewise.
2339         (make_gdb_type_enum): Likewise.
2340         (make_gdb_type): New function.
2341         (tdesc_register_type): Use static make_gdb_type.
2342
2343 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
2344
2345         * infcmd.c (default_print_one_register_info): Align natural-format
2346         column values consistently one under another.
2347         (pad_to_column): New function.
2348
2349 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
2350
2351         * dwarf2read.c (dwarf2_physname): Move commment.
2352
2353 2018-02-01  Leszek Swirski  <leszeks@google.com>
2354
2355         * varobj.c (varobj_formatted_print_options): Allow recursive
2356         pretty printing if pretty printing is enabled.
2357
2358 2018-02-01  Leszek Swirski  <leszeks@google.com>
2359
2360         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
2361         names after a structop as a filename.
2362
2363 2018-02-01  Yao Qi  <yao.qi@linaro.org>
2364
2365         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
2366         (arm_record_coproc_data_proc): Likewise.
2367
2368 2018-02-01  Yao Qi  <yao.qi@linaro.org>
2369
2370         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
2371
2372 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
2373
2374         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
2375         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
2376
2377 2018-01-31  Pedro Alves  <palves@redhat.com>
2378
2379         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
2380         * inflow.c (child_terminal_save_inferior): Wrap reference to
2381         tcgetpgrp in HAVE_TERMIOS_H.
2382         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
2383         _WIN32.
2384         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
2385         always iterate over all inferiors.
2386         (gdbsim_cntrl_c): Adjust.
2387         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
2388
2389 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
2390
2391         * gdbtypes.c (lookup_array_range_type): Make sure the array's
2392         index type is objfile-owned if the element type is as well.
2393
2394 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
2395
2396         GDB 8.1 released.
2397
2398 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2399
2400         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
2401         "features/s390x-linux64.c".
2402         (_initialize_s390_linux_tdep): Remove initialization of tdescs
2403         s390_linux32 and s390x_linux64.
2404         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
2405         default tdesc.
2406         * s390-tdep.c: Include "features/s390-linux32.c" and
2407         "features/s390x-linux64.c".
2408         (s390_tdesc_valid): Add check for tdesc_has_registers.
2409         (s390_gdbarch_init): Make sure there is always a valid tdesc.
2410         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
2411         tdesc_s390x_linux64.
2412         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
2413         tdesc_s390x_linux64 to...
2414         * s390-tdep.h: ...here.
2415
2416 2018-01-30  Pedro Alves  <palves@redhat.com>
2417
2418         PR gdb/13211
2419         * config.in, configure: Regenerate.
2420         * configure.ac: Check for getpgid.
2421         * go32-nat.c (go32_pass_ctrlc): New.
2422         (go32_target): Install it.
2423         * inf-child.c (inf_child_target): Install
2424         child_terminal_save_inferior, child_pass_ctrlc and
2425         child_interrupt.
2426         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
2427         (inf_ptrace_target): No longer install it.
2428         * infcmd.c (interrupt_target_1): Adjust.
2429         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
2430         (child_interrupt): Declare.
2431         (inferior::terminal_state): New.
2432         * inflow.c (struct terminal_info): Update comments.
2433         (inferior_process_group): Delete.
2434         (terminal_is_ours): Delete.
2435         (gdb_tty_state): New.
2436         (child_terminal_init): Adjust.
2437         (is_gdb_terminal, sharing_input_terminal_1)
2438         (sharing_input_terminal): New functions.
2439         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
2440         Set the process's actual process group in the foreground if
2441         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
2442         mark terminal as the inferior's if not sharing GDB's terminal.
2443         Don't check attach_flag.
2444         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
2445         pass down a target_terminal_state.
2446         (child_terminal_save_inferior): New, factored out from ...
2447         (child_terminal_ours_1): ... this.  Handle
2448         target_terminal_state::is_ours_for_output.
2449         (child_interrupt, child_pass_ctrlc): New.
2450         (inflow_inferior_exit): Clear the inferior's terminal_state.
2451         (copy_terminal_info): Copy the inferior's terminal state.
2452         (_initialize_inflow): Remove reference to terminal_is_ours.
2453         * inflow.h (inferior_process_group): Delete.
2454         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
2455         * procfs.c (procfs_target): Don't install procfs_interrupt.
2456         (procfs_interrupt): Delete.
2457         * remote.c (remote_serial_quit_handler): Adjust.
2458         (remote_interrupt): Remove ptid parameter.  Adjust.
2459         * target-delegates.c: Regenerate.
2460         * target.c: Include "terminal.h".
2461         (target_terminal::terminal_state): Rename to ...
2462         (target_terminal::m_terminal_state): ... this.
2463         (target_terminal::init): Adjust.
2464         (target_terminal::inferior): Adjust to per-inferior
2465         terminal_state.
2466         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
2467         (target_terminal::ours, target_terminal::ours_for_output): Use
2468         target_terminal_is_ours_kind.
2469         (target_interrupt): Remove ptid parameter.  Adjust.
2470         (default_target_pass_ctrlc): Adjust.
2471         * target.h (target_ops::to_terminal_save_inferior): New field.
2472         (target_ops::to_interrupt): Remove ptid_t parameter.
2473         (target_interrupt): Remove ptid_t parameter.  Update comment.
2474         (target_pass_ctrlc): Update comment.
2475         * target/target.h (target_terminal_state): New scoped enum,
2476         factored out of ...
2477         (target_terminal::terminal_state): ... here.
2478         (target_terminal::inferior): Update comments.
2479         (target_terminal::restore_inferior): New.
2480         (target_terminal::is_inferior, target_terminal::is_ours)
2481         (target_terminal::is_ours_for_output): Adjust.
2482         (target_terminal::scoped_restore_terminal_state): Adjust to
2483         rename, and call restore_inferior() instead of inferior().
2484         (target_terminal::scoped_restore_terminal_state::m_state): Change
2485         type.
2486         (target_terminal::terminal_state): Rename to ...
2487         (target_terminal::m_terminal_state): ... this and change type.
2488
2489 2018-01-30  Pedro Alves  <palves@redhat.com>
2490
2491         * linux-nat.c (wait_for_signal): New function.
2492         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
2493         directly.
2494         (async_terminal_is_ours)
2495         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
2496         (linux_nat_add_target): Don't override
2497         to_terminal_inferior/to_terminal_ours.
2498
2499 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
2500
2501         * remote.c (remote_follow_fork): Don't call "detach_inferior".
2502
2503 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
2504
2505         * dwarf2read.c (free_dwo_files): Add forward-declaration.
2506         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
2507         dwarf2_per_objfile_free here.
2508         (dwarf2_per_objfile_free): Remove.
2509         (_initialize_dwarf2_read): Don't register
2510         dwarf2_per_objfile_free as a registry cleanup.
2511
2512 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
2513
2514         Avoid compilation errors in MinGW native builds
2515
2516         The error is triggered by including python-internal.h, and the
2517         error message is:
2518
2519              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
2520                       from build-gnulib/import/math.h:27,
2521                       from d:/usr/Python26/include/pyport.h:235,
2522                       from d:/usr/Python26/include/Python.h:58,
2523                       from python/python-internal.h:94,
2524                       from python/py-arch.c:24:
2525              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
2526         using ::hypot;
2527                 ^~~~~
2528
2529         This happens because Python headers define 'hypot' to expand t
2530         '_hypot' in the Windows builds.
2531         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
2532         'hypoth'.  This avoids a compilation error.
2533
2534 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
2535
2536         * MAINTAINERS (Write After Approval): Fix ordering.
2537
2538 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
2539
2540         * MAINTAINERS (Write After Approval): Add Alan Hayward.
2541
2542 2018-01-26  Alan Modra  <amodra@gmail.com>
2543
2544         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
2545         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
2546         Remove nop.  Make const.  Comment.
2547         (powerpc32_plt_stub_so_2): New.
2548         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
2549         Correct count.  Update uses.
2550         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
2551         Move common code reading PLT entry word.  Correct
2552         powerpc32_plt_stub PLT address calculation.
2553         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
2554         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
2555         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
2556         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
2557         (ppc64_standard_linkage8): Likewise.
2558         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
2559         Correct insns description.
2560         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2561
2562 2018-01-24  Pedro Alves  <palves@redhat.com>
2563
2564         GCC PR libstdc++/83906
2565         * gdbtypes.c (operator==(const dynamic_prop &,
2566         const dynamic_prop &)): New.
2567         (operator==(const range_bounds &, const range_bounds &)): New.
2568         (check_types_equal): Use them instead of memcmp.
2569         * gdbtypes.h (operator==(const dynamic_prop &,
2570         const dynamic_prop &)): Declare.
2571         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
2572         (operator==(const range_bounds &, const range_bounds &)): Declare.
2573         (operator!=(const range_bounds &, const range_bounds &)): Declare.
2574
2575 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2576
2577         * s390-linux-tdep.c (s390_record_address_mask)
2578         (s390_record_calc_disp_common, s390_record_calc_disp)
2579         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2580         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2581         (s390_process_record): Move to s390-tdep.c.
2582         (s390_linux_init_abi_any): Adjust.
2583         * s390-tdep.c (s390_record_address_mask)
2584         (s390_record_calc_disp_common, s390_record_calc_disp)
2585         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2586         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2587         (s390_process_record): Moved from s390-linux-tdep.c
2588         (s390_gdbarch_init): Adjust.
2589
2590 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2591
2592         * s390-linux-nat.c (s390-tdep.h): New include.
2593         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
2594         (HFILES_NO_SRCDIR): Add s390-tdep.h.
2595         (ALLDEPFILES): Add s390-tdep.c.
2596         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
2597         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
2598         * s390-tdep.h: ...this.  New file.
2599         * s390-linux-tdep.c (s390-tdep.h): New include.
2600         (_initialize_s390_tdep): Rename to...
2601         (_initialize_s390_linux_tdep): ...this and adjust.
2602         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
2603         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
2604         s390-tdep.h.
2605         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
2606         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
2607         (s390_is_partial_instruction, s390_software_single_step)
2608         (is_non_branch_ril, s390_displaced_step_copy_insn)
2609         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
2610         (s390_prologue_data, s390_addr, s390_store, s390_load)
2611         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
2612         (s390_register_call_saved, s390_guess_tracepoint_registers)
2613         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
2614         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
2615         (s390_pseudo_register_name, s390_pseudo_register_type)
2616         (s390_pseudo_register_read, s390_pseudo_register_write)
2617         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
2618         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
2619         (s390_addr_bits_remove, s390_address_class_type_flags)
2620         (s390_address_class_type_flags_to_name)
2621         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
2622         (s390_function_arg_float, s390_function_arg_vector)
2623         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
2624         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
2625         (s390_frame_align, s390_register_return_value, s390_return_value)
2626         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
2627         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
2628         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
2629         (s390_trad_frame_prev_register, s390_unwind_cache)
2630         (s390_prologue_frame_unwind_cache)
2631         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
2632         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
2633         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
2634         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
2635         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
2636         (s390_frame_base_address, s390_local_base_address)
2637         (s390_frame_base, s390_gcc_target_options)
2638         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
2639         (s390_validate_reg_range, s390_tdesc_valid)
2640         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
2641         * s390-tdep.c: ...this.  New file.
2642
2643 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2644
2645         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
2646         (s390_process_record, s390_gdbarch_tdep_alloc)
2647         (s390_linux_init_abi_any): Use/set new hook.
2648
2649 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2650
2651         * s390-linux-tdep.c (osabi.h): New include.
2652         (s390_linux_init_abi_31, s390_linux_init_abi_64)
2653         (s390_linux_init_abi_any): New functions.
2654         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
2655
2656 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2657
2658         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
2659         tdesc_has_registers check
2660
2661 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2662
2663         * s390-linux-tdep.c (s390_tdesc_valid): New function.
2664         (s390_validate_reg_range): New macro.
2665         (s390_gdbarch_init): Adjust.
2666
2667 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2668
2669         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
2670         (s390_gdbarch_tdep_alloc): Adjust.
2671         (s390_gdbarch_init): Adjust.
2672
2673 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2674
2675         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
2676         <have_tdb>: Change type to bool.
2677         (s390_gdbarch_tdep_alloc): Adjust.
2678         (s390_gdbarch_init): Adjust.
2679
2680 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2681
2682         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
2683         (gdbarch_tdep) <have_upper, have_vx>: New fields.
2684         (s390_gdbarch_tdep_alloc): New function.
2685         (s390_gdbarch_init): Allocate tdep at start and use its fields
2686         instead of separate variables.
2687
2688 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
2689
2690         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
2691         when looking for cached gdbarch and add comment for remaining.
2692
2693 2018-01-22  Pedro Alves  <palves@redhat.com>
2694             Sergio Durigan Junior  <sergiodj@redhat.com>
2695
2696         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
2697         case.
2698
2699 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
2700
2701         * MAINTAINERS: Update my company e-mail address.
2702
2703 2018-01-22  Yao Qi  <yao.qi@linaro.org>
2704
2705         * regcache.c (cooked_write_test): New function.
2706         (_initialize_regcache): Register the test.
2707
2708 2018-01-22  Yao Qi  <yao.qi@linaro.org>
2709
2710         * ia64-tdep.c (ia64_pseudo_register_read): Call
2711         regcache->cooked_read instead of regcache_cooked_read_unsigned.
2712         * m32c-tdep.c (m32c_cat_read): Likewise.
2713         (m32c_r3r2r1r0_read): Likewise.
2714         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2715         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2716
2717 2018-01-22  Yao Qi  <yao.qi@linaro.org>
2718
2719         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
2720         method raw_read instead of regcache_raw_read.
2721         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2722         * arm-tdep.c (arm_neon_quad_read): Likewise.
2723         * avr-tdep.c (avr_pseudo_register_read): Likewise.
2724         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2725         * frv-tdep.c (frv_pseudo_register_read): Likewise.
2726         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
2727         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2728         (i386_pseudo_register_read_into_value): Likewise.
2729         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2730         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2731         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2732         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2733         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2734         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
2735         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2736         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
2737         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2738
2739 2018-01-22  Yao Qi  <yao.qi@linaro.org>
2740
2741         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2742         * configure.tgt: Remove target mt.
2743         * mt-tdep.c: Remove.
2744         * regcache.c (cooked_read_test): Remove the check for mt.
2745
2746 2018-01-22  Yao Qi  <yao.qi@linaro.org>
2747
2748         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2749         instead of gdbarch_pseudo_register_read_value.
2750
2751 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
2752
2753         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2754         language is Ada.
2755
2756 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
2757
2758         * linespec.c (create_sals_line_offset): Remove code that preserved
2759         the symtab_and_line's line number.
2760
2761 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2762
2763         * varobj.c (varobj_create): Don't set valid_block when creating a
2764         floating varobj.
2765
2766 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2767
2768         * varobj.c (varobj_create): Remove out of date comment.
2769
2770 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2771
2772         PR mi/20395
2773         * ada-exp.y (write_var_from_sym): Pass extra parameter when
2774         updating innermost block.
2775         * parse.c (innermost_block_tracker::update): Take extra type
2776         parameter, and check types match before updating innermost block.
2777         (write_dollar_variable): Update innermost block for registers.
2778         * parser-defs.h (enum innermost_block_tracker_type): New enum.
2779         (innermost_block_tracker::innermost_block_tracker): Initialise
2780         m_types member.
2781         (innermost_block_tracker::reset): Take type parameter.
2782         (innermost_block_tracker::update): Take type parameter, and pass
2783         type through as needed.
2784         (innermost_block_tracker::m_types): New member.
2785         * varobj.c (varobj_create): Pass type when reseting innermost
2786         block.
2787
2788 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2789
2790         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2791         * ada-lang.c (resolve_subexp): Likewise.
2792         * breakpoint.c (set_breakpoint_condition) Likewise.
2793         (watch_command_1) Likewise.
2794         * c-exp.y (variable): Likewise.
2795         * d-exp.y (PrimaryExpression): Likewise.
2796         * f-exp.y (variable): Likewise.
2797         * go-exp.y (variable): Likewise.
2798         * m2-exp.y (variable): Likewise.
2799         * objfiles.c (objfile::~objfile): Likewise.
2800         * p-exp.y (variable): Likewise.
2801         * parse.c (innermost_block): Change type.
2802         * parser-defs.h (class innermost_block_tracker): New.
2803         (innermost_block): Change to innermost_block_tracker.
2804         * printcmd.c (display_command): Switch to innermost_block API.
2805         (do_one_display): Likewise.
2806         * rust-exp.y (do_one_display): Likewise.
2807         * symfile.c (clear_symtab_users): Likewise.
2808         * varobj.c (varobj_create): Switch to innermost_block API, replace
2809         use of innermost_block with block stored on varobj object.
2810
2811 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2812
2813         * expression.h (innermost_block): Remove declaration.
2814         * varobj.c: Add 'parser-defs.h' include.
2815
2816 2018-01-19  Tom Tromey  <tom@tromey.com>
2817
2818         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2819         symbols in the static and global blocks.
2820
2821 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
2822
2823         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2824         gdb_ptrace.h, and move including gdb_wait.h ...
2825         * nat/linux-ptrace.h: ... to here.
2826
2827 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
2828
2829         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2830         inf_ptrace_detach_success.
2831         (inf_ptrace_detach_success): Add inferior parameter, use it
2832         instead of inferior_ptid, pass it to detach_inferior.
2833         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2834         parameter.
2835         * inferior.c (detach_inferior): Add overload that takes an
2836         inferior object.
2837         * inferior.h (detach_inferior): Likewise.
2838         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2839         use inferior_ptid, adjust call to inf_ptrace_detach_success.
2840         * linux-thread-db.c (thread_db_detach): Use inf parameter.
2841
2842 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
2843
2844         * target.h (struct target_ops) <to_detach>: Add inferior
2845         parameter.
2846         (target_detach): Likewise.
2847         * target.c (dispose_inferior): Pass inferior down.
2848         (target_detach): Pass inferior down.  Assert that it is equal to
2849         the current inferior.
2850         * aix-thread.c (aix_thread_detach): Pass inferior down.
2851         * corefile.c (core_file_command): Pass current_inferior() down.
2852         * corelow.c (core_detach): Add inferior parameter.
2853         * darwin-nat.c (darwin_detach): Likewise.
2854         * gnu-nat.c (gnu_detach): Likewise.
2855         * inf-ptrace.c (inf_ptrace_detach): Likewise.
2856         * infcmd.c (detach_command): Pass current_inferior() down to
2857         target_detach.
2858         * infrun.c (follow_fork_inferior): Pass parent_inf to
2859         target_detach.
2860         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2861         target_detach.
2862         * linux-nat.c (linux_nat_detach): Add inferior parameter.
2863         * linux-thread-db.c (thread_db_detach): Likewise.
2864         * nto-procfs.c (procfs_detach): Likewise.
2865         * procfs.c (procfs_detach): Likewise.
2866         * record.c (record_detach): Likewise.
2867         * record.h (struct inferior): Forward-declare.
2868         (record_detach): Add inferior parameter.
2869         * remote-sim.c (gdbsim_detach): Likewise.
2870         * remote.c (remote_detach_1): Likewise.
2871         (remote_detach): Likewise.
2872         (extended_remote_detach): Likewise.
2873         * sol-thread.c (sol_thread_detach): Likewise.
2874         * target-debug.h (target_debug_print_inferior_p): New macro.
2875         * target-delegates.c: Re-generate.
2876         * top.c (kill_or_detach): Pass inferior down to target_detach.
2877         * windows-nat.c (windows_detach): Add inferior parameter.
2878
2879 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
2880
2881         * target.h (struct target_ops) <to_detach>: Remove args
2882         parameter.
2883         (target_detach): Likewise.
2884         * target.c (dispose_inferior): Adjust.
2885         (target_detach): Remove args parameter, adjust.
2886         * aix-thread.c (aix_thread_detach): Adjust.
2887         * corefile.c (core_file_command): Adjust.
2888         * corelow.c (core_detach): Adjust.
2889         * darwin-nat.c (darwin_detach): Adjust.
2890         * gnu-nat.c (gnu_detach): Adjust.
2891         * inf-ptrace.c (inf_ptrace_detach): Adjust.
2892         * infcmd.c (detach_command): Adjust
2893         * infrun.c (follow_fork_inferior): Adjust.
2894         (handle_vfork_child_exec_or_exit): Adjust.
2895         * linux-fork.c (linux_fork_detach): Remove args parameter.
2896         * linux-fork.h (linux_fork_detach): Likewise.
2897         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2898         * linux-thread-db.c (thread_db_detach): Likewise.
2899         * nto-procfs.c (procfs_detach): Likewise.
2900         * procfs.c (procfs_detach): Likewise.
2901         (do_detach): Remove signo parameter.
2902         * record.c (record_detach): Remove args parameter.
2903         * record.h (record_detach): Likewise.
2904         * remote-sim.c (gdbsim_detach): Likewise.
2905         * remote.c (remote_detach_1): Likewise.
2906         (remote_detach): Likewise.
2907         (extended_remote_detach): Likewise.
2908         * sol-thread.c (sol_thread_detach): Likewise.
2909         * target-delegates.c: Re-generate.
2910         * top.c (struct qt_args) <args>: Remove field.
2911         (kill_or_detach): Don't pass args.
2912         (quit_force): Don't set args.
2913         * windows-nat.c (windows_detach): Remove args parameter.
2914
2915 2018-01-19  Yao Qi  <yao.qi@linaro.org>
2916
2917         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2918         (arm_linux_init_abi): Install it.
2919
2920 2018-01-19  Yao Qi  <yao.qi@linaro.org>
2921
2922         * osabi.c (gdb_osabi_names): Extend the regexp for
2923         arm-linux-gnueabihf.
2924
2925 2018-01-18  Yao Qi  <yao.qi@linaro.org>
2926
2927         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2928         m_abbrevs.
2929         (abbrev_table::add_abbrev): Update.
2930         (abbrev_table::lookup_abbrev): Update.
2931
2932 2018-01-18  Yao Qi  <yao.qi@linaro.org>
2933
2934         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2935
2936 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
2937
2938         * compile/compile.c (compile_to_object): Convert "triplet_rx"
2939         to "std::string".
2940
2941 2018-01-17  Tom Tromey  <tom@tromey.com>
2942
2943         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
2944
2945 2018-01-17  Tom Tromey  <tom@tromey.com>
2946
2947         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2948         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2949         (create_array_type_with_stride): Update.
2950         * dwarf2read.c (set_die_type): Update.
2951
2952 2018-01-17  Tom Tromey  <tom@tromey.com>
2953
2954         * dwarf2read.c (delayed_method_info): Remove typedef.
2955         (dwarf2_cu::method_info): Now a std::vector.
2956         (add_to_method_list): Update.
2957         (free_delayed_list): Remove.
2958         (compute_delayed_physnames): Update.
2959         (process_full_comp_unit, process_full_type_unit): Clear the method
2960         list.  Remove cleanups.
2961         (psymtab_include_file_name): Add name_holder parameter.  Use
2962         unique_xmalloc_ptr.
2963         (dwarf_decode_lines): Update.
2964
2965 2018-01-17  Tom Tromey  <tom@tromey.com>
2966             Simon Marchi  <simon.marchi@ericsson.com>
2967
2968         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2969         (dwarf2_per_objfile::free_cached_comp_units)
2970         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2971         (init_cutu_and_read_dies_no_follow): Update.
2972         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2973         (dwarf2_cu::~dwarf2_cu): New.
2974         (free_heap_comp_unit, free_stack_comp_unit): Remove.
2975         (age_cached_comp_units, free_one_cached_comp_unit): Update.
2976
2977 2018-01-17  Tom Tromey  <tom@tromey.com>
2978             Simon Marchi  <simon.marchi@ericsson.com>
2979
2980         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2981         (struct die_reader_specs) <abbrev_table>: New member.
2982         (struct abbrev_table): Add constructor.
2983         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2984         <abbrev_obstack>: Now an auto_obstack.
2985         (abbrev_table_up): New typedef.
2986         (init_cu_die_reader): Add abbrev_table parameter.
2987         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2988         Add result_dwo_abbrev_table.
2989         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2990         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2991         Update.
2992         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2993         parameter.
2994         (skip_children): Update.
2995         (abbrev_table::alloc_abbrev): Rename from
2996         abbrev_table_alloc_abbrev.
2997         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2998         (abbrev_table::lookup_abbrev): Rename from
2999         abbrev_table_lookup_abbrev.
3000         (abbrev_table_read_table): Return abbrev_table_up.
3001         (abbrev_table_free, abbrev_table_free_cleanup)
3002         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
3003         (load_partial_dies): Update.
3004
3005 2018-01-17  Tom Tromey  <tom@tromey.com>
3006
3007         * dwarf2read.c (dwarf2_compute_name): Update comment.
3008         (read_func_scope, read_variable): Update.
3009         (new_symbol): Remove.
3010         (new_symbol_full): Rename to new_symbol.
3011
3012 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
3013
3014         PR gdb/16577
3015         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
3016         a warning instead of throwing an error, set section size to 0 and return
3017         NULL.
3018         * gdb_bfd.h (gdb_bfd_map_section): Update description.
3019
3020 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
3021
3022         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
3023         std::string.
3024         (linux_ptrace_attach_fail_reason_string): Likewise.
3025         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
3026         Likewise.
3027         (linux_ptrace_attach_fail_reason_string): Likewise.
3028         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
3029
3030 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
3031
3032         * linux-nat.c (linux_nat_attach): Remove xstrdup.
3033
3034 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
3035
3036         PR gdb/21559
3037         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3038         checking for fs_base/gs_base fields in struct user_regs_struct.
3039         * configure: Regenerate.
3040
3041 2018-01-17  Yao Qi  <yao.qi@linaro.org>
3042
3043         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
3044         function.
3045         (aarch64_linux_init_abi): Install it to gdbarch hook
3046         gcc_target_options.
3047
3048 2018-01-15  Pedro Alves  <palves@redhat.com>
3049
3050         * common/signals-state-save-restore.c
3051         (save_original_signals_state): Fix typos.
3052
3053 2017-01-12  Tom Tromey  <tom@tromey.com>
3054             Sergio Durigan Junior  <sergiodj@redhat.com>
3055
3056         * Makefile.in (install-only): Install gdb-add-index.
3057
3058 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
3059
3060         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
3061
3062 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3063
3064         * infrun.c (keep_going_pass_signal): Clear step-over info when
3065         insert_breakpoints fails.
3066
3067 2018-01-11  Pedro Alves  <palves@redhat.com>
3068
3069         PR gdb/22583
3070         * infrun.c (resume): Rename to ...
3071         (resume_1): ... this.
3072         (resume): Reimplement as wrapper around resume_1.
3073
3074 2018-01-11  Pedro Alves  <palves@redhat.com>
3075
3076         PR remote/22597
3077         * remote.c (remote_parse_stop_reply): Default to the last-set
3078         general thread instead of to 'magic_null_ptid'.
3079
3080 2018-01-10  Pedro Alves  <palves@redhat.com>
3081
3082         * language.h (language_get_symbol_name_matcher): Rename ...
3083         (get_symbol_name_matcher): ... this.
3084         * language.c (language_get_symbol_name_matcher): Ditto.
3085         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
3086         callers adjusted.
3087
3088 2018-01-10  Pedro Alves  <palves@redhat.com>
3089
3090         PR gdb/22670
3091         * dwarf2read.c
3092         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
3093         Adjust to use language_get_symbol_name_matcher instead of
3094         language_defn::la_get_symbol_name_matcher.
3095         * language.c (language_get_symbol_name_matcher): If in Ada mode
3096         and the lookup name is a verbatim match, return Ada's matcher.
3097         * language.h (language_get_symbol_name_matcher): Adjust comment.
3098         (ada_lookup_name_info::verbatim_p):: New method.
3099
3100 2018-01-10  Pedro Alves  <palves@redhat.com>
3101
3102         PR gdb/22670
3103         * ada-lang.c (ada_collect_symbol_completion_matches): If the
3104         minsym's language is language_auto or language_cplus, pass down
3105         language_ada instead.
3106         * symtab.c (compare_symbol_name): Don't frob symbol language here.
3107
3108 2018-01-10  Pedro Alves  <palves@redhat.com>
3109
3110         PR gdb/22670
3111         * minsyms.c (linkage_name_str): New function.
3112         (iterate_over_minimal_symbols): Use it.
3113
3114 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3115
3116         * NEWS: Document that 'info proc' now works on FreeBSD.
3117
3118 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3119
3120         * configure.ac: Check for kinfo_getfile in libutil.
3121         * configure: Regenerate.
3122         * config.in: Regenerate.
3123         * fbsd-nat.c: Include "fbsd-tdep.h".
3124         (fbsd_fetch_cmdline): New.
3125         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
3126         rather than calling error.
3127         (fbsd_info_proc): New.
3128         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
3129         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
3130         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
3131
3132 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3133
3134         * fbsd-nat.c (struct free_deleter): Remove.
3135         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
3136
3137 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3138
3139         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
3140         NULL for an empty pathname.
3141
3142 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
3143
3144         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
3145         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
3146         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
3147         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
3148         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
3149         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
3150         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
3151         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
3152         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
3153         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
3154         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
3155         (fbsd_core_fetch_timeval, fbsd_print_sigset)
3156         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
3157         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
3158         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
3159
3160 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3161
3162         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
3163         (gnu_xfer_auxv): New function.
3164         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
3165         TARGET_OBJECT_AUXV.
3166
3167 2018-01-08  Yao Qi  <yao.qi@linaro.org>
3168             Simon Marchi  <simon.marchi@ericsson.com>
3169
3170         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
3171         common/selftest.c.
3172         (COMMON_OBS): Remove selftest.o.
3173         * configure.ac: Append selftest-arch.c and common/selftest.c to
3174         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
3175         * configure: Re-generated.
3176         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
3177         GDB_SELF_TEST.
3178         (maintenance_info_selftests): Likewise.
3179
3180 2018-01-08  Xavier Roirand  <roirand@adacore.com>
3181
3182         * ada-valprint.c (val_print_packed_array_elements): Use
3183         proper number of elements when printing an array indexed
3184         by an enumeration type.
3185
3186 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
3187
3188         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
3189         (dw2_get_file_names_reader): Adjust.
3190         (lookup_dwo_signatured_type): Adjust.
3191         (lookup_dwp_signatured_type): Adjust.
3192         (lookup_signatured_type): Adjust.
3193         (create_type_unit_group): Adjust.
3194         (get_type_unit_group): Adjust.
3195         (process_psymtab_comp_unit_reader): Adjust.
3196         (build_type_psymtabs_reader): Adjust.
3197         (scan_partial_symbols): Adjust.
3198         (add_partial_symbol): Adjust.
3199         (add_partial_subprogram): Adjust.
3200         (peek_die_abbrev): Adjust.
3201         (fixup_go_packaging): Adjust.
3202         (process_imported_unit_die): Adjust.
3203         (dwarf2_compute_name): Adjust.
3204         (dwarf2_physname): Adjust.
3205         (read_import_statement): Adjust.
3206         (handle_DW_AT_stmt_list): Adjust.
3207         (read_file_scope): Adjust.
3208         (read_func_scope): Adjust.
3209         (read_lexical_block_scope): Adjust.
3210         (read_call_site_scope): Adjust.
3211         (read_variable): Adjust.
3212         (dwarf2_rnglists_process): Adjust.
3213         (dwarf2_ranges_process): Adjust.
3214         (dwarf2_ranges_read): Adjust.
3215         (dwarf2_get_pc_bounds): Adjust.
3216         (dwarf2_record_block_ranges): Adjust.
3217         (dwarf2_add_field): Adjust.
3218         (dwarf2_add_member_fn): Adjust.
3219         (read_structure_type): Adjust.
3220         (process_structure_scope): Adjust.
3221         (read_enumeration_type): Adjust.
3222         (read_array_type): Adjust.
3223         (mark_common_block_symbol_computed): Adjust.
3224         (read_common_block): Adjust.
3225         (read_namespace_type): Adjust.
3226         (read_namespace): Adjust.
3227         (read_module_type): Adjust.
3228         (read_tag_pointer_type): Adjust.
3229         (read_tag_ptr_to_member_type): Adjust.
3230         (read_tag_string_type): Adjust.
3231         (read_subroutine_type): Adjust.
3232         (read_typedef): Adjust.
3233         (read_base_type): Adjust.
3234         (attr_to_dynamic_prop): Adjust.
3235         (read_subrange_type): Adjust.
3236         (read_unspecified_type): Adjust.
3237         (dwarf2_read_abbrevs): Adjust.
3238         (load_partial_dies): Adjust.
3239         (read_partial_die): Adjust.
3240         (find_partial_die): Adjust.
3241         (guess_partial_die_structure_name): Adjust.
3242         (fixup_partial_die): Adjust.
3243         (read_attribute_value): Adjust.
3244         (read_addr_index): Adjust.
3245         (read_addr_index_from_leb128): Adjust.
3246         (read_str_index): Adjust.
3247         (dwarf2_string_attr): Adjust.
3248         (get_debug_line_section): Adjust.
3249         (dwarf_decode_line_header): Adjust.
3250         (lnp_state_machine::check_line_address): Adjust.
3251         (dwarf_decode_lines_1): Adjust.
3252         (dwarf_decode_lines): Adjust.
3253         (dwarf2_start_symtab): Adjust.
3254         (var_decode_location): Adjust.
3255         (new_symbol_full): Adjust.
3256         (dwarf2_const_value_data): Adjust.
3257         (dwarf2_const_value_attr): Adjust.
3258         (dwarf2_const_value): Adjust.
3259         (die_type): Adjust.
3260         (die_containing_type): Adjust.
3261         (build_error_marker_type): Adjust.
3262         (lookup_die_type): Adjust.
3263         (guess_full_die_structure_name): Adjust.
3264         (anonymous_struct_prefix): Adjust.
3265         (determine_prefix): Adjust.
3266         (dwarf2_name): Adjust.
3267         (follow_die_ref_or_sig): Adjust.
3268         (follow_die_offset): Adjust.
3269         (follow_die_ref): Adjust.
3270         (follow_die_sig_1): Adjust.
3271         (follow_die_sig): Adjust.
3272         (get_signatured_type): Adjust.
3273         (get_DW_AT_signature_type): Adjust.
3274         (decode_locdesc): Adjust.
3275         (dwarf_decode_macros): Adjust.
3276         (cu_debug_loc_section): Adjust.
3277         (fill_in_loclist_baton): Adjust.
3278         (dwarf2_symbol_mark_computed): Adjust.
3279         (init_one_comp_unit): Don't assign
3280         dwarf2_cu::dwarf2_per_objfile.
3281         (set_die_type): Adjust.
3282
3283 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
3284
3285         * dwarf2read.c (struct mapped_debug_names): Add constructor.
3286         <dwarf2_per_objfile>: New field.
3287         (dwarf2_per_objfile): Remove global.
3288         (get_dwarf2_per_objfile): New function.
3289         (set_dwarf2_per_objfile): New function.
3290         (dwarf2_build_psymtabs_hard): Change objfile parameter to
3291         dwarf2_per_objfile.
3292         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3293         (read_abbrev_offset): Likewise.
3294         (read_indirect_string): Likewise.
3295         (read_indirect_line_string): Likewise.
3296         (read_indirect_string_at_offset): Likewise.
3297         (read_indirect_string_from_dwz): Likewise.
3298         (dwarf2_find_containing_comp_unit): Change objfile parameter to
3299         dwarf2_per_objfile.
3300         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3301         (create_all_comp_units): Change objfile parameter to
3302         dwarf2_per_objfile.
3303         (create_all_type_units): Likewise.
3304         (process_queue): Add dwarf2_per_objfile parameter.
3305         (read_and_check_comp_unit_head): Likewise.
3306         (lookup_dwo_unit_in_dwp): Likewise.
3307         (get_dwp_file): Likewise.
3308         (process_cu_includes): Likewise.
3309         (struct free_dwo_file_cleanup_data): New struct.
3310         (dwarf2_has_info): Use get_dwarf2_per_objfile and
3311         set_dwarf2_per_objfile.
3312         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
3313         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
3314         context, adjust calls.
3315         (dw2_instantiate_symtab): Likewise.
3316         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
3317         (dw2_get_cu): Likewise.
3318         (create_cu_from_index_list): Change objfile parameter to
3319         dwarf2_per_objfile.
3320         (create_cus_from_index_list): Get dwarf2_per_objfile from
3321         context, adjust calls.
3322         (create_cus_from_index): Likewise.
3323         (create_signatured_type_table_from_index): Change objfile
3324         parameter to dwarf2_per_objfile.
3325         (create_signatured_type_table_from_debug_names): Change objfile
3326         parameter to dwarf2_per_objfile.
3327         (create_addrmap_from_index): Likewise.
3328         (create_addrmap_from_aranges): Likewise.
3329         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
3330         (dw2_setup): Remove.
3331         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
3332         context.
3333         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
3334         get_dwarf2_per_objfile.
3335         (dw2_forget_cached_source_info): Likewise.
3336         (dw2_map_symtabs_matching_filename): Likewise.
3337         (struct dw2_symtab_iterator) <index>: Remove.
3338         <dwarf2_per_objfile>: New field.
3339         (dw2_symtab_iter_init): Replace index parameter with
3340         dwarf2_per_objfile.
3341         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
3342         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
3343         (dw2_print_stats): Likewise.
3344         (dw2_dump): Likewise.
3345         (dw2_expand_symtabs_for_function): Likewise.
3346         (dw2_expand_all_symtabs): Likewise.
3347         (dw2_expand_symtabs_with_fullname): Likewise.
3348         (dw2_expand_marked_cus): Replace index and objfile parameters
3349         with dwarf2_per_objfile.
3350         (dw_expand_symtabs_matching_file_matcher): Add
3351         dwarf2_per_objfile parameter and adjust calls.
3352         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
3353         adjust calls.
3354         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
3355         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
3356         adjust calls.
3357         (create_cus_from_debug_names_list): Replace objfile parameter
3358         with dwarf2_per_objfile and adjust calls.
3359         (create_cus_from_debug_names): Likewise.
3360         (dwarf2_read_debug_names): Likewise.
3361         (mapped_debug_names::namei_to_name): Adjust call.
3362         (dw2_debug_names_iterator::next): Likewise.
3363         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3364         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
3365         (dw2_debug_names_dump): Likewise.
3366         (dw2_debug_names_expand_symtabs_for_function): Likewise.
3367         (dw2_debug_names_expand_symtabs_matching): Likewise.
3368         (dwarf2_initialize_objfile): Likewise.
3369         (dwarf2_build_psymtabs): Likewise.
3370         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
3371         this_cu.
3372         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
3373         (read_and_check_comp_unit_head): Likewise.
3374         (read_abbrev_offset): Likewise.
3375         (create_debug_type_hash_table): Likewise.
3376         (create_debug_types_hash_table): Likewise.
3377         (create_all_type_units): Replace objfile parameter with
3378         dwarf2_per_objfile.
3379         (add_type_unit): Add dwarf2_per_objfile parameter.
3380         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
3381         with dwarf2_per_objfile.
3382         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
3383         (lookup_dwp_signatured_type): Likewise.
3384         (lookup_signatured_type): Likewise.
3385         (read_cutu_die_from_dwo): Likewise.
3386         (init_tu_and_read_dwo_dies): Likewise.
3387         (init_cutu_and_read_dies): Likewise.
3388         (init_cutu_and_read_dies_no_follow): Likewise.
3389         (allocate_type_unit_groups_table): Add objfile parameter.
3390         (create_type_unit_group): Use dwarf2_per_objfile from cu.
3391         (get_type_unit_group): Likewise.
3392         (process_psymtab_comp_unit): Update call.
3393         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
3394         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
3395         (print_tu_stats): Likewise.
3396         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
3397         in void* parameter.
3398         (build_type_psymtabs): Change objfile parameter to
3399         dwarf2_per_objfile.
3400         (process_skeletonless_type_unit): Use dwarf2_per_objfile
3401         passed in void* parameter.
3402         (process_skeletonless_type_units): Change objfile parameter to
3403         dwarf2_per_objfile.
3404         (set_partial_user): Likewise.
3405         (dwarf2_build_psymtabs_hard): Likewise.
3406         (read_comp_units_from_section): Likewise.
3407         (create_all_comp_units): Likewise.
3408         (scan_partial_symbols): Update calls.
3409         (add_partial_symbol): Likewise.
3410         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
3411         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
3412         (process_queue): Add dwarf2_per_objfile parameter.
3413         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
3414         (compute_compunit_symtab_includes): Likewise.
3415         (process_cu_includes): Add dwarf2_per_objfile parameter.
3416         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
3417         (process_full_type_unit): Likewise.
3418         (process_imported_unit_die): Update call.
3419         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
3420         (read_file_scope): Likewise.
3421         (allocate_dwo_file_hash_table): Add objfile parameter.
3422         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
3423         (create_cus_hash_table): Likewise.
3424         (create_dwp_hash_table): Likewise.
3425         (create_dwo_unit_in_dwp_v1): Likewise.
3426         (create_dwp_v2_section): Likewise.
3427         (create_dwo_unit_in_dwp_v2): Likewise.
3428         (lookup_dwo_unit_in_dwp): Likewise.
3429         (try_open_dwop_file): Likewise.
3430         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
3431         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
3432         cleanup to include a reference to dwarf2_per_objfile.
3433         (open_dwp_file): Add dwarf2_per_objfile parameter.
3434         (open_and_init_dwp_file): Likewise.
3435         (get_dwp_file): Likewise.
3436         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
3437         (queue_and_load_all_dwo_tus): Update call.
3438         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
3439         data.
3440         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
3441         (dwarf2_ranges_process): Likewise.
3442         (dwarf2_get_pc_bounds): Likewise.
3443         (mark_common_block_symbol_computed): Likewise.
3444         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3445         (dwarf2_read_abbrevs): Update call.
3446         (read_partial_die): Use dwarf2_per_objfile from cu.
3447         (find_partial_die): Likewise.
3448         (fixup_partial_die): Likewise.
3449         (read_attribute_value): Likewise.
3450         (read_indirect_string_at_offset_from): Add objfile parameter.
3451         (read_indirect_string_at_offset): Add dwarf2_per_objfile
3452         parameter.
3453         (read_indirect_string_from_dwz): Add objfile parameter.
3454         (read_indirect_string): Add objfile parameter.
3455         (read_addr_index_1): Add dwarf2_per_objfile parameter.
3456         (read_addr_index): Use dwarf2_per_objfile from cu.
3457         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
3458         call dw2_setup.
3459         (read_str_index): Use dwarf2_per_objfile from cu.
3460         (get_debug_line_section): Likewise.
3461         (read_formatted_entries): Add dwarf2_per_objfile parameter.
3462         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
3463         (new_symbol_full): Use dwarf2_per_objfile from cu.
3464         (build_error_marker_type): Likewise.
3465         (lookup_die_type): Likewise.
3466         (determine_prefix): Likewise.
3467         (follow_die_offset): Likewise.
3468         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
3469         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
3470         (dwarf2_fetch_die_type_sect_off): Likewise.
3471         (dwarf2_get_die_type): Likewise.
3472         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
3473         (get_signatured_type): Likewise.
3474         (get_DW_AT_signature_type): Likewise.
3475         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
3476         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
3477         (cu_debug_loc_section): Likewise.
3478         (fill_in_loclist_baton): Likewise.
3479         (dwarf2_symbol_mark_computed): Likewise.
3480         (dwarf2_find_containing_comp_unit): Change objfile parameter to
3481         dwarf2_per_objfile.
3482         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
3483         parameter.
3484         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3485         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
3486         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
3487         (set_die_type): Use dwarf2_free_objfile from cu.
3488         (get_die_type_at_offset): Likewise.
3489         (dwarf2_per_objfile_free): Don't assign global variable.
3490         (debug_names) <constructor>: Add dwarf2_per_objfile
3491         parameter, update m_debugstrlookup construction.
3492         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
3493         parameter.
3494         <m_dwarf2_per_objfile>: New field.
3495         <lookup>: Use m_dwarf2_per_objfile.
3496         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
3497         (psyms_seen_size): Likewise.
3498         (write_gdbindex): Replace objfile parameter with
3499         dwarf2_per_objfile.
3500         (write_debug_names): Likewise.
3501         (write_psymtabs_to_index): Likewise.
3502         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
3503         calls.
3504
3505 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
3506
3507         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
3508         <dwarf2_per_objfile>: New field.
3509         (struct dwarf2_per_cu_data) <objfile>: Remove.
3510         <dwarf2_per_objfile>: New field.
3511         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
3512         of objfile.
3513         (create_signatured_type_table_from_index): Likewise.
3514         (create_debug_type_hash_table): Likewise.
3515         (fill_in_sig_entry_from_dwo_entry): Likewise.
3516         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
3517         (create_type_unit_group): Assign dwarf2_per_objfile instead of
3518         objfile.
3519         (create_partial_symtab): Access objfile through
3520         dwarf2_per_objfile.
3521         (process_psymtab_comp_unit_reader): Likewise.
3522         (read_comp_units_from_section): Likewise.
3523         (scan_partial_symbols): Likewise.
3524         (add_partial_symbol): Likewise.
3525         (add_partial_subprogram): Likewise.
3526         (peek_die_abbrev): Likewise.
3527         (fixup_go_packaging): Likewise.
3528         (process_full_comp_unit): Likewise.
3529         (process_full_type_unit): Likewise.
3530         (process_imported_unit_die): Likewise.
3531         (dwarf2_compute_name): Likewise.
3532         (dwarf2_physname): Likewise.
3533         (read_import_statement): Likewise.
3534         (create_cus_hash_table): Assign dwarf2_physname instead of
3535         objfile.
3536         (read_func_scope): Access objfile through dwarf2_per_objfile.
3537         (read_lexical_block_scope): Likewise.
3538         (read_call_site_scope): Likewise.
3539         (read_variable): Likewise.
3540         (dwarf2_rnglists_process): Likewise.
3541         (dwarf2_ranges_process): Likewise.
3542         (dwarf2_ranges_read): Likewise.
3543         (dwarf2_record_block_ranges): Likewise.
3544         (dwarf2_add_field): Likewise.
3545         (dwarf2_add_member_fn): Likewise.
3546         (read_structure_type): Likewise.
3547         (process_structure_scope): Likewise.
3548         (read_enumeration_type): Likewise.
3549         (read_array_type): Likewise.
3550         (read_common_block): Likewise.
3551         (read_namespace_type): Likewise.
3552         (read_namespace): Likewise.
3553         (read_module_type): Likewise.
3554         (read_tag_pointer_type): Likewise.
3555         (read_tag_ptr_to_member_type): Likewise.
3556         (read_tag_string_type): Likewise.
3557         (read_subroutine_type): Likewise.
3558         (read_typedef): Likewise.
3559         (read_base_type): Likewise.
3560         (attr_to_dynamic_prop): Likewise.
3561         (read_subrange_type): Likewise.
3562         (read_unspecified_type): Likewise.
3563         (load_partial_dies): Likewise.
3564         (read_partial_die): Likewise.
3565         (find_partial_die): Likewise.
3566         (guess_partial_die_structure_name): Likewise.
3567         (fixup_partial_die): Likewise.
3568         (read_attribute_value): Likewise.
3569         (read_addr_index_from_leb128): Likewise.
3570         (dwarf2_read_addr_index): Likewise.
3571         (dwarf2_string_attr): Likewise.
3572         (lnp_state_machine::check_line_address): Likewise.
3573         (dwarf_decode_lines_1): Likewise.
3574         (dwarf_decode_lines): Likewise.
3575         (dwarf2_start_symtab): Likewise.
3576         (var_decode_location): Likewise.
3577         (new_symbol_full): Likewise.
3578         (dwarf2_const_value_data): Likewise.
3579         (dwarf2_const_value_attr): Likewise.
3580         (dwarf2_const_value): Likewise.
3581         (die_type): Likewise.
3582         (die_containing_type): Likewise.
3583         (lookup_die_type): Likewise.
3584         (guess_full_die_structure_name): Likewise.
3585         (anonymous_struct_prefix): Likewise.
3586         (dwarf2_name): Likewise.
3587         (follow_die_ref_or_sig): Likewise.
3588         (follow_die_offset): Likewise.
3589         (follow_die_ref): Likewise.
3590         (dwarf2_fetch_die_loc_sect_off): Likewise.
3591         (dwarf2_fetch_constant_bytes): Likewise.
3592         (dwarf2_fetch_die_type_sect_off): Likewise.
3593         (dwarf2_get_die_type): Likewise.
3594         (follow_die_sig): Likewise.
3595         (decode_locdesc): Likewise.
3596         (dwarf2_per_cu_objfile): Likewise.
3597         (dwarf2_per_cu_text_offset): Likewise.
3598         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
3599         objfile.
3600         (set_die_type): Access objfile through
3601         dwarf2_per_objfile.
3602
3603 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
3604
3605         * valprint.c (converted_character_d): Remove typedef.
3606         (DEF_VEC_O (converted_character_d)): Remove.
3607         (count_next_character): Use std::vector.
3608         (print_converted_chars_to_obstack): Likewise.
3609         (generic_printstr): Likewise.
3610
3611 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
3612
3613         * xml-support.h (struct gdb_xml_value): Add constructor.
3614         <value>: Change type to unique_xmalloc_ptr.
3615         (gdb_xml_value_s): Remove typedef.
3616         (DEF_VEC_O (gdb_xml_value_s)): Remove.
3617         (gdb_xml_element_start_handler): Change parameter type to
3618         std::vector.
3619         (xml_find_attribute): Likewise.
3620         * xml-support.c (xml_find_attribute): Change parameter type to
3621         std::vector and adjust.
3622         (gdb_xml_values_cleanup): Remove.
3623         (gdb_xml_parser::start_element): Adjust to std::vector.
3624         (xinclude_start_include): Change paraeter type to std::vector
3625         and adjust.
3626         * btrace.c (check_xml_btrace_version): Likewise.
3627         (parse_xml_btrace_block): Likewise.
3628         (parse_xml_btrace_pt_config_cpu): Likewise.
3629         (parse_xml_btrace_pt): Likewise.
3630         (parse_xml_btrace_conf_bts): Likewise.
3631         (parse_xml_btrace_conf_pt): Likewise.
3632         * memory-map.c (memory_map_start_memory): Likewise.
3633         (memory_map_start_property): Likewise.
3634         * osdata.c (osdata_start_osdata): Likewise.
3635         (osdata_start_item): Likewise.
3636         (osdata_start_column): Likewise.
3637         * remote.c (start_thread): Likewise.
3638         * solib-aix.c (library_list_start_library): Likewise.
3639         (library_list_start_list): Likewise.
3640         * solib-svr4.c (library_list_start_library): Likewise.
3641         (svr4_library_list_start_list): Likewise.
3642         * solib-target.c (library_list_start_segment): Likewise.
3643         (library_list_start_section): Likewise.
3644         (library_list_start_library): Likewise.
3645         (library_list_start_list): Likewise.
3646         * tracepoint.c (traceframe_info_start_memory): Likewise.
3647         (traceframe_info_start_tvar): Likewise.
3648         * xml-syscall.c (syscall_start_syscall): Likewise.
3649         * xml-tdesc.c (tdesc_start_target): Likewise.
3650         (tdesc_start_feature): Likewise.
3651         (tdesc_start_reg): Likewise.
3652         (tdesc_start_union): Likewise.
3653         (tdesc_start_struct): Likewise.
3654         (tdesc_start_flags): Likewise.
3655         (tdesc_start_enum): Likewise.
3656         (tdesc_start_field): Likewise.
3657         (tdesc_start_enum_value): Likewise.
3658         (tdesc_start_vector): Likewise.
3659
3660 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
3661
3662         * extension.h (struct xmethod_worker) <clone>: Remove.
3663         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
3664         Remove.
3665         (python_xmethod_worker::clone): Remove.
3666         * valops.c (find_overload_match): Use std::move instead of
3667         clone.
3668
3669 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
3670
3671         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
3672         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
3673         <free_xmethod_worker_data>: Remove.
3674         <get_matching_xmethod_workers>: Chance VEC to std::vector.
3675         <get_xmethod_arg_types>: Remove.
3676         <get_xmethod_result_type>: Remove.
3677         <invoke_xmethod>: Remove.
3678         * extension.c (new_xmethod_worker): Remove.
3679         (clone_xmethod_worker): Remove.
3680         (get_matching_xmethod_workers): Return void, pass std::vector by
3681         pointer.
3682         (get_xmethod_arg_types): Rename to...
3683         (xmethod_worker::get_arg_types): ... this, and adjust.
3684         (get_xmethod_result_type): Rename to...
3685         (xmethod_worker::get_result_type): ... this, and adjust.
3686         (invoke_xmethod): Remove.
3687         (free_xmethod_worker): Remove.
3688         (free_xmethod_worker_vec): Remove.
3689         * extension.h (enum ext_lang_rc): Move here from
3690         extension-priv.h.
3691         (struct xmethod_worker): Add constructor and destructor.
3692         <data>: Remove.
3693         <value>: Remove.
3694         <invoke, clone, do_get_result_type, do_get_arg_types>: New
3695         virtual pure methods.
3696         <get_arg_types, get_result_type>: New methods.
3697         (xmethod_worker_ptr): Remove typedef.
3698         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
3699         (xmethod_worker_vec): Remove typedef.
3700         (xmethod_worker_up): New typedef.
3701         (invoke_xmethod): Remove.
3702         (clone_xmethod_worker): Remove.
3703         (free_xmethod_worker): Remove.
3704         (free_xmethod_worker_vec): Remove.
3705         (get_xmethod_arg_types): Remove.
3706         (get_xmethod_result_type): Remove.
3707         * valops.c (find_method_list): Use std::vector, don't use
3708         intermediate vector.
3709         (value_find_oload_method_list): Use std::vector.
3710         (find_overload_match): Use std::vector.
3711         (find_oload_champ): Use std::vector.
3712         * value.c (value_free): Use operator delete.
3713         (value_of_xmethod): Rename to...
3714         (value_from_xmethod): ... this.  Don't assign
3715         xmethod_worker::value, take rvalue-reference.
3716         (result_type_of_xmethod): Adjust.
3717         (call_xmethod): Adjust.
3718         * value.h: Include extension.h.
3719         (struct xmethod_worker): Don't forward-declare.
3720         (value_of_xmethod): Rename to...
3721         (value_from_xmethod): ... this, take rvalue-reference.
3722         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
3723         (struct python_xmethod_worker): ... this, add constructor and
3724         destructor.
3725         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
3726         (gdbpy_free_xmethod_worker_data): Rename to...
3727         (python_xmethod_worker::~python_xmethod_worker): ... this and
3728         adjust.
3729         (gdbpy_clone_xmethod_worker_data): Rename to...
3730         (python_xmethod_worker::clone): ... this and adjust.
3731         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3732         temporary vector.
3733         (gdbpy_get_xmethod_arg_types): Rename to...
3734         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3735         (gdbpy_get_xmethod_result_type): Rename to...
3736         (python_xmethod_worker::do_get_result_type): ... this and
3737         adjust.
3738         (gdbpy_invoke_xmethod): Rename to...
3739         (python_xmethod_worker::invoke): ... this and adjust.
3740         (new_python_xmethod_worker): Rename to...
3741         (python_xmethod_worker::python_xmethod_worker): ... this and
3742         adjust.
3743         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3744         Remove.
3745         (gdbpy_free_xmethod_worker_data): Remove.
3746         (gdbpy_get_matching_xmethod_workers): Use std::vector.
3747         (gdbpy_get_xmethod_arg_types): Remove.
3748         (gdbpy_get_xmethod_result_type): Remove.
3749         (gdbpy_invoke_xmethod): Remove.
3750         * python/python.c (python_extension_ops): Remove obsolete
3751         callbacks.
3752
3753 2018-01-05  Pedro Alves  <palves@redhat.com>
3754
3755         PR gdb/18653
3756         * common/signals-state-save-restore.c
3757         (save_original_signals_state): New parameter 'quiet'.  Warn if we
3758         find a custom handler preinstalled, instead of internal erroring.
3759         But only warn if !quiet.
3760         * common/signals-state-save-restore.h
3761         (save_original_signals_state): New parameter 'quiet'.
3762         * main.c (captured_main_1): Move save_original_signals_state call
3763         after option handling, and pass QUIET.
3764
3765 2018-01-05  Pedro Alves  <palves@redhat.com>
3766
3767         * spu-tdep.c (spu_catch_start): Pass
3768         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3769
3770 2018-01-05  Pedro Alves  <palves@redhat.com>
3771
3772         PR gdb/22670
3773         * ada-lang.c (literal_symbol_name_matcher): New function.
3774         (ada_get_symbol_name_matcher): Use it for
3775         symbol_name_match_type::SEARCH_NAME.
3776         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
3777         it down instead of assuming symbol_name_match_type::FULL.
3778         * block.h (block_lookup_symbol): New parameter 'match_type'.
3779         * c-valprint.c (print_unpacked_pointer): Use
3780         lookup_symbol_search_name instead of lookup_symbol.
3781         * compile/compile-object-load.c (get_out_value_type): Pass down
3782         symbol_name_match_type::SEARCH_NAME.
3783         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3784         symbol_name_match_type::FULL.
3785         * cp-support.c (cp_get_symbol_name_matcher): Handle
3786         symbol_name_match_type::SEARCH_NAME.
3787         * infrun.c (insert_exception_resume_breakpoint): Use
3788         lookup_symbol_search_name.
3789         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3790         * psymtab.c (maintenance_check_psymtabs): Use
3791         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3792         * stack.c (print_frame_args): Use lookup_symbol_search_name and
3793         SYMBOL_SEARCH_NAME.
3794         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3795         if symbol_name_match_type::SEARCH_NAME.
3796         (lookup_symbol_in_language): Pass down
3797         symbol_name_match_type::FULL.
3798         (lookup_symbol_search_name): New.
3799         (lookup_language_this): Pass down
3800         symbol_name_match_type::SEARCH_NAME.
3801         (lookup_symbol_aux, lookup_local_symbol): New parameter
3802         'match_type'.  Pass it down.
3803         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3804         (lookup_symbol_search_name): New declaration.
3805         (lookup_symbol_in_block): New 'match_type' parameter.
3806
3807 2018-01-05  Pedro Alves  <palves@redhat.com>
3808
3809         PR gdb/22670
3810         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3811         ada_lookup_symbol.
3812         (ada_lookup_symbol): Reimplement in terms of
3813         ada_lookup_symbol_list, bits factored out from
3814         ada_lookup_encoded_symbol.
3815
3816 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
3817
3818         * ada-exp.y (write_object_renaming): When subscripting an array
3819         using a symbol as the index, pass the block in call to
3820         ada_lookup_encoded_symbol when looking that symbol up.
3821
3822 2018-01-05  Jerome Guitton  <guitton@adacore.com>
3823
3824         * ada-lang.c (ada_array_length): Use ada_index_type instead of
3825         TYPE_INDEX_TYPE.
3826
3827 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
3828
3829         * ada-lang.c (ada_to_fixed_value_create): Add handling of
3830         the case where VALUE_LVAL (val0) is not lval_memory.
3831
3832 2018-01-05  Xavier Roirand  <roirand@adacore.com>
3833
3834         * ada-valprint.c (print_optional_low_bound): Handle
3835         character-indexed array printing like boolean-indexed array
3836         printing.
3837
3838 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
3839
3840         * NEWS: Create a new section for the next release branch.
3841         Rename the section of the current branch, now that it has
3842         been cut.
3843
3844 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
3845
3846         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3847         * version.in: Bump version to 8.1.50.DATE-git.
3848
3849 2018-01-03  Xavier Roirand  <roirand@adacore.com>
3850
3851         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3852         Add field.
3853         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3854         Add field.
3855         (default_exception_support_info) <catch_handlers_sym>: Add field.
3856         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3857         (ada_exception_name_addr_1): Add "catch handlers" handling.
3858         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3859         Update all callers.
3860         (create_excep_cond_exprs) <ex>: Add parameter.
3861         (re_set_exception): Update create_excep_cond_exprs call.
3862         (print_it_exception, print_one_exception, print_mention_exception)
3863         (print_recreate_exception): Add "catch handler" handling.
3864         (allocate_location_catch_handlers, re_set_catch_handlers)
3865         (check_status_catch_handlers, print_it_catch_handlers)
3866         (print_one_catch_handlers, print_mention_catch_handlers)
3867         (print_recreate_catch_handlers): New function.
3868         (catch_handlers_breakpoint_ops): New variable.
3869         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3870         Add parameter.  Add "catch handler" handling.
3871         (ada_exception_sym_name, ada_exception_breakpoint_ops):
3872         Add "catch handler" handling.
3873         (ada_exception_catchpoint_cond_string): Add "catch handler"
3874         handling.
3875         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3876         call.
3877         (catch_ada_handlers_command): New function.
3878         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3879         operations structure.
3880         (_initialize_ada_language): Add "catch handlers" command entry.
3881         * NEWS: Document "catch handlers" feature.
3882
3883 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
3884
3885         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3886         account when creating the array type of the slice.
3887         (ada_value_slice): Likewise.
3888
3889 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
3890
3891         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3892         New enum value.
3893         (create_array_type_with_stride): Add byte_stride_prop parameter.
3894         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3895         New parameter.  Update all callers in this file.
3896         (array_type_has_dynamic_stride): New function.
3897         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3898         of arrays with dynamic byte strides.
3899         * dwarf2read.c (read_array_type): Add support for dynamic
3900         DW_AT_byte_stride attributes.
3901
3902 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
3903
3904         * dwarf2read.c (read_unspecified_type): Treat
3905         DW_TAG_enumeration_type DIEs from Ada units as stubs.
3906
3907 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
3908
3909         Update copyright year range in all GDB files.
3910
3911 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
3912
3913         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3914         and gdb/testsuite/gdb.base/step-line.c.
3915
3916 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
3917
3918         * copyright.py (main): Dump the contents of
3919         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3920         even if BY_HAND is empty.
3921
3922 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
3923
3924         * top.c (print_gdb_version): Update Copyright year in version
3925         message.
3926
3927 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
3928
3929         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3930
3931 For older changes see ChangeLog-2017.
3932 \f
3933 Local Variables:
3934 mode: change-log
3935 left-margin: 8
3936 fill-column: 74
3937 version-control: never
3938 coding: utf-8
3939 End: