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