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