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