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