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