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