Ada/DWARF: Assume the Ada compiler produces descriptive type attributes
[external/binutils.git] / gdb / ChangeLog
1 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
2
3         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
4         language is Ada.
5
6 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
7
8         * linespec.c (create_sals_line_offset): Remove code that preserved
9         the symtab_and_line's line number.
10
11 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
12
13         * varobj.c (varobj_create): Don't set valid_block when creating a
14         floating varobj.
15
16 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
17
18         * varobj.c (varobj_create): Remove out of date comment.
19
20 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
21
22         PR mi/20395
23         * ada-exp.y (write_var_from_sym): Pass extra parameter when
24         updating innermost block.
25         * parse.c (innermost_block_tracker::update): Take extra type
26         parameter, and check types match before updating innermost block.
27         (write_dollar_variable): Update innermost block for registers.
28         * parser-defs.h (enum innermost_block_tracker_type): New enum.
29         (innermost_block_tracker::innermost_block_tracker): Initialise
30         m_types member.
31         (innermost_block_tracker::reset): Take type parameter.
32         (innermost_block_tracker::update): Take type parameter, and pass
33         type through as needed.
34         (innermost_block_tracker::m_types): New member.
35         * varobj.c (varobj_create): Pass type when reseting innermost
36         block.
37
38 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
39
40         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
41         * ada-lang.c (resolve_subexp): Likewise.
42         * breakpoint.c (set_breakpoint_condition) Likewise.
43         (watch_command_1) Likewise.
44         * c-exp.y (variable): Likewise.
45         * d-exp.y (PrimaryExpression): Likewise.
46         * f-exp.y (variable): Likewise.
47         * go-exp.y (variable): Likewise.
48         * m2-exp.y (variable): Likewise.
49         * objfiles.c (objfile::~objfile): Likewise.
50         * p-exp.y (variable): Likewise.
51         * parse.c (innermost_block): Change type.
52         * parser-defs.h (class innermost_block_tracker): New.
53         (innermost_block): Change to innermost_block_tracker.
54         * printcmd.c (display_command): Switch to innermost_block API.
55         (do_one_display): Likewise.
56         * rust-exp.y (do_one_display): Likewise.
57         * symfile.c (clear_symtab_users): Likewise.
58         * varobj.c (varobj_create): Switch to innermost_block API, replace
59         use of innermost_block with block stored on varobj object.
60
61 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
62
63         * expression.h (innermost_block): Remove declaration.
64         * varobj.c: Add 'parser-defs.h' include.
65
66 2018-01-19  Tom Tromey  <tom@tromey.com>
67
68         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
69         symbols in the static and global blocks.
70
71 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
72
73         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
74         gdb_ptrace.h, and move including gdb_wait.h ...
75         * nat/linux-ptrace.h: ... to here.
76
77 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
78
79         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
80         inf_ptrace_detach_success.
81         (inf_ptrace_detach_success): Add inferior parameter, use it
82         instead of inferior_ptid, pass it to detach_inferior.
83         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
84         parameter.
85         * inferior.c (detach_inferior): Add overload that takes an
86         inferior object.
87         * inferior.h (detach_inferior): Likewise.
88         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
89         use inferior_ptid, adjust call to inf_ptrace_detach_success.
90         * linux-thread-db.c (thread_db_detach): Use inf parameter.
91
92 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
93
94         * target.h (struct target_ops) <to_detach>: Add inferior
95         parameter.
96         (target_detach): Likewise.
97         * target.c (dispose_inferior): Pass inferior down.
98         (target_detach): Pass inferior down.  Assert that it is equal to
99         the current inferior.
100         * aix-thread.c (aix_thread_detach): Pass inferior down.
101         * corefile.c (core_file_command): Pass current_inferior() down.
102         * corelow.c (core_detach): Add inferior parameter.
103         * darwin-nat.c (darwin_detach): Likewise.
104         * gnu-nat.c (gnu_detach): Likewise.
105         * inf-ptrace.c (inf_ptrace_detach): Likewise.
106         * infcmd.c (detach_command): Pass current_inferior() down to
107         target_detach.
108         * infrun.c (follow_fork_inferior): Pass parent_inf to
109         target_detach.
110         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
111         target_detach.
112         * linux-nat.c (linux_nat_detach): Add inferior parameter.
113         * linux-thread-db.c (thread_db_detach): Likewise.
114         * nto-procfs.c (procfs_detach): Likewise.
115         * procfs.c (procfs_detach): Likewise.
116         * record.c (record_detach): Likewise.
117         * record.h (struct inferior): Forward-declare.
118         (record_detach): Add inferior parameter.
119         * remote-sim.c (gdbsim_detach): Likewise.
120         * remote.c (remote_detach_1): Likewise.
121         (remote_detach): Likewise.
122         (extended_remote_detach): Likewise.
123         * sol-thread.c (sol_thread_detach): Likewise.
124         * target-debug.h (target_debug_print_inferior_p): New macro.
125         * target-delegates.c: Re-generate.
126         * top.c (kill_or_detach): Pass inferior down to target_detach.
127         * windows-nat.c (windows_detach): Add inferior parameter.
128
129 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
130
131         * target.h (struct target_ops) <to_detach>: Remove args
132         parameter.
133         (target_detach): Likewise.
134         * target.c (dispose_inferior): Adjust.
135         (target_detach): Remove args parameter, adjust.
136         * aix-thread.c (aix_thread_detach): Adjust.
137         * corefile.c (core_file_command): Adjust.
138         * corelow.c (core_detach): Adjust.
139         * darwin-nat.c (darwin_detach): Adjust.
140         * gnu-nat.c (gnu_detach): Adjust.
141         * inf-ptrace.c (inf_ptrace_detach): Adjust.
142         * infcmd.c (detach_command): Adjust
143         * infrun.c (follow_fork_inferior): Adjust.
144         (handle_vfork_child_exec_or_exit): Adjust.
145         * linux-fork.c (linux_fork_detach): Remove args parameter.
146         * linux-fork.h (linux_fork_detach): Likewise.
147         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
148         * linux-thread-db.c (thread_db_detach): Likewise.
149         * nto-procfs.c (procfs_detach): Likewise.
150         * procfs.c (procfs_detach): Likewise.
151         (do_detach): Remove signo parameter.
152         * record.c (record_detach): Remove args parameter.
153         * record.h (record_detach): Likewise.
154         * remote-sim.c (gdbsim_detach): Likewise.
155         * remote.c (remote_detach_1): Likewise.
156         (remote_detach): Likewise.
157         (extended_remote_detach): Likewise.
158         * sol-thread.c (sol_thread_detach): Likewise.
159         * target-delegates.c: Re-generate.
160         * top.c (struct qt_args) <args>: Remove field.
161         (kill_or_detach): Don't pass args.
162         (quit_force): Don't set args.
163         * windows-nat.c (windows_detach): Remove args parameter.
164
165 2018-01-19  Yao Qi  <yao.qi@linaro.org>
166
167         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
168         (arm_linux_init_abi): Install it.
169
170 2018-01-19  Yao Qi  <yao.qi@linaro.org>
171
172         * osabi.c (gdb_osabi_names): Extend the regexp for
173         arm-linux-gnueabihf.
174
175 2018-01-18  Yao Qi  <yao.qi@linaro.org>
176
177         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
178         m_abbrevs.
179         (abbrev_table::add_abbrev): Update.
180         (abbrev_table::lookup_abbrev): Update.
181
182 2018-01-18  Yao Qi  <yao.qi@linaro.org>
183
184         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
185
186 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
187
188         * compile/compile.c (compile_to_object): Convert "triplet_rx"
189         to "std::string".
190
191 2018-01-17  Tom Tromey  <tom@tromey.com>
192
193         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
194
195 2018-01-17  Tom Tromey  <tom@tromey.com>
196
197         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
198         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
199         (create_array_type_with_stride): Update.
200         * dwarf2read.c (set_die_type): Update.
201
202 2018-01-17  Tom Tromey  <tom@tromey.com>
203
204         * dwarf2read.c (delayed_method_info): Remove typedef.
205         (dwarf2_cu::method_info): Now a std::vector.
206         (add_to_method_list): Update.
207         (free_delayed_list): Remove.
208         (compute_delayed_physnames): Update.
209         (process_full_comp_unit, process_full_type_unit): Clear the method
210         list.  Remove cleanups.
211         (psymtab_include_file_name): Add name_holder parameter.  Use
212         unique_xmalloc_ptr.
213         (dwarf_decode_lines): Update.
214
215 2018-01-17  Tom Tromey  <tom@tromey.com>
216             Simon Marchi  <simon.marchi@ericsson.com>
217
218         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
219         (dwarf2_per_objfile::free_cached_comp_units)
220         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
221         (init_cutu_and_read_dies_no_follow): Update.
222         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
223         (dwarf2_cu::~dwarf2_cu): New.
224         (free_heap_comp_unit, free_stack_comp_unit): Remove.
225         (age_cached_comp_units, free_one_cached_comp_unit): Update.
226
227 2018-01-17  Tom Tromey  <tom@tromey.com>
228             Simon Marchi  <simon.marchi@ericsson.com>
229
230         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
231         (struct die_reader_specs) <abbrev_table>: New member.
232         (struct abbrev_table): Add constructor.
233         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
234         <abbrev_obstack>: Now an auto_obstack.
235         (abbrev_table_up): New typedef.
236         (init_cu_die_reader): Add abbrev_table parameter.
237         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
238         Add result_dwo_abbrev_table.
239         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
240         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
241         Update.
242         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
243         parameter.
244         (skip_children): Update.
245         (abbrev_table::alloc_abbrev): Rename from
246         abbrev_table_alloc_abbrev.
247         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
248         (abbrev_table::lookup_abbrev): Rename from
249         abbrev_table_lookup_abbrev.
250         (abbrev_table_read_table): Return abbrev_table_up.
251         (abbrev_table_free, abbrev_table_free_cleanup)
252         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
253         (load_partial_dies): Update.
254
255 2018-01-17  Tom Tromey  <tom@tromey.com>
256
257         * dwarf2read.c (dwarf2_compute_name): Update comment.
258         (read_func_scope, read_variable): Update.
259         (new_symbol): Remove.
260         (new_symbol_full): Rename to new_symbol.
261
262 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
263
264         PR gdb/16577
265         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
266         a warning instead of throwing an error, set section size to 0 and return
267         NULL.
268         * gdb_bfd.h (gdb_bfd_map_section): Update description.
269
270 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
271
272         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
273         std::string.
274         (linux_ptrace_attach_fail_reason_string): Likewise.
275         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
276         Likewise.
277         (linux_ptrace_attach_fail_reason_string): Likewise.
278         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
279
280 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
281
282         * linux-nat.c (linux_nat_attach): Remove xstrdup.
283
284 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
285
286         PR gdb/21559
287         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
288         checking for fs_base/gs_base fields in struct user_regs_struct.
289         * configure: Regenerate.
290
291 2018-01-17  Yao Qi  <yao.qi@linaro.org>
292
293         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
294         function.
295         (aarch64_linux_init_abi): Install it to gdbarch hook
296         gcc_target_options.
297
298 2018-01-15  Pedro Alves  <palves@redhat.com>
299
300         * common/signals-state-save-restore.c
301         (save_original_signals_state): Fix typos.
302
303 2017-01-12  Tom Tromey  <tom@tromey.com>
304             Sergio Durigan Junior  <sergiodj@redhat.com>
305
306         * Makefile.in (install-only): Install gdb-add-index.
307
308 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
309
310         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
311
312 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
313
314         * infrun.c (keep_going_pass_signal): Clear step-over info when
315         insert_breakpoints fails.
316
317 2018-01-11  Pedro Alves  <palves@redhat.com>
318
319         PR gdb/22583
320         * infrun.c (resume): Rename to ...
321         (resume_1): ... this.
322         (resume): Reimplement as wrapper around resume_1.
323
324 2018-01-11  Pedro Alves  <palves@redhat.com>
325
326         PR remote/22597
327         * remote.c (remote_parse_stop_reply): Default to the last-set
328         general thread instead of to 'magic_null_ptid'.
329
330 2018-01-10  Pedro Alves  <palves@redhat.com>
331
332         * language.h (language_get_symbol_name_matcher): Rename ...
333         (get_symbol_name_matcher): ... this.
334         * language.c (language_get_symbol_name_matcher): Ditto.
335         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
336         callers adjusted.
337
338 2018-01-10  Pedro Alves  <palves@redhat.com>
339
340         PR gdb/22670
341         * dwarf2read.c
342         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
343         Adjust to use language_get_symbol_name_matcher instead of
344         language_defn::la_get_symbol_name_matcher.
345         * language.c (language_get_symbol_name_matcher): If in Ada mode
346         and the lookup name is a verbatim match, return Ada's matcher.
347         * language.h (language_get_symbol_name_matcher): Adjust comment.
348         (ada_lookup_name_info::verbatim_p):: New method.
349
350 2018-01-10  Pedro Alves  <palves@redhat.com>
351
352         PR gdb/22670
353         * ada-lang.c (ada_collect_symbol_completion_matches): If the
354         minsym's language is language_auto or language_cplus, pass down
355         language_ada instead.
356         * symtab.c (compare_symbol_name): Don't frob symbol language here.
357
358 2018-01-10  Pedro Alves  <palves@redhat.com>
359
360         PR gdb/22670
361         * minsyms.c (linkage_name_str): New function.
362         (iterate_over_minimal_symbols): Use it.
363
364 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
365
366         * NEWS: Document that 'info proc' now works on FreeBSD.
367
368 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
369
370         * configure.ac: Check for kinfo_getfile in libutil.
371         * configure: Regenerate.
372         * config.in: Regenerate.
373         * fbsd-nat.c: Include "fbsd-tdep.h".
374         (fbsd_fetch_cmdline): New.
375         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
376         rather than calling error.
377         (fbsd_info_proc): New.
378         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
379         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
380         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
381
382 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
383
384         * fbsd-nat.c (struct free_deleter): Remove.
385         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
386
387 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
388
389         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
390         NULL for an empty pathname.
391
392 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
393
394         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
395         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
396         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
397         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
398         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
399         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
400         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
401         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
402         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
403         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
404         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
405         (fbsd_core_fetch_timeval, fbsd_print_sigset)
406         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
407         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
408         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
409
410 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
411
412         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
413         (gnu_xfer_auxv): New function.
414         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
415         TARGET_OBJECT_AUXV.
416
417 2018-01-08  Yao Qi  <yao.qi@linaro.org>
418             Simon Marchi  <simon.marchi@ericsson.com>
419
420         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
421         common/selftest.c.
422         (COMMON_OBS): Remove selftest.o.
423         * configure.ac: Append selftest-arch.c and common/selftest.c to
424         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
425         * configure: Re-generated.
426         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
427         GDB_SELF_TEST.
428         (maintenance_info_selftests): Likewise.
429
430 2018-01-08  Xavier Roirand  <roirand@adacore.com>
431
432         * ada-valprint.c (val_print_packed_array_elements): Use
433         proper number of elements when printing an array indexed
434         by an enumeration type.
435
436 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
437
438         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
439         (dw2_get_file_names_reader): Adjust.
440         (lookup_dwo_signatured_type): Adjust.
441         (lookup_dwp_signatured_type): Adjust.
442         (lookup_signatured_type): Adjust.
443         (create_type_unit_group): Adjust.
444         (get_type_unit_group): Adjust.
445         (process_psymtab_comp_unit_reader): Adjust.
446         (build_type_psymtabs_reader): Adjust.
447         (scan_partial_symbols): Adjust.
448         (add_partial_symbol): Adjust.
449         (add_partial_subprogram): Adjust.
450         (peek_die_abbrev): Adjust.
451         (fixup_go_packaging): Adjust.
452         (process_imported_unit_die): Adjust.
453         (dwarf2_compute_name): Adjust.
454         (dwarf2_physname): Adjust.
455         (read_import_statement): Adjust.
456         (handle_DW_AT_stmt_list): Adjust.
457         (read_file_scope): Adjust.
458         (read_func_scope): Adjust.
459         (read_lexical_block_scope): Adjust.
460         (read_call_site_scope): Adjust.
461         (read_variable): Adjust.
462         (dwarf2_rnglists_process): Adjust.
463         (dwarf2_ranges_process): Adjust.
464         (dwarf2_ranges_read): Adjust.
465         (dwarf2_get_pc_bounds): Adjust.
466         (dwarf2_record_block_ranges): Adjust.
467         (dwarf2_add_field): Adjust.
468         (dwarf2_add_member_fn): Adjust.
469         (read_structure_type): Adjust.
470         (process_structure_scope): Adjust.
471         (read_enumeration_type): Adjust.
472         (read_array_type): Adjust.
473         (mark_common_block_symbol_computed): Adjust.
474         (read_common_block): Adjust.
475         (read_namespace_type): Adjust.
476         (read_namespace): Adjust.
477         (read_module_type): Adjust.
478         (read_tag_pointer_type): Adjust.
479         (read_tag_ptr_to_member_type): Adjust.
480         (read_tag_string_type): Adjust.
481         (read_subroutine_type): Adjust.
482         (read_typedef): Adjust.
483         (read_base_type): Adjust.
484         (attr_to_dynamic_prop): Adjust.
485         (read_subrange_type): Adjust.
486         (read_unspecified_type): Adjust.
487         (dwarf2_read_abbrevs): Adjust.
488         (load_partial_dies): Adjust.
489         (read_partial_die): Adjust.
490         (find_partial_die): Adjust.
491         (guess_partial_die_structure_name): Adjust.
492         (fixup_partial_die): Adjust.
493         (read_attribute_value): Adjust.
494         (read_addr_index): Adjust.
495         (read_addr_index_from_leb128): Adjust.
496         (read_str_index): Adjust.
497         (dwarf2_string_attr): Adjust.
498         (get_debug_line_section): Adjust.
499         (dwarf_decode_line_header): Adjust.
500         (lnp_state_machine::check_line_address): Adjust.
501         (dwarf_decode_lines_1): Adjust.
502         (dwarf_decode_lines): Adjust.
503         (dwarf2_start_symtab): Adjust.
504         (var_decode_location): Adjust.
505         (new_symbol_full): Adjust.
506         (dwarf2_const_value_data): Adjust.
507         (dwarf2_const_value_attr): Adjust.
508         (dwarf2_const_value): Adjust.
509         (die_type): Adjust.
510         (die_containing_type): Adjust.
511         (build_error_marker_type): Adjust.
512         (lookup_die_type): Adjust.
513         (guess_full_die_structure_name): Adjust.
514         (anonymous_struct_prefix): Adjust.
515         (determine_prefix): Adjust.
516         (dwarf2_name): Adjust.
517         (follow_die_ref_or_sig): Adjust.
518         (follow_die_offset): Adjust.
519         (follow_die_ref): Adjust.
520         (follow_die_sig_1): Adjust.
521         (follow_die_sig): Adjust.
522         (get_signatured_type): Adjust.
523         (get_DW_AT_signature_type): Adjust.
524         (decode_locdesc): Adjust.
525         (dwarf_decode_macros): Adjust.
526         (cu_debug_loc_section): Adjust.
527         (fill_in_loclist_baton): Adjust.
528         (dwarf2_symbol_mark_computed): Adjust.
529         (init_one_comp_unit): Don't assign
530         dwarf2_cu::dwarf2_per_objfile.
531         (set_die_type): Adjust.
532
533 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
534
535         * dwarf2read.c (struct mapped_debug_names): Add constructor.
536         <dwarf2_per_objfile>: New field.
537         (dwarf2_per_objfile): Remove global.
538         (get_dwarf2_per_objfile): New function.
539         (set_dwarf2_per_objfile): New function.
540         (dwarf2_build_psymtabs_hard): Change objfile parameter to
541         dwarf2_per_objfile.
542         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
543         (read_abbrev_offset): Likewise.
544         (read_indirect_string): Likewise.
545         (read_indirect_line_string): Likewise.
546         (read_indirect_string_at_offset): Likewise.
547         (read_indirect_string_from_dwz): Likewise.
548         (dwarf2_find_containing_comp_unit): Change objfile parameter to
549         dwarf2_per_objfile.
550         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
551         (create_all_comp_units): Change objfile parameter to
552         dwarf2_per_objfile.
553         (create_all_type_units): Likewise.
554         (process_queue): Add dwarf2_per_objfile parameter.
555         (read_and_check_comp_unit_head): Likewise.
556         (lookup_dwo_unit_in_dwp): Likewise.
557         (get_dwp_file): Likewise.
558         (process_cu_includes): Likewise.
559         (struct free_dwo_file_cleanup_data): New struct.
560         (dwarf2_has_info): Use get_dwarf2_per_objfile and
561         set_dwarf2_per_objfile.
562         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
563         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
564         context, adjust calls.
565         (dw2_instantiate_symtab): Likewise.
566         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
567         (dw2_get_cu): Likewise.
568         (create_cu_from_index_list): Change objfile parameter to
569         dwarf2_per_objfile.
570         (create_cus_from_index_list): Get dwarf2_per_objfile from
571         context, adjust calls.
572         (create_cus_from_index): Likewise.
573         (create_signatured_type_table_from_index): Change objfile
574         parameter to dwarf2_per_objfile.
575         (create_signatured_type_table_from_debug_names): Change objfile
576         parameter to dwarf2_per_objfile.
577         (create_addrmap_from_index): Likewise.
578         (create_addrmap_from_aranges): Likewise.
579         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
580         (dw2_setup): Remove.
581         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
582         context.
583         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
584         get_dwarf2_per_objfile.
585         (dw2_forget_cached_source_info): Likewise.
586         (dw2_map_symtabs_matching_filename): Likewise.
587         (struct dw2_symtab_iterator) <index>: Remove.
588         <dwarf2_per_objfile>: New field.
589         (dw2_symtab_iter_init): Replace index parameter with
590         dwarf2_per_objfile.
591         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
592         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
593         (dw2_print_stats): Likewise.
594         (dw2_dump): Likewise.
595         (dw2_expand_symtabs_for_function): Likewise.
596         (dw2_expand_all_symtabs): Likewise.
597         (dw2_expand_symtabs_with_fullname): Likewise.
598         (dw2_expand_marked_cus): Replace index and objfile parameters
599         with dwarf2_per_objfile.
600         (dw_expand_symtabs_matching_file_matcher): Add
601         dwarf2_per_objfile parameter and adjust calls.
602         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
603         adjust calls.
604         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
605         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
606         adjust calls.
607         (create_cus_from_debug_names_list): Replace objfile parameter
608         with dwarf2_per_objfile and adjust calls.
609         (create_cus_from_debug_names): Likewise.
610         (dwarf2_read_debug_names): Likewise.
611         (mapped_debug_names::namei_to_name): Adjust call.
612         (dw2_debug_names_iterator::next): Likewise.
613         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
614         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
615         (dw2_debug_names_dump): Likewise.
616         (dw2_debug_names_expand_symtabs_for_function): Likewise.
617         (dw2_debug_names_expand_symtabs_matching): Likewise.
618         (dwarf2_initialize_objfile): Likewise.
619         (dwarf2_build_psymtabs): Likewise.
620         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
621         this_cu.
622         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
623         (read_and_check_comp_unit_head): Likewise.
624         (read_abbrev_offset): Likewise.
625         (create_debug_type_hash_table): Likewise.
626         (create_debug_types_hash_table): Likewise.
627         (create_all_type_units): Replace objfile parameter with
628         dwarf2_per_objfile.
629         (add_type_unit): Add dwarf2_per_objfile parameter.
630         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
631         with dwarf2_per_objfile.
632         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
633         (lookup_dwp_signatured_type): Likewise.
634         (lookup_signatured_type): Likewise.
635         (read_cutu_die_from_dwo): Likewise.
636         (init_tu_and_read_dwo_dies): Likewise.
637         (init_cutu_and_read_dies): Likewise.
638         (init_cutu_and_read_dies_no_follow): Likewise.
639         (allocate_type_unit_groups_table): Add objfile parameter.
640         (create_type_unit_group): Use dwarf2_per_objfile from cu.
641         (get_type_unit_group): Likewise.
642         (process_psymtab_comp_unit): Update call.
643         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
644         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
645         (print_tu_stats): Likewise.
646         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
647         in void* parameter.
648         (build_type_psymtabs): Change objfile parameter to
649         dwarf2_per_objfile.
650         (process_skeletonless_type_unit): Use dwarf2_per_objfile
651         passed in void* parameter.
652         (process_skeletonless_type_units): Change objfile parameter to
653         dwarf2_per_objfile.
654         (set_partial_user): Likewise.
655         (dwarf2_build_psymtabs_hard): Likewise.
656         (read_comp_units_from_section): Likewise.
657         (create_all_comp_units): Likewise.
658         (scan_partial_symbols): Update calls.
659         (add_partial_symbol): Likewise.
660         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
661         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
662         (process_queue): Add dwarf2_per_objfile parameter.
663         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
664         (compute_compunit_symtab_includes): Likewise.
665         (process_cu_includes): Add dwarf2_per_objfile parameter.
666         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
667         (process_full_type_unit): Likewise.
668         (process_imported_unit_die): Update call.
669         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
670         (read_file_scope): Likewise.
671         (allocate_dwo_file_hash_table): Add objfile parameter.
672         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
673         (create_cus_hash_table): Likewise.
674         (create_dwp_hash_table): Likewise.
675         (create_dwo_unit_in_dwp_v1): Likewise.
676         (create_dwp_v2_section): Likewise.
677         (create_dwo_unit_in_dwp_v2): Likewise.
678         (lookup_dwo_unit_in_dwp): Likewise.
679         (try_open_dwop_file): Likewise.
680         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
681         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
682         cleanup to include a reference to dwarf2_per_objfile.
683         (open_dwp_file): Add dwarf2_per_objfile parameter.
684         (open_and_init_dwp_file): Likewise.
685         (get_dwp_file): Likewise.
686         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
687         (queue_and_load_all_dwo_tus): Update call.
688         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
689         data.
690         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
691         (dwarf2_ranges_process): Likewise.
692         (dwarf2_get_pc_bounds): Likewise.
693         (mark_common_block_symbol_computed): Likewise.
694         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
695         (dwarf2_read_abbrevs): Update call.
696         (read_partial_die): Use dwarf2_per_objfile from cu.
697         (find_partial_die): Likewise.
698         (fixup_partial_die): Likewise.
699         (read_attribute_value): Likewise.
700         (read_indirect_string_at_offset_from): Add objfile parameter.
701         (read_indirect_string_at_offset): Add dwarf2_per_objfile
702         parameter.
703         (read_indirect_string_from_dwz): Add objfile parameter.
704         (read_indirect_string): Add objfile parameter.
705         (read_addr_index_1): Add dwarf2_per_objfile parameter.
706         (read_addr_index): Use dwarf2_per_objfile from cu.
707         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
708         call dw2_setup.
709         (read_str_index): Use dwarf2_per_objfile from cu.
710         (get_debug_line_section): Likewise.
711         (read_formatted_entries): Add dwarf2_per_objfile parameter.
712         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
713         (new_symbol_full): Use dwarf2_per_objfile from cu.
714         (build_error_marker_type): Likewise.
715         (lookup_die_type): Likewise.
716         (determine_prefix): Likewise.
717         (follow_die_offset): Likewise.
718         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
719         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
720         (dwarf2_fetch_die_type_sect_off): Likewise.
721         (dwarf2_get_die_type): Likewise.
722         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
723         (get_signatured_type): Likewise.
724         (get_DW_AT_signature_type): Likewise.
725         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
726         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
727         (cu_debug_loc_section): Likewise.
728         (fill_in_loclist_baton): Likewise.
729         (dwarf2_symbol_mark_computed): Likewise.
730         (dwarf2_find_containing_comp_unit): Change objfile parameter to
731         dwarf2_per_objfile.
732         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
733         parameter.
734         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
735         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
736         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
737         (set_die_type): Use dwarf2_free_objfile from cu.
738         (get_die_type_at_offset): Likewise.
739         (dwarf2_per_objfile_free): Don't assign global variable.
740         (debug_names) <constructor>: Add dwarf2_per_objfile
741         parameter, update m_debugstrlookup construction.
742         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
743         parameter.
744         <m_dwarf2_per_objfile>: New field.
745         <lookup>: Use m_dwarf2_per_objfile.
746         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
747         (psyms_seen_size): Likewise.
748         (write_gdbindex): Replace objfile parameter with
749         dwarf2_per_objfile.
750         (write_debug_names): Likewise.
751         (write_psymtabs_to_index): Likewise.
752         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
753         calls.
754
755 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
756
757         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
758         <dwarf2_per_objfile>: New field.
759         (struct dwarf2_per_cu_data) <objfile>: Remove.
760         <dwarf2_per_objfile>: New field.
761         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
762         of objfile.
763         (create_signatured_type_table_from_index): Likewise.
764         (create_debug_type_hash_table): Likewise.
765         (fill_in_sig_entry_from_dwo_entry): Likewise.
766         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
767         (create_type_unit_group): Assign dwarf2_per_objfile instead of
768         objfile.
769         (create_partial_symtab): Access objfile through
770         dwarf2_per_objfile.
771         (process_psymtab_comp_unit_reader): Likewise.
772         (read_comp_units_from_section): Likewise.
773         (scan_partial_symbols): Likewise.
774         (add_partial_symbol): Likewise.
775         (add_partial_subprogram): Likewise.
776         (peek_die_abbrev): Likewise.
777         (fixup_go_packaging): Likewise.
778         (process_full_comp_unit): Likewise.
779         (process_full_type_unit): Likewise.
780         (process_imported_unit_die): Likewise.
781         (dwarf2_compute_name): Likewise.
782         (dwarf2_physname): Likewise.
783         (read_import_statement): Likewise.
784         (create_cus_hash_table): Assign dwarf2_physname instead of
785         objfile.
786         (read_func_scope): Access objfile through dwarf2_per_objfile.
787         (read_lexical_block_scope): Likewise.
788         (read_call_site_scope): Likewise.
789         (read_variable): Likewise.
790         (dwarf2_rnglists_process): Likewise.
791         (dwarf2_ranges_process): Likewise.
792         (dwarf2_ranges_read): Likewise.
793         (dwarf2_record_block_ranges): Likewise.
794         (dwarf2_add_field): Likewise.
795         (dwarf2_add_member_fn): Likewise.
796         (read_structure_type): Likewise.
797         (process_structure_scope): Likewise.
798         (read_enumeration_type): Likewise.
799         (read_array_type): Likewise.
800         (read_common_block): Likewise.
801         (read_namespace_type): Likewise.
802         (read_namespace): Likewise.
803         (read_module_type): Likewise.
804         (read_tag_pointer_type): Likewise.
805         (read_tag_ptr_to_member_type): Likewise.
806         (read_tag_string_type): Likewise.
807         (read_subroutine_type): Likewise.
808         (read_typedef): Likewise.
809         (read_base_type): Likewise.
810         (attr_to_dynamic_prop): Likewise.
811         (read_subrange_type): Likewise.
812         (read_unspecified_type): Likewise.
813         (load_partial_dies): Likewise.
814         (read_partial_die): Likewise.
815         (find_partial_die): Likewise.
816         (guess_partial_die_structure_name): Likewise.
817         (fixup_partial_die): Likewise.
818         (read_attribute_value): Likewise.
819         (read_addr_index_from_leb128): Likewise.
820         (dwarf2_read_addr_index): Likewise.
821         (dwarf2_string_attr): Likewise.
822         (lnp_state_machine::check_line_address): Likewise.
823         (dwarf_decode_lines_1): Likewise.
824         (dwarf_decode_lines): Likewise.
825         (dwarf2_start_symtab): Likewise.
826         (var_decode_location): Likewise.
827         (new_symbol_full): Likewise.
828         (dwarf2_const_value_data): Likewise.
829         (dwarf2_const_value_attr): Likewise.
830         (dwarf2_const_value): Likewise.
831         (die_type): Likewise.
832         (die_containing_type): Likewise.
833         (lookup_die_type): Likewise.
834         (guess_full_die_structure_name): Likewise.
835         (anonymous_struct_prefix): Likewise.
836         (dwarf2_name): Likewise.
837         (follow_die_ref_or_sig): Likewise.
838         (follow_die_offset): Likewise.
839         (follow_die_ref): Likewise.
840         (dwarf2_fetch_die_loc_sect_off): Likewise.
841         (dwarf2_fetch_constant_bytes): Likewise.
842         (dwarf2_fetch_die_type_sect_off): Likewise.
843         (dwarf2_get_die_type): Likewise.
844         (follow_die_sig): Likewise.
845         (decode_locdesc): Likewise.
846         (dwarf2_per_cu_objfile): Likewise.
847         (dwarf2_per_cu_text_offset): Likewise.
848         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
849         objfile.
850         (set_die_type): Access objfile through
851         dwarf2_per_objfile.
852
853 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
854
855         * valprint.c (converted_character_d): Remove typedef.
856         (DEF_VEC_O (converted_character_d)): Remove.
857         (count_next_character): Use std::vector.
858         (print_converted_chars_to_obstack): Likewise.
859         (generic_printstr): Likewise.
860
861 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
862
863         * xml-support.h (struct gdb_xml_value): Add constructor.
864         <value>: Change type to unique_xmalloc_ptr.
865         (gdb_xml_value_s): Remove typedef.
866         (DEF_VEC_O (gdb_xml_value_s)): Remove.
867         (gdb_xml_element_start_handler): Change parameter type to
868         std::vector.
869         (xml_find_attribute): Likewise.
870         * xml-support.c (xml_find_attribute): Change parameter type to
871         std::vector and adjust.
872         (gdb_xml_values_cleanup): Remove.
873         (gdb_xml_parser::start_element): Adjust to std::vector.
874         (xinclude_start_include): Change paraeter type to std::vector
875         and adjust.
876         * btrace.c (check_xml_btrace_version): Likewise.
877         (parse_xml_btrace_block): Likewise.
878         (parse_xml_btrace_pt_config_cpu): Likewise.
879         (parse_xml_btrace_pt): Likewise.
880         (parse_xml_btrace_conf_bts): Likewise.
881         (parse_xml_btrace_conf_pt): Likewise.
882         * memory-map.c (memory_map_start_memory): Likewise.
883         (memory_map_start_property): Likewise.
884         * osdata.c (osdata_start_osdata): Likewise.
885         (osdata_start_item): Likewise.
886         (osdata_start_column): Likewise.
887         * remote.c (start_thread): Likewise.
888         * solib-aix.c (library_list_start_library): Likewise.
889         (library_list_start_list): Likewise.
890         * solib-svr4.c (library_list_start_library): Likewise.
891         (svr4_library_list_start_list): Likewise.
892         * solib-target.c (library_list_start_segment): Likewise.
893         (library_list_start_section): Likewise.
894         (library_list_start_library): Likewise.
895         (library_list_start_list): Likewise.
896         * tracepoint.c (traceframe_info_start_memory): Likewise.
897         (traceframe_info_start_tvar): Likewise.
898         * xml-syscall.c (syscall_start_syscall): Likewise.
899         * xml-tdesc.c (tdesc_start_target): Likewise.
900         (tdesc_start_feature): Likewise.
901         (tdesc_start_reg): Likewise.
902         (tdesc_start_union): Likewise.
903         (tdesc_start_struct): Likewise.
904         (tdesc_start_flags): Likewise.
905         (tdesc_start_enum): Likewise.
906         (tdesc_start_field): Likewise.
907         (tdesc_start_enum_value): Likewise.
908         (tdesc_start_vector): Likewise.
909
910 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
911
912         * extension.h (struct xmethod_worker) <clone>: Remove.
913         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
914         Remove.
915         (python_xmethod_worker::clone): Remove.
916         * valops.c (find_overload_match): Use std::move instead of
917         clone.
918
919 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
920
921         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
922         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
923         <free_xmethod_worker_data>: Remove.
924         <get_matching_xmethod_workers>: Chance VEC to std::vector.
925         <get_xmethod_arg_types>: Remove.
926         <get_xmethod_result_type>: Remove.
927         <invoke_xmethod>: Remove.
928         * extension.c (new_xmethod_worker): Remove.
929         (clone_xmethod_worker): Remove.
930         (get_matching_xmethod_workers): Return void, pass std::vector by
931         pointer.
932         (get_xmethod_arg_types): Rename to...
933         (xmethod_worker::get_arg_types): ... this, and adjust.
934         (get_xmethod_result_type): Rename to...
935         (xmethod_worker::get_result_type): ... this, and adjust.
936         (invoke_xmethod): Remove.
937         (free_xmethod_worker): Remove.
938         (free_xmethod_worker_vec): Remove.
939         * extension.h (enum ext_lang_rc): Move here from
940         extension-priv.h.
941         (struct xmethod_worker): Add constructor and destructor.
942         <data>: Remove.
943         <value>: Remove.
944         <invoke, clone, do_get_result_type, do_get_arg_types>: New
945         virtual pure methods.
946         <get_arg_types, get_result_type>: New methods.
947         (xmethod_worker_ptr): Remove typedef.
948         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
949         (xmethod_worker_vec): Remove typedef.
950         (xmethod_worker_up): New typedef.
951         (invoke_xmethod): Remove.
952         (clone_xmethod_worker): Remove.
953         (free_xmethod_worker): Remove.
954         (free_xmethod_worker_vec): Remove.
955         (get_xmethod_arg_types): Remove.
956         (get_xmethod_result_type): Remove.
957         * valops.c (find_method_list): Use std::vector, don't use
958         intermediate vector.
959         (value_find_oload_method_list): Use std::vector.
960         (find_overload_match): Use std::vector.
961         (find_oload_champ): Use std::vector.
962         * value.c (value_free): Use operator delete.
963         (value_of_xmethod): Rename to...
964         (value_from_xmethod): ... this.  Don't assign
965         xmethod_worker::value, take rvalue-reference.
966         (result_type_of_xmethod): Adjust.
967         (call_xmethod): Adjust.
968         * value.h: Include extension.h.
969         (struct xmethod_worker): Don't forward-declare.
970         (value_of_xmethod): Rename to...
971         (value_from_xmethod): ... this, take rvalue-reference.
972         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
973         (struct python_xmethod_worker): ... this, add constructor and
974         destructor.
975         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
976         (gdbpy_free_xmethod_worker_data): Rename to...
977         (python_xmethod_worker::~python_xmethod_worker): ... this and
978         adjust.
979         (gdbpy_clone_xmethod_worker_data): Rename to...
980         (python_xmethod_worker::clone): ... this and adjust.
981         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
982         temporary vector.
983         (gdbpy_get_xmethod_arg_types): Rename to...
984         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
985         (gdbpy_get_xmethod_result_type): Rename to...
986         (python_xmethod_worker::do_get_result_type): ... this and
987         adjust.
988         (gdbpy_invoke_xmethod): Rename to...
989         (python_xmethod_worker::invoke): ... this and adjust.
990         (new_python_xmethod_worker): Rename to...
991         (python_xmethod_worker::python_xmethod_worker): ... this and
992         adjust.
993         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
994         Remove.
995         (gdbpy_free_xmethod_worker_data): Remove.
996         (gdbpy_get_matching_xmethod_workers): Use std::vector.
997         (gdbpy_get_xmethod_arg_types): Remove.
998         (gdbpy_get_xmethod_result_type): Remove.
999         (gdbpy_invoke_xmethod): Remove.
1000         * python/python.c (python_extension_ops): Remove obsolete
1001         callbacks.
1002
1003 2018-01-05  Pedro Alves  <palves@redhat.com>
1004
1005         PR gdb/18653
1006         * common/signals-state-save-restore.c
1007         (save_original_signals_state): New parameter 'quiet'.  Warn if we
1008         find a custom handler preinstalled, instead of internal erroring.
1009         But only warn if !quiet.
1010         * common/signals-state-save-restore.h
1011         (save_original_signals_state): New parameter 'quiet'.
1012         * main.c (captured_main_1): Move save_original_signals_state call
1013         after option handling, and pass QUIET.
1014
1015 2018-01-05  Pedro Alves  <palves@redhat.com>
1016
1017         * spu-tdep.c (spu_catch_start): Pass
1018         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
1019
1020 2018-01-05  Pedro Alves  <palves@redhat.com>
1021
1022         PR gdb/22670
1023         * ada-lang.c (literal_symbol_name_matcher): New function.
1024         (ada_get_symbol_name_matcher): Use it for
1025         symbol_name_match_type::SEARCH_NAME.
1026         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
1027         it down instead of assuming symbol_name_match_type::FULL.
1028         * block.h (block_lookup_symbol): New parameter 'match_type'.
1029         * c-valprint.c (print_unpacked_pointer): Use
1030         lookup_symbol_search_name instead of lookup_symbol.
1031         * compile/compile-object-load.c (get_out_value_type): Pass down
1032         symbol_name_match_type::SEARCH_NAME.
1033         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
1034         symbol_name_match_type::FULL.
1035         * cp-support.c (cp_get_symbol_name_matcher): Handle
1036         symbol_name_match_type::SEARCH_NAME.
1037         * infrun.c (insert_exception_resume_breakpoint): Use
1038         lookup_symbol_search_name.
1039         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
1040         * psymtab.c (maintenance_check_psymtabs): Use
1041         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
1042         * stack.c (print_frame_args): Use lookup_symbol_search_name and
1043         SYMBOL_SEARCH_NAME.
1044         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
1045         if symbol_name_match_type::SEARCH_NAME.
1046         (lookup_symbol_in_language): Pass down
1047         symbol_name_match_type::FULL.
1048         (lookup_symbol_search_name): New.
1049         (lookup_language_this): Pass down
1050         symbol_name_match_type::SEARCH_NAME.
1051         (lookup_symbol_aux, lookup_local_symbol): New parameter
1052         'match_type'.  Pass it down.
1053         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
1054         (lookup_symbol_search_name): New declaration.
1055         (lookup_symbol_in_block): New 'match_type' parameter.
1056
1057 2018-01-05  Pedro Alves  <palves@redhat.com>
1058
1059         PR gdb/22670
1060         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
1061         ada_lookup_symbol.
1062         (ada_lookup_symbol): Reimplement in terms of
1063         ada_lookup_symbol_list, bits factored out from
1064         ada_lookup_encoded_symbol.
1065
1066 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1067
1068         * ada-exp.y (write_object_renaming): When subscripting an array
1069         using a symbol as the index, pass the block in call to
1070         ada_lookup_encoded_symbol when looking that symbol up.
1071
1072 2018-01-05  Jerome Guitton  <guitton@adacore.com>
1073
1074         * ada-lang.c (ada_array_length): Use ada_index_type instead of
1075         TYPE_INDEX_TYPE.
1076
1077 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1078
1079         * ada-lang.c (ada_to_fixed_value_create): Add handling of
1080         the case where VALUE_LVAL (val0) is not lval_memory.
1081
1082 2018-01-05  Xavier Roirand  <roirand@adacore.com>
1083
1084         * ada-valprint.c (print_optional_low_bound): Handle
1085         character-indexed array printing like boolean-indexed array
1086         printing.
1087
1088 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1089
1090         * NEWS: Create a new section for the next release branch.
1091         Rename the section of the current branch, now that it has
1092         been cut.
1093
1094 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1095
1096         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
1097         * version.in: Bump version to 8.1.50.DATE-git.
1098
1099 2018-01-03  Xavier Roirand  <roirand@adacore.com>
1100
1101         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
1102         Add field.
1103         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
1104         Add field.
1105         (default_exception_support_info) <catch_handlers_sym>: Add field.
1106         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
1107         (ada_exception_name_addr_1): Add "catch handlers" handling.
1108         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
1109         Update all callers.
1110         (create_excep_cond_exprs) <ex>: Add parameter.
1111         (re_set_exception): Update create_excep_cond_exprs call.
1112         (print_it_exception, print_one_exception, print_mention_exception)
1113         (print_recreate_exception): Add "catch handler" handling.
1114         (allocate_location_catch_handlers, re_set_catch_handlers)
1115         (check_status_catch_handlers, print_it_catch_handlers)
1116         (print_one_catch_handlers, print_mention_catch_handlers)
1117         (print_recreate_catch_handlers): New function.
1118         (catch_handlers_breakpoint_ops): New variable.
1119         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
1120         Add parameter.  Add "catch handler" handling.
1121         (ada_exception_sym_name, ada_exception_breakpoint_ops):
1122         Add "catch handler" handling.
1123         (ada_exception_catchpoint_cond_string): Add "catch handler"
1124         handling.
1125         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
1126         call.
1127         (catch_ada_handlers_command): New function.
1128         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
1129         operations structure.
1130         (_initialize_ada_language): Add "catch handlers" command entry.
1131         * NEWS: Document "catch handlers" feature.
1132
1133 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1134
1135         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
1136         account when creating the array type of the slice.
1137         (ada_value_slice): Likewise.
1138
1139 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1140
1141         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
1142         New enum value.
1143         (create_array_type_with_stride): Add byte_stride_prop parameter.
1144         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
1145         New parameter.  Update all callers in this file.
1146         (array_type_has_dynamic_stride): New function.
1147         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
1148         of arrays with dynamic byte strides.
1149         * dwarf2read.c (read_array_type): Add support for dynamic
1150         DW_AT_byte_stride attributes.
1151
1152 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1153
1154         * dwarf2read.c (read_unspecified_type): Treat
1155         DW_TAG_enumeration_type DIEs from Ada units as stubs.
1156
1157 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1158
1159         Update copyright year range in all GDB files.
1160
1161 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1162
1163         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
1164         and gdb/testsuite/gdb.base/step-line.c.
1165
1166 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1167
1168         * copyright.py (main): Dump the contents of
1169         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
1170         even if BY_HAND is empty.
1171
1172 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1173
1174         * top.c (print_gdb_version): Update Copyright year in version
1175         message.
1176
1177 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1178
1179         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
1180
1181 For older changes see ChangeLog-2017.
1182 \f
1183 Local Variables:
1184 mode: change-log
1185 left-margin: 8
1186 fill-column: 74
1187 version-control: never
1188 coding: utf-8
1189 End: