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