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