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