d81b4856ffe2781816da94b5a82cfe8ed0e7f842
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-01-10 Pedro Alves <palves@redhat.com>
2
3 PR gdb/22670
4 * dwarf2read.c
5 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
6 Adjust to use language_get_symbol_name_matcher instead of
7 language_defn::la_get_symbol_name_matcher.
8 * language.c (language_get_symbol_name_matcher): If in Ada mode
9 and the lookup name is a verbatim match, return Ada's matcher.
10 * language.h (language_get_symbol_name_matcher): Adjust comment.
11 (ada_lookup_name_info::verbatim_p):: New method.
12
13 2018-01-10 Pedro Alves <palves@redhat.com>
14
15 PR gdb/22670
16 * ada-lang.c (ada_collect_symbol_completion_matches): If the
17 minsym's language is language_auto or language_cplus, pass down
18 language_ada instead.
19 * symtab.c (compare_symbol_name): Don't frob symbol language here.
20
21 2018-01-10 Pedro Alves <palves@redhat.com>
22
23 PR gdb/22670
24 * minsyms.c (linkage_name_str): New function.
25 (iterate_over_minimal_symbols): Use it.
26
27 2018-01-09 John Baldwin <jhb@FreeBSD.org>
28
29 * NEWS: Document that 'info proc' now works on FreeBSD.
30
31 2018-01-09 John Baldwin <jhb@FreeBSD.org>
32
33 * configure.ac: Check for kinfo_getfile in libutil.
34 * configure: Regenerate.
35 * config.in: Regenerate.
36 * fbsd-nat.c: Include "fbsd-tdep.h".
37 (fbsd_fetch_cmdline): New.
38 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
39 rather than calling error.
40 (fbsd_info_proc): New.
41 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
42 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
43 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
44
45 2018-01-09 John Baldwin <jhb@FreeBSD.org>
46
47 * fbsd-nat.c (struct free_deleter): Remove.
48 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
49
50 2018-01-09 John Baldwin <jhb@FreeBSD.org>
51
52 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
53 NULL for an empty pathname.
54
55 2018-01-09 John Baldwin <jhb@FreeBSD.org>
56
57 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
58 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
59 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
60 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
61 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
62 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
63 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
64 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
65 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
66 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
67 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
68 (fbsd_core_fetch_timeval, fbsd_print_sigset)
69 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
70 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
71 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
72
73 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
74
75 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
76 (gnu_xfer_auxv): New function.
77 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
78 TARGET_OBJECT_AUXV.
79
80 2018-01-08 Yao Qi <yao.qi@linaro.org>
81 Simon Marchi <simon.marchi@ericsson.com>
82
83 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
84 common/selftest.c.
85 (COMMON_OBS): Remove selftest.o.
86 * configure.ac: Append selftest-arch.c and common/selftest.c to
87 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
88 * configure: Re-generated.
89 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
90 GDB_SELF_TEST.
91 (maintenance_info_selftests): Likewise.
92
93 2018-01-08 Xavier Roirand <roirand@adacore.com>
94
95 * ada-valprint.c (val_print_packed_array_elements): Use
96 proper number of elements when printing an array indexed
97 by an enumeration type.
98
99 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
100
101 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
102 (dw2_get_file_names_reader): Adjust.
103 (lookup_dwo_signatured_type): Adjust.
104 (lookup_dwp_signatured_type): Adjust.
105 (lookup_signatured_type): Adjust.
106 (create_type_unit_group): Adjust.
107 (get_type_unit_group): Adjust.
108 (process_psymtab_comp_unit_reader): Adjust.
109 (build_type_psymtabs_reader): Adjust.
110 (scan_partial_symbols): Adjust.
111 (add_partial_symbol): Adjust.
112 (add_partial_subprogram): Adjust.
113 (peek_die_abbrev): Adjust.
114 (fixup_go_packaging): Adjust.
115 (process_imported_unit_die): Adjust.
116 (dwarf2_compute_name): Adjust.
117 (dwarf2_physname): Adjust.
118 (read_import_statement): Adjust.
119 (handle_DW_AT_stmt_list): Adjust.
120 (read_file_scope): Adjust.
121 (read_func_scope): Adjust.
122 (read_lexical_block_scope): Adjust.
123 (read_call_site_scope): Adjust.
124 (read_variable): Adjust.
125 (dwarf2_rnglists_process): Adjust.
126 (dwarf2_ranges_process): Adjust.
127 (dwarf2_ranges_read): Adjust.
128 (dwarf2_get_pc_bounds): Adjust.
129 (dwarf2_record_block_ranges): Adjust.
130 (dwarf2_add_field): Adjust.
131 (dwarf2_add_member_fn): Adjust.
132 (read_structure_type): Adjust.
133 (process_structure_scope): Adjust.
134 (read_enumeration_type): Adjust.
135 (read_array_type): Adjust.
136 (mark_common_block_symbol_computed): Adjust.
137 (read_common_block): Adjust.
138 (read_namespace_type): Adjust.
139 (read_namespace): Adjust.
140 (read_module_type): Adjust.
141 (read_tag_pointer_type): Adjust.
142 (read_tag_ptr_to_member_type): Adjust.
143 (read_tag_string_type): Adjust.
144 (read_subroutine_type): Adjust.
145 (read_typedef): Adjust.
146 (read_base_type): Adjust.
147 (attr_to_dynamic_prop): Adjust.
148 (read_subrange_type): Adjust.
149 (read_unspecified_type): Adjust.
150 (dwarf2_read_abbrevs): Adjust.
151 (load_partial_dies): Adjust.
152 (read_partial_die): Adjust.
153 (find_partial_die): Adjust.
154 (guess_partial_die_structure_name): Adjust.
155 (fixup_partial_die): Adjust.
156 (read_attribute_value): Adjust.
157 (read_addr_index): Adjust.
158 (read_addr_index_from_leb128): Adjust.
159 (read_str_index): Adjust.
160 (dwarf2_string_attr): Adjust.
161 (get_debug_line_section): Adjust.
162 (dwarf_decode_line_header): Adjust.
163 (lnp_state_machine::check_line_address): Adjust.
164 (dwarf_decode_lines_1): Adjust.
165 (dwarf_decode_lines): Adjust.
166 (dwarf2_start_symtab): Adjust.
167 (var_decode_location): Adjust.
168 (new_symbol_full): Adjust.
169 (dwarf2_const_value_data): Adjust.
170 (dwarf2_const_value_attr): Adjust.
171 (dwarf2_const_value): Adjust.
172 (die_type): Adjust.
173 (die_containing_type): Adjust.
174 (build_error_marker_type): Adjust.
175 (lookup_die_type): Adjust.
176 (guess_full_die_structure_name): Adjust.
177 (anonymous_struct_prefix): Adjust.
178 (determine_prefix): Adjust.
179 (dwarf2_name): Adjust.
180 (follow_die_ref_or_sig): Adjust.
181 (follow_die_offset): Adjust.
182 (follow_die_ref): Adjust.
183 (follow_die_sig_1): Adjust.
184 (follow_die_sig): Adjust.
185 (get_signatured_type): Adjust.
186 (get_DW_AT_signature_type): Adjust.
187 (decode_locdesc): Adjust.
188 (dwarf_decode_macros): Adjust.
189 (cu_debug_loc_section): Adjust.
190 (fill_in_loclist_baton): Adjust.
191 (dwarf2_symbol_mark_computed): Adjust.
192 (init_one_comp_unit): Don't assign
193 dwarf2_cu::dwarf2_per_objfile.
194 (set_die_type): Adjust.
195
196 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
197
198 * dwarf2read.c (struct mapped_debug_names): Add constructor.
199 <dwarf2_per_objfile>: New field.
200 (dwarf2_per_objfile): Remove global.
201 (get_dwarf2_per_objfile): New function.
202 (set_dwarf2_per_objfile): New function.
203 (dwarf2_build_psymtabs_hard): Change objfile parameter to
204 dwarf2_per_objfile.
205 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
206 (read_abbrev_offset): Likewise.
207 (read_indirect_string): Likewise.
208 (read_indirect_line_string): Likewise.
209 (read_indirect_string_at_offset): Likewise.
210 (read_indirect_string_from_dwz): Likewise.
211 (dwarf2_find_containing_comp_unit): Change objfile parameter to
212 dwarf2_per_objfile.
213 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
214 (create_all_comp_units): Change objfile parameter to
215 dwarf2_per_objfile.
216 (create_all_type_units): Likewise.
217 (process_queue): Add dwarf2_per_objfile parameter.
218 (read_and_check_comp_unit_head): Likewise.
219 (lookup_dwo_unit_in_dwp): Likewise.
220 (get_dwp_file): Likewise.
221 (process_cu_includes): Likewise.
222 (struct free_dwo_file_cleanup_data): New struct.
223 (dwarf2_has_info): Use get_dwarf2_per_objfile and
224 set_dwarf2_per_objfile.
225 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
226 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
227 context, adjust calls.
228 (dw2_instantiate_symtab): Likewise.
229 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
230 (dw2_get_cu): Likewise.
231 (create_cu_from_index_list): Change objfile parameter to
232 dwarf2_per_objfile.
233 (create_cus_from_index_list): Get dwarf2_per_objfile from
234 context, adjust calls.
235 (create_cus_from_index): Likewise.
236 (create_signatured_type_table_from_index): Change objfile
237 parameter to dwarf2_per_objfile.
238 (create_signatured_type_table_from_debug_names): Change objfile
239 parameter to dwarf2_per_objfile.
240 (create_addrmap_from_index): Likewise.
241 (create_addrmap_from_aranges): Likewise.
242 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
243 (dw2_setup): Remove.
244 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
245 context.
246 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
247 get_dwarf2_per_objfile.
248 (dw2_forget_cached_source_info): Likewise.
249 (dw2_map_symtabs_matching_filename): Likewise.
250 (struct dw2_symtab_iterator) <index>: Remove.
251 <dwarf2_per_objfile>: New field.
252 (dw2_symtab_iter_init): Replace index parameter with
253 dwarf2_per_objfile.
254 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
255 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
256 (dw2_print_stats): Likewise.
257 (dw2_dump): Likewise.
258 (dw2_expand_symtabs_for_function): Likewise.
259 (dw2_expand_all_symtabs): Likewise.
260 (dw2_expand_symtabs_with_fullname): Likewise.
261 (dw2_expand_marked_cus): Replace index and objfile parameters
262 with dwarf2_per_objfile.
263 (dw_expand_symtabs_matching_file_matcher): Add
264 dwarf2_per_objfile parameter and adjust calls.
265 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
266 adjust calls.
267 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
268 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
269 adjust calls.
270 (create_cus_from_debug_names_list): Replace objfile parameter
271 with dwarf2_per_objfile and adjust calls.
272 (create_cus_from_debug_names): Likewise.
273 (dwarf2_read_debug_names): Likewise.
274 (mapped_debug_names::namei_to_name): Adjust call.
275 (dw2_debug_names_iterator::next): Likewise.
276 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
277 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
278 (dw2_debug_names_dump): Likewise.
279 (dw2_debug_names_expand_symtabs_for_function): Likewise.
280 (dw2_debug_names_expand_symtabs_matching): Likewise.
281 (dwarf2_initialize_objfile): Likewise.
282 (dwarf2_build_psymtabs): Likewise.
283 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
284 this_cu.
285 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
286 (read_and_check_comp_unit_head): Likewise.
287 (read_abbrev_offset): Likewise.
288 (create_debug_type_hash_table): Likewise.
289 (create_debug_types_hash_table): Likewise.
290 (create_all_type_units): Replace objfile parameter with
291 dwarf2_per_objfile.
292 (add_type_unit): Add dwarf2_per_objfile parameter.
293 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
294 with dwarf2_per_objfile.
295 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
296 (lookup_dwp_signatured_type): Likewise.
297 (lookup_signatured_type): Likewise.
298 (read_cutu_die_from_dwo): Likewise.
299 (init_tu_and_read_dwo_dies): Likewise.
300 (init_cutu_and_read_dies): Likewise.
301 (init_cutu_and_read_dies_no_follow): Likewise.
302 (allocate_type_unit_groups_table): Add objfile parameter.
303 (create_type_unit_group): Use dwarf2_per_objfile from cu.
304 (get_type_unit_group): Likewise.
305 (process_psymtab_comp_unit): Update call.
306 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
307 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
308 (print_tu_stats): Likewise.
309 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
310 in void* parameter.
311 (build_type_psymtabs): Change objfile parameter to
312 dwarf2_per_objfile.
313 (process_skeletonless_type_unit): Use dwarf2_per_objfile
314 passed in void* parameter.
315 (process_skeletonless_type_units): Change objfile parameter to
316 dwarf2_per_objfile.
317 (set_partial_user): Likewise.
318 (dwarf2_build_psymtabs_hard): Likewise.
319 (read_comp_units_from_section): Likewise.
320 (create_all_comp_units): Likewise.
321 (scan_partial_symbols): Update calls.
322 (add_partial_symbol): Likewise.
323 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
324 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
325 (process_queue): Add dwarf2_per_objfile parameter.
326 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
327 (compute_compunit_symtab_includes): Likewise.
328 (process_cu_includes): Add dwarf2_per_objfile parameter.
329 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
330 (process_full_type_unit): Likewise.
331 (process_imported_unit_die): Update call.
332 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
333 (read_file_scope): Likewise.
334 (allocate_dwo_file_hash_table): Add objfile parameter.
335 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
336 (create_cus_hash_table): Likewise.
337 (create_dwp_hash_table): Likewise.
338 (create_dwo_unit_in_dwp_v1): Likewise.
339 (create_dwp_v2_section): Likewise.
340 (create_dwo_unit_in_dwp_v2): Likewise.
341 (lookup_dwo_unit_in_dwp): Likewise.
342 (try_open_dwop_file): Likewise.
343 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
344 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
345 cleanup to include a reference to dwarf2_per_objfile.
346 (open_dwp_file): Add dwarf2_per_objfile parameter.
347 (open_and_init_dwp_file): Likewise.
348 (get_dwp_file): Likewise.
349 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
350 (queue_and_load_all_dwo_tus): Update call.
351 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
352 data.
353 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
354 (dwarf2_ranges_process): Likewise.
355 (dwarf2_get_pc_bounds): Likewise.
356 (mark_common_block_symbol_computed): Likewise.
357 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
358 (dwarf2_read_abbrevs): Update call.
359 (read_partial_die): Use dwarf2_per_objfile from cu.
360 (find_partial_die): Likewise.
361 (fixup_partial_die): Likewise.
362 (read_attribute_value): Likewise.
363 (read_indirect_string_at_offset_from): Add objfile parameter.
364 (read_indirect_string_at_offset): Add dwarf2_per_objfile
365 parameter.
366 (read_indirect_string_from_dwz): Add objfile parameter.
367 (read_indirect_string): Add objfile parameter.
368 (read_addr_index_1): Add dwarf2_per_objfile parameter.
369 (read_addr_index): Use dwarf2_per_objfile from cu.
370 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
371 call dw2_setup.
372 (read_str_index): Use dwarf2_per_objfile from cu.
373 (get_debug_line_section): Likewise.
374 (read_formatted_entries): Add dwarf2_per_objfile parameter.
375 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
376 (new_symbol_full): Use dwarf2_per_objfile from cu.
377 (build_error_marker_type): Likewise.
378 (lookup_die_type): Likewise.
379 (determine_prefix): Likewise.
380 (follow_die_offset): Likewise.
381 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
382 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
383 (dwarf2_fetch_die_type_sect_off): Likewise.
384 (dwarf2_get_die_type): Likewise.
385 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
386 (get_signatured_type): Likewise.
387 (get_DW_AT_signature_type): Likewise.
388 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
389 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
390 (cu_debug_loc_section): Likewise.
391 (fill_in_loclist_baton): Likewise.
392 (dwarf2_symbol_mark_computed): Likewise.
393 (dwarf2_find_containing_comp_unit): Change objfile parameter to
394 dwarf2_per_objfile.
395 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
396 parameter.
397 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
398 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
399 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
400 (set_die_type): Use dwarf2_free_objfile from cu.
401 (get_die_type_at_offset): Likewise.
402 (dwarf2_per_objfile_free): Don't assign global variable.
403 (debug_names) <constructor>: Add dwarf2_per_objfile
404 parameter, update m_debugstrlookup construction.
405 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
406 parameter.
407 <m_dwarf2_per_objfile>: New field.
408 <lookup>: Use m_dwarf2_per_objfile.
409 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
410 (psyms_seen_size): Likewise.
411 (write_gdbindex): Replace objfile parameter with
412 dwarf2_per_objfile.
413 (write_debug_names): Likewise.
414 (write_psymtabs_to_index): Likewise.
415 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
416 calls.
417
418 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
419
420 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
421 <dwarf2_per_objfile>: New field.
422 (struct dwarf2_per_cu_data) <objfile>: Remove.
423 <dwarf2_per_objfile>: New field.
424 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
425 of objfile.
426 (create_signatured_type_table_from_index): Likewise.
427 (create_debug_type_hash_table): Likewise.
428 (fill_in_sig_entry_from_dwo_entry): Likewise.
429 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
430 (create_type_unit_group): Assign dwarf2_per_objfile instead of
431 objfile.
432 (create_partial_symtab): Access objfile through
433 dwarf2_per_objfile.
434 (process_psymtab_comp_unit_reader): Likewise.
435 (read_comp_units_from_section): Likewise.
436 (scan_partial_symbols): Likewise.
437 (add_partial_symbol): Likewise.
438 (add_partial_subprogram): Likewise.
439 (peek_die_abbrev): Likewise.
440 (fixup_go_packaging): Likewise.
441 (process_full_comp_unit): Likewise.
442 (process_full_type_unit): Likewise.
443 (process_imported_unit_die): Likewise.
444 (dwarf2_compute_name): Likewise.
445 (dwarf2_physname): Likewise.
446 (read_import_statement): Likewise.
447 (create_cus_hash_table): Assign dwarf2_physname instead of
448 objfile.
449 (read_func_scope): Access objfile through dwarf2_per_objfile.
450 (read_lexical_block_scope): Likewise.
451 (read_call_site_scope): Likewise.
452 (read_variable): Likewise.
453 (dwarf2_rnglists_process): Likewise.
454 (dwarf2_ranges_process): Likewise.
455 (dwarf2_ranges_read): Likewise.
456 (dwarf2_record_block_ranges): Likewise.
457 (dwarf2_add_field): Likewise.
458 (dwarf2_add_member_fn): Likewise.
459 (read_structure_type): Likewise.
460 (process_structure_scope): Likewise.
461 (read_enumeration_type): Likewise.
462 (read_array_type): Likewise.
463 (read_common_block): Likewise.
464 (read_namespace_type): Likewise.
465 (read_namespace): Likewise.
466 (read_module_type): Likewise.
467 (read_tag_pointer_type): Likewise.
468 (read_tag_ptr_to_member_type): Likewise.
469 (read_tag_string_type): Likewise.
470 (read_subroutine_type): Likewise.
471 (read_typedef): Likewise.
472 (read_base_type): Likewise.
473 (attr_to_dynamic_prop): Likewise.
474 (read_subrange_type): Likewise.
475 (read_unspecified_type): Likewise.
476 (load_partial_dies): Likewise.
477 (read_partial_die): Likewise.
478 (find_partial_die): Likewise.
479 (guess_partial_die_structure_name): Likewise.
480 (fixup_partial_die): Likewise.
481 (read_attribute_value): Likewise.
482 (read_addr_index_from_leb128): Likewise.
483 (dwarf2_read_addr_index): Likewise.
484 (dwarf2_string_attr): Likewise.
485 (lnp_state_machine::check_line_address): Likewise.
486 (dwarf_decode_lines_1): Likewise.
487 (dwarf_decode_lines): Likewise.
488 (dwarf2_start_symtab): Likewise.
489 (var_decode_location): Likewise.
490 (new_symbol_full): Likewise.
491 (dwarf2_const_value_data): Likewise.
492 (dwarf2_const_value_attr): Likewise.
493 (dwarf2_const_value): Likewise.
494 (die_type): Likewise.
495 (die_containing_type): Likewise.
496 (lookup_die_type): Likewise.
497 (guess_full_die_structure_name): Likewise.
498 (anonymous_struct_prefix): Likewise.
499 (dwarf2_name): Likewise.
500 (follow_die_ref_or_sig): Likewise.
501 (follow_die_offset): Likewise.
502 (follow_die_ref): Likewise.
503 (dwarf2_fetch_die_loc_sect_off): Likewise.
504 (dwarf2_fetch_constant_bytes): Likewise.
505 (dwarf2_fetch_die_type_sect_off): Likewise.
506 (dwarf2_get_die_type): Likewise.
507 (follow_die_sig): Likewise.
508 (decode_locdesc): Likewise.
509 (dwarf2_per_cu_objfile): Likewise.
510 (dwarf2_per_cu_text_offset): Likewise.
511 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
512 objfile.
513 (set_die_type): Access objfile through
514 dwarf2_per_objfile.
515
516 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
517
518 * valprint.c (converted_character_d): Remove typedef.
519 (DEF_VEC_O (converted_character_d)): Remove.
520 (count_next_character): Use std::vector.
521 (print_converted_chars_to_obstack): Likewise.
522 (generic_printstr): Likewise.
523
524 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
525
526 * xml-support.h (struct gdb_xml_value): Add constructor.
527 <value>: Change type to unique_xmalloc_ptr.
528 (gdb_xml_value_s): Remove typedef.
529 (DEF_VEC_O (gdb_xml_value_s)): Remove.
530 (gdb_xml_element_start_handler): Change parameter type to
531 std::vector.
532 (xml_find_attribute): Likewise.
533 * xml-support.c (xml_find_attribute): Change parameter type to
534 std::vector and adjust.
535 (gdb_xml_values_cleanup): Remove.
536 (gdb_xml_parser::start_element): Adjust to std::vector.
537 (xinclude_start_include): Change paraeter type to std::vector
538 and adjust.
539 * btrace.c (check_xml_btrace_version): Likewise.
540 (parse_xml_btrace_block): Likewise.
541 (parse_xml_btrace_pt_config_cpu): Likewise.
542 (parse_xml_btrace_pt): Likewise.
543 (parse_xml_btrace_conf_bts): Likewise.
544 (parse_xml_btrace_conf_pt): Likewise.
545 * memory-map.c (memory_map_start_memory): Likewise.
546 (memory_map_start_property): Likewise.
547 * osdata.c (osdata_start_osdata): Likewise.
548 (osdata_start_item): Likewise.
549 (osdata_start_column): Likewise.
550 * remote.c (start_thread): Likewise.
551 * solib-aix.c (library_list_start_library): Likewise.
552 (library_list_start_list): Likewise.
553 * solib-svr4.c (library_list_start_library): Likewise.
554 (svr4_library_list_start_list): Likewise.
555 * solib-target.c (library_list_start_segment): Likewise.
556 (library_list_start_section): Likewise.
557 (library_list_start_library): Likewise.
558 (library_list_start_list): Likewise.
559 * tracepoint.c (traceframe_info_start_memory): Likewise.
560 (traceframe_info_start_tvar): Likewise.
561 * xml-syscall.c (syscall_start_syscall): Likewise.
562 * xml-tdesc.c (tdesc_start_target): Likewise.
563 (tdesc_start_feature): Likewise.
564 (tdesc_start_reg): Likewise.
565 (tdesc_start_union): Likewise.
566 (tdesc_start_struct): Likewise.
567 (tdesc_start_flags): Likewise.
568 (tdesc_start_enum): Likewise.
569 (tdesc_start_field): Likewise.
570 (tdesc_start_enum_value): Likewise.
571 (tdesc_start_vector): Likewise.
572
573 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * extension.h (struct xmethod_worker) <clone>: Remove.
576 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
577 Remove.
578 (python_xmethod_worker::clone): Remove.
579 * valops.c (find_overload_match): Use std::move instead of
580 clone.
581
582 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
583
584 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
585 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
586 <free_xmethod_worker_data>: Remove.
587 <get_matching_xmethod_workers>: Chance VEC to std::vector.
588 <get_xmethod_arg_types>: Remove.
589 <get_xmethod_result_type>: Remove.
590 <invoke_xmethod>: Remove.
591 * extension.c (new_xmethod_worker): Remove.
592 (clone_xmethod_worker): Remove.
593 (get_matching_xmethod_workers): Return void, pass std::vector by
594 pointer.
595 (get_xmethod_arg_types): Rename to...
596 (xmethod_worker::get_arg_types): ... this, and adjust.
597 (get_xmethod_result_type): Rename to...
598 (xmethod_worker::get_result_type): ... this, and adjust.
599 (invoke_xmethod): Remove.
600 (free_xmethod_worker): Remove.
601 (free_xmethod_worker_vec): Remove.
602 * extension.h (enum ext_lang_rc): Move here from
603 extension-priv.h.
604 (struct xmethod_worker): Add constructor and destructor.
605 <data>: Remove.
606 <value>: Remove.
607 <invoke, clone, do_get_result_type, do_get_arg_types>: New
608 virtual pure methods.
609 <get_arg_types, get_result_type>: New methods.
610 (xmethod_worker_ptr): Remove typedef.
611 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
612 (xmethod_worker_vec): Remove typedef.
613 (xmethod_worker_up): New typedef.
614 (invoke_xmethod): Remove.
615 (clone_xmethod_worker): Remove.
616 (free_xmethod_worker): Remove.
617 (free_xmethod_worker_vec): Remove.
618 (get_xmethod_arg_types): Remove.
619 (get_xmethod_result_type): Remove.
620 * valops.c (find_method_list): Use std::vector, don't use
621 intermediate vector.
622 (value_find_oload_method_list): Use std::vector.
623 (find_overload_match): Use std::vector.
624 (find_oload_champ): Use std::vector.
625 * value.c (value_free): Use operator delete.
626 (value_of_xmethod): Rename to...
627 (value_from_xmethod): ... this. Don't assign
628 xmethod_worker::value, take rvalue-reference.
629 (result_type_of_xmethod): Adjust.
630 (call_xmethod): Adjust.
631 * value.h: Include extension.h.
632 (struct xmethod_worker): Don't forward-declare.
633 (value_of_xmethod): Rename to...
634 (value_from_xmethod): ... this, take rvalue-reference.
635 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
636 (struct python_xmethod_worker): ... this, add constructor and
637 destructor.
638 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
639 (gdbpy_free_xmethod_worker_data): Rename to...
640 (python_xmethod_worker::~python_xmethod_worker): ... this and
641 adjust.
642 (gdbpy_clone_xmethod_worker_data): Rename to...
643 (python_xmethod_worker::clone): ... this and adjust.
644 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
645 temporary vector.
646 (gdbpy_get_xmethod_arg_types): Rename to...
647 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
648 (gdbpy_get_xmethod_result_type): Rename to...
649 (python_xmethod_worker::do_get_result_type): ... this and
650 adjust.
651 (gdbpy_invoke_xmethod): Rename to...
652 (python_xmethod_worker::invoke): ... this and adjust.
653 (new_python_xmethod_worker): Rename to...
654 (python_xmethod_worker::python_xmethod_worker): ... this and
655 adjust.
656 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
657 Remove.
658 (gdbpy_free_xmethod_worker_data): Remove.
659 (gdbpy_get_matching_xmethod_workers): Use std::vector.
660 (gdbpy_get_xmethod_arg_types): Remove.
661 (gdbpy_get_xmethod_result_type): Remove.
662 (gdbpy_invoke_xmethod): Remove.
663 * python/python.c (python_extension_ops): Remove obsolete
664 callbacks.
665
666 2018-01-05 Pedro Alves <palves@redhat.com>
667
668 PR gdb/18653
669 * common/signals-state-save-restore.c
670 (save_original_signals_state): New parameter 'quiet'. Warn if we
671 find a custom handler preinstalled, instead of internal erroring.
672 But only warn if !quiet.
673 * common/signals-state-save-restore.h
674 (save_original_signals_state): New parameter 'quiet'.
675 * main.c (captured_main_1): Move save_original_signals_state call
676 after option handling, and pass QUIET.
677
678 2018-01-05 Pedro Alves <palves@redhat.com>
679
680 * spu-tdep.c (spu_catch_start): Pass
681 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
682
683 2018-01-05 Pedro Alves <palves@redhat.com>
684
685 PR gdb/22670
686 * ada-lang.c (literal_symbol_name_matcher): New function.
687 (ada_get_symbol_name_matcher): Use it for
688 symbol_name_match_type::SEARCH_NAME.
689 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
690 it down instead of assuming symbol_name_match_type::FULL.
691 * block.h (block_lookup_symbol): New parameter 'match_type'.
692 * c-valprint.c (print_unpacked_pointer): Use
693 lookup_symbol_search_name instead of lookup_symbol.
694 * compile/compile-object-load.c (get_out_value_type): Pass down
695 symbol_name_match_type::SEARCH_NAME.
696 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
697 symbol_name_match_type::FULL.
698 * cp-support.c (cp_get_symbol_name_matcher): Handle
699 symbol_name_match_type::SEARCH_NAME.
700 * infrun.c (insert_exception_resume_breakpoint): Use
701 lookup_symbol_search_name.
702 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
703 * psymtab.c (maintenance_check_psymtabs): Use
704 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
705 * stack.c (print_frame_args): Use lookup_symbol_search_name and
706 SYMBOL_SEARCH_NAME.
707 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
708 if symbol_name_match_type::SEARCH_NAME.
709 (lookup_symbol_in_language): Pass down
710 symbol_name_match_type::FULL.
711 (lookup_symbol_search_name): New.
712 (lookup_language_this): Pass down
713 symbol_name_match_type::SEARCH_NAME.
714 (lookup_symbol_aux, lookup_local_symbol): New parameter
715 'match_type'. Pass it down.
716 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
717 (lookup_symbol_search_name): New declaration.
718 (lookup_symbol_in_block): New 'match_type' parameter.
719
720 2018-01-05 Pedro Alves <palves@redhat.com>
721
722 PR gdb/22670
723 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
724 ada_lookup_symbol.
725 (ada_lookup_symbol): Reimplement in terms of
726 ada_lookup_symbol_list, bits factored out from
727 ada_lookup_encoded_symbol.
728
729 2018-01-05 Joel Brobecker <brobecker@adacore.com>
730
731 * ada-exp.y (write_object_renaming): When subscripting an array
732 using a symbol as the index, pass the block in call to
733 ada_lookup_encoded_symbol when looking that symbol up.
734
735 2018-01-05 Jerome Guitton <guitton@adacore.com>
736
737 * ada-lang.c (ada_array_length): Use ada_index_type instead of
738 TYPE_INDEX_TYPE.
739
740 2018-01-05 Joel Brobecker <brobecker@adacore.com>
741
742 * ada-lang.c (ada_to_fixed_value_create): Add handling of
743 the case where VALUE_LVAL (val0) is not lval_memory.
744
745 2018-01-05 Xavier Roirand <roirand@adacore.com>
746
747 * ada-valprint.c (print_optional_low_bound): Handle
748 character-indexed array printing like boolean-indexed array
749 printing.
750
751 2018-01-05 Joel Brobecker <brobecker@adacore.com>
752
753 * NEWS: Create a new section for the next release branch.
754 Rename the section of the current branch, now that it has
755 been cut.
756
757 2018-01-05 Joel Brobecker <brobecker@adacore.com>
758
759 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
760 * version.in: Bump version to 8.1.50.DATE-git.
761
762 2018-01-03 Xavier Roirand <roirand@adacore.com>
763
764 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
765 Add field.
766 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
767 Add field.
768 (default_exception_support_info) <catch_handlers_sym>: Add field.
769 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
770 (ada_exception_name_addr_1): Add "catch handlers" handling.
771 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
772 Update all callers.
773 (create_excep_cond_exprs) <ex>: Add parameter.
774 (re_set_exception): Update create_excep_cond_exprs call.
775 (print_it_exception, print_one_exception, print_mention_exception)
776 (print_recreate_exception): Add "catch handler" handling.
777 (allocate_location_catch_handlers, re_set_catch_handlers)
778 (check_status_catch_handlers, print_it_catch_handlers)
779 (print_one_catch_handlers, print_mention_catch_handlers)
780 (print_recreate_catch_handlers): New function.
781 (catch_handlers_breakpoint_ops): New variable.
782 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
783 Add parameter. Add "catch handler" handling.
784 (ada_exception_sym_name, ada_exception_breakpoint_ops):
785 Add "catch handler" handling.
786 (ada_exception_catchpoint_cond_string): Add "catch handler"
787 handling.
788 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
789 call.
790 (catch_ada_handlers_command): New function.
791 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
792 operations structure.
793 (_initialize_ada_language): Add "catch handlers" command entry.
794 * NEWS: Document "catch handlers" feature.
795
796 2018-01-02 Joel Brobecker <brobecker@adacore.com>
797
798 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
799 account when creating the array type of the slice.
800 (ada_value_slice): Likewise.
801
802 2018-01-02 Joel Brobecker <brobecker@adacore.com>
803
804 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
805 New enum value.
806 (create_array_type_with_stride): Add byte_stride_prop parameter.
807 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
808 New parameter. Update all callers in this file.
809 (array_type_has_dynamic_stride): New function.
810 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
811 of arrays with dynamic byte strides.
812 * dwarf2read.c (read_array_type): Add support for dynamic
813 DW_AT_byte_stride attributes.
814
815 2018-01-02 Joel Brobecker <brobecker@adacore.com>
816
817 * dwarf2read.c (read_unspecified_type): Treat
818 DW_TAG_enumeration_type DIEs from Ada units as stubs.
819
820 2018-01-01 Joel Brobecker <brobecker@adacore.com>
821
822 Update copyright year range in all GDB files.
823
824 2018-01-01 Joel Brobecker <brobecker@adacore.com>
825
826 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
827 and gdb/testsuite/gdb.base/step-line.c.
828
829 2018-01-01 Joel Brobecker <brobecker@adacore.com>
830
831 * copyright.py (main): Dump the contents of
832 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
833 even if BY_HAND is empty.
834
835 2018-01-01 Joel Brobecker <brobecker@adacore.com>
836
837 * top.c (print_gdb_version): Update Copyright year in version
838 message.
839
840 2018-01-01 Joel Brobecker <brobecker@adacore.com>
841
842 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
843
844 For older changes see ChangeLog-2017.
845 \f
846 Local Variables:
847 mode: change-log
848 left-margin: 8
849 fill-column: 74
850 version-control: never
851 coding: utf-8
852 End:
This page took 0.051055 seconds and 4 git commands to generate.