Garbage collect remote.c:remote_async_terminal_ours_p
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-10-26 Pedro Alves <palves@redhat.com>
2
3 * remote.c (remote_async_terminal_ours_p): Delete.
4 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
5 Remove references to 'remote_async_terminal_ours_p'.
6
7 2017-10-26 Yao Qi <yao.qi@linaro.org>
8
9 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
10
11 2017-10-26 Yao Qi <yao.qi@linaro.org>
12
13 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
14 aspace const.
15 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
16 Likewise.
17 * breakpoint.c (bpstat_check_location): Remove cast.
18 (breakpoint_hit_catch_fork): Make aspce const.
19 (breakpoint_hit_catch_solib): Likewise.
20 (breakpoint_hit_catch_exec): Likewise.
21 (breakpoint_hit_ranged_breakpoint): Likewise.
22 (breakpoint_hit_watchpoint): Likewise.
23 (base_breakpoint_breakpoint_hit): Likewise.
24 (bkpt_breakpoint_hit): Likewise.
25 (dprintf_breakpoint_hit): Likewise.
26 (tracepoint_breakpoint_hit): Likewise.
27 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
28
29 2017-10-26 Yao Qi <yao.qi@linaro.org>
30
31 * breakpoint.c (breakpoint_location_address_match): Change
32 "struct address_space *" to "const address_space".
33 (breakpoint_location_address_range_overlap): Likewise.
34 (breakpoint_here_p): Likewise.
35 (breakpoint_in_range_p): Likewise.
36 (moribund_breakpoint_here_p): Likewise.
37 (bp_location_inserted_here_p): Likewise.
38 (software_breakpoint_inserted_here_p): Likewise.
39 (hardware_breakpoint_inserted_here_p): Likewise.
40 (hardware_watchpoint_inserted_in_range): Likewise.
41 (bpstat_check_location): Likewise.
42 (bpstat_stop_status): Likewise.
43 (breakpoint_address_match): Likewise.
44 (breakpoint_address_match_range): Likewise.
45 (breakpoint_location_address_match): Likewise.
46 (breakpoint_location_address_range_overlap): Likewise.
47 (insert_single_step_breakpoint): Likewise.
48 (breakpoint_has_location_inserted_here): Likewise.
49 (single_step_breakpoint_inserted_here_p): Likewise.
50 (pc_at_non_inline_function): Likewise.
51 * breakpoint.h (bpstat_stop_status): Update declaration.
52 (breakpoint_here_p): Likewise.
53 (breakpoint_in_range_p): Likewise.
54 (moribund_breakpoint_here_p): Likewise.
55 (breakpoint_inserted_here_p): Likewise.
56 (software_breakpoint_inserted_here_p): Likewise.
57 (hardware_breakpoint_inserted_here_p): Likewise.
58 (breakpoint_has_location_inserted_here): Likewise.
59 (single_step_breakpoint_inserted_here_p): Likewise.
60 (hardware_watchpoint_inserted_in_range): Likewise.
61 (breakpoint_address_match): Likewise.
62 (insert_single_step_breakpoint): Likewise.
63 (pc_at_non_inline_function): Likewise.
64 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
65 * record.c (record_check_stopped_by_breakpoint): Likewise.
66 * record.h (record_check_stopped_by_breakpoint): Likewise.
67 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
68
69 2017-10-25 Yao Qi <yao.qi@linaro.org>
70
71 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
72 regcache->arch () instead get_regcache_arch.
73 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
74 Likewise.
75 (aarch64_fbsd_store_inferior_registers): Likewise.
76 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
77 (store_gregs_to_thread): Likewise.
78 (fetch_fpregs_from_thread): Likewise.
79 (store_fpregs_to_thread): Likewise.
80 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
81 (aarch64_store_return_value): Likewise.
82 (aarch64_software_single_step): Likewise.
83 * aix-thread.c (aix_thread_wait): Likewise.
84 (supply_reg32): Likewise.
85 (supply_sprs64): Likewise.
86 (supply_sprs32): Likewise.
87 (fill_gprs64): Likewise.
88 (fill_gprs32): Likewise.
89 (fill_sprs64): Likewise.
90 (fill_sprs32): Likewise.
91 (store_regs_user_thread): Likewise.
92 (store_regs_kernel_thread): Likewise.
93 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
94 (alphabsd_store_inferior_registers): Likewise.
95 * alpha-tdep.c (alpha_extract_return_value): Likewise.
96 (alpha_store_return_value): Likewise.
97 (alpha_deal_with_atomic_sequence): Likewise.
98 (alpha_next_pc): Likewise.
99 (alpha_software_single_step): Likewise.
100 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
101 (amd64bsd_store_inferior_registers): Likewise.
102 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
103 Likewise.
104 (amd64_linux_store_inferior_registers): Likewise.
105 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
106 (amd64_collect_native_gregset): Likewise.
107 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
108 (amd64obsd_collect_uthread): Likewise.
109 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
110 (amd64_collect_fpregset): Likewise.
111 (amd64_supply_fxsave): Likewise.
112 (amd64_supply_xsave): Likewise.
113 (amd64_collect_fxsave): Likewise.
114 (amd64_collect_xsave): Likewise.
115 * arc-tdep.c (arc_write_pc): Likewise.
116 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
117 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
118 (arm_fbsd_store_inferior_registers): Likewise.
119 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
120 (store_vfp_regs): Likewise.
121 (arm_linux_fetch_inferior_registers): Likewise.
122 (arm_linux_store_inferior_registers): Likewise.
123 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
124 (arm_linux_sigreturn_next_pc): Likewise.
125 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
126 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
127 (fetch_register): Likewise.
128 (store_register): Likewise.
129 * arm-tdep.c (arm_is_thumb): Likewise.
130 (displaced_in_arm_mode): Likewise.
131 (bx_write_pc): Likewise.
132 (arm_get_next_pcs_addr_bits_remove): Likewise.
133 (arm_software_single_step): Likewise.
134 (arm_extract_return_value): Likewise.
135 (arm_store_return_value): Likewise.
136 (arm_write_pc): Likewise.
137 * bfin-tdep.c (bfin_extract_return_value): Likewise.
138 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
139 (bsd_uthread_store_registers): Likewise.
140 * core-regset.c (fetch_core_registers): Likewise.
141 * corelow.c (get_core_registers): Likewise.
142 * cris-tdep.c (cris_store_return_value): Likewise.
143 (cris_extract_return_value): Likewise.
144 (find_step_target): Likewise.
145 (find_step_target): Likewise.
146 (cris_software_single_step): Likewise.
147 * ctf.c (ctf_fetch_registers): Likewise.
148 * darwin-nat.c (cancel_breakpoint): Likewise.
149 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
150 * frv-tdep.c (frv_extract_return_value): Likewise.
151 * ft32-tdep.c (ft32_store_return_value): Likewise.
152 (ft32_extract_return_value): Likewise.
153 * go32-nat.c (fetch_register): Likewise.
154 (go32_fetch_registers): Likewise.
155 (go32_store_registers): Likewise.
156 (store_register): Likewise.
157 * h8300-tdep.c (h8300_extract_return_value): Likewise.
158 (h8300_store_return_value): Likewise.
159 * hppa-linux-nat.c (fetch_register): Likewise.
160 (store_register): Likewise.
161 (hppa_linux_fetch_inferior_registers): Likewise.
162 (hppa_linux_store_inferior_registers): Likewise.
163 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
164 (i386_darwin_store_inferior_registers): Likewise.
165 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
166 (gnu_store_registers): Likewise.
167 * i386-linux-nat.c (fetch_register): Likewise.
168 (store_register): Likewise.
169 (supply_gregset): Likewise.
170 (fill_gregset): Likewise.
171 (i386_linux_fetch_inferior_registers): Likewise.
172 (i386_linux_store_inferior_registers): Likewise.
173 (i386_linux_resume): Likewise.
174 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
175 Likewise.
176 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
177 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
178 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
179 (i386obsd_collect_uthread): Likewise.
180 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
181 (i386_supply_gregset): Likewise.
182 (i386_collect_gregset): Likewise.
183 (i386_supply_fpregset): Likewise.
184 (i386_collect_fpregset): Likewise.
185 (i386_mpx_bd_base): Likewise.
186 * i386-v4-nat.c (supply_fpregset): Likewise.
187 (fill_fpregset): Likewise.
188 * i387-tdep.c (i387_supply_fsave): Likewise.
189 (i387_collect_fsave): Likewise.
190 (i387_supply_fxsave): Likewise.
191 (i387_collect_fxsave): Likewise.
192 (i387_supply_xsave): Likewise.
193 (i387_collect_xsave): Likewise.
194 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
195 (ia64_linux_store_registers): Likewise.
196 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
197 (ia64_extract_return_value): Likewise.
198 (ia64_store_return_value): Likewise.
199 (find_func_descr): Likewise.
200 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
201 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
202 (inf_ptrace_store_registers): Likewise.
203 * infrun.c (use_displaced_stepping): Likewise.
204 (displaced_step_prepare_throw): Likewise.
205 (resume): Likewise.
206 (proceed): Likewise.
207 (do_target_wait): Likewise.
208 (adjust_pc_after_break): Likewise.
209 (handle_inferior_event_1): Likewise.
210 (handle_signal_stop): Likewise.
211 (save_infcall_suspend_state): Likewise.
212 (restore_infcall_suspend_state): Likewise.
213 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
214 * jit.c (jit_frame_prev_register): Likewise.
215 * linux-nat.c (save_stop_reason): Likewise.
216 (linux_nat_wait_1): Likewise.
217 (resume_stopped_resumed_lwps): Likewise.
218 * linux-record.c (record_linux_sockaddr): Likewise.
219 (record_linux_msghdr): Likewise.
220 (record_linux_system_call): Likewise.
221 * linux-tdep.c (linux_collect_thread_registers): Likewise.
222 * lm32-tdep.c (lm32_extract_return_value): Likewise.
223 (lm32_store_return_value): Likewise.
224 * m32c-tdep.c (m32c_read_flg): Likewise.
225 (m32c_pseudo_register_read): Likewise.
226 (m32c_pseudo_register_write): Likewise.
227 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
228 (m32r_linux_collect_gregset): Likewise.
229 * m32r-tdep.c (m32r_store_return_value): Likewise.
230 (m32r_extract_return_value): Likewise.
231 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
232 (m68kbsd_collect_fpregset): Likewise.
233 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
234 * m68k-linux-nat.c (fetch_register): Likewise.
235 (old_fetch_inferior_registers): Likewise.
236 (old_store_inferior_registers): Likewise.
237 (store_regs): Likewise.
238 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
239 (m68k_svr4_store_return_value): Likewise.
240 * m88k-tdep.c (m88k_store_arguments): Likewise.
241 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
242 (mi_cmd_data_write_register_values): Likewise.
243 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
244 (mips_fbsd_store_inferior_registers): Likewise.
245 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
246 (mips_fbsd_supply_gregs): Likewise.
247 (mips_fbsd_collect_fpregs): Likewise.
248 (mips_fbsd_collect_gregs): Likewise.
249 (mips_fbsd_supply_fpregset): Likewise.
250 (mips_fbsd_collect_fpregset): Likewise.
251 (mips_fbsd_supply_gregset): Likewise.
252 (mips_fbsd_collect_gregset): Likewise.
253 * mips-linux-nat.c (supply_gregset): Likewise.
254 (fill_gregset): Likewise.
255 (supply_fpregset): Likewise.
256 (fill_fpregset): Likewise.
257 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
258 (mips_fill_gregset): Likewise.
259 (mips_supply_fpregset): Likewise.
260 (mips_fill_fpregset): Likewise.
261 (mips64_supply_gregset): Likewise.
262 (micromips_linux_sigframe_validate): Likewise.
263 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
264 (mipsnbsd_fetch_inferior_registers): Likewise.
265 (mipsnbsd_store_inferior_registers): Likewise.
266 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
267 (mipsnbsd_supply_gregset): Likewise.
268 (mipsnbsd_iterate_over_regset_sections): Likewise.
269 (mipsnbsd_supply_reg): Likewise.
270 (mipsnbsd_supply_fpreg): Likewise.
271 * mips-tdep.c (mips_in_frame_stub): Likewise.
272 (mips_dummy_id): Likewise.
273 (is_octeon_bbit_op): Likewise.
274 (micromips_bc1_pc): Likewise.
275 (extended_mips16_next_pc): Likewise.
276 (mips16_next_pc): Likewise.
277 (deal_with_atomic_sequence): Likewise.
278 * moxie-tdep.c (moxie_process_readu): Likewise.
279 * nios2-tdep.c (nios2_get_next_pc): Likewise.
280 * nto-procfs.c (procfs_store_registers): Likewise.
281 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
282 (ppcfbsd_store_inferior_registers): Likewise.
283 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
284 (fetch_altivec_register): Likewise.
285 (get_spe_registers): Likewise.
286 (fetch_spe_register): Likewise.
287 (fetch_altivec_registers): Likewise.
288 (fetch_all_gp_regs): Likewise.
289 (fetch_all_fp_regs): Likewise.
290 (store_vsx_register): Likewise.
291 (store_altivec_register): Likewise.
292 (set_spe_registers): Likewise.
293 (store_spe_register): Likewise.
294 (store_altivec_registers): Likewise.
295 (store_all_gp_regs): Likewise.
296 (store_all_fp_regs): Likewise.
297 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
298 (ppc_linux_collect_gregset): Likewise.
299 (ppc_canonicalize_syscall): Likewise.
300 (ppc_linux_record_signal): Likewise.
301 (ppu2spu_prev_register): Likewise.
302 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
303 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
304 (ppcobsd_store_registers): Likewise.
305 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
306 Likewise.
307 (ppc_ravenscar_generic_store_registers): Likewise.
308 * procfs.c (procfs_fetch_registers): Likewise.
309 (procfs_store_registers): Likewise.
310 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
311 (ravenscar_store_registers): Likewise.
312 (ravenscar_prepare_to_store): Likewise.
313 * record-btrace.c (record_btrace_fetch_registers): Likewise.
314 * record-full.c (record_full_wait_1): Likewise.
315 (record_full_registers_change): Likewise.
316 (record_full_store_registers): Likewise.
317 (record_full_core_fetch_registers): Likewise.
318 (record_full_save): Likewise.
319 (record_full_goto_insn): Likewise.
320 * regcache.c (regcache_register_size): Likewise.
321 (get_regcache_arch): Remove.
322 (regcache_read_pc): Likewise.
323 * regcache.h (get_regcache_arch): Remove.
324 * remote-sim.c (gdbsim_fetch_register): Likewise.
325 (gdbsim_store_register): Likewise.
326 * remote.c (fetch_register_using_p): Likewise.
327 (send_g_packet): Likewise.
328 (remote_prepare_to_store): Likewise.
329 (store_registers_using_G): Likewise.
330 * reverse.c (save_bookmark_command): Likewise.
331 (goto_bookmark_command): Likewise.
332 * rs6000-aix-tdep.c (branch_dest): Likewise.
333 * rs6000-nat.c (rs6000_ptrace64): Likewise.
334 (fetch_register): Likewise.
335 * rs6000-tdep.c (ppc_supply_reg): Likewise.
336 (ppc_collect_reg): Likewise.
337 (ppc_collect_gregset): Likewise.
338 (ppc_collect_fpregset): Likewise.
339 (ppc_collect_vsxregset): Likewise.
340 (ppc_collect_vrregset): Likewise.
341 (ppc_displaced_step_hw_singlestep): Likewise.
342 (rs6000_pseudo_register_read): Likewise.
343 (rs6000_pseudo_register_write): Likewise.
344 * s390-linux-nat.c (supply_gregset): Likewise.
345 (fill_gregset): Likewise.
346 (s390_linux_fetch_inferior_registers): Likewise.
347 * s390-linux-tdep.c (s390_write_pc): Likewise.
348 (s390_software_single_step): Likewise.
349 (s390_all_but_pc_registers_record): Likewise.
350 (s390_linux_syscall_record): Likewise.
351 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
352 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
353 (shnbsd_store_inferior_registers): Likewise.
354 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
355 (sh_extract_return_value_fpu): Likewise.
356 (sh_store_return_value_nofpu): Likewise.
357 (sh_corefile_supply_regset): Likewise.
358 (sh_corefile_collect_regset): Likewise.
359 * sh64-tdep.c (sh64_extract_return_value): Likewise.
360 (sh64_store_return_value): Likewise.
361 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
362 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
363 (sparc_store_inferior_registers): Likewise.
364 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
365 (sparc_ravenscar_prepare_to_store): Likewise.
366 * sparc-tdep.c (sparc32_store_arguments): Likewise.
367 (sparc_analyze_control_transfer): Likewise.
368 (sparc_step_trap): Likewise.
369 (sparc_software_single_step): Likewise.
370 (sparc32_gdbarch_init): Likewise.
371 (sparc_supply_rwindow): Likewise.
372 (sparc_collect_rwindow): Likewise.
373 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
374 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
375 (sparc64nbsd_collect_gregset): Likewise.
376 (sparc64nbsd_supply_fpregset): Likewise.
377 (sparc64nbsd_collect_fpregset): Likewise.
378 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
379 (sparc64_supply_gregset): Likewise.
380 (sparc64_collect_gregset): Likewise.
381 (sparc64_supply_fpregset): Likewise.
382 (sparc64_collect_fpregset): Likewise.
383 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
384 * spu-tdep.c (spu_unwind_sp): Likewise.
385 (spu2ppu_prev_register): Likewise.
386 (spu_memory_remove_breakpoint): Likewise.
387 * stack.c (return_command): Likewise.
388 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
389 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
390 * tracefile.c (trace_save_ctf): Likewise.
391 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
392 (do_windows_store_inferior_registers): Likewise.
393 (windows_resume): Likewise.
394 * xtensa-linux-nat.c (fill_gregset): Likewise.
395 (supply_gregset_reg): Likewise.
396 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
397 (xtensa_register_read_masked): Likewise.
398 (xtensa_supply_gregset): Likewise.
399 (xtensa_extract_return_value): Likewise.
400 (xtensa_store_return_value): Likewise.
401
402 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
403
404 * doublest.c (floatformat_from_string): New function.
405 * doublest.h (floatformat_from_string): Add prototype.
406
407 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
408 (OP_FLOAT): ... this.
409 * expression.h: Do not include "doublest.h".
410 (union exp_element): Replace doubleconst and decfloatconst by
411 new element floatconst.
412 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
413 (ada_evaluate_subexp): Likewise.
414 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
415 OP_DOUBLE and OP_DECFLOAT.
416 * expprint.c (print_subexp_standard): Likewise.
417 (dump_subexp_body_standard): Likewise.
418 * breakpoint.c (watchpoint_exp_is_const): Likewise.
419
420 * parse.c: Include "dfp.h".
421 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
422 (write_exp_elt_floatcst): New function.
423 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
424 and OP_DECFLOAT.
425 (operator_check_standard): Likewise.
426 (parse_float): Do not accept suffix. Take type as input. Return bool.
427 Return target format buffer instead of host DOUBLEST.
428 Use floatformat_from_string and decimal_from_string to parse
429 either binary or decimal floating-point types.
430 (parse_c_float): Remove.
431 * parser-defs.h: Do not include "doublest.h".
432 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
433 (write_exp_elt_floatcst): Add prototype.
434 (parse_float): Update prototype.
435 (parse_c_float): Remove.
436
437 * c-exp.y: Do not include "dfp.h".
438 (typed_val_float): Use byte buffer instead of DOUBLEST.
439 (typed_val_decfloat): Remove.
440 (DECFLOAT): Remove.
441 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
442 (parse_number): Update to new parse_float interface.
443 Parse suffixes and determine type before calling parse_float.
444 Handle decimal and binary FP types the same way.
445
446 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
447 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
448 (parse_number): Update to new parse_float interface.
449 Parse suffixes and determine type before calling parse_float.
450
451 * f-exp.y: Replace dval by typed_val_float.
452 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
453 (parse_number): Use parse_float instead of atof.
454
455 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
456 (parse_go_float): Remove.
457 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
458 (parse_number): Call parse_float instead of parse_go_float.
459 Parse suffixes and determine type before calling parse_float.
460
461 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
462 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
463 (parse_number): Update to new parse_float interface.
464 Parse suffixes and determine type before calling parse_float.
465
466 * m2-exp.y: Replace dval by byte buffer val.
467 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
468 (parse_number): Call parse_float instead of atof.
469
470 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
471 (lex_number): Call parse_float instead of strtod.
472 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
473 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
474 Use write_exp_elt_floatcst.
475 (unit_testing): Remove static variable.
476 (rust_type): Do not check unit_testing.
477 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
478
479 * ada-exp.y (type_float, type_double): Remove.
480 (typed_val_float): Use byte buffer instead of DOUBLEST.
481 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
482 * ada-lex.l (processReal): Use parse_float instead of sscanf.
483
484 2017-10-25 Alan Hayward <alan.hayward@arm.com>
485
486 * aarch64-tdep.h (enum aarch64_regnum): Remove.
487 * arch/aarch64.h: New file.
488
489 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
490
491 * dfp.h (decimal_from_string): Use const reference for argument.
492 * dfp.c (decimal_from_string): Likewise.
493
494 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
495
496 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
497 * sh64-tdep.c (sh64_do_fp_register): Likewise.
498 * mips-tdep.c (mips_print_fp_register): Likewise.
499
500 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
501
502 * common/format.h (enum argclass): Replace decfloat_arg by
503 dec32float_arg, dec64float_arg, and dec128float_arg.
504 * common/format.c (parse_format_string): Update to return
505 new decimal float argument classes.
506
507 * printcmd.c (printf_decfloat): Rename to ...
508 (printf_floating): ... this. Add argclass argument, and use it
509 instead of parsing the format string again. Add support for
510 binary floating-point values, using floatformat_to_string.
511 Convert value to the target format if it doesn't already match.
512 (ui_printf): Call printf_floating instead of printf_decfloat,
513 also for double_arg / long_double_arg. Pass argclass.
514
515 * dfp.c (decimal_to_string): Add format string argument.
516 * dfp.h (decimal_to_string): Likewise.
517
518 * doublest.c (floatformat_to_string): Add format string argument.
519 * doublest.h (floatformat_to_string): Likewise.
520
521 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
522
523 * doublest.c (floatformat_precision): New routine.
524 (floatformat_to_string): Likewise.
525 * doublest.c (floatformat_to_string): Add prototype.
526
527 * printcmd.c (print_scalar_formatted): Only call print_floating
528 on floating-point types.
529 * valprint.c: Do not include "floatformat.h".
530 (generic_val_print_decfloat): Remove.
531 (generic_val_print): Call generic_val_print_float for both
532 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
533 (print_floating): Use floatformat_to_string. Handle decimal float.
534 (print_decimal_floating): Remove, merge into floatformat_to_string.
535 * value.h (print_decimal_floating): Remove.
536
537 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
538
539 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
540
541 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
542
543 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
544
545 * memattr.h: Don't include vec.h.
546 (struct mem_attrib): Initialize fields.
547 <unknown>: New static method.
548 (struct mem_region): Add constructors, operator<, initialize
549 fields.
550 * memattr.c: Include algorithm.
551 (default_mem_attrib, unknown_mem_attrib): Remove.
552 (user_mem_region_list): New global.
553 (target_mem_region_list, mem_region_list): Change type to
554 std::vector<mem_region>.
555 (mem_use_target): Now a function.
556 (target_mem_regions_valid): Change type to bool.
557 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
558 (require_user_regions): Adjust.
559 (require_target_regions): Adjust.
560 (create_mem_region): Adjust.
561 (lookup_mem_region): Adjust.
562 (invalidate_target_mem_regions): Adjust.
563 (mem_clear): Rename to...
564 (user_mem_clear): ... this, and adjust.
565 (mem_command): Adjust.
566 (info_mem_command): Adjust.
567 (mem_enable, enable_mem_command, mem_disable,
568 disable_mem_command): Adjust.
569 (mem_delete): Adjust.
570 (delete_mem_command): Adjust.
571 * memory-map.h (parse_memory_map): Return an std::vector.
572 * memory-map.c (parse_memory_map): Likewise.
573 (struct memory_map_parsing_data): Add constructor.
574 <memory_map>: Point to std::vector.
575 (memory_map_start_memory): Adjust.
576 (memory_map_end_memory): Adjust.
577 (memory_map_end_property): Adjust.
578 (clear_result): Remove.
579 * remote.c (remote_memory_map): Return an std::vector.
580 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
581 Remove.
582 (target_debug_print_mem_region_vector): New.
583 * target-delegates.c: Regenerate.
584 * target.h (mem_region_vector): New typedef.
585 (to_memory_map): Return mem_region_vector.
586 (target_memory_map): Return an std::vector.
587 * target.c (target_memory_map): Return an std::vector.
588 (flash_erase_command): Adjust.
589
590 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
591
592 * memory-map.c (struct memory_map_parsing_data) <property_name>:
593 Change type to std::string.
594 (memory_map_start_property): Adjust.
595 (memory_map_end_property): Adjust.
596
597 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
598
599 * infrun.h: Include common/byte-vector.h.
600 (struct displaced_step_closure): New struct.
601 (struct buf_displaced_step_closure): New struct.
602 * infrun.c (displaced_step_closure::~displaced_step_closure):
603 Provide default implementation.
604 (displaced_step_clear): Deallocate step closure with delete.
605 * aarch64-tdep.c (displaced_step_closure): Rename to ...
606 (aarch64_displaced_step_closure): ... this, extend
607 displaced_step_closure.
608 (aarch64_displaced_step_data) <dsc>: Change type to
609 aarch64_displaced_step_closure.
610 (aarch64_displaced_step_copy_insn): Adjust to type change, use
611 unique_ptr.
612 (aarch64_displaced_step_fixup): Add cast for displaced step
613 closure.
614 * amd64-tdep.c (displaced_step_closure): Rename to ...
615 (amd64_displaced_step_closure): ... this, extend
616 displaced_step_closure.
617 <insn_buf>: Change type to std::vector<gdb_byte>.
618 <max_len>: Remove.
619 (fixup_riprel): Change type of DSC parameter, adjust to type
620 change of insn_buf.
621 (fixup_displaced_copy): Change type of DSC parameter.
622 (amd64_displaced_step_copy_insn): Instantiate
623 amd64_displaced_step_closure.
624 (amd64_displaced_step_fixup): Add cast for closure type, adjust
625 to type change of insn_buf.
626 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
627 parameter DSC.
628 (arm_linux_copy_svc): Likewise.
629 (cleanup_kernel_helper_return): Likewise.
630 (arm_catch_kernel_helper_return): Likewise.
631 (arm_linux_displaced_step_copy_insn): Instantiate
632 arm_displaced_step_closure.
633 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
634 (displaced_read_reg): Change type of parameter DSC.
635 (branch_write_pc): Likewise.
636 (load_write_pc): Likewise.
637 (alu_write_pc): Likewise.
638 (displaced_write_reg): Likewise.
639 (arm_copy_unmodified): Likewise.
640 (thumb_copy_unmodified_32bit): Likewise.
641 (thumb_copy_unmodified_16bit): Likewise.
642 (cleanup_preload): Likewise.
643 (install_preload): Likewise.
644 (arm_copy_preload): Likewise.
645 (thumb2_copy_preload): Likewise.
646 (install_preload_reg): Likewise.
647 (arm_copy_preload_reg): Likewise.
648 (cleanup_copro_load_store): Likewise.
649 (install_copro_load_store): Likewise.
650 (arm_copy_copro_load_store) Likewise.
651 (thumb2_copy_copro_load_store): Likewise.
652 (cleanup_branch): Likewise.
653 (install_b_bl_blx): Likewise.
654 (arm_copy_b_bl_blx): Likewise.
655 (thumb2_copy_b_bl_blx): Likewise.
656 (thumb_copy_b): Likewise.
657 (install_bx_blx_reg): Likewise.
658 (arm_copy_bx_blx_reg): Likewise.
659 (thumb_copy_bx_blx_reg): Likewise.
660 (cleanup_alu_imm): Likewise.
661 (arm_copy_alu_imm): Likewise.
662 (thumb2_copy_alu_imm): Likewise.
663 (cleanup_alu_reg): Likewise.
664 (install_alu_reg): Likewise.
665 (arm_copy_alu_reg): Likewise.
666 (thumb_copy_alu_reg): Likewise.
667 (cleanup_alu_shifted_reg): Likewise.
668 (install_alu_shifted_reg): Likewise.
669 (arm_copy_alu_shifted_reg): Likewise.
670 (cleanup_load): Likewise.
671 (cleanup_store): Likewise.
672 (arm_copy_extra_ld_st): Likewise.
673 (install_load_store): Likewise.
674 (thumb2_copy_load_literal): Likewise.
675 (thumb2_copy_load_reg_imm): Likewise.
676 (arm_copy_ldr_str_ldrb_strb): Likewise.
677 (cleanup_block_load_all): Likewise.
678 (cleanup_block_store_pc): Likewise.
679 (cleanup_block_load_pc): Likewise.
680 (arm_copy_block_xfer): Likewise.
681 (thumb2_copy_block_xfer): Likewise.
682 (cleanup_svc): Likewise.
683 (install_svc): Likewise.
684 (arm_copy_svc): Likewise.
685 (thumb_copy_svc): Likewise.
686 (arm_copy_undef): Likewise.
687 (thumb_32bit_copy_undef): Likewise.
688 (arm_copy_unpred): Likewise.
689 (arm_decode_misc_memhint_neon): Likewise.
690 (arm_decode_unconditional): Likewise.
691 (arm_decode_miscellaneous): Likewise.
692 (arm_decode_dp_misc): Likewise.
693 (arm_decode_ld_st_word_ubyte): Likewise.
694 (arm_decode_media): Likewise.
695 (arm_decode_b_bl_ldmstm): Likewise.
696 (arm_decode_ext_reg_ld_st): Likewise.
697 (thumb2_decode_dp_shift_reg): Likewise.
698 (thumb2_decode_ext_reg_ld_st): Likewise.
699 (arm_decode_svc_copro): Likewise.
700 (thumb2_decode_svc_copro): Likewise.
701 (install_pc_relative): Likewise.
702 (thumb_copy_pc_relative_16bit): Likewise.
703 (thumb_decode_pc_relative_16bit): Likewise.
704 (thumb_copy_pc_relative_32bit): Likewise.
705 (thumb_copy_16bit_ldr_literal): Likewise.
706 (thumb_copy_cbnz_cbz): Likewise.
707 (thumb2_copy_table_branch): Likewise.
708 (cleanup_pop_pc_16bit_all): Likewise.
709 (thumb_copy_pop_pc_16bit): Likewise.
710 (thumb_process_displaced_16bit_insn): Likewise.
711 (decode_thumb_32bit_ld_mem_hints): Likewise.
712 (thumb_process_displaced_32bit_insn): Likewise.
713 (thumb_process_displaced_insn): Likewise.
714 (arm_process_displaced_insn): Likewise.
715 (arm_displaced_init_closure): Likewise.
716 (arm_displaced_step_fixup): Add cast for closure.
717 * arm-tdep.h: Include infrun.h.
718 (displaced_step_closure): Rename to ...
719 (arm_displaced_step_closure): ... this, extend
720 displaced_step_closure.
721 <u::svc::copy_svc_os>: Change type of parameter DSC.
722 <cleanup>: Likewise.
723 (arm_process_displaced_insn): Likewise.
724 (arm_displaced_init_closure): Likewise.
725 (displaced_read_reg): Likewise.
726 (displaced_write_reg): Likewise.
727 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
728 Adjust.
729 * i386-tdep.h: Include infrun.h.
730 (i386_displaced_step_closure): New typedef.
731 * i386-tdep.c (i386_displaced_step_copy_insn): Use
732 i386_displaced_step_closure.
733 (i386_displaced_step_fixup): Adjust.
734 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
735 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
736 and unique_ptr.
737 (ppc_displaced_step_fixup): Adjust.
738 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
739 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
740 and unique_ptr.
741 (s390_displaced_step_fixup): Adjust.
742
743 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
744
745 * interps.h (interp_resume, interp_suspend, interp_set_temp):
746 Remove declarations.
747
748 2017-10-20 Tom Tromey <tom@tromey.com>
749
750 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
751 std::vector.
752 (gdb_bfd_record_inclusion): Update.
753 (bfdp): Remove typedef.
754
755 2017-10-20 Tom Tromey <tom@tromey.com>
756
757 * gdb_bfd.c (gdb_bfd_ref): Use new.
758 (struct gdb_bfd_data): Add constructor, destructor, and member
759 initializers.
760 (gdb_bfd_unref): Use delete.
761
762 2017-10-20 Tom Tromey <tom@tromey.com>
763
764 * exec.c (exec_file_attach): Use new_bfd_ref.
765 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
766 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
767 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
768 new_bfd_ref.
769 * gdb_bfd.h (new_bfd_ref): New function.
770
771 2017-10-20 Pedro Alves <palves@redhat.com>
772
773 * main.c (captured_command_loop): Add attribute noinline.
774
775 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
776
777 * interps.c (struct interp_factory): Add constructor.
778 (interp_factory_p): Remove typedef.
779 (DEF_VEC_P(interp_factory_p)): Remove.
780 (interpreter_factories): Change type to std::vector.
781 (interp_factory_register): Adjust.
782 (interp_lookup): Adjust.
783 (interpreter_completer): Adjust.
784
785 2017-10-19 Tom Tromey <tom@tromey.com>
786
787 * break-catch-syscall.c (catch_syscall_completer): Use
788 std::string, gdb::unique_xmalloc_ptr.
789
790 2017-10-19 Tom Tromey <tom@tromey.com>
791
792 * infcall.c (call_function_by_hand_dummy): Use std::string.
793
794 2017-10-19 Tom Tromey <tom@tromey.com>
795
796 * mi/mi-main.c (mi_cmd_execute): Update.
797 * top.h (prepare_execute_command): Return scoped_value_mark.
798 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
799 Add move constructor.
800 * top.c (prepare_execute_command): Return scoped_value_mark.
801 (execute_command): Update.
802
803 2017-10-19 Pedro Alves <palves@redhat.com>
804
805 * xml-support.c (xml_fetch_content_from_file): Check fread's
806 return.
807
808 2017-10-19 Pedro Alves <palves@redhat.com>
809
810 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
811 async.
812 (handle_error_fd): New function.
813 (ser_base_async): Add/delete an event loop file handler for
814 error_fd.
815
816 2017-10-19 Pedro Alves <palves@redhat.com>
817
818 * xml-support.c (xml_fetch_content_from_file): Don't read in
819 chunks. Instead use fseek to determine the file's size, and read
820 it in one go.
821
822 2017-11-18 Keith Seitz <keiths@redhat.com>
823
824 * c-exp.y (oper): Canonicalize conversion operators of user-defined
825 types.
826 Add whitespace to front of type name.
827
828 2017-10-18 Keith Seitz <keiths@redhat.com>
829
830 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
831 DW_AT_accessibility.
832
833 2017-10-18 Yao Qi <yao.qi@linaro.org>
834
835 * features/tic6x-c62x-linux.c: Remove.
836
837 2017-10-17 Tom Tromey <tom@tromey.com>
838
839 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
840 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
841 (do_mixed_source_and_assembly): Likewise.
842
843 2017-10-17 Tom Tromey <tom@tromey.com>
844
845 * regcache.c (regcache::xfer_part): Remove assertion.
846
847 2017-10-17 Pedro Alves <palves@redhat.com>
848
849 * xml-support.c (xml_fetch_content_from_file): Call
850 unique_ptr::release() instead unique_ptr::get() when passing
851 through xrealloc.
852
853 2017-10-17 Yao Qi <yao.qi@linaro.org>
854
855 * regcache.c (regcache::xfer_part): Remove parameters read and
856 write, add parameter is_raw. All callers are updated.
857
858 2017-10-16 Keith Seitz <keiths@redhat.com>
859
860 * c-typeprint.c (enum access_specifier): Moved here from
861 c_type_print_base.
862 (output_access_specifier): New function.
863 (c_type_print_base): Consider typedefs when assessing
864 whether access labels are needed.
865 Use output_access_specifier as needed.
866 Output access specifier for typedefs, if needed.
867 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
868 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
869 fields.
870 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
871 accessor macros.
872
873 2017-10-16 Tom Tromey <tom@tromey.com>
874
875 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
876 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
877 * target.c (target_fileio_read_stralloc): Update.
878 * sparc64-tdep.c (adi_is_addr_mapped): Update.
879 * target.h (target_fileio_read_stralloc): Return
880 unique_xmalloc_ptr.
881
882 2017-10-16 Tom Tromey <tom@tromey.com>
883
884 * xml-syscall.c (xml_init_syscalls_info): Update.
885 * xml-support.c (xinclude_start_include): Update.
886 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
887 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
888 (xml_fetch_content_from_file): Likewise.
889 * osdata.c (get_osdata): Update.
890 * target.h (target_read_stralloc, target_get_osdata): Return
891 unique_xmalloc_ptr.
892 * solib-aix.c (solib_aix_get_library_list): Update.
893 * solib-target.c (solib_target_current_sos): Update.
894 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
895 * xml-tdesc.c (fetch_available_features_from_target): Update.
896 (target_fetch_description_xml): Update.
897 (file_read_description_xml): Update.
898 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
899 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
900 (remote_pid_to_exec_file): Update.
901 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
902 (target_get_osdata): Likewise.
903
904 2017-10-16 Tom Tromey <tom@tromey.com>
905
906 * remote.c (remote_register_number_and_offset): Use std::vector.
907 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
908 (putpkt_binary): Use gdb::def_vector.
909 (compare_sections_command): Use gdb::byte_vector.
910
911 2017-10-16 Tom Tromey <tom@tromey.com>
912
913 * ppc-linux-nat.c (hwdebug_insert_point): Use
914 gdb::unique_xmalloc_ptr, XDUP.
915
916 2017-10-16 Tom Tromey <tom@tromey.com>
917
918 * probe.c (parse_probes): Use std::string.
919 (info_probes_for_ops, enable_probes_command)
920 (disable_probes_command): Remove cleanups.
921
922 2017-10-16 Tom Tromey <tom@tromey.com>
923
924 * buildsym.c (block_compar): Remove.
925 (end_symtab_get_static_block): Use std::vector.
926
927 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
928
929 * memrange.h (struct mem_range): Define operator< and operator==.
930 (mem_range_s): Remove.
931 (DEF_VEC_O (mem_range_s)): Remove.
932 (normalize_mem_ranges): Change parameter type to std::vector.
933 * memrange.c (compare_mem_ranges): Remove.
934 (normalize_mem_ranges): Change parameter type to std::vector,
935 adjust to vector change.
936 * exec.c (section_table_available_memory): Return vector, remove
937 parameter.
938 (section_table_read_available_memory): Adjust to std::vector
939 change.
940 * remote.c (remote_read_bytes): Adjust to std::vector
941 change.
942 * tracepoint.h (traceframe_available_memory): Change parameter
943 type to std::vector.
944 * tracepoint.c (traceframe_available_memory): Change parameter
945 type to std::vector, adjust.
946 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
947 std::vector change.
948 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
949 unittests/memrange-selftests.c.
950 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
951 * gdb/unittests/memrange-selftests.c: New file.
952
953 2017-10-16 Pedro Alves <palves@redhat.com>
954
955 * elfread.c (probe_key_free): Rename range-for variable.
956 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
957 (find_probe_by_pc, collect_probes): Rename range-for variable.
958
959 2017-10-16 Yao Qi <yao.qi@linaro.org>
960
961 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
962 * features/tic6x-c62x.c: Remove.
963 * features/tic6x-c64x-linux.c: Remove.
964 * features/tic6x-c64x.c: Remove.
965 * features/tic6x-c64xp-linux.c: Remove.
966 * features/tic6x-c64xp.c: Remove.
967 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
968 initialize_tdesc_tic6x_*_linux functions.
969 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
970 initialize_tdesc_tic6x_* functions.
971
972 2017-10-16 Yao Qi <yao.qi@linaro.org>
973
974 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
975 tic6x-c62x.
976 * regformats/tic6x-c62x.dat: Remove.
977 * regformats/tic6x-c64x.dat: Remove.
978 * regformats/tic6x-c64xp.dat: Remove.
979
980 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
981
982 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
983 (the !HAVE_LIBEXPAT version).
984
985 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
986
987 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
988 const.
989
990 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * target.h: Include tracepoint.h.
993 (enum trace_find_type): Move to tracepoint.h.
994 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
995 * tracepoint.h: Don't include target.h
996 (enum trace_find_type): Move from target.h.
997 (parse_traceframe_info): Return a unique ptr.
998 * tracepoint.c (current_traceframe_info): Change type to unique
999 ptr.
1000 (free_traceframe_info): Remove.
1001 (clear_traceframe_info): Don't manually free
1002 current_traceframe_info.
1003 (free_result): Remove.
1004 (parse_traceframe_info): Return a unique ptr.
1005 (get_traceframe_info): Adjust to unique ptr.
1006 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1007 * remote.c (remote_traceframe_info): Return a unique ptr.
1008 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1009 ptr.
1010 * target-debug.h (target_debug_print_traceframe_info_up): New
1011 macro.
1012 * target-delegates.c: Regenerate.
1013
1014 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * memrange.h (struct mem_range): Add constructors.
1017 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1018 std::vector<mem_range>.
1019 * tracepoint.c (free_traceframe_info): Don't manually free
1020 vector.
1021 (traceframe_info_start_memory): Adjust to vector change.
1022 (traceframe_available_memory): Likewise.
1023 * tracefile-tfile.c (build_traceframe_info): Likewise.
1024 * ctf.c (ctf_traceframe_info): Likewise.
1025
1026 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1027
1028 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1029 std::vector<int>.
1030 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1031 (traceframe_info_start_tvar): Adjust to vector change.
1032 (parse_traceframe_info): Allocate with new.
1033 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1034 vector change.
1035 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1036 change.
1037 tfile_traceframe_info): Allocate with new.
1038 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1039 change.
1040
1041 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * tracepoint.c (traceframe_info): Rename to...
1044 (current_traceframe_info): ...this.
1045 (clear_traceframe_info): Adjust.
1046 (get_traceframe_info): Adjust.
1047
1048 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1049
1050 * nat/linux-osdata.c: Include algorithm.
1051 (compare_processes): Remove.
1052 (struct pid_pgid_entry): New struct.
1053 (linux_xfer_osdata_processgroups): Use std::vector instead of
1054 XNEWVEC.
1055
1056 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1057
1058 * objfiles.h: Don't include symfile.h.
1059 (struct partial_symbol): Remove forward-declaration.
1060 (struct objfile) <global_psymbols, static_psymbols>: Change type
1061 to std::vector<partial_symbol *>.
1062 * objfiles.c (objfile::objfile): Don't memset those fields.
1063 (objfile::~objfile): Don't free those fields.
1064 * psympriv.h (struct psymbol_allocation_list): Remove
1065 forward-declaration.
1066 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1067 to std::vector.
1068 (start_psymtab_common): Change parameters to std::vector.
1069 * psymtab.c: Include algorithm.
1070 (require_partial_symbols): Call shrink_to_fit.
1071 (find_pc_sect_psymbol): Adjust to vector change.
1072 (match_partial_symbol): Likewise.
1073 (lookup_partial_symbol): Likewise.
1074 (psym_relocate): Likewise.
1075 (dump_psymtab): Likewise.
1076 (recursively_search_psymtabs): Likewise.
1077 (compare_psymbols): Remove.
1078 (sort_pst_symbols): Adjust to vector change.
1079 (start_psymtab_common): Likewise.
1080 (end_psymtab_common): Likewise.
1081 (psymbol_bcache_full): De-constify return value.
1082 (add_psymbol_to_bcache): Likewise.
1083 (extend_psymbol_list): Remove.
1084 (append_psymbol_to_list): Adjust to vector change.
1085 (add_psymbol_to_list): Likewise.
1086 (init_psymbol_list): Likewise.
1087 (maintenance_info_psymtabs): Likewise.
1088 (maintenance_check_psymtabs): Likewise.
1089 * symfile.h (struct psymbol_allocation_list): Remove.
1090 * symfile.c (reread_symbols): Adjust to vector change.
1091 * dbxread.c (start_psymtab): Change type of parameters.
1092 (dbx_symfile_read): Adjust to vector change.
1093 (read_dbx_symtab): Likewise.
1094 (start_psymtab): Change type of parameters.
1095 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1096 (create_partial_symtab): Likewise.
1097 (add_partial_symbol): Likewise.
1098 (write_one_signatured_type): Likewise.
1099 (recursively_write_psymbols): Likewise.
1100 * mdebugread.c (parse_partial_symbols): Likewise.
1101 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1102 (scan_xcoff_symtab): Adjust to vector change.
1103 (xcoff_initial_scan): Likewise.
1104
1105 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1106
1107 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1108
1109 2017-10-13 Yao Qi <yao.qi@linaro.org>
1110
1111 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1112 Remove s390x-*-expedite, add s390x-expedite.
1113
1114 2017-10-13 Yao Qi <yao.qi@linaro.org>
1115
1116 * features/s390-gs-linux64.c: Regenerated.
1117 * features/s390x-gs-linux64.c: Regenerated.
1118
1119 2017-10-13 Tom Tromey <tom@tromey.com>
1120
1121 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1122 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1123 delete.
1124 * symfile.c (symbol_file_add_with_addrs): Use new.
1125 (symbol_file_add_separate): Update comment.
1126 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1127 * jit.c (jit_object_close_impl): Use new.
1128 (jit_unregister_code): Use delete.
1129 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1130 (~objfile): Rename from free_objfile.
1131 (free_objfile_separate_debug, do_free_objfile_cleanup)
1132 (free_all_objfiles, objfile_purge_solibs): Use delete.
1133 * objfiles.h (struct objfile): Add constructor and destructor.
1134 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1135 (allocate_objfile, free_objfile): Don't declare.
1136 (struct objstats): Add initializers.
1137
1138 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1139
1140 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1141 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1142 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1143 * gdbarch.h: Regenerate.
1144 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1145 Adjust comment.
1146 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1147 (i386_displaced_step_fixup): Adjust comment.
1148 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1149
1150 2017-10-12 Tom Tromey <tom@tromey.com>
1151
1152 * prologue-value.h (pv_area::store_would_trash): Return bool.
1153 (pv_area::find_reg): Likewise.
1154 * prologue-value.c (pv_area::store_would_trash): Return bool.
1155 (pv_area::find_reg): Likewise.
1156
1157 2017-10-12 Tom Tromey <tom@tromey.com>
1158
1159 * s390-linux-tdep.c (s390_store, s390_load)
1160 (s390_check_for_saved, s390_analyze_prologue): Update.
1161 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1162 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1163 * prologue-value.h (class pv_area): Move from prologue-value.c.
1164 Change names of members. Add constructor, destructor, member
1165 functions.
1166 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1167 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1168 (pv_area_fetch, pv_area_scan): Don't declare.
1169 * prologue-value.c (struct pv_area::area_entry): Now member of
1170 pv_area.
1171 (struct pv_area): Move to prologue-value.h.
1172 (pv_area::pv_area): Rename from make_pv_area.
1173 (pv_area::~pv_area): Rename from free_pv_area.
1174 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1175 (clear_entries, find_entry, overlaps, store_would_trash, store)
1176 (fetch, find_reg, scan): Now member of pv_area.
1177 Remove "area" argument. Update.
1178 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1179 Update.
1180 * mn10300-tdep.c (push_reg, check_for_saved)
1181 (mn10300_analyze_prologue): Update.
1182 * mep-tdep.c (is_arg_spill, check_for_saved)
1183 (mep_analyze_prologue): Update.
1184 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1185 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1186 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1187 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1188 Update.
1189 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1190 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1191
1192 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1193
1194 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1195 * linux-nat.c (linux_nat_delete_thread): New variable.
1196 (lwp_free): Invoke linux_nat_delete_thread if set.
1197 (linux_nat_set_delete_thread): New function.
1198 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1199 thread delete callback.
1200 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1201 (_initialize_arm_linux_nat): Assign thread delete callback.
1202 * s390-linux-nat.c (s390_delete_thread): New function.
1203 (_initialize_s390_nat): Assign thread delete callback.
1204 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1205 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1206 function.
1207 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1208 declaration.
1209 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1210 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1211
1212 2017-10-09 Tom Tromey <tom@tromey.com>
1213
1214 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1215 std::string.
1216 * tui/tui-layout.c (enum tui_status): Use std::string.
1217
1218 2017-10-11 Tom Tromey <tom@tromey.com>
1219
1220 * gdbthread.h (thread_command): Constify.
1221 * inferior.h (detach_command): Constify.
1222 * top.h (set_history, show_history): Constify.
1223 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1224 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1225 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1226 * printcmd.c (set_command): Constify.
1227 (non_const_set_command): New function.
1228 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1229 * breakpoint.c (enable_command, disable_command, delete_command)
1230 (catch_command, tcatch_command, set_breakpoint_cmd)
1231 (show_breakpoint_cmd): Constify.
1232 * macrocmd.c (macro_command): Constify.
1233 * infcmd.c (unset_command, kill_command, detach_command)
1234 (info_proc_cmd): Constify.
1235 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1236 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1237 (info_auto_load_cmd): Constify.
1238 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1239 (unset_tdesc_cmd): Constify.
1240 * ada-lang.c (set_ada_command, show_ada_command)
1241 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1242 * guile/guile.c (set_guile_command, show_guile_command)
1243 (info_guile_command): Constify.
1244 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1245 Constify.
1246 * skip.c (skip_command): Constify.
1247 * compile/compile.c (_initialize_compile): Constify.
1248 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1249 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1250 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1251 (maint_btrace_pt_show_cmd): Constify.
1252 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1253 Constify.
1254 * python/python.c (user_show_python, user_set_python): Constify.
1255 * mips-tdep.c (set_mips_command, show_mips_command)
1256 (set_mipsfpu_command): Constify.
1257 * record-btrace.c (cmd_record_btrace_start)
1258 (cmd_set_record_btrace, cmd_show_record_btrace)
1259 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1260 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1261 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1262 Constify.
1263 * symfile.c (overlay_command): Constify.
1264 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1265 * cli/cli-logging.c (set_logging_command, show_logging_command):
1266 Constify.
1267 * cli/cli-dump.c (dump_command, append_command)
1268 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1269 (tekhex_dump_command, binary_dump_command)
1270 (binary_append_command): Constify.
1271 * cli/cli-decode.c (struct cmd_list_element): Change type of
1272 "fun".
1273 * cli/cli-cmds.c (info_command, show_command, set_debug)
1274 (show_debug): Constify.
1275 (show_command): Add non-const overload.
1276 * top.c (set_history, show_history): Constify.
1277 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1278 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1279 * target.c (target_command): Constify.
1280 * sparc64-tdep.c (info_adi_command): Constify.
1281 * record-full.c (cmd_record_full_start): Constify.
1282 (set_record_full_command): Constify. Fix typo.
1283 (show_record_full_command): Constify.
1284 * thread.c (thread_command, thread_apply_command): Constify.
1285 * memattr.c (dummy_cmd): Constify.
1286 * value.c (function_command): Constify.
1287 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1288 * probe.c (info_probes_command): Constify.
1289 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1290 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1291 (show_thread_cmd, set_thread_default_cmd)
1292 (show_thread_default_cmd): Constify.
1293 (check_empty): Constify.
1294 * tracepoint.c (tfind_command): Constify.
1295 * cp-support.c (maint_cplus_command): Constify.
1296 * windows-tdep.c (info_w32_command): Constify.
1297 * record.c (cmd_record_start, set_record_command)
1298 (show_record_command, info_record_command, cmd_record_goto):
1299 Constify.
1300 * ravenscar-thread.c (set_ravenscar_command)
1301 (show_ravenscar_command): Constify.
1302 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1303 Constify.
1304 (add_internal_problem_command): Remove casts.
1305 * arc-tdep.c (maintenance_print_arc_command): Constify.
1306 * valprint.c (set_print, show_print, set_print_raw)
1307 (show_print_raw): Constify.
1308 * maint.c (maintenance_command, maintenance_info_command)
1309 (maintenance_print_command, maintenance_set_cmd)
1310 (maintenance_show_cmd, set_per_command_cmd)
1311 (show_per_command_cmd, maintenance_check_command): Constify.
1312 * language.c (set_check, show_check): Constify.
1313 * typeprint.c (show_print_type, set_print_type): Constify.
1314 * go32-nat.c (go32_info_dos_command): Constify.
1315
1316 2017-10-11 Tom Tromey <tom@tromey.com>
1317
1318 * breakpoint.c (prepare_re_set_context): Remove.
1319 (breakpoint_re_set_one): Update. Don't use cleanups.
1320 (breakpoint_re_set): Use scoped_restore, std::string, and
1321 scoped_restore_current_language.
1322
1323 2017-10-11 Tom Tromey <tom@tromey.com>
1324
1325 * breakpoint.c (commands_command_1): Use std::string.
1326 (cleanup_executing_breakpoints): Remove.
1327 (bpstat_do_actions_1): Use scoped_restore.
1328 (bpstat_check_watchpoint): Use std::string.
1329 (decode_static_tracepoint_spec): Likewise.
1330 (break_range_command): Likewise.
1331 (watch_command_1): Likewise.
1332 (compare_breakpoints): Change argument types.
1333 (clear_command): Use std::vector.
1334 (cleanup_executing_breakpoints): Remove.
1335 (update_global_location_list): Use unique_xmalloc_ptr.
1336 (strace_command): Remove unused declaration.
1337
1338 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1339
1340 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1341 * NEWS: Mention new FreeBSD/arm native configuration.
1342 * configure.host: Add arm*-*-freebsd*.
1343 * configure.nat: Likewise.
1344 * arm-fbsd-nat.c: New file.
1345
1346 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1347
1348 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1349 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1350 * NEWS: Mention new FreeBSD/arm target.
1351 * configure.tgt: Add arm*-*-freebsd*.
1352 * arm-fbsd-tdep.c: New file.
1353 * arm-fbsd-tdep.h: New file.
1354
1355 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1356
1357 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1358 `gdbarch_elfcore_write_linux_prpsinfo'.
1359 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1360 method.
1361 (elf_internal_linux_prpsinfo): Remove declaration.
1362 * gdbarch.h: Regenerate.
1363 * gdbarch.c: Regenerate.
1364
1365 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1366
1367 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1368 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1369
1370 2017-10-11 Pedro Alves <palves@redhat.com>
1371
1372 * breakpoint.c (reattach_breakpoints): Delete.
1373 * breakpoint.h (reattach_breakpoints): Delete.
1374
1375 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1376
1377 * symfile.c (registered_sym_fns): Make struct, not typedef.
1378 (DEF_VEC_O (registered_sym_fns)): Remove.
1379 (symtab_fns): Change type to std::vector.
1380 (add_symtab_fns): Adjust.
1381 (find_sym_fns): Adjust.
1382
1383 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1384
1385 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1386 * arc-tdep.h (arc_arch_is_em): New function.
1387 (arc_arch_is_hs): Likewise.
1388
1389 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1390
1391 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1392 parentheses in the declaration.
1393 (macro_lookup_inclusion): Likewise.
1394 (macro_lookup_definition): Likewise.
1395 * p-lang.h (pascal_builtin_types): Likewise.
1396 * tui/tui-data.c (tui_win_list): Likewise.
1397 * tui/tui-data.h (tui_win_list): Likewise.
1398 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1399
1400 2017-10-11 Mark Rages <markrages@gmail.com>
1401
1402 * target-memory.c (block_boundaries): Fix for block address not
1403 aligned on block size.
1404
1405 2017-10-10 Pedro Alves <palves@redhat.com>
1406 Tom Tromey <tom@tromey.com>
1407
1408 * breakpoint.c (struct captured_breakpoint_query_args)
1409 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1410 (print_breakpoint): New.
1411 * breakpoint.h (print_breakpoint): Declare.
1412 * common/common-exceptions.h (enum return_reason): Remove
1413 references to catch_exceptions.
1414 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1415 Delete.
1416 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1417 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1418 * gdb.h: Delete.
1419 * gdbthread.h (thread_select): Declare.
1420 * mi/mi-cmd-break.c: Don't include gdb.h.
1421 (breakpoint_notify): Use print_breakpoint.
1422 * mi/mi-cmd-catch.c: Don't include gdb.h.
1423 * mi/mi-interp.c: Don't include gdb.h.
1424 (mi_print_breakpoint_for_event): New.
1425 (mi_breakpoint_created, mi_breakpoint_modified): Use
1426 mi_print_breakpoint_for_event.
1427 * mi/mi-main.c: Don't include gdb.h.
1428 (mi_cmd_thread_select): Parse the global thread ID here. Use
1429 thread_select instead of gdb_thread_select.
1430 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1431 of using gdb_list_thread_ids.
1432 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1433 FILEIO_ENOSYS here.
1434 (remote_fileio_request): Use TRY/CATCH instead of
1435 catch_exceptions.
1436 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1437 (symbol_file_add_from_memory_wrapper): Delete.
1438 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1439 * thread.c: Don't include gdb.h.
1440 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1441 (thread_alive): Use thread_select.
1442 (do_captured_thread_select): Delete, parts salvaged as ...
1443 (thread_select): ... this new function.
1444 (gdb_thread_select): Delete.
1445
1446 2017-10-10 Pedro Alves <palves@redhat.com>
1447 Tom Tromey <tom@tromey.com>
1448
1449 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1450 and reverse logic.
1451 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1452 No longer macros. Instead ...
1453 (enum wp_check_result): They're now values of this new
1454 enumeration.
1455 (watchpoint_check): Change return type to wp_check_result and
1456 parameter type to bpstat.
1457 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1458 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1459 catch_errors. Reverse logic of watchpoint_check call.
1460 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1461 pointer as parameter.
1462 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1463 * common/common-exceptions.c (throw_exception_sjlj): Update
1464 comments to avoid mentioning catch_errors.
1465 * exceptions.c (catch_errors): Delete.
1466 * exceptions.h: Update comments to avoid mentioning catch_errors.
1467 (catch_errors_ftype, catch_errors): Delete.
1468 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1469 (hook_stop_stub): Delete.
1470 (restore_selected_frame): Change return type to void, and
1471 parameter type to const frame_id &.
1472 (restore_infcall_control_state): Use TRY/CATCH instead of
1473 catch_errors.
1474 * main.c (captured_command_loop): Return void and remove
1475 parameter. Remove references to catch_errors.
1476 (captured_main): Use TRY/CATCH instead of catch_errors.
1477 * objc-lang.c (objc_submethod_helper_data)
1478 (find_objc_msgcall_submethod_helper): Delete.
1479 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1480 catch_errors.
1481 * record-full.c (record_full_message): Return void.
1482 (record_full_message_args, record_full_message_wrapper): Delete.
1483 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1484 instead of catch_errors.
1485 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1486 parameter type to int.
1487 * solib-darwin.c (open_symbol_file_object): Ditto.
1488 * solib-dsbt.c (open_symbol_file_object): Ditto.
1489 * solib-frv.c (open_symbol_file_object): Ditto.
1490 * solib-svr4.c (open_symbol_file_object): Ditto.
1491 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1492 * solib.c (update_solib_list): Use TRY/CATCH instead of
1493 catch_errors.
1494 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1495 Change type.
1496 * symmisc.c (struct print_symbol_args): Remove.
1497 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1498 (print_symbol): Change type.
1499 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1500 and remove parameters.
1501 (catch_errors): New.
1502 (get_windows_debug_event): Adjust.
1503
1504 2017-10-09 Tom Tromey <tom@tromey.com>
1505
1506 * mi/mi-main.c (free_splay_tree): Remove.
1507 (list_available_thread_groups): Use splay_tree_up.
1508 * common/gdb_splay_tree.h: New file.
1509
1510 2017-10-09 Tom Tromey <tom@tromey.com>
1511
1512 * mi/mi-main.c (do_nothing): Remove.
1513 (list_available_thread_groups): Update.
1514
1515 2017-10-09 Pedro Alves <palves@redhat.com>
1516
1517 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1518 reading registers when switching context.
1519
1520 2017-10-09 John Baldwin <jhb@FreeBSD.org>
1521
1522 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1523 (fbsd_convert_siginfo): Likewise.
1524 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1525
1526 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * configure.ac (try_guile_versions): Remove guile-2.2.
1529 * configure: Regenerate.
1530
1531 2017-10-09 Tom Tromey <tom@tromey.com>
1532
1533 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1534 (COMPILE.pre): Use $(CXX).
1535
1536 2017-10-09 Pedro Alves <palves@redhat.com>
1537
1538 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1539 Use bool.
1540 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1541 * cp-support.h (cp_remove_params): Now returns a
1542 gdb::unique_xmalloc_ptr.
1543 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1544 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1545 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1546 returning a gdb::unique_xmalloc_ptr.
1547 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1548 * stack.c (find_frame_funname): Adjust to cp_remove_params
1549 returning a gdb::unique_xmalloc_ptr.
1550
1551 2017-10-08 Tom Tromey <tom@tromey.com>
1552
1553 * dwarf2read.c (dwarf2_get_dwz_file): Use
1554 gdb::unique_xmalloc_ptr.
1555 (find_slot_in_mapped_hash): Likewise.
1556 (dwarf2_physname): Likewise.
1557 (create_dwo_unit_in_dwp_v1): Use std::string.
1558 (create_dwo_unit_in_dwp_v2): Likewise.
1559 (lookup_dwo_cutu): Likewise.
1560 (inherit_abstract_dies): Use std::vector.
1561 (read_array_type): Likewise.
1562 (dwarf_decode_macros): Remove unused declaration.
1563 (unsigned_int_compar): Remove.
1564 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1565 (psymtabs_addrmap_cleanup): Remove.
1566
1567 2017-10-08 Tom Tromey <tom@tromey.com>
1568
1569 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1570 * frame.h (frame_cleanup_after_sniffer): Declare.
1571 (frame_prepare_for_sniffer): Return void.
1572 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1573 type of argument.
1574 (frame_prepare_for_sniffer): Return void.
1575
1576 2017-10-08 Tom Tromey <tom@tromey.com>
1577
1578 * utils.h (make_cleanup_value_free): Remove.
1579 * utils.c (do_value_free, struct cleanup): Remove.
1580 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1581 Use gdb_value_up.
1582 * value.h (struct value_deleter): New.
1583 (gdb_value_up): New typedef.
1584
1585 2017-10-08 Tom Tromey <tom@tromey.com>
1586
1587 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1588 (make_cleanup_free_search_symbols): Remove.
1589 (search_symbols): Return std::vector.
1590 (symbol_search::compare_search_syms): Now member of
1591 symbol_search. Change arguments.
1592 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1593 (symtab_symbol_info, rbreak_command): Update.
1594 * symtab.h (struct symbol_search) <next>: Remove.
1595 Add constructors.
1596 (symbol_search::operator<): New function.
1597 (symbol_search::operator==): New function.
1598 (search_symbols): Remove std::vector.
1599 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1600 (symbol_search::compare_search_syms): Declare.
1601
1602 2017-10-06 Yao Qi <yao.qi@linaro.org>
1603
1604 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1605 arch/aarch64-insn.o.
1606 Remove one rule.
1607 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1608
1609 2017-10-06 Yao Qi <yao.qi@linaro.org>
1610
1611 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1612 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1613 arch/arm-linux.o respectively.
1614 * configure.tgt: Likewise.
1615
1616 2017-10-06 Yao Qi <yao.qi@linaro.org>
1617
1618 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1619 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1620
1621 2017-10-06 Pedro Alves <palves@redhat.com>
1622
1623 * windows-nat.c: Include <algorithm>.
1624
1625 2017-10-06 Yao Qi <yao.qi@linaro.org>
1626
1627 * configure.tgt (i386_tobjs): New variable.
1628 (amd64_tobjs): New variable.
1629 Set $cpu_obs and $os_obs.
1630
1631 2017-10-06 Yao Qi <yao.qi@linaro.org>
1632
1633 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1634 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1635 (clean): Remove object files and dependency files.
1636 (distclean): Remove the directory.
1637 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1638 * configure: Re-generated.
1639 * configure.tgt: Replace amd64.o with arch/amd64.o.
1640
1641 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1642
1643 PR build/22188
1644 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1645 and SETEND.
1646
1647 2017-10-05 Pedro Alves <palves@redhat.com>
1648
1649 * linux-nat.c (linux_child_follow_fork): When following the parent
1650 and detaching the child, consult the parent thread's architecture
1651 instead of the child's.
1652
1653 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1654
1655 * ax.h: Do not include "doublest.h".
1656 (union agent_val): Remove.
1657
1658 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1659
1660 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1661 (decimal_to_string): Return std::string object.
1662 (decimal_from_string): Accept std::string object. Return bool.
1663 (decimal_from_integral, decimal_from_doublest): Remove.
1664 (decimal_from_longest): Add prototype.
1665 (decimal_from_ulongest): Likewise.
1666 (decimal_to_longest): Likewise.
1667 (decimal_from_doublest): Likewise.
1668 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1669 (MAX_DECIMAL_STRING): Move here.
1670 (decimal_to_string): Return std::string object.
1671 (decimal_from_string): Accept std::string object. Return bool.
1672 (decimal_from_integral): Remove, replace by ...
1673 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1674 (decimal_to_longest): New function.
1675 (decimal_from_floating): Remove, replace by ...
1676 (decimal_from_doublest): ... this new function.
1677 (decimal_to_doublest): Update to new decimal_to_string interface.
1678
1679 * value.c (unpack_long): Use decimal_to_longest.
1680 * valops.c (value_cast): Use decimal_from_doublest instead of
1681 decimal_from_floating. Use decimal_from_[u]longest isntead of
1682 decimal_from_integral.
1683 * valarith.c (value_args_as_decimal): Likewise.
1684 * valprint.c (print_decimal_floating): Update to new
1685 decimal_to_string interface.
1686 * printcmd.c (printf_decfloat): Likewise.
1687 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1688
1689 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1690
1691 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1692 * gdbtypes.c: Include "floatformat.h".
1693 * value.c: Likewise.
1694 * m68k-tdep.c: Likewise.
1695
1696 * findvar.c: Do not include "floatformat.h".
1697 * amd64-darwin-tdep.c: Likewise.
1698 * arm-linux-tdep.c: Likewise.
1699 * i386-darwin-tdep.c: Likewise.
1700 * i387-tdep.c: Likewise.
1701 * m68k-linux-tdep.c: Likewise.
1702 * mep-tdep.c: Likewise.
1703 * mips-tdep.c: Likewise.
1704 * nios2-tdep.c: Likewise.
1705 * s390-linux-tdep.c: Likewise.
1706 * sparc-obsd-tdep.c: Likewise.
1707 * sparc-tdep.c: Likewise.
1708 * sparc64-tdep.c: Likewise.
1709 * spu-tdep.c: Likewise.
1710 * tic6x-tdep.c: Likewise.
1711 * tilegx-tdep.c: Likewise.
1712 * vax-tdep.c: Likewise.
1713 * xstormy16-tdep.c: Likewise.
1714 * xtensa-tdep.c: Likewise.
1715
1716 * top.c: Do not include "doublest.h".
1717 * aarch64-tdep.c: Likewise.
1718 * alpha-tdep.c: Likewise.
1719 * arm-linux-tdep.c: Likewise.
1720 * m68k-linux-tdep.c: Likewise.
1721 * tilegx-tdep.c: Likewise.
1722 * xstormy16-tdep.c: Likewise.
1723
1724 2017-10-05 John Baldwin <jhb@FreeBSD.org>
1725
1726 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1727 (mipsn32_fbsd_sigframe): Define.
1728 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1729 for FreeBSD/mipsn32.
1730
1731 2017-10-05 John Baldwin <jhb@FreeBSD.org>
1732
1733 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1734 AT_HWCAP.
1735
1736 2017-10-05 Tristan Gingold <tgingold@free.fr>
1737
1738 * MAINTAINERS (Misc): Update my email address.
1739
1740 2017-10-04 Pedro Alves <palves@redhat.com>
1741
1742 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1743 it instead of target_gdbarch.
1744 (get_remote_state, get_remote_packet_size): Adjust
1745 get_remote_arch_state calls, passing down target_gdbarch
1746 explicitly.
1747 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
1748 'gdbarch' and use it instead of target_gdbarch.
1749 (get_memory_packet_size): Adjust get_remote_arch_state calls,
1750 passing down target_gdbarch explicitly.
1751 (struct stop_reply) <arch>: New field.
1752 (remote_parse_stop_reply): Use the stopped thread's architecture,
1753 not the current inferior's. Save the architecture in the
1754 stop_reply.
1755 (process_stop_reply): Use the stop reply's architecture.
1756 (process_g_packet, remote_fetch_registers)
1757 (remote_prepare_to_store, store_registers_using_G)
1758 (remote_store_registers): Adjust get_remote_arch_state calls,
1759 using the regcache's architecture.
1760 (remote_get_trace_status): Adjust get_remote_arch_state calls,
1761 passing down target_gdbarch explicitly.
1762 * spu-multiarch.c (spu_thread_architecture): Defer to the target
1763 beneath instead of calling target_gdbarch.
1764 * target.c (default_thread_architecture): Use the specified
1765 inferior's architecture, instead of the current inferior's
1766 architecture (via target_gdbarch).
1767
1768 2017-10-04 Pedro Alves <palves@redhat.com>
1769
1770 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
1771 case.
1772 (regcache_print): Handle !target_has_registers here instead.
1773
1774 2017-10-04 Pedro Alves <palves@redhat.com>
1775
1776 * frame.c (create_test_frame): Delete.
1777 * frame.h (create_test_frame): Delete.
1778 * gdbarch-selftests.c: Include gdbthread.h and target.h.
1779 (class regcache_test): Delete.
1780 (test_target_has_registers, test_target_has_stack)
1781 (test_target_has_memory, test_target_prepare_to_store)
1782 (test_target_store_registers): New functions.
1783 (test_target_ops): New class.
1784 (register_to_value_test): Error out if there's already a
1785 process_stratum (or higher) target pushed. Create a fuller mock
1786 environment, with mock target_ops, inferior, address space, thread
1787 and inferior_ptid.
1788 * progspace.c (struct address_space): Move to ...
1789 * progspace.h (struct address_space): ... here.
1790 * regcache.h (regcache::~regcache, regcache::raw_write)
1791 [GDB_SELF_TEST]: No longer virtual.
1792
1793 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
1794
1795 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
1796
1797 2017-10-04 Pedro Alves <palves@redhat.com>
1798
1799 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
1800 out of 'between TRY and CATCH'.
1801
1802 2017-10-04 Pedro Alves <palves@redhat.com>
1803
1804 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
1805 * common/common-exceptions.h (TRY): Open an outermost scope.
1806 Expand intro comment.
1807 (CATCH): Reindent.
1808 (END_CATCH): Close the outermost scope.
1809 * completer.c (complete_line_internal): Add missing END_CATCH.
1810
1811 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1812
1813 * NEWS (Changes since GDB 8.0): Add entry about new
1814 'set-cwd-on-gdbserver' feature.
1815 (New remote packets): Add entry for QSetWorkingDir.
1816 * common/common-inferior.h (set_inferior_cwd): New prototype.
1817 * infcmd.c (set_inferior_cwd): Remove "static".
1818 (show_cwd_command): Expand text to include remote debugging.
1819 * remote.c: Add PACKET_QSetWorkingDir.
1820 (remote_protocol_features) <QSetWorkingDir>: New entry for
1821 PACKET_QSetWorkingDir.
1822 (extended_remote_set_inferior_cwd): New function.
1823 (extended_remote_create_inferior): Call
1824 "extended_remote_set_inferior_cwd".
1825 (_initialize_remote): Call "add_packet_config_cmd" for
1826 QSetWorkingDir.
1827
1828 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1829
1830 * NEWS (New commands): Mention "set/show cwd".
1831 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
1832 "cd" command's help text.
1833 * common/common-inferior.h (get_inferior_cwd): New prototype.
1834 * infcmd.c (inferior_cwd_scratch): New global variable.
1835 (set_inferior_cwd): New function.
1836 (get_inferior_cwd): Likewise.
1837 (set_cwd_command): Likewise.
1838 (show_cwd_command): Likewise.
1839 (_initialize_infcmd): Add "set/show cwd" commands.
1840 * inferior.h (class inferior) <cwd>: New field.
1841 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
1842 (fork_inferior): Change inferior's cwd before its execution.
1843 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
1844 to CreateProcess.
1845
1846 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1847
1848 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
1849 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
1850 (COMMON_OBS): Add gdb_tilde_expand.o.
1851 * common/gdb_tilde_expand.c: New file.
1852 * common/gdb_tilde_expand.h: Likewise.
1853
1854 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
1855
1856 * gdbarch.sh (objfile): Remove duplicate declaration.
1857 * gdbarch.h: Regenerate.
1858
1859 2017-10-03 Tom Tromey <tom@tromey.com>
1860
1861 * utils.c (internal_vproblem): Use string_vprintf.
1862
1863 2017-10-03 Tom Tromey <tom@tromey.com>
1864
1865 * printcmd.c (info_symbol_command): Use std::string.
1866
1867 2017-10-03 Tom Tromey <tom@tromey.com>
1868
1869 * top.c (gdb_safe_append_history): Use std::string.
1870
1871 2017-10-03 Tom Tromey <tom@tromey.com>
1872
1873 * event-top.c (stdin_event_handler): Update.
1874 * main.c (captured_main_1): Update.
1875 * top.h (make_delete_ui_cleanup): Remove.
1876 (struct ui): Add constructor and destructor.
1877 (new_ui, delete_ui): Remove.
1878 * top.c (make_delete_ui_cleanup): Remove.
1879 (new_ui_command): Use std::unique_ptr.
1880 (delete_ui_cleanup): Remove.
1881 (ui::ui): Rename from new_ui. Update.
1882 (free_ui): Remove.
1883 (ui::~ui): Rename from delete_ui. Update.
1884
1885 2017-10-03 Tom Tromey <tom@tromey.com>
1886
1887 * symfile.c (load_progress): Use gdb::byte_vector.
1888
1889 2017-10-03 Tom Tromey <tom@tromey.com>
1890
1891 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
1892 declaration.
1893 * printcmd.c (x_command): Remove unused declaration.
1894 * symfile.c (symbol_file_command): Remove unused declaration.
1895
1896 2017-10-03 Tom Tromey <tom@tromey.com>
1897
1898 * utils.c (internal_vproblem): Use std::string.
1899 (defaulted_query): Likewise.
1900
1901 2017-10-03 Tom Tromey <tom@tromey.com>
1902
1903 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
1904 * top.c (execute_command_to_string): Update.
1905 * utils.c (make_cleanup_restore_page_info): Remove.
1906 (do_restore_page_info_cleanup): Remove.
1907 (set_batch_flag_and_restore_page_info):
1908 New.
1909 (make_cleanup_restore_page_info): Remove.
1910 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1911 (~set_batch_flag_and_restore_page_info): New
1912 (make_cleanup_restore_uinteger): Remove.
1913 (make_cleanup_restore_integer): Remove.
1914 (struct restore_integer_closure): Remove.
1915 (restore_integer): Remove.
1916 * utils.h (struct set_batch_flag_and_restore_page_info): New
1917 class.
1918 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1919 (make_cleanup_restore_page_info): Remove.
1920 (make_cleanup_restore_uinteger) Remove.
1921 (make_cleanup_restore_integer) Remove.
1922
1923 2017-10-03 Tom Tromey <tom@tromey.com>
1924
1925 * record-full.h (record_full_gdb_operation_disable_set): Return
1926 scoped_restore_tmpl<int>.
1927 * infrun.c (adjust_pc_after_break): Update.
1928 (handle_signal_stop): Update.
1929 * record-full.c (record_full_gdb_operation_disable_set): Return
1930 scoped_restore_tmpl<int>.
1931 (record_full_wait_1, record_full_insert_breakpoint)
1932 (record_full_remove_breakpoint, record_full_save)
1933 (record_full_goto_insn): Update.
1934
1935 2017-10-02 Tom Tromey <tom@tromey.com>
1936
1937 PR rust/22236:
1938 * rust-lang.c (rust_val_print_str): New function.
1939 (val_print_struct): Call it.
1940 (rust_subscript): Preserve name of slice type.
1941
1942 2017-10-02 Tom Tromey <tom@tromey.com>
1943
1944 * rust-lang.c (rust_subscript): Handle slices in
1945 EVAL_AVOID_SIDE_EFFECTS case.
1946
1947 2017-10-02 Tom Tromey <tom@tromey.com>
1948
1949 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
1950
1951 2017-10-02 Tom Tromey <tom@tromey.com>
1952
1953 * rust-lang.h (rust_slice_type): Add "extern".
1954
1955 2017-10-02 Tom Tromey <tom@tromey.com>
1956 Pedro Alves <palves@redhat.com>
1957
1958 * ada-lang.h (ada_exc_info::operator<): Make const.
1959 (ada_exc_info::operator==): Make const.
1960 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
1961 Make const.
1962
1963 2017-09-29 Tom Tromey <tom@tromey.com>
1964
1965 * target.c (read_whatever_is_readable): Change type of "result".
1966 Update.
1967 (free_memory_read_result_vector): Remove.
1968 (read_memory_robust): Change return type. Update.
1969 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
1970 bin2hex, std::string.
1971 * target.h (memory_read_result_s): Remove typedef.
1972 (free_memory_read_result_vector): Remove.
1973 (read_memory_robust): Return std::vector.
1974
1975 2017-09-29 Tom Tromey <tom@tromey.com>
1976
1977 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
1978
1979 2017-09-29 Tom Tromey <tom@tromey.com>
1980
1981 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
1982 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
1983 operator< and operator==.
1984 (ada_exceptions_list): Return a std::vector.
1985 * ada-lang.c (ada_exc_info::operator<): Rename from
1986 compare_ada_exception_info.
1987 (ada_exc_info::operator==): New.
1988 (sort_remove_dups_ada_exceptions_list): Change type of
1989 "exceptions".
1990 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
1991 (ada_add_global_exceptions): Likewise.
1992 (ada_exceptions_list_1): Return a std::vector.
1993 (ada_exceptions_list): Likewise.
1994
1995 2017-09-29 Tom Tromey <tom@tromey.com>
1996
1997 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
1998 'std::set *'.
1999 (print_one_inferior): Update.
2000 (free_vector_of_ints): Remove.
2001 (list_available_thread_groups): Change "ids" to std::set.
2002 (mi_cmd_list_thread_groups): Update.
2003 (struct collect_cores_data) <core>: Now a std::set.
2004 (collect_cores): Update.
2005 (unique): Remove.
2006 (print_one_inferior): Update.
2007
2008 2017-09-29 Tom Tromey <tom@tromey.com>
2009
2010 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2011 (mi_execute_async_cli_command): Likewise.
2012 (mi_cmd_trace_frame_collected): Use field_fmt.
2013
2014 2017-09-29 Tom Tromey <tom@tromey.com>
2015
2016 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2017 gdb::byte_vector.
2018
2019 2017-09-29 Tom Tromey <tom@tromey.com>
2020
2021 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2022
2023 2017-09-29 Tom Tromey <tom@tromey.com>
2024
2025 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2026
2027 2017-09-29 Tom Tromey <tom@tromey.com>
2028
2029 * varobj.h (varobj_gen_name): Return std::string.
2030 * varobj.c (varobj_gen_name): Return std::string.
2031 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2032 (mi_cmd_var_delete): Don't copy "name".
2033
2034 2017-09-29 Tom Tromey <tom@tromey.com>
2035
2036 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2037 (mi_cmd_break_insert_1): Update.
2038
2039 2017-09-29 Tom Tromey <tom@tromey.com>
2040
2041 * target.h (make_scoped_defer_target_commit_resume): Update.
2042 * target.c (make_scoped_defer_target_commit_resume): Rename from
2043 make_cleanup_defer_target_commit_resume. Return a
2044 scoped_restore.
2045 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2046
2047 2017-09-29 Tom Tromey <tom@tromey.com>
2048
2049 * main.c (captured_main_1): Remove unused declaration.
2050 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2051
2052 2017-09-29 Tom Tromey <tom@tromey.com>
2053
2054 * symtab.c (search_symbols): Remove unused outer cleanup.
2055 (make_source_files_completion_list): Remove unused declaration.
2056
2057 2017-09-29 Tom Tromey <tom@tromey.com>
2058
2059 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2060
2061 2017-09-29 Tom Tromey <tom@tromey.com>
2062
2063 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2064 gdb::byte_vector.
2065
2066 2017-09-29 Tom Tromey <tom@tromey.com>
2067
2068 * complaints.c (vcomplaint): Use std::string.
2069
2070 2017-09-29 Tom Tromey <tom@tromey.com>
2071
2072 * tracepoint.c (trace_variable_command): Use std::string.
2073 (encode_actions_1): Remove unused declarations.
2074 (create_tsv_from_upload): Use std::string.
2075
2076 2017-09-29 Tom Tromey <tom@tromey.com>
2077
2078 * cp-support.c (gdb_demangle): Use std::string.
2079
2080 2017-09-29 Tom Tromey <tom@tromey.com>
2081
2082 * stack.c (parse_frame_specification): Use std::string
2083 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2084
2085 2017-09-29 Tom Tromey <tom@tromey.com>
2086
2087 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2088
2089 2017-09-29 Tom Tromey <tom@tromey.com>
2090
2091 * utils.c (vfprintf_maybe_filtered): Use std::string.
2092 (vfprintf_unfiltered): Likewise.
2093
2094 2017-09-29 Tom Tromey <tom@tromey.com>
2095
2096 * event-top.c (top_level_prompt): Return std::string.
2097 (display_gdb_prompt): Update.
2098
2099 2017-09-29 Tom Tromey <tom@tromey.com>
2100
2101 * unittests/common-utils-selftests.c (format): New function.
2102 (string_vprintf_tests): New function.
2103 (_initialize_common_utils_selftests): Register new tests.
2104 * common/common-utils.c (string_vprintf): New function.
2105 * common/common-utils.h (string_vprintf): Declare.
2106
2107 2017-09-29 Pedro Alves <palves@redhat.com>
2108
2109 * common/rsp-low.c (unpack_varlen_hex): Constify.
2110 * common/rsp-low.h (unpack_varlen_hex): Constify.
2111 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2112 Constify.
2113 * remote.c (remote_set_permissions, read_ptid)
2114 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2115 (remote_static_tracepoint_marker_at)
2116 (remote_static_tracepoint_markers_by_strid)
2117 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2118 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2119 (parse_tracepoint_definition, parse_tsv_definition)
2120 (parse_static_tracepoint_marker_definition): Constify.
2121 * tracepoint.h (parse_static_tracepoint_marker_definition)
2122 (parse_trace_status, parse_tracepoint_status)
2123 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2124
2125 2017-09-29 Pedro Alves <palves@redhat.com>
2126
2127 * remote.c (target_buf, target_buf_size): Delete.
2128 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2129 Use the connection's packet buffer instead.
2130 All callers adjusted.
2131 (_initialize_remote): Remove references to target_buf and
2132 target_buf_size.
2133
2134 2017-09-28 Pedro Alves <palves@redhat.com>
2135
2136 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2137 unittests/common-utils-selftests.c.
2138 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2139 (COMMON_OBS): Remove utils-selftests.o.
2140 * utils-selftests.c: Move to ...
2141 * unittests/common-utils-selftests.c: ... here and rename self
2142 test to "string_printf".
2143
2144 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2145
2146 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2147 having NULL cus or tus.
2148
2149 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2150
2151 * arm-tdep.c: (convert_from_extended): Remove.
2152 (convert_to_extended): Likewise.
2153 (arm_extract_return_value): Use convert_typed_floating.
2154 (arm_store_return_value): Likewise.
2155
2156 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2157 * sh-tdep.c: Do not include "floatformat.h".
2158 (sh_littlebyte_bigword_type): New function.
2159 (sh_register_convert_to_virtual): Use convert_typed_floating.
2160 (sh_register_convert_to_raw): Likewise.
2161 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2162 (sh64_littlebyte_bigword_type): New function.
2163 (sh64_extract_return_value): Use convert_typed_floating.
2164 (sh64_register_convert_to_virtual): Likewise.
2165 (sh64_register_convert_to_raw): Likewise.
2166
2167 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2168
2169 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2170 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2171
2172 * gdbtypes.h (union type_specific): Make field floatformat hold
2173 just a single struct floatformat, not an array.
2174 (floatformat_from_type): Move here.
2175 * gdbtypes.c (floatformat_from_type): Move here. Update to
2176 changed TYPE_FLOATFORMAT definition.
2177 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2178 (recursive_dump_type): Likewise.
2179 (init_float_type): Install correct floatformat for byte order.
2180 (arch_float_type): Likewise.
2181
2182 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2183
2184 * gdbtypes.c (init_type): Change incoming argument from
2185 length-in-bytes to length-in-bits. Assert length is a
2186 multiple of TARGET_CHAR_BITS.
2187 (arch_type, arch_flags_type): Likewise.
2188 (init_integer_type): Update call to init_type.
2189 (init_character_type): Likewise.
2190 (init_boolean_type): Likewise.
2191 (init_float_type): Likewise.
2192 (init_decfloat_type): Likewise.
2193 (init_complex_type): Likewise.
2194 (init_pointer_type): Likewise.
2195 (objfile_type): Likewise.
2196 (arch_integer_type): Update call to arch_type.
2197 (arch_character_type): Likewise.
2198 (arch_boolean_type): Likewise.
2199 (arch_float_type): Likewise.
2200 (arch_decfloat_type): Likewise.
2201 (arch_complex_type): Likewise.
2202 (arch_pointer_type): Likewise.
2203 (gdbtypes_post_init): Likewise.
2204
2205 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2206 (read_base_type): Likewise.
2207 * mdebugread.c (basic_type): Likewise.
2208 * stabsread.c (dbx_init_float_type): Likewise.
2209 (rs6000_builtin_type): Likewise.
2210 (read_range_type): Likewise. Also, fix call to init_integer_type
2211 with erroneous length argument.
2212
2213 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2214 * d-lang.c (build_d_types): Likewise.
2215 * f-lang.c (build_fortran_types): Likewise.
2216 * go-lang.c (build_go_types): Likewise.
2217 * opencl-lang.c (build_opencl_types): Likewise.
2218 * jit.c (finalize_symtab): Likewise.
2219 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2220 (build_std_type_info_type): Likewise.
2221 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2222 update call to arch_flags_type.
2223
2224 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2225 arch_type.
2226 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2227 * windows-tdep.c (windows_get_tlb_type): Likewise.
2228
2229 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2230 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2231 * m32c-tdep.c (make_types): Likewise.
2232 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2233 (rl78_psw_type): Update call to arch_flags_type.
2234 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2235 * rx-tdep.c (rx_psw_type): Likewise.
2236 (rx_fpsw_type): Likewise.
2237 * sparc-tdep.c (sparc_psr_type): Likewise.
2238 (sparc_fsr_type): Likewise.
2239 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2240 (sparc64_ccr_type): Likewise.
2241 (sparc64_fsr_type): Likewise.
2242 (sparc64_fprs_type): Likewise.
2243
2244 2017-09-27 Tom Tromey <tom@tromey.com>
2245
2246 * findcmd.c (find_command): Constify.
2247
2248 2017-09-27 Tom Tromey <tom@tromey.com>
2249
2250 * ada-tasks.c (task_command_1, task_command): Constify.
2251
2252 2017-09-27 Tom Tromey <tom@tromey.com>
2253
2254 * symtab.c (maintenance_print_symbol_cache)
2255 (maintenance_flush_symbol_cache)
2256 (maintenance_print_symbol_cache_statistics): Constify.
2257
2258 2017-09-27 Tom Tromey <tom@tromey.com>
2259
2260 * inferior.c (detach_inferior_command, kill_inferior_command)
2261 (inferior_command): Constify.
2262
2263 2017-09-27 Tom Tromey <tom@tromey.com>
2264
2265 * regcache.c (regcache_print, maintenance_print_registers)
2266 (maintenance_print_raw_registers)
2267 (maintenance_print_cooked_registers)
2268 (maintenance_print_register_groups)
2269 (maintenance_print_remote_registers): Constify.
2270
2271 2017-09-27 Tom Tromey <tom@tromey.com>
2272
2273 * printcmd.c (map_display_numbers, undisplay_command)
2274 (enable_disable_display_command, enable_display_command)
2275 (disable_display_command): Constify.
2276
2277 2017-09-27 Tom Tromey <tom@tromey.com>
2278
2279 * breakpoint.h (delete_command): Don't declare.
2280 * breakpoint.c (delete_command, enable_once_command)
2281 (enable_count_command, enable_delete_command, breakpoint_1)
2282 (maintenance_info_breakpoints, stopin_command, stopat_command)
2283 (delete_command, delete_trace_command, save_breakpoints)
2284 (save_breakpoints_command, save_tracepoints_command): Constify.
2285
2286 2017-09-27 Tom Tromey <tom@tromey.com>
2287
2288 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2289 (skip_ws, extract_identifier, macro_define_command)
2290 (macro_undef_command, macro_list_command): Constify.
2291
2292 2017-09-27 Tom Tromey <tom@tromey.com>
2293
2294 * infcmd.c (environment_info, set_environment_command)
2295 (unset_environment_command, path_info, info_proc_cmd_1)
2296 (info_proc_cmd_mappings, info_proc_cmd_stat)
2297 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2298 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2299
2300 2017-09-27 Tom Tromey <tom@tromey.com>
2301
2302 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2303 Constify.
2304
2305 2017-09-27 Tom Tromey <tom@tromey.com>
2306
2307 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2308
2309 2017-09-27 Tom Tromey <tom@tromey.com>
2310
2311 * demangle.c (demangle_command): Constify.
2312
2313 2017-09-27 Tom Tromey <tom@tromey.com>
2314
2315 * progspace.c (maintenance_info_program_spaces_command):
2316 Constify.
2317
2318 2017-09-27 Tom Tromey <tom@tromey.com>
2319
2320 * compile/compile.c (check_raw_argument, compile_file_command)
2321 (compile_code_command, compile_print_command): Constify.
2322
2323 2017-09-27 Tom Tromey <tom@tromey.com>
2324
2325 * reggroups.c (maintenance_print_reggroups): Constify.
2326
2327 2017-09-27 Tom Tromey <tom@tromey.com>
2328
2329 * dwarf2read.c (save_gdb_index_command): Constify.
2330
2331 2017-09-27 Tom Tromey <tom@tromey.com>
2332
2333 * stap-probe.c (info_probes_stap_command): Constify.
2334
2335 2017-09-27 Tom Tromey <tom@tromey.com>
2336
2337 * fork-child.c (unset_exec_wrapper_command): Constify.
2338
2339 2017-09-27 Tom Tromey <tom@tromey.com>
2340
2341 * btrace.c (get_uint, get_context_size, no_chunk)
2342 (maint_btrace_packet_history_cmd)
2343 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2344 (maint_info_btrace_cmd): Constify.
2345
2346 2017-09-27 Tom Tromey <tom@tromey.com>
2347
2348 * reverse.c (delete_bookmark_command): Constify.
2349
2350 2017-09-27 Tom Tromey <tom@tromey.com>
2351
2352 * remote.c (set_memory_packet_size)
2353 (set_memory_write_packet_size, show_memory_write_packet_size)
2354 (set_memory_read_packet_size, show_memory_read_packet_size)
2355 (compare_sections_command, packet_command, remote_put_command)
2356 (remote_get_command, remote_delete_command): Constify.
2357
2358 2017-09-27 Tom Tromey <tom@tromey.com>
2359
2360 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2361 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2362 (set_mipsfpu_auto_command): Constify.
2363
2364 2017-09-27 Tom Tromey <tom@tromey.com>
2365
2366 * cli/cli-cmds.h (cd_command): Constify.
2367 * cli/cli-cmds.c (cd_command): Constify.
2368
2369 2017-09-27 Tom Tromey <tom@tromey.com>
2370
2371 * thread.c (thread_name_command, thread_find_command): Constify.
2372
2373 2017-09-27 Tom Tromey <tom@tromey.com>
2374
2375 * probe.c (enable_probes_command, disable_probes_command):
2376 Constify.
2377
2378 2017-09-27 Tom Tromey <tom@tromey.com>
2379
2380 * symfile.c (symbol_file_command): Constify.
2381 * gdbcore.h (deprecated_file_changed_hook): Constify.
2382 * exec.c (deprecated_file_changed_hook, exec_file_command)
2383 (file_command): Constify.
2384 * defs.h (symbol_file_command): Constify.
2385
2386 2017-09-27 Tom Tromey <tom@tromey.com>
2387
2388 * remote-fileio.c (set_system_call_allowed)
2389 (show_system_call_allowed): Constify.
2390
2391 2017-09-27 Tom Tromey <tom@tromey.com>
2392
2393 * tracepoint.c (delete_trace_variable_command)
2394 (tfind_end_command, tfind_start_command, tfind_pc_command)
2395 (tfind_tracepoint_command, tfind_line_command)
2396 (tfind_range_command, tfind_outside_command): Constify.
2397
2398 2017-09-27 Tom Tromey <tom@tromey.com>
2399
2400 * ax-gdb.c (maint_agent_printf_command, agent_command)
2401 (agent_eval_command): Constify.
2402
2403 2017-09-27 Tom Tromey <tom@tromey.com>
2404
2405 * tracepoint.c (info_scope_command): Constify.
2406 * python/python.c (gdbpy_decode_line): Constify.
2407 * python/py-breakpoint.c (bppy_init): Constify.
2408 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2409 * location.h: (new_linespec_location)
2410 (string_to_event_location_basic, string_to_event_location):
2411 Constify.
2412 * location.c (new_linespec_location)
2413 (string_to_event_location_basic, string_to_event_location):
2414 Constify.
2415 * linespec.h (decode_line_with_current_source)
2416 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2417 * linespec.c (linespec_lex_to_end)
2418 (decode_line_with_current_source)
2419 (decode_line_with_last_displayed): Constify.
2420 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2421 Constify.
2422 * cli/cli-cmds.c (edit_command, list_command): Constify.
2423 * breakpoint.h (until_break_command, watch_command_wrapper)
2424 (awatch_command_wrapper, rwatch_command_wrapper)
2425 (init_ada_exception_breakpoint): Constify.
2426 * breakpoint.c (break_command_1, dprintf_command)
2427 (break_range_command, watch_command_wrapper)
2428 (rwatch_command_wrapper, awatch_command_wrapper)
2429 (until_break_command, init_ada_exception_breakpoint)
2430 (strace_marker_create_sals_from_location, trace_command)
2431 (ftrace_command, strace_command, struct tracepoint): Constify.
2432 * ax-gdb.c (agent_command_1): Constify.
2433 * ada-lang.c (ada_exception_sal): Constify.
2434
2435 2017-09-27 Tom Tromey <tom@tromey.com>
2436
2437 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2438 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2439 (get_context_size, no_chunk, get_insn_history_modifiers)
2440 (cmd_record_insn_history, get_call_history_modifiers)
2441 (cmd_record_call_history): Constify.
2442
2443 2017-09-27 Tom Tromey <tom@tromey.com>
2444
2445 * source.c (show_substitute_path_command)
2446 (unset_substitute_path_command, set_substitute_path_command):
2447 Constify.
2448
2449 2017-09-27 Tom Tromey <tom@tromey.com>
2450
2451 * typeprint.c (maintenance_print_type): Constify.
2452 * maint.c (maintenance_dump_me, maintenance_demangle)
2453 (maintenance_time_display, maintenance_info_sections)
2454 (maintenance_print_statistics, maintenance_deprecate)
2455 (maintenance_undeprecate): Constify.
2456 (maintenance_do_deprecate): Constify. Use std::string.
2457 (maintenance_selftest): Constify.
2458 * gdbtypes.h (maintenance_print_type): Constify.
2459
2460 2017-09-27 Tom Tromey <tom@tromey.com>
2461
2462 * hppa-tdep.c (unwind_command): Constify.
2463
2464 2017-09-27 Tom Tromey <tom@tromey.com>
2465
2466 * target-descriptions.c (unset_tdesc_filename_cmd)
2467 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2468 Constify.
2469
2470 2017-09-27 Tom Tromey <tom@tromey.com>
2471
2472 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2473
2474 2017-09-27 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2477
2478 2017-09-27 Tom Tromey <tom@tromey.com>
2479
2480 * tui/tui-regs.c (tui_reg_command): Constify.
2481
2482 2017-09-27 Tom Tromey <tom@tromey.com>
2483
2484 * skip.c (skip_file_command, skip_function_command)
2485 (skip_enable_command, skip_disable_command, skip_delete_command):
2486 Constify.
2487
2488 2017-09-27 Tom Tromey <tom@tromey.com>
2489
2490 * record-btrace.c (cmd_record_btrace_bts_start)
2491 (cmd_record_btrace_pt_start): Constify.
2492
2493 2017-09-27 Tom Tromey <tom@tromey.com>
2494
2495 * symmisc.c (maintenance_print_symbols)
2496 (maintenance_print_msymbols, maintenance_print_objfiles)
2497 (maintenance_info_symtabs, maintenance_check_symtabs)
2498 (maintenance_expand_symtabs, maintenance_info_line_tables):
2499 Constify.
2500
2501 2017-09-27 Tom Tromey <tom@tromey.com>
2502
2503 * top.c (new_ui_command): Constify.
2504
2505 2017-09-27 Tom Tromey <tom@tromey.com>
2506
2507 * symfile.c (add_symbol_file_command)
2508 (remove_symbol_file_command, list_overlays_command)
2509 (map_overlay_command, unmap_overlay_command)
2510 (overlay_auto_command, overlay_manual_command)
2511 (overlay_off_command, overlay_load_command): Constify.
2512
2513 2017-09-27 Tom Tromey <tom@tromey.com>
2514
2515 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2516 (info_spu_mailbox_command, info_spu_dma_command)
2517 (info_spu_proxydma_command): Constify.
2518
2519 2017-09-27 Tom Tromey <tom@tromey.com>
2520
2521 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2522
2523 2017-09-27 Tom Tromey <tom@tromey.com>
2524
2525 * cli/cli-script.c (user_defined_command): Constify.
2526
2527 2017-09-27 Tom Tromey <tom@tromey.com>
2528
2529 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2530 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2531 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2532 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2533 (dump_binary_value, append_binary_memory, append_binary_value):
2534 Constify.
2535 (struct dump_context) <func>: Constify.
2536 (add_dump_command): Update.
2537
2538 2017-09-27 Tom Tromey <tom@tromey.com>
2539
2540 * cli/cli-cmds.c (show_version, show_configuration)
2541 (source_command, show_user): Constify.
2542
2543 2017-09-27 Tom Tromey <tom@tromey.com>
2544
2545 * target.c (maintenance_print_target_stack): Constify.
2546
2547 2017-09-27 Tom Tromey <tom@tromey.com>
2548
2549 * interps.c (interpreter_exec_cmd): Constify.
2550
2551 2017-09-27 Tom Tromey <tom@tromey.com>
2552
2553 * record-full.c (cmd_record_full_restore): Constify.
2554
2555 2017-09-27 Tom Tromey <tom@tromey.com>
2556
2557 * memattr.c (enable_mem_command, disable_mem_command)
2558 (delete_mem_command): Constify.
2559
2560 2017-09-27 Tom Tromey <tom@tromey.com>
2561
2562 * value.c (show_convenience): Constify.
2563
2564 2017-09-27 Tom Tromey <tom@tromey.com>
2565
2566 * gdbcore.h (core_file_command): Update.
2567 * corefile.c (core_file_command): Constify.
2568
2569 2017-09-27 Tom Tromey <tom@tromey.com>
2570
2571 * user-regs.c (maintenance_print_user_registers): Constify.
2572
2573 2017-09-27 Tom Tromey <tom@tromey.com>
2574
2575 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2576
2577 2017-09-27 Tom Tromey <tom@tromey.com>
2578
2579 * cp-support.c (first_component_command): Constify.
2580
2581 2017-09-27 Tom Tromey <tom@tromey.com>
2582
2583 * psymtab.c (maintenance_print_psymbols)
2584 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2585 Constify.
2586
2587 2017-09-27 Tom Tromey <tom@tromey.com>
2588
2589 * windows-tdep.c (display_tib): Constify.
2590
2591 2017-09-27 Tom Tromey <tom@tromey.com>
2592
2593 * linux-fork.c (delete_checkpoint_command)
2594 (detach_checkpoint_command): Constify.
2595
2596 2017-09-27 Tom Tromey <tom@tromey.com>
2597
2598 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2599
2600 2017-09-27 Tom Tromey <tom@tromey.com>
2601
2602 * arc-tdep.c (dump_arc_instruction_command): Constify.
2603
2604 2017-09-27 Tom Tromey <tom@tromey.com>
2605
2606 * valprint.c (set_radix, show_radix): Constify.
2607
2608 2017-09-27 Tom Tromey <tom@tromey.com>
2609
2610 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2611
2612 2017-09-27 Tom Tromey <tom@tromey.com>
2613
2614 * command.h (not_just_help_class_command): Update.
2615 * cli/cli-decode.h (not_just_help_class_command): Update.
2616 * cli/cli-decode.c (not_just_help_class_command): Constify.
2617
2618 2017-09-27 Tom Tromey <tom@tromey.com>
2619
2620 * gdb_bfd.c (maintenance_info_bfds): Constify.
2621
2622 2017-09-27 Tom Tromey <tom@tromey.com>
2623
2624 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2625 overloads.
2626 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2627 (do_const_cfunc): New function.
2628 (cmd_cfunc_eq): New overload.
2629 (cli_user_command_p): Check do_const_cfunc.
2630 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2631 const_cfunc.
2632 * command.h (add_cmd): Add const overload and no-function
2633 overload.
2634 (set_cmd_cfunc): Add const overload.
2635 (cmd_const_cfunc_ftype): Declare.
2636 (cmd_cfunc_eq): Add const overload.
2637 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2638 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2639 overload.
2640
2641 2017-09-27 Tom Tromey <tom@tromey.com>
2642
2643 * macroexp.c (get_next_token_for_substitution): New function.
2644 (substitute_args): Call it. Check for __VA_OPT__.
2645
2646 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2647 Pedro Alves <palves@redhat.com>
2648
2649 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2650 producer_is_icc_lt_14.
2651 (producer_is_icc_lt_14): New function.
2652 (check_producer): Add code for checking version of ICC.
2653 (producer_is_icc): Move to producer.c.
2654 (read_structure_type): Restrict ICC workaround to ICC<14.
2655 * producer.c: Include selftest.h.
2656 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2657 New functions.
2658 * producer.h (producer_is_icc): New declaration.
2659
2660 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2661
2662 * Makefile.in (SFILES): Add producer.c.
2663 (COMMON_OBS): Add producer.o
2664 * amd64-tdep.c (producer.h): Add new include.
2665 * dwarf2read.c (producer.h): Add new include.
2666 * producer.c: New file.
2667 * producer.h: New file.
2668 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2669 producer.c.
2670 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2671 producer.h.
2672
2673 2017-09-26 Matthias Klose <doko@ubuntu.com>
2674
2675 * configure.ac: Search ncursesw before ncurses.
2676 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2677 * gdb_curses.h: Include <ncursesw/ncurses.h>
2678 * config.in, configure: Regenerate.
2679
2680 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2681
2682 PR gdb/22185
2683 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2684 obsolete.
2685 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2686 Remove i386sol2 support.
2687 * configure.nat <i386sol2>: Remove.
2688 <sol2-64>: Fold into ...
2689 <sol2>: ... this.
2690 Move common settings to default section.
2691 Add sol-thread.o.
2692 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2693 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2694 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2695 <i[34567]86-*-solaris*>: Remove.
2696 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2697
2698 * configure.ac: Remove wctype in libw check.
2699 (_MSE_INT_H): Don't define on Solaris 7-9.
2700 <solaris*>: Remove libthread_db.so.1 check.
2701 * configure: Regenerate.
2702 * config.in: Regenerate.
2703
2704 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2705 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2706 (gdb_ps_size_t): Remove.
2707 Use base types in users.
2708 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2709
2710 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2711
2712 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2713
2714 PR build/22206
2715 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2716 (adi_is_addr_mapped): Likewise.
2717 (PSR_ICC): Don't redefine.
2718 (PSR_IMPL): Likewise.
2719
2720 2017-09-25 Tom Tromey <tom@tromey.com>
2721
2722 * regcache.c (regcache::dump): Use string_printf.
2723
2724 2017-09-25 Tom Tromey <tom@tromey.com>
2725
2726 * regcache.c (class regcache_invalidator): New.
2727 (struct register_to_invalidate): Remove.
2728 (make_cleanup_regcache_invalidate): Remove.
2729 (regcache::raw_write): Use regcache_invalidator.
2730
2731 2017-09-25 Tom Tromey <tom@tromey.com>
2732
2733 * spu-tdep.c (spu2ppu_sniffer): Update.
2734 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2735 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2736 Remove.
2737 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2738 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2739 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2740 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2741 (frame_pop): Update.
2742
2743 2017-09-25 Tom Tromey <tom@tromey.com>
2744
2745 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
2746 * regcache.h (regcache_xfree): Don't declare.
2747 * regcache.c (regcache_xfree): Remove.
2748 (do_regcache_xfree): Use delete.
2749 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
2750 * linux-fork.c (free_fork): Use delete.
2751 (fork_save_infrun_state): Likewise.
2752 * jit.c (jit_dealloc_cache): Use delete.
2753 * infrun.c (discard_infcall_suspend_state): Use delete.
2754
2755 2017-09-25 Tom Tromey <tom@tromey.com>
2756
2757 * regcache.h (regcache_xmalloc): Don't declare.
2758 (regcache_raw_set_cached_value): Update comment.
2759 * regcache.c (regcache_xmalloc): Remove.
2760 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
2761 * jit.c (jit_frame_sniffer): Use new.
2762 * frame.c (frame_save_as_regcache): Use new.
2763
2764 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2765
2766 * NEWS: Advertise support for guarded-storage registers on IBM z.
2767
2768 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2769
2770 * s390-linux-nat.c (have_regset_gs): New static variable.
2771 (s390_linux_fetch_inferior_registers): Handle guarded-storage
2772 control block and guarded-storage broadcast control regsets.
2773 (s390_read_description): Detect whether the target has
2774 guarded-storage support, return appropriate tdesc.
2775 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
2776 (features/s390x-gs-linux64.c): Likewise.
2777 (struct gdbarch_tdep) <have_gs>: New field.
2778 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
2779 (s390_gsbc_regset): New variables.
2780 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
2781 and s390_gsbc_regset, if applicable.
2782 (s390_core_read_description): Check whether core file was from a
2783 target with guarded-storage support; include appropriate regsets.
2784 (s390_gdbarch_init): Add registers for guarded-storage support.
2785 (_initialize_s390_tdep): Initialize new target descriptions that
2786 include registers for guarded-storage support.
2787 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
2788 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
2789 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
2790 (S390_NUM_REGS): Adjust macro definition.
2791 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
2792 (tdesc_s390x_gs_linux64): New declarations.
2793
2794 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2795
2796 * features/s390-gs-linux64.xml: New file.
2797 * features/s390-gs.xml: New file.
2798 * features/s390-gsbc.xml: New file.
2799 * features/s390x-gs-linux64.xml: New file.
2800 * features/Makefile (WHICH): Add s390-gs-linux64 and
2801 s390x-gs-linux64.
2802 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
2803 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
2804 * features/s390-gs-linux64.c: New generated file.
2805 * features/s390x-gs-linux64.c: New file.
2806 * regformats/s390-gs-linux64.dat: New file.
2807 * regformats/s390x-gs-linux64.dat: New file.
2808
2809 2017-09-23 Tom Tromey <tom@tromey.com>
2810
2811 * defs.h (make_cleanup_override_quit_handler): Don't declare.
2812
2813 2017-09-22 Tom Tromey <tom@tromey.com>
2814
2815 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
2816 type to scoped_restore_tmpl.
2817 <scoped_input_handler>: Initialize m_quit_handler directly.
2818
2819 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2820
2821 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
2822 (cd_command): Likewise. Free "current_directory" before
2823 assigning to it.
2824 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
2825 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
2826 * top.c (gdb_dirbuf): Remove global declaration.
2827 * top.h (gdb_dirbuf): Likewise.
2828
2829 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2830
2831 * gnulib/aclocal.m4: Regenerate.
2832 * gnulib/config.in: Regenerate.
2833 * gnulib/configure: Regenerate.
2834 * gnulib/import/Makefile.am: Regenerate.
2835 * gnulib/import/Makefile.in: Regenerate.
2836 * gnulib/import/assure.h: New file.
2837 * gnulib/import/at-func.c: Likewise
2838 * gnulib/import/chdir-long.c: New file.
2839 * gnulib/import/chdir-long.h: New file.
2840 * gnulib/import/cloexec.c: New file.
2841 * gnulib/import/cloexec.h: New file.
2842 * gnulib/import/close.c: New file.
2843 * gnulib/import/closedir.c: New file.
2844 * gnulib/import/dirent-private.h: New file.
2845 * gnulib/import/dup-safer.c: New file.
2846 * gnulib/import/dup.c: New file.
2847 * gnulib/import/dup2.c: New file.
2848 * gnulib/import/error.c: New file.
2849 * gnulib/import/error.h: New file.
2850 * gnulib/import/exitfail.c: New file.
2851 * gnulib/import/exitfail.h: New file.
2852 * gnulib/import/fchdir.c: New file.
2853 * gnulib/import/fcntl.c: New file.
2854 * gnulib/import/fcntl.in.h: New file.
2855 * gnulib/import/fd-hook.c: New file.
2856 * gnulib/import/fd-hook.h: New file.
2857 * gnulib/import/fd-safer.c: New file.
2858 * gnulib/import/fdopendir.c: New file.
2859 * gnulib/import/filename.h: New file.
2860 * gnulib/import/filenamecat-lgpl.c: New file.
2861 * gnulib/import/filenamecat.h: New file.
2862 * gnulib/import/fstat.c: New file.
2863 * gnulib/import/fstatat.c: New file.
2864 * gnulib/import/getcwd-lgpl.c: New file.
2865 * gnulib/import/getcwd.c: New file.
2866 * gnulib/import/getdtablesize.c: New file.
2867 * gnulib/import/getlogin_r.c: New file.
2868 * gnulib/import/getprogname.c: New file.
2869 * gnulib/import/getprogname.h: New file.
2870 * gnulib/import/gettext.h: New file.
2871 * gnulib/import/glob-libc.h: New file.
2872 * gnulib/import/glob.c: New file.
2873 * gnulib/import/glob.in.h: New file.
2874 * gnulib/import/intprops.h: New file.
2875 * gnulib/import/m4/chdir-long.m4: New file.
2876 * gnulib/import/m4/close.m4: New file.
2877 * gnulib/import/m4/closedir.m4: New file.
2878 * gnulib/import/m4/d-ino.m4: New file.
2879 * gnulib/import/m4/d-type.m4: New file.
2880 * gnulib/import/m4/dup.m4: New file.
2881 * gnulib/import/m4/dup2.m4: New file.
2882 * gnulib/import/m4/error.m4: New file.
2883 * gnulib/import/m4/fchdir.m4: New file.
2884 * gnulib/import/m4/fcntl.m4: New file.
2885 * gnulib/import/m4/fcntl_h.m4: New file.
2886 * gnulib/import/m4/fdopendir.m4: New file.
2887 * gnulib/import/m4/filenamecat.m4: New file.
2888 * gnulib/import/m4/fstat.m4: New file.
2889 * gnulib/import/m4/fstatat.m4: New file.
2890 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
2891 * gnulib/import/m4/getcwd-path-max.m4: New file.
2892 * gnulib/import/m4/getcwd.m4: New file.
2893 * gnulib/import/m4/getdtablesize.m4: New file.
2894 * gnulib/import/m4/getlogin_r.m4: New file.
2895 * gnulib/import/m4/getprogname.m4: New file.
2896 * gnulib/import/m4/glob.m4: New file.
2897 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2898 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2899 * gnulib/import/m4/mempcpy.m4: New file.
2900 * gnulib/import/m4/memrchr.m4: New file.
2901 * gnulib/import/m4/mode_t.m4: New file.
2902 * gnulib/import/m4/msvc-inval.m4: New file.
2903 * gnulib/import/m4/msvc-nothrow.m4: New file.
2904 * gnulib/import/m4/open.m4: New file.
2905 * gnulib/import/m4/openat.m4: New file.
2906 * gnulib/import/m4/opendir.m4: New file.
2907 * gnulib/import/m4/readdir.m4: New file.
2908 * gnulib/import/m4/realloc.m4: New file.
2909 * gnulib/import/m4/rewinddir.m4: New file.
2910 * gnulib/import/m4/save-cwd.m4: New file.
2911 * gnulib/import/m4/strdup.m4: New file.
2912 * gnulib/import/m4/strerror.m4: New file.
2913 * gnulib/import/m4/unistd-safer.m4: New file.
2914 * gnulib/import/mempcpy.c: New file.
2915 * gnulib/import/memrchr.c: New file.
2916 * gnulib/import/msvc-inval.c: New file.
2917 * gnulib/import/msvc-inval.h: New file.
2918 * gnulib/import/msvc-nothrow.c: New file.
2919 * gnulib/import/msvc-nothrow.h: New file.
2920 * gnulib/import/open.c: New file.
2921 * gnulib/import/openat-die.c: New file.
2922 * gnulib/import/openat-priv.h: New file.
2923 * gnulib/import/openat-proc.c: New file.
2924 * gnulib/import/openat.c: New file.
2925 * gnulib/import/openat.h: New file.
2926 * gnulib/import/opendir.c: New file.
2927 * gnulib/import/pipe-safer.c: New file.
2928 * gnulib/import/readdir.c: New file.
2929 * gnulib/import/realloc.c: New file.
2930 * gnulib/import/rewinddir.c: New file.
2931 * gnulib/import/save-cwd.c: New file.
2932 * gnulib/import/save-cwd.h: New file.
2933 * gnulib/import/strdup.c: New file.
2934 * gnulib/import/strerror-override.c: New file.
2935 * gnulib/import/strerror-override.h: New file.
2936 * gnulib/import/strerror.c: New file.
2937 * gnulib/import/unistd--.h: New file.
2938 * gnulib/import/unistd-safer.h: New file.
2939 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2940 "getcwd" and "glob".
2941 * ser-tcp.c: Undefine "close" before redefining it.
2942
2943 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2944
2945 * guile/scm-value.c (gdbscm_value_address): Initialize address,
2946 get rid of res_val.
2947
2948 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2949
2950 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
2951 <sol2,sparc>: Likewise.
2952 <sol2-64,i386>: Likewise.
2953
2954 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
2955 -Wdeprecated-declarations on *-*-solaris*.
2956 * configure: Regenerate.
2957
2958 * procfs.c: Include "nat/inferior.h".
2959 (procfs_info_proc): Fix typo.
2960
2961 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2962
2963 * remote.c (vector): Include.
2964 (struct private_thread_info): Add field, thread_handle.
2965 (free_private_thread_info): Deallocate storage associated with
2966 thread handle.
2967 (get_private_info_thread): Initialize `thread_handle' field.
2968 (struct thread_item): Add field, thread_handle.
2969 (clear_threads_listing_context): Deallocate storage associated
2970 with thread handle.
2971 (start_thread): Add support for "handle" attribute.
2972 (thread_attributes): Add "handle".
2973 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
2974 field.
2975 (remote_update_thread_list): Update thread_handle.
2976 (remote_thread_handle_to_thread_info): New function.
2977 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
2978
2979 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2980
2981 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
2982 function.
2983 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
2984 * python/python-internal.h (thread_object_type): Declare.
2985
2986 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2987
2988 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
2989 (target_thread_handle_to_thread_info): Declare.
2990 * target.c (target_thread_handle_to_thread_info): New function.
2991 * target-delegates.c: Regenerate.
2992 * gdbthread.h (find_thread_by_handle): Declare.
2993 * thread.c (find_thread_by_handle): New function.
2994 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
2995 function.
2996 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
2997
2998 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2999
3000 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3001
3002 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3003
3004 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3005
3006 2017-09-21 Yao Qi <yao.qi@linaro.org>
3007
3008 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3009 to gdb_target_obs.
3010
3011 2017-09-20 Tom Tromey <tom@tromey.com>
3012
3013 * breakpoint.c (struct counted_command_line): Remove.
3014 (breakpoint_commands): Update.
3015 (alloc_counted_command_line, incref_counted_command_line)
3016 (decref_counted_command_line, do_cleanup_counted_command_line)
3017 (make_cleanup_decref_counted_command_line): Remove.
3018 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3019 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3020 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3021 (save_breakpoints): Update.
3022 * breakpoint.h (counted_command_line): Now a typedef to
3023 shared_ptr.
3024 (struct breakpoint) <commands>: Now a counted_command_line.
3025 (struct bpstats) <command>: Likewise.
3026
3027 2017-09-20 Tom Tromey <tom@tromey.com>
3028
3029 * breakpoint.c (struct commands_info, do_map_commands_command):
3030 Remove.
3031 (commands_command_1): Update.
3032 (iterate_over_related_breakpoints): Take a function_view.
3033 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3034 (delete_command): Update.
3035 (map_breakpoint_numbers): Take a function_view.
3036 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3037 (disable_command): Update.
3038 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3039 (enable_command): Update.
3040 (struct disp_data, do_enable_breakpoint_disp)
3041 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3042 (do_map_enable_delete_breakpoint): Remove.
3043 (enable_once_command, enable_count_command, enable_delete_command)
3044 (delete_trace_variable_command): Update.
3045
3046 2017-09-20 Tom Tromey <tom@tromey.com>
3047
3048 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3049 (bpstat_clear): Use delete.
3050 (bpstats): New constructors.
3051 (bpstat_copy, bpstat_stop_status): Use new.
3052 (dprintf_after_condition_true): Update.
3053 * breakpoint.h (bpstats::bpstats): Add constructors.
3054 (bpstats::~bpstats): Add destructor.
3055
3056 2017-09-20 Pedro Alves <palves@redhat.com>
3057
3058 * eval.c (make_params): Delete, refactored as ...
3059 (class fake_method): ... this new type's ctor.
3060 (fake_method::~fake_method): New.
3061 (evaluate_subexp_standard): Use 'fake_method'.
3062
3063 2017-09-20 Tom Tromey <tom@tromey.com>
3064
3065 * windows-nat.c (get_windows_debug_event, windows_wait)
3066 (do_initial_windows_stuff, windows_attach): Update.
3067 * utils.c (vwarning, internal_vproblem): Update.
3068 (ui_unregister_input_event_handler_cleanup)
3069 (prepare_to_handle_input): Remove.
3070 (class scoped_input_handler): New.
3071 (defaulted_query, prompt_for_continue): Update.
3072 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3073 Update.
3074 * top.c (undo_terminal_modifications_before_exit): Update.
3075 * target/target.h (target_terminal_init, target_terminal_inferior)
3076 (target_terminal_ours): Don't declare.
3077 (class target_terminal): New.
3078 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3079 (target_terminal_ours_for_output)
3080 (make_cleanup_restore_target_terminal): Don't declare.
3081 (target_terminal_info): Remove.
3082 * target.c (enum terminal_state, terminal_state): Remove.
3083 (target_terminal::terminal_state): Define.
3084 (target_terminal::init): Rename from target_terminal_init.
3085 (target_terminal::inferior): Rename from
3086 target_terminal_inferior.
3087 (target_terminal::ours): Rename from target_terminal_ours.
3088 (target_terminal::ours_for_output): Rename from
3089 target_terminal_ours_for_output.
3090 (target_terminal::info): New method.
3091 (cleanup_restore_target_terminal)
3092 (make_cleanup_restore_target_terminal): Remove.
3093 * solib.c (handle_solib_event): Update.
3094 * remote.c (remote_serial_quit_handler): Update.
3095 (remote_terminal_inferior, remote_wait_as): Update.
3096 * record-full.c (record_full_wait_1): Update.
3097 * nto-procfs.c (procfs_create_inferior): Update.
3098 * nat/fork-inferior.c (startup_inferior): Update.
3099 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3100 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3101 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3102 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3103 (mi_breakpoint_created, mi_breakpoint_deleted)
3104 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3105 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3106 (mi_user_selected_context_changed, report_initial_inferior):
3107 Update.
3108 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3109 (linux_nat_terminal_inferior): Update.
3110 * infrun.c (follow_fork_inferior)
3111 (handle_vfork_child_exec_or_exit, do_target_resume)
3112 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3113 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3114 Update.
3115 * inflow.c (child_terminal_init, info_terminal_command): Update.
3116 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3117 (attach_command): Update.
3118 * infcall.c (call_thread_fsm_should_stop): Update.
3119 * gnu-nat.c (gnu_attach): Update.
3120 * extension.c (struct active_ext_lang_state)
3121 (restore_active_ext_lang): Update.
3122 * exceptions.c (print_flush): Update.
3123 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3124 (struct quit_handler_cleanup_data, restore_quit_handler)
3125 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3126 Remove.
3127 * cp-support.c (gdb_demangle): Update.
3128 * breakpoint.c (update_inserted_breakpoint_locations)
3129 (insert_breakpoint_locations, handle_jit_event)
3130 (disable_breakpoints_in_unloaded_shlib): Update.
3131 * annotate.c (annotate_breakpoints_invalid)
3132 (annotate_frames_invalid): Update.
3133
3134 2017-09-20 Tom Tromey <tom@tromey.com>
3135
3136 * main.c (catch_command_errors): Rename from
3137 catch_command_errors_const.
3138 (captured_main_1): Update.
3139
3140 2017-09-20 Pedro Alves <palves@redhat.com>
3141
3142 * cli/cli-cmds.c (list_command): Use print_sal_location.
3143 (print_sal_location): New function.
3144 (ambiguous_line_spec): Use print_sal_location.
3145 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3146 * symtab.c (find_function_start_sal): Likewise.
3147 * symtab.h (symtab_and_line::symbol): New field.
3148
3149 2017-09-20 Pedro Alves <palves@redhat.com>
3150
3151 * linespec.c (minsym_found): Handle non-text minsyms.
3152 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3153
3154 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3155
3156 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3157 backslash.
3158
3159 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3160
3161 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3162 vmovups instead vmovaps.
3163 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3164
3165 2017-09-19 John Baldwin <jhb@FreeBSD.org>
3166
3167 * NEWS (Changes since GDB 8.0): Add starti.
3168 * infcmd.c (enum run_break): New.
3169 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3170 case.
3171 (run_command): Use enum run_how.
3172 (start_command): Likewise.
3173 (starti_command): New function.
3174 (RUN_ARGS_HELP): New macro.
3175 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3176 commands. Add starti command.
3177
3178 2017-09-19 Yao Qi <yao.qi@linaro.org>
3179
3180 * Makefile.in (monitor.o): Remove the rule.
3181
3182 2017-09-19 Yao Qi <yao.qi@linaro.org>
3183
3184 * annotate.h (struct annotate_arg_emitter): Use
3185 DISABLE_COPY_AND_ASSIGN.
3186 * common/refcounted-object.h (refcounted_object): Likewise.
3187 * completer.h (struct completion_result): Likewise.
3188 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3189 * filename-seen-cache.h (filename_seen_cache): Likewise.
3190 * gdbcore.h (thread_section_name): Likewise.
3191 * gdb_regex.h (compiled_regex): Likewise.
3192 * gdbthread.h (scoped_restore_current_thread): Likewise.
3193 * inferior.h (scoped_restore_current_inferior): Likewise.
3194 * jit.c (jit_reader): Likewise.
3195 * linespec.h (struct linespec_result): Likewise.
3196 * mi/mi-parse.h (struct mi_parse): Likewise.
3197 * nat/fork-inferior.c (execv_argv): Likewise.
3198 * progspace.h (scoped_restore_current_program_space): Likewise.
3199 * python/python-internal.h (class gdbpy_enter): Likewise.
3200 * regcache.h (regcache): Likewise.
3201 * target-descriptions.c (struct tdesc_reg): Likewise.
3202 (struct tdesc_type): Likewise.
3203 (struct tdesc_feature): Likewise.
3204 * ui-out.h (ui_out_emit_type): Likewise.
3205
3206 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3207
3208 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3209 label abort_expression.
3210
3211 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3212
3213 * common/buffer.c (buffer_xml_printf): Adjust.
3214 * common/xml-utils.c (xml_escape_text): Change return type to
3215 std::string, update code accordingly.
3216 * common/xml-utils.h (xml_escape_text): Change return type to
3217 std::string.
3218 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3219 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3220 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3221 Adjust.
3222
3223 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3224
3225 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3226 (SUBDIR_UNITTESTS_OBS): Add new object file.
3227 * unittests/xml-utils-selftests.c: New file.
3228
3229 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3230
3231 * common/selftest.h (selftest): New struct/interface.
3232 (register_test): Add name parameter, add new overload.
3233 (run_tests): Add filter parameter.
3234 (for_each_selftest_ftype): New typedef.
3235 (for_each_selftest): New declaration.
3236 * common/selftest.c (tests): Change type to
3237 map<string, unique_ptr<selftest>>.
3238 (simple_selftest): New struct.
3239 (register_test): New function.
3240 (register_test): Add name parameter and use it.
3241 (run_tests): Add filter parameter and use it. Add prints.
3242 Adjust to vector -> map change.
3243 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3244 registering selftests.
3245 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3246 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3247 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3248 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3249 * findvar.c (_initialize_findvar): Likewise.
3250 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3251 * maint.c (maintenance_selftest): Update call to run_tests.
3252 (maintenance_info_selftests): New function.
3253 (_initialize_maint_cmds): Register "maintenance info selftests"
3254 command. Update "maintenance selftest" doc.
3255 * regcache.c (_initialize_regcache): Add names when registering
3256 selftests.
3257 * rust-exp.y (_initialize_rust_exp): Likewise.
3258 * selftest-arch.c (gdbarch_selftest): New struct.
3259 (gdbarch_tests): Remove.
3260 (register_test_foreach_arch): Add name parameter. Call
3261 register_test.
3262 (tests_with_arch): Remove, move most content to
3263 gdbarch_selftest::operator().
3264 (_initialize_selftests_foreach_arch): Remove.
3265 * selftest-arch.h (register_test_foreach_arch): Add name
3266 parameter.
3267 (run_tests_with_arch): New declaration.
3268 * utils-selftests.c (_initialize_utils_selftests): Add names
3269 when registering selftests.
3270 * utils.c (_initialize_utils): Likewise.
3271 * unittests/array-view-selftests.c
3272 (_initialize_array_view_selftests): Likewise.
3273 * unittests/environ-selftests.c (_initialize_environ_selftests):
3274 Likewise.
3275 * unittests/function-view-selftests.c
3276 (_initialize_function_view_selftests): Likewise.
3277 * unittests/offset-type-selftests.c
3278 (_initialize_offset_type_selftests): Likewise.
3279 * unittests/optional-selftests.c
3280 (_initialize_optional_selftests): Likewise.
3281 * unittests/scoped_restore-selftests.c
3282 (_initialize_scoped_restore_selftests): Likewise.
3283 * NEWS: Document "maintenance selftest" and "maint info
3284 selftests".
3285
3286 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3287
3288 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3289 scoped_restore.
3290
3291 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3292
3293 * mi/mi-main.c (mi_load_progress): Make uiout variable
3294 a unique_ptr.
3295
3296 2017-09-15 Pedro Alves <palves@redhat.com>
3297
3298 * compile/compile-c-types.c (convert_enum, convert_int)
3299 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3300
3301 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3302
3303 * dwarf2read.c (copy_string): Remove.
3304 (parse_macro_definition): Replace copy_string with savestring.
3305
3306 2017-09-15 Yao Qi <yao.qi@linaro.org>
3307
3308 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3309 gdb_target_obs.
3310 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3311 Likewise.
3312 (i[34567]86-*-linux*): Likewise.
3313
3314 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3315
3316 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3317 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3318 <stack>: Change type to std::vector.
3319 <stack_len, stack_allocated>: Remove.
3320 <grow_stack>: Remove.
3321 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3322 (dwarf_expr_context::~dwarf_expr_context): Remove.
3323 (dwarf_expr_context::grow_stack): Remove.
3324 (dwarf_expr_context::push): Adjust.
3325 (dwarf_expr_context::pop): Adjust.
3326 (dwarf_expr_context::fetch): Adjust.
3327 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3328 (dwarf_expr_context::stack_empty_p): Adjust.
3329 (dwarf_expr_context::execute_stack_op): Adjust.
3330
3331 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3332
3333 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3334 return type to bool.
3335 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3336
3337 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3338
3339 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3340 Change type to bool.
3341 (dwarf_stack_value) <in_stack_memory>: Likewise.
3342 (dwarf_expr_context) <push_address>: Change parameter type to
3343 bool.
3344 <fetch_in_stack_memory>: Change return type to bool.
3345 <push>: Change parameter type to bool.
3346 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3347 to bool.
3348 (dwarf_expr_context::push_address): Likewise.
3349 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3350 to bool.
3351 (dwarf_expr_context::execute_stack_op): Adjust.
3352 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3353
3354 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3355
3356 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3357 (struct dwarf_expr_context) <n_pieces>: Remove.
3358 <pieces>: Change type to std::vector.
3359 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3360 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3361 pieces.
3362 (dwarf_expr_context::add_piece): Adjust.
3363 * dwarf2loc.c (struct piece_closure): Initialize fields.
3364 <n_pieces>: Remove.
3365 <pieces>: Change type to std::vector.
3366 (allocate_piece_closure): Adjust, change parameter to
3367 std::vector rvalue and std::move it to piece_closure.
3368 (rw_pieced_value): Adjust.
3369 (check_pieced_synthetic_pointer): Adjust.
3370 (indirect_synthetic_pointer): Adjust.
3371 (coerce_pieced_ref): Adjust.
3372 (free_pieced_value_closure): Adjust. Use delete to free
3373 piece_closure.
3374 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3375 to allocate_piece_closure.
3376 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3377
3378 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3379
3380 * probe.h (probe_ops_cp): Remove typedef.
3381 (DEF_VEC_P (probe_ops_cp)): Remove.
3382 (all_probe_ops): Change type to std::vector.
3383 * probe.c (info_probes_for_ops): Adjust to vector change.
3384 (probe_linespec_to_ops): Likewise.
3385 (all_probe_ops): Change type to std::vector.
3386 (_initialize_probe): Adjust to vector change.
3387 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3388 * elfread.c (elf_get_probes): Likewise.
3389 * stap-probe.c (_initialize_stap_probe): Likewise.
3390
3391 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3392
3393 * probe.h (struct bound_probe): Define constructors.
3394 * probe.c (bound_probe_s): Remove typedef.
3395 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3396 (collect_probes): Change return type to std::vector, remove
3397 cleanup.
3398 (compare_probes): Return bool, change parameter type. Change
3399 semantic to "less than".
3400 (gen_ui_out_table_header_info): Change parameter to std::vector
3401 and update.
3402 (exists_probe_with_pops): Likewise.
3403 (info_probes_for_ops): Update to std::vector change.
3404 (enable_probes_command): Likewise.
3405 (disable_probes_command): Likewise.
3406
3407 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3408
3409 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3410 vec to std::vector.
3411 * probe.c (parse_probes_in_pspace): Update.
3412 (find_probes_in_objfile): Update.
3413 (find_probe_by_pc): Update.
3414 (collect_probes): Update.
3415 (probe_any_get_probes): Update.
3416 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3417 return type to reference to std::vector.
3418 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3419 std::vector and update.
3420 (dtrace_process_dof): Likewise.
3421 (dtrace_get_probes): Likewise.
3422 * elfread.c (elf_get_probes): Change return type to std::vector,
3423 store an std::vector in bfd_data.
3424 (probe_key_free): Update to std::vector.
3425 * stap-probe.c (handle_stap_probe): Change parameter to
3426 std::vector and update.
3427 (stap_get_probes): Likewise.
3428 * symfile-debug.c (debug_sym_get_probes): Change return type to
3429 std::vector and update.
3430
3431 2017-09-11 Tom Tromey <tom@tromey.com>
3432
3433 * breakpoint.c (program_breakpoint_here_p): Update.
3434 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3435 from make_show_memory_breakpoints_cleanup. Return a
3436 scoped_restore_tmpl<int>.
3437 (restore_show_memory_breakpoints): Remove.
3438 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3439 * mem-break.c (memory_validate_breakpoint): Update.
3440 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3441 (ia64_memory_remove_breakpoint): Update.
3442 (ia64_breakpoint_from_pc): Update.
3443 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3444 from make_show_memory_breakpoints_cleanup.
3445
3446 2017-09-11 Tom Tromey <tom@tromey.com>
3447
3448 * d-namespace.c (d_lookup_symbol): Use std::string.
3449 (find_symbol_in_baseclass): Likewise.
3450
3451 2017-09-11 Tom Tromey <tom@tromey.com>
3452
3453 * ctf.c (ctf_start): Use std::string.
3454
3455 2017-09-11 Tom Tromey <tom@tromey.com>
3456
3457 * ada-lang.c (is_known_support_routine): Update.
3458 (ada_unhandled_exception_name_addr_from_raise): Update.
3459 * guile/scm-frame.c (gdbscm_frame_name): Update.
3460 * python/py-frame.c (frapy_name): Update.
3461 (frapy_function): Update.
3462 * stack.h (find_frame_funname): Update.
3463 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3464 (print_frame): Update.
3465
3466 2017-09-11 Tom Tromey <tom@tromey.com>
3467
3468 * findcmd.c (put_bits): Take a gdb::byte_vector.
3469 (parse_find_args): Return gdb::byte_vector. "args" now const.
3470 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3471 cleanups.
3472 (find_command): Update.
3473
3474 2017-09-11 Tom Tromey <tom@tromey.com>
3475
3476 * cli/cli-script.c (class scoped_restore_hook_in): New.
3477 (clear_hook_in_cleanup): Remove.
3478 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3479 scoped_restore_hook_in.
3480
3481 2017-09-11 Tom Tromey <tom@tromey.com>
3482
3483 * cli/cli-script.c (restore_interp): Remove.
3484 (read_command_lines): Use scoped_restore_interp.
3485 * interps.c (scoped_restore_interp::set_temp): Rename from
3486 interp_set_temp.
3487 * interps.h (class scoped_restore_interp): New.
3488 (interp_set_temp): Remove.
3489
3490 2017-09-11 Tom Tromey <tom@tromey.com>
3491
3492 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3493 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3494 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3495 scoped_restore.
3496 (mi_cmd_break_insert_1): Update.
3497 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3498 scoped_restore.
3499
3500 2017-09-11 Tom Tromey <tom@tromey.com>
3501
3502 * demangle.c (demangle_command): Update.
3503 * breakpoint.c (disable_command): Update.
3504 (enable_command): Update.
3505 (find_location_by_number): Make "number" const. Use
3506 get_number_trailer.
3507 * cli/cli-utils.c (extract_arg): Return std::string.
3508 * probe.c (parse_probe_linespec): Update. Change types.
3509 (collect_probes): Take string arguments.
3510 (parse_probe_linespec): Likewise.
3511 (info_probes_for_ops): Update.
3512 (enable_probes_command): Update.
3513 (disable_probes_command): Update.
3514 * break-catch-sig.c (catch_signal_split_args): Update.
3515 * mi/mi-parse.c (mi_parse): Update.
3516
3517 2017-09-11 Tom Tromey <tom@tromey.com>
3518
3519 * language.h (language_enum): Make argument const.
3520 * language.c (language_enum): Make argument const.
3521
3522 2017-09-11 Tom Tromey <tom@tromey.com>
3523
3524 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3525 as function.
3526 (skip_to_space): Rename from skip_to_space_const.
3527 * common/common-utils.c (skip_to_space): New function.
3528 (skip_to_space): Rename from skip_to_space_const.
3529 * cli/cli-utils.h (get_number): Rename from get_number_const.
3530 (extract_arg): Rename from extract_arg_const.
3531 * cli/cli-utils.c (get_number): Rename from get_number_const.
3532 (extract_arg): Rename from extract_arg_const.
3533 (number_or_range_parser::get_number): Use ::get_number.
3534 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3535 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3536 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3537 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3538 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3539 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3540 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3541 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3542
3543 2017-09-11 Tom Tromey <tom@tromey.com>
3544
3545 * python/python.c (do_start_initialization): Use
3546 py-event-types.def to initialize types.
3547 Define all object type structures.
3548 * python/python-internal.h: Don't declare event initialization
3549 functions.
3550 * python/py-threadevent.c (thread_event_object_type): Don't
3551 define.
3552 * python/py-stopevent.c (stop_event_object_type): Don't define.
3553 * python/py-signalevent.c (signal_event_object_type): Don't
3554 declare or define.
3555 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3556 (clear_objfiles_event_object_type): Don't declare or define.
3557 * python/py-infevents.c (inferior_call_pre_event_object_type)
3558 (inferior_call_post_event_object_type)
3559 (register_changed_event_object_type)
3560 (memory_changed_event_object_type): Don't declare or define.
3561 * python/py-inferior.c (new_thread_event_object_type)
3562 (new_inferior_event_object_type)
3563 (inferior_deleted_event_object_type): Don't declare or define.
3564 * python/py-exitedevent.c (exited_event_object_type): Don't
3565 declare or define.
3566 * python/py-evts.c (gdbpy_initialize_py_events): Use
3567 py-all-events.def.
3568 * python/py-events.h (thread_event_object_type): Don't declare.
3569 (events_object): Use py-all-events.def.
3570 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3571 py-event-types.def.
3572 * python/py-event-types.def: New file.
3573 * python/py-continueevent.c (create_continue_event_object): Don't
3574 declare or define.
3575 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3576 declare or define.
3577 * python/py-all-events.def: New file.
3578
3579 2017-09-11 Tom Tromey <tom@tromey.com>
3580
3581 * python/py-threadevent.c (create_thread_event_object): Return
3582 gdbpy_ref.
3583 * python/py-stopevent.h (create_stop_event_object)
3584 (create_breakpoint_event_object, create_signal_event_object):
3585 Update.
3586 * python/py-stopevent.c (create_stop_event_object): Return
3587 gdbpy_ref.
3588 (emit_stop_event): Update.
3589 * python/py-signalevent.c (create_signal_event_object): Return
3590 gdbpy_ref.
3591 * python/py-infevents.c (create_inferior_call_event_object):
3592 Update.
3593 * python/py-event.h (create_event_object)
3594 (create_thread_event_object): Update.
3595 * python/py-event.c (create_event_object): Return gdbpy_ref.
3596 * python/py-continueevent.c: Return gdbpy_ref.
3597 * python/py-bpevent.c (create_breakpoint_event_object): Return
3598 gdbpy_ref.
3599
3600 2017-09-11 Tom Tromey <tom@tromey.com>
3601
3602 PR python/15622:
3603 * NEWS: Add entry.
3604 * python/python.c (do_start_initialization): Initialize new event
3605 types.
3606 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3607 (gdbpy_initialize_inferior_deleted_event)
3608 (gdbpy_initialize_new_thread_event): Declare.
3609 * python/py-threadevent.c (create_thread_event_object): Add option
3610 "thread" parameter.
3611 * python/py-inferior.c (new_thread_event_object_type)
3612 (new_inferior_event_object_type)
3613 (inferior_deleted_event_object_type): Declare.
3614 (python_new_inferior, python_inferior_deleted): New functions.
3615 (add_thread_object): Emit new_thread event.
3616 (gdbpy_initialize_inferior): Attach new functions to corresponding
3617 observers.
3618 (new_thread, new_inferior, inferior_deleted): Define new event
3619 types.
3620 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3621 registries.
3622 * python/py-events.h (events_object) <new_inferior,
3623 inferior_deleted, new_thread>: New fields.
3624 * python/py-event.h (create_thread_event_breakpoint): Add optional
3625 "thread" parameter.
3626
3627 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3628
3629 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3630 check current_ui instead.
3631 (internal_vproblem): Likewise.
3632
3633 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3634
3635 * thread.c (print_thread_info_1): Remove unnecessary calls to
3636 uiout->is_mi_like_p.
3637
3638 2017-09-09 Tom Tromey <tom@tromey.com>
3639
3640 * namespace.h (add_using_directive): Update.
3641 * namespace.c (add_using_directive): Change type of excludes to
3642 std::vector.
3643 * dwarf2read.c (read_import_statement): Use std::vector.
3644 (read_namespace): Update.
3645 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3646
3647 2017-09-09 Tom Tromey <tom@tromey.com>
3648
3649 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3650
3651 2017-09-09 Tom Tromey <tom@tromey.com>
3652
3653 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3654
3655 2017-09-09 Tom Tromey <tom@tromey.com>
3656
3657 * stack.c (func_command): Use gdb::def_vector.
3658
3659 2017-09-09 Tom Tromey <tom@tromey.com>
3660
3661 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3662 ui_out_emit_list, ui_out_emit_tuple.
3663 (mi_cmd_var_update): Likewise.
3664
3665 2017-09-09 Tom Tromey <tom@tromey.com>
3666
3667 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3668 ui_out_redirect_pop.
3669 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3670 ui_out_redirect_pop.
3671 * utils.c (do_ui_out_redirect_pop)
3672 (make_cleanup_ui_out_redirect_pop): Remove.
3673 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3674 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3675 * ui-out.h (ui_out_redirect_pop): New class.
3676
3677 2017-09-09 Tom Tromey <tom@tromey.com>
3678
3679 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3680 (list_available_thread_groups, mi_cmd_list_thread_groups)
3681 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3682 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3683 Likewise.
3684
3685 2017-09-09 Tom Tromey <tom@tromey.com>
3686
3687 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3688 ui_out_emit_tuple.
3689
3690 2017-09-09 Tom Tromey <tom@tromey.com>
3691
3692 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3693 * stack.c (print_frame): Use ui_out_emit_tuple.
3694 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3695 (info_spu_mailbox_command, info_spu_dma_command)
3696 (info_spu_proxydma_command): Likewise.
3697 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3698 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3699 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3700 ui_out_emit_tuple.
3701 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3702
3703 2017-09-09 Tom Tromey <tom@tromey.com>
3704
3705 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3706 (class ui_out_emit_table): Update comment.
3707 * ui-out.c (do_cleanup_table_end)
3708 (make_cleanup_ui_out_table_begin_end): Remove.
3709 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3710 (info_spu_dma_cmdlist): Likewise.
3711 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3712 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3713 ui_out_emit_table.
3714
3715 2017-09-09 Tom Tromey <tom@tromey.com>
3716
3717 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3718 ui_out_emit_list, gdb::optional.
3719
3720 2017-09-09 John Baldwin <jhb@FreeBSD.org>
3721
3722 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3723 prototype.
3724 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3725 prototype.
3726 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3727 prototype.
3728 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3729 * ada-exp.y: Remove _initialize_ada_exp prototype.
3730 * ada-lang.c: Remove _initialize_ada_language prototype.
3731 * ada-tasks.c: Remove _initialize_tasks prototype.
3732 * addrmap.c: Remove _initialize_addrmap prototype.
3733 * agent.c: Remove _initialize_agent prototype.
3734 * aix-thread.c: Remove _initialize_aix_thread prototype.
3735 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3736 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3737 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3738 prototype.
3739 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3740 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3741 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3742 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3743 prototype.
3744 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
3745 prototype.
3746 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
3747 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
3748 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
3749 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
3750 prototype.
3751 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
3752 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
3753 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
3754 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
3755 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3756 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
3757 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
3758 prototype.
3759 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
3760 prototype.
3761 * annotate.c: Remove _initialize_annotate prototype.
3762 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
3763 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
3764 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
3765 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
3766 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
3767 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
3768 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
3769 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
3770 prototype.
3771 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
3772 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
3773 * auto-load.c: Remove _initialize_auto_load prototype.
3774 * auxv.c: Remove _initialize_auxv prototype.
3775 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
3776 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
3777 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
3778 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
3779 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
3780 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
3781 prototype.
3782 * break-catch-throw.c: Remove _initialize_break_catch_throw
3783 prototype.
3784 * breakpoint.c: Remove _initialize_breakpoint prototype.
3785 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
3786 * btrace.c: Remove _initialize_btrace prototype.
3787 * charset.c: Remove _initialize_charset prototype.
3788 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
3789 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
3790 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
3791 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
3792 * cli/cli-script.c: Remove _initialize_cli_script prototype.
3793 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
3794 * coffread.c: Remove _initialize_coffread prototype.
3795 * compile/compile.c: Remove _initialize_compile prototype.
3796 * complaints.c: Remove _initialize_complaints prototype.
3797 * completer.c: Remove _initialize_completer prototype.
3798 * copying.awk: Remove _initialize_copying prototype.
3799 * copying.c: Regenerate.
3800 * core-regset.c: Remove _initialize_core_regset prototype.
3801 * corefile.c: Remove _initialize_core prototype.
3802 * corelow.c: Remove _initialize_corelow prototype.
3803 * cp-abi.c: Remove _initialize_cp_abi prototype.
3804 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
3805 * cp-support.c: Remove _initialize_cp_support prototype.
3806 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
3807 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
3808 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
3809 * ctf.c: Remove _initialize_ctf prototype.
3810 * d-lang.c: Remove _initialize_d_language prototype.
3811 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
3812 prototype.
3813 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
3814 * dbxread.c: Remove _initialize_dbxread prototype.
3815 * dcache.c: Remove _initialize_dcache prototype.
3816 * demangle.c: Remove _initialize_demangler prototype.
3817 * disasm-selftests.c: Remove _initialize_disasm_selftests
3818 prototype.
3819 * disasm.c: Remove _initialize_disasm prototype.
3820 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
3821 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
3822 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
3823 prototype.
3824 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
3825 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
3826 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
3827 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
3828 * elfread.c: Remove _initialize_elfread prototype.
3829 * exec.c: Remove _initialize_exec prototype.
3830 * extension.c: Remove _initialize_extension prototype.
3831 * f-lang.c: Remove _initialize_f_language prototype.
3832 * f-valprint.c: Remove _initialize_f_valprint prototype.
3833 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
3834 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
3835 * filesystem.c: Remove _initialize_filesystem prototype.
3836 * findcmd.c: Remove _initialize_mem_search prototype.
3837 * fork-child.c: Remove _initialize_fork_child prototype.
3838 * frame-base.c: Remove _initialize_frame_base prototype.
3839 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
3840 * frame.c: Remove _initialize_frame prototype.
3841 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
3842 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
3843 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
3844 * gcore.c: Remove _initialize_gcore prototype.
3845 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
3846 * gdbarch.c: Regenerate.
3847 * gdbarch.sh: Remove _initialize_gdbarch prototype.
3848 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
3849 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
3850 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
3851 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
3852 * go-lang.c: Remove _initialize_go_language prototype.
3853 * go32-nat.c: Remove _initialize_go32_nat prototype.
3854 * guile/guile.c: Remove _initialize_guile prototype.
3855 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
3856 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
3857 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
3858 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
3859 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
3860 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
3861 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
3862 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
3863 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
3864 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
3865 prototype.
3866 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
3867 prototype.
3868 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
3869 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
3870 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
3871 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
3872 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
3873 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
3874 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
3875 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
3876 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
3877 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
3878 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
3879 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
3880 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
3881 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3882 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
3883 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
3884 prototype.
3885 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
3886 prototype.
3887 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
3888 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
3889 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
3890 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
3891 * infcall.c: Remove _initialize_infcall prototype.
3892 * infcmd.c: Remove _initialize_infcmd prototype.
3893 * inferior.c: Remove _initialize_inferiors prototype.
3894 * inflow.c: Remove _initialize_inflow prototype.
3895 * infrun.c: Remove _initialize_infrun prototype.
3896 * interps.c: Remove _initialize_interpreter prototype.
3897 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
3898 * jit.c: Remove _initialize_jit prototype.
3899 * language.c: Remove _initialize_language prototype.
3900 * linux-fork.c: Remove _initialize_linux_fork prototype.
3901 * linux-nat.c: Remove _initialize_linux_nat prototype.
3902 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
3903 * linux-thread-db.c: Remove _initialize_thread_db prototype.
3904 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
3905 * m2-lang.c: Remove _initialize_m2_language prototype.
3906 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
3907 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
3908 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
3909 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
3910 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
3911 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3912 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3913 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
3914 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
3915 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
3916 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3917 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3918 * machoread.c: Remove _initialize_machoread prototype.
3919 * macrocmd.c: Remove _initialize_macrocmd prototype.
3920 * macroscope.c: Remove _initialize_macroscope prototype.
3921 * maint.c: Remove _initialize_maint_cmds prototype.
3922 * mdebugread.c: Remove _initialize_mdebugread prototype.
3923 * memattr.c: Remove _initialize_mem prototype.
3924 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
3925 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
3926 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
3927 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
3928 * mi/mi-main.c: Remove _initialize_mi_main prototype.
3929 * microblaze-linux-tdep.c: Remove
3930 _initialize_microblaze_linux_tdep prototype.
3931 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
3932 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
3933 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
3934 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
3935 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
3936 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
3937 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
3938 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
3939 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
3940 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
3941 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
3942 prototype.
3943 * mipsread.c: Remove _initialize_mipsread prototype.
3944 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
3945 prototype.
3946 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
3947 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
3948 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
3949 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
3950 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
3951 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
3952 prototype.
3953 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
3954 * nto-procfs.c: Remove _initialize_procfs prototype.
3955 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
3956 * objc-lang.c: Remove _initialize_objc_language prototype.
3957 * objfiles.c: Remove _initialize_objfiles prototype.
3958 * observer.c: Remove observer_test_first_notification_function,
3959 observer_test_second_notification_function,
3960 observer_test_third_notification_function, and
3961 _initialize_observer prototypes.
3962 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
3963 * osabi.c: Remove _initialize_gdb_osabi prototype.
3964 * osdata.c: Remove _initialize_osdata prototype.
3965 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
3966 * parse.c: Remove _initialize_parse prototype.
3967 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
3968 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
3969 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
3970 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
3971 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
3972 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
3973 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
3974 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
3975 * printcmd.c: Remove _initialize_printcmd prototype.
3976 * probe.c: Remove _initialize_probe prototype.
3977 * proc-api.c: Remove _initialize_proc_api prototype.
3978 * proc-events.c: Remove _initialize_proc_events prototype.
3979 * proc-service.c: Remove _initialize_proc_service prototype.
3980 * procfs.c: Remove _initialize_procfs prototype.
3981 * psymtab.c: Remove _initialize_psymtab prototype.
3982 * python/python.c: Remove _initialize_python prototype.
3983 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
3984 * record-btrace.c: Remove _initialize_record_btrace prototype.
3985 * record-full.c: Remove _initialize_record_full prototype.
3986 * record.c: Remove _initialize_record prototype.
3987 * regcache.c: Remove _initialize_regcache prototype.
3988 * reggroups.c: Remove _initialize_reggroup prototype.
3989 * remote-notif.c: Remove _initialize_notif prototype.
3990 * remote-sim.c: Remove _initialize_remote_sim prototype.
3991 * remote.c: Remove _initialize_remote prototype.
3992 * reverse.c: Remove _initialize_reverse prototype.
3993 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
3994 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
3995 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
3996 prototype.
3997 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
3998 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
3999 * rust-exp.y: Remove _initialize_rust_exp prototype.
4000 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4001 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4002 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4003 * score-tdep.c: Remove _initialize_score_tdep prototype.
4004 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4005 prototype.
4006 * ser-go32.c: Remove _initialize_ser_dos prototype.
4007 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4008 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4009 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4010 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4011 * serial.c: Remove _initialize_serial prototype.
4012 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4013 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4014 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4015 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4016 * skip.c: Remove _initialize_step_skip prototype.
4017 * sol-thread.c: Remove _initialize_sol_thread prototype.
4018 * solib-aix.c: Remove _initialize_solib_aix prototype.
4019 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4020 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4021 * solib-frv.c: Remove _initialize_frv_solib prototype.
4022 * solib-spu.c: Remove _initialize_spu_solib prototype.
4023 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4024 * solib-target.c: Remove _initialize_solib_target prototype.
4025 * solib.c: Remove _initialize_solib prototype.
4026 * source.c: Remove _initialize_source prototype.
4027 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4028 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4029 prototype.
4030 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4031 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4032 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4033 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4034 prototype.
4035 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4036 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4037 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4038 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4039 prototype.
4040 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4041 prototype.
4042 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4043 prototype.
4044 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4045 prototype.
4046 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4047 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4048 prototype.
4049 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4050 prototype.
4051 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4052 prototype.
4053 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4054 prototype.
4055 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4056 prototype.
4057 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4058 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4059 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4060 * stabsread.c: Remove _initialize_stabsread prototype.
4061 * stack.c: Remove _initialize_stack prototype.
4062 * stap-probe.c: Remove _initialize_stap_probe prototype.
4063 * std-regs.c: Remove _initialize_frame_reg prototype.
4064 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4065 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4066 * symfile.c: Remove _initialize_symfile prototype.
4067 * symmisc.c: Remove _initialize_symmisc prototype.
4068 * symtab.c: Remove _initialize_symtab prototype.
4069 * target-dcache.c: Remove _initialize_target_dcache prototype.
4070 * target-descriptions.c: Remove _initialize_target_descriptions
4071 prototype.
4072 * thread.c: Remove _initialize_thread prototype.
4073 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4074 prototype.
4075 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4076 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4077 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4078 prototype.
4079 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4080 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4081 * tracefile.c: Remove _initialize_tracefile prototype.
4082 * tracepoint.c: Remove _initialize_tracepoint prototype.
4083 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4084 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4085 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4086 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4087 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4088 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4089 * tui/tui.c: Remove _initialize_tui prototype.
4090 * typeprint.c: Remove _initialize_typeprint prototype.
4091 * user-regs.c: Remove _initialize_user_regs prototype.
4092 * utils.c: Remove _initialize_utils prototype.
4093 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4094 * valarith.c: Remove _initialize_valarith prototype.
4095 * valops.c: Remove _initialize_valops prototype.
4096 * valprint.c: Remove _initialize_valprint prototype.
4097 * value.c: Remove _initialize_values prototype.
4098 * varobj.c: Remove _initialize_varobj prototype.
4099 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4100 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4101 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4102 * windows-nat.c: Remove _initialize_windows_nat,
4103 _initialize_check_for_gdb_ini, and _initialize_loadable
4104 prototypes.
4105 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4106 * xcoffread.c: Remove _initialize_xcoffread prototype.
4107 * xml-support.c: Remove _initialize_xml_support prototype.
4108 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4109 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4110 prototype.
4111 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4112 prototype.
4113 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4114
4115 2017-09-08 Keith Seitz <keiths@redhat.com>
4116
4117 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4118 field.
4119
4120 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4121
4122 * f-valprint.c (f_val_print): Remove check for one byte
4123 sized integers. Remove printing of character type.
4124
4125 2017-09-08 Frank Penczek <frank.penczek@intel.com>
4126 Christoph Weinmann <christoph.t.weinmann@intel.com>
4127 Bernhard Heckel <bernhard.heckel@intel.com>
4128
4129 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4130 to maintain proper indentation when printing pointers/refs.
4131
4132 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4133
4134 GDB 8.0.1 released.
4135
4136 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4137
4138 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4139
4140 2017-09-05 Tom Tromey <tom@tromey.com>
4141
4142 * parse.c (funcall_chain): Now a std::vector.
4143 (start_arglist, end_arglist): Simplify.
4144 (free_funcalls): Remove.
4145 (parse_exp_in_context_1): Remove cleanup.
4146
4147 2017-09-05 Tom Tromey <tom@tromey.com>
4148
4149 * go-exp.y (go_parse): Don't create a cleanup.
4150
4151 2017-09-05 Tom Tromey <tom@tromey.com>
4152
4153 * d-exp.y (PrimaryExpression): Use std::string.
4154 (d_parse): Don't create a cleanup.
4155
4156 2017-09-05 Tom Tromey <tom@tromey.com>
4157
4158 * utils.c (do_clear_parser_state): Remove.
4159 (make_cleanup_clear_parser_state): Remove.
4160 * p-exp.y (pascal_parse): Use scoped_restore.
4161 * m2-exp.y (m2_parse): Use scoped_restore.
4162 * f-exp.y (f_parse): Use scoped_restore.
4163 * d-exp.y (d_parse): Use scoped_restore.
4164 * c-exp.y (c_parse): Use scoped_restore.
4165 * ada-exp.y (ada_parse): Use scoped_restore.
4166 * utils.h (make_cleanup_clear_parser_state): Remove.
4167
4168 2017-09-06 Keith Seitz <keiths@redhat.com>
4169
4170 * dwarf2read.c (dw2_linkage_name_attr): New function.
4171 (dw2_linkage_name): New function.
4172 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4173 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4174 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4175
4176 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4177
4178 * config/djgpp/djconfig.sh: Correct shell portability issue.
4179
4180 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4181
4182 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4183
4184 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4185
4186 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4187 * NEWS: Mention new FreeBSD/mips native configuration.
4188 * configure.host: Add aarch64*-*-freebsd*.
4189 * configure.nat: Likewise.
4190 * aarch64-fbsd-nat.c: New file.
4191
4192 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4193
4194 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4195 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4196 * NEWS: Mention new FreeBSD/aarch64 target.
4197 * configure.tgt: Add aarch64*-*-freebsd*.
4198 * aarch64-fbsd-tdep.c: New file.
4199 * aarch64-fbsd-tdep.h: New file.
4200
4201 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4202
4203 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4204
4205 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4206
4207 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4208 of TLS symbols.
4209
4210 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4211
4212 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4213 call.
4214
4215 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4216
4217 * infrun.c (follow_exec): Call add_thread after
4218 target_find_description.
4219
4220 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4221
4222 * infrun.c (handle_inferior_event_1): When exec'ing, read
4223 stop_pc after follow_exec.
4224
4225 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4226
4227 * remote.c (process_g_packet): Update error message.
4228
4229 2017-09-05 Yao Qi <yao.qi@linaro.org>
4230
4231 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4232 targets.
4233
4234 2017-09-05 Pedro Alves <palves@redhat.com>
4235
4236 * eval.c (eval_call, evaluate_funcall): New functions, factored
4237 out from ...
4238 (evaluate_subexp_standard): ... this.
4239
4240 2017-09-05 Yao Qi <yao.qi@linaro.org>
4241
4242 * amd64-tdep.c (amd64_target_description): Create target
4243 descriptions.
4244 (_initialize_amd64_tdep): Don't call functions
4245 initialize_tdesc_amd64_*. Add self tests.
4246 * arch/amd64.c (amd64_create_target_description): Add parameter
4247 is_linux. Call set_tdesc_osabi if is_linux is true.
4248 * arch/amd64.h (amd64_create_target_description): Update the
4249 declaration.
4250 * arch/i386.c (i386_create_target_description): Add parameter
4251 is_linux. Call set_tdesc_osabi if is_linux is true.
4252 * arch/i386.h (i386_create_target_description): Update
4253 declaration.
4254 * configure.tgt: Add i386.o to gdb_target_obs.
4255 * features/Makefile (XMLTOC): Remove i386/*.xml.
4256 * features/i386/amd64-avx-avx512.c: Remove.
4257 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4258 * features/i386/amd64-avx-mpx.c: Remove.
4259 * features/i386/amd64-avx.c: Remove.
4260 * features/i386/amd64-mpx.c: Remove.
4261 * features/i386/amd64.c: Remove.
4262 * features/i386/i386-avx-avx512.c: Remove.
4263 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4264 * features/i386/i386-avx-mpx.c: Remove.
4265 * features/i386/i386-avx.c: Remove.
4266 * features/i386/i386-mmx.c: Remove.
4267 * features/i386/i386-mpx.c: Remove.
4268 * features/i386/i386.c: Remove.
4269 * i386-tdep.c: Don't include features/i386/i386*.c., include
4270 target-descriptions.h and arch/i386.h.
4271 (i386_target_description): Create target descriptions.
4272 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4273 functions. Do self tests.
4274
4275 2017-09-05 Yao Qi <yao.qi@linaro.org>
4276
4277 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4278 * features/i386/amd64-avx-avx512-linux.c: Removed.
4279 * features/i386/amd64-avx-linux.c: Removed.
4280 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4281 * features/i386/amd64-avx-mpx-linux.c: Removed.
4282 * features/i386/amd64-linux.c: Removed.
4283 * features/i386/amd64-mpx-linux.c: Removed.
4284 * features/i386/x32-avx-avx512-linux.c: Removed.
4285 * features/i386/x32-avx-linux.c: Removed.
4286 * features/i386/x32-linux.c: Removed.
4287
4288 2017-09-05 Yao Qi <yao.qi@linaro.org>
4289
4290 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4291 features/i386/*.c.
4292 (amd64_linux_read_description): Call
4293 amd64_create_target_description.
4294 * arch/amd64.c: New file.
4295 * arch/amd64.h: New file.
4296 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4297 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4298
4299 2017-09-05 Yao Qi <yao.qi@linaro.org>
4300
4301 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4302 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4303 (amd64_linux_read_description): Create target descriptions.
4304 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4305 functions. Add unit tests.
4306 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4307 x32-core.xml.
4308 * features/i386/64bit-avx.c: Generated.
4309 * features/i386/64bit-avx512.c: Generated.
4310 * features/i386/64bit-core.c: Generated.
4311 * features/i386/64bit-linux.c: Generated.
4312 * features/i386/64bit-mpx.c: Generated.
4313 * features/i386/64bit-pkeys.c: Generated.
4314 * features/i386/64bit-segments.c: Generated.
4315 * features/i386/64bit-sse.c: Generated.
4316 * features/i386/x32-core.c: Generated.
4317 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4318 c files for amd64-linux and x32-linux.
4319
4320 2017-09-05 Yao Qi <yao.qi@linaro.org>
4321
4322 * amd64-linux-tdep.c (amd64_linux_read_description): New
4323 function.
4324 (amd64_linux_core_read_description): Call
4325 amd64_linux_read_description.
4326 (amd64_linux_init_abi): Likewise.
4327 (amd64_x32_linux_init_abi): Likewise.
4328 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4329 * x86-linux-nat.c (x86_linux_read_description): Call
4330 amd64_linux_read_description.
4331
4332 2017-09-05 Yao Qi <yao.qi@linaro.org>
4333
4334 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4335 comments.
4336
4337 2017-09-05 Yao Qi <yao.qi@linaro.org>
4338
4339 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4340 * features/i386/i386-avx-avx512-linux.c: Remove.
4341 * features/i386/i386-avx-linux.c: Remove.
4342 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4343 * features/i386/i386-avx-mpx-linux.c: Remove.
4344 * features/i386/i386-linux.c: Remove.
4345 * features/i386/i386-mmx-linux.c: Remove.
4346 * features/i386/i386-mpx-linux.c: Remove.
4347
4348 2017-09-05 Yao Qi <yao.qi@linaro.org>
4349
4350 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4351 (SFILES): Add arch/i386.c.
4352 (HFILES_NO_SRCDIR): Add arch/i386.h.
4353 * arch/i386.c: New file.
4354 * arch/i386.h: New file.
4355 * arch/tdesc.h (allocate_target_description): Declare.
4356 (set_tdesc_architecture): Declare.
4357 (set_tdesc_osabi): Declare.
4358 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4359 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4360 include arch/i386.h.
4361 (i386_linux_read_description): Remove code and call
4362 i386_create_target_description.
4363 (set_tdesc_architecture): New function.
4364 (set_tdesc_osabi): New function.
4365 * target-descriptions.h (allocate_target_description): Remove.
4366
4367 2017-09-05 Yao Qi <yao.qi@linaro.org>
4368
4369 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4370 * target-descriptions.c (tdesc_create_feature): Likewise, and
4371 adjust code.
4372 * features/i386/32bit-avx.c: Re-generated.
4373 * features/i386/32bit-avx512.c: Re-generated.
4374 * features/i386/32bit-core.c: Re-generated.
4375 * features/i386/32bit-linux.c: Re-generated.
4376 * features/i386/32bit-mpx.c: Re-generated.
4377 * features/i386/32bit-pkeys.c: Re-generated.
4378 * features/i386/32bit-sse.c: Re-generated.
4379
4380 2017-09-05 Yao Qi <yao.qi@linaro.org>
4381
4382 * regformats/regdef.h (struct reg): Override operator == and !=.
4383
4384 2017-09-05 Yao Qi <yao.qi@linaro.org>
4385
4386 * arch/tdesc.h: New file.
4387 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4388 * target-descriptions.c: Update comments.
4389 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4390 declarations.
4391 * features/i386/32bit-avx.c: Re-generated.
4392 * features/i386/32bit-avx512.c: Re-generated.
4393 * features/i386/32bit-core.c: Re-generated.
4394 * features/i386/32bit-linux.c: Re-generated.
4395 * features/i386/32bit-mpx.c: Re-generated.
4396 * features/i386/32bit-pkeys.c: Re-generated.
4397 * features/i386/32bit-sse.c: Re-generated.
4398
4399 2017-09-05 Yao Qi <yao.qi@linaro.org>
4400
4401 * regformats/regdat.sh: Update generated code.
4402
4403 2017-09-05 Yao Qi <yao.qi@linaro.org>
4404
4405 * regformats/regdat.sh: Adjust code order.
4406
4407 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4408
4409 * expprint.c (dump_subexp_body_standard): Use constant format
4410 string in fprintf_filtered call.
4411
4412 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4413
4414 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4415 NetBSD/i386.
4416 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4417
4418 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4419
4420 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4421
4422 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4423
4424 * bsd-kvm.o: Define _KMEMUSER.
4425 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4426 * configure: Regenerate.
4427
4428 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4429
4430 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4431 * i386-fbsd-nat.c: Likewise.
4432
4433 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4434
4435 * unittests/array-view-selftests.c: Add include of <array>.
4436
4437 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4438
4439 * spu-tdep.c (flush_ea_cache): Add missing argument to
4440 call_function_by_hand.
4441
4442 2017-09-04 Pedro Alves <palves@redhat.com>
4443
4444 * NEWS (Safer support for debugging with no debug info): New.
4445
4446 2017-09-04 Pedro Alves <palves@redhat.com>
4447
4448 * c-exp.y (function_method, function_method_void): Add current
4449 instance flags to TYPE_INSTANCE.
4450 * dwarf2read.c (check_modifier): New.
4451 (compute_delayed_physnames): Assert that only C++ adds delayed
4452 physnames. Mark fn_fields as const/volatile depending on
4453 physname.
4454 * eval.c (make_params): New type_instance_flags parameter. Use
4455 it as the new type's instance flags.
4456 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4457 flags element and pass it to make_params.
4458 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4459 instance flags element.
4460 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4461 * gdbtypes.h: Include "enum-flags.h".
4462 (type_instance_flags): New enum-flags type.
4463 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4464 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4465 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4466 (follow_type_instance_flags): New function.
4467 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4468 * parser-defs.h (follow_type_instance_flags): Declare.
4469 * valops.c (value_struct_elt_for_reference): const/volatile must
4470 match too.
4471
4472 2017-09-04 Pedro Alves <palves@redhat.com>
4473
4474 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4475 function/method scopes; lookup the nested name as a function local
4476 static variable.
4477
4478 2017-09-04 Pedro Alves <palves@redhat.com>
4479
4480 (%type <voidval>): Add function_method.
4481 * c-exp.y (exp): New production for calls with no arguments.
4482 (function_method, function_method_void_or_typelist): New
4483 productions.
4484 (exp): New production for "method()::static_var".
4485 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4486 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4487 Handle OP_FUNC_STATIC_VAR.
4488 * parse.c (operator_length_standard):
4489 Handle OP_FUNC_STATIC_VAR.
4490
4491 2017-09-04 Pedro Alves <palves@redhat.com>
4492
4493 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4494 handling.
4495 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4496 Ditto.
4497 * parse.c (operator_length_standard, operator_check_standard):
4498 Ditto.
4499 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4500
4501 2017-09-04 Pedro Alves <palves@redhat.com>
4502
4503 * ax-gdb.c: Include "typeprint.h".
4504 (gen_expr_for_cast): New function.
4505 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4506 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4507 type is unknown.
4508 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4509 nodebug_data_symbol.
4510 * eval.c: Include "typeprint.h".
4511 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4512 Error out if symbol has unknown type.
4513 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4514 evaluate_subexp_for_cast.
4515 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4516 OP_VAR_MSYM_VALUE.
4517 (evaluate_subexp_for_cast): New function.
4518 * gdbtypes.c (init_nodebug_var_type): New function.
4519 (objfile_type): Use it to initialize types of variables with no
4520 debug info.
4521 * typeprint.c (error_unknown_type): New.
4522 * typeprint.h (error_unknown_type): New declaration.
4523 * compile/compile-c-types.c (convert_type_basic): Handle
4524 TYPE_CODE_ERROR; warn and fallback to int for variables with
4525 unknown type.
4526
4527 2017-09-04 Pedro Alves <palves@redhat.com>
4528
4529 * eval.c (evaluate_var_value): New function, factored out from ...
4530 (evaluate_subexp_standard): ... here.
4531
4532 2017-09-04 Pedro Alves <palves@redhat.com>
4533
4534 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4535 Remove useless assignments to 'op'.
4536
4537 2017-09-04 Pedro Alves <palves@redhat.com>
4538
4539 * eval.c (eval_skip_value): New function.
4540 (evaluate_subexp_standard): Use it.
4541
4542 2017-09-04 Pedro Alves <palves@redhat.com>
4543
4544 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4545 function name from symbol/minsym and pass it to
4546 error_call_unknown_return_type.
4547
4548 2017-09-04 Pedro Alves <palves@redhat.com>
4549
4550 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4551 * ax-gdb.c (gen_msym_var_ref): New function.
4552 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4553 * eval.c (evaluate_var_msym_value): New function.
4554 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4555 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4556 to call_function_by_hand.
4557 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4558 Handle OP_VAR_MSYM_VALUE.
4559 (union exp_element) <msymbol>: New field.
4560 * minsyms.h (struct type): Forward declare.
4561 (find_minsym_type_and_address): Declare.
4562 * parse.c (write_exp_elt_msym): New function.
4563 (write_exp_msymbol): Delete, refactored as ...
4564 (find_minsym_type_and_address): ... this new function.
4565 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4566 (operator_length_standard, operator_check_standard): Handle
4567 OP_VAR_MSYM_VALUE.
4568 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4569
4570 2017-09-04 Pedro Alves <palves@redhat.com>
4571
4572 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4573 TYPE_GNU_IFUNC specially here. Throw error if return type is
4574 unknown.
4575 * ada-typeprint.c (print_func_type): Handle functions with unknown
4576 return type.
4577 * c-typeprint.c (c_type_print_base): Handle functions and methods
4578 with unknown return type.
4579 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4580 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4581 * compile/compile-c-types.c: Include "objfiles.h".
4582 (convert_func): For functions with unknown return type, warn and
4583 default to int.
4584 * compile/compile-object-run.c (compile_object_run): Adjust call
4585 to call_function_by_hand_dummy.
4586 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4587 call_function_by_hand.
4588 * eval.c (evaluate_subexp_standard): Adjust calls to
4589 call_function_by_hand. Handle functions and methods with unknown
4590 return type. Pass expect_type to call_function_by_hand.
4591 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4592 return type.
4593 * gcore.c (call_target_sbrk): Adjust call to
4594 call_function_by_hand.
4595 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4596 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4597 an integer address type instead of nodebug.
4598 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4599 call_function_by_hand.
4600 * infcall.c (error_call_unknown_return_type): New function.
4601 (call_function_by_hand): New "default_return_type" parameter.
4602 Pass it down.
4603 (call_function_by_hand_dummy): New "default_return_type"
4604 parameter. Use it instead of defaulting to int. If there's no
4605 default and the return type is unknown, throw an error. If
4606 there's a default return type, and the called function has no
4607 debug info, then assume the function is prototyped.
4608 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4609 New "default_return_type" parameter.
4610 (error_call_unknown_return_type): New declaration.
4611 * linux-fork.c (call_lseek): Cast return type of lseek.
4612 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4613 call_function_by_hand.
4614 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4615 calls to call_function_by_hand.
4616 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4617 return type.
4618 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4619 (value_nsstring, print_object_command): Adjust calls to
4620 call_function_by_hand.
4621 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4622 functions with unknown return type.
4623 (pascal_type_print_func_varspec_suffix): New function.
4624 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4625 TYPE_CODE_METHOD>: Use it.
4626 * python/py-value.c (valpy_call): Adjust call to
4627 call_function_by_hand.
4628 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4629 call_function_by_hand.
4630 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4631 call_function_by_hand.
4632 * valops.c (value_allocate_space_in_inferior): Adjust call to
4633 call_function_by_hand.
4634 * typeprint.c (type_print_unknown_return_type): New function.
4635 * typeprint.h (type_print_unknown_return_type): New declaration.
4636
4637 2017-09-04 Pedro Alves <palves@redhat.com>
4638
4639 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4640 types with more than one parameter as prototyped.
4641
4642 2017-09-04 Pedro Alves <palves@redhat.com>
4643
4644 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4645 (disassemble_command): Use gdb_disassembly_flags instead of bare
4646 int.
4647 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4648 (dump_insns, do_mixed_source_and_assembly_deprecated)
4649 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4650 Use gdb_disassembly_flags instead of bare int.
4651 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4652 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4653 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4654 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4655 (enum gdb_disassembly_flag): ... values of this new enumeration.
4656 (gdb_disassembly_flags): Define.
4657 (gdb_disassembly)
4658 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4659 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4660 gdb_disassembly_flags instead of bare int.
4661 * record-btrace.c (btrace_insn_history)
4662 (record_btrace_insn_history, record_btrace_insn_history_range)
4663 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4664 instead of bare int.
4665 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4666 Use gdb_disassembly_flags instead of bare int.
4667 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4668 Define.
4669 * target-delegates.c: Regenerate.
4670 * target.c (target_insn_history, target_insn_history_from)
4671 (target_insn_history_range): Use gdb_disassembly_flags instead of
4672 bare int.
4673 * target.h: Include "disasm.h".
4674 (struct target_ops) <to_insn_history, to_insn_history_from,
4675 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4676 int.
4677 (target_insn_history, target_insn_history_from)
4678 (target_insn_history_range): Use gdb_disassembly_flags instead of
4679 bare int.
4680
4681 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4682
4683 * cli/cli-script.c (build_command_line): For if/while commands,
4684 check whether args is empty.
4685
4686 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4687
4688 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4689 (enum command_control_type): Likewise.
4690 (struct command_line): Likewise.
4691 (free_command_lines): Likewise.
4692 (struct command_lines_deleter): Likewise.
4693 (command_line_up): Likewise.
4694 (read_command_lines): Likewise.
4695 (read_command_lines_1): Likewise.
4696 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4697 (enum command_control_type): Likewise.
4698 (struct command_line): Likewise.
4699 (free_command_lines): Likewise.
4700 (struct command_lines_deleter): Likewise.
4701 (command_line_up): Likewise.
4702 (read_command_lines): Likewise.
4703 (read_command_lines_1): Likewise.
4704 * breakpoint.h: Include cli/cli-script.h.
4705 * extension-priv.h: Likewise.
4706 * gdbcmd.h: Likewise.
4707
4708 2017-09-04 Pedro Alves <palves@redhat.com>
4709
4710 * ada-lang.c (is_known_support_routine): Move sal declaration to
4711 where it is initialized.
4712 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4713 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4714 (clear_command, update_static_tracepoint): Remove init_sal
4715 references. Move declarations closer to initializations.
4716 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4717 initializations.
4718 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4719 references. Move sal declarations closer to initializations.
4720 * frame.c (find_frame_sal): Return a symtab_and_line via function
4721 return instead of output parameter. Remove init_sal references.
4722 * frame.h (find_frame_sal): Return a symtab_and_line via function
4723 return instead of output parameter.
4724 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4725 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4726 instead of memset.
4727 (gdbscm_find_pc_line): Remove init_sal reference.
4728 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4729 references. Move declarations closer to initializations.
4730 * infcmd.c (set_step_frame): Update. Move declarations closer to
4731 initializations.
4732 (finish_backward): Remove init_sal references. Move declarations
4733 closer to initializations.
4734 * infrun.c (process_event_stop_test, handle_step_into_function)
4735 (insert_hp_step_resume_breakpoint_at_frame)
4736 (insert_step_resume_breakpoint_at_caller): Likewise.
4737 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4738 (symbol_to_sal): Likewise.
4739 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4740 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4741 to its initialization.
4742 * reverse.c (save_bookmark_command): Use new/delete. Remove
4743 init_sal references. Move declarations closer to initializations.
4744 * source.c (get_current_source_symtab_and_line): Remove brace
4745 initialization.
4746 (set_current_source_symtab_and_line): Now takes the sal by const
4747 reference. Remove brace initialization.
4748 (line_info): Remove init_sal reference.
4749 * source.h (set_current_source_symtab_and_line): Now takes a
4750 symtab_and_line via const reference.
4751 * stack.c (set_current_sal_from_frame): Adjust.
4752 (print_frame_info): Adjust.
4753 (get_last_displayed_sal): Return the sal via function return
4754 instead of via output parameter. Simplify.
4755 (frame_info): Adjust.
4756 * stack.h (get_last_displayed_sal): Return the sal via function
4757 return instead of via output parameter.
4758 * symtab.c (init_sal): Delete.
4759 (find_pc_sect_line): Remove init_sal references. Move
4760 declarations closer to initializations.
4761 (find_function_start_sal): Remove init_sal references. Move
4762 declarations closer to initializations.
4763 * symtab.h (struct symtab_and_line): In-class initialize all
4764 fields.
4765 * tracepoint.c (set_traceframe_context)
4766 (print_one_static_tracepoint_marker): Remove init_sal references.
4767 Move declarations closer to initializations.
4768 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
4769 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
4770 declarations closer to initializations.
4771 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
4772 init_sal references. Adjust.
4773
4774 2017-09-04 Pedro Alves <palves@redhat.com>
4775
4776 * ax-gdb.c (agent_command_1): Use range-for.
4777 * break-catch-throw.c (re_set_exception_catchpoint): Update.
4778 * breakpoint.c: Include "common/array-view.h".
4779 (init_breakpoint_sal, create_breakpoint_sal): Change sals
4780 parameter from struct symtabs_and_lines to
4781 array_view<symtab_and_line>. Adjust. Use range-for. Update.
4782 (breakpoint_sals_to_pc): Change sals parameter from struct
4783 symtabs_and_lines to std::vector reference.
4784 (check_fast_tracepoint_sals): Change sals parameter from struct
4785 symtabs_and_lines to std::array_view. Use range-for.
4786 (decode_static_tracepoint_spec): Return a std::vector instead of
4787 symtabs_and_lines. Update.
4788 (create_breakpoint): Update.
4789 (break_range_command, until_break_command, clear_command): Update.
4790 (base_breakpoint_decode_location, bkpt_decode_location)
4791 (bkpt_probe_create_sals_from_location)
4792 (bkpt_probe_decode_location, tracepoint_decode_location)
4793 (tracepoint_probe_decode_location)
4794 (strace_marker_create_sals_from_location): Return a std::vector
4795 instead of symtabs_and_lines.
4796 (strace_marker_create_breakpoints_sal): Update.
4797 (strace_marker_decode_location): Return a std::vector instead of
4798 symtabs_and_lines. Update.
4799 (update_breakpoint_locations): Change struct symtabs_and_lines
4800 parameters to gdb::array_view. Adjust.
4801 (location_to_sals): Return a std::vector instead of
4802 symtabs_and_lines. Update.
4803 (breakpoint_re_set_default): Use std::vector instead of struct
4804 symtabs_and_lines.
4805 (decode_location_default): Return a std::vector instead of
4806 symtabs_and_lines. Update.
4807 * breakpoint.h: Include "common/array-view.h".
4808 (struct breakpoint_ops) <decode_location>: Now returns a
4809 std::vector instead of returning a symtabs_and_lines via output
4810 parameter.
4811 (update_breakpoint_locations): Change sals parameters to use
4812 gdb::array_view.
4813 * cli/cli-cmds.c (edit_command, list_command): Update to use
4814 std::vector and gdb::array_view.
4815 (ambiguous_line_spec): Adjust to use gdb::array_view and
4816 range-for.
4817 (compare_symtabs): Rename to ...
4818 (cmp_symtabs): ... this. Change parameters to symtab_and_line
4819 const reference and adjust.
4820 (filter_sals): Rewrite using std::vector and standard algorithms.
4821 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
4822 (jump_command): Update to use std::vector.
4823 * linespec.c (struct linespec_state) <canonical_names>: Update
4824 comment.
4825 (add_sal_to_sals_basic): Delete.
4826 (add_sal_to_sals, filter_results, convert_results_to_lsals)
4827 (decode_line_2, create_sals_line_offset)
4828 (convert_address_location_to_sals, convert_linespec_to_sals)
4829 (convert_explicit_location_to_sals, parse_linespec)
4830 (event_location_to_sals, decode_line_full, decode_line_1)
4831 (decode_line_with_current_source)
4832 (decode_line_with_last_displayed, decode_objc)
4833 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
4834 (linespec_result::~linespec_result): Adjust to use std::vector
4835 instead of symtabs_and_lines.
4836 * linespec.h (linespec_sals::sals): Now a std::vector.
4837 (struct linespec_result): Use std::vector, bool, and in-class
4838 initialization.
4839 (decode_line_1, decode_line_with_current_source)
4840 (decode_line_with_last_displayed): Return std::vector.
4841 * macrocmd.c (info_macros_command): Use std::vector.
4842 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
4843 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
4844 std::vector.
4845 * probe.h (parse_probes): Return a std::vector.
4846 * python/python.c (gdbpy_decode_line): Use std::vector and
4847 gdb::array_view.
4848 * source.c (select_source_symtab, line_info): Use std::vector.
4849 * stack.c (func_command): Use std::vector.
4850 * symtab.h (struct symtabs_and_lines): Delete.
4851 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
4852
4853 2017-09-04 Pedro Alves <palves@redhat.com>
4854
4855 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4856 unittests/array-view-selftests.c.
4857 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
4858 * common/array-view.h: New file.
4859 * unittests/array-view-selftests.c: New file.
4860
4861 2017-09-04 Pedro Alves <palves@redhat.com>
4862
4863 * cli/cli-cmds.c (edit_command): Pass message to
4864 ambiguous_line_spec.
4865 (list_command): Pass message to ambiguous_line_spec. Say
4866 "first"/"last" instead of "start" and "end" to be consistent with
4867 the manual.
4868 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
4869 them to print formatted message.
4870
4871 2017-09-04 Pedro Alves <palves@redhat.com>
4872
4873 * btrace.c (ftrace_add_pt): Pass btrace_insn to
4874 ftrace_update_insns by reference instead of pointer.
4875
4876 2017-09-04 Yao Qi <yao.qi@linaro.org>
4877
4878 * i386-go32-tdep.c: Include x86-xstate.h.
4879 (i386_go32_init_abi): Call i386_target_description.
4880 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
4881 if xcr0 is X86_XSTATE_X87_MASK.
4882 * i386-tdep.h (tdesc_i386): Remove the declaration.
4883 (tdesc_i386_mmx): Likewise.
4884
4885 2017-09-04 Yao Qi <yao.qi@linaro.org>
4886
4887 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
4888 X86_XSTATE_SSE_MASK instead of 0.
4889
4890 2017-09-04 Yao Qi <yao.qi@linaro.org>
4891
4892 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
4893 i386_target_description.
4894 * i386-fbsd-nat.c (i386fbsd_read_description): Call
4895 i386_target_description.
4896 * i386-tdep.c (i386_gdbarch_init): Likewise.
4897
4898 2017-09-04 Yao Qi <yao.qi@linaro.org>
4899
4900 * amd64-darwin-tdep.c: Include "x86-xstate.h".
4901 (x86_darwin_init_abi_64): Call amd64_target_description.
4902 * amd64-dicos-tdep.c: Likewise.
4903 * amd64-fbsd-nat.c: Likewise.
4904 * amd64-fbsd-tdep.c: Likewise.
4905 * amd64-nbsd-tdep.c: Likewise.
4906 * amd64-obsd-tdep.c: Likewise.
4907 * amd64-sol2-tdep.c: Likewise.
4908 * amd64-windows-tdep.c: Likewise.
4909 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
4910
4911 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4912
4913 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
4914 (btrace_function) <insn>: Change type to use std::vector.
4915 * btrace.c (ftrace_debug, ftrace_call_num_insn,
4916 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
4917 ftrace_update_insns, ftrace_compute_global_level_offset,
4918 btrace_stitch_bts, btrace_clear, btrace_insn_get,
4919 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
4920 change to std::vector.
4921 (ftrace_update_insns): Adjust to change to std::vector, change
4922 type of INSN parameter.
4923 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
4924 * record-btrace.c (btrace_call_history_insn_range,
4925 btrace_compute_src_line_range,
4926 record_btrace_frame_prev_register): Adjust to change to
4927 std::vector.
4928 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
4929 to change to std::vector.
4930
4931 2017-09-03 Tom Tromey <tom@tromey.com>
4932
4933 * corefile.c (reopen_exec_file): Use std::string.
4934
4935 2017-09-03 Tom Tromey <tom@tromey.com>
4936
4937 * compile/compile.c (compile_register_name_mangled): Return
4938 std::string.
4939 * compile/compile-loc2c.c (pushf_register_address): Update.
4940 (pushf_register): Update.
4941 * compile/compile-c-types.c (convert_array): Update.
4942 * compile/compile-c-symbols.c (generate_vla_size): Update.
4943 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
4944 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
4945 (convert_one_symbol): Update.
4946 (generate_c_for_for_one_variable): Update.
4947 * compile/compile-c-support.c (c_get_range_decl_name): Return a
4948 std::string.
4949 (generate_register_struct): Update.
4950 * compile/compile-internal.h (c_get_range_decl_name): Return a
4951 std::string.
4952 (compile_register_name_mangled): Return std::string.
4953
4954 2017-09-03 Tom Tromey <tom@tromey.com>
4955
4956 * utils.c (perror_string): Return a std::string.
4957 (throw_perror_with_name, perror_warning_with_name): Update.
4958
4959 2017-09-03 Tom Tromey <tom@tromey.com>
4960
4961 * demangle.c (demangle_command): Use std::string,
4962 unique_xmalloc_ptr.
4963
4964 2017-09-03 Tom Tromey <tom@tromey.com>
4965
4966 * cli/cli-setshow.c (do_set_command): Use std::string.
4967
4968 2017-09-03 Tom Tromey <tom@tromey.com>
4969
4970 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
4971
4972 2017-09-03 Tom Tromey <tom@tromey.com>
4973
4974 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
4975
4976 2017-09-03 Tom Tromey <tom@tromey.com>
4977
4978 * mi/mi-cmd-env.c (env_execute_cli_command): Use
4979 gdb::unique_xmalloc_ptr.
4980
4981 2017-09-03 Tom Tromey <tom@tromey.com>
4982
4983 * thread.c (print_thread_info_1): Use string_printf.
4984 (thread_apply_command, thread_apply_all_command): Use
4985 std::string.
4986
4987 2017-09-03 Tom Tromey <tom@tromey.com>
4988
4989 * valprint.c (val_print_string): Update.
4990 * gdbcore.h (memory_error_message): Return std::string.
4991 * corefile.c (memory_error_message): Return std::string.
4992 (memory_error): Update.
4993 * breakpoint.c (insert_bp_location): Update.
4994
4995 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4996
4997 * target/waitstatus.h (target_waitstatus_to_string): Change
4998 return type to std::string.
4999 * target/waitstatus.c (target_waitstatus_to_string): Return
5000 std::string.
5001 * target.h (target_waitstatus_to_string): Remove declaration.
5002 * infrun.c (resume, clear_proceed_status_thread,
5003 print_target_wait_results, do_target_wait, save_waitstatus,
5004 stop_all_threads): Adjust.
5005 * record-btrace.c (record_btrace_wait): Adjust.
5006 * target-debug.h
5007 (target_debug_print_struct_target_waitstatus_p): Adjust.
5008
5009 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5010
5011 PR gdb/22046
5012 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5013 detection.
5014
5015 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5016
5017 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5018 for setting/unsetting environment variables on the remote target.
5019 (New remote packets): Add entries for QEnvironmentHexEncoded,
5020 QEnvironmentUnset and QEnvironmentReset.
5021 * common/environ.c (gdb_environ::operator=): Extend method to
5022 handle m_user_set_env_list and m_user_unset_env_list.
5023 (gdb_environ::clear): Likewise.
5024 (match_var_in_string): Change type of first parameter from 'char
5025 *' to 'const char *'.
5026 (gdb_environ::set): Extend method to handle
5027 m_user_set_env_list and m_user_unset_env_list.
5028 (gdb_environ::unset): Likewise.
5029 (gdb_environ::clear_user_set_env): New method.
5030 (gdb_environ::user_set_envp): Likewise.
5031 (gdb_environ::user_unset_envp): Likewise.
5032 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5033 m_user_unset_env_list on move constructor/assignment.
5034 (unset): Add new default parameter 'update_unset_list = true'.
5035 (clear_user_set_env): New method.
5036 (user_set_envp): Likewise.
5037 (user_unset_envp): Likewise.
5038 (m_user_set_env_list): New std::set.
5039 (m_user_unset_env_list): Likewise.
5040 * common/rsp-low.c (hex2str): New function.
5041 (bin2hex): New overload for bin2hex function.
5042 * common/rsp-low.c (hex2str): New prototype.
5043 (str2hex): New overload prototype.
5044 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5045 QEnvironmentUnset and QEnvironmentReset.
5046 (remote_protocol_features): Add QEnvironmentHexEncoded,
5047 QEnvironmentUnset and QEnvironmentReset packets.
5048 (send_environment_packet): New function.
5049 (extended_remote_environment_support): Likewise.
5050 (extended_remote_create_inferior): Call
5051 extended_remote_environment_support.
5052 (_initialize_remote): Add QEnvironmentHexEncoded,
5053 QEnvironmentUnset and QEnvironmentReset packet configs.
5054 * unittests/environ-selftests.c (gdb_selftest_env_var):
5055 New variable.
5056 (test_vector_initialization): New function.
5057 (test_init_from_host_environ): Likewise.
5058 (test_reinit_from_host_environ): Likewise.
5059 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5060 Likewise.
5061 (test_unset_set_empty_vector): Likewise.
5062 (test_vector_clear): Likewise.
5063 (test_std_move): Likewise.
5064 (test_move_constructor):
5065 (test_self_move): Likewise.
5066 (test_set_unset_reset): Likewise.
5067 (run_tests): Rewrite in terms of the functions above.
5068
5069 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
5070
5071 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5072 (adi_available): Use a temp variable of type CORE_ADDR as argument
5073 3 when calling target_auxv_search.
5074 (adi_normalize_address): Use masks and xor operators to calculate
5075 normalized address.
5076 (adi_read_versions, adi_write_versions, adi_print_versions)
5077 (do_examine, do_assign): Use paddress.
5078
5079 2017-08-29 John Baldwin <jhb@FreeBSD.org>
5080
5081 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5082 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5083 out of loop and add supply of FIR.
5084 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5085 add collect of FIR.
5086
5087 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5088
5089 PR gdb/21827
5090 * cli/cli-script.c (define_command): Don't convert command name
5091 to lower case.
5092
5093 2017-08-25 Joel Brobecker <brobecker@adacore.com>
5094
5095 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5096 Update all callers accordingly. Remove all code blocks handling
5097 the case where DISPP is not NULL.
5098
5099 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5100
5101 PR symtab/22003
5102 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5103 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5104 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5105
5106 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5107
5108 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5109 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5110 (read_comp_units_from_section): New parameter abbrev_section, use
5111 read_and_check_comp_unit_head, allocate signatured_type if needed.
5112 (create_all_comp_units): Update read_comp_units_from_section caller.
5113
5114 2017-08-23 Pedro Alves <palves@redhat.com>
5115
5116 PR remote/21852
5117 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5118 to null_ptid and switch to thread without reading the registers
5119 after adding the inferior.
5120
5121 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5122
5123 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5124 compile-gcc.
5125 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5126 (compile_to_object): Implement compile_gcc.
5127 (_initialize_compile): Install "set compile-gcc". Initialize
5128 compile_gcc.
5129
5130 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5131
5132 * compile/compile.c (compile_to_object): Conditionally call
5133 set_verbose. Conditionally call compile or compile_v0.
5134
5135 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
5136
5137 * sparc64-tdep.h: (adi_normalize_address): New export.
5138 * sparc-nat.h: (open_adi_tag_fd): New export.
5139 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5140 * sparc64-linux-tdep.c:
5141 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5142 (sparc64_linux_handle_segmentation_fault): New function.
5143 (sparc64_linux_init_abi): Register
5144 sparc64_linux_handle_segmentation_fault
5145 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5146 (sparc64_addr_bits_remove): New function.
5147 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5148 (MAX_PROC_NAME_SIZE): New macro.
5149 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5150 (sparc64adilist): New variable.
5151 (adi_proc_list): New variable.
5152 (find_adi_info): New function.
5153 (add_adi_info): New function.
5154 (get_adi_info_proc): New function.
5155 (get_adi_info): New function.
5156 (info_adi_command): New function.
5157 (read_maps_entry): New function.
5158 (adi_available): New function.
5159 (adi_normalize_address): New function.
5160 (adi_align_address): New function.
5161 (adi_convert_byte_count): New function.
5162 (adi_tag_fd): New function.
5163 (adi_is_addr_mapped): New function.
5164 (adi_read_versions): New function.
5165 (adi_write_versions): New function.
5166 (adi_print_versions): New function.
5167 (do_examine): New function.
5168 (do_assign): New function.
5169 (adi_examine_command): New function.
5170 (adi_assign_command): New function.
5171 (_initialize_sparc64_adi_tdep): New function.
5172
5173 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5174
5175 * breakpoint.c (breakpoints_info): Rename to ...
5176 (info_breakpoints_command): ... this.
5177 (watchpoints_info): Rename to ...
5178 (info_watchpoints_command): ... this.
5179 (tracepoints_info): Rename to ...
5180 (info_tracepoints_command): ... this.
5181 (_initialize_breakpoint): Adjust.
5182 * dcache.c (dcache_info): Rename to ...
5183 (info_display_command): ... this.
5184 (_initialize_dcache): Adjust.
5185 * frame.h (args_info): Rename to ...
5186 (info_args_command): ... this.
5187 (locals_info): Rename to ...
5188 (info_locals_command): ... this.
5189 * infcmd.c (nofp_registers_info): Rename to ...
5190 (info_registers_command): ... this.
5191 (float_info): Rename to ...
5192 (info_float_command): ... this.
5193 (program_info): Rename to ...
5194 (info_program_command): ... this.
5195 (all_registers_info): Rename to ...
5196 (info_all_registers_command): ... this.
5197 (vector_info): Rename to ...
5198 (info_vector_command): ... this.
5199 (float_info): Rename to ...
5200 (info_float_command): ... this.
5201 (_initialize_infcmd): Adjust.
5202 * inferior.h (term_info): Rename to ...
5203 (info_terminal_command): ... this.
5204 * inflow.c (term_info): Rename to ...
5205 (info_terminal_command): ... this.
5206 (_initialize_inflow): Adjust.
5207 * infrun.c (signals_info): Rename to ...
5208 (info_signals_command): ... this.
5209 (_initialize_infrun): Adjust.
5210 * objc-lang.c (classes_info): Rename to ...
5211 (info_classes_command): ... this.
5212 (selectors_info): Rename to ...
5213 (info_selectors_command): ... this.
5214 (_initialize_objc_language): Adjust.
5215 * printcmd.c (sym_info): Rename to ...
5216 (info_symbol_command): ... this.
5217 (address_info): Rename to ...
5218 (info_address_command): ... this.
5219 (display_info): Rename to ...
5220 (info_display_command): ... this.
5221 (_initialize_printcmd): Adjust.
5222 * reverse.c (bookmarks_info): Rename to ...
5223 (info_breakpoints_command): ... this.
5224 (_initialize_reverse): Adjust.
5225 * ser-go32.c (dos_info): Rename to ...
5226 (info_serial_command): ... this.
5227 (_initialize_ser_dos): Adjust.
5228 * skip.c (skip_info): Rename to ...
5229 (info_skip_command): ... this.
5230 (_initialize_step_skip): Adjust.
5231 * source.c (line_info): Rename to ...
5232 (info_line_command): ... this.
5233 (source_info): Rename to ...
5234 (info_source_command)
5235 * stack.c (frame_info): Rename to ...
5236 (info_frame_command): ... this.
5237 (locals_info): Rename to ...
5238 (info_locals_command): ... this.
5239 (args_info): Rename to ...
5240 (info_args_command): ... this.
5241 (_initialize_stack): Adjust.
5242 * symtab.c (sources_info): Rename to ...
5243 (info_sources_command): ... this.
5244 (variables_info): Rename to ...
5245 (info_variables_command): ... this.
5246 (functions_info): Rename to ...
5247 (info_functions_command): ... this.
5248 (types_info): Rename to ...
5249 (info_types_command): ... this.
5250 (_initialize_symtab): Adjust.
5251 * target.c (target_info): Rename to ...
5252 (info_target_command): ... this.
5253 (initialize_targets): Adjust.
5254 * tracepoint.c (tvariables_info): Rename to ...
5255 (info_tvariables_command): ... this.
5256 (scope_info): Rename to ...
5257 (info_scope_command): ... this.
5258 (trace_dump_actions): Adjust.
5259 (_initialize_tracepoint): Adjust.
5260
5261 2017-08-22 Tom Tromey <tom@tromey.com>
5262
5263 * breakpoint.h (install_breakpoint): Update.
5264 * breakpoint.c (add_solib_catchpoint): Update.
5265 (install_breakpoint): Change argument to a std::unique_ptr.
5266 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5267 (create_breakpoint_sal, create_breakpoint): Update.
5268 (watch_command_1, catch_exec_command_1)
5269 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5270 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5271 Return the breakpoint.
5272 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5273 (new_single_step_breakpoint): Update.
5274 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5275 std::unique_ptr.
5276 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5277 std::unique_ptr.
5278 * break-catch-sig.c (create_signal_catchpoint): Use
5279 std::unique_ptr.
5280 * ada-lang.c (create_ada_exception_catchpoint): Use
5281 std::unique_ptr.
5282
5283 2017-08-22 Tom Tromey <tom@tromey.com>
5284
5285 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5286
5287 2017-08-22 Tom Tromey <tom@tromey.com>
5288
5289 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5290 (lookup_partial_symbol): Update.
5291
5292 2017-08-22 Tom Tromey <tom@tromey.com>
5293
5294 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5295 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5296 (find_and_open_source, symtab_to_fullname): Update.
5297 * psymtab.c (psymtab_to_fullname): Update.
5298
5299 2017-08-22 Tom Tromey <tom@tromey.com>
5300
5301 * exec.c (exec_file_attach): Update.
5302 * linux-thread-db.c (try_thread_db_load): Update.
5303 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5304 * utils.c (gdb_realpath): Change return type.
5305 (gdb_realpath_keepfile): Update.
5306 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5307 (_initialize_utils): Register the new self test.
5308 * source.c (openp): Update.
5309 (find_and_open_source): Update.
5310 * nto-tdep.c (nto_find_and_open_solib): Update.
5311 * main.c (set_gdb_data_directory): Update.
5312 (captured_main_1): Update.
5313 * dwarf2read.c (dwarf2_get_dwz_file): Update
5314 (dw2_map_symbol_filenames): Update.
5315 * auto-load.c (auto_load_safe_path_vec_update): Update.
5316 (filename_is_in_auto_load_safe_path_vec): Change type of
5317 "filename_realp".
5318 (auto_load_objfile_script): Update.
5319 (file_is_auto_load_safe): Update. Use std::string.
5320 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5321
5322 2017-08-22 Tom Tromey <tom@tromey.com>
5323
5324 * utils.c (gdb_realpath_keepfile): Return a
5325 gdb::unique_xmalloc_ptr.
5326 * exec.c (exec_file_attach): Update.
5327 * utils.h (gdb_realpath_keepfile): Return a
5328 gdb::unique_xmalloc_ptr.
5329
5330 2017-08-22 Tom Tromey <tom@tromey.com>
5331
5332 * compile/compile.c (compile_file_command): Use
5333 gdb::unique_xmalloc_ptr, std::string.
5334 * utils.c (gdb_abspath): Change return type.
5335 * source.c (openp): Update.
5336 * objfiles.c (allocate_objfile): Update.
5337 * main.c (set_gdb_data_directory): Update.
5338 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5339
5340 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5341
5342 * cli-cmds.c (list_commands): List actual code around more than
5343 one location.
5344
5345 2017-08-21 John Baldwin <jhb@FreeBSD.org>
5346
5347 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5348
5349 2017-08-21 Pedro Alves <palves@redhat.com>
5350
5351 PR gdb/19487
5352 * c-exp.y (variable production): Handle function aliases.
5353 * minsyms.c (msymbol_is_text): New function.
5354 * minsyms.h (msymbol_is_text): Declare.
5355 * symtab.c (find_function_alias_target): New function.
5356 * symtab.h (find_function_alias_target): Declare.
5357
5358 2017-08-21 Pedro Alves <palves@redhat.com>
5359
5360 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5361 typedefs.
5362 * typeprint.c (whatis_exp): If handling "whatis", and expression
5363 is OP_TYPE, strip one typedef level. Otherwise don't strip
5364 typedefs here.
5365 * valops.c (value_cast): Save "to" type before resolving
5366 stubs/typedefs. Use that type as resulting value's type.
5367
5368 2017-08-18 Tom Tromey <tom@tromey.com>
5369 Pedro Alves <palves@redhat.com>
5370
5371 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5372 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5373 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5374 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5375 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5376 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5377 (linux_get_siginfo_data): Add "thread" argument. Use
5378 scoped_restore.
5379 * linux-nat.c (linux_child_follow_fork)
5380 (check_stopped_by_watchpoint): Use scoped_restore.
5381 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5382 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5383 (restore_inferior_ptid, save_inferior_ptid): Remove.
5384 * btrace.c (btrace_fetch): Use scoped_restore.
5385 * bsd-uthread.c (bsd_uthread_fetch_registers)
5386 (bsd_uthread_store_registers): Use scoped_restore.
5387 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5388 scoped_restore.
5389 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5390 (aix_thread_xfer_partial): Use scoped_restore.
5391 * inferior.h (save_inferior_ptid): Remove.
5392
5393 2017-08-18 Yao Qi <yao.qi@linaro.org>
5394
5395 PR tdep/21818
5396 * arm-tdep.c (gdb_print_insn_arm): Mark
5397 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5398
5399 2017-08-18 Yao Qi <yao.qi@linaro.org>
5400
5401 * NEWS: Mention GDBserver's new option "--selftest".
5402 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5403 * selftest.c: Move it to common/selftest.c.
5404 * selftest.h: Move it to common/selftest.h.
5405 * selftest-arch.c (reset): New function.
5406 (tests_with_arch): Call reset.
5407
5408 2017-08-18 Yao Qi <yao.qi@linaro.org>
5409
5410 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5411 instead of exception_fprintf and printf_filtered.
5412
5413 2017-08-18 Yao Qi <yao.qi@linaro.org>
5414
5415 * selftest.c (register_self_test): Rename it to
5416 selftests::register_test.
5417 (run_self_tests): selftest::run_tests.
5418 * selftest.h: Update declarations.
5419 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5420 selftests::register_test_foreach_arch.
5421 * selftest-arch.h: Update declaration.
5422 * aarch64-tdep.c: Update.
5423 * arm-tdep.c: Likewise.
5424 * disasm-selftests.c: Likewise.
5425 * dwarf2loc.c: Likewise.
5426 * dwarf2-frame.c: Likewise.
5427 * findvar.c: Likewise.
5428 * gdbarch-selftests.c: Likewise.
5429 * maint.c (maintenance_selftest): Likewise.
5430 * regcache.c: Likewise.
5431 * rust-exp.y: Likewise.
5432 * selftest-arch.c: Likewise.
5433 * unittests/environ-selftests.c: Likewise.
5434 * unittests/function-view-selftests.c: Likewise.
5435 * unittests/offset-type-selftests.c: Likewise.
5436 * unittests/optional-selftests.c: Likewise.
5437 * unittests/scoped_restore-selftests.c: Likewise.
5438 * utils-selftests.c: Likewise.
5439
5440 2017-08-17 Pedro Alves <palves@redhat.com>
5441
5442 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5443 local.
5444
5445 2017-08-17 Pedro Alves <palves@redhat.com>
5446
5447 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5448 field.
5449 (reset_die_in_process): Delete, replaced by ...
5450 (process_die_scope): ... this new class. Make it responsible for
5451 freeing cu->line_header too.
5452 (process_die): Use process_die_scope.
5453 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5454 cu->line_header_die_owner. Don't release the line header if it's
5455 owned by the CU.
5456 (setup_type_unit_groups): Make the CU/DIE own the line header.
5457 Don't release the line header here.
5458
5459 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5460
5461 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5462
5463 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5464
5465 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5466 Single-Key mode
5467
5468 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5469
5470 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5471 mode command list.
5472
5473 2017-08-15 Stafford Horne <shorne@gmail.com>
5474
5475 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5476
5477 2017-08-15 Stafford Horne <shorne@gmail.com>
5478
5479 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5480
5481 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5482
5483 PR gdb/21954
5484 * infcmd.c (unset_environment_command): Use the 'clear' method on
5485 the environment instead of resetting it.
5486
5487 2017-08-15 John Baldwin <jhb@FreeBSD.org>
5488
5489 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5490 platforms.
5491
5492 2017-08-14 Tom Tromey <tom@tromey.com>
5493
5494 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5495 (print_binary_chars): Likewise.
5496 (BITS_IN_BYTES): Remove.
5497
5498 2017-08-14 Tom Tromey <tom@tromey.com>
5499
5500 PR gdb/21675
5501 * valprint.c (LOW_ZERO): Change value to 034.
5502 (print_octal_chars): Add static_asserts for octal constants.
5503 * printcmd.c (print_scalar_formatted): Add 'd' case.
5504
5505 2017-08-11 Tom Tromey <tom@tromey.com>
5506
5507 * symfile.c (add_symbol_file_command): Use std::vector.
5508
5509 2017-08-14 Tom Tromey <tom@tromey.com>
5510
5511 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5512 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5513 std::move.
5514 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5515
5516 2017-08-11 Pedro Alves <palves@redhat.com>
5517
5518 * infrun.c (process_event_stop_test): Adjust
5519 function_name_is_marked_for_skip call.
5520 * skip.c: Include <list>.
5521 (skiplist_entry): Make it a class with private fields, and
5522 getters/setters.
5523 (skiplist_entry_chain): Delete.
5524 (skiplist_entries): New.
5525 (skiplist_entry_count): Delete.
5526 (highest_skiplist_entry_num): New.
5527 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5528 (add_skiplist_entry): Delete.
5529 (skiplist_entry::skiplist_entry): New.
5530 (skiplist_entry::add_entry): New.
5531 (skip_file_command, skip_function): Adjust.
5532 (compile_skip_regexp): Delete.
5533 (skip_command): Don't compile regexp here. Adjust to use
5534 skiplist_entry::add_entry.
5535 (skip_info): Adjust to use range-for and getters.
5536 (skip_enable_command, skip_disable_command): Adjust to use
5537 range-for and setters.
5538 (skip_delete_command): Adjust to use std::list.
5539 (add_skiplist_entry): Delete.
5540 (skip_file_p): Delete, refactored as ...
5541 (skiplist_entry::do_skip_file_p): ... this new method.
5542 (skip_gfile_p): Delete, refactored as ...
5543 (skiplist_entry::do_gskip_file_p): ... this new method.
5544 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5545 (skiplist_entry::skip_function_p): ... this new method.
5546 (function_name_is_marked_for_skip): Now returns bool, and takes
5547 the function sal by const reference. Adjust to use range-for and
5548 skiplist_entry methods.
5549 (_initialize_step_skip): Remove references to
5550 skiplist_entry_chain, skiplist_entry_count.
5551 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5552 takes the function sal by const reference.
5553
5554 2017-08-11 Yao Qi <yao.qi@linaro.org>
5555
5556 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5557 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5558 (dwarf2_frame_cache):
5559 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5560 RETURN_MASK_ALL and set *this_case to NULL.
5561 * frame-unwind.h: Update comments.
5562
5563 2017-08-11 Yao Qi <yao.qi@linaro.org>
5564
5565 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5566 (dwarf2_frame_state_copy_regs): Remove.
5567 (dwarf2_frame_state_free_regs): Remove.
5568 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5569 (dwarf2_restore_rule): Call method .alloc_regs instead of
5570 dwarf2_frame_state_alloc_regs.
5571 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5572 constructor. Call std::move.
5573 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5574 (dwarf2_frame_cache): Likewise.
5575
5576 [GDB_SELF_TEST]: Include selftest.h and
5577 selftest-arch.h.
5578 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5579 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5580 execute_cfa_program_test.
5581
5582 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5583 copy ctor, assignment operator, move assignment.
5584 <alloc_regs>: New method.
5585 <swap>: New method.
5586 (struct dwarf2_frame_state): Delete dtor.
5587 (dwarf2_frame_state_alloc_regs): Remove declaration.
5588 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5589 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5590
5591 2017-08-11 Yao Qi <yao.qi@linaro.org>
5592
5593 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5594 (dwarf2_frame_state::dwarf2_frame_state): New.
5595 (dwarf2_frame_state::~dwarf2_frame_state): New.
5596 (dwarf2_fetch_cfa_info): Update.
5597 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5598 rather than a pointer. Update code.
5599 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5600 dtor.
5601 <data_align, code_align, retaddr_column>: Change them to const.
5602 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5603 to bool.
5604
5605 2017-08-11 Yao Qi <yao.qi@linaro.org>
5606
5607 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5608 <loc.exp>: New field.
5609 * dwarf2-frame.c (execute_cfa_program): Update.
5610 (dwarf2_frame_prev_register): Update.
5611
5612 2017-08-10 Pedro Alves <palves@redhat.com>
5613
5614 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5615
5616 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5617
5618 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5619 (fbsd_pending_children): Use std::list.
5620 (fbsd_remember_child): Likewise.
5621 (fbsd_is_child_pending): Likewise.
5622 (fbsd_pending_vfork_done): Use std::forward_list.
5623 (fbsd_add_vfork_done): Likewise.
5624 (fbsd_is_vfork_done_pending): Likewise.
5625 (fbsd_next_vfork_done): Likewise.
5626
5627 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5628
5629 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5630 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5631 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5632 for `mapfilename'.
5633 (fbsd_xfer_partial): Use gdb::byte_vector.
5634 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
5635
5636 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5637
5638 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5639 "filestuff.h".
5640 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5641
5642 2017-08-09 Tom Tromey <tom@tromey.com>
5643
5644 * skip.c (skiplist_entry): New constructor.
5645 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5646 (skiplist_entry::file_is_glob): Now bool.
5647 (skiplist_entry::file, skiplist_entry::function): Now
5648 std::string.
5649 (make_skip_entry): Return a unique_ptr. Use new.
5650 (free_skiplist_entry, free_skiplist_entry_cleanup)
5651 (make_free_skiplist_entry_cleanup): Remove.
5652 (skip_command, skip_disable_command, add_skiplist_entry)
5653 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5654 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5655 (function_name_is_marked_for_skip): Update.
5656 (skip_delete_command): Update. Use delete.
5657
5658 2017-08-09 Jiong Wang <jiong.wang@arm.com>
5659
5660 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5661 (aarch64_linux_core_read_description): New function.
5662 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5663
5664 2017-08-09 Pedro Alves <palves@redhat.com>
5665
5666 * cp-name-parser.y (cp_comp_to_string): Return a
5667 gdb::unique_xmalloc_ptr<char>.
5668 * cp-support.c (replace_typedefs_qualified_name)
5669 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5670 (cp_canonicalize_string_full): Use op= instead of explicit
5671 convertion.
5672 (cp_class_name_from_physname, method_name_from_physname)
5673 (cp_func_name, cp_remove_params): Adjust to use
5674 gdb::unique_xmalloc_ptr<char>.
5675 * cp-support.h (cp_comp_to_string): Return a
5676 gdb::unique_xmalloc_ptr<char>.
5677 * python/py-type.c (typy_lookup_type): Adjust to use
5678 gdb::unique_xmalloc_ptr<char>.
5679
5680 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5681
5682 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5683
5684 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5685 Yao Qi <yao.qi@linaro.org>
5686
5687 * cp-support.c (cp_canonicalize_string_full): Use
5688 gdb::unique_xmalloc_ptr<char>.
5689 (cp_canonicalize_string): Likewise.
5690
5691 2017-08-09 Yao Qi <yao.qi@linaro.org>
5692
5693 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5694 * regformats/i386/amd64-avx-avx512.dat: Remove.
5695 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5696 * regformats/i386/amd64-avx-mpx.dat:Remove.
5697 * regformats/i386/amd64-avx.dat: Remove.
5698 * regformats/i386/amd64-mpx.dat: Remove.
5699 * regformats/i386/i386-avx-avx512.dat: Remove.
5700 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5701 * regformats/i386/i386-avx-mpx.dat: Remove.
5702 * regformats/i386/i386-mmx.dat: Remove.
5703 * regformats/i386/i386-mpx.dat: Remove.
5704
5705 2017-08-09 Yao Qi <yao.qi@linaro.org>
5706
5707 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5708 * amd64-tdep.c: Don't include features/i386/x32*.c.
5709 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5710 functions.
5711 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5712 and i386/x32-avx-avx512.
5713 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5714 and i386/x32.xml.
5715 * features/i386/x32-avx-avx512.c: Removed.
5716 * features/i386/x32-avx-avx512.xml: Removed.
5717 * features/i386/x32-avx.c: Removed.
5718 * features/i386/x32-avx.xml: Removed.
5719 * features/i386/x32.c: Removed.
5720 * features/i386/x32.xml: Removed.
5721 * regformats/i386/x32-avx-avx512.dat: Removed.
5722 * regformats/i386/x32-avx.dat: Removed.
5723 * regformats/i386/x32.dat: Removed.
5724
5725 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5726
5727 PR breakpoints/21886
5728 * mem-break.c (default_memory_insert_breakpoint): Use
5729 `->placed_address' rather than `->reqstd_address' for the
5730 breakpoint location.
5731
5732 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5733
5734 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5735 assertions.
5736
5737 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5738
5739 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5740 a union of `tdep_info', `tdesc_data' and `id'.
5741 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5742 rather than `info.tdep_info'.
5743 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
5744 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5745 * i386-tdep.c (i386_gdbarch_init): Likewise.
5746 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
5747 * mips-tdep.c (mips_gdbarch_init): Likewise.
5748 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5749 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5750 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
5751 `info.tdep_info'.
5752 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
5753 `info.tdep_info'.
5754 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5755 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
5756 `info.tdep_info'.
5757 * spu-tdep.c (spu_gdbarch_init): Likewise.
5758 * gdbarch.h: Regenerate.
5759
5760 2017-08-07 Leszek Swirski <leszeks@google.com>
5761
5762 PR symtab/20899
5763 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
5764
5765 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
5766
5767 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
5768 (gdbsim_open): Rename gdb_argv args object to argv.
5769
5770 2017-08-05 Tom Tromey <tom@tromey.com>
5771
5772 * compile/compile-object-load.c (compile_object_load): Use
5773 gdb::unique_xmalloc_ptr.
5774 * cli/cli-dump.c (scan_filename): Rename from
5775 scan_filename_with_cleanup. Change return type.
5776 (scan_expression): Rename from scan_expression_with_cleanup.
5777 Change return type.
5778 (dump_memory_to_file, dump_value_to_file, restore_command):
5779 Use gdb::unique_xmalloc_ptr. Update.
5780 * cli/cli-cmds.c (find_and_open_script): Use
5781 gdb::unique_xmalloc_ptr.
5782 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
5783 * symmisc.c (maintenance_print_symbols)
5784 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
5785 * symfile.c (symfile_bfd_open, generic_load)
5786 (add_symbol_file_command, remove_symbol_file_command): Use
5787 gdb::unique_xmalloc_ptr.
5788 * source.c (openp): Use gdb::unique_xmalloc_ptr.
5789 * psymtab.c (maintenance_print_psymbols): Use
5790 gdb::unique_xmalloc_ptr.
5791 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
5792 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
5793 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
5794 (reload_shared_libraries_1): Likewise.
5795
5796 2017-08-05 Tom Tromey <tom@tromey.com>
5797
5798 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
5799 (rust_op_vector, rust_set_vector): New typedefs.
5800 (current_parser): New global.
5801 (work_obstack): Change to pointer type. Update all users.
5802 (rust_ast, pstate): Remove globals.
5803 (struct rust_parser): New.
5804 (%union) <params, field_inits>: Change type.
5805 (start, tuple_expr, unit_expr, struct_expr_list, literal)
5806 (field_expr, expr_list, maybe_expr_list, type_list): Update.
5807 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
5808 (convert_params_to_types, convert_params_to_expression): Change
5809 type of "params".
5810 (ast_string): Change type of "fields".
5811 (rust_parse): Make a rust_parser. Remove cleanups.
5812 (rust_lex_tests): Make and install an auto_obstack.
5813
5814 2017-08-04 Yao Qi <yao.qi@linaro.org>
5815
5816 * configure.srv (ipa_x32_linux_regobj): New.
5817 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
5818 instead of X86_TDESC_AVX512.
5819 (initialize_low_tracepoint): Call
5820 init_registers_x32_avx_avx512_linux.
5821
5822 2017-08-04 Yao Qi <yao.qi@linaro.org>
5823
5824 * utils.h (gdb_argv): Add namespace std for nullptr_t.
5825
5826 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
5827
5828 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
5829
5830 2017-08-03 Tom Tromey <tom@tromey.com>
5831
5832 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
5833 Remove.
5834 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
5835
5836 2017-08-03 Tom Tromey <tom@tromey.com>
5837
5838 * python/py-param.c (compute_enum_values): Use gdb_argv.
5839
5840 2017-08-03 Tom Tromey <tom@tromey.com>
5841
5842 * utils.h (struct gdb_argv_deleter): New.
5843 (gdb_argv): New class.
5844 * utils.c (gdb_argv::reset): New method.
5845 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
5846 * tracefile.c (tsave_command): Use gdb_argv.
5847 * top.c (new_ui_command): Use gdb_argv.
5848 * symmisc.c (maintenance_print_symbols)
5849 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
5850 * symfile.c (symbol_file_command, generic_load)
5851 (remove_symbol_file_command): Use gdb_argv.
5852 * stack.c (backtrace_command): Use gdb_argv.
5853 * source.c (add_path, show_substitute_path_command)
5854 (unset_substitute_path_command, set_substitute_path_command):
5855 Use gdb_argv.
5856 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
5857 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
5858 * remote.c (extended_remote_run, remote_put_command)
5859 (remote_get_command, remote_delete_command): Use gdb_argv.
5860 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
5861 (gdbsim_open): Use gdb_argv.
5862 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
5863 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
5864 * procfs.c (procfs_info_proc): Use gdb_argv.
5865 * interps.c (interpreter_exec_cmd): Use gdb_argv.
5866 * infrun.c (handle_command): Use gdb_argv.
5867 * inferior.c (add_inferior_command, clone_inferior_command):
5868 Use gdb_argv.
5869 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
5870 * exec.c (exec_file_command): Use gdb_argv.
5871 * cli/cli-cmds.c (alias_command): Use gdb_argv.
5872 * compile/compile.c (build_argc_argv): Use gdb_argv.
5873
5874 2017-08-03 Tom Tromey <tom@tromey.com>
5875
5876 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
5877
5878 2017-08-03 Tom Tromey <tom@tromey.com>
5879
5880 * python/python.c (compute_python_string): Return std::string.
5881 (gdbpy_eval_from_control_command): Update.
5882 (do_start_initialization): Use std::string.
5883 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
5884 xstrprintf.
5885 * python/py-breakpoint.c (local_setattro): Use string_printf, not
5886 xstrprintf.
5887
5888 2017-08-03 Tom Tromey <tom@tromey.com>
5889
5890 * top.h (do_restore_instream_cleanup): Remove.
5891 * top.c (do_restore_instream_cleanup): Remove.
5892 (read_command_file): Use scoped_restore.
5893 * cli/cli-script.c (execute_user_command): Use scoped_restore.
5894
5895 2017-08-03 Tom Tromey <tom@tromey.com>
5896
5897 * cli/cli-script.c (execute_user_command)
5898 (execute_control_command): Use scoped_restore.
5899
5900 2017-08-03 Tom Tromey <tom@tromey.com>
5901
5902 * cli/cli-script.c (do_restore_user_call_depth): Remove.
5903 (execute_user_command): Remove user_call_depth; use
5904 user_args_stack's size instead.
5905
5906 2017-08-03 Tom Tromey <tom@tromey.com>
5907
5908 * top.h (in_user_command): Remove.
5909 * top.c (in_user_command): Remove.
5910 * cli/cli-script.c (do_restore_user_call_depth)
5911 (execute_user_command): Update.
5912
5913 2017-08-03 Tom Tromey <tom@tromey.com>
5914
5915 * valops.c (search_struct_method): Use gdb::byte_vector.
5916 * valarith.c (value_concat): Use std::vector.
5917 * target.c (memory_xfer_partial): Use gdb::byte_vector.
5918 (simple_search_memory): Likewise.
5919 * printcmd.c (find_string_backward): Use gdb::byte_vector.
5920 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
5921 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
5922 * elfread.c (elf_rel_plt_read): Use std::string.
5923 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
5924 * cli/cli-dump.c (restore_section_callback): Use
5925 gdb::byte_vector.
5926
5927 2017-08-03 Tom Tromey <tom@tromey.com>
5928
5929 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
5930
5931 2017-08-03 Tom Tromey <tom@tromey.com>
5932
5933 * tui/tui-regs.c (tui_restore_gdbout): Remove.
5934 (tui_register_format): Use scoped_restore.
5935
5936 2017-08-03 Tom Tromey <tom@tromey.com>
5937
5938 * reverse.c (exec_direction_default): Remove.
5939 (exec_reverse_once): Use scoped_restore.
5940 * remote.c (restore_remote_timeout): Remove.
5941 (remote_flash_erase, remote_flash_write, remote_flash_done)
5942 (readchar, remote_serial_write): Use scoped_restore.
5943 * cli/cli-script.c (struct source_cleanup_lines_args)
5944 (source_cleanup_lines): Remove.
5945 (script_from_file): Use scoped_restore.
5946 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
5947 (source_command): Use scoped_restore.
5948
5949 2017-08-03 Tom Tromey <tom@tromey.com>
5950
5951 * utils.h (make_cleanup_free_so): Remove.
5952 * utils.c (do_free_so, make_cleanup_free_so): Remove.
5953 * solist.h (struct so_deleter): New.
5954 (so_list_up): New typedef.
5955 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
5956
5957 2017-08-03 Tom Tromey <tom@tromey.com>
5958
5959 * utils.h (make_cleanup_restore_current_language): Remove.
5960 * utils.c (do_restore_current_language)
5961 (make_cleanup_restore_current_language): Remove.
5962 * parse.c (parse_exp_in_context_1)
5963 (parse_expression_with_language): Use
5964 scoped_restore_current_language.
5965 * mi/mi-main.c (mi_cmd_execute): Use
5966 scoped_restore_current_language.
5967 * language.h (scoped_restore_current_language): New class.
5968
5969 2017-08-03 Tom Tromey <tom@tromey.com>
5970
5971 * compile/compile.c (cleanup_unlink_file): Remove.
5972 (compile_to_object): Use gdb::unlinker.
5973 (eval_compile_command): Likewise.
5974
5975 2017-08-03 Tom Tromey <tom@tromey.com>
5976
5977 * utils.h (make_cleanup_fclose): Remove.
5978 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
5979
5980 2017-08-03 Tom Tromey <tom@tromey.com>
5981
5982 * top.c (open_terminal_stream): Return gdb_file_up.
5983 (new_ui_command): Update.
5984
5985 2017-08-03 Tom Tromey <tom@tromey.com>
5986
5987 * source.c (print_source_lines_base, forward_search_command)
5988 (reverse_search_command): Use gdb_file_up.
5989
5990 2017-08-03 Tom Tromey <tom@tromey.com>
5991
5992 * fbsd-nat.c (fbsd_find_memory_regions): Update.
5993
5994 2017-08-03 Tom Tromey <tom@tromey.com>
5995
5996 * cli/cli-cmds.c (find_and_open_script): Change return type.
5997 Remove "streamp" and "full_path" parameters.
5998 (source_script_with_search): Update.
5999 * auto-load.c (source_script_file): Update.
6000 * cli/cli-cmds.h (find_and_open_script): Change type.
6001 (open_script): New struct.
6002
6003 2017-08-03 Tom Tromey <tom@tromey.com>
6004
6005 * xml-support.c (xml_fetch_content_from_file): Update.
6006 * ui-file.c (stdio_file::open): Update.
6007 * tracefile-tfile.c (tfile_start): Update.
6008 * remote.c (remote_file_put, remote_file_get): Update.
6009 * nat/linux-procfs.c (linux_proc_get_int)
6010 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6011 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6012 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6013 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6014 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6015 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6016 * linux-nat.c (linux_proc_pending_signals): Update.
6017 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6018 (file_closer): Remove.
6019 * compile/compile.c (compile_to_object): Update.
6020 * common/filestuff.h (struct gdb_file_deleter): New.
6021 (gdb_file_up): New typedef.
6022 (gdb_fopen_cloexec): Change return type.
6023 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6024 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6025 (dump_binary_file, restore_binary_file): Update.
6026 * auto-load.c (auto_load_objfile_script_1): Update.
6027
6028 2017-08-03 Tom Tromey <tom@tromey.com>
6029
6030 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6031 (info_static_tracepoint_markers_command): Likewise.
6032 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6033 * skip.c (skip_info): Use ui_out_emit_table.
6034 * progspace.c (print_program_space): Use ui_out_emit_table.
6035 * osdata.c (info_osdata): Use ui_out_emit_table.
6036 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6037 ui_out_emit_table.
6038 * linux-thread-db.c (info_auto_load_libthread_db): Use
6039 ui_out_emit_table.
6040 * inferior.c (print_inferior): Use ui_out_emit_table.
6041 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6042 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6043 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6044 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6045 * ui-out.h (class ui_out_emit_table): New.
6046
6047 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6048
6049 * mips-tdep.c (mips_fpu_type_str): New function.
6050 (mips_dump_tdep): Call it.
6051
6052 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6053
6054 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6055 `->mips_fpu_type'.
6056
6057 2017-07-31 Xavier Roirand <roirand@adacore.com>
6058
6059 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6060
6061 2017-07-27 Xavier Roirand <roirand@adacore.com>
6062
6063 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6064
6065 2017-07-26 Yao Qi <yao.qi@linaro.org>
6066
6067 * cli/cli-cmds.c (maintenancechecklist): New variable.
6068 * gdbcmd.h (maintenancechecklist): Declare it.
6069 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6070 Call i386_linux_read_description with different masks.
6071 * maint.c (maintenance_check_command): New function.
6072 (_initialize_maint_cmds): Call add_prefix_cmd.
6073 * target-descriptions.c (tdesc_reg): override operator != and ==.
6074 (tdesc_type): Likewise.
6075 (tdesc_feature): Likewise.
6076 (target_desc): Likewise.
6077 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6078 (maintenance_check_xml_descriptions): New function.
6079 (_initialize_target_descriptions) Add command "xml-descriptions".
6080 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6081
6082 2017-07-26 Yao Qi <yao.qi@linaro.org>
6083
6084 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6085 Include features/i386/32bit-*.c.
6086 (i386_linux_read_description): Generate target description if it
6087 doesn't exist.
6088 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6089 functions.
6090 * features/i386/32bit-linux.c: Re-generated.
6091 * features/i386/32bit-sse.c: Likewise.
6092 * target-descriptions.c (print_c_feature::visit): Print code to
6093 set register number if needed.
6094 (print_c_feature) <m_next_regnum>: New field.
6095
6096 2017-07-26 Yao Qi <yao.qi@linaro.org>
6097
6098 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6099 (FEATURE_XMLFILES): New.
6100 (FEATURE_CFILES): New.
6101 New rules.
6102 (clean-cfiles): Remove generated c files.
6103 * features/i386/32bit-avx.c: Generated.
6104 * features/i386/32bit-avx512.c: Generated.
6105 * features/i386/32bit-core.c: Generated.
6106 * features/i386/32bit-linux.c: Generated.
6107 * features/i386/32bit-mpx.c: Generated.
6108 * features/i386/32bit-pkeys.c: Generated.
6109 * features/i386/32bit-sse.c: Generated.
6110 * target-descriptions.c: Include algorithm.
6111 (tdesc_element_visitor): Add method visit_end.
6112 (print_c_tdesc): Implement visit_end.
6113 (print_c_tdesc:: m_filename_after_features): Move it to
6114 protected.
6115 (print_c_feature): New class.
6116 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6117 name starts with "i386/32bit-".
6118
6119 2017-07-26 Yao Qi <yao.qi@linaro.org>
6120
6121 * target-descriptions.c (tdesc_element_visitor): New class.
6122 (tdesc_element): New class.
6123 (tdesc_reg): Inherit from tdesc_element.
6124 (tdesc_reg::accept): New function.
6125 (tdesc_type): Inherit from tdesc_element.
6126 (tdesc_type::accept): New function.
6127 (tdesc_feature): Inherit from tdesc_element.
6128 (tdesc_feature::accept): New function.
6129 (target_desc): Inherit from tdesc_element.
6130 (target_desc::target_desc): New.
6131 (target_desc::~target_desc): New.
6132 (target_desc::accept): New.
6133 (allocate_target_description): Use new.
6134 (free_target_description): Use delete.
6135 (print_c_tdesc): New class.
6136 (maint_print_c_tdesc_cmd): Adjust.
6137
6138 * features/aarch64.c: Re-generated.
6139 * features/arc-arcompact.c: Re-generated.
6140 * features/arc-v2.c: Re-generated.
6141 * features/arm/arm-with-iwmmxt.c: Re-generated.
6142 * features/arm/arm-with-m.c: Re-generated.
6143 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6144 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6145 * features/arm/arm-with-neon.c: Re-generated.
6146 * features/arm/arm-with-vfpv2.c: Re-generated.
6147 * features/arm/arm-with-vfpv3.c: Re-generated.
6148 * features/i386/amd64-avx-avx512.c: Re-generated.
6149 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6150 * features/i386/amd64-avx.c: Re-generated.
6151 * features/i386/amd64-avx-linux.c: Re-generated.
6152 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6153 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6154 * features/i386/amd64-avx-mpx.c: Re-generated.
6155 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6156 * features/i386/amd64.c: Re-generated.
6157 * features/i386/amd64-linux.c: Re-generated.
6158 * features/i386/amd64-mpx.c: Re-generated.
6159 * features/i386/amd64-mpx-linux.c: Re-generated.
6160 * features/i386/i386-avx-avx512.c: Re-generated.
6161 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6162 * features/i386/i386-avx.c: Re-generated.
6163 * features/i386/i386-avx-linux.c: Re-generated.
6164 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6165 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6166 * features/i386/i386-avx-mpx.c: Re-generated.
6167 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6168 * features/i386/i386.c: Re-generated.
6169 * features/i386/i386-linux.c: Re-generated.
6170 * features/i386/i386-mmx.c: Re-generated.
6171 * features/i386/i386-mmx-linux.c: Re-generated.
6172 * features/i386/i386-mpx.c: Re-generated.
6173 * features/i386/i386-mpx-linux.c: Re-generated.
6174 * features/i386/x32-avx-avx512.c: Re-generated.
6175 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6176 * features/i386/x32-avx.c: Re-generated.
6177 * features/i386/x32-avx-linux.c: Re-generated.
6178 * features/i386/x32.c: Re-generated.
6179 * features/i386/x32-linux.c: Re-generated.
6180 * features/microblaze.c: Re-generated.
6181 * features/microblaze-with-stack-protect.c: Re-generated.
6182 * features/mips64-dsp-linux.c: Re-generated.
6183 * features/mips64-linux.c: Re-generated.
6184 * features/mips-dsp-linux.c: Re-generated.
6185 * features/mips-linux.c: Re-generated.
6186 * features/nds32.c: Re-generated.
6187 * features/nios2.c: Re-generated.
6188 * features/nios2-linux.c: Re-generated.
6189 * features/rs6000/powerpc-32.c: Re-generated.
6190 * features/rs6000/powerpc-32l.c: Re-generated.
6191 * features/rs6000/powerpc-403.c: Re-generated.
6192 * features/rs6000/powerpc-403gc.c : Re-generated.
6193 * features/rs6000/powerpc-405.c: Re-generated.
6194 * features/rs6000/powerpc-505.c: Re-generated.
6195 * features/rs6000/powerpc-601.c: Re-generated.
6196 * features/rs6000/powerpc-602.c: Re-generated.
6197 * features/rs6000/powerpc-603.c: Re-generated.
6198 * features/rs6000/powerpc-604.c: Re-generated.
6199 * features/rs6000/powerpc-64.c: Re-generated.
6200 * features/rs6000/powerpc-64l.c: Re-generated.
6201 * features/rs6000/powerpc-7400.c: Re-generated.
6202 * features/rs6000/powerpc-750.c: Re-generated.
6203 * features/rs6000/powerpc-860.c: Re-generated.
6204 * features/rs6000/powerpc-altivec32.c: Re-generated.
6205 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6206 * features/rs6000/powerpc-altivec64.c: Re-generated.
6207 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6208 * features/rs6000/powerpc-cell32l.c: Re-generated.
6209 * features/rs6000/powerpc-cell64l.c: Re-generated.
6210 * features/rs6000/powerpc-e500.c: Re-generated.
6211 * features/rs6000/powerpc-e500l.c: Re-generated.
6212 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6213 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6214 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6215 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6216 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6217 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6218 * features/rs6000/powerpc-vsx32.c: Re-generated.
6219 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6220 * features/rs6000/powerpc-vsx64.c: Re-generated.
6221 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6222 * features/rs6000/rs6000.c: Re-generated.
6223 * features/s390-linux32.c: Re-generated.
6224 * features/s390-linux32v1.c: Re-generated.
6225 * features/s390-linux32v2.c: Re-generated.
6226 * features/s390-linux64.c: Re-generated.
6227 * features/s390-linux64v1.c: Re-generated.
6228 * features/s390-linux64v2.c: Re-generated.
6229 * features/s390-te-linux64.c: Re-generated.
6230 * features/s390-tevx-linux64.c: Re-generated.
6231 * features/s390-vx-linux64.c: Re-generated.
6232 * features/s390x-linux64.c: Re-generated.
6233 * features/s390x-linux64v1.c: Re-generated.
6234 * features/s390x-linux64v2.c: Re-generated.
6235 * features/s390x-te-linux64.c: Re-generated.
6236 * features/s390x-tevx-linux64.c: Re-generated.
6237 * features/s390x-vx-linux64.c: Re-generated.
6238 * features/sparc/sparc32-solaris.c: Re-generated.
6239 * features/sparc/sparc64-solaris.c: Re-generated.
6240 * features/tic6x-c62x.c: Re-generated.
6241 * features/tic6x-c62x-linux.c: Re-generated.
6242 * features/tic6x-c64x.c: Re-generated.
6243 * features/tic6x-c64x-linux.c: Re-generated.
6244 * features/tic6x-c64xp.c: Re-generated.
6245 * features/tic6x-c64xp-linux.c: Re-generated.
6246
6247 2017-07-26 Yao Qi <yao.qi@linaro.org>
6248
6249 * i386-linux-tdep.c (i386_linux_read_description): New function.
6250 (i386_linux_core_read_description): Call
6251 i386_linux_read_description.
6252 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6253 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6254 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6255 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6256 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6257 * x86-linux-nat.c (x86_linux_read_description): Call
6258 i386_linux_read_description.
6259
6260 2017-07-26 Yao Qi <yao.qi@linaro.org>
6261
6262 * NEWS: Mention it.
6263 * features/Makefile (%.c: %.xml): Pass the xml file name to
6264 command "maint print c-tdesc".
6265 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6266 name from 'arg'.
6267
6268 2017-07-26 Yao Qi <yao.qi@linaro.org>
6269
6270 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6271 in-class initialization.
6272 (tdesc_create_feature): Call new instead of XCNEW.
6273 (free_target_description): Ue delete.
6274
6275 2017-07-25 John Baldwin <jhb@FreeBSD.org>
6276
6277 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6278
6279 2017-07-25 Yao Qi <yao.qi@linaro.org>
6280
6281 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6282 constant.
6283 (amd64_x32_init_abi): Likewise.
6284 * amd64-tdep.h (amd64_init_abi): Update declaration.
6285 (amd64_x32_init_abi): Likewise.
6286
6287 2017-07-25 Yao Qi <yao.qi@linaro.org>
6288
6289 PR tdep/21717
6290 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6291 condition for FPSCR.
6292 (arm_linux_store_inferior_registers): Likewise.
6293
6294 2017-07-22 Tom Tromey <tom@tromey.com>
6295
6296 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6297 <syscalls_counts>: Now a std::vector.
6298 (get_catch_syscall_inferior_data): Use "new".
6299 (catch_syscall_inferior_data_cleanup): Use "delete".
6300 (insert_catch_syscall, remove_catch_syscall)
6301 (clear_syscall_counts): Update.
6302
6303 2017-07-22 Tom Tromey <tom@tromey.com>
6304
6305 * break-catch-syscall.c (syscall_catchpoint)
6306 <syscalls_to_be_caught>: Now a std::vector<int>
6307 (~syscall_catchpoint): Remove.
6308 (insert_catch_syscall, remove_catch_syscall)
6309 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6310 (print_mention_catch_syscall, print_recreate_catch_syscall):
6311 Update.
6312 (create_syscall_event_catchpoint): Change type of "filter"
6313 parameter.
6314 (catch_syscall_split_args): Return a std::vector.
6315 (catch_syscall_command_1, catching_syscall_number_1): Update.
6316
6317 2017-07-22 Tom Tromey <tom@tromey.com>
6318
6319 * break-catch-throw.c (struct exception_catchpoint)
6320 <exception_rx>: Now a std::string.
6321 (~exception_catchpoint): Remove.
6322 (print_one_detail_exception_catchpoint): Update.
6323 (handle_gnu_v3_exceptions): Change type of except_rx.
6324 (extract_exception_regexp): Return a std::string.
6325 (catch_exception_command_1): Update.
6326
6327 2017-07-22 Tom Tromey <tom@tromey.com>
6328
6329 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6330 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6331 std::vector.
6332 <catch_all>: Now a bool.
6333 (~signal_catchpoint): Remove.
6334 (signal_catchpoint_insert_location)
6335 (signal_catchpoint_remove_location)
6336 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6337 (signal_catchpoint_print_mention)
6338 (signal_catchpoint_print_recreate)
6339 (signal_catchpoint_explains_signal): Update.
6340 (create_signal_catchpoint): Change type of "filter" and
6341 "catch_all".
6342 (catch_signal_split_args): Return a std::vector. Change type of
6343 "catch_all".
6344 (catch_signal_command): Update.
6345
6346 2017-07-20 Pedro Alves <palves@redhat.com>
6347
6348 * ada-lang.c (ada_language_defn): Make extern.
6349 (_initialize_ada_language): Remove add_language call.
6350 * c-lang.c (c_language_defn, cplus_language_defn)
6351 (asm_language_defn, minimal_language_defn): Make extern.
6352 (_initialize_c_language): Delete.
6353 * completer.c (compare_cstrings): Delete, moved to utils.h.
6354 * d-lang.c (d_language_defn): Make extern.
6355 (_initialize_d_language): Remove add_language calls.
6356 * defs.h (enum language): Add comment.
6357 * f-lang.c (f_language_defn): Make extern.
6358 (_initialize_f_language): Remove add_language call.
6359 * go-lang.c (go_language_defn): Make extern.
6360 (_initialize_go_language): Remove add_language call.
6361 * language.c: Include <algorithm>.
6362 (languages): Redefine as const array.
6363 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6364 (set_language_command): Handle "local". Use for-range loop.
6365 (set_language): Remove loop.
6366 (language_enum): Rewrite.
6367 (language_def, language_str): Remove loops.
6368 (add_language): Delete.
6369 (add_set_language_command): New, based on add_languages.
6370 (skip_language_trampoline): Adjust.
6371 (local_language_defn): Delete.
6372 (language_gdbarch_post_init): Adjust.
6373 (_initialize_language): Remove add_language calls. Call
6374 add_set_language_command.
6375 * language.h (add_language): Delete.
6376 (auto_language_defn)
6377 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6378 (asm_language_defn, c_language_defn, cplus_language_defn)
6379 (d_language_defn, f_language_defn, go_language_defn)
6380 (m2_language_defn, objc_language_defn, opencl_language_defn)
6381 (pascal_language_defn, rust_language_defn): Declare.
6382 * m2-lang.c (m2_language_defn): Make extern.
6383 (_initialize_m2_language): Remove add_language call.
6384 * objc-lang.c (objc_language_defn): Make extern.
6385 (_initialize_objc_language): Remove add_language call.
6386 * opencl-lang.c (opencl_language_defn): Make extern.
6387 (_initialize_opencl_language): Remove add_language call.
6388 * p-lang.c (pascal_language_defn): Make extern.
6389 (_initialize_pascal_language): Delete.
6390 * rust-lang.c (rust_language_defn): Make extern.
6391 (_initialize_rust_language): Delete.
6392 * utils.h (compare_cstrings): New static inline function.
6393
6394 2017-07-20 Pedro Alves <palves@redhat.com>
6395
6396 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6397 (get_var_value): Constify parameters.
6398 (get_int_var_value): Change prototype.
6399 (to_fixed_range_type): Adjust.
6400 * ada-lang.h (get_int_var_value): Change prototype.
6401
6402 2017-07-20 Pedro Alves <palves@redhat.com>
6403
6404 * dwarf2read.c (dw2_lookup_symbol): Use
6405 SYMBOL_MATCHES_SEARCH_NAME.
6406 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6407
6408 2017-07-20 Pedro Alves <palves@redhat.com>
6409
6410 * block.c (block_iter_name_step, block_iter_name_first)
6411 (block_iter_name_next): Delete.
6412 (block_lookup_symbol_primary): Adjust to use
6413 dict_iter_match_first/dict_iter_match_next.
6414 * block.h (block_iter_name_first, block_iter_name_next): Delete
6415 declarations.
6416 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6417 dict_iter_match_first/dict_iter_match_next.
6418
6419 2017-07-20 Pedro Alves <palves@redhat.com>
6420
6421 * cp-support.c (cp_find_first_component_aux): Add missing case for
6422 end of string.
6423
6424 2017-07-18 David Blaikie <dblaikie@gmail.com>
6425
6426 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6427 of dwo_cu's dwo_file.
6428
6429 2017-07-18 Yao Qi <yao.qi@linaro.org>
6430
6431 * remote.c (store_registers_using_G): Remove one line comment.
6432
6433 2017-07-18 Yao Qi <yao.qi@linaro.org>
6434
6435 * regcache.c (regcache_cpy): Simplify it.
6436 (regcache::cpy_no_passthrough): Remove it.
6437 * regcache.h (cpy_no_passthrough): Remove it.
6438 (regcache_dup, regcache_cpy): Update comments.
6439
6440 2017-07-18 Pedro Alves <palves@redhat.com>
6441
6442 * remote-sim.c (sim_command_completer): Adjust to work with a
6443 completion_tracker instead of a VEC.
6444
6445 2017-07-17 Pedro Alves <palves@redhat.com>
6446
6447 * completer.c (complete_source_filenames): New function.
6448 (complete_address_and_linespec_locations): New function.
6449 (location_completer): Use complete_address_and_linespec_locations.
6450 (completion_tracker::build_completion_result): Honor the tracker's
6451 request to suppress append.
6452 * completer.h (completion_tracker::suppress_append_ws)
6453 (completion_tracker::set_suppress_append_ws): New methods.
6454 (completion_tracker::m_suppress_append_ws): New field.
6455 (complete_source_filenames): New declaration.
6456 * linespec.c (linespec_complete_what): New.
6457 (struct ls_parser) <complete_what, completion_word,
6458 completion_quote_char, completion_quote_end, completion_tracker>:
6459 New fields.
6460 (string_find_incomplete_keyword_at_end): New.
6461 (linespec_lexer_lex_string): Record quote char. If in completion
6462 mode, don't throw.
6463 (linespec_lexer_consume_token): Advance the completion word point.
6464 (linespec_lexer_peek_token): Save/restore completion info.
6465 (save_stream_and_consume_token): New.
6466 (set_completion_after_number): New.
6467 (linespec_parse_basic): Set what to complete next depending on
6468 token. Handle function and label completions specially.
6469 (parse_linespec): Disable objc shortcut in completion mode. Set
6470 what to complete next depending on token type. Skip keyword if in
6471 completion mode.
6472 (complete_linespec_component, linespec_complete): New.
6473 * linespec.h (linespec_complete): Declare.
6474
6475 2017-07-17 Pedro Alves <palves@redhat.com>
6476
6477 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6478 Handle 'operator<' / 'operator<<'.
6479
6480 2017-07-17 Pedro Alves <palves@redhat.com>
6481
6482 * completer.c (collect_explicit_location_matches): Handle
6483 MATCH_LABEL.
6484 (convert_explicit_location_to_linespec): New, factored out from
6485 ...
6486 (convert_explicit_location_to_sals): ... this.
6487 (complete_label): New.
6488 (linespec_complete_label, find_label_symbols_in_block): New.
6489 (find_label_symbols): Add completion_mode parameter and adjust to
6490 call find_label_symbols_in_block.
6491 * linespec.h (linespec_complete_label): Declare.
6492
6493 2017-07-17 Pedro Alves <palves@redhat.com>
6494
6495 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6496 complete_symbol_mode parameter.
6497 * cli/cli-cmds.c (complete_command): Get the completion result out
6498 of the handle_brkchars tracker if used a custom word point.
6499 * completer.c: Include "linespec.h".
6500 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6501 (advance_to_expression_complete_word_point): New.
6502 (completion_tracker::completes_to_completion_word): New.
6503 (complete_files_symbols): Pass down
6504 complete_symbol_mode::EXPRESSION.
6505 (explicit_options, probe_options): New.
6506 (collect_explicit_location_matches): Complete on the
6507 explictit_loc->foo instead of word. Use
6508 linespec_complete_function. Handle MATCH_LINE. Handle offering
6509 keyword and options completions.
6510 (backup_text_ptr): Delete.
6511 (skip_keyword): New.
6512 (complete_explicit_location): Remove 'word' parameter. Add
6513 language, quoted_arg_start and quoted_arg_end parameters.
6514 Rewrite, parsing left to right.
6515 (location_completer): Rewrite.
6516 (location_completer_handle_brkchars): New function.
6517 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6518 (enum complete_line_internal_reason): Adjust comments.
6519 (completion_tracker::discard_completions): New.
6520 (completer_handle_brkchars_func_for_completer): Handle
6521 location_completer.
6522 (gdb_custom_word_point_brkchars)
6523 (gdb_org_rl_basic_quote_characters): New.
6524 (gdb_completion_word_break_characters_throw)
6525 (completion_find_completion_word): Handle trackers that use a
6526 custom word point.
6527 (completion_tracker::advance_custom_word_point_by): New.
6528 (completion_tracker::build_completion_result): Don't rely on
6529 readline appending the quote char.
6530 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6531 use a custom word point.
6532 (gdb_rl_attempted_completion_function): Restore
6533 rl_basic_quote_characters.
6534 * completer.h (class completion_tracker): Extend intro comment.
6535 (completion_tracker::set_quote_char)
6536 (completion_tracker::quote_char)
6537 (completion_tracker::set_use_custom_word_point)
6538 (completion_tracker::use_custom_word_point)
6539 (completion_tracker::custom_word_point)
6540 (completion_tracker::set_custom_word_point)
6541 (completion_tracker::advance_custom_word_point_by)
6542 (completion_tracker::completes_to_completion_word)
6543 (completion_tracker::discard_completions): New methods.
6544 (completion_tracker::m_quote_char)
6545 (completion_tracker::m_use_custom_word_point)
6546 (completion_tracker::m_custom_word_point): New fields.
6547 (advance_to_expression_complete_word_point): Declare.
6548 * f-lang.c (f_collect_symbol_completion_matches): Add
6549 complete_symbol_mode parameter.
6550 * language.h (struct language_defn)
6551 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6552 parameter.
6553 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6554 (linespec_complete_function): New function.
6555 (linespec_lexer_lex_keyword): Adjust.
6556 * linespec.h (linespec_keywords, linespec_complete_function): New
6557 declarations.
6558 * location.c (find_end_quote): New function.
6559 (explicit_location_lex_one): Add explicit_completion_info
6560 parameter. Save quoting info. Don't throw if being called for
6561 completion. Don't handle Ada operators here.
6562 (is_cp_operator, skip_op_false_positives, first_of)
6563 (explicit_location_lex_one_function): New function.
6564 (string_to_explicit_location): Replace 'dont_throw' parameter with
6565 an explicit_completion_info pointer parameter. Handle it. Don't
6566 use explicit_location_lex_one to lex function names. Use
6567 explicit_location_lex_one_function instead.
6568 * location.h (struct explicit_completion_info): New.
6569 (string_to_explicit_location): Replace 'dont_throw' parameter with
6570 an explicit_completion_info pointer parameter.
6571 * symtab.c (default_collect_symbol_completion_matches_break_on):
6572 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6573 (default_collect_symbol_completion_matches)
6574 (collect_symbol_completion_matches): Add complete_symbol_mode
6575 parameter.
6576 (collect_symbol_completion_matches_type): Pass down
6577 complete_symbol_mode::EXPRESSION.
6578 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6579 parameter. Handle LINESPEC mode.
6580 * symtab.h (complete_symbol_mode): New.
6581 (default_collect_symbol_completion_matches_break_on)
6582 (default_collect_symbol_completion_matches)
6583 (collect_symbol_completion_matches)
6584 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6585 parameter.
6586
6587 2017-07-17 Pedro Alves <palves@redhat.com>
6588
6589 * utils.c (enum class strncmp_iw_mode): New.
6590 (strcmp_iw): Rename to ...
6591 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6592 parameters. Handle them.
6593 (strncmp_iw): New.
6594 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6595 * utils.h (strncmp_iw): Declare.
6596 (strcmp_iw): Move describing comments here.
6597
6598 2017-07-17 Pedro Alves <palves@redhat.com>
6599
6600 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6601 CP_OPERATOR_STR.
6602 * c-typeprint.c (is_type_conversion_operator): Use
6603 CP_OPERATOR_STR.
6604 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6605 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6606 CP_OPERATOR_LEN.
6607 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6608 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6609 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6610 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6611 CP_OPERATOR_STR.
6612 * location.c: Include "cp-support.h".
6613 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6614 CP_OPERATOR_STR.
6615 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6616 CP_OPERATOR_LEN.
6617
6618 2017-07-17 Pedro Alves <palves@redhat.com>
6619
6620 * cli/cli-cmds.c (complete_command): Use a completion tracker
6621 along with completion_find_completion_word for handle_brkchars
6622 phase.
6623 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6624 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6625 (struct gdb_rl_completion_word_info): New.
6626 (gdb_rl_find_completion_word): New.
6627 (completion_find_completion_word): New.
6628 * completer.h (completion_find_completion_word): Declare.
6629
6630 2017-07-17 Pedro Alves <palves@redhat.com>
6631
6632 * ada-lang.c (symbol_completion_match): Adjust comments.
6633 (symbol_completion_add): Replace vector parameter with
6634 completion_tracker parameter. Use it.
6635 (ada_make_symbol_completion_list): Rename to...
6636 (ada_collect_symbol_completion_matches): ... this. Add
6637 completion_tracker parameter and use it.
6638 (ada_language_defn): Adjust.
6639 * break-catch-syscall.c (catch_syscall_completer): Adjust
6640 prototype and work with completion_tracker instead of VEC.
6641 * breakpoint.c (condition_completer): Adjust prototype and work
6642 with completion_tracker instead of VEC.
6643 * c-lang.c (c_language_defn, cplus_language_defn)
6644 (asm_language_defn, minimal_language_defn): Adjust to renames.
6645 * cli/cli-cmds.c (complete_command): Rework using
6646 completion_tracker. Catch exceptions when completing.
6647 * cli/cli-decode.c (integer_unlimited_completer)
6648 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6649 with completion_tracker instead of VEC.
6650 * command.h (struct completion_tracker): Forward declare.
6651 (completer_ftype, completer_handle_brkchars_ftype): Change
6652 types.
6653 (complete_on_cmdlist, complete_on_enum): Adjust.
6654 * completer.c: Include <algorithm>.
6655 (struct gdb_completer_state): New.
6656 (current_completion): New global.
6657 (readline_line_completion_function): Delete.
6658 (noop_completer, filename_completer)
6659 (filename_completer_handle_brkchars, complete_files_symbols)
6660 (linespec_location_completer): Adjust to work with a
6661 completion_tracker instead of a VEC.
6662 (string_or_empty): New.
6663 (collect_explicit_location_matches): Adjust to work with a
6664 completion_tracker instead of a VEC.
6665 (explicit_location_completer): Rename to ...
6666 (complete_explicit_location): ... this and adjust to work with a
6667 completion_tracker instead of a VEC.
6668 (location_completer): Adjust to work with a completion_tracker
6669 instead of a VEC.
6670 (add_struct_fields): Adjust to work with a completion_list instead
6671 of VEC.
6672 (expression_completer): Rename to ...
6673 (complete_expression): ... this and adjust to work with a
6674 completion_tracker instead of a VEC. Use complete_files_symbols.
6675 (expression_completer): Reimplement on top of complete_expression.
6676 (symbol_completer): Adjust to work with a completion_tracker
6677 instead of a VEC.
6678 (enum complete_line_internal_reason): Add describing comments.
6679 (complete_line_internal_normal_command): Adjust to work with a
6680 completion_tracker instead of a VEC.
6681 (complete_line_internal): Rename to ...
6682 (complete_line_internal_1): ... this and adjust to work with a
6683 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6684 handle_brkchars phase.
6685 (new_completion_tracker): Delete.
6686 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6687 complete_line_internal_1.
6688 (free_completion_tracker): Delete.
6689 (INITIAL_COMPLETION_HTAB_SIZE): New.
6690 (completion_tracker::completion_tracker)
6691 (completion_tracker::~completion_tracker): New.
6692 (maybe_add_completion): Delete.
6693 (completion_tracker::maybe_add_completion)
6694 (completion_tracker::add_completion)
6695 (completion_tracker::add_completions): New.
6696 (throw_max_completions_reached_error): Delete.
6697 (complete_line): Adjust to work with a completion_tracker instead
6698 of a VEC. Don't create a completion_tracker_t or check for max
6699 completions here.
6700 (command_completer, command_completer_handle_brkchars)
6701 (signal_completer, reg_or_group_completer_1)
6702 (reg_or_group_completer, default_completer_handle_brkchars):
6703 Adjust to work with a completion_tracker.
6704 (gdb_completion_word_break_characters_throw): New.
6705 (gdb_completion_word_break_characters): Reimplement.
6706 (line_completion_function): Delete.
6707 (completion_tracker::recompute_lowest_common_denominator)
6708 (expand_preserving_ws)
6709 (completion_tracker::build_completion_result)
6710 (completion_result::completion_result)
6711 (completion_result::completion_result)
6712 (completion_result::~completion_result)
6713 (completion_result::completion_result)
6714 (completion_result::release_match_list, compare_cstrings)
6715 (completion_result::sort_match_list)
6716 (completion_result::reset_match_list)
6717 (gdb_rl_attempted_completion_function_throw)
6718 (gdb_rl_attempted_completion_function): New.
6719 * completer.h (completion_list, struct completion_result)
6720 (class completion_tracker): New.
6721 (complete_line): Add completion_tracker parameter.
6722 (readline_line_completion_function): Delete.
6723 (gdb_rl_attempted_completion_function): New.
6724 (noop_completer, filename_completer, expression_completer)
6725 (location_completer, symbol_completer, command_completer)
6726 (signal_completer, reg_or_group_completer): Update prototypes.
6727 (completion_tracker_t, new_completion_tracker)
6728 (make_cleanup_free_completion_tracker): Delete.
6729 (enum maybe_add_completion_enum): Delete.
6730 (maybe_add_completion): Delete.
6731 (throw_max_completions_reached_error): Delete.
6732 * corefile.c (complete_set_gnutarget): Adjust to work with a
6733 completion_tracker instead of a VEC.
6734 * cp-abi.c (cp_abi_completer): Adjust to work with a
6735 completion_tracker instead of a VEC.
6736 * d-lang.c (d_language_defn): Adjust.
6737 * disasm.c (disassembler_options_completer): Adjust to work with a
6738 completion_tracker instead of a VEC.
6739 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6740 (f_collect_symbol_completion_matches): ... this. Adjust to work
6741 with a completion_tracker instead of a VEC.
6742 (f_language_defn): Adjust.
6743 * go-lang.c (go_language_defn): Adjust.
6744 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
6745 Adjust to work with a completion_tracker instead of a VEC.
6746 * infrun.c (handle_completer): Likewise.
6747 * interps.c (interpreter_completer): Likewise.
6748 * interps.h (interpreter_completer): Likewise.
6749 * language.c (unknown_language_defn, auto_language_defn)
6750 (local_language_defn): Adjust.
6751 * language.h (language_defn::la_make_symbol_completion_list):
6752 Rename to ...
6753 (language_defn::la_collect_symbol_completion_matches): ... this
6754 and adjust to work with a completion_tracker instead of a VEC.
6755 * m2-lang.c (m2_language_defn): Adjust.
6756 * objc-lang.c (objc_language_defn): Adjust.
6757 * opencl-lang.c (opencl_language_defn): Adjust.
6758 * p-lang.c (pascal_language_defn): Adjust.
6759 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
6760 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
6761 with a completion_tracker.
6762 * rust-lang.c (rust_language_defn): Adjust.
6763 * symtab.c (free_completion_list, do_free_completion_list)
6764 (return_val, completion_tracker): Delete.
6765 (completion_list_add_name, completion_list_add_symbol)
6766 (completion_list_add_msymbol, completion_list_objc_symbol)
6767 (completion_list_add_fields, add_symtab_completions): Add
6768 completion_tracker parameter and use it.
6769 (default_make_symbol_completion_list_break_on_1): Rename to...
6770 (default_collect_symbol_completion_matches_break_on): ... this.
6771 Add completion_tracker parameter and use it instead of allocating
6772 a completion tracker here.
6773 (default_make_symbol_completion_list_break_on): Delete old
6774 implementation.
6775 (default_make_symbol_completion_list): Delete.
6776 (default_collect_symbol_completion_matches): New.
6777 (make_symbol_completion_list): Delete.
6778 (collect_symbol_completion_matches): New.
6779 (make_symbol_completion_type): Rename to ...
6780 (collect_symbol_completion_matches_type): ... this. Add
6781 completion_tracker parameter and use it instead of VEC.
6782 (make_file_symbol_completion_list_1): Rename to...
6783 (collect_file_symbol_completion_matches): ... this. Add
6784 completion_tracker parameter and use it instead of VEC.
6785 (make_file_symbol_completion_list): Delete.
6786 (add_filename_to_list): Use completion_list instead of a VEC.
6787 (add_partial_filename_data::list): Now a completion_list.
6788 (make_source_files_completion_list): Work with a completion_list
6789 instead of a VEC.
6790 * symtab.h: Include "completer.h".
6791 (default_make_symbol_completion_list_break_on)
6792 (default_make_symbol_completion_list, make_symbol_completion_list)
6793 (make_symbol_completion_type, make_file_symbol_completion_list)
6794 (make_source_files_completion_list): Delete.
6795 (default_collect_symbol_completion_matches_break_on)
6796 (default_collect_symbol_completion_matches)
6797 (collect_symbol_completion_matches)
6798 (collect_symbol_completion_matches_type)
6799 (collect_file_symbol_completion_matches)
6800 (make_source_files_completion_list): New.
6801 * top.c (init_main): Don't install a rl_completion_entry_function
6802 hook. Install a rl_attempted_completion_function hook instead.
6803 * tui/tui-layout.c (layout_completer): Adjust to work with a
6804 completion_tracker.
6805 * tui/tui-regs.c (tui_reggroup_completer):
6806 * tui/tui-win.c (window_name_completer, focus_completer)
6807 (winheight_completer): Adjust to work with a completion_tracker.
6808 * value.c: Include "completer.h".
6809 (complete_internalvar): Adjust to work with a completion_tracker.
6810 * value.h (complete_internalvar): Likewise.
6811
6812 2017-07-17 Pedro Alves <palves@redhat.com>
6813
6814 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
6815 renames.
6816 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
6817 comments to completer_ftype's declaration.
6818 <completer_handle_brkchars>: Change type to
6819 completer_handle_brkchars_ftype.
6820 * command.h (completer_ftype): Add describing comment and give
6821 names to parameters.
6822 (completer_ftype_void): Rename to ...
6823 (completer_handle_brkchars_ftype) ... this. Add describing comment.
6824 (set_cmd_completer_handle_brkchars): Adjust.
6825 * completer.c (filename_completer_handle_brkchars): New function.
6826 (complete_line_internal_normal_command): New function, factored
6827 out from ...
6828 (complete_line_internal): ... here.
6829 (command_completer_handle_brkchars)
6830 (default_completer_handle_brkchars)
6831 (completer_handle_brkchars_func_for_completer): New functions.
6832 * completer.h (set_gdb_completion_word_break_characters): Delete
6833 declaration.
6834 (completer_handle_brkchars_func_for_completer): New declaration.
6835 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
6836 completer_handle_brkchars_func_for_completer.
6837
6838 2017-07-17 Pedro Alves <palves@redhat.com>
6839
6840 * completer.c (symbol_completer): New function, based on
6841 make_symbol_completion_list_fn.
6842 * completer.h (symbol_completer): New declaration.
6843 * guile/scm-cmd.c (cmdscm_completers): Adjust.
6844 * python/py-cmd.c (completers): Adjust.
6845 * symtab.c (make_symbol_completion_list_fn): Delete.
6846 * symtab.h (make_symbol_completion_list_fn): Delete.
6847 * cli/cli-decode.c (add_cmd): Adjust.
6848
6849 2017-07-17 Pedro Alves <palves@redhat.com>
6850
6851 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
6852 * dwarf2read.c: Include "filename-seen-cache.h".
6853 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
6854 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
6855 * filename-seen-cache.c: New file.
6856 * filename-seen-cache.h: New file.
6857 * symtab.c: Include "filename-seen-cache.h".
6858 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
6859 (create_filename_seen_cache, clear_filename_seen_cache)
6860 (delete_filename_seen_cache, filename_seen): Delete, parts moved
6861 to filename-seen-cache.h/filename-seen-cache.c.
6862 (output_source_filename, sources_info)
6863 (maybe_add_partial_symtab_filename)
6864 (make_source_files_completion_list): Adjust to use
6865 filename_seen_cache.
6866
6867 2017-07-17 Pedro Alves <palves@redhat.com>
6868
6869 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
6870 fields.
6871 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
6872 dwarf2_debug_sections*)): New.
6873 (dwarf2_per_objfile::dwarf2_per_objfile(const
6874 dwarf2_per_objfile&)): Declare as deleted.
6875 (dwarf2_per_objfile::operator=): Declare as deleted.
6876 (dwarf2_per_objfile::dwarf2_per_objfile)
6877 (dwarf2_per_objfile::~dwarf2_per_objfile)
6878 (dwarf2_per_objfile::free_cached_comp_units): New.
6879 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
6880 ctor. Call dwarf2_per_objfile's ctor manually.
6881 (dwarf2_locate_sections): Deleted/refactored as ...
6882 (dwarf2_per_objfile::locate_sections): ... this new method.
6883 (free_cached_comp_units): Defer to
6884 dwarf2_per_objfile::free_cached_comp_units.
6885 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
6886
6887 2017-07-14 Tom Tromey <tom@tromey.com>
6888
6889 PR rust/21764:
6890 * rust-exp.y (convert_ast_to_expression): Add "want_type"
6891 parameter.
6892 <UNOP_SIZEOF>: Split into separate case.
6893 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
6894
6895 2017-07-14 Tom Tromey <tom@tromey.com>
6896
6897 PR rust/21763:
6898 * symtab.c (symbol_matches_domain): Add language_rust to special
6899 case.
6900 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
6901 treat LOC_TYPEDEF symbols as variables.
6902
6903 2017-07-14 Pedro Alves <palves@redhat.com>
6904
6905 * symtab.c (make_file_symbol_completion_list_1): Iterate over
6906 symtabs matching all symtabs with SRCFILE as file name instead of
6907 only considering the first hit, with lookup_symtab.
6908
6909 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6910
6911 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
6912 operator_name parameters.
6913 (gen_expr): Update function call.
6914
6915 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6916
6917 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
6918 parameter.
6919 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
6920 Likewise.
6921 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
6922 parameter, use agent_expr::gdbarch instead, update function
6923 calls.
6924 (locexpr_tracepoint_var_ref): Likewise.
6925 (loclist_tracepoint_var_ref): Likewise.
6926 * ax-gdb.c (gen_trace_static_fields): Likewise.
6927 (gen_traced_pop): Likewise.
6928 (gen_frame_args_address): Likewise.
6929 (gen_frame_locals_address): Likewise.
6930 (gen_var_ref): Likewise.
6931 (gen_struct_ref_recursive): Likewise.
6932 (gen_static_field): Likewise.
6933 (gen_maybe_namespace_elt): Likewise.
6934 (gen_expr): Likewise.
6935 (gen_trace_for_var): Likewise.
6936 (gen_trace_for_expr): Likewise.
6937 (gen_trace_for_return_address): Likewise.
6938
6939 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6940
6941 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
6942 parameter.
6943 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
6944
6945 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6946
6947 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
6948 from ax, update calls.
6949 (gen_usual_arithmetic): Likewise.
6950 (gen_integral_promotions): Likewise.
6951 (gen_bitfield_ref): Likewise.
6952 (gen_primitive_field): Likewise.
6953 (gen_struct_ref_recursive): Likewise.
6954 (gen_struct_ref): Likewise.
6955 (gen_maybe_namespace_elt): Likewise.
6956 (gen_struct_elt_for_reference): Likewise.
6957 (gen_namespace_elt): Likewise.
6958 (gen_aggregate_elt_ref): Likewise.
6959 (gen_expr): Get gdbarch from ax, update calls.
6960 (gen_expr_binop_rest): Likewise.
6961
6962 2017-07-13 Pedro Alves <palves@redhat.com>
6963
6964 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
6965 as default tdesc.
6966 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
6967 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
6968 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
6969 tdesc_amd64_linux as default tdesc. Get final tdesc from the
6970 tdep.
6971 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
6972 Get final tdesc from the tdep.
6973 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
6974 default tdesc.
6975 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6976 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6977 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
6978 Use it as default tdesc.
6979 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
6980 down to amd_init_abi. No longer handle fallback tdesc here.
6981 * amd64-tdep.h (tdesc_x32): Declare.
6982 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
6983 parameter.
6984 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
6985 as default tdesc.
6986
6987 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6988
6989 * s390-linux-tdep.c (s390_process_record): Add support for
6990 instructions new in arch12.
6991
6992 2017-07-11 John Baldwin <jhb@FreeBSD.org>
6993
6994 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6995 PT_GETFSBASE and PT_GETGSBASE.
6996 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
6997 PT_SETGSBASE.
6998
6999 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7000
7001 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7002 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7003 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7004 those rules.
7005 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7006 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7007 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7008 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7009 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7010 * features/i386/amd64.xml: Add 64bit-segments.xml.
7011 * features/i386/amd64-avx-avx512.c: Regenerated.
7012 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7013 * features/i386/amd64-avx-mpx.c: Regenerated.
7014 * features/i386/amd64-avx.c: Regenerated.
7015 * features/i386/amd64-mpx.c: Regenerated.
7016 * features/i386/amd64.c: Regenerated.
7017 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7018 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7019 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7020 * regformats/i386/amd64-avx.dat: Regenerated.
7021 * regformats/i386/amd64-mpx.dat: Regenerated.
7022 * regformats/i386/amd64.dat: Regenerated.
7023
7024 2017-07-10 Yao Qi <yao.qi@linaro.org>
7025
7026 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7027 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7028
7029 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7030
7031 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7032 unsetenv.
7033 * gnulib/aclocal.m4: Regenerate.
7034 * gnulib/config.in: Regenerate.
7035 * gnulib/configure: Regenerate.
7036 * gnulib/import/Makefile.am: Regenerate.
7037 * gnulib/import/Makefile.in: Regenerate.
7038 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7039 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7040 * gnulib/import/m4/environ.m4: New file.
7041 * gnulib/import/m4/setenv.m4: New file.
7042 * gnulib/import/setenv.c: New file.
7043 * gnulib/import/unsetenv.c: New file.
7044
7045 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7046
7047 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7048 address when op is DW_OP_addr.
7049
7050 2017-07-09 Tom Tromey <tom@tromey.com>
7051
7052 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7053 check and apply to outer type.
7054
7055 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7056
7057 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7058 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7059 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7060 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7061
7062 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7063
7064 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7065
7066 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7067
7068 * corelow.c (get_core_siginfo): Remove.
7069 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7070 instead of get_core_siginfo.
7071 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7072 * gdbarch.h: Re-generate.
7073 * gdbarch.c: Re-generate.
7074 * linux-tdep.c (linux_core_xfer_siginfo): New.
7075 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7076
7077 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7078
7079 * corelow.c (thread_section_name): Move to ...
7080 * gdbcore.h (thread_section_name): ... here.
7081
7082 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7083
7084 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7085 (struct siginfo32): New.
7086 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7087 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7088 via ptrace(PT_LWPINFO).
7089
7090 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7091
7092 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7093 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7094 (fbsd_get_siginfo_type): New.
7095 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7096 (_initialize_fbsd_tdep): New.
7097
7098 2017-07-06 David Blaikie <dblaikie@gmail.com>
7099
7100 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7101 a singular dwo_unit*) to support multiple CUs in the same way that
7102 multiple TUs are supported.
7103 (create_cus_hash_table): Replace create_dwo_cu with a function for
7104 parsing multiple CUs from a DWO file.
7105 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7106 create_dwo_cu.
7107 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7108 htab_find, rather than comparing the signature to a singleton CU in
7109 the dwo_file.
7110
7111 2017-07-06 Pedro Alves <palves@redhat.com>
7112
7113 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7114
7115 2017-07-04 Pedro Alves <palves@redhat.com>
7116
7117 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7118 * gdbtypes.h (TYPE_STATIC): Delete.
7119 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7120 is_synchronized, is_native>: Delete.
7121 <dummy>: Bump.
7122 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7123 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7124 (TYPE_FN_FIELD_ABSTRACT): Delete.
7125
7126 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7127
7128 * buffer.h (buffer_finish): Fix spelling mistakes.
7129
7130 2017-07-01 Eli Zaretskii <eliz@gnu.org>
7131
7132 * .dir-locals.el: Automatically switch to C-style comments in
7133 versions of Emacs that support the feature.
7134
7135 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7136 Pedro Alves <palves@redhat.com>
7137
7138 PR cli/21688
7139 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7140 (process_next_line): New variable 'inline_cmd'.
7141 Adjust 'if' clauses for "python", "compile" and "guile" to use
7142 'command_name_equals' and check for '!inline_cmd'.
7143
7144 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7145
7146 PR cli/21688
7147 * cli/cli-script.c (command_name_equals_not_inline): New function.
7148 (process_next_line): Adjust 'if' clauses for "python", "compile"
7149 and "guile" to use command_name_equals_not_inline.
7150
7151 2017-06-29 Pedro Alves <palves@redhat.com>
7152
7153 * completer.c (expression_completer): Call
7154 linespec_location_completer instead of location_completer.
7155
7156 2017-06-29 Pedro Alves <palves@redhat.com>
7157
7158 * completer.c (expression_completer): Remove code that recomputes
7159 'text' from 'word'.
7160
7161 2017-06-29 Yao Qi <yao.qi@linaro.org>
7162
7163 * regformats/regdat.sh: Generate code with
7164 "ifndef IN_PROCESS_AGENT".
7165
7166 2017-06-28 Pedro Alves <palves@redhat.com>
7167
7168 * command.h: Include "common/scoped_restore.h".
7169
7170 2017-06-28 Yao Qi <yao.qi@linaro.org>
7171
7172 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7173 instead of obstack_grow.
7174
7175 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7176
7177 PR gdb/21337
7178 * symfile.c (reread_symbols): Call objfiles_changed just before
7179 read_symbols.
7180
7181 2017-06-27 Pedro Alves <palves@redhat.com>
7182
7183 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7184 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7185 (completion_list_add_symbol, completion_list_add_msymbol):
7186 ... these new functions.
7187 (add_symtab_completions)
7188 (default_make_symbol_completion_list_break_on_1): Adjust.
7189
7190 2017-06-27 Pedro Alves <palves@redhat.com>
7191
7192 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7193 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7194 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7195 dtor.
7196 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7197 'storage_obstack' field an auto_obstack. In-class initialize all
7198 non-bitfield fields. Make minsyms_read bool.
7199 * symfile.c (read_symbols): Adjust.
7200
7201 2017-06-27 Alan Hayward <alan.hayward@arm.com>
7202
7203 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7204 (gdbsim_store_register): Likewise.
7205
7206 2017-06-27 Pedro Alves <palves@redhat.com>
7207
7208 * c-exp.y (name_obstack): Now an auto_obstack.
7209 (yylex): Use auto_obstack::clear.
7210 (c_parse): Use auto_obstack::clear instead of reinitializing and
7211 freeing the obstack.
7212 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7213 * d-exp.y (name_obstack): Now an auto_obstack.
7214 (yylex): Use auto_obstack::clear.
7215 (d_parse): Use auto_obstack::clear instead of reinitializing and
7216 freeing the obstack.
7217 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7218 auto_obstack.
7219 * dwarf2read.c (create_addrmap_from_index)
7220 (dwarf2_build_psymtabs_hard)
7221 (update_enumeration_type_from_children): Likewise.
7222 * gdb_obstack.h (auto_obstack): New type.
7223 * go-exp.y (name_obstack): Now an auto_obstack.
7224 (build_packaged_name): Use auto_obstack::clear.
7225 (go_parse): Use auto_obstack::clear instead of reinitializing and
7226 freeing the obstack.
7227 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7228 auto_obstack.
7229 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7230 * rust-exp.y (work_obstack): Now an auto_obstack.
7231 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7232 reinitializing and freeing the obstack.
7233 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7234 (host_char_to_target): Use auto_obstack.
7235 * utils.h (make_cleanup_obstack_free): Delete declaration.
7236 * valprint.c (generic_emit_char, generic_printstr): Use
7237 auto_obstack.
7238
7239 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7240
7241 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7242 thread.
7243 (darwin_init_thread_list): Don't update dummy thread.
7244 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7245
7246 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7247
7248 * record-full.c (netorder16): Remove.
7249
7250 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7251
7252 * common/diagnostics.h: Define macros for GCC.
7253 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7254 * common/vec.h: Include diagnostics.h.
7255 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7256 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7257 warning.
7258
7259 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7260
7261 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7262 New macro.
7263 * ada-lex.l: Ignore deprecated register warnings.
7264
7265 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7266
7267 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7268 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7269
7270 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7271
7272 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7273 its own line.
7274
7275 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7276
7277 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7278
7279 2017-06-23 Alan Hayward <alan.hayward@arm.com>
7280
7281 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7282 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7283 (xtensa_register_read_masked): Likewise.
7284
7285 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7286
7287 * common/environ.c (gdb_environ::unset): Update comment.
7288
7289 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7290
7291 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7292 registers.
7293
7294 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7295
7296 * record-full.c (record_full_exec_insn): Use byte_vector.
7297
7298 2017-06-22 Yao Qi <yao.qi@linaro.org>
7299
7300 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7301 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7302
7303 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7304
7305 * remote.c (cached_reg): Move from here...
7306 * regcache.h (cached_reg): ...to here.
7307 * python/py-unwind.c (struct reg_info): Remove.
7308 (cached_frame_info): Use cached_reg_t.
7309 (pyuw_prev_register): Likewise.
7310 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7311 (pyuw_dealloc_cache): Free all registers.
7312
7313 2017-06-22 Pedro Alves <palves@redhat.com>
7314 Simon Marchi <simon.marchi@ericsson.com>
7315
7316 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7317 warning.
7318 * common/diagnostics.h: New file.
7319
7320 2017-06-22 Pedro Alves <palves@redhat.com>
7321
7322 * common/agent.h: Add include guards.
7323
7324 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7325
7326 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7327 talk about addressable units instead of bytes.
7328
7329 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7330
7331 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7332 of '::const_iterator'.
7333
7334 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7335
7336 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7337 'unittests/environ-selftests.c'.
7338 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7339 * charset.c (find_charset_names): Declare object 'iconv_env'.
7340 Update code to use 'iconv_env' object. Remove call to
7341 'free_environ'.
7342 * common/environ.c: Include <utility>.
7343 (make_environ): Delete function.
7344 (free_environ): Delete function.
7345 (gdb_environ::clear): New function.
7346 (gdb_environ::operator=): New function.
7347 (gdb_environ::get): Likewise.
7348 (environ_vector): Delete function.
7349 (set_in_environ): Delete function.
7350 (gdb_environ::set): New function.
7351 (unset_in_environ): Delete function.
7352 (gdb_environ::unset): New function.
7353 (gdb_environ::envp): Likewise.
7354 * common/environ.h: Include <vector>.
7355 (struct gdb_environ): Delete; transform into...
7356 (class gdb_environ): ... this class.
7357 (free_environ): Delete prototype.
7358 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7359 environ_vector): Likewise.
7360 * infcmd.c (run_command_1): Update code to call
7361 'envp' from 'gdb_environ' class.
7362 (environment_info): Update code to call methods from 'gdb_environ'
7363 class.
7364 (unset_environment_command): Likewise.
7365 (path_info): Likewise.
7366 (path_command): Likewise.
7367 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7368 (inferior::inferior): Initialize 'environment' using the host's
7369 information.
7370 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7371 Include "environ.h".
7372 (class inferior) <environment>: Change type from 'struct
7373 gdb_environ' to 'gdb_environ'.
7374 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7375 methods from 'gdb_environ' class.
7376 * solib.c (solib_find_1): Likewise
7377 * unittests/environ-selftests.c: New file.
7378
7379 2017-06-20 Yao Qi <yao.qi@linaro.org>
7380
7381 * features/i386/i386-linux.xml: Exchange the order of including
7382 32bit-linux.xml and 32bit-sse.xml.
7383 * features/i386/i386-linux.c: Regenerated.
7384
7385 2017-06-20 Yao Qi <yao.qi@linaro.org>
7386
7387 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7388 Delete copy ctor and assignment operator.
7389 (tdesc_type): Likewise.
7390 (tdesc_feature): Likewise.
7391 (tdesc_free_reg): Remove.
7392 (tdesc_create_reg): Use new.
7393 (tdesc_free_type): Remove.
7394 (tdesc_create_vector): Use new.
7395 (tdesc_create_union): Likewise.
7396 (tdesc_create_flags): Likewise.
7397 (tdesc_create_enum): Likewise.
7398 (tdesc_free_feature): Delete.
7399 (free_target_description): Use delete.
7400
7401 2017-06-19 John Baldwin <jhb@FreeBSD.org>
7402
7403 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7404 registers.
7405
7406 2017-06-19 Pedro Alves <palves@redhat.com>
7407
7408 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7409 after gdb::unlinker.
7410
7411 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7412
7413 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7414 gdb_environ to access an environment variable.
7415
7416 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7417
7418 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7419 gdb_byte*.
7420
7421 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7422
7423 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7424
7425 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7426
7427 * configure: Re-generate.
7428 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7429
7430 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7431
7432 * configure: Re-generate.
7433 * warning.m4: Pass -Werror to compiler when checking for
7434 supported warning flags.
7435
7436 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7437
7438 * Makefile.in (COMPILE.pre): Add "-x c++".
7439
7440 2017-06-16 Alan Hayward <alan.hayward@arm.com>
7441 Pedro Alves <palves@redhat.com>
7442 Yao Qi <yao.qi@linaro.org>
7443
7444 * defs.h (RequireLongest): New.
7445 (extract_integer): Declare function template.
7446 (extract_signed_integer): Remove the declaration, but define it
7447 static inline.
7448 (extract_unsigned_integer): Likewise.
7449 (store_integer): Declare function template.
7450 (store_signed_integer): Remove the declaration, but define it
7451 static inline.
7452 (store_unsigned_integer): Likewise.
7453 * findvar.c (extract_integer): New function template.
7454 (extract_signed_integer): Remove.
7455 (extract_unsigned_integer): Remove.
7456 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7457 instantiations.
7458 (store_integer): New function template.
7459 (store_signed_integer): Remove.
7460 (store_unsigned_integer): Remove.
7461 (store_integer): Explicit instantiations.
7462 * regcache.c (regcache_raw_read_signed): Update.
7463 (regcache::raw_read): New function.
7464 (regcache::raw_read_signed): Remove.
7465 (regcache::raw_read_unsigned): Remove.
7466 (regcache_raw_read_unsigned): Update.
7467 (regcache_raw_write_unsigned): Update.
7468 (regcache::raw_write_signed): Remove.
7469 (regcache::raw_write): New function.
7470 (regcache_cooked_read_signed): Update.
7471 (regcache::raw_write_unsigned): Remove.
7472 (regcache::cooked_read_signed): Remove.
7473 (regcache_cooked_read_unsigned): Update.
7474 (regcache::cooked_read_unsigned): Remove.
7475 (regcache_cooked_write_signed): Update.
7476 (regcache_cooked_write_unsigned): Update.
7477 * regcache.h (regcache) <raw_read_signed>: Remove.
7478 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7479 <raw_read, raw_write>: New.
7480 <cooked_read_signed, cooked_write_signed>: Remove.
7481 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7482 <cooked_read, cooked_write>: New.
7483 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7484 (sh64_pseudo_register_write): Update.
7485
7486 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7487
7488 * arc-tdep.c (arc_disassembler_options): New variable.
7489 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7490 of default_print_insn.
7491 (arc_delayed_print_insn): Set info->section when needed,
7492 use default_print_insn to retrieve a disassembler.
7493
7494 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7495
7496 PR gdb/21574
7497 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7498 to mention $SHELL and startup-with-shell.
7499
7500 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7501
7502 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7503
7504 2017-06-14 Yao Qi <yao.qi@linaro.org>
7505
7506 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7507 default_print_insn instead of print_insn_aarch64.
7508 * arm-tdep.c (gdb_print_insn_arm): Call
7509 default_print_insn instead of print_insn_big_arm
7510 and print_insn_little_arm.
7511 * i386-tdep.c (i386_print_insn): Call default_print_insn
7512 instead of print_insn_i386.
7513 * ia64-tdep.c (ia64_print_insn): Call
7514 default_print_insn instead of print_insn_ia64.
7515 * mips-tdep.c (gdb_print_insn_mips): Call
7516 default_print_insn instead of print_insn_big_mips
7517 and print_insn_little_mips.
7518 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7519 instead of print_insn_spu.
7520
7521 2017-06-14 Pedro Alves <palves@redhat.com>
7522
7523 * ada-lang.c: Include "common/byte-vector.h".
7524 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7525 * charset.c (wchar_iterator::iterate): Resize the vector instead
7526 of reserving it.
7527 * common/byte-vector.h: Include "common/def-vector.h".
7528 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7529 * cli/cli-dump.c: Include "common/byte-vector.h".
7530 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7531 * common/byte-vector.h: New file.
7532 * common/def-vector.h: New file.
7533 * common/default-init-alloc.h: New file.
7534 * dwarf2loc.c: Include "common/byte-vector.h".
7535 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7536 instead of reserving it.
7537 * dwarf2read.c: Include "common/byte-vector.h".
7538 (data_buf::m_vec): Now a gdb::byte_vector.
7539 * gdb_regex.c: Include "common/def-vector.h".
7540 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7541 * mi/mi-main.c: Include "common/byte-vector.h".
7542 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7543 * printcmd.c: Include "common/byte-vector.h".
7544 (print_scalar_formatted): Use gdb::byte_vector.
7545 * valprint.c: Include "common/byte-vector.h".
7546 (maybe_negate_by_bytes, print_decimal_chars): Use
7547 gdb::byte_vector.
7548
7549 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7550
7551 * darwin-nat.c: Include "nat/fork-inferior.h".
7552
7553 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7554
7555 * configure.nat: Factor out Darwin bits that are not
7556 architecture-specific. Add fork-inferior.o.
7557
7558 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7559
7560 * configure.nat: Factor out AIX bits that are not
7561 architecture-specific. Add fork-inferior.o.
7562
7563 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7564
7565 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7566 (read_pieced_value, write_pieced_value): ...here. Reduce to
7567 wrappers that just call rw_pieced_value.
7568
7569 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7570
7571 * dwarf2loc.c (write_pieced_value): When writing the data for a
7572 memory piece, use write_memory_with_notification instead of
7573 write_memory.
7574
7575 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7576
7577 * valops.c (read_value_memory): Change embedded_offset to
7578 represent a bit offset instead of a byte offset.
7579 * value.h (read_value_memory): Adjust comment.
7580
7581 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7582
7583 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7584 dest_offset_bits and source_offset_bits.
7585 (write_pieced_value): Likewise.
7586
7587 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7588
7589 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7590 given by DW_OP_bit_piece.
7591 (write_pieced_value): Likewise.
7592
7593 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7594
7595 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7596 some other preparations to the places where sufficient information
7597 is available.
7598 (write_pieced_value): Likewise.
7599
7600 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7601
7602 * dwarf2loc.c (bits_to_bytes): New function.
7603 (read_pieced_value): Fix offset calculations for register pieces
7604 on big-endian targets.
7605 (write_pieced_value): Likewise.
7606
7607 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7608
7609 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7610 (write_pieced_value): Likewise.
7611
7612 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7613
7614 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7615 transfer the source value's least significant bits, instead of its
7616 lowest-addressed ones. Rename type_len to max_offset.
7617 (read_pieced_value): Mirror above changes to write_pieced_value as
7618 applicable.
7619
7620 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7621
7622 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7623 truncate full bytes from dest_offset_bits before using it as an
7624 offset into the buffer.
7625
7626 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7627
7628 * dwarf2loc.c (write_pieced_value): Include transfer size in
7629 byte-wise check.
7630
7631 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7632
7633 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7634 calculation of this_size.
7635
7636 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7637
7638 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7639 when targeting a bit-field.
7640 (write_pieced_value): Likewise.
7641
7642 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7643
7644 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7645 (allocate_piece_closure): Drop addr_size parameter.
7646 (dwarf2_evaluate_loc_desc_full): Adjust call to
7647 allocate_piece_closure.
7648
7649 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7650
7651 PR gdb/21226
7652 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7653 the LSB end, independent of endianness.
7654
7655 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7656
7657 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7658 size capping.
7659
7660 2017-06-13 Yao Qi <yao.qi@linaro.org>
7661
7662 * mips-linux-nat.c: Move include features/mips*-linux.c to
7663 mips-linux-tdep.c.
7664 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7665 to mips-linux-tdep.c.
7666 * mips-linux-tdep.c: Include features/mips*-linux.c
7667 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7668 functions.
7669 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7670 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7671 (tdesc_mips64_dsp_linux): Declare.
7672
7673 2017-06-12 Tom Tromey <tom@tromey.com>
7674
7675 * valprint.h (val_print_type_code_int): Remove.
7676 * valprint.c (generic_val_print_int): Always call
7677 val_print_scalar_formatted.
7678 (val_print_type_code_int): Remove.
7679 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7680 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7681 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7682 * ada-valprint.c (ada_val_print_num): Use
7683 val_print_scalar_formatted.
7684
7685 2017-06-12 Tom Tromey <tom@tromey.com>
7686
7687 * printcmd.c (print_scalar_formatted): Unify the two switches.
7688 Don't convert scalars to LONGEST.
7689
7690 2017-06-12 Tom Tromey <tom@tromey.com>
7691
7692 PR exp/16225:
7693 * valprint.h (print_decimal_chars): Update.
7694 * valprint.c (maybe_negate_by_bytes): New function.
7695 (print_decimal_chars): Add "is_signed" argument.
7696 * printcmd.c (print_scalar_formatted): Update.
7697
7698 2017-06-12 Tom Tromey <tom@tromey.com>
7699
7700 PR exp/16225:
7701 * valprint.h (print_binary_chars, print_hex_chars): Update.
7702 * valprint.c (val_print_type_code_int): Update.
7703 (print_binary_chars): Add "zero_pad" argument.
7704 (emit_octal_digit): New function.
7705 (print_octal_chars): Don't zero-pad.
7706 (print_decimal_chars): Likewise.
7707 (print_hex_chars): Add "zero_pad" argument.
7708 * sh64-tdep.c (sh64_do_fp_register): Update.
7709 * regcache.c (regcache::dump): Update.
7710 * printcmd.c (print_scalar_formatted): Update.
7711 * infcmd.c (default_print_one_register_info): Update.
7712
7713 2017-06-12 Pedro Alves <palves@redhat.com>
7714 Alan Hayward <alan.hayward@arm.com>
7715
7716 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7717 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7718 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7719 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7720 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7721
7722 2017-06-12 Pedro Alves <palves@redhat.com>
7723
7724 * dwarf2read.c (mapped_symtab::data): Now a vector of
7725 symtab_index_entry instead of vector of
7726 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7727 whether an element's name is NULL instead of checking whether the
7728 element itself is NULL.
7729 (find_slot): Change return type. Adjust.
7730 (hash_expand, , add_index_entry, uniquify_cu_indices)
7731 (write_hash_table): Adjust.
7732
7733 2017-06-12 Pedro Alves <palves@redhat.com>
7734
7735 * dwarf2read.c (recursively_count_psymbols): New function.
7736 (write_psymtabs_to_index): Call it to compute number of psyms and
7737 pass estimate size of psyms_seen to unordered_set's ctor.
7738
7739 2017-06-12 Pedro Alves <palves@redhat.com>
7740
7741 * dwarf2read.c (write_hash_table): Check if key already exists
7742 before emplacing.
7743
7744 2017-06-12 Pedro Alves <palves@redhat.com>
7745
7746 * dwarf2read.c (data_buf::append_space): Rename to...
7747 (data_buf::grow): ... this, and make private. Adjust all callers.
7748 (data_buf::append_uint): New method.
7749 (add_address_entry, write_one_signatured_type)
7750 (write_psymtabs_to_index): Use it.
7751
7752 2017-06-12 Pedro Alves <palves@redhat.com>
7753
7754 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
7755 (file_write (FILE *, const std::vector<Elem>&)): Delete.
7756 (data_buf::file_write): Call ::fwrite directly.
7757
7758 2017-06-12 Pedro Alves <palves@redhat.com>
7759
7760 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
7761 std::vector::erase.
7762
7763 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7764
7765 Code cleanup: C++ify .gdb_index producer.
7766 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
7767 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
7768 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
7769 (create_strtab, add_string): Remove.
7770 (file_write, data_buf): New.
7771 (struct symtab_index_entry): Use std::vector for cu_indices.
7772 (struct mapped_symtab): Use std::vector for data.
7773 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
7774 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
7775 Remove.
7776 (find_slot): Change return type. Update it to the new data structures.
7777 (hash_expand, add_index_entry): Update it to the new data structures.
7778 (offset_type_compare): Remove.
7779 (uniquify_cu_indices): Update it to the new data structures.
7780 (c_str_view, c_str_view_hasher, vector_hasher): New.
7781 (add_indices_to_cpool): Remove.
7782 (write_hash_table): Update it to the new data structures.
7783 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
7784 (eq_psymtab_cu_index): Remove.
7785 (psym_index_map): New typedef.
7786 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
7787 reference and std::unordered_map for cu_index_htab.
7788 (add_address_entry, add_address_entry_worker, write_address_map)
7789 (write_psymbols): Update it to the new data structures.
7790 (write_obstack): Remove.
7791 (struct signatured_type_index_data): Change types_list to a data_buf
7792 reference and psyms_seen to a std::unordered_set reference.
7793 (write_one_signatured_type, recursively_write_psymbols)
7794 (write_psymtabs_to_index): Update it to the new data structures.
7795
7796 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
7797
7798 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
7799 separate-debug-file commands.
7800 * symfile.h (separate_debug_file_debug): New global.
7801 * symfile.c (separate_debug_file_debug): New global.
7802 (separate_debug_file_exists, find_separate_debug_file): Add
7803 debug output.
7804 (_initialize_symfile): Add "set debug separate-debug-file"
7805 command.
7806 * build-id.c (build_id_to_debug_bfd,
7807 find_separate_debug_file_by_buildid): Add debug output.
7808
7809 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7810
7811 * gdbarch.sh (displaced_step_free_closure): Remove.
7812 * gdbarch.h, gdbarch.c: Re-generate.
7813 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
7814 displaced_step_free_closure.
7815 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7816 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7817 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7818 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7819 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7820 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7821 * arch-utils.h (simple_displaced_step_free_closure): Remove.
7822 * arch-utils.c (simple_displaced_step_free_closure): Remove.
7823 * infrun.c (displaced_step_clear): Call xfree instead of
7824 gdbarch_displaced_step_free_closure.
7825
7826 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
7827
7828 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
7829 NULL".
7830
7831 2017-06-08 Alan Hayward <alan.hayward@arm.com>
7832
7833 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
7834 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
7835 (mn10300_push_dummy_call): Likewise.
7836
7837 2017-06-08 Alan Hayward <alan.hayward@arm.com>
7838
7839 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
7840
7841 2017-06-08 Alan Hayward <alan.hayward@arm.com>
7842
7843 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
7844
7845 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7846
7847 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
7848 able to start inferiors using a shell.
7849 (New remote packets): Announce new packet "QStartupWithShell".
7850 * remote.c: Add PACKET_QStartupWithShell.
7851 (extended_remote_create_inferior): Handle new
7852 PACKET_QStartupWithShell.
7853 (remote_protocol_features) <QStartupWithShell>: New entry for
7854 PACKET_QStartupWithShell.
7855 (_initialize_remote): Call "add_packet_config_cmd" for
7856 QStartupShell.
7857
7858 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7859 Pedro Alves <palves@redhat.com>
7860
7861 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
7862 and "nat/fork-inferior.h".
7863 * common/common-inferior.h: New file, with contents from
7864 "gdb/inferior.h".
7865 * commom/common-utils.c: Include "common-utils.h".
7866 (stringify_argv): New function.
7867 * common/common-utils.h (stringify_argv): New prototype.
7868 * configure.nat: Add "fork-inferior.o" as a dependency for
7869 "*linux*", "fbsd*" and "nbsd*" hosts.
7870 * corefile.c (get_exec_file): Update comment.
7871 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
7872 instead of "startup_inferior".
7873 (darwin_create_inferior): Call "add_thread_silent" after
7874 "fork_inferior".
7875 * fork-child.c: Cleanup unnecessary includes.
7876 (SHELL_FILE): Move to "common/common-fork-child.c".
7877 (environ): Likewise.
7878 (exec_wrapper): Initialize.
7879 (get_exec_wrapper): New function.
7880 (breakup_args): Move to "common/common-fork-child.c"; rename to
7881 "breakup_args_for_exec".
7882 (escape_bang_in_quoted_argument): Move to
7883 "common/common-fork-child.c".
7884 (saved_ui): New variable.
7885 (prefork_hook): New function.
7886 (postfork_hook): Likewise.
7887 (postfork_child_hook): Likewise.
7888 (gdb_startup_inferior): Likewise.
7889 (fork_inferior): Move to "common/common-fork-child.c". Update
7890 function to support gdbserver.
7891 (startup_inferior): Likewise.
7892 * gdbcore.h (get_exec_file): Remove declaration.
7893 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
7894 instead of "startup_inferior". Call "add_thread_silent" after
7895 "fork_inferior".
7896 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
7897 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
7898 instead of "startup_inferior". Call "add_thread_silent" after
7899 "fork_inferior".
7900 * inferior.h: Include "common-inferior.h".
7901 (trace_start_error): Move to "common/common-utils.h".
7902 (trace_start_error_with_name): Likewise.
7903 (fork_inferior): Move prototype to "nat/fork-inferior.h".
7904 (startup_inferior): Likewise.
7905 (gdb_startup_inferior): New prototype.
7906 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
7907 * nat/fork-inferior.h: New file.
7908 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
7909 instead of "startup_inferior". Call "add_thread_silent" after
7910 "fork_inferior".
7911 * target.h (target_terminal_init): Move prototype to
7912 "target/target.h".
7913 (target_terminal_inferior): Likewise.
7914 (target_terminal_ours): Likewise.
7915 * target/target.h (target_terminal_init): New prototype, moved
7916 from "target.h".
7917 (target_terminal_inferior): Likewise.
7918 (target_terminal_ours): Likewise.
7919 * utils.c (gdb_flush_out_err): New function.
7920
7921 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7922
7923 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
7924 * common/common-gdbthread.h: New file, with parts from
7925 "gdb/gdbthread.h".
7926 * gdbthread.h: Include "common-gdbthread.h".
7927 (switch_to_thread): Moved to "common/common-gdbthread.h".
7928
7929 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7930
7931 * Makefile.in (SFILES): Add "common/job-control.c".
7932 (HFILES_NO_SRCDIR): Add "common/job-control.h".
7933 (COMMON_OBS): Add "job-control.o".
7934 * common/job-control.c: New file, with contents from
7935 "gdb/inflow.c".
7936 * common/job-control.h: New file, with contents from "terminal.h".
7937 * fork-child.c: Include "job-control.h".
7938 * inflow.c: Include "job-control.h".
7939 (gdb_setpgid): Move to "common/common-inflow.c".
7940 (_initialize_inflow): Move setting of "job_control" to
7941 "handle_job_control".
7942 * terminal.h (job_control): Moved to "common/common-terminal.h".
7943 (gdb_setpgid): Likewise.
7944 * top.c: Include "job_control.h".
7945 * utils.c: Likewise.
7946 (job_control): Moved to "job-control.c".
7947
7948 2017-06-07 Pedro Alves <palves@redhat.com>
7949
7950 * Makefile.in (SFILES): Add gdb_regex.c.
7951 (COMMON_OBS): Add gdb_regex.o.
7952 * ada-lang.c (ada_add_standard_exceptions)
7953 (ada_add_exceptions_from_frame, name_matches_regex)
7954 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
7955 parameter type to compiled_regex. Adjust.
7956 (ada_exceptions_list): Use compiled_regex.
7957 * break-catch-throw.c (exception_catchpoint::pattern): Now a
7958 std::unique_ptr<compiled_regex>.
7959 (exception_catchpoint::~exception_catchpoint): Remove regfree
7960 call.
7961 (check_status_exception_catchpoint): Adjust to use compiled_regex.
7962 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
7963 * breakpoint.c (solib_catchpoint::compiled): Now a
7964 std::unique_ptr<compiled_regex>.
7965 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
7966 (check_status_catch_solib): Adjust to use compiled_regex.
7967 (add_solib_catchpoint): Adjust to use compiled_regex.
7968 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
7969 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
7970 compiled_regex reference. Adjust to use it.
7971 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
7972 declaration. Include "gdb_regex.h".
7973 (apropos_cmd): Change regex parameter to compiled_regex reference.
7974 * gdb_regex.c: New file.
7975 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
7976 declarations.
7977 (class compiled_regex): New.
7978 * linux-tdep.c: Include "common/gdb_optional.h".
7979 (struct mapping_regexes): New, factored out from
7980 mapping_is_anonymous_p, and adjusted to use compiled_regex.
7981 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
7982 gdb::optional and remove cleanups. Adjust to compiled_regex.
7983 * probe.c: Include "common/gdb_optional.h".
7984 (collect_probes): Use compiled_regex and gdb::optional and remove
7985 cleanups.
7986 * skip.c: Include "common/gdb_optional.h".
7987 (skiplist_entry::compiled_function_regexp): Now a
7988 gdb::optional<compiled_regex>.
7989 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
7990 (free_skiplist_entry): Remove regfree call.
7991 (compile_skip_regexp, skip_rfunction_p): Adjust to use
7992 compiled_regex and gdb::optional.
7993 * symtab.c: Include "common/gdb_optional.h".
7994 (search_symbols): Use compiled_regex and gdb::optional.
7995 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
7996 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
7997 to gdb_regex.c.
7998
7999 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8000
8001 * regcache.c (regcache::save): Avoid buffer use.
8002 (regcache::dump): Likewise.
8003
8004 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8005
8006 * sh-tdep.c (sh_pseudo_register_read): Remove
8007 MAX_REGISTER_SIZE.
8008 (sh_pseudo_register_write): Likewise.
8009 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8010 (sh64_pseudo_register_write): Likewise
8011
8012 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8013
8014 * aarch64-tdep.c (aarch64_store_return_value): Use
8015 V_REGISTER_SIZE.
8016 (aarch64_pseudo_read_value): Likewise.
8017 (aarch64_pseudo_write): Likewise.
8018
8019 2017-06-06 Yao Qi <yao.qi@linaro.org>
8020
8021 * regformats/regdef.h (set_register_cache): Remove the
8022 declaration.
8023
8024 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8025
8026 * frame.c (frame_unwind_register_signed): Use
8027 frame_unwind_register_value.
8028
8029 2017-06-06 Pedro Alves <palves@redhat.com>
8030
8031 PR breakpoints/21553
8032 * breakpoint.c (create_breakpoints_sal_default)
8033 (init_breakpoint_sal, create_breakpoint_sal): Use
8034 gdb::unique_xmalloc_ptr for string parameters.
8035 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8036 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8037 (base_breakpoint_create_breakpoints_sal)
8038 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8039 (strace_marker_create_breakpoints_sal)
8040 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8041 string parameters.
8042 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8043 gdb::unique_xmalloc_ptr for string parameters.
8044 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8045 parameters.
8046
8047 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8048
8049 * alpha-tdep.c (alpha_register_to_value): Use
8050 get_frame_register_value.
8051 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8052
8053 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8054
8055 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8056 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8057 (ia64_value_to_register): Likewise.
8058 (ia64_extract_return_value): Likewise.
8059 (ia64_store_return_value): Likewise.
8060 (ia64_push_dummy_call): Likewise.
8061
8062 2017-06-04 Joel Brobecker <brobecker@adacore.com>
8063
8064 GDB 8.0 released.
8065
8066 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8067
8068 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8069
8070 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8071
8072 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8073 parameter.
8074 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8075
8076 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8077
8078 * event-loop.c (poll_timers): Unallocate timer using delete
8079 instead of xfree.
8080
8081 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8082
8083 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8084 (struct breakpoint) <~breakpoint>: New.
8085 (struct watchpoint): Inherit from breakpoint.
8086 <~watchpoint>: New.
8087 <base>: Remove.
8088 (struct tracepoint): Inherit from breakpoint.
8089 <base>: Remove.
8090 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8091 (struct longjmp_breakpoint): Inherit from breakpoint.
8092 <~longjmp_breakpoint>: New.
8093 <base>: Remove.
8094 (new_breakpoint_from_type): Remove casts.
8095 (watchpoint_in_thread_scope): Remove reference to base field.
8096 (watchpoint_del_at_next_stop): Likewise.
8097 (update_watchpoint): Likewise.
8098 (watchpoint_check): Likewise.
8099 (bpstat_check_watchpoint): Likewise.
8100 (set_longjmp_breakpoint): Likewise.
8101 (struct fork_catchpoint): Inherit from breakpoint.
8102 <base>: Remove.
8103 (struct solib_catchpoint): Inherit from breakpoint.
8104 <~solib_catchpoint>: New.
8105 <base>: Remove.
8106 (dtor_catch_solib): Change to ...
8107 (solib_catchpoint::~solib_catchpoint): ... this.
8108 (breakpoint_hit_catch_solib): Remove reference to base field.
8109 (add_solib_catchpoint): Likewise.
8110 (create_fork_vfork_event_catchpoint): Likewise.
8111 (struct exec_catchpoint): Inherit from breakpoint.
8112 <~exec_catchpoint>: New.
8113 <base>: Remove.
8114 (dtor_catch_exec): Change to ...
8115 (exec_catchpoint::~exec_catchpoint): ... this.
8116 (dtor_watchpoint): Change to ...
8117 (watchpoint::~watchpoint): ... this.
8118 (watch_command_1): Remove reference to base field.
8119 (catch_exec_command_1): Likewise.
8120 (base_breakpoint_dtor): Change to ...
8121 (breakpoint::~breakpoint): ... this.
8122 (base_breakpoint_ops): Remove dtor field value.
8123 (longjmp_bkpt_dtor): Change to ...
8124 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8125 (strace_marker_create_breakpoints_sal): Remove reference to base
8126 field.
8127 (delete_breakpoint): Don't manually call breakpoint destructor.
8128 (create_tracepoint_from_upload): Remove reference to base field.
8129 (trace_pass_set_count): Likewise.
8130 (initialize_breakpoint_ops): Don't initialize
8131 momentary_breakpoint_ops, don't set dtors.
8132 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8133 <~ada_catchpoint>: New.
8134 <base>: Remove.
8135 (create_excep_cond_exprs): Remove reference to base field.
8136 (dtor_exception): Change to ...
8137 (ada_catchpoint::~ada_catchpoint): ... this.
8138 (dtor_catch_exception): Remove.
8139 (dtor_catch_exception_unhandled): Remove.
8140 (dtor_catch_assert): Remove.
8141 (create_ada_exception_catchpoint): Remove reference to base
8142 field.
8143 (initialize_ada_catchpoint_ops): Don't set dtors.
8144 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8145 breakpoint.
8146 <~signal_catchpoint>: New.
8147 <base>: Remove.
8148 (signal_catchpoint_dtor): Change to ...
8149 (signal_catchpoint::~signal_catchpoint): ... this.
8150 (create_signal_catchpoint): Remove reference to base field.
8151 (initialize_signal_catchpoint_ops): Don't set dtor.
8152 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8153 from breakpoint.
8154 <~syscall_catchpoint>: New.
8155 <base>: Remove.
8156 (dtor_catch_syscall): Change to ...
8157 (syscall_catchpoint::~syscall_catchpoint): ... this.
8158 (create_syscall_event_catchpoint): Remove reference to base
8159 field.
8160 (initialize_syscall_catchpoint_ops): Don't set dtor.
8161 * break-catch-throw.c (struct exception_catchpoint): Inherit
8162 from breakpoint.
8163 <~exception_catchpoint>: New.
8164 <base>: Remove.
8165 (dtor_exception_catchpoint): Change to ...
8166 (exception_catchpoint::~exception_catchpoint): ... this.
8167 (handle_gnu_v3_exceptions): Remove reference to base field.
8168 (initialize_throw_catchpoint_ops): Don't set dtor.
8169 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8170 field.
8171 * remote.c (remote_get_tracepoint_status): Likewise.
8172 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8173 * tracefile.c (tracefile_fetch_registers): Likewise.
8174 * tracepoint.c (actions_command): Likewise.
8175 (validate_actionline): Likewise.
8176 (tfind_1): Likewise.
8177 (get_traceframe_location): Likewise.
8178 (find_matching_tracepoint_location): Likewise.
8179 (parse_tracepoint_status): Likewise.
8180 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8181
8182 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8183
8184 * breakpoint.c (struct longjmp_breakpoint): New struct.
8185 (is_tracepoint_type): Change return type to bool.
8186 (is_longjmp_type): New function.
8187 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8188 (set_raw_breakpoint_without_location): Use
8189 new_breakpoint_from_type.
8190 (set_raw_breakpoint): Likewise.
8191
8192 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8193
8194 * breakpoint.c (new_breakpoint_from_type): New function.
8195 (create_breakpoint_sal): Use new_breakpoint_from_type and
8196 unique_ptr.
8197 (create_breakpoint): Likewise.
8198
8199 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8200
8201 * memattr.c (mem_info_command): Rename to ...
8202 (info_mem_command): ... this.
8203 (mem_enable_command): Rename to ...
8204 (enable_mem_command): ... this.
8205 (mem_disable_command): Rename to ...
8206 (disable_mem_command): ... this.
8207 (mem_delete_command): Rename to ...
8208 (delete_mem_command): ... this.
8209 (_initialize_mem): Adjust function names.
8210
8211 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8212
8213 * btrace.c (handle_pt_insn_events): New.
8214 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8215 STATUS. Split into this and ...
8216 (handle_pt_insn_event_flags): ... this.
8217
8218 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8219
8220 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8221 and struct pt_insn.resynced.
8222 * configure: Regenerated.
8223 * config.in: Regenerated.
8224
8225 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8226
8227 * btrace.c (ftrace_find_call_by_number): New function.
8228 (ftrace_new_function): Store objects, not pointers.
8229 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8230 ftrace_new_gap, ftrace_update_function,
8231 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8232 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8233 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8234 btrace_ends_with_single_insn, btrace_call_get): Account for
8235 btrace_thread_info::functions now storing objects.
8236 * btrace.h (struct btrace_thread_info): Add constructor.
8237 (struct btrace_thread_info) <functions>: Make std::vector.
8238 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8239 Initialize with default values.
8240 * record-btrace.c (record_btrace_frame_sniffer): Account for
8241 btrace_thread_info::functions now storing objects.
8242
8243 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8244
8245 * btrace.c: Remove typedef bfun_s.
8246 (ftrace_new_gap): Directly add gaps to the list of gaps.
8247 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8248 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8249 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8250 instead of gdb VEC.
8251
8252 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8253
8254 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8255 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8256 with btrace_thread_info::next_segment and
8257 btrace_thread_info::prev_segment.
8258 * btrace.h: Remove struct btrace_func_link.
8259 (struct btrace_function): Replace pair of function segment pointers
8260 with pair of indices.
8261 * python/py-record-btrace.c (btpy_call_prev_sibling,
8262 btpy_call_next_sibling): Replace references to
8263 btrace_thread_info::segment with btrace_thread_info::next_segment and
8264 btrace_thread_info::prev_segment.
8265 * record-btrace.c (record_btrace_frame_this_id): Use
8266 btrace_find_call_by_number.
8267
8268 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8269
8270 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8271 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8272 btrace_insn_next, btrace_insn_prev): Remove references to
8273 btrace_thread_info::flow.
8274 * btrace.h (struct btrace_function): Remove FLOW.
8275
8276 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8277
8278 * btrace.c (ftrace_find_call_by_number): New function.
8279 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8280 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8281 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8282 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8283 index.
8284 * btrace.h (struct btrace_function): Turn UP into an index.
8285 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8286 as an index.
8287 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8288 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8289 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8290
8291 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8292
8293 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8294 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8295 ftrace_update_function, ftrace_compute_global_level_offset,
8296 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8297 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8298 btrace_insn_end, btrace_is_empty): Remove references to
8299 btrace_thread_info::begin and btrace_thread_info::end.
8300 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8301 (struct btrace_thread_info) <functions>: Adjust comment.
8302 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8303 btrace_thread_info::begin.
8304
8305 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8306
8307 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8308 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8309 ftrace_update_function): Remove arguments that implicitly were always
8310 BTINFO->END.
8311 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8312 Don't pass BTINFO->END.
8313
8314 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8315
8316 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8317 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8318 btrace_find_insn_by_number): Replace function segment pointer with
8319 index.
8320 (btrace_insn_cmp): Simplify.
8321 * btrace.h: (struct btrace_insn_iterator) Rename index to
8322 insn_index. Replace function segment pointer with index into function
8323 segment vector.
8324 * record-btrace.c (record_btrace_call_history): Replace function
8325 segment pointer use with index.
8326 (record_btrace_frame_sniffer): Retrieve function call segment through
8327 vector.
8328 (record_btrace_set_replay): Remove defunc't safety check.
8329
8330 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8331
8332 * btrace.c (btrace_ends_with_single_insn): New function.
8333 (btrace_call_get, btrace_call_number, btrace_call_begin,
8334 btrace_call_end, btrace_call_next, btrace_call_prev,
8335 btrace_find_call_by_number): Use index into call segment vector
8336 instead of pointer.
8337 (btrace_call_cmp): Simplify.
8338 * btrace.h (struct btrace_call_iterator): Replace function call segment
8339 pointer with index into vector.
8340 * record-btrace.c (record_btrace_call_history): Use index instead of
8341 pointer.
8342
8343 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8344
8345 * btrace.c (btrace_insn_begin, btrace_insn_end,
8346 btrace_find_insn_by_number): Add btinfo to iterator.
8347 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8348
8349 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8350
8351 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8352 and save pointers directly.
8353 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8354 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8355 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8356 changed signature of functions.
8357 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8358 (btrace_fetch): Remove code that adds btrace_function pointers to
8359 vector of btrace_functions.
8360 (btrace_clear): Simplify freeing vector of btrace_functions.
8361
8362 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8363
8364 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8365 Replace VEC_* with std::vector functions.
8366 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8367 (struct btrace_thread_info)<functions>: Change type to std::vector.
8368
8369 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8370
8371 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8372 "Removed targets and native configurations" up. Merge duplicate
8373 "New commands" sub-sections. Add "New options" sub-sections.
8374
8375 2017-05-26 Alan Hayward <alan.hayward@arm.com>
8376
8377 * defs.h (copy_integer_to_size): New declaration.
8378 * findvar.c (copy_integer_to_size): New function.
8379 (do_cint_test): New selftest function.
8380 (copy_integer_to_size_test): Likewise.
8381 (_initialize_findvar): Likewise.
8382 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8383 (mips_fbsd_collect_reg): Use raw_collect_integer.
8384 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8385 (mips64_fill_gregset): Use raw_collect_integer
8386 (mips64_fill_fpregset): Use raw_supply_integer.
8387 * regcache.c (regcache::raw_supply_integer): New function.
8388 (regcache::raw_collect_integer): Likewise.
8389 * regcache.h: (regcache::raw_supply_integer): New declaration.
8390 (regcache::raw_collect_integer): Likewise.
8391
8392 2017-05-24 Yao Qi <yao.qi@linaro.org>
8393
8394 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8395 (COMMON_OBS): Add gdbarch-selftests.o.
8396 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8397 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8398 * gdbarch-selftests.c: New file.
8399 * regcache.h (regcache) <~regcache>: Mark it virtual if
8400 GDB_SELF_TEST.
8401 <raw_write>: Likewise.
8402
8403 2017-05-24 Yao Qi <yao.qi@linaro.org>
8404
8405 * regcache.c (current_regcache): Change it to
8406 regcache::current_regcache.
8407 (regcache_observer_target_changed): Update.
8408 (regcache_thread_ptid_changed): Make it a regcache static
8409 method.
8410 (regcache_thread_ptid_changed): Update.
8411 (class regcache_access): New.
8412 (current_regcache_test): Update.
8413 (_initialize_regcache): Update.
8414 * regcache.h: Include forward_list.
8415 (regcache): Declare regcache_thread_ptid_changed and declare
8416 registers_changed_ptid as friend.
8417
8418 2017-05-24 Yao Qi <yao.qi@linaro.org>
8419
8420 * i387-tdep.c (i387_register_to_value): Use register_size
8421 instead of TYPE_LENGTH.
8422 * m68k-tdep.c (m68k_register_to_value): Likewise.
8423
8424 2017-05-24 Yao Qi <yao.qi@linaro.org>
8425
8426 * i387-tdep.c (i387_convert_register_p): Return false if type
8427 code isn't TYPE_CODE_FLT.
8428
8429 2017-05-24 Yao Qi <yao.qi@linaro.org>
8430
8431 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8432 length is 4.
8433 (alpha_register_to_value): Remove type length check.
8434 (alpha_value_to_register): Likewise.
8435
8436 2017-05-24 Yao Qi <yao.qi@linaro.org>
8437
8438 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8439 TYPE_CODE_FLT.
8440
8441 2017-05-24 Yao Qi <yao.qi@linaro.org>
8442
8443 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8444 TYPE_CODE_FLT or not.
8445
8446 2017-05-24 Yao Qi <yao.qi@linaro.org>
8447
8448 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8449 * avr-tdep.c (avr_gdbarch_init): Likewise.
8450 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8451 * cris-tdep.c (cris_gdbarch_init): Likewise.
8452 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8453 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8454 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8456 * mep-tdep.c (mep_gdbarch_init): Likewise.
8457 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8458 * mips-tdep.c (mips_gdbarch_init): Likewise.
8459 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8460 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8461 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8462 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8463 * v850-tdep.c (v850_gdbarch_init): Likewise.
8464
8465 2017-05-24 Yao Qi <yao.qi@linaro.org>
8466
8467 * selftest-arch.c (tests_with_arch): Call registers_changed
8468 and reinit_frame_cache.
8469 * selftest.c (run_self_tests): Likewise.
8470
8471 2017-05-24 Yao Qi <yao.qi@linaro.org>
8472
8473 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8474 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8475
8476 2017-05-24 Yao Qi <yao.qi@linaro.org>
8477
8478 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8479 set_gdbarch_print_insn.
8480
8481 2017-05-24 Yao Qi <yao.qi@linaro.org>
8482
8483 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8484 set_gdbarch_print_insn.
8485
8486 2017-05-24 Yao Qi <yao.qi@linaro.org>
8487
8488 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8489 set_gdbarch_print_insn.
8490 * arc-tdep.c (arc_gdbarch_init): Likewise.
8491 * arch-utils.c: include dis-asm.h.
8492 (default_print_insn): New function.
8493 * arch-utils.h (default_print_insn): Declare.
8494 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8495 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8496 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8497 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8498 * frv-tdep.c (frv_gdbarch_init): Likewise.
8499 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8500 * gdbarch.sh (print_insn): Use default_print_insn.
8501 * gdbarch.c: Regenerated.
8502 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8503 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8504 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8505 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8506 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8507 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8508 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8509 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8510 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8511 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8512 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8513 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8514 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8515 * mt-tdep.c (mt_gdbarch_init): Likewise.
8516 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8517 * nios2-tdep.c (nios2_print_insn): Remove.
8518 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8519 * rx-tdep.c (rx_gdbarch_init): Likewise.
8520 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8521 * score-tdep.c (score_print_insn): Remove.
8522 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8523 * sh-tdep.c (sh_gdbarch_init): Likewise.
8524 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8525 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8526 * tic6x-tdep.c (tic6x_print_insn): Remove.
8527 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8528 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8529 * v850-tdep.c (v850_gdbarch_init): Likewise.
8530 * vax-tdep.c (vax_gdbarch_init): Likewise.
8531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8532 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8533
8534 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8535
8536 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8537 (MIPS_FP0_REGNUM): Remove.
8538 (MIPS_FSR_REGNUM): Remove.
8539 (mips_fbsd_supply_fpregs): Use mips_regnum.
8540 (mips_fbsd_supply_gregs): Likewise.
8541 (mips_fbsd_collect_fpregs): Likewise.
8542 (mips_fbsd_collect_gregs): Likewise.
8543
8544 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8545
8546 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8547 (getpfpregs_supplies): New function.
8548 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8549 getfpregs_supplies.
8550 (mips_fbsd_store_inferior_registers): Likewise.
8551
8552 2017-05-22 Pedro Alves <palves@redhat.com>
8553
8554 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8555 maintainer.
8556
8557 2017-05-22 Alan Hayward <alan.hayward@arm.com>
8558
8559 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8560 (store_register): Likewise.
8561 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8562 (get_decimal_float_return_value): Likewise.
8563 (do_ppc_sysv_return_value): Likewise.
8564 (ppc64_sysv_abi_push_integer): Likewise.
8565 (ppc64_sysv_abi_push_freg): Likewise.
8566 (ppc64_sysv_abi_return_value_base): Likewise.
8567 (ppc64_sysv_abi_return_value): Likewise.
8568 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8569 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8570 * rs6000-nat.c: Likewise.
8571 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8572 (rs6000_value_to_register): Likewise.
8573 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8574
8575 2017-05-21 Tom Tromey <tom@tromey.com>
8576
8577 PR rust/21466:
8578 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8579 arrays as "[T]", not "[T; ]".
8580
8581 2017-05-19 Tom Tromey <tom@tromey.com>
8582
8583 PR rust/21484:
8584 * rust-lang.c (exp_descriptor_rust): New function.
8585 (rust_language_defn): Use it.
8586 * p-lang.c (pascal_language_defn): Update.
8587 * opencl-lang.c (opencl_language_defn): Update.
8588 * objc-lang.c (objc_language_defn): Update.
8589 * m2-lang.c (m2_language_defn): Update.
8590 * language.h (struct language_defn)
8591 <la_watch_location_expression>: New member.
8592 * language.c (unknown_language_defn, auto_language_defn)
8593 (local_language_defn): Update.
8594 * go-lang.c (go_language_defn): Update.
8595 * f-lang.c (f_language_defn): Update.
8596 * d-lang.c (d_language_defn): Update.
8597 * c-lang.h (c_watch_location_expression): Declare.
8598 * c-lang.c (c_watch_location_expression): New function.
8599 (c_language_defn, cplus_language_defn, asm_language_defn)
8600 (minimal_language_defn): Use it.
8601 * breakpoint.c (watch_command_1): Call
8602 la_watch_location_expression.
8603 * ada-lang.c (ada_language_defn): Update.
8604
8605 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8606
8607 PR tui/21482
8608 * gdb_curses.h (NOMACROS): Define.
8609 (NCURSES_NOMACROS): Define.
8610
8611 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8612
8613 PR tui/21482
8614 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8615 arg to char *.
8616 * tui/tui-wingeneral.c (box_win): Likewise.
8617 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8618 (tui_show_source_line): Likewise.
8619 (tui_show_exec_info_content): Likewise.
8620
8621 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8622
8623 * sparc-tdep.c (sparc_structure_return_p)
8624 (sparc_arg_on_registers_p): New functions.
8625 (sparc32_store_arguments): Use them.
8626 * sparc64-tdep.c (sparc64_16_byte_align_p)
8627 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8628 Handle TYPE_CODE_ARRAY.
8629
8630 2017-05-17 Yao Qi <yao.qi@linaro.org>
8631
8632 * cli/cli-decode.c (add_alias_cmd): New function.
8633 * command.h (add_alias_cmd): Declare.
8634 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8635 instead call add_alias_cmd.
8636
8637 2017-05-17 Pedro Alves <palves@redhat.com>
8638
8639 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8640 (nat_makefile_frag): ... this. All references updated.
8641 * configure.ac: Likewise.
8642 * configure.nat: Likewise. Enhance comments.
8643 * configure: Regenerate.
8644
8645 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8646
8647 * procfs.c (procfs_create_inferior): Change prototype to match
8648 definition.
8649
8650 2017-05-13 Eli Zaretskii <eliz@gnu.org>
8651
8652 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8653 C++ compiler warning.
8654
8655 2017-05-12 Tom Tromey <tom@tromey.com>
8656
8657 PR rust/21483:
8658 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8659 recurse, just call value_struct_elt directly.
8660
8661 2017-05-12 Tom Tromey <tom@tromey.com>
8662
8663 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8664 OP_RUST_ARRAY>: Fix.
8665
8666 2017-05-12 Tom Tromey <tom@tromey.com>
8667
8668 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8669
8670 2017-05-09 Yao Qi <yao.qi@linaro.org>
8671
8672 * regcache.c: Include <forward_list>.
8673 (struct regcache_list): Remove.
8674 (current_regcache): Update.
8675 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8676 (regcache_thread_ptid_changed): Likewise.
8677 (registers_changed_ptid): Likewise.
8678 (current_regcache_size): Likewise.
8679
8680 2017-05-09 Yao Qi <yao.qi@linaro.org>
8681
8682 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8683 (current_regcache_size): New function.
8684 (current_regcache_test): New function.
8685 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8686
8687 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8688
8689 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8690 (print_gp_register_row): Use get_frame_register_value.
8691
8692 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8693
8694 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8695 (mips_supply_fpregset): Likewise.
8696 (mips64_supply_gregset): Likewise.
8697
8698 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8699
8700 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8701 regcache->raw_supply_zeroed.
8702
8703 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8704
8705 * configure.nat: Rearrange 'case' statements to match
8706 host before cpu.
8707
8708 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8709
8710 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8711 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8712 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8713 "@nat_extra_makefile_frag@".
8714 (Makefile): Remove dependency on "@frags@".
8715 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8716 (data-directory/Makefile): Likewise.
8717 * config/aarch64/linux.mh: Deleted; moved contents to
8718 "gdb/configure.nat".
8719 * config/alpha/alpha-linux.mh: Likewise.
8720 * config/alpha/nbsd.mh: Likewise.
8721 * config/arm/linux.mh: Likewise.
8722 * config/arm/nbsdelf.mh: Likewise.
8723 * config/i386/cygwin.mh: Likewise.
8724 * config/i386/cygwin64.mh: Likewise.
8725 * config/i386/darwin.mh: Likewise.
8726 * config/i386/fbsd.mh: Likewise.
8727 * config/i386/fbsd64.mh: Likewise.
8728 * config/i386/go32.mh: Likewise.
8729 * config/i386/i386gnu.mh: Likewise.
8730 * config/i386/i386sol2.mh: Likewise.
8731 * config/i386/linux.mh: Likewise.
8732 * config/i386/linux64.mh: Likewise.
8733 * config/i386/mingw.mh: Likewise.
8734 * config/i386/mingw64.mh: Likewise.
8735 * config/i386/nbsd64.mh: Likewise.
8736 * config/i386/nbsdelf.mh: Likewise.
8737 * config/i386/nto.mh: Likewise.
8738 * config/i386/obsd.mh: Likewise.
8739 * config/i386/obsd64.mh: Likewise.
8740 * config/i386/sol2-64.mh: Likewise.
8741 * config/ia64/linux.mh: Likewise.
8742 * config/m32r/linux.mh: Likewise.
8743 * config/m68k/linux.mh: Likewise.
8744 * config/m68k/nbsdelf.mh: Likewise.
8745 * config/m68k/obsd.mh: Likewise.
8746 * config/m88k/obsd.mh: Likewise.
8747 * config/mips/fbsd.mh: Likewise.
8748 * config/mips/linux.mh: Likewise.
8749 * config/mips/nbsd.mh: Likewise.
8750 * config/mips/obsd64.mh: Likewise.
8751 * config/pa/linux.mh: Likewise.
8752 * config/pa/nbsd.mh: Likewise.
8753 * config/pa/obsd.mh: Likewise.
8754 * config/powerpc/aix.mh: Likewise.
8755 * config/powerpc/fbsd.mh: Likewise.
8756 * config/powerpc/linux.mh: Likewise.
8757 * config/powerpc/nbsd.mh: Likewise.
8758 * config/powerpc/obsd.mh: Likewise.
8759 * config/powerpc/ppc64-linux.mh: Likewise.
8760 * config/powerpc/spu-linux.mh: Likewise.
8761 * config/s390/linux.mh: Likewise.
8762 * config/sh/nbsd.mh: Likewise.
8763 * config/sparc/fbsd.mh: Likewise.
8764 * config/sparc/linux.mh: Likewise.
8765 * config/sparc/linux64.mh: Likewise.
8766 * config/sparc/nbsd64.mh: Likewise.
8767 * config/sparc/nbsdelf.mh: Likewise.
8768 * config/sparc/obsd64.mh: Likewise.
8769 * config/sparc/sol2.mh: Likewise.
8770 * config/tilegx/linux.mh: Likewise.
8771 * config/vax/nbsdelf.mh: Likewise.
8772 * config/vax/obsd.mh: Likewise.
8773 * config/xtensa/linux.mh: Likewise.
8774 * config/i386/i386gnu.mn: New file, with excerpts from
8775 "config/i386/i386gnu.mh".
8776 * configure: Regenerate.
8777 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
8778 *.mh files under "gdb/config".
8779 * configure.nat: New file, with contents from the
8780 "gdb/config/*/*.mh" files.
8781
8782 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
8783
8784 * btrace.c (btrace_clear): Free insn vector.
8785
8786 2017-05-05 Pedro Alves <palves@redhat.com>
8787
8788 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
8789 * configure: Regenerate.
8790
8791 2017-05-04 Pedro Alves <palves@redhat.com>
8792
8793 * Makefile.in (SFILES): Add progspace-and-thread.c.
8794 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
8795 (COMMON_OBS): Add progspace-and-thread.o.
8796 * breakpoint.c: Include "progspace-and-thread.h".
8797 (update_inserted_breakpoint_locations)
8798 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
8799 Use scoped_restore_current_pspace_and_thread.
8800 (create_std_terminate_master_breakpoint): Use
8801 scoped_restore_current_program_space.
8802 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
8803 (print_breakpoint_location): Use
8804 scoped_restore_current_program_space.
8805 (bp_loc_is_permanent): Use
8806 scoped_restore_current_pspace_and_thread.
8807 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
8808 (download_tracepoint_locations): Use
8809 scoped_restore_current_pspace_and_thread.
8810 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
8811 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
8812 (enum step_over_calls_kind): Moved from inferior.h.
8813 (class scoped_restore_current_thread): New class.
8814 * gdbthread.h (make_cleanup_restore_current_thread): Delete
8815 declaration.
8816 (scoped_restore_current_thread): New class.
8817 * infcmd.c: Include "common/gdb_optional.h".
8818 (continue_1, proceed_after_attach): Use
8819 scoped_restore_current_thread.
8820 (notice_new_inferior): Use scoped_restore_current_thread.
8821 * inferior.c: Include "progspace-and-thread.h".
8822 (restore_inferior, save_current_inferior): Delete.
8823 (add_inferior_command, clone_inferior_command): Use
8824 scoped_restore_current_pspace_and_thread.
8825 * inferior.h (scoped_restore_current_inferior): New class.
8826 * infrun.c: Include "progspace-and-thread.h" and
8827 "common/gdb_optional.h".
8828 (follow_fork_inferior): Use
8829 scoped_restore_current_pspace_and_thread.
8830 (scoped_restore_exited_inferior): New class.
8831 (handle_vfork_child_exec_or_exit): Use
8832 scoped_restore_exited_inferior,
8833 scoped_restore_current_pspace_and_thread,
8834 scoped_restore_current_thread and scoped_restore.
8835 (fetch_inferior_event): Use scoped_restore_current_thread.
8836 * linespec.c (decode_line_full, decode_line_1): Use
8837 scoped_restore_current_program_space.
8838 * mi/mi-main.c: Include "progspace-and-thread.h".
8839 (exec_continue): Use scoped_restore_current_thread.
8840 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
8841 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
8842 * proc-service.c (ps_pglobal_lookup): Use
8843 scoped_restore_current_program_space.
8844 * progspace-and-thread.c: New file.
8845 * progspace-and-thread.h: New file.
8846 * progspace.c (release_program_space, clone_program_space): Use
8847 scoped_restore_current_program_space.
8848 (restore_program_space, save_current_program_space)
8849 (save_current_space_and_thread): Delete.
8850 (switch_to_program_space_and_thread): Moved to
8851 progspace-and-thread.c.
8852 * progspace.h (save_current_program_space)
8853 (save_current_space_and_thread): Delete declarations.
8854 (scoped_restore_current_program_space): New class.
8855 * remote.c (remote_btrace_maybe_reopen): Use
8856 scoped_restore_current_thread.
8857 * symtab.c: Include "progspace-and-thread.h".
8858 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
8859 * thread.c (print_thread_info_1): Use
8860 scoped_restore_current_thread.
8861 (struct current_thread_cleanup): Delete.
8862 (do_restore_current_thread_cleanup)
8863 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
8864 (scoped_restore_current_thread::~scoped_restore_current_thread):
8865 ... this new dtor.
8866 (make_cleanup_restore_current_thread): Rename/convert to ...
8867 (scoped_restore_current_thread::scoped_restore_current_thread):
8868 ... this new ctor.
8869 (thread_apply_all_command): Use scoped_restore_current_thread.
8870 (thread_apply_command): Use scoped_restore_current_thread.
8871 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
8872 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
8873
8874 2017-05-04 Pedro Alves <palves@redhat.com>
8875
8876 * thread.c (make_cleanup_restore_current_thread): Move
8877 find_thread_ptid call before the is_stopped call. Assert that the
8878 thread is found. Replace is_stopped call by checking the thread's
8879 state directly. Remove unnecessary NULL-thread check.
8880
8881 2017-05-04 Pedro Alves <palves@redhat.com>
8882
8883 * corelow.c (thread_section_name): New class.
8884 (get_core_register_section, get_core_siginfo): Use it.
8885
8886 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8887
8888 * corelow.c (sniff_core_bfd): Remove extra semicolon.
8889 (get_core_register_section): Remove xfree of NULL pointer.
8890
8891 2017-05-03 Alan Hayward <alan.hayward@arm.com>
8892
8893 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
8894 * regcache.c (regcache::raw_supply_zeroed): New function.
8895 * regcache.h (regcache::raw_supply_zeroed): New declaration.
8896
8897 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
8898
8899 * gdbarch.sh: Remove commented out definition of
8900 TARGET_CHAR_BIT.
8901 * gdbarch.h: Re-generate.
8902
8903 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
8904
8905 * configure: Regenerate.
8906
8907 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
8908
8909 * solib-target.c (solib_target_relocate_section_addresses):
8910 Remove num_section_bases, num_bases, segment_bases variables.
8911
8912 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8913
8914 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
8915
8916 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8917
8918 * solib-target.c: Include <vector>
8919 (struct lm_info_target) <~lm_info_target>: Remove.
8920 <segment_bases, section_bases>: Change type to
8921 std::vector<CORE_ADDR>.
8922 (library_list_start_segment, library_list_start_section,
8923 library_list_end_library,
8924 solib_target_relocate_section_addresses): Adjust.
8925
8926 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8927
8928 * gdbarch.sh (software_single_step): Change return type to
8929 std::vector<CORE_ADDR>.
8930 * gdbarch.c, gdbarch.h: Re-generate.
8931 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
8932 Adjust.
8933 (arm_deal_with_atomic_sequence_raw): Adjust.
8934 (thumb_get_next_pcs_raw): Adjust.
8935 (arm_get_next_pcs_raw): Adjust.
8936 (arm_get_next_pcs): Adjust.
8937 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
8938 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
8939 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
8940 (alpha_software_single_step): Adjust.
8941 * alpha-tdep.h (alpha_software_single_step): Adjust.
8942 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
8943 * arm-tdep.c (arm_software_single_step): Adjust.
8944 (arm_breakpoint_kind_from_current_state): Adjust.
8945 * arm-tdep.h (arm_software_single_step): Adjust.
8946 * breakpoint.c (insert_single_step_breakpoint): Adjust.
8947 * cris-tdep.c (cris_software_single_step): Adjust.
8948 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
8949 (micromips_deal_with_atomic_sequence): Adjust.
8950 (deal_with_atomic_sequence): Adjust.
8951 (mips_software_single_step): Adjust.
8952 * mips-tdep.h (mips_software_single_step): Adjust.
8953 * moxie-tdep.c (moxie_software_single_step): Adjust.
8954 * nios2-tdep.c (nios2_software_single_step): Adjust.
8955 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
8956 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
8957 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
8958 * s390-linux-tdep.c (s390_software_single_step): Adjust.
8959 * sparc-tdep.c (sparc_software_single_step): Adjust.
8960 * spu-tdep.c (spu_software_single_step): Adjust.
8961 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
8962
8963 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8964
8965 * gdbarch.sh: Use semi-colon as field separator instead of colon.
8966 * gdbarch.h: Re-generate.
8967
8968 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8969
8970 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
8971 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
8972 * python/py-instruction.c, python/py-instruction.h: New file.
8973 * python/py-record.c: Add py-instruction.h include.
8974 (gdbpy_initialize_record): Make gdb.Instruction a super class of
8975 gdb.RecordInstruction.
8976 * python/python-internal.h: Add gdbpy_initialize_instruction
8977 declaration.
8978 * python/python.c (do_start_initialization): Add
8979 gdbpy_initialize_instruction.
8980
8981 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8982
8983 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
8984 Remove.
8985 (btrace_func_from_recpy_func): New function.
8986 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
8987 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
8988 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
8989 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
8990 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
8991 Also, use new helper functions.
8992 (btpy_list_item): Use new helper functions.
8993 (recpy_bt_function_call_history): Use new type name.
8994 (btpy_call_getset): Remove.
8995 (gdbpy_initialize_btrace): Remove code to initialize
8996 gdb.BtraceFunctionCall.
8997 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
8998 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
8999 recpy_bt_func_prev, recpy_bt_func_next): New export.
9000 * python/py-record.c (recpy_func_type): New static object.
9001 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9002 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9003 recpy_func_next): New function.
9004 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9005 (recpy_func_getset): New static object.
9006 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9007 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9008
9009 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9010
9011 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9012 (btpy_object, btpy_insn_type, btpy_new): Remove.
9013 (btpy_list_object): Use gdb.RecordInstruction type instead of
9014 gdb.BtraceInstruction type.
9015 (btrace_insn_from_recpy_insn): New function.
9016 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9017 btpy_new.
9018 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9019 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9020 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9021 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9022 instead of btpy_object.
9023 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9024 btpy_insn_data, btpy_insn_decode): Rename to ...
9025 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9026 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9027 recpy_bt_insn_decode): This. Also, use new helper functions.
9028 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9029 recpy_insn_type.
9030 (btpy_insn_getset): Remove.
9031 (gdbpy_initialize_btrace): Remove code to initialize
9032 gdb.BtraceInstruction. Use recpy_element_object.
9033 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9034 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9035 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9036 * python/py-record.c (recpy_insn_type): New static object.
9037 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9038 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9039 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9040 New function.
9041 (recpy_insn_getset): New static object.
9042 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9043 * python/py-record.h (recpy_element_object): New typedef.
9044 (recpy_insn_type, recpy_insn_new): New export.
9045
9046 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9047
9048 * py-record-btrace.c (btpy_insn_new): Removed.
9049 (btpy_insn_or_gap_new): New function.
9050 (btpy_insn_error): Removed.
9051 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9052 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9053 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9054 btpy_insn_or_gap_new instead of btpy_insn_new.
9055 (btpy_insn_getset): Remove btpy_insn_error.
9056 * py-record.c (recpy_gap_type): New static object.
9057 (recpy_gap_object): New typedef.
9058 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9059 recpy_gap_reason_string): New function.
9060 (recpy_gap_getset): New static object.
9061 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9062 * py-record.h (recpy_gap_new): New export.
9063
9064 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9065
9066 * python/py-record.c (recpy_ptid): Remove.
9067 (recpy_record_getset): Remove recpy_ptid.
9068
9069 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9070
9071 * btrace.c (btrace_fetch): Set inferior_ptid.
9072 * python/py-record-btrace.c: Add "py-record.h" include.
9073 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9074 recpy_bt_end, recpy_bt_instruction_history,
9075 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9076 in gdb.Record object instead of current ptid.
9077 * python/py-record.c: Include new "py-record.h" file.
9078 (recpy_record_object): Moved to py-record.h.
9079 * python/py-record.h: New file.
9080
9081 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9082
9083 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9084 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9085 indentation.
9086
9087 2017-05-01 Joel Brobecker <brobecker@adacore.com>
9088
9089 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9090 the past maintainers section.
9091
9092 2017-04-28 Yao Qi <yao.qi@linaro.org>
9093
9094 * infcmd.c (get_return_value): Use regcache ctor, and remove
9095 cleanup.
9096
9097 2017-04-28 Yao Qi <yao.qi@linaro.org>
9098 Pedro Alves <palves@redhat.com>
9099
9100 * regcache.c (regcache::regcache): New tag dispatch ctor.
9101 (do_cooked_read): Moved above.
9102 (regcache_dup): Use the tag dispatch ctor..
9103 * regcache.h (regcache): Declare ctor, delete copy ctor and
9104 assignment operator, remove friend regcache_dup.
9105
9106 2017-04-28 Yao Qi <yao.qi@linaro.org>
9107
9108 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9109 call method save instead of regcache_cpy.
9110 * regcache.h (struct regcache): Make regcache_dup a friend.
9111
9112 2017-04-28 Yao Qi <yao.qi@linaro.org>
9113
9114 * regcache.c (struct regcache): Move to regcache.h
9115 (regcache::arch): New method.
9116 (regcache_get_ptid): Update.
9117 (get_regcache_arch): Call arch method.
9118 (get_regcache_aspace): Call method aspace.
9119 (register_buffer): Change it to method.
9120 (regcache_save): Change it to regcache::save.
9121 (regcache_restore): Likewise.
9122 (regcache_cpy_no_passthrough): Remove the declaration.
9123 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9124 (regcache_cpy_no_passthrough): Change it to method
9125 cpy_no_passthrough.
9126 (regcache_register_status): Change it to method
9127 get_register_status.
9128 (regcache_invalidate): Change it to method invalidate.
9129 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9130 (regcache_raw_update): Change it to method raw_update.
9131 (regcache_raw_read): Likewise.
9132 (regcache_raw_read_signed): Likewise.
9133 (regcache_raw_read_unsigned): Likewise.
9134 (regcache_raw_write_signed): Likewise.
9135 (regcache_raw_write_unsigned): Likewise.
9136 (regcache_cooked_read): Likewise.
9137 (regcache_cooked_read_value): Likewise.
9138 (regcache_cooked_read_signed): Likewise.
9139 (regcache_cooked_read_unsigned): Likewise.
9140 (regcache_cooked_write_signed): Likewise.
9141 (regcache_cooked_write_unsigned): Likewise.
9142 (regcache_raw_set_cached_value): Likewise.
9143 (regcache_raw_write): Likewise.
9144 (regcache_cooked_write): Likewise.
9145 (regcache_xfer_part): Likewise.
9146 (regcache_raw_read_part): Likewise.
9147 (regcache_raw_write_part): Likewise.
9148 (regcache_cooked_read_part): Likewise.
9149 (regcache_cooked_write_part): Likewise.
9150 (regcache_raw_supply): Likewise.
9151 (regcache_raw_collect): Likewise.
9152 (regcache_transfer_regset): Likewise.
9153 (regcache_supply_regset): Likewise.
9154 (regcache_collect_regset): Likewise.
9155 (regcache_debug_print_register): Likewise.
9156 (enum regcache_dump_what): Move it to regcache.h.
9157 (regcache_dump): Change it to method dump.
9158 * regcache.h (enum regcache_dump_what): New.
9159 (class regcache): New.
9160 * target.c (target_fetch_registers): Call method
9161 debug_print_register.
9162 (target_store_registers): Likewise.
9163
9164 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9165
9166 * windows-nat.c (struct lm_info_windows): Initialize field.
9167 (windows_make_so): Allocate lm_info_windows with new.
9168 (windows_free_so): Free lm_info_windows with delete.
9169
9170 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9171
9172 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9173 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9174 cleanup.
9175 (darwin_free_so): Free lm_info_darwin with delete.
9176
9177 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9178
9179 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9180 <l_addr_p>: Change type to bool.
9181 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9182 (svr4_free_so): Free lm_info_svr4 with delete.
9183 (svr4_copy_library_list): Replace memcpy with call to copy
9184 constructor.
9185 (library_list_start_library, svr4_default_sos): Allocate
9186 lm_info_svr4 with new.
9187
9188 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9189
9190 * solib-target.c (struct lm_info_target): Add destructor,
9191 initialize fields.
9192 <name>: Change type to std::string.
9193 (library_list_start_library): Allocate lm_info_target with new.
9194 (solib_target_free_library_list): Free lm_info_target with
9195 delete.
9196 (solib_target_current_sos): Adapt to std::string.
9197 (solib_target_free_so): Free lm_info_target with delete.
9198
9199 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9200
9201 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9202 fields.
9203 (frv_current_sos): Allocate lm_info_frv with new.
9204 (frv_relocate_main_executable): Free lm_info_frv with delete,
9205 allocate with new.
9206 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9207
9208 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9209
9210 * solib-frv.c (struct lm_info_frv): Fix indentation.
9211
9212 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9213
9214 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9215 map field.
9216 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9217 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9218 and allocate with new.
9219 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9220
9221 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9222
9223 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9224 <filename, member_name>: Change type to std::string.
9225 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9226 (library_list_start_library): Allocate lm_info_aix with new.
9227 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9228 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9229 with copy constructor.
9230
9231 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9232
9233 * solist.h (struct lm_info): Remove.
9234 (struct lm_info_base): New class.
9235 (struct so_list) <lm_info>: Change type to lm_info_base *.
9236 * nto-tdep.c (struct lm_info): Remove.
9237 (lm_addr): Adjust.
9238 * solib-aix.c (struct lm_info): Rename to ...
9239 (struct lm_info_aix): ... this. Extend lm_info_base.
9240 (lm_info_p): Rename to ...
9241 (lm_info_aix_p): ... this, and adjust.
9242 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9243 solib_aix_parse_libraries, library_list_start_library,
9244 solib_aix_free_library_list, solib_aix_parse_libraries,
9245 solib_aix_get_library_list,
9246 solib_aix_relocate_section_addresses, solib_aix_free_so,
9247 solib_aix_get_section_offsets,
9248 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9249 Adjust.
9250 (struct solib_aix_inferior_data) <library_list>: Adjust.
9251 * solib-darwin.c (struct lm_info): Rename to ...
9252 (struct lm_info_darwin): ... this. Extend lm_info_base.
9253 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9254 * solib-dsbt.c (struct lm_info): Rename to ...
9255 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9256 (struct dsbt_info) <main_executable_lm_info): Adjust.
9257 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9258 dsbt_relocate_section_addresses): Adjust.
9259 * solib-frv.c (struct lm_info): Rename to ...
9260 (struct lm_info_frv): ... this. Extend lm_info_base.
9261 (main_executable_lm_info): Adjust.
9262 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9263 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9264 find_canonical_descriptor_in_load_object,
9265 frv_fdpic_find_canonical_descriptor): Adjust.
9266 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9267 to lm_info_svr4.
9268 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9269 svr4_clear_so, svr4_copy_library_list,
9270 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9271 svr4_current_sos, svr4_fetch_objfile_link_map,
9272 solist_update_incremental): Adjust.
9273 * solib-svr4.h (struct lm_info_svr4): Move here from
9274 solib-svr4.c.
9275 * solib-target.c (struct lm_info): Rename to ...
9276 (struct lm_info_target): ... this. Extend lm_info_base.
9277 (lm_info_p): Rename to ...
9278 (lm_info_target_p): ... this.
9279 (solib_target_parse_libraries, library_list_start_segment,
9280 library_list_start_section, library_list_start_library,
9281 library_list_end_library, solib_target_free_library_list,
9282 solib_target_current_sos, solib_target_free_so,
9283 solib_target_relocate_section_addresses): Adjust.
9284 * windows-nat.c (struct lm_info): Rename to ...
9285 (struct lm_info_windows): ... this. Extend lm_info_base.
9286 (windows_make_so, handle_load_dll, handle_unload_dll,
9287 windows_xfer_shared_libraries): Adjust.
9288
9289 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9290
9291 * solib-darwin.c (struct darwin_so_list): Remove.
9292 (darwin_current_sos): Allocate an so_list object instead of a
9293 darwin_so_list, separately allocate an lm_info object.
9294 (darwin_free_so): Free lm_info.
9295
9296 2017-04-28 John Baldwin <jhb@FreeBSD.org>
9297
9298 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9299 with fprintf_filtered.
9300
9301 2017-04-28 Yao Qi <yao.qi@linaro.org>
9302
9303 * regcache.c (regcache::regcache): New function.
9304 (regcache::~regcache): New function.
9305 (regcache_xmalloc_1): Remove.
9306 (regcache_xmalloc): Call new regcache.
9307 (regcache_xfree): Call delete regcache.
9308 (get_thread_arch_aspace_regcache): Call new regcache.
9309
9310 2017-04-28 Yao Qi <yao.qi@linaro.org>
9311
9312 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9313 lwp instead of ptid_get_lwp.
9314
9315 2017-04-28 Yao Qi <yao.qi@linaro.org>
9316
9317 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9318 lwp_info instead of getting from inferior_ptid.
9319
9320 2017-04-27 Keith Seitz <keiths@redhat.com>
9321
9322 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9323 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9324 (CV_CONVERSION_BADNESS): Define.
9325 (rank_one_type): Remove overly restrictive rvalue reference
9326 rank checks.
9327 Add cv-qualifier checks and subranks for type equality.
9328 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9329 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9330 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9331
9332 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9333
9334 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9335 count when creating the object.
9336
9337 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9338 Ulrich Weigand <uweigand@de.ibm.com>
9339
9340 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9341 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9342 is used in AIX.
9343 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9344 (process_xcoff_symbol): Likewise.
9345 (scan_xcoff_symtab): Likewise.
9346
9347 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9348
9349 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9350 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9351 (ia64_access_reg): Use get_frame_register_unsigned.
9352 (ia64_access_rse_reg): Likewise.
9353 (ia64_libunwind_frame_prev_register): Likewise.
9354
9355 2017-04-26 Jiong Wang <jiong.wang@arm.com>
9356
9357 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9358 * gdbarch.c: Regenerated.
9359 * gdbarch.h: Regenerated.
9360 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9361 visibility external.
9362 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9363 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9364 (enum cfa_how_kind): Move to ...
9365 (struct dwarf2_frame_state_reg_info): Likewise.
9366 (struct dwarf2_frame_state): Likewise.
9367 * dwarf2-frame.h: ... here.
9368 (dwarf2_frame_state_alloc_regs): New declaration.
9369 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9370 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9371
9372 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9373
9374 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9375 regcache_raw_read_unsigned.
9376 (xtensa_pseudo_register_write): Likewise.
9377
9378 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9379
9380 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9381 (nds32_pseudo_register_write): Likewise.
9382
9383 2017-04-25 Yao Qi <yao.qi@linaro.org>
9384
9385 * regcache.c (struct regcache) <readonly_p>: Change its type
9386 to bool.
9387 (regcache_xmalloc_1): Update parameter type and callers update.
9388
9389 2017-04-25 Yao Qi <yao.qi@linaro.org>
9390
9391 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9392 set_gdbarch_wchar_bit.
9393 * arm-tdep.c (arm_gdbarch_init): Likewise.
9394
9395 2017-04-25 Pedro Alves <palves@redhat.com>
9396
9397 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9398 (BothAreRelocatable, memcopy, memmove): Don't define.
9399 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9400 macros.
9401
9402 2017-04-25 Pedro Alves <palves@redhat.com>
9403
9404 * common/common-defs.h: Include "common/poison.h".
9405 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9406 and adjust.
9407 * common/poison.h: New file.
9408 * common/traits.h: Include <type_traits>.
9409 (Not, Or, Requires): New, moved from common/function-view.h.
9410
9411 2017-04-25 Pedro Alves <palves@redhat.com>
9412
9413 * breakpoint.h (struct breakpoint): In-class initialize all
9414 fields. Make boolean fields "bool".
9415 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9416 memset call and initializations no longer necessary.
9417
9418 2017-04-25 Pedro Alves <palves@redhat.com>
9419
9420 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9421 reference.
9422 (pt_btrace_insn): New function.
9423 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9424
9425 2017-04-25 Pedro Alves <palves@redhat.com>
9426
9427 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9428 "base" field and inherit from "bp_location" instead. Add
9429 non-default ctor.
9430 (allocate_location_exception): Use new non-default ctor.
9431 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9432 (init_bp_location): Convert to ...
9433 (bp_location::bp_location): ... this new ctor, and remove memset
9434 call.
9435 (base_breakpoint_allocate_location): Use the new non-default ctor.
9436 * breakpoint.h (bp_location): Now a class. Declare default and
9437 non-default ctors. In-class initialize all members.
9438 (init_bp_location): Remove declaration.
9439
9440 2017-04-25 Pedro Alves <palves@redhat.com>
9441
9442 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9443 assignment operator.
9444
9445 2017-04-24 Yao Qi <yao.qi@linaro.org>
9446
9447 * doublest.c (convert_doublest_to_floatformat): Call
9448 floatformat_totalsize_bytes.
9449
9450 2017-04-22 Tom Tromey <tom@tromey.com>
9451
9452 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9453 ui_out_emit_list.
9454 * stack.c (print_frame): Use ui_out_emit_list.
9455 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9456 ui_out_emit_list.
9457 * mi/mi-main.c (print_one_inferior)
9458 (mi_cmd_data_list_register_names)
9459 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9460 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9461 ui_out_emit_list.
9462 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9463 (mi_output_solib_attribs): Use ui_out_emit_list,
9464 ui_out_emit_tuple.
9465 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9466 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9467 (mi_cmd_stack_list_args, list_args_or_locals): Use
9468 ui_out_emit_list.
9469 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9470 * breakpoint.c (print_solib_event, output_thread_groups): Use
9471 ui_out_emit_list.
9472
9473 2017-04-22 Tom Tromey <tom@tromey.com>
9474
9475 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9476 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9477 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9478
9479 2017-04-22 Tom Tromey <tom@tromey.com>
9480
9481 * tracepoint.c (tvariables_info_1)
9482 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9483
9484 2017-04-22 Tom Tromey <tom@tromey.com>
9485
9486 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9487 annotate_arg_emitter.
9488 * breakpoint.c (print_mention_watchpoint)
9489 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9490 * annotate.h (struct annotate_arg_emitter): New.
9491
9492 2017-04-22 Tom Tromey <tom@tromey.com>
9493
9494 * record-btrace.c (record_btrace_insn_history)
9495 (record_btrace_insn_history_range, record_btrace_call_history)
9496 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9497 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9498 ui_out_emit_tuple.
9499 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9500 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9501 * skip.c (skip_info): Use ui_out_emit_tuple.
9502 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9503 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9504 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9505 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9506 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9507 ui_out_emit_tuple.
9508 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9509 (output_register, mi_cmd_data_read_memory)
9510 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9511 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9512 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9513 Use ui_out_emit_tuple.
9514 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9515 ui_out_emit_tuple.
9516 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9517 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9518 * linux-thread-db.c (info_auto_load_libthread_db): Use
9519 ui_out_emit_tuple.
9520 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9521 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9522 * disasm.c (do_mixed_source_and_assembly_deprecated)
9523 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9524 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9525 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9526 * breakpoint.c (print_one_breakpoint_location)
9527 (print_one_breakpoint): Use ui_out_emit_tuple.
9528 * auto-load.c (print_script, info_auto_load_cmd): Use
9529 ui_out_emit_tuple.
9530 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9531
9532 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9533
9534 * thread.c (print_thread_info_1): Remove dead code.
9535
9536 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9537
9538 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9539 GDB_SELF_TEST.
9540 * arm-tdep.c (selftests::arm_record_test): Likewise.
9541
9542 2017-04-21 Yao Qi <yao.qi@linaro.org>
9543
9544 * regcache.c (regcache_restore): Remove argument 2. Replace
9545 argument 3 with regcache. Get register status from
9546 src->register_status and get register contents from
9547 register_buffer (src, regnum).
9548 (regcache_cpy): Update.
9549
9550 2017-04-19 Pedro Alves <palves@redhat.com>
9551
9552 * gdbthread.h (thread): Add missing closing parenthesis in
9553 comment.
9554
9555 2017-04-19 Pedro Alves <palves@redhat.com>
9556
9557 * common/refcounted-object.h: New file.
9558 * gdbthread.h: Include "common/refcounted-object.h".
9559 (thread_info): Inherit from refcounted_object and add comments.
9560 (thread_info::incref, thread_info::decref)
9561 (thread_info::m_refcount): Delete.
9562 (thread_info::deletable): Use the refcounted_object::refcount()
9563 method.
9564 * inferior.c (current_inferior_): Add comment.
9565 (set_current_inferior): Increment/decrement refcounts.
9566 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9567 not-deletable instead of comparing with the current inferior.
9568 (initialize_inferiors): Increment the initial inferior's refcount.
9569 * inferior.h (struct inferior): Forward declare.
9570 Include "common/refcounted-object.h".
9571 (current_inferior, set_current_inferior): Move declaration to
9572 before struct inferior's definition, and fix comment.
9573 (inferior): Inherit from refcounted_object. Add comments.
9574 * thread.c (switch_to_thread_no_regs): Reference the thread's
9575 inferior pointer directly instead of doing a ptid lookup.
9576 (switch_to_no_thread): New function.
9577 (switch_to_thread(thread_info *)): New function, factored out
9578 from ...
9579 (switch_to_thread(ptid_t)): ... this.
9580 (restore_current_thread): Delete.
9581 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9582 fields, and add 'inf' field.
9583 (do_restore_current_thread_cleanup): Check whether old->inf is
9584 alive instead of looking up an inferior by ptid. Use
9585 switch_to_thread and switch_to_no_thread.
9586 (restore_current_thread_cleanup_dtor): Use old->inf directly
9587 instead of lookup up an inferior by id. Decref the inferior.
9588 Don't restore 'removable'.
9589 (make_cleanup_restore_current_thread): Same the inferior pointer
9590 in old, instead of the inferior number. Incref the inferior.
9591 Don't save/clear 'removable'.
9592
9593 2017-04-19 Pedro Alves <palves@redhat.com>
9594
9595 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9596 unittests/scoped_restore-selftests.c.
9597 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9598 * common/scoped_restore.h (scoped_restore_base): Make "class".
9599 (scoped_restore_base::release): New public method.
9600 (scoped_restore_base::scoped_restore_base): New protected ctor.
9601 (scoped_restore_base::m_saved_var): New protected field.
9602 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9603 scoped_restore_base base class instead of m_saved_var directly.
9604 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9605 (scoped_restore_tmpl::scoped_restore_tmpl(const
9606 scoped_restore_tmpl<T>&)): Likewise.
9607 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9608 method.
9609 (scoped_restore_tmpl::saved_var): New method.
9610 (scoped_restore_tmpl::m_saved_var): Delete.
9611 * inferior.h (inferior::detaching): Now a bool.
9612 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9613 cleanup.
9614 * unittests/scoped_restore-selftests.c: New file.
9615
9616 2017-04-19 Pedro Alves <palves@redhat.com>
9617
9618 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9619 Re-sort in alphabetic order.
9620
9621 2017-04-18 Pedro Alves <palves@redhat.com>
9622
9623 * xml-support.c (obstack_xml_printf): Delete.
9624 * xml-support.h (obstack_xml_printf): Delete.
9625
9626 2017-04-18 Pedro Alves <palves@redhat.com>
9627
9628 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9629 vdebug, verror, body_text, start_element, end_element, name,
9630 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9631 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9632 is_xinclude>: Make private and add m_ prefix.
9633 (gdb_xml_parser::body_text): New method, based on ...
9634 (gdb_xml_body_text): ... this. Adjust.
9635 (gdb_xml_parser::vdebug): New method, based on ...
9636 (gdb_xml_debug): ... this. Adjust.
9637 (gdb_xml_parser::verror): New method, based on ...
9638 (gdb_xml_error): ... this. Adjust.
9639 (gdb_xml_parser::start_element): New method, based on ...
9640 (gdb_xml_start_element): ... this. Adjust.
9641 (gdb_xml_start_element_wrapper): Defer to
9642 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9643 (gdb_xml_parser::end_element): New method, based on ...
9644 (gdb_xml_end_element_wrapper): ... this. Adjust.
9645 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9646 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9647 (gdb_xml_parser::use_dtd): New method, based on ...
9648 (gdb_xml_use_dtd): ... this. Adjust.
9649 (gdb_xml_parser::parse): New method, based on ...
9650 (gdb_xml_parse): ... this. Adjust.
9651 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9652 (xinclude_start_include): Adjust to call the parser's name method.
9653 (xml_xinclude_default, xml_xinclude_start_doctype)
9654 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9655 method.
9656 (xml_process_xincludes): Adjust to call parser methods.
9657 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9658 declarations.
9659
9660 2017-04-18 Pedro Alves <palves@redhat.com>
9661
9662 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9663 gdb::optional<std::string>.
9664 * xml-support.c: Include <string>.
9665 (scope_level::scope_level(scope_level &&))
9666 (scope_level::~scope_level): Delete.
9667 (scope_level::body): Now a std::string.
9668 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9669 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9670 parameter.
9671 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9672 (xinclude_parsing_data::output): Now a std::string reference.
9673 (xinclude_start_include): Adjust.
9674 (xml_xinclude_default): Adjust.
9675 (xml_process_xincludes): Add 'output' parameter, and return bool.
9676 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9677 and return bool.
9678 * xml-tdesc.c: Include <unordered_map> and <string>.
9679 (tdesc_xml_cache): Delete.
9680 (tdesc_xml_cache_s): Delete.
9681 (xml_cache): Now an std::unordered_map.
9682 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9683 (target_fetch_description_xml): Change return type to
9684 gdb::optional<std::string>, and adjust.
9685 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9686 (target_fetch_description_xml): Change return type to
9687 gdb::optional<std::string>.
9688
9689 2017-04-18 Pedro Alves <palves@redhat.com>
9690
9691 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9692 unittests/optional-selftests.c.
9693 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9694 * unittests/optional-selftests.c: New file.
9695 * unittests/optional/assignment/1.cc: New file.
9696 * unittests/optional/assignment/2.cc: New file.
9697 * unittests/optional/assignment/3.cc: New file.
9698 * unittests/optional/assignment/4.cc: New file.
9699 * unittests/optional/assignment/5.cc: New file.
9700 * unittests/optional/assignment/6.cc: New file.
9701 * unittests/optional/assignment/7.cc: New file.
9702 * unittests/optional/cons/copy.cc: New file.
9703 * unittests/optional/cons/default.cc: New file.
9704 * unittests/optional/cons/move.cc: New file.
9705 * unittests/optional/cons/value.cc: New file.
9706 * unittests/optional/in_place.cc: New file.
9707 * unittests/optional/observers/1.cc: New file.
9708 * unittests/optional/observers/2.cc: New file.
9709
9710 2017-04-18 Pedro Alves <palves@redhat.com>
9711
9712 * common/gdb_optional.h: Include common/traits.h.
9713 (in_place_t): New type.
9714 (in_place): New constexpr variable.
9715 (optional::optional): Remove member initialization of
9716 m_instantiated.
9717 (optional::optional(in_place_t...)): New constructor.
9718 (optional::~optional): Use reset.
9719 (optional::optional(const optional&)): New.
9720 (optional::optional(const optional&&)): New.
9721 (optional::optional(T &)): New.
9722 (optional::optional(T &&)): New.
9723 (operator::operator=(const optional &)): New.
9724 (operator::operator=(optional &&)): New.
9725 (operator::operator= (const T &))
9726 (operator::operator= (T &&))
9727 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9728 (operator::reset): New.
9729 (operator::m_instantiated):: Add in-class initializer.
9730 * common/traits.h: Include <type_traits>.
9731 (struct And): New types.
9732
9733 2017-04-18 Pedro Alves <palves@redhat.com>
9734
9735 * xml-support.c: Include <vector>.
9736 (scope_level::scope_level(const gdb_xml_element *))
9737 (scope_level::scope_level(scope_level&&)): New.
9738 (scope_level::~scope_level): New.
9739 (scope_level_s): Delete.
9740 (gdb_xml_parser::scopes): Now a std::vector.
9741 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9742 Use std::vector.
9743 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
9744 scope cleanup code.
9745 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
9746 of the scopes member. Use std::vector::emplace_back.
9747
9748 2017-04-18 Pedro Alves <palves@redhat.com>
9749
9750 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
9751 a bool.
9752 (gdb_xml_end_element): Change type of first parameter.
9753 (gdb_xml_cleanup): Rename to ...
9754 (gdb_xml_parser::~gdb_xml_parser): ... this.
9755 (gdb_xml_create_parser_and_cleanup): Delete with ...
9756 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
9757 to this new ctor.
9758 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
9759 using gdb_xml_create_parser_and_cleanup.
9760 (xinclude_parsing_data): Add ctor/dtor.
9761 (xml_xinclude_cleanup): Delete.
9762 (xml_process_xincludes): Create a local xinclude_parsing_data
9763 instead of heap-allocating one. Create a local gdb_xml_parser
9764 instead of heap-allocating one with
9765 gdb_xml_create_parser_and_cleanup.
9766
9767 2017-04-18 John Baldwin <jhb@FreeBSD.org>
9768
9769 PR threads/20743
9770 * fbsd-nat.c (resume_one_thread_cb): Remove.
9771 (resume_all_threads_cb): Remove.
9772 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
9773 iterate_over_threads.
9774
9775 2017-04-17 Joel Brobecker <brobecker@adacore.com>
9776
9777 * NEWS: Create a new section for the next release branch.
9778 Rename the section of the current branch, now that it has
9779 been cut.
9780
9781 2017-04-17 Joel Brobecker <brobecker@adacore.com>
9782
9783 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
9784 * version.in: Bump version to 8.0.50.DATE-git.
9785
9786 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
9787
9788 PR gdb/21385
9789 * windows-nat.c (windows_create_inferior): Declare 'allargs'
9790 independently of the host, and fix build breakage on Cygwin.
9791
9792 2017-04-13 Pedro Alves <palves@redhat.com>
9793
9794 * inferior.c (free_inferior): Convert to ...
9795 (inferior::~inferior): ... this dtor.
9796 (inferior::inferior): New ctor, factored out from ...
9797 (add_inferior_silent): ... here. Allocate the inferior with a new
9798 expression.
9799 (delete_inferior): Call delete instead of free_inferior.
9800 * inferior.h (gdb_environ, continuation): Forward declare.
9801 (inferior): Now a class. Add in-class initialization to all
9802 members. Make boolean fields bool, except 'detaching'.
9803 (inferior::inferior): New explicit ctor.
9804 (inferior::~inferior): New.
9805
9806 2017-04-13 Pedro Alves <palves@redhat.com>
9807
9808 * inferior.c (init_inferior_list): Delete.
9809 * inferior.h (init_inferior_list): Delete.
9810
9811 2017-04-13 Pedro Alves <palves@redhat.com>
9812
9813 PR threads/13217
9814 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
9815 (top level): Call it twice, with different thread sets.
9816
9817 2017-04-13 Pedro Alves <palves@redhat.com>
9818
9819 * thread.c: Include <algorithm>.
9820 (thread_array_cleanup): Delete.
9821 (scoped_inc_dec_ref): New class.
9822 (live_threads_count): New function.
9823 (set_thread_refcount): Delete.
9824 (tp_array_compar_ascending): Now a bool.
9825 (tp_array_compar): Convert to a std::sort comparison function.
9826 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
9827 and live_threads_count.
9828
9829 2017-04-13 Pedro Alves <palves@redhat.com>
9830
9831 * infrun.c (follow_fork_inferior): Also switch the current
9832 inferior.
9833
9834 2017-04-13 Pedro Alves <palves@redhat.com>
9835
9836 * breakpoint.c (watch_command_1): Save watchpoint-frame info
9837 before calling create_internal_breakpoint.
9838
9839 2017-04-13 Pedro Alves <palves@redhat.com>
9840
9841 * fork-child.c (execv_argv): New class.
9842 (breakup_args): Refactored as ...
9843 (execv_argv::init_for_no_shell): .. this method of execv_argv.
9844 Copy arguments to storage and replace separators with NULL
9845 terminators in place.
9846 (escape_bang_in_quoted_argument): Adjust to return bool.
9847 (execv_argv::execv_argv): New ctor.
9848 (execv_argv::init_for_shell): New method, factored out from
9849 fork_inferior. Don't strdup strings into the vector.
9850 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
9851 Remove free_vector_argv call.
9852
9853 2017-04-13 Yao Qi <yao.qi@linaro.org>
9854
9855 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
9856 tdep->rx_psw_type.
9857
9858 2017-04-13 Yao Qi <yao.qi@linaro.org>
9859
9860 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
9861 * rx-tdep.c (rx_gdbarch_init): Likewise.
9862
9863 2017-04-13 Pedro Alves <palves@redhat.com>
9864
9865 * breakpoint.h (struct breakpoint): Reindent.
9866
9867 2017-04-13 Pedro Alves <palves@redhat.com>
9868
9869 * breakpoint.c (bp_location): Rename to ...
9870 (bp_locations): ... this. All references updated.
9871 (bp_location_count): Rename to ...
9872 (bp_locations_count): ... this. All references updated.
9873 (bp_location_placed_address_before_address_max): Rename to ...
9874 (bp_locations_placed_address_before_address_max): ... this. All
9875 references updated.
9876 (bp_location_shadow_len_after_address_max): Rename to ...
9877 (bp_locations_shadow_len_after_address_max): ... this. All
9878 references updated.
9879 (bp_location_compare_addrs): Rename to ...
9880 (bp_locations_compare_addrs): ... this. All references updated.
9881 (bp_location_compare):Rename to ...
9882 (bp_locations_compare): ... this. All references updated.
9883 (bp_location_target_extensions_update): Rename to ...
9884 (bp_locations_target_extensions_update): ... this. All references
9885 updated.
9886
9887 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9888
9889 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
9890 * common/common.m4: Check headers 'termios.h', 'termio.h' and
9891 'sgtty.h'.
9892 * common/gdb_termios.h: New file, with parts of "terminal.h".
9893 * inflow.c: Include "gdb_termios.h".
9894 * ser-unix.c: Include "gdb_termios.h".
9895 * terminal.h: Move terminal-related defines to
9896 "common/gdb_termios.h".
9897
9898 2017-04-12 Tom Tromey <tom@tromey.com>
9899
9900 * probe.c (parse_probes): Update.
9901 * location.h (delete_event_location): Don't declare.
9902 (event_location_deleter::operator()): Update.
9903 * location.c (event_location_deleter::operator()): Rename from
9904 delete_event_location.
9905 * linespec.h (linespec_result) <location>: Change type to
9906 event_location_up.
9907 * linespec.c (canonicalize_linespec, event_location_to_sals)
9908 (decode_objc): Update.
9909 (linespec_result): Don't call delete_event_location.
9910 * breakpoint.c (create_breakpoints_sal)
9911 (bkpt_probe_create_sals_from_location)
9912 (strace_marker_create_sals_from_location): Update.
9913
9914 2017-04-12 Tom Tromey <tom@tromey.com>
9915
9916 * linespec.h (struct linespec_result): Add constructor and
9917 destructor.
9918 (init_linespec_result, destroy_linespec_result)
9919 (make_cleanup_destroy_linespec_result): Don't declare.
9920 * linespec.c (init_linespec_result): Remove.
9921 (linespec_result::~linespec_result): Rename from
9922 destroy_linespec_result. Update.
9923 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
9924 Remove.
9925 * breakpoint.c (create_breakpoint, break_range_command)
9926 (decode_location_default): Update.
9927 * ax-gdb.c (agent_command_1): Update.
9928
9929 2017-04-12 Tom Tromey <tom@tromey.com>
9930
9931 * remote.c (remote_download_tracepoint): Update.
9932 * python/py-breakpoint.c (bppy_get_location): Update.
9933 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
9934 (gdbscm_breakpoint_location): Update.
9935 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
9936 * breakpoint.h (struct breakpoint) <location, location_range_end>:
9937 Change type to event_location_up.
9938 * breakpoint.c (create_overlay_event_breakpoint)
9939 (create_longjmp_master_breakpoint)
9940 (create_std_terminate_master_breakpoint)
9941 (create_exception_master_breakpoint)
9942 (breakpoint_event_location_empty_p, print_breakpoint_location)
9943 (print_one_breakpoint_location, create_thread_event_breakpoint)
9944 (init_breakpoint_sal, create_breakpoint)
9945 (print_recreate_ranged_breakpoint, break_range_command)
9946 (init_ada_exception_breakpoint, say_where): Update.
9947 (base_breakpoint_dtor): Don't call delete_event_location.
9948 (bkpt_print_recreate, tracepoint_print_recreate)
9949 (dprintf_print_recreate, update_static_tracepoint)
9950 (breakpoint_re_set_default): Update.
9951
9952 2017-04-12 Tom Tromey <tom@tromey.com>
9953
9954 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
9955 type of "to_do". Update.
9956 (compute_stack_depth): Use std::vector.
9957
9958 2017-04-12 Tom Tromey <tom@tromey.com>
9959
9960 * printcmd.c (find_instruction_backward): Use std::vector.
9961
9962 2017-04-12 Tom Tromey <tom@tromey.com>
9963
9964 * symfile.c (objfilep): Remove typedef.
9965 (reread_symbols): Use a std::vector.
9966
9967 2017-04-12 Tom Tromey <tom@tromey.com>
9968
9969 * mi/mi-main.c (exec_direction_forward): Remove.
9970 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
9971 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
9972 scoped_restore.
9973 * guile/guile.c (guile_repl_command, guile_command)
9974 (gdbscm_execute_gdb_command): Use scoped_restore.
9975 * go-exp.y (go_parse): Use scoped_restore.
9976 * d-exp.y (d_parse): Use scoped_restore.
9977 * cli/cli-decode.c (cmd_func): Use scoped_restore.
9978 * c-exp.y (c_parse): Use scoped_restore.
9979
9980 2017-04-12 Tom Tromey <tom@tromey.com>
9981
9982 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
9983 (mi_parse): Update return type.
9984 (mi_parse_free): Remove.
9985 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
9986 (mi_parse::~mi_parse): Rename from mi_parse_free.
9987 (mi_parse_cleanup): Remove.
9988 (mi_parse): Return a unique_ptr. Use new.
9989 * mi/mi-main.c (mi_execute_command): Update.
9990
9991 2017-04-12 Tom Tromey <tom@tromey.com>
9992
9993 * location.c (explicit_location_lex_one): Return a
9994 unique_xmalloc_ptr.
9995 (string_to_explicit_location): Update. Remove cleanups.
9996
9997 2017-04-12 Tom Tromey <tom@tromey.com>
9998
9999 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10000 (compare_value_and_voffset): Change type. Update.
10001 (compute_vtable_size): Change type of "offset_vec".
10002 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10003 (gnuv3_get_typeid): Remove extraneous declaration.
10004
10005 2017-04-12 Tom Tromey <tom@tromey.com>
10006
10007 * charset.h (wchar_iterator): Fix comment.
10008
10009 2017-04-12 Tom Tromey <tom@tromey.com>
10010
10011 * charset.c (iconv_wrapper): New class.
10012 (cleanup_iconv): Remove.
10013 (convert_between_encodings): Use it.
10014
10015 2017-04-12 Tom Tromey <tom@tromey.com>
10016
10017 * symfile.h (increment_reading_symtab): Update type.
10018 * symfile.c (decrement_reading_symtab): Remove.
10019 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10020 * psymtab.c (psymtab_to_symtab): Update.
10021 * dwarf2read.c (dw2_instantiate_symtab): Update.
10022
10023 2017-04-12 Tom Tromey <tom@tromey.com>
10024
10025 * jit.c (struct jit_reader): Declare separately. Add constructor
10026 and destructor. Change type of "handle".
10027 (loaded_jit_reader): Define separately.
10028 (jit_reader_load): Update. New "new".
10029 (jit_reader_unload_command): Use "delete".
10030 * gdb-dlfcn.h (struct dlclose_deleter): New.
10031 (gdb_dlhandle_up): New typedef.
10032 (gdb_dlopen, gdb_dlsym): Update types.
10033 (gdb_dlclose): Remove.
10034 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10035 (gdb_dlsym): Change type of "handle".
10036 (make_cleanup_dlclose): Remove.
10037 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10038 * compile/compile-c-support.c (load_libcc): Update.
10039
10040 2017-04-12 Tom Tromey <tom@tromey.com>
10041
10042 * symtab.h (find_pcs_for_symtab_line): Change return type.
10043 * symtab.c (find_pcs_for_symtab_line): Change return type.
10044 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10045 type of "vec". Update.
10046 (ltpy_get_pcs_for_line): Update.
10047 * linespec.c (decode_digits_ordinary): Update.
10048
10049 2017-04-12 Tom Tromey <tom@tromey.com>
10050
10051 * tracepoint.c (actions_command): Update.
10052 * python/python.c (python_command, python_interactive_command):
10053 Update.
10054 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10055 * guile/guile.c (guile_command): Update.
10056 * defs.h (read_command_lines, read_command_lines_1): Return
10057 command_line_up.
10058 (command_lines_deleter): New struct.
10059 (command_line_up): New typedef.
10060 * compile/compile.c (compile_code_command)
10061 (compile_print_command): Update.
10062 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10063 command_line_up.
10064 (make_cleanup_free_command_lines): Remove.
10065 * cli/cli-script.c (get_command_line, read_command_lines_1)
10066 (copy_command_lines): Return command_line_up.
10067 (while_command, if_command, read_command_lines, define_command)
10068 (document_command): Update.
10069 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10070 Remove.
10071 * breakpoint.h (breakpoint_set_commands): Change type of
10072 "commands".
10073 * breakpoint.c (breakpoint_set_commands): Change type of
10074 "commands". Update.
10075 (do_map_commands_command, update_dprintf_command_list)
10076 (create_tracepoint_from_upload): Update.
10077
10078 2017-04-12 Tom Tromey <tom@tromey.com>
10079
10080 * tracepoint.c (scope_info): Update.
10081 * spu-tdep.c (spu_catch_start): Update.
10082 * python/python.c (gdbpy_decode_line): Update.
10083 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10084 * python/py-breakpoint.c (bppy_init): Update.
10085 * probe.c (parse_probes): Update.
10086 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10087 * location.h (event_location_deleter): New struct.
10088 (event_location_up): New typedef.
10089 (new_linespec_location, new_address_location, new_probe_location)
10090 (new_explicit_location, copy_event_location)
10091 (string_to_event_location, string_to_event_location_basic)
10092 (string_to_explicit_location): Update return type.
10093 (make_cleanup_delete_event_location): Remove.
10094 * location.c (new_linespec_location, new_address_location)
10095 (new_probe_location, new_explicit_location, copy_event_location):
10096 Return event_location_up.
10097 (delete_event_location_cleanup)
10098 (make_cleanup_delete_event_location): Remove.
10099 (string_to_explicit_location, string_to_event_location_basic)
10100 (string_to_event_location): Return event_location_up.
10101 * linespec.c (canonicalize_linespec, event_location_to_sals)
10102 (decode_line_with_current_source)
10103 (decode_line_with_last_displayed, decode_objc): Update.
10104 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10105 * completer.c (location_completer): Update.
10106 * cli/cli-cmds.c (edit_command, list_command): Update.
10107 * breakpoint.c (create_overlay_event_breakpoint)
10108 (create_longjmp_master_breakpoint)
10109 (create_std_terminate_master_breakpoint)
10110 (create_exception_master_breakpoint)
10111 (create_thread_event_breakpoint): Update.
10112 (init_breakpoint_sal): Update. Remove some dead code.
10113 (create_breakpoint_sal): Change type of "location". Update.
10114 (create_breakpoints_sal, create_breakpoint, break_command_1)
10115 (dprintf_command, break_range_command, until_break_command)
10116 (init_ada_exception_breakpoint)
10117 (strace_marker_create_sals_from_location)
10118 (update_static_tracepoint, trace_command, ftrace_command)
10119 (strace_command, create_tracepoint_from_upload): Update.
10120 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10121 * ax-gdb.c (agent_command_1): Update.
10122
10123 2017-04-12 Pedro Alves <palves@redhat.com>
10124
10125 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10126 * configure.tgt: Handle i[34567]86-*-go32* and
10127 i[34567]86-*-msdosdjgpp*.
10128 * i386-tdep.c (i386_svr4_reg_to_regnum):
10129 Make extern.
10130 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10131 i386-go32-tdep.c.
10132 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10133 * i386-go32-tdep.c: New file.
10134 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10135 declarations.
10136
10137 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10138
10139 * aix-thread.c (pd_status2str): Change return type to const char *.
10140
10141 2017-04-12 Pedro Alves <palves@redhat.com>
10142
10143 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10144 calls to set_gdbarch_gnu_triplet_regexp.
10145
10146 2017-04-12 Pedro Alves <palves@redhat.com>
10147
10148 PR gdb/21323
10149 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10150 New enum value.
10151 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10152 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10153 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10154 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10155 * gdbarch.h, gdbarch.c: Regenerate.
10156 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10157 gdbarch_wchar_bit and gdbarch_wchar_signed.
10158 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10159 * arm-tdep.c (arm_gdbarch_init): Likewise.
10160 * avr-tdep.c (avr_gdbarch_init): Likewise.
10161 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10162 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10163 * i386-tdep.c (i386_go32_init_abi): Likewise.
10164 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10165 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10166 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10167 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10168 * sh-tdep.c (sh_gdbarch_init): Likewise.
10169 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10170 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10171 * windows-tdep.c (windows_init_abi): Likewise.
10172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10173
10174 2017-04-12 Pedro Alves <palves@redhat.com>
10175
10176 PR c++/21323
10177 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10178 cplus_primitive_type_char32_t>: New enum values.
10179 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10180 and cplus_primitive_type_char32_t.
10181 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10182 32, use the archtecture's built-in type for char16_t and char32_t,
10183 respectively. Otherwise, fallback to init_integer_type as before,
10184 but make the type unsigned, and issue a complaint.
10185 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10186
10187 2017-04-12 Alan Hayward <alan.hayward@arm.com>
10188
10189 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
10190 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10191
10192 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10193
10194 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10195 'const char *'.
10196
10197 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10198
10199 * common/common-utils.c (free_vector_argv): New function.
10200 * common/common-utils.h: Include <vector>.
10201 (free_vector_argv): New prototype.
10202 * darwin-nat.c (darwin_create_inferior): Rewrite function
10203 prototype in order to constify "exec_file" and accept a
10204 "std::string" for "allargs".
10205 * fork-child.c: Include <vector>.
10206 (breakup_args): Rewrite function, using C++.
10207 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10208 and accept "std::string" for "allargs". Update the code to
10209 calculate "argv" based on "allargs". Update calls to "exec_fun"
10210 and "execvp".
10211 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10212 order to constify "exec_file" and accept a "std::string" for
10213 "allargs".
10214 * go32-nat.c (go32_create_inferior): Likewise.
10215 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10216 * infcmd.c (run_command_1): Constify "exec_file". Use
10217 "std::string" for inferior arguments.
10218 * inferior.h (fork_inferior): Update prototype.
10219 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10220 prototype in order to constify "exec_file" and accept a
10221 "std::string" for "allargs".
10222 * nto-procfs.c (procfs_create_inferior): Likewise.
10223 * procfs.c (procfs_create_inferior): Likewise.
10224 * remote-sim.c (gdbsim_create_inferior): Likewise.
10225 * remote.c (extended_remote_run): Update code to accept
10226 "std::string" as argument.
10227 (extended_remote_create_inferior): Rewrite function prototype in
10228 order to constify "exec_file" and accept a "std::string" for
10229 "allargs".
10230 * rs6000-nat.c (super_create_inferior): Likewise.
10231 (rs6000_create_inferior): Likewise.
10232 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10233 * windows-nat.c (windows_create_inferior): Likewise.
10234
10235 2017-04-11 Pedro Alves <palves@redhat.com>
10236
10237 * thread.c: Fix whitespace throughout.
10238
10239 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10240
10241 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10242
10243 2017-04-11 Alan Hayward <alan.hayward@arm.com>
10244
10245 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10246
10247 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10248
10249 PR gdb/21364
10250 * osdata.c (info_osdata): Check if 'type' is an empty string
10251 instead of NULL.
10252
10253 2017-04-10 Pedro Alves <palves@redhat.com>
10254
10255 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10256 (ptid_to_global_thread_id, in_thread_list)
10257 (do_captured_list_thread_ids, set_resumed, set_running)
10258 (set_executing, set_stop_requested, finish_thread_state)
10259 (validate_registers_access, can_access_registers_ptid)
10260 (print_thread_info_1, switch_to_thread)
10261 (do_restore_current_thread_cleanup)
10262 (make_cleanup_restore_current_thread, thread_command)
10263 (thread_name_command): Use operator== instead of ptid_equal.
10264
10265 2017-04-10 Pedro Alves <palves@redhat.com>
10266
10267 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10268 (current_thread_cleanup_chain): Delete.
10269 (restore_current_thread_cleanup_dtor)
10270 (make_cleanup_restore_current_thread): Remove references to
10271 current_thread_cleanup_chain.
10272
10273 2017-04-10 Alan Hayward <alan.hayward@arm.com>
10274
10275 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10276 REG_UNKNOWN.
10277
10278 2017-04-10 Yao Qi <yao.qi@linaro.org>
10279
10280 PR gdb/19942
10281 * gdbthread.h (thread_info::deletable): New method.
10282 (thread_info::incref): New method.
10283 (thread_info::decref): New method.
10284 (thread_info::refcount): Move it to private.
10285 * infrun.c (save_stop_context): Call inc_refcount.
10286 (release_stop_context_cleanup): Likewise.
10287 * thread.c (set_thread_exited): New function.
10288 (init_thread_list): Delete "tp" only it is deletable, otherwise
10289 call set_thread_exited.
10290 (delete_thread_1): Call set_thread_exited.
10291 (current_thread_cleanup) <inferior_pid>: Remove.
10292 <thread>: New field.
10293 (restore_current_thread_ptid_changed): Removed.
10294 (do_restore_current_thread_cleanup): Adjust.
10295 (restore_current_thread_cleanup_dtor): Don't call
10296 find_thread_ptid.
10297 (set_thread_refcount): Use dec_refcount.
10298 (make_cleanup_restore_current_thread): Adjust.
10299 (thread_apply_all_command): Call inc_refcount.
10300 (_initialize_thread): Don't call
10301 observer_attach_thread_ptid_changed.
10302
10303 2017-04-10 Yao Qi <yao.qi@linaro.org>
10304
10305 * thread.c (delete_thread_1): Hoist code on marking thread as
10306 exited.
10307
10308 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10309
10310 * windows-nat.c (windows_detach): Initialize ptid with
10311 minus_one_ptid.
10312
10313 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10314
10315 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10316
10317 2017-04-07 Alan Hayward <alan.hayward@arm.com>
10318
10319 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10320 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10321 (bfin_pseudo_register_write): Likewise
10322
10323 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10324
10325 * common/ptid.h (struct ptid): Change to...
10326 (class ptid_t): ... this.
10327 <ptid_t>: New constructors.
10328 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10329 matches>: New methods.
10330 <make_null, make_minus_one>: New static methods.
10331 <pid>: Rename to...
10332 <m_pid>: ...this.
10333 <lwp>: Rename to...
10334 <m_lwp>: ...this.
10335 <tid>: Rename to...
10336 <m_tid>: ...this.
10337 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10338 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10339 as references, move comment to class ptid_t.
10340 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10341 ptid_t static methods.
10342 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10343 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10344 Take ptid arguments as references, implement using ptid_t methods.
10345 * unittests/ptid-selftests.c: New file.
10346 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10347 unittests/ptid-selftests.c.
10348 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10349
10350 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10351
10352 * python/python.c (python_run_simple_file): Cast mode literal to
10353 non-const char pointer as expected by PyFile_FromString.
10354
10355 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10356
10357 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10358 minus_one_ptid and null_ptid.
10359
10360 2017-04-05 Pedro Alves <palves@redhat.com>
10361
10362 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10363 * configure: Regenerate.
10364
10365 2017-04-05 Pedro Alves <palves@redhat.com>
10366
10367 * ada-exp.y (yyerror): Constify.
10368 * ada-lang.c (bound_name, get_selections)
10369 (ada_variant_discrim_type)
10370 (ada_variant_discrim_name, ada_value_struct_elt)
10371 (ada_lookup_struct_elt_type, is_unchecked_variant)
10372 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10373 (catch_ada_exception_command_split)
10374 (catch_ada_assert_command_split, catch_assert_command)
10375 (ada_op_name): Constify.
10376 * ada-lang.h (ada_yyerror, get_selections)
10377 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10378 * arc-tdep.c (arc_print_frame_cache): Constify.
10379 * arm-tdep.c (arm_skip_stub): Constify.
10380 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10381 (gen_aggregate_elt_ref): Constify.
10382 * bcache.c (print_bcache_statistics): Constify.
10383 * bcache.h (print_bcache_statistics): Constify.
10384 * break-catch-throw.c (catch_exception_command_1):
10385 * breakpoint.c (struct ep_type_description::description):
10386 Constify.
10387 (add_solib_catchpoint): Constify.
10388 (catch_fork_command_1): Add cast.
10389 (add_catch_command): Constify.
10390 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10391 Constify.
10392 * bsd-uthread.c (bsd_uthread_state): Constify.
10393 * buildsym.c (patch_subfile_names): Constify.
10394 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10395 Constify.
10396 * c-exp.y (yyerror): Constify.
10397 (token::oper): Constify.
10398 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10399 * c-varobj.c (cplus_describe_child): Constify.
10400 * charset.c (find_charset_names): Add cast.
10401 (find_charset_names): Constify array and add const_cast.
10402 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10403 (edit_command): Constify.
10404 * cli/cli-decode.c (lookup_cmd): Constify.
10405 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10406 Constify.
10407 (struct dump_context): Constify.
10408 (add_dump_command, restore_command): Constify.
10409 * cli/cli-script.c (get_command_line): Constify.
10410 * cli/cli-script.h (get_command_line): Constify.
10411 * cli/cli-utils.c (check_for_argument): Constify.
10412 * cli/cli-utils.h (check_for_argument): Constify.
10413 * coff-pe-read.c (struct read_pe_section_data): Constify.
10414 * command.h (lookup_cmd): Constify.
10415 * common/print-utils.c (decimal2str): Constify.
10416 * completer.c (gdb_print_filename): Constify.
10417 * corefile.c (set_gnutarget): Constify.
10418 * cp-name-parser.y (yyerror): Constify.
10419 * cp-valprint.c (cp_print_class_member): Constify.
10420 * cris-tdep.c (cris_register_name, crisv32_register_name):
10421 Constify.
10422 * d-exp.y (yyerror): Constify.
10423 (struct token::oper): Constify.
10424 * d-lang.h (d_yyerror): Constify.
10425 * dbxread.c (struct header_file_location::name): Constify.
10426 (add_old_header_file, add_new_header_file, last_function_name)
10427 (dbx_next_symbol_text, add_bincl_to_list)
10428 (find_corresponding_bincl_psymtab, set_namestring)
10429 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10430 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10431 * defs.h (command_line_input, print_address_symbolic)
10432 (deprecated_readline_begin_hook): Constify.
10433 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10434 Constify.
10435 * event-top.c (handle_line_of_input): Constify and add cast.
10436 * exceptions.c (catch_errors): Constify.
10437 * exceptions.h (catch_errors): Constify.
10438 * expprint.c (print_subexp_standard, op_string, op_name)
10439 (op_name_standard, dump_raw_expression, dump_raw_expression):
10440 * expression.h (op_name, op_string, dump_raw_expression):
10441 Constify.
10442 * f-exp.y (yyerror): Constify.
10443 (struct token::oper): Constify.
10444 (struct f77_boolean_val::name): Constify.
10445 * f-lang.c (f_word_break_characters): Constify.
10446 * f-lang.h (f_yyerror): Constify.
10447 * fork-child.c (fork_inferior): Add cast.
10448 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10449 (new_variant): Constify.
10450 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10451 * gdbarch.c: Regenerate.
10452 * gdbcore.h (set_gnutarget): Constify.
10453 * go-exp.y (yyerror): Constify.
10454 (token::oper): Constify.
10455 * go-lang.h (go_yyerror): Constify.
10456 * go32-nat.c (go32_sysinfo): Constify.
10457 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10458 * guile/scm-cmd.c (cmdscm_function): Constify.
10459 * guile/scm-param.c (pascm_param_value): Constify.
10460 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10461 (h8300sx_register_name): Constify.
10462 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10463 Constify.
10464 * ia64-tdep.c (ia64_register_names): Constify.
10465 * infcmd.c (construct_inferior_arguments): Constify.
10466 (path_command, attach_post_wait): Constify.
10467 * language.c (show_range_command, show_case_command)
10468 (unk_lang_error): Constify.
10469 * language.h (language_defn::la_error)
10470 (language_defn::la_name_of_this): Constify.
10471 * linespec.c (decode_line_2): Constify.
10472 * linux-thread-db.c (thread_db_err_str): Constify.
10473 * lm32-tdep.c (lm32_register_name): Constify.
10474 * m2-exp.y (yyerror): Constify.
10475 * m2-lang.h (m2_yyerror): Constify.
10476 * m32r-tdep.c (m32r_register_names): Constify and make static.
10477 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10478 * m88k-tdep.c (m88k_register_name): Constify.
10479 * macroexp.c (appendmem): Constify.
10480 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10481 (upgrade_type, parse_external, parse_partial_symbols)
10482 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10483 (new_symbol): Constify.
10484 * memattr.c (mem_info_command): Constify.
10485 * mep-tdep.c (register_name_from_keyword): Constify.
10486 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10487 Constify.
10488 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10489 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10490 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10491 cast.
10492 (mi_execute_async_cli_command): Constify.
10493 * mips-tdep.c (mips_register_name): Constify.
10494 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10495 (am33_register_name, am33_2_register_name)
10496 * moxie-tdep.c (moxie_register_names): Constify.
10497 * nat/linux-osdata.c (osdata_type): Constify fields.
10498 * nto-tdep.c (nto_parse_redirection): Constify.
10499 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10500 (lookup_child_selector): Constify.
10501 (objc_methcall::name): Constify.
10502 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10503 (lookup_struct_typedef): Constify.
10504 * objfiles.c (pc_in_section): Constify.
10505 * objfiles.h (pc_in_section): Constify.
10506 * p-exp.y (struct token::oper): Constify.
10507 (yyerror): Constify.
10508 * p-lang.h (pascal_yyerror): Constify.
10509 * parser-defs.h (op_name_standard): Constify.
10510 (op_print::string): Constify.
10511 (exp_descriptor::op_name): Constify.
10512 * printcmd.c (print_address_symbolic): Constify.
10513 * psymtab.c (print_partial_symbols): Constify.
10514 * python/py-breakpoint.c (stop_func): Constify.
10515 (bppy_get_expression): Constify.
10516 * python/py-cmd.c (cmdpy_completer::name): Constify.
10517 (cmdpy_function): Constify.
10518 * python/py-event.c (evpy_add_attribute)
10519 (gdbpy_initialize_event_generic): Constify.
10520 * python/py-event.h (evpy_add_attribute)
10521 (gdbpy_initialize_event_generic): Constify.
10522 * python/py-evts.c (add_new_registry): Constify.
10523 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10524 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10525 * python/py-inferior.c (get_buffer): Add cast.
10526 * python/py-param.c (parm_constant::name): Constify.
10527 * python/py-unwind.c (fprint_frame_id): Constify.
10528 * python/python.c (gdbpy_parameter_value): Constify.
10529 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10530 * remote.c (memory_packet_config::name): Constify.
10531 (show_packet_config_cmd, remote_write_bytes)
10532 (remote_buffer_add_string):
10533 * reverse.c (exec_reverse_once): Constify.
10534 * rs6000-tdep.c (variant::name, variant::description): Constify.
10535 * rust-exp.y (rustyyerror): Constify.
10536 * rust-lang.c (rust_op_name): Constify.
10537 * rust-lang.h (rustyyerror): Constify.
10538 * serial.h (serial_ops::name): Constify.
10539 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10540 (sh_sh3e_register_name, sh_sh2e_register_name)
10541 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10542 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10543 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10544 (sh_sh4al_dsp_register_name): Constify.
10545 * sh64-tdep.c (sh64_register_name): Constify.
10546 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10547 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10548 * stabsread.c (patch_block_stabs, read_type_number)
10549 (ref_map::stabs, ref_add, process_reference)
10550 (symbol_reference_defined, define_symbol, define_symbol)
10551 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10552 (read_one_struct_field, read_struct_fields, read_baseclasses)
10553 (read_tilde_fields, read_struct_type, read_array_type)
10554 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10555 (read_huge_number, read_range_type, read_args, common_block_start)
10556 (find_name_end): Constify.
10557 * stabsread.h (common_block_start, define_symbol)
10558 (process_one_symbol, symbol_reference_defined, ref_add):
10559 * symfile.c (get_section_index, add_symbol_file_command):
10560 * symfile.h (get_section_index): Constify.
10561 * target-descriptions.c (tdesc_type::name): Constify.
10562 (tdesc_free_type): Add cast.
10563 * target.c (find_default_run_target):
10564 (add_deprecated_target_alias, find_default_run_target)
10565 (target_announce_detach): Constify.
10566 (do_option): Constify.
10567 * target.h (add_deprecated_target_alias): Constify.
10568 * thread.c (print_thread_info_1): Constify.
10569 * top.c (deprecated_readline_begin_hook, command_line_input):
10570 Constify.
10571 (init_main): Add casts.
10572 * top.h (handle_line_of_input): Constify.
10573 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10574 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10575 (tfind_command): Rename to ...
10576 (tfind_command_1): ... this and constify.
10577 (tfind_command): New function.
10578 (tfind_end_command, tfind_start_command): Adjust.
10579 (encode_source_string): Constify.
10580 * tracepoint.h (encode_source_string): Constify.
10581 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10582 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10583 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10584 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10585 * tui/tui-win.c (parse_scrolling_args): Constify.
10586 * tui/tui-windata.c (tui_erase_data_content): Constify.
10587 * tui/tui-windata.h (tui_erase_data_content): Constify.
10588 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10589 * tui/tui.c (tui_enable): Add cast.
10590 * utils.c (defaulted_query): Constify.
10591 (init_page_info): Add cast.
10592 (puts_debug, subset_compare): Constify.
10593 * utils.h (subset_compare): Constify.
10594 * varobj.c (varobj_format_string): Constify.
10595 * varobj.h (varobj_format_string): Constify.
10596 * vax-tdep.c (vax_register_name): Constify.
10597 * windows-nat.c (windows_detach): Constify.
10598 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10599 * xml-support.c (gdb_xml_end_element): Constify.
10600 * xml-tdesc.c (tdesc_start_reg): Constify.
10601 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10602 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10603 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10604
10605 2017-04-05 Pedro Alves <palves@redhat.com>
10606
10607 * proc-api.c (struct trans): Constify.
10608 (procfs_note): Constify.
10609 * proc-events.c (struct trans, syscall_table):
10610 * proc-flags.c (struct trans): Constify.
10611 * proc-utils.h (procfs_note): Constify.
10612 * proc-why.c (struct trans): Constify.
10613 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10614 (procfs_detach): Constify.
10615 * sol-thread.c (struct string_map): Constify.
10616 (td_err_string, td_state_string): Constify.
10617
10618 2017-04-05 Pedro Alves <palves@redhat.com>
10619
10620 * proc-api.c (procfs_filename): Don't initialize
10621 procfs_filename.
10622 (prepare_to_trace): Assume procfs_filename is non-NULL.
10623 (_initialize_proc_api): Give procfs_filename a default value here.
10624
10625 2017-04-05 Pedro Alves <palves@redhat.com>
10626
10627 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10628 'cond_string' parameter.
10629 (extract_exception_regexp): Constify 'string' parameter.
10630 (catch_exception_command_1): Constify.
10631 * breakpoint.c (init_catchpoint)
10632 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10633 parameter.
10634 (ep_parse_optional_if_clause, catch_fork_command_1)
10635 (catch_exec_command_1): Constify.
10636 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10637 parameter.
10638 (ep_parse_optional_if_clause): Constify.
10639 * cli/cli-utils.c (remove_trailing_whitespace)
10640 (check_for_argument): Constify.
10641 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10642 non-const overload.
10643 (check_for_argument): Likewise.
10644
10645 2017-04-05 Pedro Alves <palves@redhat.com>
10646
10647 * event-top.c (command_line_handler): Add cast to execute_command
10648 call.
10649 * record-btrace.c (cmd_record_btrace_bts_start)
10650 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10651 (cmd_record_btrace_start): Add cast to execute_command call.
10652 * record-full.c (record_full_goto_insn):
10653 * record.c (record_start, record_stop): Add cast to
10654 execute_command_to_string calls.
10655 (cmd_record_start): Add cast to execute_command calls.
10656
10657 2017-04-05 Pedro Alves <palves@redhat.com>
10658
10659 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10660 static inline function.
10661 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10662 array and use gdb_PyArg_ParseTupleAndKeywords.
10663 * python/py-cmd.c (cmdpy_init): Likewise.
10664 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10665 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10666 (infpy_search_memory): Likewise.
10667 * python/py-objfile.c (objfpy_add_separate_debug_file)
10668 (gdbpy_lookup_objfile): Likewise.
10669 * python/py-symbol.c (gdbpy_lookup_symbol)
10670 (gdbpy_lookup_global_symbol): Likewise.
10671 * python/py-type.c (gdbpy_lookup_type): Likewise.
10672 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10673 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10674 Likewise.
10675
10676 2017-04-05 Pedro Alves <palves@redhat.com>
10677
10678 * python/python-internal.h (gdb_PyGetSetDef): New type.
10679 * python/py-block.c (block_object_getset)
10680 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10681 * python/py-event.c (event_object_getset)
10682 (finish_breakpoint_object_getset): Likewise.
10683 * python/py-inferior.c (inferior_object_getset): Likewise.
10684 * python/py-infthread.c (thread_object_getset): Likewise.
10685 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10686 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10687 * python/py-objfile.c (objfile_getset): Likewise.
10688 * python/py-progspace.c (pspace_getset): Likewise.
10689 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10690 Likewise.
10691 * python/py-record.c (recpy_record_getset): Likewise.
10692 * python/py-symbol.c (symbol_object_getset): Likewise.
10693 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10694 Likewise.
10695 * python/py-type.c (type_object_getset, field_object_getset):
10696 Likewise.
10697 * python/py-value.c (value_object_getset): Likewise.
10698
10699 2017-04-05 Pedro Alves <palves@redhat.com>
10700
10701 * python/python-internal.h (gdb_PyObject_CallMethod)
10702 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10703 New functions.
10704 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10705 (PySys_GetObject, PySys_SetPath): New macros.
10706
10707 2017-04-05 Pedro Alves <palves@redhat.com>
10708
10709 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10710 info_osdata_command.
10711 * osdata.c (info_osdata_command): Rename to ...
10712 (info_osdata): ... this. Constify 'type' parameter, and remove
10713 the 'from_tty' parameter. Accept NULL TYPE.
10714 (info_osdata_command): New function.
10715 * osdata.h (info_osdata_command): Remove declaration.
10716 (info_osdata): New declaration.
10717
10718 2017-04-05 Pedro Alves <palves@redhat.com>
10719
10720 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10721 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10722 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10723 parameter.
10724 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10725 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10726 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10727 parameter.
10728 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10729 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10730 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10731 (mi_cmd_file_list_exec_source_files)
10732 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10733 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10734 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10735 parameter.
10736 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10737 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10738 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10739 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10740 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10741 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10742 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10743 'command' parameter.
10744 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
10745 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
10746 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
10747 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
10748 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
10749 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
10750 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
10751 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
10752 (mi_cmd_var_set_update_range): Constify 'command' parameter.
10753 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
10754 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
10755 parameter.
10756 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
10757 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
10758 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
10759 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
10760 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
10761 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
10762 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
10763 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
10764 (mi_cmd_data_list_changed_registers)
10765 (mi_cmd_data_write_register_values)
10766 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
10767 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
10768 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
10769 (mi_cmd_list_features, mi_cmd_list_target_features)
10770 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
10771 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
10772 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
10773 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
10774 (mi_cmd_trace_frame_collected): Constify 'command'
10775 parameter.
10776 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
10777 'command' parameter.
10778
10779 2017-04-05 Pedro Alves <palves@redhat.com>
10780
10781 * ada-lang.c (ada_completer_word_break_characters): Now a const
10782 array.
10783 (ada_get_gdb_completer_word_break_characters): Constify.
10784 * completer.c (gdb_completer_command_word_break_characters)
10785 (gdb_completer_file_name_break_characters)
10786 (gdb_completer_quote_characters): Now const arrays.
10787 (get_gdb_completer_quote_characters): Constify.
10788 (set_rl_completer_word_break_characters): New function.
10789 (set_gdb_completion_word_break_characters)
10790 (complete_line_internal): Use it.
10791 * completer.h (get_gdb_completer_quote_characters): Constify.
10792 (set_rl_completer_word_break_characters): Declare.
10793 * f-lang.c (f_word_break_characters): Constify.
10794 * language.c (default_word_break_characters): Constify.
10795 * language.h (language_defn::la_word_break_characters): Constify.
10796 (default_word_break_characters): Constify.
10797 * top.c (init_main): Use set_rl_completer_word_break_characters.
10798
10799 2017-04-05 Pedro Alves <palves@redhat.com>
10800
10801 * aix-thread.c (aix_thread_pid_to_str)
10802 (aix_thread_extra_thread_info): Constify.
10803 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
10804 * bsd-uthread.c (bsd_uthread_extra_thread_info)
10805 (bsd_uthread_pid_to_str): Constify.
10806 * corelow.c (core_pid_to_str): Constify.
10807 * darwin-nat.c (darwin_pid_to_str): Constify.
10808 * fbsd-nat.c (fbsd_pid_to_str): Constify.
10809 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
10810 Constify.
10811 * gnu-nat.c (gnu_pid_to_str): Constify.
10812 * go32-nat.c (go32_pid_to_str): Constify.
10813 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
10814 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
10815 * inferior.c (inferior_pid_to_str): Constify.
10816 * linux-nat.c (linux_nat_pid_to_str): Constify.
10817 * linux-tdep.c (linux_core_pid_to_str): Constify.
10818 * linux-thread-db.c (thread_db_pid_to_str)
10819 (thread_db_extra_thread_info): Constify.
10820 * nto-tdep.c (nto_extra_thread_info): Constify.
10821 * nto-tdep.h (nto_extra_thread_info): Constify.
10822 * obsd-nat.c (obsd_pid_to_str): Constify.
10823 * procfs.c (procfs_pid_to_str): Constify.
10824 * ravenscar-thread.c (ravenscar_extra_thread_info)
10825 (ravenscar_pid_to_str): Constify.
10826 * remote-sim.c (gdbsim_pid_to_str): Constify.
10827 * remote.c (remote_threads_extra_info, remote_pid_to_str):
10828 Constify.
10829 * sol-thread.c (solaris_pid_to_str): Constify.
10830 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
10831 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
10832 * target.c (default_pid_to_str, target_pid_to_str)
10833 (normal_pid_to_str, default_pid_to_str): Constify.
10834 * target.h (target_ops::to_pid_to_str)
10835 (target_ops::to_extra_thread_info): Constify.
10836 (target_pid_to_str, normal_pid_to_str): Constify.
10837 * windows-nat.c (windows_pid_to_str): Constify.
10838 * gdbarch.sh (core_pid_to_str): Constify.
10839 * target-delegates.c: Regenerate.
10840 * gdbarch.h, gdbarch.c: Regenerate.
10841
10842 2017-04-05 Pedro Alves <palves@redhat.com>
10843
10844 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
10845 the memory of the temporary warning_pre_print override.
10846 * utils.c (warning_pre_print): Constify.
10847 * utils.h (warning_pre_print): Constify.
10848
10849 2017-04-05 Pedro Alves <palves@redhat.com>
10850
10851 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
10852 (shell_command): New function.
10853 (make_command): Use std::string.
10854 (init_cli_cmds): Register shell_command instead of shell_escape.
10855
10856 2017-04-05 Pedro Alves <palves@redhat.com>
10857
10858 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
10859 * tracepoint.c (default_collect): Don't initialize.
10860
10861 2017-04-05 Pedro Alves <palves@redhat.com>
10862
10863 * macroexp.c (macro_buffer::shared): Now a bool.
10864 (init_buffer): Update.
10865 (init_shared_buffer): Constify 'addr' parameter.
10866 (substitute_args, expand, macro_expand, macro_expand_next): Remove
10867 casts.
10868
10869 2017-04-05 Pedro Alves <palves@redhat.com>
10870
10871 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
10872 * disasm.c (set_disassembler_options): Constify local.
10873 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
10874
10875 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
10876
10877 PR gdb/21352
10878 * tracefile.c (tsave_command): Fix argument parsing for '-r'
10879 option.
10880
10881 2017-04-05 Yao Qi <yao.qi@linaro.org>
10882
10883 * frame.c (frame_unwind_register_unsigned): Call
10884 frame_unwind_register_value.
10885
10886 2017-04-05 Yao Qi <yao.qi@linaro.org>
10887
10888 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
10889 Use gdb_test_multiple, and don't match anchor.
10890
10891 2017-04-05 Pedro Alves <palves@redhat.com>
10892
10893 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
10894 (Write After Approval): Remove Simon Marchi.
10895
10896 2017-04-05 Pedro Alves <palves@redhat.com>
10897
10898 * common/gdb_optional.h (optional::optional): Make constexpr and
10899 initialize m_dummy.
10900
10901 2017-04-04 John Baldwin <jhb@FreeBSD.org>
10902
10903 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10904 (amd64fbsd_jmp_buf_reg_offset): Remove.
10905 (amd64fbsd_supply_uthread): Remove function.
10906 (amd64fbsd_collect_uthread): Remove function.
10907 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
10908 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
10909 (x86_64-*-freebsd*): Remove bsd-uthread.o.
10910 (fbsd-nat.c): Update comment.
10911 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10912 (i386fbsd_jmp_buf_reg_offset): Remove.
10913 (i386fbsd_supply_uthread): Remove function.
10914 (i386fbsd_collect_uthread): Remove function.
10915 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
10916
10917 2017-04-04 John Baldwin <jhb@FreeBSD.org>
10918
10919 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
10920 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
10921 * NEWS: Mention that support for FreeBSD/alpha was removed.
10922 * alpha-fbsd-tdep.c: Delete file.
10923 * config/alpha/fbsd.mh: Delete file.
10924 * configure.host: Delete alpha*-*-freebsd* and
10925 alpha*-*-kfreebsd*-gnu.
10926 * configure.tgt: Delete alpha*-*-freebsd* and
10927 alpha*-*-kfreebsd*-gnu.
10928
10929 2017-04-04 John Baldwin <jhb@FreeBSD.org>
10930
10931 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
10932 amd64bsd_store_inferior_registers): Use ptid from regcache.
10933
10934 2017-04-04 Pedro Alves <palves@redhat.com>
10935
10936 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
10937 data fields, make them private and add "m_" prefixes.
10938 (lnp_state_machine::lnp_state_machine): New ctor.
10939 (record_line, check_line_address, handle_set_discriminator)
10940 (handle_set_address, handle_advance_pc, handle_special_opcode)
10941 (handle_advance_line, handle_set_file, handle_negate_stmt)
10942 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
10943 (end_sequence, advance_line): New methods.
10944 (m_gdbarch, m_record_lines_p): New fields.
10945 (lnp_reader_state): Delete.
10946 (dwarf_record_line): Rename to ...
10947 (lnp_state_machine::record_line): ... adjust.
10948 (init_lnp_state_machine): Delete.
10949 (lnp_state_machine::lnp_state_machine): New.
10950 (check_line_address): Rename to ...
10951 (lnp_state_machine::check_line_address): This.
10952 (dwarf_decode_lines_1): Remove reference to "reader_state".
10953 Adjust lnp_state_machine having a non-default ctor. Use bool.
10954 State machine internal state manipulation moved to
10955 lnp_state_machine methods.
10956
10957 2017-04-04 Pedro Alves <palves@redhat.com>
10958
10959 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10960 unittests/offset-type-selftests.c.
10961 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
10962 * common/offset-type.h: New file.
10963 * common/preprocessor.h: New file.
10964 * common/traits.h: New file.
10965 * common/valid-expr.h: New file.
10966 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
10967 sect_offset and cu_offset strong typedefs throughout.
10968 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
10969 typedefs throughout.
10970 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
10971 sect_offset and cu_offset strong typedefs throughout.
10972 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
10973 typedefs throughout.
10974 * gdbtypes.h: Include "common/offset-type.h".
10975 (cu_offset): Now an offset type (strong typedef) instead of a
10976 struct.
10977 (sect_offset): Likewise.
10978 (union call_site_parameter_u): Rename "param_offset" field to
10979 "param_cu_off".
10980 * unittests/offset-type-selftests.c: New file.
10981
10982 2017-04-04 Pedro Alves <palves@redhat.com>
10983
10984 * common/underlying.h: New file.
10985 * dwarf2read.c: Include "common/gdb_optional.h" and
10986 "common/underlying.h".
10987 (dir_index, file_name_index): New types.
10988 (file_entry): Use them.
10989 (file_entry::include): Use to_underlying.
10990 (line_header::add_file_name): Use dir_index.
10991 (read_formatted_entries): Use gdb::optional. Read form before
10992 writting to file_entry.
10993 (dwarf_decode_line_header): Use dir_index.
10994 (lnp_state_machine::current_file): Use to_underlying.
10995 (lnp_state_machine::file): Change type to file_name_index.
10996 (dwarf_record_line): Use to_underlying.
10997 (init_lnp_state_machine): Use file_name_index.
10998 (dwarf_decode_lines_1): Use dir_index and file_name_index.
10999
11000 2017-04-04 Pedro Alves <palves@redhat.com>
11001
11002 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11003 operator bool, has_value and get methods.
11004
11005 2017-04-04 Pedro Alves <palves@redhat.com>
11006
11007 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11008 fields.
11009 (line_header): Initialize all data fields. Change type of
11010 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11011 Change type of include_dirs to std::vector<const char *>. Remove
11012 num_include_dirs, include_dirs_size. Change type of file_names to
11013 std::vector<file_entry>. Remove num_file_names, file_names_size.
11014 (line_header::line_header): New.
11015 (line_header::add_include_dir, line_header::add_file_name): New
11016 methods.
11017 (line_header::include_dir_at): Remove NULL check.
11018 (line_header::file_name_at): Add const overload.
11019 (line_header_up): New unique_ptr typedef.
11020 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11021 std::vector. Remove free_line_header call.
11022 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11023 free_line_header call.
11024 (free_cu_line_header): Delete.
11025 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11026 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11027 Adjust to use std::vector.
11028 (free_line_header): Delete.
11029 (free_line_header_voidp): Use delete.
11030 (add_include_dir): Replace with ...
11031 (line_header::add_include_dir): ... this method. Use std::vector.
11032 (add_file_name): Replace with ...
11033 (line_header::add_file_name): ... this method. Use std::vector.
11034 (add_include_dir_stub): Delete.
11035 (read_formatted_entries): Remove memset.
11036 (dwarf_decode_line_header): Return a line_header_up instead of a
11037 raw pointer. Remove cleanup handling. Pass lambdas to
11038 read_formatted_entries. Adjust to use line_header methods.
11039 (dwarf_decode_lines_1): Adjust to use line_header methods.
11040 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11041 use std::vector.
11042
11043 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11044
11045 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11046 instead of struct ptid.
11047
11048 2017-05-04 Alan Hayward <alan.hayward@arm.com>
11049
11050 * frame.c (get_frame_register_bytes): Unwind using value.
11051 (put_frame_register_bytes): Likewise.
11052
11053 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11054
11055 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11056 aggregate-like.
11057
11058 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11059
11060 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11061
11062 2017-03-29 Yao Qi <yao.qi@linaro.org>
11063
11064 * gdbthread.h (struct thread_info): Declare constructor and
11065 destructor. Add some in-class member initializers.
11066 * thread.c (free_thread): Remove.
11067 (init_thread_list): Call delete instead of free_thread.
11068 (new_thread): Call thread_info constructor.
11069 (thread_info::thread_info): New function.
11070 (thread_info::~thread_info): New function.
11071 (delete_thread_1): Call delete instead of free_thread.
11072 (make_cleanup_restore_current_thread): Move tp and frame to
11073 inner block.
11074
11075 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11076
11077 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11078 (arc_skip_prologue): Likewise.
11079 (arc_make_frame_cache): Likewise.
11080 (arc_pv_get_operand): New function.
11081 (arc_is_in_prologue): Likewise.
11082 (arc_analyze_prologue): Likewise.
11083 (arc_print_frame_cache): Likewise.
11084 (MAX_PROLOGUE_LENGTH): New constant.
11085
11086 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11087
11088 * configure.tgt: Add arc-insn.o.
11089 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11090 (dump_arc_instruction_command): New function.
11091 (arc_fprintf_disasm): Likewise.
11092 (arc_disassemble_info): Likewise.
11093 (arc_insn_get_operand_value): Likewise.
11094 (arc_insn_get_operand_value_signed): Likewise.
11095 (arc_insn_get_memory_base_reg): Likewise.
11096 (arc_insn_get_memory_offset): Likewise.
11097 (arc_insn_get_branch_target): Likewise.
11098 (arc_insn_dump): Likewise.
11099 (arc_insn_get_linear_next_pc): Likewise.
11100 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11101 (arc_disassemble_info): Likewise.
11102 (arc_insn_get_branch_target): Likewise.
11103 (arc_insn_get_linear_next_pc): Likewise.
11104 * NEWS: Mention new "maint print arc arc-instruction".
11105
11106 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11107
11108 * arc-tdep (maintenance_print_arc_list): New variable.
11109 (maintenance_print_arc_command): New function.
11110
11111 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11112
11113 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11114 Add "limm" and "reserved".
11115 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11116 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11117 * arc-tdep.h (arc_regnum): Likewise.
11118
11119 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11120
11121 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11122 for THREADPTR register.
11123 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11124 register.
11125 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11126 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11127 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11128
11129 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11130
11131 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11132 registers above gdbarch_num_regs (gdbarch) as privileged in
11133 call0 ABI.
11134
11135 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11136
11137 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11138 for a single specified register or for all registers in
11139 a0_base..a0_base + C0_NREGS range.
11140 (supply_gregset_reg): Call regcache_raw_supply for a single
11141 specified register or for all registers in a0_base..a0_base +
11142 C0_NREGS range.
11143
11144 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11145
11146 * arch/xtensa.h (C0_NREGS): Add definition.
11147 * xtensa-tdep.c (C0_NREGS): Remove definition.
11148
11149 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11150
11151 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11152 Drop xtensa_default_isa initialization.
11153 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11154
11155 2017-03-27 Pedro Alves <palves@redhat.com>
11156
11157 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11158 (file_entry::include_dir): New method.
11159 (line_header::include_dir_at, line_header::file_name_at): New
11160 methods.
11161 (setup_type_unit_groups, setup_type_unit_groups)
11162 (psymtab_include_file_name): Simplify using the new methods.
11163 (lnp_state_machine) <the_line_header>: New field.
11164 <file>: Add comment.
11165 (lnp_state_machine::current_file): New method.
11166 (dwarf_record_line): Simplify using the new methods.
11167 (init_lnp_state_machine): Initialize the "the_line_header" field.
11168 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11169 Simplify using the new methods.
11170
11171 2017-03-27 Pedro Alves <palves@redhat.com>
11172
11173 * cp-name-parser.y (make_empty): Delete.
11174 (demangler_special, nested_name, ptr_operator, array_indicator)
11175 (direct_declarator, declarator_1): Use fill_comp instead of
11176 make_empty.
11177
11178 2017-03-27 Pedro Alves <palves@redhat.com>
11179
11180 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11181 to ATTRIBUTE_PRINTF.
11182 * solib-target.c (library_list_start_list): Print "string" not
11183 "version".
11184 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11185 gdb_xml_error call.
11186
11187 2017-03-27 Pedro Alves <palves@redhat.com>
11188
11189 * dwarf2read.c (struct file_and_directory): New.
11190 (dwarf2_get_dwz_file): Adjust to use std::string.
11191 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11192 (find_file_and_directory): Adjust to return a file_and_directory
11193 object.
11194 (read_file_scope): Adjust to use file_and_directory. Remove
11195 make_cleanup/do_cleanups calls.
11196 (open_and_init_dwp_file): Adjust to use std::string. Remove
11197 make_cleanup/do_cleanups calls.
11198 * python/python.c (do_start_initialization): Adjust to ldirname
11199 returning a std::string.
11200 * utils.c (ldirname): Now returns a std::string.
11201 * utils.h (ldirname): Change return type to std::string.
11202 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11203 returning a std::string.
11204 * xml-tdesc.c (file_read_description_xml): Likewise.
11205
11206 2017-03-24 Alan Hayward <alan.hayward@arm.com>
11207
11208 * regcache.c (regcache_debug_print_register): New function.
11209 * regcache.h (regcache_debug_print_register): New declaration.
11210 * target.c (debug_print_register): Remove.
11211 (target_fetch_registers): Call regcache_debug_print_register.
11212 (target_store_registers): Likewise.
11213
11214 2017-03-24 Pádraig Brady <pbrady@fb.com>
11215
11216 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11217 reference beyond the 'lh->include_dirs' array before accessing to
11218 it.
11219 (psymtab_include_file_name): Likewise.
11220 (dwarf_decode_lines_1): Likewise.
11221 (dwarf_decode_lines): Likewise.
11222 (file_file_name): Likewise.
11223
11224 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11225
11226 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11227 inferior_ptid.
11228 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11229 ps_lsetfpregs): Likewise.
11230 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11231 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11232 ps_lsetfpregs): Likewise.
11233 * target.c (target_fetch_registers, target_store_registers):
11234 Remove asserts.
11235
11236 2017-03-23 Alan Hayward <alan.hayward@arm.com>
11237
11238 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11239
11240 2017-03-23 Yao Qi <yao.qi@linaro.org>
11241
11242 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11243 (_initialize_aarch64_tdep): Register it.
11244 (aarch64_record_load_store): Handle PRFM instruction.
11245 (aarch64_process_record_test): New function.
11246
11247 2017-03-23 Yao Qi <yao.qi@linaro.org>
11248
11249 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11250 indentation.
11251
11252 2017-03-23 Yao Qi <yao.qi@linaro.org>
11253
11254 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11255
11256 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11257
11258 python/python.c (do_start_initialization): Fix memory leak.
11259
11260 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11261
11262 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11263 using get_ptrace_pid.
11264 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11265 inferior_ptid.
11266 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11267 inferior_ptid instead of pid.
11268
11269 2017-03-22 Yao Qi <yao.qi@linaro.org>
11270
11271 * aarch64-tdep.c: Wrap locally used classes in anonymous
11272 namespace.
11273 * arm-tdep.c: Likewise.
11274 * linespec.c: Likewise.
11275 * ui-out.c: Likewise.
11276
11277 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
11278
11279 PR gdb/19637
11280 * python/lib/gdb/printer/bound_registers.py: Import sys.
11281
11282 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11283
11284 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11285 windows_thread_info parameter and use it instead of
11286 current_thread.
11287 (windows_fetch_inferior_registers): Don't set current_thread,
11288 pass the thread to do_windows_fetch_inferior_registers. Use
11289 ptid from regcache instead of inferior_ptid.
11290 (do_windows_store_inferior_registers): Add windows_thread_info
11291 parameter and use it instead of current_thread.
11292 (windows_store_inferior_registers): Don't set current_thread,
11293 pass the thread to do_windows_store_inferior_registers. Use
11294 ptid from regcache instead of inferior_ptid.
11295
11296 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11297
11298 * ser-mingw.c (ser_windows_raw): Remove reference to
11299 struct serial::current_timeout.
11300
11301 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11302
11303 PR tdep/20928
11304 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11305 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11306 (sparc64_fsr_type): Fix %fsr decoding.
11307
11308 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11309
11310 * python/py-record-btrace.c (btpy_insn_data): Change return type
11311 for Python 2.
11312
11313 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11314
11315 * spu-linux-nat.c (spu_fetch_inferior_registers,
11316 spu_store_inferior_registers): Use ptid from regcache, set and
11317 restore inferior_ptid.
11318 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11319 Likewise.
11320
11321 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11322
11323 * i386-linux-nat.c (fetch_register, store_register,
11324 i386_linux_fetch_inferior_registers,
11325 i386_linux_store_inferior_registers): Use ptid from regcache.
11326 * ia64-linux-nat.c (ia64_linux_fetch_register,
11327 ia64_linux_store_register): Likewise.
11328 * inf-ptrace.c (inf_ptrace_fetch_register,
11329 inf_ptrace_store_register): Likewise.
11330 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11331 m32r_linux_store_inferior_registers): Likewise.
11332 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11333 m68kbsd_store_inferior_registers): Likewise.
11334 * m68k-linux-nat.c (fetch_register, store_register,
11335 m68k_linux_fetch_inferior_registers,
11336 m68k_linux_store_inferior_registers): Likewise.
11337 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11338 m88kbsd_store_inferior_registers): Likewise.
11339 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11340 mips_fbsd_store_inferior_registers): Likewise.
11341 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11342 mips64_linux_regsets_store_registers): Likewise.
11343 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11344 mipsnbsd_store_inferior_registers): Likewise.
11345 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11346 mips64obsd_store_inferior_registers): Likewise.
11347 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11348 Likewise.
11349 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11350 ppcfbsd_store_inferior_registers): Likewise.
11351 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11352 ppc_linux_store_inferior_registers): Likewise.
11353 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11354 ppcnbsd_store_inferior_registers): Likewise.
11355 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11356 ppcobsd_store_registers): Likewise.
11357 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11358 Likewise.
11359 * ravenscar-thread.c (ravenscar_fetch_registers,
11360 ravenscar_store_registers, ravenscar_prepare_to_store):
11361 Likewise.
11362 * record-btrace.c (record_btrace_fetch_registers,
11363 record_btrace_store_registers, record_btrace_prepare_to_store):
11364 Likewise.
11365 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11366 Lookup inferior using ptid from regcache, instead of
11367 current_inferior.
11368 * remote.c (remote_fetch_registers, remote_store_registers): Use
11369 ptid from regcache.
11370 * rs6000-nat.c (fetch_register, store_register): Likewise.
11371 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11372 s390_linux_store_inferior_registers): Likewise.
11373 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11374 shnbsd_store_inferior_registers): Likewise.
11375 * sol-thread.c (sol_thread_fetch_registers,
11376 sol_thread_store_registers): Likewise.
11377 * sparc-nat.c (sparc_fetch_inferior_registers,
11378 sparc_store_inferior_registers): Likewise.
11379 * tilegx-linux-nat.c (fetch_inferior_registers,
11380 store_inferior_registers): Likewise.
11381 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11382 vaxbsd_store_inferior_registers): Likewise.
11383 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11384 store_xtregs): Likewise.
11385
11386 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11387
11388 PR gdb/14441
11389 * NEWS: Mention support for rvalue references in GDB and python.
11390 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11391 supports both lvalue and rvalue references.
11392
11393 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11394
11395 PR gdb/14441
11396 * gdbtypes.c (rank_one_type): Implement overloading
11397 resolution rules regarding rvalue references.
11398
11399 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11400
11401 PR gdb/14441
11402 * aarch64-tdep.c (aarch64_type_align)
11403 (aarch64_extract_return_value, aarch64_store_return_value): Change
11404 lvalue reference type checks to general reference type checks.
11405 * amd64-tdep.c (amd64_classify): Likewise.
11406 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11407 Likewise.
11408 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11409 (arm_store_return_value): Likewise.
11410 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11411 * c-typeprint.c (c_print_type): Likewise.
11412 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11413 (cplus_number_of_children, cplus_describe_child): Likewise.
11414 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11415 * completer.c (expression_completer): Likewise.
11416 * cp-support.c (make_symbol_overload_list_adl_namespace):
11417 Likewise.
11418 * darwin-nat-info.c (info_mach_region_command): Likewise.
11419 * dwarf2loc.c (entry_data_value_coerce_ref)
11420 (value_of_dwarf_reg_entry): Likewise.
11421 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11422 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11423 Likewise.
11424 * findvar.c (extract_typed_address, store_typed_address):
11425 Likewise.
11426 * gdbtypes.c (rank_one_type): Likewise.
11427 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11428 * infcall.c (value_arg_coerce): Likewise.
11429 * language.c (pointer_type): Likewise.
11430 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11431 Likewise.
11432 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11433 * mn10300-tdep.c (mn10300_type_align): Likewise.
11434 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11435 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11436 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11437 Likewise.
11438 * printcmd.c (print_formatted, x_command): Likewise.
11439 * python/py-type.c (typy_get_composite, typy_template_argument):
11440 Likewise.
11441 * python/py-value.c (valpy_referenced_value)
11442 (valpy_get_dynamic_type, value_has_field): Likewise.
11443 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11444 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11445 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11446 * spu-tdep.c (spu_scalar_value_p): Likewise.
11447 * symtab.c (lookup_symbol_aux): Likewise.
11448 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11449 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11450 Likewise.
11451 * valops.c (value_cast_pointers, value_cast)
11452 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11453 (value_struct_elt, value_struct_elt_bitpos)
11454 (value_find_oload_method_list, find_overload_match)
11455 (value_rtti_indirect_type): Likewise.
11456 * valprint.c (val_print_scalar_type_p, generic_val_print):
11457 Likewise.
11458 * value.c (value_actual_type, value_as_address, unpack_long)
11459 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11460 (coerce_ref): Likewise.
11461 * varobj.c (varobj_get_value_type): Likewise.
11462
11463 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11464
11465 PR gdb/14441
11466 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11467 table of constants.
11468 * python/lib/gdb/command/explore.py: Support exploring values
11469 of rvalue reference types.
11470 * python/lib/gdb/types.py: Implement get_basic_type() for
11471 rvalue reference types.
11472 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11473 constant.
11474 * python/py-value.c (valpy_getitem): Add an rvalue reference
11475 check.
11476 (valpy_reference_value): Add new parameter "refcode".
11477 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11478 New wrappers for valpy_reference_value().
11479 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11480 (gdbpy_invoke_xmethod): Likewise.
11481
11482 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11483
11484 PR gdb/14441
11485 * dwarf2read.c (process_die, read_type_die_1): Handle the
11486 DW_TAG_rvalue_reference_type DIE.
11487 (read_tag_reference_type): Add new parameter "refcode".
11488
11489 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11490
11491 PR gdb/14441
11492 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11493 (c_type_print_modifier, c_type_print_varspec_suffix)
11494 (c_type_print_base): Support printing rvalue reference types.
11495 * c-valprint.c (c_val_print, c_value_print): Support printing
11496 rvalue reference values.
11497
11498 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11499
11500 PR gdb/14441
11501 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11502 typename.
11503 * cp-support.c (replace_typedefs): Handle
11504 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11505 * python/py-type.c (typy_lookup_type): Likewise.
11506
11507 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11508
11509 PR gdb/14441
11510 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11511 * parse.c (insert_type): Change assert statement.
11512 (follow_types): Handle rvalue reference types.
11513 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11514 constant.
11515
11516 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11517
11518 PR gdb/14441
11519 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11520 value_ref() interface.
11521 * c-valprint.c (c_value_print): Likewise.
11522 * infcall.c (value_arg_coerce): Likewise.
11523 * python/py-value.c (valpy_reference_value): Likewise.
11524 * valops.c (value_cast, value_reinterpret_cast)
11525 (value_dynamic_cast, typecmp): Likewise.
11526 (value_ref): Parameterize by kind of return value reference type.
11527 * value.h (value_ref): Add new parameter "refcode".
11528
11529 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11530
11531 PR gdb/14441
11532 * dwarf2read.c (read_tag_reference_type): Use
11533 lookup_lvalue_reference_type() instead of lookup_reference_type().
11534 * eval.c (evaluate_subexp_standard): Likewise.
11535 * f-exp.y: Likewise.
11536 * gdbtypes.c (make_reference_type, lookup_reference_type):
11537 Generalize with rvalue reference types.
11538 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11539 convenience wrappers for lookup_reference_type().
11540 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11541 reference kind parameter.
11542 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11543 wrappers for lookup_reference_type().
11544 * guile/scm-type.c (gdbscm_type_reference): Use
11545 lookup_lvalue_reference_type() instead of lookup_reference_type().
11546 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11547 * parse.c (follow_types): Likewise.
11548 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11549 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11550 Likewise.
11551 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11552 (gdbpy_invoke_xmethod): Likewise.
11553 * stabsread.c: Provide extra argument to make_reference_type()
11554 call.
11555 * valops.c (value_ref, value_rtti_indirect_type): Use
11556 lookup_lvalue_reference_type() instead of lookup_reference_type().
11557
11558 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11559
11560 PR gdb/14441
11561 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11562 (TYPE_IS_REFERENCE): New macro.
11563 (struct type): Add rvalue_reference_type field.
11564 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11565
11566 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11567
11568 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11569 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11570 New function definition.
11571 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11572 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11573 New function declaration.
11574 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11575 * mi/mi-interp.h: New file.
11576 * solib.c (info_sharedlibrary_command): Replace for loop with
11577 ALL_SO_LIBS macro
11578 * solib.h (update_solib_list): New function declaration.
11579 (so_list_head): Move macro.
11580 * solist.h (ALL_SO_LIBS): New macro.
11581
11582 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11583
11584 * infcmd.c (post_create_inferior): Remove unused argument in
11585 call to solib_add.
11586 * remote.c (remote_start_remote): Likewise.
11587 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11588 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11589 (enable_break): Likewise.
11590 * solib.c (update_solib_list): Remove unused target argument
11591 and its documentation.
11592 (solib_add): Remove unused target argument. Remove unused
11593 argument in call to update_solib_list.
11594 (info_sharedlibrary_command): Remove unused argument in call
11595 to update_solib_list.
11596 (sharedlibrary_command): Remove unused argument in call to
11597 solib_add.
11598 (handle_solib_event): Likewise.
11599 (reload_shared_libraries): Likewise.
11600 * solib.h (solib_add): Remove unused target argument.
11601
11602 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11603
11604 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11605 (s390_displaced_step_fixup): Cover relative branches with the
11606 default fixup handling. This fixes lack of support for some
11607 relative branch instructions.
11608
11609 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11610
11611 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11612 ptid from regcache.
11613
11614 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11615
11616 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11617 i386_darwin_store_inferior_registers): Use ptid from regcache.
11618
11619 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11620
11621 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11622 i386bsd_store_inferior_registers): Use ptid from regcache.
11623
11624 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11625
11626 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11627 hppaobsd_store_registers): Use ptid from regcache.
11628
11629 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11630
11631 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11632 hppanbsd_store_registers): Use ptid from regcache.
11633
11634 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11635
11636 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11637 from regcache. Use get_ptrace_pid.
11638
11639 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11640
11641 * corelow.c (get_core_register_section): Use ptid from regcache,
11642 update doc.
11643
11644 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11645
11646 * bsd-uthread.c (bsd_uthread_fetch_registers,
11647 bsd_uthread_store_registers): Use ptid from regcache, set and
11648 restore inferior_ptid.
11649
11650 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11651
11652 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11653 fetch_fp_regs, store_register, store_regs, store_fp_register,
11654 store_fp_regs): Use ptid from regcache.
11655
11656 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11657
11658 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11659 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11660 store_vfp_regs): Use ptid from regcache.
11661
11662 2017-03-17 Pedro Alves <palves@redhat.com>
11663
11664 PR remote/21188
11665 * ser-base.c (ser_base_wait_for): Add comment.
11666 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11667 version.
11668 * ser-unix.c (hardwire_raw): Remove reference to
11669 scb->current_timeout.
11670 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11671 (hardwire_ops): Install ser_base_readchar instead of
11672 hardwire_readchar.
11673 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11674 Remove fields.
11675
11676 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
11677
11678 PR gdb/19637
11679 * python/lib/gdb/printer/bound_registers.py: Add support for
11680 Python 3.
11681
11682 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11683
11684 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11685 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11686 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11687 byte_offset to subobj_byte_offset. Fix the handling of
11688 DWARF_VALUE_STACK on big-endian targets when coming via an
11689 implicit pointer.
11690 (dwarf2_evaluate_loc_desc): Adjust call to
11691 dwarf2_evaluate_loc_desc_full.
11692 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11693 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11694
11695 2017-03-16 Yao Qi <yao.qi@linaro.org>
11696
11697 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11698 and REVSH instructions.
11699
11700 2017-03-16 Yao Qi <yao.qi@linaro.org>
11701
11702 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11703 (arm_record_test): Declare.
11704 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11705 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11706 align with the manual.
11707 (thumb_record_misc): Adjust the code order to align with the
11708 manual.
11709 (thumb2_record_decode_insn_handler): Fix instruction matching.
11710 (instruction_reader_thumb): New class.
11711 (arm_record_test): New function.
11712
11713 2017-03-16 Yao Qi <yao.qi@linaro.org>
11714
11715 * arm-tdep.c (abstract_memory_reader): New class.
11716 (instruction_reader): New class.
11717 (extract_arm_insn): Add argument 'reader'. Callers updated.
11718 (decode_insn): Likewise.
11719
11720 2017-03-16 Doug Evans <dje@google.com>
11721
11722 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11723 member. Change type of TYPE member to SCM. All uses updated.
11724 (lsscm_make_lazy_string_smob): Add assert.
11725 (lsscm_make_lazy_string): Flag bad length values.
11726 (lsscm_elt_type): New function.
11727 (gdbscm_lazy_string_to_value): Rewrite to use
11728 lsscm_safe_lazy_string_to_value.
11729 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11730 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11731 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11732 in incoming type.
11733 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11734 * guile/scm-type.c (tyscm_scm_to_type): New function.
11735
11736 2017-03-15 Doug Evans <dje@google.com>
11737
11738 PR python/17728, python/18439, python/18779
11739 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11740 member. Change type of TYPE member to PyObject *. All uses updated.
11741 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11742 (gdbpy_create_lazy_string_object): Flag bad length values.
11743 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
11744 Handle typedefs in incoming type.
11745 (stpy_lazy_string_elt_type): New function.
11746 (gdbpy_extract_lazy_string): Call it.
11747 * python/py-value.c (valpy_lazy_string): Flag bad length values.
11748 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
11749 typedefs in incoming type.
11750
11751 2017-03-16 Doug Evans <dje@google.com>
11752
11753 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11754 * guile/scm-type.c (tyscm_scm_to_type): New function.
11755
11756 2017-03-16 Jiong Wang <jiong.wang@arm.com>
11757
11758 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
11759 "ULONGEST" for "skip".
11760
11761 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11762
11763 PR gdb/21220
11764 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
11765 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
11766 (inf_ptrace_peek_poke): ...here. New function. Now also loop
11767 over ptrace peek/poke until end of buffer or error.
11768
11769 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
11770
11771 * parse.c (length_of_subexp): Make static.
11772 * parser-defs.h (length_of_subexp): Remove.
11773
11774 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11775
11776 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
11777 as well.
11778
11779 2017-03-14 Pedro Alves <palves@redhat.com>
11780
11781 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
11782 (main): Use std::unique_ptr. Remove calls to
11783 cp_demangled_name_parse_free.
11784
11785 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11786
11787 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
11788 alphabsd_store_inferior_registers): Use regcache->ptid instead
11789 of inferior_ptid.
11790
11791 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11792
11793 * aix-thread.c (aix_thread_fetch_registers,
11794 aix_thread_store_registers): Use regcache->ptid instead of
11795 inferior_ptid.
11796
11797 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11798
11799 * aarch64-linux-nat.c (fetch_gregs_from_thread,
11800 store_gregs_to_thread, fetch_fpregs_from_thread,
11801 store_fpregs_to_thread): Use regcache->ptid instead of
11802 inferior_ptid.
11803
11804 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11805
11806 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
11807 amd64_linux_fetch_inferior_registers): Use regcache->ptid
11808 instead of inferior_ptid.
11809
11810 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11811
11812 * target.c (target_fetch_registers, target_store_registers): Add
11813 assert.
11814
11815 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11816
11817 * regcache.h (regcache_get_ptid): New function.
11818 * regcache.c (regcache_get_ptid): New function.
11819
11820 2017-03-13 Mark Wielaard <mark@klomp.org>
11821
11822 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
11823
11824 2017-03-10 Keith Seitz <keiths@redhat.com>
11825
11826 PR c++/8218
11827 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
11828
11829 2017-03-08 Pedro Alves <palves@redhat.com>
11830
11831 PR gdb/18360
11832 * infrun.c (start_step_over, do_target_resume, resume)
11833 (restart_threads): Assert we're not resuming a thread that is
11834 meant to be stopped.
11835 (infrun_thread_stop_requested_callback): Delete.
11836 (infrun_thread_stop_requested): If the thread is internally
11837 stopped, queue a pending stop event and clear the thread's
11838 inline-frame state.
11839 (handle_stop_requested): New function.
11840 (handle_syscall_event, handle_inferior_event_1): Use
11841 handle_stop_requested.
11842 (handle_stop_requested): New function.
11843 (handle_signal_stop): Set the thread's stop_signal here instead of
11844 at caller.
11845 (finish_step_over): Clear step over info unconditionally.
11846 (handle_signal_stop): If the user had interrupted the event
11847 thread, consider the stop a random signal.
11848 (handle_signal_stop) <signal arrived while stepping over
11849 breakpoint>: Don't restart threads here.
11850 (stop_waiting): Don't clear step-over info here.
11851
11852 2017-03-08 Pedro Alves <palves@redhat.com>
11853
11854 PR 21206
11855 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
11856 goes to argument 2, not 1.
11857
11858 2017-03-08 Pedro Alves <palves@redhat.com>
11859
11860 PR cli/21218
11861 * top.c (gdb_readline_wrapper): Avoid passing NULL to
11862 display_gdb_prompt.
11863 (command_line_input): Add comment.
11864
11865 2017-03-08 Pedro Alves <palves@redhat.com>
11866
11867 PR tui/21216
11868 * tui/tui-file.c (tui_file::write): New.
11869 * tui/tui-file.h (tui_file): Override "write".
11870 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
11871 factored out from ...
11872 (tui_puts): ... here.
11873 (tui_putc): Use them.
11874 (tui_write): New function.
11875 * tui/tui-io.h (tui_write): Declare.
11876
11877 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
11878
11879 * Makefile.in (SFILES): Replace "environ.c" with
11880 "common/environ.c".
11881 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
11882 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
11883 to...
11884 * common/environ.c: ... here.
11885 * environ.h: Moved to...
11886 * common/environ.h: ... here.
11887
11888 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11889
11890 * gdbarch.sh (pstring_ptr): New static function.
11891 (gdbarch_disassembler_options): Use it.
11892 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
11893 not valid_disassembler_option->name.
11894 * gdbarch.c: Regenerate.
11895
11896 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11897
11898 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
11899
11900 2017-03-07 Pedro Alves <palves@redhat.com>
11901
11902 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
11903
11904 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
11905
11906 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
11907 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
11908 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
11909 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
11910
11911 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
11912
11913 * xtensa-linux-nat.c (fetch_gregs): Remove const.
11914
11915 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
11916
11917 * remote.c (remote_add_target_side_commands): Use range-based
11918 for loop.
11919
11920 2017-03-03 Yao Qi <yao.qi@linaro.org>
11921
11922 PR gdb/21165
11923 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
11924 value is lazy.
11925 * valprint.c (common_val_print): Likewise.
11926
11927 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
11928
11929 * NEWS: Mention new set/show disassembler-options commands.
11930 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
11931 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
11932 (prospective_options): New static variable.
11933 (gdb_disassembler::gdb_disassembler): Initialize
11934 m_di.disassembler_options.
11935 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
11936 (get_disassembler_options): New function.
11937 (set_disassembler_options): Likewise.
11938 (set_disassembler_options_sfunc): Likewise.
11939 (show_disassembler_options_sfunc): Likewise.
11940 (disassembler_options_completer): Likewise.
11941 (_initialize_disasm): Likewise.
11942 * disasm.h (get_disassembler_options): New prototype.
11943 (set_disassembler_options): Likewise.
11944 * gdbarch.sh (gdbarch_disassembler_options): New variable.
11945 (gdbarch_verify_disassembler_options): Likewise.
11946 * gdbarch.c: Regenerate.
11947 * gdbarch.h: Likewise.
11948 * arm-tdep.c (num_disassembly_options): Delete.
11949 (set_disassembly_style): Likewise.
11950 (arm_disassembler_options): New static variable.
11951 (set_disassembly_style_sfunc): Convert short style name into long
11952 option name. Call set_disassembler_options.
11953 (show_disassembly_style_sfunc): New function.
11954 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
11955 set_gdbarch_verify_disassembler_options.
11956 (_initialize_arm_tdep): Delete regnames variable and update callers.
11957 (arm_disassembler_options): Initialize.
11958 (disasm_options): New variable.
11959 (num_disassembly_options): Rename from this...
11960 (num_disassembly_styles): ...to this. Compute by scanning through
11961 disasm_options.
11962 (valid_disassembly_styles): Initialize using disasm_options.
11963 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
11964 set_arm_regname_option.
11965 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
11966 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
11967 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
11968 set_gdbarch_verify_disassembler_options.
11969 * s390-tdep.c (s390_disassembler_options): New static variable.
11970 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
11971 set_gdbarch_verify_disassembler_options.
11972
11973 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
11974
11975 * remote.c (remote_add_target_side_condition): Remove "struct"
11976 keyword from range-based for loop.
11977
11978 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
11979
11980 * remote.c (remote_add_target_side_condition): Use range-based
11981 for loop. Update comment.
11982
11983 2017-02-27 Yao Qi <yao.qi@linaro.org>
11984
11985 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
11986
11987 2017-02-26 Alan Hayward <alan.hayward@arm.com>
11988
11989 * regcache.c (regcache_raw_update): New function.
11990 (regcache_raw_read): Move code to regcache_raw_update.
11991 * regcache.h (regcache_raw_update): New declaration.
11992 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
11993
11994 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11995
11996 * dwarf2read.c (create_debug_type_hash_table): Initialize
11997 header.signature and header.type_offset_in_tu.
11998
11999 2017-02-24 Pedro Alves <palves@redhat.com>
12000
12001 * symtab.c (make_file_symbol_completion_list_1): Use
12002 add_symtab_completions.
12003
12004 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12005
12006 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12007
12008 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12009
12010 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12011 I386_MAX_REGISTER_SIZE.
12012 (i386_pseudo_register_write): Likewise.
12013 (i386_process_record): Likewise.
12014 * i387-tdep.c (i387_supply_xsave): Likewise.
12015 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12016 (store_register): Likewise.
12017
12018 2017-02-23 Pedro Alves <palves@redhat.com>
12019
12020 * ada-lang.c: Include "common/function-view.h".
12021 (ada_iterate_over_symbols): Adjust to use function_view as
12022 callback type.
12023 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12024 (ada_make_symbol_completion_list): Use a lambda.
12025 (ada_exc_search_name_matches): Delete.
12026 (name_matches_regex): New.
12027 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12028 * compile/compile-c-support.c: Include "common/function-view.h".
12029 (print_one_macro): Change prototype to accept a ui_file pointer.
12030 (write_macro_definitions): Use a lambda.
12031 * dwarf2read.c: Include "common/function-view.h".
12032 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12033 (dw2_expand_symtabs_matching): Adjust to use function_view as
12034 callback type.
12035 * language.h: Include "common/function-view.h".
12036 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12037 function_view as callback type.
12038 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12039 * linespec.c: Include "common/function-view.h".
12040 (collect_info::add_symbol): New method.
12041 (struct symbol_and_data_callback, iterate_inline_only, struct
12042 symbol_matcher_data, iterate_name_matcher): Delete.
12043 (iterate_over_all_matching_symtabs): Adjust to use function_view
12044 as callback type and lambdas.
12045 (iterate_over_file_blocks): Adjust to use function_view as
12046 callback type.
12047 (decode_compound_collector): Now a class with private fields.
12048 (decode_compound_collector::release_symbols): New method.
12049 (collect_one_symbol): Rename to...
12050 (decode_compound_collector::operator()): ... this and adjust.
12051 (lookup_prefix_sym): decode_compound_collector construction bits
12052 move to decode_compound_collector ctor. Pass the
12053 decode_compound_collector object directly as callback. Remove
12054 cleanups and use decode_compound_collector::release_symbols
12055 instead.
12056 (symtab_collector): Now a class with private fields.
12057 (symtab_collector::release_symtabs): New method.
12058 (add_symtabs_to_list): Rename to...
12059 (symtab_collector::operator()): ... this and adjust.
12060 (collect_symtabs_from_filename): symtab_collector construction
12061 bits move to symtab_collector ctor. Pass the symtab_collector
12062 object directly as callback. Remove cleanups and use
12063 symtab_collector::release_symtabs instead.
12064 (collect_symbols): Delete.
12065 (add_matching_symbols_to_info): Use lambdas.
12066 * macrocmd.c (print_macro_callback): Delete.
12067 (info_macro_command): Use a lambda.
12068 (info_macros_command): Pass print_macro_definition as callable
12069 directly.
12070 (print_one_macro): Remove 'ignore' parameter.
12071 (macro_list_command): Adjust.
12072 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12073 (macro_for_each_data::user_data): Delete field.
12074 (foreach_macro): Adjust to call the function_view.
12075 (macro_for_each): Adjust to use function_view as callback type.
12076 (foreach_macro_in_scope): Adjust to call the function_view.
12077 (macro_for_each_in_scope): Adjust to use function_view as callback
12078 type.
12079 * macrotab.h: Include "common/function-view.h".
12080 (macro_callback_fn): Declare a prototype instead of a pointer.
12081 Remove "user_data" parameter.
12082 (macro_for_each, macro_for_each_in_scope): Adjust to use
12083 function_view as callback type.
12084 * psymtab.c (partial_map_expand_apply)
12085 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12086 Adjust to use function_view as callback type and to return bool.
12087 (psym_expand_symtabs_matching): Adjust to use function_view as
12088 callback types.
12089 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12090 to use function_view as callback type and to return bool.
12091 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12092 callback types.
12093 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12094 as callback types.
12095 * symfile.h: Include "common/function-view.h".
12096 (expand_symtabs_file_matcher_ftype)
12097 (expand_symtabs_symbol_matcher_ftype)
12098 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12099 return bool.
12100 (quick_symbol_functions::map_symtabs_matching_filename)
12101 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12102 function_view as callback type and return bool.
12103 (expand_symtabs_matching): Adjust to use function_view as callback
12104 type.
12105 (maintenance_expand_name_matcher)
12106 (maintenance_expand_file_matcher): Delete.
12107 (maintenance_expand_symtabs): Use lambdas.
12108 * symtab.c (iterate_over_some_symtabs): Adjust to use
12109 function_view as callback types and return bool.
12110 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12111 of a cleanup.
12112 (lookup_symtab_callback): Delete.
12113 (lookup_symtab): Use a lambda.
12114 (iterate_over_symbols): Adjust to use function_view as callback
12115 type.
12116 (struct search_symbols_data, search_symbols_file_matches)
12117 (search_symbols_name_matches): Delete.
12118 (search_symbols): Use a pair of lambdas.
12119 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12120 (symtab_expansion_callback): Delete.
12121 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12122 * symtab.h: Include "common/function-view.h".
12123 (iterate_over_some_symtabs): Adjust to use function_view as
12124 callback type and return bool.
12125 (iterate_over_symtabs): Adjust to use function_view as callback
12126 type.
12127 (symbol_found_callback_ftype): Remove 'data' parameter and return
12128 bool.
12129 (iterate_over_symbols): Adjust to use function_view as callback
12130 type.
12131
12132 2017-02-23 Pedro Alves <palves@redhat.com>
12133
12134 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12135 (%.o) <unittests/%.c>: New pattern.
12136 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12137 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12138 * common/function-view.h: New file.
12139 * unittests/function-view-selftests.c: New file.
12140 * configure: Regenerate.
12141
12142 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12143
12144 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12145 inferior_ptid.
12146 * go32-nat.c (go32_thread_alive): Likewise.
12147
12148 2017-02-23 Yao Qi <yao.qi@linaro.org>
12149
12150 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12151 delete.
12152
12153 2017-02-23 Yao Qi <yao.qi@linaro.org>
12154
12155 * varobj.c (varobj_clear_saved_item): Use delete instead of
12156 xfree.
12157 (update_dynamic_varobj_children): Likewise.
12158
12159 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12160
12161 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12162
12163 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12164
12165 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12166 m_enum_value to 0 in default constructor.
12167
12168 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12169
12170 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12171 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12172 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12173 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12174 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12175 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12176 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12177 IS_STORE_CONDITIONAL_INSN.
12178
12179 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12180
12181 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12182
12183 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12184
12185 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12186
12187 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12188
12189 * dwarf2read.c (skip_one_die, read_attribute_value)
12190 (dwarf2_const_value_attr, dump_die_shallow)
12191 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12192 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12193
12194 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12195
12196 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12197 (dwarf_parse_macro_header): Accept DWARF version 5.
12198 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12199
12200 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12201
12202 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12203 DW_AT_GNU_*.
12204 * common/common-exceptions.h (enum errors): Likewise.
12205 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12206 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12207 (dwarf_expr_context::execute_stack_op): Likewise.
12208 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12209 Likewise.
12210 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12211 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12212 (show_entry_values_debug, call_site_to_target_addr)
12213 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12214 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12215 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12216 (value_of_dwarf_block_entry, indirect_pieced_value)
12217 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12218 (disassemble_dwarf_expression): Likewise.
12219 * dwarf2read.c (process_die, inherit_abstract_dies)
12220 (read_call_site_scope): Likewise.
12221 * gdbtypes.h (struct func_type, struct call_site_parameter)
12222 (struct call_site): Likewise.
12223 * stack.c (read_frame_arg): Likewise.
12224 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12225
12226 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12227
12228 * defs.h (read_unsigned_leb128): New declaration.
12229 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12230 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12231 (dwarf2_find_location_expression): Call also
12232 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12233 * dwarf2loc.h (dwarf2_version): New declaration.
12234 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12235 rnglists.
12236 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12237 .debug_rnglists.
12238 (struct dwop_section_names): Add loclists_dwo.
12239 (dwop_section_names): Add .debug_loclists.dwo.
12240 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12241 (struct dwarf2_per_cu_data): Add dwarf_version.
12242 (struct dwo_sections): Add loclists.
12243 (struct attr_abbrev): Add implicit_const.
12244 (read_indirect_line_string): New declaration.
12245 (read_unsigned_leb128): Delete declaration.
12246 (rcuh_kind): New definition.
12247 (read_and_check_comp_unit_head): Change parameter
12248 is_debug_types_section to section_kind.
12249 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12250 (read_comp_unit_head): Change parameter abfd to section, add parameter
12251 section_kind. Handle DWARF-5.
12252 (error_check_comp_unit_head): Accept also DWARF version 5.
12253 (read_and_check_comp_unit_head): Change parameter
12254 is_debug_types_section to section_kind.
12255 (read_and_check_type_unit_head): Delete function.
12256 (read_abbrev_offset): Handle DWARF-5.
12257 (create_debug_type_hash_table): Add parameter section_kind. Process
12258 only DW_UT_type. Use signature and type_offset_in_tu from struct
12259 comp_unit_head.
12260 (create_debug_types_hash_table): Update create_debug_type_hash_table
12261 caller.
12262 (create_all_type_units): Call create_debug_type_hash_table.
12263 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12264 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12265 caller.
12266 (skip_one_die): Handle DW_FORM_implicit_const.
12267 (dwarf2_rnglists_process): New function.
12268 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12269 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12270 (read_attribute_value): Handle DW_FORM_implicit_const,
12271 DW_FORM_line_strp.
12272 (read_attribute): Handle DW_FORM_implicit_const.
12273 (read_indirect_string_at_offset_from): New function from
12274 read_indirect_string_at_offset.
12275 (read_indirect_string_at_offset): Call
12276 read_indirect_string_at_offset_from.
12277 (read_indirect_line_string_at_offset): New function.
12278 (read_indirect_string): New function comment.
12279 (read_indirect_line_string): New function.
12280 (read_unsigned_leb128): Make it global.
12281 (dwarf2_string_attr): Handle DWARF-5.
12282 (add_include_dir_stub, read_formatted_entries): New functions.
12283 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12284 Handle DWARF-5.
12285 (per_cu_header_read_in): Update read_comp_unit_head caller.
12286 (dwarf2_version): New function.
12287 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12288 rnglists.
12289 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12290 fields.
12291
12292 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12293
12294 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12295
12296 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12297
12298 * dwarf2read.c (dwarf2_ranges_process): New function from
12299 dwarf2_ranges_read.
12300 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12301 dwarf2_ranges_process.
12302
12303 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12304
12305 * dwarf2read.c (create_debug_type_hash_table): New function from
12306 create_debug_types_hash_table.
12307 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12308 (create_all_type_units, open_and_init_dwo_file): Update
12309 create_debug_types_hash_table callers.
12310
12311 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12312
12313 PR gdb/16188
12314 * fork-child.c (trace_start_error): Fix thinko. va_end should
12315 refer to 'ap', not 'args'.
12316
12317 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12318 Pedro Alves <palves@redhat.com>
12319
12320 PR gdb/16188
12321 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12322 calls succeeded.
12323 * fork-child.c (trace_start_error): New function.
12324 (trace_start_error_with_name): Likewise.
12325 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12326 * inf-ptrace.c (inf_ptrace_me): Likewise.
12327 * inferior.h (trace_start_error): New prototype.
12328 (trace_start_error_with_name): Likewise.
12329
12330 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12331
12332 PR gdb/21164
12333 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12334 NULL before using it.
12335 * symmisc.c (maintenance_print_symbols): Likewise.
12336 (maintenance_print_msymbols): Likewise.
12337
12338 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12339
12340 * NEWS: Add record Python bindings entry.
12341
12342 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12343
12344 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12345 py-record-full.o.
12346 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12347 * python/py-record-btrace.c, python/py-record-btrace.h,
12348 python/py-record-full.c, python/py-record-full.h: New file.
12349 * python/py-record.c: Add include for py-record-btrace.h and
12350 py-record-full.h.
12351 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12352 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12353 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12354 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12355 New definition.
12356 (gdbpy_initialize_btrace): New export.
12357 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12358
12359 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12360
12361 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12362 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12363 * python/py-record.c: New file.
12364 * python/python-internal.h (gdbpy_start_recording,
12365 gdbpy_current_recording, gdpy_stop_recording,
12366 gdbpy_initialize_record): New export.
12367 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12368 (python_GdbMethods): Add gdbpy_start_recording,
12369 gdbpy_current_recording and gdbpy_stop_recording.
12370
12371 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12372
12373 * record-btrace.c (record_btrace_record_method): New function.
12374 (init_record_btrace_ops): Initialize to_record_method.
12375 * record-full.c (record_full_record_method): New function.
12376 (init_record_full_ops, init_record_full_core_ops): Add
12377 record_full_record_method.
12378 * record.h (enum record_method): New enum.
12379 * target-debug.h (target_debug_print_enum_record_method: New define.
12380 * target-delegates.c: Regenerate.
12381 * target.c (target_record_method): New function.
12382 * target.h: Include record.h.
12383 (struct target_ops) <to_record_method>: New field.
12384 (target_record_method): New export.
12385
12386 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12387
12388 * record.h (record_start, record_stop): New export.
12389 * record.c (record_start, record_stop): New function.
12390
12391 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12392
12393 * btrace.c (btrace_fetch): Copy function call segments pointer
12394 into a vector.
12395 (btrace_clear): Clear the vector.
12396 (btrace_find_insn_by_number): Use binary search to find the correct
12397 function call segment.
12398 * btrace.h (brace_fun_p): New typedef.
12399 (struct btrace_thread_info) <functions>: New field.
12400
12401 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12402
12403 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12404 * btrace.c (btrace_decode_error): ... here. New function.
12405 * btrace.h (btrace_decode_error): New export.
12406
12407 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12408
12409 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12410 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12411 btrace_find_insn_by_number): Remove special case for gaps.
12412 * btrace.h (btrace_insn_get_error): New export.
12413 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12414 * record-btrace.c (btrace_insn_history): Print number for gaps.
12415 (record_btrace_info, record_btrace_goto): Handle gaps.
12416
12417 2017-02-14 Tom Tromey <tom@tromey.com>
12418
12419 PR python/13598:
12420 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12421 event.
12422 * python/py-evts.c (gdbpy_initialize_py_events): Add
12423 before_prompt registry.
12424 * python/py-events.h (events_object) <before_prompt>: New field.
12425
12426 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12427
12428 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12429
12430 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
12431
12432 * symfile (_initialize_symfile): Add usage text to the load command's
12433 help text.
12434
12435 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12436
12437 * utils.c (defaulted_query): Don't query on secondary UIs.
12438
12439 2017-02-10 Tom Tromey <tom@tromey.com>
12440
12441 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12442
12443 2017-02-10 Tom Tromey <tom@tromey.com>
12444
12445 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12446 "cleanup" local.
12447 * python/py-type.c (typy_legacy_template_argument): Remove
12448 unnecessary "cleanup" local.
12449
12450 2017-02-10 Tom Tromey <tom@tromey.com>
12451
12452 * python/python.c (do_start_initialization): New function, from
12453 _initialize_python.
12454 (_initialize_python): Call do_start_initialization.
12455 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12456 goto.
12457
12458 2017-02-10 Tom Tromey <tom@tromey.com>
12459
12460 * python/py-prettyprint.c (pretty_print_one_value): Use
12461 gdbpy_ref.
12462
12463 2017-02-10 Tom Tromey <tom@tromey.com>
12464
12465 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12466 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12467 gdbpy_ref.
12468 * python/py-type.c (field_new): Use gdbpy_ref.
12469 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12470 gdbpy_ref.
12471 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12472 (py_free_pspace): Likewise.
12473 (pspace_to_pspace_object): Likewise.
12474 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12475 (py_free_objfile): Likewise.
12476 (objfile_to_objfile_object): Likewise.
12477 * python/py-inferior.c (delete_thread_object): Use
12478 gdbpy_ref.
12479 (infpy_read_memory): Likewise.
12480 (py_free_inferior): Likewise.
12481 * python/py-evtregistry.c (create_eventregistry_object): Use
12482 gdbpy_ref.
12483 * python/py-event.c (create_event_object): Use gdbpy_ref.
12484
12485 2017-02-10 Tom Tromey <tom@tromey.com>
12486
12487 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12488 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12489 used.
12490 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12491 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12492 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12493 python/py-framefilter.c, python/py-function.c,
12494 python/py-inferior.c, python/py-infevents.c,
12495 python/py-linetable.c, python/py-newobjfileevent.c,
12496 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12497 python/py-signalevent.c, python/py-stopevent.c,
12498 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12499 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12500 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12501 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12502
12503 2017-02-10 Tom Tromey <tom@tromey.com>
12504
12505 * ui-out.h (ui_out_emit_type): New class.
12506 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12507 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12508 and ui_out_emit_tuple.
12509 (enumerate_locals): Likewise.
12510 (py_mi_print_variables, py_print_locals, py_print_args): Use
12511 ui_out_emit_list.
12512 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12513 ui_out_emit_list.
12514 * common/gdb_optional.h: New file.
12515
12516 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12517
12518 * MAINTAINERS (Write After Approval): Update my e-mail address.
12519
12520 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12521
12522 PR gdb/21122
12523 * breakpoint.c (_initialize_breakpoint): Update the help description
12524 of the 'commands' command to indicate that it takes a list argument.
12525
12526 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12527
12528 * interps.c (current_interp_set_logging): Remove "return".
12529
12530 2017-02-09 Gary Benson <gbenson@redhat.com>
12531
12532 * symtab.c (add_symtab_completions): Prevent NULL pointer
12533 dereference.
12534
12535 2017-02-08 Pedro Alves <palves@redhat.com>
12536
12537 * interps.c (interp::interp): Remove reference to quiet_p.
12538 (interp_set): Make static. Remove dead "Switching to" output
12539 code.
12540 (interp_quiet_p, interp_set_quiet): Delete.
12541 (interpreter_exec_cmd): Don't set the interpreter quiet.
12542 * interps.h (interp_quiet_p): Make static.
12543 (class interp) <quiet_p>: Remove field
12544
12545 2017-02-08 Jerome Guitton <guitton@adacore.com>
12546
12547 * cli/cli-decode.c (find_command_name_length): Make it extern.
12548 * cli/cli-decode.h (find_command_name_length): Declare.
12549 * cli/cli-script.c (command_name_equals, line_first_arg):
12550 New functions.
12551 (process_next_line): Use cli-decode to parse command names.
12552 (build_command_line): Make args a constant pointer.
12553
12554 2017-02-08 Jerome Guitton <guitton@adacore.com>
12555
12556 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12557 Remove case-insensitive search.
12558
12559 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12560
12561 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12562 at the end of the line. Avoids an ARI warning.
12563
12564 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
12565
12566 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12567 rdseed instructions.
12568 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12569
12570 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12571
12572 PR tdep/20936
12573 Provide and use sparc32 and sparc64 target description XML files.
12574 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12575 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12576 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12577 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12578 * features/sparc/sparc32-solaris.xml: New file.
12579 * features/sparc/sparc64-solaris.xml: New file.
12580 * features/sparc/sparc32-solaris.c: Generated.
12581 * features/sparc/sparc64-solaris.c: Generated.
12582 * sparc-tdep.h: Account for differences in target descriptions.
12583 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12584 (sparc32_register_type): Use target provided registers.
12585 (validate_tdesc_registers): New function.
12586 (sparc32_gdbarch_init): Use tdesc_has_registers.
12587 Set pseudoregister functions.
12588 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12589 (sparc64_register_type): Use target provided registers.
12590 (sparc64_init_abi): Set pseudoregister functions.
12591
12592 2017-02-03 Tom Tromey <tom@tromey.com>
12593
12594 PR rust/21097:
12595 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12596 with a single member.
12597
12598 2017-02-03 Pedro Alves <palves@redhat.com>
12599
12600 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12601 (cli_interp_base::~cli_interp_base): New.
12602 (cli_interp): New struct.
12603 (as_cli_interp): Cast the interp itself to cli_interp.
12604 (cli_interpreter_pre_command_loop): Rename to ...
12605 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12606 parameter.
12607 (cli_interpreter_init): Rename to ...
12608 (cli_interp::init): ... this. Remove 'self' parameter. Use
12609 boolean. Make extern.
12610 (cli_interpreter_resume): Rename to ...
12611 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12612 extern.
12613 (cli_interpreter_suspend): Rename to ...
12614 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12615 extern.
12616 (cli_interpreter_exec): Rename to ...
12617 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12618 extern.
12619 (cli_interpreter_supports_command_editing): Rename to ...
12620 (cli_interp_base::supports_command_editing): ... this. Remove
12621 'interp' parameter. Make extern.
12622 (cli_ui_out): Rename to ...
12623 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12624 Make extern.
12625 (cli_set_logging): Rename to ...
12626 (cli_interp_base::set_logging): ... this. Remove 'interp'
12627 parameter. Make extern.
12628 (cli_interp_procs): Delete.
12629 (cli_interp_factory): Adjust to use "new".
12630 * cli/cli-interp.h: Include "interps.h".
12631 (struct cli_interp_base): New struct.
12632 * interps.c (struct interp): Delete. Fields moved to interps.h.
12633 (interp_new): Delete.
12634 (interp::interp, interp::~interp): New.
12635 (interp_set): Use bool, and return void. Assume the interpreter
12636 has suspend, init and resume methods, and that the all return
12637 void.
12638 (set_top_level_interpreter): interp_set returns void.
12639 (interp_ui_out): Adapt.
12640 (current_interp_set_logging): Adapt.
12641 (interp_data): Delete.
12642 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12643 (interp_exec): Adapt.
12644 (top_level_interpreter_data): Delete.
12645 * interps.h (interp_init_ftype, interp_resume_ftype)
12646 (interp_suspend_ftype, interp_exec_ftype)
12647 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12648 (class interp): New.
12649 (interp_new): Delete.
12650 (interp_set): Now returns void. Use bool.
12651 (interp_data, top_level_interpreter_data): Delete.
12652 * mi/mi-common.h: Include interps.h.
12653 (class mi_interp): Inherit from interp. Define a ctor. Declare
12654 init, resume, suspect, exec, interp_ui_out, set_logging and
12655 pre_command_loop methods.
12656 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12657 (mi_interpreter_init): Rename to ...
12658 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12659 bool, return void and make extern. Adjust.
12660 (mi_interpreter_resume): ... Rename to ...
12661 (mi_interp::resume): ... this. Remove the 'data' parameter,
12662 return void and make extern. Adjust.
12663 (mi_interpreter_suspend): ... Rename to ...
12664 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12665 return void and make extern. Adjust.
12666 (mi_interpreter_exec): ... Rename to ...
12667 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12668 extern. Adjust.
12669 (mi_interpreter_pre_command_loop): ... Rename to ...
12670 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12671 parameter and make extern.
12672 (mi_on_normal_stop_1): Adjust.
12673 (mi_ui_out): Rename to ...
12674 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12675 parameter and make extern. Adjust.
12676 (mi_set_logging): Rename to ...
12677 (mi_interp::set_logging): ... this. Remove the 'interp'
12678 parameter and make extern. Adjust.
12679 (mi_interp_procs): Delete.
12680 (mi_interp_factory): Adjust to use 'new'.
12681 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12682 (mi_print_exception, mi_execute_command, mi_load_progress):
12683 Adjust.
12684 * tui/tui-interp.c (tui_interp): New class.
12685 (as_tui_interp): Return a tui_interp pointer.
12686 (tui_on_normal_stop, tui_on_signal_received)
12687 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12688 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12689 to use interp::interp_ui_out.
12690 (tui_init): Rename to ...
12691 (tui_interp::init): ... this. Remove the 'self' parameter, use
12692 bool, return void and make extern. Adjust.
12693 (tui_resume): Rename to ...
12694 (tui_interp::resume): ... this. Remove the 'data' parameter,
12695 return void and make extern. Adjust.
12696 (tui_suspend): Rename to ...
12697 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12698 return void and make extern. Adjust.
12699 (tui_ui_out): Rename to ...
12700 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12701 parameter, and make extern. Adjust.
12702 (tui_exec): Rename to ...
12703 (tui_interp::exec): ... this. Remove the 'data' parameter and
12704 make extern.
12705 (tui_interp_procs): Delete.
12706 (tui_interp_factory): Use "new".
12707
12708 2017-02-02 Tom Tromey <tom@tromey.com>
12709
12710 * rust-exp.y (ends_raw_string, space_then_number)
12711 (rust_identifier_start_p): Return bool.
12712 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12713 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12714 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12715 (rust_chartype_p): Return bool.
12716 (val_print_struct, rust_print_struct_def, rust_print_type):
12717 Update.
12718 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12719 Return bool.
12720
12721 2017-02-02 Tom Tromey <tom@tromey.com>
12722
12723 * rust-lang.c: Reindent.
12724
12725 2017-02-02 Tom Tromey <tom@tromey.com>
12726
12727 * rust-lang.h (rust_crate_for_block): Update.
12728 * rust-lang.c (rust_crate_for_block): Return std::string.
12729 (rust_get_disr_info): Use std:;string, not
12730 gdb::unique_xmalloc_ptr.
12731 * rust-exp.y (crate_name): Update.
12732
12733 2017-02-02 Pedro Alves <palves@redhat.com>
12734
12735 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12736 field out of gdb_disassembler_test and make it static.
12737
12738 2017-02-02 Pedro Alves <palves@redhat.com>
12739
12740 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12741 mi1_interp and mi_interp fields.
12742
12743 2017-02-02 Pedro Alves <palves@redhat.com>
12744
12745 * cli/cli-interp.c (struct saved_output_files, saved_output):
12746 Moved from cli/cli-logging.c.
12747 (cli_set_logging): New function.
12748 (cli_interp_procs): Install cli_set_logging.
12749 * cli/cli-interp.h (make_logging_output, cli_set_logging):
12750 Declare.
12751 * cli/cli-logging.c (struct saved_output_files, saved_output):
12752 Moved to cli/cli-interp.c.
12753 (pop_output_files): Don't save outputs here.
12754 (make_logging_output): New function.
12755 (handle_redirections): Don't build tee nor save previous outputs
12756 here.
12757 * interps.c (current_interp_set_logging): Change prototype.
12758 Assume there's always a set_logging_proc method installed.
12759 * interps.h (interp_set_logging_ftype): Change prototype.
12760 (current_interp_set_logging): Change prototype and adjust comment.
12761 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
12762 use make_logging_output.
12763 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
12764 2017-02-02 Pedro Alves <palves@redhat.com>
12765
12766 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
12767 from ...
12768 (set_logging_overwrite): ... here.
12769 (logging_no_redirect_file): Delete.
12770 (set_logging_redirect): Don't handle redirection on the fly.
12771 Instead warn that "logging off" / "logging on" is necessary.
12772 (pop_output_files): Delete references to logging_no_redirect_file.
12773 (show_logging_command): Always speak in terms of what will happen
12774 once logging is reenabled.
12775
12776 2017-02-02 Pedro Alves <palves@redhat.com>
12777
12778 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
12779
12780 2017-02-02 Pedro Alves <palves@redhat.com>
12781
12782 * disasm.c (gdb_pretty_print_insn): Rename to ...
12783 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
12784 Remove gdbarch parameter. Adapt to clear the object's buffers
12785 instead of allocating new buffers, and to print using the object's
12786 gdb_disassembler instead of calling gdb_print_insn.
12787 (dump_insns): Use gdb_pretty_print_disassembler.
12788 * disasm.h (gdb_pretty_print_insn): Delete declaration.
12789 (gdb_pretty_print_disassembler): New class.
12790 * record-btrace.c (btrace_insn_history): Use
12791 gdb_pretty_print_disassembler.
12792
12793 2017-02-02 Pedro Alves <palves@redhat.com>
12794
12795 * ada-lang.c (type_as_string): Use string_file.
12796 * ada-valprint.c (ada_print_floating): Use string_file.
12797 * ada-varobj.c (ada_varobj_scalar_image)
12798 (ada_varobj_get_value_image): Use string_file.
12799 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
12800 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
12801 * breakpoint.c (update_inserted_breakpoint_locations)
12802 (insert_breakpoint_locations, reattach_breakpoints)
12803 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
12804 (print_it_watchpoint): Use string_file.
12805 (save_breakpoints): Use stdio_file.
12806 * c-exp.y (oper): Use string_file.
12807 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
12808 tee_file.
12809 (pop_output_files): Use delete.
12810 (handle_redirections): Use stdio_file and tee_file.
12811 * cli/cli-setshow.c (do_show_command): Use string_file.
12812 * compile/compile-c-support.c (c_compute_program): Use
12813 string_file.
12814 * compile/compile-c-symbols.c (generate_vla_size): Take a
12815 'string_file &' instead of a 'ui_file *'.
12816 (generate_c_for_for_one_variable): Take a 'string_file &' instead
12817 of a 'ui_file *'. Use string_file.
12818 (generate_c_for_variable_locations): Take a 'string_file &'
12819 instead of a 'ui_file *'.
12820 * compile/compile-internal.h (generate_c_for_for_one_variable):
12821 Take a 'string_file &' instead of a 'ui_file *'.
12822 * compile/compile-loc2c.c (push, pushf, unary, binary)
12823 (print_label, pushf_register_address, pushf_register)
12824 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
12825 'ui_file *'. Adjust.
12826 * compile/compile.c (compile_to_object): Use string_file.
12827 * compile/compile.h (compile_dwarf_expr_to_c)
12828 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
12829 'ui_file *'.
12830 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
12831 (replace_typedefs_qualified_name): Use string_file and
12832 obstack_copy0.
12833 * disasm.c (gdb_pretty_print_insn): Use string_file.
12834 (gdb_disassembly): Adjust reference the null_stream global.
12835 (do_ui_file_delete): Delete.
12836 (gdb_insn_length): Use null_stream.
12837 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
12838 * dwarf2loc.c (dwarf2_compile_property_to_c)
12839 (locexpr_generate_c_location, loclist_generate_c_location): Take a
12840 'string_file &' instead of a 'ui_file *'.
12841 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
12842 * dwarf2read.c (do_ui_file_peek_last): Delete.
12843 (dwarf2_compute_name): Use string_file.
12844 * event-top.c (gdb_setup_readline): Use stdio_file.
12845 * gdbarch.sh (verify_gdbarch): Use string_file.
12846 * gdbtypes.c (safe_parse_type): Use null_stream.
12847 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
12848 string_file.
12849 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
12850 'string_file *' instead of a 'ui_file *'.
12851 (gdbscm_arch_disassemble): Use string_file.
12852 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
12853 * guile/scm-ports.c (class ioscm_file_port): Now a class that
12854 inherits from ui_file.
12855 (ioscm_file_port_delete, ioscm_file_port_rewind)
12856 (ioscm_file_port_put): Delete.
12857 (ioscm_file_port_write): Rename to ...
12858 (ioscm_file_port::write): ... this. Remove file_port_magic
12859 checks.
12860 (ioscm_file_port_new): Delete.
12861 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
12862 ui_file_up.
12863 * guile/scm-type.c (tyscm_type_name): Use string_file.
12864 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
12865 Use string_file.
12866 * infcmd.c (print_return_value_1): Use string_file.
12867 * infrun.c (print_target_wait_results): Use string_file.
12868 * language.c (add_language): Use string_file.
12869 * location.c (explicit_to_string_internal): Use string_file.
12870 * main.c (captured_main_1): Use null_file.
12871 * maint.c (maintenance_print_architecture): Use stdio_file.
12872 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
12873 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
12874 event_channel>: Change type to mi_console_file pointer.
12875 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
12876 (mi_console_file_delete): Delete.
12877 (struct mi_console_file): Delete.
12878 (mi_console_file_magic): Delete.
12879 (mi_console_file_new): Delete.
12880 (mi_console_file::mi_console_file): New.
12881 (mi_console_file_delete): Delete.
12882 (mi_console_file_fputs): Delete.
12883 (mi_console_file::write): New.
12884 (mi_console_raw_packet): Delete.
12885 (mi_console_file::flush): New.
12886 (mi_console_file_flush): Delete.
12887 (mi_console_set_raw): Rename to ...
12888 (mi_console_file::set_raw): ... this.
12889 * mi/mi-console.h (class mi_console_file): New class.
12890 (mi_console_file_new, mi_console_set_raw): Delete.
12891 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
12892 (mi_set_logging): Use delete and tee_file. Adjust.
12893 * mi/mi-main.c (output_register): Use string_file.
12894 (mi_cmd_data_evaluate_expression): Use string_file.
12895 (mi_cmd_data_read_memory): Use string_file.
12896 (mi_cmd_execute, print_variable_or_computed): Use string_file.
12897 * mi/mi-out.c (mi_ui_out::main_stream): New.
12898 (mi_ui_out::rewind): Use main_stream and
12899 string_file.
12900 (mi_ui_out::put): Use main_stream and string_file.
12901 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12902 Allocate a 'string_file' instead.
12903 (mi_out_new): Don't allocate a mem_fileopen stream here.
12904 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12905 (mi_ui_out::main_stream): Declare method.
12906 * printcmd.c (eval_command): Use string_file.
12907 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
12908 * python/py-arch.c (archpy_disassemble): Use string_file.
12909 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
12910 * python/py-frame.c (frapy_str): Use string_file.
12911 * python/py-framefilter.c (py_print_type, py_print_single_arg):
12912 Use string_file.
12913 * python/py-type.c (typy_str): Use string_file.
12914 * python/py-unwind.c (unwind_infopy_str): Use string_file.
12915 * python/py-value.c (valpy_str): Use string_file.
12916 * record-btrace.c (btrace_insn_history): Use string_file.
12917 * regcache.c (regcache_print): Use stdio_file.
12918 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
12919 * remote.c (escape_buffer): Use string_file.
12920 * rust-lang.c (rust_get_disr_info): Use string_file.
12921 * serial.c (serial_open_ops_1): Use stdio_file.
12922 (do_serial_close): Use delete.
12923 * stack.c (print_frame_arg): Use string_file.
12924 (print_frame_args): Remove local mem_fileopen stream, not used.
12925 (print_frame): Use string_file.
12926 * symmisc.c (maintenance_print_symbols): Use stdio_file.
12927 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
12928 Take a 'string_file *' instead of a 'ui_file *'.
12929 * top.c (new_ui): Use stdio_file and stderr_file.
12930 (free_ui): Use delete.
12931 (execute_command_to_string): Use string_file.
12932 (quit_confirm): Use string_file.
12933 * tracepoint.c (collection_list::append_exp): Use string_file.
12934 * tui/tui-disasm.c (tui_disassemble): Use string_file.
12935 * tui/tui-file.c: Don't include "ui-file.h".
12936 (enum streamtype, struct tui_stream): Delete.
12937 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
12938 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
12939 (tui_file::tui_file): New method.
12940 (tui_file_fputs): Delete.
12941 (tui_file_get_strbuf): Delete.
12942 (tui_file::puts): New method.
12943 (tui_file_adjust_strbuf): Delete.
12944 (tui_file_flush): Delete.
12945 (tui_file::flush): New method.
12946 * tui/tui-file.h: Tweak intro comment.
12947 Include ui-file.h.
12948 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
12949 (tui_file_adjust_strbuf): Delete declarations.
12950 (class tui_file): New class.
12951 * tui/tui-io.c (tui_initialize_io): Use tui_file.
12952 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
12953 (tui_register_format): Use string_stream.
12954 * tui/tui-stack.c (tui_make_status_line): Use string_file.
12955 (tui_get_function_from_frame): Use string_file.
12956 * typeprint.c (type_to_string): Use string_file.
12957 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
12958 (null_stream): New global.
12959 (ui_file_delete): Delete.
12960 (ui_file::ui_file): New.
12961 (null_file_isatty): Delete.
12962 (ui_file::~ui_file): New.
12963 (null_file_rewind): Delete.
12964 (ui_file::printf): New.
12965 (null_file_put): Delete.
12966 (null_file_flush): Delete.
12967 (ui_file::putstr): New.
12968 (null_file_write): Delete.
12969 (ui_file::putstrn): New.
12970 (null_file_read): Delete.
12971 (ui_file::putc): New.
12972 (null_file_fputs): Delete.
12973 (null_file_write_async_safe): Delete.
12974 (ui_file::vprintf): New.
12975 (null_file_delete): Delete.
12976 (null_file::write): New.
12977 (null_file_fseek): Delete.
12978 (null_file::puts): New.
12979 (ui_file_data): Delete.
12980 (null_file::write_async_safe): New.
12981 (gdb_flush, ui_file_isatty): Adjust.
12982 (ui_file_put, ui_file_rewind): Delete.
12983 (ui_file_write): Adjust.
12984 (ui_file_write_for_put): Delete.
12985 (ui_file_write_async_safe, ui_file_read): Adjust.
12986 (ui_file_fseek): Delete.
12987 (fputs_unfiltered): Adjust.
12988 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
12989 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
12990 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
12991 (set_ui_file_data): Delete.
12992 (string_file::~string_file, string_file::write)
12993 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
12994 (do_ui_file_as_string, ui_file_as_string): Delete.
12995 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
12996 (struct mem_file): Delete.
12997 (mem_file_new): Delete.
12998 (stdio_file::stdio_file): New.
12999 (mem_file_delete): Delete.
13000 (stdio_file::stdio_file): New.
13001 (mem_fileopen): Delete.
13002 (stdio_file::~stdio_file): New.
13003 (mem_file_rewind): Delete.
13004 (stdio_file::set_stream): New.
13005 (mem_file_put): Delete.
13006 (stdio_file::open): New.
13007 (mem_file_write): Delete.
13008 (stdio_file_magic, struct stdio_file): Delete.
13009 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13010 (stdio_file::flush): New.
13011 (stdio_file_read): Rename to ...
13012 (stdio_file::read): ... this. Adjust.
13013 (stdio_file_write): Rename to ...
13014 (stdio_file::write): ... this. Adjust.
13015 (stdio_file_write_async_safe): Rename to ...
13016 (stdio_file::write_async_safe) ... this. Adjust.
13017 (stdio_file_fputs): Rename to ...
13018 (stdio_file::puts) ... this. Adjust.
13019 (stdio_file_isatty): Delete.
13020 (stdio_file_fseek): Delete.
13021 (stdio_file::isatty): New.
13022 (stderr_file_write): Rename to ...
13023 (stderr_file::write) ... this. Adjust.
13024 (stderr_file_fputs): Rename to ...
13025 (stderr_file::puts) ... this. Adjust.
13026 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13027 (stderr_file::stderr_file): New.
13028 (tee_file_magic): Delete.
13029 (struct tee_file): Delete.
13030 (tee_file::tee_file): New.
13031 (tee_file_new): Delete.
13032 (tee_file::~tee_file): New.
13033 (tee_file_delete): Delete.
13034 (tee_file_flush): Rename to ...
13035 (tee_file::flush): ... this. Adjust.
13036 (tee_file_write): Rename to ...
13037 (tee_file::write): ... this. Adjust.
13038 (tee_file::write_async_safe): New.
13039 (tee_file_fputs): Rename to ...
13040 (tee_file::puts): ... this. Adjust.
13041 (tee_file_isatty): Rename to ...
13042 (tee_file::isatty): ... this. Adjust.
13043 * ui-file.h (struct obstack, struct ui_file): Don't
13044 forward-declare.
13045 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13046 (ui_file_write_ftype)
13047 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13048 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13049 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13050 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13051 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13052 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13053 (set_ui_file_fseek): Delete.
13054 (ui_file_data, ui_file_delete, ui_file_rewind)
13055 (struct ui_file): New.
13056 (ui_file_up): New.
13057 (class null_file): New.
13058 (null_stream): Declare.
13059 (ui_file_write_for_put, ui_file_put): Delete.
13060 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13061 Delete.
13062 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13063 (gdb_fopen, tee_file_new): Delete.
13064 (struct string_file): New.
13065 (struct stdio_file): New.
13066 (stdio_file_up): New.
13067 (struct stderr_file): New.
13068 (class tee_file): New.
13069 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13070 of a 'ui_file *'. Adjust.
13071 * ui-out.h (class ui_out) <field_stream>: Likewise.
13072 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13073 (null_stream): Delete.
13074 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13075 Adjust.
13076 * utils.h (struct ui_file): Delete forward declaration..
13077 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13078 (error_stream): Take a 'string_file &' instead of a
13079 'ui_file *'.
13080 * varobj.c (varobj_value_get_print_value): Use string_file.
13081 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13082 * gdbarch.c: Regenerate.
13083
13084 2017-02-02 Pedro Alves <palves@redhat.com>
13085
13086 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13087 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13088 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13089 Adjust to call gdb_print_insn instead of
13090 gdb_disassembler::print_insn.
13091 (dump_insns, do_mixed_source_and_assembly_deprecated)
13092 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13093 'gdbarch' parameter. Remove gdb_disassembler parameter.
13094 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13095 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13096 declaration.
13097 (gdb_pretty_print_insn): Re-add declaration.
13098 * record-btrace.c (btrace_insn_history): Don't allocate a
13099 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13100
13101 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13102
13103 * disasm.h (gdb_disassembly): Remove file_string parameter.
13104 * disasm.c (gdb_disassembly): Likewise.
13105 * cli/cli-cmds.c (print_disassembly): Adapt.
13106 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13107 * stack.c (do_gdb_disassembly): Likewise.
13108
13109 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13110
13111 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13112 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13113 targets. And if the implicit value is longer than needed, extract
13114 the first bytes instead of the "least significant" ones.
13115
13116 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13117
13118 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13119 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13120 (btrace_fetch): Assert can_access_registers_ptid.
13121 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13122 validate_registers_access.
13123
13124 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13125
13126 * gdbthread.h (can_access_registers_ptid): New.
13127 * thread.c (can_access_registers_ptid): New.
13128
13129 2017-02-01 Pedro Alves <palves@redhat.com>
13130
13131 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13132
13133 2017-01-31 Pedro Alves <palves@redhat.com>
13134
13135 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13136 Fix typos.
13137
13138 2017-01-31 Pedro Alves <palves@redhat.com>
13139
13140 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13141 not used.
13142
13143 2017-01-31 Pedro Alves <palves@redhat.com>
13144
13145 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13146
13147 2017-01-31 Pedro Alves <palves@redhat.com>
13148
13149 * common/scoped_restore.h
13150 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13151 change the value's parameter type to T2.
13152 (make_scoped_restore): Likewise.
13153
13154 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13155 Richard Henderson <rth@redhat.com>
13156
13157 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13158 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13159 GS_BASE for older kernels.
13160 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13161 GS_BASE for older kernels.
13162 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13163 and GS_BASE to the offset table.
13164 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13165 system register group.
13166 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13167 for older kernels.
13168 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13169 amd64 ABI.
13170 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13171 AMD64_GSBASE_REGNUM.
13172 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13173 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13174 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13175 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13176 i386/64bit-segments.xml in those rules.
13177 * features/i386/64bit-segments.xml: New file.
13178 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13179 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13180 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13181 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13182 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13183 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13184 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13185 * features/i386/amd64-avx-linux.c: Regenerated.
13186 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13187 * features/i386/amd64-avx-mpx.c: Regenerated.
13188 * features/i386/amd64-avx512-linux.c: Regenerated.
13189 * features/i386/amd64-linux.c: Regenerated.
13190 * features/i386/amd64-mpx-linux.c: Regenerated.
13191 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13192 * features/i386/i386-avx-mpx.c: Regenerated.
13193 * features/i386/x32-avx-linux.c: Regenerated.
13194 * features/i386/x32-avx512-linux.c: Regenerated.
13195 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13196 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13197 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13198 * regformats/i386/amd64-linux.dat: Regenerated.
13199 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13200 * regformats/i386/x32-avx-linux.dat: Regenerated.
13201 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13202 * regformats/i386/x32-linux.dat: Regenerated.
13203
13204 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13205
13206 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13207 Set to AMD64_NUM_REGS.
13208
13209 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13210
13211 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13212 that checks validity of a register number.
13213
13214 2017-01-27 Kees Cook <keescook@google.com>
13215
13216 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13217 fetch_fpregs if target has fpa registers.
13218 (arm_linux_store_inferior_registers): Call store_fpregs if target
13219 has fpa registers.
13220
13221 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13222
13223 * cris-tdep.c (cris_gdbarch_init): Remove check for
13224 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13225
13226 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13227
13228 * corelow.c (get_core_register_section): Check for regset
13229 existence before checking for REGSET_VARIABLE_SIZE.
13230
13231 2017-01-26 Yao Qi <yao.qi@linaro.org>
13232 Pedro Alves <palves@redhat.com>
13233
13234 PR gdb/20939
13235 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13236 call memory_error, save memaddr instead.
13237 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13238 negative, cal memory_error.
13239 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13240
13241 2017-01-26 Yao Qi <yao.qi@linaro.org>
13242
13243 * disasm-selftests.c (memory_error_test): New function.
13244 (_initialize_disasm_selftests): Register memory_error_test.
13245
13246 2017-01-26 Yao Qi <yao.qi@linaro.org>
13247
13248 * Makefile.in (SFILES): Add disasm-selftests.c and
13249 selftest-arch.c.
13250 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13251 * disasm-selftests.c: New file.
13252 * selftest-arch.c: New file.
13253 * selftest-arch.h: New file.
13254
13255 2017-01-26 Yao Qi <yao.qi@linaro.org>
13256
13257 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13258 to bfd_arch_mep. Don't return 0 if section is not
13259 found. Call print_insn_mep.
13260
13261 2017-01-26 Pedro Alves <palves@redhat.com>
13262 Yao Qi <yao.qi@linaro.org>
13263
13264 * arm-tdep.c: Include "disasm.h".
13265 (gdb_print_insn_arm): Update code to get gdbarch.
13266 * disasm.c (dis_asm_read_memory): Change it to
13267 gdb_disassembler::dis_asm_read_memory.
13268 (dis_asm_memory_error): Likewise.
13269 (dis_asm_print_address): Likewise.
13270 (gdb_pretty_print_insn): Change it to
13271 gdb_disassembler::pretty_print_insn.
13272 (dump_insns): Add one argument gdb_disassemlber. All
13273 callers updated.
13274 (do_mixed_source_and_assembly_deprecated): Likewise.
13275 (do_mixed_source_and_assembly): Likewise.
13276 (do_assembly_only): Likewise.
13277 (gdb_disassembler::gdb_disassembler): New.
13278 (gdb_disassembler::print_insn): New.
13279 * disasm.h (class gdb_disassembler): New.
13280 (gdb_pretty_print_insn): Remove declaration.
13281 (gdb_disassemble_info): Likewise.
13282 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13283 (gdbscm_disasm_read_memory_worker): Update.
13284 (gdbscm_disasm_read_memory): Update.
13285 (gdbscm_disasm_memory_error): Remove.
13286 (gdbscm_disasm_print_address): Remove.
13287 (gdbscm_disassembler::gdbscm_disassembler): New.
13288 (gdbscm_print_insn_from_port): Update.
13289 * mips-tdep.c: Include disasm.h.
13290 (gdb_print_insn_mips): Update code to get gdbarch.
13291 * record-btrace.c (btrace_insn_history): Update.
13292 * spu-tdep.c: Include disasm.h.
13293 (struct spu_dis_asm_data): Remove.
13294 (struct spu_dis_asm_info): New.
13295 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13296 SPU id.
13297 (gdb_print_insn_spu): Cast disassemble_info to
13298 spu_dis_asm_info.
13299
13300 2017-01-26 Yao Qi <yao.qi@linaro.org>
13301
13302 * disasm.c (do_ui_file_delete): Delete.
13303 (gdb_insn_length): Move code creating stream to ...
13304 * utils.c (null_stream): ... here. New function.
13305 * utils.h (null_stream): Declare.
13306
13307 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13308
13309 * python/py-inferior.c (find_thread_object): Return directly
13310 from the loop. Remove "found" variable.
13311
13312 2017-01-21 Joel Brobecker <brobecker@adacore.com>
13313
13314 GDB 7.12.1 released.
13315
13316 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13317
13318 * python/py-function.c (fnpy_call): Reorder declarations to have
13319 the gdbpy_enter object declared first.
13320 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13321
13322 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13323
13324 PR python/21068
13325 * python/python-internal.h (PyMem_RawMalloc): Define for
13326 Python < 3.4.
13327 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13328 PyMem_RawMalloc instead of PyMem_Malloc.
13329
13330 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13331 Luis Machado <lgustavo@codesourcery.com>
13332
13333 * NEWS (New commands): Mention flash-erase.
13334 (New MI commands): Mention target-flash-erase.
13335 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13336 command.
13337 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13338 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13339 * target.c (flash_erase_command): New function.
13340 (initialize_targets): Add new flash-erase command.
13341 * target.h (flash_erase_command): New declaration.
13342
13343 2017-01-20 Joel Brobecker <brobecker@adacore.com>
13344
13345 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13346 HAVE_SYS_PROCFS_H is defined.
13347
13348 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13349
13350 * remote.c (struct cached_reg): Change data into a pointer.
13351 * (stop_reply_dtr): Free data pointers before deleting vector.
13352 (process_stop_reply): Likewise.
13353 (remote_parse_stop_reply): Allocate space for data
13354
13355 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13356
13357 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13358 MAX_REGISTER_SIZE.
13359 (amd64_pseudo_register_read_value): Likewise.
13360 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13361 (store_register_using_P): Likewise.
13362 * regcache.c (regcache_xfer_part): Likewise.
13363
13364 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13365
13366 Split real and pseudo registers.
13367 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13368 (sparc32_pseudo_regnum): New enum.
13369 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13370 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13371 (SPARC32_CP0_REGISTERS): New macro.
13372 (sparc32_pseudo_register_name): New function.
13373 (sparc32_register_name): Use sparc32_pseudo_register_name.
13374 (sparc32_pseudo_register_type): New function.
13375 (sparc32_register_type): Use sparc32_pseudo_register_type.
13376 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13377 pseudo register numbers.
13378 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13379 (SPARC64_CP0_REGISTERS): New macro.
13380 (sparc64_pseudo_register_name): New function.
13381 (sparc64_register_name): Use sparc64_pseudo_register_name.
13382 (sparc64_pseudo_register_type): New function.
13383 (sparc64_register_type): Use sparc64_pseudo_register_type.
13384 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13385 pseudo register numbers.
13386 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13387 sparc64_store_arguments): Handle pseudo register numbers.
13388
13389 2017-01-13 Yao Qi <yao.qi@linaro.org>
13390
13391 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13392 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13393 output.
13394 (getpkt_or_notif_sane_1): Likewise.
13395
13396 2017-01-13 Yao Qi <yao.qi@linaro.org>
13397
13398 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13399 of CC. Pass "-x c++-header" instead of "-x c".
13400
13401 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13402
13403 * remote.c (remote_can_async_p): Update comment.
13404
13405 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13406
13407 * linux-nat.c (linux_nat_can_async_p): Update comment.
13408
13409 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13410
13411 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13412
13413 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13414
13415 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13416
13417 2017-01-10 Tom Tromey <tom@tromey.com>
13418
13419 * python/py-type.c (typy_legacy_template_argument): Update.
13420 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13421 ~demangle_parse_info): Declare new members.
13422 (cp_demangled_name_to_comp): Return unique_ptr.
13423 (cp_demangled_name_parse_free)
13424 (make_cleanup_cp_demangled_name_parse_free)
13425 (cp_new_demangle_parse_info): Remove.
13426 * cp-support.c (do_demangled_name_parse_free_cleanup)
13427 (make_cleanup_cp_demangled_name_parse_free): Remove.
13428 (inspect_type, cp_canonicalize_string_full)
13429 (cp_canonicalize_string): Update.
13430 (mangled_name_to_comp): Change return type.
13431 (cp_class_name_from_physname, method_name_from_physname)
13432 (cp_func_name, cp_remove_params): Update.
13433 * cp-name-parser.y (demangle_parse_info): New constructor, from
13434 cp_new_demangle_parse_info.
13435 (~demangle_parse_info): New destructor, from
13436 cp_demangled_name_parse_free.
13437 (cp_merge_demangle_parse_infos): Update.
13438 (cp_demangled_name_to_comp): Change return type.
13439
13440 2017-01-10 Tom Tromey <tom@tromey.com>
13441
13442 * top.c (prevent_dont_repeat): Change return type.
13443 * python/python.c (execute_gdb_command): Use std::string.
13444 Update.
13445 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13446 * command.h (prevent_dont_repeat): Change return type.
13447 * breakpoint.c (bpstat_do_actions_1): Update.
13448
13449 2017-01-10 Tom Tromey <tom@tromey.com>
13450
13451 * value.h (scoped_value_mark::~scoped_value_mark): Call
13452 free_to_mark.
13453 (scoped_value_mark::free_to_mark): New method.
13454 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13455 scoped_value_mark.
13456
13457 2017-01-10 Tom Tromey <tom@tromey.com>
13458
13459 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13460 (valpy_reference_value, valpy_const_value, valpy_get_address)
13461 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13462 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13463 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13464 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13465 scoped_value_mark.
13466 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13467 * value.h (scoped_value_mark): New class.
13468
13469 2017-01-10 Tom Tromey <tom@tromey.com>
13470
13471 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13472 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13473 * psymtab.c (discard_psymtabs_upto): Remove.
13474 (make_cleanup_discard_psymtabs): Remove.
13475 (struct psymtab_state): Remove.
13476
13477 2017-01-10 Tom Tromey <tom@tromey.com>
13478
13479 * record-full.c (record_full_save_cleanups): Remove.
13480 (record_full_save): Use gdb::unlinker.
13481 * gcore.c (do_bfd_delete_cleanup): Remove.
13482 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13483 cleanups.
13484 * dwarf2read.c (unlink_if_set): Remove.
13485 (write_psymtabs_to_index): Use gdb::unlinker.
13486 * common/gdb_unlinker.h: New file.
13487
13488 2017-01-10 Tom Tromey <tom@tromey.com>
13489
13490 * windows-tdep.c (windows_xfer_shared_library): Update.
13491 * windows-nat.c (windows_make_so): Update.
13492 * utils.h (make_cleanup_bfd_unref): Remove.
13493 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13494 * symfile.h (symfile_bfd_open)
13495 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13496 * symfile.c (read_symbols, symbol_file_add)
13497 (separate_debug_file_exists): Update.
13498 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13499 (generic_load, reread_symbols): Update.
13500 * symfile-mem.c (symbol_file_add_from_memory): Update.
13501 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13502 (spu_symbol_file_add_from_memory): Update.
13503 * solist.h (struct target_so_ops) <bfd_open>: Return
13504 gdb_bfd_ref_ptr.
13505 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13506 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13507 gdb_bfd_ref_ptr.
13508 (solib_map_sections, reload_shared_libraries_1): Update.
13509 * solib-svr4.c (enable_break): Update.
13510 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13511 * solib-frv.c (enable_break2): Update.
13512 * solib-dsbt.c (enable_break): Update.
13513 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13514 gdb_bfd_ref_ptr.
13515 (darwin_solib_get_all_image_info_addr_at_init): Update.
13516 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13517 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13518 * record-full.c (record_full_save): Update.
13519 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13520 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13521 * minidebug.c (find_separate_debug_file_in_section): Return
13522 gdb_bfd_ref_ptr.
13523 * machoread.c (macho_add_oso_symfile): Change abfd to
13524 gdb_bfd_ref_ptr.
13525 (macho_symfile_read_all_oso): Update.
13526 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13527 (macho_symfile_read): Update.
13528 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13529 (jit_bfd_try_read_symtab): Update.
13530 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13531 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13532 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13533 gdb_bfd_ref_ptr.
13534 (gdb_bfd_ref_policy): New struct.
13535 (gdb_bfd_ref_ptr): New typedef.
13536 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13537 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13538 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13539 gdb_bfd_ref_ptr.
13540 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13541 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13542 (gcore_command): Update.
13543 * exec.c (exec_file_attach): Update.
13544 * elfread.c (elf_symfile_read): Update.
13545 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13546 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13547 (open_and_init_dwo_file): Update.
13548 (open_dwp_file): Return gdb_bfd_ref_ptr.
13549 (open_and_init_dwp_file): Update.
13550 * corelow.c (core_open): Update.
13551 * compile/compile-object-load.c (compile_object_load): Update.
13552 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13553 * coffread.c (coff_symfile_read): Update.
13554 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13555 gdb_bfd_ref_ptr. Rename.
13556 (dump_bfd_file, restore_command): Update.
13557 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13558 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13559 (find_separate_debug_file_by_buildid): Update.
13560
13561 2017-01-10 Tom Tromey <tom@tromey.com>
13562
13563 * common/gdb_ref_ptr.h: New file.
13564 * python/py-ref.h (struct gdbpy_ref_policy): New.
13565 (gdbpy_ref): Now a typedef.
13566
13567 2017-01-10 Tom Tromey <tom@tromey.com>
13568
13569 * utils.h (make_cleanup_htab_delete): Don't declare.
13570 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13571 Remove.
13572 * linespec.c (decode_compound_collector): Add constructor,
13573 destructor.
13574 (lookup_prefix_sym): Remove cleanup.
13575 (symtab_collector): Add constructor, destructor.
13576 (collect_symtabs_from_filename): Remove cleanup.
13577 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13578 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13579 Use htab_up.
13580 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13581 * dwarf2read.c (dw2_expand_symtabs_matching)
13582 (dw2_map_symbol_filenames, dwarf_decode_macros)
13583 (write_psymtabs_to_index): Use htab_up.
13584 * dwarf2loc.c (func_verify_no_selftailcall)
13585 (call_site_find_chain_1, func_verify_no_selftailcall)
13586 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13587 std::vector, gdb::unique_xmalloc_ptr.
13588 (call_sitep): Remove typedef.
13589 (dwarf2_locexpr_baton_eval): Remove unused variable.
13590
13591 2017-01-10 Tom Tromey <tom@tromey.com>
13592
13593 * python/python-internal.h (make_cleanup_py_decref)
13594 (make_cleanup_py_xdecref): Don't declare.
13595 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13596 (py_xdecref, make_cleanup_py_xdecref): Remove.
13597
13598 2017-01-10 Tom Tromey <tom@tromey.com>
13599
13600 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13601 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13602
13603 2017-01-10 Tom Tromey <tom@tromey.com>
13604
13605 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13606
13607 2017-01-10 Tom Tromey <tom@tromey.com>
13608
13609 * python/py-utils.c (unicode_to_encoded_string)
13610 (python_string_to_target_string)
13611 (python_string_to_target_python_string)
13612 (python_string_to_host_string, gdbpy_obj_to_string)
13613 (get_addr_from_python): Use gdbpy_ref.
13614
13615 2017-01-10 Tom Tromey <tom@tromey.com>
13616
13617 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13618 gdbpy_ref.
13619
13620 2017-01-10 Tom Tromey <tom@tromey.com>
13621
13622 * python/python.c (eval_python_command, gdbpy_decode_line)
13623 (gdbpy_run_events, gdbpy_start_type_printers)
13624 (gdbpy_apply_type_printers): Use gdbpy_ref.
13625
13626 2017-01-10 Tom Tromey <tom@tromey.com>
13627
13628 * python/py-param.c (get_doc_string, compute_enum_values): Use
13629 gdbpy_ref.
13630
13631 2017-01-10 Tom Tromey <tom@tromey.com>
13632
13633 * python/py-inferior.c (find_thread_object, build_inferior_list):
13634 Use gdbpy_ref.
13635
13636 2017-01-10 Tom Tromey <tom@tromey.com>
13637
13638 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13639
13640 2017-01-10 Tom Tromey <tom@tromey.com>
13641
13642 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13643 gdbpy_ref.
13644
13645 2017-01-10 Tom Tromey <tom@tromey.com>
13646
13647 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13648 extra incref.
13649 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13650 Use gdbpy_ref.
13651
13652 2017-01-10 Tom Tromey <tom@tromey.com>
13653
13654 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13655 gdbpy_ref.
13656
13657 2017-01-10 Tom Tromey <tom@tromey.com>
13658
13659 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13660 decref results of PyArg_ParseTupleAndKeywords.
13661
13662 2017-01-10 Tom Tromey <tom@tromey.com>
13663
13664 * python/python.c (python_run_simple_file): Use
13665 unique_xmalloc_ptr, gdbpy_ref.
13666
13667 2017-01-10 Tom Tromey <tom@tromey.com>
13668
13669 * python/py-prettyprint.c (print_stack_unless_memory_error)
13670 (print_string_repr, print_children): Use gdbpy_ref.
13671 (dummy_python_frame): New class.
13672 (dummy_python_frame::dummy_python_frame): Rename from
13673 push_dummy_python_frame.
13674 (py_restore_tstate): Remove.
13675
13676 2017-01-10 Tom Tromey <tom@tromey.com>
13677
13678 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13679
13680 2017-01-10 Tom Tromey <tom@tromey.com>
13681
13682 * python/python.c (ensure_python_env, restore_python_env):
13683 Remove.
13684 * python/python-internal.h (ensure_python_env): Don't declare.
13685 * varobj.h (varobj_ensure_python_env): Don't declare.
13686 * varobj.c (varobj_ensure_python_env): Remove.
13687
13688 2017-01-10 Tom Tromey <tom@tromey.com>
13689
13690 * varobj.c (varobj_value_get_print_value): Use
13691 gdbpy_enter_varobj.
13692
13693 2017-01-10 Tom Tromey <tom@tromey.com>
13694
13695 * python/py-prettyprint.c (print_string_repr, print_children):
13696 Update.
13697 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13698 of "encoding".
13699 * varobj.c (varobj_value_get_print_value): Update.
13700 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13701
13702 2017-01-10 Tom Tromey <tom@tromey.com>
13703
13704 * varobj.c (varobj_get_display_hint)
13705 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13706 (varobj_set_visualizer, free_variable): Use
13707 gdbpy_enter_varobj.
13708
13709 2017-01-10 Tom Tromey <tom@tromey.com>
13710
13711 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13712 (do_finish_initialization): New function. Use gdbpy_ref.
13713 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13714 do_finish_initialization.
13715
13716 2017-01-10 Tom Tromey <tom@tromey.com>
13717
13718 * python/py-param.c (get_set_value, get_show_value): Use
13719 gdbpy_enter, gdbpy_ref.
13720
13721 2017-01-10 Tom Tromey <tom@tromey.com>
13722
13723 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13724
13725 2017-01-10 Tom Tromey <tom@tromey.com>
13726
13727 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13728
13729 2017-01-10 Tom Tromey <tom@tromey.com>
13730
13731 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13732 Use gdbpy_enter_varobj.
13733
13734 2017-01-10 Tom Tromey <tom@tromey.com>
13735
13736 * varobj.c (gdbpy_enter_varobj): New constructor.
13737 * python/python-internal.h (gdbpy_enter_varobj): New class.
13738 * python/py-varobj.c (py_varobj_get_iterator): Use
13739 gdbpy_enter_varobj.
13740
13741 2017-01-10 Tom Tromey <tom@tromey.com>
13742
13743 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
13744 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13745 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
13746 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
13747 unique_xmalloc_ptr.
13748 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
13749
13750 2017-01-10 Tom Tromey <tom@tromey.com>
13751
13752 * python/py-xmethods.c (invoke_match_method): Use
13753 gdbpy_ref.
13754
13755 2017-01-10 Tom Tromey <tom@tromey.com>
13756
13757 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
13758 gdbpy_enter, gdbpy_ref.
13759
13760 2017-01-10 Tom Tromey <tom@tromey.com>
13761
13762 * python/python.c (python_interactive_command): Use gdbpy_enter.
13763
13764 2017-01-10 Tom Tromey <tom@tromey.com>
13765
13766 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
13767 gdbpy_ref.
13768
13769 2017-01-10 Tom Tromey <tom@tromey.com>
13770
13771 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
13772 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13773
13774 2017-01-10 Tom Tromey <tom@tromey.com>
13775
13776 * utils.h (htab_deleter): New struct.
13777 (htab_up): New typedef.
13778 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
13779 gdbpy_enter, gdbpy_ref, htab_up.
13780
13781 2017-01-10 Tom Tromey <tom@tromey.com>
13782
13783 * python/py-unwind.c (pending_frame_invalidate): Remove.
13784 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
13785
13786 2017-01-10 Tom Tromey <tom@tromey.com>
13787
13788 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
13789 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
13790
13791 2017-01-10 Tom Tromey <tom@tromey.com>
13792
13793 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
13794
13795 2017-01-10 Tom Tromey <tom@tromey.com>
13796
13797 * python/python.c (gdbpy_eval_from_control_command)
13798 (gdbpy_source_script, gdbpy_run_events)
13799 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
13800 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
13801 gdbpy_enter.
13802
13803 2017-01-10 Tom Tromey <tom@tromey.com>
13804
13805 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
13806
13807 2017-01-10 Tom Tromey <tom@tromey.com>
13808
13809 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
13810
13811 2017-01-10 Tom Tromey <tom@tromey.com>
13812
13813 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
13814 (python_on_inferior_call_pre, python_on_inferior_call_post)
13815 (python_on_memory_change, python_on_register_change)
13816 (python_inferior_exit, python_new_objfile, add_thread_object)
13817 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
13818
13819 2017-01-10 Tom Tromey <tom@tromey.com>
13820
13821 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
13822 (bpfinishpy_handle_exit): Use gdbpy_enter.
13823
13824 2017-01-10 Tom Tromey <tom@tromey.com>
13825
13826 * python/py-cmd.c (cmdpy_destroyer)
13827 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
13828 gdbpy_enter.
13829
13830 2017-01-10 Tom Tromey <tom@tromey.com>
13831
13832 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13833 gdbpy_enter.
13834 (gdbpy_breakpoint_has_cond): Likewise.
13835
13836 2017-01-10 Tom Tromey <tom@tromey.com>
13837
13838 * python/python.c (gdbpy_enter): New constructor.
13839 (~gdbpy_enter): New destructor.
13840 (restore_python_env, ensure_python_env): Rewrite.
13841 * python/python-internal.h (gdbpy_enter): New class.
13842
13843 2017-01-10 Tom Tromey <tom@tromey.com>
13844
13845 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
13846
13847 2017-01-10 Tom Tromey <tom@tromey.com>
13848
13849 * python/py-value.c (value_has_field, get_field_flag)
13850 (get_field_type, valpy_getitem, convert_value_from_python): Use
13851 gdbpy_ref.
13852
13853 2017-01-10 Tom Tromey <tom@tromey.com>
13854
13855 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
13856 gdbpy_ref.
13857
13858 2017-01-10 Tom Tromey <tom@tromey.com>
13859
13860 * python/py-prettyprint.c (search_pp_list)
13861 (find_pretty_printer_from_objfiles)
13862 (find_pretty_printer_from_progspace)
13863 (find_pretty_printer_from_gdb, find_pretty_printer)
13864 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
13865 gdbpy_ref.
13866
13867 2017-01-10 Tom Tromey <tom@tromey.com>
13868
13869 * python/py-param.c (call_doc_function): Use gdbpy_ref.
13870
13871 2017-01-10 Tom Tromey <tom@tromey.com>
13872
13873 * python/py-linetable.c (build_line_table_tuple_from_pcs)
13874 (ltpy_get_all_source_lines): Use gdbpy_ref.
13875
13876 2017-01-10 Tom Tromey <tom@tromey.com>
13877
13878 * python/py-framefilter.c (extract_sym, extract_value)
13879 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
13880 gdbpy_ref.
13881
13882 2017-01-10 Tom Tromey <tom@tromey.com>
13883
13884 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
13885
13886 2017-01-10 Tom Tromey <tom@tromey.com>
13887
13888 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
13889
13890 2017-01-10 Tom Tromey <tom@tromey.com>
13891
13892 * python/py-function.c (convert_values_to_python, fnpy_init): Use
13893 gdbpy_ref.
13894
13895 2017-01-10 Tom Tromey <tom@tromey.com>
13896
13897 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
13898
13899 2017-01-10 Tom Tromey <tom@tromey.com>
13900
13901 * python/py-type.c (convert_field, make_fielditem, typy_fields)
13902 (typy_range): Use gdbpy_ref.
13903
13904 2017-01-10 Tom Tromey <tom@tromey.com>
13905
13906 * python/py-threadevent.c (create_thread_event_object): Use
13907 gdbpy_ref.
13908 * python/py-stopevent.c (create_stop_event_object): Simplify.
13909 (emit_stop_event): Use gdbpy_ref.
13910 * python/py-signalevent.c (create_signal_event_object): Use
13911 gdbpy_ref.
13912 * python/py-newobjfileevent.c (create_new_objfile_event_object)
13913 (emit_new_objfile_event, create_clear_objfiles_event_object)
13914 (emit_clear_objfiles_event): Use gdbpy_ref.
13915 * python/py-infevents.c (create_inferior_call_event_object)
13916 (create_register_changed_event_object)
13917 (create_memory_changed_event_object, emit_inferior_call_event)
13918 (emit_memory_changed_event, emit_register_changed_event): Use
13919 gdbpy_ref.
13920 * python/py-exitedevent.c (create_exited_event_object)
13921 (emit_exited_event): Use gdbpy_ref.
13922 * python/py-event.h (evpy_emit_event): Remove
13923 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
13924 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
13925 * python/py-continueevent.c (emit_continue_event): Use
13926 gdbpy_ref.
13927 * python/py-breakpoint.c (gdbpy_breakpoint_created)
13928 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
13929 gdbpy_ref.
13930 * python/py-bpevent.c (create_breakpoint_event_object): Use
13931 gdbpy_ref.
13932
13933 2017-01-10 Tom Tromey <tom@tromey.com>
13934
13935 * python/py-ref.h: New file.
13936
13937 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13938
13939 * cli-out.c (cli_ui_out::do_redirect): Change return type to
13940 void.
13941 * cli-out.h (cli_ui_out::do_redirect): Likewise.
13942 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
13943 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
13944 * ui-out.c (ui_out::redirect): Likewise.
13945 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
13946 * cli/cli-logging.c (set_logging_redirect): Update call site of
13947 ui_out::redirect.
13948 (handle_redirections): Likewise.
13949 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
13950 * top.c (execute_command_to_string): Likewise.
13951 * utils.c (do_ui_out_redirect_pop): Likewise.
13952
13953 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13954
13955 * stack.c (_initialize_stack): Update "frame" command help message.
13956
13957 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
13958
13959 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
13960
13961 2017-01-06 Yao Qi <yao.qi@linaro.org>
13962
13963 * x86-linux-nat.h: Include gdb_proc_service.h.
13964
13965 2017-01-06 Yao Qi <yao.qi@linaro.org>
13966
13967 * ser-base.h: Include serial.h.
13968
13969 2017-01-06 Yao Qi <yao.qi@linaro.org>
13970
13971 * ppc-linux-tdep.h: Include ppc-tdep.h.
13972
13973 2017-01-06 Yao Qi <yao.qi@linaro.org>
13974
13975 * nat/amd64-linux-siginfo.h: Include signal.h.
13976
13977 2017-01-06 Yao Qi <yao.qi@linaro.org>
13978
13979 * nat/aarch64-linux-hw-point.h: Include break-common.h.
13980
13981 2017-01-06 Yao Qi <yao.qi@linaro.org>
13982
13983 * mi/mi-parse.h: Include mi-cmds.h.
13984
13985 2017-01-06 Yao Qi <yao.qi@linaro.org>
13986
13987 * inf-loop.c: Don't include "target.h".
13988 * inf-loop.h: Include it here.
13989
13990 2017-01-06 Yao Qi <yao.qi@linaro.org>
13991
13992 * dfp.h: Include "dboulest.h" and "expression.h".
13993
13994 2017-01-06 Yao Qi <yao.qi@linaro.org>
13995
13996 * ax-gdb.h: Include "ax.h".
13997
13998 2017-01-06 Yao Qi <yao.qi@linaro.org>
13999
14000 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14001 with nat/gdb_ptrace.h.
14002
14003 2017-01-05 Yao Qi <yao.qi@linaro.org>
14004
14005 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14006 new line.
14007 (mips64_fbsd_sigframe_init): Likewise.
14008
14009 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14010
14011 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14012 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14013
14014 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14015
14016 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14017 * NEWS: Mention new FreeBSD/mips native configuration.
14018 * config/mips/fbsd.mh: New file.
14019 * configure.host: Add mips*-*-freebsd*.
14020 * mips-fbsd-nat.c: New file.
14021
14022 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14023
14024 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14025 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14026 * NEWS: Mention new FreeBSD/mips target.
14027 * configure.tgt: Add mips*-*-freebsd*.
14028 * mips-fbsd-tdep.c: New file.
14029 * mips-fbsd-tdep.h: New file.
14030
14031 2017-01-04 Yao Qi <yao.qi@linaro.org>
14032
14033 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14034 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14035
14036 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14037
14038 Update copyright year range in all GDB files.
14039
14040 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14041
14042 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
14043
14044 For older changes see ChangeLog-2016.
14045 \f
14046 Local Variables:
14047 mode: change-log
14048 left-margin: 8
14049 fill-column: 74
14050 version-control: never
14051 coding: utf-8
14052 End:
This page took 0.300203 seconds and 5 git commands to generate.