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