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