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