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