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