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