[AArch64] Mark LR clobbered by BL in inline asm
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a43f3893
PF
12017-10-26 Patrick Frants <osscontribute@gmail.com>
2
7453e6b2 3 PR gdb/13669
a43f3893
PF
4 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
5 to rewind obstack.
6
23cc4e1b
PA
72017-10-26 Pedro Alves <palves@redhat.com>
8
9 * remote.c (remote_async_terminal_ours_p): Delete.
10 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
11 Remove references to 'remote_async_terminal_ours_p'.
12
6abc18bb
YQ
132017-10-26 Yao Qi <yao.qi@linaro.org>
14
15 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
16
bd522513
YQ
172017-10-26 Yao Qi <yao.qi@linaro.org>
18
19 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
20 aspace const.
21 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
22 Likewise.
23 * breakpoint.c (bpstat_check_location): Remove cast.
24 (breakpoint_hit_catch_fork): Make aspce const.
25 (breakpoint_hit_catch_solib): Likewise.
26 (breakpoint_hit_catch_exec): Likewise.
27 (breakpoint_hit_ranged_breakpoint): Likewise.
28 (breakpoint_hit_watchpoint): Likewise.
29 (base_breakpoint_breakpoint_hit): Likewise.
30 (bkpt_breakpoint_hit): Likewise.
31 (dprintf_breakpoint_hit): Likewise.
32 (tracepoint_breakpoint_hit): Likewise.
33 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
34
accd0bcd
YQ
352017-10-26 Yao Qi <yao.qi@linaro.org>
36
37 * breakpoint.c (breakpoint_location_address_match): Change
38 "struct address_space *" to "const address_space".
39 (breakpoint_location_address_range_overlap): Likewise.
40 (breakpoint_here_p): Likewise.
41 (breakpoint_in_range_p): Likewise.
42 (moribund_breakpoint_here_p): Likewise.
43 (bp_location_inserted_here_p): Likewise.
44 (software_breakpoint_inserted_here_p): Likewise.
45 (hardware_breakpoint_inserted_here_p): Likewise.
46 (hardware_watchpoint_inserted_in_range): Likewise.
47 (bpstat_check_location): Likewise.
48 (bpstat_stop_status): Likewise.
49 (breakpoint_address_match): Likewise.
50 (breakpoint_address_match_range): Likewise.
51 (breakpoint_location_address_match): Likewise.
52 (breakpoint_location_address_range_overlap): Likewise.
53 (insert_single_step_breakpoint): Likewise.
54 (breakpoint_has_location_inserted_here): Likewise.
55 (single_step_breakpoint_inserted_here_p): Likewise.
56 (pc_at_non_inline_function): Likewise.
57 * breakpoint.h (bpstat_stop_status): Update declaration.
58 (breakpoint_here_p): Likewise.
59 (breakpoint_in_range_p): Likewise.
60 (moribund_breakpoint_here_p): Likewise.
61 (breakpoint_inserted_here_p): Likewise.
62 (software_breakpoint_inserted_here_p): Likewise.
63 (hardware_breakpoint_inserted_here_p): Likewise.
64 (breakpoint_has_location_inserted_here): Likewise.
65 (single_step_breakpoint_inserted_here_p): Likewise.
66 (hardware_watchpoint_inserted_in_range): Likewise.
67 (breakpoint_address_match): Likewise.
68 (insert_single_step_breakpoint): Likewise.
69 (pc_at_non_inline_function): Likewise.
70 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
71 * record.c (record_check_stopped_by_breakpoint): Likewise.
72 * record.h (record_check_stopped_by_breakpoint): Likewise.
73 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
74
ac7936df
YQ
752017-10-25 Yao Qi <yao.qi@linaro.org>
76
77 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
78 regcache->arch () instead get_regcache_arch.
79 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
80 Likewise.
81 (aarch64_fbsd_store_inferior_registers): Likewise.
82 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
83 (store_gregs_to_thread): Likewise.
84 (fetch_fpregs_from_thread): Likewise.
85 (store_fpregs_to_thread): Likewise.
86 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
87 (aarch64_store_return_value): Likewise.
88 (aarch64_software_single_step): Likewise.
89 * aix-thread.c (aix_thread_wait): Likewise.
90 (supply_reg32): Likewise.
91 (supply_sprs64): Likewise.
92 (supply_sprs32): Likewise.
93 (fill_gprs64): Likewise.
94 (fill_gprs32): Likewise.
95 (fill_sprs64): Likewise.
96 (fill_sprs32): Likewise.
97 (store_regs_user_thread): Likewise.
98 (store_regs_kernel_thread): Likewise.
99 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
100 (alphabsd_store_inferior_registers): Likewise.
101 * alpha-tdep.c (alpha_extract_return_value): Likewise.
102 (alpha_store_return_value): Likewise.
103 (alpha_deal_with_atomic_sequence): Likewise.
104 (alpha_next_pc): Likewise.
105 (alpha_software_single_step): Likewise.
106 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
107 (amd64bsd_store_inferior_registers): Likewise.
108 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
109 Likewise.
110 (amd64_linux_store_inferior_registers): Likewise.
111 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
112 (amd64_collect_native_gregset): Likewise.
113 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
114 (amd64obsd_collect_uthread): Likewise.
115 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
116 (amd64_collect_fpregset): Likewise.
117 (amd64_supply_fxsave): Likewise.
118 (amd64_supply_xsave): Likewise.
119 (amd64_collect_fxsave): Likewise.
120 (amd64_collect_xsave): Likewise.
121 * arc-tdep.c (arc_write_pc): Likewise.
122 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
123 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
124 (arm_fbsd_store_inferior_registers): Likewise.
125 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
126 (store_vfp_regs): Likewise.
127 (arm_linux_fetch_inferior_registers): Likewise.
128 (arm_linux_store_inferior_registers): Likewise.
129 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
130 (arm_linux_sigreturn_next_pc): Likewise.
131 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
132 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
133 (fetch_register): Likewise.
134 (store_register): Likewise.
135 * arm-tdep.c (arm_is_thumb): Likewise.
136 (displaced_in_arm_mode): Likewise.
137 (bx_write_pc): Likewise.
138 (arm_get_next_pcs_addr_bits_remove): Likewise.
139 (arm_software_single_step): Likewise.
140 (arm_extract_return_value): Likewise.
141 (arm_store_return_value): Likewise.
142 (arm_write_pc): Likewise.
143 * bfin-tdep.c (bfin_extract_return_value): Likewise.
144 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
145 (bsd_uthread_store_registers): Likewise.
146 * core-regset.c (fetch_core_registers): Likewise.
147 * corelow.c (get_core_registers): Likewise.
148 * cris-tdep.c (cris_store_return_value): Likewise.
149 (cris_extract_return_value): Likewise.
150 (find_step_target): Likewise.
151 (find_step_target): Likewise.
152 (cris_software_single_step): Likewise.
153 * ctf.c (ctf_fetch_registers): Likewise.
154 * darwin-nat.c (cancel_breakpoint): Likewise.
155 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
156 * frv-tdep.c (frv_extract_return_value): Likewise.
157 * ft32-tdep.c (ft32_store_return_value): Likewise.
158 (ft32_extract_return_value): Likewise.
159 * go32-nat.c (fetch_register): Likewise.
160 (go32_fetch_registers): Likewise.
161 (go32_store_registers): Likewise.
162 (store_register): Likewise.
163 * h8300-tdep.c (h8300_extract_return_value): Likewise.
164 (h8300_store_return_value): Likewise.
165 * hppa-linux-nat.c (fetch_register): Likewise.
166 (store_register): Likewise.
167 (hppa_linux_fetch_inferior_registers): Likewise.
168 (hppa_linux_store_inferior_registers): Likewise.
169 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
170 (i386_darwin_store_inferior_registers): Likewise.
171 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
172 (gnu_store_registers): Likewise.
173 * i386-linux-nat.c (fetch_register): Likewise.
174 (store_register): Likewise.
175 (supply_gregset): Likewise.
176 (fill_gregset): Likewise.
177 (i386_linux_fetch_inferior_registers): Likewise.
178 (i386_linux_store_inferior_registers): Likewise.
179 (i386_linux_resume): Likewise.
180 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
181 Likewise.
182 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
183 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
184 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
185 (i386obsd_collect_uthread): Likewise.
186 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
187 (i386_supply_gregset): Likewise.
188 (i386_collect_gregset): Likewise.
189 (i386_supply_fpregset): Likewise.
190 (i386_collect_fpregset): Likewise.
191 (i386_mpx_bd_base): Likewise.
192 * i386-v4-nat.c (supply_fpregset): Likewise.
193 (fill_fpregset): Likewise.
194 * i387-tdep.c (i387_supply_fsave): Likewise.
195 (i387_collect_fsave): Likewise.
196 (i387_supply_fxsave): Likewise.
197 (i387_collect_fxsave): Likewise.
198 (i387_supply_xsave): Likewise.
199 (i387_collect_xsave): Likewise.
200 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
201 (ia64_linux_store_registers): Likewise.
202 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
203 (ia64_extract_return_value): Likewise.
204 (ia64_store_return_value): Likewise.
205 (find_func_descr): Likewise.
206 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
207 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
208 (inf_ptrace_store_registers): Likewise.
209 * infrun.c (use_displaced_stepping): Likewise.
210 (displaced_step_prepare_throw): Likewise.
211 (resume): Likewise.
212 (proceed): Likewise.
213 (do_target_wait): Likewise.
214 (adjust_pc_after_break): Likewise.
215 (handle_inferior_event_1): Likewise.
216 (handle_signal_stop): Likewise.
217 (save_infcall_suspend_state): Likewise.
218 (restore_infcall_suspend_state): Likewise.
219 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
220 * jit.c (jit_frame_prev_register): Likewise.
221 * linux-nat.c (save_stop_reason): Likewise.
222 (linux_nat_wait_1): Likewise.
223 (resume_stopped_resumed_lwps): Likewise.
224 * linux-record.c (record_linux_sockaddr): Likewise.
225 (record_linux_msghdr): Likewise.
226 (record_linux_system_call): Likewise.
227 * linux-tdep.c (linux_collect_thread_registers): Likewise.
228 * lm32-tdep.c (lm32_extract_return_value): Likewise.
229 (lm32_store_return_value): Likewise.
230 * m32c-tdep.c (m32c_read_flg): Likewise.
231 (m32c_pseudo_register_read): Likewise.
232 (m32c_pseudo_register_write): Likewise.
233 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
234 (m32r_linux_collect_gregset): Likewise.
235 * m32r-tdep.c (m32r_store_return_value): Likewise.
236 (m32r_extract_return_value): Likewise.
237 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
238 (m68kbsd_collect_fpregset): Likewise.
239 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
240 * m68k-linux-nat.c (fetch_register): Likewise.
241 (old_fetch_inferior_registers): Likewise.
242 (old_store_inferior_registers): Likewise.
243 (store_regs): Likewise.
244 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
245 (m68k_svr4_store_return_value): Likewise.
246 * m88k-tdep.c (m88k_store_arguments): Likewise.
247 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
248 (mi_cmd_data_write_register_values): Likewise.
249 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
250 (mips_fbsd_store_inferior_registers): Likewise.
251 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
252 (mips_fbsd_supply_gregs): Likewise.
253 (mips_fbsd_collect_fpregs): Likewise.
254 (mips_fbsd_collect_gregs): Likewise.
255 (mips_fbsd_supply_fpregset): Likewise.
256 (mips_fbsd_collect_fpregset): Likewise.
257 (mips_fbsd_supply_gregset): Likewise.
258 (mips_fbsd_collect_gregset): Likewise.
259 * mips-linux-nat.c (supply_gregset): Likewise.
260 (fill_gregset): Likewise.
261 (supply_fpregset): Likewise.
262 (fill_fpregset): Likewise.
263 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
264 (mips_fill_gregset): Likewise.
265 (mips_supply_fpregset): Likewise.
266 (mips_fill_fpregset): Likewise.
267 (mips64_supply_gregset): Likewise.
268 (micromips_linux_sigframe_validate): Likewise.
269 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
270 (mipsnbsd_fetch_inferior_registers): Likewise.
271 (mipsnbsd_store_inferior_registers): Likewise.
272 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
273 (mipsnbsd_supply_gregset): Likewise.
274 (mipsnbsd_iterate_over_regset_sections): Likewise.
275 (mipsnbsd_supply_reg): Likewise.
276 (mipsnbsd_supply_fpreg): Likewise.
277 * mips-tdep.c (mips_in_frame_stub): Likewise.
278 (mips_dummy_id): Likewise.
279 (is_octeon_bbit_op): Likewise.
280 (micromips_bc1_pc): Likewise.
281 (extended_mips16_next_pc): Likewise.
282 (mips16_next_pc): Likewise.
283 (deal_with_atomic_sequence): Likewise.
284 * moxie-tdep.c (moxie_process_readu): Likewise.
285 * nios2-tdep.c (nios2_get_next_pc): Likewise.
286 * nto-procfs.c (procfs_store_registers): Likewise.
287 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
288 (ppcfbsd_store_inferior_registers): Likewise.
289 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
290 (fetch_altivec_register): Likewise.
291 (get_spe_registers): Likewise.
292 (fetch_spe_register): Likewise.
293 (fetch_altivec_registers): Likewise.
294 (fetch_all_gp_regs): Likewise.
295 (fetch_all_fp_regs): Likewise.
296 (store_vsx_register): Likewise.
297 (store_altivec_register): Likewise.
298 (set_spe_registers): Likewise.
299 (store_spe_register): Likewise.
300 (store_altivec_registers): Likewise.
301 (store_all_gp_regs): Likewise.
302 (store_all_fp_regs): Likewise.
303 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
304 (ppc_linux_collect_gregset): Likewise.
305 (ppc_canonicalize_syscall): Likewise.
306 (ppc_linux_record_signal): Likewise.
307 (ppu2spu_prev_register): Likewise.
308 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
309 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
310 (ppcobsd_store_registers): Likewise.
311 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
312 Likewise.
313 (ppc_ravenscar_generic_store_registers): Likewise.
314 * procfs.c (procfs_fetch_registers): Likewise.
315 (procfs_store_registers): Likewise.
316 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
317 (ravenscar_store_registers): Likewise.
318 (ravenscar_prepare_to_store): Likewise.
319 * record-btrace.c (record_btrace_fetch_registers): Likewise.
320 * record-full.c (record_full_wait_1): Likewise.
321 (record_full_registers_change): Likewise.
322 (record_full_store_registers): Likewise.
323 (record_full_core_fetch_registers): Likewise.
324 (record_full_save): Likewise.
325 (record_full_goto_insn): Likewise.
326 * regcache.c (regcache_register_size): Likewise.
327 (get_regcache_arch): Remove.
328 (regcache_read_pc): Likewise.
329 * regcache.h (get_regcache_arch): Remove.
330 * remote-sim.c (gdbsim_fetch_register): Likewise.
331 (gdbsim_store_register): Likewise.
332 * remote.c (fetch_register_using_p): Likewise.
333 (send_g_packet): Likewise.
334 (remote_prepare_to_store): Likewise.
335 (store_registers_using_G): Likewise.
336 * reverse.c (save_bookmark_command): Likewise.
337 (goto_bookmark_command): Likewise.
338 * rs6000-aix-tdep.c (branch_dest): Likewise.
339 * rs6000-nat.c (rs6000_ptrace64): Likewise.
340 (fetch_register): Likewise.
341 * rs6000-tdep.c (ppc_supply_reg): Likewise.
342 (ppc_collect_reg): Likewise.
343 (ppc_collect_gregset): Likewise.
344 (ppc_collect_fpregset): Likewise.
345 (ppc_collect_vsxregset): Likewise.
346 (ppc_collect_vrregset): Likewise.
347 (ppc_displaced_step_hw_singlestep): Likewise.
348 (rs6000_pseudo_register_read): Likewise.
349 (rs6000_pseudo_register_write): Likewise.
350 * s390-linux-nat.c (supply_gregset): Likewise.
351 (fill_gregset): Likewise.
352 (s390_linux_fetch_inferior_registers): Likewise.
353 * s390-linux-tdep.c (s390_write_pc): Likewise.
354 (s390_software_single_step): Likewise.
355 (s390_all_but_pc_registers_record): Likewise.
356 (s390_linux_syscall_record): Likewise.
357 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
358 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
359 (shnbsd_store_inferior_registers): Likewise.
360 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
361 (sh_extract_return_value_fpu): Likewise.
362 (sh_store_return_value_nofpu): Likewise.
363 (sh_corefile_supply_regset): Likewise.
364 (sh_corefile_collect_regset): Likewise.
365 * sh64-tdep.c (sh64_extract_return_value): Likewise.
366 (sh64_store_return_value): Likewise.
367 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
368 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
369 (sparc_store_inferior_registers): Likewise.
370 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
371 (sparc_ravenscar_prepare_to_store): Likewise.
372 * sparc-tdep.c (sparc32_store_arguments): Likewise.
373 (sparc_analyze_control_transfer): Likewise.
374 (sparc_step_trap): Likewise.
375 (sparc_software_single_step): Likewise.
376 (sparc32_gdbarch_init): Likewise.
377 (sparc_supply_rwindow): Likewise.
378 (sparc_collect_rwindow): Likewise.
379 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
380 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
381 (sparc64nbsd_collect_gregset): Likewise.
382 (sparc64nbsd_supply_fpregset): Likewise.
383 (sparc64nbsd_collect_fpregset): Likewise.
384 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
385 (sparc64_supply_gregset): Likewise.
386 (sparc64_collect_gregset): Likewise.
387 (sparc64_supply_fpregset): Likewise.
388 (sparc64_collect_fpregset): Likewise.
389 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
390 * spu-tdep.c (spu_unwind_sp): Likewise.
391 (spu2ppu_prev_register): Likewise.
392 (spu_memory_remove_breakpoint): Likewise.
393 * stack.c (return_command): Likewise.
394 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
395 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
396 * tracefile.c (trace_save_ctf): Likewise.
397 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
398 (do_windows_store_inferior_registers): Likewise.
399 (windows_resume): Likewise.
400 * xtensa-linux-nat.c (fill_gregset): Likewise.
401 (supply_gregset_reg): Likewise.
402 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
403 (xtensa_register_read_masked): Likewise.
404 (xtensa_supply_gregset): Likewise.
405 (xtensa_extract_return_value): Likewise.
406 (xtensa_store_return_value): Likewise.
407
edd079d9
UW
4082017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
409
410 * doublest.c (floatformat_from_string): New function.
411 * doublest.h (floatformat_from_string): Add prototype.
412
413 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
414 (OP_FLOAT): ... this.
415 * expression.h: Do not include "doublest.h".
416 (union exp_element): Replace doubleconst and decfloatconst by
417 new element floatconst.
418 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
419 (ada_evaluate_subexp): Likewise.
420 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
421 OP_DOUBLE and OP_DECFLOAT.
422 * expprint.c (print_subexp_standard): Likewise.
423 (dump_subexp_body_standard): Likewise.
424 * breakpoint.c (watchpoint_exp_is_const): Likewise.
425
426 * parse.c: Include "dfp.h".
427 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
428 (write_exp_elt_floatcst): New function.
429 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
430 and OP_DECFLOAT.
431 (operator_check_standard): Likewise.
432 (parse_float): Do not accept suffix. Take type as input. Return bool.
433 Return target format buffer instead of host DOUBLEST.
434 Use floatformat_from_string and decimal_from_string to parse
435 either binary or decimal floating-point types.
436 (parse_c_float): Remove.
437 * parser-defs.h: Do not include "doublest.h".
438 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
439 (write_exp_elt_floatcst): Add prototype.
440 (parse_float): Update prototype.
441 (parse_c_float): Remove.
442
443 * c-exp.y: Do not include "dfp.h".
444 (typed_val_float): Use byte buffer instead of DOUBLEST.
445 (typed_val_decfloat): Remove.
446 (DECFLOAT): Remove.
447 (FLOAT): 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 Handle decimal and binary FP types the same way.
451
452 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
453 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
454 (parse_number): Update to new parse_float interface.
455 Parse suffixes and determine type before calling parse_float.
456
457 * f-exp.y: Replace dval by typed_val_float.
458 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
459 (parse_number): Use parse_float instead of atof.
460
461 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
462 (parse_go_float): Remove.
463 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
464 (parse_number): Call parse_float instead of parse_go_float.
465 Parse suffixes and determine type before calling parse_float.
466
467 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
468 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
469 (parse_number): Update to new parse_float interface.
470 Parse suffixes and determine type before calling parse_float.
471
472 * m2-exp.y: Replace dval by byte buffer val.
473 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
474 (parse_number): Call parse_float instead of atof.
475
476 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
477 (lex_number): Call parse_float instead of strtod.
478 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
479 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
480 Use write_exp_elt_floatcst.
481 (unit_testing): Remove static variable.
482 (rust_type): Do not check unit_testing.
483 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
484
485 * ada-exp.y (type_float, type_double): Remove.
486 (typed_val_float): Use byte buffer instead of DOUBLEST.
487 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
488 * ada-lex.l (processReal): Use parse_float instead of sscanf.
489
cc628f3d
AH
4902017-10-25 Alan Hayward <alan.hayward@arm.com>
491
492 * aarch64-tdep.h (enum aarch64_regnum): Remove.
493 * arch/aarch64.h: New file.
494
09a7c6aa
UW
4952017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
496
497 * dfp.h (decimal_from_string): Use const reference for argument.
498 * dfp.c (decimal_from_string): Likewise.
499
8ba0dd51
UW
5002017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
501
502 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
503 * sh64-tdep.c (sh64_do_fp_register): Likewise.
504 * mips-tdep.c (mips_print_fp_register): Likewise.
505
16e812b2
UW
5062017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
507
508 * common/format.h (enum argclass): Replace decfloat_arg by
509 dec32float_arg, dec64float_arg, and dec128float_arg.
510 * common/format.c (parse_format_string): Update to return
511 new decimal float argument classes.
512
513 * printcmd.c (printf_decfloat): Rename to ...
514 (printf_floating): ... this. Add argclass argument, and use it
515 instead of parsing the format string again. Add support for
516 binary floating-point values, using floatformat_to_string.
517 Convert value to the target format if it doesn't already match.
518 (ui_printf): Call printf_floating instead of printf_decfloat,
519 also for double_arg / long_double_arg. Pass argclass.
520
521 * dfp.c (decimal_to_string): Add format string argument.
522 * dfp.h (decimal_to_string): Likewise.
523
524 * doublest.c (floatformat_to_string): Add format string argument.
525 * doublest.h (floatformat_to_string): Likewise.
526
fdf0cbc2
UW
5272017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
528
529 * doublest.c (floatformat_precision): New routine.
530 (floatformat_to_string): Likewise.
531 * doublest.c (floatformat_to_string): Add prototype.
532
533 * printcmd.c (print_scalar_formatted): Only call print_floating
534 on floating-point types.
535 * valprint.c: Do not include "floatformat.h".
536 (generic_val_print_decfloat): Remove.
537 (generic_val_print): Call generic_val_print_float for both
538 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
539 (print_floating): Use floatformat_to_string. Handle decimal float.
540 (print_decimal_floating): Remove, merge into floatformat_to_string.
541 * value.h (print_decimal_floating): Remove.
542
543 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
544
5033013f
UW
5452017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
546
547 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
548
a664f67e
SM
5492017-10-21 Simon Marchi <simon.marchi@ericsson.com>
550
551 * memattr.h: Don't include vec.h.
552 (struct mem_attrib): Initialize fields.
553 <unknown>: New static method.
554 (struct mem_region): Add constructors, operator<, initialize
555 fields.
556 * memattr.c: Include algorithm.
557 (default_mem_attrib, unknown_mem_attrib): Remove.
558 (user_mem_region_list): New global.
559 (target_mem_region_list, mem_region_list): Change type to
560 std::vector<mem_region>.
561 (mem_use_target): Now a function.
562 (target_mem_regions_valid): Change type to bool.
563 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
564 (require_user_regions): Adjust.
565 (require_target_regions): Adjust.
566 (create_mem_region): Adjust.
567 (lookup_mem_region): Adjust.
568 (invalidate_target_mem_regions): Adjust.
569 (mem_clear): Rename to...
570 (user_mem_clear): ... this, and adjust.
571 (mem_command): Adjust.
572 (info_mem_command): Adjust.
573 (mem_enable, enable_mem_command, mem_disable,
574 disable_mem_command): Adjust.
575 (mem_delete): Adjust.
576 (delete_mem_command): Adjust.
577 * memory-map.h (parse_memory_map): Return an std::vector.
578 * memory-map.c (parse_memory_map): Likewise.
579 (struct memory_map_parsing_data): Add constructor.
580 <memory_map>: Point to std::vector.
581 (memory_map_start_memory): Adjust.
582 (memory_map_end_memory): Adjust.
583 (memory_map_end_property): Adjust.
584 (clear_result): Remove.
585 * remote.c (remote_memory_map): Return an std::vector.
586 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
587 Remove.
588 (target_debug_print_mem_region_vector): New.
589 * target-delegates.c: Regenerate.
590 * target.h (mem_region_vector): New typedef.
591 (to_memory_map): Return mem_region_vector.
592 (target_memory_map): Return an std::vector.
593 * target.c (target_memory_map): Return an std::vector.
594 (flash_erase_command): Adjust.
595
6e17c565
SM
5962017-10-21 Simon Marchi <simon.marchi@ericsson.com>
597
598 * memory-map.c (struct memory_map_parsing_data) <property_name>:
599 Change type to std::string.
600 (memory_map_start_property): Adjust.
601 (memory_map_end_property): Adjust.
602
cfba9872
SM
6032017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
604
605 * infrun.h: Include common/byte-vector.h.
606 (struct displaced_step_closure): New struct.
607 (struct buf_displaced_step_closure): New struct.
608 * infrun.c (displaced_step_closure::~displaced_step_closure):
609 Provide default implementation.
610 (displaced_step_clear): Deallocate step closure with delete.
611 * aarch64-tdep.c (displaced_step_closure): Rename to ...
612 (aarch64_displaced_step_closure): ... this, extend
613 displaced_step_closure.
614 (aarch64_displaced_step_data) <dsc>: Change type to
615 aarch64_displaced_step_closure.
616 (aarch64_displaced_step_copy_insn): Adjust to type change, use
617 unique_ptr.
618 (aarch64_displaced_step_fixup): Add cast for displaced step
619 closure.
620 * amd64-tdep.c (displaced_step_closure): Rename to ...
621 (amd64_displaced_step_closure): ... this, extend
622 displaced_step_closure.
623 <insn_buf>: Change type to std::vector<gdb_byte>.
624 <max_len>: Remove.
625 (fixup_riprel): Change type of DSC parameter, adjust to type
626 change of insn_buf.
627 (fixup_displaced_copy): Change type of DSC parameter.
628 (amd64_displaced_step_copy_insn): Instantiate
629 amd64_displaced_step_closure.
630 (amd64_displaced_step_fixup): Add cast for closure type, adjust
631 to type change of insn_buf.
632 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
633 parameter DSC.
634 (arm_linux_copy_svc): Likewise.
635 (cleanup_kernel_helper_return): Likewise.
636 (arm_catch_kernel_helper_return): Likewise.
637 (arm_linux_displaced_step_copy_insn): Instantiate
638 arm_displaced_step_closure.
639 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
640 (displaced_read_reg): Change type of parameter DSC.
641 (branch_write_pc): Likewise.
642 (load_write_pc): Likewise.
643 (alu_write_pc): Likewise.
644 (displaced_write_reg): Likewise.
645 (arm_copy_unmodified): Likewise.
646 (thumb_copy_unmodified_32bit): Likewise.
647 (thumb_copy_unmodified_16bit): Likewise.
648 (cleanup_preload): Likewise.
649 (install_preload): Likewise.
650 (arm_copy_preload): Likewise.
651 (thumb2_copy_preload): Likewise.
652 (install_preload_reg): Likewise.
653 (arm_copy_preload_reg): Likewise.
654 (cleanup_copro_load_store): Likewise.
655 (install_copro_load_store): Likewise.
656 (arm_copy_copro_load_store) Likewise.
657 (thumb2_copy_copro_load_store): Likewise.
658 (cleanup_branch): Likewise.
659 (install_b_bl_blx): Likewise.
660 (arm_copy_b_bl_blx): Likewise.
661 (thumb2_copy_b_bl_blx): Likewise.
662 (thumb_copy_b): Likewise.
663 (install_bx_blx_reg): Likewise.
664 (arm_copy_bx_blx_reg): Likewise.
665 (thumb_copy_bx_blx_reg): Likewise.
666 (cleanup_alu_imm): Likewise.
667 (arm_copy_alu_imm): Likewise.
668 (thumb2_copy_alu_imm): Likewise.
669 (cleanup_alu_reg): Likewise.
670 (install_alu_reg): Likewise.
671 (arm_copy_alu_reg): Likewise.
672 (thumb_copy_alu_reg): Likewise.
673 (cleanup_alu_shifted_reg): Likewise.
674 (install_alu_shifted_reg): Likewise.
675 (arm_copy_alu_shifted_reg): Likewise.
676 (cleanup_load): Likewise.
677 (cleanup_store): Likewise.
678 (arm_copy_extra_ld_st): Likewise.
679 (install_load_store): Likewise.
680 (thumb2_copy_load_literal): Likewise.
681 (thumb2_copy_load_reg_imm): Likewise.
682 (arm_copy_ldr_str_ldrb_strb): Likewise.
683 (cleanup_block_load_all): Likewise.
684 (cleanup_block_store_pc): Likewise.
685 (cleanup_block_load_pc): Likewise.
686 (arm_copy_block_xfer): Likewise.
687 (thumb2_copy_block_xfer): Likewise.
688 (cleanup_svc): Likewise.
689 (install_svc): Likewise.
690 (arm_copy_svc): Likewise.
691 (thumb_copy_svc): Likewise.
692 (arm_copy_undef): Likewise.
693 (thumb_32bit_copy_undef): Likewise.
694 (arm_copy_unpred): Likewise.
695 (arm_decode_misc_memhint_neon): Likewise.
696 (arm_decode_unconditional): Likewise.
697 (arm_decode_miscellaneous): Likewise.
698 (arm_decode_dp_misc): Likewise.
699 (arm_decode_ld_st_word_ubyte): Likewise.
700 (arm_decode_media): Likewise.
701 (arm_decode_b_bl_ldmstm): Likewise.
702 (arm_decode_ext_reg_ld_st): Likewise.
703 (thumb2_decode_dp_shift_reg): Likewise.
704 (thumb2_decode_ext_reg_ld_st): Likewise.
705 (arm_decode_svc_copro): Likewise.
706 (thumb2_decode_svc_copro): Likewise.
707 (install_pc_relative): Likewise.
708 (thumb_copy_pc_relative_16bit): Likewise.
709 (thumb_decode_pc_relative_16bit): Likewise.
710 (thumb_copy_pc_relative_32bit): Likewise.
711 (thumb_copy_16bit_ldr_literal): Likewise.
712 (thumb_copy_cbnz_cbz): Likewise.
713 (thumb2_copy_table_branch): Likewise.
714 (cleanup_pop_pc_16bit_all): Likewise.
715 (thumb_copy_pop_pc_16bit): Likewise.
716 (thumb_process_displaced_16bit_insn): Likewise.
717 (decode_thumb_32bit_ld_mem_hints): Likewise.
718 (thumb_process_displaced_32bit_insn): Likewise.
719 (thumb_process_displaced_insn): Likewise.
720 (arm_process_displaced_insn): Likewise.
721 (arm_displaced_init_closure): Likewise.
722 (arm_displaced_step_fixup): Add cast for closure.
723 * arm-tdep.h: Include infrun.h.
724 (displaced_step_closure): Rename to ...
725 (arm_displaced_step_closure): ... this, extend
726 displaced_step_closure.
727 <u::svc::copy_svc_os>: Change type of parameter DSC.
728 <cleanup>: Likewise.
729 (arm_process_displaced_insn): Likewise.
730 (arm_displaced_init_closure): Likewise.
731 (displaced_read_reg): Likewise.
732 (displaced_write_reg): Likewise.
733 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
734 Adjust.
735 * i386-tdep.h: Include infrun.h.
736 (i386_displaced_step_closure): New typedef.
737 * i386-tdep.c (i386_displaced_step_copy_insn): Use
738 i386_displaced_step_closure.
739 (i386_displaced_step_fixup): Adjust.
740 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
741 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
742 and unique_ptr.
743 (ppc_displaced_step_fixup): Adjust.
744 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
745 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
746 and unique_ptr.
747 (s390_displaced_step_fixup): Adjust.
748
b392b304
SM
7492017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * interps.h (interp_resume, interp_suspend, interp_set_temp):
752 Remove declarations.
753
d5833c62
TT
7542017-10-20 Tom Tromey <tom@tromey.com>
755
756 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
757 std::vector.
758 (gdb_bfd_record_inclusion): Update.
759 (bfdp): Remove typedef.
760
06d5bbc8
TT
7612017-10-20 Tom Tromey <tom@tromey.com>
762
763 * gdb_bfd.c (gdb_bfd_ref): Use new.
764 (struct gdb_bfd_data): Add constructor, destructor, and member
765 initializers.
766 (gdb_bfd_unref): Use delete.
767
2712ce2e
TT
7682017-10-20 Tom Tromey <tom@tromey.com>
769
770 * exec.c (exec_file_attach): Use new_bfd_ref.
771 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
772 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
773 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
774 new_bfd_ref.
775 * gdb_bfd.h (new_bfd_ref): New function.
776
fcc8fb2f
PA
7772017-10-20 Pedro Alves <palves@redhat.com>
778
779 * main.c (captured_command_loop): Add attribute noinline.
780
4c2287b0
SM
7812017-10-19 Simon Marchi <simon.marchi@ericsson.com>
782
783 * interps.c (struct interp_factory): Add constructor.
784 (interp_factory_p): Remove typedef.
785 (DEF_VEC_P(interp_factory_p)): Remove.
786 (interpreter_factories): Change type to std::vector.
787 (interp_factory_register): Adjust.
788 (interp_lookup): Adjust.
789 (interpreter_completer): Adjust.
790
3d415c26
TT
7912017-10-19 Tom Tromey <tom@tromey.com>
792
793 * break-catch-syscall.c (catch_syscall_completer): Use
794 std::string, gdb::unique_xmalloc_ptr.
795
395423c4
TT
7962017-10-19 Tom Tromey <tom@tromey.com>
797
798 * infcall.c (call_function_by_hand_dummy): Use std::string.
799
54f70bc1
TT
8002017-10-19 Tom Tromey <tom@tromey.com>
801
802 * mi/mi-main.c (mi_cmd_execute): Update.
803 * top.h (prepare_execute_command): Return scoped_value_mark.
804 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
805 Add move constructor.
806 * top.c (prepare_execute_command): Return scoped_value_mark.
807 (execute_command): Update.
808
63929e84
PA
8092017-10-19 Pedro Alves <palves@redhat.com>
810
811 * xml-support.c (xml_fetch_content_from_file): Check fread's
812 return.
813
a75868f5
PA
8142017-10-19 Pedro Alves <palves@redhat.com>
815
816 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
817 async.
818 (handle_error_fd): New function.
819 (ser_base_async): Add/delete an event loop file handler for
820 error_fd.
821
2edf834e
PA
8222017-10-19 Pedro Alves <palves@redhat.com>
823
824 * xml-support.c (xml_fetch_content_from_file): Don't read in
825 chunks. Instead use fseek to determine the file's size, and read
826 it in one go.
827
c8ba13ad
KS
8282017-11-18 Keith Seitz <keiths@redhat.com>
829
830 * c-exp.y (oper): Canonicalize conversion operators of user-defined
831 types.
832 Add whitespace to front of type name.
833
37534686
KS
8342017-10-18 Keith Seitz <keiths@redhat.com>
835
836 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
837 DW_AT_accessibility.
838
28c7c158
YQ
8392017-10-18 Yao Qi <yao.qi@linaro.org>
840
841 * features/tic6x-c62x-linux.c: Remove.
842
30f0b101
TT
8432017-10-17 Tom Tromey <tom@tromey.com>
844
845 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
846 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
847 (do_mixed_source_and_assembly): Likewise.
848
57e12da9
TT
8492017-10-17 Tom Tromey <tom@tromey.com>
850
851 * regcache.c (regcache::xfer_part): Remove assertion.
852
7b700999
PA
8532017-10-17 Pedro Alves <palves@redhat.com>
854
855 * xml-support.c (xml_fetch_content_from_file): Call
856 unique_ptr::release() instead unique_ptr::get() when passing
857 through xrealloc.
858
d3037ba6
YQ
8592017-10-17 Yao Qi <yao.qi@linaro.org>
860
861 * regcache.c (regcache::xfer_part): Remove parameters read and
862 write, add parameter is_raw. All callers are updated.
863
83d5a34d
KS
8642017-10-16 Keith Seitz <keiths@redhat.com>
865
866 * c-typeprint.c (enum access_specifier): Moved here from
867 c_type_print_base.
868 (output_access_specifier): New function.
869 (c_type_print_base): Consider typedefs when assessing
870 whether access labels are needed.
871 Use output_access_specifier as needed.
872 Output access specifier for typedefs, if needed.
873 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
874 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
875 fields.
876 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
877 accessor macros.
878
87028b87
TT
8792017-10-16 Tom Tromey <tom@tromey.com>
880
881 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
882 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
883 * target.c (target_fileio_read_stralloc): Update.
884 * sparc64-tdep.c (adi_is_addr_mapped): Update.
885 * target.h (target_fileio_read_stralloc): Return
886 unique_xmalloc_ptr.
887
b7b030ad
TT
8882017-10-16 Tom Tromey <tom@tromey.com>
889
890 * xml-syscall.c (xml_init_syscalls_info): Update.
891 * xml-support.c (xinclude_start_include): Update.
892 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
893 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
894 (xml_fetch_content_from_file): Likewise.
895 * osdata.c (get_osdata): Update.
896 * target.h (target_read_stralloc, target_get_osdata): Return
897 unique_xmalloc_ptr.
898 * solib-aix.c (solib_aix_get_library_list): Update.
899 * solib-target.c (solib_target_current_sos): Update.
900 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
901 * xml-tdesc.c (fetch_available_features_from_target): Update.
902 (target_fetch_description_xml): Update.
903 (file_read_description_xml): Update.
904 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
905 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
906 (remote_pid_to_exec_file): Update.
907 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
908 (target_get_osdata): Likewise.
909
b80406ac
TT
9102017-10-16 Tom Tromey <tom@tromey.com>
911
912 * remote.c (remote_register_number_and_offset): Use std::vector.
913 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
914 (putpkt_binary): Use gdb::def_vector.
915 (compare_sections_command): Use gdb::byte_vector.
916
a90ecff8
TT
9172017-10-16 Tom Tromey <tom@tromey.com>
918
919 * ppc-linux-nat.c (hwdebug_insert_point): Use
920 gdb::unique_xmalloc_ptr, XDUP.
921
2dc0e219
TT
9222017-10-16 Tom Tromey <tom@tromey.com>
923
924 * probe.c (parse_probes): Use std::string.
925 (info_probes_for_ops, enable_probes_command)
926 (disable_probes_command): Remove cleanups.
927
b05628f0
TT
9282017-10-16 Tom Tromey <tom@tromey.com>
929
930 * buildsym.c (block_compar): Remove.
931 (end_symtab_get_static_block): Use std::vector.
932
a79b1bc6
SM
9332017-10-16 Simon Marchi <simon.marchi@ericsson.com>
934
935 * memrange.h (struct mem_range): Define operator< and operator==.
936 (mem_range_s): Remove.
937 (DEF_VEC_O (mem_range_s)): Remove.
938 (normalize_mem_ranges): Change parameter type to std::vector.
939 * memrange.c (compare_mem_ranges): Remove.
940 (normalize_mem_ranges): Change parameter type to std::vector,
941 adjust to vector change.
942 * exec.c (section_table_available_memory): Return vector, remove
943 parameter.
944 (section_table_read_available_memory): Adjust to std::vector
945 change.
946 * remote.c (remote_read_bytes): Adjust to std::vector
947 change.
948 * tracepoint.h (traceframe_available_memory): Change parameter
949 type to std::vector.
950 * tracepoint.c (traceframe_available_memory): Change parameter
951 type to std::vector, adjust.
952 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
953 std::vector change.
954 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
955 unittests/memrange-selftests.c.
956 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
957 * gdb/unittests/memrange-selftests.c: New file.
958
63f0e930
PA
9592017-10-16 Pedro Alves <palves@redhat.com>
960
961 * elfread.c (probe_key_free): Rename range-for variable.
962 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
963 (find_probe_by_pc, collect_probes): Rename range-for variable.
964
c40c7bfc
YQ
9652017-10-16 Yao Qi <yao.qi@linaro.org>
966
967 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
968 * features/tic6x-c62x.c: Remove.
969 * features/tic6x-c64x-linux.c: Remove.
970 * features/tic6x-c64x.c: Remove.
971 * features/tic6x-c64xp-linux.c: Remove.
972 * features/tic6x-c64xp.c: Remove.
973 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
974 initialize_tdesc_tic6x_*_linux functions.
975 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
976 initialize_tdesc_tic6x_* functions.
977
df27ae6a
YQ
9782017-10-16 Yao Qi <yao.qi@linaro.org>
979
980 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
981 tic6x-c62x.
982 * regformats/tic6x-c62x.dat: Remove.
983 * regformats/tic6x-c64x.dat: Remove.
984 * regformats/tic6x-c64xp.dat: Remove.
985
86766165
SM
9862017-10-15 Simon Marchi <simon.marchi@ericsson.com>
987
988 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
989 (the !HAVE_LIBEXPAT version).
990
824dfcc3
SM
9912017-10-14 Simon Marchi <simon.marchi@ericsson.com>
992
993 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
994 const.
995
2098b393
SM
9962017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
997
998 * target.h: Include tracepoint.h.
999 (enum trace_find_type): Move to tracepoint.h.
1000 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1001 * tracepoint.h: Don't include target.h
1002 (enum trace_find_type): Move from target.h.
1003 (parse_traceframe_info): Return a unique ptr.
1004 * tracepoint.c (current_traceframe_info): Change type to unique
1005 ptr.
1006 (free_traceframe_info): Remove.
1007 (clear_traceframe_info): Don't manually free
1008 current_traceframe_info.
1009 (free_result): Remove.
1010 (parse_traceframe_info): Return a unique ptr.
1011 (get_traceframe_info): Adjust to unique ptr.
1012 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1013 * remote.c (remote_traceframe_info): Return a unique ptr.
1014 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1015 ptr.
1016 * target-debug.h (target_debug_print_traceframe_info_up): New
1017 macro.
1018 * target-delegates.c: Regenerate.
1019
4cdd21a8
SM
10202017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1021
1022 * memrange.h (struct mem_range): Add constructors.
1023 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1024 std::vector<mem_range>.
1025 * tracepoint.c (free_traceframe_info): Don't manually free
1026 vector.
1027 (traceframe_info_start_memory): Adjust to vector change.
1028 (traceframe_available_memory): Likewise.
1029 * tracefile-tfile.c (build_traceframe_info): Likewise.
1030 * ctf.c (ctf_traceframe_info): Likewise.
1031
d0d292a2
SM
10322017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1033
1034 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1035 std::vector<int>.
1036 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1037 (traceframe_info_start_tvar): Adjust to vector change.
1038 (parse_traceframe_info): Allocate with new.
1039 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1040 vector change.
1041 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1042 change.
1043 tfile_traceframe_info): Allocate with new.
1044 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1045 change.
1046
8d3c73ef
SM
10472017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1048
1049 * tracepoint.c (traceframe_info): Rename to...
1050 (current_traceframe_info): ...this.
1051 (clear_traceframe_info): Adjust.
1052 (get_traceframe_info): Adjust.
1053
b129dcac
SM
10542017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1055
1056 * nat/linux-osdata.c: Include algorithm.
1057 (compare_processes): Remove.
1058 (struct pid_pgid_entry): New struct.
1059 (linux_xfer_osdata_processgroups): Use std::vector instead of
1060 XNEWVEC.
1061
af5bf4ad
SM
10622017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1063
1064 * objfiles.h: Don't include symfile.h.
1065 (struct partial_symbol): Remove forward-declaration.
1066 (struct objfile) <global_psymbols, static_psymbols>: Change type
1067 to std::vector<partial_symbol *>.
1068 * objfiles.c (objfile::objfile): Don't memset those fields.
1069 (objfile::~objfile): Don't free those fields.
1070 * psympriv.h (struct psymbol_allocation_list): Remove
1071 forward-declaration.
1072 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1073 to std::vector.
1074 (start_psymtab_common): Change parameters to std::vector.
1075 * psymtab.c: Include algorithm.
1076 (require_partial_symbols): Call shrink_to_fit.
1077 (find_pc_sect_psymbol): Adjust to vector change.
1078 (match_partial_symbol): Likewise.
1079 (lookup_partial_symbol): Likewise.
1080 (psym_relocate): Likewise.
1081 (dump_psymtab): Likewise.
1082 (recursively_search_psymtabs): Likewise.
1083 (compare_psymbols): Remove.
1084 (sort_pst_symbols): Adjust to vector change.
1085 (start_psymtab_common): Likewise.
1086 (end_psymtab_common): Likewise.
1087 (psymbol_bcache_full): De-constify return value.
1088 (add_psymbol_to_bcache): Likewise.
1089 (extend_psymbol_list): Remove.
1090 (append_psymbol_to_list): Adjust to vector change.
1091 (add_psymbol_to_list): Likewise.
1092 (init_psymbol_list): Likewise.
1093 (maintenance_info_psymtabs): Likewise.
1094 (maintenance_check_psymtabs): Likewise.
1095 * symfile.h (struct psymbol_allocation_list): Remove.
1096 * symfile.c (reread_symbols): Adjust to vector change.
1097 * dbxread.c (start_psymtab): Change type of parameters.
1098 (dbx_symfile_read): Adjust to vector change.
1099 (read_dbx_symtab): Likewise.
1100 (start_psymtab): Change type of parameters.
1101 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1102 (create_partial_symtab): Likewise.
1103 (add_partial_symbol): Likewise.
1104 (write_one_signatured_type): Likewise.
1105 (recursively_write_psymbols): Likewise.
1106 * mdebugread.c (parse_partial_symbols): Likewise.
1107 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1108 (scan_xcoff_symtab): Adjust to vector change.
1109 (xcoff_initial_scan): Likewise.
1110
3ec5942f
SM
11112017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1112
1113 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1114
2399fe6a
YQ
11152017-10-13 Yao Qi <yao.qi@linaro.org>
1116
1117 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1118 Remove s390x-*-expedite, add s390x-expedite.
1119
4bf3f4a8
YQ
11202017-10-13 Yao Qi <yao.qi@linaro.org>
1121
1122 * features/s390-gs-linux64.c: Regenerated.
1123 * features/s390x-gs-linux64.c: Regenerated.
1124
9e86da07
TT
11252017-10-13 Tom Tromey <tom@tromey.com>
1126
1127 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1128 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1129 delete.
1130 * symfile.c (symbol_file_add_with_addrs): Use new.
1131 (symbol_file_add_separate): Update comment.
1132 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1133 * jit.c (jit_object_close_impl): Use new.
1134 (jit_unregister_code): Use delete.
1135 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1136 (~objfile): Rename from free_objfile.
1137 (free_objfile_separate_debug, do_free_objfile_cleanup)
1138 (free_all_objfiles, objfile_purge_solibs): Use delete.
1139 * objfiles.h (struct objfile): Add constructor and destructor.
1140 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1141 (allocate_objfile, free_objfile): Don't declare.
1142 (struct objstats): Add initializers.
1143
c2508e90
SM
11442017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1145
1146 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1147 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1148 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1149 * gdbarch.h: Regenerate.
1150 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1151 Adjust comment.
1152 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1153 (i386_displaced_step_fixup): Adjust comment.
1154 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1155
a900ff72
TT
11562017-10-12 Tom Tromey <tom@tromey.com>
1157
1158 * prologue-value.h (pv_area::store_would_trash): Return bool.
1159 (pv_area::find_reg): Likewise.
1160 * prologue-value.c (pv_area::store_would_trash): Return bool.
1161 (pv_area::find_reg): Likewise.
1162
f7b7ed97
TT
11632017-10-12 Tom Tromey <tom@tromey.com>
1164
1165 * s390-linux-tdep.c (s390_store, s390_load)
1166 (s390_check_for_saved, s390_analyze_prologue): Update.
1167 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1168 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1169 * prologue-value.h (class pv_area): Move from prologue-value.c.
1170 Change names of members. Add constructor, destructor, member
1171 functions.
1172 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1173 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1174 (pv_area_fetch, pv_area_scan): Don't declare.
1175 * prologue-value.c (struct pv_area::area_entry): Now member of
1176 pv_area.
1177 (struct pv_area): Move to prologue-value.h.
1178 (pv_area::pv_area): Rename from make_pv_area.
1179 (pv_area::~pv_area): Rename from free_pv_area.
1180 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1181 (clear_entries, find_entry, overlaps, store_would_trash, store)
1182 (fetch, find_reg, scan): Now member of pv_area.
1183 Remove "area" argument. Update.
1184 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1185 Update.
1186 * mn10300-tdep.c (push_reg, check_for_saved)
1187 (mn10300_analyze_prologue): Update.
1188 * mep-tdep.c (is_arg_spill, check_for_saved)
1189 (mep_analyze_prologue): Update.
1190 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1191 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1192 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1193 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1194 Update.
1195 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1196 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1197
466eecee
SM
11982017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1199
1200 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1201 * linux-nat.c (linux_nat_delete_thread): New variable.
1202 (lwp_free): Invoke linux_nat_delete_thread if set.
1203 (linux_nat_set_delete_thread): New function.
1204 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1205 thread delete callback.
1206 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1207 (_initialize_arm_linux_nat): Assign thread delete callback.
1208 * s390-linux-nat.c (s390_delete_thread): New function.
1209 (_initialize_s390_nat): Assign thread delete callback.
1210 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1211 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1212 function.
1213 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1214 declaration.
1215 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1216 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1217
f71c8822
TT
12182017-10-09 Tom Tromey <tom@tromey.com>
1219
1220 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1221 std::string.
1222 * tui/tui-layout.c (enum tui_status): Use std::string.
1223
981a3fb3
TT
12242017-10-11 Tom Tromey <tom@tromey.com>
1225
1226 * gdbthread.h (thread_command): Constify.
1227 * inferior.h (detach_command): Constify.
1228 * top.h (set_history, show_history): Constify.
1229 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1230 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1231 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1232 * printcmd.c (set_command): Constify.
1233 (non_const_set_command): New function.
1234 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1235 * breakpoint.c (enable_command, disable_command, delete_command)
1236 (catch_command, tcatch_command, set_breakpoint_cmd)
1237 (show_breakpoint_cmd): Constify.
1238 * macrocmd.c (macro_command): Constify.
1239 * infcmd.c (unset_command, kill_command, detach_command)
1240 (info_proc_cmd): Constify.
1241 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1242 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1243 (info_auto_load_cmd): Constify.
1244 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1245 (unset_tdesc_cmd): Constify.
1246 * ada-lang.c (set_ada_command, show_ada_command)
1247 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1248 * guile/guile.c (set_guile_command, show_guile_command)
1249 (info_guile_command): Constify.
1250 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1251 Constify.
1252 * skip.c (skip_command): Constify.
1253 * compile/compile.c (_initialize_compile): Constify.
1254 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1255 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1256 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1257 (maint_btrace_pt_show_cmd): Constify.
1258 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1259 Constify.
1260 * python/python.c (user_show_python, user_set_python): Constify.
1261 * mips-tdep.c (set_mips_command, show_mips_command)
1262 (set_mipsfpu_command): Constify.
1263 * record-btrace.c (cmd_record_btrace_start)
1264 (cmd_set_record_btrace, cmd_show_record_btrace)
1265 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1266 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1267 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1268 Constify.
1269 * symfile.c (overlay_command): Constify.
1270 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1271 * cli/cli-logging.c (set_logging_command, show_logging_command):
1272 Constify.
1273 * cli/cli-dump.c (dump_command, append_command)
1274 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1275 (tekhex_dump_command, binary_dump_command)
1276 (binary_append_command): Constify.
1277 * cli/cli-decode.c (struct cmd_list_element): Change type of
1278 "fun".
1279 * cli/cli-cmds.c (info_command, show_command, set_debug)
1280 (show_debug): Constify.
1281 (show_command): Add non-const overload.
1282 * top.c (set_history, show_history): Constify.
1283 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1284 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1285 * target.c (target_command): Constify.
1286 * sparc64-tdep.c (info_adi_command): Constify.
1287 * record-full.c (cmd_record_full_start): Constify.
1288 (set_record_full_command): Constify. Fix typo.
1289 (show_record_full_command): Constify.
1290 * thread.c (thread_command, thread_apply_command): Constify.
1291 * memattr.c (dummy_cmd): Constify.
1292 * value.c (function_command): Constify.
1293 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1294 * probe.c (info_probes_command): Constify.
1295 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1296 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1297 (show_thread_cmd, set_thread_default_cmd)
1298 (show_thread_default_cmd): Constify.
1299 (check_empty): Constify.
1300 * tracepoint.c (tfind_command): Constify.
1301 * cp-support.c (maint_cplus_command): Constify.
1302 * windows-tdep.c (info_w32_command): Constify.
1303 * record.c (cmd_record_start, set_record_command)
1304 (show_record_command, info_record_command, cmd_record_goto):
1305 Constify.
1306 * ravenscar-thread.c (set_ravenscar_command)
1307 (show_ravenscar_command): Constify.
1308 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1309 Constify.
1310 (add_internal_problem_command): Remove casts.
1311 * arc-tdep.c (maintenance_print_arc_command): Constify.
1312 * valprint.c (set_print, show_print, set_print_raw)
1313 (show_print_raw): Constify.
1314 * maint.c (maintenance_command, maintenance_info_command)
1315 (maintenance_print_command, maintenance_set_cmd)
1316 (maintenance_show_cmd, set_per_command_cmd)
1317 (show_per_command_cmd, maintenance_check_command): Constify.
1318 * language.c (set_check, show_check): Constify.
1319 * typeprint.c (show_print_type, set_print_type): Constify.
1320 * go32-nat.c (go32_info_dos_command): Constify.
1321
fdf44873
TT
13222017-10-11 Tom Tromey <tom@tromey.com>
1323
1324 * breakpoint.c (prepare_re_set_context): Remove.
1325 (breakpoint_re_set_one): Update. Don't use cleanups.
1326 (breakpoint_re_set): Use scoped_restore, std::string, and
1327 scoped_restore_current_language.
1328
81b1e71c
TT
13292017-10-11 Tom Tromey <tom@tromey.com>
1330
1331 * breakpoint.c (commands_command_1): Use std::string.
1332 (cleanup_executing_breakpoints): Remove.
1333 (bpstat_do_actions_1): Use scoped_restore.
1334 (bpstat_check_watchpoint): Use std::string.
1335 (decode_static_tracepoint_spec): Likewise.
1336 (break_range_command): Likewise.
1337 (watch_command_1): Likewise.
1338 (compare_breakpoints): Change argument types.
1339 (clear_command): Use std::vector.
1340 (cleanup_executing_breakpoints): Remove.
1341 (update_global_location_list): Use unique_xmalloc_ptr.
1342 (strace_command): Remove unused declaration.
1343
4f9d9906
JB
13442017-10-11 John Baldwin <jhb@FreeBSD.org>
1345
1346 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1347 * NEWS: Mention new FreeBSD/arm native configuration.
1348 * configure.host: Add arm*-*-freebsd*.
1349 * configure.nat: Likewise.
1350 * arm-fbsd-nat.c: New file.
1351
7176dfd2
JB
13522017-10-11 John Baldwin <jhb@FreeBSD.org>
1353
1354 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1355 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1356 * NEWS: Mention new FreeBSD/arm target.
1357 * configure.tgt: Add arm*-*-freebsd*.
1358 * arm-fbsd-tdep.c: New file.
1359 * arm-fbsd-tdep.h: New file.
1360
fe220226
MR
13612017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1362
1363 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1364 `gdbarch_elfcore_write_linux_prpsinfo'.
1365 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1366 method.
1367 (elf_internal_linux_prpsinfo): Remove declaration.
1368 * gdbarch.h: Regenerate.
1369 * gdbarch.c: Regenerate.
1370
a2f63b2e
MR
13712017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1372
1373 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1374 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1375
458ca1d0
PA
13762017-10-11 Pedro Alves <palves@redhat.com>
1377
1378 * breakpoint.c (reattach_breakpoints): Delete.
1379 * breakpoint.h (reattach_breakpoints): Delete.
1380
905014d7
SM
13812017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1382
1383 * symfile.c (registered_sym_fns): Make struct, not typedef.
1384 (DEF_VEC_O (registered_sym_fns)): Remove.
1385 (symtab_fns): Change type to std::vector.
1386 (add_symtab_fns): Adjust.
1387 (find_sym_fns): Adjust.
1388
56d704da
AK
13892017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1390
1391 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1392 * arc-tdep.h (arc_arch_is_em): New function.
1393 (arc_arch_is_hs): Likewise.
1394
7fa29be9
EB
13952017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1396
1397 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1398 parentheses in the declaration.
1399 (macro_lookup_inclusion): Likewise.
1400 (macro_lookup_definition): Likewise.
1401 * p-lang.h (pascal_builtin_types): Likewise.
1402 * tui/tui-data.c (tui_win_list): Likewise.
1403 * tui/tui-data.h (tui_win_list): Likewise.
1404 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1405
d9b477e3
KB
14062017-10-11 Mark Rages <markrages@gmail.com>
1407
1408 * target-memory.c (block_boundaries): Fix for block address not
1409 aligned on block size.
1410
65630365
PA
14112017-10-10 Pedro Alves <palves@redhat.com>
1412 Tom Tromey <tom@tromey.com>
1413
1414 * breakpoint.c (struct captured_breakpoint_query_args)
1415 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1416 (print_breakpoint): New.
1417 * breakpoint.h (print_breakpoint): Declare.
1418 * common/common-exceptions.h (enum return_reason): Remove
1419 references to catch_exceptions.
1420 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1421 Delete.
1422 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1423 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1424 * gdb.h: Delete.
1425 * gdbthread.h (thread_select): Declare.
1426 * mi/mi-cmd-break.c: Don't include gdb.h.
1427 (breakpoint_notify): Use print_breakpoint.
1428 * mi/mi-cmd-catch.c: Don't include gdb.h.
1429 * mi/mi-interp.c: Don't include gdb.h.
1430 (mi_print_breakpoint_for_event): New.
1431 (mi_breakpoint_created, mi_breakpoint_modified): Use
1432 mi_print_breakpoint_for_event.
1433 * mi/mi-main.c: Don't include gdb.h.
1434 (mi_cmd_thread_select): Parse the global thread ID here. Use
1435 thread_select instead of gdb_thread_select.
1436 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1437 of using gdb_list_thread_ids.
1438 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1439 FILEIO_ENOSYS here.
1440 (remote_fileio_request): Use TRY/CATCH instead of
1441 catch_exceptions.
1442 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1443 (symbol_file_add_from_memory_wrapper): Delete.
1444 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1445 * thread.c: Don't include gdb.h.
1446 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1447 (thread_alive): Use thread_select.
1448 (do_captured_thread_select): Delete, parts salvaged as ...
1449 (thread_select): ... this new function.
1450 (gdb_thread_select): Delete.
1451
bf469271
PA
14522017-10-10 Pedro Alves <palves@redhat.com>
1453 Tom Tromey <tom@tromey.com>
1454
1455 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1456 and reverse logic.
1457 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1458 No longer macros. Instead ...
1459 (enum wp_check_result): They're now values of this new
1460 enumeration.
1461 (watchpoint_check): Change return type to wp_check_result and
1462 parameter type to bpstat.
1463 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1464 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1465 catch_errors. Reverse logic of watchpoint_check call.
1466 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1467 pointer as parameter.
1468 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1469 * common/common-exceptions.c (throw_exception_sjlj): Update
1470 comments to avoid mentioning catch_errors.
1471 * exceptions.c (catch_errors): Delete.
1472 * exceptions.h: Update comments to avoid mentioning catch_errors.
1473 (catch_errors_ftype, catch_errors): Delete.
1474 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1475 (hook_stop_stub): Delete.
1476 (restore_selected_frame): Change return type to void, and
1477 parameter type to const frame_id &.
1478 (restore_infcall_control_state): Use TRY/CATCH instead of
1479 catch_errors.
1480 * main.c (captured_command_loop): Return void and remove
1481 parameter. Remove references to catch_errors.
1482 (captured_main): Use TRY/CATCH instead of catch_errors.
1483 * objc-lang.c (objc_submethod_helper_data)
1484 (find_objc_msgcall_submethod_helper): Delete.
1485 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1486 catch_errors.
1487 * record-full.c (record_full_message): Return void.
1488 (record_full_message_args, record_full_message_wrapper): Delete.
1489 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1490 instead of catch_errors.
1491 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1492 parameter type to int.
1493 * solib-darwin.c (open_symbol_file_object): Ditto.
1494 * solib-dsbt.c (open_symbol_file_object): Ditto.
1495 * solib-frv.c (open_symbol_file_object): Ditto.
1496 * solib-svr4.c (open_symbol_file_object): Ditto.
1497 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1498 * solib.c (update_solib_list): Use TRY/CATCH instead of
1499 catch_errors.
1500 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1501 Change type.
1502 * symmisc.c (struct print_symbol_args): Remove.
1503 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1504 (print_symbol): Change type.
1505 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1506 and remove parameters.
1507 (catch_errors): New.
1508 (get_windows_debug_event): Adjust.
1509
1a56bfa5
TT
15102017-10-09 Tom Tromey <tom@tromey.com>
1511
1512 * mi/mi-main.c (free_splay_tree): Remove.
1513 (list_available_thread_groups): Use splay_tree_up.
1514 * common/gdb_splay_tree.h: New file.
1515
0c478e2d
TT
15162017-10-09 Tom Tromey <tom@tromey.com>
1517
1518 * mi/mi-main.c (do_nothing): Remove.
1519 (list_available_thread_groups): Update.
1520
cbd2b4e3
PA
15212017-10-09 Pedro Alves <palves@redhat.com>
1522
1523 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1524 reading registers when switching context.
1525
a181c0bf
JB
15262017-10-09 John Baldwin <jhb@FreeBSD.org>
1527
1528 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1529 (fbsd_convert_siginfo): Likewise.
1530 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1531
6e66f753
SM
15322017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1533
1534 * configure.ac (try_guile_versions): Remove guile-2.2.
1535 * configure: Regenerate.
1536
890e9790
TT
15372017-10-09 Tom Tromey <tom@tromey.com>
1538
1539 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1540 (COMPILE.pre): Use $(CXX).
1541
109483d9
PA
15422017-10-09 Pedro Alves <palves@redhat.com>
1543
1544 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1545 Use bool.
1546 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1547 * cp-support.h (cp_remove_params): Now returns a
1548 gdb::unique_xmalloc_ptr.
1549 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1550 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1551 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1552 returning a gdb::unique_xmalloc_ptr.
1553 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1554 * stack.c (find_frame_funname): Adjust to cp_remove_params
1555 returning a gdb::unique_xmalloc_ptr.
1556
791afaa2
TT
15572017-10-08 Tom Tromey <tom@tromey.com>
1558
1559 * dwarf2read.c (dwarf2_get_dwz_file): Use
1560 gdb::unique_xmalloc_ptr.
1561 (find_slot_in_mapped_hash): Likewise.
1562 (dwarf2_physname): Likewise.
1563 (create_dwo_unit_in_dwp_v1): Use std::string.
1564 (create_dwo_unit_in_dwp_v2): Likewise.
1565 (lookup_dwo_cutu): Likewise.
1566 (inherit_abstract_dies): Use std::vector.
1567 (read_array_type): Likewise.
1568 (dwarf_decode_macros): Remove unused declaration.
1569 (unsigned_int_compar): Remove.
1570 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1571 (psymtabs_addrmap_cleanup): Remove.
1572
30a9c02f
TT
15732017-10-08 Tom Tromey <tom@tromey.com>
1574
1575 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1576 * frame.h (frame_cleanup_after_sniffer): Declare.
1577 (frame_prepare_for_sniffer): Return void.
1578 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1579 type of argument.
1580 (frame_prepare_for_sniffer): Return void.
1581
757325a3
TT
15822017-10-08 Tom Tromey <tom@tromey.com>
1583
1584 * utils.h (make_cleanup_value_free): Remove.
1585 * utils.c (do_value_free, struct cleanup): Remove.
1586 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1587 Use gdb_value_up.
1588 * value.h (struct value_deleter): New.
1589 (gdb_value_up): New typedef.
1590
b9c04fb2
TT
15912017-10-08 Tom Tromey <tom@tromey.com>
1592
1593 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1594 (make_cleanup_free_search_symbols): Remove.
1595 (search_symbols): Return std::vector.
1596 (symbol_search::compare_search_syms): Now member of
1597 symbol_search. Change arguments.
1598 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1599 (symtab_symbol_info, rbreak_command): Update.
1600 * symtab.h (struct symbol_search) <next>: Remove.
1601 Add constructors.
1602 (symbol_search::operator<): New function.
1603 (symbol_search::operator==): New function.
1604 (search_symbols): Remove std::vector.
1605 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1606 (symbol_search::compare_search_syms): Declare.
1607
0d28b0a5
YQ
16082017-10-06 Yao Qi <yao.qi@linaro.org>
1609
1610 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1611 arch/aarch64-insn.o.
1612 Remove one rule.
1613 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1614
71917808
YQ
16152017-10-06 Yao Qi <yao.qi@linaro.org>
1616
1617 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1618 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1619 arch/arm-linux.o respectively.
1620 * configure.tgt: Likewise.
1621
2081b2b2
YQ
16222017-10-06 Yao Qi <yao.qi@linaro.org>
1623
1624 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1625 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1626
a1b85d28
PA
16272017-10-06 Pedro Alves <palves@redhat.com>
1628
1629 * windows-nat.c: Include <algorithm>.
1630
d97987e2
YQ
16312017-10-06 Yao Qi <yao.qi@linaro.org>
1632
1633 * configure.tgt (i386_tobjs): New variable.
1634 (amd64_tobjs): New variable.
1635 Set $cpu_obs and $os_obs.
1636
f38307f5
YQ
16372017-10-06 Yao Qi <yao.qi@linaro.org>
1638
1639 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1640 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1641 (clean): Remove object files and dependency files.
1642 (distclean): Remove the directory.
1643 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1644 * configure: Re-generated.
1645 * configure.tgt: Replace amd64.o with arch/amd64.o.
1646
2f924de6
JM
16472017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1648
1649 PR build/22188
1650 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1651 and SETEND.
1652
2fd9d7ca
PA
16532017-10-05 Pedro Alves <palves@redhat.com>
1654
1655 * linux-nat.c (linux_child_follow_fork): When following the parent
1656 and detaching the child, consult the parent thread's architecture
1657 instead of the child's.
1658
d13b8493
UW
16592017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1660
1661 * ax.h: Do not include "doublest.h".
1662 (union agent_val): Remove.
1663
3b4b2f16
UW
16642017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1665
1666 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1667 (decimal_to_string): Return std::string object.
1668 (decimal_from_string): Accept std::string object. Return bool.
1669 (decimal_from_integral, decimal_from_doublest): Remove.
1670 (decimal_from_longest): Add prototype.
1671 (decimal_from_ulongest): Likewise.
1672 (decimal_to_longest): Likewise.
1673 (decimal_from_doublest): Likewise.
1674 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1675 (MAX_DECIMAL_STRING): Move here.
1676 (decimal_to_string): Return std::string object.
1677 (decimal_from_string): Accept std::string object. Return bool.
1678 (decimal_from_integral): Remove, replace by ...
1679 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1680 (decimal_to_longest): New function.
1681 (decimal_from_floating): Remove, replace by ...
1682 (decimal_from_doublest): ... this new function.
1683 (decimal_to_doublest): Update to new decimal_to_string interface.
1684
1685 * value.c (unpack_long): Use decimal_to_longest.
1686 * valops.c (value_cast): Use decimal_from_doublest instead of
1687 decimal_from_floating. Use decimal_from_[u]longest isntead of
1688 decimal_from_integral.
1689 * valarith.c (value_args_as_decimal): Likewise.
1690 * valprint.c (print_decimal_floating): Update to new
1691 decimal_to_string interface.
1692 * printcmd.c (printf_decfloat): Likewise.
1693 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1694
1841ee5d
UW
16952017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1696
1697 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1698 * gdbtypes.c: Include "floatformat.h".
1699 * value.c: Likewise.
1700 * m68k-tdep.c: Likewise.
1701
1702 * findvar.c: Do not include "floatformat.h".
1703 * amd64-darwin-tdep.c: Likewise.
1704 * arm-linux-tdep.c: Likewise.
1705 * i386-darwin-tdep.c: Likewise.
1706 * i387-tdep.c: Likewise.
1707 * m68k-linux-tdep.c: Likewise.
1708 * mep-tdep.c: Likewise.
1709 * mips-tdep.c: Likewise.
1710 * nios2-tdep.c: Likewise.
1711 * s390-linux-tdep.c: Likewise.
1712 * sparc-obsd-tdep.c: Likewise.
1713 * sparc-tdep.c: Likewise.
1714 * sparc64-tdep.c: Likewise.
1715 * spu-tdep.c: Likewise.
1716 * tic6x-tdep.c: Likewise.
1717 * tilegx-tdep.c: Likewise.
1718 * vax-tdep.c: Likewise.
1719 * xstormy16-tdep.c: Likewise.
1720 * xtensa-tdep.c: Likewise.
1721
1722 * top.c: Do not include "doublest.h".
1723 * aarch64-tdep.c: Likewise.
1724 * alpha-tdep.c: Likewise.
1725 * arm-linux-tdep.c: Likewise.
1726 * m68k-linux-tdep.c: Likewise.
1727 * tilegx-tdep.c: Likewise.
1728 * xstormy16-tdep.c: Likewise.
1729
a80a6471
JB
17302017-10-05 John Baldwin <jhb@FreeBSD.org>
1731
1732 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1733 (mipsn32_fbsd_sigframe): Define.
1734 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1735 for FreeBSD/mipsn32.
1736
12c4bd7f
JB
17372017-10-05 John Baldwin <jhb@FreeBSD.org>
1738
1739 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1740 AT_HWCAP.
1741
c91933e9
TG
17422017-10-05 Tristan Gingold <tgingold@free.fr>
1743
1744 * MAINTAINERS (Misc): Update my email address.
1745
5cd63fda
PA
17462017-10-04 Pedro Alves <palves@redhat.com>
1747
1748 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1749 it instead of target_gdbarch.
1750 (get_remote_state, get_remote_packet_size): Adjust
1751 get_remote_arch_state calls, passing down target_gdbarch
1752 explicitly.
1753 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
1754 'gdbarch' and use it instead of target_gdbarch.
1755 (get_memory_packet_size): Adjust get_remote_arch_state calls,
1756 passing down target_gdbarch explicitly.
1757 (struct stop_reply) <arch>: New field.
1758 (remote_parse_stop_reply): Use the stopped thread's architecture,
1759 not the current inferior's. Save the architecture in the
1760 stop_reply.
1761 (process_stop_reply): Use the stop reply's architecture.
1762 (process_g_packet, remote_fetch_registers)
1763 (remote_prepare_to_store, store_registers_using_G)
1764 (remote_store_registers): Adjust get_remote_arch_state calls,
1765 using the regcache's architecture.
1766 (remote_get_trace_status): Adjust get_remote_arch_state calls,
1767 passing down target_gdbarch explicitly.
1768 * spu-multiarch.c (spu_thread_architecture): Defer to the target
1769 beneath instead of calling target_gdbarch.
1770 * target.c (default_thread_architecture): Use the specified
1771 inferior's architecture, instead of the current inferior's
1772 architecture (via target_gdbarch).
1773
ed4227b7
PA
17742017-10-04 Pedro Alves <palves@redhat.com>
1775
1776 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
1777 case.
1778 (regcache_print): Handle !target_has_registers here instead.
1779
55b11ddf
PA
17802017-10-04 Pedro Alves <palves@redhat.com>
1781
1782 * frame.c (create_test_frame): Delete.
1783 * frame.h (create_test_frame): Delete.
1784 * gdbarch-selftests.c: Include gdbthread.h and target.h.
1785 (class regcache_test): Delete.
1786 (test_target_has_registers, test_target_has_stack)
1787 (test_target_has_memory, test_target_prepare_to_store)
1788 (test_target_store_registers): New functions.
1789 (test_target_ops): New class.
1790 (register_to_value_test): Error out if there's already a
1791 process_stratum (or higher) target pushed. Create a fuller mock
1792 environment, with mock target_ops, inferior, address space, thread
1793 and inferior_ptid.
1794 * progspace.c (struct address_space): Move to ...
1795 * progspace.h (struct address_space): ... here.
1796 * regcache.h (regcache::~regcache, regcache::raw_write)
1797 [GDB_SELF_TEST]: No longer virtual.
1798
4c71c105
SM
17992017-10-04 Simon Marchi <simon.marchi@ericsson.com>
1800
1801 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
1802
73dcd72d
PA
18032017-10-04 Pedro Alves <palves@redhat.com>
1804
1805 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
1806 out of 'between TRY and CATCH'.
1807
44704526
PA
18082017-10-04 Pedro Alves <palves@redhat.com>
1809
1810 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
1811 * common/common-exceptions.h (TRY): Open an outermost scope.
1812 Expand intro comment.
1813 (CATCH): Reindent.
1814 (END_CATCH): Close the outermost scope.
1815 * completer.c (complete_line_internal): Add missing END_CATCH.
1816
bc3b087d
SDJ
18172017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1818
1819 * NEWS (Changes since GDB 8.0): Add entry about new
1820 'set-cwd-on-gdbserver' feature.
1821 (New remote packets): Add entry for QSetWorkingDir.
1822 * common/common-inferior.h (set_inferior_cwd): New prototype.
1823 * infcmd.c (set_inferior_cwd): Remove "static".
1824 (show_cwd_command): Expand text to include remote debugging.
1825 * remote.c: Add PACKET_QSetWorkingDir.
1826 (remote_protocol_features) <QSetWorkingDir>: New entry for
1827 PACKET_QSetWorkingDir.
1828 (extended_remote_set_inferior_cwd): New function.
1829 (extended_remote_create_inferior): Call
1830 "extended_remote_set_inferior_cwd".
1831 (_initialize_remote): Call "add_packet_config_cmd" for
1832 QSetWorkingDir.
1833
d092c5a2
SDJ
18342017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1835
1836 * NEWS (New commands): Mention "set/show cwd".
1837 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
1838 "cd" command's help text.
1839 * common/common-inferior.h (get_inferior_cwd): New prototype.
1840 * infcmd.c (inferior_cwd_scratch): New global variable.
1841 (set_inferior_cwd): New function.
1842 (get_inferior_cwd): Likewise.
1843 (set_cwd_command): Likewise.
1844 (show_cwd_command): Likewise.
1845 (_initialize_infcmd): Add "set/show cwd" commands.
1846 * inferior.h (class inferior) <cwd>: New field.
1847 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
1848 (fork_inferior): Change inferior's cwd before its execution.
1849 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
1850 to CreateProcess.
1851
7da0a886
SDJ
18522017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1853
1854 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
1855 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
1856 (COMMON_OBS): Add gdb_tilde_expand.o.
1857 * common/gdb_tilde_expand.c: New file.
1858 * common/gdb_tilde_expand.h: Likewise.
1859
db8dd160
MR
18602017-10-03 Maciej W. Rozycki <macro@imgtec.com>
1861
1862 * gdbarch.sh (objfile): Remove duplicate declaration.
1863 * gdbarch.h: Regenerate.
1864
f8bfbf22
TT
18652017-10-03 Tom Tromey <tom@tromey.com>
1866
1867 * utils.c (internal_vproblem): Use string_vprintf.
1868
5178ed48
TT
18692017-10-03 Tom Tromey <tom@tromey.com>
1870
1871 * printcmd.c (info_symbol_command): Use std::string.
1872
8cff8730
TT
18732017-10-03 Tom Tromey <tom@tromey.com>
1874
1875 * top.c (gdb_safe_append_history): Use std::string.
1876
895b8f30
TT
18772017-10-03 Tom Tromey <tom@tromey.com>
1878
1879 * event-top.c (stdin_event_handler): Update.
1880 * main.c (captured_main_1): Update.
1881 * top.h (make_delete_ui_cleanup): Remove.
1882 (struct ui): Add constructor and destructor.
1883 (new_ui, delete_ui): Remove.
1884 * top.c (make_delete_ui_cleanup): Remove.
1885 (new_ui_command): Use std::unique_ptr.
1886 (delete_ui_cleanup): Remove.
1887 (ui::ui): Rename from new_ui. Update.
1888 (free_ui): Remove.
1889 (ui::~ui): Rename from delete_ui. Update.
1890
0efef640
TT
18912017-10-03 Tom Tromey <tom@tromey.com>
1892
1893 * symfile.c (load_progress): Use gdb::byte_vector.
1894
245ad7d3
TT
18952017-10-03 Tom Tromey <tom@tromey.com>
1896
1897 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
1898 declaration.
1899 * printcmd.c (x_command): Remove unused declaration.
1900 * symfile.c (symbol_file_command): Remove unused declaration.
1901
e05550d7
TT
19022017-10-03 Tom Tromey <tom@tromey.com>
1903
1904 * utils.c (internal_vproblem): Use std::string.
1905 (defaulted_query): Likewise.
1906
b95de2b7
TT
19072017-10-03 Tom Tromey <tom@tromey.com>
1908
1909 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
1910 * top.c (execute_command_to_string): Update.
1911 * utils.c (make_cleanup_restore_page_info): Remove.
1912 (do_restore_page_info_cleanup): Remove.
1913 (set_batch_flag_and_restore_page_info):
1914 New.
1915 (make_cleanup_restore_page_info): Remove.
1916 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1917 (~set_batch_flag_and_restore_page_info): New
1918 (make_cleanup_restore_uinteger): Remove.
1919 (make_cleanup_restore_integer): Remove.
1920 (struct restore_integer_closure): Remove.
1921 (restore_integer): Remove.
1922 * utils.h (struct set_batch_flag_and_restore_page_info): New
1923 class.
1924 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1925 (make_cleanup_restore_page_info): Remove.
1926 (make_cleanup_restore_uinteger) Remove.
1927 (make_cleanup_restore_integer) Remove.
1928
07036511
TT
19292017-10-03 Tom Tromey <tom@tromey.com>
1930
1931 * record-full.h (record_full_gdb_operation_disable_set): Return
1932 scoped_restore_tmpl<int>.
1933 * infrun.c (adjust_pc_after_break): Update.
1934 (handle_signal_stop): Update.
1935 * record-full.c (record_full_gdb_operation_disable_set): Return
1936 scoped_restore_tmpl<int>.
1937 (record_full_wait_1, record_full_insert_breakpoint)
1938 (record_full_remove_breakpoint, record_full_save)
1939 (record_full_goto_insn): Update.
1940
45320ffa
TT
19412017-10-02 Tom Tromey <tom@tromey.com>
1942
1943 PR rust/22236:
1944 * rust-lang.c (rust_val_print_str): New function.
1945 (val_print_struct): Call it.
1946 (rust_subscript): Preserve name of slice type.
1947
b3e3859b
TT
19482017-10-02 Tom Tromey <tom@tromey.com>
1949
1950 * rust-lang.c (rust_subscript): Handle slices in
1951 EVAL_AVOID_SIDE_EFFECTS case.
1952
01af5e0d
TT
19532017-10-02 Tom Tromey <tom@tromey.com>
1954
1955 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
1956
888e3ddb
TT
19572017-10-02 Tom Tromey <tom@tromey.com>
1958
1959 * rust-lang.h (rust_slice_type): Add "extern".
1960
cc536b21
PA
19612017-10-02 Tom Tromey <tom@tromey.com>
1962 Pedro Alves <palves@redhat.com>
1963
1964 * ada-lang.h (ada_exc_info::operator<): Make const.
1965 (ada_exc_info::operator==): Make const.
1966 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
1967 Make const.
1968
386c8614
TT
19692017-09-29 Tom Tromey <tom@tromey.com>
1970
1971 * target.c (read_whatever_is_readable): Change type of "result".
1972 Update.
1973 (free_memory_read_result_vector): Remove.
1974 (read_memory_robust): Change return type. Update.
1975 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
1976 bin2hex, std::string.
1977 * target.h (memory_read_result_s): Remove typedef.
1978 (free_memory_read_result_vector): Remove.
1979 (read_memory_robust): Return std::vector.
1980
789c4b5e
TT
19812017-09-29 Tom Tromey <tom@tromey.com>
1982
1983 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
1984
ab816a27
TT
19852017-09-29 Tom Tromey <tom@tromey.com>
1986
1987 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
1988 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
1989 operator< and operator==.
1990 (ada_exceptions_list): Return a std::vector.
1991 * ada-lang.c (ada_exc_info::operator<): Rename from
1992 compare_ada_exception_info.
1993 (ada_exc_info::operator==): New.
1994 (sort_remove_dups_ada_exceptions_list): Change type of
1995 "exceptions".
1996 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
1997 (ada_add_global_exceptions): Likewise.
1998 (ada_exceptions_list_1): Return a std::vector.
1999 (ada_exceptions_list): Likewise.
2000
52f9abe4
TT
20012017-09-29 Tom Tromey <tom@tromey.com>
2002
2003 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2004 'std::set *'.
2005 (print_one_inferior): Update.
2006 (free_vector_of_ints): Remove.
2007 (list_available_thread_groups): Change "ids" to std::set.
2008 (mi_cmd_list_thread_groups): Update.
2009 (struct collect_cores_data) <core>: Now a std::set.
2010 (collect_cores): Update.
2011 (unique): Remove.
2012 (print_one_inferior): Update.
2013
dcd5ddcc
TT
20142017-09-29 Tom Tromey <tom@tromey.com>
2015
2016 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2017 (mi_execute_async_cli_command): Likewise.
2018 (mi_cmd_trace_frame_collected): Use field_fmt.
2019
45d288cc
TT
20202017-09-29 Tom Tromey <tom@tromey.com>
2021
2022 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2023 gdb::byte_vector.
2024
6afe2f4a
TT
20252017-09-29 Tom Tromey <tom@tromey.com>
2026
2027 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2028
9813429a
TT
20292017-09-29 Tom Tromey <tom@tromey.com>
2030
2031 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2032
2d6960b4
TT
20332017-09-29 Tom Tromey <tom@tromey.com>
2034
2035 * varobj.h (varobj_gen_name): Return std::string.
2036 * varobj.c (varobj_gen_name): Return std::string.
2037 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2038 (mi_cmd_var_delete): Don't copy "name".
2039
784c453a
TT
20402017-09-29 Tom Tromey <tom@tromey.com>
2041
2042 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2043 (mi_cmd_break_insert_1): Update.
2044
a9bc57b9
TT
20452017-09-29 Tom Tromey <tom@tromey.com>
2046
2047 * target.h (make_scoped_defer_target_commit_resume): Update.
2048 * target.c (make_scoped_defer_target_commit_resume): Rename from
2049 make_cleanup_defer_target_commit_resume. Return a
2050 scoped_restore.
2051 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2052
9754d8c4
TT
20532017-09-29 Tom Tromey <tom@tromey.com>
2054
2055 * main.c (captured_main_1): Remove unused declaration.
2056 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2057
99ef965c
TT
20582017-09-29 Tom Tromey <tom@tromey.com>
2059
2060 * symtab.c (search_symbols): Remove unused outer cleanup.
2061 (make_source_files_completion_list): Remove unused declaration.
2062
42518ba7
TT
20632017-09-29 Tom Tromey <tom@tromey.com>
2064
2065 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2066
726b2169
TT
20672017-09-29 Tom Tromey <tom@tromey.com>
2068
2069 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2070 gdb::byte_vector.
2071
55b06432
TT
20722017-09-29 Tom Tromey <tom@tromey.com>
2073
2074 * complaints.c (vcomplaint): Use std::string.
2075
8abcee91
TT
20762017-09-29 Tom Tromey <tom@tromey.com>
2077
2078 * tracepoint.c (trace_variable_command): Use std::string.
2079 (encode_actions_1): Remove unused declarations.
2080 (create_tsv_from_upload): Use std::string.
2081
6ad94bc7
TT
20822017-09-29 Tom Tromey <tom@tromey.com>
2083
2084 * cp-support.c (gdb_demangle): Use std::string.
2085
2003f3d8
TT
20862017-09-29 Tom Tromey <tom@tromey.com>
2087
2088 * stack.c (parse_frame_specification): Use std::string
2089 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2090
8f8accb5
TT
20912017-09-29 Tom Tromey <tom@tromey.com>
2092
2093 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2094
200aa7b1
TT
20952017-09-29 Tom Tromey <tom@tromey.com>
2096
2097 * utils.c (vfprintf_maybe_filtered): Use std::string.
2098 (vfprintf_unfiltered): Likewise.
2099
606aae8a
TT
21002017-09-29 Tom Tromey <tom@tromey.com>
2101
2102 * event-top.c (top_level_prompt): Return std::string.
2103 (display_gdb_prompt): Update.
2104
bd413795
TT
21052017-09-29 Tom Tromey <tom@tromey.com>
2106
2107 * unittests/common-utils-selftests.c (format): New function.
2108 (string_vprintf_tests): New function.
2109 (_initialize_common_utils_selftests): Register new tests.
2110 * common/common-utils.c (string_vprintf): New function.
2111 * common/common-utils.h (string_vprintf): Declare.
2112
256642e8
PA
21132017-09-29 Pedro Alves <palves@redhat.com>
2114
2115 * common/rsp-low.c (unpack_varlen_hex): Constify.
2116 * common/rsp-low.h (unpack_varlen_hex): Constify.
2117 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2118 Constify.
2119 * remote.c (remote_set_permissions, read_ptid)
2120 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2121 (remote_static_tracepoint_marker_at)
2122 (remote_static_tracepoint_markers_by_strid)
2123 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2124 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2125 (parse_tracepoint_definition, parse_tsv_definition)
2126 (parse_static_tracepoint_marker_definition): Constify.
2127 * tracepoint.h (parse_static_tracepoint_marker_definition)
2128 (parse_trace_status, parse_tracepoint_status)
2129 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2130
b6bb3468
PA
21312017-09-29 Pedro Alves <palves@redhat.com>
2132
2133 * remote.c (target_buf, target_buf_size): Delete.
2134 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2135 Use the connection's packet buffer instead.
2136 All callers adjusted.
2137 (_initialize_remote): Remove references to target_buf and
2138 target_buf_size.
2139
b2f8eb7a
PA
21402017-09-28 Pedro Alves <palves@redhat.com>
2141
2142 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2143 unittests/common-utils-selftests.c.
2144 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2145 (COMMON_OBS): Remove utils-selftests.o.
2146 * utils-selftests.c: Move to ...
2147 * unittests/common-utils-selftests.c: ... here and rename self
2148 test to "string_printf".
2149
08302ed2
DE
21502017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2151
2152 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2153 having NULL cus or tus.
2154
96a5a1d3
UW
21552017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2156
2157 * arm-tdep.c: (convert_from_extended): Remove.
2158 (convert_to_extended): Likewise.
2159 (arm_extract_return_value): Use convert_typed_floating.
2160 (arm_store_return_value): Likewise.
2161
2162 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2163 * sh-tdep.c: Do not include "floatformat.h".
2164 (sh_littlebyte_bigword_type): New function.
2165 (sh_register_convert_to_virtual): Use convert_typed_floating.
2166 (sh_register_convert_to_raw): Likewise.
2167 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2168 (sh64_littlebyte_bigword_type): New function.
2169 (sh64_extract_return_value): Use convert_typed_floating.
2170 (sh64_register_convert_to_virtual): Likewise.
2171 (sh64_register_convert_to_raw): Likewise.
2172
0db7851f
UW
21732017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2174
2175 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2176 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2177
2178 * gdbtypes.h (union type_specific): Make field floatformat hold
2179 just a single struct floatformat, not an array.
2180 (floatformat_from_type): Move here.
2181 * gdbtypes.c (floatformat_from_type): Move here. Update to
2182 changed TYPE_FLOATFORMAT definition.
2183 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2184 (recursive_dump_type): Likewise.
2185 (init_float_type): Install correct floatformat for byte order.
2186 (arch_float_type): Likewise.
2187
77b7c781
UW
21882017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2189
2190 * gdbtypes.c (init_type): Change incoming argument from
2191 length-in-bytes to length-in-bits. Assert length is a
2192 multiple of TARGET_CHAR_BITS.
2193 (arch_type, arch_flags_type): Likewise.
2194 (init_integer_type): Update call to init_type.
2195 (init_character_type): Likewise.
2196 (init_boolean_type): Likewise.
2197 (init_float_type): Likewise.
2198 (init_decfloat_type): Likewise.
2199 (init_complex_type): Likewise.
2200 (init_pointer_type): Likewise.
2201 (objfile_type): Likewise.
2202 (arch_integer_type): Update call to arch_type.
2203 (arch_character_type): Likewise.
2204 (arch_boolean_type): Likewise.
2205 (arch_float_type): Likewise.
2206 (arch_decfloat_type): Likewise.
2207 (arch_complex_type): Likewise.
2208 (arch_pointer_type): Likewise.
2209 (gdbtypes_post_init): Likewise.
2210
2211 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2212 (read_base_type): Likewise.
2213 * mdebugread.c (basic_type): Likewise.
2214 * stabsread.c (dbx_init_float_type): Likewise.
2215 (rs6000_builtin_type): Likewise.
2216 (read_range_type): Likewise. Also, fix call to init_integer_type
2217 with erroneous length argument.
2218
2219 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2220 * d-lang.c (build_d_types): Likewise.
2221 * f-lang.c (build_fortran_types): Likewise.
2222 * go-lang.c (build_go_types): Likewise.
2223 * opencl-lang.c (build_opencl_types): Likewise.
2224 * jit.c (finalize_symtab): Likewise.
2225 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2226 (build_std_type_info_type): Likewise.
2227 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2228 update call to arch_flags_type.
2229
2230 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2231 arch_type.
2232 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2233 * windows-tdep.c (windows_get_tlb_type): Likewise.
2234
2235 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2236 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2237 * m32c-tdep.c (make_types): Likewise.
2238 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2239 (rl78_psw_type): Update call to arch_flags_type.
2240 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2241 * rx-tdep.c (rx_psw_type): Likewise.
2242 (rx_fpsw_type): Likewise.
2243 * sparc-tdep.c (sparc_psr_type): Likewise.
2244 (sparc_fsr_type): Likewise.
2245 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2246 (sparc64_ccr_type): Likewise.
2247 (sparc64_fsr_type): Likewise.
2248 (sparc64_fprs_type): Likewise.
2249
f21b4d5c
TT
22502017-09-27 Tom Tromey <tom@tromey.com>
2251
2252 * findcmd.c (find_command): Constify.
2253
643c2ffa
TT
22542017-09-27 Tom Tromey <tom@tromey.com>
2255
2256 * ada-tasks.c (task_command_1, task_command): Constify.
2257
510e5e56
TT
22582017-09-27 Tom Tromey <tom@tromey.com>
2259
2260 * symtab.c (maintenance_print_symbol_cache)
2261 (maintenance_flush_symbol_cache)
2262 (maintenance_print_symbol_cache_statistics): Constify.
2263
e503b191
TT
22642017-09-27 Tom Tromey <tom@tromey.com>
2265
2266 * inferior.c (detach_inferior_command, kill_inferior_command)
2267 (inferior_command): Constify.
2268
4e001312
TT
22692017-09-27 Tom Tromey <tom@tromey.com>
2270
2271 * regcache.c (regcache_print, maintenance_print_registers)
2272 (maintenance_print_raw_registers)
2273 (maintenance_print_cooked_registers)
2274 (maintenance_print_register_groups)
2275 (maintenance_print_remote_registers): Constify.
2276
77763700
TT
22772017-09-27 Tom Tromey <tom@tromey.com>
2278
2279 * printcmd.c (map_display_numbers, undisplay_command)
2280 (enable_disable_display_command, enable_display_command)
2281 (disable_display_command): Constify.
2282
4495129a
TT
22832017-09-27 Tom Tromey <tom@tromey.com>
2284
2285 * breakpoint.h (delete_command): Don't declare.
2286 * breakpoint.c (delete_command, enable_once_command)
2287 (enable_count_command, enable_delete_command, breakpoint_1)
2288 (maintenance_info_breakpoints, stopin_command, stopat_command)
2289 (delete_command, delete_trace_command, save_breakpoints)
2290 (save_breakpoints_command, save_tracepoints_command): Constify.
2291
3088cf40
TT
22922017-09-27 Tom Tromey <tom@tromey.com>
2293
2294 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2295 (skip_ws, extract_identifier, macro_define_command)
2296 (macro_undef_command, macro_list_command): Constify.
2297
69f476a3
TT
22982017-09-27 Tom Tromey <tom@tromey.com>
2299
2300 * infcmd.c (environment_info, set_environment_command)
2301 (unset_environment_command, path_info, info_proc_cmd_1)
2302 (info_proc_cmd_mappings, info_proc_cmd_stat)
2303 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2304 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2305
c4a3e68e
TT
23062017-09-27 Tom Tromey <tom@tromey.com>
2307
2308 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2309 Constify.
2310
c9d31bd6
TT
23112017-09-27 Tom Tromey <tom@tromey.com>
2312
2313 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2314
1f3f85eb
TT
23152017-09-27 Tom Tromey <tom@tromey.com>
2316
2317 * demangle.c (demangle_command): Constify.
2318
9c504b5d
TT
23192017-09-27 Tom Tromey <tom@tromey.com>
2320
2321 * progspace.c (maintenance_info_program_spaces_command):
2322 Constify.
2323
6663cf91
TT
23242017-09-27 Tom Tromey <tom@tromey.com>
2325
2326 * compile/compile.c (check_raw_argument, compile_file_command)
2327 (compile_code_command, compile_print_command): Constify.
2328
34e5fa26
TT
23292017-09-27 Tom Tromey <tom@tromey.com>
2330
2331 * reggroups.c (maintenance_print_reggroups): Constify.
2332
8384c356
TT
23332017-09-27 Tom Tromey <tom@tromey.com>
2334
2335 * dwarf2read.c (save_gdb_index_command): Constify.
2336
884beb0c
TT
23372017-09-27 Tom Tromey <tom@tromey.com>
2338
2339 * stap-probe.c (info_probes_stap_command): Constify.
2340
e0b2930c
TT
23412017-09-27 Tom Tromey <tom@tromey.com>
2342
2343 * fork-child.c (unset_exec_wrapper_command): Constify.
2344
f938677d
TT
23452017-09-27 Tom Tromey <tom@tromey.com>
2346
2347 * btrace.c (get_uint, get_context_size, no_chunk)
2348 (maint_btrace_packet_history_cmd)
2349 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2350 (maint_info_btrace_cmd): Constify.
2351
8949cb87
TT
23522017-09-27 Tom Tromey <tom@tromey.com>
2353
2354 * reverse.c (delete_bookmark_command): Constify.
2355
ac88e2de
TT
23562017-09-27 Tom Tromey <tom@tromey.com>
2357
2358 * remote.c (set_memory_packet_size)
2359 (set_memory_write_packet_size, show_memory_write_packet_size)
2360 (set_memory_read_packet_size, show_memory_read_packet_size)
2361 (compare_sections_command, packet_command, remote_put_command)
2362 (remote_get_command, remote_delete_command): Constify.
2363
bd4c9dfe
TT
23642017-09-27 Tom Tromey <tom@tromey.com>
2365
2366 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2367 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2368 (set_mipsfpu_auto_command): Constify.
2369
5e93d4c6
TT
23702017-09-27 Tom Tromey <tom@tromey.com>
2371
2372 * cli/cli-cmds.h (cd_command): Constify.
2373 * cli/cli-cmds.c (cd_command): Constify.
2374
fc41a75b
TT
23752017-09-27 Tom Tromey <tom@tromey.com>
2376
2377 * thread.c (thread_name_command, thread_find_command): Constify.
2378
67810076
TT
23792017-09-27 Tom Tromey <tom@tromey.com>
2380
2381 * probe.c (enable_probes_command, disable_probes_command):
2382 Constify.
2383
1d8b34a7
TT
23842017-09-27 Tom Tromey <tom@tromey.com>
2385
2386 * symfile.c (symbol_file_command): Constify.
2387 * gdbcore.h (deprecated_file_changed_hook): Constify.
2388 * exec.c (deprecated_file_changed_hook, exec_file_command)
2389 (file_command): Constify.
2390 * defs.h (symbol_file_command): Constify.
2391
442019e1
TT
23922017-09-27 Tom Tromey <tom@tromey.com>
2393
2394 * remote-fileio.c (set_system_call_allowed)
2395 (show_system_call_allowed): Constify.
2396
2983f7cb
TT
23972017-09-27 Tom Tromey <tom@tromey.com>
2398
2399 * tracepoint.c (delete_trace_variable_command)
2400 (tfind_end_command, tfind_start_command, tfind_pc_command)
2401 (tfind_tracepoint_command, tfind_line_command)
2402 (tfind_range_command, tfind_outside_command): Constify.
2403
4fd41b24
TT
24042017-09-27 Tom Tromey <tom@tromey.com>
2405
2406 * ax-gdb.c (maint_agent_printf_command, agent_command)
2407 (agent_eval_command): Constify.
2408
f2fc3015
TT
24092017-09-27 Tom Tromey <tom@tromey.com>
2410
2411 * tracepoint.c (info_scope_command): Constify.
2412 * python/python.c (gdbpy_decode_line): Constify.
2413 * python/py-breakpoint.c (bppy_init): Constify.
2414 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2415 * location.h: (new_linespec_location)
2416 (string_to_event_location_basic, string_to_event_location):
2417 Constify.
2418 * location.c (new_linespec_location)
2419 (string_to_event_location_basic, string_to_event_location):
2420 Constify.
2421 * linespec.h (decode_line_with_current_source)
2422 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2423 * linespec.c (linespec_lex_to_end)
2424 (decode_line_with_current_source)
2425 (decode_line_with_last_displayed): Constify.
2426 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2427 Constify.
2428 * cli/cli-cmds.c (edit_command, list_command): Constify.
2429 * breakpoint.h (until_break_command, watch_command_wrapper)
2430 (awatch_command_wrapper, rwatch_command_wrapper)
2431 (init_ada_exception_breakpoint): Constify.
2432 * breakpoint.c (break_command_1, dprintf_command)
2433 (break_range_command, watch_command_wrapper)
2434 (rwatch_command_wrapper, awatch_command_wrapper)
2435 (until_break_command, init_ada_exception_breakpoint)
2436 (strace_marker_create_sals_from_location, trace_command)
2437 (ftrace_command, strace_command, struct tracepoint): Constify.
2438 * ax-gdb.c (agent_command_1): Constify.
2439 * ada-lang.c (ada_exception_sal): Constify.
2440
8c2f95f4
TT
24412017-09-27 Tom Tromey <tom@tromey.com>
2442
2443 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2444 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2445 (get_context_size, no_chunk, get_insn_history_modifiers)
2446 (cmd_record_insn_history, get_call_history_modifiers)
2447 (cmd_record_call_history): Constify.
2448
a0d65762
TT
24492017-09-27 Tom Tromey <tom@tromey.com>
2450
2451 * source.c (show_substitute_path_command)
2452 (unset_substitute_path_command, set_substitute_path_command):
2453 Constify.
2454
58971144
TT
24552017-09-27 Tom Tromey <tom@tromey.com>
2456
2457 * typeprint.c (maintenance_print_type): Constify.
2458 * maint.c (maintenance_dump_me, maintenance_demangle)
2459 (maintenance_time_display, maintenance_info_sections)
2460 (maintenance_print_statistics, maintenance_deprecate)
2461 (maintenance_undeprecate): Constify.
2462 (maintenance_do_deprecate): Constify. Use std::string.
2463 (maintenance_selftest): Constify.
2464 * gdbtypes.h (maintenance_print_type): Constify.
2465
c482f52c
TT
24662017-09-27 Tom Tromey <tom@tromey.com>
2467
2468 * hppa-tdep.c (unwind_command): Constify.
2469
e100df1a
TT
24702017-09-27 Tom Tromey <tom@tromey.com>
2471
2472 * target-descriptions.c (unset_tdesc_filename_cmd)
2473 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2474 Constify.
2475
31d56ade
TT
24762017-09-27 Tom Tromey <tom@tromey.com>
2477
2478 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2479
b961da0b
TT
24802017-09-27 Tom Tromey <tom@tromey.com>
2481
2482 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2483
e2d8ae16
TT
24842017-09-27 Tom Tromey <tom@tromey.com>
2485
2486 * tui/tui-regs.c (tui_reg_command): Constify.
2487
863779b0
TT
24882017-09-27 Tom Tromey <tom@tromey.com>
2489
2490 * skip.c (skip_file_command, skip_function_command)
2491 (skip_enable_command, skip_disable_command, skip_delete_command):
2492 Constify.
2493
cdb34d4a
TT
24942017-09-27 Tom Tromey <tom@tromey.com>
2495
2496 * record-btrace.c (cmd_record_btrace_bts_start)
2497 (cmd_record_btrace_pt_start): Constify.
2498
e99c83e7
TT
24992017-09-27 Tom Tromey <tom@tromey.com>
2500
2501 * symmisc.c (maintenance_print_symbols)
2502 (maintenance_print_msymbols, maintenance_print_objfiles)
2503 (maintenance_info_symtabs, maintenance_check_symtabs)
2504 (maintenance_expand_symtabs, maintenance_info_line_tables):
2505 Constify.
2506
32faf971
TT
25072017-09-27 Tom Tromey <tom@tromey.com>
2508
2509 * top.c (new_ui_command): Constify.
2510
2cf311eb
TT
25112017-09-27 Tom Tromey <tom@tromey.com>
2512
2513 * symfile.c (add_symbol_file_command)
2514 (remove_symbol_file_command, list_overlays_command)
2515 (map_overlay_command, unmap_overlay_command)
2516 (overlay_auto_command, overlay_manual_command)
2517 (overlay_off_command, overlay_load_command): Constify.
2518
e6738699
TT
25192017-09-27 Tom Tromey <tom@tromey.com>
2520
2521 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2522 (info_spu_mailbox_command, info_spu_dma_command)
2523 (info_spu_proxydma_command): Constify.
2524
aa360cd5
TT
25252017-09-27 Tom Tromey <tom@tromey.com>
2526
2527 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2528
898241a5
TT
25292017-09-27 Tom Tromey <tom@tromey.com>
2530
2531 * cli/cli-script.c (user_defined_command): Constify.
2532
2d0ac106
TT
25332017-09-27 Tom Tromey <tom@tromey.com>
2534
2535 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2536 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2537 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2538 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2539 (dump_binary_value, append_binary_memory, append_binary_value):
2540 Constify.
2541 (struct dump_context) <func>: Constify.
2542 (add_dump_command): Update.
2543
dede02ce
TT
25442017-09-27 Tom Tromey <tom@tromey.com>
2545
2546 * cli/cli-cmds.c (show_version, show_configuration)
2547 (source_command, show_user): Constify.
2548
d3cb6b99
TT
25492017-09-27 Tom Tromey <tom@tromey.com>
2550
2551 * target.c (maintenance_print_target_stack): Constify.
2552
1970a12f
TT
25532017-09-27 Tom Tromey <tom@tromey.com>
2554
2555 * interps.c (interpreter_exec_cmd): Constify.
2556
41243651
TT
25572017-09-27 Tom Tromey <tom@tromey.com>
2558
2559 * record-full.c (cmd_record_full_restore): Constify.
2560
4465d9db
TT
25612017-09-27 Tom Tromey <tom@tromey.com>
2562
2563 * memattr.c (enable_mem_command, disable_mem_command)
2564 (delete_mem_command): Constify.
2565
ad25e423
TT
25662017-09-27 Tom Tromey <tom@tromey.com>
2567
2568 * value.c (show_convenience): Constify.
2569
d64097b1
TT
25702017-09-27 Tom Tromey <tom@tromey.com>
2571
2572 * gdbcore.h (core_file_command): Update.
2573 * corefile.c (core_file_command): Constify.
2574
4d4589ef
TT
25752017-09-27 Tom Tromey <tom@tromey.com>
2576
2577 * user-regs.c (maintenance_print_user_registers): Constify.
2578
32a7bf17
TT
25792017-09-27 Tom Tromey <tom@tromey.com>
2580
2581 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2582
4a475551
TT
25832017-09-27 Tom Tromey <tom@tromey.com>
2584
2585 * cp-support.c (first_component_command): Constify.
2586
990b9f9f
TT
25872017-09-27 Tom Tromey <tom@tromey.com>
2588
2589 * psymtab.c (maintenance_print_psymbols)
2590 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2591 Constify.
2592
c281872e
TT
25932017-09-27 Tom Tromey <tom@tromey.com>
2594
2595 * windows-tdep.c (display_tib): Constify.
2596
5b64bf74
TT
25972017-09-27 Tom Tromey <tom@tromey.com>
2598
2599 * linux-fork.c (delete_checkpoint_command)
2600 (detach_checkpoint_command): Constify.
2601
4ada038f
TT
26022017-09-27 Tom Tromey <tom@tromey.com>
2603
2604 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2605
57f5a81b
TT
26062017-09-27 Tom Tromey <tom@tromey.com>
2607
2608 * arc-tdep.c (dump_arc_instruction_command): Constify.
2609
b0a8e6c4
TT
26102017-09-27 Tom Tromey <tom@tromey.com>
2611
2612 * valprint.c (set_radix, show_radix): Constify.
2613
8d97dc1c
TT
26142017-09-27 Tom Tromey <tom@tromey.com>
2615
2616 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2617
eb7c454d
TT
26182017-09-27 Tom Tromey <tom@tromey.com>
2619
2620 * command.h (not_just_help_class_command): Update.
2621 * cli/cli-decode.h (not_just_help_class_command): Update.
2622 * cli/cli-decode.c (not_just_help_class_command): Constify.
2623
e4e33335
TT
26242017-09-27 Tom Tromey <tom@tromey.com>
2625
2626 * gdb_bfd.c (maintenance_info_bfds): Constify.
2627
0450cc4c
TT
26282017-09-27 Tom Tromey <tom@tromey.com>
2629
2630 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2631 overloads.
2632 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2633 (do_const_cfunc): New function.
2634 (cmd_cfunc_eq): New overload.
2635 (cli_user_command_p): Check do_const_cfunc.
2636 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2637 const_cfunc.
2638 * command.h (add_cmd): Add const overload and no-function
2639 overload.
2640 (set_cmd_cfunc): Add const overload.
2641 (cmd_const_cfunc_ftype): Declare.
2642 (cmd_cfunc_eq): Add const overload.
2643 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2644 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2645 overload.
2646
a9bbfbd8
TT
26472017-09-27 Tom Tromey <tom@tromey.com>
2648
2649 * macroexp.c (get_next_token_for_substitution): New function.
2650 (substitute_args): Call it. Check for __VA_OPT__.
2651
5230b05a
WT
26522017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2653 Pedro Alves <palves@redhat.com>
2654
2655 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2656 producer_is_icc_lt_14.
2657 (producer_is_icc_lt_14): New function.
2658 (check_producer): Add code for checking version of ICC.
2659 (producer_is_icc): Move to producer.c.
2660 (read_structure_type): Restrict ICC workaround to ICC<14.
2661 * producer.c: Include selftest.h.
2662 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2663 New functions.
2664 * producer.h (producer_is_icc): New declaration.
2665
b32b108a
WT
26662017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2667
2668 * Makefile.in (SFILES): Add producer.c.
2669 (COMMON_OBS): Add producer.o
2670 * amd64-tdep.c (producer.h): Add new include.
2671 * dwarf2read.c (producer.h): Add new include.
2672 * producer.c: New file.
2673 * producer.h: New file.
2674 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2675 producer.c.
2676 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2677 producer.h.
2678
5007d765
MK
26792017-09-26 Matthias Klose <doko@ubuntu.com>
2680
2681 * configure.ac: Search ncursesw before ncurses.
2682 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2683 * gdb_curses.h: Include <ncursesw/ncurses.h>
2684 * config.in, configure: Regenerate.
2685
281c4447
RO
26862017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2687
2688 PR gdb/22185
2689 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2690 obsolete.
2691 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2692 Remove i386sol2 support.
2693 * configure.nat <i386sol2>: Remove.
2694 <sol2-64>: Fold into ...
2695 <sol2>: ... this.
2696 Move common settings to default section.
2697 Add sol-thread.o.
2698 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2699 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2700 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2701 <i[34567]86-*-solaris*>: Remove.
2702 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2703
2704 * configure.ac: Remove wctype in libw check.
2705 (_MSE_INT_H): Don't define on Solaris 7-9.
2706 <solaris*>: Remove libthread_db.so.1 check.
2707 * configure: Regenerate.
2708 * config.in: Regenerate.
2709
2710 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2711 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2712 (gdb_ps_size_t): Remove.
2713 Use base types in users.
2714 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2715
2716 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2717
39b06c20
RO
27182017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2719
2720 PR build/22206
2721 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2722 (adi_is_addr_mapped): Likewise.
2723 (PSR_ICC): Don't redefine.
2724 (PSR_IMPL): Likewise.
2725
6c3e20f1
TT
27262017-09-25 Tom Tromey <tom@tromey.com>
2727
2728 * regcache.c (regcache::dump): Use string_printf.
2729
b292235f
TT
27302017-09-25 Tom Tromey <tom@tromey.com>
2731
2732 * regcache.c (class regcache_invalidator): New.
2733 (struct register_to_invalidate): Remove.
2734 (make_cleanup_regcache_invalidate): Remove.
2735 (regcache::raw_write): Use regcache_invalidator.
2736
9ac86b52
TT
27372017-09-25 Tom Tromey <tom@tromey.com>
2738
2739 * spu-tdep.c (spu2ppu_sniffer): Update.
2740 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2741 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2742 Remove.
2743 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2744 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2745 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2746 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2747 (frame_pop): Update.
2748
c0e383c6
TT
27492017-09-25 Tom Tromey <tom@tromey.com>
2750
2751 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
2752 * regcache.h (regcache_xfree): Don't declare.
2753 * regcache.c (regcache_xfree): Remove.
2754 (do_regcache_xfree): Use delete.
2755 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
2756 * linux-fork.c (free_fork): Use delete.
2757 (fork_save_infrun_state): Likewise.
2758 * jit.c (jit_dealloc_cache): Use delete.
2759 * infrun.c (discard_infcall_suspend_state): Use delete.
2760
791199cc
TT
27612017-09-25 Tom Tromey <tom@tromey.com>
2762
2763 * regcache.h (regcache_xmalloc): Don't declare.
2764 (regcache_raw_set_cached_value): Update comment.
2765 * regcache.c (regcache_xmalloc): Remove.
2766 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
2767 * jit.c (jit_frame_sniffer): Use new.
2768 * frame.c (frame_save_as_regcache): Use new.
2769
289e23aa
AA
27702017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2771
2772 * NEWS: Advertise support for guarded-storage registers on IBM z.
2773
1b63490c
AA
27742017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2775
2776 * s390-linux-nat.c (have_regset_gs): New static variable.
2777 (s390_linux_fetch_inferior_registers): Handle guarded-storage
2778 control block and guarded-storage broadcast control regsets.
2779 (s390_read_description): Detect whether the target has
2780 guarded-storage support, return appropriate tdesc.
2781 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
2782 (features/s390x-gs-linux64.c): Likewise.
2783 (struct gdbarch_tdep) <have_gs>: New field.
2784 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
2785 (s390_gsbc_regset): New variables.
2786 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
2787 and s390_gsbc_regset, if applicable.
2788 (s390_core_read_description): Check whether core file was from a
2789 target with guarded-storage support; include appropriate regsets.
2790 (s390_gdbarch_init): Add registers for guarded-storage support.
2791 (_initialize_s390_tdep): Initialize new target descriptions that
2792 include registers for guarded-storage support.
2793 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
2794 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
2795 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
2796 (S390_NUM_REGS): Adjust macro definition.
2797 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
2798 (tdesc_s390x_gs_linux64): New declarations.
2799
96235dc1
AA
28002017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2801
2802 * features/s390-gs-linux64.xml: New file.
2803 * features/s390-gs.xml: New file.
2804 * features/s390-gsbc.xml: New file.
2805 * features/s390x-gs-linux64.xml: New file.
2806 * features/Makefile (WHICH): Add s390-gs-linux64 and
2807 s390x-gs-linux64.
2808 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
2809 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
2810 * features/s390-gs-linux64.c: New generated file.
2811 * features/s390x-gs-linux64.c: New file.
2812 * regformats/s390-gs-linux64.dat: New file.
2813 * regformats/s390x-gs-linux64.dat: New file.
2814
b4a7c699
TT
28152017-09-23 Tom Tromey <tom@tromey.com>
2816
2817 * defs.h (make_cleanup_override_quit_handler): Don't declare.
2818
c2f97536
TT
28192017-09-22 Tom Tromey <tom@tromey.com>
2820
2821 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
2822 type to scoped_restore_tmpl.
2823 <scoped_input_handler>: Initialize m_quit_handler directly.
2824
43573013
SDJ
28252017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2826
2827 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
2828 (cd_command): Likewise. Free "current_directory" before
2829 assigning to it.
2830 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
2831 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
2832 * top.c (gdb_dirbuf): Remove global declaration.
2833 * top.h (gdb_dirbuf): Likewise.
2834
6ec2e0f5
SDJ
28352017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2836
2837 * gnulib/aclocal.m4: Regenerate.
2838 * gnulib/config.in: Regenerate.
2839 * gnulib/configure: Regenerate.
2840 * gnulib/import/Makefile.am: Regenerate.
2841 * gnulib/import/Makefile.in: Regenerate.
2842 * gnulib/import/assure.h: New file.
2843 * gnulib/import/at-func.c: Likewise
2844 * gnulib/import/chdir-long.c: New file.
2845 * gnulib/import/chdir-long.h: New file.
2846 * gnulib/import/cloexec.c: New file.
2847 * gnulib/import/cloexec.h: New file.
2848 * gnulib/import/close.c: New file.
2849 * gnulib/import/closedir.c: New file.
2850 * gnulib/import/dirent-private.h: New file.
2851 * gnulib/import/dup-safer.c: New file.
2852 * gnulib/import/dup.c: New file.
2853 * gnulib/import/dup2.c: New file.
2854 * gnulib/import/error.c: New file.
2855 * gnulib/import/error.h: New file.
2856 * gnulib/import/exitfail.c: New file.
2857 * gnulib/import/exitfail.h: New file.
2858 * gnulib/import/fchdir.c: New file.
2859 * gnulib/import/fcntl.c: New file.
2860 * gnulib/import/fcntl.in.h: New file.
2861 * gnulib/import/fd-hook.c: New file.
2862 * gnulib/import/fd-hook.h: New file.
2863 * gnulib/import/fd-safer.c: New file.
2864 * gnulib/import/fdopendir.c: New file.
2865 * gnulib/import/filename.h: New file.
2866 * gnulib/import/filenamecat-lgpl.c: New file.
2867 * gnulib/import/filenamecat.h: New file.
2868 * gnulib/import/fstat.c: New file.
2869 * gnulib/import/fstatat.c: New file.
2870 * gnulib/import/getcwd-lgpl.c: New file.
2871 * gnulib/import/getcwd.c: New file.
2872 * gnulib/import/getdtablesize.c: New file.
2873 * gnulib/import/getlogin_r.c: New file.
2874 * gnulib/import/getprogname.c: New file.
2875 * gnulib/import/getprogname.h: New file.
2876 * gnulib/import/gettext.h: New file.
2877 * gnulib/import/glob-libc.h: New file.
2878 * gnulib/import/glob.c: New file.
2879 * gnulib/import/glob.in.h: New file.
2880 * gnulib/import/intprops.h: New file.
2881 * gnulib/import/m4/chdir-long.m4: New file.
2882 * gnulib/import/m4/close.m4: New file.
2883 * gnulib/import/m4/closedir.m4: New file.
2884 * gnulib/import/m4/d-ino.m4: New file.
2885 * gnulib/import/m4/d-type.m4: New file.
2886 * gnulib/import/m4/dup.m4: New file.
2887 * gnulib/import/m4/dup2.m4: New file.
2888 * gnulib/import/m4/error.m4: New file.
2889 * gnulib/import/m4/fchdir.m4: New file.
2890 * gnulib/import/m4/fcntl.m4: New file.
2891 * gnulib/import/m4/fcntl_h.m4: New file.
2892 * gnulib/import/m4/fdopendir.m4: New file.
2893 * gnulib/import/m4/filenamecat.m4: New file.
2894 * gnulib/import/m4/fstat.m4: New file.
2895 * gnulib/import/m4/fstatat.m4: New file.
2896 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
2897 * gnulib/import/m4/getcwd-path-max.m4: New file.
2898 * gnulib/import/m4/getcwd.m4: New file.
2899 * gnulib/import/m4/getdtablesize.m4: New file.
2900 * gnulib/import/m4/getlogin_r.m4: New file.
2901 * gnulib/import/m4/getprogname.m4: New file.
2902 * gnulib/import/m4/glob.m4: New file.
2903 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2904 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2905 * gnulib/import/m4/mempcpy.m4: New file.
2906 * gnulib/import/m4/memrchr.m4: New file.
2907 * gnulib/import/m4/mode_t.m4: New file.
2908 * gnulib/import/m4/msvc-inval.m4: New file.
2909 * gnulib/import/m4/msvc-nothrow.m4: New file.
2910 * gnulib/import/m4/open.m4: New file.
2911 * gnulib/import/m4/openat.m4: New file.
2912 * gnulib/import/m4/opendir.m4: New file.
2913 * gnulib/import/m4/readdir.m4: New file.
2914 * gnulib/import/m4/realloc.m4: New file.
2915 * gnulib/import/m4/rewinddir.m4: New file.
2916 * gnulib/import/m4/save-cwd.m4: New file.
2917 * gnulib/import/m4/strdup.m4: New file.
2918 * gnulib/import/m4/strerror.m4: New file.
2919 * gnulib/import/m4/unistd-safer.m4: New file.
2920 * gnulib/import/mempcpy.c: New file.
2921 * gnulib/import/memrchr.c: New file.
2922 * gnulib/import/msvc-inval.c: New file.
2923 * gnulib/import/msvc-inval.h: New file.
2924 * gnulib/import/msvc-nothrow.c: New file.
2925 * gnulib/import/msvc-nothrow.h: New file.
2926 * gnulib/import/open.c: New file.
2927 * gnulib/import/openat-die.c: New file.
2928 * gnulib/import/openat-priv.h: New file.
2929 * gnulib/import/openat-proc.c: New file.
2930 * gnulib/import/openat.c: New file.
2931 * gnulib/import/openat.h: New file.
2932 * gnulib/import/opendir.c: New file.
2933 * gnulib/import/pipe-safer.c: New file.
2934 * gnulib/import/readdir.c: New file.
2935 * gnulib/import/realloc.c: New file.
2936 * gnulib/import/rewinddir.c: New file.
2937 * gnulib/import/save-cwd.c: New file.
2938 * gnulib/import/save-cwd.h: New file.
2939 * gnulib/import/strdup.c: New file.
2940 * gnulib/import/strerror-override.c: New file.
2941 * gnulib/import/strerror-override.h: New file.
2942 * gnulib/import/strerror.c: New file.
2943 * gnulib/import/unistd--.h: New file.
2944 * gnulib/import/unistd-safer.h: New file.
2945 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2946 "getcwd" and "glob".
2947 * ser-tcp.c: Undefine "close" before redefining it.
2948
432ae719
SM
29492017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2950
2951 * guile/scm-value.c (gdbscm_value_address): Initialize address,
2952 get rid of res_val.
2953
4fa7574e
RO
29542017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2955
2956 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
2957 <sol2,sparc>: Likewise.
2958 <sol2-64,i386>: Likewise.
2959
2960 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
2961 -Wdeprecated-declarations on *-*-solaris*.
2962 * configure: Regenerate.
2963
2964 * procfs.c: Include "nat/inferior.h".
2965 (procfs_info_proc): Fix typo.
2966
f6327dcb
KB
29672017-09-21 Kevin Buettner <kevinb@redhat.com>
2968
2969 * remote.c (vector): Include.
2970 (struct private_thread_info): Add field, thread_handle.
2971 (free_private_thread_info): Deallocate storage associated with
2972 thread handle.
2973 (get_private_info_thread): Initialize `thread_handle' field.
2974 (struct thread_item): Add field, thread_handle.
2975 (clear_threads_listing_context): Deallocate storage associated
2976 with thread handle.
2977 (start_thread): Add support for "handle" attribute.
2978 (thread_attributes): Add "handle".
2979 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
2980 field.
2981 (remote_update_thread_list): Update thread_handle.
2982 (remote_thread_handle_to_thread_info): New function.
2983 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
2984
fbbe5337
KB
29852017-09-21 Kevin Buettner <kevinb@redhat.com>
2986
2987 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
2988 function.
2989 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
2990 * python/python-internal.h (thread_object_type): Declare.
2991
e04ee09e
KB
29922017-09-21 Kevin Buettner <kevinb@redhat.com>
2993
2994 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
2995 (target_thread_handle_to_thread_info): Declare.
2996 * target.c (target_thread_handle_to_thread_info): New function.
2997 * target-delegates.c: Regenerate.
2998 * gdbthread.h (find_thread_by_handle): Declare.
2999 * thread.c (find_thread_by_handle): New function.
3000 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3001 function.
3002 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3003
1e5b66ed
SM
30042017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3005
3006 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3007
ebe48ba0
SM
30082017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3009
3010 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3011
0a0bf5dc
YQ
30122017-09-21 Yao Qi <yao.qi@linaro.org>
3013
3014 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3015 to gdb_target_obs.
3016
d1b0a7bf
TT
30172017-09-20 Tom Tromey <tom@tromey.com>
3018
3019 * breakpoint.c (struct counted_command_line): Remove.
3020 (breakpoint_commands): Update.
3021 (alloc_counted_command_line, incref_counted_command_line)
3022 (decref_counted_command_line, do_cleanup_counted_command_line)
3023 (make_cleanup_decref_counted_command_line): Remove.
3024 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3025 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3026 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3027 (save_breakpoints): Update.
3028 * breakpoint.h (counted_command_line): Now a typedef to
3029 shared_ptr.
3030 (struct breakpoint) <commands>: Now a counted_command_line.
3031 (struct bpstats) <command>: Likewise.
3032
48649e1b
TT
30332017-09-20 Tom Tromey <tom@tromey.com>
3034
3035 * breakpoint.c (struct commands_info, do_map_commands_command):
3036 Remove.
3037 (commands_command_1): Update.
3038 (iterate_over_related_breakpoints): Take a function_view.
3039 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3040 (delete_command): Update.
3041 (map_breakpoint_numbers): Take a function_view.
3042 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3043 (disable_command): Update.
3044 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3045 (enable_command): Update.
3046 (struct disp_data, do_enable_breakpoint_disp)
3047 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3048 (do_map_enable_delete_breakpoint): Remove.
3049 (enable_once_command, enable_count_command, enable_delete_command)
3050 (delete_trace_variable_command): Update.
3051
04afa70c
TT
30522017-09-20 Tom Tromey <tom@tromey.com>
3053
3054 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3055 (bpstat_clear): Use delete.
3056 (bpstats): New constructors.
3057 (bpstat_copy, bpstat_stop_status): Use new.
3058 (dprintf_after_condition_true): Update.
3059 * breakpoint.h (bpstats::bpstats): Add constructors.
3060 (bpstats::~bpstats): Add destructor.
3061
c83833f4
PA
30622017-09-20 Pedro Alves <palves@redhat.com>
3063
3064 * eval.c (make_params): Delete, refactored as ...
3065 (class fake_method): ... this new type's ctor.
3066 (fake_method::~fake_method): New.
3067 (evaluate_subexp_standard): Use 'fake_method'.
3068
223ffa71
TT
30692017-09-20 Tom Tromey <tom@tromey.com>
3070
3071 * windows-nat.c (get_windows_debug_event, windows_wait)
3072 (do_initial_windows_stuff, windows_attach): Update.
3073 * utils.c (vwarning, internal_vproblem): Update.
3074 (ui_unregister_input_event_handler_cleanup)
3075 (prepare_to_handle_input): Remove.
3076 (class scoped_input_handler): New.
3077 (defaulted_query, prompt_for_continue): Update.
3078 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3079 Update.
3080 * top.c (undo_terminal_modifications_before_exit): Update.
3081 * target/target.h (target_terminal_init, target_terminal_inferior)
3082 (target_terminal_ours): Don't declare.
3083 (class target_terminal): New.
3084 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3085 (target_terminal_ours_for_output)
3086 (make_cleanup_restore_target_terminal): Don't declare.
3087 (target_terminal_info): Remove.
3088 * target.c (enum terminal_state, terminal_state): Remove.
3089 (target_terminal::terminal_state): Define.
3090 (target_terminal::init): Rename from target_terminal_init.
3091 (target_terminal::inferior): Rename from
3092 target_terminal_inferior.
3093 (target_terminal::ours): Rename from target_terminal_ours.
3094 (target_terminal::ours_for_output): Rename from
3095 target_terminal_ours_for_output.
3096 (target_terminal::info): New method.
3097 (cleanup_restore_target_terminal)
3098 (make_cleanup_restore_target_terminal): Remove.
3099 * solib.c (handle_solib_event): Update.
3100 * remote.c (remote_serial_quit_handler): Update.
3101 (remote_terminal_inferior, remote_wait_as): Update.
3102 * record-full.c (record_full_wait_1): Update.
3103 * nto-procfs.c (procfs_create_inferior): Update.
3104 * nat/fork-inferior.c (startup_inferior): Update.
3105 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3106 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3107 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3108 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3109 (mi_breakpoint_created, mi_breakpoint_deleted)
3110 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3111 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3112 (mi_user_selected_context_changed, report_initial_inferior):
3113 Update.
3114 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3115 (linux_nat_terminal_inferior): Update.
3116 * infrun.c (follow_fork_inferior)
3117 (handle_vfork_child_exec_or_exit, do_target_resume)
3118 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3119 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3120 Update.
3121 * inflow.c (child_terminal_init, info_terminal_command): Update.
3122 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3123 (attach_command): Update.
3124 * infcall.c (call_thread_fsm_should_stop): Update.
3125 * gnu-nat.c (gnu_attach): Update.
3126 * extension.c (struct active_ext_lang_state)
3127 (restore_active_ext_lang): Update.
3128 * exceptions.c (print_flush): Update.
3129 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3130 (struct quit_handler_cleanup_data, restore_quit_handler)
3131 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3132 Remove.
3133 * cp-support.c (gdb_demangle): Update.
3134 * breakpoint.c (update_inserted_breakpoint_locations)
3135 (insert_breakpoint_locations, handle_jit_event)
3136 (disable_breakpoints_in_unloaded_shlib): Update.
3137 * annotate.c (annotate_breakpoints_invalid)
3138 (annotate_frames_invalid): Update.
3139
013af3fc
TT
31402017-09-20 Tom Tromey <tom@tromey.com>
3141
3142 * main.c (catch_command_errors): Rename from
3143 catch_command_errors_const.
3144 (captured_main_1): Update.
3145
06871ae8
PA
31462017-09-20 Pedro Alves <palves@redhat.com>
3147
3148 * cli/cli-cmds.c (list_command): Use print_sal_location.
3149 (print_sal_location): New function.
3150 (ambiguous_line_spec): Use print_sal_location.
3151 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3152 * symtab.c (find_function_start_sal): Likewise.
3153 * symtab.h (symtab_and_line::symbol): New field.
3154
e5f25bc5
PA
31552017-09-20 Pedro Alves <palves@redhat.com>
3156
3157 * linespec.c (minsym_found): Handle non-text minsyms.
3158 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3159
1b7fa39e
WT
31602017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3161
3162 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3163 backslash.
3164
37dd0825
WT
31652017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3166
3167 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3168 vmovups instead vmovaps.
3169 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3170
4e5a4f58
JB
31712017-09-19 John Baldwin <jhb@FreeBSD.org>
3172
3173 * NEWS (Changes since GDB 8.0): Add starti.
3174 * infcmd.c (enum run_break): New.
3175 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3176 case.
3177 (run_command): Use enum run_how.
3178 (start_command): Likewise.
3179 (starti_command): New function.
3180 (RUN_ARGS_HELP): New macro.
3181 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3182 commands. Add starti command.
3183
aa70c9f1
YQ
31842017-09-19 Yao Qi <yao.qi@linaro.org>
3185
3186 * Makefile.in (monitor.o): Remove the rule.
3187
d6541620
YQ
31882017-09-19 Yao Qi <yao.qi@linaro.org>
3189
3190 * annotate.h (struct annotate_arg_emitter): Use
3191 DISABLE_COPY_AND_ASSIGN.
3192 * common/refcounted-object.h (refcounted_object): Likewise.
3193 * completer.h (struct completion_result): Likewise.
3194 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3195 * filename-seen-cache.h (filename_seen_cache): Likewise.
3196 * gdbcore.h (thread_section_name): Likewise.
3197 * gdb_regex.h (compiled_regex): Likewise.
3198 * gdbthread.h (scoped_restore_current_thread): Likewise.
3199 * inferior.h (scoped_restore_current_inferior): Likewise.
3200 * jit.c (jit_reader): Likewise.
3201 * linespec.h (struct linespec_result): Likewise.
3202 * mi/mi-parse.h (struct mi_parse): Likewise.
3203 * nat/fork-inferior.c (execv_argv): Likewise.
3204 * progspace.h (scoped_restore_current_program_space): Likewise.
3205 * python/python-internal.h (class gdbpy_enter): Likewise.
3206 * regcache.h (regcache): Likewise.
3207 * target-descriptions.c (struct tdesc_reg): Likewise.
3208 (struct tdesc_type): Likewise.
3209 (struct tdesc_feature): Likewise.
3210 * ui-out.h (ui_out_emit_type): Likewise.
3211
0615127c
SM
32122017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3213
3214 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3215 label abort_expression.
3216
5e187554
SM
32172017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3218
3219 * common/buffer.c (buffer_xml_printf): Adjust.
3220 * common/xml-utils.c (xml_escape_text): Change return type to
3221 std::string, update code accordingly.
3222 * common/xml-utils.h (xml_escape_text): Change return type to
3223 std::string.
3224 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3225 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3226 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3227 Adjust.
3228
c3d7b541
SM
32292017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3230
3231 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3232 (SUBDIR_UNITTESTS_OBS): Add new object file.
3233 * unittests/xml-utils-selftests.c: New file.
3234
1526853e
SM
32352017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3236
3237 * common/selftest.h (selftest): New struct/interface.
3238 (register_test): Add name parameter, add new overload.
3239 (run_tests): Add filter parameter.
3240 (for_each_selftest_ftype): New typedef.
3241 (for_each_selftest): New declaration.
3242 * common/selftest.c (tests): Change type to
3243 map<string, unique_ptr<selftest>>.
3244 (simple_selftest): New struct.
3245 (register_test): New function.
3246 (register_test): Add name parameter and use it.
3247 (run_tests): Add filter parameter and use it. Add prints.
3248 Adjust to vector -> map change.
3249 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3250 registering selftests.
3251 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3252 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3253 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3254 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3255 * findvar.c (_initialize_findvar): Likewise.
3256 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3257 * maint.c (maintenance_selftest): Update call to run_tests.
3258 (maintenance_info_selftests): New function.
3259 (_initialize_maint_cmds): Register "maintenance info selftests"
3260 command. Update "maintenance selftest" doc.
3261 * regcache.c (_initialize_regcache): Add names when registering
3262 selftests.
3263 * rust-exp.y (_initialize_rust_exp): Likewise.
3264 * selftest-arch.c (gdbarch_selftest): New struct.
3265 (gdbarch_tests): Remove.
3266 (register_test_foreach_arch): Add name parameter. Call
3267 register_test.
3268 (tests_with_arch): Remove, move most content to
3269 gdbarch_selftest::operator().
3270 (_initialize_selftests_foreach_arch): Remove.
3271 * selftest-arch.h (register_test_foreach_arch): Add name
3272 parameter.
3273 (run_tests_with_arch): New declaration.
3274 * utils-selftests.c (_initialize_utils_selftests): Add names
3275 when registering selftests.
3276 * utils.c (_initialize_utils): Likewise.
3277 * unittests/array-view-selftests.c
3278 (_initialize_array_view_selftests): Likewise.
3279 * unittests/environ-selftests.c (_initialize_environ_selftests):
3280 Likewise.
3281 * unittests/function-view-selftests.c
3282 (_initialize_function_view_selftests): Likewise.
3283 * unittests/offset-type-selftests.c
3284 (_initialize_offset_type_selftests): Likewise.
3285 * unittests/optional-selftests.c
3286 (_initialize_optional_selftests): Likewise.
3287 * unittests/scoped_restore-selftests.c
3288 (_initialize_scoped_restore_selftests): Likewise.
3289 * NEWS: Document "maintenance selftest" and "maint info
3290 selftests".
3291
5846367a
SM
32922017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3293
3294 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3295 scoped_restore.
3296
bd77e8ff
SM
32972017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3298
3299 * mi/mi-main.c (mi_load_progress): Make uiout variable
3300 a unique_ptr.
3301
26a67918
PA
33022017-09-15 Pedro Alves <palves@redhat.com>
3303
3304 * compile/compile-c-types.c (convert_enum, convert_int)
3305 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3306
3f8a7804
SM
33072017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3308
3309 * dwarf2read.c (copy_string): Remove.
3310 (parse_macro_definition): Replace copy_string with savestring.
3311
8d200706
YQ
33122017-09-15 Yao Qi <yao.qi@linaro.org>
3313
3314 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3315 gdb_target_obs.
3316 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3317 Likewise.
3318 (i[34567]86-*-linux*): Likewise.
3319
d185219d
SM
33202017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3321
3322 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3323 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3324 <stack>: Change type to std::vector.
3325 <stack_len, stack_allocated>: Remove.
3326 <grow_stack>: Remove.
3327 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3328 (dwarf_expr_context::~dwarf_expr_context): Remove.
3329 (dwarf_expr_context::grow_stack): Remove.
3330 (dwarf_expr_context::push): Adjust.
3331 (dwarf_expr_context::pop): Adjust.
3332 (dwarf_expr_context::fetch): Adjust.
3333 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3334 (dwarf_expr_context::stack_empty_p): Adjust.
3335 (dwarf_expr_context::execute_stack_op): Adjust.
3336
eccd80d6
SM
33372017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3338
3339 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3340 return type to bool.
3341 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3342
69009882
SM
33432017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3344
3345 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3346 Change type to bool.
3347 (dwarf_stack_value) <in_stack_memory>: Likewise.
3348 (dwarf_expr_context) <push_address>: Change parameter type to
3349 bool.
3350 <fetch_in_stack_memory>: Change return type to bool.
3351 <push>: Change parameter type to bool.
3352 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3353 to bool.
3354 (dwarf_expr_context::push_address): Likewise.
3355 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3356 to bool.
3357 (dwarf_expr_context::execute_stack_op): Adjust.
3358 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3359
1e467161
SM
33602017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3361
3362 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3363 (struct dwarf_expr_context) <n_pieces>: Remove.
3364 <pieces>: Change type to std::vector.
3365 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3366 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3367 pieces.
3368 (dwarf_expr_context::add_piece): Adjust.
3369 * dwarf2loc.c (struct piece_closure): Initialize fields.
3370 <n_pieces>: Remove.
3371 <pieces>: Change type to std::vector.
3372 (allocate_piece_closure): Adjust, change parameter to
3373 std::vector rvalue and std::move it to piece_closure.
3374 (rw_pieced_value): Adjust.
3375 (check_pieced_synthetic_pointer): Adjust.
3376 (indirect_synthetic_pointer): Adjust.
3377 (coerce_pieced_ref): Adjust.
3378 (free_pieced_value_closure): Adjust. Use delete to free
3379 piece_closure.
3380 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3381 to allocate_piece_closure.
3382 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3383
0782db84
SM
33842017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3385
3386 * probe.h (probe_ops_cp): Remove typedef.
3387 (DEF_VEC_P (probe_ops_cp)): Remove.
3388 (all_probe_ops): Change type to std::vector.
3389 * probe.c (info_probes_for_ops): Adjust to vector change.
3390 (probe_linespec_to_ops): Likewise.
3391 (all_probe_ops): Change type to std::vector.
3392 (_initialize_probe): Adjust to vector change.
3393 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3394 * elfread.c (elf_get_probes): Likewise.
3395 * stap-probe.c (_initialize_stap_probe): Likewise.
3396
1eac6bea
SM
33972017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3398
3399 * probe.h (struct bound_probe): Define constructors.
3400 * probe.c (bound_probe_s): Remove typedef.
3401 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3402 (collect_probes): Change return type to std::vector, remove
3403 cleanup.
3404 (compare_probes): Return bool, change parameter type. Change
3405 semantic to "less than".
3406 (gen_ui_out_table_header_info): Change parameter to std::vector
3407 and update.
3408 (exists_probe_with_pops): Likewise.
3409 (info_probes_for_ops): Update to std::vector change.
3410 (enable_probes_command): Likewise.
3411 (disable_probes_command): Likewise.
3412
aaa63a31
SM
34132017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3414
3415 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3416 vec to std::vector.
3417 * probe.c (parse_probes_in_pspace): Update.
3418 (find_probes_in_objfile): Update.
3419 (find_probe_by_pc): Update.
3420 (collect_probes): Update.
3421 (probe_any_get_probes): Update.
3422 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3423 return type to reference to std::vector.
3424 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3425 std::vector and update.
3426 (dtrace_process_dof): Likewise.
3427 (dtrace_get_probes): Likewise.
3428 * elfread.c (elf_get_probes): Change return type to std::vector,
3429 store an std::vector in bfd_data.
3430 (probe_key_free): Update to std::vector.
3431 * stap-probe.c (handle_stap_probe): Change parameter to
3432 std::vector and update.
3433 (stap_get_probes): Likewise.
3434 * symfile-debug.c (debug_sym_get_probes): Change return type to
3435 std::vector and update.
3436
cb85b21b
TT
34372017-09-11 Tom Tromey <tom@tromey.com>
3438
3439 * breakpoint.c (program_breakpoint_here_p): Update.
3440 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3441 from make_show_memory_breakpoints_cleanup. Return a
3442 scoped_restore_tmpl<int>.
3443 (restore_show_memory_breakpoints): Remove.
3444 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3445 * mem-break.c (memory_validate_breakpoint): Update.
3446 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3447 (ia64_memory_remove_breakpoint): Update.
3448 (ia64_breakpoint_from_pc): Update.
3449 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3450 from make_show_memory_breakpoints_cleanup.
3451
8fbc99ef
TT
34522017-09-11 Tom Tromey <tom@tromey.com>
3453
3454 * d-namespace.c (d_lookup_symbol): Use std::string.
3455 (find_symbol_in_baseclass): Likewise.
3456
50feb4bd
TT
34572017-09-11 Tom Tromey <tom@tromey.com>
3458
3459 * ctf.c (ctf_start): Use std::string.
3460
c6dc63a1
TT
34612017-09-11 Tom Tromey <tom@tromey.com>
3462
3463 * ada-lang.c (is_known_support_routine): Update.
3464 (ada_unhandled_exception_name_addr_from_raise): Update.
3465 * guile/scm-frame.c (gdbscm_frame_name): Update.
3466 * python/py-frame.c (frapy_name): Update.
3467 (frapy_function): Update.
3468 * stack.h (find_frame_funname): Update.
3469 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3470 (print_frame): Update.
3471
d6b9b80f
TT
34722017-09-11 Tom Tromey <tom@tromey.com>
3473
3474 * findcmd.c (put_bits): Take a gdb::byte_vector.
3475 (parse_find_args): Return gdb::byte_vector. "args" now const.
3476 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3477 cleanups.
3478 (find_command): Update.
3479
a9921622
TT
34802017-09-11 Tom Tromey <tom@tromey.com>
3481
3482 * cli/cli-script.c (class scoped_restore_hook_in): New.
3483 (clear_hook_in_cleanup): Remove.
3484 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3485 scoped_restore_hook_in.
3486
be0d7abb
TT
34872017-09-11 Tom Tromey <tom@tromey.com>
3488
3489 * cli/cli-script.c (restore_interp): Remove.
3490 (read_command_lines): Use scoped_restore_interp.
3491 * interps.c (scoped_restore_interp::set_temp): Rename from
3492 interp_set_temp.
3493 * interps.h (class scoped_restore_interp): New.
3494 (interp_set_temp): Remove.
3495
00f675ff
TT
34962017-09-11 Tom Tromey <tom@tromey.com>
3497
3498 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3499 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3500 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3501 scoped_restore.
3502 (mi_cmd_break_insert_1): Update.
3503 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3504 scoped_restore.
3505
cb791d59
TT
35062017-09-11 Tom Tromey <tom@tromey.com>
3507
3508 * demangle.c (demangle_command): Update.
3509 * breakpoint.c (disable_command): Update.
3510 (enable_command): Update.
3511 (find_location_by_number): Make "number" const. Use
3512 get_number_trailer.
3513 * cli/cli-utils.c (extract_arg): Return std::string.
3514 * probe.c (parse_probe_linespec): Update. Change types.
3515 (collect_probes): Take string arguments.
3516 (parse_probe_linespec): Likewise.
3517 (info_probes_for_ops): Update.
3518 (enable_probes_command): Update.
3519 (disable_probes_command): Update.
3520 * break-catch-sig.c (catch_signal_split_args): Update.
3521 * mi/mi-parse.c (mi_parse): Update.
3522
2039bd9f
TT
35232017-09-11 Tom Tromey <tom@tromey.com>
3524
3525 * language.h (language_enum): Make argument const.
3526 * language.c (language_enum): Make argument const.
3527
f1735a53
TT
35282017-09-11 Tom Tromey <tom@tromey.com>
3529
3530 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3531 as function.
3532 (skip_to_space): Rename from skip_to_space_const.
3533 * common/common-utils.c (skip_to_space): New function.
3534 (skip_to_space): Rename from skip_to_space_const.
3535 * cli/cli-utils.h (get_number): Rename from get_number_const.
3536 (extract_arg): Rename from extract_arg_const.
3537 * cli/cli-utils.c (get_number): Rename from get_number_const.
3538 (extract_arg): Rename from extract_arg_const.
3539 (number_or_range_parser::get_number): Use ::get_number.
3540 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3541 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3542 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3543 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3544 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3545 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3546 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3547 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3548
7d221d74
TT
35492017-09-11 Tom Tromey <tom@tromey.com>
3550
3551 * python/python.c (do_start_initialization): Use
3552 py-event-types.def to initialize types.
3553 Define all object type structures.
3554 * python/python-internal.h: Don't declare event initialization
3555 functions.
3556 * python/py-threadevent.c (thread_event_object_type): Don't
3557 define.
3558 * python/py-stopevent.c (stop_event_object_type): Don't define.
3559 * python/py-signalevent.c (signal_event_object_type): Don't
3560 declare or define.
3561 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3562 (clear_objfiles_event_object_type): Don't declare or define.
3563 * python/py-infevents.c (inferior_call_pre_event_object_type)
3564 (inferior_call_post_event_object_type)
3565 (register_changed_event_object_type)
3566 (memory_changed_event_object_type): Don't declare or define.
3567 * python/py-inferior.c (new_thread_event_object_type)
3568 (new_inferior_event_object_type)
3569 (inferior_deleted_event_object_type): Don't declare or define.
3570 * python/py-exitedevent.c (exited_event_object_type): Don't
3571 declare or define.
3572 * python/py-evts.c (gdbpy_initialize_py_events): Use
3573 py-all-events.def.
3574 * python/py-events.h (thread_event_object_type): Don't declare.
3575 (events_object): Use py-all-events.def.
3576 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3577 py-event-types.def.
3578 * python/py-event-types.def: New file.
3579 * python/py-continueevent.c (create_continue_event_object): Don't
3580 declare or define.
3581 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3582 declare or define.
3583 * python/py-all-events.def: New file.
3584
35c61a1d
TT
35852017-09-11 Tom Tromey <tom@tromey.com>
3586
3587 * python/py-threadevent.c (create_thread_event_object): Return
3588 gdbpy_ref.
3589 * python/py-stopevent.h (create_stop_event_object)
3590 (create_breakpoint_event_object, create_signal_event_object):
3591 Update.
3592 * python/py-stopevent.c (create_stop_event_object): Return
3593 gdbpy_ref.
3594 (emit_stop_event): Update.
3595 * python/py-signalevent.c (create_signal_event_object): Return
3596 gdbpy_ref.
3597 * python/py-infevents.c (create_inferior_call_event_object):
3598 Update.
3599 * python/py-event.h (create_event_object)
3600 (create_thread_event_object): Update.
3601 * python/py-event.c (create_event_object): Return gdbpy_ref.
3602 * python/py-continueevent.c: Return gdbpy_ref.
3603 * python/py-bpevent.c (create_breakpoint_event_object): Return
3604 gdbpy_ref.
3605
7c96f8c1
TT
36062017-09-11 Tom Tromey <tom@tromey.com>
3607
3608 PR python/15622:
3609 * NEWS: Add entry.
3610 * python/python.c (do_start_initialization): Initialize new event
3611 types.
3612 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3613 (gdbpy_initialize_inferior_deleted_event)
3614 (gdbpy_initialize_new_thread_event): Declare.
3615 * python/py-threadevent.c (create_thread_event_object): Add option
3616 "thread" parameter.
3617 * python/py-inferior.c (new_thread_event_object_type)
3618 (new_inferior_event_object_type)
3619 (inferior_deleted_event_object_type): Declare.
3620 (python_new_inferior, python_inferior_deleted): New functions.
3621 (add_thread_object): Emit new_thread event.
3622 (gdbpy_initialize_inferior): Attach new functions to corresponding
3623 observers.
3624 (new_thread, new_inferior, inferior_deleted): Define new event
3625 types.
3626 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3627 registries.
3628 * python/py-events.h (events_object) <new_inferior,
3629 inferior_deleted, new_thread>: New fields.
3630 * python/py-event.h (create_thread_event_breakpoint): Add optional
3631 "thread" parameter.
3632
72542b8e
AB
36332017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3634
3635 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3636 check current_ui instead.
3637 (internal_vproblem): Likewise.
3638
0d64823e
SM
36392017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3640
3641 * thread.c (print_thread_info_1): Remove unnecessary calls to
3642 uiout->is_mi_like_p.
3643
eb1e02fd
TT
36442017-09-09 Tom Tromey <tom@tromey.com>
3645
3646 * namespace.h (add_using_directive): Update.
3647 * namespace.c (add_using_directive): Change type of excludes to
3648 std::vector.
3649 * dwarf2read.c (read_import_statement): Use std::vector.
3650 (read_namespace): Update.
3651 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3652
0fc21fd8
TT
36532017-09-09 Tom Tromey <tom@tromey.com>
3654
3655 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3656
49663d05
TT
36572017-09-09 Tom Tromey <tom@tromey.com>
3658
3659 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3660
0b868b60
TT
36612017-09-09 Tom Tromey <tom@tromey.com>
3662
3663 * stack.c (func_command): Use gdb::def_vector.
3664
c0470d48
TT
36652017-09-09 Tom Tromey <tom@tromey.com>
3666
3667 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3668 ui_out_emit_list, ui_out_emit_tuple.
3669 (mi_cmd_var_update): Likewise.
3670
ca5909c7
TT
36712017-09-09 Tom Tromey <tom@tromey.com>
3672
3673 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3674 ui_out_redirect_pop.
3675 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3676 ui_out_redirect_pop.
3677 * utils.c (do_ui_out_redirect_pop)
3678 (make_cleanup_ui_out_redirect_pop): Remove.
3679 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3680 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3681 * ui-out.h (ui_out_redirect_pop): New class.
3682
e6a2252a
TT
36832017-09-09 Tom Tromey <tom@tromey.com>
3684
3685 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3686 (list_available_thread_groups, mi_cmd_list_thread_groups)
3687 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3688 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3689 Likewise.
3690
393702cd
TT
36912017-09-09 Tom Tromey <tom@tromey.com>
3692
3693 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3694 ui_out_emit_tuple.
3695
76f9c9cf
TT
36962017-09-09 Tom Tromey <tom@tromey.com>
3697
3698 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3699 * stack.c (print_frame): Use ui_out_emit_tuple.
3700 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3701 (info_spu_mailbox_command, info_spu_dma_command)
3702 (info_spu_proxydma_command): Likewise.
3703 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3704 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3705 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3706 ui_out_emit_tuple.
3707 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3708
dc9fe180
TT
37092017-09-09 Tom Tromey <tom@tromey.com>
3710
3711 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3712 (class ui_out_emit_table): Update comment.
3713 * ui-out.c (do_cleanup_table_end)
3714 (make_cleanup_ui_out_table_begin_end): Remove.
3715 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3716 (info_spu_dma_cmdlist): Likewise.
3717 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3718 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3719 ui_out_emit_table.
3720
f8cc3da6
TT
37212017-09-09 Tom Tromey <tom@tromey.com>
3722
3723 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3724 ui_out_emit_list, gdb::optional.
3725
481695ed
JB
37262017-09-09 John Baldwin <jhb@FreeBSD.org>
3727
3728 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3729 prototype.
3730 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3731 prototype.
3732 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3733 prototype.
3734 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3735 * ada-exp.y: Remove _initialize_ada_exp prototype.
3736 * ada-lang.c: Remove _initialize_ada_language prototype.
3737 * ada-tasks.c: Remove _initialize_tasks prototype.
3738 * addrmap.c: Remove _initialize_addrmap prototype.
3739 * agent.c: Remove _initialize_agent prototype.
3740 * aix-thread.c: Remove _initialize_aix_thread prototype.
3741 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3742 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3743 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3744 prototype.
3745 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3746 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3747 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3748 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3749 prototype.
3750 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
3751 prototype.
3752 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
3753 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
3754 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
3755 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
3756 prototype.
3757 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
3758 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
3759 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
3760 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
3761 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3762 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
3763 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
3764 prototype.
3765 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
3766 prototype.
3767 * annotate.c: Remove _initialize_annotate prototype.
3768 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
3769 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
3770 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
3771 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
3772 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
3773 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
3774 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
3775 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
3776 prototype.
3777 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
3778 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
3779 * auto-load.c: Remove _initialize_auto_load prototype.
3780 * auxv.c: Remove _initialize_auxv prototype.
3781 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
3782 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
3783 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
3784 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
3785 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
3786 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
3787 prototype.
3788 * break-catch-throw.c: Remove _initialize_break_catch_throw
3789 prototype.
3790 * breakpoint.c: Remove _initialize_breakpoint prototype.
3791 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
3792 * btrace.c: Remove _initialize_btrace prototype.
3793 * charset.c: Remove _initialize_charset prototype.
3794 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
3795 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
3796 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
3797 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
3798 * cli/cli-script.c: Remove _initialize_cli_script prototype.
3799 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
3800 * coffread.c: Remove _initialize_coffread prototype.
3801 * compile/compile.c: Remove _initialize_compile prototype.
3802 * complaints.c: Remove _initialize_complaints prototype.
3803 * completer.c: Remove _initialize_completer prototype.
3804 * copying.awk: Remove _initialize_copying prototype.
3805 * copying.c: Regenerate.
3806 * core-regset.c: Remove _initialize_core_regset prototype.
3807 * corefile.c: Remove _initialize_core prototype.
3808 * corelow.c: Remove _initialize_corelow prototype.
3809 * cp-abi.c: Remove _initialize_cp_abi prototype.
3810 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
3811 * cp-support.c: Remove _initialize_cp_support prototype.
3812 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
3813 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
3814 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
3815 * ctf.c: Remove _initialize_ctf prototype.
3816 * d-lang.c: Remove _initialize_d_language prototype.
3817 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
3818 prototype.
3819 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
3820 * dbxread.c: Remove _initialize_dbxread prototype.
3821 * dcache.c: Remove _initialize_dcache prototype.
3822 * demangle.c: Remove _initialize_demangler prototype.
3823 * disasm-selftests.c: Remove _initialize_disasm_selftests
3824 prototype.
3825 * disasm.c: Remove _initialize_disasm prototype.
3826 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
3827 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
3828 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
3829 prototype.
3830 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
3831 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
3832 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
3833 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
3834 * elfread.c: Remove _initialize_elfread prototype.
3835 * exec.c: Remove _initialize_exec prototype.
3836 * extension.c: Remove _initialize_extension prototype.
3837 * f-lang.c: Remove _initialize_f_language prototype.
3838 * f-valprint.c: Remove _initialize_f_valprint prototype.
3839 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
3840 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
3841 * filesystem.c: Remove _initialize_filesystem prototype.
3842 * findcmd.c: Remove _initialize_mem_search prototype.
3843 * fork-child.c: Remove _initialize_fork_child prototype.
3844 * frame-base.c: Remove _initialize_frame_base prototype.
3845 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
3846 * frame.c: Remove _initialize_frame prototype.
3847 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
3848 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
3849 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
3850 * gcore.c: Remove _initialize_gcore prototype.
3851 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
3852 * gdbarch.c: Regenerate.
3853 * gdbarch.sh: Remove _initialize_gdbarch prototype.
3854 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
3855 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
3856 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
3857 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
3858 * go-lang.c: Remove _initialize_go_language prototype.
3859 * go32-nat.c: Remove _initialize_go32_nat prototype.
3860 * guile/guile.c: Remove _initialize_guile prototype.
3861 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
3862 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
3863 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
3864 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
3865 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
3866 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
3867 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
3868 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
3869 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
3870 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
3871 prototype.
3872 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
3873 prototype.
3874 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
3875 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
3876 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
3877 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
3878 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
3879 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
3880 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
3881 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
3882 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
3883 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
3884 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
3885 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
3886 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
3887 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3888 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
3889 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
3890 prototype.
3891 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
3892 prototype.
3893 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
3894 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
3895 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
3896 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
3897 * infcall.c: Remove _initialize_infcall prototype.
3898 * infcmd.c: Remove _initialize_infcmd prototype.
3899 * inferior.c: Remove _initialize_inferiors prototype.
3900 * inflow.c: Remove _initialize_inflow prototype.
3901 * infrun.c: Remove _initialize_infrun prototype.
3902 * interps.c: Remove _initialize_interpreter prototype.
3903 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
3904 * jit.c: Remove _initialize_jit prototype.
3905 * language.c: Remove _initialize_language prototype.
3906 * linux-fork.c: Remove _initialize_linux_fork prototype.
3907 * linux-nat.c: Remove _initialize_linux_nat prototype.
3908 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
3909 * linux-thread-db.c: Remove _initialize_thread_db prototype.
3910 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
3911 * m2-lang.c: Remove _initialize_m2_language prototype.
3912 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
3913 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
3914 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
3915 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
3916 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
3917 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3918 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3919 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
3920 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
3921 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
3922 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3923 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3924 * machoread.c: Remove _initialize_machoread prototype.
3925 * macrocmd.c: Remove _initialize_macrocmd prototype.
3926 * macroscope.c: Remove _initialize_macroscope prototype.
3927 * maint.c: Remove _initialize_maint_cmds prototype.
3928 * mdebugread.c: Remove _initialize_mdebugread prototype.
3929 * memattr.c: Remove _initialize_mem prototype.
3930 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
3931 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
3932 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
3933 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
3934 * mi/mi-main.c: Remove _initialize_mi_main prototype.
3935 * microblaze-linux-tdep.c: Remove
3936 _initialize_microblaze_linux_tdep prototype.
3937 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
3938 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
3939 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
3940 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
3941 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
3942 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
3943 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
3944 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
3945 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
3946 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
3947 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
3948 prototype.
3949 * mipsread.c: Remove _initialize_mipsread prototype.
3950 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
3951 prototype.
3952 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
3953 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
3954 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
3955 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
3956 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
3957 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
3958 prototype.
3959 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
3960 * nto-procfs.c: Remove _initialize_procfs prototype.
3961 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
3962 * objc-lang.c: Remove _initialize_objc_language prototype.
3963 * objfiles.c: Remove _initialize_objfiles prototype.
3964 * observer.c: Remove observer_test_first_notification_function,
3965 observer_test_second_notification_function,
3966 observer_test_third_notification_function, and
3967 _initialize_observer prototypes.
3968 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
3969 * osabi.c: Remove _initialize_gdb_osabi prototype.
3970 * osdata.c: Remove _initialize_osdata prototype.
3971 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
3972 * parse.c: Remove _initialize_parse prototype.
3973 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
3974 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
3975 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
3976 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
3977 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
3978 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
3979 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
3980 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
3981 * printcmd.c: Remove _initialize_printcmd prototype.
3982 * probe.c: Remove _initialize_probe prototype.
3983 * proc-api.c: Remove _initialize_proc_api prototype.
3984 * proc-events.c: Remove _initialize_proc_events prototype.
3985 * proc-service.c: Remove _initialize_proc_service prototype.
3986 * procfs.c: Remove _initialize_procfs prototype.
3987 * psymtab.c: Remove _initialize_psymtab prototype.
3988 * python/python.c: Remove _initialize_python prototype.
3989 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
3990 * record-btrace.c: Remove _initialize_record_btrace prototype.
3991 * record-full.c: Remove _initialize_record_full prototype.
3992 * record.c: Remove _initialize_record prototype.
3993 * regcache.c: Remove _initialize_regcache prototype.
3994 * reggroups.c: Remove _initialize_reggroup prototype.
3995 * remote-notif.c: Remove _initialize_notif prototype.
3996 * remote-sim.c: Remove _initialize_remote_sim prototype.
3997 * remote.c: Remove _initialize_remote prototype.
3998 * reverse.c: Remove _initialize_reverse prototype.
3999 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4000 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4001 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4002 prototype.
4003 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4004 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4005 * rust-exp.y: Remove _initialize_rust_exp prototype.
4006 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4007 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4008 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4009 * score-tdep.c: Remove _initialize_score_tdep prototype.
4010 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4011 prototype.
4012 * ser-go32.c: Remove _initialize_ser_dos prototype.
4013 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4014 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4015 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4016 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4017 * serial.c: Remove _initialize_serial prototype.
4018 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4019 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4020 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4021 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4022 * skip.c: Remove _initialize_step_skip prototype.
4023 * sol-thread.c: Remove _initialize_sol_thread prototype.
4024 * solib-aix.c: Remove _initialize_solib_aix prototype.
4025 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4026 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4027 * solib-frv.c: Remove _initialize_frv_solib prototype.
4028 * solib-spu.c: Remove _initialize_spu_solib prototype.
4029 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4030 * solib-target.c: Remove _initialize_solib_target prototype.
4031 * solib.c: Remove _initialize_solib prototype.
4032 * source.c: Remove _initialize_source prototype.
4033 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4034 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4035 prototype.
4036 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4037 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4038 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4039 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4040 prototype.
4041 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4042 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4043 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4044 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4045 prototype.
4046 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4047 prototype.
4048 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4049 prototype.
4050 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4051 prototype.
4052 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4053 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4054 prototype.
4055 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4056 prototype.
4057 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4058 prototype.
4059 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4060 prototype.
4061 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4062 prototype.
4063 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4064 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4065 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4066 * stabsread.c: Remove _initialize_stabsread prototype.
4067 * stack.c: Remove _initialize_stack prototype.
4068 * stap-probe.c: Remove _initialize_stap_probe prototype.
4069 * std-regs.c: Remove _initialize_frame_reg prototype.
4070 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4071 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4072 * symfile.c: Remove _initialize_symfile prototype.
4073 * symmisc.c: Remove _initialize_symmisc prototype.
4074 * symtab.c: Remove _initialize_symtab prototype.
4075 * target-dcache.c: Remove _initialize_target_dcache prototype.
4076 * target-descriptions.c: Remove _initialize_target_descriptions
4077 prototype.
4078 * thread.c: Remove _initialize_thread prototype.
4079 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4080 prototype.
4081 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4082 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4083 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4084 prototype.
4085 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4086 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4087 * tracefile.c: Remove _initialize_tracefile prototype.
4088 * tracepoint.c: Remove _initialize_tracepoint prototype.
4089 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4090 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4091 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4092 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4093 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4094 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4095 * tui/tui.c: Remove _initialize_tui prototype.
4096 * typeprint.c: Remove _initialize_typeprint prototype.
4097 * user-regs.c: Remove _initialize_user_regs prototype.
4098 * utils.c: Remove _initialize_utils prototype.
4099 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4100 * valarith.c: Remove _initialize_valarith prototype.
4101 * valops.c: Remove _initialize_valops prototype.
4102 * valprint.c: Remove _initialize_valprint prototype.
4103 * value.c: Remove _initialize_values prototype.
4104 * varobj.c: Remove _initialize_varobj prototype.
4105 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4106 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4107 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4108 * windows-nat.c: Remove _initialize_windows_nat,
4109 _initialize_check_for_gdb_ini, and _initialize_loadable
4110 prototypes.
4111 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4112 * xcoffread.c: Remove _initialize_xcoffread prototype.
4113 * xml-support.c: Remove _initialize_xml_support prototype.
4114 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4115 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4116 prototype.
4117 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4118 prototype.
4119 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4120
a611b5cb
KS
41212017-09-08 Keith Seitz <keiths@redhat.com>
4122
4123 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4124 field.
4125
469412dd
CW
41262017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4127
4128 * f-valprint.c (f_val_print): Remove check for one byte
4129 sized integers. Remove printing of character type.
4130
a5ad232b
FP
41312017-09-08 Frank Penczek <frank.penczek@intel.com>
4132 Christoph Weinmann <christoph.t.weinmann@intel.com>
4133 Bernhard Heckel <bernhard.heckel@intel.com>
4134
4135 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4136 to maintain proper indentation when printing pointers/refs.
4137
e5014227
JB
41382017-09-07 Joel Brobecker <brobecker@adacore.com>
4139
4140 GDB 8.0.1 released.
4141
63c99141
JB
41422017-09-07 Joel Brobecker <brobecker@adacore.com>
4143
4144 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4145
69c1e056
TT
41462017-09-05 Tom Tromey <tom@tromey.com>
4147
4148 * parse.c (funcall_chain): Now a std::vector.
4149 (start_arglist, end_arglist): Simplify.
4150 (free_funcalls): Remove.
4151 (parse_exp_in_context_1): Remove cleanup.
4152
fef704bf
TT
41532017-09-05 Tom Tromey <tom@tromey.com>
4154
4155 * go-exp.y (go_parse): Don't create a cleanup.
4156
5613c585
TT
41572017-09-05 Tom Tromey <tom@tromey.com>
4158
4159 * d-exp.y (PrimaryExpression): Use std::string.
4160 (d_parse): Don't create a cleanup.
4161
eae49211
TT
41622017-09-05 Tom Tromey <tom@tromey.com>
4163
4164 * utils.c (do_clear_parser_state): Remove.
4165 (make_cleanup_clear_parser_state): Remove.
4166 * p-exp.y (pascal_parse): Use scoped_restore.
4167 * m2-exp.y (m2_parse): Use scoped_restore.
4168 * f-exp.y (f_parse): Use scoped_restore.
4169 * d-exp.y (d_parse): Use scoped_restore.
4170 * c-exp.y (c_parse): Use scoped_restore.
4171 * ada-exp.y (ada_parse): Use scoped_restore.
4172 * utils.h (make_cleanup_clear_parser_state): Remove.
4173
73b9be8b
KS
41742017-09-06 Keith Seitz <keiths@redhat.com>
4175
4176 * dwarf2read.c (dw2_linkage_name_attr): New function.
4177 (dw2_linkage_name): New function.
4178 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4179 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4180 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4181
a102602b
KR
41822017-09-06 Kamil Rytarowski <n54@gmx.com>
4183
4184 * config/djgpp/djconfig.sh: Correct shell portability issue.
4185
28ad437d
KR
41862017-09-06 Kamil Rytarowski <n54@gmx.com>
4187
4188 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4189
351787dd
JB
41902017-09-06 John Baldwin <jhb@FreeBSD.org>
4191
4192 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4193 * NEWS: Mention new FreeBSD/mips native configuration.
4194 * configure.host: Add aarch64*-*-freebsd*.
4195 * configure.nat: Likewise.
4196 * aarch64-fbsd-nat.c: New file.
4197
c0f84956
JB
41982017-09-06 John Baldwin <jhb@FreeBSD.org>
4199
4200 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4201 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4202 * NEWS: Mention new FreeBSD/aarch64 target.
4203 * configure.tgt: Add aarch64*-*-freebsd*.
4204 * aarch64-fbsd-tdep.c: New file.
4205 * aarch64-fbsd-tdep.h: New file.
4206
7610297a
KR
42072017-09-06 Kamil Rytarowski <n54@gmx.com>
4208
4209 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4210
fbd1b771
JK
42112017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4212
4213 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4214 of TLS symbols.
4215
5ca79eae
PW
42162017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4217
4218 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4219 call.
4220
bf93d7ba
SM
42212017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4222
4223 * infrun.c (follow_exec): Call add_thread after
4224 target_find_description.
4225
1bb7c059
SM
42262017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4227
4228 * infrun.c (handle_inferior_event_1): When exec'ing, read
4229 stop_pc after follow_exec.
4230
fc809827
SM
42312017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4232
4233 * remote.c (process_g_packet): Update error message.
4234
d2fcdd85
YQ
42352017-09-05 Yao Qi <yao.qi@linaro.org>
4236
4237 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4238 targets.
4239
e69570ee
PA
42402017-09-05 Pedro Alves <palves@redhat.com>
4241
4242 * eval.c (eval_call, evaluate_funcall): New functions, factored
4243 out from ...
4244 (evaluate_subexp_standard): ... this.
4245
22916b07
YQ
42462017-09-05 Yao Qi <yao.qi@linaro.org>
4247
4248 * amd64-tdep.c (amd64_target_description): Create target
4249 descriptions.
4250 (_initialize_amd64_tdep): Don't call functions
4251 initialize_tdesc_amd64_*. Add self tests.
4252 * arch/amd64.c (amd64_create_target_description): Add parameter
4253 is_linux. Call set_tdesc_osabi if is_linux is true.
4254 * arch/amd64.h (amd64_create_target_description): Update the
4255 declaration.
4256 * arch/i386.c (i386_create_target_description): Add parameter
4257 is_linux. Call set_tdesc_osabi if is_linux is true.
4258 * arch/i386.h (i386_create_target_description): Update
4259 declaration.
4260 * configure.tgt: Add i386.o to gdb_target_obs.
4261 * features/Makefile (XMLTOC): Remove i386/*.xml.
4262 * features/i386/amd64-avx-avx512.c: Remove.
4263 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4264 * features/i386/amd64-avx-mpx.c: Remove.
4265 * features/i386/amd64-avx.c: Remove.
4266 * features/i386/amd64-mpx.c: Remove.
4267 * features/i386/amd64.c: Remove.
4268 * features/i386/i386-avx-avx512.c: Remove.
4269 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4270 * features/i386/i386-avx-mpx.c: Remove.
4271 * features/i386/i386-avx.c: Remove.
4272 * features/i386/i386-mmx.c: Remove.
4273 * features/i386/i386-mpx.c: Remove.
4274 * features/i386/i386.c: Remove.
4275 * i386-tdep.c: Don't include features/i386/i386*.c., include
4276 target-descriptions.h and arch/i386.h.
4277 (i386_target_description): Create target descriptions.
4278 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4279 functions. Do self tests.
4280
0854b7b1
YQ
42812017-09-05 Yao Qi <yao.qi@linaro.org>
4282
4283 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4284 * features/i386/amd64-avx-avx512-linux.c: Removed.
4285 * features/i386/amd64-avx-linux.c: Removed.
4286 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4287 * features/i386/amd64-avx-mpx-linux.c: Removed.
4288 * features/i386/amd64-linux.c: Removed.
4289 * features/i386/amd64-mpx-linux.c: Removed.
4290 * features/i386/x32-avx-avx512-linux.c: Removed.
4291 * features/i386/x32-avx-linux.c: Removed.
4292 * features/i386/x32-linux.c: Removed.
4293
b4570e4b
YQ
42942017-09-05 Yao Qi <yao.qi@linaro.org>
4295
4296 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4297 features/i386/*.c.
4298 (amd64_linux_read_description): Call
4299 amd64_create_target_description.
4300 * arch/amd64.c: New file.
4301 * arch/amd64.h: New file.
4302 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4303 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4304
6c73f67f
YQ
43052017-09-05 Yao Qi <yao.qi@linaro.org>
4306
4307 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4308 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4309 (amd64_linux_read_description): Create target descriptions.
4310 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4311 functions. Add unit tests.
4312 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4313 x32-core.xml.
4314 * features/i386/64bit-avx.c: Generated.
4315 * features/i386/64bit-avx512.c: Generated.
4316 * features/i386/64bit-core.c: Generated.
4317 * features/i386/64bit-linux.c: Generated.
4318 * features/i386/64bit-mpx.c: Generated.
4319 * features/i386/64bit-pkeys.c: Generated.
4320 * features/i386/64bit-segments.c: Generated.
4321 * features/i386/64bit-sse.c: Generated.
4322 * features/i386/x32-core.c: Generated.
4323 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4324 c files for amd64-linux and x32-linux.
4325
9d3d478b
YQ
43262017-09-05 Yao Qi <yao.qi@linaro.org>
4327
4328 * amd64-linux-tdep.c (amd64_linux_read_description): New
4329 function.
4330 (amd64_linux_core_read_description): Call
4331 amd64_linux_read_description.
4332 (amd64_linux_init_abi): Likewise.
4333 (amd64_x32_linux_init_abi): Likewise.
4334 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4335 * x86-linux-nat.c (x86_linux_read_description): Call
4336 amd64_linux_read_description.
4337
b9f1d50f
YQ
43382017-09-05 Yao Qi <yao.qi@linaro.org>
4339
4340 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4341 comments.
4342
188c9e6d
YQ
43432017-09-05 Yao Qi <yao.qi@linaro.org>
4344
4345 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4346 * features/i386/i386-avx-avx512-linux.c: Remove.
4347 * features/i386/i386-avx-linux.c: Remove.
4348 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4349 * features/i386/i386-avx-mpx-linux.c: Remove.
4350 * features/i386/i386-linux.c: Remove.
4351 * features/i386/i386-mmx-linux.c: Remove.
4352 * features/i386/i386-mpx-linux.c: Remove.
4353
5f035c07
YQ
43542017-09-05 Yao Qi <yao.qi@linaro.org>
4355
4356 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4357 (SFILES): Add arch/i386.c.
4358 (HFILES_NO_SRCDIR): Add arch/i386.h.
4359 * arch/i386.c: New file.
4360 * arch/i386.h: New file.
4361 * arch/tdesc.h (allocate_target_description): Declare.
4362 (set_tdesc_architecture): Declare.
4363 (set_tdesc_osabi): Declare.
4364 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4365 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4366 include arch/i386.h.
4367 (i386_linux_read_description): Remove code and call
4368 i386_create_target_description.
4369 (set_tdesc_architecture): New function.
4370 (set_tdesc_osabi): New function.
4371 * target-descriptions.h (allocate_target_description): Remove.
4372
0abe8a89
YQ
43732017-09-05 Yao Qi <yao.qi@linaro.org>
4374
4375 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4376 * target-descriptions.c (tdesc_create_feature): Likewise, and
4377 adjust code.
4378 * features/i386/32bit-avx.c: Re-generated.
4379 * features/i386/32bit-avx512.c: Re-generated.
4380 * features/i386/32bit-core.c: Re-generated.
4381 * features/i386/32bit-linux.c: Re-generated.
4382 * features/i386/32bit-mpx.c: Re-generated.
4383 * features/i386/32bit-pkeys.c: Re-generated.
4384 * features/i386/32bit-sse.c: Re-generated.
4385
0a188386
YQ
43862017-09-05 Yao Qi <yao.qi@linaro.org>
4387
4388 * regformats/regdef.h (struct reg): Override operator == and !=.
4389
f49ff000
YQ
43902017-09-05 Yao Qi <yao.qi@linaro.org>
4391
4392 * arch/tdesc.h: New file.
4393 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4394 * target-descriptions.c: Update comments.
4395 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4396 declarations.
4397 * features/i386/32bit-avx.c: Re-generated.
4398 * features/i386/32bit-avx512.c: Re-generated.
4399 * features/i386/32bit-core.c: Re-generated.
4400 * features/i386/32bit-linux.c: Re-generated.
4401 * features/i386/32bit-mpx.c: Re-generated.
4402 * features/i386/32bit-pkeys.c: Re-generated.
4403 * features/i386/32bit-sse.c: Re-generated.
4404
f7000548
YQ
44052017-09-05 Yao Qi <yao.qi@linaro.org>
4406
4407 * regformats/regdat.sh: Update generated code.
4408
c9a5e2a5
YQ
44092017-09-05 Yao Qi <yao.qi@linaro.org>
4410
4411 * regformats/regdat.sh: Adjust code order.
4412
d6b687ac
SM
44132017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4414
4415 * expprint.c (dump_subexp_body_standard): Use constant format
4416 string in fprintf_filtered call.
4417
a379bfd0
JB
44182017-09-04 John Baldwin <jhb@FreeBSD.org>
4419
4420 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4421 NetBSD/i386.
4422 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4423
f7efc967
JB
44242017-09-04 John Baldwin <jhb@FreeBSD.org>
4425
4426 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4427
c49fbc6c
JB
44282017-09-04 John Baldwin <jhb@FreeBSD.org>
4429
4430 * bsd-kvm.o: Define _KMEMUSER.
4431 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4432 * configure: Regenerate.
4433
26562e73
JB
44342017-09-04 John Baldwin <jhb@FreeBSD.org>
4435
4436 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4437 * i386-fbsd-nat.c: Likewise.
4438
31cf1487
JB
44392017-09-04 John Baldwin <jhb@FreeBSD.org>
4440
4441 * unittests/array-view-selftests.c: Add include of <array>.
4442
5b9f8a7c
JB
44432017-09-04 John Baldwin <jhb@FreeBSD.org>
4444
4445 * spu-tdep.c (flush_ea_cache): Add missing argument to
4446 call_function_by_hand.
4447
d69cf9b2
PA
44482017-09-04 Pedro Alves <palves@redhat.com>
4449
4450 * NEWS (Safer support for debugging with no debug info): New.
4451
3693fdb3
PA
44522017-09-04 Pedro Alves <palves@redhat.com>
4453
4454 * c-exp.y (function_method, function_method_void): Add current
4455 instance flags to TYPE_INSTANCE.
4456 * dwarf2read.c (check_modifier): New.
4457 (compute_delayed_physnames): Assert that only C++ adds delayed
4458 physnames. Mark fn_fields as const/volatile depending on
4459 physname.
4460 * eval.c (make_params): New type_instance_flags parameter. Use
4461 it as the new type's instance flags.
4462 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4463 flags element and pass it to make_params.
4464 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4465 instance flags element.
4466 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4467 * gdbtypes.h: Include "enum-flags.h".
4468 (type_instance_flags): New enum-flags type.
4469 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4470 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4471 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4472 (follow_type_instance_flags): New function.
4473 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4474 * parser-defs.h (follow_type_instance_flags): Declare.
4475 * valops.c (value_struct_elt_for_reference): const/volatile must
4476 match too.
4477
e68cb8e0
PA
44782017-09-04 Pedro Alves <palves@redhat.com>
4479
4480 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4481 function/method scopes; lookup the nested name as a function local
4482 static variable.
4483
858be34c
PA
44842017-09-04 Pedro Alves <palves@redhat.com>
4485
4486 (%type <voidval>): Add function_method.
4487 * c-exp.y (exp): New production for calls with no arguments.
4488 (function_method, function_method_void_or_typelist): New
4489 productions.
4490 (exp): New production for "method()::static_var".
4491 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4492 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4493 Handle OP_FUNC_STATIC_VAR.
4494 * parse.c (operator_length_standard):
4495 Handle OP_FUNC_STATIC_VAR.
4496
dd5901a6
PA
44972017-09-04 Pedro Alves <palves@redhat.com>
4498
4499 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4500 handling.
4501 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4502 Ditto.
4503 * parse.c (operator_length_standard, operator_check_standard):
4504 Ditto.
4505 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4506
46a4882b
PA
45072017-09-04 Pedro Alves <palves@redhat.com>
4508
4509 * ax-gdb.c: Include "typeprint.h".
4510 (gen_expr_for_cast): New function.
4511 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4512 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4513 type is unknown.
4514 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4515 nodebug_data_symbol.
4516 * eval.c: Include "typeprint.h".
4517 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4518 Error out if symbol has unknown type.
4519 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4520 evaluate_subexp_for_cast.
4521 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4522 OP_VAR_MSYM_VALUE.
4523 (evaluate_subexp_for_cast): New function.
4524 * gdbtypes.c (init_nodebug_var_type): New function.
4525 (objfile_type): Use it to initialize types of variables with no
4526 debug info.
4527 * typeprint.c (error_unknown_type): New.
4528 * typeprint.h (error_unknown_type): New declaration.
4529 * compile/compile-c-types.c (convert_type_basic): Handle
4530 TYPE_CODE_ERROR; warn and fallback to int for variables with
4531 unknown type.
4532
fe13dfec
PA
45332017-09-04 Pedro Alves <palves@redhat.com>
4534
4535 * eval.c (evaluate_var_value): New function, factored out from ...
4536 (evaluate_subexp_standard): ... here.
4537
d008ee21
PA
45382017-09-04 Pedro Alves <palves@redhat.com>
4539
4540 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4541 Remove useless assignments to 'op'.
4542
827d0c51
PA
45432017-09-04 Pedro Alves <palves@redhat.com>
4544
4545 * eval.c (eval_skip_value): New function.
4546 (evaluate_subexp_standard): Use it.
4547
2c5a2be1
PA
45482017-09-04 Pedro Alves <palves@redhat.com>
4549
4550 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4551 function name from symbol/minsym and pass it to
4552 error_call_unknown_return_type.
4553
74ea4be4
PA
45542017-09-04 Pedro Alves <palves@redhat.com>
4555
4556 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4557 * ax-gdb.c (gen_msym_var_ref): New function.
4558 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4559 * eval.c (evaluate_var_msym_value): New function.
4560 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4561 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4562 to call_function_by_hand.
4563 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4564 Handle OP_VAR_MSYM_VALUE.
4565 (union exp_element) <msymbol>: New field.
4566 * minsyms.h (struct type): Forward declare.
4567 (find_minsym_type_and_address): Declare.
4568 * parse.c (write_exp_elt_msym): New function.
4569 (write_exp_msymbol): Delete, refactored as ...
4570 (find_minsym_type_and_address): ... this new function.
4571 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4572 (operator_length_standard, operator_check_standard): Handle
4573 OP_VAR_MSYM_VALUE.
4574 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4575
7022349d
PA
45762017-09-04 Pedro Alves <palves@redhat.com>
4577
4578 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4579 TYPE_GNU_IFUNC specially here. Throw error if return type is
4580 unknown.
4581 * ada-typeprint.c (print_func_type): Handle functions with unknown
4582 return type.
4583 * c-typeprint.c (c_type_print_base): Handle functions and methods
4584 with unknown return type.
4585 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4586 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4587 * compile/compile-c-types.c: Include "objfiles.h".
4588 (convert_func): For functions with unknown return type, warn and
4589 default to int.
4590 * compile/compile-object-run.c (compile_object_run): Adjust call
4591 to call_function_by_hand_dummy.
4592 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4593 call_function_by_hand.
4594 * eval.c (evaluate_subexp_standard): Adjust calls to
4595 call_function_by_hand. Handle functions and methods with unknown
4596 return type. Pass expect_type to call_function_by_hand.
4597 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4598 return type.
4599 * gcore.c (call_target_sbrk): Adjust call to
4600 call_function_by_hand.
4601 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4602 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4603 an integer address type instead of nodebug.
4604 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4605 call_function_by_hand.
4606 * infcall.c (error_call_unknown_return_type): New function.
4607 (call_function_by_hand): New "default_return_type" parameter.
4608 Pass it down.
4609 (call_function_by_hand_dummy): New "default_return_type"
4610 parameter. Use it instead of defaulting to int. If there's no
4611 default and the return type is unknown, throw an error. If
4612 there's a default return type, and the called function has no
4613 debug info, then assume the function is prototyped.
4614 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4615 New "default_return_type" parameter.
4616 (error_call_unknown_return_type): New declaration.
4617 * linux-fork.c (call_lseek): Cast return type of lseek.
4618 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4619 call_function_by_hand.
4620 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4621 calls to call_function_by_hand.
4622 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4623 return type.
4624 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4625 (value_nsstring, print_object_command): Adjust calls to
4626 call_function_by_hand.
4627 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4628 functions with unknown return type.
4629 (pascal_type_print_func_varspec_suffix): New function.
4630 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4631 TYPE_CODE_METHOD>: Use it.
4632 * python/py-value.c (valpy_call): Adjust call to
4633 call_function_by_hand.
4634 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4635 call_function_by_hand.
4636 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4637 call_function_by_hand.
4638 * valops.c (value_allocate_space_in_inferior): Adjust call to
4639 call_function_by_hand.
4640 * typeprint.c (type_print_unknown_return_type): New function.
4641 * typeprint.h (type_print_unknown_return_type): New declaration.
4642
54990598
PA
46432017-09-04 Pedro Alves <palves@redhat.com>
4644
4645 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4646 types with more than one parameter as prototyped.
4647
9a24775b
PA
46482017-09-04 Pedro Alves <palves@redhat.com>
4649
4650 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4651 (disassemble_command): Use gdb_disassembly_flags instead of bare
4652 int.
4653 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4654 (dump_insns, do_mixed_source_and_assembly_deprecated)
4655 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4656 Use gdb_disassembly_flags instead of bare int.
4657 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4658 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4659 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4660 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4661 (enum gdb_disassembly_flag): ... values of this new enumeration.
4662 (gdb_disassembly_flags): Define.
4663 (gdb_disassembly)
4664 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4665 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4666 gdb_disassembly_flags instead of bare int.
4667 * record-btrace.c (btrace_insn_history)
4668 (record_btrace_insn_history, record_btrace_insn_history_range)
4669 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4670 instead of bare int.
4671 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4672 Use gdb_disassembly_flags instead of bare int.
4673 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4674 Define.
4675 * target-delegates.c: Regenerate.
4676 * target.c (target_insn_history, target_insn_history_from)
4677 (target_insn_history_range): Use gdb_disassembly_flags instead of
4678 bare int.
4679 * target.h: Include "disasm.h".
4680 (struct target_ops) <to_insn_history, to_insn_history_from,
4681 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4682 int.
4683 (target_insn_history, target_insn_history_from)
4684 (target_insn_history_range): Use gdb_disassembly_flags instead of
4685 bare int.
4686
80a65e9b
SM
46872017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4688
4689 * cli/cli-script.c (build_command_line): For if/while commands,
4690 check whether args is empty.
4691
6b66338c
SM
46922017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4693
4694 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4695 (enum command_control_type): Likewise.
4696 (struct command_line): Likewise.
4697 (free_command_lines): Likewise.
4698 (struct command_lines_deleter): Likewise.
4699 (command_line_up): Likewise.
4700 (read_command_lines): Likewise.
4701 (read_command_lines_1): Likewise.
4702 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4703 (enum command_control_type): Likewise.
4704 (struct command_line): Likewise.
4705 (free_command_lines): Likewise.
4706 (struct command_lines_deleter): Likewise.
4707 (command_line_up): Likewise.
4708 (read_command_lines): Likewise.
4709 (read_command_lines_1): Likewise.
4710 * breakpoint.h: Include cli/cli-script.h.
4711 * extension-priv.h: Likewise.
4712 * gdbcmd.h: Likewise.
4713
51abb421
PA
47142017-09-04 Pedro Alves <palves@redhat.com>
4715
4716 * ada-lang.c (is_known_support_routine): Move sal declaration to
4717 where it is initialized.
4718 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4719 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4720 (clear_command, update_static_tracepoint): Remove init_sal
4721 references. Move declarations closer to initializations.
4722 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4723 initializations.
4724 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4725 references. Move sal declarations closer to initializations.
4726 * frame.c (find_frame_sal): Return a symtab_and_line via function
4727 return instead of output parameter. Remove init_sal references.
4728 * frame.h (find_frame_sal): Return a symtab_and_line via function
4729 return instead of output parameter.
4730 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4731 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4732 instead of memset.
4733 (gdbscm_find_pc_line): Remove init_sal reference.
4734 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4735 references. Move declarations closer to initializations.
4736 * infcmd.c (set_step_frame): Update. Move declarations closer to
4737 initializations.
4738 (finish_backward): Remove init_sal references. Move declarations
4739 closer to initializations.
4740 * infrun.c (process_event_stop_test, handle_step_into_function)
4741 (insert_hp_step_resume_breakpoint_at_frame)
4742 (insert_step_resume_breakpoint_at_caller): Likewise.
4743 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4744 (symbol_to_sal): Likewise.
4745 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4746 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4747 to its initialization.
4748 * reverse.c (save_bookmark_command): Use new/delete. Remove
4749 init_sal references. Move declarations closer to initializations.
4750 * source.c (get_current_source_symtab_and_line): Remove brace
4751 initialization.
4752 (set_current_source_symtab_and_line): Now takes the sal by const
4753 reference. Remove brace initialization.
4754 (line_info): Remove init_sal reference.
4755 * source.h (set_current_source_symtab_and_line): Now takes a
4756 symtab_and_line via const reference.
4757 * stack.c (set_current_sal_from_frame): Adjust.
4758 (print_frame_info): Adjust.
4759 (get_last_displayed_sal): Return the sal via function return
4760 instead of via output parameter. Simplify.
4761 (frame_info): Adjust.
4762 * stack.h (get_last_displayed_sal): Return the sal via function
4763 return instead of via output parameter.
4764 * symtab.c (init_sal): Delete.
4765 (find_pc_sect_line): Remove init_sal references. Move
4766 declarations closer to initializations.
4767 (find_function_start_sal): Remove init_sal references. Move
4768 declarations closer to initializations.
4769 * symtab.h (struct symtab_and_line): In-class initialize all
4770 fields.
4771 * tracepoint.c (set_traceframe_context)
4772 (print_one_static_tracepoint_marker): Remove init_sal references.
4773 Move declarations closer to initializations.
4774 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
4775 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
4776 declarations closer to initializations.
4777 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
4778 init_sal references. Adjust.
4779
6c5b2ebe
PA
47802017-09-04 Pedro Alves <palves@redhat.com>
4781
4782 * ax-gdb.c (agent_command_1): Use range-for.
4783 * break-catch-throw.c (re_set_exception_catchpoint): Update.
4784 * breakpoint.c: Include "common/array-view.h".
4785 (init_breakpoint_sal, create_breakpoint_sal): Change sals
4786 parameter from struct symtabs_and_lines to
4787 array_view<symtab_and_line>. Adjust. Use range-for. Update.
4788 (breakpoint_sals_to_pc): Change sals parameter from struct
4789 symtabs_and_lines to std::vector reference.
4790 (check_fast_tracepoint_sals): Change sals parameter from struct
4791 symtabs_and_lines to std::array_view. Use range-for.
4792 (decode_static_tracepoint_spec): Return a std::vector instead of
4793 symtabs_and_lines. Update.
4794 (create_breakpoint): Update.
4795 (break_range_command, until_break_command, clear_command): Update.
4796 (base_breakpoint_decode_location, bkpt_decode_location)
4797 (bkpt_probe_create_sals_from_location)
4798 (bkpt_probe_decode_location, tracepoint_decode_location)
4799 (tracepoint_probe_decode_location)
4800 (strace_marker_create_sals_from_location): Return a std::vector
4801 instead of symtabs_and_lines.
4802 (strace_marker_create_breakpoints_sal): Update.
4803 (strace_marker_decode_location): Return a std::vector instead of
4804 symtabs_and_lines. Update.
4805 (update_breakpoint_locations): Change struct symtabs_and_lines
4806 parameters to gdb::array_view. Adjust.
4807 (location_to_sals): Return a std::vector instead of
4808 symtabs_and_lines. Update.
4809 (breakpoint_re_set_default): Use std::vector instead of struct
4810 symtabs_and_lines.
4811 (decode_location_default): Return a std::vector instead of
4812 symtabs_and_lines. Update.
4813 * breakpoint.h: Include "common/array-view.h".
4814 (struct breakpoint_ops) <decode_location>: Now returns a
4815 std::vector instead of returning a symtabs_and_lines via output
4816 parameter.
4817 (update_breakpoint_locations): Change sals parameters to use
4818 gdb::array_view.
4819 * cli/cli-cmds.c (edit_command, list_command): Update to use
4820 std::vector and gdb::array_view.
4821 (ambiguous_line_spec): Adjust to use gdb::array_view and
4822 range-for.
4823 (compare_symtabs): Rename to ...
4824 (cmp_symtabs): ... this. Change parameters to symtab_and_line
4825 const reference and adjust.
4826 (filter_sals): Rewrite using std::vector and standard algorithms.
4827 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
4828 (jump_command): Update to use std::vector.
4829 * linespec.c (struct linespec_state) <canonical_names>: Update
4830 comment.
4831 (add_sal_to_sals_basic): Delete.
4832 (add_sal_to_sals, filter_results, convert_results_to_lsals)
4833 (decode_line_2, create_sals_line_offset)
4834 (convert_address_location_to_sals, convert_linespec_to_sals)
4835 (convert_explicit_location_to_sals, parse_linespec)
4836 (event_location_to_sals, decode_line_full, decode_line_1)
4837 (decode_line_with_current_source)
4838 (decode_line_with_last_displayed, decode_objc)
4839 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
4840 (linespec_result::~linespec_result): Adjust to use std::vector
4841 instead of symtabs_and_lines.
4842 * linespec.h (linespec_sals::sals): Now a std::vector.
4843 (struct linespec_result): Use std::vector, bool, and in-class
4844 initialization.
4845 (decode_line_1, decode_line_with_current_source)
4846 (decode_line_with_last_displayed): Return std::vector.
4847 * macrocmd.c (info_macros_command): Use std::vector.
4848 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
4849 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
4850 std::vector.
4851 * probe.h (parse_probes): Return a std::vector.
4852 * python/python.c (gdbpy_decode_line): Use std::vector and
4853 gdb::array_view.
4854 * source.c (select_source_symtab, line_info): Use std::vector.
4855 * stack.c (func_command): Use std::vector.
4856 * symtab.h (struct symtabs_and_lines): Delete.
4857 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
4858
7c44b49c
PA
48592017-09-04 Pedro Alves <palves@redhat.com>
4860
4861 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4862 unittests/array-view-selftests.c.
4863 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
4864 * common/array-view.h: New file.
4865 * unittests/array-view-selftests.c: New file.
4866
e439fa14
PA
48672017-09-04 Pedro Alves <palves@redhat.com>
4868
4869 * cli/cli-cmds.c (edit_command): Pass message to
4870 ambiguous_line_spec.
4871 (list_command): Pass message to ambiguous_line_spec. Say
4872 "first"/"last" instead of "start" and "end" to be consistent with
4873 the manual.
4874 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
4875 them to print formatted message.
4876
7525b645
PA
48772017-09-04 Pedro Alves <palves@redhat.com>
4878
4879 * btrace.c (ftrace_add_pt): Pass btrace_insn to
4880 ftrace_update_insns by reference instead of pointer.
4881
badc0020
YQ
48822017-09-04 Yao Qi <yao.qi@linaro.org>
4883
4884 * i386-go32-tdep.c: Include x86-xstate.h.
4885 (i386_go32_init_abi): Call i386_target_description.
4886 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
4887 if xcr0 is X86_XSTATE_X87_MASK.
4888 * i386-tdep.h (tdesc_i386): Remove the declaration.
4889 (tdesc_i386_mmx): Likewise.
4890
d78bdb54
YQ
48912017-09-04 Yao Qi <yao.qi@linaro.org>
4892
4893 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
4894 X86_XSTATE_SSE_MASK instead of 0.
4895
ca1fa5ee
YQ
48962017-09-04 Yao Qi <yao.qi@linaro.org>
4897
4898 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
4899 i386_target_description.
4900 * i386-fbsd-nat.c (i386fbsd_read_description): Call
4901 i386_target_description.
4902 * i386-tdep.c (i386_gdbarch_init): Likewise.
4903
2434b019
YQ
49042017-09-04 Yao Qi <yao.qi@linaro.org>
4905
4906 * amd64-darwin-tdep.c: Include "x86-xstate.h".
4907 (x86_darwin_init_abi_64): Call amd64_target_description.
4908 * amd64-dicos-tdep.c: Likewise.
4909 * amd64-fbsd-nat.c: Likewise.
4910 * amd64-fbsd-tdep.c: Likewise.
4911 * amd64-nbsd-tdep.c: Likewise.
4912 * amd64-obsd-tdep.c: Likewise.
4913 * amd64-sol2-tdep.c: Likewise.
4914 * amd64-windows-tdep.c: Likewise.
4915 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
4916
0860c437
SM
49172017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4918
4919 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
4920 (btrace_function) <insn>: Change type to use std::vector.
4921 * btrace.c (ftrace_debug, ftrace_call_num_insn,
4922 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
4923 ftrace_update_insns, ftrace_compute_global_level_offset,
4924 btrace_stitch_bts, btrace_clear, btrace_insn_get,
4925 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
4926 change to std::vector.
4927 (ftrace_update_insns): Adjust to change to std::vector, change
4928 type of INSN parameter.
4929 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
4930 * record-btrace.c (btrace_call_history_insn_range,
4931 btrace_compute_src_line_range,
4932 record_btrace_frame_prev_register): Adjust to change to
4933 std::vector.
4934 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
4935 to change to std::vector.
4936
0638b7f9
TT
49372017-09-03 Tom Tromey <tom@tromey.com>
4938
4939 * corefile.c (reopen_exec_file): Use std::string.
4940
8f84fb0e
TT
49412017-09-03 Tom Tromey <tom@tromey.com>
4942
4943 * compile/compile.c (compile_register_name_mangled): Return
4944 std::string.
4945 * compile/compile-loc2c.c (pushf_register_address): Update.
4946 (pushf_register): Update.
4947 * compile/compile-c-types.c (convert_array): Update.
4948 * compile/compile-c-symbols.c (generate_vla_size): Update.
4949 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
4950 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
4951 (convert_one_symbol): Update.
4952 (generate_c_for_for_one_variable): Update.
4953 * compile/compile-c-support.c (c_get_range_decl_name): Return a
4954 std::string.
4955 (generate_register_struct): Update.
4956 * compile/compile-internal.h (c_get_range_decl_name): Return a
4957 std::string.
4958 (compile_register_name_mangled): Return std::string.
4959
18e9961f
TT
49602017-09-03 Tom Tromey <tom@tromey.com>
4961
4962 * utils.c (perror_string): Return a std::string.
4963 (throw_perror_with_name, perror_warning_with_name): Update.
4964
45343786
TT
49652017-09-03 Tom Tromey <tom@tromey.com>
4966
4967 * demangle.c (demangle_command): Use std::string,
4968 unique_xmalloc_ptr.
4969
b57af503
TT
49702017-09-03 Tom Tromey <tom@tromey.com>
4971
4972 * cli/cli-setshow.c (do_set_command): Use std::string.
4973
6eecf35f
TT
49742017-09-03 Tom Tromey <tom@tromey.com>
4975
4976 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
4977
56496dd4
TT
49782017-09-03 Tom Tromey <tom@tromey.com>
4979
4980 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
4981
e91a1fa7
TT
49822017-09-03 Tom Tromey <tom@tromey.com>
4983
4984 * mi/mi-cmd-env.c (env_execute_cli_command): Use
4985 gdb::unique_xmalloc_ptr.
4986
7ffd83d7
TT
49872017-09-03 Tom Tromey <tom@tromey.com>
4988
4989 * thread.c (print_thread_info_1): Use string_printf.
4990 (thread_apply_command, thread_apply_all_command): Use
4991 std::string.
4992
1ccbe998
TT
49932017-09-03 Tom Tromey <tom@tromey.com>
4994
4995 * valprint.c (val_print_string): Update.
4996 * gdbcore.h (memory_error_message): Return std::string.
4997 * corefile.c (memory_error_message): Return std::string.
4998 (memory_error): Update.
4999 * breakpoint.c (insert_bp_location): Update.
5000
23fdd69e
SM
50012017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5002
5003 * target/waitstatus.h (target_waitstatus_to_string): Change
5004 return type to std::string.
5005 * target/waitstatus.c (target_waitstatus_to_string): Return
5006 std::string.
5007 * target.h (target_waitstatus_to_string): Remove declaration.
5008 * infrun.c (resume, clear_proceed_status_thread,
5009 print_target_wait_results, do_target_wait, save_waitstatus,
5010 stop_all_threads): Adjust.
5011 * record-btrace.c (record_btrace_wait): Adjust.
5012 * target-debug.h
5013 (target_debug_print_struct_target_waitstatus_p): Adjust.
5014
5c811d30
JK
50152017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5016
5017 PR gdb/22046
5018 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5019 detection.
5020
0a2dde4a
SDJ
50212017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5022
5023 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5024 for setting/unsetting environment variables on the remote target.
5025 (New remote packets): Add entries for QEnvironmentHexEncoded,
5026 QEnvironmentUnset and QEnvironmentReset.
5027 * common/environ.c (gdb_environ::operator=): Extend method to
5028 handle m_user_set_env_list and m_user_unset_env_list.
5029 (gdb_environ::clear): Likewise.
5030 (match_var_in_string): Change type of first parameter from 'char
5031 *' to 'const char *'.
5032 (gdb_environ::set): Extend method to handle
5033 m_user_set_env_list and m_user_unset_env_list.
5034 (gdb_environ::unset): Likewise.
5035 (gdb_environ::clear_user_set_env): New method.
5036 (gdb_environ::user_set_envp): Likewise.
5037 (gdb_environ::user_unset_envp): Likewise.
5038 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5039 m_user_unset_env_list on move constructor/assignment.
5040 (unset): Add new default parameter 'update_unset_list = true'.
5041 (clear_user_set_env): New method.
5042 (user_set_envp): Likewise.
5043 (user_unset_envp): Likewise.
5044 (m_user_set_env_list): New std::set.
5045 (m_user_unset_env_list): Likewise.
5046 * common/rsp-low.c (hex2str): New function.
5047 (bin2hex): New overload for bin2hex function.
5048 * common/rsp-low.c (hex2str): New prototype.
5049 (str2hex): New overload prototype.
5050 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5051 QEnvironmentUnset and QEnvironmentReset.
5052 (remote_protocol_features): Add QEnvironmentHexEncoded,
5053 QEnvironmentUnset and QEnvironmentReset packets.
5054 (send_environment_packet): New function.
5055 (extended_remote_environment_support): Likewise.
5056 (extended_remote_create_inferior): Call
5057 extended_remote_environment_support.
5058 (_initialize_remote): Add QEnvironmentHexEncoded,
5059 QEnvironmentUnset and QEnvironmentReset packet configs.
5060 * unittests/environ-selftests.c (gdb_selftest_env_var):
5061 New variable.
5062 (test_vector_initialization): New function.
5063 (test_init_from_host_environ): Likewise.
5064 (test_reinit_from_host_environ): Likewise.
5065 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5066 Likewise.
5067 (test_unset_set_empty_vector): Likewise.
5068 (test_vector_clear): Likewise.
5069 (test_std_move): Likewise.
5070 (test_move_constructor):
5071 (test_self_move): Likewise.
5072 (test_set_unset_reset): Likewise.
5073 (run_tests): Rewrite in terms of the functions above.
5074
654670a4
WP
50752017-08-31 Weimin Pan <weimin.pan@oracle.com>
5076
5077 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5078 (adi_available): Use a temp variable of type CORE_ADDR as argument
5079 3 when calling target_auxv_search.
5080 (adi_normalize_address): Use masks and xor operators to calculate
5081 normalized address.
5082 (adi_read_versions, adi_write_versions, adi_print_versions)
5083 (do_examine, do_assign): Use paddress.
5084
7755ddb7
JB
50852017-08-29 John Baldwin <jhb@FreeBSD.org>
5086
5087 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5088 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5089 out of loop and add supply of FIR.
5090 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5091 add collect of FIR.
5092
fd437cbc
SM
50932017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5094
3804a343 5095 PR gdb/21827
fd437cbc
SM
5096 * cli/cli-script.c (define_command): Don't convert command name
5097 to lower case.
5098
988f6b3d
JB
50992017-08-25 Joel Brobecker <brobecker@adacore.com>
5100
5101 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5102 Update all callers accordingly. Remove all code blocks handling
5103 the case where DISPP is not NULL.
5104
663c44ac
JK
51052017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5106
5107 PR symtab/22003
5108 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5109 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5110 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5111
f1902523
JK
51122017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5113
5114 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5115 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5116 (read_comp_units_from_section): New parameter abbrev_section, use
5117 read_and_check_comp_unit_head, allocate signatured_type if needed.
5118 (create_all_comp_units): Update read_comp_units_from_section caller.
5119
87215ad1
SDJ
51202017-08-23 Pedro Alves <palves@redhat.com>
5121
5122 PR remote/21852
5123 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5124 to null_ptid and switch to thread without reading the registers
5125 after adding the inferior.
5126
6e41ddec
JK
51272017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5128
5129 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5130 compile-gcc.
5131 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5132 (compile_to_object): Implement compile_gcc.
5133 (_initialize_compile): Install "set compile-gcc". Initialize
5134 compile_gcc.
5135
e68c32d5
JK
51362017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5137
5138 * compile/compile.c (compile_to_object): Conditionally call
5139 set_verbose. Conditionally call compile or compile_v0.
5140
58afddc6
WP
51412017-08-07 Weimin Pan <weimin.pan@oracle.com>
5142
5143 * sparc64-tdep.h: (adi_normalize_address): New export.
5144 * sparc-nat.h: (open_adi_tag_fd): New export.
5145 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5146 * sparc64-linux-tdep.c:
5147 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5148 (sparc64_linux_handle_segmentation_fault): New function.
5149 (sparc64_linux_init_abi): Register
5150 sparc64_linux_handle_segmentation_fault
5151 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5152 (sparc64_addr_bits_remove): New function.
5153 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5154 (MAX_PROC_NAME_SIZE): New macro.
5155 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5156 (sparc64adilist): New variable.
5157 (adi_proc_list): New variable.
5158 (find_adi_info): New function.
5159 (add_adi_info): New function.
5160 (get_adi_info_proc): New function.
5161 (get_adi_info): New function.
5162 (info_adi_command): New function.
5163 (read_maps_entry): New function.
5164 (adi_available): New function.
5165 (adi_normalize_address): New function.
5166 (adi_align_address): New function.
5167 (adi_convert_byte_count): New function.
5168 (adi_tag_fd): New function.
5169 (adi_is_addr_mapped): New function.
5170 (adi_read_versions): New function.
5171 (adi_write_versions): New function.
5172 (adi_print_versions): New function.
5173 (do_examine): New function.
5174 (do_assign): New function.
5175 (adi_examine_command): New function.
5176 (adi_assign_command): New function.
5177 (_initialize_sparc64_adi_tdep): New function.
5178
11db9430
SM
51792017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5180
5181 * breakpoint.c (breakpoints_info): Rename to ...
5182 (info_breakpoints_command): ... this.
5183 (watchpoints_info): Rename to ...
5184 (info_watchpoints_command): ... this.
5185 (tracepoints_info): Rename to ...
5186 (info_tracepoints_command): ... this.
5187 (_initialize_breakpoint): Adjust.
5188 * dcache.c (dcache_info): Rename to ...
5189 (info_display_command): ... this.
5190 (_initialize_dcache): Adjust.
5191 * frame.h (args_info): Rename to ...
5192 (info_args_command): ... this.
5193 (locals_info): Rename to ...
5194 (info_locals_command): ... this.
5195 * infcmd.c (nofp_registers_info): Rename to ...
5196 (info_registers_command): ... this.
5197 (float_info): Rename to ...
5198 (info_float_command): ... this.
5199 (program_info): Rename to ...
5200 (info_program_command): ... this.
5201 (all_registers_info): Rename to ...
5202 (info_all_registers_command): ... this.
5203 (vector_info): Rename to ...
5204 (info_vector_command): ... this.
5205 (float_info): Rename to ...
5206 (info_float_command): ... this.
5207 (_initialize_infcmd): Adjust.
5208 * inferior.h (term_info): Rename to ...
5209 (info_terminal_command): ... this.
5210 * inflow.c (term_info): Rename to ...
5211 (info_terminal_command): ... this.
5212 (_initialize_inflow): Adjust.
5213 * infrun.c (signals_info): Rename to ...
5214 (info_signals_command): ... this.
5215 (_initialize_infrun): Adjust.
5216 * objc-lang.c (classes_info): Rename to ...
5217 (info_classes_command): ... this.
5218 (selectors_info): Rename to ...
5219 (info_selectors_command): ... this.
5220 (_initialize_objc_language): Adjust.
5221 * printcmd.c (sym_info): Rename to ...
5222 (info_symbol_command): ... this.
5223 (address_info): Rename to ...
5224 (info_address_command): ... this.
5225 (display_info): Rename to ...
5226 (info_display_command): ... this.
5227 (_initialize_printcmd): Adjust.
5228 * reverse.c (bookmarks_info): Rename to ...
5229 (info_breakpoints_command): ... this.
5230 (_initialize_reverse): Adjust.
5231 * ser-go32.c (dos_info): Rename to ...
5232 (info_serial_command): ... this.
5233 (_initialize_ser_dos): Adjust.
5234 * skip.c (skip_info): Rename to ...
5235 (info_skip_command): ... this.
5236 (_initialize_step_skip): Adjust.
5237 * source.c (line_info): Rename to ...
5238 (info_line_command): ... this.
5239 (source_info): Rename to ...
5240 (info_source_command)
5241 * stack.c (frame_info): Rename to ...
5242 (info_frame_command): ... this.
5243 (locals_info): Rename to ...
5244 (info_locals_command): ... this.
5245 (args_info): Rename to ...
5246 (info_args_command): ... this.
5247 (_initialize_stack): Adjust.
5248 * symtab.c (sources_info): Rename to ...
5249 (info_sources_command): ... this.
5250 (variables_info): Rename to ...
5251 (info_variables_command): ... this.
5252 (functions_info): Rename to ...
5253 (info_functions_command): ... this.
5254 (types_info): Rename to ...
5255 (info_types_command): ... this.
5256 (_initialize_symtab): Adjust.
5257 * target.c (target_info): Rename to ...
5258 (info_target_command): ... this.
5259 (initialize_targets): Adjust.
5260 * tracepoint.c (tvariables_info): Rename to ...
5261 (info_tvariables_command): ... this.
5262 (scope_info): Rename to ...
5263 (info_scope_command): ... this.
5264 (trace_dump_actions): Adjust.
5265 (_initialize_tracepoint): Adjust.
5266
b270e6f9
TT
52672017-08-22 Tom Tromey <tom@tromey.com>
5268
5269 * breakpoint.h (install_breakpoint): Update.
5270 * breakpoint.c (add_solib_catchpoint): Update.
5271 (install_breakpoint): Change argument to a std::unique_ptr.
5272 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5273 (create_breakpoint_sal, create_breakpoint): Update.
5274 (watch_command_1, catch_exec_command_1)
5275 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5276 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5277 Return the breakpoint.
5278 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5279 (new_single_step_breakpoint): Update.
5280 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5281 std::unique_ptr.
5282 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5283 std::unique_ptr.
5284 * break-catch-sig.c (create_signal_catchpoint): Use
5285 std::unique_ptr.
5286 * ada-lang.c (create_ada_exception_catchpoint): Use
5287 std::unique_ptr.
5288
36bd8eaa
TT
52892017-08-22 Tom Tromey <tom@tromey.com>
5290
5291 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5292
56f37645
TT
52932017-08-22 Tom Tromey <tom@tromey.com>
5294
5295 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5296 (lookup_partial_symbol): Update.
5297
0b581c69
TT
52982017-08-22 Tom Tromey <tom@tromey.com>
5299
5300 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5301 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5302 (find_and_open_source, symtab_to_fullname): Update.
5303 * psymtab.c (psymtab_to_fullname): Update.
5304
14278e1f
TT
53052017-08-22 Tom Tromey <tom@tromey.com>
5306
5307 * exec.c (exec_file_attach): Update.
5308 * linux-thread-db.c (try_thread_db_load): Update.
5309 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5310 * utils.c (gdb_realpath): Change return type.
5311 (gdb_realpath_keepfile): Update.
5312 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5313 (_initialize_utils): Register the new self test.
5314 * source.c (openp): Update.
5315 (find_and_open_source): Update.
5316 * nto-tdep.c (nto_find_and_open_solib): Update.
5317 * main.c (set_gdb_data_directory): Update.
5318 (captured_main_1): Update.
5319 * dwarf2read.c (dwarf2_get_dwz_file): Update
5320 (dw2_map_symbol_filenames): Update.
5321 * auto-load.c (auto_load_safe_path_vec_update): Update.
5322 (filename_is_in_auto_load_safe_path_vec): Change type of
5323 "filename_realp".
5324 (auto_load_objfile_script): Update.
5325 (file_is_auto_load_safe): Update. Use std::string.
5326 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5327
4971c9a7
TT
53282017-08-22 Tom Tromey <tom@tromey.com>
5329
5330 * utils.c (gdb_realpath_keepfile): Return a
5331 gdb::unique_xmalloc_ptr.
5332 * exec.c (exec_file_attach): Update.
5333 * utils.h (gdb_realpath_keepfile): Return a
5334 gdb::unique_xmalloc_ptr.
5335
e3e41d58
TT
53362017-08-22 Tom Tromey <tom@tromey.com>
5337
5338 * compile/compile.c (compile_file_command): Use
5339 gdb::unique_xmalloc_ptr, std::string.
5340 * utils.c (gdb_abspath): Change return type.
5341 * source.c (openp): Update.
5342 * objfiles.c (allocate_objfile): Update.
5343 * main.c (set_gdb_data_directory): Update.
5344 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5345
0d999a6e
ZZ
53462017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5347
5348 * cli-cmds.c (list_commands): List actual code around more than
5349 one location.
5350
329d5e7e
JB
53512017-08-21 John Baldwin <jhb@FreeBSD.org>
5352
5353 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5354
bf223d3e
PA
53552017-08-21 Pedro Alves <palves@redhat.com>
5356
5357 PR gdb/19487
5358 * c-exp.y (variable production): Handle function aliases.
5359 * minsyms.c (msymbol_is_text): New function.
5360 * minsyms.h (msymbol_is_text): Declare.
5361 * symtab.c (find_function_alias_target): New function.
5362 * symtab.h (find_function_alias_target): Declare.
5363
c973d0aa
PA
53642017-08-21 Pedro Alves <palves@redhat.com>
5365
5366 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5367 typedefs.
5368 * typeprint.c (whatis_exp): If handling "whatis", and expression
5369 is OP_TYPE, strip one typedef level. Otherwise don't strip
5370 typedefs here.
5371 * valops.c (value_cast): Save "to" type before resolving
5372 stubs/typedefs. Use that type as resulting value's type.
5373
2989a365
TT
53742017-08-18 Tom Tromey <tom@tromey.com>
5375 Pedro Alves <palves@redhat.com>
5376
5377 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5378 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5379 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5380 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5381 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5382 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5383 (linux_get_siginfo_data): Add "thread" argument. Use
5384 scoped_restore.
5385 * linux-nat.c (linux_child_follow_fork)
5386 (check_stopped_by_watchpoint): Use scoped_restore.
5387 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5388 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5389 (restore_inferior_ptid, save_inferior_ptid): Remove.
5390 * btrace.c (btrace_fetch): Use scoped_restore.
5391 * bsd-uthread.c (bsd_uthread_fetch_registers)
5392 (bsd_uthread_store_registers): Use scoped_restore.
5393 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5394 scoped_restore.
5395 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5396 (aix_thread_xfer_partial): Use scoped_restore.
5397 * inferior.h (save_inferior_ptid): Remove.
5398
e60eb288
YQ
53992017-08-18 Yao Qi <yao.qi@linaro.org>
5400
5401 PR tdep/21818
5402 * arm-tdep.c (gdb_print_insn_arm): Mark
5403 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5404
6d580b63
YQ
54052017-08-18 Yao Qi <yao.qi@linaro.org>
5406
5407 * NEWS: Mention GDBserver's new option "--selftest".
5408 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5409 * selftest.c: Move it to common/selftest.c.
5410 * selftest.h: Move it to common/selftest.h.
5411 * selftest-arch.c (reset): New function.
5412 (tests_with_arch): Call reset.
5413
86dcbf50
YQ
54142017-08-18 Yao Qi <yao.qi@linaro.org>
5415
5416 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5417 instead of exception_fprintf and printf_filtered.
5418
7649770c
YQ
54192017-08-18 Yao Qi <yao.qi@linaro.org>
5420
5421 * selftest.c (register_self_test): Rename it to
5422 selftests::register_test.
5423 (run_self_tests): selftest::run_tests.
5424 * selftest.h: Update declarations.
5425 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5426 selftests::register_test_foreach_arch.
5427 * selftest-arch.h: Update declaration.
5428 * aarch64-tdep.c: Update.
5429 * arm-tdep.c: Likewise.
5430 * disasm-selftests.c: Likewise.
5431 * dwarf2loc.c: Likewise.
5432 * dwarf2-frame.c: Likewise.
5433 * findvar.c: Likewise.
5434 * gdbarch-selftests.c: Likewise.
5435 * maint.c (maintenance_selftest): Likewise.
5436 * regcache.c: Likewise.
5437 * rust-exp.y: Likewise.
5438 * selftest-arch.c: Likewise.
5439 * unittests/environ-selftests.c: Likewise.
5440 * unittests/function-view-selftests.c: Likewise.
5441 * unittests/offset-type-selftests.c: Likewise.
5442 * unittests/optional-selftests.c: Likewise.
5443 * unittests/scoped_restore-selftests.c: Likewise.
5444 * utils-selftests.c: Likewise.
5445
b0cba12e
PA
54462017-08-17 Pedro Alves <palves@redhat.com>
5447
5448 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5449 local.
5450
4c8aa72d
PA
54512017-08-17 Pedro Alves <palves@redhat.com>
5452
5453 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5454 field.
5455 (reset_die_in_process): Delete, replaced by ...
5456 (process_die_scope): ... this new class. Make it responsible for
5457 freeing cu->line_header too.
5458 (process_die): Use process_die_scope.
5459 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5460 cu->line_header_die_owner. Don't release the line header if it's
5461 owned by the CU.
5462 (setup_type_unit_groups): Make the CU/DIE own the line header.
5463 Don't release the line header here.
5464
ba713918
AL
54652017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5466
5467 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5468
44d0fb3a
RK
54692017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5470
5471 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5472 Single-Key mode
5473
a5afdb16
RK
54742017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5475
5476 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5477 mode command list.
5478
47613aeb
SH
54792017-08-15 Stafford Horne <shorne@gmail.com>
5480
5481 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5482
9c3cc999
SH
54832017-08-15 Stafford Horne <shorne@gmail.com>
5484
5485 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5486
206726fb
SDJ
54872017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5488
5489 PR gdb/21954
5490 * infcmd.c (unset_environment_command): Use the 'clear' method on
5491 the environment instead of resetting it.
5492
0335ac6d
JB
54932017-08-15 John Baldwin <jhb@FreeBSD.org>
5494
5495 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5496 platforms.
5497
d3abe1c8
TT
54982017-08-14 Tom Tromey <tom@tromey.com>
5499
5500 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5501 (print_binary_chars): Likewise.
5502 (BITS_IN_BYTES): Remove.
5503
d6382fff
TT
55042017-08-14 Tom Tromey <tom@tromey.com>
5505
5506 PR gdb/21675
5507 * valprint.c (LOW_ZERO): Change value to 034.
5508 (print_octal_chars): Add static_asserts for octal constants.
5509 * printcmd.c (print_scalar_formatted): Add 'd' case.
5510
f978cb06
TT
55112017-08-11 Tom Tromey <tom@tromey.com>
5512
5513 * symfile.c (add_symbol_file_command): Use std::vector.
5514
2f5404b3
TT
55152017-08-14 Tom Tromey <tom@tromey.com>
5516
5517 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5518 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5519 std::move.
5520 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5521
de7985c3
PA
55222017-08-11 Pedro Alves <palves@redhat.com>
5523
5524 * infrun.c (process_event_stop_test): Adjust
5525 function_name_is_marked_for_skip call.
5526 * skip.c: Include <list>.
5527 (skiplist_entry): Make it a class with private fields, and
5528 getters/setters.
5529 (skiplist_entry_chain): Delete.
5530 (skiplist_entries): New.
5531 (skiplist_entry_count): Delete.
5532 (highest_skiplist_entry_num): New.
5533 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5534 (add_skiplist_entry): Delete.
5535 (skiplist_entry::skiplist_entry): New.
5536 (skiplist_entry::add_entry): New.
5537 (skip_file_command, skip_function): Adjust.
5538 (compile_skip_regexp): Delete.
5539 (skip_command): Don't compile regexp here. Adjust to use
5540 skiplist_entry::add_entry.
5541 (skip_info): Adjust to use range-for and getters.
5542 (skip_enable_command, skip_disable_command): Adjust to use
5543 range-for and setters.
5544 (skip_delete_command): Adjust to use std::list.
5545 (add_skiplist_entry): Delete.
5546 (skip_file_p): Delete, refactored as ...
5547 (skiplist_entry::do_skip_file_p): ... this new method.
5548 (skip_gfile_p): Delete, refactored as ...
5549 (skiplist_entry::do_gskip_file_p): ... this new method.
5550 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5551 (skiplist_entry::skip_function_p): ... this new method.
5552 (function_name_is_marked_for_skip): Now returns bool, and takes
5553 the function sal by const reference. Adjust to use range-for and
5554 skiplist_entry methods.
5555 (_initialize_step_skip): Remove references to
5556 skiplist_entry_chain, skiplist_entry_count.
5557 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5558 takes the function sal by const reference.
5559
be7d3cd5
YQ
55602017-08-11 Yao Qi <yao.qi@linaro.org>
5561
5562 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5563 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5564 (dwarf2_frame_cache):
5565 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5566 RETURN_MASK_ALL and set *this_case to NULL.
5567 * frame-unwind.h: Update comments.
5568
1c90d9f0
YQ
55692017-08-11 Yao Qi <yao.qi@linaro.org>
5570
5571 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5572 (dwarf2_frame_state_copy_regs): Remove.
5573 (dwarf2_frame_state_free_regs): Remove.
5574 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5575 (dwarf2_restore_rule): Call method .alloc_regs instead of
5576 dwarf2_frame_state_alloc_regs.
5577 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5578 constructor. Call std::move.
5579 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5580 (dwarf2_frame_cache): Likewise.
5581
5582 [GDB_SELF_TEST]: Include selftest.h and
5583 selftest-arch.h.
5584 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5585 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5586 execute_cfa_program_test.
5587
5588 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5589 copy ctor, assignment operator, move assignment.
5590 <alloc_regs>: New method.
5591 <swap>: New method.
5592 (struct dwarf2_frame_state): Delete dtor.
5593 (dwarf2_frame_state_alloc_regs): Remove declaration.
5594 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5595 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5596
afe37d6b
YQ
55972017-08-11 Yao Qi <yao.qi@linaro.org>
5598
5599 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5600 (dwarf2_frame_state::dwarf2_frame_state): New.
5601 (dwarf2_frame_state::~dwarf2_frame_state): New.
5602 (dwarf2_fetch_cfa_info): Update.
5603 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5604 rather than a pointer. Update code.
5605 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5606 dtor.
5607 <data_align, code_align, retaddr_column>: Change them to const.
5608 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5609 to bool.
5610
b348037f
YQ
56112017-08-11 Yao Qi <yao.qi@linaro.org>
5612
5613 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5614 <loc.exp>: New field.
5615 * dwarf2-frame.c (execute_cfa_program): Update.
5616 (dwarf2_frame_prev_register): Update.
5617
e7c9de26
PA
56182017-08-10 Pedro Alves <palves@redhat.com>
5619
5620 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5621
e8c6b620
JB
56222017-08-09 John Baldwin <jhb@FreeBSD.org>
5623
5624 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5625 (fbsd_pending_children): Use std::list.
5626 (fbsd_remember_child): Likewise.
5627 (fbsd_is_child_pending): Likewise.
5628 (fbsd_pending_vfork_done): Use std::forward_list.
5629 (fbsd_add_vfork_done): Likewise.
5630 (fbsd_is_vfork_done_pending): Likewise.
5631 (fbsd_next_vfork_done): Likewise.
5632
e4a26669
JB
56332017-08-09 John Baldwin <jhb@FreeBSD.org>
5634
5635 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5636 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5637 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5638 for `mapfilename'.
5639 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 5640 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 5641
142311d3
JB
56422017-08-09 John Baldwin <jhb@FreeBSD.org>
5643
5644 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5645 "filestuff.h".
5646 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5647
42fa2e0e
TT
56482017-08-09 Tom Tromey <tom@tromey.com>
5649
5650 * skip.c (skiplist_entry): New constructor.
5651 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5652 (skiplist_entry::file_is_glob): Now bool.
5653 (skiplist_entry::file, skiplist_entry::function): Now
5654 std::string.
5655 (make_skip_entry): Return a unique_ptr. Use new.
5656 (free_skiplist_entry, free_skiplist_entry_cleanup)
5657 (make_free_skiplist_entry_cleanup): Remove.
5658 (skip_command, skip_disable_command, add_skiplist_entry)
5659 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5660 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5661 (function_name_is_marked_for_skip): Update.
5662 (skip_delete_command): Update. Use delete.
5663
cd3af38d
JW
56642017-08-09 Jiong Wang <jiong.wang@arm.com>
5665
5666 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5667 (aarch64_linux_core_read_description): New function.
5668 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5669
29592bde
PA
56702017-08-09 Pedro Alves <palves@redhat.com>
5671
5672 * cp-name-parser.y (cp_comp_to_string): Return a
5673 gdb::unique_xmalloc_ptr<char>.
5674 * cp-support.c (replace_typedefs_qualified_name)
5675 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5676 (cp_canonicalize_string_full): Use op= instead of explicit
5677 convertion.
5678 (cp_class_name_from_physname, method_name_from_physname)
5679 (cp_func_name, cp_remove_params): Adjust to use
5680 gdb::unique_xmalloc_ptr<char>.
5681 * cp-support.h (cp_comp_to_string): Return a
5682 gdb::unique_xmalloc_ptr<char>.
5683 * python/py-type.c (typy_lookup_type): Adjust to use
5684 gdb::unique_xmalloc_ptr<char>.
5685
b3340438
L
56862017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5687
5688 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5689
e88e8651
YQ
56902017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5691 Yao Qi <yao.qi@linaro.org>
5692
5693 * cp-support.c (cp_canonicalize_string_full): Use
5694 gdb::unique_xmalloc_ptr<char>.
5695 (cp_canonicalize_string): Likewise.
5696
f5a29eb0
YQ
56972017-08-09 Yao Qi <yao.qi@linaro.org>
5698
5699 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5700 * regformats/i386/amd64-avx-avx512.dat: Remove.
5701 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5702 * regformats/i386/amd64-avx-mpx.dat:Remove.
5703 * regformats/i386/amd64-avx.dat: Remove.
5704 * regformats/i386/amd64-mpx.dat: Remove.
5705 * regformats/i386/i386-avx-avx512.dat: Remove.
5706 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5707 * regformats/i386/i386-avx-mpx.dat: Remove.
5708 * regformats/i386/i386-mmx.dat: Remove.
5709 * regformats/i386/i386-mpx.dat: Remove.
5710
57757c2f
YQ
57112017-08-09 Yao Qi <yao.qi@linaro.org>
5712
5713 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5714 * amd64-tdep.c: Don't include features/i386/x32*.c.
5715 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5716 functions.
5717 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5718 and i386/x32-avx-avx512.
5719 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5720 and i386/x32.xml.
5721 * features/i386/x32-avx-avx512.c: Removed.
5722 * features/i386/x32-avx-avx512.xml: Removed.
5723 * features/i386/x32-avx.c: Removed.
5724 * features/i386/x32-avx.xml: Removed.
5725 * features/i386/x32.c: Removed.
5726 * features/i386/x32.xml: Removed.
5727 * regformats/i386/x32-avx-avx512.dat: Removed.
5728 * regformats/i386/x32-avx.dat: Removed.
5729 * regformats/i386/x32.dat: Removed.
5730
ba7b109b
MR
57312017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5732
5733 PR breakpoints/21886
5734 * mem-break.c (default_memory_insert_breakpoint): Use
5735 `->placed_address' rather than `->reqstd_address' for the
5736 breakpoint location.
5737
e347efc3
MR
57382017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5739
5740 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5741 assertions.
5742
0dba2a6c
MR
57432017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5744
5745 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5746 a union of `tdep_info', `tdesc_data' and `id'.
5747 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5748 rather than `info.tdep_info'.
5749 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
5750 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5751 * i386-tdep.c (i386_gdbarch_init): Likewise.
5752 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
5753 * mips-tdep.c (mips_gdbarch_init): Likewise.
5754 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5755 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5756 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
5757 `info.tdep_info'.
5758 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
5759 `info.tdep_info'.
5760 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5761 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
5762 `info.tdep_info'.
5763 * spu-tdep.c (spu_gdbarch_init): Likewise.
5764 * gdbarch.h: Regenerate.
5765
16eb6b2d
LS
57662017-08-07 Leszek Swirski <leszeks@google.com>
5767
7b005726 5768 PR symtab/20899
16eb6b2d
LS
5769 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
5770
74cbb09e
SM
57712017-08-07 Simon Marchi <simon.marchi@ericsson.com>
5772
5773 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
5774 (gdbsim_open): Rename gdb_argv args object to argv.
5775
ee0c3293
TT
57762017-08-05 Tom Tromey <tom@tromey.com>
5777
5778 * compile/compile-object-load.c (compile_object_load): Use
5779 gdb::unique_xmalloc_ptr.
5780 * cli/cli-dump.c (scan_filename): Rename from
5781 scan_filename_with_cleanup. Change return type.
5782 (scan_expression): Rename from scan_expression_with_cleanup.
5783 Change return type.
5784 (dump_memory_to_file, dump_value_to_file, restore_command):
5785 Use gdb::unique_xmalloc_ptr. Update.
5786 * cli/cli-cmds.c (find_and_open_script): Use
5787 gdb::unique_xmalloc_ptr.
5788 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
5789 * symmisc.c (maintenance_print_symbols)
5790 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
5791 * symfile.c (symfile_bfd_open, generic_load)
5792 (add_symbol_file_command, remove_symbol_file_command): Use
5793 gdb::unique_xmalloc_ptr.
5794 * source.c (openp): Use gdb::unique_xmalloc_ptr.
5795 * psymtab.c (maintenance_print_psymbols): Use
5796 gdb::unique_xmalloc_ptr.
5797 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
5798 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
5799 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
5800 (reload_shared_libraries_1): Likewise.
5801
3232fabd
TT
58022017-08-05 Tom Tromey <tom@tromey.com>
5803
5804 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
5805 (rust_op_vector, rust_set_vector): New typedefs.
5806 (current_parser): New global.
5807 (work_obstack): Change to pointer type. Update all users.
5808 (rust_ast, pstate): Remove globals.
5809 (struct rust_parser): New.
5810 (%union) <params, field_inits>: Change type.
5811 (start, tuple_expr, unit_expr, struct_expr_list, literal)
5812 (field_expr, expr_list, maybe_expr_list, type_list): Update.
5813 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
5814 (convert_params_to_types, convert_params_to_expression): Change
5815 type of "params".
5816 (ast_string): Change type of "fields".
5817 (rust_parse): Make a rust_parser. Remove cleanups.
5818 (rust_lex_tests): Make and install an auto_obstack.
5819
f02fd774
YQ
58202017-08-04 Yao Qi <yao.qi@linaro.org>
5821
5822 * configure.srv (ipa_x32_linux_regobj): New.
5823 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
5824 instead of X86_TDESC_AVX512.
5825 (initialize_low_tracepoint): Call
5826 init_registers_x32_avx_avx512_linux.
5827
91975afd
YQ
58282017-08-04 Yao Qi <yao.qi@linaro.org>
5829
5830 * utils.h (gdb_argv): Add namespace std for nullptr_t.
5831
2331fa3a
RK
58322017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
5833
5834 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
5835
744e4fe1
TT
58362017-08-03 Tom Tromey <tom@tromey.com>
5837
5838 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
5839 Remove.
5840 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
5841
1c034b67
TT
58422017-08-03 Tom Tromey <tom@tromey.com>
5843
5844 * python/py-param.c (compute_enum_values): Use gdb_argv.
5845
773a1edc
TT
58462017-08-03 Tom Tromey <tom@tromey.com>
5847
5848 * utils.h (struct gdb_argv_deleter): New.
5849 (gdb_argv): New class.
5850 * utils.c (gdb_argv::reset): New method.
5851 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
5852 * tracefile.c (tsave_command): Use gdb_argv.
5853 * top.c (new_ui_command): Use gdb_argv.
5854 * symmisc.c (maintenance_print_symbols)
5855 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
5856 * symfile.c (symbol_file_command, generic_load)
5857 (remove_symbol_file_command): Use gdb_argv.
5858 * stack.c (backtrace_command): Use gdb_argv.
5859 * source.c (add_path, show_substitute_path_command)
5860 (unset_substitute_path_command, set_substitute_path_command):
5861 Use gdb_argv.
5862 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
5863 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
5864 * remote.c (extended_remote_run, remote_put_command)
5865 (remote_get_command, remote_delete_command): Use gdb_argv.
5866 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
5867 (gdbsim_open): Use gdb_argv.
5868 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
5869 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
5870 * procfs.c (procfs_info_proc): Use gdb_argv.
5871 * interps.c (interpreter_exec_cmd): Use gdb_argv.
5872 * infrun.c (handle_command): Use gdb_argv.
5873 * inferior.c (add_inferior_command, clone_inferior_command):
5874 Use gdb_argv.
5875 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
5876 * exec.c (exec_file_command): Use gdb_argv.
5877 * cli/cli-cmds.c (alias_command): Use gdb_argv.
5878 * compile/compile.c (build_argc_argv): Use gdb_argv.
5879
0d50bde3
TT
58802017-08-03 Tom Tromey <tom@tromey.com>
5881
5882 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
5883
7f968c89
TT
58842017-08-03 Tom Tromey <tom@tromey.com>
5885
5886 * python/python.c (compute_python_string): Return std::string.
5887 (gdbpy_eval_from_control_command): Update.
5888 (do_start_initialization): Use std::string.
5889 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
5890 xstrprintf.
5891 * python/py-breakpoint.c (local_setattro): Use string_printf, not
5892 xstrprintf.
5893
3c9ebddd
TT
58942017-08-03 Tom Tromey <tom@tromey.com>
5895
5896 * top.h (do_restore_instream_cleanup): Remove.
5897 * top.c (do_restore_instream_cleanup): Remove.
5898 (read_command_file): Use scoped_restore.
5899 * cli/cli-script.c (execute_user_command): Use scoped_restore.
5900
b51b225e
TT
59012017-08-03 Tom Tromey <tom@tromey.com>
5902
5903 * cli/cli-script.c (execute_user_command)
5904 (execute_control_command): Use scoped_restore.
5905
ac991630
TT
59062017-08-03 Tom Tromey <tom@tromey.com>
5907
5908 * cli/cli-script.c (do_restore_user_call_depth): Remove.
5909 (execute_user_command): Remove user_call_depth; use
5910 user_args_stack's size instead.
5911
898e0c8e
TT
59122017-08-03 Tom Tromey <tom@tromey.com>
5913
5914 * top.h (in_user_command): Remove.
5915 * top.c (in_user_command): Remove.
5916 * cli/cli-script.c (do_restore_user_call_depth)
5917 (execute_user_command): Update.
5918
26fcd5d7
TT
59192017-08-03 Tom Tromey <tom@tromey.com>
5920
5921 * valops.c (search_struct_method): Use gdb::byte_vector.
5922 * valarith.c (value_concat): Use std::vector.
5923 * target.c (memory_xfer_partial): Use gdb::byte_vector.
5924 (simple_search_memory): Likewise.
5925 * printcmd.c (find_string_backward): Use gdb::byte_vector.
5926 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
5927 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
5928 * elfread.c (elf_rel_plt_read): Use std::string.
5929 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
5930 * cli/cli-dump.c (restore_section_callback): Use
5931 gdb::byte_vector.
5932
7c218e6c
TT
59332017-08-03 Tom Tromey <tom@tromey.com>
5934
5935 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
5936
31b68d4a
TT
59372017-08-03 Tom Tromey <tom@tromey.com>
5938
5939 * tui/tui-regs.c (tui_restore_gdbout): Remove.
5940 (tui_register_format): Use scoped_restore.
5941
2ec845e7
TT
59422017-08-03 Tom Tromey <tom@tromey.com>
5943
5944 * reverse.c (exec_direction_default): Remove.
5945 (exec_reverse_once): Use scoped_restore.
5946 * remote.c (restore_remote_timeout): Remove.
5947 (remote_flash_erase, remote_flash_write, remote_flash_done)
5948 (readchar, remote_serial_write): Use scoped_restore.
5949 * cli/cli-script.c (struct source_cleanup_lines_args)
5950 (source_cleanup_lines): Remove.
5951 (script_from_file): Use scoped_restore.
5952 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
5953 (source_command): Use scoped_restore.
5954
b3bc8453
TT
59552017-08-03 Tom Tromey <tom@tromey.com>
5956
5957 * utils.h (make_cleanup_free_so): Remove.
5958 * utils.c (do_free_so, make_cleanup_free_so): Remove.
5959 * solist.h (struct so_deleter): New.
5960 (so_list_up): New typedef.
5961 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
5962
e3ad2841
TT
59632017-08-03 Tom Tromey <tom@tromey.com>
5964
5965 * utils.h (make_cleanup_restore_current_language): Remove.
5966 * utils.c (do_restore_current_language)
5967 (make_cleanup_restore_current_language): Remove.
5968 * parse.c (parse_exp_in_context_1)
5969 (parse_expression_with_language): Use
5970 scoped_restore_current_language.
5971 * mi/mi-main.c (mi_cmd_execute): Use
5972 scoped_restore_current_language.
5973 * language.h (scoped_restore_current_language): New class.
5974
b80cf838
TT
59752017-08-03 Tom Tromey <tom@tromey.com>
5976
5977 * compile/compile.c (cleanup_unlink_file): Remove.
5978 (compile_to_object): Use gdb::unlinker.
5979 (eval_compile_command): Likewise.
5980
fad0444a
TT
59812017-08-03 Tom Tromey <tom@tromey.com>
5982
5983 * utils.h (make_cleanup_fclose): Remove.
5984 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
5985
6e7bc05c
TT
59862017-08-03 Tom Tromey <tom@tromey.com>
5987
5988 * top.c (open_terminal_stream): Return gdb_file_up.
5989 (new_ui_command): Update.
5990
4a45905b
TT
59912017-08-03 Tom Tromey <tom@tromey.com>
5992
5993 * source.c (print_source_lines_base, forward_search_command)
5994 (reverse_search_command): Use gdb_file_up.
5995
7cd06d6e
TT
59962017-08-03 Tom Tromey <tom@tromey.com>
5997
5998 * fbsd-nat.c (fbsd_find_memory_regions): Update.
5999
ed166945
TT
60002017-08-03 Tom Tromey <tom@tromey.com>
6001
6002 * cli/cli-cmds.c (find_and_open_script): Change return type.
6003 Remove "streamp" and "full_path" parameters.
6004 (source_script_with_search): Update.
6005 * auto-load.c (source_script_file): Update.
6006 * cli/cli-cmds.h (find_and_open_script): Change type.
6007 (open_script): New struct.
6008
d419f42d
TT
60092017-08-03 Tom Tromey <tom@tromey.com>
6010
6011 * xml-support.c (xml_fetch_content_from_file): Update.
6012 * ui-file.c (stdio_file::open): Update.
6013 * tracefile-tfile.c (tfile_start): Update.
6014 * remote.c (remote_file_put, remote_file_get): Update.
6015 * nat/linux-procfs.c (linux_proc_get_int)
6016 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6017 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6018 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6019 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6020 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6021 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6022 * linux-nat.c (linux_proc_pending_signals): Update.
6023 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6024 (file_closer): Remove.
6025 * compile/compile.c (compile_to_object): Update.
6026 * common/filestuff.h (struct gdb_file_deleter): New.
6027 (gdb_file_up): New typedef.
6028 (gdb_fopen_cloexec): Change return type.
6029 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6030 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6031 (dump_binary_file, restore_binary_file): Update.
6032 * auto-load.c (auto_load_objfile_script_1): Update.
6033
4a2b031d
TT
60342017-08-03 Tom Tromey <tom@tromey.com>
6035
6036 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6037 (info_static_tracepoint_markers_command): Likewise.
6038 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6039 * skip.c (skip_info): Use ui_out_emit_table.
6040 * progspace.c (print_program_space): Use ui_out_emit_table.
6041 * osdata.c (info_osdata): Use ui_out_emit_table.
6042 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6043 ui_out_emit_table.
6044 * linux-thread-db.c (info_auto_load_libthread_db): Use
6045 ui_out_emit_table.
6046 * inferior.c (print_inferior): Use ui_out_emit_table.
6047 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6048 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6049 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6050 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6051 * ui-out.h (class ui_out_emit_table): New.
6052
a4f320fd
MR
60532017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6054
6055 * mips-tdep.c (mips_fpu_type_str): New function.
6056 (mips_dump_tdep): Call it.
6057
a2f1f308
MR
60582017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6059
6060 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6061 `->mips_fpu_type'.
6062
7e5ed83b
XR
60632017-07-31 Xavier Roirand <roirand@adacore.com>
6064
6065 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6066
4c9dc811
XR
60672017-07-27 Xavier Roirand <roirand@adacore.com>
6068
6069 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6070
27d41eac
YQ
60712017-07-26 Yao Qi <yao.qi@linaro.org>
6072
6073 * cli/cli-cmds.c (maintenancechecklist): New variable.
6074 * gdbcmd.h (maintenancechecklist): Declare it.
6075 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6076 Call i386_linux_read_description with different masks.
6077 * maint.c (maintenance_check_command): New function.
6078 (_initialize_maint_cmds): Call add_prefix_cmd.
6079 * target-descriptions.c (tdesc_reg): override operator != and ==.
6080 (tdesc_type): Likewise.
6081 (tdesc_feature): Likewise.
6082 (target_desc): Likewise.
6083 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6084 (maintenance_check_xml_descriptions): New function.
6085 (_initialize_target_descriptions) Add command "xml-descriptions".
6086 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6087
ea03d0d3
YQ
60882017-07-26 Yao Qi <yao.qi@linaro.org>
6089
6090 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6091 Include features/i386/32bit-*.c.
6092 (i386_linux_read_description): Generate target description if it
6093 doesn't exist.
6094 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6095 functions.
6096 * features/i386/32bit-linux.c: Re-generated.
6097 * features/i386/32bit-sse.c: Likewise.
6098 * target-descriptions.c (print_c_feature::visit): Print code to
6099 set register number if needed.
6100 (print_c_feature) <m_next_regnum>: New field.
6101
25aa13e5
YQ
61022017-07-26 Yao Qi <yao.qi@linaro.org>
6103
6104 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6105 (FEATURE_XMLFILES): New.
6106 (FEATURE_CFILES): New.
6107 New rules.
6108 (clean-cfiles): Remove generated c files.
6109 * features/i386/32bit-avx.c: Generated.
6110 * features/i386/32bit-avx512.c: Generated.
6111 * features/i386/32bit-core.c: Generated.
6112 * features/i386/32bit-linux.c: Generated.
6113 * features/i386/32bit-mpx.c: Generated.
6114 * features/i386/32bit-pkeys.c: Generated.
6115 * features/i386/32bit-sse.c: Generated.
6116 * target-descriptions.c: Include algorithm.
6117 (tdesc_element_visitor): Add method visit_end.
6118 (print_c_tdesc): Implement visit_end.
6119 (print_c_tdesc:: m_filename_after_features): Move it to
6120 protected.
6121 (print_c_feature): New class.
6122 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6123 name starts with "i386/32bit-".
6124
6eb1e6a8
YQ
61252017-07-26 Yao Qi <yao.qi@linaro.org>
6126
6127 * target-descriptions.c (tdesc_element_visitor): New class.
6128 (tdesc_element): New class.
6129 (tdesc_reg): Inherit from tdesc_element.
6130 (tdesc_reg::accept): New function.
6131 (tdesc_type): Inherit from tdesc_element.
6132 (tdesc_type::accept): New function.
6133 (tdesc_feature): Inherit from tdesc_element.
6134 (tdesc_feature::accept): New function.
6135 (target_desc): Inherit from tdesc_element.
6136 (target_desc::target_desc): New.
6137 (target_desc::~target_desc): New.
6138 (target_desc::accept): New.
6139 (allocate_target_description): Use new.
6140 (free_target_description): Use delete.
6141 (print_c_tdesc): New class.
6142 (maint_print_c_tdesc_cmd): Adjust.
6143
6144 * features/aarch64.c: Re-generated.
6145 * features/arc-arcompact.c: Re-generated.
6146 * features/arc-v2.c: Re-generated.
6147 * features/arm/arm-with-iwmmxt.c: Re-generated.
6148 * features/arm/arm-with-m.c: Re-generated.
6149 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6150 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6151 * features/arm/arm-with-neon.c: Re-generated.
6152 * features/arm/arm-with-vfpv2.c: Re-generated.
6153 * features/arm/arm-with-vfpv3.c: Re-generated.
6154 * features/i386/amd64-avx-avx512.c: Re-generated.
6155 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6156 * features/i386/amd64-avx.c: Re-generated.
6157 * features/i386/amd64-avx-linux.c: Re-generated.
6158 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6159 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6160 * features/i386/amd64-avx-mpx.c: Re-generated.
6161 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6162 * features/i386/amd64.c: Re-generated.
6163 * features/i386/amd64-linux.c: Re-generated.
6164 * features/i386/amd64-mpx.c: Re-generated.
6165 * features/i386/amd64-mpx-linux.c: Re-generated.
6166 * features/i386/i386-avx-avx512.c: Re-generated.
6167 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6168 * features/i386/i386-avx.c: Re-generated.
6169 * features/i386/i386-avx-linux.c: Re-generated.
6170 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6171 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6172 * features/i386/i386-avx-mpx.c: Re-generated.
6173 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6174 * features/i386/i386.c: Re-generated.
6175 * features/i386/i386-linux.c: Re-generated.
6176 * features/i386/i386-mmx.c: Re-generated.
6177 * features/i386/i386-mmx-linux.c: Re-generated.
6178 * features/i386/i386-mpx.c: Re-generated.
6179 * features/i386/i386-mpx-linux.c: Re-generated.
6180 * features/i386/x32-avx-avx512.c: Re-generated.
6181 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6182 * features/i386/x32-avx.c: Re-generated.
6183 * features/i386/x32-avx-linux.c: Re-generated.
6184 * features/i386/x32.c: Re-generated.
6185 * features/i386/x32-linux.c: Re-generated.
6186 * features/microblaze.c: Re-generated.
6187 * features/microblaze-with-stack-protect.c: Re-generated.
6188 * features/mips64-dsp-linux.c: Re-generated.
6189 * features/mips64-linux.c: Re-generated.
6190 * features/mips-dsp-linux.c: Re-generated.
6191 * features/mips-linux.c: Re-generated.
6192 * features/nds32.c: Re-generated.
6193 * features/nios2.c: Re-generated.
6194 * features/nios2-linux.c: Re-generated.
6195 * features/rs6000/powerpc-32.c: Re-generated.
6196 * features/rs6000/powerpc-32l.c: Re-generated.
6197 * features/rs6000/powerpc-403.c: Re-generated.
6198 * features/rs6000/powerpc-403gc.c : Re-generated.
6199 * features/rs6000/powerpc-405.c: Re-generated.
6200 * features/rs6000/powerpc-505.c: Re-generated.
6201 * features/rs6000/powerpc-601.c: Re-generated.
6202 * features/rs6000/powerpc-602.c: Re-generated.
6203 * features/rs6000/powerpc-603.c: Re-generated.
6204 * features/rs6000/powerpc-604.c: Re-generated.
6205 * features/rs6000/powerpc-64.c: Re-generated.
6206 * features/rs6000/powerpc-64l.c: Re-generated.
6207 * features/rs6000/powerpc-7400.c: Re-generated.
6208 * features/rs6000/powerpc-750.c: Re-generated.
6209 * features/rs6000/powerpc-860.c: Re-generated.
6210 * features/rs6000/powerpc-altivec32.c: Re-generated.
6211 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6212 * features/rs6000/powerpc-altivec64.c: Re-generated.
6213 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6214 * features/rs6000/powerpc-cell32l.c: Re-generated.
6215 * features/rs6000/powerpc-cell64l.c: Re-generated.
6216 * features/rs6000/powerpc-e500.c: Re-generated.
6217 * features/rs6000/powerpc-e500l.c: Re-generated.
6218 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6219 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6220 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6221 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6222 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6223 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6224 * features/rs6000/powerpc-vsx32.c: Re-generated.
6225 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6226 * features/rs6000/powerpc-vsx64.c: Re-generated.
6227 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6228 * features/rs6000/rs6000.c: Re-generated.
6229 * features/s390-linux32.c: Re-generated.
6230 * features/s390-linux32v1.c: Re-generated.
6231 * features/s390-linux32v2.c: Re-generated.
6232 * features/s390-linux64.c: Re-generated.
6233 * features/s390-linux64v1.c: Re-generated.
6234 * features/s390-linux64v2.c: Re-generated.
6235 * features/s390-te-linux64.c: Re-generated.
6236 * features/s390-tevx-linux64.c: Re-generated.
6237 * features/s390-vx-linux64.c: Re-generated.
6238 * features/s390x-linux64.c: Re-generated.
6239 * features/s390x-linux64v1.c: Re-generated.
6240 * features/s390x-linux64v2.c: Re-generated.
6241 * features/s390x-te-linux64.c: Re-generated.
6242 * features/s390x-tevx-linux64.c: Re-generated.
6243 * features/s390x-vx-linux64.c: Re-generated.
6244 * features/sparc/sparc32-solaris.c: Re-generated.
6245 * features/sparc/sparc64-solaris.c: Re-generated.
6246 * features/tic6x-c62x.c: Re-generated.
6247 * features/tic6x-c62x-linux.c: Re-generated.
6248 * features/tic6x-c64x.c: Re-generated.
6249 * features/tic6x-c64x-linux.c: Re-generated.
6250 * features/tic6x-c64xp.c: Re-generated.
6251 * features/tic6x-c64xp-linux.c: Re-generated.
6252
35b4818d
YQ
62532017-07-26 Yao Qi <yao.qi@linaro.org>
6254
6255 * i386-linux-tdep.c (i386_linux_read_description): New function.
6256 (i386_linux_core_read_description): Call
6257 i386_linux_read_description.
6258 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6259 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6260 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6261 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6262 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6263 * x86-linux-nat.c (x86_linux_read_description): Call
6264 i386_linux_read_description.
6265
8e2141c6
YQ
62662017-07-26 Yao Qi <yao.qi@linaro.org>
6267
6268 * NEWS: Mention it.
6269 * features/Makefile (%.c: %.xml): Pass the xml file name to
6270 command "maint print c-tdesc".
6271 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6272 name from 'arg'.
6273
b468ff4c
YQ
62742017-07-26 Yao Qi <yao.qi@linaro.org>
6275
6276 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6277 in-class initialization.
6278 (tdesc_create_feature): Call new instead of XCNEW.
6279 (free_target_description): Ue delete.
6280
b9c0e1b4
JB
62812017-07-25 John Baldwin <jhb@FreeBSD.org>
6282
6283 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6284
a04b5337
YQ
62852017-07-25 Yao Qi <yao.qi@linaro.org>
6286
6287 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6288 constant.
6289 (amd64_x32_init_abi): Likewise.
6290 * amd64-tdep.h (amd64_init_abi): Update declaration.
6291 (amd64_x32_init_abi): Likewise.
6292
02ad7fc2
YQ
62932017-07-25 Yao Qi <yao.qi@linaro.org>
6294
6295 PR tdep/21717
6296 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6297 condition for FPSCR.
6298 (arm_linux_store_inferior_registers): Likewise.
6299
b6f48cb0
TT
63002017-07-22 Tom Tromey <tom@tromey.com>
6301
6302 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6303 <syscalls_counts>: Now a std::vector.
6304 (get_catch_syscall_inferior_data): Use "new".
6305 (catch_syscall_inferior_data_cleanup): Use "delete".
6306 (insert_catch_syscall, remove_catch_syscall)
6307 (clear_syscall_counts): Update.
6308
e12c9b7a
TT
63092017-07-22 Tom Tromey <tom@tromey.com>
6310
6311 * break-catch-syscall.c (syscall_catchpoint)
6312 <syscalls_to_be_caught>: Now a std::vector<int>
6313 (~syscall_catchpoint): Remove.
6314 (insert_catch_syscall, remove_catch_syscall)
6315 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6316 (print_mention_catch_syscall, print_recreate_catch_syscall):
6317 Update.
6318 (create_syscall_event_catchpoint): Change type of "filter"
6319 parameter.
6320 (catch_syscall_split_args): Return a std::vector.
6321 (catch_syscall_command_1, catching_syscall_number_1): Update.
6322
4fa8aeac
TT
63232017-07-22 Tom Tromey <tom@tromey.com>
6324
6325 * break-catch-throw.c (struct exception_catchpoint)
6326 <exception_rx>: Now a std::string.
6327 (~exception_catchpoint): Remove.
6328 (print_one_detail_exception_catchpoint): Update.
6329 (handle_gnu_v3_exceptions): Change type of except_rx.
6330 (extract_exception_regexp): Return a std::string.
6331 (catch_exception_command_1): Update.
6332
f746a154
TT
63332017-07-22 Tom Tromey <tom@tromey.com>
6334
6335 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6336 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6337 std::vector.
6338 <catch_all>: Now a bool.
6339 (~signal_catchpoint): Remove.
6340 (signal_catchpoint_insert_location)
6341 (signal_catchpoint_remove_location)
6342 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6343 (signal_catchpoint_print_mention)
6344 (signal_catchpoint_print_recreate)
6345 (signal_catchpoint_explains_signal): Update.
6346 (create_signal_catchpoint): Change type of "filter" and
6347 "catch_all".
6348 (catch_signal_split_args): Return a std::vector. Change type of
6349 "catch_all".
6350 (catch_signal_command): Update.
6351
47e77640
PA
63522017-07-20 Pedro Alves <palves@redhat.com>
6353
6354 * ada-lang.c (ada_language_defn): Make extern.
6355 (_initialize_ada_language): Remove add_language call.
6356 * c-lang.c (c_language_defn, cplus_language_defn)
6357 (asm_language_defn, minimal_language_defn): Make extern.
6358 (_initialize_c_language): Delete.
6359 * completer.c (compare_cstrings): Delete, moved to utils.h.
6360 * d-lang.c (d_language_defn): Make extern.
6361 (_initialize_d_language): Remove add_language calls.
6362 * defs.h (enum language): Add comment.
6363 * f-lang.c (f_language_defn): Make extern.
6364 (_initialize_f_language): Remove add_language call.
6365 * go-lang.c (go_language_defn): Make extern.
6366 (_initialize_go_language): Remove add_language call.
6367 * language.c: Include <algorithm>.
6368 (languages): Redefine as const array.
6369 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6370 (set_language_command): Handle "local". Use for-range loop.
6371 (set_language): Remove loop.
6372 (language_enum): Rewrite.
6373 (language_def, language_str): Remove loops.
6374 (add_language): Delete.
6375 (add_set_language_command): New, based on add_languages.
6376 (skip_language_trampoline): Adjust.
6377 (local_language_defn): Delete.
6378 (language_gdbarch_post_init): Adjust.
6379 (_initialize_language): Remove add_language calls. Call
6380 add_set_language_command.
6381 * language.h (add_language): Delete.
6382 (auto_language_defn)
6383 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6384 (asm_language_defn, c_language_defn, cplus_language_defn)
6385 (d_language_defn, f_language_defn, go_language_defn)
6386 (m2_language_defn, objc_language_defn, opencl_language_defn)
6387 (pascal_language_defn, rust_language_defn): Declare.
6388 * m2-lang.c (m2_language_defn): Make extern.
6389 (_initialize_m2_language): Remove add_language call.
6390 * objc-lang.c (objc_language_defn): Make extern.
6391 (_initialize_objc_language): Remove add_language call.
6392 * opencl-lang.c (opencl_language_defn): Make extern.
6393 (_initialize_opencl_language): Remove add_language call.
6394 * p-lang.c (pascal_language_defn): Make extern.
6395 (_initialize_pascal_language): Delete.
6396 * rust-lang.c (rust_language_defn): Make extern.
6397 (_initialize_rust_language): Delete.
6398 * utils.h (compare_cstrings): New static inline function.
6399
edb0c9cb
PA
64002017-07-20 Pedro Alves <palves@redhat.com>
6401
6402 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6403 (get_var_value): Constify parameters.
6404 (get_int_var_value): Change prototype.
6405 (to_fixed_range_type): Adjust.
6406 * ada-lang.h (get_int_var_value): Change prototype.
6407
a778f165
PA
64082017-07-20 Pedro Alves <palves@redhat.com>
6409
6410 * dwarf2read.c (dw2_lookup_symbol): Use
6411 SYMBOL_MATCHES_SEARCH_NAME.
6412 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6413
42edd901
PA
64142017-07-20 Pedro Alves <palves@redhat.com>
6415
6416 * block.c (block_iter_name_step, block_iter_name_first)
6417 (block_iter_name_next): Delete.
6418 (block_lookup_symbol_primary): Adjust to use
6419 dict_iter_match_first/dict_iter_match_next.
6420 * block.h (block_iter_name_first, block_iter_name_next): Delete
6421 declarations.
6422 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6423 dict_iter_match_first/dict_iter_match_next.
6424
cf325299
PA
64252017-07-20 Pedro Alves <palves@redhat.com>
6426
6427 * cp-support.c (cp_find_first_component_aux): Add missing case for
6428 end of string.
6429
c5ed0576
DB
64302017-07-18 David Blaikie <dblaikie@gmail.com>
6431
6432 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6433 of dwo_cu's dwo_file.
6434
27841e76
YQ
64352017-07-18 Yao Qi <yao.qi@linaro.org>
6436
6437 * remote.c (store_registers_using_G): Remove one line comment.
6438
cfb7e58b
YQ
64392017-07-18 Yao Qi <yao.qi@linaro.org>
6440
6441 * regcache.c (regcache_cpy): Simplify it.
6442 (regcache::cpy_no_passthrough): Remove it.
6443 * regcache.h (cpy_no_passthrough): Remove it.
6444 (regcache_dup, regcache_cpy): Update comments.
6445
386535dd
PA
64462017-07-18 Pedro Alves <palves@redhat.com>
6447
6448 * remote-sim.c (sim_command_completer): Adjust to work with a
6449 completion_tracker instead of a VEC.
6450
c45ec17c
PA
64512017-07-17 Pedro Alves <palves@redhat.com>
6452
6453 * completer.c (complete_source_filenames): New function.
6454 (complete_address_and_linespec_locations): New function.
6455 (location_completer): Use complete_address_and_linespec_locations.
6456 (completion_tracker::build_completion_result): Honor the tracker's
6457 request to suppress append.
6458 * completer.h (completion_tracker::suppress_append_ws)
6459 (completion_tracker::set_suppress_append_ws): New methods.
6460 (completion_tracker::m_suppress_append_ws): New field.
6461 (complete_source_filenames): New declaration.
6462 * linespec.c (linespec_complete_what): New.
6463 (struct ls_parser) <complete_what, completion_word,
6464 completion_quote_char, completion_quote_end, completion_tracker>:
6465 New fields.
6466 (string_find_incomplete_keyword_at_end): New.
6467 (linespec_lexer_lex_string): Record quote char. If in completion
6468 mode, don't throw.
6469 (linespec_lexer_consume_token): Advance the completion word point.
6470 (linespec_lexer_peek_token): Save/restore completion info.
6471 (save_stream_and_consume_token): New.
6472 (set_completion_after_number): New.
6473 (linespec_parse_basic): Set what to complete next depending on
6474 token. Handle function and label completions specially.
6475 (parse_linespec): Disable objc shortcut in completion mode. Set
6476 what to complete next depending on token type. Skip keyword if in
6477 completion mode.
6478 (complete_linespec_component, linespec_complete): New.
6479 * linespec.h (linespec_complete): Declare.
6480
be966d42
PA
64812017-07-17 Pedro Alves <palves@redhat.com>
6482
6483 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6484 Handle 'operator<' / 'operator<<'.
6485
a2459270
PA
64862017-07-17 Pedro Alves <palves@redhat.com>
6487
6488 * completer.c (collect_explicit_location_matches): Handle
6489 MATCH_LABEL.
6490 (convert_explicit_location_to_linespec): New, factored out from
6491 ...
6492 (convert_explicit_location_to_sals): ... this.
6493 (complete_label): New.
6494 (linespec_complete_label, find_label_symbols_in_block): New.
6495 (find_label_symbols): Add completion_mode parameter and adjust to
6496 call find_label_symbols_in_block.
6497 * linespec.h (linespec_complete_label): Declare.
6498
c6756f62
PA
64992017-07-17 Pedro Alves <palves@redhat.com>
6500
6501 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6502 complete_symbol_mode parameter.
6503 * cli/cli-cmds.c (complete_command): Get the completion result out
6504 of the handle_brkchars tracker if used a custom word point.
6505 * completer.c: Include "linespec.h".
6506 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6507 (advance_to_expression_complete_word_point): New.
6508 (completion_tracker::completes_to_completion_word): New.
6509 (complete_files_symbols): Pass down
6510 complete_symbol_mode::EXPRESSION.
6511 (explicit_options, probe_options): New.
6512 (collect_explicit_location_matches): Complete on the
6513 explictit_loc->foo instead of word. Use
6514 linespec_complete_function. Handle MATCH_LINE. Handle offering
6515 keyword and options completions.
6516 (backup_text_ptr): Delete.
6517 (skip_keyword): New.
6518 (complete_explicit_location): Remove 'word' parameter. Add
6519 language, quoted_arg_start and quoted_arg_end parameters.
6520 Rewrite, parsing left to right.
6521 (location_completer): Rewrite.
6522 (location_completer_handle_brkchars): New function.
6523 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6524 (enum complete_line_internal_reason): Adjust comments.
6525 (completion_tracker::discard_completions): New.
6526 (completer_handle_brkchars_func_for_completer): Handle
6527 location_completer.
6528 (gdb_custom_word_point_brkchars)
6529 (gdb_org_rl_basic_quote_characters): New.
6530 (gdb_completion_word_break_characters_throw)
6531 (completion_find_completion_word): Handle trackers that use a
6532 custom word point.
6533 (completion_tracker::advance_custom_word_point_by): New.
6534 (completion_tracker::build_completion_result): Don't rely on
6535 readline appending the quote char.
6536 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6537 use a custom word point.
6538 (gdb_rl_attempted_completion_function): Restore
6539 rl_basic_quote_characters.
6540 * completer.h (class completion_tracker): Extend intro comment.
6541 (completion_tracker::set_quote_char)
6542 (completion_tracker::quote_char)
6543 (completion_tracker::set_use_custom_word_point)
6544 (completion_tracker::use_custom_word_point)
6545 (completion_tracker::custom_word_point)
6546 (completion_tracker::set_custom_word_point)
6547 (completion_tracker::advance_custom_word_point_by)
6548 (completion_tracker::completes_to_completion_word)
6549 (completion_tracker::discard_completions): New methods.
6550 (completion_tracker::m_quote_char)
6551 (completion_tracker::m_use_custom_word_point)
6552 (completion_tracker::m_custom_word_point): New fields.
6553 (advance_to_expression_complete_word_point): Declare.
6554 * f-lang.c (f_collect_symbol_completion_matches): Add
6555 complete_symbol_mode parameter.
6556 * language.h (struct language_defn)
6557 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6558 parameter.
6559 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6560 (linespec_complete_function): New function.
6561 (linespec_lexer_lex_keyword): Adjust.
6562 * linespec.h (linespec_keywords, linespec_complete_function): New
6563 declarations.
6564 * location.c (find_end_quote): New function.
6565 (explicit_location_lex_one): Add explicit_completion_info
6566 parameter. Save quoting info. Don't throw if being called for
6567 completion. Don't handle Ada operators here.
6568 (is_cp_operator, skip_op_false_positives, first_of)
6569 (explicit_location_lex_one_function): New function.
6570 (string_to_explicit_location): Replace 'dont_throw' parameter with
6571 an explicit_completion_info pointer parameter. Handle it. Don't
6572 use explicit_location_lex_one to lex function names. Use
6573 explicit_location_lex_one_function instead.
6574 * location.h (struct explicit_completion_info): New.
6575 (string_to_explicit_location): Replace 'dont_throw' parameter with
6576 an explicit_completion_info pointer parameter.
6577 * symtab.c (default_collect_symbol_completion_matches_break_on):
6578 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6579 (default_collect_symbol_completion_matches)
6580 (collect_symbol_completion_matches): Add complete_symbol_mode
6581 parameter.
6582 (collect_symbol_completion_matches_type): Pass down
6583 complete_symbol_mode::EXPRESSION.
6584 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6585 parameter. Handle LINESPEC mode.
6586 * symtab.h (complete_symbol_mode): New.
6587 (default_collect_symbol_completion_matches_break_on)
6588 (default_collect_symbol_completion_matches)
6589 (collect_symbol_completion_matches)
6590 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6591 parameter.
6592
1d550c82
PA
65932017-07-17 Pedro Alves <palves@redhat.com>
6594
6595 * utils.c (enum class strncmp_iw_mode): New.
6596 (strcmp_iw): Rename to ...
6597 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6598 parameters. Handle them.
6599 (strncmp_iw): New.
6600 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6601 * utils.h (strncmp_iw): Declare.
6602 (strcmp_iw): Move describing comments here.
6603
8090b426
PA
66042017-07-17 Pedro Alves <palves@redhat.com>
6605
6606 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6607 CP_OPERATOR_STR.
6608 * c-typeprint.c (is_type_conversion_operator): Use
6609 CP_OPERATOR_STR.
6610 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6611 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6612 CP_OPERATOR_LEN.
6613 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6614 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6615 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6616 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6617 CP_OPERATOR_STR.
6618 * location.c: Include "cp-support.h".
6619 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6620 CP_OPERATOR_STR.
6621 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6622 CP_OPERATOR_LEN.
6623
6a2c1b87
PA
66242017-07-17 Pedro Alves <palves@redhat.com>
6625
6626 * cli/cli-cmds.c (complete_command): Use a completion tracker
6627 along with completion_find_completion_word for handle_brkchars
6628 phase.
6629 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6630 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6631 (struct gdb_rl_completion_word_info): New.
6632 (gdb_rl_find_completion_word): New.
6633 (completion_find_completion_word): New.
6634 * completer.h (completion_find_completion_word): Declare.
6635
eb3ff9a5
PA
66362017-07-17 Pedro Alves <palves@redhat.com>
6637
6638 * ada-lang.c (symbol_completion_match): Adjust comments.
6639 (symbol_completion_add): Replace vector parameter with
6640 completion_tracker parameter. Use it.
6641 (ada_make_symbol_completion_list): Rename to...
6642 (ada_collect_symbol_completion_matches): ... this. Add
6643 completion_tracker parameter and use it.
6644 (ada_language_defn): Adjust.
6645 * break-catch-syscall.c (catch_syscall_completer): Adjust
6646 prototype and work with completion_tracker instead of VEC.
6647 * breakpoint.c (condition_completer): Adjust prototype and work
6648 with completion_tracker instead of VEC.
6649 * c-lang.c (c_language_defn, cplus_language_defn)
6650 (asm_language_defn, minimal_language_defn): Adjust to renames.
6651 * cli/cli-cmds.c (complete_command): Rework using
6652 completion_tracker. Catch exceptions when completing.
6653 * cli/cli-decode.c (integer_unlimited_completer)
6654 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6655 with completion_tracker instead of VEC.
6656 * command.h (struct completion_tracker): Forward declare.
6657 (completer_ftype, completer_handle_brkchars_ftype): Change
6658 types.
6659 (complete_on_cmdlist, complete_on_enum): Adjust.
6660 * completer.c: Include <algorithm>.
6661 (struct gdb_completer_state): New.
6662 (current_completion): New global.
6663 (readline_line_completion_function): Delete.
6664 (noop_completer, filename_completer)
6665 (filename_completer_handle_brkchars, complete_files_symbols)
6666 (linespec_location_completer): Adjust to work with a
6667 completion_tracker instead of a VEC.
6668 (string_or_empty): New.
6669 (collect_explicit_location_matches): Adjust to work with a
6670 completion_tracker instead of a VEC.
6671 (explicit_location_completer): Rename to ...
6672 (complete_explicit_location): ... this and adjust to work with a
6673 completion_tracker instead of a VEC.
6674 (location_completer): Adjust to work with a completion_tracker
6675 instead of a VEC.
6676 (add_struct_fields): Adjust to work with a completion_list instead
6677 of VEC.
6678 (expression_completer): Rename to ...
6679 (complete_expression): ... this and adjust to work with a
6680 completion_tracker instead of a VEC. Use complete_files_symbols.
6681 (expression_completer): Reimplement on top of complete_expression.
6682 (symbol_completer): Adjust to work with a completion_tracker
6683 instead of a VEC.
6684 (enum complete_line_internal_reason): Add describing comments.
6685 (complete_line_internal_normal_command): Adjust to work with a
6686 completion_tracker instead of a VEC.
6687 (complete_line_internal): Rename to ...
6688 (complete_line_internal_1): ... this and adjust to work with a
6689 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6690 handle_brkchars phase.
6691 (new_completion_tracker): Delete.
6692 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6693 complete_line_internal_1.
6694 (free_completion_tracker): Delete.
6695 (INITIAL_COMPLETION_HTAB_SIZE): New.
6696 (completion_tracker::completion_tracker)
6697 (completion_tracker::~completion_tracker): New.
6698 (maybe_add_completion): Delete.
6699 (completion_tracker::maybe_add_completion)
6700 (completion_tracker::add_completion)
6701 (completion_tracker::add_completions): New.
6702 (throw_max_completions_reached_error): Delete.
6703 (complete_line): Adjust to work with a completion_tracker instead
6704 of a VEC. Don't create a completion_tracker_t or check for max
6705 completions here.
6706 (command_completer, command_completer_handle_brkchars)
6707 (signal_completer, reg_or_group_completer_1)
6708 (reg_or_group_completer, default_completer_handle_brkchars):
6709 Adjust to work with a completion_tracker.
6710 (gdb_completion_word_break_characters_throw): New.
6711 (gdb_completion_word_break_characters): Reimplement.
6712 (line_completion_function): Delete.
6713 (completion_tracker::recompute_lowest_common_denominator)
6714 (expand_preserving_ws)
6715 (completion_tracker::build_completion_result)
6716 (completion_result::completion_result)
6717 (completion_result::completion_result)
6718 (completion_result::~completion_result)
6719 (completion_result::completion_result)
6720 (completion_result::release_match_list, compare_cstrings)
6721 (completion_result::sort_match_list)
6722 (completion_result::reset_match_list)
6723 (gdb_rl_attempted_completion_function_throw)
6724 (gdb_rl_attempted_completion_function): New.
6725 * completer.h (completion_list, struct completion_result)
6726 (class completion_tracker): New.
6727 (complete_line): Add completion_tracker parameter.
6728 (readline_line_completion_function): Delete.
6729 (gdb_rl_attempted_completion_function): New.
6730 (noop_completer, filename_completer, expression_completer)
6731 (location_completer, symbol_completer, command_completer)
6732 (signal_completer, reg_or_group_completer): Update prototypes.
6733 (completion_tracker_t, new_completion_tracker)
6734 (make_cleanup_free_completion_tracker): Delete.
6735 (enum maybe_add_completion_enum): Delete.
6736 (maybe_add_completion): Delete.
6737 (throw_max_completions_reached_error): Delete.
6738 * corefile.c (complete_set_gnutarget): Adjust to work with a
6739 completion_tracker instead of a VEC.
6740 * cp-abi.c (cp_abi_completer): Adjust to work with a
6741 completion_tracker instead of a VEC.
6742 * d-lang.c (d_language_defn): Adjust.
6743 * disasm.c (disassembler_options_completer): Adjust to work with a
6744 completion_tracker instead of a VEC.
6745 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6746 (f_collect_symbol_completion_matches): ... this. Adjust to work
6747 with a completion_tracker instead of a VEC.
6748 (f_language_defn): Adjust.
6749 * go-lang.c (go_language_defn): Adjust.
6750 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
6751 Adjust to work with a completion_tracker instead of a VEC.
6752 * infrun.c (handle_completer): Likewise.
6753 * interps.c (interpreter_completer): Likewise.
6754 * interps.h (interpreter_completer): Likewise.
6755 * language.c (unknown_language_defn, auto_language_defn)
6756 (local_language_defn): Adjust.
6757 * language.h (language_defn::la_make_symbol_completion_list):
6758 Rename to ...
6759 (language_defn::la_collect_symbol_completion_matches): ... this
6760 and adjust to work with a completion_tracker instead of a VEC.
6761 * m2-lang.c (m2_language_defn): Adjust.
6762 * objc-lang.c (objc_language_defn): Adjust.
6763 * opencl-lang.c (opencl_language_defn): Adjust.
6764 * p-lang.c (pascal_language_defn): Adjust.
6765 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
6766 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
6767 with a completion_tracker.
6768 * rust-lang.c (rust_language_defn): Adjust.
6769 * symtab.c (free_completion_list, do_free_completion_list)
6770 (return_val, completion_tracker): Delete.
6771 (completion_list_add_name, completion_list_add_symbol)
6772 (completion_list_add_msymbol, completion_list_objc_symbol)
6773 (completion_list_add_fields, add_symtab_completions): Add
6774 completion_tracker parameter and use it.
6775 (default_make_symbol_completion_list_break_on_1): Rename to...
6776 (default_collect_symbol_completion_matches_break_on): ... this.
6777 Add completion_tracker parameter and use it instead of allocating
6778 a completion tracker here.
6779 (default_make_symbol_completion_list_break_on): Delete old
6780 implementation.
6781 (default_make_symbol_completion_list): Delete.
6782 (default_collect_symbol_completion_matches): New.
6783 (make_symbol_completion_list): Delete.
6784 (collect_symbol_completion_matches): New.
6785 (make_symbol_completion_type): Rename to ...
6786 (collect_symbol_completion_matches_type): ... this. Add
6787 completion_tracker parameter and use it instead of VEC.
6788 (make_file_symbol_completion_list_1): Rename to...
6789 (collect_file_symbol_completion_matches): ... this. Add
6790 completion_tracker parameter and use it instead of VEC.
6791 (make_file_symbol_completion_list): Delete.
6792 (add_filename_to_list): Use completion_list instead of a VEC.
6793 (add_partial_filename_data::list): Now a completion_list.
6794 (make_source_files_completion_list): Work with a completion_list
6795 instead of a VEC.
6796 * symtab.h: Include "completer.h".
6797 (default_make_symbol_completion_list_break_on)
6798 (default_make_symbol_completion_list, make_symbol_completion_list)
6799 (make_symbol_completion_type, make_file_symbol_completion_list)
6800 (make_source_files_completion_list): Delete.
6801 (default_collect_symbol_completion_matches_break_on)
6802 (default_collect_symbol_completion_matches)
6803 (collect_symbol_completion_matches)
6804 (collect_symbol_completion_matches_type)
6805 (collect_file_symbol_completion_matches)
6806 (make_source_files_completion_list): New.
6807 * top.c (init_main): Don't install a rl_completion_entry_function
6808 hook. Install a rl_attempted_completion_function hook instead.
6809 * tui/tui-layout.c (layout_completer): Adjust to work with a
6810 completion_tracker.
6811 * tui/tui-regs.c (tui_reggroup_completer):
6812 * tui/tui-win.c (window_name_completer, focus_completer)
6813 (winheight_completer): Adjust to work with a completion_tracker.
6814 * value.c: Include "completer.h".
6815 (complete_internalvar): Adjust to work with a completion_tracker.
6816 * value.h (complete_internalvar): Likewise.
6817
6e1dbf8c
PA
68182017-07-17 Pedro Alves <palves@redhat.com>
6819
6820 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
6821 renames.
6822 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
6823 comments to completer_ftype's declaration.
6824 <completer_handle_brkchars>: Change type to
6825 completer_handle_brkchars_ftype.
6826 * command.h (completer_ftype): Add describing comment and give
6827 names to parameters.
6828 (completer_ftype_void): Rename to ...
6829 (completer_handle_brkchars_ftype) ... this. Add describing comment.
6830 (set_cmd_completer_handle_brkchars): Adjust.
6831 * completer.c (filename_completer_handle_brkchars): New function.
6832 (complete_line_internal_normal_command): New function, factored
6833 out from ...
6834 (complete_line_internal): ... here.
6835 (command_completer_handle_brkchars)
6836 (default_completer_handle_brkchars)
6837 (completer_handle_brkchars_func_for_completer): New functions.
6838 * completer.h (set_gdb_completion_word_break_characters): Delete
6839 declaration.
6840 (completer_handle_brkchars_func_for_completer): New declaration.
6841 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
6842 completer_handle_brkchars_func_for_completer.
6843
78b13106
PA
68442017-07-17 Pedro Alves <palves@redhat.com>
6845
6846 * completer.c (symbol_completer): New function, based on
6847 make_symbol_completion_list_fn.
6848 * completer.h (symbol_completer): New declaration.
6849 * guile/scm-cmd.c (cmdscm_completers): Adjust.
6850 * python/py-cmd.c (completers): Adjust.
6851 * symtab.c (make_symbol_completion_list_fn): Delete.
6852 * symtab.h (make_symbol_completion_list_fn): Delete.
6853 * cli/cli-decode.c (add_cmd): Adjust.
6854
bbf2f4df
PA
68552017-07-17 Pedro Alves <palves@redhat.com>
6856
6857 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
6858 * dwarf2read.c: Include "filename-seen-cache.h".
6859 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
6860 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
6861 * filename-seen-cache.c: New file.
6862 * filename-seen-cache.h: New file.
6863 * symtab.c: Include "filename-seen-cache.h".
6864 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
6865 (create_filename_seen_cache, clear_filename_seen_cache)
6866 (delete_filename_seen_cache, filename_seen): Delete, parts moved
6867 to filename-seen-cache.h/filename-seen-cache.c.
6868 (output_source_filename, sources_info)
6869 (maybe_add_partial_symtab_filename)
6870 (make_source_files_completion_list): Adjust to use
6871 filename_seen_cache.
6872
330cdd98
PA
68732017-07-17 Pedro Alves <palves@redhat.com>
6874
6875 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
6876 fields.
6877 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
6878 dwarf2_debug_sections*)): New.
6879 (dwarf2_per_objfile::dwarf2_per_objfile(const
6880 dwarf2_per_objfile&)): Declare as deleted.
6881 (dwarf2_per_objfile::operator=): Declare as deleted.
6882 (dwarf2_per_objfile::dwarf2_per_objfile)
6883 (dwarf2_per_objfile::~dwarf2_per_objfile)
6884 (dwarf2_per_objfile::free_cached_comp_units): New.
6885 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
6886 ctor. Call dwarf2_per_objfile's ctor manually.
6887 (dwarf2_locate_sections): Deleted/refactored as ...
6888 (dwarf2_per_objfile::locate_sections): ... this new method.
6889 (free_cached_comp_units): Defer to
6890 dwarf2_per_objfile::free_cached_comp_units.
6891 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
6892
8880f2a9
TT
68932017-07-14 Tom Tromey <tom@tromey.com>
6894
6895 PR rust/21764:
6896 * rust-exp.y (convert_ast_to_expression): Add "want_type"
6897 parameter.
6898 <UNOP_SIZEOF>: Split into separate case.
6899 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
6900
65547233
TT
69012017-07-14 Tom Tromey <tom@tromey.com>
6902
6903 PR rust/21763:
6904 * symtab.c (symbol_matches_domain): Add language_rust to special
6905 case.
6906 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
6907 treat LOC_TYPEDEF symbols as variables.
6908
8f14146e
PA
69092017-07-14 Pedro Alves <palves@redhat.com>
6910
6911 * symtab.c (make_file_symbol_completion_list_1): Iterate over
6912 symtabs matching all symtabs with SRCFILE as file name instead of
6913 only considering the first hit, with lookup_symtab.
6914
2347965c
SM
69152017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6916
6917 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
6918 operator_name parameters.
6919 (gen_expr): Update function call.
6920
40f4af28
SM
69212017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6922
6923 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
6924 parameter.
6925 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
6926 Likewise.
6927 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
6928 parameter, use agent_expr::gdbarch instead, update function
6929 calls.
6930 (locexpr_tracepoint_var_ref): Likewise.
6931 (loclist_tracepoint_var_ref): Likewise.
6932 * ax-gdb.c (gen_trace_static_fields): Likewise.
6933 (gen_traced_pop): Likewise.
6934 (gen_frame_args_address): Likewise.
6935 (gen_frame_locals_address): Likewise.
6936 (gen_var_ref): Likewise.
6937 (gen_struct_ref_recursive): Likewise.
6938 (gen_static_field): Likewise.
6939 (gen_maybe_namespace_elt): Likewise.
6940 (gen_expr): Likewise.
6941 (gen_trace_for_var): Likewise.
6942 (gen_trace_for_expr): Likewise.
6943 (gen_trace_for_return_address): Likewise.
6944
053f8057
SM
69452017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6946
6947 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
6948 parameter.
6949 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
6950
6661ad48
SM
69512017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6952
6953 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
6954 from ax, update calls.
6955 (gen_usual_arithmetic): Likewise.
6956 (gen_integral_promotions): Likewise.
6957 (gen_bitfield_ref): Likewise.
6958 (gen_primitive_field): Likewise.
6959 (gen_struct_ref_recursive): Likewise.
6960 (gen_struct_ref): Likewise.
6961 (gen_maybe_namespace_elt): Likewise.
6962 (gen_struct_elt_for_reference): Likewise.
6963 (gen_namespace_elt): Likewise.
6964 (gen_aggregate_elt_ref): Likewise.
6965 (gen_expr): Get gdbarch from ax, update calls.
6966 (gen_expr_binop_rest): Likewise.
6967
c55a47e7
PA
69682017-07-13 Pedro Alves <palves@redhat.com>
6969
6970 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
6971 as default tdesc.
6972 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
6973 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
6974 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
6975 tdesc_amd64_linux as default tdesc. Get final tdesc from the
6976 tdep.
6977 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
6978 Get final tdesc from the tdep.
6979 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
6980 default tdesc.
6981 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6982 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6983 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
6984 Use it as default tdesc.
6985 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
6986 down to amd_init_abi. No longer handle fallback tdesc here.
6987 * amd64-tdep.h (tdesc_x32): Declare.
6988 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
6989 parameter.
6990 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
6991 as default tdesc.
6992
55efceab
AA
69932017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6994
6995 * s390-linux-tdep.c (s390_process_record): Add support for
6996 instructions new in arch12.
6997
0aa37b65
JB
69982017-07-11 John Baldwin <jhb@FreeBSD.org>
6999
7000 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7001 PT_GETFSBASE and PT_GETGSBASE.
7002 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7003 PT_SETGSBASE.
7004
48aeef91
JB
70052017-07-11 John Baldwin <jhb@FreeBSD.org>
7006
7007 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7008 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7009 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7010 those rules.
7011 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7012 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7013 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7014 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7015 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7016 * features/i386/amd64.xml: Add 64bit-segments.xml.
7017 * features/i386/amd64-avx-avx512.c: Regenerated.
7018 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7019 * features/i386/amd64-avx-mpx.c: Regenerated.
7020 * features/i386/amd64-avx.c: Regenerated.
7021 * features/i386/amd64-mpx.c: Regenerated.
7022 * features/i386/amd64.c: Regenerated.
7023 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7024 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7025 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7026 * regformats/i386/amd64-avx.dat: Regenerated.
7027 * regformats/i386/amd64-mpx.dat: Regenerated.
7028 * regformats/i386/amd64.dat: Regenerated.
7029
77c501bc
YQ
70302017-07-10 Yao Qi <yao.qi@linaro.org>
7031
7032 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7033 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7034
6dc8d757
AK
70352017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7036
7037 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7038 unsetenv.
7039 * gnulib/aclocal.m4: Regenerate.
7040 * gnulib/config.in: Regenerate.
7041 * gnulib/configure: Regenerate.
7042 * gnulib/import/Makefile.am: Regenerate.
7043 * gnulib/import/Makefile.in: Regenerate.
7044 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7045 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7046 * gnulib/import/m4/environ.m4: New file.
7047 * gnulib/import/m4/setenv.m4: New file.
7048 * gnulib/import/setenv.c: New file.
7049 * gnulib/import/unsetenv.c: New file.
7050
266934d1
SM
70512017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7052
7053 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7054 address when op is DW_OP_addr.
7055
03278692
TT
70562017-07-09 Tom Tromey <tom@tromey.com>
7057
7058 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7059 check and apply to outer type.
7060
4b654465
JB
70612017-07-07 John Baldwin <jhb@FreeBSD.org>
7062
7063 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7064 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7065 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7066 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7067
2af9fc44
JB
70682017-07-07 John Baldwin <jhb@FreeBSD.org>
7069
7070 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7071
382b69bb
JB
70722017-07-07 John Baldwin <jhb@FreeBSD.org>
7073
7074 * corelow.c (get_core_siginfo): Remove.
7075 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7076 instead of get_core_siginfo.
7077 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7078 * gdbarch.h: Re-generate.
7079 * gdbarch.c: Re-generate.
7080 * linux-tdep.c (linux_core_xfer_siginfo): New.
7081 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7082
6e5eab33
JB
70832017-07-07 John Baldwin <jhb@FreeBSD.org>
7084
7085 * corelow.c (thread_section_name): Move to ...
7086 * gdbcore.h (thread_section_name): ... here.
7087
929edea9
JB
70882017-07-07 John Baldwin <jhb@FreeBSD.org>
7089
7090 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7091 (struct siginfo32): New.
7092 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7093 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7094 via ptrace(PT_LWPINFO).
7095
762c974a
JB
70962017-07-07 John Baldwin <jhb@FreeBSD.org>
7097
7098 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7099 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7100 (fbsd_get_siginfo_type): New.
7101 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7102 (_initialize_fbsd_tdep): New.
7103
33c5cd75
DB
71042017-07-06 David Blaikie <dblaikie@gmail.com>
7105
7106 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7107 a singular dwo_unit*) to support multiple CUs in the same way that
7108 multiple TUs are supported.
7109 (create_cus_hash_table): Replace create_dwo_cu with a function for
7110 parsing multiple CUs from a DWO file.
7111 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7112 create_dwo_cu.
7113 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7114 htab_find, rather than comparing the signature to a singleton CU in
7115 the dwo_file.
7116
8455d262
PA
71172017-07-06 Pedro Alves <palves@redhat.com>
7118
7119 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7120
4da3eb35
PA
71212017-07-04 Pedro Alves <palves@redhat.com>
7122
7123 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7124 * gdbtypes.h (TYPE_STATIC): Delete.
7125 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7126 is_synchronized, is_native>: Delete.
7127 <dummy>: Bump.
7128 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7129 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7130 (TYPE_FN_FIELD_ABSTRACT): Delete.
7131
5bfd255c
SM
71322017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7133
7134 * buffer.h (buffer_finish): Fix spelling mistakes.
7135
25c54127
EZ
71362017-07-01 Eli Zaretskii <eliz@gnu.org>
7137
7138 * .dir-locals.el: Automatically switch to C-style comments in
7139 versions of Emacs that support the feature.
7140
dc4bde35
SDJ
71412017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7142 Pedro Alves <palves@redhat.com>
7143
7144 PR cli/21688
7145 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7146 (process_next_line): New variable 'inline_cmd'.
7147 Adjust 'if' clauses for "python", "compile" and "guile" to use
7148 'command_name_equals' and check for '!inline_cmd'.
7149
51ed89aa
SDJ
71502017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7151
7152 PR cli/21688
7153 * cli/cli-script.c (command_name_equals_not_inline): New function.
7154 (process_next_line): Adjust 'if' clauses for "python", "compile"
7155 and "guile" to use command_name_equals_not_inline.
7156
eb17d413
PA
71572017-06-29 Pedro Alves <palves@redhat.com>
7158
7159 * completer.c (expression_completer): Call
7160 linespec_location_completer instead of location_completer.
7161
195bcdd5
PA
71622017-06-29 Pedro Alves <palves@redhat.com>
7163
7164 * completer.c (expression_completer): Remove code that recomputes
7165 'text' from 'word'.
7166
adc764e7
YQ
71672017-06-29 Yao Qi <yao.qi@linaro.org>
7168
7169 * regformats/regdat.sh: Generate code with
7170 "ifndef IN_PROCESS_AGENT".
7171
6e75794e
PA
71722017-06-28 Pedro Alves <palves@redhat.com>
7173
7174 * command.h: Include "common/scoped_restore.h".
7175
bc491f2e
YQ
71762017-06-28 Yao Qi <yao.qi@linaro.org>
7177
7178 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7179 instead of obstack_grow.
7180
41664b45
DG
71812017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7182
7183 PR gdb/21337
7184 * symfile.c (reread_symbols): Call objfiles_changed just before
7185 read_symbols.
7186
6da67eb1
PA
71872017-06-27 Pedro Alves <palves@redhat.com>
7188
7189 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7190 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7191 (completion_list_add_symbol, completion_list_add_msymbol):
7192 ... these new functions.
7193 (add_symtab_completions)
7194 (default_make_symbol_completion_list_break_on_1): Adjust.
7195
23732b1e
PA
71962017-06-27 Pedro Alves <palves@redhat.com>
7197
7198 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7199 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7200 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7201 dtor.
7202 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7203 'storage_obstack' field an auto_obstack. In-class initialize all
7204 non-bitfield fields. Make minsyms_read bool.
7205 * symfile.c (read_symbols): Adjust.
7206
a4d1e79a
AH
72072017-06-27 Alan Hayward <alan.hayward@arm.com>
7208
7209 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7210 (gdbsim_store_register): Likewise.
7211
8268c778
PA
72122017-06-27 Pedro Alves <palves@redhat.com>
7213
7214 * c-exp.y (name_obstack): Now an auto_obstack.
7215 (yylex): Use auto_obstack::clear.
7216 (c_parse): Use auto_obstack::clear instead of reinitializing and
7217 freeing the obstack.
7218 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7219 * d-exp.y (name_obstack): Now an auto_obstack.
7220 (yylex): Use auto_obstack::clear.
7221 (d_parse): Use auto_obstack::clear instead of reinitializing and
7222 freeing the obstack.
7223 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7224 auto_obstack.
7225 * dwarf2read.c (create_addrmap_from_index)
7226 (dwarf2_build_psymtabs_hard)
7227 (update_enumeration_type_from_children): Likewise.
7228 * gdb_obstack.h (auto_obstack): New type.
7229 * go-exp.y (name_obstack): Now an auto_obstack.
7230 (build_packaged_name): Use auto_obstack::clear.
7231 (go_parse): Use auto_obstack::clear instead of reinitializing and
7232 freeing the obstack.
7233 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7234 auto_obstack.
7235 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7236 * rust-exp.y (work_obstack): Now an auto_obstack.
7237 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7238 reinitializing and freeing the obstack.
7239 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7240 (host_char_to_target): Use auto_obstack.
7241 * utils.h (make_cleanup_obstack_free): Delete declaration.
7242 * valprint.c (generic_emit_char, generic_printstr): Use
7243 auto_obstack.
7244
db665f42
SM
72452017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7246
7247 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7248 thread.
7249 (darwin_init_thread_list): Don't update dummy thread.
7250 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7251
873c0814
SM
72522017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7253
7254 * record-full.c (netorder16): Remove.
7255
8b5a7a6e
SM
72562017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7257
7258 * common/diagnostics.h: Define macros for GCC.
7259 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7260 * common/vec.h: Include diagnostics.h.
7261 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7262 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7263 warning.
7264
d1435379
SM
72652017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7266
7267 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7268 New macro.
7269 * ada-lex.l: Ignore deprecated register warnings.
7270
cc75e0fd
SM
72712017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7272
7273 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7274 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7275
07809eaf
SM
72762017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7277
7278 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7279 its own line.
7280
f076f034
SM
72812017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7282
7283 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7284
0dd5cbc5
AH
72852017-06-23 Alan Hayward <alan.hayward@arm.com>
7286
7287 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7288 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7289 (xtensa_register_read_masked): Likewise.
7290
d4c6ce5b
SDJ
72912017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7292
7293 * common/environ.c (gdb_environ::unset): Update comment.
7294
16892a03
AH
72952017-06-22 Alan Hayward <alan.hayward@arm.com>
7296
7297 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7298 registers.
7299
d7dcbefc
AH
73002017-06-22 Alan Hayward <alan.hayward@arm.com>
7301
7302 * record-full.c (record_full_exec_insn): Use byte_vector.
7303
b30ff123
YQ
73042017-06-22 Yao Qi <yao.qi@linaro.org>
7305
7306 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7307 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7308
4fa847d7
AH
73092017-06-22 Alan Hayward <alan.hayward@arm.com>
7310
7311 * remote.c (cached_reg): Move from here...
7312 * regcache.h (cached_reg): ...to here.
7313 * python/py-unwind.c (struct reg_info): Remove.
7314 (cached_frame_info): Use cached_reg_t.
7315 (pyuw_prev_register): Likewise.
7316 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7317 (pyuw_dealloc_cache): Free all registers.
7318
f4906a9a
PA
73192017-06-22 Pedro Alves <palves@redhat.com>
7320 Simon Marchi <simon.marchi@ericsson.com>
7321
7322 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7323 warning.
7324 * common/diagnostics.h: New file.
7325
b45a1208
PA
73262017-06-22 Pedro Alves <palves@redhat.com>
7327
7328 * common/agent.h: Add include guards.
7329
e4da2c61
SM
73302017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7331
7332 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7333 talk about addressable units instead of bytes.
7334
96160d60
SDJ
73352017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7336
7337 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7338 of '::const_iterator'.
7339
9a6c7d9c
SDJ
73402017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7341
7342 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7343 'unittests/environ-selftests.c'.
7344 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7345 * charset.c (find_charset_names): Declare object 'iconv_env'.
7346 Update code to use 'iconv_env' object. Remove call to
7347 'free_environ'.
7348 * common/environ.c: Include <utility>.
7349 (make_environ): Delete function.
7350 (free_environ): Delete function.
7351 (gdb_environ::clear): New function.
7352 (gdb_environ::operator=): New function.
7353 (gdb_environ::get): Likewise.
7354 (environ_vector): Delete function.
7355 (set_in_environ): Delete function.
7356 (gdb_environ::set): New function.
7357 (unset_in_environ): Delete function.
7358 (gdb_environ::unset): New function.
7359 (gdb_environ::envp): Likewise.
7360 * common/environ.h: Include <vector>.
7361 (struct gdb_environ): Delete; transform into...
7362 (class gdb_environ): ... this class.
7363 (free_environ): Delete prototype.
7364 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7365 environ_vector): Likewise.
7366 * infcmd.c (run_command_1): Update code to call
7367 'envp' from 'gdb_environ' class.
7368 (environment_info): Update code to call methods from 'gdb_environ'
7369 class.
7370 (unset_environment_command): Likewise.
7371 (path_info): Likewise.
7372 (path_command): Likewise.
7373 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7374 (inferior::inferior): Initialize 'environment' using the host's
7375 information.
7376 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7377 Include "environ.h".
7378 (class inferior) <environment>: Change type from 'struct
7379 gdb_environ' to 'gdb_environ'.
7380 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7381 methods from 'gdb_environ' class.
7382 * solib.c (solib_find_1): Likewise
7383 * unittests/environ-selftests.c: New file.
7384
75c554cf
YQ
73852017-06-20 Yao Qi <yao.qi@linaro.org>
7386
7387 * features/i386/i386-linux.xml: Exchange the order of including
7388 32bit-linux.xml and 32bit-sse.xml.
7389 * features/i386/i386-linux.c: Regenerated.
7390
72ddacb7
YQ
73912017-06-20 Yao Qi <yao.qi@linaro.org>
7392
7393 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7394 Delete copy ctor and assignment operator.
7395 (tdesc_type): Likewise.
7396 (tdesc_feature): Likewise.
7397 (tdesc_free_reg): Remove.
7398 (tdesc_create_reg): Use new.
7399 (tdesc_free_type): Remove.
7400 (tdesc_create_vector): Use new.
7401 (tdesc_create_union): Likewise.
7402 (tdesc_create_flags): Likewise.
7403 (tdesc_create_enum): Likewise.
7404 (tdesc_free_feature): Delete.
7405 (free_target_description): Use delete.
7406
325c9fd4
JB
74072017-06-19 John Baldwin <jhb@FreeBSD.org>
7408
7409 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7410 registers.
7411
16b7a719
PA
74122017-06-19 Pedro Alves <palves@redhat.com>
7413
7414 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7415 after gdb::unlinker.
7416
1c8e01c9
SDJ
74172017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7418
7419 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7420 gdb_environ to access an environment variable.
7421
ffce45d2
TP
74222017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7423
7424 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7425 gdb_byte*.
7426
1d4fbac9
SM
74272017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7428
7429 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7430
8465943a
SM
74312017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7432
7433 * configure: Re-generate.
7434 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7435
3e019bdc
SM
74362017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7437
7438 * configure: Re-generate.
7439 * warning.m4: Pass -Werror to compiler when checking for
7440 supported warning flags.
7441
cf0dd6f0
SM
74422017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7443
7444 * Makefile.in (COMPILE.pre): Add "-x c++".
7445
6f98355c
YQ
74462017-06-16 Alan Hayward <alan.hayward@arm.com>
7447 Pedro Alves <palves@redhat.com>
7448 Yao Qi <yao.qi@linaro.org>
7449
7450 * defs.h (RequireLongest): New.
7451 (extract_integer): Declare function template.
7452 (extract_signed_integer): Remove the declaration, but define it
7453 static inline.
7454 (extract_unsigned_integer): Likewise.
7455 (store_integer): Declare function template.
7456 (store_signed_integer): Remove the declaration, but define it
7457 static inline.
7458 (store_unsigned_integer): Likewise.
7459 * findvar.c (extract_integer): New function template.
7460 (extract_signed_integer): Remove.
7461 (extract_unsigned_integer): Remove.
7462 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7463 instantiations.
7464 (store_integer): New function template.
7465 (store_signed_integer): Remove.
7466 (store_unsigned_integer): Remove.
7467 (store_integer): Explicit instantiations.
7468 * regcache.c (regcache_raw_read_signed): Update.
7469 (regcache::raw_read): New function.
7470 (regcache::raw_read_signed): Remove.
7471 (regcache::raw_read_unsigned): Remove.
7472 (regcache_raw_read_unsigned): Update.
7473 (regcache_raw_write_unsigned): Update.
7474 (regcache::raw_write_signed): Remove.
7475 (regcache::raw_write): New function.
7476 (regcache_cooked_read_signed): Update.
7477 (regcache::raw_write_unsigned): Remove.
7478 (regcache::cooked_read_signed): Remove.
7479 (regcache_cooked_read_unsigned): Update.
7480 (regcache::cooked_read_unsigned): Remove.
7481 (regcache_cooked_write_signed): Update.
7482 (regcache_cooked_write_unsigned): Update.
7483 * regcache.h (regcache) <raw_read_signed>: Remove.
7484 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7485 <raw_read, raw_write>: New.
7486 <cooked_read_signed, cooked_write_signed>: Remove.
7487 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7488 <cooked_read, cooked_write>: New.
7489 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7490 (sh64_pseudo_register_write): Update.
7491
a87dc45a
AK
74922017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7493
7494 * arc-tdep.c (arc_disassembler_options): New variable.
7495 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7496 of default_print_insn.
7497 (arc_delayed_print_insn): Set info->section when needed,
7498 use default_print_insn to retrieve a disassembler.
7499
45159d6a
SDJ
75002017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7501
7502 PR gdb/21574
7503 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7504 to mention $SHELL and startup-with-shell.
7505
b46c4cf0
MF
75062017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7507
7508 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7509
6394c606
YQ
75102017-06-14 Yao Qi <yao.qi@linaro.org>
7511
7512 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7513 default_print_insn instead of print_insn_aarch64.
7514 * arm-tdep.c (gdb_print_insn_arm): Call
7515 default_print_insn instead of print_insn_big_arm
7516 and print_insn_little_arm.
7517 * i386-tdep.c (i386_print_insn): Call default_print_insn
7518 instead of print_insn_i386.
7519 * ia64-tdep.c (ia64_print_insn): Call
7520 default_print_insn instead of print_insn_ia64.
7521 * mips-tdep.c (gdb_print_insn_mips): Call
7522 default_print_insn instead of print_insn_big_mips
7523 and print_insn_little_mips.
7524 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7525 instead of print_insn_spu.
7526
d5722aa2
PA
75272017-06-14 Pedro Alves <palves@redhat.com>
7528
7529 * ada-lang.c: Include "common/byte-vector.h".
7530 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7531 * charset.c (wchar_iterator::iterate): Resize the vector instead
7532 of reserving it.
7533 * common/byte-vector.h: Include "common/def-vector.h".
7534 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7535 * cli/cli-dump.c: Include "common/byte-vector.h".
7536 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7537 * common/byte-vector.h: New file.
7538 * common/def-vector.h: New file.
7539 * common/default-init-alloc.h: New file.
7540 * dwarf2loc.c: Include "common/byte-vector.h".
7541 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7542 instead of reserving it.
7543 * dwarf2read.c: Include "common/byte-vector.h".
7544 (data_buf::m_vec): Now a gdb::byte_vector.
7545 * gdb_regex.c: Include "common/def-vector.h".
7546 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7547 * mi/mi-main.c: Include "common/byte-vector.h".
7548 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7549 * printcmd.c: Include "common/byte-vector.h".
7550 (print_scalar_formatted): Use gdb::byte_vector.
7551 * valprint.c: Include "common/byte-vector.h".
7552 (maybe_negate_by_bytes, print_decimal_chars): Use
7553 gdb::byte_vector.
7554
01ec7a27
SM
75552017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7556
7557 * darwin-nat.c: Include "nat/fork-inferior.h".
7558
848d9074
SM
75592017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7560
7561 * configure.nat: Factor out Darwin bits that are not
7562 architecture-specific. Add fork-inferior.o.
7563
3b912944
SM
75642017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7565
7566 * configure.nat: Factor out AIX bits that are not
7567 architecture-specific. Add fork-inferior.o.
7568
55acdf22
AA
75692017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7570
7571 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7572 (read_pieced_value, write_pieced_value): ...here. Reduce to
7573 wrappers that just call rw_pieced_value.
7574
f65e2044
AA
75752017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7576
7577 * dwarf2loc.c (write_pieced_value): When writing the data for a
7578 memory piece, use write_memory_with_notification instead of
7579 write_memory.
7580
23f945bf
AA
75812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7582
7583 * valops.c (read_value_memory): Change embedded_offset to
7584 represent a bit offset instead of a byte offset.
7585 * value.h (read_value_memory): Adjust comment.
7586
f236533e
AA
75872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7588
7589 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7590 dest_offset_bits and source_offset_bits.
7591 (write_pieced_value): Likewise.
7592
65d84b76
AA
75932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7594
7595 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7596 given by DW_OP_bit_piece.
7597 (write_pieced_value): Likewise.
7598
242d31ab
AA
75992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7600
7601 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7602 some other preparations to the places where sufficient information
7603 is available.
7604 (write_pieced_value): Likewise.
7605
03c8af18
AA
76062017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7607
7608 * dwarf2loc.c (bits_to_bytes): New function.
7609 (read_pieced_value): Fix offset calculations for register pieces
7610 on big-endian targets.
7611 (write_pieced_value): Likewise.
7612
840989c1
AA
76132017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7614
7615 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7616 (write_pieced_value): Likewise.
7617
359b19bb
AA
76182017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7619
7620 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7621 transfer the source value's least significant bits, instead of its
7622 lowest-addressed ones. Rename type_len to max_offset.
7623 (read_pieced_value): Mirror above changes to write_pieced_value as
7624 applicable.
7625
07c9ca3b
AA
76262017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7627
7628 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7629 truncate full bytes from dest_offset_bits before using it as an
7630 offset into the buffer.
7631
f1cc9874
AA
76322017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7633
7634 * dwarf2loc.c (write_pieced_value): Include transfer size in
7635 byte-wise check.
7636
cdaac320
AA
76372017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7638
7639 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7640 calculation of this_size.
7641
af547a96
AA
76422017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7643
7644 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7645 when targeting a bit-field.
7646 (write_pieced_value): Likewise.
7647
ddd7882a
AA
76482017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7649
7650 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7651 (allocate_piece_closure): Drop addr_size parameter.
7652 (dwarf2_evaluate_loc_desc_full): Adjust call to
7653 allocate_piece_closure.
7654
e9352324
AA
76552017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7656
7657 PR gdb/21226
7658 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7659 the LSB end, independent of endianness.
7660
d5d1163e
AA
76612017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7662
7663 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7664 size capping.
7665
032bb6ea
YQ
76662017-06-13 Yao Qi <yao.qi@linaro.org>
7667
7668 * mips-linux-nat.c: Move include features/mips*-linux.c to
7669 mips-linux-tdep.c.
7670 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7671 to mips-linux-tdep.c.
7672 * mips-linux-tdep.c: Include features/mips*-linux.c
7673 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7674 functions.
7675 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7676 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7677 (tdesc_mips64_dsp_linux): Declare.
7678
f12f6bad
TT
76792017-06-12 Tom Tromey <tom@tromey.com>
7680
7681 * valprint.h (val_print_type_code_int): Remove.
7682 * valprint.c (generic_val_print_int): Always call
7683 val_print_scalar_formatted.
7684 (val_print_type_code_int): Remove.
7685 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7686 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7687 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7688 * ada-valprint.c (ada_val_print_num): Use
7689 val_print_scalar_formatted.
7690
d9109c80
TT
76912017-06-12 Tom Tromey <tom@tromey.com>
7692
7693 * printcmd.c (print_scalar_formatted): Unify the two switches.
7694 Don't convert scalars to LONGEST.
7695
4ac0cb1c
TT
76962017-06-12 Tom Tromey <tom@tromey.com>
7697
7698 PR exp/16225:
7699 * valprint.h (print_decimal_chars): Update.
7700 * valprint.c (maybe_negate_by_bytes): New function.
7701 (print_decimal_chars): Add "is_signed" argument.
7702 * printcmd.c (print_scalar_formatted): Update.
7703
30a25466
TT
77042017-06-12 Tom Tromey <tom@tromey.com>
7705
7706 PR exp/16225:
7707 * valprint.h (print_binary_chars, print_hex_chars): Update.
7708 * valprint.c (val_print_type_code_int): Update.
7709 (print_binary_chars): Add "zero_pad" argument.
7710 (emit_octal_digit): New function.
7711 (print_octal_chars): Don't zero-pad.
7712 (print_decimal_chars): Likewise.
7713 (print_hex_chars): Add "zero_pad" argument.
7714 * sh64-tdep.c (sh64_do_fp_register): Update.
7715 * regcache.c (regcache::dump): Update.
7716 * printcmd.c (print_scalar_formatted): Update.
7717 * infcmd.c (default_print_one_register_info): Update.
7718
b3464d03
PA
77192017-06-12 Pedro Alves <palves@redhat.com>
7720 Alan Hayward <alan.hayward@arm.com>
7721
7722 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7723 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7724 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7725 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7726 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7727
4b76cda9
PA
77282017-06-12 Pedro Alves <palves@redhat.com>
7729
7730 * dwarf2read.c (mapped_symtab::data): Now a vector of
7731 symtab_index_entry instead of vector of
7732 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7733 whether an element's name is NULL instead of checking whether the
7734 element itself is NULL.
7735 (find_slot): Change return type. Adjust.
7736 (hash_expand, , add_index_entry, uniquify_cu_indices)
7737 (write_hash_table): Adjust.
7738
e8f8bcb3
PA
77392017-06-12 Pedro Alves <palves@redhat.com>
7740
7741 * dwarf2read.c (recursively_count_psymbols): New function.
7742 (write_psymtabs_to_index): Call it to compute number of psyms and
7743 pass estimate size of psyms_seen to unordered_set's ctor.
7744
70a1152b
PA
77452017-06-12 Pedro Alves <palves@redhat.com>
7746
7747 * dwarf2read.c (write_hash_table): Check if key already exists
7748 before emplacing.
7749
c2f134ac
PA
77502017-06-12 Pedro Alves <palves@redhat.com>
7751
7752 * dwarf2read.c (data_buf::append_space): Rename to...
7753 (data_buf::grow): ... this, and make private. Adjust all callers.
7754 (data_buf::append_uint): New method.
7755 (add_address_entry, write_one_signatured_type)
7756 (write_psymtabs_to_index): Use it.
7757
a81e6d4d
PA
77582017-06-12 Pedro Alves <palves@redhat.com>
7759
7760 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
7761 (file_write (FILE *, const std::vector<Elem>&)): Delete.
7762 (data_buf::file_write): Call ::fwrite directly.
7763
6fd931f2
PA
77642017-06-12 Pedro Alves <palves@redhat.com>
7765
7766 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
7767 std::vector::erase.
7768
bc8f2430
JK
77692017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7770
7771 Code cleanup: C++ify .gdb_index producer.
7772 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
7773 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
7774 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
7775 (create_strtab, add_string): Remove.
7776 (file_write, data_buf): New.
7777 (struct symtab_index_entry): Use std::vector for cu_indices.
7778 (struct mapped_symtab): Use std::vector for data.
7779 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
7780 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
7781 Remove.
7782 (find_slot): Change return type. Update it to the new data structures.
7783 (hash_expand, add_index_entry): Update it to the new data structures.
7784 (offset_type_compare): Remove.
7785 (uniquify_cu_indices): Update it to the new data structures.
7786 (c_str_view, c_str_view_hasher, vector_hasher): New.
7787 (add_indices_to_cpool): Remove.
7788 (write_hash_table): Update it to the new data structures.
7789 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
7790 (eq_psymtab_cu_index): Remove.
7791 (psym_index_map): New typedef.
7792 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
7793 reference and std::unordered_map for cu_index_htab.
7794 (add_address_entry, add_address_entry_worker, write_address_map)
7795 (write_psymbols): Update it to the new data structures.
7796 (write_obstack): Remove.
7797 (struct signatured_type_index_data): Change types_list to a data_buf
7798 reference and psyms_seen to a std::unordered_set reference.
7799 (write_one_signatured_type, recursively_write_psymbols)
7800 (write_psymtabs_to_index): Update it to the new data structures.
7801
c4dcb155
SM
78022017-06-11 Simon Marchi <simon.marchi@ericsson.com>
7803
7804 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
7805 separate-debug-file commands.
7806 * symfile.h (separate_debug_file_debug): New global.
7807 * symfile.c (separate_debug_file_debug): New global.
7808 (separate_debug_file_exists, find_separate_debug_file): Add
7809 debug output.
7810 (_initialize_symfile): Add "set debug separate-debug-file"
7811 command.
7812 * build-id.c (build_id_to_debug_bfd,
7813 find_separate_debug_file_by_buildid): Add debug output.
7814
6d45d4b4
SM
78152017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7816
7817 * gdbarch.sh (displaced_step_free_closure): Remove.
7818 * gdbarch.h, gdbarch.c: Re-generate.
7819 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
7820 displaced_step_free_closure.
7821 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7822 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7823 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7824 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7825 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7826 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7827 * arch-utils.h (simple_displaced_step_free_closure): Remove.
7828 * arch-utils.c (simple_displaced_step_free_closure): Remove.
7829 * infrun.c (displaced_step_clear): Call xfree instead of
7830 gdbarch_displaced_step_free_closure.
7831
2f91880f
SDJ
78322017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
7833
7834 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
7835 NULL".
7836
b8b6e72f
AH
78372017-06-08 Alan Hayward <alan.hayward@arm.com>
7838
7839 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
7840 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
7841 (mn10300_push_dummy_call): Likewise.
7842
5369082e
AH
78432017-06-08 Alan Hayward <alan.hayward@arm.com>
7844
7845 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
7846
ff4ca5ac
AH
78472017-06-08 Alan Hayward <alan.hayward@arm.com>
7848
7849 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
7850
aefd8b33
SDJ
78512017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7852
7853 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
7854 able to start inferiors using a shell.
7855 (New remote packets): Announce new packet "QStartupWithShell".
7856 * remote.c: Add PACKET_QStartupWithShell.
7857 (extended_remote_create_inferior): Handle new
7858 PACKET_QStartupWithShell.
7859 (remote_protocol_features) <QStartupWithShell>: New entry for
7860 PACKET_QStartupWithShell.
7861 (_initialize_remote): Call "add_packet_config_cmd" for
7862 QStartupShell.
7863
2090129c
SDJ
78642017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7865 Pedro Alves <palves@redhat.com>
7866
7867 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
7868 and "nat/fork-inferior.h".
7869 * common/common-inferior.h: New file, with contents from
7870 "gdb/inferior.h".
7871 * commom/common-utils.c: Include "common-utils.h".
7872 (stringify_argv): New function.
7873 * common/common-utils.h (stringify_argv): New prototype.
7874 * configure.nat: Add "fork-inferior.o" as a dependency for
7875 "*linux*", "fbsd*" and "nbsd*" hosts.
7876 * corefile.c (get_exec_file): Update comment.
7877 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
7878 instead of "startup_inferior".
7879 (darwin_create_inferior): Call "add_thread_silent" after
7880 "fork_inferior".
7881 * fork-child.c: Cleanup unnecessary includes.
7882 (SHELL_FILE): Move to "common/common-fork-child.c".
7883 (environ): Likewise.
7884 (exec_wrapper): Initialize.
7885 (get_exec_wrapper): New function.
7886 (breakup_args): Move to "common/common-fork-child.c"; rename to
7887 "breakup_args_for_exec".
7888 (escape_bang_in_quoted_argument): Move to
7889 "common/common-fork-child.c".
7890 (saved_ui): New variable.
7891 (prefork_hook): New function.
7892 (postfork_hook): Likewise.
7893 (postfork_child_hook): Likewise.
7894 (gdb_startup_inferior): Likewise.
7895 (fork_inferior): Move to "common/common-fork-child.c". Update
7896 function to support gdbserver.
7897 (startup_inferior): Likewise.
7898 * gdbcore.h (get_exec_file): Remove declaration.
7899 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
7900 instead of "startup_inferior". Call "add_thread_silent" after
7901 "fork_inferior".
7902 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
7903 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
7904 instead of "startup_inferior". Call "add_thread_silent" after
7905 "fork_inferior".
7906 * inferior.h: Include "common-inferior.h".
7907 (trace_start_error): Move to "common/common-utils.h".
7908 (trace_start_error_with_name): Likewise.
7909 (fork_inferior): Move prototype to "nat/fork-inferior.h".
7910 (startup_inferior): Likewise.
7911 (gdb_startup_inferior): New prototype.
7912 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
7913 * nat/fork-inferior.h: New file.
7914 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
7915 instead of "startup_inferior". Call "add_thread_silent" after
7916 "fork_inferior".
7917 * target.h (target_terminal_init): Move prototype to
7918 "target/target.h".
7919 (target_terminal_inferior): Likewise.
7920 (target_terminal_ours): Likewise.
7921 * target/target.h (target_terminal_init): New prototype, moved
7922 from "target.h".
7923 (target_terminal_inferior): Likewise.
7924 (target_terminal_ours): Likewise.
7925 * utils.c (gdb_flush_out_err): New function.
7926
043a4934
SDJ
79272017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7928
7929 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
7930 * common/common-gdbthread.h: New file, with parts from
7931 "gdb/gdbthread.h".
7932 * gdbthread.h: Include "common-gdbthread.h".
7933 (switch_to_thread): Moved to "common/common-gdbthread.h".
7934
15652511
SDJ
79352017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7936
7937 * Makefile.in (SFILES): Add "common/job-control.c".
7938 (HFILES_NO_SRCDIR): Add "common/job-control.h".
7939 (COMMON_OBS): Add "job-control.o".
7940 * common/job-control.c: New file, with contents from
7941 "gdb/inflow.c".
7942 * common/job-control.h: New file, with contents from "terminal.h".
7943 * fork-child.c: Include "job-control.h".
7944 * inflow.c: Include "job-control.h".
7945 (gdb_setpgid): Move to "common/common-inflow.c".
7946 (_initialize_inflow): Move setting of "job_control" to
7947 "handle_job_control".
7948 * terminal.h (job_control): Moved to "common/common-terminal.h".
7949 (gdb_setpgid): Likewise.
7950 * top.c: Include "job_control.h".
7951 * utils.c: Likewise.
7952 (job_control): Moved to "job-control.c".
7953
2d7cc5c7
PA
79542017-06-07 Pedro Alves <palves@redhat.com>
7955
7956 * Makefile.in (SFILES): Add gdb_regex.c.
7957 (COMMON_OBS): Add gdb_regex.o.
7958 * ada-lang.c (ada_add_standard_exceptions)
7959 (ada_add_exceptions_from_frame, name_matches_regex)
7960 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
7961 parameter type to compiled_regex. Adjust.
7962 (ada_exceptions_list): Use compiled_regex.
7963 * break-catch-throw.c (exception_catchpoint::pattern): Now a
7964 std::unique_ptr<compiled_regex>.
7965 (exception_catchpoint::~exception_catchpoint): Remove regfree
7966 call.
7967 (check_status_exception_catchpoint): Adjust to use compiled_regex.
7968 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
7969 * breakpoint.c (solib_catchpoint::compiled): Now a
7970 std::unique_ptr<compiled_regex>.
7971 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
7972 (check_status_catch_solib): Adjust to use compiled_regex.
7973 (add_solib_catchpoint): Adjust to use compiled_regex.
7974 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
7975 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
7976 compiled_regex reference. Adjust to use it.
7977 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
7978 declaration. Include "gdb_regex.h".
7979 (apropos_cmd): Change regex parameter to compiled_regex reference.
7980 * gdb_regex.c: New file.
7981 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
7982 declarations.
7983 (class compiled_regex): New.
7984 * linux-tdep.c: Include "common/gdb_optional.h".
7985 (struct mapping_regexes): New, factored out from
7986 mapping_is_anonymous_p, and adjusted to use compiled_regex.
7987 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
7988 gdb::optional and remove cleanups. Adjust to compiled_regex.
7989 * probe.c: Include "common/gdb_optional.h".
7990 (collect_probes): Use compiled_regex and gdb::optional and remove
7991 cleanups.
7992 * skip.c: Include "common/gdb_optional.h".
7993 (skiplist_entry::compiled_function_regexp): Now a
7994 gdb::optional<compiled_regex>.
7995 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
7996 (free_skiplist_entry): Remove regfree call.
7997 (compile_skip_regexp, skip_rfunction_p): Adjust to use
7998 compiled_regex and gdb::optional.
7999 * symtab.c: Include "common/gdb_optional.h".
8000 (search_symbols): Use compiled_regex and gdb::optional.
8001 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8002 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8003 to gdb_regex.c.
8004
50d6adef
AH
80052017-06-07 Alan Hayward <alan.hayward@arm.com>
8006
8007 * regcache.c (regcache::save): Avoid buffer use.
8008 (regcache::dump): Likewise.
8009
4a8a33c8
AH
80102017-06-07 Alan Hayward <alan.hayward@arm.com>
8011
8012 * sh-tdep.c (sh_pseudo_register_read): Remove
8013 MAX_REGISTER_SIZE.
8014 (sh_pseudo_register_write): Likewise.
8015 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8016 (sh64_pseudo_register_write): Likewise
8017
d1be909e
AH
80182017-06-07 Alan Hayward <alan.hayward@arm.com>
8019
8020 * aarch64-tdep.c (aarch64_store_return_value): Use
8021 V_REGISTER_SIZE.
8022 (aarch64_pseudo_read_value): Likewise.
8023 (aarch64_pseudo_write): Likewise.
8024
f4a65042
YQ
80252017-06-06 Yao Qi <yao.qi@linaro.org>
8026
8027 * regformats/regdef.h (set_register_cache): Remove the
8028 declaration.
8029
9f7fb0aa
AH
80302017-06-06 Alan Hayward <alan.hayward@arm.com>
8031
8032 * frame.c (frame_unwind_register_signed): Use
8033 frame_unwind_register_value.
8034
e1e01040
PA
80352017-06-06 Pedro Alves <palves@redhat.com>
8036
8037 PR breakpoints/21553
8038 * breakpoint.c (create_breakpoints_sal_default)
8039 (init_breakpoint_sal, create_breakpoint_sal): Use
8040 gdb::unique_xmalloc_ptr for string parameters.
8041 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8042 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8043 (base_breakpoint_create_breakpoints_sal)
8044 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8045 (strace_marker_create_breakpoints_sal)
8046 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8047 string parameters.
8048 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8049 gdb::unique_xmalloc_ptr for string parameters.
8050 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8051 parameters.
8052
fbe654c8
AH
80532017-06-06 Alan Hayward <alan.hayward@arm.com>
8054
8055 * alpha-tdep.c (alpha_register_to_value): Use
8056 get_frame_register_value.
8057 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8058
ae0d01d6
AH
80592017-06-06 Alan Hayward <alan.hayward@arm.com>
8060
8061 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8062 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8063 (ia64_value_to_register): Likewise.
8064 (ia64_extract_return_value): Likewise.
8065 (ia64_store_return_value): Likewise.
8066 (ia64_push_dummy_call): Likewise.
8067
49cf576c
JB
80682017-06-04 Joel Brobecker <brobecker@adacore.com>
8069
8070 GDB 8.0 released.
8071
26b6a6ab
SM
80722017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8073
8074 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8075
22827c51
SM
80762017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8077
8078 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8079 parameter.
8080 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8081
0e05cf3a
SM
80822017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8083
8084 * event-loop.c (poll_timers): Unallocate timer using delete
8085 instead of xfree.
8086
c1fc2657
SM
80872017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8088
8089 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8090 (struct breakpoint) <~breakpoint>: New.
8091 (struct watchpoint): Inherit from breakpoint.
8092 <~watchpoint>: New.
8093 <base>: Remove.
8094 (struct tracepoint): Inherit from breakpoint.
8095 <base>: Remove.
8096 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8097 (struct longjmp_breakpoint): Inherit from breakpoint.
8098 <~longjmp_breakpoint>: New.
8099 <base>: Remove.
8100 (new_breakpoint_from_type): Remove casts.
8101 (watchpoint_in_thread_scope): Remove reference to base field.
8102 (watchpoint_del_at_next_stop): Likewise.
8103 (update_watchpoint): Likewise.
8104 (watchpoint_check): Likewise.
8105 (bpstat_check_watchpoint): Likewise.
8106 (set_longjmp_breakpoint): Likewise.
8107 (struct fork_catchpoint): Inherit from breakpoint.
8108 <base>: Remove.
8109 (struct solib_catchpoint): Inherit from breakpoint.
8110 <~solib_catchpoint>: New.
8111 <base>: Remove.
8112 (dtor_catch_solib): Change to ...
8113 (solib_catchpoint::~solib_catchpoint): ... this.
8114 (breakpoint_hit_catch_solib): Remove reference to base field.
8115 (add_solib_catchpoint): Likewise.
8116 (create_fork_vfork_event_catchpoint): Likewise.
8117 (struct exec_catchpoint): Inherit from breakpoint.
8118 <~exec_catchpoint>: New.
8119 <base>: Remove.
8120 (dtor_catch_exec): Change to ...
8121 (exec_catchpoint::~exec_catchpoint): ... this.
8122 (dtor_watchpoint): Change to ...
8123 (watchpoint::~watchpoint): ... this.
8124 (watch_command_1): Remove reference to base field.
8125 (catch_exec_command_1): Likewise.
8126 (base_breakpoint_dtor): Change to ...
8127 (breakpoint::~breakpoint): ... this.
8128 (base_breakpoint_ops): Remove dtor field value.
8129 (longjmp_bkpt_dtor): Change to ...
8130 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8131 (strace_marker_create_breakpoints_sal): Remove reference to base
8132 field.
8133 (delete_breakpoint): Don't manually call breakpoint destructor.
8134 (create_tracepoint_from_upload): Remove reference to base field.
8135 (trace_pass_set_count): Likewise.
8136 (initialize_breakpoint_ops): Don't initialize
8137 momentary_breakpoint_ops, don't set dtors.
8138 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8139 <~ada_catchpoint>: New.
8140 <base>: Remove.
8141 (create_excep_cond_exprs): Remove reference to base field.
8142 (dtor_exception): Change to ...
8143 (ada_catchpoint::~ada_catchpoint): ... this.
8144 (dtor_catch_exception): Remove.
8145 (dtor_catch_exception_unhandled): Remove.
8146 (dtor_catch_assert): Remove.
8147 (create_ada_exception_catchpoint): Remove reference to base
8148 field.
8149 (initialize_ada_catchpoint_ops): Don't set dtors.
8150 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8151 breakpoint.
8152 <~signal_catchpoint>: New.
8153 <base>: Remove.
8154 (signal_catchpoint_dtor): Change to ...
8155 (signal_catchpoint::~signal_catchpoint): ... this.
8156 (create_signal_catchpoint): Remove reference to base field.
8157 (initialize_signal_catchpoint_ops): Don't set dtor.
8158 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8159 from breakpoint.
8160 <~syscall_catchpoint>: New.
8161 <base>: Remove.
8162 (dtor_catch_syscall): Change to ...
8163 (syscall_catchpoint::~syscall_catchpoint): ... this.
8164 (create_syscall_event_catchpoint): Remove reference to base
8165 field.
8166 (initialize_syscall_catchpoint_ops): Don't set dtor.
8167 * break-catch-throw.c (struct exception_catchpoint): Inherit
8168 from breakpoint.
8169 <~exception_catchpoint>: New.
8170 <base>: Remove.
8171 (dtor_exception_catchpoint): Change to ...
8172 (exception_catchpoint::~exception_catchpoint): ... this.
8173 (handle_gnu_v3_exceptions): Remove reference to base field.
8174 (initialize_throw_catchpoint_ops): Don't set dtor.
8175 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8176 field.
8177 * remote.c (remote_get_tracepoint_status): Likewise.
8178 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8179 * tracefile.c (tracefile_fetch_registers): Likewise.
8180 * tracepoint.c (actions_command): Likewise.
8181 (validate_actionline): Likewise.
8182 (tfind_1): Likewise.
8183 (get_traceframe_location): Likewise.
8184 (find_matching_tracepoint_location): Likewise.
8185 (parse_tracepoint_status): Likewise.
8186 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8187
3b0871f4
SM
81882017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8189
8190 * breakpoint.c (struct longjmp_breakpoint): New struct.
8191 (is_tracepoint_type): Change return type to bool.
8192 (is_longjmp_type): New function.
8193 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8194 (set_raw_breakpoint_without_location): Use
8195 new_breakpoint_from_type.
8196 (set_raw_breakpoint): Likewise.
8197
a5e364af
SM
81982017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8199
8200 * breakpoint.c (new_breakpoint_from_type): New function.
8201 (create_breakpoint_sal): Use new_breakpoint_from_type and
8202 unique_ptr.
8203 (create_breakpoint): Likewise.
8204
ae3b3f34
SM
82052017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8206
8207 * memattr.c (mem_info_command): Rename to ...
8208 (info_mem_command): ... this.
8209 (mem_enable_command): Rename to ...
8210 (enable_mem_command): ... this.
8211 (mem_disable_command): Rename to ...
8212 (disable_mem_command): ... this.
8213 (mem_delete_command): Rename to ...
8214 (delete_mem_command): ... this.
8215 (_initialize_mem): Adjust function names.
8216
13ace077
MM
82172017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8218
8219 * btrace.c (handle_pt_insn_events): New.
8220 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8221 STATUS. Split into this and ...
8222 (handle_pt_insn_event_flags): ... this.
8223
c56ccc05
MM
82242017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8225
8226 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8227 and struct pt_insn.resynced.
8228 * configure: Regenerated.
8229 * config.in: Regenerated.
8230
08c3f6d2
TW
82312017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8232
8233 * btrace.c (ftrace_find_call_by_number): New function.
8234 (ftrace_new_function): Store objects, not pointers.
8235 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8236 ftrace_new_gap, ftrace_update_function,
8237 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8238 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8239 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8240 btrace_ends_with_single_insn, btrace_call_get): Account for
8241 btrace_thread_info::functions now storing objects.
8242 * btrace.h (struct btrace_thread_info): Add constructor.
8243 (struct btrace_thread_info) <functions>: Make std::vector.
8244 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8245 Initialize with default values.
8246 * record-btrace.c (record_btrace_frame_sniffer): Account for
8247 btrace_thread_info::functions now storing objects.
8248
8ffd39f2
TW
82492017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8250
8251 * btrace.c: Remove typedef bfun_s.
8252 (ftrace_new_gap): Directly add gaps to the list of gaps.
8253 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8254 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8255 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8256 instead of gdb VEC.
8257
4aeb0dfc
TW
82582017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8259
8260 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8261 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8262 with btrace_thread_info::next_segment and
8263 btrace_thread_info::prev_segment.
8264 * btrace.h: Remove struct btrace_func_link.
8265 (struct btrace_function): Replace pair of function segment pointers
8266 with pair of indices.
8267 * python/py-record-btrace.c (btpy_call_prev_sibling,
8268 btpy_call_next_sibling): Replace references to
8269 btrace_thread_info::segment with btrace_thread_info::next_segment and
8270 btrace_thread_info::prev_segment.
8271 * record-btrace.c (record_btrace_frame_this_id): Use
8272 btrace_find_call_by_number.
8273
eb8f2b9c
TW
82742017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8275
8276 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8277 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8278 btrace_insn_next, btrace_insn_prev): Remove references to
8279 btrace_thread_info::flow.
8280 * btrace.h (struct btrace_function): Remove FLOW.
8281
42bfe59e
TW
82822017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8283
8284 * btrace.c (ftrace_find_call_by_number): New function.
8285 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8286 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8287 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8288 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8289 index.
8290 * btrace.h (struct btrace_function): Turn UP into an index.
8291 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8292 as an index.
8293 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8294 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8295 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8296
b54b03bd
TW
82972017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8298
8299 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8300 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8301 ftrace_update_function, ftrace_compute_global_level_offset,
8302 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8303 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8304 btrace_insn_end, btrace_is_empty): Remove references to
8305 btrace_thread_info::begin and btrace_thread_info::end.
8306 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8307 (struct btrace_thread_info) <functions>: Adjust comment.
8308 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8309 btrace_thread_info::begin.
8310
8286623c
TW
83112017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8312
8313 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8314 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8315 ftrace_update_function): Remove arguments that implicitly were always
8316 BTINFO->END.
8317 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8318 Don't pass BTINFO->END.
8319
a0f1b963
TW
83202017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8321
8322 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8323 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8324 btrace_find_insn_by_number): Replace function segment pointer with
8325 index.
8326 (btrace_insn_cmp): Simplify.
8327 * btrace.h: (struct btrace_insn_iterator) Rename index to
8328 insn_index. Replace function segment pointer with index into function
8329 segment vector.
8330 * record-btrace.c (record_btrace_call_history): Replace function
8331 segment pointer use with index.
8332 (record_btrace_frame_sniffer): Retrieve function call segment through
8333 vector.
8334 (record_btrace_set_replay): Remove defunc't safety check.
8335
f158f208
TW
83362017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8337
8338 * btrace.c (btrace_ends_with_single_insn): New function.
8339 (btrace_call_get, btrace_call_number, btrace_call_begin,
8340 btrace_call_end, btrace_call_next, btrace_call_prev,
8341 btrace_find_call_by_number): Use index into call segment vector
8342 instead of pointer.
8343 (btrace_call_cmp): Simplify.
8344 * btrace.h (struct btrace_call_iterator): Replace function call segment
8345 pointer with index into vector.
8346 * record-btrace.c (record_btrace_call_history): Use index instead of
8347 pointer.
8348
521103fd
TW
83492017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8350
8351 * btrace.c (btrace_insn_begin, btrace_insn_end,
8352 btrace_find_insn_by_number): Add btinfo to iterator.
8353 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8354
17b89b34
TW
83552017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8356
8357 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8358 and save pointers directly.
8359 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8360 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8361 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8362 changed signature of functions.
8363 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8364 (btrace_fetch): Remove code that adds btrace_function pointers to
8365 vector of btrace_functions.
8366 (btrace_clear): Simplify freeing vector of btrace_functions.
8367
2b51eddc
TW
83682017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8369
8370 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8371 Replace VEC_* with std::vector functions.
8372 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8373 (struct btrace_thread_info)<functions>: Change type to std::vector.
8374
db6be0d5
SM
83752017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8376
8377 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8378 "Removed targets and native configurations" up. Merge duplicate
8379 "New commands" sub-sections. Add "New options" sub-sections.
8380
b057297a
AH
83812017-05-26 Alan Hayward <alan.hayward@arm.com>
8382
8383 * defs.h (copy_integer_to_size): New declaration.
8384 * findvar.c (copy_integer_to_size): New function.
8385 (do_cint_test): New selftest function.
8386 (copy_integer_to_size_test): Likewise.
8387 (_initialize_findvar): Likewise.
8388 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8389 (mips_fbsd_collect_reg): Use raw_collect_integer.
8390 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8391 (mips64_fill_gregset): Use raw_collect_integer
8392 (mips64_fill_fpregset): Use raw_supply_integer.
8393 * regcache.c (regcache::raw_supply_integer): New function.
8394 (regcache::raw_collect_integer): Likewise.
8395 * regcache.h: (regcache::raw_supply_integer): New declaration.
8396 (regcache::raw_collect_integer): Likewise.
8397
b77b02a5
YQ
83982017-05-24 Yao Qi <yao.qi@linaro.org>
8399
8400 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8401 (COMMON_OBS): Add gdbarch-selftests.o.
8402 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8403 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8404 * gdbarch-selftests.c: New file.
8405 * regcache.h (regcache) <~regcache>: Mark it virtual if
8406 GDB_SELF_TEST.
8407 <raw_write>: Likewise.
8408
e521e87e
YQ
84092017-05-24 Yao Qi <yao.qi@linaro.org>
8410
8411 * regcache.c (current_regcache): Change it to
8412 regcache::current_regcache.
8413 (regcache_observer_target_changed): Update.
8414 (regcache_thread_ptid_changed): Make it a regcache static
8415 method.
8416 (regcache_thread_ptid_changed): Update.
8417 (class regcache_access): New.
8418 (current_regcache_test): Update.
8419 (_initialize_regcache): Update.
8420 * regcache.h: Include forward_list.
8421 (regcache): Declare regcache_thread_ptid_changed and declare
8422 registers_changed_ptid as friend.
8423
d8e07dda
YQ
84242017-05-24 Yao Qi <yao.qi@linaro.org>
8425
8426 * i387-tdep.c (i387_register_to_value): Use register_size
8427 instead of TYPE_LENGTH.
8428 * m68k-tdep.c (m68k_register_to_value): Likewise.
8429
8c8f9122
YQ
84302017-05-24 Yao Qi <yao.qi@linaro.org>
8431
8432 * i387-tdep.c (i387_convert_register_p): Return false if type
8433 code isn't TYPE_CODE_FLT.
8434
68fce50f
YQ
84352017-05-24 Yao Qi <yao.qi@linaro.org>
8436
8437 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8438 length is 4.
8439 (alpha_register_to_value): Remove type length check.
8440 (alpha_value_to_register): Likewise.
8441
88954b49
YQ
84422017-05-24 Yao Qi <yao.qi@linaro.org>
8443
8444 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8445 TYPE_CODE_FLT.
8446
e3ec9b69
YQ
84472017-05-24 Yao Qi <yao.qi@linaro.org>
8448
8449 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8450 TYPE_CODE_FLT or not.
8451
cdd238da
YQ
84522017-05-24 Yao Qi <yao.qi@linaro.org>
8453
8454 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8455 * avr-tdep.c (avr_gdbarch_init): Likewise.
8456 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8457 * cris-tdep.c (cris_gdbarch_init): Likewise.
8458 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8459 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8460 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8462 * mep-tdep.c (mep_gdbarch_init): Likewise.
8463 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8464 * mips-tdep.c (mips_gdbarch_init): Likewise.
8465 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8466 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8467 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8468 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8469 * v850-tdep.c (v850_gdbarch_init): Likewise.
8470
7a3929c4
YQ
84712017-05-24 Yao Qi <yao.qi@linaro.org>
8472
8473 * selftest-arch.c (tests_with_arch): Call registers_changed
8474 and reinit_frame_cache.
8475 * selftest.c (run_self_tests): Likewise.
8476
f4985dba
YQ
84772017-05-24 Yao Qi <yao.qi@linaro.org>
8478
8479 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8480 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8481
ab20fa4a
YQ
84822017-05-24 Yao Qi <yao.qi@linaro.org>
8483
8484 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8485 set_gdbarch_print_insn.
8486
f532ab94
YQ
84872017-05-24 Yao Qi <yao.qi@linaro.org>
8488
8489 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8490 set_gdbarch_print_insn.
8491
39503f82
YQ
84922017-05-24 Yao Qi <yao.qi@linaro.org>
8493
8494 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8495 set_gdbarch_print_insn.
8496 * arc-tdep.c (arc_gdbarch_init): Likewise.
8497 * arch-utils.c: include dis-asm.h.
8498 (default_print_insn): New function.
8499 * arch-utils.h (default_print_insn): Declare.
8500 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8501 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8502 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8503 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8504 * frv-tdep.c (frv_gdbarch_init): Likewise.
8505 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8506 * gdbarch.sh (print_insn): Use default_print_insn.
8507 * gdbarch.c: Regenerated.
8508 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8509 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8510 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8511 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8512 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8513 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8514 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8515 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8516 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8517 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8518 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8519 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8520 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8521 * mt-tdep.c (mt_gdbarch_init): Likewise.
8522 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8523 * nios2-tdep.c (nios2_print_insn): Remove.
8524 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8525 * rx-tdep.c (rx_gdbarch_init): Likewise.
8526 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8527 * score-tdep.c (score_print_insn): Remove.
8528 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8529 * sh-tdep.c (sh_gdbarch_init): Likewise.
8530 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8531 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8532 * tic6x-tdep.c (tic6x_print_insn): Remove.
8533 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8534 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8535 * v850-tdep.c (v850_gdbarch_init): Likewise.
8536 * vax-tdep.c (vax_gdbarch_init): Likewise.
8537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8538 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8539
f7241d4f
JB
85402017-05-23 John Baldwin <jhb@FreeBSD.org>
8541
8542 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8543 (MIPS_FP0_REGNUM): Remove.
8544 (MIPS_FSR_REGNUM): Remove.
8545 (mips_fbsd_supply_fpregs): Use mips_regnum.
8546 (mips_fbsd_supply_gregs): Likewise.
8547 (mips_fbsd_collect_fpregs): Likewise.
8548 (mips_fbsd_collect_gregs): Likewise.
8549
d489d81d
JB
85502017-05-23 John Baldwin <jhb@FreeBSD.org>
8551
8552 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8553 (getpfpregs_supplies): New function.
8554 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8555 getfpregs_supplies.
8556 (mips_fbsd_store_inferior_registers): Likewise.
8557
e11b3cdc
PA
85582017-05-22 Pedro Alves <palves@redhat.com>
8559
8560 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8561 maintainer.
8562
0f068fb5
AH
85632017-05-22 Alan Hayward <alan.hayward@arm.com>
8564
8565 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8566 (store_register): Likewise.
8567 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8568 (get_decimal_float_return_value): Likewise.
8569 (do_ppc_sysv_return_value): Likewise.
8570 (ppc64_sysv_abi_push_integer): Likewise.
8571 (ppc64_sysv_abi_push_freg): Likewise.
8572 (ppc64_sysv_abi_return_value_base): Likewise.
8573 (ppc64_sysv_abi_return_value): Likewise.
8574 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8575 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8576 * rs6000-nat.c: Likewise.
8577 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8578 (rs6000_value_to_register): Likewise.
8579 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8580
e6cf65f2
TT
85812017-05-21 Tom Tromey <tom@tromey.com>
8582
8583 PR rust/21466:
8584 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8585 arrays as "[T]", not "[T; ]".
8586
43cc5389
TT
85872017-05-19 Tom Tromey <tom@tromey.com>
8588
8589 PR rust/21484:
8590 * rust-lang.c (exp_descriptor_rust): New function.
8591 (rust_language_defn): Use it.
8592 * p-lang.c (pascal_language_defn): Update.
8593 * opencl-lang.c (opencl_language_defn): Update.
8594 * objc-lang.c (objc_language_defn): Update.
8595 * m2-lang.c (m2_language_defn): Update.
8596 * language.h (struct language_defn)
8597 <la_watch_location_expression>: New member.
8598 * language.c (unknown_language_defn, auto_language_defn)
8599 (local_language_defn): Update.
8600 * go-lang.c (go_language_defn): Update.
8601 * f-lang.c (f_language_defn): Update.
8602 * d-lang.c (d_language_defn): Update.
8603 * c-lang.h (c_watch_location_expression): Declare.
8604 * c-lang.c (c_watch_location_expression): New function.
8605 (c_language_defn, cplus_language_defn, asm_language_defn)
8606 (minimal_language_defn): Use it.
8607 * breakpoint.c (watch_command_1): Call
8608 la_watch_location_expression.
8609 * ada-lang.c (ada_language_defn): Update.
8610
7a6e7fcc
RO
86112017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8612
6e7e1744
RO
8613 PR tui/21482
8614 * gdb_curses.h (NOMACROS): Define.
8615 (NCURSES_NOMACROS): Define.
8616
86172017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8618
8619 PR tui/21482
7a6e7fcc
RO
8620 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8621 arg to char *.
8622 * tui/tui-wingeneral.c (box_win): Likewise.
8623 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8624 (tui_show_source_line): Likewise.
8625 (tui_show_exec_info_content): Likewise.
8626
1933fd8e
VM
86272017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8628
8629 * sparc-tdep.c (sparc_structure_return_p)
8630 (sparc_arg_on_registers_p): New functions.
8631 (sparc32_store_arguments): Use them.
8632 * sparc64-tdep.c (sparc64_16_byte_align_p)
8633 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8634 Handle TYPE_CODE_ARRAY.
8635
21873064
YQ
86362017-05-17 Yao Qi <yao.qi@linaro.org>
8637
8638 * cli/cli-decode.c (add_alias_cmd): New function.
8639 * command.h (add_alias_cmd): Declare.
8640 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8641 instead call add_alias_cmd.
8642
2b351b19
PA
86432017-05-17 Pedro Alves <palves@redhat.com>
8644
8645 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8646 (nat_makefile_frag): ... this. All references updated.
8647 * configure.ac: Likewise.
8648 * configure.nat: Likewise. Enhance comments.
8649 * configure: Regenerate.
8650
5f2ad7a3
RO
86512017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8652
8653 * procfs.c (procfs_create_inferior): Change prototype to match
8654 definition.
8655
adf3dde5
EZ
86562017-05-13 Eli Zaretskii <eliz@gnu.org>
8657
8658 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8659 C++ compiler warning.
8660
6830f270
TT
86612017-05-12 Tom Tromey <tom@tromey.com>
8662
8663 PR rust/21483:
8664 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8665 recurse, just call value_struct_elt directly.
8666
68f2f2e3
TT
86672017-05-12 Tom Tromey <tom@tromey.com>
8668
8669 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8670 OP_RUST_ARRAY>: Fix.
8671
256afbc2
TT
86722017-05-12 Tom Tromey <tom@tromey.com>
8673
8674 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8675
94bb8dfe
YQ
86762017-05-09 Yao Qi <yao.qi@linaro.org>
8677
8678 * regcache.c: Include <forward_list>.
8679 (struct regcache_list): Remove.
8680 (current_regcache): Update.
8681 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8682 (regcache_thread_ptid_changed): Likewise.
8683 (registers_changed_ptid): Likewise.
8684 (current_regcache_size): Likewise.
8685
8248946c
YQ
86862017-05-09 Yao Qi <yao.qi@linaro.org>
8687
8688 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8689 (current_regcache_size): New function.
8690 (current_regcache_test): New function.
8691 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8692
313c5961
AH
86932017-05-08 Alan Hayward <alan.hayward@arm.com>
8694
8695 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8696 (print_gp_register_row): Use get_frame_register_value.
8697
27bfc1d1
AH
86982017-05-08 Alan Hayward <alan.hayward@arm.com>
8699
8700 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8701 (mips_supply_fpregset): Likewise.
8702 (mips64_supply_gregset): Likewise.
8703
146e6c5c
AH
87042017-05-08 Alan Hayward <alan.hayward@arm.com>
8705
8706 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8707 regcache->raw_supply_zeroed.
8708
e50f25ec
SDJ
87092017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8710
8711 * configure.nat: Rearrange 'case' statements to match
8712 host before cpu.
8713
21ea5acd
SDJ
87142017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8715
8716 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8717 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8718 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8719 "@nat_extra_makefile_frag@".
8720 (Makefile): Remove dependency on "@frags@".
8721 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8722 (data-directory/Makefile): Likewise.
8723 * config/aarch64/linux.mh: Deleted; moved contents to
8724 "gdb/configure.nat".
8725 * config/alpha/alpha-linux.mh: Likewise.
8726 * config/alpha/nbsd.mh: Likewise.
8727 * config/arm/linux.mh: Likewise.
8728 * config/arm/nbsdelf.mh: Likewise.
8729 * config/i386/cygwin.mh: Likewise.
8730 * config/i386/cygwin64.mh: Likewise.
8731 * config/i386/darwin.mh: Likewise.
8732 * config/i386/fbsd.mh: Likewise.
8733 * config/i386/fbsd64.mh: Likewise.
8734 * config/i386/go32.mh: Likewise.
8735 * config/i386/i386gnu.mh: Likewise.
8736 * config/i386/i386sol2.mh: Likewise.
8737 * config/i386/linux.mh: Likewise.
8738 * config/i386/linux64.mh: Likewise.
8739 * config/i386/mingw.mh: Likewise.
8740 * config/i386/mingw64.mh: Likewise.
8741 * config/i386/nbsd64.mh: Likewise.
8742 * config/i386/nbsdelf.mh: Likewise.
8743 * config/i386/nto.mh: Likewise.
8744 * config/i386/obsd.mh: Likewise.
8745 * config/i386/obsd64.mh: Likewise.
8746 * config/i386/sol2-64.mh: Likewise.
8747 * config/ia64/linux.mh: Likewise.
8748 * config/m32r/linux.mh: Likewise.
8749 * config/m68k/linux.mh: Likewise.
8750 * config/m68k/nbsdelf.mh: Likewise.
8751 * config/m68k/obsd.mh: Likewise.
8752 * config/m88k/obsd.mh: Likewise.
8753 * config/mips/fbsd.mh: Likewise.
8754 * config/mips/linux.mh: Likewise.
8755 * config/mips/nbsd.mh: Likewise.
8756 * config/mips/obsd64.mh: Likewise.
8757 * config/pa/linux.mh: Likewise.
8758 * config/pa/nbsd.mh: Likewise.
8759 * config/pa/obsd.mh: Likewise.
8760 * config/powerpc/aix.mh: Likewise.
8761 * config/powerpc/fbsd.mh: Likewise.
8762 * config/powerpc/linux.mh: Likewise.
8763 * config/powerpc/nbsd.mh: Likewise.
8764 * config/powerpc/obsd.mh: Likewise.
8765 * config/powerpc/ppc64-linux.mh: Likewise.
8766 * config/powerpc/spu-linux.mh: Likewise.
8767 * config/s390/linux.mh: Likewise.
8768 * config/sh/nbsd.mh: Likewise.
8769 * config/sparc/fbsd.mh: Likewise.
8770 * config/sparc/linux.mh: Likewise.
8771 * config/sparc/linux64.mh: Likewise.
8772 * config/sparc/nbsd64.mh: Likewise.
8773 * config/sparc/nbsdelf.mh: Likewise.
8774 * config/sparc/obsd64.mh: Likewise.
8775 * config/sparc/sol2.mh: Likewise.
8776 * config/tilegx/linux.mh: Likewise.
8777 * config/vax/nbsdelf.mh: Likewise.
8778 * config/vax/obsd.mh: Likewise.
8779 * config/xtensa/linux.mh: Likewise.
8780 * config/i386/i386gnu.mn: New file, with excerpts from
8781 "config/i386/i386gnu.mh".
8782 * configure: Regenerate.
8783 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
8784 *.mh files under "gdb/config".
8785 * configure.nat: New file, with contents from the
8786 "gdb/config/*/*.mh" files.
8787
7ed1acaf
TW
87882017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
8789
8790 * btrace.c (btrace_clear): Free insn vector.
8791
e13cb306
PA
87922017-05-05 Pedro Alves <palves@redhat.com>
8793
8794 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
8795 * configure: Regenerate.
8796
5ed8105e
PA
87972017-05-04 Pedro Alves <palves@redhat.com>
8798
8799 * Makefile.in (SFILES): Add progspace-and-thread.c.
8800 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
8801 (COMMON_OBS): Add progspace-and-thread.o.
8802 * breakpoint.c: Include "progspace-and-thread.h".
8803 (update_inserted_breakpoint_locations)
8804 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
8805 Use scoped_restore_current_pspace_and_thread.
8806 (create_std_terminate_master_breakpoint): Use
8807 scoped_restore_current_program_space.
8808 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
8809 (print_breakpoint_location): Use
8810 scoped_restore_current_program_space.
8811 (bp_loc_is_permanent): Use
8812 scoped_restore_current_pspace_and_thread.
8813 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
8814 (download_tracepoint_locations): Use
8815 scoped_restore_current_pspace_and_thread.
8816 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
8817 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
8818 (enum step_over_calls_kind): Moved from inferior.h.
8819 (class scoped_restore_current_thread): New class.
8820 * gdbthread.h (make_cleanup_restore_current_thread): Delete
8821 declaration.
8822 (scoped_restore_current_thread): New class.
8823 * infcmd.c: Include "common/gdb_optional.h".
8824 (continue_1, proceed_after_attach): Use
8825 scoped_restore_current_thread.
8826 (notice_new_inferior): Use scoped_restore_current_thread.
8827 * inferior.c: Include "progspace-and-thread.h".
8828 (restore_inferior, save_current_inferior): Delete.
8829 (add_inferior_command, clone_inferior_command): Use
8830 scoped_restore_current_pspace_and_thread.
8831 * inferior.h (scoped_restore_current_inferior): New class.
8832 * infrun.c: Include "progspace-and-thread.h" and
8833 "common/gdb_optional.h".
8834 (follow_fork_inferior): Use
8835 scoped_restore_current_pspace_and_thread.
8836 (scoped_restore_exited_inferior): New class.
8837 (handle_vfork_child_exec_or_exit): Use
8838 scoped_restore_exited_inferior,
8839 scoped_restore_current_pspace_and_thread,
8840 scoped_restore_current_thread and scoped_restore.
8841 (fetch_inferior_event): Use scoped_restore_current_thread.
8842 * linespec.c (decode_line_full, decode_line_1): Use
8843 scoped_restore_current_program_space.
8844 * mi/mi-main.c: Include "progspace-and-thread.h".
8845 (exec_continue): Use scoped_restore_current_thread.
8846 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
8847 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
8848 * proc-service.c (ps_pglobal_lookup): Use
8849 scoped_restore_current_program_space.
8850 * progspace-and-thread.c: New file.
8851 * progspace-and-thread.h: New file.
8852 * progspace.c (release_program_space, clone_program_space): Use
8853 scoped_restore_current_program_space.
8854 (restore_program_space, save_current_program_space)
8855 (save_current_space_and_thread): Delete.
8856 (switch_to_program_space_and_thread): Moved to
8857 progspace-and-thread.c.
8858 * progspace.h (save_current_program_space)
8859 (save_current_space_and_thread): Delete declarations.
8860 (scoped_restore_current_program_space): New class.
8861 * remote.c (remote_btrace_maybe_reopen): Use
8862 scoped_restore_current_thread.
8863 * symtab.c: Include "progspace-and-thread.h".
8864 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
8865 * thread.c (print_thread_info_1): Use
8866 scoped_restore_current_thread.
8867 (struct current_thread_cleanup): Delete.
8868 (do_restore_current_thread_cleanup)
8869 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
8870 (scoped_restore_current_thread::~scoped_restore_current_thread):
8871 ... this new dtor.
8872 (make_cleanup_restore_current_thread): Rename/convert to ...
8873 (scoped_restore_current_thread::scoped_restore_current_thread):
8874 ... this new ctor.
8875 (thread_apply_all_command): Use scoped_restore_current_thread.
8876 (thread_apply_command): Use scoped_restore_current_thread.
8877 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
8878 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
8879
f6223dbb
PA
88802017-05-04 Pedro Alves <palves@redhat.com>
8881
8882 * thread.c (make_cleanup_restore_current_thread): Move
8883 find_thread_ptid call before the is_stopped call. Assert that the
8884 thread is found. Replace is_stopped call by checking the thread's
8885 state directly. Remove unnecessary NULL-thread check.
8886
3c3ae77e
PA
88872017-05-04 Pedro Alves <palves@redhat.com>
8888
8889 * corelow.c (thread_section_name): New class.
8890 (get_core_register_section, get_core_siginfo): Use it.
8891
45eba0ab
AA
88922017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8893
8894 * corelow.c (sniff_core_bfd): Remove extra semicolon.
8895 (get_core_register_section): Remove xfree of NULL pointer.
8896
f81fdd35
AH
88972017-05-03 Alan Hayward <alan.hayward@arm.com>
8898
8899 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
8900 * regcache.c (regcache::raw_supply_zeroed): New function.
8901 * regcache.h (regcache::raw_supply_zeroed): New declaration.
8902
35837774
SM
89032017-05-03 Simon Marchi <simon.marchi@ericsson.com>
8904
8905 * gdbarch.sh: Remove commented out definition of
8906 TARGET_CHAR_BIT.
8907 * gdbarch.h: Re-generate.
8908
c94fee56
SDJ
89092017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
8910
8911 * configure: Regenerate.
8912
d17f7b36
SM
89132017-05-02 Simon Marchi <simon.marchi@ericsson.com>
8914
8915 * solib-target.c (solib_target_relocate_section_addresses):
8916 Remove num_section_bases, num_bases, segment_bases variables.
8917
b560ebd6
SM
89182017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8919
8920 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
8921
f2f46dfc
SM
89222017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8923
8924 * solib-target.c: Include <vector>
8925 (struct lm_info_target) <~lm_info_target>: Remove.
8926 <segment_bases, section_bases>: Change type to
8927 std::vector<CORE_ADDR>.
8928 (library_list_start_segment, library_list_start_section,
8929 library_list_end_library,
8930 solib_target_relocate_section_addresses): Adjust.
8931
a0ff9e1a
SM
89322017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8933
8934 * gdbarch.sh (software_single_step): Change return type to
8935 std::vector<CORE_ADDR>.
8936 * gdbarch.c, gdbarch.h: Re-generate.
8937 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
8938 Adjust.
8939 (arm_deal_with_atomic_sequence_raw): Adjust.
8940 (thumb_get_next_pcs_raw): Adjust.
8941 (arm_get_next_pcs_raw): Adjust.
8942 (arm_get_next_pcs): Adjust.
8943 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
8944 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
8945 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
8946 (alpha_software_single_step): Adjust.
8947 * alpha-tdep.h (alpha_software_single_step): Adjust.
8948 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
8949 * arm-tdep.c (arm_software_single_step): Adjust.
8950 (arm_breakpoint_kind_from_current_state): Adjust.
8951 * arm-tdep.h (arm_software_single_step): Adjust.
8952 * breakpoint.c (insert_single_step_breakpoint): Adjust.
8953 * cris-tdep.c (cris_software_single_step): Adjust.
8954 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
8955 (micromips_deal_with_atomic_sequence): Adjust.
8956 (deal_with_atomic_sequence): Adjust.
8957 (mips_software_single_step): Adjust.
8958 * mips-tdep.h (mips_software_single_step): Adjust.
8959 * moxie-tdep.c (moxie_software_single_step): Adjust.
8960 * nios2-tdep.c (nios2_software_single_step): Adjust.
8961 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
8962 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
8963 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
8964 * s390-linux-tdep.c (s390_software_single_step): Adjust.
8965 * sparc-tdep.c (sparc_software_single_step): Adjust.
8966 * spu-tdep.c (spu_software_single_step): Adjust.
8967 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
8968
ea480a30
SM
89692017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8970
8971 * gdbarch.sh: Use semi-colon as field separator instead of colon.
8972 * gdbarch.h: Re-generate.
8973
d050f7d7
TW
89742017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8975
8976 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
8977 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
8978 * python/py-instruction.c, python/py-instruction.h: New file.
8979 * python/py-record.c: Add py-instruction.h include.
8980 (gdbpy_initialize_record): Make gdb.Instruction a super class of
8981 gdb.RecordInstruction.
8982 * python/python-internal.h: Add gdbpy_initialize_instruction
8983 declaration.
8984 * python/python.c (do_start_initialization): Add
8985 gdbpy_initialize_instruction.
8986
14f819c8
TW
89872017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8988
8989 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
8990 Remove.
8991 (btrace_func_from_recpy_func): New function.
8992 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
8993 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
8994 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
8995 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
8996 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
8997 Also, use new helper functions.
8998 (btpy_list_item): Use new helper functions.
8999 (recpy_bt_function_call_history): Use new type name.
9000 (btpy_call_getset): Remove.
9001 (gdbpy_initialize_btrace): Remove code to initialize
9002 gdb.BtraceFunctionCall.
9003 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9004 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9005 recpy_bt_func_prev, recpy_bt_func_next): New export.
9006 * python/py-record.c (recpy_func_type): New static object.
9007 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9008 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9009 recpy_func_next): New function.
9010 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9011 (recpy_func_getset): New static object.
9012 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9013 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9014
0ed5da75
TW
90152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9016
9017 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9018 (btpy_object, btpy_insn_type, btpy_new): Remove.
9019 (btpy_list_object): Use gdb.RecordInstruction type instead of
9020 gdb.BtraceInstruction type.
9021 (btrace_insn_from_recpy_insn): New function.
9022 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9023 btpy_new.
9024 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9025 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9026 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9027 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9028 instead of btpy_object.
9029 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9030 btpy_insn_data, btpy_insn_decode): Rename to ...
9031 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9032 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9033 recpy_bt_insn_decode): This. Also, use new helper functions.
9034 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9035 recpy_insn_type.
9036 (btpy_insn_getset): Remove.
9037 (gdbpy_initialize_btrace): Remove code to initialize
9038 gdb.BtraceInstruction. Use recpy_element_object.
9039 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9040 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9041 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9042 * python/py-record.c (recpy_insn_type): New static object.
9043 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9044 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9045 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9046 New function.
9047 (recpy_insn_getset): New static object.
9048 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9049 * python/py-record.h (recpy_element_object): New typedef.
9050 (recpy_insn_type, recpy_insn_new): New export.
9051
913aeadd
TW
90522017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9053
9054 * py-record-btrace.c (btpy_insn_new): Removed.
9055 (btpy_insn_or_gap_new): New function.
9056 (btpy_insn_error): Removed.
9057 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9058 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9059 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9060 btpy_insn_or_gap_new instead of btpy_insn_new.
9061 (btpy_insn_getset): Remove btpy_insn_error.
9062 * py-record.c (recpy_gap_type): New static object.
9063 (recpy_gap_object): New typedef.
9064 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9065 recpy_gap_reason_string): New function.
9066 (recpy_gap_getset): New static object.
9067 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9068 * py-record.h (recpy_gap_new): New export.
9069
a3be24ad
TW
90702017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9071
9072 * python/py-record.c (recpy_ptid): Remove.
9073 (recpy_record_getset): Remove recpy_ptid.
9074
ae20e79a
TW
90752017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9076
9077 * btrace.c (btrace_fetch): Set inferior_ptid.
9078 * python/py-record-btrace.c: Add "py-record.h" include.
9079 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9080 recpy_bt_end, recpy_bt_instruction_history,
9081 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9082 in gdb.Record object instead of current ptid.
9083 * python/py-record.c: Include new "py-record.h" file.
9084 (recpy_record_object): Moved to py-record.h.
9085 * python/py-record.h: New file.
9086
8d0050ea
TW
90872017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9088
9089 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9090 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9091 indentation.
9092
3f380b50
JB
90932017-05-01 Joel Brobecker <brobecker@adacore.com>
9094
9095 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9096 the past maintainers section.
9097
07495424
YQ
90982017-04-28 Yao Qi <yao.qi@linaro.org>
9099
9100 * infcmd.c (get_return_value): Use regcache ctor, and remove
9101 cleanup.
9102
deb1fa3e
YQ
91032017-04-28 Yao Qi <yao.qi@linaro.org>
9104 Pedro Alves <palves@redhat.com>
9105
9106 * regcache.c (regcache::regcache): New tag dispatch ctor.
9107 (do_cooked_read): Moved above.
9108 (regcache_dup): Use the tag dispatch ctor..
9109 * regcache.h (regcache): Declare ctor, delete copy ctor and
9110 assignment operator, remove friend regcache_dup.
9111
b421c83c
YQ
91122017-04-28 Yao Qi <yao.qi@linaro.org>
9113
9114 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9115 call method save instead of regcache_cpy.
9116 * regcache.h (struct regcache): Make regcache_dup a friend.
9117
ef79d9a3
YQ
91182017-04-28 Yao Qi <yao.qi@linaro.org>
9119
9120 * regcache.c (struct regcache): Move to regcache.h
9121 (regcache::arch): New method.
9122 (regcache_get_ptid): Update.
9123 (get_regcache_arch): Call arch method.
9124 (get_regcache_aspace): Call method aspace.
9125 (register_buffer): Change it to method.
9126 (regcache_save): Change it to regcache::save.
9127 (regcache_restore): Likewise.
9128 (regcache_cpy_no_passthrough): Remove the declaration.
9129 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9130 (regcache_cpy_no_passthrough): Change it to method
9131 cpy_no_passthrough.
9132 (regcache_register_status): Change it to method
9133 get_register_status.
9134 (regcache_invalidate): Change it to method invalidate.
9135 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9136 (regcache_raw_update): Change it to method raw_update.
9137 (regcache_raw_read): Likewise.
9138 (regcache_raw_read_signed): Likewise.
9139 (regcache_raw_read_unsigned): Likewise.
9140 (regcache_raw_write_signed): Likewise.
9141 (regcache_raw_write_unsigned): Likewise.
9142 (regcache_cooked_read): Likewise.
9143 (regcache_cooked_read_value): Likewise.
9144 (regcache_cooked_read_signed): Likewise.
9145 (regcache_cooked_read_unsigned): Likewise.
9146 (regcache_cooked_write_signed): Likewise.
9147 (regcache_cooked_write_unsigned): Likewise.
9148 (regcache_raw_set_cached_value): Likewise.
9149 (regcache_raw_write): Likewise.
9150 (regcache_cooked_write): Likewise.
9151 (regcache_xfer_part): Likewise.
9152 (regcache_raw_read_part): Likewise.
9153 (regcache_raw_write_part): Likewise.
9154 (regcache_cooked_read_part): Likewise.
9155 (regcache_cooked_write_part): Likewise.
9156 (regcache_raw_supply): Likewise.
9157 (regcache_raw_collect): Likewise.
9158 (regcache_transfer_regset): Likewise.
9159 (regcache_supply_regset): Likewise.
9160 (regcache_collect_regset): Likewise.
9161 (regcache_debug_print_register): Likewise.
9162 (enum regcache_dump_what): Move it to regcache.h.
9163 (regcache_dump): Change it to method dump.
9164 * regcache.h (enum regcache_dump_what): New.
9165 (class regcache): New.
9166 * target.c (target_fetch_registers): Call method
9167 debug_print_register.
9168 (target_store_registers): Likewise.
9169
f8fdb78e
SM
91702017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9171
9172 * windows-nat.c (struct lm_info_windows): Initialize field.
9173 (windows_make_so): Allocate lm_info_windows with new.
9174 (windows_free_so): Free lm_info_windows with delete.
9175
9ccbfd7b
SM
91762017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9177
9178 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9179 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9180 cleanup.
9181 (darwin_free_so): Free lm_info_darwin with delete.
9182
76e75227
SM
91832017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9184
9185 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9186 <l_addr_p>: Change type to bool.
9187 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9188 (svr4_free_so): Free lm_info_svr4 with delete.
9189 (svr4_copy_library_list): Replace memcpy with call to copy
9190 constructor.
9191 (library_list_start_library, svr4_default_sos): Allocate
9192 lm_info_svr4 with new.
9193
51046d9e
SM
91942017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9195
9196 * solib-target.c (struct lm_info_target): Add destructor,
9197 initialize fields.
9198 <name>: Change type to std::string.
9199 (library_list_start_library): Allocate lm_info_target with new.
9200 (solib_target_free_library_list): Free lm_info_target with
9201 delete.
9202 (solib_target_current_sos): Adapt to std::string.
9203 (solib_target_free_so): Free lm_info_target with delete.
9204
4023ae76
SM
92052017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9206
9207 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9208 fields.
9209 (frv_current_sos): Allocate lm_info_frv with new.
9210 (frv_relocate_main_executable): Free lm_info_frv with delete,
9211 allocate with new.
9212 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9213
af43057b
SM
92142017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9215
9216 * solib-frv.c (struct lm_info_frv): Fix indentation.
9217
b0911207
SM
92182017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9219
9220 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9221 map field.
9222 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9223 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9224 and allocate with new.
9225 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9226
6c401f72
SM
92272017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9228
9229 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9230 <filename, member_name>: Change type to std::string.
9231 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9232 (library_list_start_library): Allocate lm_info_aix with new.
9233 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9234 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9235 with copy constructor.
9236
d0e449a1
SM
92372017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9238
9239 * solist.h (struct lm_info): Remove.
9240 (struct lm_info_base): New class.
9241 (struct so_list) <lm_info>: Change type to lm_info_base *.
9242 * nto-tdep.c (struct lm_info): Remove.
9243 (lm_addr): Adjust.
9244 * solib-aix.c (struct lm_info): Rename to ...
9245 (struct lm_info_aix): ... this. Extend lm_info_base.
9246 (lm_info_p): Rename to ...
9247 (lm_info_aix_p): ... this, and adjust.
9248 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9249 solib_aix_parse_libraries, library_list_start_library,
9250 solib_aix_free_library_list, solib_aix_parse_libraries,
9251 solib_aix_get_library_list,
9252 solib_aix_relocate_section_addresses, solib_aix_free_so,
9253 solib_aix_get_section_offsets,
9254 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9255 Adjust.
9256 (struct solib_aix_inferior_data) <library_list>: Adjust.
9257 * solib-darwin.c (struct lm_info): Rename to ...
9258 (struct lm_info_darwin): ... this. Extend lm_info_base.
9259 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9260 * solib-dsbt.c (struct lm_info): Rename to ...
9261 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9262 (struct dsbt_info) <main_executable_lm_info): Adjust.
9263 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9264 dsbt_relocate_section_addresses): Adjust.
9265 * solib-frv.c (struct lm_info): Rename to ...
9266 (struct lm_info_frv): ... this. Extend lm_info_base.
9267 (main_executable_lm_info): Adjust.
9268 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9269 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9270 find_canonical_descriptor_in_load_object,
9271 frv_fdpic_find_canonical_descriptor): Adjust.
9272 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9273 to lm_info_svr4.
9274 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9275 svr4_clear_so, svr4_copy_library_list,
9276 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9277 svr4_current_sos, svr4_fetch_objfile_link_map,
9278 solist_update_incremental): Adjust.
9279 * solib-svr4.h (struct lm_info_svr4): Move here from
9280 solib-svr4.c.
9281 * solib-target.c (struct lm_info): Rename to ...
9282 (struct lm_info_target): ... this. Extend lm_info_base.
9283 (lm_info_p): Rename to ...
9284 (lm_info_target_p): ... this.
9285 (solib_target_parse_libraries, library_list_start_segment,
9286 library_list_start_section, library_list_start_library,
9287 library_list_end_library, solib_target_free_library_list,
9288 solib_target_current_sos, solib_target_free_so,
9289 solib_target_relocate_section_addresses): Adjust.
9290 * windows-nat.c (struct lm_info): Rename to ...
9291 (struct lm_info_windows): ... this. Extend lm_info_base.
9292 (windows_make_so, handle_load_dll, handle_unload_dll,
9293 windows_xfer_shared_libraries): Adjust.
9294
434a4023
SM
92952017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9296
9297 * solib-darwin.c (struct darwin_so_list): Remove.
9298 (darwin_current_sos): Allocate an so_list object instead of a
9299 darwin_so_list, separately allocate an lm_info object.
9300 (darwin_free_so): Free lm_info.
9301
428544e8
JB
93022017-04-28 John Baldwin <jhb@FreeBSD.org>
9303
9304 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9305 with fprintf_filtered.
9306
4621115f
YQ
93072017-04-28 Yao Qi <yao.qi@linaro.org>
9308
9309 * regcache.c (regcache::regcache): New function.
9310 (regcache::~regcache): New function.
9311 (regcache_xmalloc_1): Remove.
9312 (regcache_xmalloc): Call new regcache.
9313 (regcache_xfree): Call delete regcache.
9314 (get_thread_arch_aspace_regcache): Call new regcache.
9315
339053c2
YQ
93162017-04-28 Yao Qi <yao.qi@linaro.org>
9317
9318 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9319 lwp instead of ptid_get_lwp.
9320
7974a605
YQ
93212017-04-28 Yao Qi <yao.qi@linaro.org>
9322
9323 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9324 lwp_info instead of getting from inferior_ptid.
9325
e15c3eb4
KS
93262017-04-27 Keith Seitz <keiths@redhat.com>
9327
9328 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9329 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9330 (CV_CONVERSION_BADNESS): Define.
9331 (rank_one_type): Remove overly restrictive rvalue reference
9332 rank checks.
9333 Add cv-qualifier checks and subranks for type equality.
9334 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9335 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9336 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9337
72bc1d24
SM
93382017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9339
9340 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9341 count when creating the object.
9342
55bcecda
UW
93432017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9344 Ulrich Weigand <uweigand@de.ibm.com>
9345
9346 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9347 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9348 is used in AIX.
9349 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9350 (process_xcoff_symbol): Likewise.
9351 (scan_xcoff_symtab): Likewise.
9352
5c99fcf8
AH
93532017-04-26 Alan Hayward <alan.hayward@arm.com>
9354
9355 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9356 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9357 (ia64_access_reg): Use get_frame_register_unsigned.
9358 (ia64_access_rse_reg): Likewise.
9359 (ia64_libunwind_frame_prev_register): Likewise.
9360
b41c5a85
JW
93612017-04-26 Jiong Wang <jiong.wang@arm.com>
9362
9363 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9364 * gdbarch.c: Regenerated.
9365 * gdbarch.h: Regenerated.
9366 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9367 visibility external.
9368 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9369 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9370 (enum cfa_how_kind): Move to ...
9371 (struct dwarf2_frame_state_reg_info): Likewise.
9372 (struct dwarf2_frame_state): Likewise.
9373 * dwarf2-frame.h: ... here.
9374 (dwarf2_frame_state_alloc_regs): New declaration.
9375 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9376 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9377
c185f580
AH
93782017-04-26 Alan Hayward <alan.hayward@arm.com>
9379
9380 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9381 regcache_raw_read_unsigned.
9382 (xtensa_pseudo_register_write): Likewise.
9383
19c45594
AH
93842017-04-26 Alan Hayward <alan.hayward@arm.com>
9385
9386 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9387 (nds32_pseudo_register_write): Likewise.
9388
4658f12e
YQ
93892017-04-25 Yao Qi <yao.qi@linaro.org>
9390
9391 * regcache.c (struct regcache) <readonly_p>: Change its type
9392 to bool.
9393 (regcache_xmalloc_1): Update parameter type and callers update.
9394
d581dda8
YQ
93952017-04-25 Yao Qi <yao.qi@linaro.org>
9396
9397 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9398 set_gdbarch_wchar_bit.
9399 * arm-tdep.c (arm_gdbarch_init): Likewise.
9400
debed3db
PA
94012017-04-25 Pedro Alves <palves@redhat.com>
9402
9403 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9404 (BothAreRelocatable, memcopy, memmove): Don't define.
9405 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9406 macros.
9407
b0b92aeb
PA
94082017-04-25 Pedro Alves <palves@redhat.com>
9409
9410 * common/common-defs.h: Include "common/poison.h".
9411 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9412 and adjust.
9413 * common/poison.h: New file.
9414 * common/traits.h: Include <type_traits>.
9415 (Not, Or, Requires): New, moved from common/function-view.h.
9416
16c4d54a
PA
94172017-04-25 Pedro Alves <palves@redhat.com>
9418
9419 * breakpoint.h (struct breakpoint): In-class initialize all
9420 fields. Make boolean fields "bool".
9421 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9422 memset call and initializations no longer necessary.
9423
b5c36682
PA
94242017-04-25 Pedro Alves <palves@redhat.com>
9425
9426 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9427 reference.
9428 (pt_btrace_insn): New function.
9429 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9430
5625a286
PA
94312017-04-25 Pedro Alves <palves@redhat.com>
9432
9433 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9434 "base" field and inherit from "bp_location" instead. Add
9435 non-default ctor.
9436 (allocate_location_exception): Use new non-default ctor.
9437 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9438 (init_bp_location): Convert to ...
9439 (bp_location::bp_location): ... this new ctor, and remove memset
9440 call.
9441 (base_breakpoint_allocate_location): Use the new non-default ctor.
9442 * breakpoint.h (bp_location): Now a class. Declare default and
9443 non-default ctors. In-class initialize all members.
9444 (init_bp_location): Remove declaration.
9445
23bcc18f
PA
94462017-04-25 Pedro Alves <palves@redhat.com>
9447
9448 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9449 assignment operator.
9450
e1ba3053
YQ
94512017-04-24 Yao Qi <yao.qi@linaro.org>
9452
9453 * doublest.c (convert_doublest_to_floatformat): Call
9454 floatformat_totalsize_bytes.
9455
10f489e5
TT
94562017-04-22 Tom Tromey <tom@tromey.com>
9457
9458 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9459 ui_out_emit_list.
9460 * stack.c (print_frame): Use ui_out_emit_list.
9461 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9462 ui_out_emit_list.
9463 * mi/mi-main.c (print_one_inferior)
9464 (mi_cmd_data_list_register_names)
9465 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9466 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9467 ui_out_emit_list.
9468 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9469 (mi_output_solib_attribs): Use ui_out_emit_list,
9470 ui_out_emit_tuple.
9471 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9472 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9473 (mi_cmd_stack_list_args, list_args_or_locals): Use
9474 ui_out_emit_list.
9475 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9476 * breakpoint.c (print_solib_event, output_thread_groups): Use
9477 ui_out_emit_list.
9478
0092b74d
TT
94792017-04-22 Tom Tromey <tom@tromey.com>
9480
9481 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9482 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9483 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9484
a14a62dd
TT
94852017-04-22 Tom Tromey <tom@tromey.com>
9486
9487 * tracepoint.c (tvariables_info_1)
9488 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9489
46b9c129
TT
94902017-04-22 Tom Tromey <tom@tromey.com>
9491
9492 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9493 annotate_arg_emitter.
9494 * breakpoint.c (print_mention_watchpoint)
9495 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9496 * annotate.h (struct annotate_arg_emitter): New.
9497
2e783024
TT
94982017-04-22 Tom Tromey <tom@tromey.com>
9499
9500 * record-btrace.c (record_btrace_insn_history)
9501 (record_btrace_insn_history_range, record_btrace_call_history)
9502 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9503 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9504 ui_out_emit_tuple.
9505 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9506 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9507 * skip.c (skip_info): Use ui_out_emit_tuple.
9508 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9509 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9510 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9511 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9512 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9513 ui_out_emit_tuple.
9514 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9515 (output_register, mi_cmd_data_read_memory)
9516 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9517 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9518 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9519 Use ui_out_emit_tuple.
9520 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9521 ui_out_emit_tuple.
9522 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9523 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9524 * linux-thread-db.c (info_auto_load_libthread_db): Use
9525 ui_out_emit_tuple.
9526 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9527 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9528 * disasm.c (do_mixed_source_and_assembly_deprecated)
9529 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9530 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9531 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9532 * breakpoint.c (print_one_breakpoint_location)
9533 (print_one_breakpoint): Use ui_out_emit_tuple.
9534 * auto-load.c (print_script, info_auto_load_cmd): Use
9535 ui_out_emit_tuple.
9536 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9537
9be21bb4
SM
95382017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9539
9540 * thread.c (print_thread_info_1): Remove dead code.
9541
0d4c07af
JK
95422017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9543
9544 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9545 GDB_SELF_TEST.
9546 * arm-tdep.c (selftests::arm_record_test): Likewise.
9547
4daf993d
YQ
95482017-04-21 Yao Qi <yao.qi@linaro.org>
9549
9550 * regcache.c (regcache_restore): Remove argument 2. Replace
9551 argument 3 with regcache. Get register status from
9552 src->register_status and get register contents from
9553 register_buffer (src, regnum).
9554 (regcache_cpy): Update.
9555
a6c21d4a
PA
95562017-04-19 Pedro Alves <palves@redhat.com>
9557
9558 * gdbthread.h (thread): Add missing closing parenthesis in
9559 comment.
9560
3a3fd0fd
PA
95612017-04-19 Pedro Alves <palves@redhat.com>
9562
9563 * common/refcounted-object.h: New file.
9564 * gdbthread.h: Include "common/refcounted-object.h".
9565 (thread_info): Inherit from refcounted_object and add comments.
9566 (thread_info::incref, thread_info::decref)
9567 (thread_info::m_refcount): Delete.
9568 (thread_info::deletable): Use the refcounted_object::refcount()
9569 method.
9570 * inferior.c (current_inferior_): Add comment.
9571 (set_current_inferior): Increment/decrement refcounts.
9572 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9573 not-deletable instead of comparing with the current inferior.
9574 (initialize_inferiors): Increment the initial inferior's refcount.
9575 * inferior.h (struct inferior): Forward declare.
9576 Include "common/refcounted-object.h".
9577 (current_inferior, set_current_inferior): Move declaration to
9578 before struct inferior's definition, and fix comment.
9579 (inferior): Inherit from refcounted_object. Add comments.
9580 * thread.c (switch_to_thread_no_regs): Reference the thread's
9581 inferior pointer directly instead of doing a ptid lookup.
9582 (switch_to_no_thread): New function.
9583 (switch_to_thread(thread_info *)): New function, factored out
9584 from ...
9585 (switch_to_thread(ptid_t)): ... this.
9586 (restore_current_thread): Delete.
9587 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9588 fields, and add 'inf' field.
9589 (do_restore_current_thread_cleanup): Check whether old->inf is
9590 alive instead of looking up an inferior by ptid. Use
9591 switch_to_thread and switch_to_no_thread.
9592 (restore_current_thread_cleanup_dtor): Use old->inf directly
9593 instead of lookup up an inferior by id. Decref the inferior.
9594 Don't restore 'removable'.
9595 (make_cleanup_restore_current_thread): Same the inferior pointer
9596 in old, instead of the inferior number. Incref the inferior.
9597 Don't save/clear 'removable'.
9598
9bcb1f16
PA
95992017-04-19 Pedro Alves <palves@redhat.com>
9600
9601 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9602 unittests/scoped_restore-selftests.c.
9603 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9604 * common/scoped_restore.h (scoped_restore_base): Make "class".
9605 (scoped_restore_base::release): New public method.
9606 (scoped_restore_base::scoped_restore_base): New protected ctor.
9607 (scoped_restore_base::m_saved_var): New protected field.
9608 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9609 scoped_restore_base base class instead of m_saved_var directly.
9610 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9611 (scoped_restore_tmpl::scoped_restore_tmpl(const
9612 scoped_restore_tmpl<T>&)): Likewise.
9613 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9614 method.
9615 (scoped_restore_tmpl::saved_var): New method.
9616 (scoped_restore_tmpl::m_saved_var): Delete.
9617 * inferior.h (inferior::detaching): Now a bool.
9618 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9619 cleanup.
9620 * unittests/scoped_restore-selftests.c: New file.
9621
26fcd539
PA
96222017-04-19 Pedro Alves <palves@redhat.com>
9623
9624 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9625 Re-sort in alphabetic order.
9626
fdd243b0
PA
96272017-04-18 Pedro Alves <palves@redhat.com>
9628
9629 * xml-support.c (obstack_xml_printf): Delete.
9630 * xml-support.h (obstack_xml_printf): Delete.
9631
4895cde2
PA
96322017-04-18 Pedro Alves <palves@redhat.com>
9633
9634 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9635 vdebug, verror, body_text, start_element, end_element, name,
9636 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9637 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9638 is_xinclude>: Make private and add m_ prefix.
9639 (gdb_xml_parser::body_text): New method, based on ...
9640 (gdb_xml_body_text): ... this. Adjust.
9641 (gdb_xml_parser::vdebug): New method, based on ...
9642 (gdb_xml_debug): ... this. Adjust.
9643 (gdb_xml_parser::verror): New method, based on ...
9644 (gdb_xml_error): ... this. Adjust.
9645 (gdb_xml_parser::start_element): New method, based on ...
9646 (gdb_xml_start_element): ... this. Adjust.
9647 (gdb_xml_start_element_wrapper): Defer to
9648 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9649 (gdb_xml_parser::end_element): New method, based on ...
9650 (gdb_xml_end_element_wrapper): ... this. Adjust.
9651 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9652 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9653 (gdb_xml_parser::use_dtd): New method, based on ...
9654 (gdb_xml_use_dtd): ... this. Adjust.
9655 (gdb_xml_parser::parse): New method, based on ...
9656 (gdb_xml_parse): ... this. Adjust.
9657 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9658 (xinclude_start_include): Adjust to call the parser's name method.
9659 (xml_xinclude_default, xml_xinclude_start_doctype)
9660 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9661 method.
9662 (xml_process_xincludes): Adjust to call parser methods.
9663 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9664 declarations.
9665
bd8a901f
PA
96662017-04-18 Pedro Alves <palves@redhat.com>
9667
9668 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9669 gdb::optional<std::string>.
9670 * xml-support.c: Include <string>.
9671 (scope_level::scope_level(scope_level &&))
9672 (scope_level::~scope_level): Delete.
9673 (scope_level::body): Now a std::string.
9674 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9675 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9676 parameter.
9677 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9678 (xinclude_parsing_data::output): Now a std::string reference.
9679 (xinclude_start_include): Adjust.
9680 (xml_xinclude_default): Adjust.
9681 (xml_process_xincludes): Add 'output' parameter, and return bool.
9682 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9683 and return bool.
9684 * xml-tdesc.c: Include <unordered_map> and <string>.
9685 (tdesc_xml_cache): Delete.
9686 (tdesc_xml_cache_s): Delete.
9687 (xml_cache): Now an std::unordered_map.
9688 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9689 (target_fetch_description_xml): Change return type to
9690 gdb::optional<std::string>, and adjust.
9691 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9692 (target_fetch_description_xml): Change return type to
9693 gdb::optional<std::string>.
9694
d35d1958
PA
96952017-04-18 Pedro Alves <palves@redhat.com>
9696
9697 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9698 unittests/optional-selftests.c.
9699 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9700 * unittests/optional-selftests.c: New file.
9701 * unittests/optional/assignment/1.cc: New file.
9702 * unittests/optional/assignment/2.cc: New file.
9703 * unittests/optional/assignment/3.cc: New file.
9704 * unittests/optional/assignment/4.cc: New file.
9705 * unittests/optional/assignment/5.cc: New file.
9706 * unittests/optional/assignment/6.cc: New file.
9707 * unittests/optional/assignment/7.cc: New file.
9708 * unittests/optional/cons/copy.cc: New file.
9709 * unittests/optional/cons/default.cc: New file.
9710 * unittests/optional/cons/move.cc: New file.
9711 * unittests/optional/cons/value.cc: New file.
9712 * unittests/optional/in_place.cc: New file.
9713 * unittests/optional/observers/1.cc: New file.
9714 * unittests/optional/observers/2.cc: New file.
9715
22796e97
PA
97162017-04-18 Pedro Alves <palves@redhat.com>
9717
9718 * common/gdb_optional.h: Include common/traits.h.
9719 (in_place_t): New type.
9720 (in_place): New constexpr variable.
9721 (optional::optional): Remove member initialization of
9722 m_instantiated.
9723 (optional::optional(in_place_t...)): New constructor.
9724 (optional::~optional): Use reset.
9725 (optional::optional(const optional&)): New.
9726 (optional::optional(const optional&&)): New.
9727 (optional::optional(T &)): New.
9728 (optional::optional(T &&)): New.
9729 (operator::operator=(const optional &)): New.
9730 (operator::operator=(optional &&)): New.
9731 (operator::operator= (const T &))
9732 (operator::operator= (T &&))
9733 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9734 (operator::reset): New.
9735 (operator::m_instantiated):: Add in-class initializer.
9736 * common/traits.h: Include <type_traits>.
9737 (struct And): New types.
9738
a7fc9b61
PA
97392017-04-18 Pedro Alves <palves@redhat.com>
9740
9741 * xml-support.c: Include <vector>.
9742 (scope_level::scope_level(const gdb_xml_element *))
9743 (scope_level::scope_level(scope_level&&)): New.
9744 (scope_level::~scope_level): New.
9745 (scope_level_s): Delete.
9746 (gdb_xml_parser::scopes): Now a std::vector.
9747 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9748 Use std::vector.
9749 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
9750 scope cleanup code.
9751 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
9752 of the scopes member. Use std::vector::emplace_back.
9753
010151c9
PA
97542017-04-18 Pedro Alves <palves@redhat.com>
9755
9756 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
9757 a bool.
9758 (gdb_xml_end_element): Change type of first parameter.
9759 (gdb_xml_cleanup): Rename to ...
9760 (gdb_xml_parser::~gdb_xml_parser): ... this.
9761 (gdb_xml_create_parser_and_cleanup): Delete with ...
9762 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
9763 to this new ctor.
9764 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
9765 using gdb_xml_create_parser_and_cleanup.
9766 (xinclude_parsing_data): Add ctor/dtor.
9767 (xml_xinclude_cleanup): Delete.
9768 (xml_process_xincludes): Create a local xinclude_parsing_data
9769 instead of heap-allocating one. Create a local gdb_xml_parser
9770 instead of heap-allocating one with
9771 gdb_xml_create_parser_and_cleanup.
9772
d56060f0
JB
97732017-04-18 John Baldwin <jhb@FreeBSD.org>
9774
9775 PR threads/20743
9776 * fbsd-nat.c (resume_one_thread_cb): Remove.
9777 (resume_all_threads_cb): Remove.
9778 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
9779 iterate_over_threads.
9780
305d16a9
JB
97812017-04-17 Joel Brobecker <brobecker@adacore.com>
9782
9783 * NEWS: Create a new section for the next release branch.
9784 Rename the section of the current branch, now that it has
9785 been cut.
9786
8bb57231
JB
97872017-04-17 Joel Brobecker <brobecker@adacore.com>
9788
9789 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
9790 * version.in: Bump version to 8.0.50.DATE-git.
9791
096c92dd
SDJ
97922017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
9793
9794 PR gdb/21385
9795 * windows-nat.c (windows_create_inferior): Declare 'allargs'
9796 independently of the host, and fix build breakage on Cygwin.
9797
0550c955
PA
97982017-04-13 Pedro Alves <palves@redhat.com>
9799
9800 * inferior.c (free_inferior): Convert to ...
9801 (inferior::~inferior): ... this dtor.
9802 (inferior::inferior): New ctor, factored out from ...
9803 (add_inferior_silent): ... here. Allocate the inferior with a new
9804 expression.
9805 (delete_inferior): Call delete instead of free_inferior.
9806 * inferior.h (gdb_environ, continuation): Forward declare.
9807 (inferior): Now a class. Add in-class initialization to all
9808 members. Make boolean fields bool, except 'detaching'.
9809 (inferior::inferior): New explicit ctor.
9810 (inferior::~inferior): New.
9811
e3d60dfc
PA
98122017-04-13 Pedro Alves <palves@redhat.com>
9813
9814 * inferior.c (init_inferior_list): Delete.
9815 * inferior.h (init_inferior_list): Delete.
9816
5fd69d0a
PA
98172017-04-13 Pedro Alves <palves@redhat.com>
9818
9819 PR threads/13217
9820 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
9821 (top level): Call it twice, with different thread sets.
9822
c6609450
PA
98232017-04-13 Pedro Alves <palves@redhat.com>
9824
9825 * thread.c: Include <algorithm>.
9826 (thread_array_cleanup): Delete.
9827 (scoped_inc_dec_ref): New class.
9828 (live_threads_count): New function.
9829 (set_thread_refcount): Delete.
9830 (tp_array_compar_ascending): Now a bool.
9831 (tp_array_compar): Convert to a std::sort comparison function.
9832 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
9833 and live_threads_count.
9834
2a00d7ce
PA
98352017-04-13 Pedro Alves <palves@redhat.com>
9836
9837 * infrun.c (follow_fork_inferior): Also switch the current
9838 inferior.
9839
441d7c93
PA
98402017-04-13 Pedro Alves <palves@redhat.com>
9841
9842 * breakpoint.c (watch_command_1): Save watchpoint-frame info
9843 before calling create_internal_breakpoint.
9844
808480f6
PA
98452017-04-13 Pedro Alves <palves@redhat.com>
9846
9847 * fork-child.c (execv_argv): New class.
9848 (breakup_args): Refactored as ...
9849 (execv_argv::init_for_no_shell): .. this method of execv_argv.
9850 Copy arguments to storage and replace separators with NULL
9851 terminators in place.
9852 (escape_bang_in_quoted_argument): Adjust to return bool.
9853 (execv_argv::execv_argv): New ctor.
9854 (execv_argv::init_for_shell): New method, factored out from
9855 fork_inferior. Don't strdup strings into the vector.
9856 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
9857 Remove free_vector_argv call.
9858
ad3d022a
YQ
98592017-04-13 Yao Qi <yao.qi@linaro.org>
9860
9861 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
9862 tdep->rx_psw_type.
9863
e6ddc3bf
YQ
98642017-04-13 Yao Qi <yao.qi@linaro.org>
9865
9866 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
9867 * rx-tdep.c (rx_gdbarch_init): Likewise.
9868
bfb8cf90
PA
98692017-04-13 Pedro Alves <palves@redhat.com>
9870
9871 * breakpoint.h (struct breakpoint): Reindent.
9872
f5336ca5
PA
98732017-04-13 Pedro Alves <palves@redhat.com>
9874
9875 * breakpoint.c (bp_location): Rename to ...
9876 (bp_locations): ... this. All references updated.
9877 (bp_location_count): Rename to ...
9878 (bp_locations_count): ... this. All references updated.
9879 (bp_location_placed_address_before_address_max): Rename to ...
9880 (bp_locations_placed_address_before_address_max): ... this. All
9881 references updated.
9882 (bp_location_shadow_len_after_address_max): Rename to ...
9883 (bp_locations_shadow_len_after_address_max): ... this. All
9884 references updated.
9885 (bp_location_compare_addrs): Rename to ...
9886 (bp_locations_compare_addrs): ... this. All references updated.
9887 (bp_location_compare):Rename to ...
9888 (bp_locations_compare): ... this. All references updated.
9889 (bp_location_target_extensions_update): Rename to ...
9890 (bp_locations_target_extensions_update): ... this. All references
9891 updated.
9892
be628ab8
SDJ
98932017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9894
9895 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
9896 * common/common.m4: Check headers 'termios.h', 'termio.h' and
9897 'sgtty.h'.
9898 * common/gdb_termios.h: New file, with parts of "terminal.h".
9899 * inflow.c: Include "gdb_termios.h".
9900 * ser-unix.c: Include "gdb_termios.h".
9901 * terminal.h: Move terminal-related defines to
9902 "common/gdb_termios.h".
9903
8e9e35b1
TT
99042017-04-12 Tom Tromey <tom@tromey.com>
9905
9906 * probe.c (parse_probes): Update.
9907 * location.h (delete_event_location): Don't declare.
9908 (event_location_deleter::operator()): Update.
9909 * location.c (event_location_deleter::operator()): Rename from
9910 delete_event_location.
9911 * linespec.h (linespec_result) <location>: Change type to
9912 event_location_up.
9913 * linespec.c (canonicalize_linespec, event_location_to_sals)
9914 (decode_objc): Update.
9915 (linespec_result): Don't call delete_event_location.
9916 * breakpoint.c (create_breakpoints_sal)
9917 (bkpt_probe_create_sals_from_location)
9918 (strace_marker_create_sals_from_location): Update.
9919
16e802b9
TT
99202017-04-12 Tom Tromey <tom@tromey.com>
9921
9922 * linespec.h (struct linespec_result): Add constructor and
9923 destructor.
9924 (init_linespec_result, destroy_linespec_result)
9925 (make_cleanup_destroy_linespec_result): Don't declare.
9926 * linespec.c (init_linespec_result): Remove.
9927 (linespec_result::~linespec_result): Rename from
9928 destroy_linespec_result. Update.
9929 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
9930 Remove.
9931 * breakpoint.c (create_breakpoint, break_range_command)
9932 (decode_location_default): Update.
9933 * ax-gdb.c (agent_command_1): Update.
9934
d28cd78a
TT
99352017-04-12 Tom Tromey <tom@tromey.com>
9936
9937 * remote.c (remote_download_tracepoint): Update.
9938 * python/py-breakpoint.c (bppy_get_location): Update.
9939 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
9940 (gdbscm_breakpoint_location): Update.
9941 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
9942 * breakpoint.h (struct breakpoint) <location, location_range_end>:
9943 Change type to event_location_up.
9944 * breakpoint.c (create_overlay_event_breakpoint)
9945 (create_longjmp_master_breakpoint)
9946 (create_std_terminate_master_breakpoint)
9947 (create_exception_master_breakpoint)
9948 (breakpoint_event_location_empty_p, print_breakpoint_location)
9949 (print_one_breakpoint_location, create_thread_event_breakpoint)
9950 (init_breakpoint_sal, create_breakpoint)
9951 (print_recreate_ranged_breakpoint, break_range_command)
9952 (init_ada_exception_breakpoint, say_where): Update.
9953 (base_breakpoint_dtor): Don't call delete_event_location.
9954 (bkpt_print_recreate, tracepoint_print_recreate)
9955 (dprintf_print_recreate, update_static_tracepoint)
9956 (breakpoint_re_set_default): Update.
9957
711799d5
TT
99582017-04-12 Tom Tromey <tom@tromey.com>
9959
9960 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
9961 type of "to_do". Update.
9962 (compute_stack_depth): Use std::vector.
9963
52d214d3
TT
99642017-04-12 Tom Tromey <tom@tromey.com>
9965
9966 * printcmd.c (find_instruction_backward): Use std::vector.
9967
4c404b8b
TT
99682017-04-12 Tom Tromey <tom@tromey.com>
9969
9970 * symfile.c (objfilep): Remove typedef.
9971 (reread_symbols): Use a std::vector.
9972
156d9eab
TT
99732017-04-12 Tom Tromey <tom@tromey.com>
9974
9975 * mi/mi-main.c (exec_direction_forward): Remove.
9976 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
9977 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
9978 scoped_restore.
9979 * guile/guile.c (guile_repl_command, guile_command)
9980 (gdbscm_execute_gdb_command): Use scoped_restore.
9981 * go-exp.y (go_parse): Use scoped_restore.
9982 * d-exp.y (d_parse): Use scoped_restore.
9983 * cli/cli-decode.c (cmd_func): Use scoped_restore.
9984 * c-exp.y (c_parse): Use scoped_restore.
9985
4d89769a
TT
99862017-04-12 Tom Tromey <tom@tromey.com>
9987
9988 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
9989 (mi_parse): Update return type.
9990 (mi_parse_free): Remove.
9991 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
9992 (mi_parse::~mi_parse): Rename from mi_parse_free.
9993 (mi_parse_cleanup): Remove.
9994 (mi_parse): Return a unique_ptr. Use new.
9995 * mi/mi-main.c (mi_execute_command): Update.
9996
4b217cc7
TT
99972017-04-12 Tom Tromey <tom@tromey.com>
9998
9999 * location.c (explicit_location_lex_one): Return a
10000 unique_xmalloc_ptr.
10001 (string_to_explicit_location): Update. Remove cleanups.
10002
59d3651b
TT
100032017-04-12 Tom Tromey <tom@tromey.com>
10004
10005 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10006 (compare_value_and_voffset): Change type. Update.
10007 (compute_vtable_size): Change type of "offset_vec".
10008 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10009 (gnuv3_get_typeid): Remove extraneous declaration.
10010
b24b0d6c
TT
100112017-04-12 Tom Tromey <tom@tromey.com>
10012
10013 * charset.h (wchar_iterator): Fix comment.
10014
80a3b8c5
TT
100152017-04-12 Tom Tromey <tom@tromey.com>
10016
10017 * charset.c (iconv_wrapper): New class.
10018 (cleanup_iconv): Remove.
10019 (convert_between_encodings): Use it.
10020
c83dd867
TT
100212017-04-12 Tom Tromey <tom@tromey.com>
10022
10023 * symfile.h (increment_reading_symtab): Update type.
10024 * symfile.c (decrement_reading_symtab): Remove.
10025 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10026 * psymtab.c (psymtab_to_symtab): Update.
10027 * dwarf2read.c (dw2_instantiate_symtab): Update.
10028
0e8621a0
TT
100292017-04-12 Tom Tromey <tom@tromey.com>
10030
10031 * jit.c (struct jit_reader): Declare separately. Add constructor
10032 and destructor. Change type of "handle".
10033 (loaded_jit_reader): Define separately.
10034 (jit_reader_load): Update. New "new".
10035 (jit_reader_unload_command): Use "delete".
10036 * gdb-dlfcn.h (struct dlclose_deleter): New.
10037 (gdb_dlhandle_up): New typedef.
10038 (gdb_dlopen, gdb_dlsym): Update types.
10039 (gdb_dlclose): Remove.
10040 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10041 (gdb_dlsym): Change type of "handle".
10042 (make_cleanup_dlclose): Remove.
10043 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10044 * compile/compile-c-support.c (load_libcc): Update.
10045
67d89901
TT
100462017-04-12 Tom Tromey <tom@tromey.com>
10047
10048 * symtab.h (find_pcs_for_symtab_line): Change return type.
10049 * symtab.c (find_pcs_for_symtab_line): Change return type.
10050 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10051 type of "vec". Update.
10052 (ltpy_get_pcs_for_line): Update.
10053 * linespec.c (decode_digits_ordinary): Update.
10054
93921405
TT
100552017-04-12 Tom Tromey <tom@tromey.com>
10056
10057 * tracepoint.c (actions_command): Update.
10058 * python/python.c (python_command, python_interactive_command):
10059 Update.
10060 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10061 * guile/guile.c (guile_command): Update.
10062 * defs.h (read_command_lines, read_command_lines_1): Return
10063 command_line_up.
10064 (command_lines_deleter): New struct.
10065 (command_line_up): New typedef.
10066 * compile/compile.c (compile_code_command)
10067 (compile_print_command): Update.
10068 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10069 command_line_up.
10070 (make_cleanup_free_command_lines): Remove.
10071 * cli/cli-script.c (get_command_line, read_command_lines_1)
10072 (copy_command_lines): Return command_line_up.
10073 (while_command, if_command, read_command_lines, define_command)
10074 (document_command): Update.
10075 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10076 Remove.
10077 * breakpoint.h (breakpoint_set_commands): Change type of
10078 "commands".
10079 * breakpoint.c (breakpoint_set_commands): Change type of
10080 "commands". Update.
10081 (do_map_commands_command, update_dprintf_command_list)
10082 (create_tracepoint_from_upload): Update.
10083
ffc2605c
TT
100842017-04-12 Tom Tromey <tom@tromey.com>
10085
10086 * tracepoint.c (scope_info): Update.
10087 * spu-tdep.c (spu_catch_start): Update.
10088 * python/python.c (gdbpy_decode_line): Update.
10089 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10090 * python/py-breakpoint.c (bppy_init): Update.
10091 * probe.c (parse_probes): Update.
10092 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10093 * location.h (event_location_deleter): New struct.
10094 (event_location_up): New typedef.
10095 (new_linespec_location, new_address_location, new_probe_location)
10096 (new_explicit_location, copy_event_location)
10097 (string_to_event_location, string_to_event_location_basic)
10098 (string_to_explicit_location): Update return type.
10099 (make_cleanup_delete_event_location): Remove.
10100 * location.c (new_linespec_location, new_address_location)
10101 (new_probe_location, new_explicit_location, copy_event_location):
10102 Return event_location_up.
10103 (delete_event_location_cleanup)
10104 (make_cleanup_delete_event_location): Remove.
10105 (string_to_explicit_location, string_to_event_location_basic)
10106 (string_to_event_location): Return event_location_up.
10107 * linespec.c (canonicalize_linespec, event_location_to_sals)
10108 (decode_line_with_current_source)
10109 (decode_line_with_last_displayed, decode_objc): Update.
10110 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10111 * completer.c (location_completer): Update.
10112 * cli/cli-cmds.c (edit_command, list_command): Update.
10113 * breakpoint.c (create_overlay_event_breakpoint)
10114 (create_longjmp_master_breakpoint)
10115 (create_std_terminate_master_breakpoint)
10116 (create_exception_master_breakpoint)
10117 (create_thread_event_breakpoint): Update.
10118 (init_breakpoint_sal): Update. Remove some dead code.
10119 (create_breakpoint_sal): Change type of "location". Update.
10120 (create_breakpoints_sal, create_breakpoint, break_command_1)
10121 (dprintf_command, break_range_command, until_break_command)
10122 (init_ada_exception_breakpoint)
10123 (strace_marker_create_sals_from_location)
10124 (update_static_tracepoint, trace_command, ftrace_command)
10125 (strace_command, create_tracepoint_from_upload): Update.
10126 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10127 * ax-gdb.c (agent_command_1): Update.
10128
8f10c932
PA
101292017-04-12 Pedro Alves <palves@redhat.com>
10130
10131 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10132 * configure.tgt: Handle i[34567]86-*-go32* and
10133 i[34567]86-*-msdosdjgpp*.
10134 * i386-tdep.c (i386_svr4_reg_to_regnum):
10135 Make extern.
10136 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10137 i386-go32-tdep.c.
10138 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10139 * i386-go32-tdep.c: New file.
10140 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10141 declarations.
10142
0a31ccfb
SM
101432017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10144
10145 * aix-thread.c (pd_status2str): Change return type to const char *.
10146
e9bb3fbb
PA
101472017-04-12 Pedro Alves <palves@redhat.com>
10148
10149 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10150 calls to set_gdbarch_gnu_triplet_regexp.
10151
53375380
PA
101522017-04-12 Pedro Alves <palves@redhat.com>
10153
10154 PR gdb/21323
10155 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10156 New enum value.
10157 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10158 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10159 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10160 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10161 * gdbarch.h, gdbarch.c: Regenerate.
10162 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10163 gdbarch_wchar_bit and gdbarch_wchar_signed.
10164 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10165 * arm-tdep.c (arm_gdbarch_init): Likewise.
10166 * avr-tdep.c (avr_gdbarch_init): Likewise.
10167 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10168 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10169 * i386-tdep.c (i386_go32_init_abi): Likewise.
10170 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10171 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10172 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10173 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10174 * sh-tdep.c (sh_gdbarch_init): Likewise.
10175 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10176 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10177 * windows-tdep.c (windows_init_abi): Likewise.
10178 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10179
53e710ac
PA
101802017-04-12 Pedro Alves <palves@redhat.com>
10181
10182 PR c++/21323
10183 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10184 cplus_primitive_type_char32_t>: New enum values.
10185 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10186 and cplus_primitive_type_char32_t.
10187 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10188 32, use the archtecture's built-in type for char16_t and char32_t,
10189 respectively. Otherwise, fallback to init_integer_type as before,
10190 but make the type unsigned, and issue a complaint.
10191 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10192
ab0538b8
AH
101932017-04-12 Alan Hayward <alan.hayward@arm.com>
10194
5e0e0422 10195 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10196 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10197
5430098f
SDJ
101982017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10199
10200 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10201 'const char *'.
10202
7c5ded6a
SDJ
102032017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10204
10205 * common/common-utils.c (free_vector_argv): New function.
10206 * common/common-utils.h: Include <vector>.
10207 (free_vector_argv): New prototype.
10208 * darwin-nat.c (darwin_create_inferior): Rewrite function
10209 prototype in order to constify "exec_file" and accept a
10210 "std::string" for "allargs".
10211 * fork-child.c: Include <vector>.
10212 (breakup_args): Rewrite function, using C++.
10213 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10214 and accept "std::string" for "allargs". Update the code to
10215 calculate "argv" based on "allargs". Update calls to "exec_fun"
10216 and "execvp".
10217 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10218 order to constify "exec_file" and accept a "std::string" for
10219 "allargs".
10220 * go32-nat.c (go32_create_inferior): Likewise.
10221 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10222 * infcmd.c (run_command_1): Constify "exec_file". Use
10223 "std::string" for inferior arguments.
10224 * inferior.h (fork_inferior): Update prototype.
10225 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10226 prototype in order to constify "exec_file" and accept a
10227 "std::string" for "allargs".
10228 * nto-procfs.c (procfs_create_inferior): Likewise.
10229 * procfs.c (procfs_create_inferior): Likewise.
10230 * remote-sim.c (gdbsim_create_inferior): Likewise.
10231 * remote.c (extended_remote_run): Update code to accept
10232 "std::string" as argument.
10233 (extended_remote_create_inferior): Rewrite function prototype in
10234 order to constify "exec_file" and accept a "std::string" for
10235 "allargs".
10236 * rs6000-nat.c (super_create_inferior): Likewise.
10237 (rs6000_create_inferior): Likewise.
10238 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10239 * windows-nat.c (windows_create_inferior): Likewise.
10240
ae0eee42
PA
102412017-04-11 Pedro Alves <palves@redhat.com>
10242
10243 * thread.c: Fix whitespace throughout.
10244
a6acac06
PR
102452017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10246
10247 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10248
64403bd1
AH
102492017-04-11 Alan Hayward <alan.hayward@arm.com>
10250
10251 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10252
a5bef50f
SDJ
102532017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10254
10255 PR gdb/21364
10256 * osdata.c (info_osdata): Check if 'type' is an empty string
10257 instead of NULL.
10258
9295a5a9
PA
102592017-04-10 Pedro Alves <palves@redhat.com>
10260
10261 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10262 (ptid_to_global_thread_id, in_thread_list)
10263 (do_captured_list_thread_ids, set_resumed, set_running)
10264 (set_executing, set_stop_requested, finish_thread_state)
10265 (validate_registers_access, can_access_registers_ptid)
10266 (print_thread_info_1, switch_to_thread)
10267 (do_restore_current_thread_cleanup)
10268 (make_cleanup_restore_current_thread, thread_command)
10269 (thread_name_command): Use operator== instead of ptid_equal.
10270
996812e3
PA
102712017-04-10 Pedro Alves <palves@redhat.com>
10272
10273 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10274 (current_thread_cleanup_chain): Delete.
10275 (restore_current_thread_cleanup_dtor)
10276 (make_cleanup_restore_current_thread): Remove references to
10277 current_thread_cleanup_chain.
10278
845b344f
AH
102792017-04-10 Alan Hayward <alan.hayward@arm.com>
10280
10281 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10282 REG_UNKNOWN.
10283
803bdfe4
YQ
102842017-04-10 Yao Qi <yao.qi@linaro.org>
10285
10286 PR gdb/19942
10287 * gdbthread.h (thread_info::deletable): New method.
10288 (thread_info::incref): New method.
10289 (thread_info::decref): New method.
10290 (thread_info::refcount): Move it to private.
10291 * infrun.c (save_stop_context): Call inc_refcount.
10292 (release_stop_context_cleanup): Likewise.
10293 * thread.c (set_thread_exited): New function.
10294 (init_thread_list): Delete "tp" only it is deletable, otherwise
10295 call set_thread_exited.
10296 (delete_thread_1): Call set_thread_exited.
10297 (current_thread_cleanup) <inferior_pid>: Remove.
10298 <thread>: New field.
10299 (restore_current_thread_ptid_changed): Removed.
10300 (do_restore_current_thread_cleanup): Adjust.
10301 (restore_current_thread_cleanup_dtor): Don't call
10302 find_thread_ptid.
10303 (set_thread_refcount): Use dec_refcount.
10304 (make_cleanup_restore_current_thread): Adjust.
10305 (thread_apply_all_command): Call inc_refcount.
10306 (_initialize_thread): Don't call
10307 observer_attach_thread_ptid_changed.
10308
8c25b497
YQ
103092017-04-10 Yao Qi <yao.qi@linaro.org>
10310
10311 * thread.c (delete_thread_1): Hoist code on marking thread as
10312 exited.
10313
8473b447
SM
103142017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10315
10316 * windows-nat.c (windows_detach): Initialize ptid with
10317 minus_one_ptid.
10318
6670ec13
SM
103192017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10320
10321 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10322
ba2f91bb
AH
103232017-04-07 Alan Hayward <alan.hayward@arm.com>
10324
10325 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10326 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10327 (bfin_pseudo_register_write): Likewise
10328
436252de
SM
103292017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10330
10331 * common/ptid.h (struct ptid): Change to...
10332 (class ptid_t): ... this.
10333 <ptid_t>: New constructors.
10334 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10335 matches>: New methods.
10336 <make_null, make_minus_one>: New static methods.
10337 <pid>: Rename to...
10338 <m_pid>: ...this.
10339 <lwp>: Rename to...
10340 <m_lwp>: ...this.
10341 <tid>: Rename to...
10342 <m_tid>: ...this.
10343 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10344 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10345 as references, move comment to class ptid_t.
10346 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10347 ptid_t static methods.
10348 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10349 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10350 Take ptid arguments as references, implement using ptid_t methods.
10351 * unittests/ptid-selftests.c: New file.
10352 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10353 unittests/ptid-selftests.c.
10354 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10355
0dedf377
TP
103562017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10357
10358 * python/python.c (python_run_simple_file): Cast mode literal to
10359 non-const char pointer as expected by PyFile_FromString.
10360
4e9868d4
SM
103612017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10362
10363 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10364 minus_one_ptid and null_ptid.
10365
9bf2a700
PA
103662017-04-05 Pedro Alves <palves@redhat.com>
10367
10368 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10369 * configure: Regenerate.
10370
a121b7c1
PA
103712017-04-05 Pedro Alves <palves@redhat.com>
10372
10373 * ada-exp.y (yyerror): Constify.
10374 * ada-lang.c (bound_name, get_selections)
10375 (ada_variant_discrim_type)
10376 (ada_variant_discrim_name, ada_value_struct_elt)
10377 (ada_lookup_struct_elt_type, is_unchecked_variant)
10378 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10379 (catch_ada_exception_command_split)
10380 (catch_ada_assert_command_split, catch_assert_command)
10381 (ada_op_name): Constify.
10382 * ada-lang.h (ada_yyerror, get_selections)
10383 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10384 * arc-tdep.c (arc_print_frame_cache): Constify.
10385 * arm-tdep.c (arm_skip_stub): Constify.
10386 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10387 (gen_aggregate_elt_ref): Constify.
10388 * bcache.c (print_bcache_statistics): Constify.
10389 * bcache.h (print_bcache_statistics): Constify.
10390 * break-catch-throw.c (catch_exception_command_1):
10391 * breakpoint.c (struct ep_type_description::description):
10392 Constify.
10393 (add_solib_catchpoint): Constify.
10394 (catch_fork_command_1): Add cast.
10395 (add_catch_command): Constify.
10396 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10397 Constify.
10398 * bsd-uthread.c (bsd_uthread_state): Constify.
10399 * buildsym.c (patch_subfile_names): Constify.
10400 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10401 Constify.
10402 * c-exp.y (yyerror): Constify.
10403 (token::oper): Constify.
10404 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10405 * c-varobj.c (cplus_describe_child): Constify.
10406 * charset.c (find_charset_names): Add cast.
10407 (find_charset_names): Constify array and add const_cast.
10408 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10409 (edit_command): Constify.
10410 * cli/cli-decode.c (lookup_cmd): Constify.
10411 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10412 Constify.
10413 (struct dump_context): Constify.
10414 (add_dump_command, restore_command): Constify.
10415 * cli/cli-script.c (get_command_line): Constify.
10416 * cli/cli-script.h (get_command_line): Constify.
10417 * cli/cli-utils.c (check_for_argument): Constify.
10418 * cli/cli-utils.h (check_for_argument): Constify.
10419 * coff-pe-read.c (struct read_pe_section_data): Constify.
10420 * command.h (lookup_cmd): Constify.
10421 * common/print-utils.c (decimal2str): Constify.
10422 * completer.c (gdb_print_filename): Constify.
10423 * corefile.c (set_gnutarget): Constify.
10424 * cp-name-parser.y (yyerror): Constify.
10425 * cp-valprint.c (cp_print_class_member): Constify.
10426 * cris-tdep.c (cris_register_name, crisv32_register_name):
10427 Constify.
10428 * d-exp.y (yyerror): Constify.
10429 (struct token::oper): Constify.
10430 * d-lang.h (d_yyerror): Constify.
10431 * dbxread.c (struct header_file_location::name): Constify.
10432 (add_old_header_file, add_new_header_file, last_function_name)
10433 (dbx_next_symbol_text, add_bincl_to_list)
10434 (find_corresponding_bincl_psymtab, set_namestring)
10435 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10436 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10437 * defs.h (command_line_input, print_address_symbolic)
10438 (deprecated_readline_begin_hook): Constify.
10439 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10440 Constify.
10441 * event-top.c (handle_line_of_input): Constify and add cast.
10442 * exceptions.c (catch_errors): Constify.
10443 * exceptions.h (catch_errors): Constify.
10444 * expprint.c (print_subexp_standard, op_string, op_name)
10445 (op_name_standard, dump_raw_expression, dump_raw_expression):
10446 * expression.h (op_name, op_string, dump_raw_expression):
10447 Constify.
10448 * f-exp.y (yyerror): Constify.
10449 (struct token::oper): Constify.
10450 (struct f77_boolean_val::name): Constify.
10451 * f-lang.c (f_word_break_characters): Constify.
10452 * f-lang.h (f_yyerror): Constify.
10453 * fork-child.c (fork_inferior): Add cast.
10454 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10455 (new_variant): Constify.
10456 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10457 * gdbarch.c: Regenerate.
10458 * gdbcore.h (set_gnutarget): Constify.
10459 * go-exp.y (yyerror): Constify.
10460 (token::oper): Constify.
10461 * go-lang.h (go_yyerror): Constify.
10462 * go32-nat.c (go32_sysinfo): Constify.
10463 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10464 * guile/scm-cmd.c (cmdscm_function): Constify.
10465 * guile/scm-param.c (pascm_param_value): Constify.
10466 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10467 (h8300sx_register_name): Constify.
10468 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10469 Constify.
10470 * ia64-tdep.c (ia64_register_names): Constify.
10471 * infcmd.c (construct_inferior_arguments): Constify.
10472 (path_command, attach_post_wait): Constify.
10473 * language.c (show_range_command, show_case_command)
10474 (unk_lang_error): Constify.
10475 * language.h (language_defn::la_error)
10476 (language_defn::la_name_of_this): Constify.
10477 * linespec.c (decode_line_2): Constify.
10478 * linux-thread-db.c (thread_db_err_str): Constify.
10479 * lm32-tdep.c (lm32_register_name): Constify.
10480 * m2-exp.y (yyerror): Constify.
10481 * m2-lang.h (m2_yyerror): Constify.
10482 * m32r-tdep.c (m32r_register_names): Constify and make static.
10483 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10484 * m88k-tdep.c (m88k_register_name): Constify.
10485 * macroexp.c (appendmem): Constify.
10486 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10487 (upgrade_type, parse_external, parse_partial_symbols)
10488 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10489 (new_symbol): Constify.
10490 * memattr.c (mem_info_command): Constify.
10491 * mep-tdep.c (register_name_from_keyword): Constify.
10492 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10493 Constify.
10494 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10495 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10496 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10497 cast.
10498 (mi_execute_async_cli_command): Constify.
10499 * mips-tdep.c (mips_register_name): Constify.
10500 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10501 (am33_register_name, am33_2_register_name)
10502 * moxie-tdep.c (moxie_register_names): Constify.
10503 * nat/linux-osdata.c (osdata_type): Constify fields.
10504 * nto-tdep.c (nto_parse_redirection): Constify.
10505 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10506 (lookup_child_selector): Constify.
10507 (objc_methcall::name): Constify.
10508 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10509 (lookup_struct_typedef): Constify.
10510 * objfiles.c (pc_in_section): Constify.
10511 * objfiles.h (pc_in_section): Constify.
10512 * p-exp.y (struct token::oper): Constify.
10513 (yyerror): Constify.
10514 * p-lang.h (pascal_yyerror): Constify.
10515 * parser-defs.h (op_name_standard): Constify.
10516 (op_print::string): Constify.
10517 (exp_descriptor::op_name): Constify.
10518 * printcmd.c (print_address_symbolic): Constify.
10519 * psymtab.c (print_partial_symbols): Constify.
10520 * python/py-breakpoint.c (stop_func): Constify.
10521 (bppy_get_expression): Constify.
10522 * python/py-cmd.c (cmdpy_completer::name): Constify.
10523 (cmdpy_function): Constify.
10524 * python/py-event.c (evpy_add_attribute)
10525 (gdbpy_initialize_event_generic): Constify.
10526 * python/py-event.h (evpy_add_attribute)
10527 (gdbpy_initialize_event_generic): Constify.
10528 * python/py-evts.c (add_new_registry): Constify.
10529 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10530 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10531 * python/py-inferior.c (get_buffer): Add cast.
10532 * python/py-param.c (parm_constant::name): Constify.
10533 * python/py-unwind.c (fprint_frame_id): Constify.
10534 * python/python.c (gdbpy_parameter_value): Constify.
10535 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10536 * remote.c (memory_packet_config::name): Constify.
10537 (show_packet_config_cmd, remote_write_bytes)
10538 (remote_buffer_add_string):
10539 * reverse.c (exec_reverse_once): Constify.
10540 * rs6000-tdep.c (variant::name, variant::description): Constify.
10541 * rust-exp.y (rustyyerror): Constify.
10542 * rust-lang.c (rust_op_name): Constify.
10543 * rust-lang.h (rustyyerror): Constify.
10544 * serial.h (serial_ops::name): Constify.
10545 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10546 (sh_sh3e_register_name, sh_sh2e_register_name)
10547 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10548 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10549 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10550 (sh_sh4al_dsp_register_name): Constify.
10551 * sh64-tdep.c (sh64_register_name): Constify.
10552 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10553 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10554 * stabsread.c (patch_block_stabs, read_type_number)
10555 (ref_map::stabs, ref_add, process_reference)
10556 (symbol_reference_defined, define_symbol, define_symbol)
10557 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10558 (read_one_struct_field, read_struct_fields, read_baseclasses)
10559 (read_tilde_fields, read_struct_type, read_array_type)
10560 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10561 (read_huge_number, read_range_type, read_args, common_block_start)
10562 (find_name_end): Constify.
10563 * stabsread.h (common_block_start, define_symbol)
10564 (process_one_symbol, symbol_reference_defined, ref_add):
10565 * symfile.c (get_section_index, add_symbol_file_command):
10566 * symfile.h (get_section_index): Constify.
10567 * target-descriptions.c (tdesc_type::name): Constify.
10568 (tdesc_free_type): Add cast.
10569 * target.c (find_default_run_target):
10570 (add_deprecated_target_alias, find_default_run_target)
10571 (target_announce_detach): Constify.
10572 (do_option): Constify.
10573 * target.h (add_deprecated_target_alias): Constify.
10574 * thread.c (print_thread_info_1): Constify.
10575 * top.c (deprecated_readline_begin_hook, command_line_input):
10576 Constify.
10577 (init_main): Add casts.
10578 * top.h (handle_line_of_input): Constify.
10579 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10580 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10581 (tfind_command): Rename to ...
10582 (tfind_command_1): ... this and constify.
10583 (tfind_command): New function.
10584 (tfind_end_command, tfind_start_command): Adjust.
10585 (encode_source_string): Constify.
10586 * tracepoint.h (encode_source_string): Constify.
10587 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10588 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10589 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10590 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10591 * tui/tui-win.c (parse_scrolling_args): Constify.
10592 * tui/tui-windata.c (tui_erase_data_content): Constify.
10593 * tui/tui-windata.h (tui_erase_data_content): Constify.
10594 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10595 * tui/tui.c (tui_enable): Add cast.
10596 * utils.c (defaulted_query): Constify.
10597 (init_page_info): Add cast.
10598 (puts_debug, subset_compare): Constify.
10599 * utils.h (subset_compare): Constify.
10600 * varobj.c (varobj_format_string): Constify.
10601 * varobj.h (varobj_format_string): Constify.
10602 * vax-tdep.c (vax_register_name): Constify.
10603 * windows-nat.c (windows_detach): Constify.
10604 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10605 * xml-support.c (gdb_xml_end_element): Constify.
10606 * xml-tdesc.c (tdesc_start_reg): Constify.
10607 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10608 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10609 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10610
995816ba
PA
106112017-04-05 Pedro Alves <palves@redhat.com>
10612
10613 * proc-api.c (struct trans): Constify.
10614 (procfs_note): Constify.
10615 * proc-events.c (struct trans, syscall_table):
10616 * proc-flags.c (struct trans): Constify.
10617 * proc-utils.h (procfs_note): Constify.
10618 * proc-why.c (struct trans): Constify.
10619 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10620 (procfs_detach): Constify.
10621 * sol-thread.c (struct string_map): Constify.
10622 (td_err_string, td_state_string): Constify.
10623
3e83a920
PA
106242017-04-05 Pedro Alves <palves@redhat.com>
10625
10626 * proc-api.c (procfs_filename): Don't initialize
10627 procfs_filename.
10628 (prepare_to_trace): Assume procfs_filename is non-NULL.
10629 (_initialize_proc_api): Give procfs_filename a default value here.
10630
63160a43
PA
106312017-04-05 Pedro Alves <palves@redhat.com>
10632
10633 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10634 'cond_string' parameter.
10635 (extract_exception_regexp): Constify 'string' parameter.
10636 (catch_exception_command_1): Constify.
10637 * breakpoint.c (init_catchpoint)
10638 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10639 parameter.
10640 (ep_parse_optional_if_clause, catch_fork_command_1)
10641 (catch_exec_command_1): Constify.
10642 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10643 parameter.
10644 (ep_parse_optional_if_clause): Constify.
10645 * cli/cli-utils.c (remove_trailing_whitespace)
10646 (check_for_argument): Constify.
10647 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10648 non-const overload.
10649 (check_for_argument): Likewise.
10650
9b2eba3d
PA
106512017-04-05 Pedro Alves <palves@redhat.com>
10652
10653 * event-top.c (command_line_handler): Add cast to execute_command
10654 call.
10655 * record-btrace.c (cmd_record_btrace_bts_start)
10656 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10657 (cmd_record_btrace_start): Add cast to execute_command call.
10658 * record-full.c (record_full_goto_insn):
10659 * record.c (record_start, record_stop): Add cast to
10660 execute_command_to_string calls.
10661 (cmd_record_start): Add cast to execute_command calls.
10662
2adadf51
PA
106632017-04-05 Pedro Alves <palves@redhat.com>
10664
10665 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10666 static inline function.
10667 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10668 array and use gdb_PyArg_ParseTupleAndKeywords.
10669 * python/py-cmd.c (cmdpy_init): Likewise.
10670 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10671 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10672 (infpy_search_memory): Likewise.
10673 * python/py-objfile.c (objfpy_add_separate_debug_file)
10674 (gdbpy_lookup_objfile): Likewise.
10675 * python/py-symbol.c (gdbpy_lookup_symbol)
10676 (gdbpy_lookup_global_symbol): Likewise.
10677 * python/py-type.c (gdbpy_lookup_type): Likewise.
10678 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10679 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10680 Likewise.
10681
0d1f4ceb
PA
106822017-04-05 Pedro Alves <palves@redhat.com>
10683
10684 * python/python-internal.h (gdb_PyGetSetDef): New type.
10685 * python/py-block.c (block_object_getset)
10686 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10687 * python/py-event.c (event_object_getset)
10688 (finish_breakpoint_object_getset): Likewise.
10689 * python/py-inferior.c (inferior_object_getset): Likewise.
10690 * python/py-infthread.c (thread_object_getset): Likewise.
10691 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10692 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10693 * python/py-objfile.c (objfile_getset): Likewise.
10694 * python/py-progspace.c (pspace_getset): Likewise.
10695 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10696 Likewise.
10697 * python/py-record.c (recpy_record_getset): Likewise.
10698 * python/py-symbol.c (symbol_object_getset): Likewise.
10699 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10700 Likewise.
10701 * python/py-type.c (type_object_getset, field_object_getset):
10702 Likewise.
10703 * python/py-value.c (value_object_getset): Likewise.
10704
4d759979
PA
107052017-04-05 Pedro Alves <palves@redhat.com>
10706
10707 * python/python-internal.h (gdb_PyObject_CallMethod)
10708 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10709 New functions.
10710 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10711 (PySys_GetObject, PySys_SetPath): New macros.
10712
fdf9e36f
PA
107132017-04-05 Pedro Alves <palves@redhat.com>
10714
10715 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10716 info_osdata_command.
10717 * osdata.c (info_osdata_command): Rename to ...
10718 (info_osdata): ... this. Constify 'type' parameter, and remove
10719 the 'from_tty' parameter. Accept NULL TYPE.
10720 (info_osdata_command): New function.
10721 * osdata.h (info_osdata_command): Remove declaration.
10722 (info_osdata): New declaration.
10723
9f33b8b7
PA
107242017-04-05 Pedro Alves <palves@redhat.com>
10725
10726 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10727 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10728 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10729 parameter.
10730 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10731 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10732 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10733 parameter.
10734 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10735 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10736 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10737 (mi_cmd_file_list_exec_source_files)
10738 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10739 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10740 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10741 parameter.
10742 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10743 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10744 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10745 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10746 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10747 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10748 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10749 'command' parameter.
10750 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
10751 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
10752 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
10753 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
10754 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
10755 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
10756 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
10757 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
10758 (mi_cmd_var_set_update_range): Constify 'command' parameter.
10759 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
10760 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
10761 parameter.
10762 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
10763 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
10764 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
10765 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
10766 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
10767 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
10768 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
10769 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
10770 (mi_cmd_data_list_changed_registers)
10771 (mi_cmd_data_write_register_values)
10772 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
10773 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
10774 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
10775 (mi_cmd_list_features, mi_cmd_list_target_features)
10776 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
10777 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
10778 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
10779 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
10780 (mi_cmd_trace_frame_collected): Constify 'command'
10781 parameter.
10782 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
10783 'command' parameter.
10784
67cb5b2d
PA
107852017-04-05 Pedro Alves <palves@redhat.com>
10786
10787 * ada-lang.c (ada_completer_word_break_characters): Now a const
10788 array.
10789 (ada_get_gdb_completer_word_break_characters): Constify.
10790 * completer.c (gdb_completer_command_word_break_characters)
10791 (gdb_completer_file_name_break_characters)
10792 (gdb_completer_quote_characters): Now const arrays.
10793 (get_gdb_completer_quote_characters): Constify.
10794 (set_rl_completer_word_break_characters): New function.
10795 (set_gdb_completion_word_break_characters)
10796 (complete_line_internal): Use it.
10797 * completer.h (get_gdb_completer_quote_characters): Constify.
10798 (set_rl_completer_word_break_characters): Declare.
10799 * f-lang.c (f_word_break_characters): Constify.
10800 * language.c (default_word_break_characters): Constify.
10801 * language.h (language_defn::la_word_break_characters): Constify.
10802 (default_word_break_characters): Constify.
10803 * top.c (init_main): Use set_rl_completer_word_break_characters.
10804
7a114964
PA
108052017-04-05 Pedro Alves <palves@redhat.com>
10806
10807 * aix-thread.c (aix_thread_pid_to_str)
10808 (aix_thread_extra_thread_info): Constify.
10809 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
10810 * bsd-uthread.c (bsd_uthread_extra_thread_info)
10811 (bsd_uthread_pid_to_str): Constify.
10812 * corelow.c (core_pid_to_str): Constify.
10813 * darwin-nat.c (darwin_pid_to_str): Constify.
10814 * fbsd-nat.c (fbsd_pid_to_str): Constify.
10815 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
10816 Constify.
10817 * gnu-nat.c (gnu_pid_to_str): Constify.
10818 * go32-nat.c (go32_pid_to_str): Constify.
10819 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
10820 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
10821 * inferior.c (inferior_pid_to_str): Constify.
10822 * linux-nat.c (linux_nat_pid_to_str): Constify.
10823 * linux-tdep.c (linux_core_pid_to_str): Constify.
10824 * linux-thread-db.c (thread_db_pid_to_str)
10825 (thread_db_extra_thread_info): Constify.
10826 * nto-tdep.c (nto_extra_thread_info): Constify.
10827 * nto-tdep.h (nto_extra_thread_info): Constify.
10828 * obsd-nat.c (obsd_pid_to_str): Constify.
10829 * procfs.c (procfs_pid_to_str): Constify.
10830 * ravenscar-thread.c (ravenscar_extra_thread_info)
10831 (ravenscar_pid_to_str): Constify.
10832 * remote-sim.c (gdbsim_pid_to_str): Constify.
10833 * remote.c (remote_threads_extra_info, remote_pid_to_str):
10834 Constify.
10835 * sol-thread.c (solaris_pid_to_str): Constify.
10836 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
10837 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
10838 * target.c (default_pid_to_str, target_pid_to_str)
10839 (normal_pid_to_str, default_pid_to_str): Constify.
10840 * target.h (target_ops::to_pid_to_str)
10841 (target_ops::to_extra_thread_info): Constify.
10842 (target_pid_to_str, normal_pid_to_str): Constify.
10843 * windows-nat.c (windows_pid_to_str): Constify.
10844 * gdbarch.sh (core_pid_to_str): Constify.
10845 * target-delegates.c: Regenerate.
10846 * gdbarch.h, gdbarch.c: Regenerate.
10847
69bbf465
PA
108482017-04-05 Pedro Alves <palves@redhat.com>
10849
10850 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
10851 the memory of the temporary warning_pre_print override.
10852 * utils.c (warning_pre_print): Constify.
10853 * utils.h (warning_pre_print): Constify.
10854
be47f9e8
PA
108552017-04-05 Pedro Alves <palves@redhat.com>
10856
10857 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
10858 (shell_command): New function.
10859 (make_command): Use std::string.
10860 (init_cli_cmds): Register shell_command instead of shell_escape.
10861
bde6261a
PA
108622017-04-05 Pedro Alves <palves@redhat.com>
10863
10864 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
10865 * tracepoint.c (default_collect): Don't initialize.
10866
b38ef47f
PA
108672017-04-05 Pedro Alves <palves@redhat.com>
10868
10869 * macroexp.c (macro_buffer::shared): Now a bool.
10870 (init_buffer): Update.
10871 (init_shared_buffer): Constify 'addr' parameter.
10872 (substitute_args, expand, macro_expand, macro_expand_next): Remove
10873 casts.
10874
f995bbe8
PA
108752017-04-05 Pedro Alves <palves@redhat.com>
10876
10877 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
10878 * disasm.c (set_disassembler_options): Constify local.
10879 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
10880
4a596fe2
SDJ
108812017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
10882
10883 PR gdb/21352
10884 * tracefile.c (tsave_command): Fix argument parsing for '-r'
10885 option.
10886
2cad08ea
YQ
108872017-04-05 Yao Qi <yao.qi@linaro.org>
10888
10889 * frame.c (frame_unwind_register_unsigned): Call
10890 frame_unwind_register_value.
10891
55a98976
YQ
108922017-04-05 Yao Qi <yao.qi@linaro.org>
10893
10894 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
10895 Use gdb_test_multiple, and don't match anchor.
10896
4ac40124
PA
108972017-04-05 Pedro Alves <palves@redhat.com>
10898
10899 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
10900 (Write After Approval): Remove Simon Marchi.
10901
c053b654
PA
109022017-04-05 Pedro Alves <palves@redhat.com>
10903
10904 * common/gdb_optional.h (optional::optional): Make constexpr and
10905 initialize m_dummy.
10906
4c7bf4f9
JB
109072017-04-04 John Baldwin <jhb@FreeBSD.org>
10908
10909 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10910 (amd64fbsd_jmp_buf_reg_offset): Remove.
10911 (amd64fbsd_supply_uthread): Remove function.
10912 (amd64fbsd_collect_uthread): Remove function.
10913 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
10914 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
10915 (x86_64-*-freebsd*): Remove bsd-uthread.o.
10916 (fbsd-nat.c): Update comment.
10917 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10918 (i386fbsd_jmp_buf_reg_offset): Remove.
10919 (i386fbsd_supply_uthread): Remove function.
10920 (i386fbsd_collect_uthread): Remove function.
10921 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
10922
1e1a8bef
JB
109232017-04-04 John Baldwin <jhb@FreeBSD.org>
10924
10925 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
10926 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
10927 * NEWS: Mention that support for FreeBSD/alpha was removed.
10928 * alpha-fbsd-tdep.c: Delete file.
10929 * config/alpha/fbsd.mh: Delete file.
10930 * configure.host: Delete alpha*-*-freebsd* and
10931 alpha*-*-kfreebsd*-gnu.
10932 * configure.tgt: Delete alpha*-*-freebsd* and
10933 alpha*-*-kfreebsd*-gnu.
10934
49907934
JB
109352017-04-04 John Baldwin <jhb@FreeBSD.org>
10936
10937 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
10938 amd64bsd_store_inferior_registers): Use ptid from regcache.
10939
6f77053d
PA
109402017-04-04 Pedro Alves <palves@redhat.com>
10941
10942 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
10943 data fields, make them private and add "m_" prefixes.
10944 (lnp_state_machine::lnp_state_machine): New ctor.
10945 (record_line, check_line_address, handle_set_discriminator)
10946 (handle_set_address, handle_advance_pc, handle_special_opcode)
10947 (handle_advance_line, handle_set_file, handle_negate_stmt)
10948 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
10949 (end_sequence, advance_line): New methods.
10950 (m_gdbarch, m_record_lines_p): New fields.
10951 (lnp_reader_state): Delete.
10952 (dwarf_record_line): Rename to ...
10953 (lnp_state_machine::record_line): ... adjust.
10954 (init_lnp_state_machine): Delete.
10955 (lnp_state_machine::lnp_state_machine): New.
10956 (check_line_address): Rename to ...
10957 (lnp_state_machine::check_line_address): This.
10958 (dwarf_decode_lines_1): Remove reference to "reader_state".
10959 Adjust lnp_state_machine having a non-default ctor. Use bool.
10960 State machine internal state manipulation moved to
10961 lnp_state_machine methods.
10962
9c541725
PA
109632017-04-04 Pedro Alves <palves@redhat.com>
10964
10965 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10966 unittests/offset-type-selftests.c.
10967 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
10968 * common/offset-type.h: New file.
10969 * common/preprocessor.h: New file.
10970 * common/traits.h: New file.
10971 * common/valid-expr.h: New file.
10972 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
10973 sect_offset and cu_offset strong typedefs throughout.
10974 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
10975 typedefs throughout.
10976 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
10977 sect_offset and cu_offset strong typedefs throughout.
10978 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
10979 typedefs throughout.
10980 * gdbtypes.h: Include "common/offset-type.h".
10981 (cu_offset): Now an offset type (strong typedef) instead of a
10982 struct.
10983 (sect_offset): Likewise.
10984 (union call_site_parameter_u): Rename "param_offset" field to
10985 "param_cu_off".
10986 * unittests/offset-type-selftests.c: New file.
10987
ecfb656c
PA
109882017-04-04 Pedro Alves <palves@redhat.com>
10989
10990 * common/underlying.h: New file.
10991 * dwarf2read.c: Include "common/gdb_optional.h" and
10992 "common/underlying.h".
10993 (dir_index, file_name_index): New types.
10994 (file_entry): Use them.
10995 (file_entry::include): Use to_underlying.
10996 (line_header::add_file_name): Use dir_index.
10997 (read_formatted_entries): Use gdb::optional. Read form before
10998 writting to file_entry.
10999 (dwarf_decode_line_header): Use dir_index.
11000 (lnp_state_machine::current_file): Use to_underlying.
11001 (lnp_state_machine::file): Change type to file_name_index.
11002 (dwarf_record_line): Use to_underlying.
11003 (init_lnp_state_machine): Use file_name_index.
11004 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11005
d194f1fe
PA
110062017-04-04 Pedro Alves <palves@redhat.com>
11007
11008 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11009 operator bool, has_value and get methods.
11010
fff8551c
PA
110112017-04-04 Pedro Alves <palves@redhat.com>
11012
11013 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11014 fields.
11015 (line_header): Initialize all data fields. Change type of
11016 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11017 Change type of include_dirs to std::vector<const char *>. Remove
11018 num_include_dirs, include_dirs_size. Change type of file_names to
11019 std::vector<file_entry>. Remove num_file_names, file_names_size.
11020 (line_header::line_header): New.
11021 (line_header::add_include_dir, line_header::add_file_name): New
11022 methods.
11023 (line_header::include_dir_at): Remove NULL check.
11024 (line_header::file_name_at): Add const overload.
11025 (line_header_up): New unique_ptr typedef.
11026 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11027 std::vector. Remove free_line_header call.
11028 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11029 free_line_header call.
11030 (free_cu_line_header): Delete.
11031 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11032 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11033 Adjust to use std::vector.
11034 (free_line_header): Delete.
11035 (free_line_header_voidp): Use delete.
11036 (add_include_dir): Replace with ...
11037 (line_header::add_include_dir): ... this method. Use std::vector.
11038 (add_file_name): Replace with ...
11039 (line_header::add_file_name): ... this method. Use std::vector.
11040 (add_include_dir_stub): Delete.
11041 (read_formatted_entries): Remove memset.
11042 (dwarf_decode_line_header): Return a line_header_up instead of a
11043 raw pointer. Remove cleanup handling. Pass lambdas to
11044 read_formatted_entries. Adjust to use line_header methods.
11045 (dwarf_decode_lines_1): Adjust to use line_header methods.
11046 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11047 use std::vector.
11048
d62a8ae2
SM
110492017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11050
11051 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11052 instead of struct ptid.
11053
db3a1dc7
AH
110542017-05-04 Alan Hayward <alan.hayward@arm.com>
11055
11056 * frame.c (get_frame_register_bytes): Unwind using value.
11057 (put_frame_register_bytes): Likewise.
11058
b1b45502
IB
110592017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11060
11061 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11062 aggregate-like.
11063
ec13808e
JK
110642017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11065
11066 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11067
12316564
YQ
110682017-03-29 Yao Qi <yao.qi@linaro.org>
11069
11070 * gdbthread.h (struct thread_info): Declare constructor and
11071 destructor. Add some in-class member initializers.
11072 * thread.c (free_thread): Remove.
11073 (init_thread_list): Call delete instead of free_thread.
11074 (new_thread): Call thread_info constructor.
11075 (thread_info::thread_info): New function.
11076 (thread_info::~thread_info): New function.
11077 (delete_thread_1): Call delete instead of free_thread.
11078 (make_cleanup_restore_current_thread): Move tp and frame to
11079 inner block.
11080
fe5f7374
AK
110812017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11082
11083 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11084 (arc_skip_prologue): Likewise.
11085 (arc_make_frame_cache): Likewise.
11086 (arc_pv_get_operand): New function.
11087 (arc_is_in_prologue): Likewise.
11088 (arc_analyze_prologue): Likewise.
11089 (arc_print_frame_cache): Likewise.
11090 (MAX_PROLOGUE_LENGTH): New constant.
11091
eea78757
AK
110922017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11093
11094 * configure.tgt: Add arc-insn.o.
11095 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11096 (dump_arc_instruction_command): New function.
11097 (arc_fprintf_disasm): Likewise.
11098 (arc_disassemble_info): Likewise.
11099 (arc_insn_get_operand_value): Likewise.
11100 (arc_insn_get_operand_value_signed): Likewise.
11101 (arc_insn_get_memory_base_reg): Likewise.
11102 (arc_insn_get_memory_offset): Likewise.
11103 (arc_insn_get_branch_target): Likewise.
11104 (arc_insn_dump): Likewise.
11105 (arc_insn_get_linear_next_pc): Likewise.
11106 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11107 (arc_disassemble_info): Likewise.
11108 (arc_insn_get_branch_target): Likewise.
11109 (arc_insn_get_linear_next_pc): Likewise.
11110 * NEWS: Mention new "maint print arc arc-instruction".
11111
3be78afd
AK
111122017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11113
11114 * arc-tdep (maintenance_print_arc_list): New variable.
11115 (maintenance_print_arc_command): New function.
11116
296ec4fa
AK
111172017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11118
11119 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11120 Add "limm" and "reserved".
11121 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11122 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11123 * arc-tdep.h (arc_regnum): Likewise.
11124
f74f865e
MF
111252017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11126
11127 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11128 for THREADPTR register.
11129 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11130 register.
11131 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11132 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11133 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11134
0d0bf81a
MF
111352017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11136
11137 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11138 registers above gdbarch_num_regs (gdbarch) as privileged in
11139 call0 ABI.
11140
0ce4291e
MF
111412017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11142
11143 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11144 for a single specified register or for all registers in
11145 a0_base..a0_base + C0_NREGS range.
11146 (supply_gregset_reg): Call regcache_raw_supply for a single
11147 specified register or for all registers in a0_base..a0_base +
11148 C0_NREGS range.
11149
c56054f9
MF
111502017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11151
11152 * arch/xtensa.h (C0_NREGS): Add definition.
11153 * xtensa-tdep.c (C0_NREGS): Remove definition.
11154
a4398628
MF
111552017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11156
11157 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11158 Drop xtensa_default_isa initialization.
11159 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11160
8c43009f
PA
111612017-03-27 Pedro Alves <palves@redhat.com>
11162
11163 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11164 (file_entry::include_dir): New method.
11165 (line_header::include_dir_at, line_header::file_name_at): New
11166 methods.
11167 (setup_type_unit_groups, setup_type_unit_groups)
11168 (psymtab_include_file_name): Simplify using the new methods.
11169 (lnp_state_machine) <the_line_header>: New field.
11170 <file>: Add comment.
11171 (lnp_state_machine::current_file): New method.
11172 (dwarf_record_line): Simplify using the new methods.
11173 (init_lnp_state_machine): Initialize the "the_line_header" field.
11174 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11175 Simplify using the new methods.
11176
a7e80b9e
PA
111772017-03-27 Pedro Alves <palves@redhat.com>
11178
11179 * cp-name-parser.y (make_empty): Delete.
11180 (demangler_special, nested_name, ptr_operator, array_indicator)
11181 (direct_declarator, declarator_1): Use fill_comp instead of
11182 make_empty.
11183
21047726
PA
111842017-03-27 Pedro Alves <palves@redhat.com>
11185
11186 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11187 to ATTRIBUTE_PRINTF.
11188 * solib-target.c (library_list_start_list): Print "string" not
11189 "version".
11190 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11191 gdb_xml_error call.
11192
d721ba37
PA
111932017-03-27 Pedro Alves <palves@redhat.com>
11194
11195 * dwarf2read.c (struct file_and_directory): New.
11196 (dwarf2_get_dwz_file): Adjust to use std::string.
11197 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11198 (find_file_and_directory): Adjust to return a file_and_directory
11199 object.
11200 (read_file_scope): Adjust to use file_and_directory. Remove
11201 make_cleanup/do_cleanups calls.
11202 (open_and_init_dwp_file): Adjust to use std::string. Remove
11203 make_cleanup/do_cleanups calls.
11204 * python/python.c (do_start_initialization): Adjust to ldirname
11205 returning a std::string.
11206 * utils.c (ldirname): Now returns a std::string.
11207 * utils.h (ldirname): Change return type to std::string.
11208 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11209 returning a std::string.
11210 * xml-tdesc.c (file_read_description_xml): Likewise.
11211
ed771251
AH
112122017-03-24 Alan Hayward <alan.hayward@arm.com>
11213
11214 * regcache.c (regcache_debug_print_register): New function.
11215 * regcache.h (regcache_debug_print_register): New declaration.
11216 * target.c (debug_print_register): Remove.
11217 (target_fetch_registers): Call regcache_debug_print_register.
11218 (target_store_registers): Likewise.
11219
568c1b9f
PB
112202017-03-24 Pádraig Brady <pbrady@fb.com>
11221
11222 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11223 reference beyond the 'lh->include_dirs' array before accessing to
11224 it.
11225 (psymtab_include_file_name): Likewise.
11226 (dwarf_decode_lines_1): Likewise.
11227 (dwarf_decode_lines): Likewise.
11228 (file_file_name): Likewise.
11229
3e00d44f
SM
112302017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11231
11232 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11233 inferior_ptid.
11234 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11235 ps_lsetfpregs): Likewise.
11236 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11237 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11238 ps_lsetfpregs): Likewise.
11239 * target.c (target_fetch_registers, target_store_registers):
11240 Remove asserts.
11241
077ae656
AH
112422017-03-23 Alan Hayward <alan.hayward@arm.com>
11243
11244 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11245
1e2b521d
YQ
112462017-03-23 Yao Qi <yao.qi@linaro.org>
11247
11248 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11249 (_initialize_aarch64_tdep): Register it.
11250 (aarch64_record_load_store): Handle PRFM instruction.
11251 (aarch64_process_record_test): New function.
11252
33877125
YQ
112532017-03-23 Yao Qi <yao.qi@linaro.org>
11254
11255 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11256 indentation.
11257
a0eef940
YQ
112582017-03-23 Yao Qi <yao.qi@linaro.org>
11259
11260 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11261
3f2a3564
PR
112622017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11263
11264 python/python.c (do_start_initialization): Fix memory leak.
11265
b67aeab0
SM
112662017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11267
11268 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11269 using get_ptrace_pid.
11270 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11271 inferior_ptid.
11272 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11273 inferior_ptid instead of pid.
11274
ffdbe864
YQ
112752017-03-22 Yao Qi <yao.qi@linaro.org>
11276
11277 * aarch64-tdep.c: Wrap locally used classes in anonymous
11278 namespace.
11279 * arm-tdep.c: Likewise.
11280 * linespec.c: Likewise.
11281 * ui-out.c: Likewise.
11282
9d736fbf
JG
112832017-03-22 Jonah Graham <jonah@kichwacoders.com>
11284
11285 PR gdb/19637
11286 * python/lib/gdb/printer/bound_registers.py: Import sys.
11287
3de88e9a
SM
112882017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11289
11290 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11291 windows_thread_info parameter and use it instead of
11292 current_thread.
11293 (windows_fetch_inferior_registers): Don't set current_thread,
11294 pass the thread to do_windows_fetch_inferior_registers. Use
11295 ptid from regcache instead of inferior_ptid.
11296 (do_windows_store_inferior_registers): Add windows_thread_info
11297 parameter and use it instead of current_thread.
11298 (windows_store_inferior_registers): Don't set current_thread,
11299 pass the thread to do_windows_store_inferior_registers. Use
11300 ptid from regcache instead of inferior_ptid.
11301
0e7b8f61
SM
113022017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11303
11304 * ser-mingw.c (ser_windows_raw): Remove reference to
11305 struct serial::current_timeout.
11306
5badf10a
IR
113072017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11308
11309 PR tdep/20928
11310 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11311 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11312 (sparc64_fsr_type): Fix %fsr decoding.
11313
cee59b3f
TW
113142017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11315
11316 * python/py-record-btrace.c (btpy_insn_data): Change return type
11317 for Python 2.
11318
639a9038
SM
113192017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11320
11321 * spu-linux-nat.c (spu_fetch_inferior_registers,
11322 spu_store_inferior_registers): Use ptid from regcache, set and
11323 restore inferior_ptid.
11324 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11325 Likewise.
11326
bcc0c096
SM
113272017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11328
11329 * i386-linux-nat.c (fetch_register, store_register,
11330 i386_linux_fetch_inferior_registers,
11331 i386_linux_store_inferior_registers): Use ptid from regcache.
11332 * ia64-linux-nat.c (ia64_linux_fetch_register,
11333 ia64_linux_store_register): Likewise.
11334 * inf-ptrace.c (inf_ptrace_fetch_register,
11335 inf_ptrace_store_register): Likewise.
11336 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11337 m32r_linux_store_inferior_registers): Likewise.
11338 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11339 m68kbsd_store_inferior_registers): Likewise.
11340 * m68k-linux-nat.c (fetch_register, store_register,
11341 m68k_linux_fetch_inferior_registers,
11342 m68k_linux_store_inferior_registers): Likewise.
11343 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11344 m88kbsd_store_inferior_registers): Likewise.
11345 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11346 mips_fbsd_store_inferior_registers): Likewise.
11347 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11348 mips64_linux_regsets_store_registers): Likewise.
11349 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11350 mipsnbsd_store_inferior_registers): Likewise.
11351 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11352 mips64obsd_store_inferior_registers): Likewise.
11353 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11354 Likewise.
11355 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11356 ppcfbsd_store_inferior_registers): Likewise.
11357 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11358 ppc_linux_store_inferior_registers): Likewise.
11359 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11360 ppcnbsd_store_inferior_registers): Likewise.
11361 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11362 ppcobsd_store_registers): Likewise.
11363 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11364 Likewise.
11365 * ravenscar-thread.c (ravenscar_fetch_registers,
11366 ravenscar_store_registers, ravenscar_prepare_to_store):
11367 Likewise.
11368 * record-btrace.c (record_btrace_fetch_registers,
11369 record_btrace_store_registers, record_btrace_prepare_to_store):
11370 Likewise.
11371 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11372 Lookup inferior using ptid from regcache, instead of
11373 current_inferior.
11374 * remote.c (remote_fetch_registers, remote_store_registers): Use
11375 ptid from regcache.
11376 * rs6000-nat.c (fetch_register, store_register): Likewise.
11377 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11378 s390_linux_store_inferior_registers): Likewise.
11379 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11380 shnbsd_store_inferior_registers): Likewise.
11381 * sol-thread.c (sol_thread_fetch_registers,
11382 sol_thread_store_registers): Likewise.
11383 * sparc-nat.c (sparc_fetch_inferior_registers,
11384 sparc_store_inferior_registers): Likewise.
11385 * tilegx-linux-nat.c (fetch_inferior_registers,
11386 store_inferior_registers): Likewise.
11387 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11388 vaxbsd_store_inferior_registers): Likewise.
11389 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11390 store_xtregs): Likewise.
11391
c0f55cc6
AV
113922017-03-20 Artemiy Volkov <artemiyv@acm.org>
11393
11394 PR gdb/14441
11395 * NEWS: Mention support for rvalue references in GDB and python.
11396 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11397 supports both lvalue and rvalue references.
11398
15c0a2a9
AV
113992017-03-20 Artemiy Volkov <artemiyv@acm.org>
11400
11401 PR gdb/14441
11402 * gdbtypes.c (rank_one_type): Implement overloading
11403 resolution rules regarding rvalue references.
11404
aa006118
AV
114052017-03-20 Artemiy Volkov <artemiyv@acm.org>
11406
11407 PR gdb/14441
11408 * aarch64-tdep.c (aarch64_type_align)
11409 (aarch64_extract_return_value, aarch64_store_return_value): Change
11410 lvalue reference type checks to general reference type checks.
11411 * amd64-tdep.c (amd64_classify): Likewise.
11412 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11413 Likewise.
11414 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11415 (arm_store_return_value): Likewise.
11416 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11417 * c-typeprint.c (c_print_type): Likewise.
11418 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11419 (cplus_number_of_children, cplus_describe_child): Likewise.
11420 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11421 * completer.c (expression_completer): Likewise.
11422 * cp-support.c (make_symbol_overload_list_adl_namespace):
11423 Likewise.
11424 * darwin-nat-info.c (info_mach_region_command): Likewise.
11425 * dwarf2loc.c (entry_data_value_coerce_ref)
11426 (value_of_dwarf_reg_entry): Likewise.
11427 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11428 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11429 Likewise.
11430 * findvar.c (extract_typed_address, store_typed_address):
11431 Likewise.
11432 * gdbtypes.c (rank_one_type): Likewise.
11433 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11434 * infcall.c (value_arg_coerce): Likewise.
11435 * language.c (pointer_type): Likewise.
11436 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11437 Likewise.
11438 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11439 * mn10300-tdep.c (mn10300_type_align): Likewise.
11440 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11441 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11442 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11443 Likewise.
11444 * printcmd.c (print_formatted, x_command): Likewise.
11445 * python/py-type.c (typy_get_composite, typy_template_argument):
11446 Likewise.
11447 * python/py-value.c (valpy_referenced_value)
11448 (valpy_get_dynamic_type, value_has_field): Likewise.
11449 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11450 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11451 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11452 * spu-tdep.c (spu_scalar_value_p): Likewise.
11453 * symtab.c (lookup_symbol_aux): Likewise.
11454 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11455 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11456 Likewise.
11457 * valops.c (value_cast_pointers, value_cast)
11458 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11459 (value_struct_elt, value_struct_elt_bitpos)
11460 (value_find_oload_method_list, find_overload_match)
11461 (value_rtti_indirect_type): Likewise.
11462 * valprint.c (val_print_scalar_type_p, generic_val_print):
11463 Likewise.
11464 * value.c (value_actual_type, value_as_address, unpack_long)
11465 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11466 (coerce_ref): Likewise.
11467 * varobj.c (varobj_get_value_type): Likewise.
11468
3fcf899d
AV
114692017-03-20 Artemiy Volkov <artemiyv@acm.org>
11470
11471 PR gdb/14441
11472 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11473 table of constants.
11474 * python/lib/gdb/command/explore.py: Support exploring values
11475 of rvalue reference types.
11476 * python/lib/gdb/types.py: Implement get_basic_type() for
11477 rvalue reference types.
11478 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11479 constant.
11480 * python/py-value.c (valpy_getitem): Add an rvalue reference
11481 check.
11482 (valpy_reference_value): Add new parameter "refcode".
11483 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11484 New wrappers for valpy_reference_value().
11485 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11486 (gdbpy_invoke_xmethod): Likewise.
11487
4297a3f0
AV
114882017-03-20 Artemiy Volkov <artemiyv@acm.org>
11489
11490 PR gdb/14441
11491 * dwarf2read.c (process_die, read_type_die_1): Handle the
11492 DW_TAG_rvalue_reference_type DIE.
11493 (read_tag_reference_type): Add new parameter "refcode".
11494
e1cb3213
AV
114952017-03-20 Artemiy Volkov <artemiyv@acm.org>
11496
11497 PR gdb/14441
11498 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11499 (c_type_print_modifier, c_type_print_varspec_suffix)
11500 (c_type_print_base): Support printing rvalue reference types.
11501 * c-valprint.c (c_val_print, c_value_print): Support printing
11502 rvalue reference values.
11503
e4347c89
AV
115042017-03-20 Artemiy Volkov <artemiyv@acm.org>
11505
11506 PR gdb/14441
11507 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11508 typename.
11509 * cp-support.c (replace_typedefs): Handle
11510 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11511 * python/py-type.c (typy_lookup_type): Likewise.
11512
53cc15f5
AV
115132017-03-20 Artemiy Volkov <artemiyv@acm.org>
11514
11515 PR gdb/14441
11516 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11517 * parse.c (insert_type): Change assert statement.
11518 (follow_types): Handle rvalue reference types.
11519 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11520 constant.
11521
a65cfae5
AV
115222017-03-20 Artemiy Volkov <artemiyv@acm.org>
11523
11524 PR gdb/14441
11525 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11526 value_ref() interface.
11527 * c-valprint.c (c_value_print): Likewise.
11528 * infcall.c (value_arg_coerce): Likewise.
11529 * python/py-value.c (valpy_reference_value): Likewise.
11530 * valops.c (value_cast, value_reinterpret_cast)
11531 (value_dynamic_cast, typecmp): Likewise.
11532 (value_ref): Parameterize by kind of return value reference type.
11533 * value.h (value_ref): Add new parameter "refcode".
11534
3b224330
AV
115352017-03-20 Artemiy Volkov <artemiyv@acm.org>
11536
11537 PR gdb/14441
11538 * dwarf2read.c (read_tag_reference_type): Use
11539 lookup_lvalue_reference_type() instead of lookup_reference_type().
11540 * eval.c (evaluate_subexp_standard): Likewise.
11541 * f-exp.y: Likewise.
11542 * gdbtypes.c (make_reference_type, lookup_reference_type):
11543 Generalize with rvalue reference types.
11544 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11545 convenience wrappers for lookup_reference_type().
11546 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11547 reference kind parameter.
11548 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11549 wrappers for lookup_reference_type().
11550 * guile/scm-type.c (gdbscm_type_reference): Use
11551 lookup_lvalue_reference_type() instead of lookup_reference_type().
11552 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11553 * parse.c (follow_types): Likewise.
11554 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11555 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11556 Likewise.
11557 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11558 (gdbpy_invoke_xmethod): Likewise.
11559 * stabsread.c: Provide extra argument to make_reference_type()
11560 call.
11561 * valops.c (value_ref, value_rtti_indirect_type): Use
11562 lookup_lvalue_reference_type() instead of lookup_reference_type().
11563
f9aeb8d4
AV
115642017-03-20 Artemiy Volkov <artemiyv@acm.org>
11565
11566 PR gdb/14441
11567 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11568 (TYPE_IS_REFERENCE): New macro.
11569 (struct type): Add rvalue_reference_type field.
11570 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11571
51457a05
MAL
115722017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11573
11574 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11575 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11576 New function definition.
11577 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11578 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11579 New function declaration.
11580 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11581 * mi/mi-interp.h: New file.
11582 * solib.c (info_sharedlibrary_command): Replace for loop with
11583 ALL_SO_LIBS macro
11584 * solib.h (update_solib_list): New function declaration.
11585 (so_list_head): Move macro.
11586 * solist.h (ALL_SO_LIBS): New macro.
11587
e696b3ad
MAL
115882017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11589
11590 * infcmd.c (post_create_inferior): Remove unused argument in
11591 call to solib_add.
11592 * remote.c (remote_start_remote): Likewise.
11593 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11594 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11595 (enable_break): Likewise.
11596 * solib.c (update_solib_list): Remove unused target argument
11597 and its documentation.
11598 (solib_add): Remove unused target argument. Remove unused
11599 argument in call to update_solib_list.
11600 (info_sharedlibrary_command): Remove unused argument in call
11601 to update_solib_list.
11602 (sharedlibrary_command): Remove unused argument in call to
11603 solib_add.
11604 (handle_solib_event): Likewise.
11605 (reload_shared_libraries): Likewise.
11606 * solib.h (solib_add): Remove unused target argument.
11607
dcb84eda
AA
116082017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11609
11610 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11611 (s390_displaced_step_fixup): Cover relative branches with the
11612 default fixup handling. This fixes lack of support for some
11613 relative branch instructions.
11614
d9cb6cdc
SM
116152017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11616
11617 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11618 ptid from regcache.
11619
1afaf9f4
SM
116202017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11621
11622 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11623 i386_darwin_store_inferior_registers): Use ptid from regcache.
11624
aac12e24
SM
116252017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11626
11627 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11628 i386bsd_store_inferior_registers): Use ptid from regcache.
11629
bbe1eef1
SM
116302017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11631
11632 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11633 hppaobsd_store_registers): Use ptid from regcache.
11634
10799020
SM
116352017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11636
11637 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11638 hppanbsd_store_registers): Use ptid from regcache.
11639
00204cf7
SM
116402017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11641
11642 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11643 from regcache. Use get_ptrace_pid.
11644
11a33714
SM
116452017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11646
11647 * corelow.c (get_core_register_section): Use ptid from regcache,
11648 update doc.
11649
317cd492
SM
116502017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11651
11652 * bsd-uthread.c (bsd_uthread_fetch_registers,
11653 bsd_uthread_store_registers): Use ptid from regcache, set and
11654 restore inferior_ptid.
11655
9ac8a7c2
SM
116562017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11657
11658 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11659 fetch_fp_regs, store_register, store_regs, store_fp_register,
11660 store_fp_regs): Use ptid from regcache.
11661
4ac4bb6a
SM
116622017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11663
11664 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11665 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11666 store_vfp_regs): Use ptid from regcache.
11667
9bcbdca8
PA
116682017-03-17 Pedro Alves <palves@redhat.com>
11669
11670 PR remote/21188
11671 * ser-base.c (ser_base_wait_for): Add comment.
11672 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11673 version.
11674 * ser-unix.c (hardwire_raw): Remove reference to
11675 scb->current_timeout.
11676 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11677 (hardwire_ops): Install ser_base_readchar instead of
11678 hardwire_readchar.
11679 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11680 Remove fields.
11681
7503099f
JG
116822017-03-17 Jonah Graham <jonah@kichwacoders.com>
11683
11684 PR gdb/19637
11685 * python/lib/gdb/printer/bound_registers.py: Add support for
11686 Python 3.
11687
7942e96e
AA
116882017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11689
11690 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11691 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11692 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11693 byte_offset to subobj_byte_offset. Fix the handling of
11694 DWARF_VALUE_STACK on big-endian targets when coming via an
11695 implicit pointer.
11696 (dwarf2_evaluate_loc_desc): Adjust call to
11697 dwarf2_evaluate_loc_desc_full.
11698 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11699 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11700
ba14f379
YQ
117012017-03-16 Yao Qi <yao.qi@linaro.org>
11702
11703 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11704 and REVSH instructions.
11705
b121eeb9
YQ
117062017-03-16 Yao Qi <yao.qi@linaro.org>
11707
11708 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11709 (arm_record_test): Declare.
11710 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11711 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11712 align with the manual.
11713 (thumb_record_misc): Adjust the code order to align with the
11714 manual.
11715 (thumb2_record_decode_insn_handler): Fix instruction matching.
11716 (instruction_reader_thumb): New class.
11717 (arm_record_test): New function.
11718
728a7913
YQ
117192017-03-16 Yao Qi <yao.qi@linaro.org>
11720
11721 * arm-tdep.c (abstract_memory_reader): New class.
11722 (instruction_reader): New class.
11723 (extract_arm_insn): Add argument 'reader'. Callers updated.
11724 (decode_insn): Likewise.
11725
34b43320
DE
117262017-03-16 Doug Evans <dje@google.com>
11727
a7c0469f
DE
11728 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11729 member. Change type of TYPE member to SCM. All uses updated.
11730 (lsscm_make_lazy_string_smob): Add assert.
11731 (lsscm_make_lazy_string): Flag bad length values.
11732 (lsscm_elt_type): New function.
11733 (gdbscm_lazy_string_to_value): Rewrite to use
11734 lsscm_safe_lazy_string_to_value.
11735 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11736 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11737 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11738 in incoming type.
11739 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11740 * guile/scm-type.c (tyscm_scm_to_type): New function.
11741
117422017-03-15 Doug Evans <dje@google.com>
11743
34b43320
DE
11744 PR python/17728, python/18439, python/18779
11745 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11746 member. Change type of TYPE member to PyObject *. All uses updated.
11747 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11748 (gdbpy_create_lazy_string_object): Flag bad length values.
11749 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
11750 Handle typedefs in incoming type.
11751 (stpy_lazy_string_elt_type): New function.
11752 (gdbpy_extract_lazy_string): Call it.
11753 * python/py-value.c (valpy_lazy_string): Flag bad length values.
11754 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
11755 typedefs in incoming type.
11756
a3a5fecc
DE
117572017-03-16 Doug Evans <dje@google.com>
11758
11759 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11760 * guile/scm-type.c (tyscm_scm_to_type): New function.
11761
28f1c605
JW
117622017-03-16 Jiong Wang <jiong.wang@arm.com>
11763
11764 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
11765 "ULONGEST" for "skip".
11766
87c336f6
AA
117672017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11768
11769 PR gdb/21220
11770 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
11771 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
11772 (inf_ptrace_peek_poke): ...here. New function. Now also loop
11773 over ptrace peek/poke until end of buffer or error.
11774
cf81cf60
SM
117752017-03-14 Simon Marchi <simon.marchi@ericsson.com>
11776
11777 * parse.c (length_of_subexp): Make static.
11778 * parser-defs.h (length_of_subexp): Remove.
11779
a379284a
AA
117802017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11781
11782 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
11783 as well.
11784
8a6200ba
PA
117852017-03-14 Pedro Alves <palves@redhat.com>
11786
11787 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
11788 (main): Use std::unique_ptr. Remove calls to
11789 cp_demangled_name_parse_free.
11790
f79ec206
SM
117912017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11792
11793 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
11794 alphabsd_store_inferior_registers): Use regcache->ptid instead
11795 of inferior_ptid.
11796
edb5fb00
SM
117972017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11798
11799 * aix-thread.c (aix_thread_fetch_registers,
11800 aix_thread_store_registers): Use regcache->ptid instead of
11801 inferior_ptid.
11802
55119686
SM
118032017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11804
11805 * aarch64-linux-nat.c (fetch_gregs_from_thread,
11806 store_gregs_to_thread, fetch_fpregs_from_thread,
11807 store_fpregs_to_thread): Use regcache->ptid instead of
11808 inferior_ptid.
11809
6a06fbb7
SM
118102017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11811
11812 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
11813 amd64_linux_fetch_inferior_registers): Use regcache->ptid
11814 instead of inferior_ptid.
11815
c6386875
SM
118162017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11817
11818 * target.c (target_fetch_registers, target_store_registers): Add
11819 assert.
11820
ddaaf0fb
SM
118212017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11822
11823 * regcache.h (regcache_get_ptid): New function.
11824 * regcache.c (regcache_get_ptid): New function.
11825
b9da89d1 118262017-03-13 Mark Wielaard <mark@klomp.org>
11827
11828 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
11829
5f4d1085
KS
118302017-03-10 Keith Seitz <keiths@redhat.com>
11831
11832 PR c++/8218
11833 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
11834
c65d6b55
PA
118352017-03-08 Pedro Alves <palves@redhat.com>
11836
11837 PR gdb/18360
11838 * infrun.c (start_step_over, do_target_resume, resume)
11839 (restart_threads): Assert we're not resuming a thread that is
11840 meant to be stopped.
11841 (infrun_thread_stop_requested_callback): Delete.
11842 (infrun_thread_stop_requested): If the thread is internally
11843 stopped, queue a pending stop event and clear the thread's
11844 inline-frame state.
11845 (handle_stop_requested): New function.
11846 (handle_syscall_event, handle_inferior_event_1): Use
11847 handle_stop_requested.
11848 (handle_stop_requested): New function.
11849 (handle_signal_stop): Set the thread's stop_signal here instead of
11850 at caller.
11851 (finish_step_over): Clear step over info unconditionally.
11852 (handle_signal_stop): If the user had interrupted the event
11853 thread, consider the stop a random signal.
11854 (handle_signal_stop) <signal arrived while stepping over
11855 breakpoint>: Don't restart threads here.
11856 (stop_waiting): Don't clear step-over info here.
11857
15c22686
PA
118582017-03-08 Pedro Alves <palves@redhat.com>
11859
11860 PR 21206
11861 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
11862 goes to argument 2, not 1.
11863
6e5d74e7
PA
118642017-03-08 Pedro Alves <palves@redhat.com>
11865
11866 PR cli/21218
11867 * top.c (gdb_readline_wrapper): Avoid passing NULL to
11868 display_gdb_prompt.
11869 (command_line_input): Add comment.
11870
9753a2f6
PA
118712017-03-08 Pedro Alves <palves@redhat.com>
11872
11873 PR tui/21216
11874 * tui/tui-file.c (tui_file::write): New.
11875 * tui/tui-file.h (tui_file): Override "write".
11876 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
11877 factored out from ...
11878 (tui_puts): ... here.
11879 (tui_putc): Use them.
11880 (tui_write): New function.
11881 * tui/tui-io.h (tui_write): Declare.
11882
1672e0d9
SDJ
118832017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
11884
11885 * Makefile.in (SFILES): Replace "environ.c" with
11886 "common/environ.c".
11887 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
11888 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
11889 to...
11890 * common/environ.c: ... here.
11891 * environ.h: Moved to...
11892 * common/environ.h: ... here.
11893
f7bb4e3a
PB
118942017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11895
11896 * gdbarch.sh (pstring_ptr): New static function.
11897 (gdbarch_disassembler_options): Use it.
11898 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
11899 not valid_disassembler_option->name.
11900 * gdbarch.c: Regenerate.
11901
e45ced6c
PB
119022017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11903
11904 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
11905
5f6fd321
PA
119062017-03-07 Pedro Alves <palves@redhat.com>
11907
11908 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
11909
6dbb839a 119102017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
11911
11912 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
11913 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
11914 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 11915 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 11916
d274ecf4
SM
119172017-03-06 Simon Marchi <simon.marchi@ericsson.com>
11918
11919 * xtensa-linux-nat.c (fetch_gregs): Remove const.
11920
df97be55
SM
119212017-03-03 Simon Marchi <simon.marchi@ericsson.com>
11922
11923 * remote.c (remote_add_target_side_commands): Use range-based
11924 for loop.
11925
7d45f3df
YQ
119262017-03-03 Yao Qi <yao.qi@linaro.org>
11927
11928 PR gdb/21165
11929 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
11930 value is lazy.
11931 * valprint.c (common_val_print): Likewise.
11932
65b48a81
PB
119332017-02-28 Peter Bergner <bergner@vnet.ibm.com>
11934
11935 * NEWS: Mention new set/show disassembler-options commands.
11936 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
11937 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
11938 (prospective_options): New static variable.
11939 (gdb_disassembler::gdb_disassembler): Initialize
11940 m_di.disassembler_options.
11941 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
11942 (get_disassembler_options): New function.
11943 (set_disassembler_options): Likewise.
11944 (set_disassembler_options_sfunc): Likewise.
11945 (show_disassembler_options_sfunc): Likewise.
11946 (disassembler_options_completer): Likewise.
11947 (_initialize_disasm): Likewise.
11948 * disasm.h (get_disassembler_options): New prototype.
11949 (set_disassembler_options): Likewise.
11950 * gdbarch.sh (gdbarch_disassembler_options): New variable.
11951 (gdbarch_verify_disassembler_options): Likewise.
11952 * gdbarch.c: Regenerate.
11953 * gdbarch.h: Likewise.
11954 * arm-tdep.c (num_disassembly_options): Delete.
11955 (set_disassembly_style): Likewise.
11956 (arm_disassembler_options): New static variable.
11957 (set_disassembly_style_sfunc): Convert short style name into long
11958 option name. Call set_disassembler_options.
11959 (show_disassembly_style_sfunc): New function.
11960 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
11961 set_gdbarch_verify_disassembler_options.
11962 (_initialize_arm_tdep): Delete regnames variable and update callers.
11963 (arm_disassembler_options): Initialize.
11964 (disasm_options): New variable.
11965 (num_disassembly_options): Rename from this...
11966 (num_disassembly_styles): ...to this. Compute by scanning through
11967 disasm_options.
11968 (valid_disassembly_styles): Initialize using disasm_options.
11969 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
11970 set_arm_regname_option.
11971 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
11972 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
11973 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
11974 set_gdbarch_verify_disassembler_options.
11975 * s390-tdep.c (s390_disassembler_options): New static variable.
11976 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
11977 set_gdbarch_verify_disassembler_options.
11978
d538e36d
SM
119792017-02-27 Simon Marchi <simon.marchi@ericsson.com>
11980
11981 * remote.c (remote_add_target_side_condition): Remove "struct"
11982 keyword from range-based for loop.
11983
83621223
SM
119842017-02-27 Simon Marchi <simon.marchi@ericsson.com>
11985
11986 * remote.c (remote_add_target_side_condition): Use range-based
11987 for loop. Update comment.
11988
2123df0e
YQ
119892017-02-27 Yao Qi <yao.qi@linaro.org>
11990
11991 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
11992
8e368124
AH
119932017-02-26 Alan Hayward <alan.hayward@arm.com>
11994
11995 * regcache.c (regcache_raw_update): New function.
11996 (regcache_raw_read): Move code to regcache_raw_update.
11997 * regcache.h (regcache_raw_update): New declaration.
11998 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
11999
a49dd8dd
JK
120002017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12001
12002 * dwarf2read.c (create_debug_type_hash_table): Initialize
12003 header.signature and header.type_offset_in_tu.
12004
34e4bae9
PA
120052017-02-24 Pedro Alves <palves@redhat.com>
12006
12007 * symtab.c (make_file_symbol_completion_list_1): Use
12008 add_symtab_completions.
12009
b0e4b369
AH
120102017-02-24 Alan Hayward <alan.hayward@arm.com>
12011
12012 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12013
975c21ab
AH
120142017-02-24 Alan Hayward <alan.hayward@arm.com>
12015
12016 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12017 I386_MAX_REGISTER_SIZE.
12018 (i386_pseudo_register_write): Likewise.
12019 (i386_process_record): Likewise.
12020 * i387-tdep.c (i387_supply_xsave): Likewise.
12021 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12022 (store_register): Likewise.
12023
14bc53a8
PA
120242017-02-23 Pedro Alves <palves@redhat.com>
12025
12026 * ada-lang.c: Include "common/function-view.h".
12027 (ada_iterate_over_symbols): Adjust to use function_view as
12028 callback type.
12029 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12030 (ada_make_symbol_completion_list): Use a lambda.
12031 (ada_exc_search_name_matches): Delete.
12032 (name_matches_regex): New.
12033 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12034 * compile/compile-c-support.c: Include "common/function-view.h".
12035 (print_one_macro): Change prototype to accept a ui_file pointer.
12036 (write_macro_definitions): Use a lambda.
12037 * dwarf2read.c: Include "common/function-view.h".
12038 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12039 (dw2_expand_symtabs_matching): Adjust to use function_view as
12040 callback type.
12041 * language.h: Include "common/function-view.h".
12042 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12043 function_view as callback type.
12044 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12045 * linespec.c: Include "common/function-view.h".
12046 (collect_info::add_symbol): New method.
12047 (struct symbol_and_data_callback, iterate_inline_only, struct
12048 symbol_matcher_data, iterate_name_matcher): Delete.
12049 (iterate_over_all_matching_symtabs): Adjust to use function_view
12050 as callback type and lambdas.
12051 (iterate_over_file_blocks): Adjust to use function_view as
12052 callback type.
12053 (decode_compound_collector): Now a class with private fields.
12054 (decode_compound_collector::release_symbols): New method.
12055 (collect_one_symbol): Rename to...
12056 (decode_compound_collector::operator()): ... this and adjust.
12057 (lookup_prefix_sym): decode_compound_collector construction bits
12058 move to decode_compound_collector ctor. Pass the
12059 decode_compound_collector object directly as callback. Remove
12060 cleanups and use decode_compound_collector::release_symbols
12061 instead.
12062 (symtab_collector): Now a class with private fields.
12063 (symtab_collector::release_symtabs): New method.
12064 (add_symtabs_to_list): Rename to...
12065 (symtab_collector::operator()): ... this and adjust.
12066 (collect_symtabs_from_filename): symtab_collector construction
12067 bits move to symtab_collector ctor. Pass the symtab_collector
12068 object directly as callback. Remove cleanups and use
12069 symtab_collector::release_symtabs instead.
12070 (collect_symbols): Delete.
12071 (add_matching_symbols_to_info): Use lambdas.
12072 * macrocmd.c (print_macro_callback): Delete.
12073 (info_macro_command): Use a lambda.
12074 (info_macros_command): Pass print_macro_definition as callable
12075 directly.
12076 (print_one_macro): Remove 'ignore' parameter.
12077 (macro_list_command): Adjust.
12078 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12079 (macro_for_each_data::user_data): Delete field.
12080 (foreach_macro): Adjust to call the function_view.
12081 (macro_for_each): Adjust to use function_view as callback type.
12082 (foreach_macro_in_scope): Adjust to call the function_view.
12083 (macro_for_each_in_scope): Adjust to use function_view as callback
12084 type.
12085 * macrotab.h: Include "common/function-view.h".
12086 (macro_callback_fn): Declare a prototype instead of a pointer.
12087 Remove "user_data" parameter.
12088 (macro_for_each, macro_for_each_in_scope): Adjust to use
12089 function_view as callback type.
12090 * psymtab.c (partial_map_expand_apply)
12091 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12092 Adjust to use function_view as callback type and to return bool.
12093 (psym_expand_symtabs_matching): Adjust to use function_view as
12094 callback types.
12095 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12096 to use function_view as callback type and to return bool.
12097 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12098 callback types.
12099 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12100 as callback types.
12101 * symfile.h: Include "common/function-view.h".
12102 (expand_symtabs_file_matcher_ftype)
12103 (expand_symtabs_symbol_matcher_ftype)
12104 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12105 return bool.
12106 (quick_symbol_functions::map_symtabs_matching_filename)
12107 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12108 function_view as callback type and return bool.
12109 (expand_symtabs_matching): Adjust to use function_view as callback
12110 type.
12111 (maintenance_expand_name_matcher)
12112 (maintenance_expand_file_matcher): Delete.
12113 (maintenance_expand_symtabs): Use lambdas.
12114 * symtab.c (iterate_over_some_symtabs): Adjust to use
12115 function_view as callback types and return bool.
12116 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12117 of a cleanup.
12118 (lookup_symtab_callback): Delete.
12119 (lookup_symtab): Use a lambda.
12120 (iterate_over_symbols): Adjust to use function_view as callback
12121 type.
12122 (struct search_symbols_data, search_symbols_file_matches)
12123 (search_symbols_name_matches): Delete.
12124 (search_symbols): Use a pair of lambdas.
12125 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12126 (symtab_expansion_callback): Delete.
12127 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12128 * symtab.h: Include "common/function-view.h".
12129 (iterate_over_some_symtabs): Adjust to use function_view as
12130 callback type and return bool.
12131 (iterate_over_symtabs): Adjust to use function_view as callback
12132 type.
12133 (symbol_found_callback_ftype): Remove 'data' parameter and return
12134 bool.
12135 (iterate_over_symbols): Adjust to use function_view as callback
12136 type.
12137
07e253aa
PA
121382017-02-23 Pedro Alves <palves@redhat.com>
12139
12140 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12141 (%.o) <unittests/%.c>: New pattern.
12142 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12143 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12144 * common/function-view.h: New file.
12145 * unittests/function-view-selftests.c: New file.
12146 * configure: Regenerate.
12147
8eaf5320
SM
121482017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12149
12150 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12151 inferior_ptid.
12152 * go32-nat.c (go32_thread_alive): Likewise.
12153
38768751
YQ
121542017-02-23 Yao Qi <yao.qi@linaro.org>
12155
12156 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12157 delete.
12158
0a8beaba
YQ
121592017-02-23 Yao Qi <yao.qi@linaro.org>
12160
12161 * varobj.c (varobj_clear_saved_item): Use delete instead of
12162 xfree.
12163 (update_dynamic_varobj_children): Likewise.
12164
58fdfd2c
JK
121652017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12166
12167 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12168
1b90b139
SM
121692017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12170
12171 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12172 m_enum_value to 0 in default constructor.
12173
2039d74e
EBM
121742017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12175
12176 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12177 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12178 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12179 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12180 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12181 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12182 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12183 IS_STORE_CONDITIONAL_INSN.
12184
7814882a
JK
121852017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12186
12187 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12188
0ae60b63
JK
121892017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12190
12191 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12192
0224619f
JK
121932017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12194
12195 * dwarf2read.c (skip_one_die, read_attribute_value)
12196 (dwarf2_const_value_attr, dump_die_shallow)
12197 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12198 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12199
0af92d60
JK
122002017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12201
12202 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12203 (dwarf_parse_macro_header): Accept DWARF version 5.
12204 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12205
216f72a1
JK
122062017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12207
12208 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12209 DW_AT_GNU_*.
12210 * common/common-exceptions.h (enum errors): Likewise.
12211 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12212 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12213 (dwarf_expr_context::execute_stack_op): Likewise.
12214 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12215 Likewise.
12216 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12217 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12218 (show_entry_values_debug, call_site_to_target_addr)
12219 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12220 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12221 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12222 (value_of_dwarf_block_entry, indirect_pieced_value)
12223 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12224 (disassemble_dwarf_expression): Likewise.
12225 * dwarf2read.c (process_die, inherit_abstract_dies)
12226 (read_call_site_scope): Likewise.
12227 * gdbtypes.h (struct func_type, struct call_site_parameter)
12228 (struct call_site): Likewise.
12229 * stack.c (read_frame_arg): Likewise.
12230 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12231
43988095
JK
122322017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12233
12234 * defs.h (read_unsigned_leb128): New declaration.
12235 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12236 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12237 (dwarf2_find_location_expression): Call also
12238 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12239 * dwarf2loc.h (dwarf2_version): New declaration.
12240 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12241 rnglists.
12242 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12243 .debug_rnglists.
12244 (struct dwop_section_names): Add loclists_dwo.
12245 (dwop_section_names): Add .debug_loclists.dwo.
12246 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12247 (struct dwarf2_per_cu_data): Add dwarf_version.
12248 (struct dwo_sections): Add loclists.
12249 (struct attr_abbrev): Add implicit_const.
12250 (read_indirect_line_string): New declaration.
12251 (read_unsigned_leb128): Delete declaration.
12252 (rcuh_kind): New definition.
12253 (read_and_check_comp_unit_head): Change parameter
12254 is_debug_types_section to section_kind.
12255 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12256 (read_comp_unit_head): Change parameter abfd to section, add parameter
12257 section_kind. Handle DWARF-5.
12258 (error_check_comp_unit_head): Accept also DWARF version 5.
12259 (read_and_check_comp_unit_head): Change parameter
12260 is_debug_types_section to section_kind.
12261 (read_and_check_type_unit_head): Delete function.
12262 (read_abbrev_offset): Handle DWARF-5.
12263 (create_debug_type_hash_table): Add parameter section_kind. Process
12264 only DW_UT_type. Use signature and type_offset_in_tu from struct
12265 comp_unit_head.
12266 (create_debug_types_hash_table): Update create_debug_type_hash_table
12267 caller.
12268 (create_all_type_units): Call create_debug_type_hash_table.
12269 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12270 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12271 caller.
12272 (skip_one_die): Handle DW_FORM_implicit_const.
12273 (dwarf2_rnglists_process): New function.
12274 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12275 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12276 (read_attribute_value): Handle DW_FORM_implicit_const,
12277 DW_FORM_line_strp.
12278 (read_attribute): Handle DW_FORM_implicit_const.
12279 (read_indirect_string_at_offset_from): New function from
12280 read_indirect_string_at_offset.
12281 (read_indirect_string_at_offset): Call
12282 read_indirect_string_at_offset_from.
12283 (read_indirect_line_string_at_offset): New function.
12284 (read_indirect_string): New function comment.
12285 (read_indirect_line_string): New function.
12286 (read_unsigned_leb128): Make it global.
12287 (dwarf2_string_attr): Handle DWARF-5.
12288 (add_include_dir_stub, read_formatted_entries): New functions.
12289 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12290 Handle DWARF-5.
12291 (per_cu_header_read_in): Update read_comp_unit_head caller.
12292 (dwarf2_version): New function.
12293 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12294 rnglists.
12295 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12296 fields.
12297
22d2f3ab
JK
122982017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12299
12300 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12301
5f46c5a5
JK
123022017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12303
12304 * dwarf2read.c (dwarf2_ranges_process): New function from
12305 dwarf2_ranges_read.
12306 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12307 dwarf2_ranges_process.
12308
78d4d2c5
JK
123092017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12310
12311 * dwarf2read.c (create_debug_type_hash_table): New function from
12312 create_debug_types_hash_table.
12313 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12314 (create_all_type_units, open_and_init_dwo_file): Update
12315 create_debug_types_hash_table callers.
12316
1b076f25
SDJ
123172017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12318
12319 PR gdb/16188
12320 * fork-child.c (trace_start_error): Fix thinko. va_end should
12321 refer to 'ap', not 'args'.
12322
0db8980c
SDJ
123232017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12324 Pedro Alves <palves@redhat.com>
12325
12326 PR gdb/16188
12327 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12328 calls succeeded.
12329 * fork-child.c (trace_start_error): New function.
12330 (trace_start_error_with_name): Likewise.
12331 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12332 * inf-ptrace.c (inf_ptrace_me): Likewise.
12333 * inferior.h (trace_start_error): New prototype.
12334 (trace_start_error_with_name): Likewise.
12335
99e8a4f9
SDJ
123362017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12337
12338 PR gdb/21164
12339 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12340 NULL before using it.
12341 * symmisc.c (maintenance_print_symbols): Likewise.
12342 (maintenance_print_msymbols): Likewise.
12343
4e746bb6
TW
123442017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12345
12346 * NEWS: Add record Python bindings entry.
12347
123482017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12349
12350 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12351 py-record-full.o.
12352 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12353 * python/py-record-btrace.c, python/py-record-btrace.h,
12354 python/py-record-full.c, python/py-record-full.h: New file.
12355 * python/py-record.c: Add include for py-record-btrace.h and
12356 py-record-full.h.
12357 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12358 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12359 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12360 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12361 New definition.
12362 (gdbpy_initialize_btrace): New export.
12363 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12364
123652017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12366
12367 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12368 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12369 * python/py-record.c: New file.
12370 * python/python-internal.h (gdbpy_start_recording,
12371 gdbpy_current_recording, gdpy_stop_recording,
12372 gdbpy_initialize_record): New export.
12373 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12374 (python_GdbMethods): Add gdbpy_start_recording,
12375 gdbpy_current_recording and gdbpy_stop_recording.
12376
123772017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12378
12379 * record-btrace.c (record_btrace_record_method): New function.
12380 (init_record_btrace_ops): Initialize to_record_method.
12381 * record-full.c (record_full_record_method): New function.
12382 (init_record_full_ops, init_record_full_core_ops): Add
12383 record_full_record_method.
12384 * record.h (enum record_method): New enum.
12385 * target-debug.h (target_debug_print_enum_record_method: New define.
12386 * target-delegates.c: Regenerate.
12387 * target.c (target_record_method): New function.
12388 * target.h: Include record.h.
12389 (struct target_ops) <to_record_method>: New field.
12390 (target_record_method): New export.
12391
123922017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12393
12394 * record.h (record_start, record_stop): New export.
12395 * record.c (record_start, record_stop): New function.
12396
123972017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12398
12399 * btrace.c (btrace_fetch): Copy function call segments pointer
12400 into a vector.
12401 (btrace_clear): Clear the vector.
12402 (btrace_find_insn_by_number): Use binary search to find the correct
12403 function call segment.
12404 * btrace.h (brace_fun_p): New typedef.
12405 (struct btrace_thread_info) <functions>: New field.
12406
124072017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12408
12409 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12410 * btrace.c (btrace_decode_error): ... here. New function.
12411 * btrace.h (btrace_decode_error): New export.
12412
124132017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12414
12415 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12416 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12417 btrace_find_insn_by_number): Remove special case for gaps.
12418 * btrace.h (btrace_insn_get_error): New export.
12419 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12420 * record-btrace.c (btrace_insn_history): Print number for gaps.
12421 (record_btrace_info, record_btrace_goto): Handle gaps.
12422
3f77c769
TT
124232017-02-14 Tom Tromey <tom@tromey.com>
12424
12425 PR python/13598:
12426 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12427 event.
12428 * python/py-evts.c (gdbpy_initialize_py_events): Add
12429 before_prompt registry.
12430 * python/py-events.h (events_object) <before_prompt>: New field.
12431
4c2c7ac6
MM
124322017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12433
12434 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12435
5cf30ebf
LM
124362017-02-13 Luis Machado <lgustavo@codesourcery.com>
12437
12438 * symfile (_initialize_symfile): Add usage text to the load command's
12439 help text.
12440
26a06916
SM
124412017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12442
12443 * utils.c (defaulted_query): Don't query on secondary UIs.
12444
0b145e37
TT
124452017-02-10 Tom Tromey <tom@tromey.com>
12446
12447 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12448
2d8365c4
TT
124492017-02-10 Tom Tromey <tom@tromey.com>
12450
12451 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12452 "cleanup" local.
12453 * python/py-type.c (typy_legacy_template_argument): Remove
12454 unnecessary "cleanup" local.
12455
2bb8f231
TT
124562017-02-10 Tom Tromey <tom@tromey.com>
12457
12458 * python/python.c (do_start_initialization): New function, from
12459 _initialize_python.
12460 (_initialize_python): Call do_start_initialization.
12461 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12462 goto.
12463
1bdfaf42
TT
124642017-02-10 Tom Tromey <tom@tromey.com>
12465
12466 * python/py-prettyprint.c (pretty_print_one_value): Use
12467 gdbpy_ref.
12468
88b6faea
TT
124692017-02-10 Tom Tromey <tom@tromey.com>
12470
12471 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12472 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12473 gdbpy_ref.
12474 * python/py-type.c (field_new): Use gdbpy_ref.
12475 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12476 gdbpy_ref.
12477 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12478 (py_free_pspace): Likewise.
12479 (pspace_to_pspace_object): Likewise.
12480 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12481 (py_free_objfile): Likewise.
12482 (objfile_to_objfile_object): Likewise.
12483 * python/py-inferior.c (delete_thread_object): Use
12484 gdbpy_ref.
12485 (infpy_read_memory): Likewise.
12486 (py_free_inferior): Likewise.
12487 * python/py-evtregistry.c (create_eventregistry_object): Use
12488 gdbpy_ref.
12489 * python/py-event.c (create_event_object): Use gdbpy_ref.
12490
7780f186
TT
124912017-02-10 Tom Tromey <tom@tromey.com>
12492
12493 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12494 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12495 used.
12496 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12497 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12498 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12499 python/py-framefilter.c, python/py-function.c,
12500 python/py-inferior.c, python/py-infevents.c,
12501 python/py-linetable.c, python/py-newobjfileevent.c,
12502 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12503 python/py-signalevent.c, python/py-stopevent.c,
12504 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12505 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12506 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12507 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12508
d4b0bb18
TT
125092017-02-10 Tom Tromey <tom@tromey.com>
12510
12511 * ui-out.h (ui_out_emit_type): New class.
12512 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12513 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12514 and ui_out_emit_tuple.
12515 (enumerate_locals): Likewise.
12516 (py_mi_print_variables, py_print_locals, py_print_args): Use
12517 ui_out_emit_list.
12518 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12519 ui_out_emit_list.
12520 * common/gdb_optional.h: New file.
12521
f67f945c
MG
125222017-02-10 Martin Galvan <martingalvan@sourceware.org>
12523
12524 * MAINTAINERS (Write After Approval): Update my e-mail address.
12525
18da0c51
MG
125262017-02-10 Martin Galvan <martingalvan@sourceware.org>
12527
12528 PR gdb/21122
12529 * breakpoint.c (_initialize_breakpoint): Update the help description
12530 of the 'commands' command to indicate that it takes a list argument.
12531
62c14536
SM
125322017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12533
12534 * interps.c (current_interp_set_logging): Remove "return".
12535
ff6fa247
GB
125362017-02-09 Gary Benson <gbenson@redhat.com>
12537
12538 * symtab.c (add_symtab_completions): Prevent NULL pointer
12539 dereference.
12540
a474bd8e
PA
125412017-02-08 Pedro Alves <palves@redhat.com>
12542
12543 * interps.c (interp::interp): Remove reference to quiet_p.
12544 (interp_set): Make static. Remove dead "Switching to" output
12545 code.
12546 (interp_quiet_p, interp_set_quiet): Delete.
12547 (interpreter_exec_cmd): Don't set the interpreter quiet.
12548 * interps.h (interp_quiet_p): Make static.
12549 (class interp) <quiet_p>: Remove field
12550
3d7b173c
JG
125512017-02-08 Jerome Guitton <guitton@adacore.com>
12552
604c4576
JG
12553 * cli/cli-decode.c (find_command_name_length): Make it extern.
12554 * cli/cli-decode.h (find_command_name_length): Declare.
12555 * cli/cli-script.c (command_name_equals, line_first_arg):
12556 New functions.
12557 (process_next_line): Use cli-decode to parse command names.
12558 (build_command_line): Make args a constant pointer.
12559
125602017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12561
3d7b173c
JG
12562 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12563 Remove case-insensitive search.
12564
1291063d
JM
125652017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12566
12567 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12568 at the end of the line. Avoids an ARI warning.
12569
20b477a7
LM
125702017-02-06 Luis Machado <lgustavo@codesourcery.com>
12571
12572 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12573 rdseed instructions.
12574 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12575
3f7b46f2
IR
125762017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12577
12578 PR tdep/20936
12579 Provide and use sparc32 and sparc64 target description XML files.
12580 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12581 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12582 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12583 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12584 * features/sparc/sparc32-solaris.xml: New file.
12585 * features/sparc/sparc64-solaris.xml: New file.
12586 * features/sparc/sparc32-solaris.c: Generated.
12587 * features/sparc/sparc64-solaris.c: Generated.
12588 * sparc-tdep.h: Account for differences in target descriptions.
12589 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12590 (sparc32_register_type): Use target provided registers.
12591 (validate_tdesc_registers): New function.
12592 (sparc32_gdbarch_init): Use tdesc_has_registers.
12593 Set pseudoregister functions.
12594 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12595 (sparc64_register_type): Use target provided registers.
12596 (sparc64_init_abi): Set pseudoregister functions.
12597
f0fd41c1
TT
125982017-02-03 Tom Tromey <tom@tromey.com>
12599
12600 PR rust/21097:
12601 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12602 with a single member.
12603
d6f9b0fb
PA
126042017-02-03 Pedro Alves <palves@redhat.com>
12605
12606 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12607 (cli_interp_base::~cli_interp_base): New.
12608 (cli_interp): New struct.
12609 (as_cli_interp): Cast the interp itself to cli_interp.
12610 (cli_interpreter_pre_command_loop): Rename to ...
12611 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12612 parameter.
12613 (cli_interpreter_init): Rename to ...
12614 (cli_interp::init): ... this. Remove 'self' parameter. Use
12615 boolean. Make extern.
12616 (cli_interpreter_resume): Rename to ...
12617 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12618 extern.
12619 (cli_interpreter_suspend): Rename to ...
12620 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12621 extern.
12622 (cli_interpreter_exec): Rename to ...
12623 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12624 extern.
12625 (cli_interpreter_supports_command_editing): Rename to ...
12626 (cli_interp_base::supports_command_editing): ... this. Remove
12627 'interp' parameter. Make extern.
12628 (cli_ui_out): Rename to ...
12629 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12630 Make extern.
12631 (cli_set_logging): Rename to ...
12632 (cli_interp_base::set_logging): ... this. Remove 'interp'
12633 parameter. Make extern.
12634 (cli_interp_procs): Delete.
12635 (cli_interp_factory): Adjust to use "new".
12636 * cli/cli-interp.h: Include "interps.h".
12637 (struct cli_interp_base): New struct.
12638 * interps.c (struct interp): Delete. Fields moved to interps.h.
12639 (interp_new): Delete.
12640 (interp::interp, interp::~interp): New.
12641 (interp_set): Use bool, and return void. Assume the interpreter
12642 has suspend, init and resume methods, and that the all return
12643 void.
12644 (set_top_level_interpreter): interp_set returns void.
12645 (interp_ui_out): Adapt.
12646 (current_interp_set_logging): Adapt.
12647 (interp_data): Delete.
12648 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12649 (interp_exec): Adapt.
12650 (top_level_interpreter_data): Delete.
12651 * interps.h (interp_init_ftype, interp_resume_ftype)
12652 (interp_suspend_ftype, interp_exec_ftype)
12653 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12654 (class interp): New.
12655 (interp_new): Delete.
12656 (interp_set): Now returns void. Use bool.
12657 (interp_data, top_level_interpreter_data): Delete.
12658 * mi/mi-common.h: Include interps.h.
12659 (class mi_interp): Inherit from interp. Define a ctor. Declare
12660 init, resume, suspect, exec, interp_ui_out, set_logging and
12661 pre_command_loop methods.
12662 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12663 (mi_interpreter_init): Rename to ...
12664 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12665 bool, return void and make extern. Adjust.
12666 (mi_interpreter_resume): ... Rename to ...
12667 (mi_interp::resume): ... this. Remove the 'data' parameter,
12668 return void and make extern. Adjust.
12669 (mi_interpreter_suspend): ... Rename to ...
12670 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12671 return void and make extern. Adjust.
12672 (mi_interpreter_exec): ... Rename to ...
12673 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12674 extern. Adjust.
12675 (mi_interpreter_pre_command_loop): ... Rename to ...
12676 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12677 parameter and make extern.
12678 (mi_on_normal_stop_1): Adjust.
12679 (mi_ui_out): Rename to ...
12680 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12681 parameter and make extern. Adjust.
12682 (mi_set_logging): Rename to ...
12683 (mi_interp::set_logging): ... this. Remove the 'interp'
12684 parameter and make extern. Adjust.
12685 (mi_interp_procs): Delete.
12686 (mi_interp_factory): Adjust to use 'new'.
12687 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12688 (mi_print_exception, mi_execute_command, mi_load_progress):
12689 Adjust.
12690 * tui/tui-interp.c (tui_interp): New class.
12691 (as_tui_interp): Return a tui_interp pointer.
12692 (tui_on_normal_stop, tui_on_signal_received)
12693 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12694 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12695 to use interp::interp_ui_out.
12696 (tui_init): Rename to ...
12697 (tui_interp::init): ... this. Remove the 'self' parameter, use
12698 bool, return void and make extern. Adjust.
12699 (tui_resume): Rename to ...
12700 (tui_interp::resume): ... this. Remove the 'data' parameter,
12701 return void and make extern. Adjust.
12702 (tui_suspend): Rename to ...
12703 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12704 return void and make extern. Adjust.
12705 (tui_ui_out): Rename to ...
12706 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12707 parameter, and make extern. Adjust.
12708 (tui_exec): Rename to ...
12709 (tui_interp::exec): ... this. Remove the 'data' parameter and
12710 make extern.
12711 (tui_interp_procs): Delete.
12712 (tui_interp_factory): Use "new".
12713
65c40c95
TT
127142017-02-02 Tom Tromey <tom@tromey.com>
12715
12716 * rust-exp.y (ends_raw_string, space_then_number)
12717 (rust_identifier_start_p): Return bool.
12718 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12719 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12720 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12721 (rust_chartype_p): Return bool.
12722 (val_print_struct, rust_print_struct_def, rust_print_type):
12723 Update.
12724 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12725 Return bool.
12726
b50f188d
TT
127272017-02-02 Tom Tromey <tom@tromey.com>
12728
12729 * rust-lang.c: Reindent.
12730
03c85b11
TT
127312017-02-02 Tom Tromey <tom@tromey.com>
12732
12733 * rust-lang.h (rust_crate_for_block): Update.
12734 * rust-lang.c (rust_crate_for_block): Return std::string.
12735 (rust_get_disr_info): Use std:;string, not
12736 gdb::unique_xmalloc_ptr.
12737 * rust-exp.y (crate_name): Update.
12738
9b6da501
PA
127392017-02-02 Pedro Alves <palves@redhat.com>
12740
12741 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12742 field out of gdb_disassembler_test and make it static.
12743
ec4cb20b
PA
127442017-02-02 Pedro Alves <palves@redhat.com>
12745
12746 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12747 mi1_interp and mi_interp fields.
12748
5be5dbf0
PA
127492017-02-02 Pedro Alves <palves@redhat.com>
12750
616268b6
PA
12751 * cli/cli-interp.c (struct saved_output_files, saved_output):
12752 Moved from cli/cli-logging.c.
12753 (cli_set_logging): New function.
12754 (cli_interp_procs): Install cli_set_logging.
12755 * cli/cli-interp.h (make_logging_output, cli_set_logging):
12756 Declare.
12757 * cli/cli-logging.c (struct saved_output_files, saved_output):
12758 Moved to cli/cli-interp.c.
12759 (pop_output_files): Don't save outputs here.
12760 (make_logging_output): New function.
12761 (handle_redirections): Don't build tee nor save previous outputs
12762 here.
12763 * interps.c (current_interp_set_logging): Change prototype.
12764 Assume there's always a set_logging_proc method installed.
12765 * interps.h (interp_set_logging_ftype): Change prototype.
12766 (current_interp_set_logging): Change prototype and adjust comment.
12767 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
12768 use make_logging_output.
12769 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
127702017-02-02 Pedro Alves <palves@redhat.com>
12771
5be5dbf0
PA
12772 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
12773 from ...
12774 (set_logging_overwrite): ... here.
12775 (logging_no_redirect_file): Delete.
12776 (set_logging_redirect): Don't handle redirection on the fly.
12777 Instead warn that "logging off" / "logging on" is necessary.
12778 (pop_output_files): Delete references to logging_no_redirect_file.
12779 (show_logging_command): Always speak in terms of what will happen
12780 once logging is reenabled.
12781
c99cc448
PA
127822017-02-02 Pedro Alves <palves@redhat.com>
12783
12784 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
12785
8b172ce7
PA
127862017-02-02 Pedro Alves <palves@redhat.com>
12787
12788 * disasm.c (gdb_pretty_print_insn): Rename to ...
12789 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
12790 Remove gdbarch parameter. Adapt to clear the object's buffers
12791 instead of allocating new buffers, and to print using the object's
12792 gdb_disassembler instead of calling gdb_print_insn.
12793 (dump_insns): Use gdb_pretty_print_disassembler.
12794 * disasm.h (gdb_pretty_print_insn): Delete declaration.
12795 (gdb_pretty_print_disassembler): New class.
12796 * record-btrace.c (btrace_insn_history): Use
12797 gdb_pretty_print_disassembler.
12798
d7e74731
PA
127992017-02-02 Pedro Alves <palves@redhat.com>
12800
12801 * ada-lang.c (type_as_string): Use string_file.
12802 * ada-valprint.c (ada_print_floating): Use string_file.
12803 * ada-varobj.c (ada_varobj_scalar_image)
12804 (ada_varobj_get_value_image): Use string_file.
12805 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
12806 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
12807 * breakpoint.c (update_inserted_breakpoint_locations)
12808 (insert_breakpoint_locations, reattach_breakpoints)
12809 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
12810 (print_it_watchpoint): Use string_file.
12811 (save_breakpoints): Use stdio_file.
12812 * c-exp.y (oper): Use string_file.
12813 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
12814 tee_file.
12815 (pop_output_files): Use delete.
12816 (handle_redirections): Use stdio_file and tee_file.
12817 * cli/cli-setshow.c (do_show_command): Use string_file.
12818 * compile/compile-c-support.c (c_compute_program): Use
12819 string_file.
12820 * compile/compile-c-symbols.c (generate_vla_size): Take a
12821 'string_file &' instead of a 'ui_file *'.
12822 (generate_c_for_for_one_variable): Take a 'string_file &' instead
12823 of a 'ui_file *'. Use string_file.
12824 (generate_c_for_variable_locations): Take a 'string_file &'
12825 instead of a 'ui_file *'.
12826 * compile/compile-internal.h (generate_c_for_for_one_variable):
12827 Take a 'string_file &' instead of a 'ui_file *'.
12828 * compile/compile-loc2c.c (push, pushf, unary, binary)
12829 (print_label, pushf_register_address, pushf_register)
12830 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
12831 'ui_file *'. Adjust.
12832 * compile/compile.c (compile_to_object): Use string_file.
12833 * compile/compile.h (compile_dwarf_expr_to_c)
12834 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
12835 'ui_file *'.
12836 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
12837 (replace_typedefs_qualified_name): Use string_file and
12838 obstack_copy0.
12839 * disasm.c (gdb_pretty_print_insn): Use string_file.
12840 (gdb_disassembly): Adjust reference the null_stream global.
12841 (do_ui_file_delete): Delete.
12842 (gdb_insn_length): Use null_stream.
12843 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
12844 * dwarf2loc.c (dwarf2_compile_property_to_c)
12845 (locexpr_generate_c_location, loclist_generate_c_location): Take a
12846 'string_file &' instead of a 'ui_file *'.
12847 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
12848 * dwarf2read.c (do_ui_file_peek_last): Delete.
12849 (dwarf2_compute_name): Use string_file.
12850 * event-top.c (gdb_setup_readline): Use stdio_file.
12851 * gdbarch.sh (verify_gdbarch): Use string_file.
12852 * gdbtypes.c (safe_parse_type): Use null_stream.
12853 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
12854 string_file.
12855 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
12856 'string_file *' instead of a 'ui_file *'.
12857 (gdbscm_arch_disassemble): Use string_file.
12858 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
12859 * guile/scm-ports.c (class ioscm_file_port): Now a class that
12860 inherits from ui_file.
12861 (ioscm_file_port_delete, ioscm_file_port_rewind)
12862 (ioscm_file_port_put): Delete.
12863 (ioscm_file_port_write): Rename to ...
12864 (ioscm_file_port::write): ... this. Remove file_port_magic
12865 checks.
12866 (ioscm_file_port_new): Delete.
12867 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
12868 ui_file_up.
12869 * guile/scm-type.c (tyscm_type_name): Use string_file.
12870 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
12871 Use string_file.
12872 * infcmd.c (print_return_value_1): Use string_file.
12873 * infrun.c (print_target_wait_results): Use string_file.
12874 * language.c (add_language): Use string_file.
12875 * location.c (explicit_to_string_internal): Use string_file.
12876 * main.c (captured_main_1): Use null_file.
12877 * maint.c (maintenance_print_architecture): Use stdio_file.
12878 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
12879 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
12880 event_channel>: Change type to mi_console_file pointer.
12881 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
12882 (mi_console_file_delete): Delete.
12883 (struct mi_console_file): Delete.
12884 (mi_console_file_magic): Delete.
12885 (mi_console_file_new): Delete.
12886 (mi_console_file::mi_console_file): New.
12887 (mi_console_file_delete): Delete.
12888 (mi_console_file_fputs): Delete.
12889 (mi_console_file::write): New.
12890 (mi_console_raw_packet): Delete.
12891 (mi_console_file::flush): New.
12892 (mi_console_file_flush): Delete.
12893 (mi_console_set_raw): Rename to ...
12894 (mi_console_file::set_raw): ... this.
12895 * mi/mi-console.h (class mi_console_file): New class.
12896 (mi_console_file_new, mi_console_set_raw): Delete.
12897 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
12898 (mi_set_logging): Use delete and tee_file. Adjust.
12899 * mi/mi-main.c (output_register): Use string_file.
12900 (mi_cmd_data_evaluate_expression): Use string_file.
12901 (mi_cmd_data_read_memory): Use string_file.
12902 (mi_cmd_execute, print_variable_or_computed): Use string_file.
12903 * mi/mi-out.c (mi_ui_out::main_stream): New.
12904 (mi_ui_out::rewind): Use main_stream and
12905 string_file.
12906 (mi_ui_out::put): Use main_stream and string_file.
12907 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12908 Allocate a 'string_file' instead.
12909 (mi_out_new): Don't allocate a mem_fileopen stream here.
12910 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12911 (mi_ui_out::main_stream): Declare method.
12912 * printcmd.c (eval_command): Use string_file.
12913 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
12914 * python/py-arch.c (archpy_disassemble): Use string_file.
12915 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
12916 * python/py-frame.c (frapy_str): Use string_file.
12917 * python/py-framefilter.c (py_print_type, py_print_single_arg):
12918 Use string_file.
12919 * python/py-type.c (typy_str): Use string_file.
12920 * python/py-unwind.c (unwind_infopy_str): Use string_file.
12921 * python/py-value.c (valpy_str): Use string_file.
12922 * record-btrace.c (btrace_insn_history): Use string_file.
12923 * regcache.c (regcache_print): Use stdio_file.
12924 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
12925 * remote.c (escape_buffer): Use string_file.
12926 * rust-lang.c (rust_get_disr_info): Use string_file.
12927 * serial.c (serial_open_ops_1): Use stdio_file.
12928 (do_serial_close): Use delete.
12929 * stack.c (print_frame_arg): Use string_file.
12930 (print_frame_args): Remove local mem_fileopen stream, not used.
12931 (print_frame): Use string_file.
12932 * symmisc.c (maintenance_print_symbols): Use stdio_file.
12933 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
12934 Take a 'string_file *' instead of a 'ui_file *'.
12935 * top.c (new_ui): Use stdio_file and stderr_file.
12936 (free_ui): Use delete.
12937 (execute_command_to_string): Use string_file.
12938 (quit_confirm): Use string_file.
12939 * tracepoint.c (collection_list::append_exp): Use string_file.
12940 * tui/tui-disasm.c (tui_disassemble): Use string_file.
12941 * tui/tui-file.c: Don't include "ui-file.h".
12942 (enum streamtype, struct tui_stream): Delete.
12943 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
12944 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
12945 (tui_file::tui_file): New method.
12946 (tui_file_fputs): Delete.
12947 (tui_file_get_strbuf): Delete.
12948 (tui_file::puts): New method.
12949 (tui_file_adjust_strbuf): Delete.
12950 (tui_file_flush): Delete.
12951 (tui_file::flush): New method.
12952 * tui/tui-file.h: Tweak intro comment.
12953 Include ui-file.h.
12954 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
12955 (tui_file_adjust_strbuf): Delete declarations.
12956 (class tui_file): New class.
12957 * tui/tui-io.c (tui_initialize_io): Use tui_file.
12958 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
12959 (tui_register_format): Use string_stream.
12960 * tui/tui-stack.c (tui_make_status_line): Use string_file.
12961 (tui_get_function_from_frame): Use string_file.
12962 * typeprint.c (type_to_string): Use string_file.
12963 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
12964 (null_stream): New global.
12965 (ui_file_delete): Delete.
12966 (ui_file::ui_file): New.
12967 (null_file_isatty): Delete.
12968 (ui_file::~ui_file): New.
12969 (null_file_rewind): Delete.
12970 (ui_file::printf): New.
12971 (null_file_put): Delete.
12972 (null_file_flush): Delete.
12973 (ui_file::putstr): New.
12974 (null_file_write): Delete.
12975 (ui_file::putstrn): New.
12976 (null_file_read): Delete.
12977 (ui_file::putc): New.
12978 (null_file_fputs): Delete.
12979 (null_file_write_async_safe): Delete.
12980 (ui_file::vprintf): New.
12981 (null_file_delete): Delete.
12982 (null_file::write): New.
12983 (null_file_fseek): Delete.
12984 (null_file::puts): New.
12985 (ui_file_data): Delete.
12986 (null_file::write_async_safe): New.
12987 (gdb_flush, ui_file_isatty): Adjust.
12988 (ui_file_put, ui_file_rewind): Delete.
12989 (ui_file_write): Adjust.
12990 (ui_file_write_for_put): Delete.
12991 (ui_file_write_async_safe, ui_file_read): Adjust.
12992 (ui_file_fseek): Delete.
12993 (fputs_unfiltered): Adjust.
12994 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
12995 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
12996 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
12997 (set_ui_file_data): Delete.
12998 (string_file::~string_file, string_file::write)
12999 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13000 (do_ui_file_as_string, ui_file_as_string): Delete.
13001 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13002 (struct mem_file): Delete.
13003 (mem_file_new): Delete.
13004 (stdio_file::stdio_file): New.
13005 (mem_file_delete): Delete.
13006 (stdio_file::stdio_file): New.
13007 (mem_fileopen): Delete.
13008 (stdio_file::~stdio_file): New.
13009 (mem_file_rewind): Delete.
13010 (stdio_file::set_stream): New.
13011 (mem_file_put): Delete.
13012 (stdio_file::open): New.
13013 (mem_file_write): Delete.
13014 (stdio_file_magic, struct stdio_file): Delete.
13015 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13016 (stdio_file::flush): New.
13017 (stdio_file_read): Rename to ...
13018 (stdio_file::read): ... this. Adjust.
13019 (stdio_file_write): Rename to ...
13020 (stdio_file::write): ... this. Adjust.
13021 (stdio_file_write_async_safe): Rename to ...
13022 (stdio_file::write_async_safe) ... this. Adjust.
13023 (stdio_file_fputs): Rename to ...
13024 (stdio_file::puts) ... this. Adjust.
13025 (stdio_file_isatty): Delete.
13026 (stdio_file_fseek): Delete.
13027 (stdio_file::isatty): New.
13028 (stderr_file_write): Rename to ...
13029 (stderr_file::write) ... this. Adjust.
13030 (stderr_file_fputs): Rename to ...
13031 (stderr_file::puts) ... this. Adjust.
13032 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13033 (stderr_file::stderr_file): New.
13034 (tee_file_magic): Delete.
13035 (struct tee_file): Delete.
13036 (tee_file::tee_file): New.
13037 (tee_file_new): Delete.
13038 (tee_file::~tee_file): New.
13039 (tee_file_delete): Delete.
13040 (tee_file_flush): Rename to ...
13041 (tee_file::flush): ... this. Adjust.
13042 (tee_file_write): Rename to ...
13043 (tee_file::write): ... this. Adjust.
13044 (tee_file::write_async_safe): New.
13045 (tee_file_fputs): Rename to ...
13046 (tee_file::puts): ... this. Adjust.
13047 (tee_file_isatty): Rename to ...
13048 (tee_file::isatty): ... this. Adjust.
13049 * ui-file.h (struct obstack, struct ui_file): Don't
13050 forward-declare.
13051 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13052 (ui_file_write_ftype)
13053 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13054 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13055 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13056 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13057 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13058 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13059 (set_ui_file_fseek): Delete.
13060 (ui_file_data, ui_file_delete, ui_file_rewind)
13061 (struct ui_file): New.
13062 (ui_file_up): New.
13063 (class null_file): New.
13064 (null_stream): Declare.
13065 (ui_file_write_for_put, ui_file_put): Delete.
13066 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13067 Delete.
13068 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13069 (gdb_fopen, tee_file_new): Delete.
13070 (struct string_file): New.
13071 (struct stdio_file): New.
13072 (stdio_file_up): New.
13073 (struct stderr_file): New.
13074 (class tee_file): New.
13075 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13076 of a 'ui_file *'. Adjust.
13077 * ui-out.h (class ui_out) <field_stream>: Likewise.
13078 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13079 (null_stream): Delete.
13080 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13081 Adjust.
13082 * utils.h (struct ui_file): Delete forward declaration..
13083 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13084 (error_stream): Take a 'string_file &' instead of a
13085 'ui_file *'.
13086 * varobj.c (varobj_value_get_print_value): Use string_file.
13087 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13088 * gdbarch.c: Regenerate.
13089
187808b0
PA
130902017-02-02 Pedro Alves <palves@redhat.com>
13091
13092 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13093 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13094 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13095 Adjust to call gdb_print_insn instead of
13096 gdb_disassembler::print_insn.
13097 (dump_insns, do_mixed_source_and_assembly_deprecated)
13098 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13099 'gdbarch' parameter. Remove gdb_disassembler parameter.
13100 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13101 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13102 declaration.
13103 (gdb_pretty_print_insn): Re-add declaration.
13104 * record-btrace.c (btrace_insn_history): Don't allocate a
13105 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13106
7a8eb317
SM
131072017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13108
13109 * disasm.h (gdb_disassembly): Remove file_string parameter.
13110 * disasm.c (gdb_disassembly): Likewise.
13111 * cli/cli-cmds.c (print_disassembly): Adapt.
13112 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13113 * stack.c (do_gdb_disassembly): Likewise.
13114
7346ef59
AA
131152017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13116
13117 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13118 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13119 targets. And if the implicit value is longer than needed, extract
13120 the first bytes instead of the "least significant" ones.
13121
cd4007e4
MM
131222017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13123
13124 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13125 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13126 (btrace_fetch): Assert can_access_registers_ptid.
13127 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13128 validate_registers_access.
13129
cf77c34e
MM
131302017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13131
13132 * gdbthread.h (can_access_registers_ptid): New.
13133 * thread.c (can_access_registers_ptid): New.
13134
be85ce7d
PA
131352017-02-01 Pedro Alves <palves@redhat.com>
13136
13137 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13138
29b0b251
PA
131392017-01-31 Pedro Alves <palves@redhat.com>
13140
13141 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13142 Fix typos.
13143
289b5b24
PA
131442017-01-31 Pedro Alves <palves@redhat.com>
13145
13146 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13147 not used.
13148
b47413b4
PA
131492017-01-31 Pedro Alves <palves@redhat.com>
13150
13151 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13152
60adb36c
PA
131532017-01-31 Pedro Alves <palves@redhat.com>
13154
13155 * common/scoped_restore.h
13156 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13157 change the value's parameter type to T2.
13158 (make_scoped_restore): Likewise.
13159
2735833d
WT
131602017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13161 Richard Henderson <rth@redhat.com>
13162
13163 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13164 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13165 GS_BASE for older kernels.
13166 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13167 GS_BASE for older kernels.
13168 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13169 and GS_BASE to the offset table.
13170 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13171 system register group.
13172 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13173 for older kernels.
13174 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13175 amd64 ABI.
13176 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13177 AMD64_GSBASE_REGNUM.
13178 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13179 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13180 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13181 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13182 i386/64bit-segments.xml in those rules.
13183 * features/i386/64bit-segments.xml: New file.
13184 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13185 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13186 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13187 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13188 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13189 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13190 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13191 * features/i386/amd64-avx-linux.c: Regenerated.
13192 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13193 * features/i386/amd64-avx-mpx.c: Regenerated.
13194 * features/i386/amd64-avx512-linux.c: Regenerated.
13195 * features/i386/amd64-linux.c: Regenerated.
13196 * features/i386/amd64-mpx-linux.c: Regenerated.
13197 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13198 * features/i386/i386-avx-mpx.c: Regenerated.
13199 * features/i386/x32-avx-linux.c: Regenerated.
13200 * features/i386/x32-avx512-linux.c: Regenerated.
13201 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13202 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13203 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13204 * regformats/i386/amd64-linux.dat: Regenerated.
13205 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13206 * regformats/i386/x32-avx-linux.dat: Regenerated.
13207 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13208 * regformats/i386/x32-linux.dat: Regenerated.
13209
8884e97e
WT
132102017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13211
13212 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13213 Set to AMD64_NUM_REGS.
13214
7005d26a
WT
132152017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13216
13217 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13218 that checks validity of a register number.
13219
4bd2e1b2
KC
132202017-01-27 Kees Cook <keescook@google.com>
13221
13222 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13223 fetch_fpregs if target has fpa registers.
13224 (arm_linux_store_inferior_registers): Call store_fpregs if target
13225 has fpa registers.
13226
7cf1de6c
AA
132272017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13228
13229 * cris-tdep.c (cris_gdbarch_init): Remove check for
13230 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13231
874a1c8c
AT
132322017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13233
13234 * corelow.c (get_core_register_section): Check for regset
13235 existence before checking for REGSET_VARIABLE_SIZE.
13236
d8b49cf0
YQ
132372017-01-26 Yao Qi <yao.qi@linaro.org>
13238 Pedro Alves <palves@redhat.com>
13239
13240 PR gdb/20939
13241 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13242 call memory_error, save memaddr instead.
13243 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13244 negative, cal memory_error.
13245 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13246
658ca58c
YQ
132472017-01-26 Yao Qi <yao.qi@linaro.org>
13248
13249 * disasm-selftests.c (memory_error_test): New function.
13250 (_initialize_disasm_selftests): Register memory_error_test.
13251
79843d45
YQ
132522017-01-26 Yao Qi <yao.qi@linaro.org>
13253
13254 * Makefile.in (SFILES): Add disasm-selftests.c and
13255 selftest-arch.c.
13256 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13257 * disasm-selftests.c: New file.
13258 * selftest-arch.c: New file.
13259 * selftest-arch.h: New file.
13260
8cafda32
YQ
132612017-01-26 Yao Qi <yao.qi@linaro.org>
13262
13263 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13264 to bfd_arch_mep. Don't return 0 if section is not
13265 found. Call print_insn_mep.
13266
e47ad6c0
YQ
132672017-01-26 Pedro Alves <palves@redhat.com>
13268 Yao Qi <yao.qi@linaro.org>
13269
13270 * arm-tdep.c: Include "disasm.h".
13271 (gdb_print_insn_arm): Update code to get gdbarch.
13272 * disasm.c (dis_asm_read_memory): Change it to
13273 gdb_disassembler::dis_asm_read_memory.
13274 (dis_asm_memory_error): Likewise.
13275 (dis_asm_print_address): Likewise.
13276 (gdb_pretty_print_insn): Change it to
13277 gdb_disassembler::pretty_print_insn.
13278 (dump_insns): Add one argument gdb_disassemlber. All
13279 callers updated.
13280 (do_mixed_source_and_assembly_deprecated): Likewise.
13281 (do_mixed_source_and_assembly): Likewise.
13282 (do_assembly_only): Likewise.
13283 (gdb_disassembler::gdb_disassembler): New.
13284 (gdb_disassembler::print_insn): New.
13285 * disasm.h (class gdb_disassembler): New.
13286 (gdb_pretty_print_insn): Remove declaration.
13287 (gdb_disassemble_info): Likewise.
13288 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13289 (gdbscm_disasm_read_memory_worker): Update.
13290 (gdbscm_disasm_read_memory): Update.
13291 (gdbscm_disasm_memory_error): Remove.
13292 (gdbscm_disasm_print_address): Remove.
13293 (gdbscm_disassembler::gdbscm_disassembler): New.
13294 (gdbscm_print_insn_from_port): Update.
13295 * mips-tdep.c: Include disasm.h.
13296 (gdb_print_insn_mips): Update code to get gdbarch.
13297 * record-btrace.c (btrace_insn_history): Update.
13298 * spu-tdep.c: Include disasm.h.
13299 (struct spu_dis_asm_data): Remove.
13300 (struct spu_dis_asm_info): New.
13301 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13302 SPU id.
13303 (gdb_print_insn_spu): Cast disassemble_info to
13304 spu_dis_asm_info.
13305
80d75874
YQ
133062017-01-26 Yao Qi <yao.qi@linaro.org>
13307
13308 * disasm.c (do_ui_file_delete): Delete.
13309 (gdb_insn_length): Move code creating stream to ...
13310 * utils.c (null_stream): ... here. New function.
13311 * utils.h (null_stream): Declare.
13312
60685cd0
SM
133132017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13314
13315 * python/py-inferior.c (find_thread_object): Return directly
13316 from the loop. Remove "found" variable.
13317
eb1cdb62
JB
133182017-01-21 Joel Brobecker <brobecker@adacore.com>
13319
13320 GDB 7.12.1 released.
13321
b1ce6568
SM
133222017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13323
13324 * python/py-function.c (fnpy_call): Reorder declarations to have
13325 the gdbpy_enter object declared first.
13326 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13327
6f8b0407
SM
133282017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13329
fec93fb1 13330 PR python/21068
6f8b0407
SM
13331 * python/python-internal.h (PyMem_RawMalloc): Define for
13332 Python < 3.4.
13333 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13334 PyMem_RawMalloc instead of PyMem_Malloc.
13335
78cbbba8
LM
133362017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13337 Luis Machado <lgustavo@codesourcery.com>
13338
13339 * NEWS (New commands): Mention flash-erase.
13340 (New MI commands): Mention target-flash-erase.
13341 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13342 command.
13343 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13344 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13345 * target.c (flash_erase_command): New function.
13346 (initialize_targets): Add new flash-erase command.
13347 * target.h (flash_erase_command): New declaration.
13348
2132fe85
JB
133492017-01-20 Joel Brobecker <brobecker@adacore.com>
13350
13351 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13352 HAVE_SYS_PROCFS_H is defined.
13353
d1dff226
AH
133542017-01-18 Alan Hayward <alan.hayward@arm.com>
13355
13356 * remote.c (struct cached_reg): Change data into a pointer.
13357 * (stop_reply_dtr): Free data pointers before deleting vector.
13358 (process_stop_reply): Likewise.
13359 (remote_parse_stop_reply): Allocate space for data
13360
9890e433
AH
133612017-01-18 Alan Hayward <alan.hayward@arm.com>
13362
13363 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13364 MAX_REGISTER_SIZE.
13365 (amd64_pseudo_register_read_value): Likewise.
13366 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13367 (store_register_using_P): Likewise.
13368 * regcache.c (regcache_xfer_part): Likewise.
13369
7a36499a
IR
133702017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13371
13372 Split real and pseudo registers.
13373 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13374 (sparc32_pseudo_regnum): New enum.
13375 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13376 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13377 (SPARC32_CP0_REGISTERS): New macro.
13378 (sparc32_pseudo_register_name): New function.
13379 (sparc32_register_name): Use sparc32_pseudo_register_name.
13380 (sparc32_pseudo_register_type): New function.
13381 (sparc32_register_type): Use sparc32_pseudo_register_type.
13382 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13383 pseudo register numbers.
13384 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13385 (SPARC64_CP0_REGISTERS): New macro.
13386 (sparc64_pseudo_register_name): New function.
13387 (sparc64_register_name): Use sparc64_pseudo_register_name.
13388 (sparc64_pseudo_register_type): New function.
13389 (sparc64_register_type): Use sparc64_pseudo_register_type.
13390 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13391 pseudo register numbers.
13392 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13393 sparc64_store_arguments): Handle pseudo register numbers.
13394
6f8976bf
YQ
133952017-01-13 Yao Qi <yao.qi@linaro.org>
13396
13397 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13398 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13399 output.
13400 (getpkt_or_notif_sane_1): Likewise.
13401
e4241ace
YQ
134022017-01-13 Yao Qi <yao.qi@linaro.org>
13403
13404 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13405 of CC. Pass "-x c++-header" instead of "-x c".
13406
3015c064
SM
134072017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13408
13409 * remote.c (remote_can_async_p): Update comment.
13410
fde1b17d
SM
134112017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13412
13413 * linux-nat.c (linux_nat_can_async_p): Update comment.
13414
ca1ca08b
SM
134152017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13416
13417 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13418
4ad2da73
SM
134192017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13420
13421 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13422
c8b23b3f
TT
134232017-01-10 Tom Tromey <tom@tromey.com>
13424
13425 * python/py-type.c (typy_legacy_template_argument): Update.
13426 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13427 ~demangle_parse_info): Declare new members.
13428 (cp_demangled_name_to_comp): Return unique_ptr.
13429 (cp_demangled_name_parse_free)
13430 (make_cleanup_cp_demangled_name_parse_free)
13431 (cp_new_demangle_parse_info): Remove.
13432 * cp-support.c (do_demangled_name_parse_free_cleanup)
13433 (make_cleanup_cp_demangled_name_parse_free): Remove.
13434 (inspect_type, cp_canonicalize_string_full)
13435 (cp_canonicalize_string): Update.
13436 (mangled_name_to_comp): Change return type.
13437 (cp_class_name_from_physname, method_name_from_physname)
13438 (cp_func_name, cp_remove_params): Update.
13439 * cp-name-parser.y (demangle_parse_info): New constructor, from
13440 cp_new_demangle_parse_info.
13441 (~demangle_parse_info): New destructor, from
13442 cp_demangled_name_parse_free.
13443 (cp_merge_demangle_parse_infos): Update.
13444 (cp_demangled_name_to_comp): Change return type.
13445
1ac32117
TT
134462017-01-10 Tom Tromey <tom@tromey.com>
13447
13448 * top.c (prevent_dont_repeat): Change return type.
13449 * python/python.c (execute_gdb_command): Use std::string.
13450 Update.
13451 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13452 * command.h (prevent_dont_repeat): Change return type.
13453 * breakpoint.c (bpstat_do_actions_1): Update.
13454
0cf08227
TT
134552017-01-10 Tom Tromey <tom@tromey.com>
13456
13457 * value.h (scoped_value_mark::~scoped_value_mark): Call
13458 free_to_mark.
13459 (scoped_value_mark::free_to_mark): New method.
13460 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13461 scoped_value_mark.
13462
eb115069
TT
134632017-01-10 Tom Tromey <tom@tromey.com>
13464
13465 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13466 (valpy_reference_value, valpy_const_value, valpy_get_address)
13467 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13468 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13469 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13470 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13471 scoped_value_mark.
13472 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13473 * value.h (scoped_value_mark): New class.
13474
906768f9
TT
134752017-01-10 Tom Tromey <tom@tromey.com>
13476
13477 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13478 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13479 * psymtab.c (discard_psymtabs_upto): Remove.
13480 (make_cleanup_discard_psymtabs): Remove.
13481 (struct psymtab_state): Remove.
13482
bef155c3
TT
134832017-01-10 Tom Tromey <tom@tromey.com>
13484
13485 * record-full.c (record_full_save_cleanups): Remove.
13486 (record_full_save): Use gdb::unlinker.
13487 * gcore.c (do_bfd_delete_cleanup): Remove.
13488 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13489 cleanups.
13490 * dwarf2read.c (unlink_if_set): Remove.
13491 (write_psymtabs_to_index): Use gdb::unlinker.
13492 * common/gdb_unlinker.h: New file.
13493
192b62ce
TT
134942017-01-10 Tom Tromey <tom@tromey.com>
13495
13496 * windows-tdep.c (windows_xfer_shared_library): Update.
13497 * windows-nat.c (windows_make_so): Update.
13498 * utils.h (make_cleanup_bfd_unref): Remove.
13499 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13500 * symfile.h (symfile_bfd_open)
13501 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13502 * symfile.c (read_symbols, symbol_file_add)
13503 (separate_debug_file_exists): Update.
13504 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13505 (generic_load, reread_symbols): Update.
13506 * symfile-mem.c (symbol_file_add_from_memory): Update.
13507 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13508 (spu_symbol_file_add_from_memory): Update.
13509 * solist.h (struct target_so_ops) <bfd_open>: Return
13510 gdb_bfd_ref_ptr.
13511 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13512 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13513 gdb_bfd_ref_ptr.
13514 (solib_map_sections, reload_shared_libraries_1): Update.
13515 * solib-svr4.c (enable_break): Update.
13516 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13517 * solib-frv.c (enable_break2): Update.
13518 * solib-dsbt.c (enable_break): Update.
13519 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13520 gdb_bfd_ref_ptr.
13521 (darwin_solib_get_all_image_info_addr_at_init): Update.
13522 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13523 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13524 * record-full.c (record_full_save): Update.
13525 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13526 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13527 * minidebug.c (find_separate_debug_file_in_section): Return
13528 gdb_bfd_ref_ptr.
13529 * machoread.c (macho_add_oso_symfile): Change abfd to
13530 gdb_bfd_ref_ptr.
13531 (macho_symfile_read_all_oso): Update.
13532 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13533 (macho_symfile_read): Update.
13534 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13535 (jit_bfd_try_read_symtab): Update.
13536 * gdb_bfd.h (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 (gdb_bfd_ref_policy): New struct.
13541 (gdb_bfd_ref_ptr): New typedef.
13542 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13543 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13544 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13545 gdb_bfd_ref_ptr.
13546 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13547 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13548 (gcore_command): Update.
13549 * exec.c (exec_file_attach): Update.
13550 * elfread.c (elf_symfile_read): Update.
13551 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13552 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13553 (open_and_init_dwo_file): Update.
13554 (open_dwp_file): Return gdb_bfd_ref_ptr.
13555 (open_and_init_dwp_file): Update.
13556 * corelow.c (core_open): Update.
13557 * compile/compile-object-load.c (compile_object_load): Update.
13558 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13559 * coffread.c (coff_symfile_read): Update.
13560 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13561 gdb_bfd_ref_ptr. Rename.
13562 (dump_bfd_file, restore_command): Update.
13563 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13564 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13565 (find_separate_debug_file_by_buildid): Update.
13566
50315b21
TT
135672017-01-10 Tom Tromey <tom@tromey.com>
13568
13569 * common/gdb_ref_ptr.h: New file.
13570 * python/py-ref.h (struct gdbpy_ref_policy): New.
13571 (gdbpy_ref): Now a typedef.
13572
fc4007c9
TT
135732017-01-10 Tom Tromey <tom@tromey.com>
13574
13575 * utils.h (make_cleanup_htab_delete): Don't declare.
13576 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13577 Remove.
13578 * linespec.c (decode_compound_collector): Add constructor,
13579 destructor.
13580 (lookup_prefix_sym): Remove cleanup.
13581 (symtab_collector): Add constructor, destructor.
13582 (collect_symtabs_from_filename): Remove cleanup.
13583 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13584 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13585 Use htab_up.
13586 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13587 * dwarf2read.c (dw2_expand_symtabs_matching)
13588 (dw2_map_symbol_filenames, dwarf_decode_macros)
13589 (write_psymtabs_to_index): Use htab_up.
13590 * dwarf2loc.c (func_verify_no_selftailcall)
13591 (call_site_find_chain_1, func_verify_no_selftailcall)
13592 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13593 std::vector, gdb::unique_xmalloc_ptr.
13594 (call_sitep): Remove typedef.
13595 (dwarf2_locexpr_baton_eval): Remove unused variable.
13596
8dbcee67
TT
135972017-01-10 Tom Tromey <tom@tromey.com>
13598
13599 * python/python-internal.h (make_cleanup_py_decref)
13600 (make_cleanup_py_xdecref): Don't declare.
13601 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13602 (py_xdecref, make_cleanup_py_xdecref): Remove.
13603
13df46cc
TT
136042017-01-10 Tom Tromey <tom@tromey.com>
13605
13606 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13607 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13608
06fc9bf7
TT
136092017-01-10 Tom Tromey <tom@tromey.com>
13610
13611 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13612
830a4934
TT
136132017-01-10 Tom Tromey <tom@tromey.com>
13614
13615 * python/py-utils.c (unicode_to_encoded_string)
13616 (python_string_to_target_string)
13617 (python_string_to_target_python_string)
13618 (python_string_to_host_string, gdbpy_obj_to_string)
13619 (get_addr_from_python): Use gdbpy_ref.
13620
4586d543
TT
136212017-01-10 Tom Tromey <tom@tromey.com>
13622
13623 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13624 gdbpy_ref.
13625
59876f8f
TT
136262017-01-10 Tom Tromey <tom@tromey.com>
13627
13628 * python/python.c (eval_python_command, gdbpy_decode_line)
13629 (gdbpy_run_events, gdbpy_start_type_printers)
13630 (gdbpy_apply_type_printers): Use gdbpy_ref.
13631
97d83487
TT
136322017-01-10 Tom Tromey <tom@tromey.com>
13633
13634 * python/py-param.c (get_doc_string, compute_enum_values): Use
13635 gdbpy_ref.
13636
9205649a
TT
136372017-01-10 Tom Tromey <tom@tromey.com>
13638
13639 * python/py-inferior.c (find_thread_object, build_inferior_list):
13640 Use gdbpy_ref.
13641
74c49d45
TT
136422017-01-10 Tom Tromey <tom@tromey.com>
13643
13644 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13645
16361ffb
TT
136462017-01-10 Tom Tromey <tom@tromey.com>
13647
13648 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13649 gdbpy_ref.
13650
905f2cca
TT
136512017-01-10 Tom Tromey <tom@tromey.com>
13652
13653 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13654 extra incref.
13655 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13656 Use gdbpy_ref.
13657
64081434
TT
136582017-01-10 Tom Tromey <tom@tromey.com>
13659
13660 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13661 gdbpy_ref.
13662
59e9e831
TT
136632017-01-10 Tom Tromey <tom@tromey.com>
13664
13665 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13666 decref results of PyArg_ParseTupleAndKeywords.
13667
9de10f6d
TT
136682017-01-10 Tom Tromey <tom@tromey.com>
13669
13670 * python/python.c (python_run_simple_file): Use
13671 unique_xmalloc_ptr, gdbpy_ref.
13672
2bd5759d
TT
136732017-01-10 Tom Tromey <tom@tromey.com>
13674
13675 * python/py-prettyprint.c (print_stack_unless_memory_error)
13676 (print_string_repr, print_children): Use gdbpy_ref.
13677 (dummy_python_frame): New class.
13678 (dummy_python_frame::dummy_python_frame): Rename from
13679 push_dummy_python_frame.
13680 (py_restore_tstate): Remove.
13681
3b4e0e01
TT
136822017-01-10 Tom Tromey <tom@tromey.com>
13683
13684 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13685
17a22718
TT
136862017-01-10 Tom Tromey <tom@tromey.com>
13687
13688 * python/python.c (ensure_python_env, restore_python_env):
13689 Remove.
13690 * python/python-internal.h (ensure_python_env): Don't declare.
13691 * varobj.h (varobj_ensure_python_env): Don't declare.
13692 * varobj.c (varobj_ensure_python_env): Remove.
13693
68cdc557
TT
136942017-01-10 Tom Tromey <tom@tromey.com>
13695
13696 * varobj.c (varobj_value_get_print_value): Use
13697 gdbpy_enter_varobj.
13698
1eba6383
TT
136992017-01-10 Tom Tromey <tom@tromey.com>
13700
13701 * python/py-prettyprint.c (print_string_repr, print_children):
13702 Update.
13703 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13704 of "encoding".
13705 * varobj.c (varobj_value_get_print_value): Update.
13706 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13707
bde7b3e3
TT
137082017-01-10 Tom Tromey <tom@tromey.com>
13709
13710 * varobj.c (varobj_get_display_hint)
13711 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13712 (varobj_set_visualizer, free_variable): Use
13713 gdbpy_enter_varobj.
13714
a7785f8c
TT
137152017-01-10 Tom Tromey <tom@tromey.com>
13716
13717 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13718 (do_finish_initialization): New function. Use gdbpy_ref.
13719 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13720 do_finish_initialization.
13721
2865bfce
TT
137222017-01-10 Tom Tromey <tom@tromey.com>
13723
13724 * python/py-param.c (get_set_value, get_show_value): Use
13725 gdbpy_enter, gdbpy_ref.
13726
0e9dcc75
TT
137272017-01-10 Tom Tromey <tom@tromey.com>
13728
13729 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13730
12a5cedd
TT
137312017-01-10 Tom Tromey <tom@tromey.com>
13732
13733 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13734
788f2586
TT
137352017-01-10 Tom Tromey <tom@tromey.com>
13736
13737 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13738 Use gdbpy_enter_varobj.
13739
6cd67bea
TT
137402017-01-10 Tom Tromey <tom@tromey.com>
13741
13742 * varobj.c (gdbpy_enter_varobj): New constructor.
13743 * python/python-internal.h (gdbpy_enter_varobj): New class.
13744 * python/py-varobj.c (py_varobj_get_iterator): Use
13745 gdbpy_enter_varobj.
13746
14b122bf
TT
137472017-01-10 Tom Tromey <tom@tromey.com>
13748
13749 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
13750 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13751 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
13752 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
13753 unique_xmalloc_ptr.
13754 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
13755
bf1ca3b9
TT
137562017-01-10 Tom Tromey <tom@tromey.com>
13757
13758 * python/py-xmethods.c (invoke_match_method): Use
13759 gdbpy_ref.
13760
572a5524
TT
137612017-01-10 Tom Tromey <tom@tromey.com>
13762
13763 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
13764 gdbpy_enter, gdbpy_ref.
13765
396a78b6
TT
137662017-01-10 Tom Tromey <tom@tromey.com>
13767
13768 * python/python.c (python_interactive_command): Use gdbpy_enter.
13769
a88b13c7
TT
137702017-01-10 Tom Tromey <tom@tromey.com>
13771
13772 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
13773 gdbpy_ref.
13774
e9f0c363
TT
137752017-01-10 Tom Tromey <tom@tromey.com>
13776
13777 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
13778 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13779
6349f452
TT
137802017-01-10 Tom Tromey <tom@tromey.com>
13781
13782 * utils.h (htab_deleter): New struct.
13783 (htab_up): New typedef.
13784 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
13785 gdbpy_enter, gdbpy_ref, htab_up.
13786
c0171de6
TT
137872017-01-10 Tom Tromey <tom@tromey.com>
13788
13789 * python/py-unwind.c (pending_frame_invalidate): Remove.
13790 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
13791
f18e226f
TT
137922017-01-10 Tom Tromey <tom@tromey.com>
13793
13794 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
13795 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
13796
c57af3f1
TT
137972017-01-10 Tom Tromey <tom@tromey.com>
13798
13799 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
13800
60e600ec
TT
138012017-01-10 Tom Tromey <tom@tromey.com>
13802
13803 * python/python.c (gdbpy_eval_from_control_command)
13804 (gdbpy_source_script, gdbpy_run_events)
13805 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
13806 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
13807 gdbpy_enter.
13808
bf7da5b0
TT
138092017-01-10 Tom Tromey <tom@tromey.com>
13810
13811 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
13812
2d38bced
TT
138132017-01-10 Tom Tromey <tom@tromey.com>
13814
13815 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
13816
07bc7329
TT
138172017-01-10 Tom Tromey <tom@tromey.com>
13818
13819 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
13820 (python_on_inferior_call_pre, python_on_inferior_call_post)
13821 (python_on_memory_change, python_on_register_change)
13822 (python_inferior_exit, python_new_objfile, add_thread_object)
13823 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
13824
6e7c365e
TT
138252017-01-10 Tom Tromey <tom@tromey.com>
13826
13827 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
13828 (bpfinishpy_handle_exit): Use gdbpy_enter.
13829
6ba0cd40
TT
138302017-01-10 Tom Tromey <tom@tromey.com>
13831
13832 * python/py-cmd.c (cmdpy_destroyer)
13833 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
13834 gdbpy_enter.
13835
de2dc875
TT
138362017-01-10 Tom Tromey <tom@tromey.com>
13837
13838 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13839 gdbpy_enter.
13840 (gdbpy_breakpoint_has_cond): Likewise.
13841
4ecee2c4
TT
138422017-01-10 Tom Tromey <tom@tromey.com>
13843
13844 * python/python.c (gdbpy_enter): New constructor.
13845 (~gdbpy_enter): New destructor.
13846 (restore_python_env, ensure_python_env): Rewrite.
13847 * python/python-internal.h (gdbpy_enter): New class.
13848
37fce74f
TT
138492017-01-10 Tom Tromey <tom@tromey.com>
13850
13851 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
13852
53a0cca3
TT
138532017-01-10 Tom Tromey <tom@tromey.com>
13854
13855 * python/py-value.c (value_has_field, get_field_flag)
13856 (get_field_type, valpy_getitem, convert_value_from_python): Use
13857 gdbpy_ref.
13858
ff3724f5
TT
138592017-01-10 Tom Tromey <tom@tromey.com>
13860
13861 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
13862 gdbpy_ref.
13863
0700aea5
TT
138642017-01-10 Tom Tromey <tom@tromey.com>
13865
13866 * python/py-prettyprint.c (search_pp_list)
13867 (find_pretty_printer_from_objfiles)
13868 (find_pretty_printer_from_progspace)
13869 (find_pretty_printer_from_gdb, find_pretty_printer)
13870 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
13871 gdbpy_ref.
13872
1bb44c9f
TT
138732017-01-10 Tom Tromey <tom@tromey.com>
13874
13875 * python/py-param.c (call_doc_function): Use gdbpy_ref.
13876
87ce03fd
TT
138772017-01-10 Tom Tromey <tom@tromey.com>
13878
13879 * python/py-linetable.c (build_line_table_tuple_from_pcs)
13880 (ltpy_get_all_source_lines): Use gdbpy_ref.
13881
ee0a3fb8
TT
138822017-01-10 Tom Tromey <tom@tromey.com>
13883
13884 * python/py-framefilter.c (extract_sym, extract_value)
13885 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
13886 gdbpy_ref.
13887
bf2a52fa
TT
138882017-01-10 Tom Tromey <tom@tromey.com>
13889
13890 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
13891
f59fe7f8
TT
138922017-01-10 Tom Tromey <tom@tromey.com>
13893
13894 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
13895
80bd970a
TT
138962017-01-10 Tom Tromey <tom@tromey.com>
13897
13898 * python/py-function.c (convert_values_to_python, fnpy_init): Use
13899 gdbpy_ref.
13900
d1b3de2e
TT
139012017-01-10 Tom Tromey <tom@tromey.com>
13902
13903 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
13904
3bb43384
TT
139052017-01-10 Tom Tromey <tom@tromey.com>
13906
13907 * python/py-type.c (convert_field, make_fielditem, typy_fields)
13908 (typy_range): Use gdbpy_ref.
13909
abf5651e
TT
139102017-01-10 Tom Tromey <tom@tromey.com>
13911
13912 * python/py-threadevent.c (create_thread_event_object): Use
13913 gdbpy_ref.
13914 * python/py-stopevent.c (create_stop_event_object): Simplify.
13915 (emit_stop_event): Use gdbpy_ref.
13916 * python/py-signalevent.c (create_signal_event_object): Use
13917 gdbpy_ref.
13918 * python/py-newobjfileevent.c (create_new_objfile_event_object)
13919 (emit_new_objfile_event, create_clear_objfiles_event_object)
13920 (emit_clear_objfiles_event): Use gdbpy_ref.
13921 * python/py-infevents.c (create_inferior_call_event_object)
13922 (create_register_changed_event_object)
13923 (create_memory_changed_event_object, emit_inferior_call_event)
13924 (emit_memory_changed_event, emit_register_changed_event): Use
13925 gdbpy_ref.
13926 * python/py-exitedevent.c (create_exited_event_object)
13927 (emit_exited_event): Use gdbpy_ref.
13928 * python/py-event.h (evpy_emit_event): Remove
13929 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
13930 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
13931 * python/py-continueevent.c (emit_continue_event): Use
13932 gdbpy_ref.
13933 * python/py-breakpoint.c (gdbpy_breakpoint_created)
13934 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
13935 gdbpy_ref.
13936 * python/py-bpevent.c (create_breakpoint_event_object): Use
13937 gdbpy_ref.
13938
a68ff33e
TT
139392017-01-10 Tom Tromey <tom@tromey.com>
13940
13941 * python/py-ref.h: New file.
13942
7becfd03
SM
139432017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13944
13945 * cli-out.c (cli_ui_out::do_redirect): Change return type to
13946 void.
13947 * cli-out.h (cli_ui_out::do_redirect): Likewise.
13948 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
13949 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
13950 * ui-out.c (ui_out::redirect): Likewise.
13951 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
13952 * cli/cli-logging.c (set_logging_redirect): Update call site of
13953 ui_out::redirect.
13954 (handle_redirections): Likewise.
13955 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
13956 * top.c (execute_command_to_string): Likewise.
13957 * utils.c (do_ui_out_redirect_pop): Likewise.
13958
df294654
SM
139592017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13960
13961 * stack.c (_initialize_stack): Update "frame" command help message.
13962
f5e6296e
IB
139632017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
13964
13965 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
13966
0e2d6fa6
YQ
139672017-01-06 Yao Qi <yao.qi@linaro.org>
13968
13969 * x86-linux-nat.h: Include gdb_proc_service.h.
13970
44d6d3f9
YQ
139712017-01-06 Yao Qi <yao.qi@linaro.org>
13972
13973 * ser-base.h: Include serial.h.
13974
656731fe
YQ
139752017-01-06 Yao Qi <yao.qi@linaro.org>
13976
13977 * ppc-linux-tdep.h: Include ppc-tdep.h.
13978
1ca8f924
YQ
139792017-01-06 Yao Qi <yao.qi@linaro.org>
13980
13981 * nat/amd64-linux-siginfo.h: Include signal.h.
13982
bc3008c4
YQ
139832017-01-06 Yao Qi <yao.qi@linaro.org>
13984
13985 * nat/aarch64-linux-hw-point.h: Include break-common.h.
13986
66c80d03
YQ
139872017-01-06 Yao Qi <yao.qi@linaro.org>
13988
13989 * mi/mi-parse.h: Include mi-cmds.h.
13990
051d2dda
YQ
139912017-01-06 Yao Qi <yao.qi@linaro.org>
13992
13993 * inf-loop.c: Don't include "target.h".
13994 * inf-loop.h: Include it here.
13995
8018d34f
YQ
139962017-01-06 Yao Qi <yao.qi@linaro.org>
13997
13998 * dfp.h: Include "dboulest.h" and "expression.h".
13999
c0b8369c
YQ
140002017-01-06 Yao Qi <yao.qi@linaro.org>
14001
14002 * ax-gdb.h: Include "ax.h".
14003
ad5cba2a
YQ
140042017-01-06 Yao Qi <yao.qi@linaro.org>
14005
14006 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14007 with nat/gdb_ptrace.h.
14008
1c33cd7f
YQ
140092017-01-05 Yao Qi <yao.qi@linaro.org>
14010
14011 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14012 new line.
14013 (mips64_fbsd_sigframe_init): Likewise.
14014
c988ac1d
JB
140152017-01-04 John Baldwin <jhb@FreeBSD.org>
14016
14017 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14018 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14019
b268007c
JB
140202017-01-04 John Baldwin <jhb@FreeBSD.org>
14021
14022 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14023 * NEWS: Mention new FreeBSD/mips native configuration.
14024 * config/mips/fbsd.mh: New file.
14025 * configure.host: Add mips*-*-freebsd*.
14026 * mips-fbsd-nat.c: New file.
14027
387360da
JB
140282017-01-04 John Baldwin <jhb@FreeBSD.org>
14029
14030 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14031 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14032 * NEWS: Mention new FreeBSD/mips target.
14033 * configure.tgt: Add mips*-*-freebsd*.
14034 * mips-fbsd-tdep.c: New file.
14035 * mips-fbsd-tdep.h: New file.
14036
2aaaf250
YQ
140372017-01-04 Yao Qi <yao.qi@linaro.org>
14038
14039 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14040 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14041
61baf725
JB
140422017-01-01 Joel Brobecker <brobecker@adacore.com>
14043
6dbb839a 14044 Update copyright year range in all GDB files.
61baf725 14045
c113e7ff 140462017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14047
c113e7ff 14048 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14049
c113e7ff 14050For older changes see ChangeLog-2016.
c906108c
SS
14051\f
14052Local Variables:
14053mode: change-log
14054left-margin: 8
14055fill-column: 74
14056version-control: never
57da7796 14057coding: utf-8
c906108c 14058End:
This page took 3.732784 seconds and 4 git commands to generate.