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