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