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