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