a5f0f202a137d2dce67e5a3ecbb5622655f78366
[external/binutils.git] / gdb / ChangeLog
1 2018-02-08  Tom Tromey  <tom@tromey.com>
2
3         * solib.c (solib_find_1): Use std::string.
4         (solib_bfd_fopen): Use unique_xmalloc_ptr.
5
6 2018-02-08  Tom Tromey  <tom@tromey.com>
7
8         * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
9
10 2018-02-08  Tom Tromey  <tom@tromey.com>
11
12         * source.c (find_source_lines): Use gdb::def_vector.
13
14 2018-02-08  Tom Tromey  <tom@tromey.com>
15
16         * macrocmd.c (struct temporary_macro_definition): New.
17         (macro_define_command): Use temporary_macro_definition.  Remove
18         cleanups.
19         (free_macro_definition_ptr): Remove.
20
21 2018-02-08  Tom Tromey  <tom@tromey.com>
22
23         * macroexp.c (maybe_expand): Use std::string.
24
25 2018-02-08  Tom Tromey  <tom@tromey.com>
26
27         * macroexp.c (struct macro_buffer): Add initializers for some
28         members.
29         (init_buffer, init_shared_buffer, free_buffer)
30         (free_buffer_return_text): Remove.
31         (macro_buffer): New constructors.
32         (~macro_buffer): New destructor.
33         (macro_buffer::set_shared): New method.
34         (macro_buffer::resize_buffer, macro_buffer::appendc)
35         (macro_buffer::appendmem): Now methods, not free functions.
36         (set_token, append_tokens_without_splicing, stringify)
37         (macro_stringify): Update.
38         (gather_arguments): Change return type.  Remove argc_p argument,
39         add args_ptr argument.  Use std::vector.
40         (substitute_args): Remove argc argument.  Accept std::vector.
41         (expand): Update.  Use std::vector.
42         (scan, macro_expand, macro_expand_next): Update.
43
44 2018-02-08  Tom Tromey  <tom@tromey.com>
45
46         * symtab.c (default_collect_symbol_completion_matches_break_on):
47         Use unique_xmalloc_ptr.
48         * macroscope.h: (sal_macro_scope, user_macro_scope)
49         (default_macro_scope): Return unique_xmalloc_ptr.
50         * macroscope.c (sal_macro_scope, user_macro_scope)
51         (default_macro_scope): Return unique_xmalloc_ptr.
52         * macroexp.h (macro_expand, macro_expand_once): Return
53         unique_xmalloc_ptr.
54         * macroexp.c (macro_expand, macro_expand_once): Return
55         unique_xmalloc_ptr.
56         * macrocmd.c (macro_expand_command, macro_expand_once_command)
57         (info_macro_command, info_macros_command): Use
58         unique_xmalloc_ptr.
59         * compile/compile-c-support.c (write_macro_definitions): Use
60         unique_xmalloc_ptr.
61         * c-exp.y (c_parse): Use unique_xmalloc_ptr.
62
63 2018-02-07  Simon Marchi  <simon.marchi@ericsson.com>
64
65         * value.c (value_static_field): Assign field type instead of
66         containing type when returning an optimized out value.
67
68 2018-02-06  Yao Qi  <yao.qi@linaro.org>
69
70         * ft32-tdep.c (ft32_read_pc): Remove.
71         (ft32_write_pc): Remove.
72         (ft32_gdbarch_init): Update.
73         * m32r-tdep.c (m32r_read_pc): Remove.
74         (m32r_gdbarch_init): Update.
75         * mep-tdep.c (mep_read_pc): Remove.
76         (mep_gdbarch_init): Update.
77         * microblaze-tdep.c (microblaze_write_pc): Remove.
78         (microblaze_gdbarch_init): Update.
79         * mn10300-tdep.c (mn10300_read_pc): Remove.
80         (mn10300_write_pc): Remove.
81         (mn10300_gdbarch_init): Update.
82         * moxie-tdep.c (moxie_read_pc): Remove.
83         (moxie_write_pc): Remove.
84         (moxie_gdbarch_init): Update.
85
86 2018-02-06  Yao Qi  <yao.qi@linaro.org>
87
88         * expprint.c (print_subexp_standard): Handle
89         OP_F77_UNDETERMINED_ARGLIST.
90         (dump_subexp_body_standard): Likewise.
91
92 2018-02-05  Alan Hayward  <alan.hayward@arm.com>
93
94         * target-descriptions.c (tdesc_element_visitor) Add empty
95         implementations.
96         (tdesc_type): Move make_gdb_type from here.
97         (tdesc_type_builtin): Likewise.
98         (tdesc_type_vector): Likewise.
99         (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
100         (make_gdb_type_struct): Move from tdesc_type_with_fields.
101         (make_gdb_type_union): Likewise.
102         (make_gdb_type_flags): Likewise.
103         (make_gdb_type_enum): Likewise.
104         (make_gdb_type): New function.
105         (tdesc_register_type): Use static make_gdb_type.
106
107 2018-02-05  Ruslan Kabatsayev <b7.10110111@gmail.com>
108
109         * infcmd.c (default_print_one_register_info): Align natural-format
110         column values consistently one under another.
111         (pad_to_column): New function.
112
113 2018-02-05  Joel Brobecker  <brobecker@adacore.com>
114
115         * dwarf2read.c (dwarf2_physname): Move commment.
116
117 2018-02-01  Leszek Swirski  <leszeks@google.com>
118
119         * varobj.c (varobj_formatted_print_options): Allow recursive
120         pretty printing if pretty printing is enabled.
121
122 2018-02-01  Leszek Swirski  <leszeks@google.com>
123
124         * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
125         names after a structop as a filename.
126
127 2018-02-01  Yao Qi  <yao.qi@linaro.org>
128
129         * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
130         (arm_record_coproc_data_proc): Likewise.
131
132 2018-02-01  Yao Qi  <yao.qi@linaro.org>
133
134         * arm-tdep.c (arm_record_extension_space): Change ret to signed.
135
136 2018-01-31  Nikola Prica  <nikola.prica@rt-rk.com>
137
138         * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
139         assign shifted lr_reg to fdata->lr_register when lr_reg is set.
140
141 2018-01-31  Pedro Alves  <palves@redhat.com>
142
143         * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
144         * inflow.c (child_terminal_save_inferior): Wrap reference to
145         tcgetpgrp in HAVE_TERMIOS_H.
146         (child_interrupt, child_pass_ctrlc): Wrap references to signal in
147         _WIN32.
148         * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
149         always iterate over all inferiors.
150         (gdbsim_cntrl_c): Adjust.
151         * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
152
153 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
154
155         * gdbtypes.c (lookup_array_range_type): Make sure the array's
156         index type is objfile-owned if the element type is as well.
157
158 2018-01-31  Joel Brobecker  <brobecker@adacore.com>
159
160         GDB 8.1 released.
161
162 2018-01-30  Philipp Rudo  <prudo@linux.vnet.ibm.com>
163
164         * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
165         "features/s390x-linux64.c".
166         (_initialize_s390_linux_tdep): Remove initialization of tdescs
167         s390_linux32 and s390x_linux64.
168         (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
169         default tdesc.
170         * s390-tdep.c: Include "features/s390-linux32.c" and
171         "features/s390x-linux64.c".
172         (s390_tdesc_valid): Add check for tdesc_has_registers.
173         (s390_gdbarch_init): Make sure there is always a valid tdesc.
174         (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
175         tdesc_s390x_linux64.
176         * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
177         tdesc_s390x_linux64 to...
178         * s390-tdep.h: ...here.
179
180 2018-01-30  Pedro Alves  <palves@redhat.com>
181
182         PR gdb/13211
183         * config.in, configure: Regenerate.
184         * configure.ac: Check for getpgid.
185         * go32-nat.c (go32_pass_ctrlc): New.
186         (go32_target): Install it.
187         * inf-child.c (inf_child_target): Install
188         child_terminal_save_inferior, child_pass_ctrlc and
189         child_interrupt.
190         * inf-ptrace.c (inf_ptrace_interrupt): Delete.
191         (inf_ptrace_target): No longer install it.
192         * infcmd.c (interrupt_target_1): Adjust.
193         * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
194         (child_interrupt): Declare.
195         (inferior::terminal_state): New.
196         * inflow.c (struct terminal_info): Update comments.
197         (inferior_process_group): Delete.
198         (terminal_is_ours): Delete.
199         (gdb_tty_state): New.
200         (child_terminal_init): Adjust.
201         (is_gdb_terminal, sharing_input_terminal_1)
202         (sharing_input_terminal): New functions.
203         (child_terminal_inferior): Adjust.  Use sharing_input_terminal.
204         Set the process's actual process group in the foreground if
205         possible.  Handle is_ours_for_output/is_ours distinction.  Don't
206         mark terminal as the inferior's if not sharing GDB's terminal.
207         Don't check attach_flag.
208         (child_terminal_ours_for_output, child_terminal_ours): Adjust to
209         pass down a target_terminal_state.
210         (child_terminal_save_inferior): New, factored out from ...
211         (child_terminal_ours_1): ... this.  Handle
212         target_terminal_state::is_ours_for_output.
213         (child_interrupt, child_pass_ctrlc): New.
214         (inflow_inferior_exit): Clear the inferior's terminal_state.
215         (copy_terminal_info): Copy the inferior's terminal state.
216         (_initialize_inflow): Remove reference to terminal_is_ours.
217         * inflow.h (inferior_process_group): Delete.
218         * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
219         * procfs.c (procfs_target): Don't install procfs_interrupt.
220         (procfs_interrupt): Delete.
221         * remote.c (remote_serial_quit_handler): Adjust.
222         (remote_interrupt): Remove ptid parameter.  Adjust.
223         * target-delegates.c: Regenerate.
224         * target.c: Include "terminal.h".
225         (target_terminal::terminal_state): Rename to ...
226         (target_terminal::m_terminal_state): ... this.
227         (target_terminal::init): Adjust.
228         (target_terminal::inferior): Adjust to per-inferior
229         terminal_state.
230         (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
231         (target_terminal::ours, target_terminal::ours_for_output): Use
232         target_terminal_is_ours_kind.
233         (target_interrupt): Remove ptid parameter.  Adjust.
234         (default_target_pass_ctrlc): Adjust.
235         * target.h (target_ops::to_terminal_save_inferior): New field.
236         (target_ops::to_interrupt): Remove ptid_t parameter.
237         (target_interrupt): Remove ptid_t parameter.  Update comment.
238         (target_pass_ctrlc): Update comment.
239         * target/target.h (target_terminal_state): New scoped enum,
240         factored out of ...
241         (target_terminal::terminal_state): ... here.
242         (target_terminal::inferior): Update comments.
243         (target_terminal::restore_inferior): New.
244         (target_terminal::is_inferior, target_terminal::is_ours)
245         (target_terminal::is_ours_for_output): Adjust.
246         (target_terminal::scoped_restore_terminal_state): Adjust to
247         rename, and call restore_inferior() instead of inferior().
248         (target_terminal::scoped_restore_terminal_state::m_state): Change
249         type.
250         (target_terminal::terminal_state): Rename to ...
251         (target_terminal::m_terminal_state): ... this and change type.
252
253 2018-01-30  Pedro Alves  <palves@redhat.com>
254
255         * linux-nat.c (wait_for_signal): New function.
256         (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
257         directly.
258         (async_terminal_is_ours)
259         (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
260         (linux_nat_add_target): Don't override
261         to_terminal_inferior/to_terminal_ours.
262
263 2018-01-29  Sergio Durigan Junior  <sergiodj@redhat.com>
264
265         * remote.c (remote_follow_fork): Don't call "detach_inferior".
266
267 2018-01-28  Simon Marchi  <simon.marchi@ericsson.com>
268
269         * dwarf2read.c (free_dwo_files): Add forward-declaration.
270         (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
271         dwarf2_per_objfile_free here.
272         (dwarf2_per_objfile_free): Remove.
273         (_initialize_dwarf2_read): Don't register
274         dwarf2_per_objfile_free as a registry cleanup.
275
276 2018-01-27  Eli Zaretskii  <eliz@gnu.org>
277
278         Avoid compilation errors in MinGW native builds
279
280         The error is triggered by including python-internal.h, and the
281         error message is:
282
283              In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
284                       from build-gnulib/import/math.h:27,
285                       from d:/usr/Python26/include/pyport.h:235,
286                       from d:/usr/Python26/include/Python.h:58,
287                       from python/python-internal.h:94,
288                       from python/py-arch.c:24:
289              d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
290         using ::hypot;
291                 ^~~~~
292
293         This happens because Python headers define 'hypot' to expand t
294         '_hypot' in the Windows builds.
295         * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
296         'hypoth'.  This avoids a compilation error.
297
298 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
299
300         * MAINTAINERS (Write After Approval): Fix ordering.
301
302 2018-01-26  Alan Hayward  <alan.hayward@arm.com>
303
304         * MAINTAINERS (Write After Approval): Add Alan Hayward.
305
306 2018-01-26  Alan Modra  <amodra@gmail.com>
307
308         * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
309         (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
310         Remove nop.  Make const.  Comment.
311         (powerpc32_plt_stub_so_2): New.
312         (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
313         Correct count.  Update uses.
314         (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
315         Move common code reading PLT entry word.  Correct
316         powerpc32_plt_stub PLT address calculation.
317         * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
318         (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
319         (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
320         (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
321         (ppc64_standard_linkage8): Likewise.
322         * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
323         Correct insns description.
324         * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
325
326 2018-01-24  Pedro Alves  <palves@redhat.com>
327
328         GCC PR libstdc++/83906
329         * gdbtypes.c (operator==(const dynamic_prop &,
330         const dynamic_prop &)): New.
331         (operator==(const range_bounds &, const range_bounds &)): New.
332         (check_types_equal): Use them instead of memcmp.
333         * gdbtypes.h (operator==(const dynamic_prop &,
334         const dynamic_prop &)): Declare.
335         (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
336         (operator==(const range_bounds &, const range_bounds &)): Declare.
337         (operator!=(const range_bounds &, const range_bounds &)): Declare.
338
339 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
340
341         * s390-linux-tdep.c (s390_record_address_mask)
342         (s390_record_calc_disp_common, s390_record_calc_disp)
343         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
344         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
345         (s390_process_record): Move to s390-tdep.c.
346         (s390_linux_init_abi_any): Adjust.
347         * s390-tdep.c (s390_record_address_mask)
348         (s390_record_calc_disp_common, s390_record_calc_disp)
349         (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
350         (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
351         (s390_process_record): Moved from s390-linux-tdep.c
352         (s390_gdbarch_init): Adjust.
353
354 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
355
356         * s390-linux-nat.c (s390-tdep.h): New include.
357         * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
358         (HFILES_NO_SRCDIR): Add s390-tdep.h.
359         (ALLDEPFILES): Add s390-tdep.c.
360         * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
361         * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
362         * s390-tdep.h: ...this.  New file.
363         * s390-linux-tdep.c (s390-tdep.h): New include.
364         (_initialize_s390_tdep): Rename to...
365         (_initialize_s390_linux_tdep): ...this and adjust.
366         (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
367         (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
368         s390-tdep.h.
369         (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
370         (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
371         (s390_is_partial_instruction, s390_software_single_step)
372         (is_non_branch_ril, s390_displaced_step_copy_insn)
373         (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
374         (s390_prologue_data, s390_addr, s390_store, s390_load)
375         (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
376         (s390_register_call_saved, s390_guess_tracepoint_registers)
377         (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
378         (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
379         (s390_pseudo_register_name, s390_pseudo_register_type)
380         (s390_pseudo_register_read, s390_pseudo_register_write)
381         (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
382         (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
383         (s390_addr_bits_remove, s390_address_class_type_flags)
384         (s390_address_class_type_flags_to_name)
385         (s390_address_class_name_to_type_flags, s390_effective_inner_type)
386         (s390_function_arg_float, s390_function_arg_vector)
387         (is_power_of_two, s390_function_arg_integer, s390_arg_state)
388         (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
389         (s390_frame_align, s390_register_return_value, s390_return_value)
390         (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
391         (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
392         (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
393         (s390_trad_frame_prev_register, s390_unwind_cache)
394         (s390_prologue_frame_unwind_cache)
395         (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
396         (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
397         (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
398         (s390_stub_frame_this_id, s390_stub_frame_prev_register)
399         (s390_stub_frame_sniffer, s390_stub_frame_unwind)
400         (s390_frame_base_address, s390_local_base_address)
401         (s390_frame_base, s390_gcc_target_options)
402         (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
403         (s390_validate_reg_range, s390_tdesc_valid)
404         (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
405         * s390-tdep.c: ...this.  New file.
406
407 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
408
409         * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
410         (s390_process_record, s390_gdbarch_tdep_alloc)
411         (s390_linux_init_abi_any): Use/set new hook.
412
413 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
414
415         * s390-linux-tdep.c (osabi.h): New include.
416         (s390_linux_init_abi_31, s390_linux_init_abi_64)
417         (s390_linux_init_abi_any): New functions.
418         (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
419
420 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
421
422         * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
423         tdesc_has_registers check
424
425 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
426
427         * s390-linux-tdep.c (s390_tdesc_valid): New function.
428         (s390_validate_reg_range): New macro.
429         (s390_gdbarch_init): Adjust.
430
431 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
432
433         * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
434         (s390_gdbarch_tdep_alloc): Adjust.
435         (s390_gdbarch_init): Adjust.
436
437 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
438
439         * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
440         <have_tdb>: Change type to bool.
441         (s390_gdbarch_tdep_alloc): Adjust.
442         (s390_gdbarch_init): Adjust.
443
444 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
445
446         * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
447         (gdbarch_tdep) <have_upper, have_vx>: New fields.
448         (s390_gdbarch_tdep_alloc): New function.
449         (s390_gdbarch_init): Allocate tdep at start and use its fields
450         instead of separate variables.
451
452 2018-01-23  Philipp Rudo  <prudo@linux.vnet.ibm.com>
453
454         * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
455         when looking for cached gdbarch and add comment for remaining.
456
457 2018-01-22  Pedro Alves  <palves@redhat.com>
458             Sergio Durigan Junior  <sergiodj@redhat.com>
459
460         * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
461         case.
462
463 2018-01-22  Maciej W. Rozycki  <macro@mips.com>
464
465         * MAINTAINERS: Update my company e-mail address.
466
467 2018-01-22  Yao Qi  <yao.qi@linaro.org>
468
469         * regcache.c (cooked_write_test): New function.
470         (_initialize_regcache): Register the test.
471
472 2018-01-22  Yao Qi  <yao.qi@linaro.org>
473
474         * ia64-tdep.c (ia64_pseudo_register_read): Call
475         regcache->cooked_read instead of regcache_cooked_read_unsigned.
476         * m32c-tdep.c (m32c_cat_read): Likewise.
477         (m32c_r3r2r1r0_read): Likewise.
478         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
479         * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
480
481 2018-01-22  Yao Qi  <yao.qi@linaro.org>
482
483         * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
484         method raw_read instead of regcache_raw_read.
485         * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
486         * arm-tdep.c (arm_neon_quad_read): Likewise.
487         * avr-tdep.c (avr_pseudo_register_read): Likewise.
488         * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
489         * frv-tdep.c (frv_pseudo_register_read): Likewise.
490         * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
491         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
492         (i386_pseudo_register_read_into_value): Likewise.
493         * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
494         * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
495         * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
496         * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
497         * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
498         * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
499         * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
500         * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
501         * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
502
503 2018-01-22  Yao Qi  <yao.qi@linaro.org>
504
505         * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
506         * configure.tgt: Remove target mt.
507         * mt-tdep.c: Remove.
508         * regcache.c (cooked_read_test): Remove the check for mt.
509
510 2018-01-22  Yao Qi  <yao.qi@linaro.org>
511
512         * jit.c (jit_frame_prev_register): Call regcache::cooked_read
513         instead of gdbarch_pseudo_register_read_value.
514
515 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
516
517         * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
518         language is Ada.
519
520 2018-01-22  Joel Brobecker  <brobecker@adacore.com>
521
522         * linespec.c (create_sals_line_offset): Remove code that preserved
523         the symtab_and_line's line number.
524
525 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
526
527         * varobj.c (varobj_create): Don't set valid_block when creating a
528         floating varobj.
529
530 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
531
532         * varobj.c (varobj_create): Remove out of date comment.
533
534 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
535
536         PR mi/20395
537         * ada-exp.y (write_var_from_sym): Pass extra parameter when
538         updating innermost block.
539         * parse.c (innermost_block_tracker::update): Take extra type
540         parameter, and check types match before updating innermost block.
541         (write_dollar_variable): Update innermost block for registers.
542         * parser-defs.h (enum innermost_block_tracker_type): New enum.
543         (innermost_block_tracker::innermost_block_tracker): Initialise
544         m_types member.
545         (innermost_block_tracker::reset): Take type parameter.
546         (innermost_block_tracker::update): Take type parameter, and pass
547         type through as needed.
548         (innermost_block_tracker::m_types): New member.
549         * varobj.c (varobj_create): Pass type when reseting innermost
550         block.
551
552 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
553
554         * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
555         * ada-lang.c (resolve_subexp): Likewise.
556         * breakpoint.c (set_breakpoint_condition) Likewise.
557         (watch_command_1) Likewise.
558         * c-exp.y (variable): Likewise.
559         * d-exp.y (PrimaryExpression): Likewise.
560         * f-exp.y (variable): Likewise.
561         * go-exp.y (variable): Likewise.
562         * m2-exp.y (variable): Likewise.
563         * objfiles.c (objfile::~objfile): Likewise.
564         * p-exp.y (variable): Likewise.
565         * parse.c (innermost_block): Change type.
566         * parser-defs.h (class innermost_block_tracker): New.
567         (innermost_block): Change to innermost_block_tracker.
568         * printcmd.c (display_command): Switch to innermost_block API.
569         (do_one_display): Likewise.
570         * rust-exp.y (do_one_display): Likewise.
571         * symfile.c (clear_symtab_users): Likewise.
572         * varobj.c (varobj_create): Switch to innermost_block API, replace
573         use of innermost_block with block stored on varobj object.
574
575 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
576
577         * expression.h (innermost_block): Remove declaration.
578         * varobj.c: Add 'parser-defs.h' include.
579
580 2018-01-19  Tom Tromey  <tom@tromey.com>
581
582         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
583         symbols in the static and global blocks.
584
585 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
586
587         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
588         gdb_ptrace.h, and move including gdb_wait.h ...
589         * nat/linux-ptrace.h: ... to here.
590
591 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
592
593         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
594         inf_ptrace_detach_success.
595         (inf_ptrace_detach_success): Add inferior parameter, use it
596         instead of inferior_ptid, pass it to detach_inferior.
597         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
598         parameter.
599         * inferior.c (detach_inferior): Add overload that takes an
600         inferior object.
601         * inferior.h (detach_inferior): Likewise.
602         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
603         use inferior_ptid, adjust call to inf_ptrace_detach_success.
604         * linux-thread-db.c (thread_db_detach): Use inf parameter.
605
606 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
607
608         * target.h (struct target_ops) <to_detach>: Add inferior
609         parameter.
610         (target_detach): Likewise.
611         * target.c (dispose_inferior): Pass inferior down.
612         (target_detach): Pass inferior down.  Assert that it is equal to
613         the current inferior.
614         * aix-thread.c (aix_thread_detach): Pass inferior down.
615         * corefile.c (core_file_command): Pass current_inferior() down.
616         * corelow.c (core_detach): Add inferior parameter.
617         * darwin-nat.c (darwin_detach): Likewise.
618         * gnu-nat.c (gnu_detach): Likewise.
619         * inf-ptrace.c (inf_ptrace_detach): Likewise.
620         * infcmd.c (detach_command): Pass current_inferior() down to
621         target_detach.
622         * infrun.c (follow_fork_inferior): Pass parent_inf to
623         target_detach.
624         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
625         target_detach.
626         * linux-nat.c (linux_nat_detach): Add inferior parameter.
627         * linux-thread-db.c (thread_db_detach): Likewise.
628         * nto-procfs.c (procfs_detach): Likewise.
629         * procfs.c (procfs_detach): Likewise.
630         * record.c (record_detach): Likewise.
631         * record.h (struct inferior): Forward-declare.
632         (record_detach): Add inferior parameter.
633         * remote-sim.c (gdbsim_detach): Likewise.
634         * remote.c (remote_detach_1): Likewise.
635         (remote_detach): Likewise.
636         (extended_remote_detach): Likewise.
637         * sol-thread.c (sol_thread_detach): Likewise.
638         * target-debug.h (target_debug_print_inferior_p): New macro.
639         * target-delegates.c: Re-generate.
640         * top.c (kill_or_detach): Pass inferior down to target_detach.
641         * windows-nat.c (windows_detach): Add inferior parameter.
642
643 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
644
645         * target.h (struct target_ops) <to_detach>: Remove args
646         parameter.
647         (target_detach): Likewise.
648         * target.c (dispose_inferior): Adjust.
649         (target_detach): Remove args parameter, adjust.
650         * aix-thread.c (aix_thread_detach): Adjust.
651         * corefile.c (core_file_command): Adjust.
652         * corelow.c (core_detach): Adjust.
653         * darwin-nat.c (darwin_detach): Adjust.
654         * gnu-nat.c (gnu_detach): Adjust.
655         * inf-ptrace.c (inf_ptrace_detach): Adjust.
656         * infcmd.c (detach_command): Adjust
657         * infrun.c (follow_fork_inferior): Adjust.
658         (handle_vfork_child_exec_or_exit): Adjust.
659         * linux-fork.c (linux_fork_detach): Remove args parameter.
660         * linux-fork.h (linux_fork_detach): Likewise.
661         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
662         * linux-thread-db.c (thread_db_detach): Likewise.
663         * nto-procfs.c (procfs_detach): Likewise.
664         * procfs.c (procfs_detach): Likewise.
665         (do_detach): Remove signo parameter.
666         * record.c (record_detach): Remove args parameter.
667         * record.h (record_detach): Likewise.
668         * remote-sim.c (gdbsim_detach): Likewise.
669         * remote.c (remote_detach_1): Likewise.
670         (remote_detach): Likewise.
671         (extended_remote_detach): Likewise.
672         * sol-thread.c (sol_thread_detach): Likewise.
673         * target-delegates.c: Re-generate.
674         * top.c (struct qt_args) <args>: Remove field.
675         (kill_or_detach): Don't pass args.
676         (quit_force): Don't set args.
677         * windows-nat.c (windows_detach): Remove args parameter.
678
679 2018-01-19  Yao Qi  <yao.qi@linaro.org>
680
681         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
682         (arm_linux_init_abi): Install it.
683
684 2018-01-19  Yao Qi  <yao.qi@linaro.org>
685
686         * osabi.c (gdb_osabi_names): Extend the regexp for
687         arm-linux-gnueabihf.
688
689 2018-01-18  Yao Qi  <yao.qi@linaro.org>
690
691         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
692         m_abbrevs.
693         (abbrev_table::add_abbrev): Update.
694         (abbrev_table::lookup_abbrev): Update.
695
696 2018-01-18  Yao Qi  <yao.qi@linaro.org>
697
698         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
699
700 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
701
702         * compile/compile.c (compile_to_object): Convert "triplet_rx"
703         to "std::string".
704
705 2018-01-17  Tom Tromey  <tom@tromey.com>
706
707         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
708
709 2018-01-17  Tom Tromey  <tom@tromey.com>
710
711         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
712         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
713         (create_array_type_with_stride): Update.
714         * dwarf2read.c (set_die_type): Update.
715
716 2018-01-17  Tom Tromey  <tom@tromey.com>
717
718         * dwarf2read.c (delayed_method_info): Remove typedef.
719         (dwarf2_cu::method_info): Now a std::vector.
720         (add_to_method_list): Update.
721         (free_delayed_list): Remove.
722         (compute_delayed_physnames): Update.
723         (process_full_comp_unit, process_full_type_unit): Clear the method
724         list.  Remove cleanups.
725         (psymtab_include_file_name): Add name_holder parameter.  Use
726         unique_xmalloc_ptr.
727         (dwarf_decode_lines): Update.
728
729 2018-01-17  Tom Tromey  <tom@tromey.com>
730             Simon Marchi  <simon.marchi@ericsson.com>
731
732         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
733         (dwarf2_per_objfile::free_cached_comp_units)
734         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
735         (init_cutu_and_read_dies_no_follow): Update.
736         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
737         (dwarf2_cu::~dwarf2_cu): New.
738         (free_heap_comp_unit, free_stack_comp_unit): Remove.
739         (age_cached_comp_units, free_one_cached_comp_unit): Update.
740
741 2018-01-17  Tom Tromey  <tom@tromey.com>
742             Simon Marchi  <simon.marchi@ericsson.com>
743
744         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
745         (struct die_reader_specs) <abbrev_table>: New member.
746         (struct abbrev_table): Add constructor.
747         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
748         <abbrev_obstack>: Now an auto_obstack.
749         (abbrev_table_up): New typedef.
750         (init_cu_die_reader): Add abbrev_table parameter.
751         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
752         Add result_dwo_abbrev_table.
753         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
754         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
755         Update.
756         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
757         parameter.
758         (skip_children): Update.
759         (abbrev_table::alloc_abbrev): Rename from
760         abbrev_table_alloc_abbrev.
761         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
762         (abbrev_table::lookup_abbrev): Rename from
763         abbrev_table_lookup_abbrev.
764         (abbrev_table_read_table): Return abbrev_table_up.
765         (abbrev_table_free, abbrev_table_free_cleanup)
766         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
767         (load_partial_dies): Update.
768
769 2018-01-17  Tom Tromey  <tom@tromey.com>
770
771         * dwarf2read.c (dwarf2_compute_name): Update comment.
772         (read_func_scope, read_variable): Update.
773         (new_symbol): Remove.
774         (new_symbol_full): Rename to new_symbol.
775
776 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
777
778         PR gdb/16577
779         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
780         a warning instead of throwing an error, set section size to 0 and return
781         NULL.
782         * gdb_bfd.h (gdb_bfd_map_section): Update description.
783
784 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
785
786         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
787         std::string.
788         (linux_ptrace_attach_fail_reason_string): Likewise.
789         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
790         Likewise.
791         (linux_ptrace_attach_fail_reason_string): Likewise.
792         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
793
794 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
795
796         * linux-nat.c (linux_nat_attach): Remove xstrdup.
797
798 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
799
800         PR gdb/21559
801         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
802         checking for fs_base/gs_base fields in struct user_regs_struct.
803         * configure: Regenerate.
804
805 2018-01-17  Yao Qi  <yao.qi@linaro.org>
806
807         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
808         function.
809         (aarch64_linux_init_abi): Install it to gdbarch hook
810         gcc_target_options.
811
812 2018-01-15  Pedro Alves  <palves@redhat.com>
813
814         * common/signals-state-save-restore.c
815         (save_original_signals_state): Fix typos.
816
817 2017-01-12  Tom Tromey  <tom@tromey.com>
818             Sergio Durigan Junior  <sergiodj@redhat.com>
819
820         * Makefile.in (install-only): Install gdb-add-index.
821
822 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
823
824         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
825
826 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
827
828         * infrun.c (keep_going_pass_signal): Clear step-over info when
829         insert_breakpoints fails.
830
831 2018-01-11  Pedro Alves  <palves@redhat.com>
832
833         PR gdb/22583
834         * infrun.c (resume): Rename to ...
835         (resume_1): ... this.
836         (resume): Reimplement as wrapper around resume_1.
837
838 2018-01-11  Pedro Alves  <palves@redhat.com>
839
840         PR remote/22597
841         * remote.c (remote_parse_stop_reply): Default to the last-set
842         general thread instead of to 'magic_null_ptid'.
843
844 2018-01-10  Pedro Alves  <palves@redhat.com>
845
846         * language.h (language_get_symbol_name_matcher): Rename ...
847         (get_symbol_name_matcher): ... this.
848         * language.c (language_get_symbol_name_matcher): Ditto.
849         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
850         callers adjusted.
851
852 2018-01-10  Pedro Alves  <palves@redhat.com>
853
854         PR gdb/22670
855         * dwarf2read.c
856         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
857         Adjust to use language_get_symbol_name_matcher instead of
858         language_defn::la_get_symbol_name_matcher.
859         * language.c (language_get_symbol_name_matcher): If in Ada mode
860         and the lookup name is a verbatim match, return Ada's matcher.
861         * language.h (language_get_symbol_name_matcher): Adjust comment.
862         (ada_lookup_name_info::verbatim_p):: New method.
863
864 2018-01-10  Pedro Alves  <palves@redhat.com>
865
866         PR gdb/22670
867         * ada-lang.c (ada_collect_symbol_completion_matches): If the
868         minsym's language is language_auto or language_cplus, pass down
869         language_ada instead.
870         * symtab.c (compare_symbol_name): Don't frob symbol language here.
871
872 2018-01-10  Pedro Alves  <palves@redhat.com>
873
874         PR gdb/22670
875         * minsyms.c (linkage_name_str): New function.
876         (iterate_over_minimal_symbols): Use it.
877
878 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
879
880         * NEWS: Document that 'info proc' now works on FreeBSD.
881
882 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
883
884         * configure.ac: Check for kinfo_getfile in libutil.
885         * configure: Regenerate.
886         * config.in: Regenerate.
887         * fbsd-nat.c: Include "fbsd-tdep.h".
888         (fbsd_fetch_cmdline): New.
889         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
890         rather than calling error.
891         (fbsd_info_proc): New.
892         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
893         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
894         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
895
896 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
897
898         * fbsd-nat.c (struct free_deleter): Remove.
899         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
900
901 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
902
903         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
904         NULL for an empty pathname.
905
906 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
907
908         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
909         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
910         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
911         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
912         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
913         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
914         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
915         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
916         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
917         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
918         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
919         (fbsd_core_fetch_timeval, fbsd_print_sigset)
920         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
921         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
922         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
923
924 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
925
926         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
927         (gnu_xfer_auxv): New function.
928         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
929         TARGET_OBJECT_AUXV.
930
931 2018-01-08  Yao Qi  <yao.qi@linaro.org>
932             Simon Marchi  <simon.marchi@ericsson.com>
933
934         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
935         common/selftest.c.
936         (COMMON_OBS): Remove selftest.o.
937         * configure.ac: Append selftest-arch.c and common/selftest.c to
938         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
939         * configure: Re-generated.
940         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
941         GDB_SELF_TEST.
942         (maintenance_info_selftests): Likewise.
943
944 2018-01-08  Xavier Roirand  <roirand@adacore.com>
945
946         * ada-valprint.c (val_print_packed_array_elements): Use
947         proper number of elements when printing an array indexed
948         by an enumeration type.
949
950 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
951
952         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
953         (dw2_get_file_names_reader): Adjust.
954         (lookup_dwo_signatured_type): Adjust.
955         (lookup_dwp_signatured_type): Adjust.
956         (lookup_signatured_type): Adjust.
957         (create_type_unit_group): Adjust.
958         (get_type_unit_group): Adjust.
959         (process_psymtab_comp_unit_reader): Adjust.
960         (build_type_psymtabs_reader): Adjust.
961         (scan_partial_symbols): Adjust.
962         (add_partial_symbol): Adjust.
963         (add_partial_subprogram): Adjust.
964         (peek_die_abbrev): Adjust.
965         (fixup_go_packaging): Adjust.
966         (process_imported_unit_die): Adjust.
967         (dwarf2_compute_name): Adjust.
968         (dwarf2_physname): Adjust.
969         (read_import_statement): Adjust.
970         (handle_DW_AT_stmt_list): Adjust.
971         (read_file_scope): Adjust.
972         (read_func_scope): Adjust.
973         (read_lexical_block_scope): Adjust.
974         (read_call_site_scope): Adjust.
975         (read_variable): Adjust.
976         (dwarf2_rnglists_process): Adjust.
977         (dwarf2_ranges_process): Adjust.
978         (dwarf2_ranges_read): Adjust.
979         (dwarf2_get_pc_bounds): Adjust.
980         (dwarf2_record_block_ranges): Adjust.
981         (dwarf2_add_field): Adjust.
982         (dwarf2_add_member_fn): Adjust.
983         (read_structure_type): Adjust.
984         (process_structure_scope): Adjust.
985         (read_enumeration_type): Adjust.
986         (read_array_type): Adjust.
987         (mark_common_block_symbol_computed): Adjust.
988         (read_common_block): Adjust.
989         (read_namespace_type): Adjust.
990         (read_namespace): Adjust.
991         (read_module_type): Adjust.
992         (read_tag_pointer_type): Adjust.
993         (read_tag_ptr_to_member_type): Adjust.
994         (read_tag_string_type): Adjust.
995         (read_subroutine_type): Adjust.
996         (read_typedef): Adjust.
997         (read_base_type): Adjust.
998         (attr_to_dynamic_prop): Adjust.
999         (read_subrange_type): Adjust.
1000         (read_unspecified_type): Adjust.
1001         (dwarf2_read_abbrevs): Adjust.
1002         (load_partial_dies): Adjust.
1003         (read_partial_die): Adjust.
1004         (find_partial_die): Adjust.
1005         (guess_partial_die_structure_name): Adjust.
1006         (fixup_partial_die): Adjust.
1007         (read_attribute_value): Adjust.
1008         (read_addr_index): Adjust.
1009         (read_addr_index_from_leb128): Adjust.
1010         (read_str_index): Adjust.
1011         (dwarf2_string_attr): Adjust.
1012         (get_debug_line_section): Adjust.
1013         (dwarf_decode_line_header): Adjust.
1014         (lnp_state_machine::check_line_address): Adjust.
1015         (dwarf_decode_lines_1): Adjust.
1016         (dwarf_decode_lines): Adjust.
1017         (dwarf2_start_symtab): Adjust.
1018         (var_decode_location): Adjust.
1019         (new_symbol_full): Adjust.
1020         (dwarf2_const_value_data): Adjust.
1021         (dwarf2_const_value_attr): Adjust.
1022         (dwarf2_const_value): Adjust.
1023         (die_type): Adjust.
1024         (die_containing_type): Adjust.
1025         (build_error_marker_type): Adjust.
1026         (lookup_die_type): Adjust.
1027         (guess_full_die_structure_name): Adjust.
1028         (anonymous_struct_prefix): Adjust.
1029         (determine_prefix): Adjust.
1030         (dwarf2_name): Adjust.
1031         (follow_die_ref_or_sig): Adjust.
1032         (follow_die_offset): Adjust.
1033         (follow_die_ref): Adjust.
1034         (follow_die_sig_1): Adjust.
1035         (follow_die_sig): Adjust.
1036         (get_signatured_type): Adjust.
1037         (get_DW_AT_signature_type): Adjust.
1038         (decode_locdesc): Adjust.
1039         (dwarf_decode_macros): Adjust.
1040         (cu_debug_loc_section): Adjust.
1041         (fill_in_loclist_baton): Adjust.
1042         (dwarf2_symbol_mark_computed): Adjust.
1043         (init_one_comp_unit): Don't assign
1044         dwarf2_cu::dwarf2_per_objfile.
1045         (set_die_type): Adjust.
1046
1047 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
1048
1049         * dwarf2read.c (struct mapped_debug_names): Add constructor.
1050         <dwarf2_per_objfile>: New field.
1051         (dwarf2_per_objfile): Remove global.
1052         (get_dwarf2_per_objfile): New function.
1053         (set_dwarf2_per_objfile): New function.
1054         (dwarf2_build_psymtabs_hard): Change objfile parameter to
1055         dwarf2_per_objfile.
1056         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1057         (read_abbrev_offset): Likewise.
1058         (read_indirect_string): Likewise.
1059         (read_indirect_line_string): Likewise.
1060         (read_indirect_string_at_offset): Likewise.
1061         (read_indirect_string_from_dwz): Likewise.
1062         (dwarf2_find_containing_comp_unit): Change objfile parameter to
1063         dwarf2_per_objfile.
1064         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1065         (create_all_comp_units): Change objfile parameter to
1066         dwarf2_per_objfile.
1067         (create_all_type_units): Likewise.
1068         (process_queue): Add dwarf2_per_objfile parameter.
1069         (read_and_check_comp_unit_head): Likewise.
1070         (lookup_dwo_unit_in_dwp): Likewise.
1071         (get_dwp_file): Likewise.
1072         (process_cu_includes): Likewise.
1073         (struct free_dwo_file_cleanup_data): New struct.
1074         (dwarf2_has_info): Use get_dwarf2_per_objfile and
1075         set_dwarf2_per_objfile.
1076         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
1077         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
1078         context, adjust calls.
1079         (dw2_instantiate_symtab): Likewise.
1080         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
1081         (dw2_get_cu): Likewise.
1082         (create_cu_from_index_list): Change objfile parameter to
1083         dwarf2_per_objfile.
1084         (create_cus_from_index_list): Get dwarf2_per_objfile from
1085         context, adjust calls.
1086         (create_cus_from_index): Likewise.
1087         (create_signatured_type_table_from_index): Change objfile
1088         parameter to dwarf2_per_objfile.
1089         (create_signatured_type_table_from_debug_names): Change objfile
1090         parameter to dwarf2_per_objfile.
1091         (create_addrmap_from_index): Likewise.
1092         (create_addrmap_from_aranges): Likewise.
1093         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
1094         (dw2_setup): Remove.
1095         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
1096         context.
1097         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
1098         get_dwarf2_per_objfile.
1099         (dw2_forget_cached_source_info): Likewise.
1100         (dw2_map_symtabs_matching_filename): Likewise.
1101         (struct dw2_symtab_iterator) <index>: Remove.
1102         <dwarf2_per_objfile>: New field.
1103         (dw2_symtab_iter_init): Replace index parameter with
1104         dwarf2_per_objfile.
1105         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
1106         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
1107         (dw2_print_stats): Likewise.
1108         (dw2_dump): Likewise.
1109         (dw2_expand_symtabs_for_function): Likewise.
1110         (dw2_expand_all_symtabs): Likewise.
1111         (dw2_expand_symtabs_with_fullname): Likewise.
1112         (dw2_expand_marked_cus): Replace index and objfile parameters
1113         with dwarf2_per_objfile.
1114         (dw_expand_symtabs_matching_file_matcher): Add
1115         dwarf2_per_objfile parameter and adjust calls.
1116         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
1117         adjust calls.
1118         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
1119         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
1120         adjust calls.
1121         (create_cus_from_debug_names_list): Replace objfile parameter
1122         with dwarf2_per_objfile and adjust calls.
1123         (create_cus_from_debug_names): Likewise.
1124         (dwarf2_read_debug_names): Likewise.
1125         (mapped_debug_names::namei_to_name): Adjust call.
1126         (dw2_debug_names_iterator::next): Likewise.
1127         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
1128         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
1129         (dw2_debug_names_dump): Likewise.
1130         (dw2_debug_names_expand_symtabs_for_function): Likewise.
1131         (dw2_debug_names_expand_symtabs_matching): Likewise.
1132         (dwarf2_initialize_objfile): Likewise.
1133         (dwarf2_build_psymtabs): Likewise.
1134         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
1135         this_cu.
1136         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
1137         (read_and_check_comp_unit_head): Likewise.
1138         (read_abbrev_offset): Likewise.
1139         (create_debug_type_hash_table): Likewise.
1140         (create_debug_types_hash_table): Likewise.
1141         (create_all_type_units): Replace objfile parameter with
1142         dwarf2_per_objfile.
1143         (add_type_unit): Add dwarf2_per_objfile parameter.
1144         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
1145         with dwarf2_per_objfile.
1146         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
1147         (lookup_dwp_signatured_type): Likewise.
1148         (lookup_signatured_type): Likewise.
1149         (read_cutu_die_from_dwo): Likewise.
1150         (init_tu_and_read_dwo_dies): Likewise.
1151         (init_cutu_and_read_dies): Likewise.
1152         (init_cutu_and_read_dies_no_follow): Likewise.
1153         (allocate_type_unit_groups_table): Add objfile parameter.
1154         (create_type_unit_group): Use dwarf2_per_objfile from cu.
1155         (get_type_unit_group): Likewise.
1156         (process_psymtab_comp_unit): Update call.
1157         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
1158         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
1159         (print_tu_stats): Likewise.
1160         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
1161         in void* parameter.
1162         (build_type_psymtabs): Change objfile parameter to
1163         dwarf2_per_objfile.
1164         (process_skeletonless_type_unit): Use dwarf2_per_objfile
1165         passed in void* parameter.
1166         (process_skeletonless_type_units): Change objfile parameter to
1167         dwarf2_per_objfile.
1168         (set_partial_user): Likewise.
1169         (dwarf2_build_psymtabs_hard): Likewise.
1170         (read_comp_units_from_section): Likewise.
1171         (create_all_comp_units): Likewise.
1172         (scan_partial_symbols): Update calls.
1173         (add_partial_symbol): Likewise.
1174         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
1175         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
1176         (process_queue): Add dwarf2_per_objfile parameter.
1177         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
1178         (compute_compunit_symtab_includes): Likewise.
1179         (process_cu_includes): Add dwarf2_per_objfile parameter.
1180         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
1181         (process_full_type_unit): Likewise.
1182         (process_imported_unit_die): Update call.
1183         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
1184         (read_file_scope): Likewise.
1185         (allocate_dwo_file_hash_table): Add objfile parameter.
1186         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
1187         (create_cus_hash_table): Likewise.
1188         (create_dwp_hash_table): Likewise.
1189         (create_dwo_unit_in_dwp_v1): Likewise.
1190         (create_dwp_v2_section): Likewise.
1191         (create_dwo_unit_in_dwp_v2): Likewise.
1192         (lookup_dwo_unit_in_dwp): Likewise.
1193         (try_open_dwop_file): Likewise.
1194         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
1195         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
1196         cleanup to include a reference to dwarf2_per_objfile.
1197         (open_dwp_file): Add dwarf2_per_objfile parameter.
1198         (open_and_init_dwp_file): Likewise.
1199         (get_dwp_file): Likewise.
1200         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
1201         (queue_and_load_all_dwo_tus): Update call.
1202         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
1203         data.
1204         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
1205         (dwarf2_ranges_process): Likewise.
1206         (dwarf2_get_pc_bounds): Likewise.
1207         (mark_common_block_symbol_computed): Likewise.
1208         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1209         (dwarf2_read_abbrevs): Update call.
1210         (read_partial_die): Use dwarf2_per_objfile from cu.
1211         (find_partial_die): Likewise.
1212         (fixup_partial_die): Likewise.
1213         (read_attribute_value): Likewise.
1214         (read_indirect_string_at_offset_from): Add objfile parameter.
1215         (read_indirect_string_at_offset): Add dwarf2_per_objfile
1216         parameter.
1217         (read_indirect_string_from_dwz): Add objfile parameter.
1218         (read_indirect_string): Add objfile parameter.
1219         (read_addr_index_1): Add dwarf2_per_objfile parameter.
1220         (read_addr_index): Use dwarf2_per_objfile from cu.
1221         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
1222         call dw2_setup.
1223         (read_str_index): Use dwarf2_per_objfile from cu.
1224         (get_debug_line_section): Likewise.
1225         (read_formatted_entries): Add dwarf2_per_objfile parameter.
1226         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
1227         (new_symbol_full): Use dwarf2_per_objfile from cu.
1228         (build_error_marker_type): Likewise.
1229         (lookup_die_type): Likewise.
1230         (determine_prefix): Likewise.
1231         (follow_die_offset): Likewise.
1232         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
1233         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
1234         (dwarf2_fetch_die_type_sect_off): Likewise.
1235         (dwarf2_get_die_type): Likewise.
1236         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
1237         (get_signatured_type): Likewise.
1238         (get_DW_AT_signature_type): Likewise.
1239         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
1240         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
1241         (cu_debug_loc_section): Likewise.
1242         (fill_in_loclist_baton): Likewise.
1243         (dwarf2_symbol_mark_computed): Likewise.
1244         (dwarf2_find_containing_comp_unit): Change objfile parameter to
1245         dwarf2_per_objfile.
1246         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
1247         parameter.
1248         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1249         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
1250         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
1251         (set_die_type): Use dwarf2_free_objfile from cu.
1252         (get_die_type_at_offset): Likewise.
1253         (dwarf2_per_objfile_free): Don't assign global variable.
1254         (debug_names) <constructor>: Add dwarf2_per_objfile
1255         parameter, update m_debugstrlookup construction.
1256         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
1257         parameter.
1258         <m_dwarf2_per_objfile>: New field.
1259         <lookup>: Use m_dwarf2_per_objfile.
1260         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
1261         (psyms_seen_size): Likewise.
1262         (write_gdbindex): Replace objfile parameter with
1263         dwarf2_per_objfile.
1264         (write_debug_names): Likewise.
1265         (write_psymtabs_to_index): Likewise.
1266         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
1267         calls.
1268
1269 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
1270
1271         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
1272         <dwarf2_per_objfile>: New field.
1273         (struct dwarf2_per_cu_data) <objfile>: Remove.
1274         <dwarf2_per_objfile>: New field.
1275         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
1276         of objfile.
1277         (create_signatured_type_table_from_index): Likewise.
1278         (create_debug_type_hash_table): Likewise.
1279         (fill_in_sig_entry_from_dwo_entry): Likewise.
1280         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
1281         (create_type_unit_group): Assign dwarf2_per_objfile instead of
1282         objfile.
1283         (create_partial_symtab): Access objfile through
1284         dwarf2_per_objfile.
1285         (process_psymtab_comp_unit_reader): Likewise.
1286         (read_comp_units_from_section): Likewise.
1287         (scan_partial_symbols): Likewise.
1288         (add_partial_symbol): Likewise.
1289         (add_partial_subprogram): Likewise.
1290         (peek_die_abbrev): Likewise.
1291         (fixup_go_packaging): Likewise.
1292         (process_full_comp_unit): Likewise.
1293         (process_full_type_unit): Likewise.
1294         (process_imported_unit_die): Likewise.
1295         (dwarf2_compute_name): Likewise.
1296         (dwarf2_physname): Likewise.
1297         (read_import_statement): Likewise.
1298         (create_cus_hash_table): Assign dwarf2_physname instead of
1299         objfile.
1300         (read_func_scope): Access objfile through dwarf2_per_objfile.
1301         (read_lexical_block_scope): Likewise.
1302         (read_call_site_scope): Likewise.
1303         (read_variable): Likewise.
1304         (dwarf2_rnglists_process): Likewise.
1305         (dwarf2_ranges_process): Likewise.
1306         (dwarf2_ranges_read): Likewise.
1307         (dwarf2_record_block_ranges): Likewise.
1308         (dwarf2_add_field): Likewise.
1309         (dwarf2_add_member_fn): Likewise.
1310         (read_structure_type): Likewise.
1311         (process_structure_scope): Likewise.
1312         (read_enumeration_type): Likewise.
1313         (read_array_type): Likewise.
1314         (read_common_block): Likewise.
1315         (read_namespace_type): Likewise.
1316         (read_namespace): Likewise.
1317         (read_module_type): Likewise.
1318         (read_tag_pointer_type): Likewise.
1319         (read_tag_ptr_to_member_type): Likewise.
1320         (read_tag_string_type): Likewise.
1321         (read_subroutine_type): Likewise.
1322         (read_typedef): Likewise.
1323         (read_base_type): Likewise.
1324         (attr_to_dynamic_prop): Likewise.
1325         (read_subrange_type): Likewise.
1326         (read_unspecified_type): Likewise.
1327         (load_partial_dies): Likewise.
1328         (read_partial_die): Likewise.
1329         (find_partial_die): Likewise.
1330         (guess_partial_die_structure_name): Likewise.
1331         (fixup_partial_die): Likewise.
1332         (read_attribute_value): Likewise.
1333         (read_addr_index_from_leb128): Likewise.
1334         (dwarf2_read_addr_index): Likewise.
1335         (dwarf2_string_attr): Likewise.
1336         (lnp_state_machine::check_line_address): Likewise.
1337         (dwarf_decode_lines_1): Likewise.
1338         (dwarf_decode_lines): Likewise.
1339         (dwarf2_start_symtab): Likewise.
1340         (var_decode_location): Likewise.
1341         (new_symbol_full): Likewise.
1342         (dwarf2_const_value_data): Likewise.
1343         (dwarf2_const_value_attr): Likewise.
1344         (dwarf2_const_value): Likewise.
1345         (die_type): Likewise.
1346         (die_containing_type): Likewise.
1347         (lookup_die_type): Likewise.
1348         (guess_full_die_structure_name): Likewise.
1349         (anonymous_struct_prefix): Likewise.
1350         (dwarf2_name): Likewise.
1351         (follow_die_ref_or_sig): Likewise.
1352         (follow_die_offset): Likewise.
1353         (follow_die_ref): Likewise.
1354         (dwarf2_fetch_die_loc_sect_off): Likewise.
1355         (dwarf2_fetch_constant_bytes): Likewise.
1356         (dwarf2_fetch_die_type_sect_off): Likewise.
1357         (dwarf2_get_die_type): Likewise.
1358         (follow_die_sig): Likewise.
1359         (decode_locdesc): Likewise.
1360         (dwarf2_per_cu_objfile): Likewise.
1361         (dwarf2_per_cu_text_offset): Likewise.
1362         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
1363         objfile.
1364         (set_die_type): Access objfile through
1365         dwarf2_per_objfile.
1366
1367 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
1368
1369         * valprint.c (converted_character_d): Remove typedef.
1370         (DEF_VEC_O (converted_character_d)): Remove.
1371         (count_next_character): Use std::vector.
1372         (print_converted_chars_to_obstack): Likewise.
1373         (generic_printstr): Likewise.
1374
1375 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
1376
1377         * xml-support.h (struct gdb_xml_value): Add constructor.
1378         <value>: Change type to unique_xmalloc_ptr.
1379         (gdb_xml_value_s): Remove typedef.
1380         (DEF_VEC_O (gdb_xml_value_s)): Remove.
1381         (gdb_xml_element_start_handler): Change parameter type to
1382         std::vector.
1383         (xml_find_attribute): Likewise.
1384         * xml-support.c (xml_find_attribute): Change parameter type to
1385         std::vector and adjust.
1386         (gdb_xml_values_cleanup): Remove.
1387         (gdb_xml_parser::start_element): Adjust to std::vector.
1388         (xinclude_start_include): Change paraeter type to std::vector
1389         and adjust.
1390         * btrace.c (check_xml_btrace_version): Likewise.
1391         (parse_xml_btrace_block): Likewise.
1392         (parse_xml_btrace_pt_config_cpu): Likewise.
1393         (parse_xml_btrace_pt): Likewise.
1394         (parse_xml_btrace_conf_bts): Likewise.
1395         (parse_xml_btrace_conf_pt): Likewise.
1396         * memory-map.c (memory_map_start_memory): Likewise.
1397         (memory_map_start_property): Likewise.
1398         * osdata.c (osdata_start_osdata): Likewise.
1399         (osdata_start_item): Likewise.
1400         (osdata_start_column): Likewise.
1401         * remote.c (start_thread): Likewise.
1402         * solib-aix.c (library_list_start_library): Likewise.
1403         (library_list_start_list): Likewise.
1404         * solib-svr4.c (library_list_start_library): Likewise.
1405         (svr4_library_list_start_list): Likewise.
1406         * solib-target.c (library_list_start_segment): Likewise.
1407         (library_list_start_section): Likewise.
1408         (library_list_start_library): Likewise.
1409         (library_list_start_list): Likewise.
1410         * tracepoint.c (traceframe_info_start_memory): Likewise.
1411         (traceframe_info_start_tvar): Likewise.
1412         * xml-syscall.c (syscall_start_syscall): Likewise.
1413         * xml-tdesc.c (tdesc_start_target): Likewise.
1414         (tdesc_start_feature): Likewise.
1415         (tdesc_start_reg): Likewise.
1416         (tdesc_start_union): Likewise.
1417         (tdesc_start_struct): Likewise.
1418         (tdesc_start_flags): Likewise.
1419         (tdesc_start_enum): Likewise.
1420         (tdesc_start_field): Likewise.
1421         (tdesc_start_enum_value): Likewise.
1422         (tdesc_start_vector): Likewise.
1423
1424 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
1425
1426         * extension.h (struct xmethod_worker) <clone>: Remove.
1427         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
1428         Remove.
1429         (python_xmethod_worker::clone): Remove.
1430         * valops.c (find_overload_match): Use std::move instead of
1431         clone.
1432
1433 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
1434
1435         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
1436         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
1437         <free_xmethod_worker_data>: Remove.
1438         <get_matching_xmethod_workers>: Chance VEC to std::vector.
1439         <get_xmethod_arg_types>: Remove.
1440         <get_xmethod_result_type>: Remove.
1441         <invoke_xmethod>: Remove.
1442         * extension.c (new_xmethod_worker): Remove.
1443         (clone_xmethod_worker): Remove.
1444         (get_matching_xmethod_workers): Return void, pass std::vector by
1445         pointer.
1446         (get_xmethod_arg_types): Rename to...
1447         (xmethod_worker::get_arg_types): ... this, and adjust.
1448         (get_xmethod_result_type): Rename to...
1449         (xmethod_worker::get_result_type): ... this, and adjust.
1450         (invoke_xmethod): Remove.
1451         (free_xmethod_worker): Remove.
1452         (free_xmethod_worker_vec): Remove.
1453         * extension.h (enum ext_lang_rc): Move here from
1454         extension-priv.h.
1455         (struct xmethod_worker): Add constructor and destructor.
1456         <data>: Remove.
1457         <value>: Remove.
1458         <invoke, clone, do_get_result_type, do_get_arg_types>: New
1459         virtual pure methods.
1460         <get_arg_types, get_result_type>: New methods.
1461         (xmethod_worker_ptr): Remove typedef.
1462         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
1463         (xmethod_worker_vec): Remove typedef.
1464         (xmethod_worker_up): New typedef.
1465         (invoke_xmethod): Remove.
1466         (clone_xmethod_worker): Remove.
1467         (free_xmethod_worker): Remove.
1468         (free_xmethod_worker_vec): Remove.
1469         (get_xmethod_arg_types): Remove.
1470         (get_xmethod_result_type): Remove.
1471         * valops.c (find_method_list): Use std::vector, don't use
1472         intermediate vector.
1473         (value_find_oload_method_list): Use std::vector.
1474         (find_overload_match): Use std::vector.
1475         (find_oload_champ): Use std::vector.
1476         * value.c (value_free): Use operator delete.
1477         (value_of_xmethod): Rename to...
1478         (value_from_xmethod): ... this.  Don't assign
1479         xmethod_worker::value, take rvalue-reference.
1480         (result_type_of_xmethod): Adjust.
1481         (call_xmethod): Adjust.
1482         * value.h: Include extension.h.
1483         (struct xmethod_worker): Don't forward-declare.
1484         (value_of_xmethod): Rename to...
1485         (value_from_xmethod): ... this, take rvalue-reference.
1486         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
1487         (struct python_xmethod_worker): ... this, add constructor and
1488         destructor.
1489         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
1490         (gdbpy_free_xmethod_worker_data): Rename to...
1491         (python_xmethod_worker::~python_xmethod_worker): ... this and
1492         adjust.
1493         (gdbpy_clone_xmethod_worker_data): Rename to...
1494         (python_xmethod_worker::clone): ... this and adjust.
1495         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
1496         temporary vector.
1497         (gdbpy_get_xmethod_arg_types): Rename to...
1498         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
1499         (gdbpy_get_xmethod_result_type): Rename to...
1500         (python_xmethod_worker::do_get_result_type): ... this and
1501         adjust.
1502         (gdbpy_invoke_xmethod): Rename to...
1503         (python_xmethod_worker::invoke): ... this and adjust.
1504         (new_python_xmethod_worker): Rename to...
1505         (python_xmethod_worker::python_xmethod_worker): ... this and
1506         adjust.
1507         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
1508         Remove.
1509         (gdbpy_free_xmethod_worker_data): Remove.
1510         (gdbpy_get_matching_xmethod_workers): Use std::vector.
1511         (gdbpy_get_xmethod_arg_types): Remove.
1512         (gdbpy_get_xmethod_result_type): Remove.
1513         (gdbpy_invoke_xmethod): Remove.
1514         * python/python.c (python_extension_ops): Remove obsolete
1515         callbacks.
1516
1517 2018-01-05  Pedro Alves  <palves@redhat.com>
1518
1519         PR gdb/18653
1520         * common/signals-state-save-restore.c
1521         (save_original_signals_state): New parameter 'quiet'.  Warn if we
1522         find a custom handler preinstalled, instead of internal erroring.
1523         But only warn if !quiet.
1524         * common/signals-state-save-restore.h
1525         (save_original_signals_state): New parameter 'quiet'.
1526         * main.c (captured_main_1): Move save_original_signals_state call
1527         after option handling, and pass QUIET.
1528
1529 2018-01-05  Pedro Alves  <palves@redhat.com>
1530
1531         * spu-tdep.c (spu_catch_start): Pass
1532         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
1533
1534 2018-01-05  Pedro Alves  <palves@redhat.com>
1535
1536         PR gdb/22670
1537         * ada-lang.c (literal_symbol_name_matcher): New function.
1538         (ada_get_symbol_name_matcher): Use it for
1539         symbol_name_match_type::SEARCH_NAME.
1540         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
1541         it down instead of assuming symbol_name_match_type::FULL.
1542         * block.h (block_lookup_symbol): New parameter 'match_type'.
1543         * c-valprint.c (print_unpacked_pointer): Use
1544         lookup_symbol_search_name instead of lookup_symbol.
1545         * compile/compile-object-load.c (get_out_value_type): Pass down
1546         symbol_name_match_type::SEARCH_NAME.
1547         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
1548         symbol_name_match_type::FULL.
1549         * cp-support.c (cp_get_symbol_name_matcher): Handle
1550         symbol_name_match_type::SEARCH_NAME.
1551         * infrun.c (insert_exception_resume_breakpoint): Use
1552         lookup_symbol_search_name.
1553         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
1554         * psymtab.c (maintenance_check_psymtabs): Use
1555         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
1556         * stack.c (print_frame_args): Use lookup_symbol_search_name and
1557         SYMBOL_SEARCH_NAME.
1558         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
1559         if symbol_name_match_type::SEARCH_NAME.
1560         (lookup_symbol_in_language): Pass down
1561         symbol_name_match_type::FULL.
1562         (lookup_symbol_search_name): New.
1563         (lookup_language_this): Pass down
1564         symbol_name_match_type::SEARCH_NAME.
1565         (lookup_symbol_aux, lookup_local_symbol): New parameter
1566         'match_type'.  Pass it down.
1567         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
1568         (lookup_symbol_search_name): New declaration.
1569         (lookup_symbol_in_block): New 'match_type' parameter.
1570
1571 2018-01-05  Pedro Alves  <palves@redhat.com>
1572
1573         PR gdb/22670
1574         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
1575         ada_lookup_symbol.
1576         (ada_lookup_symbol): Reimplement in terms of
1577         ada_lookup_symbol_list, bits factored out from
1578         ada_lookup_encoded_symbol.
1579
1580 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1581
1582         * ada-exp.y (write_object_renaming): When subscripting an array
1583         using a symbol as the index, pass the block in call to
1584         ada_lookup_encoded_symbol when looking that symbol up.
1585
1586 2018-01-05  Jerome Guitton  <guitton@adacore.com>
1587
1588         * ada-lang.c (ada_array_length): Use ada_index_type instead of
1589         TYPE_INDEX_TYPE.
1590
1591 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1592
1593         * ada-lang.c (ada_to_fixed_value_create): Add handling of
1594         the case where VALUE_LVAL (val0) is not lval_memory.
1595
1596 2018-01-05  Xavier Roirand  <roirand@adacore.com>
1597
1598         * ada-valprint.c (print_optional_low_bound): Handle
1599         character-indexed array printing like boolean-indexed array
1600         printing.
1601
1602 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1603
1604         * NEWS: Create a new section for the next release branch.
1605         Rename the section of the current branch, now that it has
1606         been cut.
1607
1608 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1609
1610         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
1611         * version.in: Bump version to 8.1.50.DATE-git.
1612
1613 2018-01-03  Xavier Roirand  <roirand@adacore.com>
1614
1615         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
1616         Add field.
1617         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
1618         Add field.
1619         (default_exception_support_info) <catch_handlers_sym>: Add field.
1620         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
1621         (ada_exception_name_addr_1): Add "catch handlers" handling.
1622         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
1623         Update all callers.
1624         (create_excep_cond_exprs) <ex>: Add parameter.
1625         (re_set_exception): Update create_excep_cond_exprs call.
1626         (print_it_exception, print_one_exception, print_mention_exception)
1627         (print_recreate_exception): Add "catch handler" handling.
1628         (allocate_location_catch_handlers, re_set_catch_handlers)
1629         (check_status_catch_handlers, print_it_catch_handlers)
1630         (print_one_catch_handlers, print_mention_catch_handlers)
1631         (print_recreate_catch_handlers): New function.
1632         (catch_handlers_breakpoint_ops): New variable.
1633         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
1634         Add parameter.  Add "catch handler" handling.
1635         (ada_exception_sym_name, ada_exception_breakpoint_ops):
1636         Add "catch handler" handling.
1637         (ada_exception_catchpoint_cond_string): Add "catch handler"
1638         handling.
1639         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
1640         call.
1641         (catch_ada_handlers_command): New function.
1642         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
1643         operations structure.
1644         (_initialize_ada_language): Add "catch handlers" command entry.
1645         * NEWS: Document "catch handlers" feature.
1646
1647 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1648
1649         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
1650         account when creating the array type of the slice.
1651         (ada_value_slice): Likewise.
1652
1653 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1654
1655         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
1656         New enum value.
1657         (create_array_type_with_stride): Add byte_stride_prop parameter.
1658         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
1659         New parameter.  Update all callers in this file.
1660         (array_type_has_dynamic_stride): New function.
1661         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
1662         of arrays with dynamic byte strides.
1663         * dwarf2read.c (read_array_type): Add support for dynamic
1664         DW_AT_byte_stride attributes.
1665
1666 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1667
1668         * dwarf2read.c (read_unspecified_type): Treat
1669         DW_TAG_enumeration_type DIEs from Ada units as stubs.
1670
1671 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1672
1673         Update copyright year range in all GDB files.
1674
1675 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1676
1677         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
1678         and gdb/testsuite/gdb.base/step-line.c.
1679
1680 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1681
1682         * copyright.py (main): Dump the contents of
1683         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
1684         even if BY_HAND is empty.
1685
1686 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1687
1688         * top.c (print_gdb_version): Update Copyright year in version
1689         message.
1690
1691 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1692
1693         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
1694
1695 For older changes see ChangeLog-2017.
1696 \f
1697 Local Variables:
1698 mode: change-log
1699 left-margin: 8
1700 fill-column: 74
1701 version-control: never
1702 coding: utf-8
1703 End: