x86: Check invalid XMM register in AVX512 gathers
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6abc18bb
YQ
12017-10-26 Yao Qi <yao.qi@linaro.org>
2
3 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
4
bd522513
YQ
52017-10-26 Yao Qi <yao.qi@linaro.org>
6
7 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
8 aspace const.
9 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
10 Likewise.
11 * breakpoint.c (bpstat_check_location): Remove cast.
12 (breakpoint_hit_catch_fork): Make aspce const.
13 (breakpoint_hit_catch_solib): Likewise.
14 (breakpoint_hit_catch_exec): Likewise.
15 (breakpoint_hit_ranged_breakpoint): Likewise.
16 (breakpoint_hit_watchpoint): Likewise.
17 (base_breakpoint_breakpoint_hit): Likewise.
18 (bkpt_breakpoint_hit): Likewise.
19 (dprintf_breakpoint_hit): Likewise.
20 (tracepoint_breakpoint_hit): Likewise.
21 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
22
accd0bcd
YQ
232017-10-26 Yao Qi <yao.qi@linaro.org>
24
25 * breakpoint.c (breakpoint_location_address_match): Change
26 "struct address_space *" to "const address_space".
27 (breakpoint_location_address_range_overlap): Likewise.
28 (breakpoint_here_p): Likewise.
29 (breakpoint_in_range_p): Likewise.
30 (moribund_breakpoint_here_p): Likewise.
31 (bp_location_inserted_here_p): Likewise.
32 (software_breakpoint_inserted_here_p): Likewise.
33 (hardware_breakpoint_inserted_here_p): Likewise.
34 (hardware_watchpoint_inserted_in_range): Likewise.
35 (bpstat_check_location): Likewise.
36 (bpstat_stop_status): Likewise.
37 (breakpoint_address_match): Likewise.
38 (breakpoint_address_match_range): Likewise.
39 (breakpoint_location_address_match): Likewise.
40 (breakpoint_location_address_range_overlap): Likewise.
41 (insert_single_step_breakpoint): Likewise.
42 (breakpoint_has_location_inserted_here): Likewise.
43 (single_step_breakpoint_inserted_here_p): Likewise.
44 (pc_at_non_inline_function): Likewise.
45 * breakpoint.h (bpstat_stop_status): Update declaration.
46 (breakpoint_here_p): Likewise.
47 (breakpoint_in_range_p): Likewise.
48 (moribund_breakpoint_here_p): Likewise.
49 (breakpoint_inserted_here_p): Likewise.
50 (software_breakpoint_inserted_here_p): Likewise.
51 (hardware_breakpoint_inserted_here_p): Likewise.
52 (breakpoint_has_location_inserted_here): Likewise.
53 (single_step_breakpoint_inserted_here_p): Likewise.
54 (hardware_watchpoint_inserted_in_range): Likewise.
55 (breakpoint_address_match): Likewise.
56 (insert_single_step_breakpoint): Likewise.
57 (pc_at_non_inline_function): Likewise.
58 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
59 * record.c (record_check_stopped_by_breakpoint): Likewise.
60 * record.h (record_check_stopped_by_breakpoint): Likewise.
61 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
62
ac7936df
YQ
632017-10-25 Yao Qi <yao.qi@linaro.org>
64
65 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
66 regcache->arch () instead get_regcache_arch.
67 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
68 Likewise.
69 (aarch64_fbsd_store_inferior_registers): Likewise.
70 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
71 (store_gregs_to_thread): Likewise.
72 (fetch_fpregs_from_thread): Likewise.
73 (store_fpregs_to_thread): Likewise.
74 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
75 (aarch64_store_return_value): Likewise.
76 (aarch64_software_single_step): Likewise.
77 * aix-thread.c (aix_thread_wait): Likewise.
78 (supply_reg32): Likewise.
79 (supply_sprs64): Likewise.
80 (supply_sprs32): Likewise.
81 (fill_gprs64): Likewise.
82 (fill_gprs32): Likewise.
83 (fill_sprs64): Likewise.
84 (fill_sprs32): Likewise.
85 (store_regs_user_thread): Likewise.
86 (store_regs_kernel_thread): Likewise.
87 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
88 (alphabsd_store_inferior_registers): Likewise.
89 * alpha-tdep.c (alpha_extract_return_value): Likewise.
90 (alpha_store_return_value): Likewise.
91 (alpha_deal_with_atomic_sequence): Likewise.
92 (alpha_next_pc): Likewise.
93 (alpha_software_single_step): Likewise.
94 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
95 (amd64bsd_store_inferior_registers): Likewise.
96 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
97 Likewise.
98 (amd64_linux_store_inferior_registers): Likewise.
99 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
100 (amd64_collect_native_gregset): Likewise.
101 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
102 (amd64obsd_collect_uthread): Likewise.
103 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
104 (amd64_collect_fpregset): Likewise.
105 (amd64_supply_fxsave): Likewise.
106 (amd64_supply_xsave): Likewise.
107 (amd64_collect_fxsave): Likewise.
108 (amd64_collect_xsave): Likewise.
109 * arc-tdep.c (arc_write_pc): Likewise.
110 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
111 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
112 (arm_fbsd_store_inferior_registers): Likewise.
113 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
114 (store_vfp_regs): Likewise.
115 (arm_linux_fetch_inferior_registers): Likewise.
116 (arm_linux_store_inferior_registers): Likewise.
117 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
118 (arm_linux_sigreturn_next_pc): Likewise.
119 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
120 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
121 (fetch_register): Likewise.
122 (store_register): Likewise.
123 * arm-tdep.c (arm_is_thumb): Likewise.
124 (displaced_in_arm_mode): Likewise.
125 (bx_write_pc): Likewise.
126 (arm_get_next_pcs_addr_bits_remove): Likewise.
127 (arm_software_single_step): Likewise.
128 (arm_extract_return_value): Likewise.
129 (arm_store_return_value): Likewise.
130 (arm_write_pc): Likewise.
131 * bfin-tdep.c (bfin_extract_return_value): Likewise.
132 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
133 (bsd_uthread_store_registers): Likewise.
134 * core-regset.c (fetch_core_registers): Likewise.
135 * corelow.c (get_core_registers): Likewise.
136 * cris-tdep.c (cris_store_return_value): Likewise.
137 (cris_extract_return_value): Likewise.
138 (find_step_target): Likewise.
139 (find_step_target): Likewise.
140 (cris_software_single_step): Likewise.
141 * ctf.c (ctf_fetch_registers): Likewise.
142 * darwin-nat.c (cancel_breakpoint): Likewise.
143 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
144 * frv-tdep.c (frv_extract_return_value): Likewise.
145 * ft32-tdep.c (ft32_store_return_value): Likewise.
146 (ft32_extract_return_value): Likewise.
147 * go32-nat.c (fetch_register): Likewise.
148 (go32_fetch_registers): Likewise.
149 (go32_store_registers): Likewise.
150 (store_register): Likewise.
151 * h8300-tdep.c (h8300_extract_return_value): Likewise.
152 (h8300_store_return_value): Likewise.
153 * hppa-linux-nat.c (fetch_register): Likewise.
154 (store_register): Likewise.
155 (hppa_linux_fetch_inferior_registers): Likewise.
156 (hppa_linux_store_inferior_registers): Likewise.
157 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
158 (i386_darwin_store_inferior_registers): Likewise.
159 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
160 (gnu_store_registers): Likewise.
161 * i386-linux-nat.c (fetch_register): Likewise.
162 (store_register): Likewise.
163 (supply_gregset): Likewise.
164 (fill_gregset): Likewise.
165 (i386_linux_fetch_inferior_registers): Likewise.
166 (i386_linux_store_inferior_registers): Likewise.
167 (i386_linux_resume): Likewise.
168 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
169 Likewise.
170 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
171 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
172 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
173 (i386obsd_collect_uthread): Likewise.
174 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
175 (i386_supply_gregset): Likewise.
176 (i386_collect_gregset): Likewise.
177 (i386_supply_fpregset): Likewise.
178 (i386_collect_fpregset): Likewise.
179 (i386_mpx_bd_base): Likewise.
180 * i386-v4-nat.c (supply_fpregset): Likewise.
181 (fill_fpregset): Likewise.
182 * i387-tdep.c (i387_supply_fsave): Likewise.
183 (i387_collect_fsave): Likewise.
184 (i387_supply_fxsave): Likewise.
185 (i387_collect_fxsave): Likewise.
186 (i387_supply_xsave): Likewise.
187 (i387_collect_xsave): Likewise.
188 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
189 (ia64_linux_store_registers): Likewise.
190 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
191 (ia64_extract_return_value): Likewise.
192 (ia64_store_return_value): Likewise.
193 (find_func_descr): Likewise.
194 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
195 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
196 (inf_ptrace_store_registers): Likewise.
197 * infrun.c (use_displaced_stepping): Likewise.
198 (displaced_step_prepare_throw): Likewise.
199 (resume): Likewise.
200 (proceed): Likewise.
201 (do_target_wait): Likewise.
202 (adjust_pc_after_break): Likewise.
203 (handle_inferior_event_1): Likewise.
204 (handle_signal_stop): Likewise.
205 (save_infcall_suspend_state): Likewise.
206 (restore_infcall_suspend_state): Likewise.
207 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
208 * jit.c (jit_frame_prev_register): Likewise.
209 * linux-nat.c (save_stop_reason): Likewise.
210 (linux_nat_wait_1): Likewise.
211 (resume_stopped_resumed_lwps): Likewise.
212 * linux-record.c (record_linux_sockaddr): Likewise.
213 (record_linux_msghdr): Likewise.
214 (record_linux_system_call): Likewise.
215 * linux-tdep.c (linux_collect_thread_registers): Likewise.
216 * lm32-tdep.c (lm32_extract_return_value): Likewise.
217 (lm32_store_return_value): Likewise.
218 * m32c-tdep.c (m32c_read_flg): Likewise.
219 (m32c_pseudo_register_read): Likewise.
220 (m32c_pseudo_register_write): Likewise.
221 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
222 (m32r_linux_collect_gregset): Likewise.
223 * m32r-tdep.c (m32r_store_return_value): Likewise.
224 (m32r_extract_return_value): Likewise.
225 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
226 (m68kbsd_collect_fpregset): Likewise.
227 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
228 * m68k-linux-nat.c (fetch_register): Likewise.
229 (old_fetch_inferior_registers): Likewise.
230 (old_store_inferior_registers): Likewise.
231 (store_regs): Likewise.
232 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
233 (m68k_svr4_store_return_value): Likewise.
234 * m88k-tdep.c (m88k_store_arguments): Likewise.
235 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
236 (mi_cmd_data_write_register_values): Likewise.
237 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
238 (mips_fbsd_store_inferior_registers): Likewise.
239 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
240 (mips_fbsd_supply_gregs): Likewise.
241 (mips_fbsd_collect_fpregs): Likewise.
242 (mips_fbsd_collect_gregs): Likewise.
243 (mips_fbsd_supply_fpregset): Likewise.
244 (mips_fbsd_collect_fpregset): Likewise.
245 (mips_fbsd_supply_gregset): Likewise.
246 (mips_fbsd_collect_gregset): Likewise.
247 * mips-linux-nat.c (supply_gregset): Likewise.
248 (fill_gregset): Likewise.
249 (supply_fpregset): Likewise.
250 (fill_fpregset): Likewise.
251 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
252 (mips_fill_gregset): Likewise.
253 (mips_supply_fpregset): Likewise.
254 (mips_fill_fpregset): Likewise.
255 (mips64_supply_gregset): Likewise.
256 (micromips_linux_sigframe_validate): Likewise.
257 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
258 (mipsnbsd_fetch_inferior_registers): Likewise.
259 (mipsnbsd_store_inferior_registers): Likewise.
260 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
261 (mipsnbsd_supply_gregset): Likewise.
262 (mipsnbsd_iterate_over_regset_sections): Likewise.
263 (mipsnbsd_supply_reg): Likewise.
264 (mipsnbsd_supply_fpreg): Likewise.
265 * mips-tdep.c (mips_in_frame_stub): Likewise.
266 (mips_dummy_id): Likewise.
267 (is_octeon_bbit_op): Likewise.
268 (micromips_bc1_pc): Likewise.
269 (extended_mips16_next_pc): Likewise.
270 (mips16_next_pc): Likewise.
271 (deal_with_atomic_sequence): Likewise.
272 * moxie-tdep.c (moxie_process_readu): Likewise.
273 * nios2-tdep.c (nios2_get_next_pc): Likewise.
274 * nto-procfs.c (procfs_store_registers): Likewise.
275 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
276 (ppcfbsd_store_inferior_registers): Likewise.
277 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
278 (fetch_altivec_register): Likewise.
279 (get_spe_registers): Likewise.
280 (fetch_spe_register): Likewise.
281 (fetch_altivec_registers): Likewise.
282 (fetch_all_gp_regs): Likewise.
283 (fetch_all_fp_regs): Likewise.
284 (store_vsx_register): Likewise.
285 (store_altivec_register): Likewise.
286 (set_spe_registers): Likewise.
287 (store_spe_register): Likewise.
288 (store_altivec_registers): Likewise.
289 (store_all_gp_regs): Likewise.
290 (store_all_fp_regs): Likewise.
291 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
292 (ppc_linux_collect_gregset): Likewise.
293 (ppc_canonicalize_syscall): Likewise.
294 (ppc_linux_record_signal): Likewise.
295 (ppu2spu_prev_register): Likewise.
296 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
297 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
298 (ppcobsd_store_registers): Likewise.
299 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
300 Likewise.
301 (ppc_ravenscar_generic_store_registers): Likewise.
302 * procfs.c (procfs_fetch_registers): Likewise.
303 (procfs_store_registers): Likewise.
304 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
305 (ravenscar_store_registers): Likewise.
306 (ravenscar_prepare_to_store): Likewise.
307 * record-btrace.c (record_btrace_fetch_registers): Likewise.
308 * record-full.c (record_full_wait_1): Likewise.
309 (record_full_registers_change): Likewise.
310 (record_full_store_registers): Likewise.
311 (record_full_core_fetch_registers): Likewise.
312 (record_full_save): Likewise.
313 (record_full_goto_insn): Likewise.
314 * regcache.c (regcache_register_size): Likewise.
315 (get_regcache_arch): Remove.
316 (regcache_read_pc): Likewise.
317 * regcache.h (get_regcache_arch): Remove.
318 * remote-sim.c (gdbsim_fetch_register): Likewise.
319 (gdbsim_store_register): Likewise.
320 * remote.c (fetch_register_using_p): Likewise.
321 (send_g_packet): Likewise.
322 (remote_prepare_to_store): Likewise.
323 (store_registers_using_G): Likewise.
324 * reverse.c (save_bookmark_command): Likewise.
325 (goto_bookmark_command): Likewise.
326 * rs6000-aix-tdep.c (branch_dest): Likewise.
327 * rs6000-nat.c (rs6000_ptrace64): Likewise.
328 (fetch_register): Likewise.
329 * rs6000-tdep.c (ppc_supply_reg): Likewise.
330 (ppc_collect_reg): Likewise.
331 (ppc_collect_gregset): Likewise.
332 (ppc_collect_fpregset): Likewise.
333 (ppc_collect_vsxregset): Likewise.
334 (ppc_collect_vrregset): Likewise.
335 (ppc_displaced_step_hw_singlestep): Likewise.
336 (rs6000_pseudo_register_read): Likewise.
337 (rs6000_pseudo_register_write): Likewise.
338 * s390-linux-nat.c (supply_gregset): Likewise.
339 (fill_gregset): Likewise.
340 (s390_linux_fetch_inferior_registers): Likewise.
341 * s390-linux-tdep.c (s390_write_pc): Likewise.
342 (s390_software_single_step): Likewise.
343 (s390_all_but_pc_registers_record): Likewise.
344 (s390_linux_syscall_record): Likewise.
345 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
346 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
347 (shnbsd_store_inferior_registers): Likewise.
348 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
349 (sh_extract_return_value_fpu): Likewise.
350 (sh_store_return_value_nofpu): Likewise.
351 (sh_corefile_supply_regset): Likewise.
352 (sh_corefile_collect_regset): Likewise.
353 * sh64-tdep.c (sh64_extract_return_value): Likewise.
354 (sh64_store_return_value): Likewise.
355 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
356 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
357 (sparc_store_inferior_registers): Likewise.
358 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
359 (sparc_ravenscar_prepare_to_store): Likewise.
360 * sparc-tdep.c (sparc32_store_arguments): Likewise.
361 (sparc_analyze_control_transfer): Likewise.
362 (sparc_step_trap): Likewise.
363 (sparc_software_single_step): Likewise.
364 (sparc32_gdbarch_init): Likewise.
365 (sparc_supply_rwindow): Likewise.
366 (sparc_collect_rwindow): Likewise.
367 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
368 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
369 (sparc64nbsd_collect_gregset): Likewise.
370 (sparc64nbsd_supply_fpregset): Likewise.
371 (sparc64nbsd_collect_fpregset): Likewise.
372 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
373 (sparc64_supply_gregset): Likewise.
374 (sparc64_collect_gregset): Likewise.
375 (sparc64_supply_fpregset): Likewise.
376 (sparc64_collect_fpregset): Likewise.
377 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
378 * spu-tdep.c (spu_unwind_sp): Likewise.
379 (spu2ppu_prev_register): Likewise.
380 (spu_memory_remove_breakpoint): Likewise.
381 * stack.c (return_command): Likewise.
382 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
383 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
384 * tracefile.c (trace_save_ctf): Likewise.
385 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
386 (do_windows_store_inferior_registers): Likewise.
387 (windows_resume): Likewise.
388 * xtensa-linux-nat.c (fill_gregset): Likewise.
389 (supply_gregset_reg): Likewise.
390 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
391 (xtensa_register_read_masked): Likewise.
392 (xtensa_supply_gregset): Likewise.
393 (xtensa_extract_return_value): Likewise.
394 (xtensa_store_return_value): Likewise.
395
edd079d9
UW
3962017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
397
398 * doublest.c (floatformat_from_string): New function.
399 * doublest.h (floatformat_from_string): Add prototype.
400
401 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
402 (OP_FLOAT): ... this.
403 * expression.h: Do not include "doublest.h".
404 (union exp_element): Replace doubleconst and decfloatconst by
405 new element floatconst.
406 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
407 (ada_evaluate_subexp): Likewise.
408 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
409 OP_DOUBLE and OP_DECFLOAT.
410 * expprint.c (print_subexp_standard): Likewise.
411 (dump_subexp_body_standard): Likewise.
412 * breakpoint.c (watchpoint_exp_is_const): Likewise.
413
414 * parse.c: Include "dfp.h".
415 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
416 (write_exp_elt_floatcst): New function.
417 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
418 and OP_DECFLOAT.
419 (operator_check_standard): Likewise.
420 (parse_float): Do not accept suffix. Take type as input. Return bool.
421 Return target format buffer instead of host DOUBLEST.
422 Use floatformat_from_string and decimal_from_string to parse
423 either binary or decimal floating-point types.
424 (parse_c_float): Remove.
425 * parser-defs.h: Do not include "doublest.h".
426 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
427 (write_exp_elt_floatcst): Add prototype.
428 (parse_float): Update prototype.
429 (parse_c_float): Remove.
430
431 * c-exp.y: Do not include "dfp.h".
432 (typed_val_float): Use byte buffer instead of DOUBLEST.
433 (typed_val_decfloat): Remove.
434 (DECFLOAT): Remove.
435 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
436 (parse_number): Update to new parse_float interface.
437 Parse suffixes and determine type before calling parse_float.
438 Handle decimal and binary FP types the same way.
439
440 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
441 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
442 (parse_number): Update to new parse_float interface.
443 Parse suffixes and determine type before calling parse_float.
444
445 * f-exp.y: Replace dval by typed_val_float.
446 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
447 (parse_number): Use parse_float instead of atof.
448
449 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
450 (parse_go_float): Remove.
451 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
452 (parse_number): Call parse_float instead of parse_go_float.
453 Parse suffixes and determine type before calling parse_float.
454
455 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
456 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
457 (parse_number): Update to new parse_float interface.
458 Parse suffixes and determine type before calling parse_float.
459
460 * m2-exp.y: Replace dval by byte buffer val.
461 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
462 (parse_number): Call parse_float instead of atof.
463
464 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
465 (lex_number): Call parse_float instead of strtod.
466 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
467 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
468 Use write_exp_elt_floatcst.
469 (unit_testing): Remove static variable.
470 (rust_type): Do not check unit_testing.
471 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
472
473 * ada-exp.y (type_float, type_double): Remove.
474 (typed_val_float): Use byte buffer instead of DOUBLEST.
475 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
476 * ada-lex.l (processReal): Use parse_float instead of sscanf.
477
cc628f3d
AH
4782017-10-25 Alan Hayward <alan.hayward@arm.com>
479
480 * aarch64-tdep.h (enum aarch64_regnum): Remove.
481 * arch/aarch64.h: New file.
482
09a7c6aa
UW
4832017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
484
485 * dfp.h (decimal_from_string): Use const reference for argument.
486 * dfp.c (decimal_from_string): Likewise.
487
8ba0dd51
UW
4882017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
489
490 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
491 * sh64-tdep.c (sh64_do_fp_register): Likewise.
492 * mips-tdep.c (mips_print_fp_register): Likewise.
493
16e812b2
UW
4942017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
495
496 * common/format.h (enum argclass): Replace decfloat_arg by
497 dec32float_arg, dec64float_arg, and dec128float_arg.
498 * common/format.c (parse_format_string): Update to return
499 new decimal float argument classes.
500
501 * printcmd.c (printf_decfloat): Rename to ...
502 (printf_floating): ... this. Add argclass argument, and use it
503 instead of parsing the format string again. Add support for
504 binary floating-point values, using floatformat_to_string.
505 Convert value to the target format if it doesn't already match.
506 (ui_printf): Call printf_floating instead of printf_decfloat,
507 also for double_arg / long_double_arg. Pass argclass.
508
509 * dfp.c (decimal_to_string): Add format string argument.
510 * dfp.h (decimal_to_string): Likewise.
511
512 * doublest.c (floatformat_to_string): Add format string argument.
513 * doublest.h (floatformat_to_string): Likewise.
514
fdf0cbc2
UW
5152017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
516
517 * doublest.c (floatformat_precision): New routine.
518 (floatformat_to_string): Likewise.
519 * doublest.c (floatformat_to_string): Add prototype.
520
521 * printcmd.c (print_scalar_formatted): Only call print_floating
522 on floating-point types.
523 * valprint.c: Do not include "floatformat.h".
524 (generic_val_print_decfloat): Remove.
525 (generic_val_print): Call generic_val_print_float for both
526 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
527 (print_floating): Use floatformat_to_string. Handle decimal float.
528 (print_decimal_floating): Remove, merge into floatformat_to_string.
529 * value.h (print_decimal_floating): Remove.
530
531 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
532
5033013f
UW
5332017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
534
535 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
536
a664f67e
SM
5372017-10-21 Simon Marchi <simon.marchi@ericsson.com>
538
539 * memattr.h: Don't include vec.h.
540 (struct mem_attrib): Initialize fields.
541 <unknown>: New static method.
542 (struct mem_region): Add constructors, operator<, initialize
543 fields.
544 * memattr.c: Include algorithm.
545 (default_mem_attrib, unknown_mem_attrib): Remove.
546 (user_mem_region_list): New global.
547 (target_mem_region_list, mem_region_list): Change type to
548 std::vector<mem_region>.
549 (mem_use_target): Now a function.
550 (target_mem_regions_valid): Change type to bool.
551 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
552 (require_user_regions): Adjust.
553 (require_target_regions): Adjust.
554 (create_mem_region): Adjust.
555 (lookup_mem_region): Adjust.
556 (invalidate_target_mem_regions): Adjust.
557 (mem_clear): Rename to...
558 (user_mem_clear): ... this, and adjust.
559 (mem_command): Adjust.
560 (info_mem_command): Adjust.
561 (mem_enable, enable_mem_command, mem_disable,
562 disable_mem_command): Adjust.
563 (mem_delete): Adjust.
564 (delete_mem_command): Adjust.
565 * memory-map.h (parse_memory_map): Return an std::vector.
566 * memory-map.c (parse_memory_map): Likewise.
567 (struct memory_map_parsing_data): Add constructor.
568 <memory_map>: Point to std::vector.
569 (memory_map_start_memory): Adjust.
570 (memory_map_end_memory): Adjust.
571 (memory_map_end_property): Adjust.
572 (clear_result): Remove.
573 * remote.c (remote_memory_map): Return an std::vector.
574 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
575 Remove.
576 (target_debug_print_mem_region_vector): New.
577 * target-delegates.c: Regenerate.
578 * target.h (mem_region_vector): New typedef.
579 (to_memory_map): Return mem_region_vector.
580 (target_memory_map): Return an std::vector.
581 * target.c (target_memory_map): Return an std::vector.
582 (flash_erase_command): Adjust.
583
6e17c565
SM
5842017-10-21 Simon Marchi <simon.marchi@ericsson.com>
585
586 * memory-map.c (struct memory_map_parsing_data) <property_name>:
587 Change type to std::string.
588 (memory_map_start_property): Adjust.
589 (memory_map_end_property): Adjust.
590
cfba9872
SM
5912017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
592
593 * infrun.h: Include common/byte-vector.h.
594 (struct displaced_step_closure): New struct.
595 (struct buf_displaced_step_closure): New struct.
596 * infrun.c (displaced_step_closure::~displaced_step_closure):
597 Provide default implementation.
598 (displaced_step_clear): Deallocate step closure with delete.
599 * aarch64-tdep.c (displaced_step_closure): Rename to ...
600 (aarch64_displaced_step_closure): ... this, extend
601 displaced_step_closure.
602 (aarch64_displaced_step_data) <dsc>: Change type to
603 aarch64_displaced_step_closure.
604 (aarch64_displaced_step_copy_insn): Adjust to type change, use
605 unique_ptr.
606 (aarch64_displaced_step_fixup): Add cast for displaced step
607 closure.
608 * amd64-tdep.c (displaced_step_closure): Rename to ...
609 (amd64_displaced_step_closure): ... this, extend
610 displaced_step_closure.
611 <insn_buf>: Change type to std::vector<gdb_byte>.
612 <max_len>: Remove.
613 (fixup_riprel): Change type of DSC parameter, adjust to type
614 change of insn_buf.
615 (fixup_displaced_copy): Change type of DSC parameter.
616 (amd64_displaced_step_copy_insn): Instantiate
617 amd64_displaced_step_closure.
618 (amd64_displaced_step_fixup): Add cast for closure type, adjust
619 to type change of insn_buf.
620 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
621 parameter DSC.
622 (arm_linux_copy_svc): Likewise.
623 (cleanup_kernel_helper_return): Likewise.
624 (arm_catch_kernel_helper_return): Likewise.
625 (arm_linux_displaced_step_copy_insn): Instantiate
626 arm_displaced_step_closure.
627 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
628 (displaced_read_reg): Change type of parameter DSC.
629 (branch_write_pc): Likewise.
630 (load_write_pc): Likewise.
631 (alu_write_pc): Likewise.
632 (displaced_write_reg): Likewise.
633 (arm_copy_unmodified): Likewise.
634 (thumb_copy_unmodified_32bit): Likewise.
635 (thumb_copy_unmodified_16bit): Likewise.
636 (cleanup_preload): Likewise.
637 (install_preload): Likewise.
638 (arm_copy_preload): Likewise.
639 (thumb2_copy_preload): Likewise.
640 (install_preload_reg): Likewise.
641 (arm_copy_preload_reg): Likewise.
642 (cleanup_copro_load_store): Likewise.
643 (install_copro_load_store): Likewise.
644 (arm_copy_copro_load_store) Likewise.
645 (thumb2_copy_copro_load_store): Likewise.
646 (cleanup_branch): Likewise.
647 (install_b_bl_blx): Likewise.
648 (arm_copy_b_bl_blx): Likewise.
649 (thumb2_copy_b_bl_blx): Likewise.
650 (thumb_copy_b): Likewise.
651 (install_bx_blx_reg): Likewise.
652 (arm_copy_bx_blx_reg): Likewise.
653 (thumb_copy_bx_blx_reg): Likewise.
654 (cleanup_alu_imm): Likewise.
655 (arm_copy_alu_imm): Likewise.
656 (thumb2_copy_alu_imm): Likewise.
657 (cleanup_alu_reg): Likewise.
658 (install_alu_reg): Likewise.
659 (arm_copy_alu_reg): Likewise.
660 (thumb_copy_alu_reg): Likewise.
661 (cleanup_alu_shifted_reg): Likewise.
662 (install_alu_shifted_reg): Likewise.
663 (arm_copy_alu_shifted_reg): Likewise.
664 (cleanup_load): Likewise.
665 (cleanup_store): Likewise.
666 (arm_copy_extra_ld_st): Likewise.
667 (install_load_store): Likewise.
668 (thumb2_copy_load_literal): Likewise.
669 (thumb2_copy_load_reg_imm): Likewise.
670 (arm_copy_ldr_str_ldrb_strb): Likewise.
671 (cleanup_block_load_all): Likewise.
672 (cleanup_block_store_pc): Likewise.
673 (cleanup_block_load_pc): Likewise.
674 (arm_copy_block_xfer): Likewise.
675 (thumb2_copy_block_xfer): Likewise.
676 (cleanup_svc): Likewise.
677 (install_svc): Likewise.
678 (arm_copy_svc): Likewise.
679 (thumb_copy_svc): Likewise.
680 (arm_copy_undef): Likewise.
681 (thumb_32bit_copy_undef): Likewise.
682 (arm_copy_unpred): Likewise.
683 (arm_decode_misc_memhint_neon): Likewise.
684 (arm_decode_unconditional): Likewise.
685 (arm_decode_miscellaneous): Likewise.
686 (arm_decode_dp_misc): Likewise.
687 (arm_decode_ld_st_word_ubyte): Likewise.
688 (arm_decode_media): Likewise.
689 (arm_decode_b_bl_ldmstm): Likewise.
690 (arm_decode_ext_reg_ld_st): Likewise.
691 (thumb2_decode_dp_shift_reg): Likewise.
692 (thumb2_decode_ext_reg_ld_st): Likewise.
693 (arm_decode_svc_copro): Likewise.
694 (thumb2_decode_svc_copro): Likewise.
695 (install_pc_relative): Likewise.
696 (thumb_copy_pc_relative_16bit): Likewise.
697 (thumb_decode_pc_relative_16bit): Likewise.
698 (thumb_copy_pc_relative_32bit): Likewise.
699 (thumb_copy_16bit_ldr_literal): Likewise.
700 (thumb_copy_cbnz_cbz): Likewise.
701 (thumb2_copy_table_branch): Likewise.
702 (cleanup_pop_pc_16bit_all): Likewise.
703 (thumb_copy_pop_pc_16bit): Likewise.
704 (thumb_process_displaced_16bit_insn): Likewise.
705 (decode_thumb_32bit_ld_mem_hints): Likewise.
706 (thumb_process_displaced_32bit_insn): Likewise.
707 (thumb_process_displaced_insn): Likewise.
708 (arm_process_displaced_insn): Likewise.
709 (arm_displaced_init_closure): Likewise.
710 (arm_displaced_step_fixup): Add cast for closure.
711 * arm-tdep.h: Include infrun.h.
712 (displaced_step_closure): Rename to ...
713 (arm_displaced_step_closure): ... this, extend
714 displaced_step_closure.
715 <u::svc::copy_svc_os>: Change type of parameter DSC.
716 <cleanup>: Likewise.
717 (arm_process_displaced_insn): Likewise.
718 (arm_displaced_init_closure): Likewise.
719 (displaced_read_reg): Likewise.
720 (displaced_write_reg): Likewise.
721 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
722 Adjust.
723 * i386-tdep.h: Include infrun.h.
724 (i386_displaced_step_closure): New typedef.
725 * i386-tdep.c (i386_displaced_step_copy_insn): Use
726 i386_displaced_step_closure.
727 (i386_displaced_step_fixup): Adjust.
728 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
729 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
730 and unique_ptr.
731 (ppc_displaced_step_fixup): Adjust.
732 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
733 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
734 and unique_ptr.
735 (s390_displaced_step_fixup): Adjust.
736
b392b304
SM
7372017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
738
739 * interps.h (interp_resume, interp_suspend, interp_set_temp):
740 Remove declarations.
741
d5833c62
TT
7422017-10-20 Tom Tromey <tom@tromey.com>
743
744 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
745 std::vector.
746 (gdb_bfd_record_inclusion): Update.
747 (bfdp): Remove typedef.
748
06d5bbc8
TT
7492017-10-20 Tom Tromey <tom@tromey.com>
750
751 * gdb_bfd.c (gdb_bfd_ref): Use new.
752 (struct gdb_bfd_data): Add constructor, destructor, and member
753 initializers.
754 (gdb_bfd_unref): Use delete.
755
2712ce2e
TT
7562017-10-20 Tom Tromey <tom@tromey.com>
757
758 * exec.c (exec_file_attach): Use new_bfd_ref.
759 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
760 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
761 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
762 new_bfd_ref.
763 * gdb_bfd.h (new_bfd_ref): New function.
764
fcc8fb2f
PA
7652017-10-20 Pedro Alves <palves@redhat.com>
766
767 * main.c (captured_command_loop): Add attribute noinline.
768
4c2287b0
SM
7692017-10-19 Simon Marchi <simon.marchi@ericsson.com>
770
771 * interps.c (struct interp_factory): Add constructor.
772 (interp_factory_p): Remove typedef.
773 (DEF_VEC_P(interp_factory_p)): Remove.
774 (interpreter_factories): Change type to std::vector.
775 (interp_factory_register): Adjust.
776 (interp_lookup): Adjust.
777 (interpreter_completer): Adjust.
778
3d415c26
TT
7792017-10-19 Tom Tromey <tom@tromey.com>
780
781 * break-catch-syscall.c (catch_syscall_completer): Use
782 std::string, gdb::unique_xmalloc_ptr.
783
395423c4
TT
7842017-10-19 Tom Tromey <tom@tromey.com>
785
786 * infcall.c (call_function_by_hand_dummy): Use std::string.
787
54f70bc1
TT
7882017-10-19 Tom Tromey <tom@tromey.com>
789
790 * mi/mi-main.c (mi_cmd_execute): Update.
791 * top.h (prepare_execute_command): Return scoped_value_mark.
792 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
793 Add move constructor.
794 * top.c (prepare_execute_command): Return scoped_value_mark.
795 (execute_command): Update.
796
63929e84
PA
7972017-10-19 Pedro Alves <palves@redhat.com>
798
799 * xml-support.c (xml_fetch_content_from_file): Check fread's
800 return.
801
a75868f5
PA
8022017-10-19 Pedro Alves <palves@redhat.com>
803
804 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
805 async.
806 (handle_error_fd): New function.
807 (ser_base_async): Add/delete an event loop file handler for
808 error_fd.
809
2edf834e
PA
8102017-10-19 Pedro Alves <palves@redhat.com>
811
812 * xml-support.c (xml_fetch_content_from_file): Don't read in
813 chunks. Instead use fseek to determine the file's size, and read
814 it in one go.
815
c8ba13ad
KS
8162017-11-18 Keith Seitz <keiths@redhat.com>
817
818 * c-exp.y (oper): Canonicalize conversion operators of user-defined
819 types.
820 Add whitespace to front of type name.
821
37534686
KS
8222017-10-18 Keith Seitz <keiths@redhat.com>
823
824 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
825 DW_AT_accessibility.
826
28c7c158
YQ
8272017-10-18 Yao Qi <yao.qi@linaro.org>
828
829 * features/tic6x-c62x-linux.c: Remove.
830
30f0b101
TT
8312017-10-17 Tom Tromey <tom@tromey.com>
832
833 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
834 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
835 (do_mixed_source_and_assembly): Likewise.
836
57e12da9
TT
8372017-10-17 Tom Tromey <tom@tromey.com>
838
839 * regcache.c (regcache::xfer_part): Remove assertion.
840
7b700999
PA
8412017-10-17 Pedro Alves <palves@redhat.com>
842
843 * xml-support.c (xml_fetch_content_from_file): Call
844 unique_ptr::release() instead unique_ptr::get() when passing
845 through xrealloc.
846
d3037ba6
YQ
8472017-10-17 Yao Qi <yao.qi@linaro.org>
848
849 * regcache.c (regcache::xfer_part): Remove parameters read and
850 write, add parameter is_raw. All callers are updated.
851
83d5a34d
KS
8522017-10-16 Keith Seitz <keiths@redhat.com>
853
854 * c-typeprint.c (enum access_specifier): Moved here from
855 c_type_print_base.
856 (output_access_specifier): New function.
857 (c_type_print_base): Consider typedefs when assessing
858 whether access labels are needed.
859 Use output_access_specifier as needed.
860 Output access specifier for typedefs, if needed.
861 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
862 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
863 fields.
864 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
865 accessor macros.
866
87028b87
TT
8672017-10-16 Tom Tromey <tom@tromey.com>
868
869 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
870 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
871 * target.c (target_fileio_read_stralloc): Update.
872 * sparc64-tdep.c (adi_is_addr_mapped): Update.
873 * target.h (target_fileio_read_stralloc): Return
874 unique_xmalloc_ptr.
875
b7b030ad
TT
8762017-10-16 Tom Tromey <tom@tromey.com>
877
878 * xml-syscall.c (xml_init_syscalls_info): Update.
879 * xml-support.c (xinclude_start_include): Update.
880 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
881 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
882 (xml_fetch_content_from_file): Likewise.
883 * osdata.c (get_osdata): Update.
884 * target.h (target_read_stralloc, target_get_osdata): Return
885 unique_xmalloc_ptr.
886 * solib-aix.c (solib_aix_get_library_list): Update.
887 * solib-target.c (solib_target_current_sos): Update.
888 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
889 * xml-tdesc.c (fetch_available_features_from_target): Update.
890 (target_fetch_description_xml): Update.
891 (file_read_description_xml): Update.
892 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
893 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
894 (remote_pid_to_exec_file): Update.
895 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
896 (target_get_osdata): Likewise.
897
b80406ac
TT
8982017-10-16 Tom Tromey <tom@tromey.com>
899
900 * remote.c (remote_register_number_and_offset): Use std::vector.
901 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
902 (putpkt_binary): Use gdb::def_vector.
903 (compare_sections_command): Use gdb::byte_vector.
904
a90ecff8
TT
9052017-10-16 Tom Tromey <tom@tromey.com>
906
907 * ppc-linux-nat.c (hwdebug_insert_point): Use
908 gdb::unique_xmalloc_ptr, XDUP.
909
2dc0e219
TT
9102017-10-16 Tom Tromey <tom@tromey.com>
911
912 * probe.c (parse_probes): Use std::string.
913 (info_probes_for_ops, enable_probes_command)
914 (disable_probes_command): Remove cleanups.
915
b05628f0
TT
9162017-10-16 Tom Tromey <tom@tromey.com>
917
918 * buildsym.c (block_compar): Remove.
919 (end_symtab_get_static_block): Use std::vector.
920
a79b1bc6
SM
9212017-10-16 Simon Marchi <simon.marchi@ericsson.com>
922
923 * memrange.h (struct mem_range): Define operator< and operator==.
924 (mem_range_s): Remove.
925 (DEF_VEC_O (mem_range_s)): Remove.
926 (normalize_mem_ranges): Change parameter type to std::vector.
927 * memrange.c (compare_mem_ranges): Remove.
928 (normalize_mem_ranges): Change parameter type to std::vector,
929 adjust to vector change.
930 * exec.c (section_table_available_memory): Return vector, remove
931 parameter.
932 (section_table_read_available_memory): Adjust to std::vector
933 change.
934 * remote.c (remote_read_bytes): Adjust to std::vector
935 change.
936 * tracepoint.h (traceframe_available_memory): Change parameter
937 type to std::vector.
938 * tracepoint.c (traceframe_available_memory): Change parameter
939 type to std::vector, adjust.
940 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
941 std::vector change.
942 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
943 unittests/memrange-selftests.c.
944 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
945 * gdb/unittests/memrange-selftests.c: New file.
946
63f0e930
PA
9472017-10-16 Pedro Alves <palves@redhat.com>
948
949 * elfread.c (probe_key_free): Rename range-for variable.
950 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
951 (find_probe_by_pc, collect_probes): Rename range-for variable.
952
c40c7bfc
YQ
9532017-10-16 Yao Qi <yao.qi@linaro.org>
954
955 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
956 * features/tic6x-c62x.c: Remove.
957 * features/tic6x-c64x-linux.c: Remove.
958 * features/tic6x-c64x.c: Remove.
959 * features/tic6x-c64xp-linux.c: Remove.
960 * features/tic6x-c64xp.c: Remove.
961 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
962 initialize_tdesc_tic6x_*_linux functions.
963 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
964 initialize_tdesc_tic6x_* functions.
965
df27ae6a
YQ
9662017-10-16 Yao Qi <yao.qi@linaro.org>
967
968 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
969 tic6x-c62x.
970 * regformats/tic6x-c62x.dat: Remove.
971 * regformats/tic6x-c64x.dat: Remove.
972 * regformats/tic6x-c64xp.dat: Remove.
973
86766165
SM
9742017-10-15 Simon Marchi <simon.marchi@ericsson.com>
975
976 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
977 (the !HAVE_LIBEXPAT version).
978
824dfcc3
SM
9792017-10-14 Simon Marchi <simon.marchi@ericsson.com>
980
981 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
982 const.
983
2098b393
SM
9842017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
985
986 * target.h: Include tracepoint.h.
987 (enum trace_find_type): Move to tracepoint.h.
988 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
989 * tracepoint.h: Don't include target.h
990 (enum trace_find_type): Move from target.h.
991 (parse_traceframe_info): Return a unique ptr.
992 * tracepoint.c (current_traceframe_info): Change type to unique
993 ptr.
994 (free_traceframe_info): Remove.
995 (clear_traceframe_info): Don't manually free
996 current_traceframe_info.
997 (free_result): Remove.
998 (parse_traceframe_info): Return a unique ptr.
999 (get_traceframe_info): Adjust to unique ptr.
1000 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1001 * remote.c (remote_traceframe_info): Return a unique ptr.
1002 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1003 ptr.
1004 * target-debug.h (target_debug_print_traceframe_info_up): New
1005 macro.
1006 * target-delegates.c: Regenerate.
1007
4cdd21a8
SM
10082017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * memrange.h (struct mem_range): Add constructors.
1011 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1012 std::vector<mem_range>.
1013 * tracepoint.c (free_traceframe_info): Don't manually free
1014 vector.
1015 (traceframe_info_start_memory): Adjust to vector change.
1016 (traceframe_available_memory): Likewise.
1017 * tracefile-tfile.c (build_traceframe_info): Likewise.
1018 * ctf.c (ctf_traceframe_info): Likewise.
1019
d0d292a2
SM
10202017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1021
1022 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1023 std::vector<int>.
1024 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1025 (traceframe_info_start_tvar): Adjust to vector change.
1026 (parse_traceframe_info): Allocate with new.
1027 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1028 vector change.
1029 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1030 change.
1031 tfile_traceframe_info): Allocate with new.
1032 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1033 change.
1034
8d3c73ef
SM
10352017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1036
1037 * tracepoint.c (traceframe_info): Rename to...
1038 (current_traceframe_info): ...this.
1039 (clear_traceframe_info): Adjust.
1040 (get_traceframe_info): Adjust.
1041
b129dcac
SM
10422017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1043
1044 * nat/linux-osdata.c: Include algorithm.
1045 (compare_processes): Remove.
1046 (struct pid_pgid_entry): New struct.
1047 (linux_xfer_osdata_processgroups): Use std::vector instead of
1048 XNEWVEC.
1049
af5bf4ad
SM
10502017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1051
1052 * objfiles.h: Don't include symfile.h.
1053 (struct partial_symbol): Remove forward-declaration.
1054 (struct objfile) <global_psymbols, static_psymbols>: Change type
1055 to std::vector<partial_symbol *>.
1056 * objfiles.c (objfile::objfile): Don't memset those fields.
1057 (objfile::~objfile): Don't free those fields.
1058 * psympriv.h (struct psymbol_allocation_list): Remove
1059 forward-declaration.
1060 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1061 to std::vector.
1062 (start_psymtab_common): Change parameters to std::vector.
1063 * psymtab.c: Include algorithm.
1064 (require_partial_symbols): Call shrink_to_fit.
1065 (find_pc_sect_psymbol): Adjust to vector change.
1066 (match_partial_symbol): Likewise.
1067 (lookup_partial_symbol): Likewise.
1068 (psym_relocate): Likewise.
1069 (dump_psymtab): Likewise.
1070 (recursively_search_psymtabs): Likewise.
1071 (compare_psymbols): Remove.
1072 (sort_pst_symbols): Adjust to vector change.
1073 (start_psymtab_common): Likewise.
1074 (end_psymtab_common): Likewise.
1075 (psymbol_bcache_full): De-constify return value.
1076 (add_psymbol_to_bcache): Likewise.
1077 (extend_psymbol_list): Remove.
1078 (append_psymbol_to_list): Adjust to vector change.
1079 (add_psymbol_to_list): Likewise.
1080 (init_psymbol_list): Likewise.
1081 (maintenance_info_psymtabs): Likewise.
1082 (maintenance_check_psymtabs): Likewise.
1083 * symfile.h (struct psymbol_allocation_list): Remove.
1084 * symfile.c (reread_symbols): Adjust to vector change.
1085 * dbxread.c (start_psymtab): Change type of parameters.
1086 (dbx_symfile_read): Adjust to vector change.
1087 (read_dbx_symtab): Likewise.
1088 (start_psymtab): Change type of parameters.
1089 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1090 (create_partial_symtab): Likewise.
1091 (add_partial_symbol): Likewise.
1092 (write_one_signatured_type): Likewise.
1093 (recursively_write_psymbols): Likewise.
1094 * mdebugread.c (parse_partial_symbols): Likewise.
1095 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1096 (scan_xcoff_symtab): Adjust to vector change.
1097 (xcoff_initial_scan): Likewise.
1098
3ec5942f
SM
10992017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1100
1101 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1102
2399fe6a
YQ
11032017-10-13 Yao Qi <yao.qi@linaro.org>
1104
1105 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1106 Remove s390x-*-expedite, add s390x-expedite.
1107
4bf3f4a8
YQ
11082017-10-13 Yao Qi <yao.qi@linaro.org>
1109
1110 * features/s390-gs-linux64.c: Regenerated.
1111 * features/s390x-gs-linux64.c: Regenerated.
1112
9e86da07
TT
11132017-10-13 Tom Tromey <tom@tromey.com>
1114
1115 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1116 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1117 delete.
1118 * symfile.c (symbol_file_add_with_addrs): Use new.
1119 (symbol_file_add_separate): Update comment.
1120 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1121 * jit.c (jit_object_close_impl): Use new.
1122 (jit_unregister_code): Use delete.
1123 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1124 (~objfile): Rename from free_objfile.
1125 (free_objfile_separate_debug, do_free_objfile_cleanup)
1126 (free_all_objfiles, objfile_purge_solibs): Use delete.
1127 * objfiles.h (struct objfile): Add constructor and destructor.
1128 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1129 (allocate_objfile, free_objfile): Don't declare.
1130 (struct objstats): Add initializers.
1131
c2508e90
SM
11322017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1133
1134 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1135 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1136 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1137 * gdbarch.h: Regenerate.
1138 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1139 Adjust comment.
1140 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1141 (i386_displaced_step_fixup): Adjust comment.
1142 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1143
a900ff72
TT
11442017-10-12 Tom Tromey <tom@tromey.com>
1145
1146 * prologue-value.h (pv_area::store_would_trash): Return bool.
1147 (pv_area::find_reg): Likewise.
1148 * prologue-value.c (pv_area::store_would_trash): Return bool.
1149 (pv_area::find_reg): Likewise.
1150
f7b7ed97
TT
11512017-10-12 Tom Tromey <tom@tromey.com>
1152
1153 * s390-linux-tdep.c (s390_store, s390_load)
1154 (s390_check_for_saved, s390_analyze_prologue): Update.
1155 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1156 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1157 * prologue-value.h (class pv_area): Move from prologue-value.c.
1158 Change names of members. Add constructor, destructor, member
1159 functions.
1160 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1161 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1162 (pv_area_fetch, pv_area_scan): Don't declare.
1163 * prologue-value.c (struct pv_area::area_entry): Now member of
1164 pv_area.
1165 (struct pv_area): Move to prologue-value.h.
1166 (pv_area::pv_area): Rename from make_pv_area.
1167 (pv_area::~pv_area): Rename from free_pv_area.
1168 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1169 (clear_entries, find_entry, overlaps, store_would_trash, store)
1170 (fetch, find_reg, scan): Now member of pv_area.
1171 Remove "area" argument. Update.
1172 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1173 Update.
1174 * mn10300-tdep.c (push_reg, check_for_saved)
1175 (mn10300_analyze_prologue): Update.
1176 * mep-tdep.c (is_arg_spill, check_for_saved)
1177 (mep_analyze_prologue): Update.
1178 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1179 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1180 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1181 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1182 Update.
1183 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1184 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1185
466eecee
SM
11862017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1187
1188 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1189 * linux-nat.c (linux_nat_delete_thread): New variable.
1190 (lwp_free): Invoke linux_nat_delete_thread if set.
1191 (linux_nat_set_delete_thread): New function.
1192 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1193 thread delete callback.
1194 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1195 (_initialize_arm_linux_nat): Assign thread delete callback.
1196 * s390-linux-nat.c (s390_delete_thread): New function.
1197 (_initialize_s390_nat): Assign thread delete callback.
1198 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1199 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1200 function.
1201 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1202 declaration.
1203 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1204 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1205
f71c8822
TT
12062017-10-09 Tom Tromey <tom@tromey.com>
1207
1208 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1209 std::string.
1210 * tui/tui-layout.c (enum tui_status): Use std::string.
1211
981a3fb3
TT
12122017-10-11 Tom Tromey <tom@tromey.com>
1213
1214 * gdbthread.h (thread_command): Constify.
1215 * inferior.h (detach_command): Constify.
1216 * top.h (set_history, show_history): Constify.
1217 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1218 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1219 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1220 * printcmd.c (set_command): Constify.
1221 (non_const_set_command): New function.
1222 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1223 * breakpoint.c (enable_command, disable_command, delete_command)
1224 (catch_command, tcatch_command, set_breakpoint_cmd)
1225 (show_breakpoint_cmd): Constify.
1226 * macrocmd.c (macro_command): Constify.
1227 * infcmd.c (unset_command, kill_command, detach_command)
1228 (info_proc_cmd): Constify.
1229 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1230 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1231 (info_auto_load_cmd): Constify.
1232 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1233 (unset_tdesc_cmd): Constify.
1234 * ada-lang.c (set_ada_command, show_ada_command)
1235 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1236 * guile/guile.c (set_guile_command, show_guile_command)
1237 (info_guile_command): Constify.
1238 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1239 Constify.
1240 * skip.c (skip_command): Constify.
1241 * compile/compile.c (_initialize_compile): Constify.
1242 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1243 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1244 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1245 (maint_btrace_pt_show_cmd): Constify.
1246 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1247 Constify.
1248 * python/python.c (user_show_python, user_set_python): Constify.
1249 * mips-tdep.c (set_mips_command, show_mips_command)
1250 (set_mipsfpu_command): Constify.
1251 * record-btrace.c (cmd_record_btrace_start)
1252 (cmd_set_record_btrace, cmd_show_record_btrace)
1253 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1254 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1255 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1256 Constify.
1257 * symfile.c (overlay_command): Constify.
1258 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1259 * cli/cli-logging.c (set_logging_command, show_logging_command):
1260 Constify.
1261 * cli/cli-dump.c (dump_command, append_command)
1262 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1263 (tekhex_dump_command, binary_dump_command)
1264 (binary_append_command): Constify.
1265 * cli/cli-decode.c (struct cmd_list_element): Change type of
1266 "fun".
1267 * cli/cli-cmds.c (info_command, show_command, set_debug)
1268 (show_debug): Constify.
1269 (show_command): Add non-const overload.
1270 * top.c (set_history, show_history): Constify.
1271 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1272 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1273 * target.c (target_command): Constify.
1274 * sparc64-tdep.c (info_adi_command): Constify.
1275 * record-full.c (cmd_record_full_start): Constify.
1276 (set_record_full_command): Constify. Fix typo.
1277 (show_record_full_command): Constify.
1278 * thread.c (thread_command, thread_apply_command): Constify.
1279 * memattr.c (dummy_cmd): Constify.
1280 * value.c (function_command): Constify.
1281 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1282 * probe.c (info_probes_command): Constify.
1283 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1284 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1285 (show_thread_cmd, set_thread_default_cmd)
1286 (show_thread_default_cmd): Constify.
1287 (check_empty): Constify.
1288 * tracepoint.c (tfind_command): Constify.
1289 * cp-support.c (maint_cplus_command): Constify.
1290 * windows-tdep.c (info_w32_command): Constify.
1291 * record.c (cmd_record_start, set_record_command)
1292 (show_record_command, info_record_command, cmd_record_goto):
1293 Constify.
1294 * ravenscar-thread.c (set_ravenscar_command)
1295 (show_ravenscar_command): Constify.
1296 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1297 Constify.
1298 (add_internal_problem_command): Remove casts.
1299 * arc-tdep.c (maintenance_print_arc_command): Constify.
1300 * valprint.c (set_print, show_print, set_print_raw)
1301 (show_print_raw): Constify.
1302 * maint.c (maintenance_command, maintenance_info_command)
1303 (maintenance_print_command, maintenance_set_cmd)
1304 (maintenance_show_cmd, set_per_command_cmd)
1305 (show_per_command_cmd, maintenance_check_command): Constify.
1306 * language.c (set_check, show_check): Constify.
1307 * typeprint.c (show_print_type, set_print_type): Constify.
1308 * go32-nat.c (go32_info_dos_command): Constify.
1309
fdf44873
TT
13102017-10-11 Tom Tromey <tom@tromey.com>
1311
1312 * breakpoint.c (prepare_re_set_context): Remove.
1313 (breakpoint_re_set_one): Update. Don't use cleanups.
1314 (breakpoint_re_set): Use scoped_restore, std::string, and
1315 scoped_restore_current_language.
1316
81b1e71c
TT
13172017-10-11 Tom Tromey <tom@tromey.com>
1318
1319 * breakpoint.c (commands_command_1): Use std::string.
1320 (cleanup_executing_breakpoints): Remove.
1321 (bpstat_do_actions_1): Use scoped_restore.
1322 (bpstat_check_watchpoint): Use std::string.
1323 (decode_static_tracepoint_spec): Likewise.
1324 (break_range_command): Likewise.
1325 (watch_command_1): Likewise.
1326 (compare_breakpoints): Change argument types.
1327 (clear_command): Use std::vector.
1328 (cleanup_executing_breakpoints): Remove.
1329 (update_global_location_list): Use unique_xmalloc_ptr.
1330 (strace_command): Remove unused declaration.
1331
4f9d9906
JB
13322017-10-11 John Baldwin <jhb@FreeBSD.org>
1333
1334 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1335 * NEWS: Mention new FreeBSD/arm native configuration.
1336 * configure.host: Add arm*-*-freebsd*.
1337 * configure.nat: Likewise.
1338 * arm-fbsd-nat.c: New file.
1339
7176dfd2
JB
13402017-10-11 John Baldwin <jhb@FreeBSD.org>
1341
1342 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1343 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1344 * NEWS: Mention new FreeBSD/arm target.
1345 * configure.tgt: Add arm*-*-freebsd*.
1346 * arm-fbsd-tdep.c: New file.
1347 * arm-fbsd-tdep.h: New file.
1348
fe220226
MR
13492017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1350
1351 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1352 `gdbarch_elfcore_write_linux_prpsinfo'.
1353 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1354 method.
1355 (elf_internal_linux_prpsinfo): Remove declaration.
1356 * gdbarch.h: Regenerate.
1357 * gdbarch.c: Regenerate.
1358
a2f63b2e
MR
13592017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1360
1361 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1362 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1363
458ca1d0
PA
13642017-10-11 Pedro Alves <palves@redhat.com>
1365
1366 * breakpoint.c (reattach_breakpoints): Delete.
1367 * breakpoint.h (reattach_breakpoints): Delete.
1368
905014d7
SM
13692017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1370
1371 * symfile.c (registered_sym_fns): Make struct, not typedef.
1372 (DEF_VEC_O (registered_sym_fns)): Remove.
1373 (symtab_fns): Change type to std::vector.
1374 (add_symtab_fns): Adjust.
1375 (find_sym_fns): Adjust.
1376
56d704da
AK
13772017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1378
1379 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1380 * arc-tdep.h (arc_arch_is_em): New function.
1381 (arc_arch_is_hs): Likewise.
1382
7fa29be9
EB
13832017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1384
1385 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1386 parentheses in the declaration.
1387 (macro_lookup_inclusion): Likewise.
1388 (macro_lookup_definition): Likewise.
1389 * p-lang.h (pascal_builtin_types): Likewise.
1390 * tui/tui-data.c (tui_win_list): Likewise.
1391 * tui/tui-data.h (tui_win_list): Likewise.
1392 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1393
d9b477e3
KB
13942017-10-11 Mark Rages <markrages@gmail.com>
1395
1396 * target-memory.c (block_boundaries): Fix for block address not
1397 aligned on block size.
1398
65630365
PA
13992017-10-10 Pedro Alves <palves@redhat.com>
1400 Tom Tromey <tom@tromey.com>
1401
1402 * breakpoint.c (struct captured_breakpoint_query_args)
1403 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1404 (print_breakpoint): New.
1405 * breakpoint.h (print_breakpoint): Declare.
1406 * common/common-exceptions.h (enum return_reason): Remove
1407 references to catch_exceptions.
1408 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1409 Delete.
1410 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1411 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1412 * gdb.h: Delete.
1413 * gdbthread.h (thread_select): Declare.
1414 * mi/mi-cmd-break.c: Don't include gdb.h.
1415 (breakpoint_notify): Use print_breakpoint.
1416 * mi/mi-cmd-catch.c: Don't include gdb.h.
1417 * mi/mi-interp.c: Don't include gdb.h.
1418 (mi_print_breakpoint_for_event): New.
1419 (mi_breakpoint_created, mi_breakpoint_modified): Use
1420 mi_print_breakpoint_for_event.
1421 * mi/mi-main.c: Don't include gdb.h.
1422 (mi_cmd_thread_select): Parse the global thread ID here. Use
1423 thread_select instead of gdb_thread_select.
1424 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1425 of using gdb_list_thread_ids.
1426 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1427 FILEIO_ENOSYS here.
1428 (remote_fileio_request): Use TRY/CATCH instead of
1429 catch_exceptions.
1430 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1431 (symbol_file_add_from_memory_wrapper): Delete.
1432 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1433 * thread.c: Don't include gdb.h.
1434 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1435 (thread_alive): Use thread_select.
1436 (do_captured_thread_select): Delete, parts salvaged as ...
1437 (thread_select): ... this new function.
1438 (gdb_thread_select): Delete.
1439
bf469271
PA
14402017-10-10 Pedro Alves <palves@redhat.com>
1441 Tom Tromey <tom@tromey.com>
1442
1443 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1444 and reverse logic.
1445 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1446 No longer macros. Instead ...
1447 (enum wp_check_result): They're now values of this new
1448 enumeration.
1449 (watchpoint_check): Change return type to wp_check_result and
1450 parameter type to bpstat.
1451 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1452 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1453 catch_errors. Reverse logic of watchpoint_check call.
1454 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1455 pointer as parameter.
1456 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1457 * common/common-exceptions.c (throw_exception_sjlj): Update
1458 comments to avoid mentioning catch_errors.
1459 * exceptions.c (catch_errors): Delete.
1460 * exceptions.h: Update comments to avoid mentioning catch_errors.
1461 (catch_errors_ftype, catch_errors): Delete.
1462 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1463 (hook_stop_stub): Delete.
1464 (restore_selected_frame): Change return type to void, and
1465 parameter type to const frame_id &.
1466 (restore_infcall_control_state): Use TRY/CATCH instead of
1467 catch_errors.
1468 * main.c (captured_command_loop): Return void and remove
1469 parameter. Remove references to catch_errors.
1470 (captured_main): Use TRY/CATCH instead of catch_errors.
1471 * objc-lang.c (objc_submethod_helper_data)
1472 (find_objc_msgcall_submethod_helper): Delete.
1473 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1474 catch_errors.
1475 * record-full.c (record_full_message): Return void.
1476 (record_full_message_args, record_full_message_wrapper): Delete.
1477 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1478 instead of catch_errors.
1479 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1480 parameter type to int.
1481 * solib-darwin.c (open_symbol_file_object): Ditto.
1482 * solib-dsbt.c (open_symbol_file_object): Ditto.
1483 * solib-frv.c (open_symbol_file_object): Ditto.
1484 * solib-svr4.c (open_symbol_file_object): Ditto.
1485 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1486 * solib.c (update_solib_list): Use TRY/CATCH instead of
1487 catch_errors.
1488 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1489 Change type.
1490 * symmisc.c (struct print_symbol_args): Remove.
1491 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1492 (print_symbol): Change type.
1493 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1494 and remove parameters.
1495 (catch_errors): New.
1496 (get_windows_debug_event): Adjust.
1497
1a56bfa5
TT
14982017-10-09 Tom Tromey <tom@tromey.com>
1499
1500 * mi/mi-main.c (free_splay_tree): Remove.
1501 (list_available_thread_groups): Use splay_tree_up.
1502 * common/gdb_splay_tree.h: New file.
1503
0c478e2d
TT
15042017-10-09 Tom Tromey <tom@tromey.com>
1505
1506 * mi/mi-main.c (do_nothing): Remove.
1507 (list_available_thread_groups): Update.
1508
cbd2b4e3
PA
15092017-10-09 Pedro Alves <palves@redhat.com>
1510
1511 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1512 reading registers when switching context.
1513
a181c0bf
JB
15142017-10-09 John Baldwin <jhb@FreeBSD.org>
1515
1516 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1517 (fbsd_convert_siginfo): Likewise.
1518 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1519
6e66f753
SM
15202017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1521
1522 * configure.ac (try_guile_versions): Remove guile-2.2.
1523 * configure: Regenerate.
1524
890e9790
TT
15252017-10-09 Tom Tromey <tom@tromey.com>
1526
1527 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1528 (COMPILE.pre): Use $(CXX).
1529
109483d9
PA
15302017-10-09 Pedro Alves <palves@redhat.com>
1531
1532 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1533 Use bool.
1534 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1535 * cp-support.h (cp_remove_params): Now returns a
1536 gdb::unique_xmalloc_ptr.
1537 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1538 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1539 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1540 returning a gdb::unique_xmalloc_ptr.
1541 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1542 * stack.c (find_frame_funname): Adjust to cp_remove_params
1543 returning a gdb::unique_xmalloc_ptr.
1544
791afaa2
TT
15452017-10-08 Tom Tromey <tom@tromey.com>
1546
1547 * dwarf2read.c (dwarf2_get_dwz_file): Use
1548 gdb::unique_xmalloc_ptr.
1549 (find_slot_in_mapped_hash): Likewise.
1550 (dwarf2_physname): Likewise.
1551 (create_dwo_unit_in_dwp_v1): Use std::string.
1552 (create_dwo_unit_in_dwp_v2): Likewise.
1553 (lookup_dwo_cutu): Likewise.
1554 (inherit_abstract_dies): Use std::vector.
1555 (read_array_type): Likewise.
1556 (dwarf_decode_macros): Remove unused declaration.
1557 (unsigned_int_compar): Remove.
1558 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1559 (psymtabs_addrmap_cleanup): Remove.
1560
30a9c02f
TT
15612017-10-08 Tom Tromey <tom@tromey.com>
1562
1563 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1564 * frame.h (frame_cleanup_after_sniffer): Declare.
1565 (frame_prepare_for_sniffer): Return void.
1566 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1567 type of argument.
1568 (frame_prepare_for_sniffer): Return void.
1569
757325a3
TT
15702017-10-08 Tom Tromey <tom@tromey.com>
1571
1572 * utils.h (make_cleanup_value_free): Remove.
1573 * utils.c (do_value_free, struct cleanup): Remove.
1574 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1575 Use gdb_value_up.
1576 * value.h (struct value_deleter): New.
1577 (gdb_value_up): New typedef.
1578
b9c04fb2
TT
15792017-10-08 Tom Tromey <tom@tromey.com>
1580
1581 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1582 (make_cleanup_free_search_symbols): Remove.
1583 (search_symbols): Return std::vector.
1584 (symbol_search::compare_search_syms): Now member of
1585 symbol_search. Change arguments.
1586 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1587 (symtab_symbol_info, rbreak_command): Update.
1588 * symtab.h (struct symbol_search) <next>: Remove.
1589 Add constructors.
1590 (symbol_search::operator<): New function.
1591 (symbol_search::operator==): New function.
1592 (search_symbols): Remove std::vector.
1593 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1594 (symbol_search::compare_search_syms): Declare.
1595
0d28b0a5
YQ
15962017-10-06 Yao Qi <yao.qi@linaro.org>
1597
1598 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1599 arch/aarch64-insn.o.
1600 Remove one rule.
1601 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1602
71917808
YQ
16032017-10-06 Yao Qi <yao.qi@linaro.org>
1604
1605 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1606 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1607 arch/arm-linux.o respectively.
1608 * configure.tgt: Likewise.
1609
2081b2b2
YQ
16102017-10-06 Yao Qi <yao.qi@linaro.org>
1611
1612 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1613 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1614
a1b85d28
PA
16152017-10-06 Pedro Alves <palves@redhat.com>
1616
1617 * windows-nat.c: Include <algorithm>.
1618
d97987e2
YQ
16192017-10-06 Yao Qi <yao.qi@linaro.org>
1620
1621 * configure.tgt (i386_tobjs): New variable.
1622 (amd64_tobjs): New variable.
1623 Set $cpu_obs and $os_obs.
1624
f38307f5
YQ
16252017-10-06 Yao Qi <yao.qi@linaro.org>
1626
1627 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1628 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1629 (clean): Remove object files and dependency files.
1630 (distclean): Remove the directory.
1631 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1632 * configure: Re-generated.
1633 * configure.tgt: Replace amd64.o with arch/amd64.o.
1634
2f924de6
JM
16352017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1636
1637 PR build/22188
1638 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1639 and SETEND.
1640
2fd9d7ca
PA
16412017-10-05 Pedro Alves <palves@redhat.com>
1642
1643 * linux-nat.c (linux_child_follow_fork): When following the parent
1644 and detaching the child, consult the parent thread's architecture
1645 instead of the child's.
1646
d13b8493
UW
16472017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1648
1649 * ax.h: Do not include "doublest.h".
1650 (union agent_val): Remove.
1651
3b4b2f16
UW
16522017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1653
1654 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1655 (decimal_to_string): Return std::string object.
1656 (decimal_from_string): Accept std::string object. Return bool.
1657 (decimal_from_integral, decimal_from_doublest): Remove.
1658 (decimal_from_longest): Add prototype.
1659 (decimal_from_ulongest): Likewise.
1660 (decimal_to_longest): Likewise.
1661 (decimal_from_doublest): Likewise.
1662 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1663 (MAX_DECIMAL_STRING): Move here.
1664 (decimal_to_string): Return std::string object.
1665 (decimal_from_string): Accept std::string object. Return bool.
1666 (decimal_from_integral): Remove, replace by ...
1667 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1668 (decimal_to_longest): New function.
1669 (decimal_from_floating): Remove, replace by ...
1670 (decimal_from_doublest): ... this new function.
1671 (decimal_to_doublest): Update to new decimal_to_string interface.
1672
1673 * value.c (unpack_long): Use decimal_to_longest.
1674 * valops.c (value_cast): Use decimal_from_doublest instead of
1675 decimal_from_floating. Use decimal_from_[u]longest isntead of
1676 decimal_from_integral.
1677 * valarith.c (value_args_as_decimal): Likewise.
1678 * valprint.c (print_decimal_floating): Update to new
1679 decimal_to_string interface.
1680 * printcmd.c (printf_decfloat): Likewise.
1681 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1682
1841ee5d
UW
16832017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1684
1685 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1686 * gdbtypes.c: Include "floatformat.h".
1687 * value.c: Likewise.
1688 * m68k-tdep.c: Likewise.
1689
1690 * findvar.c: Do not include "floatformat.h".
1691 * amd64-darwin-tdep.c: Likewise.
1692 * arm-linux-tdep.c: Likewise.
1693 * i386-darwin-tdep.c: Likewise.
1694 * i387-tdep.c: Likewise.
1695 * m68k-linux-tdep.c: Likewise.
1696 * mep-tdep.c: Likewise.
1697 * mips-tdep.c: Likewise.
1698 * nios2-tdep.c: Likewise.
1699 * s390-linux-tdep.c: Likewise.
1700 * sparc-obsd-tdep.c: Likewise.
1701 * sparc-tdep.c: Likewise.
1702 * sparc64-tdep.c: Likewise.
1703 * spu-tdep.c: Likewise.
1704 * tic6x-tdep.c: Likewise.
1705 * tilegx-tdep.c: Likewise.
1706 * vax-tdep.c: Likewise.
1707 * xstormy16-tdep.c: Likewise.
1708 * xtensa-tdep.c: Likewise.
1709
1710 * top.c: Do not include "doublest.h".
1711 * aarch64-tdep.c: Likewise.
1712 * alpha-tdep.c: Likewise.
1713 * arm-linux-tdep.c: Likewise.
1714 * m68k-linux-tdep.c: Likewise.
1715 * tilegx-tdep.c: Likewise.
1716 * xstormy16-tdep.c: Likewise.
1717
a80a6471
JB
17182017-10-05 John Baldwin <jhb@FreeBSD.org>
1719
1720 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1721 (mipsn32_fbsd_sigframe): Define.
1722 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1723 for FreeBSD/mipsn32.
1724
12c4bd7f
JB
17252017-10-05 John Baldwin <jhb@FreeBSD.org>
1726
1727 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1728 AT_HWCAP.
1729
c91933e9
TG
17302017-10-05 Tristan Gingold <tgingold@free.fr>
1731
1732 * MAINTAINERS (Misc): Update my email address.
1733
5cd63fda
PA
17342017-10-04 Pedro Alves <palves@redhat.com>
1735
1736 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1737 it instead of target_gdbarch.
1738 (get_remote_state, get_remote_packet_size): Adjust
1739 get_remote_arch_state calls, passing down target_gdbarch
1740 explicitly.
1741 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
1742 'gdbarch' and use it instead of target_gdbarch.
1743 (get_memory_packet_size): Adjust get_remote_arch_state calls,
1744 passing down target_gdbarch explicitly.
1745 (struct stop_reply) <arch>: New field.
1746 (remote_parse_stop_reply): Use the stopped thread's architecture,
1747 not the current inferior's. Save the architecture in the
1748 stop_reply.
1749 (process_stop_reply): Use the stop reply's architecture.
1750 (process_g_packet, remote_fetch_registers)
1751 (remote_prepare_to_store, store_registers_using_G)
1752 (remote_store_registers): Adjust get_remote_arch_state calls,
1753 using the regcache's architecture.
1754 (remote_get_trace_status): Adjust get_remote_arch_state calls,
1755 passing down target_gdbarch explicitly.
1756 * spu-multiarch.c (spu_thread_architecture): Defer to the target
1757 beneath instead of calling target_gdbarch.
1758 * target.c (default_thread_architecture): Use the specified
1759 inferior's architecture, instead of the current inferior's
1760 architecture (via target_gdbarch).
1761
ed4227b7
PA
17622017-10-04 Pedro Alves <palves@redhat.com>
1763
1764 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
1765 case.
1766 (regcache_print): Handle !target_has_registers here instead.
1767
55b11ddf
PA
17682017-10-04 Pedro Alves <palves@redhat.com>
1769
1770 * frame.c (create_test_frame): Delete.
1771 * frame.h (create_test_frame): Delete.
1772 * gdbarch-selftests.c: Include gdbthread.h and target.h.
1773 (class regcache_test): Delete.
1774 (test_target_has_registers, test_target_has_stack)
1775 (test_target_has_memory, test_target_prepare_to_store)
1776 (test_target_store_registers): New functions.
1777 (test_target_ops): New class.
1778 (register_to_value_test): Error out if there's already a
1779 process_stratum (or higher) target pushed. Create a fuller mock
1780 environment, with mock target_ops, inferior, address space, thread
1781 and inferior_ptid.
1782 * progspace.c (struct address_space): Move to ...
1783 * progspace.h (struct address_space): ... here.
1784 * regcache.h (regcache::~regcache, regcache::raw_write)
1785 [GDB_SELF_TEST]: No longer virtual.
1786
4c71c105
SM
17872017-10-04 Simon Marchi <simon.marchi@ericsson.com>
1788
1789 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
1790
73dcd72d
PA
17912017-10-04 Pedro Alves <palves@redhat.com>
1792
1793 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
1794 out of 'between TRY and CATCH'.
1795
44704526
PA
17962017-10-04 Pedro Alves <palves@redhat.com>
1797
1798 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
1799 * common/common-exceptions.h (TRY): Open an outermost scope.
1800 Expand intro comment.
1801 (CATCH): Reindent.
1802 (END_CATCH): Close the outermost scope.
1803 * completer.c (complete_line_internal): Add missing END_CATCH.
1804
bc3b087d
SDJ
18052017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1806
1807 * NEWS (Changes since GDB 8.0): Add entry about new
1808 'set-cwd-on-gdbserver' feature.
1809 (New remote packets): Add entry for QSetWorkingDir.
1810 * common/common-inferior.h (set_inferior_cwd): New prototype.
1811 * infcmd.c (set_inferior_cwd): Remove "static".
1812 (show_cwd_command): Expand text to include remote debugging.
1813 * remote.c: Add PACKET_QSetWorkingDir.
1814 (remote_protocol_features) <QSetWorkingDir>: New entry for
1815 PACKET_QSetWorkingDir.
1816 (extended_remote_set_inferior_cwd): New function.
1817 (extended_remote_create_inferior): Call
1818 "extended_remote_set_inferior_cwd".
1819 (_initialize_remote): Call "add_packet_config_cmd" for
1820 QSetWorkingDir.
1821
d092c5a2
SDJ
18222017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1823
1824 * NEWS (New commands): Mention "set/show cwd".
1825 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
1826 "cd" command's help text.
1827 * common/common-inferior.h (get_inferior_cwd): New prototype.
1828 * infcmd.c (inferior_cwd_scratch): New global variable.
1829 (set_inferior_cwd): New function.
1830 (get_inferior_cwd): Likewise.
1831 (set_cwd_command): Likewise.
1832 (show_cwd_command): Likewise.
1833 (_initialize_infcmd): Add "set/show cwd" commands.
1834 * inferior.h (class inferior) <cwd>: New field.
1835 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
1836 (fork_inferior): Change inferior's cwd before its execution.
1837 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
1838 to CreateProcess.
1839
7da0a886
SDJ
18402017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1841
1842 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
1843 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
1844 (COMMON_OBS): Add gdb_tilde_expand.o.
1845 * common/gdb_tilde_expand.c: New file.
1846 * common/gdb_tilde_expand.h: Likewise.
1847
db8dd160
MR
18482017-10-03 Maciej W. Rozycki <macro@imgtec.com>
1849
1850 * gdbarch.sh (objfile): Remove duplicate declaration.
1851 * gdbarch.h: Regenerate.
1852
f8bfbf22
TT
18532017-10-03 Tom Tromey <tom@tromey.com>
1854
1855 * utils.c (internal_vproblem): Use string_vprintf.
1856
5178ed48
TT
18572017-10-03 Tom Tromey <tom@tromey.com>
1858
1859 * printcmd.c (info_symbol_command): Use std::string.
1860
8cff8730
TT
18612017-10-03 Tom Tromey <tom@tromey.com>
1862
1863 * top.c (gdb_safe_append_history): Use std::string.
1864
895b8f30
TT
18652017-10-03 Tom Tromey <tom@tromey.com>
1866
1867 * event-top.c (stdin_event_handler): Update.
1868 * main.c (captured_main_1): Update.
1869 * top.h (make_delete_ui_cleanup): Remove.
1870 (struct ui): Add constructor and destructor.
1871 (new_ui, delete_ui): Remove.
1872 * top.c (make_delete_ui_cleanup): Remove.
1873 (new_ui_command): Use std::unique_ptr.
1874 (delete_ui_cleanup): Remove.
1875 (ui::ui): Rename from new_ui. Update.
1876 (free_ui): Remove.
1877 (ui::~ui): Rename from delete_ui. Update.
1878
0efef640
TT
18792017-10-03 Tom Tromey <tom@tromey.com>
1880
1881 * symfile.c (load_progress): Use gdb::byte_vector.
1882
245ad7d3
TT
18832017-10-03 Tom Tromey <tom@tromey.com>
1884
1885 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
1886 declaration.
1887 * printcmd.c (x_command): Remove unused declaration.
1888 * symfile.c (symbol_file_command): Remove unused declaration.
1889
e05550d7
TT
18902017-10-03 Tom Tromey <tom@tromey.com>
1891
1892 * utils.c (internal_vproblem): Use std::string.
1893 (defaulted_query): Likewise.
1894
b95de2b7
TT
18952017-10-03 Tom Tromey <tom@tromey.com>
1896
1897 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
1898 * top.c (execute_command_to_string): Update.
1899 * utils.c (make_cleanup_restore_page_info): Remove.
1900 (do_restore_page_info_cleanup): Remove.
1901 (set_batch_flag_and_restore_page_info):
1902 New.
1903 (make_cleanup_restore_page_info): Remove.
1904 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1905 (~set_batch_flag_and_restore_page_info): New
1906 (make_cleanup_restore_uinteger): Remove.
1907 (make_cleanup_restore_integer): Remove.
1908 (struct restore_integer_closure): Remove.
1909 (restore_integer): Remove.
1910 * utils.h (struct set_batch_flag_and_restore_page_info): New
1911 class.
1912 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1913 (make_cleanup_restore_page_info): Remove.
1914 (make_cleanup_restore_uinteger) Remove.
1915 (make_cleanup_restore_integer) Remove.
1916
07036511
TT
19172017-10-03 Tom Tromey <tom@tromey.com>
1918
1919 * record-full.h (record_full_gdb_operation_disable_set): Return
1920 scoped_restore_tmpl<int>.
1921 * infrun.c (adjust_pc_after_break): Update.
1922 (handle_signal_stop): Update.
1923 * record-full.c (record_full_gdb_operation_disable_set): Return
1924 scoped_restore_tmpl<int>.
1925 (record_full_wait_1, record_full_insert_breakpoint)
1926 (record_full_remove_breakpoint, record_full_save)
1927 (record_full_goto_insn): Update.
1928
45320ffa
TT
19292017-10-02 Tom Tromey <tom@tromey.com>
1930
1931 PR rust/22236:
1932 * rust-lang.c (rust_val_print_str): New function.
1933 (val_print_struct): Call it.
1934 (rust_subscript): Preserve name of slice type.
1935
b3e3859b
TT
19362017-10-02 Tom Tromey <tom@tromey.com>
1937
1938 * rust-lang.c (rust_subscript): Handle slices in
1939 EVAL_AVOID_SIDE_EFFECTS case.
1940
01af5e0d
TT
19412017-10-02 Tom Tromey <tom@tromey.com>
1942
1943 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
1944
888e3ddb
TT
19452017-10-02 Tom Tromey <tom@tromey.com>
1946
1947 * rust-lang.h (rust_slice_type): Add "extern".
1948
cc536b21
PA
19492017-10-02 Tom Tromey <tom@tromey.com>
1950 Pedro Alves <palves@redhat.com>
1951
1952 * ada-lang.h (ada_exc_info::operator<): Make const.
1953 (ada_exc_info::operator==): Make const.
1954 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
1955 Make const.
1956
386c8614
TT
19572017-09-29 Tom Tromey <tom@tromey.com>
1958
1959 * target.c (read_whatever_is_readable): Change type of "result".
1960 Update.
1961 (free_memory_read_result_vector): Remove.
1962 (read_memory_robust): Change return type. Update.
1963 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
1964 bin2hex, std::string.
1965 * target.h (memory_read_result_s): Remove typedef.
1966 (free_memory_read_result_vector): Remove.
1967 (read_memory_robust): Return std::vector.
1968
789c4b5e
TT
19692017-09-29 Tom Tromey <tom@tromey.com>
1970
1971 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
1972
ab816a27
TT
19732017-09-29 Tom Tromey <tom@tromey.com>
1974
1975 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
1976 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
1977 operator< and operator==.
1978 (ada_exceptions_list): Return a std::vector.
1979 * ada-lang.c (ada_exc_info::operator<): Rename from
1980 compare_ada_exception_info.
1981 (ada_exc_info::operator==): New.
1982 (sort_remove_dups_ada_exceptions_list): Change type of
1983 "exceptions".
1984 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
1985 (ada_add_global_exceptions): Likewise.
1986 (ada_exceptions_list_1): Return a std::vector.
1987 (ada_exceptions_list): Likewise.
1988
52f9abe4
TT
19892017-09-29 Tom Tromey <tom@tromey.com>
1990
1991 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
1992 'std::set *'.
1993 (print_one_inferior): Update.
1994 (free_vector_of_ints): Remove.
1995 (list_available_thread_groups): Change "ids" to std::set.
1996 (mi_cmd_list_thread_groups): Update.
1997 (struct collect_cores_data) <core>: Now a std::set.
1998 (collect_cores): Update.
1999 (unique): Remove.
2000 (print_one_inferior): Update.
2001
dcd5ddcc
TT
20022017-09-29 Tom Tromey <tom@tromey.com>
2003
2004 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2005 (mi_execute_async_cli_command): Likewise.
2006 (mi_cmd_trace_frame_collected): Use field_fmt.
2007
45d288cc
TT
20082017-09-29 Tom Tromey <tom@tromey.com>
2009
2010 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2011 gdb::byte_vector.
2012
6afe2f4a
TT
20132017-09-29 Tom Tromey <tom@tromey.com>
2014
2015 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2016
9813429a
TT
20172017-09-29 Tom Tromey <tom@tromey.com>
2018
2019 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2020
2d6960b4
TT
20212017-09-29 Tom Tromey <tom@tromey.com>
2022
2023 * varobj.h (varobj_gen_name): Return std::string.
2024 * varobj.c (varobj_gen_name): Return std::string.
2025 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2026 (mi_cmd_var_delete): Don't copy "name".
2027
784c453a
TT
20282017-09-29 Tom Tromey <tom@tromey.com>
2029
2030 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2031 (mi_cmd_break_insert_1): Update.
2032
a9bc57b9
TT
20332017-09-29 Tom Tromey <tom@tromey.com>
2034
2035 * target.h (make_scoped_defer_target_commit_resume): Update.
2036 * target.c (make_scoped_defer_target_commit_resume): Rename from
2037 make_cleanup_defer_target_commit_resume. Return a
2038 scoped_restore.
2039 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2040
9754d8c4
TT
20412017-09-29 Tom Tromey <tom@tromey.com>
2042
2043 * main.c (captured_main_1): Remove unused declaration.
2044 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2045
99ef965c
TT
20462017-09-29 Tom Tromey <tom@tromey.com>
2047
2048 * symtab.c (search_symbols): Remove unused outer cleanup.
2049 (make_source_files_completion_list): Remove unused declaration.
2050
42518ba7
TT
20512017-09-29 Tom Tromey <tom@tromey.com>
2052
2053 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2054
726b2169
TT
20552017-09-29 Tom Tromey <tom@tromey.com>
2056
2057 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2058 gdb::byte_vector.
2059
55b06432
TT
20602017-09-29 Tom Tromey <tom@tromey.com>
2061
2062 * complaints.c (vcomplaint): Use std::string.
2063
8abcee91
TT
20642017-09-29 Tom Tromey <tom@tromey.com>
2065
2066 * tracepoint.c (trace_variable_command): Use std::string.
2067 (encode_actions_1): Remove unused declarations.
2068 (create_tsv_from_upload): Use std::string.
2069
6ad94bc7
TT
20702017-09-29 Tom Tromey <tom@tromey.com>
2071
2072 * cp-support.c (gdb_demangle): Use std::string.
2073
2003f3d8
TT
20742017-09-29 Tom Tromey <tom@tromey.com>
2075
2076 * stack.c (parse_frame_specification): Use std::string
2077 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2078
8f8accb5
TT
20792017-09-29 Tom Tromey <tom@tromey.com>
2080
2081 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2082
200aa7b1
TT
20832017-09-29 Tom Tromey <tom@tromey.com>
2084
2085 * utils.c (vfprintf_maybe_filtered): Use std::string.
2086 (vfprintf_unfiltered): Likewise.
2087
606aae8a
TT
20882017-09-29 Tom Tromey <tom@tromey.com>
2089
2090 * event-top.c (top_level_prompt): Return std::string.
2091 (display_gdb_prompt): Update.
2092
bd413795
TT
20932017-09-29 Tom Tromey <tom@tromey.com>
2094
2095 * unittests/common-utils-selftests.c (format): New function.
2096 (string_vprintf_tests): New function.
2097 (_initialize_common_utils_selftests): Register new tests.
2098 * common/common-utils.c (string_vprintf): New function.
2099 * common/common-utils.h (string_vprintf): Declare.
2100
256642e8
PA
21012017-09-29 Pedro Alves <palves@redhat.com>
2102
2103 * common/rsp-low.c (unpack_varlen_hex): Constify.
2104 * common/rsp-low.h (unpack_varlen_hex): Constify.
2105 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2106 Constify.
2107 * remote.c (remote_set_permissions, read_ptid)
2108 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2109 (remote_static_tracepoint_marker_at)
2110 (remote_static_tracepoint_markers_by_strid)
2111 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2112 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2113 (parse_tracepoint_definition, parse_tsv_definition)
2114 (parse_static_tracepoint_marker_definition): Constify.
2115 * tracepoint.h (parse_static_tracepoint_marker_definition)
2116 (parse_trace_status, parse_tracepoint_status)
2117 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2118
b6bb3468
PA
21192017-09-29 Pedro Alves <palves@redhat.com>
2120
2121 * remote.c (target_buf, target_buf_size): Delete.
2122 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2123 Use the connection's packet buffer instead.
2124 All callers adjusted.
2125 (_initialize_remote): Remove references to target_buf and
2126 target_buf_size.
2127
b2f8eb7a
PA
21282017-09-28 Pedro Alves <palves@redhat.com>
2129
2130 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2131 unittests/common-utils-selftests.c.
2132 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2133 (COMMON_OBS): Remove utils-selftests.o.
2134 * utils-selftests.c: Move to ...
2135 * unittests/common-utils-selftests.c: ... here and rename self
2136 test to "string_printf".
2137
08302ed2
DE
21382017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2139
2140 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2141 having NULL cus or tus.
2142
96a5a1d3
UW
21432017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2144
2145 * arm-tdep.c: (convert_from_extended): Remove.
2146 (convert_to_extended): Likewise.
2147 (arm_extract_return_value): Use convert_typed_floating.
2148 (arm_store_return_value): Likewise.
2149
2150 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2151 * sh-tdep.c: Do not include "floatformat.h".
2152 (sh_littlebyte_bigword_type): New function.
2153 (sh_register_convert_to_virtual): Use convert_typed_floating.
2154 (sh_register_convert_to_raw): Likewise.
2155 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2156 (sh64_littlebyte_bigword_type): New function.
2157 (sh64_extract_return_value): Use convert_typed_floating.
2158 (sh64_register_convert_to_virtual): Likewise.
2159 (sh64_register_convert_to_raw): Likewise.
2160
0db7851f
UW
21612017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2162
2163 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2164 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2165
2166 * gdbtypes.h (union type_specific): Make field floatformat hold
2167 just a single struct floatformat, not an array.
2168 (floatformat_from_type): Move here.
2169 * gdbtypes.c (floatformat_from_type): Move here. Update to
2170 changed TYPE_FLOATFORMAT definition.
2171 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2172 (recursive_dump_type): Likewise.
2173 (init_float_type): Install correct floatformat for byte order.
2174 (arch_float_type): Likewise.
2175
77b7c781
UW
21762017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2177
2178 * gdbtypes.c (init_type): Change incoming argument from
2179 length-in-bytes to length-in-bits. Assert length is a
2180 multiple of TARGET_CHAR_BITS.
2181 (arch_type, arch_flags_type): Likewise.
2182 (init_integer_type): Update call to init_type.
2183 (init_character_type): Likewise.
2184 (init_boolean_type): Likewise.
2185 (init_float_type): Likewise.
2186 (init_decfloat_type): Likewise.
2187 (init_complex_type): Likewise.
2188 (init_pointer_type): Likewise.
2189 (objfile_type): Likewise.
2190 (arch_integer_type): Update call to arch_type.
2191 (arch_character_type): Likewise.
2192 (arch_boolean_type): Likewise.
2193 (arch_float_type): Likewise.
2194 (arch_decfloat_type): Likewise.
2195 (arch_complex_type): Likewise.
2196 (arch_pointer_type): Likewise.
2197 (gdbtypes_post_init): Likewise.
2198
2199 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2200 (read_base_type): Likewise.
2201 * mdebugread.c (basic_type): Likewise.
2202 * stabsread.c (dbx_init_float_type): Likewise.
2203 (rs6000_builtin_type): Likewise.
2204 (read_range_type): Likewise. Also, fix call to init_integer_type
2205 with erroneous length argument.
2206
2207 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2208 * d-lang.c (build_d_types): Likewise.
2209 * f-lang.c (build_fortran_types): Likewise.
2210 * go-lang.c (build_go_types): Likewise.
2211 * opencl-lang.c (build_opencl_types): Likewise.
2212 * jit.c (finalize_symtab): Likewise.
2213 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2214 (build_std_type_info_type): Likewise.
2215 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2216 update call to arch_flags_type.
2217
2218 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2219 arch_type.
2220 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2221 * windows-tdep.c (windows_get_tlb_type): Likewise.
2222
2223 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2224 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2225 * m32c-tdep.c (make_types): Likewise.
2226 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2227 (rl78_psw_type): Update call to arch_flags_type.
2228 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2229 * rx-tdep.c (rx_psw_type): Likewise.
2230 (rx_fpsw_type): Likewise.
2231 * sparc-tdep.c (sparc_psr_type): Likewise.
2232 (sparc_fsr_type): Likewise.
2233 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2234 (sparc64_ccr_type): Likewise.
2235 (sparc64_fsr_type): Likewise.
2236 (sparc64_fprs_type): Likewise.
2237
f21b4d5c
TT
22382017-09-27 Tom Tromey <tom@tromey.com>
2239
2240 * findcmd.c (find_command): Constify.
2241
643c2ffa
TT
22422017-09-27 Tom Tromey <tom@tromey.com>
2243
2244 * ada-tasks.c (task_command_1, task_command): Constify.
2245
510e5e56
TT
22462017-09-27 Tom Tromey <tom@tromey.com>
2247
2248 * symtab.c (maintenance_print_symbol_cache)
2249 (maintenance_flush_symbol_cache)
2250 (maintenance_print_symbol_cache_statistics): Constify.
2251
e503b191
TT
22522017-09-27 Tom Tromey <tom@tromey.com>
2253
2254 * inferior.c (detach_inferior_command, kill_inferior_command)
2255 (inferior_command): Constify.
2256
4e001312
TT
22572017-09-27 Tom Tromey <tom@tromey.com>
2258
2259 * regcache.c (regcache_print, maintenance_print_registers)
2260 (maintenance_print_raw_registers)
2261 (maintenance_print_cooked_registers)
2262 (maintenance_print_register_groups)
2263 (maintenance_print_remote_registers): Constify.
2264
77763700
TT
22652017-09-27 Tom Tromey <tom@tromey.com>
2266
2267 * printcmd.c (map_display_numbers, undisplay_command)
2268 (enable_disable_display_command, enable_display_command)
2269 (disable_display_command): Constify.
2270
4495129a
TT
22712017-09-27 Tom Tromey <tom@tromey.com>
2272
2273 * breakpoint.h (delete_command): Don't declare.
2274 * breakpoint.c (delete_command, enable_once_command)
2275 (enable_count_command, enable_delete_command, breakpoint_1)
2276 (maintenance_info_breakpoints, stopin_command, stopat_command)
2277 (delete_command, delete_trace_command, save_breakpoints)
2278 (save_breakpoints_command, save_tracepoints_command): Constify.
2279
3088cf40
TT
22802017-09-27 Tom Tromey <tom@tromey.com>
2281
2282 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2283 (skip_ws, extract_identifier, macro_define_command)
2284 (macro_undef_command, macro_list_command): Constify.
2285
69f476a3
TT
22862017-09-27 Tom Tromey <tom@tromey.com>
2287
2288 * infcmd.c (environment_info, set_environment_command)
2289 (unset_environment_command, path_info, info_proc_cmd_1)
2290 (info_proc_cmd_mappings, info_proc_cmd_stat)
2291 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2292 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2293
c4a3e68e
TT
22942017-09-27 Tom Tromey <tom@tromey.com>
2295
2296 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2297 Constify.
2298
c9d31bd6
TT
22992017-09-27 Tom Tromey <tom@tromey.com>
2300
2301 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2302
1f3f85eb
TT
23032017-09-27 Tom Tromey <tom@tromey.com>
2304
2305 * demangle.c (demangle_command): Constify.
2306
9c504b5d
TT
23072017-09-27 Tom Tromey <tom@tromey.com>
2308
2309 * progspace.c (maintenance_info_program_spaces_command):
2310 Constify.
2311
6663cf91
TT
23122017-09-27 Tom Tromey <tom@tromey.com>
2313
2314 * compile/compile.c (check_raw_argument, compile_file_command)
2315 (compile_code_command, compile_print_command): Constify.
2316
34e5fa26
TT
23172017-09-27 Tom Tromey <tom@tromey.com>
2318
2319 * reggroups.c (maintenance_print_reggroups): Constify.
2320
8384c356
TT
23212017-09-27 Tom Tromey <tom@tromey.com>
2322
2323 * dwarf2read.c (save_gdb_index_command): Constify.
2324
884beb0c
TT
23252017-09-27 Tom Tromey <tom@tromey.com>
2326
2327 * stap-probe.c (info_probes_stap_command): Constify.
2328
e0b2930c
TT
23292017-09-27 Tom Tromey <tom@tromey.com>
2330
2331 * fork-child.c (unset_exec_wrapper_command): Constify.
2332
f938677d
TT
23332017-09-27 Tom Tromey <tom@tromey.com>
2334
2335 * btrace.c (get_uint, get_context_size, no_chunk)
2336 (maint_btrace_packet_history_cmd)
2337 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2338 (maint_info_btrace_cmd): Constify.
2339
8949cb87
TT
23402017-09-27 Tom Tromey <tom@tromey.com>
2341
2342 * reverse.c (delete_bookmark_command): Constify.
2343
ac88e2de
TT
23442017-09-27 Tom Tromey <tom@tromey.com>
2345
2346 * remote.c (set_memory_packet_size)
2347 (set_memory_write_packet_size, show_memory_write_packet_size)
2348 (set_memory_read_packet_size, show_memory_read_packet_size)
2349 (compare_sections_command, packet_command, remote_put_command)
2350 (remote_get_command, remote_delete_command): Constify.
2351
bd4c9dfe
TT
23522017-09-27 Tom Tromey <tom@tromey.com>
2353
2354 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2355 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2356 (set_mipsfpu_auto_command): Constify.
2357
5e93d4c6
TT
23582017-09-27 Tom Tromey <tom@tromey.com>
2359
2360 * cli/cli-cmds.h (cd_command): Constify.
2361 * cli/cli-cmds.c (cd_command): Constify.
2362
fc41a75b
TT
23632017-09-27 Tom Tromey <tom@tromey.com>
2364
2365 * thread.c (thread_name_command, thread_find_command): Constify.
2366
67810076
TT
23672017-09-27 Tom Tromey <tom@tromey.com>
2368
2369 * probe.c (enable_probes_command, disable_probes_command):
2370 Constify.
2371
1d8b34a7
TT
23722017-09-27 Tom Tromey <tom@tromey.com>
2373
2374 * symfile.c (symbol_file_command): Constify.
2375 * gdbcore.h (deprecated_file_changed_hook): Constify.
2376 * exec.c (deprecated_file_changed_hook, exec_file_command)
2377 (file_command): Constify.
2378 * defs.h (symbol_file_command): Constify.
2379
442019e1
TT
23802017-09-27 Tom Tromey <tom@tromey.com>
2381
2382 * remote-fileio.c (set_system_call_allowed)
2383 (show_system_call_allowed): Constify.
2384
2983f7cb
TT
23852017-09-27 Tom Tromey <tom@tromey.com>
2386
2387 * tracepoint.c (delete_trace_variable_command)
2388 (tfind_end_command, tfind_start_command, tfind_pc_command)
2389 (tfind_tracepoint_command, tfind_line_command)
2390 (tfind_range_command, tfind_outside_command): Constify.
2391
4fd41b24
TT
23922017-09-27 Tom Tromey <tom@tromey.com>
2393
2394 * ax-gdb.c (maint_agent_printf_command, agent_command)
2395 (agent_eval_command): Constify.
2396
f2fc3015
TT
23972017-09-27 Tom Tromey <tom@tromey.com>
2398
2399 * tracepoint.c (info_scope_command): Constify.
2400 * python/python.c (gdbpy_decode_line): Constify.
2401 * python/py-breakpoint.c (bppy_init): Constify.
2402 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2403 * location.h: (new_linespec_location)
2404 (string_to_event_location_basic, string_to_event_location):
2405 Constify.
2406 * location.c (new_linespec_location)
2407 (string_to_event_location_basic, string_to_event_location):
2408 Constify.
2409 * linespec.h (decode_line_with_current_source)
2410 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2411 * linespec.c (linespec_lex_to_end)
2412 (decode_line_with_current_source)
2413 (decode_line_with_last_displayed): Constify.
2414 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2415 Constify.
2416 * cli/cli-cmds.c (edit_command, list_command): Constify.
2417 * breakpoint.h (until_break_command, watch_command_wrapper)
2418 (awatch_command_wrapper, rwatch_command_wrapper)
2419 (init_ada_exception_breakpoint): Constify.
2420 * breakpoint.c (break_command_1, dprintf_command)
2421 (break_range_command, watch_command_wrapper)
2422 (rwatch_command_wrapper, awatch_command_wrapper)
2423 (until_break_command, init_ada_exception_breakpoint)
2424 (strace_marker_create_sals_from_location, trace_command)
2425 (ftrace_command, strace_command, struct tracepoint): Constify.
2426 * ax-gdb.c (agent_command_1): Constify.
2427 * ada-lang.c (ada_exception_sal): Constify.
2428
8c2f95f4
TT
24292017-09-27 Tom Tromey <tom@tromey.com>
2430
2431 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2432 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2433 (get_context_size, no_chunk, get_insn_history_modifiers)
2434 (cmd_record_insn_history, get_call_history_modifiers)
2435 (cmd_record_call_history): Constify.
2436
a0d65762
TT
24372017-09-27 Tom Tromey <tom@tromey.com>
2438
2439 * source.c (show_substitute_path_command)
2440 (unset_substitute_path_command, set_substitute_path_command):
2441 Constify.
2442
58971144
TT
24432017-09-27 Tom Tromey <tom@tromey.com>
2444
2445 * typeprint.c (maintenance_print_type): Constify.
2446 * maint.c (maintenance_dump_me, maintenance_demangle)
2447 (maintenance_time_display, maintenance_info_sections)
2448 (maintenance_print_statistics, maintenance_deprecate)
2449 (maintenance_undeprecate): Constify.
2450 (maintenance_do_deprecate): Constify. Use std::string.
2451 (maintenance_selftest): Constify.
2452 * gdbtypes.h (maintenance_print_type): Constify.
2453
c482f52c
TT
24542017-09-27 Tom Tromey <tom@tromey.com>
2455
2456 * hppa-tdep.c (unwind_command): Constify.
2457
e100df1a
TT
24582017-09-27 Tom Tromey <tom@tromey.com>
2459
2460 * target-descriptions.c (unset_tdesc_filename_cmd)
2461 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2462 Constify.
2463
31d56ade
TT
24642017-09-27 Tom Tromey <tom@tromey.com>
2465
2466 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2467
b961da0b
TT
24682017-09-27 Tom Tromey <tom@tromey.com>
2469
2470 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2471
e2d8ae16
TT
24722017-09-27 Tom Tromey <tom@tromey.com>
2473
2474 * tui/tui-regs.c (tui_reg_command): Constify.
2475
863779b0
TT
24762017-09-27 Tom Tromey <tom@tromey.com>
2477
2478 * skip.c (skip_file_command, skip_function_command)
2479 (skip_enable_command, skip_disable_command, skip_delete_command):
2480 Constify.
2481
cdb34d4a
TT
24822017-09-27 Tom Tromey <tom@tromey.com>
2483
2484 * record-btrace.c (cmd_record_btrace_bts_start)
2485 (cmd_record_btrace_pt_start): Constify.
2486
e99c83e7
TT
24872017-09-27 Tom Tromey <tom@tromey.com>
2488
2489 * symmisc.c (maintenance_print_symbols)
2490 (maintenance_print_msymbols, maintenance_print_objfiles)
2491 (maintenance_info_symtabs, maintenance_check_symtabs)
2492 (maintenance_expand_symtabs, maintenance_info_line_tables):
2493 Constify.
2494
32faf971
TT
24952017-09-27 Tom Tromey <tom@tromey.com>
2496
2497 * top.c (new_ui_command): Constify.
2498
2cf311eb
TT
24992017-09-27 Tom Tromey <tom@tromey.com>
2500
2501 * symfile.c (add_symbol_file_command)
2502 (remove_symbol_file_command, list_overlays_command)
2503 (map_overlay_command, unmap_overlay_command)
2504 (overlay_auto_command, overlay_manual_command)
2505 (overlay_off_command, overlay_load_command): Constify.
2506
e6738699
TT
25072017-09-27 Tom Tromey <tom@tromey.com>
2508
2509 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2510 (info_spu_mailbox_command, info_spu_dma_command)
2511 (info_spu_proxydma_command): Constify.
2512
aa360cd5
TT
25132017-09-27 Tom Tromey <tom@tromey.com>
2514
2515 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2516
898241a5
TT
25172017-09-27 Tom Tromey <tom@tromey.com>
2518
2519 * cli/cli-script.c (user_defined_command): Constify.
2520
2d0ac106
TT
25212017-09-27 Tom Tromey <tom@tromey.com>
2522
2523 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2524 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2525 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2526 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2527 (dump_binary_value, append_binary_memory, append_binary_value):
2528 Constify.
2529 (struct dump_context) <func>: Constify.
2530 (add_dump_command): Update.
2531
dede02ce
TT
25322017-09-27 Tom Tromey <tom@tromey.com>
2533
2534 * cli/cli-cmds.c (show_version, show_configuration)
2535 (source_command, show_user): Constify.
2536
d3cb6b99
TT
25372017-09-27 Tom Tromey <tom@tromey.com>
2538
2539 * target.c (maintenance_print_target_stack): Constify.
2540
1970a12f
TT
25412017-09-27 Tom Tromey <tom@tromey.com>
2542
2543 * interps.c (interpreter_exec_cmd): Constify.
2544
41243651
TT
25452017-09-27 Tom Tromey <tom@tromey.com>
2546
2547 * record-full.c (cmd_record_full_restore): Constify.
2548
4465d9db
TT
25492017-09-27 Tom Tromey <tom@tromey.com>
2550
2551 * memattr.c (enable_mem_command, disable_mem_command)
2552 (delete_mem_command): Constify.
2553
ad25e423
TT
25542017-09-27 Tom Tromey <tom@tromey.com>
2555
2556 * value.c (show_convenience): Constify.
2557
d64097b1
TT
25582017-09-27 Tom Tromey <tom@tromey.com>
2559
2560 * gdbcore.h (core_file_command): Update.
2561 * corefile.c (core_file_command): Constify.
2562
4d4589ef
TT
25632017-09-27 Tom Tromey <tom@tromey.com>
2564
2565 * user-regs.c (maintenance_print_user_registers): Constify.
2566
32a7bf17
TT
25672017-09-27 Tom Tromey <tom@tromey.com>
2568
2569 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2570
4a475551
TT
25712017-09-27 Tom Tromey <tom@tromey.com>
2572
2573 * cp-support.c (first_component_command): Constify.
2574
990b9f9f
TT
25752017-09-27 Tom Tromey <tom@tromey.com>
2576
2577 * psymtab.c (maintenance_print_psymbols)
2578 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2579 Constify.
2580
c281872e
TT
25812017-09-27 Tom Tromey <tom@tromey.com>
2582
2583 * windows-tdep.c (display_tib): Constify.
2584
5b64bf74
TT
25852017-09-27 Tom Tromey <tom@tromey.com>
2586
2587 * linux-fork.c (delete_checkpoint_command)
2588 (detach_checkpoint_command): Constify.
2589
4ada038f
TT
25902017-09-27 Tom Tromey <tom@tromey.com>
2591
2592 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2593
57f5a81b
TT
25942017-09-27 Tom Tromey <tom@tromey.com>
2595
2596 * arc-tdep.c (dump_arc_instruction_command): Constify.
2597
b0a8e6c4
TT
25982017-09-27 Tom Tromey <tom@tromey.com>
2599
2600 * valprint.c (set_radix, show_radix): Constify.
2601
8d97dc1c
TT
26022017-09-27 Tom Tromey <tom@tromey.com>
2603
2604 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2605
eb7c454d
TT
26062017-09-27 Tom Tromey <tom@tromey.com>
2607
2608 * command.h (not_just_help_class_command): Update.
2609 * cli/cli-decode.h (not_just_help_class_command): Update.
2610 * cli/cli-decode.c (not_just_help_class_command): Constify.
2611
e4e33335
TT
26122017-09-27 Tom Tromey <tom@tromey.com>
2613
2614 * gdb_bfd.c (maintenance_info_bfds): Constify.
2615
0450cc4c
TT
26162017-09-27 Tom Tromey <tom@tromey.com>
2617
2618 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2619 overloads.
2620 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2621 (do_const_cfunc): New function.
2622 (cmd_cfunc_eq): New overload.
2623 (cli_user_command_p): Check do_const_cfunc.
2624 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2625 const_cfunc.
2626 * command.h (add_cmd): Add const overload and no-function
2627 overload.
2628 (set_cmd_cfunc): Add const overload.
2629 (cmd_const_cfunc_ftype): Declare.
2630 (cmd_cfunc_eq): Add const overload.
2631 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2632 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2633 overload.
2634
a9bbfbd8
TT
26352017-09-27 Tom Tromey <tom@tromey.com>
2636
2637 * macroexp.c (get_next_token_for_substitution): New function.
2638 (substitute_args): Call it. Check for __VA_OPT__.
2639
5230b05a
WT
26402017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2641 Pedro Alves <palves@redhat.com>
2642
2643 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2644 producer_is_icc_lt_14.
2645 (producer_is_icc_lt_14): New function.
2646 (check_producer): Add code for checking version of ICC.
2647 (producer_is_icc): Move to producer.c.
2648 (read_structure_type): Restrict ICC workaround to ICC<14.
2649 * producer.c: Include selftest.h.
2650 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2651 New functions.
2652 * producer.h (producer_is_icc): New declaration.
2653
b32b108a
WT
26542017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2655
2656 * Makefile.in (SFILES): Add producer.c.
2657 (COMMON_OBS): Add producer.o
2658 * amd64-tdep.c (producer.h): Add new include.
2659 * dwarf2read.c (producer.h): Add new include.
2660 * producer.c: New file.
2661 * producer.h: New file.
2662 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2663 producer.c.
2664 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2665 producer.h.
2666
5007d765
MK
26672017-09-26 Matthias Klose <doko@ubuntu.com>
2668
2669 * configure.ac: Search ncursesw before ncurses.
2670 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2671 * gdb_curses.h: Include <ncursesw/ncurses.h>
2672 * config.in, configure: Regenerate.
2673
281c4447
RO
26742017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2675
2676 PR gdb/22185
2677 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2678 obsolete.
2679 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2680 Remove i386sol2 support.
2681 * configure.nat <i386sol2>: Remove.
2682 <sol2-64>: Fold into ...
2683 <sol2>: ... this.
2684 Move common settings to default section.
2685 Add sol-thread.o.
2686 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2687 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2688 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2689 <i[34567]86-*-solaris*>: Remove.
2690 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2691
2692 * configure.ac: Remove wctype in libw check.
2693 (_MSE_INT_H): Don't define on Solaris 7-9.
2694 <solaris*>: Remove libthread_db.so.1 check.
2695 * configure: Regenerate.
2696 * config.in: Regenerate.
2697
2698 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2699 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2700 (gdb_ps_size_t): Remove.
2701 Use base types in users.
2702 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2703
2704 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2705
39b06c20
RO
27062017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2707
2708 PR build/22206
2709 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2710 (adi_is_addr_mapped): Likewise.
2711 (PSR_ICC): Don't redefine.
2712 (PSR_IMPL): Likewise.
2713
6c3e20f1
TT
27142017-09-25 Tom Tromey <tom@tromey.com>
2715
2716 * regcache.c (regcache::dump): Use string_printf.
2717
b292235f
TT
27182017-09-25 Tom Tromey <tom@tromey.com>
2719
2720 * regcache.c (class regcache_invalidator): New.
2721 (struct register_to_invalidate): Remove.
2722 (make_cleanup_regcache_invalidate): Remove.
2723 (regcache::raw_write): Use regcache_invalidator.
2724
9ac86b52
TT
27252017-09-25 Tom Tromey <tom@tromey.com>
2726
2727 * spu-tdep.c (spu2ppu_sniffer): Update.
2728 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2729 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2730 Remove.
2731 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2732 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2733 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2734 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2735 (frame_pop): Update.
2736
c0e383c6
TT
27372017-09-25 Tom Tromey <tom@tromey.com>
2738
2739 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
2740 * regcache.h (regcache_xfree): Don't declare.
2741 * regcache.c (regcache_xfree): Remove.
2742 (do_regcache_xfree): Use delete.
2743 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
2744 * linux-fork.c (free_fork): Use delete.
2745 (fork_save_infrun_state): Likewise.
2746 * jit.c (jit_dealloc_cache): Use delete.
2747 * infrun.c (discard_infcall_suspend_state): Use delete.
2748
791199cc
TT
27492017-09-25 Tom Tromey <tom@tromey.com>
2750
2751 * regcache.h (regcache_xmalloc): Don't declare.
2752 (regcache_raw_set_cached_value): Update comment.
2753 * regcache.c (regcache_xmalloc): Remove.
2754 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
2755 * jit.c (jit_frame_sniffer): Use new.
2756 * frame.c (frame_save_as_regcache): Use new.
2757
289e23aa
AA
27582017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2759
2760 * NEWS: Advertise support for guarded-storage registers on IBM z.
2761
1b63490c
AA
27622017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2763
2764 * s390-linux-nat.c (have_regset_gs): New static variable.
2765 (s390_linux_fetch_inferior_registers): Handle guarded-storage
2766 control block and guarded-storage broadcast control regsets.
2767 (s390_read_description): Detect whether the target has
2768 guarded-storage support, return appropriate tdesc.
2769 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
2770 (features/s390x-gs-linux64.c): Likewise.
2771 (struct gdbarch_tdep) <have_gs>: New field.
2772 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
2773 (s390_gsbc_regset): New variables.
2774 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
2775 and s390_gsbc_regset, if applicable.
2776 (s390_core_read_description): Check whether core file was from a
2777 target with guarded-storage support; include appropriate regsets.
2778 (s390_gdbarch_init): Add registers for guarded-storage support.
2779 (_initialize_s390_tdep): Initialize new target descriptions that
2780 include registers for guarded-storage support.
2781 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
2782 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
2783 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
2784 (S390_NUM_REGS): Adjust macro definition.
2785 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
2786 (tdesc_s390x_gs_linux64): New declarations.
2787
96235dc1
AA
27882017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2789
2790 * features/s390-gs-linux64.xml: New file.
2791 * features/s390-gs.xml: New file.
2792 * features/s390-gsbc.xml: New file.
2793 * features/s390x-gs-linux64.xml: New file.
2794 * features/Makefile (WHICH): Add s390-gs-linux64 and
2795 s390x-gs-linux64.
2796 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
2797 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
2798 * features/s390-gs-linux64.c: New generated file.
2799 * features/s390x-gs-linux64.c: New file.
2800 * regformats/s390-gs-linux64.dat: New file.
2801 * regformats/s390x-gs-linux64.dat: New file.
2802
b4a7c699
TT
28032017-09-23 Tom Tromey <tom@tromey.com>
2804
2805 * defs.h (make_cleanup_override_quit_handler): Don't declare.
2806
c2f97536
TT
28072017-09-22 Tom Tromey <tom@tromey.com>
2808
2809 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
2810 type to scoped_restore_tmpl.
2811 <scoped_input_handler>: Initialize m_quit_handler directly.
2812
43573013
SDJ
28132017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2814
2815 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
2816 (cd_command): Likewise. Free "current_directory" before
2817 assigning to it.
2818 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
2819 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
2820 * top.c (gdb_dirbuf): Remove global declaration.
2821 * top.h (gdb_dirbuf): Likewise.
2822
6ec2e0f5
SDJ
28232017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2824
2825 * gnulib/aclocal.m4: Regenerate.
2826 * gnulib/config.in: Regenerate.
2827 * gnulib/configure: Regenerate.
2828 * gnulib/import/Makefile.am: Regenerate.
2829 * gnulib/import/Makefile.in: Regenerate.
2830 * gnulib/import/assure.h: New file.
2831 * gnulib/import/at-func.c: Likewise
2832 * gnulib/import/chdir-long.c: New file.
2833 * gnulib/import/chdir-long.h: New file.
2834 * gnulib/import/cloexec.c: New file.
2835 * gnulib/import/cloexec.h: New file.
2836 * gnulib/import/close.c: New file.
2837 * gnulib/import/closedir.c: New file.
2838 * gnulib/import/dirent-private.h: New file.
2839 * gnulib/import/dup-safer.c: New file.
2840 * gnulib/import/dup.c: New file.
2841 * gnulib/import/dup2.c: New file.
2842 * gnulib/import/error.c: New file.
2843 * gnulib/import/error.h: New file.
2844 * gnulib/import/exitfail.c: New file.
2845 * gnulib/import/exitfail.h: New file.
2846 * gnulib/import/fchdir.c: New file.
2847 * gnulib/import/fcntl.c: New file.
2848 * gnulib/import/fcntl.in.h: New file.
2849 * gnulib/import/fd-hook.c: New file.
2850 * gnulib/import/fd-hook.h: New file.
2851 * gnulib/import/fd-safer.c: New file.
2852 * gnulib/import/fdopendir.c: New file.
2853 * gnulib/import/filename.h: New file.
2854 * gnulib/import/filenamecat-lgpl.c: New file.
2855 * gnulib/import/filenamecat.h: New file.
2856 * gnulib/import/fstat.c: New file.
2857 * gnulib/import/fstatat.c: New file.
2858 * gnulib/import/getcwd-lgpl.c: New file.
2859 * gnulib/import/getcwd.c: New file.
2860 * gnulib/import/getdtablesize.c: New file.
2861 * gnulib/import/getlogin_r.c: New file.
2862 * gnulib/import/getprogname.c: New file.
2863 * gnulib/import/getprogname.h: New file.
2864 * gnulib/import/gettext.h: New file.
2865 * gnulib/import/glob-libc.h: New file.
2866 * gnulib/import/glob.c: New file.
2867 * gnulib/import/glob.in.h: New file.
2868 * gnulib/import/intprops.h: New file.
2869 * gnulib/import/m4/chdir-long.m4: New file.
2870 * gnulib/import/m4/close.m4: New file.
2871 * gnulib/import/m4/closedir.m4: New file.
2872 * gnulib/import/m4/d-ino.m4: New file.
2873 * gnulib/import/m4/d-type.m4: New file.
2874 * gnulib/import/m4/dup.m4: New file.
2875 * gnulib/import/m4/dup2.m4: New file.
2876 * gnulib/import/m4/error.m4: New file.
2877 * gnulib/import/m4/fchdir.m4: New file.
2878 * gnulib/import/m4/fcntl.m4: New file.
2879 * gnulib/import/m4/fcntl_h.m4: New file.
2880 * gnulib/import/m4/fdopendir.m4: New file.
2881 * gnulib/import/m4/filenamecat.m4: New file.
2882 * gnulib/import/m4/fstat.m4: New file.
2883 * gnulib/import/m4/fstatat.m4: New file.
2884 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
2885 * gnulib/import/m4/getcwd-path-max.m4: New file.
2886 * gnulib/import/m4/getcwd.m4: New file.
2887 * gnulib/import/m4/getdtablesize.m4: New file.
2888 * gnulib/import/m4/getlogin_r.m4: New file.
2889 * gnulib/import/m4/getprogname.m4: New file.
2890 * gnulib/import/m4/glob.m4: New file.
2891 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2892 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2893 * gnulib/import/m4/mempcpy.m4: New file.
2894 * gnulib/import/m4/memrchr.m4: New file.
2895 * gnulib/import/m4/mode_t.m4: New file.
2896 * gnulib/import/m4/msvc-inval.m4: New file.
2897 * gnulib/import/m4/msvc-nothrow.m4: New file.
2898 * gnulib/import/m4/open.m4: New file.
2899 * gnulib/import/m4/openat.m4: New file.
2900 * gnulib/import/m4/opendir.m4: New file.
2901 * gnulib/import/m4/readdir.m4: New file.
2902 * gnulib/import/m4/realloc.m4: New file.
2903 * gnulib/import/m4/rewinddir.m4: New file.
2904 * gnulib/import/m4/save-cwd.m4: New file.
2905 * gnulib/import/m4/strdup.m4: New file.
2906 * gnulib/import/m4/strerror.m4: New file.
2907 * gnulib/import/m4/unistd-safer.m4: New file.
2908 * gnulib/import/mempcpy.c: New file.
2909 * gnulib/import/memrchr.c: New file.
2910 * gnulib/import/msvc-inval.c: New file.
2911 * gnulib/import/msvc-inval.h: New file.
2912 * gnulib/import/msvc-nothrow.c: New file.
2913 * gnulib/import/msvc-nothrow.h: New file.
2914 * gnulib/import/open.c: New file.
2915 * gnulib/import/openat-die.c: New file.
2916 * gnulib/import/openat-priv.h: New file.
2917 * gnulib/import/openat-proc.c: New file.
2918 * gnulib/import/openat.c: New file.
2919 * gnulib/import/openat.h: New file.
2920 * gnulib/import/opendir.c: New file.
2921 * gnulib/import/pipe-safer.c: New file.
2922 * gnulib/import/readdir.c: New file.
2923 * gnulib/import/realloc.c: New file.
2924 * gnulib/import/rewinddir.c: New file.
2925 * gnulib/import/save-cwd.c: New file.
2926 * gnulib/import/save-cwd.h: New file.
2927 * gnulib/import/strdup.c: New file.
2928 * gnulib/import/strerror-override.c: New file.
2929 * gnulib/import/strerror-override.h: New file.
2930 * gnulib/import/strerror.c: New file.
2931 * gnulib/import/unistd--.h: New file.
2932 * gnulib/import/unistd-safer.h: New file.
2933 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2934 "getcwd" and "glob".
2935 * ser-tcp.c: Undefine "close" before redefining it.
2936
432ae719
SM
29372017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2938
2939 * guile/scm-value.c (gdbscm_value_address): Initialize address,
2940 get rid of res_val.
2941
4fa7574e
RO
29422017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2943
2944 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
2945 <sol2,sparc>: Likewise.
2946 <sol2-64,i386>: Likewise.
2947
2948 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
2949 -Wdeprecated-declarations on *-*-solaris*.
2950 * configure: Regenerate.
2951
2952 * procfs.c: Include "nat/inferior.h".
2953 (procfs_info_proc): Fix typo.
2954
f6327dcb
KB
29552017-09-21 Kevin Buettner <kevinb@redhat.com>
2956
2957 * remote.c (vector): Include.
2958 (struct private_thread_info): Add field, thread_handle.
2959 (free_private_thread_info): Deallocate storage associated with
2960 thread handle.
2961 (get_private_info_thread): Initialize `thread_handle' field.
2962 (struct thread_item): Add field, thread_handle.
2963 (clear_threads_listing_context): Deallocate storage associated
2964 with thread handle.
2965 (start_thread): Add support for "handle" attribute.
2966 (thread_attributes): Add "handle".
2967 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
2968 field.
2969 (remote_update_thread_list): Update thread_handle.
2970 (remote_thread_handle_to_thread_info): New function.
2971 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
2972
fbbe5337
KB
29732017-09-21 Kevin Buettner <kevinb@redhat.com>
2974
2975 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
2976 function.
2977 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
2978 * python/python-internal.h (thread_object_type): Declare.
2979
e04ee09e
KB
29802017-09-21 Kevin Buettner <kevinb@redhat.com>
2981
2982 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
2983 (target_thread_handle_to_thread_info): Declare.
2984 * target.c (target_thread_handle_to_thread_info): New function.
2985 * target-delegates.c: Regenerate.
2986 * gdbthread.h (find_thread_by_handle): Declare.
2987 * thread.c (find_thread_by_handle): New function.
2988 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
2989 function.
2990 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
2991
1e5b66ed
SM
29922017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2993
2994 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
2995
ebe48ba0
SM
29962017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2997
2998 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
2999
0a0bf5dc
YQ
30002017-09-21 Yao Qi <yao.qi@linaro.org>
3001
3002 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3003 to gdb_target_obs.
3004
d1b0a7bf
TT
30052017-09-20 Tom Tromey <tom@tromey.com>
3006
3007 * breakpoint.c (struct counted_command_line): Remove.
3008 (breakpoint_commands): Update.
3009 (alloc_counted_command_line, incref_counted_command_line)
3010 (decref_counted_command_line, do_cleanup_counted_command_line)
3011 (make_cleanup_decref_counted_command_line): Remove.
3012 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3013 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3014 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3015 (save_breakpoints): Update.
3016 * breakpoint.h (counted_command_line): Now a typedef to
3017 shared_ptr.
3018 (struct breakpoint) <commands>: Now a counted_command_line.
3019 (struct bpstats) <command>: Likewise.
3020
48649e1b
TT
30212017-09-20 Tom Tromey <tom@tromey.com>
3022
3023 * breakpoint.c (struct commands_info, do_map_commands_command):
3024 Remove.
3025 (commands_command_1): Update.
3026 (iterate_over_related_breakpoints): Take a function_view.
3027 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3028 (delete_command): Update.
3029 (map_breakpoint_numbers): Take a function_view.
3030 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3031 (disable_command): Update.
3032 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3033 (enable_command): Update.
3034 (struct disp_data, do_enable_breakpoint_disp)
3035 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3036 (do_map_enable_delete_breakpoint): Remove.
3037 (enable_once_command, enable_count_command, enable_delete_command)
3038 (delete_trace_variable_command): Update.
3039
04afa70c
TT
30402017-09-20 Tom Tromey <tom@tromey.com>
3041
3042 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3043 (bpstat_clear): Use delete.
3044 (bpstats): New constructors.
3045 (bpstat_copy, bpstat_stop_status): Use new.
3046 (dprintf_after_condition_true): Update.
3047 * breakpoint.h (bpstats::bpstats): Add constructors.
3048 (bpstats::~bpstats): Add destructor.
3049
c83833f4
PA
30502017-09-20 Pedro Alves <palves@redhat.com>
3051
3052 * eval.c (make_params): Delete, refactored as ...
3053 (class fake_method): ... this new type's ctor.
3054 (fake_method::~fake_method): New.
3055 (evaluate_subexp_standard): Use 'fake_method'.
3056
223ffa71
TT
30572017-09-20 Tom Tromey <tom@tromey.com>
3058
3059 * windows-nat.c (get_windows_debug_event, windows_wait)
3060 (do_initial_windows_stuff, windows_attach): Update.
3061 * utils.c (vwarning, internal_vproblem): Update.
3062 (ui_unregister_input_event_handler_cleanup)
3063 (prepare_to_handle_input): Remove.
3064 (class scoped_input_handler): New.
3065 (defaulted_query, prompt_for_continue): Update.
3066 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3067 Update.
3068 * top.c (undo_terminal_modifications_before_exit): Update.
3069 * target/target.h (target_terminal_init, target_terminal_inferior)
3070 (target_terminal_ours): Don't declare.
3071 (class target_terminal): New.
3072 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3073 (target_terminal_ours_for_output)
3074 (make_cleanup_restore_target_terminal): Don't declare.
3075 (target_terminal_info): Remove.
3076 * target.c (enum terminal_state, terminal_state): Remove.
3077 (target_terminal::terminal_state): Define.
3078 (target_terminal::init): Rename from target_terminal_init.
3079 (target_terminal::inferior): Rename from
3080 target_terminal_inferior.
3081 (target_terminal::ours): Rename from target_terminal_ours.
3082 (target_terminal::ours_for_output): Rename from
3083 target_terminal_ours_for_output.
3084 (target_terminal::info): New method.
3085 (cleanup_restore_target_terminal)
3086 (make_cleanup_restore_target_terminal): Remove.
3087 * solib.c (handle_solib_event): Update.
3088 * remote.c (remote_serial_quit_handler): Update.
3089 (remote_terminal_inferior, remote_wait_as): Update.
3090 * record-full.c (record_full_wait_1): Update.
3091 * nto-procfs.c (procfs_create_inferior): Update.
3092 * nat/fork-inferior.c (startup_inferior): Update.
3093 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3094 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3095 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3096 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3097 (mi_breakpoint_created, mi_breakpoint_deleted)
3098 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3099 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3100 (mi_user_selected_context_changed, report_initial_inferior):
3101 Update.
3102 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3103 (linux_nat_terminal_inferior): Update.
3104 * infrun.c (follow_fork_inferior)
3105 (handle_vfork_child_exec_or_exit, do_target_resume)
3106 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3107 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3108 Update.
3109 * inflow.c (child_terminal_init, info_terminal_command): Update.
3110 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3111 (attach_command): Update.
3112 * infcall.c (call_thread_fsm_should_stop): Update.
3113 * gnu-nat.c (gnu_attach): Update.
3114 * extension.c (struct active_ext_lang_state)
3115 (restore_active_ext_lang): Update.
3116 * exceptions.c (print_flush): Update.
3117 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3118 (struct quit_handler_cleanup_data, restore_quit_handler)
3119 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3120 Remove.
3121 * cp-support.c (gdb_demangle): Update.
3122 * breakpoint.c (update_inserted_breakpoint_locations)
3123 (insert_breakpoint_locations, handle_jit_event)
3124 (disable_breakpoints_in_unloaded_shlib): Update.
3125 * annotate.c (annotate_breakpoints_invalid)
3126 (annotate_frames_invalid): Update.
3127
013af3fc
TT
31282017-09-20 Tom Tromey <tom@tromey.com>
3129
3130 * main.c (catch_command_errors): Rename from
3131 catch_command_errors_const.
3132 (captured_main_1): Update.
3133
06871ae8
PA
31342017-09-20 Pedro Alves <palves@redhat.com>
3135
3136 * cli/cli-cmds.c (list_command): Use print_sal_location.
3137 (print_sal_location): New function.
3138 (ambiguous_line_spec): Use print_sal_location.
3139 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3140 * symtab.c (find_function_start_sal): Likewise.
3141 * symtab.h (symtab_and_line::symbol): New field.
3142
e5f25bc5
PA
31432017-09-20 Pedro Alves <palves@redhat.com>
3144
3145 * linespec.c (minsym_found): Handle non-text minsyms.
3146 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3147
1b7fa39e
WT
31482017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3149
3150 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3151 backslash.
3152
37dd0825
WT
31532017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3154
3155 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3156 vmovups instead vmovaps.
3157 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3158
4e5a4f58
JB
31592017-09-19 John Baldwin <jhb@FreeBSD.org>
3160
3161 * NEWS (Changes since GDB 8.0): Add starti.
3162 * infcmd.c (enum run_break): New.
3163 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3164 case.
3165 (run_command): Use enum run_how.
3166 (start_command): Likewise.
3167 (starti_command): New function.
3168 (RUN_ARGS_HELP): New macro.
3169 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3170 commands. Add starti command.
3171
aa70c9f1
YQ
31722017-09-19 Yao Qi <yao.qi@linaro.org>
3173
3174 * Makefile.in (monitor.o): Remove the rule.
3175
d6541620
YQ
31762017-09-19 Yao Qi <yao.qi@linaro.org>
3177
3178 * annotate.h (struct annotate_arg_emitter): Use
3179 DISABLE_COPY_AND_ASSIGN.
3180 * common/refcounted-object.h (refcounted_object): Likewise.
3181 * completer.h (struct completion_result): Likewise.
3182 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3183 * filename-seen-cache.h (filename_seen_cache): Likewise.
3184 * gdbcore.h (thread_section_name): Likewise.
3185 * gdb_regex.h (compiled_regex): Likewise.
3186 * gdbthread.h (scoped_restore_current_thread): Likewise.
3187 * inferior.h (scoped_restore_current_inferior): Likewise.
3188 * jit.c (jit_reader): Likewise.
3189 * linespec.h (struct linespec_result): Likewise.
3190 * mi/mi-parse.h (struct mi_parse): Likewise.
3191 * nat/fork-inferior.c (execv_argv): Likewise.
3192 * progspace.h (scoped_restore_current_program_space): Likewise.
3193 * python/python-internal.h (class gdbpy_enter): Likewise.
3194 * regcache.h (regcache): Likewise.
3195 * target-descriptions.c (struct tdesc_reg): Likewise.
3196 (struct tdesc_type): Likewise.
3197 (struct tdesc_feature): Likewise.
3198 * ui-out.h (ui_out_emit_type): Likewise.
3199
0615127c
SM
32002017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3201
3202 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3203 label abort_expression.
3204
5e187554
SM
32052017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3206
3207 * common/buffer.c (buffer_xml_printf): Adjust.
3208 * common/xml-utils.c (xml_escape_text): Change return type to
3209 std::string, update code accordingly.
3210 * common/xml-utils.h (xml_escape_text): Change return type to
3211 std::string.
3212 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3213 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3214 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3215 Adjust.
3216
c3d7b541
SM
32172017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3218
3219 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3220 (SUBDIR_UNITTESTS_OBS): Add new object file.
3221 * unittests/xml-utils-selftests.c: New file.
3222
1526853e
SM
32232017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3224
3225 * common/selftest.h (selftest): New struct/interface.
3226 (register_test): Add name parameter, add new overload.
3227 (run_tests): Add filter parameter.
3228 (for_each_selftest_ftype): New typedef.
3229 (for_each_selftest): New declaration.
3230 * common/selftest.c (tests): Change type to
3231 map<string, unique_ptr<selftest>>.
3232 (simple_selftest): New struct.
3233 (register_test): New function.
3234 (register_test): Add name parameter and use it.
3235 (run_tests): Add filter parameter and use it. Add prints.
3236 Adjust to vector -> map change.
3237 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3238 registering selftests.
3239 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3240 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3241 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3242 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3243 * findvar.c (_initialize_findvar): Likewise.
3244 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3245 * maint.c (maintenance_selftest): Update call to run_tests.
3246 (maintenance_info_selftests): New function.
3247 (_initialize_maint_cmds): Register "maintenance info selftests"
3248 command. Update "maintenance selftest" doc.
3249 * regcache.c (_initialize_regcache): Add names when registering
3250 selftests.
3251 * rust-exp.y (_initialize_rust_exp): Likewise.
3252 * selftest-arch.c (gdbarch_selftest): New struct.
3253 (gdbarch_tests): Remove.
3254 (register_test_foreach_arch): Add name parameter. Call
3255 register_test.
3256 (tests_with_arch): Remove, move most content to
3257 gdbarch_selftest::operator().
3258 (_initialize_selftests_foreach_arch): Remove.
3259 * selftest-arch.h (register_test_foreach_arch): Add name
3260 parameter.
3261 (run_tests_with_arch): New declaration.
3262 * utils-selftests.c (_initialize_utils_selftests): Add names
3263 when registering selftests.
3264 * utils.c (_initialize_utils): Likewise.
3265 * unittests/array-view-selftests.c
3266 (_initialize_array_view_selftests): Likewise.
3267 * unittests/environ-selftests.c (_initialize_environ_selftests):
3268 Likewise.
3269 * unittests/function-view-selftests.c
3270 (_initialize_function_view_selftests): Likewise.
3271 * unittests/offset-type-selftests.c
3272 (_initialize_offset_type_selftests): Likewise.
3273 * unittests/optional-selftests.c
3274 (_initialize_optional_selftests): Likewise.
3275 * unittests/scoped_restore-selftests.c
3276 (_initialize_scoped_restore_selftests): Likewise.
3277 * NEWS: Document "maintenance selftest" and "maint info
3278 selftests".
3279
5846367a
SM
32802017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3281
3282 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3283 scoped_restore.
3284
bd77e8ff
SM
32852017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3286
3287 * mi/mi-main.c (mi_load_progress): Make uiout variable
3288 a unique_ptr.
3289
26a67918
PA
32902017-09-15 Pedro Alves <palves@redhat.com>
3291
3292 * compile/compile-c-types.c (convert_enum, convert_int)
3293 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3294
3f8a7804
SM
32952017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3296
3297 * dwarf2read.c (copy_string): Remove.
3298 (parse_macro_definition): Replace copy_string with savestring.
3299
8d200706
YQ
33002017-09-15 Yao Qi <yao.qi@linaro.org>
3301
3302 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3303 gdb_target_obs.
3304 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3305 Likewise.
3306 (i[34567]86-*-linux*): Likewise.
3307
d185219d
SM
33082017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3309
3310 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3311 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3312 <stack>: Change type to std::vector.
3313 <stack_len, stack_allocated>: Remove.
3314 <grow_stack>: Remove.
3315 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3316 (dwarf_expr_context::~dwarf_expr_context): Remove.
3317 (dwarf_expr_context::grow_stack): Remove.
3318 (dwarf_expr_context::push): Adjust.
3319 (dwarf_expr_context::pop): Adjust.
3320 (dwarf_expr_context::fetch): Adjust.
3321 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3322 (dwarf_expr_context::stack_empty_p): Adjust.
3323 (dwarf_expr_context::execute_stack_op): Adjust.
3324
eccd80d6
SM
33252017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3326
3327 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3328 return type to bool.
3329 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3330
69009882
SM
33312017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3332
3333 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3334 Change type to bool.
3335 (dwarf_stack_value) <in_stack_memory>: Likewise.
3336 (dwarf_expr_context) <push_address>: Change parameter type to
3337 bool.
3338 <fetch_in_stack_memory>: Change return type to bool.
3339 <push>: Change parameter type to bool.
3340 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3341 to bool.
3342 (dwarf_expr_context::push_address): Likewise.
3343 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3344 to bool.
3345 (dwarf_expr_context::execute_stack_op): Adjust.
3346 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3347
1e467161
SM
33482017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3349
3350 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3351 (struct dwarf_expr_context) <n_pieces>: Remove.
3352 <pieces>: Change type to std::vector.
3353 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3354 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3355 pieces.
3356 (dwarf_expr_context::add_piece): Adjust.
3357 * dwarf2loc.c (struct piece_closure): Initialize fields.
3358 <n_pieces>: Remove.
3359 <pieces>: Change type to std::vector.
3360 (allocate_piece_closure): Adjust, change parameter to
3361 std::vector rvalue and std::move it to piece_closure.
3362 (rw_pieced_value): Adjust.
3363 (check_pieced_synthetic_pointer): Adjust.
3364 (indirect_synthetic_pointer): Adjust.
3365 (coerce_pieced_ref): Adjust.
3366 (free_pieced_value_closure): Adjust. Use delete to free
3367 piece_closure.
3368 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3369 to allocate_piece_closure.
3370 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3371
0782db84
SM
33722017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3373
3374 * probe.h (probe_ops_cp): Remove typedef.
3375 (DEF_VEC_P (probe_ops_cp)): Remove.
3376 (all_probe_ops): Change type to std::vector.
3377 * probe.c (info_probes_for_ops): Adjust to vector change.
3378 (probe_linespec_to_ops): Likewise.
3379 (all_probe_ops): Change type to std::vector.
3380 (_initialize_probe): Adjust to vector change.
3381 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3382 * elfread.c (elf_get_probes): Likewise.
3383 * stap-probe.c (_initialize_stap_probe): Likewise.
3384
1eac6bea
SM
33852017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3386
3387 * probe.h (struct bound_probe): Define constructors.
3388 * probe.c (bound_probe_s): Remove typedef.
3389 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3390 (collect_probes): Change return type to std::vector, remove
3391 cleanup.
3392 (compare_probes): Return bool, change parameter type. Change
3393 semantic to "less than".
3394 (gen_ui_out_table_header_info): Change parameter to std::vector
3395 and update.
3396 (exists_probe_with_pops): Likewise.
3397 (info_probes_for_ops): Update to std::vector change.
3398 (enable_probes_command): Likewise.
3399 (disable_probes_command): Likewise.
3400
aaa63a31
SM
34012017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3402
3403 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3404 vec to std::vector.
3405 * probe.c (parse_probes_in_pspace): Update.
3406 (find_probes_in_objfile): Update.
3407 (find_probe_by_pc): Update.
3408 (collect_probes): Update.
3409 (probe_any_get_probes): Update.
3410 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3411 return type to reference to std::vector.
3412 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3413 std::vector and update.
3414 (dtrace_process_dof): Likewise.
3415 (dtrace_get_probes): Likewise.
3416 * elfread.c (elf_get_probes): Change return type to std::vector,
3417 store an std::vector in bfd_data.
3418 (probe_key_free): Update to std::vector.
3419 * stap-probe.c (handle_stap_probe): Change parameter to
3420 std::vector and update.
3421 (stap_get_probes): Likewise.
3422 * symfile-debug.c (debug_sym_get_probes): Change return type to
3423 std::vector and update.
3424
cb85b21b
TT
34252017-09-11 Tom Tromey <tom@tromey.com>
3426
3427 * breakpoint.c (program_breakpoint_here_p): Update.
3428 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3429 from make_show_memory_breakpoints_cleanup. Return a
3430 scoped_restore_tmpl<int>.
3431 (restore_show_memory_breakpoints): Remove.
3432 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3433 * mem-break.c (memory_validate_breakpoint): Update.
3434 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3435 (ia64_memory_remove_breakpoint): Update.
3436 (ia64_breakpoint_from_pc): Update.
3437 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3438 from make_show_memory_breakpoints_cleanup.
3439
8fbc99ef
TT
34402017-09-11 Tom Tromey <tom@tromey.com>
3441
3442 * d-namespace.c (d_lookup_symbol): Use std::string.
3443 (find_symbol_in_baseclass): Likewise.
3444
50feb4bd
TT
34452017-09-11 Tom Tromey <tom@tromey.com>
3446
3447 * ctf.c (ctf_start): Use std::string.
3448
c6dc63a1
TT
34492017-09-11 Tom Tromey <tom@tromey.com>
3450
3451 * ada-lang.c (is_known_support_routine): Update.
3452 (ada_unhandled_exception_name_addr_from_raise): Update.
3453 * guile/scm-frame.c (gdbscm_frame_name): Update.
3454 * python/py-frame.c (frapy_name): Update.
3455 (frapy_function): Update.
3456 * stack.h (find_frame_funname): Update.
3457 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3458 (print_frame): Update.
3459
d6b9b80f
TT
34602017-09-11 Tom Tromey <tom@tromey.com>
3461
3462 * findcmd.c (put_bits): Take a gdb::byte_vector.
3463 (parse_find_args): Return gdb::byte_vector. "args" now const.
3464 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3465 cleanups.
3466 (find_command): Update.
3467
a9921622
TT
34682017-09-11 Tom Tromey <tom@tromey.com>
3469
3470 * cli/cli-script.c (class scoped_restore_hook_in): New.
3471 (clear_hook_in_cleanup): Remove.
3472 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3473 scoped_restore_hook_in.
3474
be0d7abb
TT
34752017-09-11 Tom Tromey <tom@tromey.com>
3476
3477 * cli/cli-script.c (restore_interp): Remove.
3478 (read_command_lines): Use scoped_restore_interp.
3479 * interps.c (scoped_restore_interp::set_temp): Rename from
3480 interp_set_temp.
3481 * interps.h (class scoped_restore_interp): New.
3482 (interp_set_temp): Remove.
3483
00f675ff
TT
34842017-09-11 Tom Tromey <tom@tromey.com>
3485
3486 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3487 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3488 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3489 scoped_restore.
3490 (mi_cmd_break_insert_1): Update.
3491 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3492 scoped_restore.
3493
cb791d59
TT
34942017-09-11 Tom Tromey <tom@tromey.com>
3495
3496 * demangle.c (demangle_command): Update.
3497 * breakpoint.c (disable_command): Update.
3498 (enable_command): Update.
3499 (find_location_by_number): Make "number" const. Use
3500 get_number_trailer.
3501 * cli/cli-utils.c (extract_arg): Return std::string.
3502 * probe.c (parse_probe_linespec): Update. Change types.
3503 (collect_probes): Take string arguments.
3504 (parse_probe_linespec): Likewise.
3505 (info_probes_for_ops): Update.
3506 (enable_probes_command): Update.
3507 (disable_probes_command): Update.
3508 * break-catch-sig.c (catch_signal_split_args): Update.
3509 * mi/mi-parse.c (mi_parse): Update.
3510
2039bd9f
TT
35112017-09-11 Tom Tromey <tom@tromey.com>
3512
3513 * language.h (language_enum): Make argument const.
3514 * language.c (language_enum): Make argument const.
3515
f1735a53
TT
35162017-09-11 Tom Tromey <tom@tromey.com>
3517
3518 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3519 as function.
3520 (skip_to_space): Rename from skip_to_space_const.
3521 * common/common-utils.c (skip_to_space): New function.
3522 (skip_to_space): Rename from skip_to_space_const.
3523 * cli/cli-utils.h (get_number): Rename from get_number_const.
3524 (extract_arg): Rename from extract_arg_const.
3525 * cli/cli-utils.c (get_number): Rename from get_number_const.
3526 (extract_arg): Rename from extract_arg_const.
3527 (number_or_range_parser::get_number): Use ::get_number.
3528 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3529 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3530 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3531 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3532 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3533 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3534 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3535 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3536
7d221d74
TT
35372017-09-11 Tom Tromey <tom@tromey.com>
3538
3539 * python/python.c (do_start_initialization): Use
3540 py-event-types.def to initialize types.
3541 Define all object type structures.
3542 * python/python-internal.h: Don't declare event initialization
3543 functions.
3544 * python/py-threadevent.c (thread_event_object_type): Don't
3545 define.
3546 * python/py-stopevent.c (stop_event_object_type): Don't define.
3547 * python/py-signalevent.c (signal_event_object_type): Don't
3548 declare or define.
3549 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3550 (clear_objfiles_event_object_type): Don't declare or define.
3551 * python/py-infevents.c (inferior_call_pre_event_object_type)
3552 (inferior_call_post_event_object_type)
3553 (register_changed_event_object_type)
3554 (memory_changed_event_object_type): Don't declare or define.
3555 * python/py-inferior.c (new_thread_event_object_type)
3556 (new_inferior_event_object_type)
3557 (inferior_deleted_event_object_type): Don't declare or define.
3558 * python/py-exitedevent.c (exited_event_object_type): Don't
3559 declare or define.
3560 * python/py-evts.c (gdbpy_initialize_py_events): Use
3561 py-all-events.def.
3562 * python/py-events.h (thread_event_object_type): Don't declare.
3563 (events_object): Use py-all-events.def.
3564 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3565 py-event-types.def.
3566 * python/py-event-types.def: New file.
3567 * python/py-continueevent.c (create_continue_event_object): Don't
3568 declare or define.
3569 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3570 declare or define.
3571 * python/py-all-events.def: New file.
3572
35c61a1d
TT
35732017-09-11 Tom Tromey <tom@tromey.com>
3574
3575 * python/py-threadevent.c (create_thread_event_object): Return
3576 gdbpy_ref.
3577 * python/py-stopevent.h (create_stop_event_object)
3578 (create_breakpoint_event_object, create_signal_event_object):
3579 Update.
3580 * python/py-stopevent.c (create_stop_event_object): Return
3581 gdbpy_ref.
3582 (emit_stop_event): Update.
3583 * python/py-signalevent.c (create_signal_event_object): Return
3584 gdbpy_ref.
3585 * python/py-infevents.c (create_inferior_call_event_object):
3586 Update.
3587 * python/py-event.h (create_event_object)
3588 (create_thread_event_object): Update.
3589 * python/py-event.c (create_event_object): Return gdbpy_ref.
3590 * python/py-continueevent.c: Return gdbpy_ref.
3591 * python/py-bpevent.c (create_breakpoint_event_object): Return
3592 gdbpy_ref.
3593
7c96f8c1
TT
35942017-09-11 Tom Tromey <tom@tromey.com>
3595
3596 PR python/15622:
3597 * NEWS: Add entry.
3598 * python/python.c (do_start_initialization): Initialize new event
3599 types.
3600 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3601 (gdbpy_initialize_inferior_deleted_event)
3602 (gdbpy_initialize_new_thread_event): Declare.
3603 * python/py-threadevent.c (create_thread_event_object): Add option
3604 "thread" parameter.
3605 * python/py-inferior.c (new_thread_event_object_type)
3606 (new_inferior_event_object_type)
3607 (inferior_deleted_event_object_type): Declare.
3608 (python_new_inferior, python_inferior_deleted): New functions.
3609 (add_thread_object): Emit new_thread event.
3610 (gdbpy_initialize_inferior): Attach new functions to corresponding
3611 observers.
3612 (new_thread, new_inferior, inferior_deleted): Define new event
3613 types.
3614 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3615 registries.
3616 * python/py-events.h (events_object) <new_inferior,
3617 inferior_deleted, new_thread>: New fields.
3618 * python/py-event.h (create_thread_event_breakpoint): Add optional
3619 "thread" parameter.
3620
72542b8e
AB
36212017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3622
3623 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3624 check current_ui instead.
3625 (internal_vproblem): Likewise.
3626
0d64823e
SM
36272017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3628
3629 * thread.c (print_thread_info_1): Remove unnecessary calls to
3630 uiout->is_mi_like_p.
3631
eb1e02fd
TT
36322017-09-09 Tom Tromey <tom@tromey.com>
3633
3634 * namespace.h (add_using_directive): Update.
3635 * namespace.c (add_using_directive): Change type of excludes to
3636 std::vector.
3637 * dwarf2read.c (read_import_statement): Use std::vector.
3638 (read_namespace): Update.
3639 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3640
0fc21fd8
TT
36412017-09-09 Tom Tromey <tom@tromey.com>
3642
3643 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3644
49663d05
TT
36452017-09-09 Tom Tromey <tom@tromey.com>
3646
3647 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3648
0b868b60
TT
36492017-09-09 Tom Tromey <tom@tromey.com>
3650
3651 * stack.c (func_command): Use gdb::def_vector.
3652
c0470d48
TT
36532017-09-09 Tom Tromey <tom@tromey.com>
3654
3655 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3656 ui_out_emit_list, ui_out_emit_tuple.
3657 (mi_cmd_var_update): Likewise.
3658
ca5909c7
TT
36592017-09-09 Tom Tromey <tom@tromey.com>
3660
3661 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3662 ui_out_redirect_pop.
3663 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3664 ui_out_redirect_pop.
3665 * utils.c (do_ui_out_redirect_pop)
3666 (make_cleanup_ui_out_redirect_pop): Remove.
3667 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3668 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3669 * ui-out.h (ui_out_redirect_pop): New class.
3670
e6a2252a
TT
36712017-09-09 Tom Tromey <tom@tromey.com>
3672
3673 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3674 (list_available_thread_groups, mi_cmd_list_thread_groups)
3675 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3676 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3677 Likewise.
3678
393702cd
TT
36792017-09-09 Tom Tromey <tom@tromey.com>
3680
3681 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3682 ui_out_emit_tuple.
3683
76f9c9cf
TT
36842017-09-09 Tom Tromey <tom@tromey.com>
3685
3686 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3687 * stack.c (print_frame): Use ui_out_emit_tuple.
3688 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3689 (info_spu_mailbox_command, info_spu_dma_command)
3690 (info_spu_proxydma_command): Likewise.
3691 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3692 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3693 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3694 ui_out_emit_tuple.
3695 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3696
dc9fe180
TT
36972017-09-09 Tom Tromey <tom@tromey.com>
3698
3699 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3700 (class ui_out_emit_table): Update comment.
3701 * ui-out.c (do_cleanup_table_end)
3702 (make_cleanup_ui_out_table_begin_end): Remove.
3703 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3704 (info_spu_dma_cmdlist): Likewise.
3705 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3706 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3707 ui_out_emit_table.
3708
f8cc3da6
TT
37092017-09-09 Tom Tromey <tom@tromey.com>
3710
3711 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3712 ui_out_emit_list, gdb::optional.
3713
481695ed
JB
37142017-09-09 John Baldwin <jhb@FreeBSD.org>
3715
3716 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3717 prototype.
3718 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3719 prototype.
3720 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3721 prototype.
3722 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3723 * ada-exp.y: Remove _initialize_ada_exp prototype.
3724 * ada-lang.c: Remove _initialize_ada_language prototype.
3725 * ada-tasks.c: Remove _initialize_tasks prototype.
3726 * addrmap.c: Remove _initialize_addrmap prototype.
3727 * agent.c: Remove _initialize_agent prototype.
3728 * aix-thread.c: Remove _initialize_aix_thread prototype.
3729 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3730 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3731 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3732 prototype.
3733 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3734 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3735 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3736 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3737 prototype.
3738 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
3739 prototype.
3740 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
3741 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
3742 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
3743 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
3744 prototype.
3745 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
3746 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
3747 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
3748 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
3749 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3750 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
3751 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
3752 prototype.
3753 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
3754 prototype.
3755 * annotate.c: Remove _initialize_annotate prototype.
3756 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
3757 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
3758 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
3759 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
3760 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
3761 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
3762 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
3763 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
3764 prototype.
3765 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
3766 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
3767 * auto-load.c: Remove _initialize_auto_load prototype.
3768 * auxv.c: Remove _initialize_auxv prototype.
3769 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
3770 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
3771 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
3772 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
3773 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
3774 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
3775 prototype.
3776 * break-catch-throw.c: Remove _initialize_break_catch_throw
3777 prototype.
3778 * breakpoint.c: Remove _initialize_breakpoint prototype.
3779 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
3780 * btrace.c: Remove _initialize_btrace prototype.
3781 * charset.c: Remove _initialize_charset prototype.
3782 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
3783 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
3784 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
3785 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
3786 * cli/cli-script.c: Remove _initialize_cli_script prototype.
3787 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
3788 * coffread.c: Remove _initialize_coffread prototype.
3789 * compile/compile.c: Remove _initialize_compile prototype.
3790 * complaints.c: Remove _initialize_complaints prototype.
3791 * completer.c: Remove _initialize_completer prototype.
3792 * copying.awk: Remove _initialize_copying prototype.
3793 * copying.c: Regenerate.
3794 * core-regset.c: Remove _initialize_core_regset prototype.
3795 * corefile.c: Remove _initialize_core prototype.
3796 * corelow.c: Remove _initialize_corelow prototype.
3797 * cp-abi.c: Remove _initialize_cp_abi prototype.
3798 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
3799 * cp-support.c: Remove _initialize_cp_support prototype.
3800 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
3801 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
3802 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
3803 * ctf.c: Remove _initialize_ctf prototype.
3804 * d-lang.c: Remove _initialize_d_language prototype.
3805 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
3806 prototype.
3807 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
3808 * dbxread.c: Remove _initialize_dbxread prototype.
3809 * dcache.c: Remove _initialize_dcache prototype.
3810 * demangle.c: Remove _initialize_demangler prototype.
3811 * disasm-selftests.c: Remove _initialize_disasm_selftests
3812 prototype.
3813 * disasm.c: Remove _initialize_disasm prototype.
3814 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
3815 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
3816 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
3817 prototype.
3818 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
3819 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
3820 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
3821 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
3822 * elfread.c: Remove _initialize_elfread prototype.
3823 * exec.c: Remove _initialize_exec prototype.
3824 * extension.c: Remove _initialize_extension prototype.
3825 * f-lang.c: Remove _initialize_f_language prototype.
3826 * f-valprint.c: Remove _initialize_f_valprint prototype.
3827 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
3828 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
3829 * filesystem.c: Remove _initialize_filesystem prototype.
3830 * findcmd.c: Remove _initialize_mem_search prototype.
3831 * fork-child.c: Remove _initialize_fork_child prototype.
3832 * frame-base.c: Remove _initialize_frame_base prototype.
3833 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
3834 * frame.c: Remove _initialize_frame prototype.
3835 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
3836 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
3837 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
3838 * gcore.c: Remove _initialize_gcore prototype.
3839 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
3840 * gdbarch.c: Regenerate.
3841 * gdbarch.sh: Remove _initialize_gdbarch prototype.
3842 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
3843 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
3844 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
3845 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
3846 * go-lang.c: Remove _initialize_go_language prototype.
3847 * go32-nat.c: Remove _initialize_go32_nat prototype.
3848 * guile/guile.c: Remove _initialize_guile prototype.
3849 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
3850 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
3851 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
3852 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
3853 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
3854 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
3855 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
3856 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
3857 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
3858 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
3859 prototype.
3860 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
3861 prototype.
3862 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
3863 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
3864 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
3865 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
3866 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
3867 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
3868 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
3869 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
3870 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
3871 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
3872 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
3873 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
3874 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
3875 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3876 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
3877 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
3878 prototype.
3879 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
3880 prototype.
3881 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
3882 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
3883 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
3884 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
3885 * infcall.c: Remove _initialize_infcall prototype.
3886 * infcmd.c: Remove _initialize_infcmd prototype.
3887 * inferior.c: Remove _initialize_inferiors prototype.
3888 * inflow.c: Remove _initialize_inflow prototype.
3889 * infrun.c: Remove _initialize_infrun prototype.
3890 * interps.c: Remove _initialize_interpreter prototype.
3891 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
3892 * jit.c: Remove _initialize_jit prototype.
3893 * language.c: Remove _initialize_language prototype.
3894 * linux-fork.c: Remove _initialize_linux_fork prototype.
3895 * linux-nat.c: Remove _initialize_linux_nat prototype.
3896 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
3897 * linux-thread-db.c: Remove _initialize_thread_db prototype.
3898 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
3899 * m2-lang.c: Remove _initialize_m2_language prototype.
3900 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
3901 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
3902 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
3903 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
3904 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
3905 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3906 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3907 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
3908 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
3909 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
3910 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3911 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3912 * machoread.c: Remove _initialize_machoread prototype.
3913 * macrocmd.c: Remove _initialize_macrocmd prototype.
3914 * macroscope.c: Remove _initialize_macroscope prototype.
3915 * maint.c: Remove _initialize_maint_cmds prototype.
3916 * mdebugread.c: Remove _initialize_mdebugread prototype.
3917 * memattr.c: Remove _initialize_mem prototype.
3918 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
3919 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
3920 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
3921 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
3922 * mi/mi-main.c: Remove _initialize_mi_main prototype.
3923 * microblaze-linux-tdep.c: Remove
3924 _initialize_microblaze_linux_tdep prototype.
3925 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
3926 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
3927 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
3928 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
3929 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
3930 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
3931 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
3932 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
3933 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
3934 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
3935 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
3936 prototype.
3937 * mipsread.c: Remove _initialize_mipsread prototype.
3938 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
3939 prototype.
3940 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
3941 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
3942 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
3943 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
3944 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
3945 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
3946 prototype.
3947 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
3948 * nto-procfs.c: Remove _initialize_procfs prototype.
3949 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
3950 * objc-lang.c: Remove _initialize_objc_language prototype.
3951 * objfiles.c: Remove _initialize_objfiles prototype.
3952 * observer.c: Remove observer_test_first_notification_function,
3953 observer_test_second_notification_function,
3954 observer_test_third_notification_function, and
3955 _initialize_observer prototypes.
3956 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
3957 * osabi.c: Remove _initialize_gdb_osabi prototype.
3958 * osdata.c: Remove _initialize_osdata prototype.
3959 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
3960 * parse.c: Remove _initialize_parse prototype.
3961 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
3962 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
3963 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
3964 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
3965 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
3966 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
3967 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
3968 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
3969 * printcmd.c: Remove _initialize_printcmd prototype.
3970 * probe.c: Remove _initialize_probe prototype.
3971 * proc-api.c: Remove _initialize_proc_api prototype.
3972 * proc-events.c: Remove _initialize_proc_events prototype.
3973 * proc-service.c: Remove _initialize_proc_service prototype.
3974 * procfs.c: Remove _initialize_procfs prototype.
3975 * psymtab.c: Remove _initialize_psymtab prototype.
3976 * python/python.c: Remove _initialize_python prototype.
3977 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
3978 * record-btrace.c: Remove _initialize_record_btrace prototype.
3979 * record-full.c: Remove _initialize_record_full prototype.
3980 * record.c: Remove _initialize_record prototype.
3981 * regcache.c: Remove _initialize_regcache prototype.
3982 * reggroups.c: Remove _initialize_reggroup prototype.
3983 * remote-notif.c: Remove _initialize_notif prototype.
3984 * remote-sim.c: Remove _initialize_remote_sim prototype.
3985 * remote.c: Remove _initialize_remote prototype.
3986 * reverse.c: Remove _initialize_reverse prototype.
3987 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
3988 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
3989 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
3990 prototype.
3991 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
3992 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
3993 * rust-exp.y: Remove _initialize_rust_exp prototype.
3994 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
3995 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
3996 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
3997 * score-tdep.c: Remove _initialize_score_tdep prototype.
3998 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
3999 prototype.
4000 * ser-go32.c: Remove _initialize_ser_dos prototype.
4001 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4002 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4003 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4004 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4005 * serial.c: Remove _initialize_serial prototype.
4006 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4007 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4008 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4009 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4010 * skip.c: Remove _initialize_step_skip prototype.
4011 * sol-thread.c: Remove _initialize_sol_thread prototype.
4012 * solib-aix.c: Remove _initialize_solib_aix prototype.
4013 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4014 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4015 * solib-frv.c: Remove _initialize_frv_solib prototype.
4016 * solib-spu.c: Remove _initialize_spu_solib prototype.
4017 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4018 * solib-target.c: Remove _initialize_solib_target prototype.
4019 * solib.c: Remove _initialize_solib prototype.
4020 * source.c: Remove _initialize_source prototype.
4021 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4022 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4023 prototype.
4024 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4025 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4026 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4027 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4028 prototype.
4029 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4030 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4031 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4032 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4033 prototype.
4034 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4035 prototype.
4036 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4037 prototype.
4038 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4039 prototype.
4040 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4041 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4042 prototype.
4043 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4044 prototype.
4045 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4046 prototype.
4047 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4048 prototype.
4049 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4050 prototype.
4051 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4052 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4053 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4054 * stabsread.c: Remove _initialize_stabsread prototype.
4055 * stack.c: Remove _initialize_stack prototype.
4056 * stap-probe.c: Remove _initialize_stap_probe prototype.
4057 * std-regs.c: Remove _initialize_frame_reg prototype.
4058 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4059 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4060 * symfile.c: Remove _initialize_symfile prototype.
4061 * symmisc.c: Remove _initialize_symmisc prototype.
4062 * symtab.c: Remove _initialize_symtab prototype.
4063 * target-dcache.c: Remove _initialize_target_dcache prototype.
4064 * target-descriptions.c: Remove _initialize_target_descriptions
4065 prototype.
4066 * thread.c: Remove _initialize_thread prototype.
4067 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4068 prototype.
4069 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4070 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4071 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4072 prototype.
4073 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4074 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4075 * tracefile.c: Remove _initialize_tracefile prototype.
4076 * tracepoint.c: Remove _initialize_tracepoint prototype.
4077 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4078 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4079 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4080 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4081 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4082 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4083 * tui/tui.c: Remove _initialize_tui prototype.
4084 * typeprint.c: Remove _initialize_typeprint prototype.
4085 * user-regs.c: Remove _initialize_user_regs prototype.
4086 * utils.c: Remove _initialize_utils prototype.
4087 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4088 * valarith.c: Remove _initialize_valarith prototype.
4089 * valops.c: Remove _initialize_valops prototype.
4090 * valprint.c: Remove _initialize_valprint prototype.
4091 * value.c: Remove _initialize_values prototype.
4092 * varobj.c: Remove _initialize_varobj prototype.
4093 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4094 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4095 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4096 * windows-nat.c: Remove _initialize_windows_nat,
4097 _initialize_check_for_gdb_ini, and _initialize_loadable
4098 prototypes.
4099 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4100 * xcoffread.c: Remove _initialize_xcoffread prototype.
4101 * xml-support.c: Remove _initialize_xml_support prototype.
4102 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4103 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4104 prototype.
4105 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4106 prototype.
4107 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4108
a611b5cb
KS
41092017-09-08 Keith Seitz <keiths@redhat.com>
4110
4111 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4112 field.
4113
469412dd
CW
41142017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4115
4116 * f-valprint.c (f_val_print): Remove check for one byte
4117 sized integers. Remove printing of character type.
4118
a5ad232b
FP
41192017-09-08 Frank Penczek <frank.penczek@intel.com>
4120 Christoph Weinmann <christoph.t.weinmann@intel.com>
4121 Bernhard Heckel <bernhard.heckel@intel.com>
4122
4123 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4124 to maintain proper indentation when printing pointers/refs.
4125
e5014227
JB
41262017-09-07 Joel Brobecker <brobecker@adacore.com>
4127
4128 GDB 8.0.1 released.
4129
63c99141
JB
41302017-09-07 Joel Brobecker <brobecker@adacore.com>
4131
4132 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4133
69c1e056
TT
41342017-09-05 Tom Tromey <tom@tromey.com>
4135
4136 * parse.c (funcall_chain): Now a std::vector.
4137 (start_arglist, end_arglist): Simplify.
4138 (free_funcalls): Remove.
4139 (parse_exp_in_context_1): Remove cleanup.
4140
fef704bf
TT
41412017-09-05 Tom Tromey <tom@tromey.com>
4142
4143 * go-exp.y (go_parse): Don't create a cleanup.
4144
5613c585
TT
41452017-09-05 Tom Tromey <tom@tromey.com>
4146
4147 * d-exp.y (PrimaryExpression): Use std::string.
4148 (d_parse): Don't create a cleanup.
4149
eae49211
TT
41502017-09-05 Tom Tromey <tom@tromey.com>
4151
4152 * utils.c (do_clear_parser_state): Remove.
4153 (make_cleanup_clear_parser_state): Remove.
4154 * p-exp.y (pascal_parse): Use scoped_restore.
4155 * m2-exp.y (m2_parse): Use scoped_restore.
4156 * f-exp.y (f_parse): Use scoped_restore.
4157 * d-exp.y (d_parse): Use scoped_restore.
4158 * c-exp.y (c_parse): Use scoped_restore.
4159 * ada-exp.y (ada_parse): Use scoped_restore.
4160 * utils.h (make_cleanup_clear_parser_state): Remove.
4161
73b9be8b
KS
41622017-09-06 Keith Seitz <keiths@redhat.com>
4163
4164 * dwarf2read.c (dw2_linkage_name_attr): New function.
4165 (dw2_linkage_name): New function.
4166 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4167 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4168 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4169
a102602b
KR
41702017-09-06 Kamil Rytarowski <n54@gmx.com>
4171
4172 * config/djgpp/djconfig.sh: Correct shell portability issue.
4173
28ad437d
KR
41742017-09-06 Kamil Rytarowski <n54@gmx.com>
4175
4176 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4177
351787dd
JB
41782017-09-06 John Baldwin <jhb@FreeBSD.org>
4179
4180 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4181 * NEWS: Mention new FreeBSD/mips native configuration.
4182 * configure.host: Add aarch64*-*-freebsd*.
4183 * configure.nat: Likewise.
4184 * aarch64-fbsd-nat.c: New file.
4185
c0f84956
JB
41862017-09-06 John Baldwin <jhb@FreeBSD.org>
4187
4188 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4189 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4190 * NEWS: Mention new FreeBSD/aarch64 target.
4191 * configure.tgt: Add aarch64*-*-freebsd*.
4192 * aarch64-fbsd-tdep.c: New file.
4193 * aarch64-fbsd-tdep.h: New file.
4194
7610297a
KR
41952017-09-06 Kamil Rytarowski <n54@gmx.com>
4196
4197 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4198
fbd1b771
JK
41992017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4200
4201 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4202 of TLS symbols.
4203
5ca79eae
PW
42042017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4205
4206 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4207 call.
4208
bf93d7ba
SM
42092017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4210
4211 * infrun.c (follow_exec): Call add_thread after
4212 target_find_description.
4213
1bb7c059
SM
42142017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4215
4216 * infrun.c (handle_inferior_event_1): When exec'ing, read
4217 stop_pc after follow_exec.
4218
fc809827
SM
42192017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4220
4221 * remote.c (process_g_packet): Update error message.
4222
d2fcdd85
YQ
42232017-09-05 Yao Qi <yao.qi@linaro.org>
4224
4225 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4226 targets.
4227
e69570ee
PA
42282017-09-05 Pedro Alves <palves@redhat.com>
4229
4230 * eval.c (eval_call, evaluate_funcall): New functions, factored
4231 out from ...
4232 (evaluate_subexp_standard): ... this.
4233
22916b07
YQ
42342017-09-05 Yao Qi <yao.qi@linaro.org>
4235
4236 * amd64-tdep.c (amd64_target_description): Create target
4237 descriptions.
4238 (_initialize_amd64_tdep): Don't call functions
4239 initialize_tdesc_amd64_*. Add self tests.
4240 * arch/amd64.c (amd64_create_target_description): Add parameter
4241 is_linux. Call set_tdesc_osabi if is_linux is true.
4242 * arch/amd64.h (amd64_create_target_description): Update the
4243 declaration.
4244 * arch/i386.c (i386_create_target_description): Add parameter
4245 is_linux. Call set_tdesc_osabi if is_linux is true.
4246 * arch/i386.h (i386_create_target_description): Update
4247 declaration.
4248 * configure.tgt: Add i386.o to gdb_target_obs.
4249 * features/Makefile (XMLTOC): Remove i386/*.xml.
4250 * features/i386/amd64-avx-avx512.c: Remove.
4251 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4252 * features/i386/amd64-avx-mpx.c: Remove.
4253 * features/i386/amd64-avx.c: Remove.
4254 * features/i386/amd64-mpx.c: Remove.
4255 * features/i386/amd64.c: Remove.
4256 * features/i386/i386-avx-avx512.c: Remove.
4257 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4258 * features/i386/i386-avx-mpx.c: Remove.
4259 * features/i386/i386-avx.c: Remove.
4260 * features/i386/i386-mmx.c: Remove.
4261 * features/i386/i386-mpx.c: Remove.
4262 * features/i386/i386.c: Remove.
4263 * i386-tdep.c: Don't include features/i386/i386*.c., include
4264 target-descriptions.h and arch/i386.h.
4265 (i386_target_description): Create target descriptions.
4266 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4267 functions. Do self tests.
4268
0854b7b1
YQ
42692017-09-05 Yao Qi <yao.qi@linaro.org>
4270
4271 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4272 * features/i386/amd64-avx-avx512-linux.c: Removed.
4273 * features/i386/amd64-avx-linux.c: Removed.
4274 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4275 * features/i386/amd64-avx-mpx-linux.c: Removed.
4276 * features/i386/amd64-linux.c: Removed.
4277 * features/i386/amd64-mpx-linux.c: Removed.
4278 * features/i386/x32-avx-avx512-linux.c: Removed.
4279 * features/i386/x32-avx-linux.c: Removed.
4280 * features/i386/x32-linux.c: Removed.
4281
b4570e4b
YQ
42822017-09-05 Yao Qi <yao.qi@linaro.org>
4283
4284 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4285 features/i386/*.c.
4286 (amd64_linux_read_description): Call
4287 amd64_create_target_description.
4288 * arch/amd64.c: New file.
4289 * arch/amd64.h: New file.
4290 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4291 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4292
6c73f67f
YQ
42932017-09-05 Yao Qi <yao.qi@linaro.org>
4294
4295 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4296 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4297 (amd64_linux_read_description): Create target descriptions.
4298 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4299 functions. Add unit tests.
4300 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4301 x32-core.xml.
4302 * features/i386/64bit-avx.c: Generated.
4303 * features/i386/64bit-avx512.c: Generated.
4304 * features/i386/64bit-core.c: Generated.
4305 * features/i386/64bit-linux.c: Generated.
4306 * features/i386/64bit-mpx.c: Generated.
4307 * features/i386/64bit-pkeys.c: Generated.
4308 * features/i386/64bit-segments.c: Generated.
4309 * features/i386/64bit-sse.c: Generated.
4310 * features/i386/x32-core.c: Generated.
4311 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4312 c files for amd64-linux and x32-linux.
4313
9d3d478b
YQ
43142017-09-05 Yao Qi <yao.qi@linaro.org>
4315
4316 * amd64-linux-tdep.c (amd64_linux_read_description): New
4317 function.
4318 (amd64_linux_core_read_description): Call
4319 amd64_linux_read_description.
4320 (amd64_linux_init_abi): Likewise.
4321 (amd64_x32_linux_init_abi): Likewise.
4322 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4323 * x86-linux-nat.c (x86_linux_read_description): Call
4324 amd64_linux_read_description.
4325
b9f1d50f
YQ
43262017-09-05 Yao Qi <yao.qi@linaro.org>
4327
4328 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4329 comments.
4330
188c9e6d
YQ
43312017-09-05 Yao Qi <yao.qi@linaro.org>
4332
4333 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4334 * features/i386/i386-avx-avx512-linux.c: Remove.
4335 * features/i386/i386-avx-linux.c: Remove.
4336 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4337 * features/i386/i386-avx-mpx-linux.c: Remove.
4338 * features/i386/i386-linux.c: Remove.
4339 * features/i386/i386-mmx-linux.c: Remove.
4340 * features/i386/i386-mpx-linux.c: Remove.
4341
5f035c07
YQ
43422017-09-05 Yao Qi <yao.qi@linaro.org>
4343
4344 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4345 (SFILES): Add arch/i386.c.
4346 (HFILES_NO_SRCDIR): Add arch/i386.h.
4347 * arch/i386.c: New file.
4348 * arch/i386.h: New file.
4349 * arch/tdesc.h (allocate_target_description): Declare.
4350 (set_tdesc_architecture): Declare.
4351 (set_tdesc_osabi): Declare.
4352 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4353 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4354 include arch/i386.h.
4355 (i386_linux_read_description): Remove code and call
4356 i386_create_target_description.
4357 (set_tdesc_architecture): New function.
4358 (set_tdesc_osabi): New function.
4359 * target-descriptions.h (allocate_target_description): Remove.
4360
0abe8a89
YQ
43612017-09-05 Yao Qi <yao.qi@linaro.org>
4362
4363 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4364 * target-descriptions.c (tdesc_create_feature): Likewise, and
4365 adjust code.
4366 * features/i386/32bit-avx.c: Re-generated.
4367 * features/i386/32bit-avx512.c: Re-generated.
4368 * features/i386/32bit-core.c: Re-generated.
4369 * features/i386/32bit-linux.c: Re-generated.
4370 * features/i386/32bit-mpx.c: Re-generated.
4371 * features/i386/32bit-pkeys.c: Re-generated.
4372 * features/i386/32bit-sse.c: Re-generated.
4373
0a188386
YQ
43742017-09-05 Yao Qi <yao.qi@linaro.org>
4375
4376 * regformats/regdef.h (struct reg): Override operator == and !=.
4377
f49ff000
YQ
43782017-09-05 Yao Qi <yao.qi@linaro.org>
4379
4380 * arch/tdesc.h: New file.
4381 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4382 * target-descriptions.c: Update comments.
4383 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4384 declarations.
4385 * features/i386/32bit-avx.c: Re-generated.
4386 * features/i386/32bit-avx512.c: Re-generated.
4387 * features/i386/32bit-core.c: Re-generated.
4388 * features/i386/32bit-linux.c: Re-generated.
4389 * features/i386/32bit-mpx.c: Re-generated.
4390 * features/i386/32bit-pkeys.c: Re-generated.
4391 * features/i386/32bit-sse.c: Re-generated.
4392
f7000548
YQ
43932017-09-05 Yao Qi <yao.qi@linaro.org>
4394
4395 * regformats/regdat.sh: Update generated code.
4396
c9a5e2a5
YQ
43972017-09-05 Yao Qi <yao.qi@linaro.org>
4398
4399 * regformats/regdat.sh: Adjust code order.
4400
d6b687ac
SM
44012017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4402
4403 * expprint.c (dump_subexp_body_standard): Use constant format
4404 string in fprintf_filtered call.
4405
a379bfd0
JB
44062017-09-04 John Baldwin <jhb@FreeBSD.org>
4407
4408 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4409 NetBSD/i386.
4410 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4411
f7efc967
JB
44122017-09-04 John Baldwin <jhb@FreeBSD.org>
4413
4414 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4415
c49fbc6c
JB
44162017-09-04 John Baldwin <jhb@FreeBSD.org>
4417
4418 * bsd-kvm.o: Define _KMEMUSER.
4419 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4420 * configure: Regenerate.
4421
26562e73
JB
44222017-09-04 John Baldwin <jhb@FreeBSD.org>
4423
4424 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4425 * i386-fbsd-nat.c: Likewise.
4426
31cf1487
JB
44272017-09-04 John Baldwin <jhb@FreeBSD.org>
4428
4429 * unittests/array-view-selftests.c: Add include of <array>.
4430
5b9f8a7c
JB
44312017-09-04 John Baldwin <jhb@FreeBSD.org>
4432
4433 * spu-tdep.c (flush_ea_cache): Add missing argument to
4434 call_function_by_hand.
4435
d69cf9b2
PA
44362017-09-04 Pedro Alves <palves@redhat.com>
4437
4438 * NEWS (Safer support for debugging with no debug info): New.
4439
3693fdb3
PA
44402017-09-04 Pedro Alves <palves@redhat.com>
4441
4442 * c-exp.y (function_method, function_method_void): Add current
4443 instance flags to TYPE_INSTANCE.
4444 * dwarf2read.c (check_modifier): New.
4445 (compute_delayed_physnames): Assert that only C++ adds delayed
4446 physnames. Mark fn_fields as const/volatile depending on
4447 physname.
4448 * eval.c (make_params): New type_instance_flags parameter. Use
4449 it as the new type's instance flags.
4450 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4451 flags element and pass it to make_params.
4452 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4453 instance flags element.
4454 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4455 * gdbtypes.h: Include "enum-flags.h".
4456 (type_instance_flags): New enum-flags type.
4457 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4458 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4459 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4460 (follow_type_instance_flags): New function.
4461 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4462 * parser-defs.h (follow_type_instance_flags): Declare.
4463 * valops.c (value_struct_elt_for_reference): const/volatile must
4464 match too.
4465
e68cb8e0
PA
44662017-09-04 Pedro Alves <palves@redhat.com>
4467
4468 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4469 function/method scopes; lookup the nested name as a function local
4470 static variable.
4471
858be34c
PA
44722017-09-04 Pedro Alves <palves@redhat.com>
4473
4474 (%type <voidval>): Add function_method.
4475 * c-exp.y (exp): New production for calls with no arguments.
4476 (function_method, function_method_void_or_typelist): New
4477 productions.
4478 (exp): New production for "method()::static_var".
4479 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4480 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4481 Handle OP_FUNC_STATIC_VAR.
4482 * parse.c (operator_length_standard):
4483 Handle OP_FUNC_STATIC_VAR.
4484
dd5901a6
PA
44852017-09-04 Pedro Alves <palves@redhat.com>
4486
4487 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4488 handling.
4489 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4490 Ditto.
4491 * parse.c (operator_length_standard, operator_check_standard):
4492 Ditto.
4493 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4494
46a4882b
PA
44952017-09-04 Pedro Alves <palves@redhat.com>
4496
4497 * ax-gdb.c: Include "typeprint.h".
4498 (gen_expr_for_cast): New function.
4499 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4500 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4501 type is unknown.
4502 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4503 nodebug_data_symbol.
4504 * eval.c: Include "typeprint.h".
4505 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4506 Error out if symbol has unknown type.
4507 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4508 evaluate_subexp_for_cast.
4509 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4510 OP_VAR_MSYM_VALUE.
4511 (evaluate_subexp_for_cast): New function.
4512 * gdbtypes.c (init_nodebug_var_type): New function.
4513 (objfile_type): Use it to initialize types of variables with no
4514 debug info.
4515 * typeprint.c (error_unknown_type): New.
4516 * typeprint.h (error_unknown_type): New declaration.
4517 * compile/compile-c-types.c (convert_type_basic): Handle
4518 TYPE_CODE_ERROR; warn and fallback to int for variables with
4519 unknown type.
4520
fe13dfec
PA
45212017-09-04 Pedro Alves <palves@redhat.com>
4522
4523 * eval.c (evaluate_var_value): New function, factored out from ...
4524 (evaluate_subexp_standard): ... here.
4525
d008ee21
PA
45262017-09-04 Pedro Alves <palves@redhat.com>
4527
4528 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4529 Remove useless assignments to 'op'.
4530
827d0c51
PA
45312017-09-04 Pedro Alves <palves@redhat.com>
4532
4533 * eval.c (eval_skip_value): New function.
4534 (evaluate_subexp_standard): Use it.
4535
2c5a2be1
PA
45362017-09-04 Pedro Alves <palves@redhat.com>
4537
4538 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4539 function name from symbol/minsym and pass it to
4540 error_call_unknown_return_type.
4541
74ea4be4
PA
45422017-09-04 Pedro Alves <palves@redhat.com>
4543
4544 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4545 * ax-gdb.c (gen_msym_var_ref): New function.
4546 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4547 * eval.c (evaluate_var_msym_value): New function.
4548 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4549 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4550 to call_function_by_hand.
4551 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4552 Handle OP_VAR_MSYM_VALUE.
4553 (union exp_element) <msymbol>: New field.
4554 * minsyms.h (struct type): Forward declare.
4555 (find_minsym_type_and_address): Declare.
4556 * parse.c (write_exp_elt_msym): New function.
4557 (write_exp_msymbol): Delete, refactored as ...
4558 (find_minsym_type_and_address): ... this new function.
4559 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4560 (operator_length_standard, operator_check_standard): Handle
4561 OP_VAR_MSYM_VALUE.
4562 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4563
7022349d
PA
45642017-09-04 Pedro Alves <palves@redhat.com>
4565
4566 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4567 TYPE_GNU_IFUNC specially here. Throw error if return type is
4568 unknown.
4569 * ada-typeprint.c (print_func_type): Handle functions with unknown
4570 return type.
4571 * c-typeprint.c (c_type_print_base): Handle functions and methods
4572 with unknown return type.
4573 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4574 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4575 * compile/compile-c-types.c: Include "objfiles.h".
4576 (convert_func): For functions with unknown return type, warn and
4577 default to int.
4578 * compile/compile-object-run.c (compile_object_run): Adjust call
4579 to call_function_by_hand_dummy.
4580 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4581 call_function_by_hand.
4582 * eval.c (evaluate_subexp_standard): Adjust calls to
4583 call_function_by_hand. Handle functions and methods with unknown
4584 return type. Pass expect_type to call_function_by_hand.
4585 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4586 return type.
4587 * gcore.c (call_target_sbrk): Adjust call to
4588 call_function_by_hand.
4589 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4590 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4591 an integer address type instead of nodebug.
4592 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4593 call_function_by_hand.
4594 * infcall.c (error_call_unknown_return_type): New function.
4595 (call_function_by_hand): New "default_return_type" parameter.
4596 Pass it down.
4597 (call_function_by_hand_dummy): New "default_return_type"
4598 parameter. Use it instead of defaulting to int. If there's no
4599 default and the return type is unknown, throw an error. If
4600 there's a default return type, and the called function has no
4601 debug info, then assume the function is prototyped.
4602 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4603 New "default_return_type" parameter.
4604 (error_call_unknown_return_type): New declaration.
4605 * linux-fork.c (call_lseek): Cast return type of lseek.
4606 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4607 call_function_by_hand.
4608 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4609 calls to call_function_by_hand.
4610 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4611 return type.
4612 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4613 (value_nsstring, print_object_command): Adjust calls to
4614 call_function_by_hand.
4615 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4616 functions with unknown return type.
4617 (pascal_type_print_func_varspec_suffix): New function.
4618 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4619 TYPE_CODE_METHOD>: Use it.
4620 * python/py-value.c (valpy_call): Adjust call to
4621 call_function_by_hand.
4622 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4623 call_function_by_hand.
4624 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4625 call_function_by_hand.
4626 * valops.c (value_allocate_space_in_inferior): Adjust call to
4627 call_function_by_hand.
4628 * typeprint.c (type_print_unknown_return_type): New function.
4629 * typeprint.h (type_print_unknown_return_type): New declaration.
4630
54990598
PA
46312017-09-04 Pedro Alves <palves@redhat.com>
4632
4633 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4634 types with more than one parameter as prototyped.
4635
9a24775b
PA
46362017-09-04 Pedro Alves <palves@redhat.com>
4637
4638 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4639 (disassemble_command): Use gdb_disassembly_flags instead of bare
4640 int.
4641 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4642 (dump_insns, do_mixed_source_and_assembly_deprecated)
4643 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4644 Use gdb_disassembly_flags instead of bare int.
4645 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4646 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4647 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4648 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4649 (enum gdb_disassembly_flag): ... values of this new enumeration.
4650 (gdb_disassembly_flags): Define.
4651 (gdb_disassembly)
4652 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4653 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4654 gdb_disassembly_flags instead of bare int.
4655 * record-btrace.c (btrace_insn_history)
4656 (record_btrace_insn_history, record_btrace_insn_history_range)
4657 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4658 instead of bare int.
4659 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4660 Use gdb_disassembly_flags instead of bare int.
4661 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4662 Define.
4663 * target-delegates.c: Regenerate.
4664 * target.c (target_insn_history, target_insn_history_from)
4665 (target_insn_history_range): Use gdb_disassembly_flags instead of
4666 bare int.
4667 * target.h: Include "disasm.h".
4668 (struct target_ops) <to_insn_history, to_insn_history_from,
4669 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4670 int.
4671 (target_insn_history, target_insn_history_from)
4672 (target_insn_history_range): Use gdb_disassembly_flags instead of
4673 bare int.
4674
80a65e9b
SM
46752017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4676
4677 * cli/cli-script.c (build_command_line): For if/while commands,
4678 check whether args is empty.
4679
6b66338c
SM
46802017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4681
4682 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4683 (enum command_control_type): Likewise.
4684 (struct command_line): Likewise.
4685 (free_command_lines): Likewise.
4686 (struct command_lines_deleter): Likewise.
4687 (command_line_up): Likewise.
4688 (read_command_lines): Likewise.
4689 (read_command_lines_1): Likewise.
4690 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4691 (enum command_control_type): Likewise.
4692 (struct command_line): Likewise.
4693 (free_command_lines): Likewise.
4694 (struct command_lines_deleter): Likewise.
4695 (command_line_up): Likewise.
4696 (read_command_lines): Likewise.
4697 (read_command_lines_1): Likewise.
4698 * breakpoint.h: Include cli/cli-script.h.
4699 * extension-priv.h: Likewise.
4700 * gdbcmd.h: Likewise.
4701
51abb421
PA
47022017-09-04 Pedro Alves <palves@redhat.com>
4703
4704 * ada-lang.c (is_known_support_routine): Move sal declaration to
4705 where it is initialized.
4706 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4707 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4708 (clear_command, update_static_tracepoint): Remove init_sal
4709 references. Move declarations closer to initializations.
4710 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4711 initializations.
4712 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4713 references. Move sal declarations closer to initializations.
4714 * frame.c (find_frame_sal): Return a symtab_and_line via function
4715 return instead of output parameter. Remove init_sal references.
4716 * frame.h (find_frame_sal): Return a symtab_and_line via function
4717 return instead of output parameter.
4718 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4719 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4720 instead of memset.
4721 (gdbscm_find_pc_line): Remove init_sal reference.
4722 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4723 references. Move declarations closer to initializations.
4724 * infcmd.c (set_step_frame): Update. Move declarations closer to
4725 initializations.
4726 (finish_backward): Remove init_sal references. Move declarations
4727 closer to initializations.
4728 * infrun.c (process_event_stop_test, handle_step_into_function)
4729 (insert_hp_step_resume_breakpoint_at_frame)
4730 (insert_step_resume_breakpoint_at_caller): Likewise.
4731 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4732 (symbol_to_sal): Likewise.
4733 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4734 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4735 to its initialization.
4736 * reverse.c (save_bookmark_command): Use new/delete. Remove
4737 init_sal references. Move declarations closer to initializations.
4738 * source.c (get_current_source_symtab_and_line): Remove brace
4739 initialization.
4740 (set_current_source_symtab_and_line): Now takes the sal by const
4741 reference. Remove brace initialization.
4742 (line_info): Remove init_sal reference.
4743 * source.h (set_current_source_symtab_and_line): Now takes a
4744 symtab_and_line via const reference.
4745 * stack.c (set_current_sal_from_frame): Adjust.
4746 (print_frame_info): Adjust.
4747 (get_last_displayed_sal): Return the sal via function return
4748 instead of via output parameter. Simplify.
4749 (frame_info): Adjust.
4750 * stack.h (get_last_displayed_sal): Return the sal via function
4751 return instead of via output parameter.
4752 * symtab.c (init_sal): Delete.
4753 (find_pc_sect_line): Remove init_sal references. Move
4754 declarations closer to initializations.
4755 (find_function_start_sal): Remove init_sal references. Move
4756 declarations closer to initializations.
4757 * symtab.h (struct symtab_and_line): In-class initialize all
4758 fields.
4759 * tracepoint.c (set_traceframe_context)
4760 (print_one_static_tracepoint_marker): Remove init_sal references.
4761 Move declarations closer to initializations.
4762 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
4763 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
4764 declarations closer to initializations.
4765 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
4766 init_sal references. Adjust.
4767
6c5b2ebe
PA
47682017-09-04 Pedro Alves <palves@redhat.com>
4769
4770 * ax-gdb.c (agent_command_1): Use range-for.
4771 * break-catch-throw.c (re_set_exception_catchpoint): Update.
4772 * breakpoint.c: Include "common/array-view.h".
4773 (init_breakpoint_sal, create_breakpoint_sal): Change sals
4774 parameter from struct symtabs_and_lines to
4775 array_view<symtab_and_line>. Adjust. Use range-for. Update.
4776 (breakpoint_sals_to_pc): Change sals parameter from struct
4777 symtabs_and_lines to std::vector reference.
4778 (check_fast_tracepoint_sals): Change sals parameter from struct
4779 symtabs_and_lines to std::array_view. Use range-for.
4780 (decode_static_tracepoint_spec): Return a std::vector instead of
4781 symtabs_and_lines. Update.
4782 (create_breakpoint): Update.
4783 (break_range_command, until_break_command, clear_command): Update.
4784 (base_breakpoint_decode_location, bkpt_decode_location)
4785 (bkpt_probe_create_sals_from_location)
4786 (bkpt_probe_decode_location, tracepoint_decode_location)
4787 (tracepoint_probe_decode_location)
4788 (strace_marker_create_sals_from_location): Return a std::vector
4789 instead of symtabs_and_lines.
4790 (strace_marker_create_breakpoints_sal): Update.
4791 (strace_marker_decode_location): Return a std::vector instead of
4792 symtabs_and_lines. Update.
4793 (update_breakpoint_locations): Change struct symtabs_and_lines
4794 parameters to gdb::array_view. Adjust.
4795 (location_to_sals): Return a std::vector instead of
4796 symtabs_and_lines. Update.
4797 (breakpoint_re_set_default): Use std::vector instead of struct
4798 symtabs_and_lines.
4799 (decode_location_default): Return a std::vector instead of
4800 symtabs_and_lines. Update.
4801 * breakpoint.h: Include "common/array-view.h".
4802 (struct breakpoint_ops) <decode_location>: Now returns a
4803 std::vector instead of returning a symtabs_and_lines via output
4804 parameter.
4805 (update_breakpoint_locations): Change sals parameters to use
4806 gdb::array_view.
4807 * cli/cli-cmds.c (edit_command, list_command): Update to use
4808 std::vector and gdb::array_view.
4809 (ambiguous_line_spec): Adjust to use gdb::array_view and
4810 range-for.
4811 (compare_symtabs): Rename to ...
4812 (cmp_symtabs): ... this. Change parameters to symtab_and_line
4813 const reference and adjust.
4814 (filter_sals): Rewrite using std::vector and standard algorithms.
4815 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
4816 (jump_command): Update to use std::vector.
4817 * linespec.c (struct linespec_state) <canonical_names>: Update
4818 comment.
4819 (add_sal_to_sals_basic): Delete.
4820 (add_sal_to_sals, filter_results, convert_results_to_lsals)
4821 (decode_line_2, create_sals_line_offset)
4822 (convert_address_location_to_sals, convert_linespec_to_sals)
4823 (convert_explicit_location_to_sals, parse_linespec)
4824 (event_location_to_sals, decode_line_full, decode_line_1)
4825 (decode_line_with_current_source)
4826 (decode_line_with_last_displayed, decode_objc)
4827 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
4828 (linespec_result::~linespec_result): Adjust to use std::vector
4829 instead of symtabs_and_lines.
4830 * linespec.h (linespec_sals::sals): Now a std::vector.
4831 (struct linespec_result): Use std::vector, bool, and in-class
4832 initialization.
4833 (decode_line_1, decode_line_with_current_source)
4834 (decode_line_with_last_displayed): Return std::vector.
4835 * macrocmd.c (info_macros_command): Use std::vector.
4836 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
4837 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
4838 std::vector.
4839 * probe.h (parse_probes): Return a std::vector.
4840 * python/python.c (gdbpy_decode_line): Use std::vector and
4841 gdb::array_view.
4842 * source.c (select_source_symtab, line_info): Use std::vector.
4843 * stack.c (func_command): Use std::vector.
4844 * symtab.h (struct symtabs_and_lines): Delete.
4845 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
4846
7c44b49c
PA
48472017-09-04 Pedro Alves <palves@redhat.com>
4848
4849 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4850 unittests/array-view-selftests.c.
4851 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
4852 * common/array-view.h: New file.
4853 * unittests/array-view-selftests.c: New file.
4854
e439fa14
PA
48552017-09-04 Pedro Alves <palves@redhat.com>
4856
4857 * cli/cli-cmds.c (edit_command): Pass message to
4858 ambiguous_line_spec.
4859 (list_command): Pass message to ambiguous_line_spec. Say
4860 "first"/"last" instead of "start" and "end" to be consistent with
4861 the manual.
4862 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
4863 them to print formatted message.
4864
7525b645
PA
48652017-09-04 Pedro Alves <palves@redhat.com>
4866
4867 * btrace.c (ftrace_add_pt): Pass btrace_insn to
4868 ftrace_update_insns by reference instead of pointer.
4869
badc0020
YQ
48702017-09-04 Yao Qi <yao.qi@linaro.org>
4871
4872 * i386-go32-tdep.c: Include x86-xstate.h.
4873 (i386_go32_init_abi): Call i386_target_description.
4874 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
4875 if xcr0 is X86_XSTATE_X87_MASK.
4876 * i386-tdep.h (tdesc_i386): Remove the declaration.
4877 (tdesc_i386_mmx): Likewise.
4878
d78bdb54
YQ
48792017-09-04 Yao Qi <yao.qi@linaro.org>
4880
4881 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
4882 X86_XSTATE_SSE_MASK instead of 0.
4883
ca1fa5ee
YQ
48842017-09-04 Yao Qi <yao.qi@linaro.org>
4885
4886 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
4887 i386_target_description.
4888 * i386-fbsd-nat.c (i386fbsd_read_description): Call
4889 i386_target_description.
4890 * i386-tdep.c (i386_gdbarch_init): Likewise.
4891
2434b019
YQ
48922017-09-04 Yao Qi <yao.qi@linaro.org>
4893
4894 * amd64-darwin-tdep.c: Include "x86-xstate.h".
4895 (x86_darwin_init_abi_64): Call amd64_target_description.
4896 * amd64-dicos-tdep.c: Likewise.
4897 * amd64-fbsd-nat.c: Likewise.
4898 * amd64-fbsd-tdep.c: Likewise.
4899 * amd64-nbsd-tdep.c: Likewise.
4900 * amd64-obsd-tdep.c: Likewise.
4901 * amd64-sol2-tdep.c: Likewise.
4902 * amd64-windows-tdep.c: Likewise.
4903 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
4904
0860c437
SM
49052017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4906
4907 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
4908 (btrace_function) <insn>: Change type to use std::vector.
4909 * btrace.c (ftrace_debug, ftrace_call_num_insn,
4910 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
4911 ftrace_update_insns, ftrace_compute_global_level_offset,
4912 btrace_stitch_bts, btrace_clear, btrace_insn_get,
4913 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
4914 change to std::vector.
4915 (ftrace_update_insns): Adjust to change to std::vector, change
4916 type of INSN parameter.
4917 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
4918 * record-btrace.c (btrace_call_history_insn_range,
4919 btrace_compute_src_line_range,
4920 record_btrace_frame_prev_register): Adjust to change to
4921 std::vector.
4922 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
4923 to change to std::vector.
4924
0638b7f9
TT
49252017-09-03 Tom Tromey <tom@tromey.com>
4926
4927 * corefile.c (reopen_exec_file): Use std::string.
4928
8f84fb0e
TT
49292017-09-03 Tom Tromey <tom@tromey.com>
4930
4931 * compile/compile.c (compile_register_name_mangled): Return
4932 std::string.
4933 * compile/compile-loc2c.c (pushf_register_address): Update.
4934 (pushf_register): Update.
4935 * compile/compile-c-types.c (convert_array): Update.
4936 * compile/compile-c-symbols.c (generate_vla_size): Update.
4937 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
4938 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
4939 (convert_one_symbol): Update.
4940 (generate_c_for_for_one_variable): Update.
4941 * compile/compile-c-support.c (c_get_range_decl_name): Return a
4942 std::string.
4943 (generate_register_struct): Update.
4944 * compile/compile-internal.h (c_get_range_decl_name): Return a
4945 std::string.
4946 (compile_register_name_mangled): Return std::string.
4947
18e9961f
TT
49482017-09-03 Tom Tromey <tom@tromey.com>
4949
4950 * utils.c (perror_string): Return a std::string.
4951 (throw_perror_with_name, perror_warning_with_name): Update.
4952
45343786
TT
49532017-09-03 Tom Tromey <tom@tromey.com>
4954
4955 * demangle.c (demangle_command): Use std::string,
4956 unique_xmalloc_ptr.
4957
b57af503
TT
49582017-09-03 Tom Tromey <tom@tromey.com>
4959
4960 * cli/cli-setshow.c (do_set_command): Use std::string.
4961
6eecf35f
TT
49622017-09-03 Tom Tromey <tom@tromey.com>
4963
4964 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
4965
56496dd4
TT
49662017-09-03 Tom Tromey <tom@tromey.com>
4967
4968 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
4969
e91a1fa7
TT
49702017-09-03 Tom Tromey <tom@tromey.com>
4971
4972 * mi/mi-cmd-env.c (env_execute_cli_command): Use
4973 gdb::unique_xmalloc_ptr.
4974
7ffd83d7
TT
49752017-09-03 Tom Tromey <tom@tromey.com>
4976
4977 * thread.c (print_thread_info_1): Use string_printf.
4978 (thread_apply_command, thread_apply_all_command): Use
4979 std::string.
4980
1ccbe998
TT
49812017-09-03 Tom Tromey <tom@tromey.com>
4982
4983 * valprint.c (val_print_string): Update.
4984 * gdbcore.h (memory_error_message): Return std::string.
4985 * corefile.c (memory_error_message): Return std::string.
4986 (memory_error): Update.
4987 * breakpoint.c (insert_bp_location): Update.
4988
23fdd69e
SM
49892017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4990
4991 * target/waitstatus.h (target_waitstatus_to_string): Change
4992 return type to std::string.
4993 * target/waitstatus.c (target_waitstatus_to_string): Return
4994 std::string.
4995 * target.h (target_waitstatus_to_string): Remove declaration.
4996 * infrun.c (resume, clear_proceed_status_thread,
4997 print_target_wait_results, do_target_wait, save_waitstatus,
4998 stop_all_threads): Adjust.
4999 * record-btrace.c (record_btrace_wait): Adjust.
5000 * target-debug.h
5001 (target_debug_print_struct_target_waitstatus_p): Adjust.
5002
5c811d30
JK
50032017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5004
5005 PR gdb/22046
5006 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5007 detection.
5008
0a2dde4a
SDJ
50092017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5010
5011 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5012 for setting/unsetting environment variables on the remote target.
5013 (New remote packets): Add entries for QEnvironmentHexEncoded,
5014 QEnvironmentUnset and QEnvironmentReset.
5015 * common/environ.c (gdb_environ::operator=): Extend method to
5016 handle m_user_set_env_list and m_user_unset_env_list.
5017 (gdb_environ::clear): Likewise.
5018 (match_var_in_string): Change type of first parameter from 'char
5019 *' to 'const char *'.
5020 (gdb_environ::set): Extend method to handle
5021 m_user_set_env_list and m_user_unset_env_list.
5022 (gdb_environ::unset): Likewise.
5023 (gdb_environ::clear_user_set_env): New method.
5024 (gdb_environ::user_set_envp): Likewise.
5025 (gdb_environ::user_unset_envp): Likewise.
5026 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5027 m_user_unset_env_list on move constructor/assignment.
5028 (unset): Add new default parameter 'update_unset_list = true'.
5029 (clear_user_set_env): New method.
5030 (user_set_envp): Likewise.
5031 (user_unset_envp): Likewise.
5032 (m_user_set_env_list): New std::set.
5033 (m_user_unset_env_list): Likewise.
5034 * common/rsp-low.c (hex2str): New function.
5035 (bin2hex): New overload for bin2hex function.
5036 * common/rsp-low.c (hex2str): New prototype.
5037 (str2hex): New overload prototype.
5038 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5039 QEnvironmentUnset and QEnvironmentReset.
5040 (remote_protocol_features): Add QEnvironmentHexEncoded,
5041 QEnvironmentUnset and QEnvironmentReset packets.
5042 (send_environment_packet): New function.
5043 (extended_remote_environment_support): Likewise.
5044 (extended_remote_create_inferior): Call
5045 extended_remote_environment_support.
5046 (_initialize_remote): Add QEnvironmentHexEncoded,
5047 QEnvironmentUnset and QEnvironmentReset packet configs.
5048 * unittests/environ-selftests.c (gdb_selftest_env_var):
5049 New variable.
5050 (test_vector_initialization): New function.
5051 (test_init_from_host_environ): Likewise.
5052 (test_reinit_from_host_environ): Likewise.
5053 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5054 Likewise.
5055 (test_unset_set_empty_vector): Likewise.
5056 (test_vector_clear): Likewise.
5057 (test_std_move): Likewise.
5058 (test_move_constructor):
5059 (test_self_move): Likewise.
5060 (test_set_unset_reset): Likewise.
5061 (run_tests): Rewrite in terms of the functions above.
5062
654670a4
WP
50632017-08-31 Weimin Pan <weimin.pan@oracle.com>
5064
5065 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5066 (adi_available): Use a temp variable of type CORE_ADDR as argument
5067 3 when calling target_auxv_search.
5068 (adi_normalize_address): Use masks and xor operators to calculate
5069 normalized address.
5070 (adi_read_versions, adi_write_versions, adi_print_versions)
5071 (do_examine, do_assign): Use paddress.
5072
7755ddb7
JB
50732017-08-29 John Baldwin <jhb@FreeBSD.org>
5074
5075 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5076 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5077 out of loop and add supply of FIR.
5078 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5079 add collect of FIR.
5080
fd437cbc
SM
50812017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5082
3804a343 5083 PR gdb/21827
fd437cbc
SM
5084 * cli/cli-script.c (define_command): Don't convert command name
5085 to lower case.
5086
988f6b3d
JB
50872017-08-25 Joel Brobecker <brobecker@adacore.com>
5088
5089 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5090 Update all callers accordingly. Remove all code blocks handling
5091 the case where DISPP is not NULL.
5092
663c44ac
JK
50932017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5094
5095 PR symtab/22003
5096 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5097 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5098 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5099
f1902523
JK
51002017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5101
5102 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5103 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5104 (read_comp_units_from_section): New parameter abbrev_section, use
5105 read_and_check_comp_unit_head, allocate signatured_type if needed.
5106 (create_all_comp_units): Update read_comp_units_from_section caller.
5107
87215ad1
SDJ
51082017-08-23 Pedro Alves <palves@redhat.com>
5109
5110 PR remote/21852
5111 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5112 to null_ptid and switch to thread without reading the registers
5113 after adding the inferior.
5114
6e41ddec
JK
51152017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5116
5117 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5118 compile-gcc.
5119 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5120 (compile_to_object): Implement compile_gcc.
5121 (_initialize_compile): Install "set compile-gcc". Initialize
5122 compile_gcc.
5123
e68c32d5
JK
51242017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5125
5126 * compile/compile.c (compile_to_object): Conditionally call
5127 set_verbose. Conditionally call compile or compile_v0.
5128
58afddc6
WP
51292017-08-07 Weimin Pan <weimin.pan@oracle.com>
5130
5131 * sparc64-tdep.h: (adi_normalize_address): New export.
5132 * sparc-nat.h: (open_adi_tag_fd): New export.
5133 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5134 * sparc64-linux-tdep.c:
5135 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5136 (sparc64_linux_handle_segmentation_fault): New function.
5137 (sparc64_linux_init_abi): Register
5138 sparc64_linux_handle_segmentation_fault
5139 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5140 (sparc64_addr_bits_remove): New function.
5141 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5142 (MAX_PROC_NAME_SIZE): New macro.
5143 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5144 (sparc64adilist): New variable.
5145 (adi_proc_list): New variable.
5146 (find_adi_info): New function.
5147 (add_adi_info): New function.
5148 (get_adi_info_proc): New function.
5149 (get_adi_info): New function.
5150 (info_adi_command): New function.
5151 (read_maps_entry): New function.
5152 (adi_available): New function.
5153 (adi_normalize_address): New function.
5154 (adi_align_address): New function.
5155 (adi_convert_byte_count): New function.
5156 (adi_tag_fd): New function.
5157 (adi_is_addr_mapped): New function.
5158 (adi_read_versions): New function.
5159 (adi_write_versions): New function.
5160 (adi_print_versions): New function.
5161 (do_examine): New function.
5162 (do_assign): New function.
5163 (adi_examine_command): New function.
5164 (adi_assign_command): New function.
5165 (_initialize_sparc64_adi_tdep): New function.
5166
11db9430
SM
51672017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5168
5169 * breakpoint.c (breakpoints_info): Rename to ...
5170 (info_breakpoints_command): ... this.
5171 (watchpoints_info): Rename to ...
5172 (info_watchpoints_command): ... this.
5173 (tracepoints_info): Rename to ...
5174 (info_tracepoints_command): ... this.
5175 (_initialize_breakpoint): Adjust.
5176 * dcache.c (dcache_info): Rename to ...
5177 (info_display_command): ... this.
5178 (_initialize_dcache): Adjust.
5179 * frame.h (args_info): Rename to ...
5180 (info_args_command): ... this.
5181 (locals_info): Rename to ...
5182 (info_locals_command): ... this.
5183 * infcmd.c (nofp_registers_info): Rename to ...
5184 (info_registers_command): ... this.
5185 (float_info): Rename to ...
5186 (info_float_command): ... this.
5187 (program_info): Rename to ...
5188 (info_program_command): ... this.
5189 (all_registers_info): Rename to ...
5190 (info_all_registers_command): ... this.
5191 (vector_info): Rename to ...
5192 (info_vector_command): ... this.
5193 (float_info): Rename to ...
5194 (info_float_command): ... this.
5195 (_initialize_infcmd): Adjust.
5196 * inferior.h (term_info): Rename to ...
5197 (info_terminal_command): ... this.
5198 * inflow.c (term_info): Rename to ...
5199 (info_terminal_command): ... this.
5200 (_initialize_inflow): Adjust.
5201 * infrun.c (signals_info): Rename to ...
5202 (info_signals_command): ... this.
5203 (_initialize_infrun): Adjust.
5204 * objc-lang.c (classes_info): Rename to ...
5205 (info_classes_command): ... this.
5206 (selectors_info): Rename to ...
5207 (info_selectors_command): ... this.
5208 (_initialize_objc_language): Adjust.
5209 * printcmd.c (sym_info): Rename to ...
5210 (info_symbol_command): ... this.
5211 (address_info): Rename to ...
5212 (info_address_command): ... this.
5213 (display_info): Rename to ...
5214 (info_display_command): ... this.
5215 (_initialize_printcmd): Adjust.
5216 * reverse.c (bookmarks_info): Rename to ...
5217 (info_breakpoints_command): ... this.
5218 (_initialize_reverse): Adjust.
5219 * ser-go32.c (dos_info): Rename to ...
5220 (info_serial_command): ... this.
5221 (_initialize_ser_dos): Adjust.
5222 * skip.c (skip_info): Rename to ...
5223 (info_skip_command): ... this.
5224 (_initialize_step_skip): Adjust.
5225 * source.c (line_info): Rename to ...
5226 (info_line_command): ... this.
5227 (source_info): Rename to ...
5228 (info_source_command)
5229 * stack.c (frame_info): Rename to ...
5230 (info_frame_command): ... this.
5231 (locals_info): Rename to ...
5232 (info_locals_command): ... this.
5233 (args_info): Rename to ...
5234 (info_args_command): ... this.
5235 (_initialize_stack): Adjust.
5236 * symtab.c (sources_info): Rename to ...
5237 (info_sources_command): ... this.
5238 (variables_info): Rename to ...
5239 (info_variables_command): ... this.
5240 (functions_info): Rename to ...
5241 (info_functions_command): ... this.
5242 (types_info): Rename to ...
5243 (info_types_command): ... this.
5244 (_initialize_symtab): Adjust.
5245 * target.c (target_info): Rename to ...
5246 (info_target_command): ... this.
5247 (initialize_targets): Adjust.
5248 * tracepoint.c (tvariables_info): Rename to ...
5249 (info_tvariables_command): ... this.
5250 (scope_info): Rename to ...
5251 (info_scope_command): ... this.
5252 (trace_dump_actions): Adjust.
5253 (_initialize_tracepoint): Adjust.
5254
b270e6f9
TT
52552017-08-22 Tom Tromey <tom@tromey.com>
5256
5257 * breakpoint.h (install_breakpoint): Update.
5258 * breakpoint.c (add_solib_catchpoint): Update.
5259 (install_breakpoint): Change argument to a std::unique_ptr.
5260 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5261 (create_breakpoint_sal, create_breakpoint): Update.
5262 (watch_command_1, catch_exec_command_1)
5263 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5264 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5265 Return the breakpoint.
5266 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5267 (new_single_step_breakpoint): Update.
5268 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5269 std::unique_ptr.
5270 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5271 std::unique_ptr.
5272 * break-catch-sig.c (create_signal_catchpoint): Use
5273 std::unique_ptr.
5274 * ada-lang.c (create_ada_exception_catchpoint): Use
5275 std::unique_ptr.
5276
36bd8eaa
TT
52772017-08-22 Tom Tromey <tom@tromey.com>
5278
5279 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5280
56f37645
TT
52812017-08-22 Tom Tromey <tom@tromey.com>
5282
5283 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5284 (lookup_partial_symbol): Update.
5285
0b581c69
TT
52862017-08-22 Tom Tromey <tom@tromey.com>
5287
5288 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5289 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5290 (find_and_open_source, symtab_to_fullname): Update.
5291 * psymtab.c (psymtab_to_fullname): Update.
5292
14278e1f
TT
52932017-08-22 Tom Tromey <tom@tromey.com>
5294
5295 * exec.c (exec_file_attach): Update.
5296 * linux-thread-db.c (try_thread_db_load): Update.
5297 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5298 * utils.c (gdb_realpath): Change return type.
5299 (gdb_realpath_keepfile): Update.
5300 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5301 (_initialize_utils): Register the new self test.
5302 * source.c (openp): Update.
5303 (find_and_open_source): Update.
5304 * nto-tdep.c (nto_find_and_open_solib): Update.
5305 * main.c (set_gdb_data_directory): Update.
5306 (captured_main_1): Update.
5307 * dwarf2read.c (dwarf2_get_dwz_file): Update
5308 (dw2_map_symbol_filenames): Update.
5309 * auto-load.c (auto_load_safe_path_vec_update): Update.
5310 (filename_is_in_auto_load_safe_path_vec): Change type of
5311 "filename_realp".
5312 (auto_load_objfile_script): Update.
5313 (file_is_auto_load_safe): Update. Use std::string.
5314 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5315
4971c9a7
TT
53162017-08-22 Tom Tromey <tom@tromey.com>
5317
5318 * utils.c (gdb_realpath_keepfile): Return a
5319 gdb::unique_xmalloc_ptr.
5320 * exec.c (exec_file_attach): Update.
5321 * utils.h (gdb_realpath_keepfile): Return a
5322 gdb::unique_xmalloc_ptr.
5323
e3e41d58
TT
53242017-08-22 Tom Tromey <tom@tromey.com>
5325
5326 * compile/compile.c (compile_file_command): Use
5327 gdb::unique_xmalloc_ptr, std::string.
5328 * utils.c (gdb_abspath): Change return type.
5329 * source.c (openp): Update.
5330 * objfiles.c (allocate_objfile): Update.
5331 * main.c (set_gdb_data_directory): Update.
5332 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5333
0d999a6e
ZZ
53342017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5335
5336 * cli-cmds.c (list_commands): List actual code around more than
5337 one location.
5338
329d5e7e
JB
53392017-08-21 John Baldwin <jhb@FreeBSD.org>
5340
5341 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5342
bf223d3e
PA
53432017-08-21 Pedro Alves <palves@redhat.com>
5344
5345 PR gdb/19487
5346 * c-exp.y (variable production): Handle function aliases.
5347 * minsyms.c (msymbol_is_text): New function.
5348 * minsyms.h (msymbol_is_text): Declare.
5349 * symtab.c (find_function_alias_target): New function.
5350 * symtab.h (find_function_alias_target): Declare.
5351
c973d0aa
PA
53522017-08-21 Pedro Alves <palves@redhat.com>
5353
5354 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5355 typedefs.
5356 * typeprint.c (whatis_exp): If handling "whatis", and expression
5357 is OP_TYPE, strip one typedef level. Otherwise don't strip
5358 typedefs here.
5359 * valops.c (value_cast): Save "to" type before resolving
5360 stubs/typedefs. Use that type as resulting value's type.
5361
2989a365
TT
53622017-08-18 Tom Tromey <tom@tromey.com>
5363 Pedro Alves <palves@redhat.com>
5364
5365 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5366 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5367 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5368 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5369 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5370 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5371 (linux_get_siginfo_data): Add "thread" argument. Use
5372 scoped_restore.
5373 * linux-nat.c (linux_child_follow_fork)
5374 (check_stopped_by_watchpoint): Use scoped_restore.
5375 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5376 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5377 (restore_inferior_ptid, save_inferior_ptid): Remove.
5378 * btrace.c (btrace_fetch): Use scoped_restore.
5379 * bsd-uthread.c (bsd_uthread_fetch_registers)
5380 (bsd_uthread_store_registers): Use scoped_restore.
5381 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5382 scoped_restore.
5383 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5384 (aix_thread_xfer_partial): Use scoped_restore.
5385 * inferior.h (save_inferior_ptid): Remove.
5386
e60eb288
YQ
53872017-08-18 Yao Qi <yao.qi@linaro.org>
5388
5389 PR tdep/21818
5390 * arm-tdep.c (gdb_print_insn_arm): Mark
5391 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5392
6d580b63
YQ
53932017-08-18 Yao Qi <yao.qi@linaro.org>
5394
5395 * NEWS: Mention GDBserver's new option "--selftest".
5396 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5397 * selftest.c: Move it to common/selftest.c.
5398 * selftest.h: Move it to common/selftest.h.
5399 * selftest-arch.c (reset): New function.
5400 (tests_with_arch): Call reset.
5401
86dcbf50
YQ
54022017-08-18 Yao Qi <yao.qi@linaro.org>
5403
5404 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5405 instead of exception_fprintf and printf_filtered.
5406
7649770c
YQ
54072017-08-18 Yao Qi <yao.qi@linaro.org>
5408
5409 * selftest.c (register_self_test): Rename it to
5410 selftests::register_test.
5411 (run_self_tests): selftest::run_tests.
5412 * selftest.h: Update declarations.
5413 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5414 selftests::register_test_foreach_arch.
5415 * selftest-arch.h: Update declaration.
5416 * aarch64-tdep.c: Update.
5417 * arm-tdep.c: Likewise.
5418 * disasm-selftests.c: Likewise.
5419 * dwarf2loc.c: Likewise.
5420 * dwarf2-frame.c: Likewise.
5421 * findvar.c: Likewise.
5422 * gdbarch-selftests.c: Likewise.
5423 * maint.c (maintenance_selftest): Likewise.
5424 * regcache.c: Likewise.
5425 * rust-exp.y: Likewise.
5426 * selftest-arch.c: Likewise.
5427 * unittests/environ-selftests.c: Likewise.
5428 * unittests/function-view-selftests.c: Likewise.
5429 * unittests/offset-type-selftests.c: Likewise.
5430 * unittests/optional-selftests.c: Likewise.
5431 * unittests/scoped_restore-selftests.c: Likewise.
5432 * utils-selftests.c: Likewise.
5433
b0cba12e
PA
54342017-08-17 Pedro Alves <palves@redhat.com>
5435
5436 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5437 local.
5438
4c8aa72d
PA
54392017-08-17 Pedro Alves <palves@redhat.com>
5440
5441 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5442 field.
5443 (reset_die_in_process): Delete, replaced by ...
5444 (process_die_scope): ... this new class. Make it responsible for
5445 freeing cu->line_header too.
5446 (process_die): Use process_die_scope.
5447 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5448 cu->line_header_die_owner. Don't release the line header if it's
5449 owned by the CU.
5450 (setup_type_unit_groups): Make the CU/DIE own the line header.
5451 Don't release the line header here.
5452
ba713918
AL
54532017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5454
5455 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5456
44d0fb3a
RK
54572017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5458
5459 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5460 Single-Key mode
5461
a5afdb16
RK
54622017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5463
5464 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5465 mode command list.
5466
47613aeb
SH
54672017-08-15 Stafford Horne <shorne@gmail.com>
5468
5469 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5470
9c3cc999
SH
54712017-08-15 Stafford Horne <shorne@gmail.com>
5472
5473 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5474
206726fb
SDJ
54752017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5476
5477 PR gdb/21954
5478 * infcmd.c (unset_environment_command): Use the 'clear' method on
5479 the environment instead of resetting it.
5480
0335ac6d
JB
54812017-08-15 John Baldwin <jhb@FreeBSD.org>
5482
5483 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5484 platforms.
5485
d3abe1c8
TT
54862017-08-14 Tom Tromey <tom@tromey.com>
5487
5488 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5489 (print_binary_chars): Likewise.
5490 (BITS_IN_BYTES): Remove.
5491
d6382fff
TT
54922017-08-14 Tom Tromey <tom@tromey.com>
5493
5494 PR gdb/21675
5495 * valprint.c (LOW_ZERO): Change value to 034.
5496 (print_octal_chars): Add static_asserts for octal constants.
5497 * printcmd.c (print_scalar_formatted): Add 'd' case.
5498
f978cb06
TT
54992017-08-11 Tom Tromey <tom@tromey.com>
5500
5501 * symfile.c (add_symbol_file_command): Use std::vector.
5502
2f5404b3
TT
55032017-08-14 Tom Tromey <tom@tromey.com>
5504
5505 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5506 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5507 std::move.
5508 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5509
de7985c3
PA
55102017-08-11 Pedro Alves <palves@redhat.com>
5511
5512 * infrun.c (process_event_stop_test): Adjust
5513 function_name_is_marked_for_skip call.
5514 * skip.c: Include <list>.
5515 (skiplist_entry): Make it a class with private fields, and
5516 getters/setters.
5517 (skiplist_entry_chain): Delete.
5518 (skiplist_entries): New.
5519 (skiplist_entry_count): Delete.
5520 (highest_skiplist_entry_num): New.
5521 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5522 (add_skiplist_entry): Delete.
5523 (skiplist_entry::skiplist_entry): New.
5524 (skiplist_entry::add_entry): New.
5525 (skip_file_command, skip_function): Adjust.
5526 (compile_skip_regexp): Delete.
5527 (skip_command): Don't compile regexp here. Adjust to use
5528 skiplist_entry::add_entry.
5529 (skip_info): Adjust to use range-for and getters.
5530 (skip_enable_command, skip_disable_command): Adjust to use
5531 range-for and setters.
5532 (skip_delete_command): Adjust to use std::list.
5533 (add_skiplist_entry): Delete.
5534 (skip_file_p): Delete, refactored as ...
5535 (skiplist_entry::do_skip_file_p): ... this new method.
5536 (skip_gfile_p): Delete, refactored as ...
5537 (skiplist_entry::do_gskip_file_p): ... this new method.
5538 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5539 (skiplist_entry::skip_function_p): ... this new method.
5540 (function_name_is_marked_for_skip): Now returns bool, and takes
5541 the function sal by const reference. Adjust to use range-for and
5542 skiplist_entry methods.
5543 (_initialize_step_skip): Remove references to
5544 skiplist_entry_chain, skiplist_entry_count.
5545 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5546 takes the function sal by const reference.
5547
be7d3cd5
YQ
55482017-08-11 Yao Qi <yao.qi@linaro.org>
5549
5550 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5551 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5552 (dwarf2_frame_cache):
5553 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5554 RETURN_MASK_ALL and set *this_case to NULL.
5555 * frame-unwind.h: Update comments.
5556
1c90d9f0
YQ
55572017-08-11 Yao Qi <yao.qi@linaro.org>
5558
5559 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5560 (dwarf2_frame_state_copy_regs): Remove.
5561 (dwarf2_frame_state_free_regs): Remove.
5562 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5563 (dwarf2_restore_rule): Call method .alloc_regs instead of
5564 dwarf2_frame_state_alloc_regs.
5565 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5566 constructor. Call std::move.
5567 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5568 (dwarf2_frame_cache): Likewise.
5569
5570 [GDB_SELF_TEST]: Include selftest.h and
5571 selftest-arch.h.
5572 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5573 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5574 execute_cfa_program_test.
5575
5576 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5577 copy ctor, assignment operator, move assignment.
5578 <alloc_regs>: New method.
5579 <swap>: New method.
5580 (struct dwarf2_frame_state): Delete dtor.
5581 (dwarf2_frame_state_alloc_regs): Remove declaration.
5582 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5583 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5584
afe37d6b
YQ
55852017-08-11 Yao Qi <yao.qi@linaro.org>
5586
5587 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5588 (dwarf2_frame_state::dwarf2_frame_state): New.
5589 (dwarf2_frame_state::~dwarf2_frame_state): New.
5590 (dwarf2_fetch_cfa_info): Update.
5591 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5592 rather than a pointer. Update code.
5593 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5594 dtor.
5595 <data_align, code_align, retaddr_column>: Change them to const.
5596 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5597 to bool.
5598
b348037f
YQ
55992017-08-11 Yao Qi <yao.qi@linaro.org>
5600
5601 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5602 <loc.exp>: New field.
5603 * dwarf2-frame.c (execute_cfa_program): Update.
5604 (dwarf2_frame_prev_register): Update.
5605
e7c9de26
PA
56062017-08-10 Pedro Alves <palves@redhat.com>
5607
5608 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5609
e8c6b620
JB
56102017-08-09 John Baldwin <jhb@FreeBSD.org>
5611
5612 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5613 (fbsd_pending_children): Use std::list.
5614 (fbsd_remember_child): Likewise.
5615 (fbsd_is_child_pending): Likewise.
5616 (fbsd_pending_vfork_done): Use std::forward_list.
5617 (fbsd_add_vfork_done): Likewise.
5618 (fbsd_is_vfork_done_pending): Likewise.
5619 (fbsd_next_vfork_done): Likewise.
5620
e4a26669
JB
56212017-08-09 John Baldwin <jhb@FreeBSD.org>
5622
5623 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5624 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5625 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5626 for `mapfilename'.
5627 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 5628 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 5629
142311d3
JB
56302017-08-09 John Baldwin <jhb@FreeBSD.org>
5631
5632 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5633 "filestuff.h".
5634 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5635
42fa2e0e
TT
56362017-08-09 Tom Tromey <tom@tromey.com>
5637
5638 * skip.c (skiplist_entry): New constructor.
5639 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5640 (skiplist_entry::file_is_glob): Now bool.
5641 (skiplist_entry::file, skiplist_entry::function): Now
5642 std::string.
5643 (make_skip_entry): Return a unique_ptr. Use new.
5644 (free_skiplist_entry, free_skiplist_entry_cleanup)
5645 (make_free_skiplist_entry_cleanup): Remove.
5646 (skip_command, skip_disable_command, add_skiplist_entry)
5647 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5648 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5649 (function_name_is_marked_for_skip): Update.
5650 (skip_delete_command): Update. Use delete.
5651
cd3af38d
JW
56522017-08-09 Jiong Wang <jiong.wang@arm.com>
5653
5654 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5655 (aarch64_linux_core_read_description): New function.
5656 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5657
29592bde
PA
56582017-08-09 Pedro Alves <palves@redhat.com>
5659
5660 * cp-name-parser.y (cp_comp_to_string): Return a
5661 gdb::unique_xmalloc_ptr<char>.
5662 * cp-support.c (replace_typedefs_qualified_name)
5663 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5664 (cp_canonicalize_string_full): Use op= instead of explicit
5665 convertion.
5666 (cp_class_name_from_physname, method_name_from_physname)
5667 (cp_func_name, cp_remove_params): Adjust to use
5668 gdb::unique_xmalloc_ptr<char>.
5669 * cp-support.h (cp_comp_to_string): Return a
5670 gdb::unique_xmalloc_ptr<char>.
5671 * python/py-type.c (typy_lookup_type): Adjust to use
5672 gdb::unique_xmalloc_ptr<char>.
5673
b3340438
L
56742017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5675
5676 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5677
e88e8651
YQ
56782017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5679 Yao Qi <yao.qi@linaro.org>
5680
5681 * cp-support.c (cp_canonicalize_string_full): Use
5682 gdb::unique_xmalloc_ptr<char>.
5683 (cp_canonicalize_string): Likewise.
5684
f5a29eb0
YQ
56852017-08-09 Yao Qi <yao.qi@linaro.org>
5686
5687 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5688 * regformats/i386/amd64-avx-avx512.dat: Remove.
5689 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5690 * regformats/i386/amd64-avx-mpx.dat:Remove.
5691 * regformats/i386/amd64-avx.dat: Remove.
5692 * regformats/i386/amd64-mpx.dat: Remove.
5693 * regformats/i386/i386-avx-avx512.dat: Remove.
5694 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5695 * regformats/i386/i386-avx-mpx.dat: Remove.
5696 * regformats/i386/i386-mmx.dat: Remove.
5697 * regformats/i386/i386-mpx.dat: Remove.
5698
57757c2f
YQ
56992017-08-09 Yao Qi <yao.qi@linaro.org>
5700
5701 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5702 * amd64-tdep.c: Don't include features/i386/x32*.c.
5703 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5704 functions.
5705 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5706 and i386/x32-avx-avx512.
5707 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5708 and i386/x32.xml.
5709 * features/i386/x32-avx-avx512.c: Removed.
5710 * features/i386/x32-avx-avx512.xml: Removed.
5711 * features/i386/x32-avx.c: Removed.
5712 * features/i386/x32-avx.xml: Removed.
5713 * features/i386/x32.c: Removed.
5714 * features/i386/x32.xml: Removed.
5715 * regformats/i386/x32-avx-avx512.dat: Removed.
5716 * regformats/i386/x32-avx.dat: Removed.
5717 * regformats/i386/x32.dat: Removed.
5718
ba7b109b
MR
57192017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5720
5721 PR breakpoints/21886
5722 * mem-break.c (default_memory_insert_breakpoint): Use
5723 `->placed_address' rather than `->reqstd_address' for the
5724 breakpoint location.
5725
e347efc3
MR
57262017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5727
5728 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5729 assertions.
5730
0dba2a6c
MR
57312017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5732
5733 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5734 a union of `tdep_info', `tdesc_data' and `id'.
5735 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5736 rather than `info.tdep_info'.
5737 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
5738 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5739 * i386-tdep.c (i386_gdbarch_init): Likewise.
5740 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
5741 * mips-tdep.c (mips_gdbarch_init): Likewise.
5742 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5743 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5744 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
5745 `info.tdep_info'.
5746 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
5747 `info.tdep_info'.
5748 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5749 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
5750 `info.tdep_info'.
5751 * spu-tdep.c (spu_gdbarch_init): Likewise.
5752 * gdbarch.h: Regenerate.
5753
16eb6b2d
LS
57542017-08-07 Leszek Swirski <leszeks@google.com>
5755
7b005726 5756 PR symtab/20899
16eb6b2d
LS
5757 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
5758
74cbb09e
SM
57592017-08-07 Simon Marchi <simon.marchi@ericsson.com>
5760
5761 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
5762 (gdbsim_open): Rename gdb_argv args object to argv.
5763
ee0c3293
TT
57642017-08-05 Tom Tromey <tom@tromey.com>
5765
5766 * compile/compile-object-load.c (compile_object_load): Use
5767 gdb::unique_xmalloc_ptr.
5768 * cli/cli-dump.c (scan_filename): Rename from
5769 scan_filename_with_cleanup. Change return type.
5770 (scan_expression): Rename from scan_expression_with_cleanup.
5771 Change return type.
5772 (dump_memory_to_file, dump_value_to_file, restore_command):
5773 Use gdb::unique_xmalloc_ptr. Update.
5774 * cli/cli-cmds.c (find_and_open_script): Use
5775 gdb::unique_xmalloc_ptr.
5776 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
5777 * symmisc.c (maintenance_print_symbols)
5778 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
5779 * symfile.c (symfile_bfd_open, generic_load)
5780 (add_symbol_file_command, remove_symbol_file_command): Use
5781 gdb::unique_xmalloc_ptr.
5782 * source.c (openp): Use gdb::unique_xmalloc_ptr.
5783 * psymtab.c (maintenance_print_psymbols): Use
5784 gdb::unique_xmalloc_ptr.
5785 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
5786 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
5787 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
5788 (reload_shared_libraries_1): Likewise.
5789
3232fabd
TT
57902017-08-05 Tom Tromey <tom@tromey.com>
5791
5792 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
5793 (rust_op_vector, rust_set_vector): New typedefs.
5794 (current_parser): New global.
5795 (work_obstack): Change to pointer type. Update all users.
5796 (rust_ast, pstate): Remove globals.
5797 (struct rust_parser): New.
5798 (%union) <params, field_inits>: Change type.
5799 (start, tuple_expr, unit_expr, struct_expr_list, literal)
5800 (field_expr, expr_list, maybe_expr_list, type_list): Update.
5801 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
5802 (convert_params_to_types, convert_params_to_expression): Change
5803 type of "params".
5804 (ast_string): Change type of "fields".
5805 (rust_parse): Make a rust_parser. Remove cleanups.
5806 (rust_lex_tests): Make and install an auto_obstack.
5807
f02fd774
YQ
58082017-08-04 Yao Qi <yao.qi@linaro.org>
5809
5810 * configure.srv (ipa_x32_linux_regobj): New.
5811 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
5812 instead of X86_TDESC_AVX512.
5813 (initialize_low_tracepoint): Call
5814 init_registers_x32_avx_avx512_linux.
5815
91975afd
YQ
58162017-08-04 Yao Qi <yao.qi@linaro.org>
5817
5818 * utils.h (gdb_argv): Add namespace std for nullptr_t.
5819
2331fa3a
RK
58202017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
5821
5822 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
5823
744e4fe1
TT
58242017-08-03 Tom Tromey <tom@tromey.com>
5825
5826 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
5827 Remove.
5828 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
5829
1c034b67
TT
58302017-08-03 Tom Tromey <tom@tromey.com>
5831
5832 * python/py-param.c (compute_enum_values): Use gdb_argv.
5833
773a1edc
TT
58342017-08-03 Tom Tromey <tom@tromey.com>
5835
5836 * utils.h (struct gdb_argv_deleter): New.
5837 (gdb_argv): New class.
5838 * utils.c (gdb_argv::reset): New method.
5839 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
5840 * tracefile.c (tsave_command): Use gdb_argv.
5841 * top.c (new_ui_command): Use gdb_argv.
5842 * symmisc.c (maintenance_print_symbols)
5843 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
5844 * symfile.c (symbol_file_command, generic_load)
5845 (remove_symbol_file_command): Use gdb_argv.
5846 * stack.c (backtrace_command): Use gdb_argv.
5847 * source.c (add_path, show_substitute_path_command)
5848 (unset_substitute_path_command, set_substitute_path_command):
5849 Use gdb_argv.
5850 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
5851 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
5852 * remote.c (extended_remote_run, remote_put_command)
5853 (remote_get_command, remote_delete_command): Use gdb_argv.
5854 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
5855 (gdbsim_open): Use gdb_argv.
5856 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
5857 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
5858 * procfs.c (procfs_info_proc): Use gdb_argv.
5859 * interps.c (interpreter_exec_cmd): Use gdb_argv.
5860 * infrun.c (handle_command): Use gdb_argv.
5861 * inferior.c (add_inferior_command, clone_inferior_command):
5862 Use gdb_argv.
5863 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
5864 * exec.c (exec_file_command): Use gdb_argv.
5865 * cli/cli-cmds.c (alias_command): Use gdb_argv.
5866 * compile/compile.c (build_argc_argv): Use gdb_argv.
5867
0d50bde3
TT
58682017-08-03 Tom Tromey <tom@tromey.com>
5869
5870 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
5871
7f968c89
TT
58722017-08-03 Tom Tromey <tom@tromey.com>
5873
5874 * python/python.c (compute_python_string): Return std::string.
5875 (gdbpy_eval_from_control_command): Update.
5876 (do_start_initialization): Use std::string.
5877 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
5878 xstrprintf.
5879 * python/py-breakpoint.c (local_setattro): Use string_printf, not
5880 xstrprintf.
5881
3c9ebddd
TT
58822017-08-03 Tom Tromey <tom@tromey.com>
5883
5884 * top.h (do_restore_instream_cleanup): Remove.
5885 * top.c (do_restore_instream_cleanup): Remove.
5886 (read_command_file): Use scoped_restore.
5887 * cli/cli-script.c (execute_user_command): Use scoped_restore.
5888
b51b225e
TT
58892017-08-03 Tom Tromey <tom@tromey.com>
5890
5891 * cli/cli-script.c (execute_user_command)
5892 (execute_control_command): Use scoped_restore.
5893
ac991630
TT
58942017-08-03 Tom Tromey <tom@tromey.com>
5895
5896 * cli/cli-script.c (do_restore_user_call_depth): Remove.
5897 (execute_user_command): Remove user_call_depth; use
5898 user_args_stack's size instead.
5899
898e0c8e
TT
59002017-08-03 Tom Tromey <tom@tromey.com>
5901
5902 * top.h (in_user_command): Remove.
5903 * top.c (in_user_command): Remove.
5904 * cli/cli-script.c (do_restore_user_call_depth)
5905 (execute_user_command): Update.
5906
26fcd5d7
TT
59072017-08-03 Tom Tromey <tom@tromey.com>
5908
5909 * valops.c (search_struct_method): Use gdb::byte_vector.
5910 * valarith.c (value_concat): Use std::vector.
5911 * target.c (memory_xfer_partial): Use gdb::byte_vector.
5912 (simple_search_memory): Likewise.
5913 * printcmd.c (find_string_backward): Use gdb::byte_vector.
5914 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
5915 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
5916 * elfread.c (elf_rel_plt_read): Use std::string.
5917 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
5918 * cli/cli-dump.c (restore_section_callback): Use
5919 gdb::byte_vector.
5920
7c218e6c
TT
59212017-08-03 Tom Tromey <tom@tromey.com>
5922
5923 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
5924
31b68d4a
TT
59252017-08-03 Tom Tromey <tom@tromey.com>
5926
5927 * tui/tui-regs.c (tui_restore_gdbout): Remove.
5928 (tui_register_format): Use scoped_restore.
5929
2ec845e7
TT
59302017-08-03 Tom Tromey <tom@tromey.com>
5931
5932 * reverse.c (exec_direction_default): Remove.
5933 (exec_reverse_once): Use scoped_restore.
5934 * remote.c (restore_remote_timeout): Remove.
5935 (remote_flash_erase, remote_flash_write, remote_flash_done)
5936 (readchar, remote_serial_write): Use scoped_restore.
5937 * cli/cli-script.c (struct source_cleanup_lines_args)
5938 (source_cleanup_lines): Remove.
5939 (script_from_file): Use scoped_restore.
5940 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
5941 (source_command): Use scoped_restore.
5942
b3bc8453
TT
59432017-08-03 Tom Tromey <tom@tromey.com>
5944
5945 * utils.h (make_cleanup_free_so): Remove.
5946 * utils.c (do_free_so, make_cleanup_free_so): Remove.
5947 * solist.h (struct so_deleter): New.
5948 (so_list_up): New typedef.
5949 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
5950
e3ad2841
TT
59512017-08-03 Tom Tromey <tom@tromey.com>
5952
5953 * utils.h (make_cleanup_restore_current_language): Remove.
5954 * utils.c (do_restore_current_language)
5955 (make_cleanup_restore_current_language): Remove.
5956 * parse.c (parse_exp_in_context_1)
5957 (parse_expression_with_language): Use
5958 scoped_restore_current_language.
5959 * mi/mi-main.c (mi_cmd_execute): Use
5960 scoped_restore_current_language.
5961 * language.h (scoped_restore_current_language): New class.
5962
b80cf838
TT
59632017-08-03 Tom Tromey <tom@tromey.com>
5964
5965 * compile/compile.c (cleanup_unlink_file): Remove.
5966 (compile_to_object): Use gdb::unlinker.
5967 (eval_compile_command): Likewise.
5968
fad0444a
TT
59692017-08-03 Tom Tromey <tom@tromey.com>
5970
5971 * utils.h (make_cleanup_fclose): Remove.
5972 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
5973
6e7bc05c
TT
59742017-08-03 Tom Tromey <tom@tromey.com>
5975
5976 * top.c (open_terminal_stream): Return gdb_file_up.
5977 (new_ui_command): Update.
5978
4a45905b
TT
59792017-08-03 Tom Tromey <tom@tromey.com>
5980
5981 * source.c (print_source_lines_base, forward_search_command)
5982 (reverse_search_command): Use gdb_file_up.
5983
7cd06d6e
TT
59842017-08-03 Tom Tromey <tom@tromey.com>
5985
5986 * fbsd-nat.c (fbsd_find_memory_regions): Update.
5987
ed166945
TT
59882017-08-03 Tom Tromey <tom@tromey.com>
5989
5990 * cli/cli-cmds.c (find_and_open_script): Change return type.
5991 Remove "streamp" and "full_path" parameters.
5992 (source_script_with_search): Update.
5993 * auto-load.c (source_script_file): Update.
5994 * cli/cli-cmds.h (find_and_open_script): Change type.
5995 (open_script): New struct.
5996
d419f42d
TT
59972017-08-03 Tom Tromey <tom@tromey.com>
5998
5999 * xml-support.c (xml_fetch_content_from_file): Update.
6000 * ui-file.c (stdio_file::open): Update.
6001 * tracefile-tfile.c (tfile_start): Update.
6002 * remote.c (remote_file_put, remote_file_get): Update.
6003 * nat/linux-procfs.c (linux_proc_get_int)
6004 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6005 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6006 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6007 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6008 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6009 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6010 * linux-nat.c (linux_proc_pending_signals): Update.
6011 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6012 (file_closer): Remove.
6013 * compile/compile.c (compile_to_object): Update.
6014 * common/filestuff.h (struct gdb_file_deleter): New.
6015 (gdb_file_up): New typedef.
6016 (gdb_fopen_cloexec): Change return type.
6017 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6018 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6019 (dump_binary_file, restore_binary_file): Update.
6020 * auto-load.c (auto_load_objfile_script_1): Update.
6021
4a2b031d
TT
60222017-08-03 Tom Tromey <tom@tromey.com>
6023
6024 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6025 (info_static_tracepoint_markers_command): Likewise.
6026 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6027 * skip.c (skip_info): Use ui_out_emit_table.
6028 * progspace.c (print_program_space): Use ui_out_emit_table.
6029 * osdata.c (info_osdata): Use ui_out_emit_table.
6030 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6031 ui_out_emit_table.
6032 * linux-thread-db.c (info_auto_load_libthread_db): Use
6033 ui_out_emit_table.
6034 * inferior.c (print_inferior): Use ui_out_emit_table.
6035 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6036 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6037 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6038 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6039 * ui-out.h (class ui_out_emit_table): New.
6040
a4f320fd
MR
60412017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6042
6043 * mips-tdep.c (mips_fpu_type_str): New function.
6044 (mips_dump_tdep): Call it.
6045
a2f1f308
MR
60462017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6047
6048 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6049 `->mips_fpu_type'.
6050
7e5ed83b
XR
60512017-07-31 Xavier Roirand <roirand@adacore.com>
6052
6053 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6054
4c9dc811
XR
60552017-07-27 Xavier Roirand <roirand@adacore.com>
6056
6057 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6058
27d41eac
YQ
60592017-07-26 Yao Qi <yao.qi@linaro.org>
6060
6061 * cli/cli-cmds.c (maintenancechecklist): New variable.
6062 * gdbcmd.h (maintenancechecklist): Declare it.
6063 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6064 Call i386_linux_read_description with different masks.
6065 * maint.c (maintenance_check_command): New function.
6066 (_initialize_maint_cmds): Call add_prefix_cmd.
6067 * target-descriptions.c (tdesc_reg): override operator != and ==.
6068 (tdesc_type): Likewise.
6069 (tdesc_feature): Likewise.
6070 (target_desc): Likewise.
6071 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6072 (maintenance_check_xml_descriptions): New function.
6073 (_initialize_target_descriptions) Add command "xml-descriptions".
6074 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6075
ea03d0d3
YQ
60762017-07-26 Yao Qi <yao.qi@linaro.org>
6077
6078 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6079 Include features/i386/32bit-*.c.
6080 (i386_linux_read_description): Generate target description if it
6081 doesn't exist.
6082 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6083 functions.
6084 * features/i386/32bit-linux.c: Re-generated.
6085 * features/i386/32bit-sse.c: Likewise.
6086 * target-descriptions.c (print_c_feature::visit): Print code to
6087 set register number if needed.
6088 (print_c_feature) <m_next_regnum>: New field.
6089
25aa13e5
YQ
60902017-07-26 Yao Qi <yao.qi@linaro.org>
6091
6092 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6093 (FEATURE_XMLFILES): New.
6094 (FEATURE_CFILES): New.
6095 New rules.
6096 (clean-cfiles): Remove generated c files.
6097 * features/i386/32bit-avx.c: Generated.
6098 * features/i386/32bit-avx512.c: Generated.
6099 * features/i386/32bit-core.c: Generated.
6100 * features/i386/32bit-linux.c: Generated.
6101 * features/i386/32bit-mpx.c: Generated.
6102 * features/i386/32bit-pkeys.c: Generated.
6103 * features/i386/32bit-sse.c: Generated.
6104 * target-descriptions.c: Include algorithm.
6105 (tdesc_element_visitor): Add method visit_end.
6106 (print_c_tdesc): Implement visit_end.
6107 (print_c_tdesc:: m_filename_after_features): Move it to
6108 protected.
6109 (print_c_feature): New class.
6110 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6111 name starts with "i386/32bit-".
6112
6eb1e6a8
YQ
61132017-07-26 Yao Qi <yao.qi@linaro.org>
6114
6115 * target-descriptions.c (tdesc_element_visitor): New class.
6116 (tdesc_element): New class.
6117 (tdesc_reg): Inherit from tdesc_element.
6118 (tdesc_reg::accept): New function.
6119 (tdesc_type): Inherit from tdesc_element.
6120 (tdesc_type::accept): New function.
6121 (tdesc_feature): Inherit from tdesc_element.
6122 (tdesc_feature::accept): New function.
6123 (target_desc): Inherit from tdesc_element.
6124 (target_desc::target_desc): New.
6125 (target_desc::~target_desc): New.
6126 (target_desc::accept): New.
6127 (allocate_target_description): Use new.
6128 (free_target_description): Use delete.
6129 (print_c_tdesc): New class.
6130 (maint_print_c_tdesc_cmd): Adjust.
6131
6132 * features/aarch64.c: Re-generated.
6133 * features/arc-arcompact.c: Re-generated.
6134 * features/arc-v2.c: Re-generated.
6135 * features/arm/arm-with-iwmmxt.c: Re-generated.
6136 * features/arm/arm-with-m.c: Re-generated.
6137 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6138 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6139 * features/arm/arm-with-neon.c: Re-generated.
6140 * features/arm/arm-with-vfpv2.c: Re-generated.
6141 * features/arm/arm-with-vfpv3.c: Re-generated.
6142 * features/i386/amd64-avx-avx512.c: Re-generated.
6143 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6144 * features/i386/amd64-avx.c: Re-generated.
6145 * features/i386/amd64-avx-linux.c: Re-generated.
6146 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6147 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6148 * features/i386/amd64-avx-mpx.c: Re-generated.
6149 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6150 * features/i386/amd64.c: Re-generated.
6151 * features/i386/amd64-linux.c: Re-generated.
6152 * features/i386/amd64-mpx.c: Re-generated.
6153 * features/i386/amd64-mpx-linux.c: Re-generated.
6154 * features/i386/i386-avx-avx512.c: Re-generated.
6155 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6156 * features/i386/i386-avx.c: Re-generated.
6157 * features/i386/i386-avx-linux.c: Re-generated.
6158 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6159 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6160 * features/i386/i386-avx-mpx.c: Re-generated.
6161 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6162 * features/i386/i386.c: Re-generated.
6163 * features/i386/i386-linux.c: Re-generated.
6164 * features/i386/i386-mmx.c: Re-generated.
6165 * features/i386/i386-mmx-linux.c: Re-generated.
6166 * features/i386/i386-mpx.c: Re-generated.
6167 * features/i386/i386-mpx-linux.c: Re-generated.
6168 * features/i386/x32-avx-avx512.c: Re-generated.
6169 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6170 * features/i386/x32-avx.c: Re-generated.
6171 * features/i386/x32-avx-linux.c: Re-generated.
6172 * features/i386/x32.c: Re-generated.
6173 * features/i386/x32-linux.c: Re-generated.
6174 * features/microblaze.c: Re-generated.
6175 * features/microblaze-with-stack-protect.c: Re-generated.
6176 * features/mips64-dsp-linux.c: Re-generated.
6177 * features/mips64-linux.c: Re-generated.
6178 * features/mips-dsp-linux.c: Re-generated.
6179 * features/mips-linux.c: Re-generated.
6180 * features/nds32.c: Re-generated.
6181 * features/nios2.c: Re-generated.
6182 * features/nios2-linux.c: Re-generated.
6183 * features/rs6000/powerpc-32.c: Re-generated.
6184 * features/rs6000/powerpc-32l.c: Re-generated.
6185 * features/rs6000/powerpc-403.c: Re-generated.
6186 * features/rs6000/powerpc-403gc.c : Re-generated.
6187 * features/rs6000/powerpc-405.c: Re-generated.
6188 * features/rs6000/powerpc-505.c: Re-generated.
6189 * features/rs6000/powerpc-601.c: Re-generated.
6190 * features/rs6000/powerpc-602.c: Re-generated.
6191 * features/rs6000/powerpc-603.c: Re-generated.
6192 * features/rs6000/powerpc-604.c: Re-generated.
6193 * features/rs6000/powerpc-64.c: Re-generated.
6194 * features/rs6000/powerpc-64l.c: Re-generated.
6195 * features/rs6000/powerpc-7400.c: Re-generated.
6196 * features/rs6000/powerpc-750.c: Re-generated.
6197 * features/rs6000/powerpc-860.c: Re-generated.
6198 * features/rs6000/powerpc-altivec32.c: Re-generated.
6199 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6200 * features/rs6000/powerpc-altivec64.c: Re-generated.
6201 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6202 * features/rs6000/powerpc-cell32l.c: Re-generated.
6203 * features/rs6000/powerpc-cell64l.c: Re-generated.
6204 * features/rs6000/powerpc-e500.c: Re-generated.
6205 * features/rs6000/powerpc-e500l.c: Re-generated.
6206 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6207 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6208 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6209 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6210 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6211 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6212 * features/rs6000/powerpc-vsx32.c: Re-generated.
6213 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6214 * features/rs6000/powerpc-vsx64.c: Re-generated.
6215 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6216 * features/rs6000/rs6000.c: Re-generated.
6217 * features/s390-linux32.c: Re-generated.
6218 * features/s390-linux32v1.c: Re-generated.
6219 * features/s390-linux32v2.c: Re-generated.
6220 * features/s390-linux64.c: Re-generated.
6221 * features/s390-linux64v1.c: Re-generated.
6222 * features/s390-linux64v2.c: Re-generated.
6223 * features/s390-te-linux64.c: Re-generated.
6224 * features/s390-tevx-linux64.c: Re-generated.
6225 * features/s390-vx-linux64.c: Re-generated.
6226 * features/s390x-linux64.c: Re-generated.
6227 * features/s390x-linux64v1.c: Re-generated.
6228 * features/s390x-linux64v2.c: Re-generated.
6229 * features/s390x-te-linux64.c: Re-generated.
6230 * features/s390x-tevx-linux64.c: Re-generated.
6231 * features/s390x-vx-linux64.c: Re-generated.
6232 * features/sparc/sparc32-solaris.c: Re-generated.
6233 * features/sparc/sparc64-solaris.c: Re-generated.
6234 * features/tic6x-c62x.c: Re-generated.
6235 * features/tic6x-c62x-linux.c: Re-generated.
6236 * features/tic6x-c64x.c: Re-generated.
6237 * features/tic6x-c64x-linux.c: Re-generated.
6238 * features/tic6x-c64xp.c: Re-generated.
6239 * features/tic6x-c64xp-linux.c: Re-generated.
6240
35b4818d
YQ
62412017-07-26 Yao Qi <yao.qi@linaro.org>
6242
6243 * i386-linux-tdep.c (i386_linux_read_description): New function.
6244 (i386_linux_core_read_description): Call
6245 i386_linux_read_description.
6246 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6247 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6248 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6249 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6250 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6251 * x86-linux-nat.c (x86_linux_read_description): Call
6252 i386_linux_read_description.
6253
8e2141c6
YQ
62542017-07-26 Yao Qi <yao.qi@linaro.org>
6255
6256 * NEWS: Mention it.
6257 * features/Makefile (%.c: %.xml): Pass the xml file name to
6258 command "maint print c-tdesc".
6259 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6260 name from 'arg'.
6261
b468ff4c
YQ
62622017-07-26 Yao Qi <yao.qi@linaro.org>
6263
6264 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6265 in-class initialization.
6266 (tdesc_create_feature): Call new instead of XCNEW.
6267 (free_target_description): Ue delete.
6268
b9c0e1b4
JB
62692017-07-25 John Baldwin <jhb@FreeBSD.org>
6270
6271 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6272
a04b5337
YQ
62732017-07-25 Yao Qi <yao.qi@linaro.org>
6274
6275 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6276 constant.
6277 (amd64_x32_init_abi): Likewise.
6278 * amd64-tdep.h (amd64_init_abi): Update declaration.
6279 (amd64_x32_init_abi): Likewise.
6280
02ad7fc2
YQ
62812017-07-25 Yao Qi <yao.qi@linaro.org>
6282
6283 PR tdep/21717
6284 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6285 condition for FPSCR.
6286 (arm_linux_store_inferior_registers): Likewise.
6287
b6f48cb0
TT
62882017-07-22 Tom Tromey <tom@tromey.com>
6289
6290 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6291 <syscalls_counts>: Now a std::vector.
6292 (get_catch_syscall_inferior_data): Use "new".
6293 (catch_syscall_inferior_data_cleanup): Use "delete".
6294 (insert_catch_syscall, remove_catch_syscall)
6295 (clear_syscall_counts): Update.
6296
e12c9b7a
TT
62972017-07-22 Tom Tromey <tom@tromey.com>
6298
6299 * break-catch-syscall.c (syscall_catchpoint)
6300 <syscalls_to_be_caught>: Now a std::vector<int>
6301 (~syscall_catchpoint): Remove.
6302 (insert_catch_syscall, remove_catch_syscall)
6303 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6304 (print_mention_catch_syscall, print_recreate_catch_syscall):
6305 Update.
6306 (create_syscall_event_catchpoint): Change type of "filter"
6307 parameter.
6308 (catch_syscall_split_args): Return a std::vector.
6309 (catch_syscall_command_1, catching_syscall_number_1): Update.
6310
4fa8aeac
TT
63112017-07-22 Tom Tromey <tom@tromey.com>
6312
6313 * break-catch-throw.c (struct exception_catchpoint)
6314 <exception_rx>: Now a std::string.
6315 (~exception_catchpoint): Remove.
6316 (print_one_detail_exception_catchpoint): Update.
6317 (handle_gnu_v3_exceptions): Change type of except_rx.
6318 (extract_exception_regexp): Return a std::string.
6319 (catch_exception_command_1): Update.
6320
f746a154
TT
63212017-07-22 Tom Tromey <tom@tromey.com>
6322
6323 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6324 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6325 std::vector.
6326 <catch_all>: Now a bool.
6327 (~signal_catchpoint): Remove.
6328 (signal_catchpoint_insert_location)
6329 (signal_catchpoint_remove_location)
6330 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6331 (signal_catchpoint_print_mention)
6332 (signal_catchpoint_print_recreate)
6333 (signal_catchpoint_explains_signal): Update.
6334 (create_signal_catchpoint): Change type of "filter" and
6335 "catch_all".
6336 (catch_signal_split_args): Return a std::vector. Change type of
6337 "catch_all".
6338 (catch_signal_command): Update.
6339
47e77640
PA
63402017-07-20 Pedro Alves <palves@redhat.com>
6341
6342 * ada-lang.c (ada_language_defn): Make extern.
6343 (_initialize_ada_language): Remove add_language call.
6344 * c-lang.c (c_language_defn, cplus_language_defn)
6345 (asm_language_defn, minimal_language_defn): Make extern.
6346 (_initialize_c_language): Delete.
6347 * completer.c (compare_cstrings): Delete, moved to utils.h.
6348 * d-lang.c (d_language_defn): Make extern.
6349 (_initialize_d_language): Remove add_language calls.
6350 * defs.h (enum language): Add comment.
6351 * f-lang.c (f_language_defn): Make extern.
6352 (_initialize_f_language): Remove add_language call.
6353 * go-lang.c (go_language_defn): Make extern.
6354 (_initialize_go_language): Remove add_language call.
6355 * language.c: Include <algorithm>.
6356 (languages): Redefine as const array.
6357 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6358 (set_language_command): Handle "local". Use for-range loop.
6359 (set_language): Remove loop.
6360 (language_enum): Rewrite.
6361 (language_def, language_str): Remove loops.
6362 (add_language): Delete.
6363 (add_set_language_command): New, based on add_languages.
6364 (skip_language_trampoline): Adjust.
6365 (local_language_defn): Delete.
6366 (language_gdbarch_post_init): Adjust.
6367 (_initialize_language): Remove add_language calls. Call
6368 add_set_language_command.
6369 * language.h (add_language): Delete.
6370 (auto_language_defn)
6371 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6372 (asm_language_defn, c_language_defn, cplus_language_defn)
6373 (d_language_defn, f_language_defn, go_language_defn)
6374 (m2_language_defn, objc_language_defn, opencl_language_defn)
6375 (pascal_language_defn, rust_language_defn): Declare.
6376 * m2-lang.c (m2_language_defn): Make extern.
6377 (_initialize_m2_language): Remove add_language call.
6378 * objc-lang.c (objc_language_defn): Make extern.
6379 (_initialize_objc_language): Remove add_language call.
6380 * opencl-lang.c (opencl_language_defn): Make extern.
6381 (_initialize_opencl_language): Remove add_language call.
6382 * p-lang.c (pascal_language_defn): Make extern.
6383 (_initialize_pascal_language): Delete.
6384 * rust-lang.c (rust_language_defn): Make extern.
6385 (_initialize_rust_language): Delete.
6386 * utils.h (compare_cstrings): New static inline function.
6387
edb0c9cb
PA
63882017-07-20 Pedro Alves <palves@redhat.com>
6389
6390 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6391 (get_var_value): Constify parameters.
6392 (get_int_var_value): Change prototype.
6393 (to_fixed_range_type): Adjust.
6394 * ada-lang.h (get_int_var_value): Change prototype.
6395
a778f165
PA
63962017-07-20 Pedro Alves <palves@redhat.com>
6397
6398 * dwarf2read.c (dw2_lookup_symbol): Use
6399 SYMBOL_MATCHES_SEARCH_NAME.
6400 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6401
42edd901
PA
64022017-07-20 Pedro Alves <palves@redhat.com>
6403
6404 * block.c (block_iter_name_step, block_iter_name_first)
6405 (block_iter_name_next): Delete.
6406 (block_lookup_symbol_primary): Adjust to use
6407 dict_iter_match_first/dict_iter_match_next.
6408 * block.h (block_iter_name_first, block_iter_name_next): Delete
6409 declarations.
6410 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6411 dict_iter_match_first/dict_iter_match_next.
6412
cf325299
PA
64132017-07-20 Pedro Alves <palves@redhat.com>
6414
6415 * cp-support.c (cp_find_first_component_aux): Add missing case for
6416 end of string.
6417
c5ed0576
DB
64182017-07-18 David Blaikie <dblaikie@gmail.com>
6419
6420 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6421 of dwo_cu's dwo_file.
6422
27841e76
YQ
64232017-07-18 Yao Qi <yao.qi@linaro.org>
6424
6425 * remote.c (store_registers_using_G): Remove one line comment.
6426
cfb7e58b
YQ
64272017-07-18 Yao Qi <yao.qi@linaro.org>
6428
6429 * regcache.c (regcache_cpy): Simplify it.
6430 (regcache::cpy_no_passthrough): Remove it.
6431 * regcache.h (cpy_no_passthrough): Remove it.
6432 (regcache_dup, regcache_cpy): Update comments.
6433
386535dd
PA
64342017-07-18 Pedro Alves <palves@redhat.com>
6435
6436 * remote-sim.c (sim_command_completer): Adjust to work with a
6437 completion_tracker instead of a VEC.
6438
c45ec17c
PA
64392017-07-17 Pedro Alves <palves@redhat.com>
6440
6441 * completer.c (complete_source_filenames): New function.
6442 (complete_address_and_linespec_locations): New function.
6443 (location_completer): Use complete_address_and_linespec_locations.
6444 (completion_tracker::build_completion_result): Honor the tracker's
6445 request to suppress append.
6446 * completer.h (completion_tracker::suppress_append_ws)
6447 (completion_tracker::set_suppress_append_ws): New methods.
6448 (completion_tracker::m_suppress_append_ws): New field.
6449 (complete_source_filenames): New declaration.
6450 * linespec.c (linespec_complete_what): New.
6451 (struct ls_parser) <complete_what, completion_word,
6452 completion_quote_char, completion_quote_end, completion_tracker>:
6453 New fields.
6454 (string_find_incomplete_keyword_at_end): New.
6455 (linespec_lexer_lex_string): Record quote char. If in completion
6456 mode, don't throw.
6457 (linespec_lexer_consume_token): Advance the completion word point.
6458 (linespec_lexer_peek_token): Save/restore completion info.
6459 (save_stream_and_consume_token): New.
6460 (set_completion_after_number): New.
6461 (linespec_parse_basic): Set what to complete next depending on
6462 token. Handle function and label completions specially.
6463 (parse_linespec): Disable objc shortcut in completion mode. Set
6464 what to complete next depending on token type. Skip keyword if in
6465 completion mode.
6466 (complete_linespec_component, linespec_complete): New.
6467 * linespec.h (linespec_complete): Declare.
6468
be966d42
PA
64692017-07-17 Pedro Alves <palves@redhat.com>
6470
6471 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6472 Handle 'operator<' / 'operator<<'.
6473
a2459270
PA
64742017-07-17 Pedro Alves <palves@redhat.com>
6475
6476 * completer.c (collect_explicit_location_matches): Handle
6477 MATCH_LABEL.
6478 (convert_explicit_location_to_linespec): New, factored out from
6479 ...
6480 (convert_explicit_location_to_sals): ... this.
6481 (complete_label): New.
6482 (linespec_complete_label, find_label_symbols_in_block): New.
6483 (find_label_symbols): Add completion_mode parameter and adjust to
6484 call find_label_symbols_in_block.
6485 * linespec.h (linespec_complete_label): Declare.
6486
c6756f62
PA
64872017-07-17 Pedro Alves <palves@redhat.com>
6488
6489 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6490 complete_symbol_mode parameter.
6491 * cli/cli-cmds.c (complete_command): Get the completion result out
6492 of the handle_brkchars tracker if used a custom word point.
6493 * completer.c: Include "linespec.h".
6494 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6495 (advance_to_expression_complete_word_point): New.
6496 (completion_tracker::completes_to_completion_word): New.
6497 (complete_files_symbols): Pass down
6498 complete_symbol_mode::EXPRESSION.
6499 (explicit_options, probe_options): New.
6500 (collect_explicit_location_matches): Complete on the
6501 explictit_loc->foo instead of word. Use
6502 linespec_complete_function. Handle MATCH_LINE. Handle offering
6503 keyword and options completions.
6504 (backup_text_ptr): Delete.
6505 (skip_keyword): New.
6506 (complete_explicit_location): Remove 'word' parameter. Add
6507 language, quoted_arg_start and quoted_arg_end parameters.
6508 Rewrite, parsing left to right.
6509 (location_completer): Rewrite.
6510 (location_completer_handle_brkchars): New function.
6511 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6512 (enum complete_line_internal_reason): Adjust comments.
6513 (completion_tracker::discard_completions): New.
6514 (completer_handle_brkchars_func_for_completer): Handle
6515 location_completer.
6516 (gdb_custom_word_point_brkchars)
6517 (gdb_org_rl_basic_quote_characters): New.
6518 (gdb_completion_word_break_characters_throw)
6519 (completion_find_completion_word): Handle trackers that use a
6520 custom word point.
6521 (completion_tracker::advance_custom_word_point_by): New.
6522 (completion_tracker::build_completion_result): Don't rely on
6523 readline appending the quote char.
6524 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6525 use a custom word point.
6526 (gdb_rl_attempted_completion_function): Restore
6527 rl_basic_quote_characters.
6528 * completer.h (class completion_tracker): Extend intro comment.
6529 (completion_tracker::set_quote_char)
6530 (completion_tracker::quote_char)
6531 (completion_tracker::set_use_custom_word_point)
6532 (completion_tracker::use_custom_word_point)
6533 (completion_tracker::custom_word_point)
6534 (completion_tracker::set_custom_word_point)
6535 (completion_tracker::advance_custom_word_point_by)
6536 (completion_tracker::completes_to_completion_word)
6537 (completion_tracker::discard_completions): New methods.
6538 (completion_tracker::m_quote_char)
6539 (completion_tracker::m_use_custom_word_point)
6540 (completion_tracker::m_custom_word_point): New fields.
6541 (advance_to_expression_complete_word_point): Declare.
6542 * f-lang.c (f_collect_symbol_completion_matches): Add
6543 complete_symbol_mode parameter.
6544 * language.h (struct language_defn)
6545 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6546 parameter.
6547 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6548 (linespec_complete_function): New function.
6549 (linespec_lexer_lex_keyword): Adjust.
6550 * linespec.h (linespec_keywords, linespec_complete_function): New
6551 declarations.
6552 * location.c (find_end_quote): New function.
6553 (explicit_location_lex_one): Add explicit_completion_info
6554 parameter. Save quoting info. Don't throw if being called for
6555 completion. Don't handle Ada operators here.
6556 (is_cp_operator, skip_op_false_positives, first_of)
6557 (explicit_location_lex_one_function): New function.
6558 (string_to_explicit_location): Replace 'dont_throw' parameter with
6559 an explicit_completion_info pointer parameter. Handle it. Don't
6560 use explicit_location_lex_one to lex function names. Use
6561 explicit_location_lex_one_function instead.
6562 * location.h (struct explicit_completion_info): New.
6563 (string_to_explicit_location): Replace 'dont_throw' parameter with
6564 an explicit_completion_info pointer parameter.
6565 * symtab.c (default_collect_symbol_completion_matches_break_on):
6566 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6567 (default_collect_symbol_completion_matches)
6568 (collect_symbol_completion_matches): Add complete_symbol_mode
6569 parameter.
6570 (collect_symbol_completion_matches_type): Pass down
6571 complete_symbol_mode::EXPRESSION.
6572 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6573 parameter. Handle LINESPEC mode.
6574 * symtab.h (complete_symbol_mode): New.
6575 (default_collect_symbol_completion_matches_break_on)
6576 (default_collect_symbol_completion_matches)
6577 (collect_symbol_completion_matches)
6578 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6579 parameter.
6580
1d550c82
PA
65812017-07-17 Pedro Alves <palves@redhat.com>
6582
6583 * utils.c (enum class strncmp_iw_mode): New.
6584 (strcmp_iw): Rename to ...
6585 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6586 parameters. Handle them.
6587 (strncmp_iw): New.
6588 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6589 * utils.h (strncmp_iw): Declare.
6590 (strcmp_iw): Move describing comments here.
6591
8090b426
PA
65922017-07-17 Pedro Alves <palves@redhat.com>
6593
6594 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6595 CP_OPERATOR_STR.
6596 * c-typeprint.c (is_type_conversion_operator): Use
6597 CP_OPERATOR_STR.
6598 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6599 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6600 CP_OPERATOR_LEN.
6601 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6602 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6603 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6604 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6605 CP_OPERATOR_STR.
6606 * location.c: Include "cp-support.h".
6607 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6608 CP_OPERATOR_STR.
6609 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6610 CP_OPERATOR_LEN.
6611
6a2c1b87
PA
66122017-07-17 Pedro Alves <palves@redhat.com>
6613
6614 * cli/cli-cmds.c (complete_command): Use a completion tracker
6615 along with completion_find_completion_word for handle_brkchars
6616 phase.
6617 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6618 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6619 (struct gdb_rl_completion_word_info): New.
6620 (gdb_rl_find_completion_word): New.
6621 (completion_find_completion_word): New.
6622 * completer.h (completion_find_completion_word): Declare.
6623
eb3ff9a5
PA
66242017-07-17 Pedro Alves <palves@redhat.com>
6625
6626 * ada-lang.c (symbol_completion_match): Adjust comments.
6627 (symbol_completion_add): Replace vector parameter with
6628 completion_tracker parameter. Use it.
6629 (ada_make_symbol_completion_list): Rename to...
6630 (ada_collect_symbol_completion_matches): ... this. Add
6631 completion_tracker parameter and use it.
6632 (ada_language_defn): Adjust.
6633 * break-catch-syscall.c (catch_syscall_completer): Adjust
6634 prototype and work with completion_tracker instead of VEC.
6635 * breakpoint.c (condition_completer): Adjust prototype and work
6636 with completion_tracker instead of VEC.
6637 * c-lang.c (c_language_defn, cplus_language_defn)
6638 (asm_language_defn, minimal_language_defn): Adjust to renames.
6639 * cli/cli-cmds.c (complete_command): Rework using
6640 completion_tracker. Catch exceptions when completing.
6641 * cli/cli-decode.c (integer_unlimited_completer)
6642 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6643 with completion_tracker instead of VEC.
6644 * command.h (struct completion_tracker): Forward declare.
6645 (completer_ftype, completer_handle_brkchars_ftype): Change
6646 types.
6647 (complete_on_cmdlist, complete_on_enum): Adjust.
6648 * completer.c: Include <algorithm>.
6649 (struct gdb_completer_state): New.
6650 (current_completion): New global.
6651 (readline_line_completion_function): Delete.
6652 (noop_completer, filename_completer)
6653 (filename_completer_handle_brkchars, complete_files_symbols)
6654 (linespec_location_completer): Adjust to work with a
6655 completion_tracker instead of a VEC.
6656 (string_or_empty): New.
6657 (collect_explicit_location_matches): Adjust to work with a
6658 completion_tracker instead of a VEC.
6659 (explicit_location_completer): Rename to ...
6660 (complete_explicit_location): ... this and adjust to work with a
6661 completion_tracker instead of a VEC.
6662 (location_completer): Adjust to work with a completion_tracker
6663 instead of a VEC.
6664 (add_struct_fields): Adjust to work with a completion_list instead
6665 of VEC.
6666 (expression_completer): Rename to ...
6667 (complete_expression): ... this and adjust to work with a
6668 completion_tracker instead of a VEC. Use complete_files_symbols.
6669 (expression_completer): Reimplement on top of complete_expression.
6670 (symbol_completer): Adjust to work with a completion_tracker
6671 instead of a VEC.
6672 (enum complete_line_internal_reason): Add describing comments.
6673 (complete_line_internal_normal_command): Adjust to work with a
6674 completion_tracker instead of a VEC.
6675 (complete_line_internal): Rename to ...
6676 (complete_line_internal_1): ... this and adjust to work with a
6677 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6678 handle_brkchars phase.
6679 (new_completion_tracker): Delete.
6680 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6681 complete_line_internal_1.
6682 (free_completion_tracker): Delete.
6683 (INITIAL_COMPLETION_HTAB_SIZE): New.
6684 (completion_tracker::completion_tracker)
6685 (completion_tracker::~completion_tracker): New.
6686 (maybe_add_completion): Delete.
6687 (completion_tracker::maybe_add_completion)
6688 (completion_tracker::add_completion)
6689 (completion_tracker::add_completions): New.
6690 (throw_max_completions_reached_error): Delete.
6691 (complete_line): Adjust to work with a completion_tracker instead
6692 of a VEC. Don't create a completion_tracker_t or check for max
6693 completions here.
6694 (command_completer, command_completer_handle_brkchars)
6695 (signal_completer, reg_or_group_completer_1)
6696 (reg_or_group_completer, default_completer_handle_brkchars):
6697 Adjust to work with a completion_tracker.
6698 (gdb_completion_word_break_characters_throw): New.
6699 (gdb_completion_word_break_characters): Reimplement.
6700 (line_completion_function): Delete.
6701 (completion_tracker::recompute_lowest_common_denominator)
6702 (expand_preserving_ws)
6703 (completion_tracker::build_completion_result)
6704 (completion_result::completion_result)
6705 (completion_result::completion_result)
6706 (completion_result::~completion_result)
6707 (completion_result::completion_result)
6708 (completion_result::release_match_list, compare_cstrings)
6709 (completion_result::sort_match_list)
6710 (completion_result::reset_match_list)
6711 (gdb_rl_attempted_completion_function_throw)
6712 (gdb_rl_attempted_completion_function): New.
6713 * completer.h (completion_list, struct completion_result)
6714 (class completion_tracker): New.
6715 (complete_line): Add completion_tracker parameter.
6716 (readline_line_completion_function): Delete.
6717 (gdb_rl_attempted_completion_function): New.
6718 (noop_completer, filename_completer, expression_completer)
6719 (location_completer, symbol_completer, command_completer)
6720 (signal_completer, reg_or_group_completer): Update prototypes.
6721 (completion_tracker_t, new_completion_tracker)
6722 (make_cleanup_free_completion_tracker): Delete.
6723 (enum maybe_add_completion_enum): Delete.
6724 (maybe_add_completion): Delete.
6725 (throw_max_completions_reached_error): Delete.
6726 * corefile.c (complete_set_gnutarget): Adjust to work with a
6727 completion_tracker instead of a VEC.
6728 * cp-abi.c (cp_abi_completer): Adjust to work with a
6729 completion_tracker instead of a VEC.
6730 * d-lang.c (d_language_defn): Adjust.
6731 * disasm.c (disassembler_options_completer): Adjust to work with a
6732 completion_tracker instead of a VEC.
6733 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6734 (f_collect_symbol_completion_matches): ... this. Adjust to work
6735 with a completion_tracker instead of a VEC.
6736 (f_language_defn): Adjust.
6737 * go-lang.c (go_language_defn): Adjust.
6738 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
6739 Adjust to work with a completion_tracker instead of a VEC.
6740 * infrun.c (handle_completer): Likewise.
6741 * interps.c (interpreter_completer): Likewise.
6742 * interps.h (interpreter_completer): Likewise.
6743 * language.c (unknown_language_defn, auto_language_defn)
6744 (local_language_defn): Adjust.
6745 * language.h (language_defn::la_make_symbol_completion_list):
6746 Rename to ...
6747 (language_defn::la_collect_symbol_completion_matches): ... this
6748 and adjust to work with a completion_tracker instead of a VEC.
6749 * m2-lang.c (m2_language_defn): Adjust.
6750 * objc-lang.c (objc_language_defn): Adjust.
6751 * opencl-lang.c (opencl_language_defn): Adjust.
6752 * p-lang.c (pascal_language_defn): Adjust.
6753 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
6754 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
6755 with a completion_tracker.
6756 * rust-lang.c (rust_language_defn): Adjust.
6757 * symtab.c (free_completion_list, do_free_completion_list)
6758 (return_val, completion_tracker): Delete.
6759 (completion_list_add_name, completion_list_add_symbol)
6760 (completion_list_add_msymbol, completion_list_objc_symbol)
6761 (completion_list_add_fields, add_symtab_completions): Add
6762 completion_tracker parameter and use it.
6763 (default_make_symbol_completion_list_break_on_1): Rename to...
6764 (default_collect_symbol_completion_matches_break_on): ... this.
6765 Add completion_tracker parameter and use it instead of allocating
6766 a completion tracker here.
6767 (default_make_symbol_completion_list_break_on): Delete old
6768 implementation.
6769 (default_make_symbol_completion_list): Delete.
6770 (default_collect_symbol_completion_matches): New.
6771 (make_symbol_completion_list): Delete.
6772 (collect_symbol_completion_matches): New.
6773 (make_symbol_completion_type): Rename to ...
6774 (collect_symbol_completion_matches_type): ... this. Add
6775 completion_tracker parameter and use it instead of VEC.
6776 (make_file_symbol_completion_list_1): Rename to...
6777 (collect_file_symbol_completion_matches): ... this. Add
6778 completion_tracker parameter and use it instead of VEC.
6779 (make_file_symbol_completion_list): Delete.
6780 (add_filename_to_list): Use completion_list instead of a VEC.
6781 (add_partial_filename_data::list): Now a completion_list.
6782 (make_source_files_completion_list): Work with a completion_list
6783 instead of a VEC.
6784 * symtab.h: Include "completer.h".
6785 (default_make_symbol_completion_list_break_on)
6786 (default_make_symbol_completion_list, make_symbol_completion_list)
6787 (make_symbol_completion_type, make_file_symbol_completion_list)
6788 (make_source_files_completion_list): Delete.
6789 (default_collect_symbol_completion_matches_break_on)
6790 (default_collect_symbol_completion_matches)
6791 (collect_symbol_completion_matches)
6792 (collect_symbol_completion_matches_type)
6793 (collect_file_symbol_completion_matches)
6794 (make_source_files_completion_list): New.
6795 * top.c (init_main): Don't install a rl_completion_entry_function
6796 hook. Install a rl_attempted_completion_function hook instead.
6797 * tui/tui-layout.c (layout_completer): Adjust to work with a
6798 completion_tracker.
6799 * tui/tui-regs.c (tui_reggroup_completer):
6800 * tui/tui-win.c (window_name_completer, focus_completer)
6801 (winheight_completer): Adjust to work with a completion_tracker.
6802 * value.c: Include "completer.h".
6803 (complete_internalvar): Adjust to work with a completion_tracker.
6804 * value.h (complete_internalvar): Likewise.
6805
6e1dbf8c
PA
68062017-07-17 Pedro Alves <palves@redhat.com>
6807
6808 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
6809 renames.
6810 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
6811 comments to completer_ftype's declaration.
6812 <completer_handle_brkchars>: Change type to
6813 completer_handle_brkchars_ftype.
6814 * command.h (completer_ftype): Add describing comment and give
6815 names to parameters.
6816 (completer_ftype_void): Rename to ...
6817 (completer_handle_brkchars_ftype) ... this. Add describing comment.
6818 (set_cmd_completer_handle_brkchars): Adjust.
6819 * completer.c (filename_completer_handle_brkchars): New function.
6820 (complete_line_internal_normal_command): New function, factored
6821 out from ...
6822 (complete_line_internal): ... here.
6823 (command_completer_handle_brkchars)
6824 (default_completer_handle_brkchars)
6825 (completer_handle_brkchars_func_for_completer): New functions.
6826 * completer.h (set_gdb_completion_word_break_characters): Delete
6827 declaration.
6828 (completer_handle_brkchars_func_for_completer): New declaration.
6829 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
6830 completer_handle_brkchars_func_for_completer.
6831
78b13106
PA
68322017-07-17 Pedro Alves <palves@redhat.com>
6833
6834 * completer.c (symbol_completer): New function, based on
6835 make_symbol_completion_list_fn.
6836 * completer.h (symbol_completer): New declaration.
6837 * guile/scm-cmd.c (cmdscm_completers): Adjust.
6838 * python/py-cmd.c (completers): Adjust.
6839 * symtab.c (make_symbol_completion_list_fn): Delete.
6840 * symtab.h (make_symbol_completion_list_fn): Delete.
6841 * cli/cli-decode.c (add_cmd): Adjust.
6842
bbf2f4df
PA
68432017-07-17 Pedro Alves <palves@redhat.com>
6844
6845 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
6846 * dwarf2read.c: Include "filename-seen-cache.h".
6847 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
6848 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
6849 * filename-seen-cache.c: New file.
6850 * filename-seen-cache.h: New file.
6851 * symtab.c: Include "filename-seen-cache.h".
6852 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
6853 (create_filename_seen_cache, clear_filename_seen_cache)
6854 (delete_filename_seen_cache, filename_seen): Delete, parts moved
6855 to filename-seen-cache.h/filename-seen-cache.c.
6856 (output_source_filename, sources_info)
6857 (maybe_add_partial_symtab_filename)
6858 (make_source_files_completion_list): Adjust to use
6859 filename_seen_cache.
6860
330cdd98
PA
68612017-07-17 Pedro Alves <palves@redhat.com>
6862
6863 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
6864 fields.
6865 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
6866 dwarf2_debug_sections*)): New.
6867 (dwarf2_per_objfile::dwarf2_per_objfile(const
6868 dwarf2_per_objfile&)): Declare as deleted.
6869 (dwarf2_per_objfile::operator=): Declare as deleted.
6870 (dwarf2_per_objfile::dwarf2_per_objfile)
6871 (dwarf2_per_objfile::~dwarf2_per_objfile)
6872 (dwarf2_per_objfile::free_cached_comp_units): New.
6873 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
6874 ctor. Call dwarf2_per_objfile's ctor manually.
6875 (dwarf2_locate_sections): Deleted/refactored as ...
6876 (dwarf2_per_objfile::locate_sections): ... this new method.
6877 (free_cached_comp_units): Defer to
6878 dwarf2_per_objfile::free_cached_comp_units.
6879 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
6880
8880f2a9
TT
68812017-07-14 Tom Tromey <tom@tromey.com>
6882
6883 PR rust/21764:
6884 * rust-exp.y (convert_ast_to_expression): Add "want_type"
6885 parameter.
6886 <UNOP_SIZEOF>: Split into separate case.
6887 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
6888
65547233
TT
68892017-07-14 Tom Tromey <tom@tromey.com>
6890
6891 PR rust/21763:
6892 * symtab.c (symbol_matches_domain): Add language_rust to special
6893 case.
6894 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
6895 treat LOC_TYPEDEF symbols as variables.
6896
8f14146e
PA
68972017-07-14 Pedro Alves <palves@redhat.com>
6898
6899 * symtab.c (make_file_symbol_completion_list_1): Iterate over
6900 symtabs matching all symtabs with SRCFILE as file name instead of
6901 only considering the first hit, with lookup_symtab.
6902
2347965c
SM
69032017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6904
6905 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
6906 operator_name parameters.
6907 (gen_expr): Update function call.
6908
40f4af28
SM
69092017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6910
6911 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
6912 parameter.
6913 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
6914 Likewise.
6915 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
6916 parameter, use agent_expr::gdbarch instead, update function
6917 calls.
6918 (locexpr_tracepoint_var_ref): Likewise.
6919 (loclist_tracepoint_var_ref): Likewise.
6920 * ax-gdb.c (gen_trace_static_fields): Likewise.
6921 (gen_traced_pop): Likewise.
6922 (gen_frame_args_address): Likewise.
6923 (gen_frame_locals_address): Likewise.
6924 (gen_var_ref): Likewise.
6925 (gen_struct_ref_recursive): Likewise.
6926 (gen_static_field): Likewise.
6927 (gen_maybe_namespace_elt): Likewise.
6928 (gen_expr): Likewise.
6929 (gen_trace_for_var): Likewise.
6930 (gen_trace_for_expr): Likewise.
6931 (gen_trace_for_return_address): Likewise.
6932
053f8057
SM
69332017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6934
6935 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
6936 parameter.
6937 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
6938
6661ad48
SM
69392017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6940
6941 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
6942 from ax, update calls.
6943 (gen_usual_arithmetic): Likewise.
6944 (gen_integral_promotions): Likewise.
6945 (gen_bitfield_ref): Likewise.
6946 (gen_primitive_field): Likewise.
6947 (gen_struct_ref_recursive): Likewise.
6948 (gen_struct_ref): Likewise.
6949 (gen_maybe_namespace_elt): Likewise.
6950 (gen_struct_elt_for_reference): Likewise.
6951 (gen_namespace_elt): Likewise.
6952 (gen_aggregate_elt_ref): Likewise.
6953 (gen_expr): Get gdbarch from ax, update calls.
6954 (gen_expr_binop_rest): Likewise.
6955
c55a47e7
PA
69562017-07-13 Pedro Alves <palves@redhat.com>
6957
6958 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
6959 as default tdesc.
6960 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
6961 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
6962 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
6963 tdesc_amd64_linux as default tdesc. Get final tdesc from the
6964 tdep.
6965 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
6966 Get final tdesc from the tdep.
6967 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
6968 default tdesc.
6969 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6970 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6971 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
6972 Use it as default tdesc.
6973 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
6974 down to amd_init_abi. No longer handle fallback tdesc here.
6975 * amd64-tdep.h (tdesc_x32): Declare.
6976 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
6977 parameter.
6978 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
6979 as default tdesc.
6980
55efceab
AA
69812017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6982
6983 * s390-linux-tdep.c (s390_process_record): Add support for
6984 instructions new in arch12.
6985
0aa37b65
JB
69862017-07-11 John Baldwin <jhb@FreeBSD.org>
6987
6988 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6989 PT_GETFSBASE and PT_GETGSBASE.
6990 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
6991 PT_SETGSBASE.
6992
48aeef91
JB
69932017-07-11 John Baldwin <jhb@FreeBSD.org>
6994
6995 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
6996 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
6997 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
6998 those rules.
6999 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7000 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7001 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7002 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7003 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7004 * features/i386/amd64.xml: Add 64bit-segments.xml.
7005 * features/i386/amd64-avx-avx512.c: Regenerated.
7006 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7007 * features/i386/amd64-avx-mpx.c: Regenerated.
7008 * features/i386/amd64-avx.c: Regenerated.
7009 * features/i386/amd64-mpx.c: Regenerated.
7010 * features/i386/amd64.c: Regenerated.
7011 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7012 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7013 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7014 * regformats/i386/amd64-avx.dat: Regenerated.
7015 * regformats/i386/amd64-mpx.dat: Regenerated.
7016 * regformats/i386/amd64.dat: Regenerated.
7017
77c501bc
YQ
70182017-07-10 Yao Qi <yao.qi@linaro.org>
7019
7020 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7021 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7022
6dc8d757
AK
70232017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7024
7025 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7026 unsetenv.
7027 * gnulib/aclocal.m4: Regenerate.
7028 * gnulib/config.in: Regenerate.
7029 * gnulib/configure: Regenerate.
7030 * gnulib/import/Makefile.am: Regenerate.
7031 * gnulib/import/Makefile.in: Regenerate.
7032 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7033 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7034 * gnulib/import/m4/environ.m4: New file.
7035 * gnulib/import/m4/setenv.m4: New file.
7036 * gnulib/import/setenv.c: New file.
7037 * gnulib/import/unsetenv.c: New file.
7038
266934d1
SM
70392017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7040
7041 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7042 address when op is DW_OP_addr.
7043
03278692
TT
70442017-07-09 Tom Tromey <tom@tromey.com>
7045
7046 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7047 check and apply to outer type.
7048
4b654465
JB
70492017-07-07 John Baldwin <jhb@FreeBSD.org>
7050
7051 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7052 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7053 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7054 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7055
2af9fc44
JB
70562017-07-07 John Baldwin <jhb@FreeBSD.org>
7057
7058 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7059
382b69bb
JB
70602017-07-07 John Baldwin <jhb@FreeBSD.org>
7061
7062 * corelow.c (get_core_siginfo): Remove.
7063 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7064 instead of get_core_siginfo.
7065 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7066 * gdbarch.h: Re-generate.
7067 * gdbarch.c: Re-generate.
7068 * linux-tdep.c (linux_core_xfer_siginfo): New.
7069 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7070
6e5eab33
JB
70712017-07-07 John Baldwin <jhb@FreeBSD.org>
7072
7073 * corelow.c (thread_section_name): Move to ...
7074 * gdbcore.h (thread_section_name): ... here.
7075
929edea9
JB
70762017-07-07 John Baldwin <jhb@FreeBSD.org>
7077
7078 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7079 (struct siginfo32): New.
7080 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7081 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7082 via ptrace(PT_LWPINFO).
7083
762c974a
JB
70842017-07-07 John Baldwin <jhb@FreeBSD.org>
7085
7086 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7087 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7088 (fbsd_get_siginfo_type): New.
7089 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7090 (_initialize_fbsd_tdep): New.
7091
33c5cd75
DB
70922017-07-06 David Blaikie <dblaikie@gmail.com>
7093
7094 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7095 a singular dwo_unit*) to support multiple CUs in the same way that
7096 multiple TUs are supported.
7097 (create_cus_hash_table): Replace create_dwo_cu with a function for
7098 parsing multiple CUs from a DWO file.
7099 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7100 create_dwo_cu.
7101 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7102 htab_find, rather than comparing the signature to a singleton CU in
7103 the dwo_file.
7104
8455d262
PA
71052017-07-06 Pedro Alves <palves@redhat.com>
7106
7107 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7108
4da3eb35
PA
71092017-07-04 Pedro Alves <palves@redhat.com>
7110
7111 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7112 * gdbtypes.h (TYPE_STATIC): Delete.
7113 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7114 is_synchronized, is_native>: Delete.
7115 <dummy>: Bump.
7116 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7117 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7118 (TYPE_FN_FIELD_ABSTRACT): Delete.
7119
5bfd255c
SM
71202017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7121
7122 * buffer.h (buffer_finish): Fix spelling mistakes.
7123
25c54127
EZ
71242017-07-01 Eli Zaretskii <eliz@gnu.org>
7125
7126 * .dir-locals.el: Automatically switch to C-style comments in
7127 versions of Emacs that support the feature.
7128
dc4bde35
SDJ
71292017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7130 Pedro Alves <palves@redhat.com>
7131
7132 PR cli/21688
7133 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7134 (process_next_line): New variable 'inline_cmd'.
7135 Adjust 'if' clauses for "python", "compile" and "guile" to use
7136 'command_name_equals' and check for '!inline_cmd'.
7137
51ed89aa
SDJ
71382017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7139
7140 PR cli/21688
7141 * cli/cli-script.c (command_name_equals_not_inline): New function.
7142 (process_next_line): Adjust 'if' clauses for "python", "compile"
7143 and "guile" to use command_name_equals_not_inline.
7144
eb17d413
PA
71452017-06-29 Pedro Alves <palves@redhat.com>
7146
7147 * completer.c (expression_completer): Call
7148 linespec_location_completer instead of location_completer.
7149
195bcdd5
PA
71502017-06-29 Pedro Alves <palves@redhat.com>
7151
7152 * completer.c (expression_completer): Remove code that recomputes
7153 'text' from 'word'.
7154
adc764e7
YQ
71552017-06-29 Yao Qi <yao.qi@linaro.org>
7156
7157 * regformats/regdat.sh: Generate code with
7158 "ifndef IN_PROCESS_AGENT".
7159
6e75794e
PA
71602017-06-28 Pedro Alves <palves@redhat.com>
7161
7162 * command.h: Include "common/scoped_restore.h".
7163
bc491f2e
YQ
71642017-06-28 Yao Qi <yao.qi@linaro.org>
7165
7166 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7167 instead of obstack_grow.
7168
41664b45
DG
71692017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7170
7171 PR gdb/21337
7172 * symfile.c (reread_symbols): Call objfiles_changed just before
7173 read_symbols.
7174
6da67eb1
PA
71752017-06-27 Pedro Alves <palves@redhat.com>
7176
7177 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7178 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7179 (completion_list_add_symbol, completion_list_add_msymbol):
7180 ... these new functions.
7181 (add_symtab_completions)
7182 (default_make_symbol_completion_list_break_on_1): Adjust.
7183
23732b1e
PA
71842017-06-27 Pedro Alves <palves@redhat.com>
7185
7186 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7187 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7188 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7189 dtor.
7190 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7191 'storage_obstack' field an auto_obstack. In-class initialize all
7192 non-bitfield fields. Make minsyms_read bool.
7193 * symfile.c (read_symbols): Adjust.
7194
a4d1e79a
AH
71952017-06-27 Alan Hayward <alan.hayward@arm.com>
7196
7197 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7198 (gdbsim_store_register): Likewise.
7199
8268c778
PA
72002017-06-27 Pedro Alves <palves@redhat.com>
7201
7202 * c-exp.y (name_obstack): Now an auto_obstack.
7203 (yylex): Use auto_obstack::clear.
7204 (c_parse): Use auto_obstack::clear instead of reinitializing and
7205 freeing the obstack.
7206 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7207 * d-exp.y (name_obstack): Now an auto_obstack.
7208 (yylex): Use auto_obstack::clear.
7209 (d_parse): Use auto_obstack::clear instead of reinitializing and
7210 freeing the obstack.
7211 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7212 auto_obstack.
7213 * dwarf2read.c (create_addrmap_from_index)
7214 (dwarf2_build_psymtabs_hard)
7215 (update_enumeration_type_from_children): Likewise.
7216 * gdb_obstack.h (auto_obstack): New type.
7217 * go-exp.y (name_obstack): Now an auto_obstack.
7218 (build_packaged_name): Use auto_obstack::clear.
7219 (go_parse): Use auto_obstack::clear instead of reinitializing and
7220 freeing the obstack.
7221 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7222 auto_obstack.
7223 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7224 * rust-exp.y (work_obstack): Now an auto_obstack.
7225 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7226 reinitializing and freeing the obstack.
7227 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7228 (host_char_to_target): Use auto_obstack.
7229 * utils.h (make_cleanup_obstack_free): Delete declaration.
7230 * valprint.c (generic_emit_char, generic_printstr): Use
7231 auto_obstack.
7232
db665f42
SM
72332017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7234
7235 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7236 thread.
7237 (darwin_init_thread_list): Don't update dummy thread.
7238 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7239
873c0814
SM
72402017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7241
7242 * record-full.c (netorder16): Remove.
7243
8b5a7a6e
SM
72442017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7245
7246 * common/diagnostics.h: Define macros for GCC.
7247 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7248 * common/vec.h: Include diagnostics.h.
7249 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7250 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7251 warning.
7252
d1435379
SM
72532017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7254
7255 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7256 New macro.
7257 * ada-lex.l: Ignore deprecated register warnings.
7258
cc75e0fd
SM
72592017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7260
7261 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7262 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7263
07809eaf
SM
72642017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7265
7266 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7267 its own line.
7268
f076f034
SM
72692017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7270
7271 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7272
0dd5cbc5
AH
72732017-06-23 Alan Hayward <alan.hayward@arm.com>
7274
7275 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7276 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7277 (xtensa_register_read_masked): Likewise.
7278
d4c6ce5b
SDJ
72792017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7280
7281 * common/environ.c (gdb_environ::unset): Update comment.
7282
16892a03
AH
72832017-06-22 Alan Hayward <alan.hayward@arm.com>
7284
7285 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7286 registers.
7287
d7dcbefc
AH
72882017-06-22 Alan Hayward <alan.hayward@arm.com>
7289
7290 * record-full.c (record_full_exec_insn): Use byte_vector.
7291
b30ff123
YQ
72922017-06-22 Yao Qi <yao.qi@linaro.org>
7293
7294 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7295 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7296
4fa847d7
AH
72972017-06-22 Alan Hayward <alan.hayward@arm.com>
7298
7299 * remote.c (cached_reg): Move from here...
7300 * regcache.h (cached_reg): ...to here.
7301 * python/py-unwind.c (struct reg_info): Remove.
7302 (cached_frame_info): Use cached_reg_t.
7303 (pyuw_prev_register): Likewise.
7304 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7305 (pyuw_dealloc_cache): Free all registers.
7306
f4906a9a
PA
73072017-06-22 Pedro Alves <palves@redhat.com>
7308 Simon Marchi <simon.marchi@ericsson.com>
7309
7310 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7311 warning.
7312 * common/diagnostics.h: New file.
7313
b45a1208
PA
73142017-06-22 Pedro Alves <palves@redhat.com>
7315
7316 * common/agent.h: Add include guards.
7317
e4da2c61
SM
73182017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7319
7320 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7321 talk about addressable units instead of bytes.
7322
96160d60
SDJ
73232017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7324
7325 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7326 of '::const_iterator'.
7327
9a6c7d9c
SDJ
73282017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7329
7330 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7331 'unittests/environ-selftests.c'.
7332 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7333 * charset.c (find_charset_names): Declare object 'iconv_env'.
7334 Update code to use 'iconv_env' object. Remove call to
7335 'free_environ'.
7336 * common/environ.c: Include <utility>.
7337 (make_environ): Delete function.
7338 (free_environ): Delete function.
7339 (gdb_environ::clear): New function.
7340 (gdb_environ::operator=): New function.
7341 (gdb_environ::get): Likewise.
7342 (environ_vector): Delete function.
7343 (set_in_environ): Delete function.
7344 (gdb_environ::set): New function.
7345 (unset_in_environ): Delete function.
7346 (gdb_environ::unset): New function.
7347 (gdb_environ::envp): Likewise.
7348 * common/environ.h: Include <vector>.
7349 (struct gdb_environ): Delete; transform into...
7350 (class gdb_environ): ... this class.
7351 (free_environ): Delete prototype.
7352 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7353 environ_vector): Likewise.
7354 * infcmd.c (run_command_1): Update code to call
7355 'envp' from 'gdb_environ' class.
7356 (environment_info): Update code to call methods from 'gdb_environ'
7357 class.
7358 (unset_environment_command): Likewise.
7359 (path_info): Likewise.
7360 (path_command): Likewise.
7361 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7362 (inferior::inferior): Initialize 'environment' using the host's
7363 information.
7364 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7365 Include "environ.h".
7366 (class inferior) <environment>: Change type from 'struct
7367 gdb_environ' to 'gdb_environ'.
7368 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7369 methods from 'gdb_environ' class.
7370 * solib.c (solib_find_1): Likewise
7371 * unittests/environ-selftests.c: New file.
7372
75c554cf
YQ
73732017-06-20 Yao Qi <yao.qi@linaro.org>
7374
7375 * features/i386/i386-linux.xml: Exchange the order of including
7376 32bit-linux.xml and 32bit-sse.xml.
7377 * features/i386/i386-linux.c: Regenerated.
7378
72ddacb7
YQ
73792017-06-20 Yao Qi <yao.qi@linaro.org>
7380
7381 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7382 Delete copy ctor and assignment operator.
7383 (tdesc_type): Likewise.
7384 (tdesc_feature): Likewise.
7385 (tdesc_free_reg): Remove.
7386 (tdesc_create_reg): Use new.
7387 (tdesc_free_type): Remove.
7388 (tdesc_create_vector): Use new.
7389 (tdesc_create_union): Likewise.
7390 (tdesc_create_flags): Likewise.
7391 (tdesc_create_enum): Likewise.
7392 (tdesc_free_feature): Delete.
7393 (free_target_description): Use delete.
7394
325c9fd4
JB
73952017-06-19 John Baldwin <jhb@FreeBSD.org>
7396
7397 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7398 registers.
7399
16b7a719
PA
74002017-06-19 Pedro Alves <palves@redhat.com>
7401
7402 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7403 after gdb::unlinker.
7404
1c8e01c9
SDJ
74052017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7406
7407 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7408 gdb_environ to access an environment variable.
7409
ffce45d2
TP
74102017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7411
7412 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7413 gdb_byte*.
7414
1d4fbac9
SM
74152017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7416
7417 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7418
8465943a
SM
74192017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7420
7421 * configure: Re-generate.
7422 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7423
3e019bdc
SM
74242017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7425
7426 * configure: Re-generate.
7427 * warning.m4: Pass -Werror to compiler when checking for
7428 supported warning flags.
7429
cf0dd6f0
SM
74302017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7431
7432 * Makefile.in (COMPILE.pre): Add "-x c++".
7433
6f98355c
YQ
74342017-06-16 Alan Hayward <alan.hayward@arm.com>
7435 Pedro Alves <palves@redhat.com>
7436 Yao Qi <yao.qi@linaro.org>
7437
7438 * defs.h (RequireLongest): New.
7439 (extract_integer): Declare function template.
7440 (extract_signed_integer): Remove the declaration, but define it
7441 static inline.
7442 (extract_unsigned_integer): Likewise.
7443 (store_integer): Declare function template.
7444 (store_signed_integer): Remove the declaration, but define it
7445 static inline.
7446 (store_unsigned_integer): Likewise.
7447 * findvar.c (extract_integer): New function template.
7448 (extract_signed_integer): Remove.
7449 (extract_unsigned_integer): Remove.
7450 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7451 instantiations.
7452 (store_integer): New function template.
7453 (store_signed_integer): Remove.
7454 (store_unsigned_integer): Remove.
7455 (store_integer): Explicit instantiations.
7456 * regcache.c (regcache_raw_read_signed): Update.
7457 (regcache::raw_read): New function.
7458 (regcache::raw_read_signed): Remove.
7459 (regcache::raw_read_unsigned): Remove.
7460 (regcache_raw_read_unsigned): Update.
7461 (regcache_raw_write_unsigned): Update.
7462 (regcache::raw_write_signed): Remove.
7463 (regcache::raw_write): New function.
7464 (regcache_cooked_read_signed): Update.
7465 (regcache::raw_write_unsigned): Remove.
7466 (regcache::cooked_read_signed): Remove.
7467 (regcache_cooked_read_unsigned): Update.
7468 (regcache::cooked_read_unsigned): Remove.
7469 (regcache_cooked_write_signed): Update.
7470 (regcache_cooked_write_unsigned): Update.
7471 * regcache.h (regcache) <raw_read_signed>: Remove.
7472 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7473 <raw_read, raw_write>: New.
7474 <cooked_read_signed, cooked_write_signed>: Remove.
7475 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7476 <cooked_read, cooked_write>: New.
7477 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7478 (sh64_pseudo_register_write): Update.
7479
a87dc45a
AK
74802017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7481
7482 * arc-tdep.c (arc_disassembler_options): New variable.
7483 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7484 of default_print_insn.
7485 (arc_delayed_print_insn): Set info->section when needed,
7486 use default_print_insn to retrieve a disassembler.
7487
45159d6a
SDJ
74882017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7489
7490 PR gdb/21574
7491 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7492 to mention $SHELL and startup-with-shell.
7493
b46c4cf0
MF
74942017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7495
7496 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7497
6394c606
YQ
74982017-06-14 Yao Qi <yao.qi@linaro.org>
7499
7500 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7501 default_print_insn instead of print_insn_aarch64.
7502 * arm-tdep.c (gdb_print_insn_arm): Call
7503 default_print_insn instead of print_insn_big_arm
7504 and print_insn_little_arm.
7505 * i386-tdep.c (i386_print_insn): Call default_print_insn
7506 instead of print_insn_i386.
7507 * ia64-tdep.c (ia64_print_insn): Call
7508 default_print_insn instead of print_insn_ia64.
7509 * mips-tdep.c (gdb_print_insn_mips): Call
7510 default_print_insn instead of print_insn_big_mips
7511 and print_insn_little_mips.
7512 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7513 instead of print_insn_spu.
7514
d5722aa2
PA
75152017-06-14 Pedro Alves <palves@redhat.com>
7516
7517 * ada-lang.c: Include "common/byte-vector.h".
7518 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7519 * charset.c (wchar_iterator::iterate): Resize the vector instead
7520 of reserving it.
7521 * common/byte-vector.h: Include "common/def-vector.h".
7522 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7523 * cli/cli-dump.c: Include "common/byte-vector.h".
7524 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7525 * common/byte-vector.h: New file.
7526 * common/def-vector.h: New file.
7527 * common/default-init-alloc.h: New file.
7528 * dwarf2loc.c: Include "common/byte-vector.h".
7529 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7530 instead of reserving it.
7531 * dwarf2read.c: Include "common/byte-vector.h".
7532 (data_buf::m_vec): Now a gdb::byte_vector.
7533 * gdb_regex.c: Include "common/def-vector.h".
7534 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7535 * mi/mi-main.c: Include "common/byte-vector.h".
7536 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7537 * printcmd.c: Include "common/byte-vector.h".
7538 (print_scalar_formatted): Use gdb::byte_vector.
7539 * valprint.c: Include "common/byte-vector.h".
7540 (maybe_negate_by_bytes, print_decimal_chars): Use
7541 gdb::byte_vector.
7542
01ec7a27
SM
75432017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7544
7545 * darwin-nat.c: Include "nat/fork-inferior.h".
7546
848d9074
SM
75472017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7548
7549 * configure.nat: Factor out Darwin bits that are not
7550 architecture-specific. Add fork-inferior.o.
7551
3b912944
SM
75522017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7553
7554 * configure.nat: Factor out AIX bits that are not
7555 architecture-specific. Add fork-inferior.o.
7556
55acdf22
AA
75572017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7558
7559 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7560 (read_pieced_value, write_pieced_value): ...here. Reduce to
7561 wrappers that just call rw_pieced_value.
7562
f65e2044
AA
75632017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7564
7565 * dwarf2loc.c (write_pieced_value): When writing the data for a
7566 memory piece, use write_memory_with_notification instead of
7567 write_memory.
7568
23f945bf
AA
75692017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7570
7571 * valops.c (read_value_memory): Change embedded_offset to
7572 represent a bit offset instead of a byte offset.
7573 * value.h (read_value_memory): Adjust comment.
7574
f236533e
AA
75752017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7576
7577 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7578 dest_offset_bits and source_offset_bits.
7579 (write_pieced_value): Likewise.
7580
65d84b76
AA
75812017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7582
7583 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7584 given by DW_OP_bit_piece.
7585 (write_pieced_value): Likewise.
7586
242d31ab
AA
75872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7588
7589 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7590 some other preparations to the places where sufficient information
7591 is available.
7592 (write_pieced_value): Likewise.
7593
03c8af18
AA
75942017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7595
7596 * dwarf2loc.c (bits_to_bytes): New function.
7597 (read_pieced_value): Fix offset calculations for register pieces
7598 on big-endian targets.
7599 (write_pieced_value): Likewise.
7600
840989c1
AA
76012017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7602
7603 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7604 (write_pieced_value): Likewise.
7605
359b19bb
AA
76062017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7607
7608 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7609 transfer the source value's least significant bits, instead of its
7610 lowest-addressed ones. Rename type_len to max_offset.
7611 (read_pieced_value): Mirror above changes to write_pieced_value as
7612 applicable.
7613
07c9ca3b
AA
76142017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7615
7616 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7617 truncate full bytes from dest_offset_bits before using it as an
7618 offset into the buffer.
7619
f1cc9874
AA
76202017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7621
7622 * dwarf2loc.c (write_pieced_value): Include transfer size in
7623 byte-wise check.
7624
cdaac320
AA
76252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7626
7627 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7628 calculation of this_size.
7629
af547a96
AA
76302017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7631
7632 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7633 when targeting a bit-field.
7634 (write_pieced_value): Likewise.
7635
ddd7882a
AA
76362017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7637
7638 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7639 (allocate_piece_closure): Drop addr_size parameter.
7640 (dwarf2_evaluate_loc_desc_full): Adjust call to
7641 allocate_piece_closure.
7642
e9352324
AA
76432017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7644
7645 PR gdb/21226
7646 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7647 the LSB end, independent of endianness.
7648
d5d1163e
AA
76492017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7650
7651 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7652 size capping.
7653
032bb6ea
YQ
76542017-06-13 Yao Qi <yao.qi@linaro.org>
7655
7656 * mips-linux-nat.c: Move include features/mips*-linux.c to
7657 mips-linux-tdep.c.
7658 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7659 to mips-linux-tdep.c.
7660 * mips-linux-tdep.c: Include features/mips*-linux.c
7661 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7662 functions.
7663 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7664 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7665 (tdesc_mips64_dsp_linux): Declare.
7666
f12f6bad
TT
76672017-06-12 Tom Tromey <tom@tromey.com>
7668
7669 * valprint.h (val_print_type_code_int): Remove.
7670 * valprint.c (generic_val_print_int): Always call
7671 val_print_scalar_formatted.
7672 (val_print_type_code_int): Remove.
7673 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7674 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7675 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7676 * ada-valprint.c (ada_val_print_num): Use
7677 val_print_scalar_formatted.
7678
d9109c80
TT
76792017-06-12 Tom Tromey <tom@tromey.com>
7680
7681 * printcmd.c (print_scalar_formatted): Unify the two switches.
7682 Don't convert scalars to LONGEST.
7683
4ac0cb1c
TT
76842017-06-12 Tom Tromey <tom@tromey.com>
7685
7686 PR exp/16225:
7687 * valprint.h (print_decimal_chars): Update.
7688 * valprint.c (maybe_negate_by_bytes): New function.
7689 (print_decimal_chars): Add "is_signed" argument.
7690 * printcmd.c (print_scalar_formatted): Update.
7691
30a25466
TT
76922017-06-12 Tom Tromey <tom@tromey.com>
7693
7694 PR exp/16225:
7695 * valprint.h (print_binary_chars, print_hex_chars): Update.
7696 * valprint.c (val_print_type_code_int): Update.
7697 (print_binary_chars): Add "zero_pad" argument.
7698 (emit_octal_digit): New function.
7699 (print_octal_chars): Don't zero-pad.
7700 (print_decimal_chars): Likewise.
7701 (print_hex_chars): Add "zero_pad" argument.
7702 * sh64-tdep.c (sh64_do_fp_register): Update.
7703 * regcache.c (regcache::dump): Update.
7704 * printcmd.c (print_scalar_formatted): Update.
7705 * infcmd.c (default_print_one_register_info): Update.
7706
b3464d03
PA
77072017-06-12 Pedro Alves <palves@redhat.com>
7708 Alan Hayward <alan.hayward@arm.com>
7709
7710 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7711 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7712 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7713 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7714 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7715
4b76cda9
PA
77162017-06-12 Pedro Alves <palves@redhat.com>
7717
7718 * dwarf2read.c (mapped_symtab::data): Now a vector of
7719 symtab_index_entry instead of vector of
7720 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7721 whether an element's name is NULL instead of checking whether the
7722 element itself is NULL.
7723 (find_slot): Change return type. Adjust.
7724 (hash_expand, , add_index_entry, uniquify_cu_indices)
7725 (write_hash_table): Adjust.
7726
e8f8bcb3
PA
77272017-06-12 Pedro Alves <palves@redhat.com>
7728
7729 * dwarf2read.c (recursively_count_psymbols): New function.
7730 (write_psymtabs_to_index): Call it to compute number of psyms and
7731 pass estimate size of psyms_seen to unordered_set's ctor.
7732
70a1152b
PA
77332017-06-12 Pedro Alves <palves@redhat.com>
7734
7735 * dwarf2read.c (write_hash_table): Check if key already exists
7736 before emplacing.
7737
c2f134ac
PA
77382017-06-12 Pedro Alves <palves@redhat.com>
7739
7740 * dwarf2read.c (data_buf::append_space): Rename to...
7741 (data_buf::grow): ... this, and make private. Adjust all callers.
7742 (data_buf::append_uint): New method.
7743 (add_address_entry, write_one_signatured_type)
7744 (write_psymtabs_to_index): Use it.
7745
a81e6d4d
PA
77462017-06-12 Pedro Alves <palves@redhat.com>
7747
7748 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
7749 (file_write (FILE *, const std::vector<Elem>&)): Delete.
7750 (data_buf::file_write): Call ::fwrite directly.
7751
6fd931f2
PA
77522017-06-12 Pedro Alves <palves@redhat.com>
7753
7754 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
7755 std::vector::erase.
7756
bc8f2430
JK
77572017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7758
7759 Code cleanup: C++ify .gdb_index producer.
7760 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
7761 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
7762 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
7763 (create_strtab, add_string): Remove.
7764 (file_write, data_buf): New.
7765 (struct symtab_index_entry): Use std::vector for cu_indices.
7766 (struct mapped_symtab): Use std::vector for data.
7767 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
7768 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
7769 Remove.
7770 (find_slot): Change return type. Update it to the new data structures.
7771 (hash_expand, add_index_entry): Update it to the new data structures.
7772 (offset_type_compare): Remove.
7773 (uniquify_cu_indices): Update it to the new data structures.
7774 (c_str_view, c_str_view_hasher, vector_hasher): New.
7775 (add_indices_to_cpool): Remove.
7776 (write_hash_table): Update it to the new data structures.
7777 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
7778 (eq_psymtab_cu_index): Remove.
7779 (psym_index_map): New typedef.
7780 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
7781 reference and std::unordered_map for cu_index_htab.
7782 (add_address_entry, add_address_entry_worker, write_address_map)
7783 (write_psymbols): Update it to the new data structures.
7784 (write_obstack): Remove.
7785 (struct signatured_type_index_data): Change types_list to a data_buf
7786 reference and psyms_seen to a std::unordered_set reference.
7787 (write_one_signatured_type, recursively_write_psymbols)
7788 (write_psymtabs_to_index): Update it to the new data structures.
7789
c4dcb155
SM
77902017-06-11 Simon Marchi <simon.marchi@ericsson.com>
7791
7792 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
7793 separate-debug-file commands.
7794 * symfile.h (separate_debug_file_debug): New global.
7795 * symfile.c (separate_debug_file_debug): New global.
7796 (separate_debug_file_exists, find_separate_debug_file): Add
7797 debug output.
7798 (_initialize_symfile): Add "set debug separate-debug-file"
7799 command.
7800 * build-id.c (build_id_to_debug_bfd,
7801 find_separate_debug_file_by_buildid): Add debug output.
7802
6d45d4b4
SM
78032017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7804
7805 * gdbarch.sh (displaced_step_free_closure): Remove.
7806 * gdbarch.h, gdbarch.c: Re-generate.
7807 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
7808 displaced_step_free_closure.
7809 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7810 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7811 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7812 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7813 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7814 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7815 * arch-utils.h (simple_displaced_step_free_closure): Remove.
7816 * arch-utils.c (simple_displaced_step_free_closure): Remove.
7817 * infrun.c (displaced_step_clear): Call xfree instead of
7818 gdbarch_displaced_step_free_closure.
7819
2f91880f
SDJ
78202017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
7821
7822 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
7823 NULL".
7824
b8b6e72f
AH
78252017-06-08 Alan Hayward <alan.hayward@arm.com>
7826
7827 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
7828 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
7829 (mn10300_push_dummy_call): Likewise.
7830
5369082e
AH
78312017-06-08 Alan Hayward <alan.hayward@arm.com>
7832
7833 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
7834
ff4ca5ac
AH
78352017-06-08 Alan Hayward <alan.hayward@arm.com>
7836
7837 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
7838
aefd8b33
SDJ
78392017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7840
7841 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
7842 able to start inferiors using a shell.
7843 (New remote packets): Announce new packet "QStartupWithShell".
7844 * remote.c: Add PACKET_QStartupWithShell.
7845 (extended_remote_create_inferior): Handle new
7846 PACKET_QStartupWithShell.
7847 (remote_protocol_features) <QStartupWithShell>: New entry for
7848 PACKET_QStartupWithShell.
7849 (_initialize_remote): Call "add_packet_config_cmd" for
7850 QStartupShell.
7851
2090129c
SDJ
78522017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7853 Pedro Alves <palves@redhat.com>
7854
7855 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
7856 and "nat/fork-inferior.h".
7857 * common/common-inferior.h: New file, with contents from
7858 "gdb/inferior.h".
7859 * commom/common-utils.c: Include "common-utils.h".
7860 (stringify_argv): New function.
7861 * common/common-utils.h (stringify_argv): New prototype.
7862 * configure.nat: Add "fork-inferior.o" as a dependency for
7863 "*linux*", "fbsd*" and "nbsd*" hosts.
7864 * corefile.c (get_exec_file): Update comment.
7865 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
7866 instead of "startup_inferior".
7867 (darwin_create_inferior): Call "add_thread_silent" after
7868 "fork_inferior".
7869 * fork-child.c: Cleanup unnecessary includes.
7870 (SHELL_FILE): Move to "common/common-fork-child.c".
7871 (environ): Likewise.
7872 (exec_wrapper): Initialize.
7873 (get_exec_wrapper): New function.
7874 (breakup_args): Move to "common/common-fork-child.c"; rename to
7875 "breakup_args_for_exec".
7876 (escape_bang_in_quoted_argument): Move to
7877 "common/common-fork-child.c".
7878 (saved_ui): New variable.
7879 (prefork_hook): New function.
7880 (postfork_hook): Likewise.
7881 (postfork_child_hook): Likewise.
7882 (gdb_startup_inferior): Likewise.
7883 (fork_inferior): Move to "common/common-fork-child.c". Update
7884 function to support gdbserver.
7885 (startup_inferior): Likewise.
7886 * gdbcore.h (get_exec_file): Remove declaration.
7887 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
7888 instead of "startup_inferior". Call "add_thread_silent" after
7889 "fork_inferior".
7890 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
7891 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
7892 instead of "startup_inferior". Call "add_thread_silent" after
7893 "fork_inferior".
7894 * inferior.h: Include "common-inferior.h".
7895 (trace_start_error): Move to "common/common-utils.h".
7896 (trace_start_error_with_name): Likewise.
7897 (fork_inferior): Move prototype to "nat/fork-inferior.h".
7898 (startup_inferior): Likewise.
7899 (gdb_startup_inferior): New prototype.
7900 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
7901 * nat/fork-inferior.h: New file.
7902 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
7903 instead of "startup_inferior". Call "add_thread_silent" after
7904 "fork_inferior".
7905 * target.h (target_terminal_init): Move prototype to
7906 "target/target.h".
7907 (target_terminal_inferior): Likewise.
7908 (target_terminal_ours): Likewise.
7909 * target/target.h (target_terminal_init): New prototype, moved
7910 from "target.h".
7911 (target_terminal_inferior): Likewise.
7912 (target_terminal_ours): Likewise.
7913 * utils.c (gdb_flush_out_err): New function.
7914
043a4934
SDJ
79152017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7916
7917 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
7918 * common/common-gdbthread.h: New file, with parts from
7919 "gdb/gdbthread.h".
7920 * gdbthread.h: Include "common-gdbthread.h".
7921 (switch_to_thread): Moved to "common/common-gdbthread.h".
7922
15652511
SDJ
79232017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7924
7925 * Makefile.in (SFILES): Add "common/job-control.c".
7926 (HFILES_NO_SRCDIR): Add "common/job-control.h".
7927 (COMMON_OBS): Add "job-control.o".
7928 * common/job-control.c: New file, with contents from
7929 "gdb/inflow.c".
7930 * common/job-control.h: New file, with contents from "terminal.h".
7931 * fork-child.c: Include "job-control.h".
7932 * inflow.c: Include "job-control.h".
7933 (gdb_setpgid): Move to "common/common-inflow.c".
7934 (_initialize_inflow): Move setting of "job_control" to
7935 "handle_job_control".
7936 * terminal.h (job_control): Moved to "common/common-terminal.h".
7937 (gdb_setpgid): Likewise.
7938 * top.c: Include "job_control.h".
7939 * utils.c: Likewise.
7940 (job_control): Moved to "job-control.c".
7941
2d7cc5c7
PA
79422017-06-07 Pedro Alves <palves@redhat.com>
7943
7944 * Makefile.in (SFILES): Add gdb_regex.c.
7945 (COMMON_OBS): Add gdb_regex.o.
7946 * ada-lang.c (ada_add_standard_exceptions)
7947 (ada_add_exceptions_from_frame, name_matches_regex)
7948 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
7949 parameter type to compiled_regex. Adjust.
7950 (ada_exceptions_list): Use compiled_regex.
7951 * break-catch-throw.c (exception_catchpoint::pattern): Now a
7952 std::unique_ptr<compiled_regex>.
7953 (exception_catchpoint::~exception_catchpoint): Remove regfree
7954 call.
7955 (check_status_exception_catchpoint): Adjust to use compiled_regex.
7956 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
7957 * breakpoint.c (solib_catchpoint::compiled): Now a
7958 std::unique_ptr<compiled_regex>.
7959 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
7960 (check_status_catch_solib): Adjust to use compiled_regex.
7961 (add_solib_catchpoint): Adjust to use compiled_regex.
7962 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
7963 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
7964 compiled_regex reference. Adjust to use it.
7965 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
7966 declaration. Include "gdb_regex.h".
7967 (apropos_cmd): Change regex parameter to compiled_regex reference.
7968 * gdb_regex.c: New file.
7969 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
7970 declarations.
7971 (class compiled_regex): New.
7972 * linux-tdep.c: Include "common/gdb_optional.h".
7973 (struct mapping_regexes): New, factored out from
7974 mapping_is_anonymous_p, and adjusted to use compiled_regex.
7975 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
7976 gdb::optional and remove cleanups. Adjust to compiled_regex.
7977 * probe.c: Include "common/gdb_optional.h".
7978 (collect_probes): Use compiled_regex and gdb::optional and remove
7979 cleanups.
7980 * skip.c: Include "common/gdb_optional.h".
7981 (skiplist_entry::compiled_function_regexp): Now a
7982 gdb::optional<compiled_regex>.
7983 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
7984 (free_skiplist_entry): Remove regfree call.
7985 (compile_skip_regexp, skip_rfunction_p): Adjust to use
7986 compiled_regex and gdb::optional.
7987 * symtab.c: Include "common/gdb_optional.h".
7988 (search_symbols): Use compiled_regex and gdb::optional.
7989 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
7990 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
7991 to gdb_regex.c.
7992
50d6adef
AH
79932017-06-07 Alan Hayward <alan.hayward@arm.com>
7994
7995 * regcache.c (regcache::save): Avoid buffer use.
7996 (regcache::dump): Likewise.
7997
4a8a33c8
AH
79982017-06-07 Alan Hayward <alan.hayward@arm.com>
7999
8000 * sh-tdep.c (sh_pseudo_register_read): Remove
8001 MAX_REGISTER_SIZE.
8002 (sh_pseudo_register_write): Likewise.
8003 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8004 (sh64_pseudo_register_write): Likewise
8005
d1be909e
AH
80062017-06-07 Alan Hayward <alan.hayward@arm.com>
8007
8008 * aarch64-tdep.c (aarch64_store_return_value): Use
8009 V_REGISTER_SIZE.
8010 (aarch64_pseudo_read_value): Likewise.
8011 (aarch64_pseudo_write): Likewise.
8012
f4a65042
YQ
80132017-06-06 Yao Qi <yao.qi@linaro.org>
8014
8015 * regformats/regdef.h (set_register_cache): Remove the
8016 declaration.
8017
9f7fb0aa
AH
80182017-06-06 Alan Hayward <alan.hayward@arm.com>
8019
8020 * frame.c (frame_unwind_register_signed): Use
8021 frame_unwind_register_value.
8022
e1e01040
PA
80232017-06-06 Pedro Alves <palves@redhat.com>
8024
8025 PR breakpoints/21553
8026 * breakpoint.c (create_breakpoints_sal_default)
8027 (init_breakpoint_sal, create_breakpoint_sal): Use
8028 gdb::unique_xmalloc_ptr for string parameters.
8029 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8030 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8031 (base_breakpoint_create_breakpoints_sal)
8032 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8033 (strace_marker_create_breakpoints_sal)
8034 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8035 string parameters.
8036 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8037 gdb::unique_xmalloc_ptr for string parameters.
8038 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8039 parameters.
8040
fbe654c8
AH
80412017-06-06 Alan Hayward <alan.hayward@arm.com>
8042
8043 * alpha-tdep.c (alpha_register_to_value): Use
8044 get_frame_register_value.
8045 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8046
ae0d01d6
AH
80472017-06-06 Alan Hayward <alan.hayward@arm.com>
8048
8049 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8050 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8051 (ia64_value_to_register): Likewise.
8052 (ia64_extract_return_value): Likewise.
8053 (ia64_store_return_value): Likewise.
8054 (ia64_push_dummy_call): Likewise.
8055
49cf576c
JB
80562017-06-04 Joel Brobecker <brobecker@adacore.com>
8057
8058 GDB 8.0 released.
8059
26b6a6ab
SM
80602017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8061
8062 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8063
22827c51
SM
80642017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8065
8066 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8067 parameter.
8068 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8069
0e05cf3a
SM
80702017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8071
8072 * event-loop.c (poll_timers): Unallocate timer using delete
8073 instead of xfree.
8074
c1fc2657
SM
80752017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8076
8077 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8078 (struct breakpoint) <~breakpoint>: New.
8079 (struct watchpoint): Inherit from breakpoint.
8080 <~watchpoint>: New.
8081 <base>: Remove.
8082 (struct tracepoint): Inherit from breakpoint.
8083 <base>: Remove.
8084 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8085 (struct longjmp_breakpoint): Inherit from breakpoint.
8086 <~longjmp_breakpoint>: New.
8087 <base>: Remove.
8088 (new_breakpoint_from_type): Remove casts.
8089 (watchpoint_in_thread_scope): Remove reference to base field.
8090 (watchpoint_del_at_next_stop): Likewise.
8091 (update_watchpoint): Likewise.
8092 (watchpoint_check): Likewise.
8093 (bpstat_check_watchpoint): Likewise.
8094 (set_longjmp_breakpoint): Likewise.
8095 (struct fork_catchpoint): Inherit from breakpoint.
8096 <base>: Remove.
8097 (struct solib_catchpoint): Inherit from breakpoint.
8098 <~solib_catchpoint>: New.
8099 <base>: Remove.
8100 (dtor_catch_solib): Change to ...
8101 (solib_catchpoint::~solib_catchpoint): ... this.
8102 (breakpoint_hit_catch_solib): Remove reference to base field.
8103 (add_solib_catchpoint): Likewise.
8104 (create_fork_vfork_event_catchpoint): Likewise.
8105 (struct exec_catchpoint): Inherit from breakpoint.
8106 <~exec_catchpoint>: New.
8107 <base>: Remove.
8108 (dtor_catch_exec): Change to ...
8109 (exec_catchpoint::~exec_catchpoint): ... this.
8110 (dtor_watchpoint): Change to ...
8111 (watchpoint::~watchpoint): ... this.
8112 (watch_command_1): Remove reference to base field.
8113 (catch_exec_command_1): Likewise.
8114 (base_breakpoint_dtor): Change to ...
8115 (breakpoint::~breakpoint): ... this.
8116 (base_breakpoint_ops): Remove dtor field value.
8117 (longjmp_bkpt_dtor): Change to ...
8118 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8119 (strace_marker_create_breakpoints_sal): Remove reference to base
8120 field.
8121 (delete_breakpoint): Don't manually call breakpoint destructor.
8122 (create_tracepoint_from_upload): Remove reference to base field.
8123 (trace_pass_set_count): Likewise.
8124 (initialize_breakpoint_ops): Don't initialize
8125 momentary_breakpoint_ops, don't set dtors.
8126 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8127 <~ada_catchpoint>: New.
8128 <base>: Remove.
8129 (create_excep_cond_exprs): Remove reference to base field.
8130 (dtor_exception): Change to ...
8131 (ada_catchpoint::~ada_catchpoint): ... this.
8132 (dtor_catch_exception): Remove.
8133 (dtor_catch_exception_unhandled): Remove.
8134 (dtor_catch_assert): Remove.
8135 (create_ada_exception_catchpoint): Remove reference to base
8136 field.
8137 (initialize_ada_catchpoint_ops): Don't set dtors.
8138 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8139 breakpoint.
8140 <~signal_catchpoint>: New.
8141 <base>: Remove.
8142 (signal_catchpoint_dtor): Change to ...
8143 (signal_catchpoint::~signal_catchpoint): ... this.
8144 (create_signal_catchpoint): Remove reference to base field.
8145 (initialize_signal_catchpoint_ops): Don't set dtor.
8146 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8147 from breakpoint.
8148 <~syscall_catchpoint>: New.
8149 <base>: Remove.
8150 (dtor_catch_syscall): Change to ...
8151 (syscall_catchpoint::~syscall_catchpoint): ... this.
8152 (create_syscall_event_catchpoint): Remove reference to base
8153 field.
8154 (initialize_syscall_catchpoint_ops): Don't set dtor.
8155 * break-catch-throw.c (struct exception_catchpoint): Inherit
8156 from breakpoint.
8157 <~exception_catchpoint>: New.
8158 <base>: Remove.
8159 (dtor_exception_catchpoint): Change to ...
8160 (exception_catchpoint::~exception_catchpoint): ... this.
8161 (handle_gnu_v3_exceptions): Remove reference to base field.
8162 (initialize_throw_catchpoint_ops): Don't set dtor.
8163 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8164 field.
8165 * remote.c (remote_get_tracepoint_status): Likewise.
8166 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8167 * tracefile.c (tracefile_fetch_registers): Likewise.
8168 * tracepoint.c (actions_command): Likewise.
8169 (validate_actionline): Likewise.
8170 (tfind_1): Likewise.
8171 (get_traceframe_location): Likewise.
8172 (find_matching_tracepoint_location): Likewise.
8173 (parse_tracepoint_status): Likewise.
8174 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8175
3b0871f4
SM
81762017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8177
8178 * breakpoint.c (struct longjmp_breakpoint): New struct.
8179 (is_tracepoint_type): Change return type to bool.
8180 (is_longjmp_type): New function.
8181 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8182 (set_raw_breakpoint_without_location): Use
8183 new_breakpoint_from_type.
8184 (set_raw_breakpoint): Likewise.
8185
a5e364af
SM
81862017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8187
8188 * breakpoint.c (new_breakpoint_from_type): New function.
8189 (create_breakpoint_sal): Use new_breakpoint_from_type and
8190 unique_ptr.
8191 (create_breakpoint): Likewise.
8192
ae3b3f34
SM
81932017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8194
8195 * memattr.c (mem_info_command): Rename to ...
8196 (info_mem_command): ... this.
8197 (mem_enable_command): Rename to ...
8198 (enable_mem_command): ... this.
8199 (mem_disable_command): Rename to ...
8200 (disable_mem_command): ... this.
8201 (mem_delete_command): Rename to ...
8202 (delete_mem_command): ... this.
8203 (_initialize_mem): Adjust function names.
8204
13ace077
MM
82052017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8206
8207 * btrace.c (handle_pt_insn_events): New.
8208 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8209 STATUS. Split into this and ...
8210 (handle_pt_insn_event_flags): ... this.
8211
c56ccc05
MM
82122017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8213
8214 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8215 and struct pt_insn.resynced.
8216 * configure: Regenerated.
8217 * config.in: Regenerated.
8218
08c3f6d2
TW
82192017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8220
8221 * btrace.c (ftrace_find_call_by_number): New function.
8222 (ftrace_new_function): Store objects, not pointers.
8223 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8224 ftrace_new_gap, ftrace_update_function,
8225 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8226 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8227 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8228 btrace_ends_with_single_insn, btrace_call_get): Account for
8229 btrace_thread_info::functions now storing objects.
8230 * btrace.h (struct btrace_thread_info): Add constructor.
8231 (struct btrace_thread_info) <functions>: Make std::vector.
8232 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8233 Initialize with default values.
8234 * record-btrace.c (record_btrace_frame_sniffer): Account for
8235 btrace_thread_info::functions now storing objects.
8236
8ffd39f2
TW
82372017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8238
8239 * btrace.c: Remove typedef bfun_s.
8240 (ftrace_new_gap): Directly add gaps to the list of gaps.
8241 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8242 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8243 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8244 instead of gdb VEC.
8245
4aeb0dfc
TW
82462017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8247
8248 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8249 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8250 with btrace_thread_info::next_segment and
8251 btrace_thread_info::prev_segment.
8252 * btrace.h: Remove struct btrace_func_link.
8253 (struct btrace_function): Replace pair of function segment pointers
8254 with pair of indices.
8255 * python/py-record-btrace.c (btpy_call_prev_sibling,
8256 btpy_call_next_sibling): Replace references to
8257 btrace_thread_info::segment with btrace_thread_info::next_segment and
8258 btrace_thread_info::prev_segment.
8259 * record-btrace.c (record_btrace_frame_this_id): Use
8260 btrace_find_call_by_number.
8261
eb8f2b9c
TW
82622017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8263
8264 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8265 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8266 btrace_insn_next, btrace_insn_prev): Remove references to
8267 btrace_thread_info::flow.
8268 * btrace.h (struct btrace_function): Remove FLOW.
8269
42bfe59e
TW
82702017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8271
8272 * btrace.c (ftrace_find_call_by_number): New function.
8273 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8274 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8275 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8276 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8277 index.
8278 * btrace.h (struct btrace_function): Turn UP into an index.
8279 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8280 as an index.
8281 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8282 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8283 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8284
b54b03bd
TW
82852017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8286
8287 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8288 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8289 ftrace_update_function, ftrace_compute_global_level_offset,
8290 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8291 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8292 btrace_insn_end, btrace_is_empty): Remove references to
8293 btrace_thread_info::begin and btrace_thread_info::end.
8294 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8295 (struct btrace_thread_info) <functions>: Adjust comment.
8296 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8297 btrace_thread_info::begin.
8298
8286623c
TW
82992017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8300
8301 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8302 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8303 ftrace_update_function): Remove arguments that implicitly were always
8304 BTINFO->END.
8305 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8306 Don't pass BTINFO->END.
8307
a0f1b963
TW
83082017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8309
8310 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8311 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8312 btrace_find_insn_by_number): Replace function segment pointer with
8313 index.
8314 (btrace_insn_cmp): Simplify.
8315 * btrace.h: (struct btrace_insn_iterator) Rename index to
8316 insn_index. Replace function segment pointer with index into function
8317 segment vector.
8318 * record-btrace.c (record_btrace_call_history): Replace function
8319 segment pointer use with index.
8320 (record_btrace_frame_sniffer): Retrieve function call segment through
8321 vector.
8322 (record_btrace_set_replay): Remove defunc't safety check.
8323
f158f208
TW
83242017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8325
8326 * btrace.c (btrace_ends_with_single_insn): New function.
8327 (btrace_call_get, btrace_call_number, btrace_call_begin,
8328 btrace_call_end, btrace_call_next, btrace_call_prev,
8329 btrace_find_call_by_number): Use index into call segment vector
8330 instead of pointer.
8331 (btrace_call_cmp): Simplify.
8332 * btrace.h (struct btrace_call_iterator): Replace function call segment
8333 pointer with index into vector.
8334 * record-btrace.c (record_btrace_call_history): Use index instead of
8335 pointer.
8336
521103fd
TW
83372017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8338
8339 * btrace.c (btrace_insn_begin, btrace_insn_end,
8340 btrace_find_insn_by_number): Add btinfo to iterator.
8341 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8342
17b89b34
TW
83432017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8344
8345 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8346 and save pointers directly.
8347 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8348 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8349 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8350 changed signature of functions.
8351 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8352 (btrace_fetch): Remove code that adds btrace_function pointers to
8353 vector of btrace_functions.
8354 (btrace_clear): Simplify freeing vector of btrace_functions.
8355
2b51eddc
TW
83562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8357
8358 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8359 Replace VEC_* with std::vector functions.
8360 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8361 (struct btrace_thread_info)<functions>: Change type to std::vector.
8362
db6be0d5
SM
83632017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8364
8365 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8366 "Removed targets and native configurations" up. Merge duplicate
8367 "New commands" sub-sections. Add "New options" sub-sections.
8368
b057297a
AH
83692017-05-26 Alan Hayward <alan.hayward@arm.com>
8370
8371 * defs.h (copy_integer_to_size): New declaration.
8372 * findvar.c (copy_integer_to_size): New function.
8373 (do_cint_test): New selftest function.
8374 (copy_integer_to_size_test): Likewise.
8375 (_initialize_findvar): Likewise.
8376 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8377 (mips_fbsd_collect_reg): Use raw_collect_integer.
8378 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8379 (mips64_fill_gregset): Use raw_collect_integer
8380 (mips64_fill_fpregset): Use raw_supply_integer.
8381 * regcache.c (regcache::raw_supply_integer): New function.
8382 (regcache::raw_collect_integer): Likewise.
8383 * regcache.h: (regcache::raw_supply_integer): New declaration.
8384 (regcache::raw_collect_integer): Likewise.
8385
b77b02a5
YQ
83862017-05-24 Yao Qi <yao.qi@linaro.org>
8387
8388 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8389 (COMMON_OBS): Add gdbarch-selftests.o.
8390 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8391 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8392 * gdbarch-selftests.c: New file.
8393 * regcache.h (regcache) <~regcache>: Mark it virtual if
8394 GDB_SELF_TEST.
8395 <raw_write>: Likewise.
8396
e521e87e
YQ
83972017-05-24 Yao Qi <yao.qi@linaro.org>
8398
8399 * regcache.c (current_regcache): Change it to
8400 regcache::current_regcache.
8401 (regcache_observer_target_changed): Update.
8402 (regcache_thread_ptid_changed): Make it a regcache static
8403 method.
8404 (regcache_thread_ptid_changed): Update.
8405 (class regcache_access): New.
8406 (current_regcache_test): Update.
8407 (_initialize_regcache): Update.
8408 * regcache.h: Include forward_list.
8409 (regcache): Declare regcache_thread_ptid_changed and declare
8410 registers_changed_ptid as friend.
8411
d8e07dda
YQ
84122017-05-24 Yao Qi <yao.qi@linaro.org>
8413
8414 * i387-tdep.c (i387_register_to_value): Use register_size
8415 instead of TYPE_LENGTH.
8416 * m68k-tdep.c (m68k_register_to_value): Likewise.
8417
8c8f9122
YQ
84182017-05-24 Yao Qi <yao.qi@linaro.org>
8419
8420 * i387-tdep.c (i387_convert_register_p): Return false if type
8421 code isn't TYPE_CODE_FLT.
8422
68fce50f
YQ
84232017-05-24 Yao Qi <yao.qi@linaro.org>
8424
8425 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8426 length is 4.
8427 (alpha_register_to_value): Remove type length check.
8428 (alpha_value_to_register): Likewise.
8429
88954b49
YQ
84302017-05-24 Yao Qi <yao.qi@linaro.org>
8431
8432 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8433 TYPE_CODE_FLT.
8434
e3ec9b69
YQ
84352017-05-24 Yao Qi <yao.qi@linaro.org>
8436
8437 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8438 TYPE_CODE_FLT or not.
8439
cdd238da
YQ
84402017-05-24 Yao Qi <yao.qi@linaro.org>
8441
8442 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8443 * avr-tdep.c (avr_gdbarch_init): Likewise.
8444 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8445 * cris-tdep.c (cris_gdbarch_init): Likewise.
8446 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8447 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8448 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8450 * mep-tdep.c (mep_gdbarch_init): Likewise.
8451 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8452 * mips-tdep.c (mips_gdbarch_init): Likewise.
8453 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8454 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8455 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8456 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8457 * v850-tdep.c (v850_gdbarch_init): Likewise.
8458
7a3929c4
YQ
84592017-05-24 Yao Qi <yao.qi@linaro.org>
8460
8461 * selftest-arch.c (tests_with_arch): Call registers_changed
8462 and reinit_frame_cache.
8463 * selftest.c (run_self_tests): Likewise.
8464
f4985dba
YQ
84652017-05-24 Yao Qi <yao.qi@linaro.org>
8466
8467 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8468 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8469
ab20fa4a
YQ
84702017-05-24 Yao Qi <yao.qi@linaro.org>
8471
8472 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8473 set_gdbarch_print_insn.
8474
f532ab94
YQ
84752017-05-24 Yao Qi <yao.qi@linaro.org>
8476
8477 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8478 set_gdbarch_print_insn.
8479
39503f82
YQ
84802017-05-24 Yao Qi <yao.qi@linaro.org>
8481
8482 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8483 set_gdbarch_print_insn.
8484 * arc-tdep.c (arc_gdbarch_init): Likewise.
8485 * arch-utils.c: include dis-asm.h.
8486 (default_print_insn): New function.
8487 * arch-utils.h (default_print_insn): Declare.
8488 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8489 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8490 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8491 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8492 * frv-tdep.c (frv_gdbarch_init): Likewise.
8493 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8494 * gdbarch.sh (print_insn): Use default_print_insn.
8495 * gdbarch.c: Regenerated.
8496 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8497 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8498 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8499 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8500 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8501 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8502 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8503 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8504 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8505 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8506 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8507 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8508 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8509 * mt-tdep.c (mt_gdbarch_init): Likewise.
8510 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8511 * nios2-tdep.c (nios2_print_insn): Remove.
8512 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8513 * rx-tdep.c (rx_gdbarch_init): Likewise.
8514 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8515 * score-tdep.c (score_print_insn): Remove.
8516 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8517 * sh-tdep.c (sh_gdbarch_init): Likewise.
8518 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8519 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8520 * tic6x-tdep.c (tic6x_print_insn): Remove.
8521 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8522 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8523 * v850-tdep.c (v850_gdbarch_init): Likewise.
8524 * vax-tdep.c (vax_gdbarch_init): Likewise.
8525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8526 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8527
f7241d4f
JB
85282017-05-23 John Baldwin <jhb@FreeBSD.org>
8529
8530 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8531 (MIPS_FP0_REGNUM): Remove.
8532 (MIPS_FSR_REGNUM): Remove.
8533 (mips_fbsd_supply_fpregs): Use mips_regnum.
8534 (mips_fbsd_supply_gregs): Likewise.
8535 (mips_fbsd_collect_fpregs): Likewise.
8536 (mips_fbsd_collect_gregs): Likewise.
8537
d489d81d
JB
85382017-05-23 John Baldwin <jhb@FreeBSD.org>
8539
8540 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8541 (getpfpregs_supplies): New function.
8542 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8543 getfpregs_supplies.
8544 (mips_fbsd_store_inferior_registers): Likewise.
8545
e11b3cdc
PA
85462017-05-22 Pedro Alves <palves@redhat.com>
8547
8548 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8549 maintainer.
8550
0f068fb5
AH
85512017-05-22 Alan Hayward <alan.hayward@arm.com>
8552
8553 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8554 (store_register): Likewise.
8555 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8556 (get_decimal_float_return_value): Likewise.
8557 (do_ppc_sysv_return_value): Likewise.
8558 (ppc64_sysv_abi_push_integer): Likewise.
8559 (ppc64_sysv_abi_push_freg): Likewise.
8560 (ppc64_sysv_abi_return_value_base): Likewise.
8561 (ppc64_sysv_abi_return_value): Likewise.
8562 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8563 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8564 * rs6000-nat.c: Likewise.
8565 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8566 (rs6000_value_to_register): Likewise.
8567 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8568
e6cf65f2
TT
85692017-05-21 Tom Tromey <tom@tromey.com>
8570
8571 PR rust/21466:
8572 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8573 arrays as "[T]", not "[T; ]".
8574
43cc5389
TT
85752017-05-19 Tom Tromey <tom@tromey.com>
8576
8577 PR rust/21484:
8578 * rust-lang.c (exp_descriptor_rust): New function.
8579 (rust_language_defn): Use it.
8580 * p-lang.c (pascal_language_defn): Update.
8581 * opencl-lang.c (opencl_language_defn): Update.
8582 * objc-lang.c (objc_language_defn): Update.
8583 * m2-lang.c (m2_language_defn): Update.
8584 * language.h (struct language_defn)
8585 <la_watch_location_expression>: New member.
8586 * language.c (unknown_language_defn, auto_language_defn)
8587 (local_language_defn): Update.
8588 * go-lang.c (go_language_defn): Update.
8589 * f-lang.c (f_language_defn): Update.
8590 * d-lang.c (d_language_defn): Update.
8591 * c-lang.h (c_watch_location_expression): Declare.
8592 * c-lang.c (c_watch_location_expression): New function.
8593 (c_language_defn, cplus_language_defn, asm_language_defn)
8594 (minimal_language_defn): Use it.
8595 * breakpoint.c (watch_command_1): Call
8596 la_watch_location_expression.
8597 * ada-lang.c (ada_language_defn): Update.
8598
7a6e7fcc
RO
85992017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8600
6e7e1744
RO
8601 PR tui/21482
8602 * gdb_curses.h (NOMACROS): Define.
8603 (NCURSES_NOMACROS): Define.
8604
86052017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8606
8607 PR tui/21482
7a6e7fcc
RO
8608 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8609 arg to char *.
8610 * tui/tui-wingeneral.c (box_win): Likewise.
8611 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8612 (tui_show_source_line): Likewise.
8613 (tui_show_exec_info_content): Likewise.
8614
1933fd8e
VM
86152017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8616
8617 * sparc-tdep.c (sparc_structure_return_p)
8618 (sparc_arg_on_registers_p): New functions.
8619 (sparc32_store_arguments): Use them.
8620 * sparc64-tdep.c (sparc64_16_byte_align_p)
8621 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8622 Handle TYPE_CODE_ARRAY.
8623
21873064
YQ
86242017-05-17 Yao Qi <yao.qi@linaro.org>
8625
8626 * cli/cli-decode.c (add_alias_cmd): New function.
8627 * command.h (add_alias_cmd): Declare.
8628 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8629 instead call add_alias_cmd.
8630
2b351b19
PA
86312017-05-17 Pedro Alves <palves@redhat.com>
8632
8633 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8634 (nat_makefile_frag): ... this. All references updated.
8635 * configure.ac: Likewise.
8636 * configure.nat: Likewise. Enhance comments.
8637 * configure: Regenerate.
8638
5f2ad7a3
RO
86392017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8640
8641 * procfs.c (procfs_create_inferior): Change prototype to match
8642 definition.
8643
adf3dde5
EZ
86442017-05-13 Eli Zaretskii <eliz@gnu.org>
8645
8646 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8647 C++ compiler warning.
8648
6830f270
TT
86492017-05-12 Tom Tromey <tom@tromey.com>
8650
8651 PR rust/21483:
8652 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8653 recurse, just call value_struct_elt directly.
8654
68f2f2e3
TT
86552017-05-12 Tom Tromey <tom@tromey.com>
8656
8657 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8658 OP_RUST_ARRAY>: Fix.
8659
256afbc2
TT
86602017-05-12 Tom Tromey <tom@tromey.com>
8661
8662 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8663
94bb8dfe
YQ
86642017-05-09 Yao Qi <yao.qi@linaro.org>
8665
8666 * regcache.c: Include <forward_list>.
8667 (struct regcache_list): Remove.
8668 (current_regcache): Update.
8669 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8670 (regcache_thread_ptid_changed): Likewise.
8671 (registers_changed_ptid): Likewise.
8672 (current_regcache_size): Likewise.
8673
8248946c
YQ
86742017-05-09 Yao Qi <yao.qi@linaro.org>
8675
8676 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8677 (current_regcache_size): New function.
8678 (current_regcache_test): New function.
8679 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8680
313c5961
AH
86812017-05-08 Alan Hayward <alan.hayward@arm.com>
8682
8683 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8684 (print_gp_register_row): Use get_frame_register_value.
8685
27bfc1d1
AH
86862017-05-08 Alan Hayward <alan.hayward@arm.com>
8687
8688 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8689 (mips_supply_fpregset): Likewise.
8690 (mips64_supply_gregset): Likewise.
8691
146e6c5c
AH
86922017-05-08 Alan Hayward <alan.hayward@arm.com>
8693
8694 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8695 regcache->raw_supply_zeroed.
8696
e50f25ec
SDJ
86972017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8698
8699 * configure.nat: Rearrange 'case' statements to match
8700 host before cpu.
8701
21ea5acd
SDJ
87022017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8703
8704 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8705 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8706 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8707 "@nat_extra_makefile_frag@".
8708 (Makefile): Remove dependency on "@frags@".
8709 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8710 (data-directory/Makefile): Likewise.
8711 * config/aarch64/linux.mh: Deleted; moved contents to
8712 "gdb/configure.nat".
8713 * config/alpha/alpha-linux.mh: Likewise.
8714 * config/alpha/nbsd.mh: Likewise.
8715 * config/arm/linux.mh: Likewise.
8716 * config/arm/nbsdelf.mh: Likewise.
8717 * config/i386/cygwin.mh: Likewise.
8718 * config/i386/cygwin64.mh: Likewise.
8719 * config/i386/darwin.mh: Likewise.
8720 * config/i386/fbsd.mh: Likewise.
8721 * config/i386/fbsd64.mh: Likewise.
8722 * config/i386/go32.mh: Likewise.
8723 * config/i386/i386gnu.mh: Likewise.
8724 * config/i386/i386sol2.mh: Likewise.
8725 * config/i386/linux.mh: Likewise.
8726 * config/i386/linux64.mh: Likewise.
8727 * config/i386/mingw.mh: Likewise.
8728 * config/i386/mingw64.mh: Likewise.
8729 * config/i386/nbsd64.mh: Likewise.
8730 * config/i386/nbsdelf.mh: Likewise.
8731 * config/i386/nto.mh: Likewise.
8732 * config/i386/obsd.mh: Likewise.
8733 * config/i386/obsd64.mh: Likewise.
8734 * config/i386/sol2-64.mh: Likewise.
8735 * config/ia64/linux.mh: Likewise.
8736 * config/m32r/linux.mh: Likewise.
8737 * config/m68k/linux.mh: Likewise.
8738 * config/m68k/nbsdelf.mh: Likewise.
8739 * config/m68k/obsd.mh: Likewise.
8740 * config/m88k/obsd.mh: Likewise.
8741 * config/mips/fbsd.mh: Likewise.
8742 * config/mips/linux.mh: Likewise.
8743 * config/mips/nbsd.mh: Likewise.
8744 * config/mips/obsd64.mh: Likewise.
8745 * config/pa/linux.mh: Likewise.
8746 * config/pa/nbsd.mh: Likewise.
8747 * config/pa/obsd.mh: Likewise.
8748 * config/powerpc/aix.mh: Likewise.
8749 * config/powerpc/fbsd.mh: Likewise.
8750 * config/powerpc/linux.mh: Likewise.
8751 * config/powerpc/nbsd.mh: Likewise.
8752 * config/powerpc/obsd.mh: Likewise.
8753 * config/powerpc/ppc64-linux.mh: Likewise.
8754 * config/powerpc/spu-linux.mh: Likewise.
8755 * config/s390/linux.mh: Likewise.
8756 * config/sh/nbsd.mh: Likewise.
8757 * config/sparc/fbsd.mh: Likewise.
8758 * config/sparc/linux.mh: Likewise.
8759 * config/sparc/linux64.mh: Likewise.
8760 * config/sparc/nbsd64.mh: Likewise.
8761 * config/sparc/nbsdelf.mh: Likewise.
8762 * config/sparc/obsd64.mh: Likewise.
8763 * config/sparc/sol2.mh: Likewise.
8764 * config/tilegx/linux.mh: Likewise.
8765 * config/vax/nbsdelf.mh: Likewise.
8766 * config/vax/obsd.mh: Likewise.
8767 * config/xtensa/linux.mh: Likewise.
8768 * config/i386/i386gnu.mn: New file, with excerpts from
8769 "config/i386/i386gnu.mh".
8770 * configure: Regenerate.
8771 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
8772 *.mh files under "gdb/config".
8773 * configure.nat: New file, with contents from the
8774 "gdb/config/*/*.mh" files.
8775
7ed1acaf
TW
87762017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
8777
8778 * btrace.c (btrace_clear): Free insn vector.
8779
e13cb306
PA
87802017-05-05 Pedro Alves <palves@redhat.com>
8781
8782 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
8783 * configure: Regenerate.
8784
5ed8105e
PA
87852017-05-04 Pedro Alves <palves@redhat.com>
8786
8787 * Makefile.in (SFILES): Add progspace-and-thread.c.
8788 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
8789 (COMMON_OBS): Add progspace-and-thread.o.
8790 * breakpoint.c: Include "progspace-and-thread.h".
8791 (update_inserted_breakpoint_locations)
8792 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
8793 Use scoped_restore_current_pspace_and_thread.
8794 (create_std_terminate_master_breakpoint): Use
8795 scoped_restore_current_program_space.
8796 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
8797 (print_breakpoint_location): Use
8798 scoped_restore_current_program_space.
8799 (bp_loc_is_permanent): Use
8800 scoped_restore_current_pspace_and_thread.
8801 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
8802 (download_tracepoint_locations): Use
8803 scoped_restore_current_pspace_and_thread.
8804 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
8805 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
8806 (enum step_over_calls_kind): Moved from inferior.h.
8807 (class scoped_restore_current_thread): New class.
8808 * gdbthread.h (make_cleanup_restore_current_thread): Delete
8809 declaration.
8810 (scoped_restore_current_thread): New class.
8811 * infcmd.c: Include "common/gdb_optional.h".
8812 (continue_1, proceed_after_attach): Use
8813 scoped_restore_current_thread.
8814 (notice_new_inferior): Use scoped_restore_current_thread.
8815 * inferior.c: Include "progspace-and-thread.h".
8816 (restore_inferior, save_current_inferior): Delete.
8817 (add_inferior_command, clone_inferior_command): Use
8818 scoped_restore_current_pspace_and_thread.
8819 * inferior.h (scoped_restore_current_inferior): New class.
8820 * infrun.c: Include "progspace-and-thread.h" and
8821 "common/gdb_optional.h".
8822 (follow_fork_inferior): Use
8823 scoped_restore_current_pspace_and_thread.
8824 (scoped_restore_exited_inferior): New class.
8825 (handle_vfork_child_exec_or_exit): Use
8826 scoped_restore_exited_inferior,
8827 scoped_restore_current_pspace_and_thread,
8828 scoped_restore_current_thread and scoped_restore.
8829 (fetch_inferior_event): Use scoped_restore_current_thread.
8830 * linespec.c (decode_line_full, decode_line_1): Use
8831 scoped_restore_current_program_space.
8832 * mi/mi-main.c: Include "progspace-and-thread.h".
8833 (exec_continue): Use scoped_restore_current_thread.
8834 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
8835 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
8836 * proc-service.c (ps_pglobal_lookup): Use
8837 scoped_restore_current_program_space.
8838 * progspace-and-thread.c: New file.
8839 * progspace-and-thread.h: New file.
8840 * progspace.c (release_program_space, clone_program_space): Use
8841 scoped_restore_current_program_space.
8842 (restore_program_space, save_current_program_space)
8843 (save_current_space_and_thread): Delete.
8844 (switch_to_program_space_and_thread): Moved to
8845 progspace-and-thread.c.
8846 * progspace.h (save_current_program_space)
8847 (save_current_space_and_thread): Delete declarations.
8848 (scoped_restore_current_program_space): New class.
8849 * remote.c (remote_btrace_maybe_reopen): Use
8850 scoped_restore_current_thread.
8851 * symtab.c: Include "progspace-and-thread.h".
8852 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
8853 * thread.c (print_thread_info_1): Use
8854 scoped_restore_current_thread.
8855 (struct current_thread_cleanup): Delete.
8856 (do_restore_current_thread_cleanup)
8857 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
8858 (scoped_restore_current_thread::~scoped_restore_current_thread):
8859 ... this new dtor.
8860 (make_cleanup_restore_current_thread): Rename/convert to ...
8861 (scoped_restore_current_thread::scoped_restore_current_thread):
8862 ... this new ctor.
8863 (thread_apply_all_command): Use scoped_restore_current_thread.
8864 (thread_apply_command): Use scoped_restore_current_thread.
8865 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
8866 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
8867
f6223dbb
PA
88682017-05-04 Pedro Alves <palves@redhat.com>
8869
8870 * thread.c (make_cleanup_restore_current_thread): Move
8871 find_thread_ptid call before the is_stopped call. Assert that the
8872 thread is found. Replace is_stopped call by checking the thread's
8873 state directly. Remove unnecessary NULL-thread check.
8874
3c3ae77e
PA
88752017-05-04 Pedro Alves <palves@redhat.com>
8876
8877 * corelow.c (thread_section_name): New class.
8878 (get_core_register_section, get_core_siginfo): Use it.
8879
45eba0ab
AA
88802017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8881
8882 * corelow.c (sniff_core_bfd): Remove extra semicolon.
8883 (get_core_register_section): Remove xfree of NULL pointer.
8884
f81fdd35
AH
88852017-05-03 Alan Hayward <alan.hayward@arm.com>
8886
8887 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
8888 * regcache.c (regcache::raw_supply_zeroed): New function.
8889 * regcache.h (regcache::raw_supply_zeroed): New declaration.
8890
35837774
SM
88912017-05-03 Simon Marchi <simon.marchi@ericsson.com>
8892
8893 * gdbarch.sh: Remove commented out definition of
8894 TARGET_CHAR_BIT.
8895 * gdbarch.h: Re-generate.
8896
c94fee56
SDJ
88972017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
8898
8899 * configure: Regenerate.
8900
d17f7b36
SM
89012017-05-02 Simon Marchi <simon.marchi@ericsson.com>
8902
8903 * solib-target.c (solib_target_relocate_section_addresses):
8904 Remove num_section_bases, num_bases, segment_bases variables.
8905
b560ebd6
SM
89062017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8907
8908 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
8909
f2f46dfc
SM
89102017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8911
8912 * solib-target.c: Include <vector>
8913 (struct lm_info_target) <~lm_info_target>: Remove.
8914 <segment_bases, section_bases>: Change type to
8915 std::vector<CORE_ADDR>.
8916 (library_list_start_segment, library_list_start_section,
8917 library_list_end_library,
8918 solib_target_relocate_section_addresses): Adjust.
8919
a0ff9e1a
SM
89202017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8921
8922 * gdbarch.sh (software_single_step): Change return type to
8923 std::vector<CORE_ADDR>.
8924 * gdbarch.c, gdbarch.h: Re-generate.
8925 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
8926 Adjust.
8927 (arm_deal_with_atomic_sequence_raw): Adjust.
8928 (thumb_get_next_pcs_raw): Adjust.
8929 (arm_get_next_pcs_raw): Adjust.
8930 (arm_get_next_pcs): Adjust.
8931 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
8932 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
8933 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
8934 (alpha_software_single_step): Adjust.
8935 * alpha-tdep.h (alpha_software_single_step): Adjust.
8936 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
8937 * arm-tdep.c (arm_software_single_step): Adjust.
8938 (arm_breakpoint_kind_from_current_state): Adjust.
8939 * arm-tdep.h (arm_software_single_step): Adjust.
8940 * breakpoint.c (insert_single_step_breakpoint): Adjust.
8941 * cris-tdep.c (cris_software_single_step): Adjust.
8942 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
8943 (micromips_deal_with_atomic_sequence): Adjust.
8944 (deal_with_atomic_sequence): Adjust.
8945 (mips_software_single_step): Adjust.
8946 * mips-tdep.h (mips_software_single_step): Adjust.
8947 * moxie-tdep.c (moxie_software_single_step): Adjust.
8948 * nios2-tdep.c (nios2_software_single_step): Adjust.
8949 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
8950 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
8951 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
8952 * s390-linux-tdep.c (s390_software_single_step): Adjust.
8953 * sparc-tdep.c (sparc_software_single_step): Adjust.
8954 * spu-tdep.c (spu_software_single_step): Adjust.
8955 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
8956
ea480a30
SM
89572017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8958
8959 * gdbarch.sh: Use semi-colon as field separator instead of colon.
8960 * gdbarch.h: Re-generate.
8961
d050f7d7
TW
89622017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8963
8964 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
8965 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
8966 * python/py-instruction.c, python/py-instruction.h: New file.
8967 * python/py-record.c: Add py-instruction.h include.
8968 (gdbpy_initialize_record): Make gdb.Instruction a super class of
8969 gdb.RecordInstruction.
8970 * python/python-internal.h: Add gdbpy_initialize_instruction
8971 declaration.
8972 * python/python.c (do_start_initialization): Add
8973 gdbpy_initialize_instruction.
8974
14f819c8
TW
89752017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8976
8977 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
8978 Remove.
8979 (btrace_func_from_recpy_func): New function.
8980 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
8981 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
8982 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
8983 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
8984 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
8985 Also, use new helper functions.
8986 (btpy_list_item): Use new helper functions.
8987 (recpy_bt_function_call_history): Use new type name.
8988 (btpy_call_getset): Remove.
8989 (gdbpy_initialize_btrace): Remove code to initialize
8990 gdb.BtraceFunctionCall.
8991 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
8992 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
8993 recpy_bt_func_prev, recpy_bt_func_next): New export.
8994 * python/py-record.c (recpy_func_type): New static object.
8995 (recpy_func_new, recpy_func_level, recpy_func_symbol,
8996 recpy_func_instructions, recpy_func_up, recpy_func_prev,
8997 recpy_func_next): New function.
8998 (recpy_element_hash, recpy_element_richcompare): Updated comment.
8999 (recpy_func_getset): New static object.
9000 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9001 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9002
0ed5da75
TW
90032017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9004
9005 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9006 (btpy_object, btpy_insn_type, btpy_new): Remove.
9007 (btpy_list_object): Use gdb.RecordInstruction type instead of
9008 gdb.BtraceInstruction type.
9009 (btrace_insn_from_recpy_insn): New function.
9010 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9011 btpy_new.
9012 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9013 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9014 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9015 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9016 instead of btpy_object.
9017 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9018 btpy_insn_data, btpy_insn_decode): Rename to ...
9019 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9020 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9021 recpy_bt_insn_decode): This. Also, use new helper functions.
9022 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9023 recpy_insn_type.
9024 (btpy_insn_getset): Remove.
9025 (gdbpy_initialize_btrace): Remove code to initialize
9026 gdb.BtraceInstruction. Use recpy_element_object.
9027 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9028 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9029 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9030 * python/py-record.c (recpy_insn_type): New static object.
9031 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9032 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9033 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9034 New function.
9035 (recpy_insn_getset): New static object.
9036 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9037 * python/py-record.h (recpy_element_object): New typedef.
9038 (recpy_insn_type, recpy_insn_new): New export.
9039
913aeadd
TW
90402017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9041
9042 * py-record-btrace.c (btpy_insn_new): Removed.
9043 (btpy_insn_or_gap_new): New function.
9044 (btpy_insn_error): Removed.
9045 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9046 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9047 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9048 btpy_insn_or_gap_new instead of btpy_insn_new.
9049 (btpy_insn_getset): Remove btpy_insn_error.
9050 * py-record.c (recpy_gap_type): New static object.
9051 (recpy_gap_object): New typedef.
9052 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9053 recpy_gap_reason_string): New function.
9054 (recpy_gap_getset): New static object.
9055 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9056 * py-record.h (recpy_gap_new): New export.
9057
a3be24ad
TW
90582017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9059
9060 * python/py-record.c (recpy_ptid): Remove.
9061 (recpy_record_getset): Remove recpy_ptid.
9062
ae20e79a
TW
90632017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9064
9065 * btrace.c (btrace_fetch): Set inferior_ptid.
9066 * python/py-record-btrace.c: Add "py-record.h" include.
9067 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9068 recpy_bt_end, recpy_bt_instruction_history,
9069 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9070 in gdb.Record object instead of current ptid.
9071 * python/py-record.c: Include new "py-record.h" file.
9072 (recpy_record_object): Moved to py-record.h.
9073 * python/py-record.h: New file.
9074
8d0050ea
TW
90752017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9076
9077 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9078 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9079 indentation.
9080
3f380b50
JB
90812017-05-01 Joel Brobecker <brobecker@adacore.com>
9082
9083 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9084 the past maintainers section.
9085
07495424
YQ
90862017-04-28 Yao Qi <yao.qi@linaro.org>
9087
9088 * infcmd.c (get_return_value): Use regcache ctor, and remove
9089 cleanup.
9090
deb1fa3e
YQ
90912017-04-28 Yao Qi <yao.qi@linaro.org>
9092 Pedro Alves <palves@redhat.com>
9093
9094 * regcache.c (regcache::regcache): New tag dispatch ctor.
9095 (do_cooked_read): Moved above.
9096 (regcache_dup): Use the tag dispatch ctor..
9097 * regcache.h (regcache): Declare ctor, delete copy ctor and
9098 assignment operator, remove friend regcache_dup.
9099
b421c83c
YQ
91002017-04-28 Yao Qi <yao.qi@linaro.org>
9101
9102 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9103 call method save instead of regcache_cpy.
9104 * regcache.h (struct regcache): Make regcache_dup a friend.
9105
ef79d9a3
YQ
91062017-04-28 Yao Qi <yao.qi@linaro.org>
9107
9108 * regcache.c (struct regcache): Move to regcache.h
9109 (regcache::arch): New method.
9110 (regcache_get_ptid): Update.
9111 (get_regcache_arch): Call arch method.
9112 (get_regcache_aspace): Call method aspace.
9113 (register_buffer): Change it to method.
9114 (regcache_save): Change it to regcache::save.
9115 (regcache_restore): Likewise.
9116 (regcache_cpy_no_passthrough): Remove the declaration.
9117 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9118 (regcache_cpy_no_passthrough): Change it to method
9119 cpy_no_passthrough.
9120 (regcache_register_status): Change it to method
9121 get_register_status.
9122 (regcache_invalidate): Change it to method invalidate.
9123 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9124 (regcache_raw_update): Change it to method raw_update.
9125 (regcache_raw_read): Likewise.
9126 (regcache_raw_read_signed): Likewise.
9127 (regcache_raw_read_unsigned): Likewise.
9128 (regcache_raw_write_signed): Likewise.
9129 (regcache_raw_write_unsigned): Likewise.
9130 (regcache_cooked_read): Likewise.
9131 (regcache_cooked_read_value): Likewise.
9132 (regcache_cooked_read_signed): Likewise.
9133 (regcache_cooked_read_unsigned): Likewise.
9134 (regcache_cooked_write_signed): Likewise.
9135 (regcache_cooked_write_unsigned): Likewise.
9136 (regcache_raw_set_cached_value): Likewise.
9137 (regcache_raw_write): Likewise.
9138 (regcache_cooked_write): Likewise.
9139 (regcache_xfer_part): Likewise.
9140 (regcache_raw_read_part): Likewise.
9141 (regcache_raw_write_part): Likewise.
9142 (regcache_cooked_read_part): Likewise.
9143 (regcache_cooked_write_part): Likewise.
9144 (regcache_raw_supply): Likewise.
9145 (regcache_raw_collect): Likewise.
9146 (regcache_transfer_regset): Likewise.
9147 (regcache_supply_regset): Likewise.
9148 (regcache_collect_regset): Likewise.
9149 (regcache_debug_print_register): Likewise.
9150 (enum regcache_dump_what): Move it to regcache.h.
9151 (regcache_dump): Change it to method dump.
9152 * regcache.h (enum regcache_dump_what): New.
9153 (class regcache): New.
9154 * target.c (target_fetch_registers): Call method
9155 debug_print_register.
9156 (target_store_registers): Likewise.
9157
f8fdb78e
SM
91582017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9159
9160 * windows-nat.c (struct lm_info_windows): Initialize field.
9161 (windows_make_so): Allocate lm_info_windows with new.
9162 (windows_free_so): Free lm_info_windows with delete.
9163
9ccbfd7b
SM
91642017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9165
9166 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9167 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9168 cleanup.
9169 (darwin_free_so): Free lm_info_darwin with delete.
9170
76e75227
SM
91712017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9172
9173 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9174 <l_addr_p>: Change type to bool.
9175 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9176 (svr4_free_so): Free lm_info_svr4 with delete.
9177 (svr4_copy_library_list): Replace memcpy with call to copy
9178 constructor.
9179 (library_list_start_library, svr4_default_sos): Allocate
9180 lm_info_svr4 with new.
9181
51046d9e
SM
91822017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9183
9184 * solib-target.c (struct lm_info_target): Add destructor,
9185 initialize fields.
9186 <name>: Change type to std::string.
9187 (library_list_start_library): Allocate lm_info_target with new.
9188 (solib_target_free_library_list): Free lm_info_target with
9189 delete.
9190 (solib_target_current_sos): Adapt to std::string.
9191 (solib_target_free_so): Free lm_info_target with delete.
9192
4023ae76
SM
91932017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9194
9195 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9196 fields.
9197 (frv_current_sos): Allocate lm_info_frv with new.
9198 (frv_relocate_main_executable): Free lm_info_frv with delete,
9199 allocate with new.
9200 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9201
af43057b
SM
92022017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9203
9204 * solib-frv.c (struct lm_info_frv): Fix indentation.
9205
b0911207
SM
92062017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9207
9208 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9209 map field.
9210 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9211 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9212 and allocate with new.
9213 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9214
6c401f72
SM
92152017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9216
9217 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9218 <filename, member_name>: Change type to std::string.
9219 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9220 (library_list_start_library): Allocate lm_info_aix with new.
9221 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9222 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9223 with copy constructor.
9224
d0e449a1
SM
92252017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9226
9227 * solist.h (struct lm_info): Remove.
9228 (struct lm_info_base): New class.
9229 (struct so_list) <lm_info>: Change type to lm_info_base *.
9230 * nto-tdep.c (struct lm_info): Remove.
9231 (lm_addr): Adjust.
9232 * solib-aix.c (struct lm_info): Rename to ...
9233 (struct lm_info_aix): ... this. Extend lm_info_base.
9234 (lm_info_p): Rename to ...
9235 (lm_info_aix_p): ... this, and adjust.
9236 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9237 solib_aix_parse_libraries, library_list_start_library,
9238 solib_aix_free_library_list, solib_aix_parse_libraries,
9239 solib_aix_get_library_list,
9240 solib_aix_relocate_section_addresses, solib_aix_free_so,
9241 solib_aix_get_section_offsets,
9242 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9243 Adjust.
9244 (struct solib_aix_inferior_data) <library_list>: Adjust.
9245 * solib-darwin.c (struct lm_info): Rename to ...
9246 (struct lm_info_darwin): ... this. Extend lm_info_base.
9247 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9248 * solib-dsbt.c (struct lm_info): Rename to ...
9249 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9250 (struct dsbt_info) <main_executable_lm_info): Adjust.
9251 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9252 dsbt_relocate_section_addresses): Adjust.
9253 * solib-frv.c (struct lm_info): Rename to ...
9254 (struct lm_info_frv): ... this. Extend lm_info_base.
9255 (main_executable_lm_info): Adjust.
9256 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9257 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9258 find_canonical_descriptor_in_load_object,
9259 frv_fdpic_find_canonical_descriptor): Adjust.
9260 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9261 to lm_info_svr4.
9262 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9263 svr4_clear_so, svr4_copy_library_list,
9264 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9265 svr4_current_sos, svr4_fetch_objfile_link_map,
9266 solist_update_incremental): Adjust.
9267 * solib-svr4.h (struct lm_info_svr4): Move here from
9268 solib-svr4.c.
9269 * solib-target.c (struct lm_info): Rename to ...
9270 (struct lm_info_target): ... this. Extend lm_info_base.
9271 (lm_info_p): Rename to ...
9272 (lm_info_target_p): ... this.
9273 (solib_target_parse_libraries, library_list_start_segment,
9274 library_list_start_section, library_list_start_library,
9275 library_list_end_library, solib_target_free_library_list,
9276 solib_target_current_sos, solib_target_free_so,
9277 solib_target_relocate_section_addresses): Adjust.
9278 * windows-nat.c (struct lm_info): Rename to ...
9279 (struct lm_info_windows): ... this. Extend lm_info_base.
9280 (windows_make_so, handle_load_dll, handle_unload_dll,
9281 windows_xfer_shared_libraries): Adjust.
9282
434a4023
SM
92832017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9284
9285 * solib-darwin.c (struct darwin_so_list): Remove.
9286 (darwin_current_sos): Allocate an so_list object instead of a
9287 darwin_so_list, separately allocate an lm_info object.
9288 (darwin_free_so): Free lm_info.
9289
428544e8
JB
92902017-04-28 John Baldwin <jhb@FreeBSD.org>
9291
9292 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9293 with fprintf_filtered.
9294
4621115f
YQ
92952017-04-28 Yao Qi <yao.qi@linaro.org>
9296
9297 * regcache.c (regcache::regcache): New function.
9298 (regcache::~regcache): New function.
9299 (regcache_xmalloc_1): Remove.
9300 (regcache_xmalloc): Call new regcache.
9301 (regcache_xfree): Call delete regcache.
9302 (get_thread_arch_aspace_regcache): Call new regcache.
9303
339053c2
YQ
93042017-04-28 Yao Qi <yao.qi@linaro.org>
9305
9306 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9307 lwp instead of ptid_get_lwp.
9308
7974a605
YQ
93092017-04-28 Yao Qi <yao.qi@linaro.org>
9310
9311 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9312 lwp_info instead of getting from inferior_ptid.
9313
e15c3eb4
KS
93142017-04-27 Keith Seitz <keiths@redhat.com>
9315
9316 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9317 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9318 (CV_CONVERSION_BADNESS): Define.
9319 (rank_one_type): Remove overly restrictive rvalue reference
9320 rank checks.
9321 Add cv-qualifier checks and subranks for type equality.
9322 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9323 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9324 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9325
72bc1d24
SM
93262017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9327
9328 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9329 count when creating the object.
9330
55bcecda
UW
93312017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9332 Ulrich Weigand <uweigand@de.ibm.com>
9333
9334 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9335 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9336 is used in AIX.
9337 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9338 (process_xcoff_symbol): Likewise.
9339 (scan_xcoff_symtab): Likewise.
9340
5c99fcf8
AH
93412017-04-26 Alan Hayward <alan.hayward@arm.com>
9342
9343 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9344 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9345 (ia64_access_reg): Use get_frame_register_unsigned.
9346 (ia64_access_rse_reg): Likewise.
9347 (ia64_libunwind_frame_prev_register): Likewise.
9348
b41c5a85
JW
93492017-04-26 Jiong Wang <jiong.wang@arm.com>
9350
9351 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9352 * gdbarch.c: Regenerated.
9353 * gdbarch.h: Regenerated.
9354 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9355 visibility external.
9356 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9357 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9358 (enum cfa_how_kind): Move to ...
9359 (struct dwarf2_frame_state_reg_info): Likewise.
9360 (struct dwarf2_frame_state): Likewise.
9361 * dwarf2-frame.h: ... here.
9362 (dwarf2_frame_state_alloc_regs): New declaration.
9363 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9364 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9365
c185f580
AH
93662017-04-26 Alan Hayward <alan.hayward@arm.com>
9367
9368 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9369 regcache_raw_read_unsigned.
9370 (xtensa_pseudo_register_write): Likewise.
9371
19c45594
AH
93722017-04-26 Alan Hayward <alan.hayward@arm.com>
9373
9374 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9375 (nds32_pseudo_register_write): Likewise.
9376
4658f12e
YQ
93772017-04-25 Yao Qi <yao.qi@linaro.org>
9378
9379 * regcache.c (struct regcache) <readonly_p>: Change its type
9380 to bool.
9381 (regcache_xmalloc_1): Update parameter type and callers update.
9382
d581dda8
YQ
93832017-04-25 Yao Qi <yao.qi@linaro.org>
9384
9385 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9386 set_gdbarch_wchar_bit.
9387 * arm-tdep.c (arm_gdbarch_init): Likewise.
9388
debed3db
PA
93892017-04-25 Pedro Alves <palves@redhat.com>
9390
9391 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9392 (BothAreRelocatable, memcopy, memmove): Don't define.
9393 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9394 macros.
9395
b0b92aeb
PA
93962017-04-25 Pedro Alves <palves@redhat.com>
9397
9398 * common/common-defs.h: Include "common/poison.h".
9399 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9400 and adjust.
9401 * common/poison.h: New file.
9402 * common/traits.h: Include <type_traits>.
9403 (Not, Or, Requires): New, moved from common/function-view.h.
9404
16c4d54a
PA
94052017-04-25 Pedro Alves <palves@redhat.com>
9406
9407 * breakpoint.h (struct breakpoint): In-class initialize all
9408 fields. Make boolean fields "bool".
9409 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9410 memset call and initializations no longer necessary.
9411
b5c36682
PA
94122017-04-25 Pedro Alves <palves@redhat.com>
9413
9414 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9415 reference.
9416 (pt_btrace_insn): New function.
9417 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9418
5625a286
PA
94192017-04-25 Pedro Alves <palves@redhat.com>
9420
9421 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9422 "base" field and inherit from "bp_location" instead. Add
9423 non-default ctor.
9424 (allocate_location_exception): Use new non-default ctor.
9425 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9426 (init_bp_location): Convert to ...
9427 (bp_location::bp_location): ... this new ctor, and remove memset
9428 call.
9429 (base_breakpoint_allocate_location): Use the new non-default ctor.
9430 * breakpoint.h (bp_location): Now a class. Declare default and
9431 non-default ctors. In-class initialize all members.
9432 (init_bp_location): Remove declaration.
9433
23bcc18f
PA
94342017-04-25 Pedro Alves <palves@redhat.com>
9435
9436 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9437 assignment operator.
9438
e1ba3053
YQ
94392017-04-24 Yao Qi <yao.qi@linaro.org>
9440
9441 * doublest.c (convert_doublest_to_floatformat): Call
9442 floatformat_totalsize_bytes.
9443
10f489e5
TT
94442017-04-22 Tom Tromey <tom@tromey.com>
9445
9446 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9447 ui_out_emit_list.
9448 * stack.c (print_frame): Use ui_out_emit_list.
9449 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9450 ui_out_emit_list.
9451 * mi/mi-main.c (print_one_inferior)
9452 (mi_cmd_data_list_register_names)
9453 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9454 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9455 ui_out_emit_list.
9456 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9457 (mi_output_solib_attribs): Use ui_out_emit_list,
9458 ui_out_emit_tuple.
9459 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9460 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9461 (mi_cmd_stack_list_args, list_args_or_locals): Use
9462 ui_out_emit_list.
9463 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9464 * breakpoint.c (print_solib_event, output_thread_groups): Use
9465 ui_out_emit_list.
9466
0092b74d
TT
94672017-04-22 Tom Tromey <tom@tromey.com>
9468
9469 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9470 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9471 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9472
a14a62dd
TT
94732017-04-22 Tom Tromey <tom@tromey.com>
9474
9475 * tracepoint.c (tvariables_info_1)
9476 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9477
46b9c129
TT
94782017-04-22 Tom Tromey <tom@tromey.com>
9479
9480 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9481 annotate_arg_emitter.
9482 * breakpoint.c (print_mention_watchpoint)
9483 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9484 * annotate.h (struct annotate_arg_emitter): New.
9485
2e783024
TT
94862017-04-22 Tom Tromey <tom@tromey.com>
9487
9488 * record-btrace.c (record_btrace_insn_history)
9489 (record_btrace_insn_history_range, record_btrace_call_history)
9490 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9491 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9492 ui_out_emit_tuple.
9493 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9494 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9495 * skip.c (skip_info): Use ui_out_emit_tuple.
9496 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9497 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9498 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9499 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9500 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9501 ui_out_emit_tuple.
9502 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9503 (output_register, mi_cmd_data_read_memory)
9504 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9505 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9506 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9507 Use ui_out_emit_tuple.
9508 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9509 ui_out_emit_tuple.
9510 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9511 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9512 * linux-thread-db.c (info_auto_load_libthread_db): Use
9513 ui_out_emit_tuple.
9514 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9515 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9516 * disasm.c (do_mixed_source_and_assembly_deprecated)
9517 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9518 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9519 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9520 * breakpoint.c (print_one_breakpoint_location)
9521 (print_one_breakpoint): Use ui_out_emit_tuple.
9522 * auto-load.c (print_script, info_auto_load_cmd): Use
9523 ui_out_emit_tuple.
9524 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9525
9be21bb4
SM
95262017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9527
9528 * thread.c (print_thread_info_1): Remove dead code.
9529
0d4c07af
JK
95302017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9531
9532 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9533 GDB_SELF_TEST.
9534 * arm-tdep.c (selftests::arm_record_test): Likewise.
9535
4daf993d
YQ
95362017-04-21 Yao Qi <yao.qi@linaro.org>
9537
9538 * regcache.c (regcache_restore): Remove argument 2. Replace
9539 argument 3 with regcache. Get register status from
9540 src->register_status and get register contents from
9541 register_buffer (src, regnum).
9542 (regcache_cpy): Update.
9543
a6c21d4a
PA
95442017-04-19 Pedro Alves <palves@redhat.com>
9545
9546 * gdbthread.h (thread): Add missing closing parenthesis in
9547 comment.
9548
3a3fd0fd
PA
95492017-04-19 Pedro Alves <palves@redhat.com>
9550
9551 * common/refcounted-object.h: New file.
9552 * gdbthread.h: Include "common/refcounted-object.h".
9553 (thread_info): Inherit from refcounted_object and add comments.
9554 (thread_info::incref, thread_info::decref)
9555 (thread_info::m_refcount): Delete.
9556 (thread_info::deletable): Use the refcounted_object::refcount()
9557 method.
9558 * inferior.c (current_inferior_): Add comment.
9559 (set_current_inferior): Increment/decrement refcounts.
9560 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9561 not-deletable instead of comparing with the current inferior.
9562 (initialize_inferiors): Increment the initial inferior's refcount.
9563 * inferior.h (struct inferior): Forward declare.
9564 Include "common/refcounted-object.h".
9565 (current_inferior, set_current_inferior): Move declaration to
9566 before struct inferior's definition, and fix comment.
9567 (inferior): Inherit from refcounted_object. Add comments.
9568 * thread.c (switch_to_thread_no_regs): Reference the thread's
9569 inferior pointer directly instead of doing a ptid lookup.
9570 (switch_to_no_thread): New function.
9571 (switch_to_thread(thread_info *)): New function, factored out
9572 from ...
9573 (switch_to_thread(ptid_t)): ... this.
9574 (restore_current_thread): Delete.
9575 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9576 fields, and add 'inf' field.
9577 (do_restore_current_thread_cleanup): Check whether old->inf is
9578 alive instead of looking up an inferior by ptid. Use
9579 switch_to_thread and switch_to_no_thread.
9580 (restore_current_thread_cleanup_dtor): Use old->inf directly
9581 instead of lookup up an inferior by id. Decref the inferior.
9582 Don't restore 'removable'.
9583 (make_cleanup_restore_current_thread): Same the inferior pointer
9584 in old, instead of the inferior number. Incref the inferior.
9585 Don't save/clear 'removable'.
9586
9bcb1f16
PA
95872017-04-19 Pedro Alves <palves@redhat.com>
9588
9589 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9590 unittests/scoped_restore-selftests.c.
9591 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9592 * common/scoped_restore.h (scoped_restore_base): Make "class".
9593 (scoped_restore_base::release): New public method.
9594 (scoped_restore_base::scoped_restore_base): New protected ctor.
9595 (scoped_restore_base::m_saved_var): New protected field.
9596 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9597 scoped_restore_base base class instead of m_saved_var directly.
9598 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9599 (scoped_restore_tmpl::scoped_restore_tmpl(const
9600 scoped_restore_tmpl<T>&)): Likewise.
9601 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9602 method.
9603 (scoped_restore_tmpl::saved_var): New method.
9604 (scoped_restore_tmpl::m_saved_var): Delete.
9605 * inferior.h (inferior::detaching): Now a bool.
9606 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9607 cleanup.
9608 * unittests/scoped_restore-selftests.c: New file.
9609
26fcd539
PA
96102017-04-19 Pedro Alves <palves@redhat.com>
9611
9612 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9613 Re-sort in alphabetic order.
9614
fdd243b0
PA
96152017-04-18 Pedro Alves <palves@redhat.com>
9616
9617 * xml-support.c (obstack_xml_printf): Delete.
9618 * xml-support.h (obstack_xml_printf): Delete.
9619
4895cde2
PA
96202017-04-18 Pedro Alves <palves@redhat.com>
9621
9622 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9623 vdebug, verror, body_text, start_element, end_element, name,
9624 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9625 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9626 is_xinclude>: Make private and add m_ prefix.
9627 (gdb_xml_parser::body_text): New method, based on ...
9628 (gdb_xml_body_text): ... this. Adjust.
9629 (gdb_xml_parser::vdebug): New method, based on ...
9630 (gdb_xml_debug): ... this. Adjust.
9631 (gdb_xml_parser::verror): New method, based on ...
9632 (gdb_xml_error): ... this. Adjust.
9633 (gdb_xml_parser::start_element): New method, based on ...
9634 (gdb_xml_start_element): ... this. Adjust.
9635 (gdb_xml_start_element_wrapper): Defer to
9636 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9637 (gdb_xml_parser::end_element): New method, based on ...
9638 (gdb_xml_end_element_wrapper): ... this. Adjust.
9639 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9640 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9641 (gdb_xml_parser::use_dtd): New method, based on ...
9642 (gdb_xml_use_dtd): ... this. Adjust.
9643 (gdb_xml_parser::parse): New method, based on ...
9644 (gdb_xml_parse): ... this. Adjust.
9645 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9646 (xinclude_start_include): Adjust to call the parser's name method.
9647 (xml_xinclude_default, xml_xinclude_start_doctype)
9648 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9649 method.
9650 (xml_process_xincludes): Adjust to call parser methods.
9651 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9652 declarations.
9653
bd8a901f
PA
96542017-04-18 Pedro Alves <palves@redhat.com>
9655
9656 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9657 gdb::optional<std::string>.
9658 * xml-support.c: Include <string>.
9659 (scope_level::scope_level(scope_level &&))
9660 (scope_level::~scope_level): Delete.
9661 (scope_level::body): Now a std::string.
9662 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9663 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9664 parameter.
9665 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9666 (xinclude_parsing_data::output): Now a std::string reference.
9667 (xinclude_start_include): Adjust.
9668 (xml_xinclude_default): Adjust.
9669 (xml_process_xincludes): Add 'output' parameter, and return bool.
9670 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9671 and return bool.
9672 * xml-tdesc.c: Include <unordered_map> and <string>.
9673 (tdesc_xml_cache): Delete.
9674 (tdesc_xml_cache_s): Delete.
9675 (xml_cache): Now an std::unordered_map.
9676 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9677 (target_fetch_description_xml): Change return type to
9678 gdb::optional<std::string>, and adjust.
9679 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9680 (target_fetch_description_xml): Change return type to
9681 gdb::optional<std::string>.
9682
d35d1958
PA
96832017-04-18 Pedro Alves <palves@redhat.com>
9684
9685 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9686 unittests/optional-selftests.c.
9687 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9688 * unittests/optional-selftests.c: New file.
9689 * unittests/optional/assignment/1.cc: New file.
9690 * unittests/optional/assignment/2.cc: New file.
9691 * unittests/optional/assignment/3.cc: New file.
9692 * unittests/optional/assignment/4.cc: New file.
9693 * unittests/optional/assignment/5.cc: New file.
9694 * unittests/optional/assignment/6.cc: New file.
9695 * unittests/optional/assignment/7.cc: New file.
9696 * unittests/optional/cons/copy.cc: New file.
9697 * unittests/optional/cons/default.cc: New file.
9698 * unittests/optional/cons/move.cc: New file.
9699 * unittests/optional/cons/value.cc: New file.
9700 * unittests/optional/in_place.cc: New file.
9701 * unittests/optional/observers/1.cc: New file.
9702 * unittests/optional/observers/2.cc: New file.
9703
22796e97
PA
97042017-04-18 Pedro Alves <palves@redhat.com>
9705
9706 * common/gdb_optional.h: Include common/traits.h.
9707 (in_place_t): New type.
9708 (in_place): New constexpr variable.
9709 (optional::optional): Remove member initialization of
9710 m_instantiated.
9711 (optional::optional(in_place_t...)): New constructor.
9712 (optional::~optional): Use reset.
9713 (optional::optional(const optional&)): New.
9714 (optional::optional(const optional&&)): New.
9715 (optional::optional(T &)): New.
9716 (optional::optional(T &&)): New.
9717 (operator::operator=(const optional &)): New.
9718 (operator::operator=(optional &&)): New.
9719 (operator::operator= (const T &))
9720 (operator::operator= (T &&))
9721 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9722 (operator::reset): New.
9723 (operator::m_instantiated):: Add in-class initializer.
9724 * common/traits.h: Include <type_traits>.
9725 (struct And): New types.
9726
a7fc9b61
PA
97272017-04-18 Pedro Alves <palves@redhat.com>
9728
9729 * xml-support.c: Include <vector>.
9730 (scope_level::scope_level(const gdb_xml_element *))
9731 (scope_level::scope_level(scope_level&&)): New.
9732 (scope_level::~scope_level): New.
9733 (scope_level_s): Delete.
9734 (gdb_xml_parser::scopes): Now a std::vector.
9735 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9736 Use std::vector.
9737 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
9738 scope cleanup code.
9739 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
9740 of the scopes member. Use std::vector::emplace_back.
9741
010151c9
PA
97422017-04-18 Pedro Alves <palves@redhat.com>
9743
9744 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
9745 a bool.
9746 (gdb_xml_end_element): Change type of first parameter.
9747 (gdb_xml_cleanup): Rename to ...
9748 (gdb_xml_parser::~gdb_xml_parser): ... this.
9749 (gdb_xml_create_parser_and_cleanup): Delete with ...
9750 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
9751 to this new ctor.
9752 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
9753 using gdb_xml_create_parser_and_cleanup.
9754 (xinclude_parsing_data): Add ctor/dtor.
9755 (xml_xinclude_cleanup): Delete.
9756 (xml_process_xincludes): Create a local xinclude_parsing_data
9757 instead of heap-allocating one. Create a local gdb_xml_parser
9758 instead of heap-allocating one with
9759 gdb_xml_create_parser_and_cleanup.
9760
d56060f0
JB
97612017-04-18 John Baldwin <jhb@FreeBSD.org>
9762
9763 PR threads/20743
9764 * fbsd-nat.c (resume_one_thread_cb): Remove.
9765 (resume_all_threads_cb): Remove.
9766 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
9767 iterate_over_threads.
9768
305d16a9
JB
97692017-04-17 Joel Brobecker <brobecker@adacore.com>
9770
9771 * NEWS: Create a new section for the next release branch.
9772 Rename the section of the current branch, now that it has
9773 been cut.
9774
8bb57231
JB
97752017-04-17 Joel Brobecker <brobecker@adacore.com>
9776
9777 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
9778 * version.in: Bump version to 8.0.50.DATE-git.
9779
096c92dd
SDJ
97802017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
9781
9782 PR gdb/21385
9783 * windows-nat.c (windows_create_inferior): Declare 'allargs'
9784 independently of the host, and fix build breakage on Cygwin.
9785
0550c955
PA
97862017-04-13 Pedro Alves <palves@redhat.com>
9787
9788 * inferior.c (free_inferior): Convert to ...
9789 (inferior::~inferior): ... this dtor.
9790 (inferior::inferior): New ctor, factored out from ...
9791 (add_inferior_silent): ... here. Allocate the inferior with a new
9792 expression.
9793 (delete_inferior): Call delete instead of free_inferior.
9794 * inferior.h (gdb_environ, continuation): Forward declare.
9795 (inferior): Now a class. Add in-class initialization to all
9796 members. Make boolean fields bool, except 'detaching'.
9797 (inferior::inferior): New explicit ctor.
9798 (inferior::~inferior): New.
9799
e3d60dfc
PA
98002017-04-13 Pedro Alves <palves@redhat.com>
9801
9802 * inferior.c (init_inferior_list): Delete.
9803 * inferior.h (init_inferior_list): Delete.
9804
5fd69d0a
PA
98052017-04-13 Pedro Alves <palves@redhat.com>
9806
9807 PR threads/13217
9808 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
9809 (top level): Call it twice, with different thread sets.
9810
c6609450
PA
98112017-04-13 Pedro Alves <palves@redhat.com>
9812
9813 * thread.c: Include <algorithm>.
9814 (thread_array_cleanup): Delete.
9815 (scoped_inc_dec_ref): New class.
9816 (live_threads_count): New function.
9817 (set_thread_refcount): Delete.
9818 (tp_array_compar_ascending): Now a bool.
9819 (tp_array_compar): Convert to a std::sort comparison function.
9820 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
9821 and live_threads_count.
9822
2a00d7ce
PA
98232017-04-13 Pedro Alves <palves@redhat.com>
9824
9825 * infrun.c (follow_fork_inferior): Also switch the current
9826 inferior.
9827
441d7c93
PA
98282017-04-13 Pedro Alves <palves@redhat.com>
9829
9830 * breakpoint.c (watch_command_1): Save watchpoint-frame info
9831 before calling create_internal_breakpoint.
9832
808480f6
PA
98332017-04-13 Pedro Alves <palves@redhat.com>
9834
9835 * fork-child.c (execv_argv): New class.
9836 (breakup_args): Refactored as ...
9837 (execv_argv::init_for_no_shell): .. this method of execv_argv.
9838 Copy arguments to storage and replace separators with NULL
9839 terminators in place.
9840 (escape_bang_in_quoted_argument): Adjust to return bool.
9841 (execv_argv::execv_argv): New ctor.
9842 (execv_argv::init_for_shell): New method, factored out from
9843 fork_inferior. Don't strdup strings into the vector.
9844 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
9845 Remove free_vector_argv call.
9846
ad3d022a
YQ
98472017-04-13 Yao Qi <yao.qi@linaro.org>
9848
9849 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
9850 tdep->rx_psw_type.
9851
e6ddc3bf
YQ
98522017-04-13 Yao Qi <yao.qi@linaro.org>
9853
9854 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
9855 * rx-tdep.c (rx_gdbarch_init): Likewise.
9856
bfb8cf90
PA
98572017-04-13 Pedro Alves <palves@redhat.com>
9858
9859 * breakpoint.h (struct breakpoint): Reindent.
9860
f5336ca5
PA
98612017-04-13 Pedro Alves <palves@redhat.com>
9862
9863 * breakpoint.c (bp_location): Rename to ...
9864 (bp_locations): ... this. All references updated.
9865 (bp_location_count): Rename to ...
9866 (bp_locations_count): ... this. All references updated.
9867 (bp_location_placed_address_before_address_max): Rename to ...
9868 (bp_locations_placed_address_before_address_max): ... this. All
9869 references updated.
9870 (bp_location_shadow_len_after_address_max): Rename to ...
9871 (bp_locations_shadow_len_after_address_max): ... this. All
9872 references updated.
9873 (bp_location_compare_addrs): Rename to ...
9874 (bp_locations_compare_addrs): ... this. All references updated.
9875 (bp_location_compare):Rename to ...
9876 (bp_locations_compare): ... this. All references updated.
9877 (bp_location_target_extensions_update): Rename to ...
9878 (bp_locations_target_extensions_update): ... this. All references
9879 updated.
9880
be628ab8
SDJ
98812017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9882
9883 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
9884 * common/common.m4: Check headers 'termios.h', 'termio.h' and
9885 'sgtty.h'.
9886 * common/gdb_termios.h: New file, with parts of "terminal.h".
9887 * inflow.c: Include "gdb_termios.h".
9888 * ser-unix.c: Include "gdb_termios.h".
9889 * terminal.h: Move terminal-related defines to
9890 "common/gdb_termios.h".
9891
8e9e35b1
TT
98922017-04-12 Tom Tromey <tom@tromey.com>
9893
9894 * probe.c (parse_probes): Update.
9895 * location.h (delete_event_location): Don't declare.
9896 (event_location_deleter::operator()): Update.
9897 * location.c (event_location_deleter::operator()): Rename from
9898 delete_event_location.
9899 * linespec.h (linespec_result) <location>: Change type to
9900 event_location_up.
9901 * linespec.c (canonicalize_linespec, event_location_to_sals)
9902 (decode_objc): Update.
9903 (linespec_result): Don't call delete_event_location.
9904 * breakpoint.c (create_breakpoints_sal)
9905 (bkpt_probe_create_sals_from_location)
9906 (strace_marker_create_sals_from_location): Update.
9907
16e802b9
TT
99082017-04-12 Tom Tromey <tom@tromey.com>
9909
9910 * linespec.h (struct linespec_result): Add constructor and
9911 destructor.
9912 (init_linespec_result, destroy_linespec_result)
9913 (make_cleanup_destroy_linespec_result): Don't declare.
9914 * linespec.c (init_linespec_result): Remove.
9915 (linespec_result::~linespec_result): Rename from
9916 destroy_linespec_result. Update.
9917 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
9918 Remove.
9919 * breakpoint.c (create_breakpoint, break_range_command)
9920 (decode_location_default): Update.
9921 * ax-gdb.c (agent_command_1): Update.
9922
d28cd78a
TT
99232017-04-12 Tom Tromey <tom@tromey.com>
9924
9925 * remote.c (remote_download_tracepoint): Update.
9926 * python/py-breakpoint.c (bppy_get_location): Update.
9927 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
9928 (gdbscm_breakpoint_location): Update.
9929 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
9930 * breakpoint.h (struct breakpoint) <location, location_range_end>:
9931 Change type to event_location_up.
9932 * breakpoint.c (create_overlay_event_breakpoint)
9933 (create_longjmp_master_breakpoint)
9934 (create_std_terminate_master_breakpoint)
9935 (create_exception_master_breakpoint)
9936 (breakpoint_event_location_empty_p, print_breakpoint_location)
9937 (print_one_breakpoint_location, create_thread_event_breakpoint)
9938 (init_breakpoint_sal, create_breakpoint)
9939 (print_recreate_ranged_breakpoint, break_range_command)
9940 (init_ada_exception_breakpoint, say_where): Update.
9941 (base_breakpoint_dtor): Don't call delete_event_location.
9942 (bkpt_print_recreate, tracepoint_print_recreate)
9943 (dprintf_print_recreate, update_static_tracepoint)
9944 (breakpoint_re_set_default): Update.
9945
711799d5
TT
99462017-04-12 Tom Tromey <tom@tromey.com>
9947
9948 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
9949 type of "to_do". Update.
9950 (compute_stack_depth): Use std::vector.
9951
52d214d3
TT
99522017-04-12 Tom Tromey <tom@tromey.com>
9953
9954 * printcmd.c (find_instruction_backward): Use std::vector.
9955
4c404b8b
TT
99562017-04-12 Tom Tromey <tom@tromey.com>
9957
9958 * symfile.c (objfilep): Remove typedef.
9959 (reread_symbols): Use a std::vector.
9960
156d9eab
TT
99612017-04-12 Tom Tromey <tom@tromey.com>
9962
9963 * mi/mi-main.c (exec_direction_forward): Remove.
9964 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
9965 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
9966 scoped_restore.
9967 * guile/guile.c (guile_repl_command, guile_command)
9968 (gdbscm_execute_gdb_command): Use scoped_restore.
9969 * go-exp.y (go_parse): Use scoped_restore.
9970 * d-exp.y (d_parse): Use scoped_restore.
9971 * cli/cli-decode.c (cmd_func): Use scoped_restore.
9972 * c-exp.y (c_parse): Use scoped_restore.
9973
4d89769a
TT
99742017-04-12 Tom Tromey <tom@tromey.com>
9975
9976 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
9977 (mi_parse): Update return type.
9978 (mi_parse_free): Remove.
9979 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
9980 (mi_parse::~mi_parse): Rename from mi_parse_free.
9981 (mi_parse_cleanup): Remove.
9982 (mi_parse): Return a unique_ptr. Use new.
9983 * mi/mi-main.c (mi_execute_command): Update.
9984
4b217cc7
TT
99852017-04-12 Tom Tromey <tom@tromey.com>
9986
9987 * location.c (explicit_location_lex_one): Return a
9988 unique_xmalloc_ptr.
9989 (string_to_explicit_location): Update. Remove cleanups.
9990
59d3651b
TT
99912017-04-12 Tom Tromey <tom@tromey.com>
9992
9993 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
9994 (compare_value_and_voffset): Change type. Update.
9995 (compute_vtable_size): Change type of "offset_vec".
9996 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
9997 (gnuv3_get_typeid): Remove extraneous declaration.
9998
b24b0d6c
TT
99992017-04-12 Tom Tromey <tom@tromey.com>
10000
10001 * charset.h (wchar_iterator): Fix comment.
10002
80a3b8c5
TT
100032017-04-12 Tom Tromey <tom@tromey.com>
10004
10005 * charset.c (iconv_wrapper): New class.
10006 (cleanup_iconv): Remove.
10007 (convert_between_encodings): Use it.
10008
c83dd867
TT
100092017-04-12 Tom Tromey <tom@tromey.com>
10010
10011 * symfile.h (increment_reading_symtab): Update type.
10012 * symfile.c (decrement_reading_symtab): Remove.
10013 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10014 * psymtab.c (psymtab_to_symtab): Update.
10015 * dwarf2read.c (dw2_instantiate_symtab): Update.
10016
0e8621a0
TT
100172017-04-12 Tom Tromey <tom@tromey.com>
10018
10019 * jit.c (struct jit_reader): Declare separately. Add constructor
10020 and destructor. Change type of "handle".
10021 (loaded_jit_reader): Define separately.
10022 (jit_reader_load): Update. New "new".
10023 (jit_reader_unload_command): Use "delete".
10024 * gdb-dlfcn.h (struct dlclose_deleter): New.
10025 (gdb_dlhandle_up): New typedef.
10026 (gdb_dlopen, gdb_dlsym): Update types.
10027 (gdb_dlclose): Remove.
10028 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10029 (gdb_dlsym): Change type of "handle".
10030 (make_cleanup_dlclose): Remove.
10031 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10032 * compile/compile-c-support.c (load_libcc): Update.
10033
67d89901
TT
100342017-04-12 Tom Tromey <tom@tromey.com>
10035
10036 * symtab.h (find_pcs_for_symtab_line): Change return type.
10037 * symtab.c (find_pcs_for_symtab_line): Change return type.
10038 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10039 type of "vec". Update.
10040 (ltpy_get_pcs_for_line): Update.
10041 * linespec.c (decode_digits_ordinary): Update.
10042
93921405
TT
100432017-04-12 Tom Tromey <tom@tromey.com>
10044
10045 * tracepoint.c (actions_command): Update.
10046 * python/python.c (python_command, python_interactive_command):
10047 Update.
10048 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10049 * guile/guile.c (guile_command): Update.
10050 * defs.h (read_command_lines, read_command_lines_1): Return
10051 command_line_up.
10052 (command_lines_deleter): New struct.
10053 (command_line_up): New typedef.
10054 * compile/compile.c (compile_code_command)
10055 (compile_print_command): Update.
10056 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10057 command_line_up.
10058 (make_cleanup_free_command_lines): Remove.
10059 * cli/cli-script.c (get_command_line, read_command_lines_1)
10060 (copy_command_lines): Return command_line_up.
10061 (while_command, if_command, read_command_lines, define_command)
10062 (document_command): Update.
10063 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10064 Remove.
10065 * breakpoint.h (breakpoint_set_commands): Change type of
10066 "commands".
10067 * breakpoint.c (breakpoint_set_commands): Change type of
10068 "commands". Update.
10069 (do_map_commands_command, update_dprintf_command_list)
10070 (create_tracepoint_from_upload): Update.
10071
ffc2605c
TT
100722017-04-12 Tom Tromey <tom@tromey.com>
10073
10074 * tracepoint.c (scope_info): Update.
10075 * spu-tdep.c (spu_catch_start): Update.
10076 * python/python.c (gdbpy_decode_line): Update.
10077 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10078 * python/py-breakpoint.c (bppy_init): Update.
10079 * probe.c (parse_probes): Update.
10080 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10081 * location.h (event_location_deleter): New struct.
10082 (event_location_up): New typedef.
10083 (new_linespec_location, new_address_location, new_probe_location)
10084 (new_explicit_location, copy_event_location)
10085 (string_to_event_location, string_to_event_location_basic)
10086 (string_to_explicit_location): Update return type.
10087 (make_cleanup_delete_event_location): Remove.
10088 * location.c (new_linespec_location, new_address_location)
10089 (new_probe_location, new_explicit_location, copy_event_location):
10090 Return event_location_up.
10091 (delete_event_location_cleanup)
10092 (make_cleanup_delete_event_location): Remove.
10093 (string_to_explicit_location, string_to_event_location_basic)
10094 (string_to_event_location): Return event_location_up.
10095 * linespec.c (canonicalize_linespec, event_location_to_sals)
10096 (decode_line_with_current_source)
10097 (decode_line_with_last_displayed, decode_objc): Update.
10098 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10099 * completer.c (location_completer): Update.
10100 * cli/cli-cmds.c (edit_command, list_command): Update.
10101 * breakpoint.c (create_overlay_event_breakpoint)
10102 (create_longjmp_master_breakpoint)
10103 (create_std_terminate_master_breakpoint)
10104 (create_exception_master_breakpoint)
10105 (create_thread_event_breakpoint): Update.
10106 (init_breakpoint_sal): Update. Remove some dead code.
10107 (create_breakpoint_sal): Change type of "location". Update.
10108 (create_breakpoints_sal, create_breakpoint, break_command_1)
10109 (dprintf_command, break_range_command, until_break_command)
10110 (init_ada_exception_breakpoint)
10111 (strace_marker_create_sals_from_location)
10112 (update_static_tracepoint, trace_command, ftrace_command)
10113 (strace_command, create_tracepoint_from_upload): Update.
10114 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10115 * ax-gdb.c (agent_command_1): Update.
10116
8f10c932
PA
101172017-04-12 Pedro Alves <palves@redhat.com>
10118
10119 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10120 * configure.tgt: Handle i[34567]86-*-go32* and
10121 i[34567]86-*-msdosdjgpp*.
10122 * i386-tdep.c (i386_svr4_reg_to_regnum):
10123 Make extern.
10124 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10125 i386-go32-tdep.c.
10126 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10127 * i386-go32-tdep.c: New file.
10128 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10129 declarations.
10130
0a31ccfb
SM
101312017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10132
10133 * aix-thread.c (pd_status2str): Change return type to const char *.
10134
e9bb3fbb
PA
101352017-04-12 Pedro Alves <palves@redhat.com>
10136
10137 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10138 calls to set_gdbarch_gnu_triplet_regexp.
10139
53375380
PA
101402017-04-12 Pedro Alves <palves@redhat.com>
10141
10142 PR gdb/21323
10143 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10144 New enum value.
10145 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10146 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10147 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10148 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10149 * gdbarch.h, gdbarch.c: Regenerate.
10150 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10151 gdbarch_wchar_bit and gdbarch_wchar_signed.
10152 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10153 * arm-tdep.c (arm_gdbarch_init): Likewise.
10154 * avr-tdep.c (avr_gdbarch_init): Likewise.
10155 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10156 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10157 * i386-tdep.c (i386_go32_init_abi): Likewise.
10158 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10159 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10160 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10161 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10162 * sh-tdep.c (sh_gdbarch_init): Likewise.
10163 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10164 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10165 * windows-tdep.c (windows_init_abi): Likewise.
10166 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10167
53e710ac
PA
101682017-04-12 Pedro Alves <palves@redhat.com>
10169
10170 PR c++/21323
10171 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10172 cplus_primitive_type_char32_t>: New enum values.
10173 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10174 and cplus_primitive_type_char32_t.
10175 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10176 32, use the archtecture's built-in type for char16_t and char32_t,
10177 respectively. Otherwise, fallback to init_integer_type as before,
10178 but make the type unsigned, and issue a complaint.
10179 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10180
ab0538b8
AH
101812017-04-12 Alan Hayward <alan.hayward@arm.com>
10182
5e0e0422 10183 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10184 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10185
5430098f
SDJ
101862017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10187
10188 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10189 'const char *'.
10190
7c5ded6a
SDJ
101912017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10192
10193 * common/common-utils.c (free_vector_argv): New function.
10194 * common/common-utils.h: Include <vector>.
10195 (free_vector_argv): New prototype.
10196 * darwin-nat.c (darwin_create_inferior): Rewrite function
10197 prototype in order to constify "exec_file" and accept a
10198 "std::string" for "allargs".
10199 * fork-child.c: Include <vector>.
10200 (breakup_args): Rewrite function, using C++.
10201 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10202 and accept "std::string" for "allargs". Update the code to
10203 calculate "argv" based on "allargs". Update calls to "exec_fun"
10204 and "execvp".
10205 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10206 order to constify "exec_file" and accept a "std::string" for
10207 "allargs".
10208 * go32-nat.c (go32_create_inferior): Likewise.
10209 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10210 * infcmd.c (run_command_1): Constify "exec_file". Use
10211 "std::string" for inferior arguments.
10212 * inferior.h (fork_inferior): Update prototype.
10213 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10214 prototype in order to constify "exec_file" and accept a
10215 "std::string" for "allargs".
10216 * nto-procfs.c (procfs_create_inferior): Likewise.
10217 * procfs.c (procfs_create_inferior): Likewise.
10218 * remote-sim.c (gdbsim_create_inferior): Likewise.
10219 * remote.c (extended_remote_run): Update code to accept
10220 "std::string" as argument.
10221 (extended_remote_create_inferior): Rewrite function prototype in
10222 order to constify "exec_file" and accept a "std::string" for
10223 "allargs".
10224 * rs6000-nat.c (super_create_inferior): Likewise.
10225 (rs6000_create_inferior): Likewise.
10226 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10227 * windows-nat.c (windows_create_inferior): Likewise.
10228
ae0eee42
PA
102292017-04-11 Pedro Alves <palves@redhat.com>
10230
10231 * thread.c: Fix whitespace throughout.
10232
a6acac06
PR
102332017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10234
10235 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10236
64403bd1
AH
102372017-04-11 Alan Hayward <alan.hayward@arm.com>
10238
10239 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10240
a5bef50f
SDJ
102412017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10242
10243 PR gdb/21364
10244 * osdata.c (info_osdata): Check if 'type' is an empty string
10245 instead of NULL.
10246
9295a5a9
PA
102472017-04-10 Pedro Alves <palves@redhat.com>
10248
10249 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10250 (ptid_to_global_thread_id, in_thread_list)
10251 (do_captured_list_thread_ids, set_resumed, set_running)
10252 (set_executing, set_stop_requested, finish_thread_state)
10253 (validate_registers_access, can_access_registers_ptid)
10254 (print_thread_info_1, switch_to_thread)
10255 (do_restore_current_thread_cleanup)
10256 (make_cleanup_restore_current_thread, thread_command)
10257 (thread_name_command): Use operator== instead of ptid_equal.
10258
996812e3
PA
102592017-04-10 Pedro Alves <palves@redhat.com>
10260
10261 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10262 (current_thread_cleanup_chain): Delete.
10263 (restore_current_thread_cleanup_dtor)
10264 (make_cleanup_restore_current_thread): Remove references to
10265 current_thread_cleanup_chain.
10266
845b344f
AH
102672017-04-10 Alan Hayward <alan.hayward@arm.com>
10268
10269 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10270 REG_UNKNOWN.
10271
803bdfe4
YQ
102722017-04-10 Yao Qi <yao.qi@linaro.org>
10273
10274 PR gdb/19942
10275 * gdbthread.h (thread_info::deletable): New method.
10276 (thread_info::incref): New method.
10277 (thread_info::decref): New method.
10278 (thread_info::refcount): Move it to private.
10279 * infrun.c (save_stop_context): Call inc_refcount.
10280 (release_stop_context_cleanup): Likewise.
10281 * thread.c (set_thread_exited): New function.
10282 (init_thread_list): Delete "tp" only it is deletable, otherwise
10283 call set_thread_exited.
10284 (delete_thread_1): Call set_thread_exited.
10285 (current_thread_cleanup) <inferior_pid>: Remove.
10286 <thread>: New field.
10287 (restore_current_thread_ptid_changed): Removed.
10288 (do_restore_current_thread_cleanup): Adjust.
10289 (restore_current_thread_cleanup_dtor): Don't call
10290 find_thread_ptid.
10291 (set_thread_refcount): Use dec_refcount.
10292 (make_cleanup_restore_current_thread): Adjust.
10293 (thread_apply_all_command): Call inc_refcount.
10294 (_initialize_thread): Don't call
10295 observer_attach_thread_ptid_changed.
10296
8c25b497
YQ
102972017-04-10 Yao Qi <yao.qi@linaro.org>
10298
10299 * thread.c (delete_thread_1): Hoist code on marking thread as
10300 exited.
10301
8473b447
SM
103022017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10303
10304 * windows-nat.c (windows_detach): Initialize ptid with
10305 minus_one_ptid.
10306
6670ec13
SM
103072017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10308
10309 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10310
ba2f91bb
AH
103112017-04-07 Alan Hayward <alan.hayward@arm.com>
10312
10313 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10314 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10315 (bfin_pseudo_register_write): Likewise
10316
436252de
SM
103172017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10318
10319 * common/ptid.h (struct ptid): Change to...
10320 (class ptid_t): ... this.
10321 <ptid_t>: New constructors.
10322 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10323 matches>: New methods.
10324 <make_null, make_minus_one>: New static methods.
10325 <pid>: Rename to...
10326 <m_pid>: ...this.
10327 <lwp>: Rename to...
10328 <m_lwp>: ...this.
10329 <tid>: Rename to...
10330 <m_tid>: ...this.
10331 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10332 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10333 as references, move comment to class ptid_t.
10334 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10335 ptid_t static methods.
10336 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10337 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10338 Take ptid arguments as references, implement using ptid_t methods.
10339 * unittests/ptid-selftests.c: New file.
10340 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10341 unittests/ptid-selftests.c.
10342 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10343
0dedf377
TP
103442017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10345
10346 * python/python.c (python_run_simple_file): Cast mode literal to
10347 non-const char pointer as expected by PyFile_FromString.
10348
4e9868d4
SM
103492017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10350
10351 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10352 minus_one_ptid and null_ptid.
10353
9bf2a700
PA
103542017-04-05 Pedro Alves <palves@redhat.com>
10355
10356 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10357 * configure: Regenerate.
10358
a121b7c1
PA
103592017-04-05 Pedro Alves <palves@redhat.com>
10360
10361 * ada-exp.y (yyerror): Constify.
10362 * ada-lang.c (bound_name, get_selections)
10363 (ada_variant_discrim_type)
10364 (ada_variant_discrim_name, ada_value_struct_elt)
10365 (ada_lookup_struct_elt_type, is_unchecked_variant)
10366 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10367 (catch_ada_exception_command_split)
10368 (catch_ada_assert_command_split, catch_assert_command)
10369 (ada_op_name): Constify.
10370 * ada-lang.h (ada_yyerror, get_selections)
10371 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10372 * arc-tdep.c (arc_print_frame_cache): Constify.
10373 * arm-tdep.c (arm_skip_stub): Constify.
10374 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10375 (gen_aggregate_elt_ref): Constify.
10376 * bcache.c (print_bcache_statistics): Constify.
10377 * bcache.h (print_bcache_statistics): Constify.
10378 * break-catch-throw.c (catch_exception_command_1):
10379 * breakpoint.c (struct ep_type_description::description):
10380 Constify.
10381 (add_solib_catchpoint): Constify.
10382 (catch_fork_command_1): Add cast.
10383 (add_catch_command): Constify.
10384 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10385 Constify.
10386 * bsd-uthread.c (bsd_uthread_state): Constify.
10387 * buildsym.c (patch_subfile_names): Constify.
10388 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10389 Constify.
10390 * c-exp.y (yyerror): Constify.
10391 (token::oper): Constify.
10392 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10393 * c-varobj.c (cplus_describe_child): Constify.
10394 * charset.c (find_charset_names): Add cast.
10395 (find_charset_names): Constify array and add const_cast.
10396 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10397 (edit_command): Constify.
10398 * cli/cli-decode.c (lookup_cmd): Constify.
10399 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10400 Constify.
10401 (struct dump_context): Constify.
10402 (add_dump_command, restore_command): Constify.
10403 * cli/cli-script.c (get_command_line): Constify.
10404 * cli/cli-script.h (get_command_line): Constify.
10405 * cli/cli-utils.c (check_for_argument): Constify.
10406 * cli/cli-utils.h (check_for_argument): Constify.
10407 * coff-pe-read.c (struct read_pe_section_data): Constify.
10408 * command.h (lookup_cmd): Constify.
10409 * common/print-utils.c (decimal2str): Constify.
10410 * completer.c (gdb_print_filename): Constify.
10411 * corefile.c (set_gnutarget): Constify.
10412 * cp-name-parser.y (yyerror): Constify.
10413 * cp-valprint.c (cp_print_class_member): Constify.
10414 * cris-tdep.c (cris_register_name, crisv32_register_name):
10415 Constify.
10416 * d-exp.y (yyerror): Constify.
10417 (struct token::oper): Constify.
10418 * d-lang.h (d_yyerror): Constify.
10419 * dbxread.c (struct header_file_location::name): Constify.
10420 (add_old_header_file, add_new_header_file, last_function_name)
10421 (dbx_next_symbol_text, add_bincl_to_list)
10422 (find_corresponding_bincl_psymtab, set_namestring)
10423 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10424 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10425 * defs.h (command_line_input, print_address_symbolic)
10426 (deprecated_readline_begin_hook): Constify.
10427 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10428 Constify.
10429 * event-top.c (handle_line_of_input): Constify and add cast.
10430 * exceptions.c (catch_errors): Constify.
10431 * exceptions.h (catch_errors): Constify.
10432 * expprint.c (print_subexp_standard, op_string, op_name)
10433 (op_name_standard, dump_raw_expression, dump_raw_expression):
10434 * expression.h (op_name, op_string, dump_raw_expression):
10435 Constify.
10436 * f-exp.y (yyerror): Constify.
10437 (struct token::oper): Constify.
10438 (struct f77_boolean_val::name): Constify.
10439 * f-lang.c (f_word_break_characters): Constify.
10440 * f-lang.h (f_yyerror): Constify.
10441 * fork-child.c (fork_inferior): Add cast.
10442 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10443 (new_variant): Constify.
10444 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10445 * gdbarch.c: Regenerate.
10446 * gdbcore.h (set_gnutarget): Constify.
10447 * go-exp.y (yyerror): Constify.
10448 (token::oper): Constify.
10449 * go-lang.h (go_yyerror): Constify.
10450 * go32-nat.c (go32_sysinfo): Constify.
10451 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10452 * guile/scm-cmd.c (cmdscm_function): Constify.
10453 * guile/scm-param.c (pascm_param_value): Constify.
10454 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10455 (h8300sx_register_name): Constify.
10456 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10457 Constify.
10458 * ia64-tdep.c (ia64_register_names): Constify.
10459 * infcmd.c (construct_inferior_arguments): Constify.
10460 (path_command, attach_post_wait): Constify.
10461 * language.c (show_range_command, show_case_command)
10462 (unk_lang_error): Constify.
10463 * language.h (language_defn::la_error)
10464 (language_defn::la_name_of_this): Constify.
10465 * linespec.c (decode_line_2): Constify.
10466 * linux-thread-db.c (thread_db_err_str): Constify.
10467 * lm32-tdep.c (lm32_register_name): Constify.
10468 * m2-exp.y (yyerror): Constify.
10469 * m2-lang.h (m2_yyerror): Constify.
10470 * m32r-tdep.c (m32r_register_names): Constify and make static.
10471 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10472 * m88k-tdep.c (m88k_register_name): Constify.
10473 * macroexp.c (appendmem): Constify.
10474 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10475 (upgrade_type, parse_external, parse_partial_symbols)
10476 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10477 (new_symbol): Constify.
10478 * memattr.c (mem_info_command): Constify.
10479 * mep-tdep.c (register_name_from_keyword): Constify.
10480 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10481 Constify.
10482 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10483 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10484 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10485 cast.
10486 (mi_execute_async_cli_command): Constify.
10487 * mips-tdep.c (mips_register_name): Constify.
10488 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10489 (am33_register_name, am33_2_register_name)
10490 * moxie-tdep.c (moxie_register_names): Constify.
10491 * nat/linux-osdata.c (osdata_type): Constify fields.
10492 * nto-tdep.c (nto_parse_redirection): Constify.
10493 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10494 (lookup_child_selector): Constify.
10495 (objc_methcall::name): Constify.
10496 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10497 (lookup_struct_typedef): Constify.
10498 * objfiles.c (pc_in_section): Constify.
10499 * objfiles.h (pc_in_section): Constify.
10500 * p-exp.y (struct token::oper): Constify.
10501 (yyerror): Constify.
10502 * p-lang.h (pascal_yyerror): Constify.
10503 * parser-defs.h (op_name_standard): Constify.
10504 (op_print::string): Constify.
10505 (exp_descriptor::op_name): Constify.
10506 * printcmd.c (print_address_symbolic): Constify.
10507 * psymtab.c (print_partial_symbols): Constify.
10508 * python/py-breakpoint.c (stop_func): Constify.
10509 (bppy_get_expression): Constify.
10510 * python/py-cmd.c (cmdpy_completer::name): Constify.
10511 (cmdpy_function): Constify.
10512 * python/py-event.c (evpy_add_attribute)
10513 (gdbpy_initialize_event_generic): Constify.
10514 * python/py-event.h (evpy_add_attribute)
10515 (gdbpy_initialize_event_generic): Constify.
10516 * python/py-evts.c (add_new_registry): Constify.
10517 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10518 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10519 * python/py-inferior.c (get_buffer): Add cast.
10520 * python/py-param.c (parm_constant::name): Constify.
10521 * python/py-unwind.c (fprint_frame_id): Constify.
10522 * python/python.c (gdbpy_parameter_value): Constify.
10523 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10524 * remote.c (memory_packet_config::name): Constify.
10525 (show_packet_config_cmd, remote_write_bytes)
10526 (remote_buffer_add_string):
10527 * reverse.c (exec_reverse_once): Constify.
10528 * rs6000-tdep.c (variant::name, variant::description): Constify.
10529 * rust-exp.y (rustyyerror): Constify.
10530 * rust-lang.c (rust_op_name): Constify.
10531 * rust-lang.h (rustyyerror): Constify.
10532 * serial.h (serial_ops::name): Constify.
10533 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10534 (sh_sh3e_register_name, sh_sh2e_register_name)
10535 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10536 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10537 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10538 (sh_sh4al_dsp_register_name): Constify.
10539 * sh64-tdep.c (sh64_register_name): Constify.
10540 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10541 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10542 * stabsread.c (patch_block_stabs, read_type_number)
10543 (ref_map::stabs, ref_add, process_reference)
10544 (symbol_reference_defined, define_symbol, define_symbol)
10545 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10546 (read_one_struct_field, read_struct_fields, read_baseclasses)
10547 (read_tilde_fields, read_struct_type, read_array_type)
10548 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10549 (read_huge_number, read_range_type, read_args, common_block_start)
10550 (find_name_end): Constify.
10551 * stabsread.h (common_block_start, define_symbol)
10552 (process_one_symbol, symbol_reference_defined, ref_add):
10553 * symfile.c (get_section_index, add_symbol_file_command):
10554 * symfile.h (get_section_index): Constify.
10555 * target-descriptions.c (tdesc_type::name): Constify.
10556 (tdesc_free_type): Add cast.
10557 * target.c (find_default_run_target):
10558 (add_deprecated_target_alias, find_default_run_target)
10559 (target_announce_detach): Constify.
10560 (do_option): Constify.
10561 * target.h (add_deprecated_target_alias): Constify.
10562 * thread.c (print_thread_info_1): Constify.
10563 * top.c (deprecated_readline_begin_hook, command_line_input):
10564 Constify.
10565 (init_main): Add casts.
10566 * top.h (handle_line_of_input): Constify.
10567 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10568 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10569 (tfind_command): Rename to ...
10570 (tfind_command_1): ... this and constify.
10571 (tfind_command): New function.
10572 (tfind_end_command, tfind_start_command): Adjust.
10573 (encode_source_string): Constify.
10574 * tracepoint.h (encode_source_string): Constify.
10575 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10576 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10577 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10578 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10579 * tui/tui-win.c (parse_scrolling_args): Constify.
10580 * tui/tui-windata.c (tui_erase_data_content): Constify.
10581 * tui/tui-windata.h (tui_erase_data_content): Constify.
10582 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10583 * tui/tui.c (tui_enable): Add cast.
10584 * utils.c (defaulted_query): Constify.
10585 (init_page_info): Add cast.
10586 (puts_debug, subset_compare): Constify.
10587 * utils.h (subset_compare): Constify.
10588 * varobj.c (varobj_format_string): Constify.
10589 * varobj.h (varobj_format_string): Constify.
10590 * vax-tdep.c (vax_register_name): Constify.
10591 * windows-nat.c (windows_detach): Constify.
10592 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10593 * xml-support.c (gdb_xml_end_element): Constify.
10594 * xml-tdesc.c (tdesc_start_reg): Constify.
10595 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10596 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10597 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10598
995816ba
PA
105992017-04-05 Pedro Alves <palves@redhat.com>
10600
10601 * proc-api.c (struct trans): Constify.
10602 (procfs_note): Constify.
10603 * proc-events.c (struct trans, syscall_table):
10604 * proc-flags.c (struct trans): Constify.
10605 * proc-utils.h (procfs_note): Constify.
10606 * proc-why.c (struct trans): Constify.
10607 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10608 (procfs_detach): Constify.
10609 * sol-thread.c (struct string_map): Constify.
10610 (td_err_string, td_state_string): Constify.
10611
3e83a920
PA
106122017-04-05 Pedro Alves <palves@redhat.com>
10613
10614 * proc-api.c (procfs_filename): Don't initialize
10615 procfs_filename.
10616 (prepare_to_trace): Assume procfs_filename is non-NULL.
10617 (_initialize_proc_api): Give procfs_filename a default value here.
10618
63160a43
PA
106192017-04-05 Pedro Alves <palves@redhat.com>
10620
10621 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10622 'cond_string' parameter.
10623 (extract_exception_regexp): Constify 'string' parameter.
10624 (catch_exception_command_1): Constify.
10625 * breakpoint.c (init_catchpoint)
10626 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10627 parameter.
10628 (ep_parse_optional_if_clause, catch_fork_command_1)
10629 (catch_exec_command_1): Constify.
10630 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10631 parameter.
10632 (ep_parse_optional_if_clause): Constify.
10633 * cli/cli-utils.c (remove_trailing_whitespace)
10634 (check_for_argument): Constify.
10635 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10636 non-const overload.
10637 (check_for_argument): Likewise.
10638
9b2eba3d
PA
106392017-04-05 Pedro Alves <palves@redhat.com>
10640
10641 * event-top.c (command_line_handler): Add cast to execute_command
10642 call.
10643 * record-btrace.c (cmd_record_btrace_bts_start)
10644 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10645 (cmd_record_btrace_start): Add cast to execute_command call.
10646 * record-full.c (record_full_goto_insn):
10647 * record.c (record_start, record_stop): Add cast to
10648 execute_command_to_string calls.
10649 (cmd_record_start): Add cast to execute_command calls.
10650
2adadf51
PA
106512017-04-05 Pedro Alves <palves@redhat.com>
10652
10653 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10654 static inline function.
10655 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10656 array and use gdb_PyArg_ParseTupleAndKeywords.
10657 * python/py-cmd.c (cmdpy_init): Likewise.
10658 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10659 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10660 (infpy_search_memory): Likewise.
10661 * python/py-objfile.c (objfpy_add_separate_debug_file)
10662 (gdbpy_lookup_objfile): Likewise.
10663 * python/py-symbol.c (gdbpy_lookup_symbol)
10664 (gdbpy_lookup_global_symbol): Likewise.
10665 * python/py-type.c (gdbpy_lookup_type): Likewise.
10666 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10667 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10668 Likewise.
10669
0d1f4ceb
PA
106702017-04-05 Pedro Alves <palves@redhat.com>
10671
10672 * python/python-internal.h (gdb_PyGetSetDef): New type.
10673 * python/py-block.c (block_object_getset)
10674 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10675 * python/py-event.c (event_object_getset)
10676 (finish_breakpoint_object_getset): Likewise.
10677 * python/py-inferior.c (inferior_object_getset): Likewise.
10678 * python/py-infthread.c (thread_object_getset): Likewise.
10679 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10680 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10681 * python/py-objfile.c (objfile_getset): Likewise.
10682 * python/py-progspace.c (pspace_getset): Likewise.
10683 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10684 Likewise.
10685 * python/py-record.c (recpy_record_getset): Likewise.
10686 * python/py-symbol.c (symbol_object_getset): Likewise.
10687 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10688 Likewise.
10689 * python/py-type.c (type_object_getset, field_object_getset):
10690 Likewise.
10691 * python/py-value.c (value_object_getset): Likewise.
10692
4d759979
PA
106932017-04-05 Pedro Alves <palves@redhat.com>
10694
10695 * python/python-internal.h (gdb_PyObject_CallMethod)
10696 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10697 New functions.
10698 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10699 (PySys_GetObject, PySys_SetPath): New macros.
10700
fdf9e36f
PA
107012017-04-05 Pedro Alves <palves@redhat.com>
10702
10703 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10704 info_osdata_command.
10705 * osdata.c (info_osdata_command): Rename to ...
10706 (info_osdata): ... this. Constify 'type' parameter, and remove
10707 the 'from_tty' parameter. Accept NULL TYPE.
10708 (info_osdata_command): New function.
10709 * osdata.h (info_osdata_command): Remove declaration.
10710 (info_osdata): New declaration.
10711
9f33b8b7
PA
107122017-04-05 Pedro Alves <palves@redhat.com>
10713
10714 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10715 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10716 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10717 parameter.
10718 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10719 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10720 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10721 parameter.
10722 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10723 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10724 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10725 (mi_cmd_file_list_exec_source_files)
10726 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10727 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10728 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10729 parameter.
10730 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10731 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10732 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10733 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10734 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10735 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10736 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10737 'command' parameter.
10738 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
10739 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
10740 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
10741 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
10742 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
10743 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
10744 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
10745 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
10746 (mi_cmd_var_set_update_range): Constify 'command' parameter.
10747 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
10748 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
10749 parameter.
10750 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
10751 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
10752 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
10753 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
10754 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
10755 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
10756 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
10757 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
10758 (mi_cmd_data_list_changed_registers)
10759 (mi_cmd_data_write_register_values)
10760 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
10761 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
10762 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
10763 (mi_cmd_list_features, mi_cmd_list_target_features)
10764 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
10765 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
10766 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
10767 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
10768 (mi_cmd_trace_frame_collected): Constify 'command'
10769 parameter.
10770 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
10771 'command' parameter.
10772
67cb5b2d
PA
107732017-04-05 Pedro Alves <palves@redhat.com>
10774
10775 * ada-lang.c (ada_completer_word_break_characters): Now a const
10776 array.
10777 (ada_get_gdb_completer_word_break_characters): Constify.
10778 * completer.c (gdb_completer_command_word_break_characters)
10779 (gdb_completer_file_name_break_characters)
10780 (gdb_completer_quote_characters): Now const arrays.
10781 (get_gdb_completer_quote_characters): Constify.
10782 (set_rl_completer_word_break_characters): New function.
10783 (set_gdb_completion_word_break_characters)
10784 (complete_line_internal): Use it.
10785 * completer.h (get_gdb_completer_quote_characters): Constify.
10786 (set_rl_completer_word_break_characters): Declare.
10787 * f-lang.c (f_word_break_characters): Constify.
10788 * language.c (default_word_break_characters): Constify.
10789 * language.h (language_defn::la_word_break_characters): Constify.
10790 (default_word_break_characters): Constify.
10791 * top.c (init_main): Use set_rl_completer_word_break_characters.
10792
7a114964
PA
107932017-04-05 Pedro Alves <palves@redhat.com>
10794
10795 * aix-thread.c (aix_thread_pid_to_str)
10796 (aix_thread_extra_thread_info): Constify.
10797 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
10798 * bsd-uthread.c (bsd_uthread_extra_thread_info)
10799 (bsd_uthread_pid_to_str): Constify.
10800 * corelow.c (core_pid_to_str): Constify.
10801 * darwin-nat.c (darwin_pid_to_str): Constify.
10802 * fbsd-nat.c (fbsd_pid_to_str): Constify.
10803 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
10804 Constify.
10805 * gnu-nat.c (gnu_pid_to_str): Constify.
10806 * go32-nat.c (go32_pid_to_str): Constify.
10807 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
10808 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
10809 * inferior.c (inferior_pid_to_str): Constify.
10810 * linux-nat.c (linux_nat_pid_to_str): Constify.
10811 * linux-tdep.c (linux_core_pid_to_str): Constify.
10812 * linux-thread-db.c (thread_db_pid_to_str)
10813 (thread_db_extra_thread_info): Constify.
10814 * nto-tdep.c (nto_extra_thread_info): Constify.
10815 * nto-tdep.h (nto_extra_thread_info): Constify.
10816 * obsd-nat.c (obsd_pid_to_str): Constify.
10817 * procfs.c (procfs_pid_to_str): Constify.
10818 * ravenscar-thread.c (ravenscar_extra_thread_info)
10819 (ravenscar_pid_to_str): Constify.
10820 * remote-sim.c (gdbsim_pid_to_str): Constify.
10821 * remote.c (remote_threads_extra_info, remote_pid_to_str):
10822 Constify.
10823 * sol-thread.c (solaris_pid_to_str): Constify.
10824 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
10825 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
10826 * target.c (default_pid_to_str, target_pid_to_str)
10827 (normal_pid_to_str, default_pid_to_str): Constify.
10828 * target.h (target_ops::to_pid_to_str)
10829 (target_ops::to_extra_thread_info): Constify.
10830 (target_pid_to_str, normal_pid_to_str): Constify.
10831 * windows-nat.c (windows_pid_to_str): Constify.
10832 * gdbarch.sh (core_pid_to_str): Constify.
10833 * target-delegates.c: Regenerate.
10834 * gdbarch.h, gdbarch.c: Regenerate.
10835
69bbf465
PA
108362017-04-05 Pedro Alves <palves@redhat.com>
10837
10838 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
10839 the memory of the temporary warning_pre_print override.
10840 * utils.c (warning_pre_print): Constify.
10841 * utils.h (warning_pre_print): Constify.
10842
be47f9e8
PA
108432017-04-05 Pedro Alves <palves@redhat.com>
10844
10845 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
10846 (shell_command): New function.
10847 (make_command): Use std::string.
10848 (init_cli_cmds): Register shell_command instead of shell_escape.
10849
bde6261a
PA
108502017-04-05 Pedro Alves <palves@redhat.com>
10851
10852 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
10853 * tracepoint.c (default_collect): Don't initialize.
10854
b38ef47f
PA
108552017-04-05 Pedro Alves <palves@redhat.com>
10856
10857 * macroexp.c (macro_buffer::shared): Now a bool.
10858 (init_buffer): Update.
10859 (init_shared_buffer): Constify 'addr' parameter.
10860 (substitute_args, expand, macro_expand, macro_expand_next): Remove
10861 casts.
10862
f995bbe8
PA
108632017-04-05 Pedro Alves <palves@redhat.com>
10864
10865 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
10866 * disasm.c (set_disassembler_options): Constify local.
10867 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
10868
4a596fe2
SDJ
108692017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
10870
10871 PR gdb/21352
10872 * tracefile.c (tsave_command): Fix argument parsing for '-r'
10873 option.
10874
2cad08ea
YQ
108752017-04-05 Yao Qi <yao.qi@linaro.org>
10876
10877 * frame.c (frame_unwind_register_unsigned): Call
10878 frame_unwind_register_value.
10879
55a98976
YQ
108802017-04-05 Yao Qi <yao.qi@linaro.org>
10881
10882 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
10883 Use gdb_test_multiple, and don't match anchor.
10884
4ac40124
PA
108852017-04-05 Pedro Alves <palves@redhat.com>
10886
10887 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
10888 (Write After Approval): Remove Simon Marchi.
10889
c053b654
PA
108902017-04-05 Pedro Alves <palves@redhat.com>
10891
10892 * common/gdb_optional.h (optional::optional): Make constexpr and
10893 initialize m_dummy.
10894
4c7bf4f9
JB
108952017-04-04 John Baldwin <jhb@FreeBSD.org>
10896
10897 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10898 (amd64fbsd_jmp_buf_reg_offset): Remove.
10899 (amd64fbsd_supply_uthread): Remove function.
10900 (amd64fbsd_collect_uthread): Remove function.
10901 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
10902 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
10903 (x86_64-*-freebsd*): Remove bsd-uthread.o.
10904 (fbsd-nat.c): Update comment.
10905 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10906 (i386fbsd_jmp_buf_reg_offset): Remove.
10907 (i386fbsd_supply_uthread): Remove function.
10908 (i386fbsd_collect_uthread): Remove function.
10909 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
10910
1e1a8bef
JB
109112017-04-04 John Baldwin <jhb@FreeBSD.org>
10912
10913 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
10914 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
10915 * NEWS: Mention that support for FreeBSD/alpha was removed.
10916 * alpha-fbsd-tdep.c: Delete file.
10917 * config/alpha/fbsd.mh: Delete file.
10918 * configure.host: Delete alpha*-*-freebsd* and
10919 alpha*-*-kfreebsd*-gnu.
10920 * configure.tgt: Delete alpha*-*-freebsd* and
10921 alpha*-*-kfreebsd*-gnu.
10922
49907934
JB
109232017-04-04 John Baldwin <jhb@FreeBSD.org>
10924
10925 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
10926 amd64bsd_store_inferior_registers): Use ptid from regcache.
10927
6f77053d
PA
109282017-04-04 Pedro Alves <palves@redhat.com>
10929
10930 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
10931 data fields, make them private and add "m_" prefixes.
10932 (lnp_state_machine::lnp_state_machine): New ctor.
10933 (record_line, check_line_address, handle_set_discriminator)
10934 (handle_set_address, handle_advance_pc, handle_special_opcode)
10935 (handle_advance_line, handle_set_file, handle_negate_stmt)
10936 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
10937 (end_sequence, advance_line): New methods.
10938 (m_gdbarch, m_record_lines_p): New fields.
10939 (lnp_reader_state): Delete.
10940 (dwarf_record_line): Rename to ...
10941 (lnp_state_machine::record_line): ... adjust.
10942 (init_lnp_state_machine): Delete.
10943 (lnp_state_machine::lnp_state_machine): New.
10944 (check_line_address): Rename to ...
10945 (lnp_state_machine::check_line_address): This.
10946 (dwarf_decode_lines_1): Remove reference to "reader_state".
10947 Adjust lnp_state_machine having a non-default ctor. Use bool.
10948 State machine internal state manipulation moved to
10949 lnp_state_machine methods.
10950
9c541725
PA
109512017-04-04 Pedro Alves <palves@redhat.com>
10952
10953 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10954 unittests/offset-type-selftests.c.
10955 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
10956 * common/offset-type.h: New file.
10957 * common/preprocessor.h: New file.
10958 * common/traits.h: New file.
10959 * common/valid-expr.h: New file.
10960 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
10961 sect_offset and cu_offset strong typedefs throughout.
10962 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
10963 typedefs throughout.
10964 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
10965 sect_offset and cu_offset strong typedefs throughout.
10966 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
10967 typedefs throughout.
10968 * gdbtypes.h: Include "common/offset-type.h".
10969 (cu_offset): Now an offset type (strong typedef) instead of a
10970 struct.
10971 (sect_offset): Likewise.
10972 (union call_site_parameter_u): Rename "param_offset" field to
10973 "param_cu_off".
10974 * unittests/offset-type-selftests.c: New file.
10975
ecfb656c
PA
109762017-04-04 Pedro Alves <palves@redhat.com>
10977
10978 * common/underlying.h: New file.
10979 * dwarf2read.c: Include "common/gdb_optional.h" and
10980 "common/underlying.h".
10981 (dir_index, file_name_index): New types.
10982 (file_entry): Use them.
10983 (file_entry::include): Use to_underlying.
10984 (line_header::add_file_name): Use dir_index.
10985 (read_formatted_entries): Use gdb::optional. Read form before
10986 writting to file_entry.
10987 (dwarf_decode_line_header): Use dir_index.
10988 (lnp_state_machine::current_file): Use to_underlying.
10989 (lnp_state_machine::file): Change type to file_name_index.
10990 (dwarf_record_line): Use to_underlying.
10991 (init_lnp_state_machine): Use file_name_index.
10992 (dwarf_decode_lines_1): Use dir_index and file_name_index.
10993
d194f1fe
PA
109942017-04-04 Pedro Alves <palves@redhat.com>
10995
10996 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
10997 operator bool, has_value and get methods.
10998
fff8551c
PA
109992017-04-04 Pedro Alves <palves@redhat.com>
11000
11001 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11002 fields.
11003 (line_header): Initialize all data fields. Change type of
11004 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11005 Change type of include_dirs to std::vector<const char *>. Remove
11006 num_include_dirs, include_dirs_size. Change type of file_names to
11007 std::vector<file_entry>. Remove num_file_names, file_names_size.
11008 (line_header::line_header): New.
11009 (line_header::add_include_dir, line_header::add_file_name): New
11010 methods.
11011 (line_header::include_dir_at): Remove NULL check.
11012 (line_header::file_name_at): Add const overload.
11013 (line_header_up): New unique_ptr typedef.
11014 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11015 std::vector. Remove free_line_header call.
11016 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11017 free_line_header call.
11018 (free_cu_line_header): Delete.
11019 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11020 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11021 Adjust to use std::vector.
11022 (free_line_header): Delete.
11023 (free_line_header_voidp): Use delete.
11024 (add_include_dir): Replace with ...
11025 (line_header::add_include_dir): ... this method. Use std::vector.
11026 (add_file_name): Replace with ...
11027 (line_header::add_file_name): ... this method. Use std::vector.
11028 (add_include_dir_stub): Delete.
11029 (read_formatted_entries): Remove memset.
11030 (dwarf_decode_line_header): Return a line_header_up instead of a
11031 raw pointer. Remove cleanup handling. Pass lambdas to
11032 read_formatted_entries. Adjust to use line_header methods.
11033 (dwarf_decode_lines_1): Adjust to use line_header methods.
11034 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11035 use std::vector.
11036
d62a8ae2
SM
110372017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11038
11039 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11040 instead of struct ptid.
11041
db3a1dc7
AH
110422017-05-04 Alan Hayward <alan.hayward@arm.com>
11043
11044 * frame.c (get_frame_register_bytes): Unwind using value.
11045 (put_frame_register_bytes): Likewise.
11046
b1b45502
IB
110472017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11048
11049 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11050 aggregate-like.
11051
ec13808e
JK
110522017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11053
11054 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11055
12316564
YQ
110562017-03-29 Yao Qi <yao.qi@linaro.org>
11057
11058 * gdbthread.h (struct thread_info): Declare constructor and
11059 destructor. Add some in-class member initializers.
11060 * thread.c (free_thread): Remove.
11061 (init_thread_list): Call delete instead of free_thread.
11062 (new_thread): Call thread_info constructor.
11063 (thread_info::thread_info): New function.
11064 (thread_info::~thread_info): New function.
11065 (delete_thread_1): Call delete instead of free_thread.
11066 (make_cleanup_restore_current_thread): Move tp and frame to
11067 inner block.
11068
fe5f7374
AK
110692017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11070
11071 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11072 (arc_skip_prologue): Likewise.
11073 (arc_make_frame_cache): Likewise.
11074 (arc_pv_get_operand): New function.
11075 (arc_is_in_prologue): Likewise.
11076 (arc_analyze_prologue): Likewise.
11077 (arc_print_frame_cache): Likewise.
11078 (MAX_PROLOGUE_LENGTH): New constant.
11079
eea78757
AK
110802017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11081
11082 * configure.tgt: Add arc-insn.o.
11083 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11084 (dump_arc_instruction_command): New function.
11085 (arc_fprintf_disasm): Likewise.
11086 (arc_disassemble_info): Likewise.
11087 (arc_insn_get_operand_value): Likewise.
11088 (arc_insn_get_operand_value_signed): Likewise.
11089 (arc_insn_get_memory_base_reg): Likewise.
11090 (arc_insn_get_memory_offset): Likewise.
11091 (arc_insn_get_branch_target): Likewise.
11092 (arc_insn_dump): Likewise.
11093 (arc_insn_get_linear_next_pc): Likewise.
11094 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11095 (arc_disassemble_info): Likewise.
11096 (arc_insn_get_branch_target): Likewise.
11097 (arc_insn_get_linear_next_pc): Likewise.
11098 * NEWS: Mention new "maint print arc arc-instruction".
11099
3be78afd
AK
111002017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11101
11102 * arc-tdep (maintenance_print_arc_list): New variable.
11103 (maintenance_print_arc_command): New function.
11104
296ec4fa
AK
111052017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11106
11107 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11108 Add "limm" and "reserved".
11109 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11110 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11111 * arc-tdep.h (arc_regnum): Likewise.
11112
f74f865e
MF
111132017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11114
11115 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11116 for THREADPTR register.
11117 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11118 register.
11119 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11120 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11121 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11122
0d0bf81a
MF
111232017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11124
11125 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11126 registers above gdbarch_num_regs (gdbarch) as privileged in
11127 call0 ABI.
11128
0ce4291e
MF
111292017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11130
11131 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11132 for a single specified register or for all registers in
11133 a0_base..a0_base + C0_NREGS range.
11134 (supply_gregset_reg): Call regcache_raw_supply for a single
11135 specified register or for all registers in a0_base..a0_base +
11136 C0_NREGS range.
11137
c56054f9
MF
111382017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11139
11140 * arch/xtensa.h (C0_NREGS): Add definition.
11141 * xtensa-tdep.c (C0_NREGS): Remove definition.
11142
a4398628
MF
111432017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11144
11145 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11146 Drop xtensa_default_isa initialization.
11147 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11148
8c43009f
PA
111492017-03-27 Pedro Alves <palves@redhat.com>
11150
11151 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11152 (file_entry::include_dir): New method.
11153 (line_header::include_dir_at, line_header::file_name_at): New
11154 methods.
11155 (setup_type_unit_groups, setup_type_unit_groups)
11156 (psymtab_include_file_name): Simplify using the new methods.
11157 (lnp_state_machine) <the_line_header>: New field.
11158 <file>: Add comment.
11159 (lnp_state_machine::current_file): New method.
11160 (dwarf_record_line): Simplify using the new methods.
11161 (init_lnp_state_machine): Initialize the "the_line_header" field.
11162 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11163 Simplify using the new methods.
11164
a7e80b9e
PA
111652017-03-27 Pedro Alves <palves@redhat.com>
11166
11167 * cp-name-parser.y (make_empty): Delete.
11168 (demangler_special, nested_name, ptr_operator, array_indicator)
11169 (direct_declarator, declarator_1): Use fill_comp instead of
11170 make_empty.
11171
21047726
PA
111722017-03-27 Pedro Alves <palves@redhat.com>
11173
11174 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11175 to ATTRIBUTE_PRINTF.
11176 * solib-target.c (library_list_start_list): Print "string" not
11177 "version".
11178 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11179 gdb_xml_error call.
11180
d721ba37
PA
111812017-03-27 Pedro Alves <palves@redhat.com>
11182
11183 * dwarf2read.c (struct file_and_directory): New.
11184 (dwarf2_get_dwz_file): Adjust to use std::string.
11185 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11186 (find_file_and_directory): Adjust to return a file_and_directory
11187 object.
11188 (read_file_scope): Adjust to use file_and_directory. Remove
11189 make_cleanup/do_cleanups calls.
11190 (open_and_init_dwp_file): Adjust to use std::string. Remove
11191 make_cleanup/do_cleanups calls.
11192 * python/python.c (do_start_initialization): Adjust to ldirname
11193 returning a std::string.
11194 * utils.c (ldirname): Now returns a std::string.
11195 * utils.h (ldirname): Change return type to std::string.
11196 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11197 returning a std::string.
11198 * xml-tdesc.c (file_read_description_xml): Likewise.
11199
ed771251
AH
112002017-03-24 Alan Hayward <alan.hayward@arm.com>
11201
11202 * regcache.c (regcache_debug_print_register): New function.
11203 * regcache.h (regcache_debug_print_register): New declaration.
11204 * target.c (debug_print_register): Remove.
11205 (target_fetch_registers): Call regcache_debug_print_register.
11206 (target_store_registers): Likewise.
11207
568c1b9f
PB
112082017-03-24 Pádraig Brady <pbrady@fb.com>
11209
11210 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11211 reference beyond the 'lh->include_dirs' array before accessing to
11212 it.
11213 (psymtab_include_file_name): Likewise.
11214 (dwarf_decode_lines_1): Likewise.
11215 (dwarf_decode_lines): Likewise.
11216 (file_file_name): Likewise.
11217
3e00d44f
SM
112182017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11219
11220 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11221 inferior_ptid.
11222 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11223 ps_lsetfpregs): Likewise.
11224 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11225 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11226 ps_lsetfpregs): Likewise.
11227 * target.c (target_fetch_registers, target_store_registers):
11228 Remove asserts.
11229
077ae656
AH
112302017-03-23 Alan Hayward <alan.hayward@arm.com>
11231
11232 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11233
1e2b521d
YQ
112342017-03-23 Yao Qi <yao.qi@linaro.org>
11235
11236 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11237 (_initialize_aarch64_tdep): Register it.
11238 (aarch64_record_load_store): Handle PRFM instruction.
11239 (aarch64_process_record_test): New function.
11240
33877125
YQ
112412017-03-23 Yao Qi <yao.qi@linaro.org>
11242
11243 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11244 indentation.
11245
a0eef940
YQ
112462017-03-23 Yao Qi <yao.qi@linaro.org>
11247
11248 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11249
3f2a3564
PR
112502017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11251
11252 python/python.c (do_start_initialization): Fix memory leak.
11253
b67aeab0
SM
112542017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11255
11256 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11257 using get_ptrace_pid.
11258 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11259 inferior_ptid.
11260 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11261 inferior_ptid instead of pid.
11262
ffdbe864
YQ
112632017-03-22 Yao Qi <yao.qi@linaro.org>
11264
11265 * aarch64-tdep.c: Wrap locally used classes in anonymous
11266 namespace.
11267 * arm-tdep.c: Likewise.
11268 * linespec.c: Likewise.
11269 * ui-out.c: Likewise.
11270
9d736fbf
JG
112712017-03-22 Jonah Graham <jonah@kichwacoders.com>
11272
11273 PR gdb/19637
11274 * python/lib/gdb/printer/bound_registers.py: Import sys.
11275
3de88e9a
SM
112762017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11277
11278 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11279 windows_thread_info parameter and use it instead of
11280 current_thread.
11281 (windows_fetch_inferior_registers): Don't set current_thread,
11282 pass the thread to do_windows_fetch_inferior_registers. Use
11283 ptid from regcache instead of inferior_ptid.
11284 (do_windows_store_inferior_registers): Add windows_thread_info
11285 parameter and use it instead of current_thread.
11286 (windows_store_inferior_registers): Don't set current_thread,
11287 pass the thread to do_windows_store_inferior_registers. Use
11288 ptid from regcache instead of inferior_ptid.
11289
0e7b8f61
SM
112902017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11291
11292 * ser-mingw.c (ser_windows_raw): Remove reference to
11293 struct serial::current_timeout.
11294
5badf10a
IR
112952017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11296
11297 PR tdep/20928
11298 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11299 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11300 (sparc64_fsr_type): Fix %fsr decoding.
11301
cee59b3f
TW
113022017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11303
11304 * python/py-record-btrace.c (btpy_insn_data): Change return type
11305 for Python 2.
11306
639a9038
SM
113072017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11308
11309 * spu-linux-nat.c (spu_fetch_inferior_registers,
11310 spu_store_inferior_registers): Use ptid from regcache, set and
11311 restore inferior_ptid.
11312 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11313 Likewise.
11314
bcc0c096
SM
113152017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11316
11317 * i386-linux-nat.c (fetch_register, store_register,
11318 i386_linux_fetch_inferior_registers,
11319 i386_linux_store_inferior_registers): Use ptid from regcache.
11320 * ia64-linux-nat.c (ia64_linux_fetch_register,
11321 ia64_linux_store_register): Likewise.
11322 * inf-ptrace.c (inf_ptrace_fetch_register,
11323 inf_ptrace_store_register): Likewise.
11324 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11325 m32r_linux_store_inferior_registers): Likewise.
11326 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11327 m68kbsd_store_inferior_registers): Likewise.
11328 * m68k-linux-nat.c (fetch_register, store_register,
11329 m68k_linux_fetch_inferior_registers,
11330 m68k_linux_store_inferior_registers): Likewise.
11331 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11332 m88kbsd_store_inferior_registers): Likewise.
11333 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11334 mips_fbsd_store_inferior_registers): Likewise.
11335 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11336 mips64_linux_regsets_store_registers): Likewise.
11337 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11338 mipsnbsd_store_inferior_registers): Likewise.
11339 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11340 mips64obsd_store_inferior_registers): Likewise.
11341 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11342 Likewise.
11343 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11344 ppcfbsd_store_inferior_registers): Likewise.
11345 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11346 ppc_linux_store_inferior_registers): Likewise.
11347 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11348 ppcnbsd_store_inferior_registers): Likewise.
11349 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11350 ppcobsd_store_registers): Likewise.
11351 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11352 Likewise.
11353 * ravenscar-thread.c (ravenscar_fetch_registers,
11354 ravenscar_store_registers, ravenscar_prepare_to_store):
11355 Likewise.
11356 * record-btrace.c (record_btrace_fetch_registers,
11357 record_btrace_store_registers, record_btrace_prepare_to_store):
11358 Likewise.
11359 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11360 Lookup inferior using ptid from regcache, instead of
11361 current_inferior.
11362 * remote.c (remote_fetch_registers, remote_store_registers): Use
11363 ptid from regcache.
11364 * rs6000-nat.c (fetch_register, store_register): Likewise.
11365 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11366 s390_linux_store_inferior_registers): Likewise.
11367 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11368 shnbsd_store_inferior_registers): Likewise.
11369 * sol-thread.c (sol_thread_fetch_registers,
11370 sol_thread_store_registers): Likewise.
11371 * sparc-nat.c (sparc_fetch_inferior_registers,
11372 sparc_store_inferior_registers): Likewise.
11373 * tilegx-linux-nat.c (fetch_inferior_registers,
11374 store_inferior_registers): Likewise.
11375 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11376 vaxbsd_store_inferior_registers): Likewise.
11377 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11378 store_xtregs): Likewise.
11379
c0f55cc6
AV
113802017-03-20 Artemiy Volkov <artemiyv@acm.org>
11381
11382 PR gdb/14441
11383 * NEWS: Mention support for rvalue references in GDB and python.
11384 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11385 supports both lvalue and rvalue references.
11386
15c0a2a9
AV
113872017-03-20 Artemiy Volkov <artemiyv@acm.org>
11388
11389 PR gdb/14441
11390 * gdbtypes.c (rank_one_type): Implement overloading
11391 resolution rules regarding rvalue references.
11392
aa006118
AV
113932017-03-20 Artemiy Volkov <artemiyv@acm.org>
11394
11395 PR gdb/14441
11396 * aarch64-tdep.c (aarch64_type_align)
11397 (aarch64_extract_return_value, aarch64_store_return_value): Change
11398 lvalue reference type checks to general reference type checks.
11399 * amd64-tdep.c (amd64_classify): Likewise.
11400 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11401 Likewise.
11402 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11403 (arm_store_return_value): Likewise.
11404 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11405 * c-typeprint.c (c_print_type): Likewise.
11406 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11407 (cplus_number_of_children, cplus_describe_child): Likewise.
11408 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11409 * completer.c (expression_completer): Likewise.
11410 * cp-support.c (make_symbol_overload_list_adl_namespace):
11411 Likewise.
11412 * darwin-nat-info.c (info_mach_region_command): Likewise.
11413 * dwarf2loc.c (entry_data_value_coerce_ref)
11414 (value_of_dwarf_reg_entry): Likewise.
11415 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11416 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11417 Likewise.
11418 * findvar.c (extract_typed_address, store_typed_address):
11419 Likewise.
11420 * gdbtypes.c (rank_one_type): Likewise.
11421 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11422 * infcall.c (value_arg_coerce): Likewise.
11423 * language.c (pointer_type): Likewise.
11424 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11425 Likewise.
11426 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11427 * mn10300-tdep.c (mn10300_type_align): Likewise.
11428 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11429 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11430 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11431 Likewise.
11432 * printcmd.c (print_formatted, x_command): Likewise.
11433 * python/py-type.c (typy_get_composite, typy_template_argument):
11434 Likewise.
11435 * python/py-value.c (valpy_referenced_value)
11436 (valpy_get_dynamic_type, value_has_field): Likewise.
11437 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11438 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11439 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11440 * spu-tdep.c (spu_scalar_value_p): Likewise.
11441 * symtab.c (lookup_symbol_aux): Likewise.
11442 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11443 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11444 Likewise.
11445 * valops.c (value_cast_pointers, value_cast)
11446 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11447 (value_struct_elt, value_struct_elt_bitpos)
11448 (value_find_oload_method_list, find_overload_match)
11449 (value_rtti_indirect_type): Likewise.
11450 * valprint.c (val_print_scalar_type_p, generic_val_print):
11451 Likewise.
11452 * value.c (value_actual_type, value_as_address, unpack_long)
11453 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11454 (coerce_ref): Likewise.
11455 * varobj.c (varobj_get_value_type): Likewise.
11456
3fcf899d
AV
114572017-03-20 Artemiy Volkov <artemiyv@acm.org>
11458
11459 PR gdb/14441
11460 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11461 table of constants.
11462 * python/lib/gdb/command/explore.py: Support exploring values
11463 of rvalue reference types.
11464 * python/lib/gdb/types.py: Implement get_basic_type() for
11465 rvalue reference types.
11466 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11467 constant.
11468 * python/py-value.c (valpy_getitem): Add an rvalue reference
11469 check.
11470 (valpy_reference_value): Add new parameter "refcode".
11471 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11472 New wrappers for valpy_reference_value().
11473 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11474 (gdbpy_invoke_xmethod): Likewise.
11475
4297a3f0
AV
114762017-03-20 Artemiy Volkov <artemiyv@acm.org>
11477
11478 PR gdb/14441
11479 * dwarf2read.c (process_die, read_type_die_1): Handle the
11480 DW_TAG_rvalue_reference_type DIE.
11481 (read_tag_reference_type): Add new parameter "refcode".
11482
e1cb3213
AV
114832017-03-20 Artemiy Volkov <artemiyv@acm.org>
11484
11485 PR gdb/14441
11486 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11487 (c_type_print_modifier, c_type_print_varspec_suffix)
11488 (c_type_print_base): Support printing rvalue reference types.
11489 * c-valprint.c (c_val_print, c_value_print): Support printing
11490 rvalue reference values.
11491
e4347c89
AV
114922017-03-20 Artemiy Volkov <artemiyv@acm.org>
11493
11494 PR gdb/14441
11495 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11496 typename.
11497 * cp-support.c (replace_typedefs): Handle
11498 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11499 * python/py-type.c (typy_lookup_type): Likewise.
11500
53cc15f5
AV
115012017-03-20 Artemiy Volkov <artemiyv@acm.org>
11502
11503 PR gdb/14441
11504 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11505 * parse.c (insert_type): Change assert statement.
11506 (follow_types): Handle rvalue reference types.
11507 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11508 constant.
11509
a65cfae5
AV
115102017-03-20 Artemiy Volkov <artemiyv@acm.org>
11511
11512 PR gdb/14441
11513 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11514 value_ref() interface.
11515 * c-valprint.c (c_value_print): Likewise.
11516 * infcall.c (value_arg_coerce): Likewise.
11517 * python/py-value.c (valpy_reference_value): Likewise.
11518 * valops.c (value_cast, value_reinterpret_cast)
11519 (value_dynamic_cast, typecmp): Likewise.
11520 (value_ref): Parameterize by kind of return value reference type.
11521 * value.h (value_ref): Add new parameter "refcode".
11522
3b224330
AV
115232017-03-20 Artemiy Volkov <artemiyv@acm.org>
11524
11525 PR gdb/14441
11526 * dwarf2read.c (read_tag_reference_type): Use
11527 lookup_lvalue_reference_type() instead of lookup_reference_type().
11528 * eval.c (evaluate_subexp_standard): Likewise.
11529 * f-exp.y: Likewise.
11530 * gdbtypes.c (make_reference_type, lookup_reference_type):
11531 Generalize with rvalue reference types.
11532 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11533 convenience wrappers for lookup_reference_type().
11534 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11535 reference kind parameter.
11536 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11537 wrappers for lookup_reference_type().
11538 * guile/scm-type.c (gdbscm_type_reference): Use
11539 lookup_lvalue_reference_type() instead of lookup_reference_type().
11540 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11541 * parse.c (follow_types): Likewise.
11542 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11543 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11544 Likewise.
11545 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11546 (gdbpy_invoke_xmethod): Likewise.
11547 * stabsread.c: Provide extra argument to make_reference_type()
11548 call.
11549 * valops.c (value_ref, value_rtti_indirect_type): Use
11550 lookup_lvalue_reference_type() instead of lookup_reference_type().
11551
f9aeb8d4
AV
115522017-03-20 Artemiy Volkov <artemiyv@acm.org>
11553
11554 PR gdb/14441
11555 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11556 (TYPE_IS_REFERENCE): New macro.
11557 (struct type): Add rvalue_reference_type field.
11558 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11559
51457a05
MAL
115602017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11561
11562 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11563 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11564 New function definition.
11565 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11566 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11567 New function declaration.
11568 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11569 * mi/mi-interp.h: New file.
11570 * solib.c (info_sharedlibrary_command): Replace for loop with
11571 ALL_SO_LIBS macro
11572 * solib.h (update_solib_list): New function declaration.
11573 (so_list_head): Move macro.
11574 * solist.h (ALL_SO_LIBS): New macro.
11575
e696b3ad
MAL
115762017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11577
11578 * infcmd.c (post_create_inferior): Remove unused argument in
11579 call to solib_add.
11580 * remote.c (remote_start_remote): Likewise.
11581 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11582 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11583 (enable_break): Likewise.
11584 * solib.c (update_solib_list): Remove unused target argument
11585 and its documentation.
11586 (solib_add): Remove unused target argument. Remove unused
11587 argument in call to update_solib_list.
11588 (info_sharedlibrary_command): Remove unused argument in call
11589 to update_solib_list.
11590 (sharedlibrary_command): Remove unused argument in call to
11591 solib_add.
11592 (handle_solib_event): Likewise.
11593 (reload_shared_libraries): Likewise.
11594 * solib.h (solib_add): Remove unused target argument.
11595
dcb84eda
AA
115962017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11597
11598 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11599 (s390_displaced_step_fixup): Cover relative branches with the
11600 default fixup handling. This fixes lack of support for some
11601 relative branch instructions.
11602
d9cb6cdc
SM
116032017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11604
11605 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11606 ptid from regcache.
11607
1afaf9f4
SM
116082017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11609
11610 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11611 i386_darwin_store_inferior_registers): Use ptid from regcache.
11612
aac12e24
SM
116132017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11614
11615 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11616 i386bsd_store_inferior_registers): Use ptid from regcache.
11617
bbe1eef1
SM
116182017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11619
11620 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11621 hppaobsd_store_registers): Use ptid from regcache.
11622
10799020
SM
116232017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11624
11625 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11626 hppanbsd_store_registers): Use ptid from regcache.
11627
00204cf7
SM
116282017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11629
11630 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11631 from regcache. Use get_ptrace_pid.
11632
11a33714
SM
116332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11634
11635 * corelow.c (get_core_register_section): Use ptid from regcache,
11636 update doc.
11637
317cd492
SM
116382017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11639
11640 * bsd-uthread.c (bsd_uthread_fetch_registers,
11641 bsd_uthread_store_registers): Use ptid from regcache, set and
11642 restore inferior_ptid.
11643
9ac8a7c2
SM
116442017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11645
11646 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11647 fetch_fp_regs, store_register, store_regs, store_fp_register,
11648 store_fp_regs): Use ptid from regcache.
11649
4ac4bb6a
SM
116502017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11651
11652 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11653 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11654 store_vfp_regs): Use ptid from regcache.
11655
9bcbdca8
PA
116562017-03-17 Pedro Alves <palves@redhat.com>
11657
11658 PR remote/21188
11659 * ser-base.c (ser_base_wait_for): Add comment.
11660 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11661 version.
11662 * ser-unix.c (hardwire_raw): Remove reference to
11663 scb->current_timeout.
11664 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11665 (hardwire_ops): Install ser_base_readchar instead of
11666 hardwire_readchar.
11667 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11668 Remove fields.
11669
7503099f
JG
116702017-03-17 Jonah Graham <jonah@kichwacoders.com>
11671
11672 PR gdb/19637
11673 * python/lib/gdb/printer/bound_registers.py: Add support for
11674 Python 3.
11675
7942e96e
AA
116762017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11677
11678 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11679 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11680 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11681 byte_offset to subobj_byte_offset. Fix the handling of
11682 DWARF_VALUE_STACK on big-endian targets when coming via an
11683 implicit pointer.
11684 (dwarf2_evaluate_loc_desc): Adjust call to
11685 dwarf2_evaluate_loc_desc_full.
11686 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11687 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11688
ba14f379
YQ
116892017-03-16 Yao Qi <yao.qi@linaro.org>
11690
11691 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11692 and REVSH instructions.
11693
b121eeb9
YQ
116942017-03-16 Yao Qi <yao.qi@linaro.org>
11695
11696 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11697 (arm_record_test): Declare.
11698 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11699 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11700 align with the manual.
11701 (thumb_record_misc): Adjust the code order to align with the
11702 manual.
11703 (thumb2_record_decode_insn_handler): Fix instruction matching.
11704 (instruction_reader_thumb): New class.
11705 (arm_record_test): New function.
11706
728a7913
YQ
117072017-03-16 Yao Qi <yao.qi@linaro.org>
11708
11709 * arm-tdep.c (abstract_memory_reader): New class.
11710 (instruction_reader): New class.
11711 (extract_arm_insn): Add argument 'reader'. Callers updated.
11712 (decode_insn): Likewise.
11713
34b43320
DE
117142017-03-16 Doug Evans <dje@google.com>
11715
a7c0469f
DE
11716 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11717 member. Change type of TYPE member to SCM. All uses updated.
11718 (lsscm_make_lazy_string_smob): Add assert.
11719 (lsscm_make_lazy_string): Flag bad length values.
11720 (lsscm_elt_type): New function.
11721 (gdbscm_lazy_string_to_value): Rewrite to use
11722 lsscm_safe_lazy_string_to_value.
11723 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11724 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11725 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11726 in incoming type.
11727 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11728 * guile/scm-type.c (tyscm_scm_to_type): New function.
11729
117302017-03-15 Doug Evans <dje@google.com>
11731
34b43320
DE
11732 PR python/17728, python/18439, python/18779
11733 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11734 member. Change type of TYPE member to PyObject *. All uses updated.
11735 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11736 (gdbpy_create_lazy_string_object): Flag bad length values.
11737 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
11738 Handle typedefs in incoming type.
11739 (stpy_lazy_string_elt_type): New function.
11740 (gdbpy_extract_lazy_string): Call it.
11741 * python/py-value.c (valpy_lazy_string): Flag bad length values.
11742 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
11743 typedefs in incoming type.
11744
a3a5fecc
DE
117452017-03-16 Doug Evans <dje@google.com>
11746
11747 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11748 * guile/scm-type.c (tyscm_scm_to_type): New function.
11749
28f1c605
JW
117502017-03-16 Jiong Wang <jiong.wang@arm.com>
11751
11752 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
11753 "ULONGEST" for "skip".
11754
87c336f6
AA
117552017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11756
11757 PR gdb/21220
11758 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
11759 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
11760 (inf_ptrace_peek_poke): ...here. New function. Now also loop
11761 over ptrace peek/poke until end of buffer or error.
11762
cf81cf60
SM
117632017-03-14 Simon Marchi <simon.marchi@ericsson.com>
11764
11765 * parse.c (length_of_subexp): Make static.
11766 * parser-defs.h (length_of_subexp): Remove.
11767
a379284a
AA
117682017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11769
11770 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
11771 as well.
11772
8a6200ba
PA
117732017-03-14 Pedro Alves <palves@redhat.com>
11774
11775 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
11776 (main): Use std::unique_ptr. Remove calls to
11777 cp_demangled_name_parse_free.
11778
f79ec206
SM
117792017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11780
11781 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
11782 alphabsd_store_inferior_registers): Use regcache->ptid instead
11783 of inferior_ptid.
11784
edb5fb00
SM
117852017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11786
11787 * aix-thread.c (aix_thread_fetch_registers,
11788 aix_thread_store_registers): Use regcache->ptid instead of
11789 inferior_ptid.
11790
55119686
SM
117912017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11792
11793 * aarch64-linux-nat.c (fetch_gregs_from_thread,
11794 store_gregs_to_thread, fetch_fpregs_from_thread,
11795 store_fpregs_to_thread): Use regcache->ptid instead of
11796 inferior_ptid.
11797
6a06fbb7
SM
117982017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11799
11800 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
11801 amd64_linux_fetch_inferior_registers): Use regcache->ptid
11802 instead of inferior_ptid.
11803
c6386875
SM
118042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11805
11806 * target.c (target_fetch_registers, target_store_registers): Add
11807 assert.
11808
ddaaf0fb
SM
118092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11810
11811 * regcache.h (regcache_get_ptid): New function.
11812 * regcache.c (regcache_get_ptid): New function.
11813
b9da89d1 118142017-03-13 Mark Wielaard <mark@klomp.org>
11815
11816 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
11817
5f4d1085
KS
118182017-03-10 Keith Seitz <keiths@redhat.com>
11819
11820 PR c++/8218
11821 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
11822
c65d6b55
PA
118232017-03-08 Pedro Alves <palves@redhat.com>
11824
11825 PR gdb/18360
11826 * infrun.c (start_step_over, do_target_resume, resume)
11827 (restart_threads): Assert we're not resuming a thread that is
11828 meant to be stopped.
11829 (infrun_thread_stop_requested_callback): Delete.
11830 (infrun_thread_stop_requested): If the thread is internally
11831 stopped, queue a pending stop event and clear the thread's
11832 inline-frame state.
11833 (handle_stop_requested): New function.
11834 (handle_syscall_event, handle_inferior_event_1): Use
11835 handle_stop_requested.
11836 (handle_stop_requested): New function.
11837 (handle_signal_stop): Set the thread's stop_signal here instead of
11838 at caller.
11839 (finish_step_over): Clear step over info unconditionally.
11840 (handle_signal_stop): If the user had interrupted the event
11841 thread, consider the stop a random signal.
11842 (handle_signal_stop) <signal arrived while stepping over
11843 breakpoint>: Don't restart threads here.
11844 (stop_waiting): Don't clear step-over info here.
11845
15c22686
PA
118462017-03-08 Pedro Alves <palves@redhat.com>
11847
11848 PR 21206
11849 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
11850 goes to argument 2, not 1.
11851
6e5d74e7
PA
118522017-03-08 Pedro Alves <palves@redhat.com>
11853
11854 PR cli/21218
11855 * top.c (gdb_readline_wrapper): Avoid passing NULL to
11856 display_gdb_prompt.
11857 (command_line_input): Add comment.
11858
9753a2f6
PA
118592017-03-08 Pedro Alves <palves@redhat.com>
11860
11861 PR tui/21216
11862 * tui/tui-file.c (tui_file::write): New.
11863 * tui/tui-file.h (tui_file): Override "write".
11864 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
11865 factored out from ...
11866 (tui_puts): ... here.
11867 (tui_putc): Use them.
11868 (tui_write): New function.
11869 * tui/tui-io.h (tui_write): Declare.
11870
1672e0d9
SDJ
118712017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
11872
11873 * Makefile.in (SFILES): Replace "environ.c" with
11874 "common/environ.c".
11875 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
11876 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
11877 to...
11878 * common/environ.c: ... here.
11879 * environ.h: Moved to...
11880 * common/environ.h: ... here.
11881
f7bb4e3a
PB
118822017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11883
11884 * gdbarch.sh (pstring_ptr): New static function.
11885 (gdbarch_disassembler_options): Use it.
11886 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
11887 not valid_disassembler_option->name.
11888 * gdbarch.c: Regenerate.
11889
e45ced6c
PB
118902017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11891
11892 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
11893
5f6fd321
PA
118942017-03-07 Pedro Alves <palves@redhat.com>
11895
11896 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
11897
6dbb839a 118982017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
11899
11900 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
11901 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
11902 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 11903 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 11904
d274ecf4
SM
119052017-03-06 Simon Marchi <simon.marchi@ericsson.com>
11906
11907 * xtensa-linux-nat.c (fetch_gregs): Remove const.
11908
df97be55
SM
119092017-03-03 Simon Marchi <simon.marchi@ericsson.com>
11910
11911 * remote.c (remote_add_target_side_commands): Use range-based
11912 for loop.
11913
7d45f3df
YQ
119142017-03-03 Yao Qi <yao.qi@linaro.org>
11915
11916 PR gdb/21165
11917 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
11918 value is lazy.
11919 * valprint.c (common_val_print): Likewise.
11920
65b48a81
PB
119212017-02-28 Peter Bergner <bergner@vnet.ibm.com>
11922
11923 * NEWS: Mention new set/show disassembler-options commands.
11924 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
11925 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
11926 (prospective_options): New static variable.
11927 (gdb_disassembler::gdb_disassembler): Initialize
11928 m_di.disassembler_options.
11929 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
11930 (get_disassembler_options): New function.
11931 (set_disassembler_options): Likewise.
11932 (set_disassembler_options_sfunc): Likewise.
11933 (show_disassembler_options_sfunc): Likewise.
11934 (disassembler_options_completer): Likewise.
11935 (_initialize_disasm): Likewise.
11936 * disasm.h (get_disassembler_options): New prototype.
11937 (set_disassembler_options): Likewise.
11938 * gdbarch.sh (gdbarch_disassembler_options): New variable.
11939 (gdbarch_verify_disassembler_options): Likewise.
11940 * gdbarch.c: Regenerate.
11941 * gdbarch.h: Likewise.
11942 * arm-tdep.c (num_disassembly_options): Delete.
11943 (set_disassembly_style): Likewise.
11944 (arm_disassembler_options): New static variable.
11945 (set_disassembly_style_sfunc): Convert short style name into long
11946 option name. Call set_disassembler_options.
11947 (show_disassembly_style_sfunc): New function.
11948 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
11949 set_gdbarch_verify_disassembler_options.
11950 (_initialize_arm_tdep): Delete regnames variable and update callers.
11951 (arm_disassembler_options): Initialize.
11952 (disasm_options): New variable.
11953 (num_disassembly_options): Rename from this...
11954 (num_disassembly_styles): ...to this. Compute by scanning through
11955 disasm_options.
11956 (valid_disassembly_styles): Initialize using disasm_options.
11957 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
11958 set_arm_regname_option.
11959 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
11960 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
11961 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
11962 set_gdbarch_verify_disassembler_options.
11963 * s390-tdep.c (s390_disassembler_options): New static variable.
11964 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
11965 set_gdbarch_verify_disassembler_options.
11966
d538e36d
SM
119672017-02-27 Simon Marchi <simon.marchi@ericsson.com>
11968
11969 * remote.c (remote_add_target_side_condition): Remove "struct"
11970 keyword from range-based for loop.
11971
83621223
SM
119722017-02-27 Simon Marchi <simon.marchi@ericsson.com>
11973
11974 * remote.c (remote_add_target_side_condition): Use range-based
11975 for loop. Update comment.
11976
2123df0e
YQ
119772017-02-27 Yao Qi <yao.qi@linaro.org>
11978
11979 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
11980
8e368124
AH
119812017-02-26 Alan Hayward <alan.hayward@arm.com>
11982
11983 * regcache.c (regcache_raw_update): New function.
11984 (regcache_raw_read): Move code to regcache_raw_update.
11985 * regcache.h (regcache_raw_update): New declaration.
11986 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
11987
a49dd8dd
JK
119882017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11989
11990 * dwarf2read.c (create_debug_type_hash_table): Initialize
11991 header.signature and header.type_offset_in_tu.
11992
34e4bae9
PA
119932017-02-24 Pedro Alves <palves@redhat.com>
11994
11995 * symtab.c (make_file_symbol_completion_list_1): Use
11996 add_symtab_completions.
11997
b0e4b369
AH
119982017-02-24 Alan Hayward <alan.hayward@arm.com>
11999
12000 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12001
975c21ab
AH
120022017-02-24 Alan Hayward <alan.hayward@arm.com>
12003
12004 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12005 I386_MAX_REGISTER_SIZE.
12006 (i386_pseudo_register_write): Likewise.
12007 (i386_process_record): Likewise.
12008 * i387-tdep.c (i387_supply_xsave): Likewise.
12009 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12010 (store_register): Likewise.
12011
14bc53a8
PA
120122017-02-23 Pedro Alves <palves@redhat.com>
12013
12014 * ada-lang.c: Include "common/function-view.h".
12015 (ada_iterate_over_symbols): Adjust to use function_view as
12016 callback type.
12017 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12018 (ada_make_symbol_completion_list): Use a lambda.
12019 (ada_exc_search_name_matches): Delete.
12020 (name_matches_regex): New.
12021 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12022 * compile/compile-c-support.c: Include "common/function-view.h".
12023 (print_one_macro): Change prototype to accept a ui_file pointer.
12024 (write_macro_definitions): Use a lambda.
12025 * dwarf2read.c: Include "common/function-view.h".
12026 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12027 (dw2_expand_symtabs_matching): Adjust to use function_view as
12028 callback type.
12029 * language.h: Include "common/function-view.h".
12030 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12031 function_view as callback type.
12032 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12033 * linespec.c: Include "common/function-view.h".
12034 (collect_info::add_symbol): New method.
12035 (struct symbol_and_data_callback, iterate_inline_only, struct
12036 symbol_matcher_data, iterate_name_matcher): Delete.
12037 (iterate_over_all_matching_symtabs): Adjust to use function_view
12038 as callback type and lambdas.
12039 (iterate_over_file_blocks): Adjust to use function_view as
12040 callback type.
12041 (decode_compound_collector): Now a class with private fields.
12042 (decode_compound_collector::release_symbols): New method.
12043 (collect_one_symbol): Rename to...
12044 (decode_compound_collector::operator()): ... this and adjust.
12045 (lookup_prefix_sym): decode_compound_collector construction bits
12046 move to decode_compound_collector ctor. Pass the
12047 decode_compound_collector object directly as callback. Remove
12048 cleanups and use decode_compound_collector::release_symbols
12049 instead.
12050 (symtab_collector): Now a class with private fields.
12051 (symtab_collector::release_symtabs): New method.
12052 (add_symtabs_to_list): Rename to...
12053 (symtab_collector::operator()): ... this and adjust.
12054 (collect_symtabs_from_filename): symtab_collector construction
12055 bits move to symtab_collector ctor. Pass the symtab_collector
12056 object directly as callback. Remove cleanups and use
12057 symtab_collector::release_symtabs instead.
12058 (collect_symbols): Delete.
12059 (add_matching_symbols_to_info): Use lambdas.
12060 * macrocmd.c (print_macro_callback): Delete.
12061 (info_macro_command): Use a lambda.
12062 (info_macros_command): Pass print_macro_definition as callable
12063 directly.
12064 (print_one_macro): Remove 'ignore' parameter.
12065 (macro_list_command): Adjust.
12066 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12067 (macro_for_each_data::user_data): Delete field.
12068 (foreach_macro): Adjust to call the function_view.
12069 (macro_for_each): Adjust to use function_view as callback type.
12070 (foreach_macro_in_scope): Adjust to call the function_view.
12071 (macro_for_each_in_scope): Adjust to use function_view as callback
12072 type.
12073 * macrotab.h: Include "common/function-view.h".
12074 (macro_callback_fn): Declare a prototype instead of a pointer.
12075 Remove "user_data" parameter.
12076 (macro_for_each, macro_for_each_in_scope): Adjust to use
12077 function_view as callback type.
12078 * psymtab.c (partial_map_expand_apply)
12079 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12080 Adjust to use function_view as callback type and to return bool.
12081 (psym_expand_symtabs_matching): Adjust to use function_view as
12082 callback types.
12083 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12084 to use function_view as callback type and to return bool.
12085 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12086 callback types.
12087 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12088 as callback types.
12089 * symfile.h: Include "common/function-view.h".
12090 (expand_symtabs_file_matcher_ftype)
12091 (expand_symtabs_symbol_matcher_ftype)
12092 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12093 return bool.
12094 (quick_symbol_functions::map_symtabs_matching_filename)
12095 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12096 function_view as callback type and return bool.
12097 (expand_symtabs_matching): Adjust to use function_view as callback
12098 type.
12099 (maintenance_expand_name_matcher)
12100 (maintenance_expand_file_matcher): Delete.
12101 (maintenance_expand_symtabs): Use lambdas.
12102 * symtab.c (iterate_over_some_symtabs): Adjust to use
12103 function_view as callback types and return bool.
12104 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12105 of a cleanup.
12106 (lookup_symtab_callback): Delete.
12107 (lookup_symtab): Use a lambda.
12108 (iterate_over_symbols): Adjust to use function_view as callback
12109 type.
12110 (struct search_symbols_data, search_symbols_file_matches)
12111 (search_symbols_name_matches): Delete.
12112 (search_symbols): Use a pair of lambdas.
12113 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12114 (symtab_expansion_callback): Delete.
12115 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12116 * symtab.h: Include "common/function-view.h".
12117 (iterate_over_some_symtabs): Adjust to use function_view as
12118 callback type and return bool.
12119 (iterate_over_symtabs): Adjust to use function_view as callback
12120 type.
12121 (symbol_found_callback_ftype): Remove 'data' parameter and return
12122 bool.
12123 (iterate_over_symbols): Adjust to use function_view as callback
12124 type.
12125
07e253aa
PA
121262017-02-23 Pedro Alves <palves@redhat.com>
12127
12128 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12129 (%.o) <unittests/%.c>: New pattern.
12130 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12131 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12132 * common/function-view.h: New file.
12133 * unittests/function-view-selftests.c: New file.
12134 * configure: Regenerate.
12135
8eaf5320
SM
121362017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12137
12138 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12139 inferior_ptid.
12140 * go32-nat.c (go32_thread_alive): Likewise.
12141
38768751
YQ
121422017-02-23 Yao Qi <yao.qi@linaro.org>
12143
12144 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12145 delete.
12146
0a8beaba
YQ
121472017-02-23 Yao Qi <yao.qi@linaro.org>
12148
12149 * varobj.c (varobj_clear_saved_item): Use delete instead of
12150 xfree.
12151 (update_dynamic_varobj_children): Likewise.
12152
58fdfd2c
JK
121532017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12154
12155 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12156
1b90b139
SM
121572017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12158
12159 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12160 m_enum_value to 0 in default constructor.
12161
2039d74e
EBM
121622017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12163
12164 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12165 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12166 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12167 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12168 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12169 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12170 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12171 IS_STORE_CONDITIONAL_INSN.
12172
7814882a
JK
121732017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12174
12175 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12176
0ae60b63
JK
121772017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12178
12179 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12180
0224619f
JK
121812017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12182
12183 * dwarf2read.c (skip_one_die, read_attribute_value)
12184 (dwarf2_const_value_attr, dump_die_shallow)
12185 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12186 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12187
0af92d60
JK
121882017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12189
12190 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12191 (dwarf_parse_macro_header): Accept DWARF version 5.
12192 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12193
216f72a1
JK
121942017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12195
12196 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12197 DW_AT_GNU_*.
12198 * common/common-exceptions.h (enum errors): Likewise.
12199 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12200 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12201 (dwarf_expr_context::execute_stack_op): Likewise.
12202 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12203 Likewise.
12204 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12205 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12206 (show_entry_values_debug, call_site_to_target_addr)
12207 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12208 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12209 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12210 (value_of_dwarf_block_entry, indirect_pieced_value)
12211 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12212 (disassemble_dwarf_expression): Likewise.
12213 * dwarf2read.c (process_die, inherit_abstract_dies)
12214 (read_call_site_scope): Likewise.
12215 * gdbtypes.h (struct func_type, struct call_site_parameter)
12216 (struct call_site): Likewise.
12217 * stack.c (read_frame_arg): Likewise.
12218 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12219
43988095
JK
122202017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12221
12222 * defs.h (read_unsigned_leb128): New declaration.
12223 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12224 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12225 (dwarf2_find_location_expression): Call also
12226 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12227 * dwarf2loc.h (dwarf2_version): New declaration.
12228 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12229 rnglists.
12230 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12231 .debug_rnglists.
12232 (struct dwop_section_names): Add loclists_dwo.
12233 (dwop_section_names): Add .debug_loclists.dwo.
12234 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12235 (struct dwarf2_per_cu_data): Add dwarf_version.
12236 (struct dwo_sections): Add loclists.
12237 (struct attr_abbrev): Add implicit_const.
12238 (read_indirect_line_string): New declaration.
12239 (read_unsigned_leb128): Delete declaration.
12240 (rcuh_kind): New definition.
12241 (read_and_check_comp_unit_head): Change parameter
12242 is_debug_types_section to section_kind.
12243 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12244 (read_comp_unit_head): Change parameter abfd to section, add parameter
12245 section_kind. Handle DWARF-5.
12246 (error_check_comp_unit_head): Accept also DWARF version 5.
12247 (read_and_check_comp_unit_head): Change parameter
12248 is_debug_types_section to section_kind.
12249 (read_and_check_type_unit_head): Delete function.
12250 (read_abbrev_offset): Handle DWARF-5.
12251 (create_debug_type_hash_table): Add parameter section_kind. Process
12252 only DW_UT_type. Use signature and type_offset_in_tu from struct
12253 comp_unit_head.
12254 (create_debug_types_hash_table): Update create_debug_type_hash_table
12255 caller.
12256 (create_all_type_units): Call create_debug_type_hash_table.
12257 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12258 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12259 caller.
12260 (skip_one_die): Handle DW_FORM_implicit_const.
12261 (dwarf2_rnglists_process): New function.
12262 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12263 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12264 (read_attribute_value): Handle DW_FORM_implicit_const,
12265 DW_FORM_line_strp.
12266 (read_attribute): Handle DW_FORM_implicit_const.
12267 (read_indirect_string_at_offset_from): New function from
12268 read_indirect_string_at_offset.
12269 (read_indirect_string_at_offset): Call
12270 read_indirect_string_at_offset_from.
12271 (read_indirect_line_string_at_offset): New function.
12272 (read_indirect_string): New function comment.
12273 (read_indirect_line_string): New function.
12274 (read_unsigned_leb128): Make it global.
12275 (dwarf2_string_attr): Handle DWARF-5.
12276 (add_include_dir_stub, read_formatted_entries): New functions.
12277 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12278 Handle DWARF-5.
12279 (per_cu_header_read_in): Update read_comp_unit_head caller.
12280 (dwarf2_version): New function.
12281 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12282 rnglists.
12283 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12284 fields.
12285
22d2f3ab
JK
122862017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12287
12288 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12289
5f46c5a5
JK
122902017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12291
12292 * dwarf2read.c (dwarf2_ranges_process): New function from
12293 dwarf2_ranges_read.
12294 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12295 dwarf2_ranges_process.
12296
78d4d2c5
JK
122972017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12298
12299 * dwarf2read.c (create_debug_type_hash_table): New function from
12300 create_debug_types_hash_table.
12301 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12302 (create_all_type_units, open_and_init_dwo_file): Update
12303 create_debug_types_hash_table callers.
12304
1b076f25
SDJ
123052017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12306
12307 PR gdb/16188
12308 * fork-child.c (trace_start_error): Fix thinko. va_end should
12309 refer to 'ap', not 'args'.
12310
0db8980c
SDJ
123112017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12312 Pedro Alves <palves@redhat.com>
12313
12314 PR gdb/16188
12315 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12316 calls succeeded.
12317 * fork-child.c (trace_start_error): New function.
12318 (trace_start_error_with_name): Likewise.
12319 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12320 * inf-ptrace.c (inf_ptrace_me): Likewise.
12321 * inferior.h (trace_start_error): New prototype.
12322 (trace_start_error_with_name): Likewise.
12323
99e8a4f9
SDJ
123242017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12325
12326 PR gdb/21164
12327 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12328 NULL before using it.
12329 * symmisc.c (maintenance_print_symbols): Likewise.
12330 (maintenance_print_msymbols): Likewise.
12331
4e746bb6
TW
123322017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12333
12334 * NEWS: Add record Python bindings entry.
12335
123362017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12337
12338 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12339 py-record-full.o.
12340 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12341 * python/py-record-btrace.c, python/py-record-btrace.h,
12342 python/py-record-full.c, python/py-record-full.h: New file.
12343 * python/py-record.c: Add include for py-record-btrace.h and
12344 py-record-full.h.
12345 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12346 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12347 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12348 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12349 New definition.
12350 (gdbpy_initialize_btrace): New export.
12351 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12352
123532017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12354
12355 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12356 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12357 * python/py-record.c: New file.
12358 * python/python-internal.h (gdbpy_start_recording,
12359 gdbpy_current_recording, gdpy_stop_recording,
12360 gdbpy_initialize_record): New export.
12361 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12362 (python_GdbMethods): Add gdbpy_start_recording,
12363 gdbpy_current_recording and gdbpy_stop_recording.
12364
123652017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12366
12367 * record-btrace.c (record_btrace_record_method): New function.
12368 (init_record_btrace_ops): Initialize to_record_method.
12369 * record-full.c (record_full_record_method): New function.
12370 (init_record_full_ops, init_record_full_core_ops): Add
12371 record_full_record_method.
12372 * record.h (enum record_method): New enum.
12373 * target-debug.h (target_debug_print_enum_record_method: New define.
12374 * target-delegates.c: Regenerate.
12375 * target.c (target_record_method): New function.
12376 * target.h: Include record.h.
12377 (struct target_ops) <to_record_method>: New field.
12378 (target_record_method): New export.
12379
123802017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12381
12382 * record.h (record_start, record_stop): New export.
12383 * record.c (record_start, record_stop): New function.
12384
123852017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12386
12387 * btrace.c (btrace_fetch): Copy function call segments pointer
12388 into a vector.
12389 (btrace_clear): Clear the vector.
12390 (btrace_find_insn_by_number): Use binary search to find the correct
12391 function call segment.
12392 * btrace.h (brace_fun_p): New typedef.
12393 (struct btrace_thread_info) <functions>: New field.
12394
123952017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12396
12397 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12398 * btrace.c (btrace_decode_error): ... here. New function.
12399 * btrace.h (btrace_decode_error): New export.
12400
124012017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12402
12403 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12404 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12405 btrace_find_insn_by_number): Remove special case for gaps.
12406 * btrace.h (btrace_insn_get_error): New export.
12407 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12408 * record-btrace.c (btrace_insn_history): Print number for gaps.
12409 (record_btrace_info, record_btrace_goto): Handle gaps.
12410
3f77c769
TT
124112017-02-14 Tom Tromey <tom@tromey.com>
12412
12413 PR python/13598:
12414 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12415 event.
12416 * python/py-evts.c (gdbpy_initialize_py_events): Add
12417 before_prompt registry.
12418 * python/py-events.h (events_object) <before_prompt>: New field.
12419
4c2c7ac6
MM
124202017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12421
12422 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12423
5cf30ebf
LM
124242017-02-13 Luis Machado <lgustavo@codesourcery.com>
12425
12426 * symfile (_initialize_symfile): Add usage text to the load command's
12427 help text.
12428
26a06916
SM
124292017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12430
12431 * utils.c (defaulted_query): Don't query on secondary UIs.
12432
0b145e37
TT
124332017-02-10 Tom Tromey <tom@tromey.com>
12434
12435 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12436
2d8365c4
TT
124372017-02-10 Tom Tromey <tom@tromey.com>
12438
12439 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12440 "cleanup" local.
12441 * python/py-type.c (typy_legacy_template_argument): Remove
12442 unnecessary "cleanup" local.
12443
2bb8f231
TT
124442017-02-10 Tom Tromey <tom@tromey.com>
12445
12446 * python/python.c (do_start_initialization): New function, from
12447 _initialize_python.
12448 (_initialize_python): Call do_start_initialization.
12449 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12450 goto.
12451
1bdfaf42
TT
124522017-02-10 Tom Tromey <tom@tromey.com>
12453
12454 * python/py-prettyprint.c (pretty_print_one_value): Use
12455 gdbpy_ref.
12456
88b6faea
TT
124572017-02-10 Tom Tromey <tom@tromey.com>
12458
12459 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12460 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12461 gdbpy_ref.
12462 * python/py-type.c (field_new): Use gdbpy_ref.
12463 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12464 gdbpy_ref.
12465 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12466 (py_free_pspace): Likewise.
12467 (pspace_to_pspace_object): Likewise.
12468 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12469 (py_free_objfile): Likewise.
12470 (objfile_to_objfile_object): Likewise.
12471 * python/py-inferior.c (delete_thread_object): Use
12472 gdbpy_ref.
12473 (infpy_read_memory): Likewise.
12474 (py_free_inferior): Likewise.
12475 * python/py-evtregistry.c (create_eventregistry_object): Use
12476 gdbpy_ref.
12477 * python/py-event.c (create_event_object): Use gdbpy_ref.
12478
7780f186
TT
124792017-02-10 Tom Tromey <tom@tromey.com>
12480
12481 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12482 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12483 used.
12484 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12485 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12486 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12487 python/py-framefilter.c, python/py-function.c,
12488 python/py-inferior.c, python/py-infevents.c,
12489 python/py-linetable.c, python/py-newobjfileevent.c,
12490 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12491 python/py-signalevent.c, python/py-stopevent.c,
12492 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12493 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12494 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12495 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12496
d4b0bb18
TT
124972017-02-10 Tom Tromey <tom@tromey.com>
12498
12499 * ui-out.h (ui_out_emit_type): New class.
12500 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12501 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12502 and ui_out_emit_tuple.
12503 (enumerate_locals): Likewise.
12504 (py_mi_print_variables, py_print_locals, py_print_args): Use
12505 ui_out_emit_list.
12506 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12507 ui_out_emit_list.
12508 * common/gdb_optional.h: New file.
12509
f67f945c
MG
125102017-02-10 Martin Galvan <martingalvan@sourceware.org>
12511
12512 * MAINTAINERS (Write After Approval): Update my e-mail address.
12513
18da0c51
MG
125142017-02-10 Martin Galvan <martingalvan@sourceware.org>
12515
12516 PR gdb/21122
12517 * breakpoint.c (_initialize_breakpoint): Update the help description
12518 of the 'commands' command to indicate that it takes a list argument.
12519
62c14536
SM
125202017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12521
12522 * interps.c (current_interp_set_logging): Remove "return".
12523
ff6fa247
GB
125242017-02-09 Gary Benson <gbenson@redhat.com>
12525
12526 * symtab.c (add_symtab_completions): Prevent NULL pointer
12527 dereference.
12528
a474bd8e
PA
125292017-02-08 Pedro Alves <palves@redhat.com>
12530
12531 * interps.c (interp::interp): Remove reference to quiet_p.
12532 (interp_set): Make static. Remove dead "Switching to" output
12533 code.
12534 (interp_quiet_p, interp_set_quiet): Delete.
12535 (interpreter_exec_cmd): Don't set the interpreter quiet.
12536 * interps.h (interp_quiet_p): Make static.
12537 (class interp) <quiet_p>: Remove field
12538
3d7b173c
JG
125392017-02-08 Jerome Guitton <guitton@adacore.com>
12540
604c4576
JG
12541 * cli/cli-decode.c (find_command_name_length): Make it extern.
12542 * cli/cli-decode.h (find_command_name_length): Declare.
12543 * cli/cli-script.c (command_name_equals, line_first_arg):
12544 New functions.
12545 (process_next_line): Use cli-decode to parse command names.
12546 (build_command_line): Make args a constant pointer.
12547
125482017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12549
3d7b173c
JG
12550 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12551 Remove case-insensitive search.
12552
1291063d
JM
125532017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12554
12555 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12556 at the end of the line. Avoids an ARI warning.
12557
20b477a7
LM
125582017-02-06 Luis Machado <lgustavo@codesourcery.com>
12559
12560 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12561 rdseed instructions.
12562 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12563
3f7b46f2
IR
125642017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12565
12566 PR tdep/20936
12567 Provide and use sparc32 and sparc64 target description XML files.
12568 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12569 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12570 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12571 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12572 * features/sparc/sparc32-solaris.xml: New file.
12573 * features/sparc/sparc64-solaris.xml: New file.
12574 * features/sparc/sparc32-solaris.c: Generated.
12575 * features/sparc/sparc64-solaris.c: Generated.
12576 * sparc-tdep.h: Account for differences in target descriptions.
12577 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12578 (sparc32_register_type): Use target provided registers.
12579 (validate_tdesc_registers): New function.
12580 (sparc32_gdbarch_init): Use tdesc_has_registers.
12581 Set pseudoregister functions.
12582 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12583 (sparc64_register_type): Use target provided registers.
12584 (sparc64_init_abi): Set pseudoregister functions.
12585
f0fd41c1
TT
125862017-02-03 Tom Tromey <tom@tromey.com>
12587
12588 PR rust/21097:
12589 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12590 with a single member.
12591
d6f9b0fb
PA
125922017-02-03 Pedro Alves <palves@redhat.com>
12593
12594 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12595 (cli_interp_base::~cli_interp_base): New.
12596 (cli_interp): New struct.
12597 (as_cli_interp): Cast the interp itself to cli_interp.
12598 (cli_interpreter_pre_command_loop): Rename to ...
12599 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12600 parameter.
12601 (cli_interpreter_init): Rename to ...
12602 (cli_interp::init): ... this. Remove 'self' parameter. Use
12603 boolean. Make extern.
12604 (cli_interpreter_resume): Rename to ...
12605 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12606 extern.
12607 (cli_interpreter_suspend): Rename to ...
12608 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12609 extern.
12610 (cli_interpreter_exec): Rename to ...
12611 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12612 extern.
12613 (cli_interpreter_supports_command_editing): Rename to ...
12614 (cli_interp_base::supports_command_editing): ... this. Remove
12615 'interp' parameter. Make extern.
12616 (cli_ui_out): Rename to ...
12617 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12618 Make extern.
12619 (cli_set_logging): Rename to ...
12620 (cli_interp_base::set_logging): ... this. Remove 'interp'
12621 parameter. Make extern.
12622 (cli_interp_procs): Delete.
12623 (cli_interp_factory): Adjust to use "new".
12624 * cli/cli-interp.h: Include "interps.h".
12625 (struct cli_interp_base): New struct.
12626 * interps.c (struct interp): Delete. Fields moved to interps.h.
12627 (interp_new): Delete.
12628 (interp::interp, interp::~interp): New.
12629 (interp_set): Use bool, and return void. Assume the interpreter
12630 has suspend, init and resume methods, and that the all return
12631 void.
12632 (set_top_level_interpreter): interp_set returns void.
12633 (interp_ui_out): Adapt.
12634 (current_interp_set_logging): Adapt.
12635 (interp_data): Delete.
12636 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12637 (interp_exec): Adapt.
12638 (top_level_interpreter_data): Delete.
12639 * interps.h (interp_init_ftype, interp_resume_ftype)
12640 (interp_suspend_ftype, interp_exec_ftype)
12641 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12642 (class interp): New.
12643 (interp_new): Delete.
12644 (interp_set): Now returns void. Use bool.
12645 (interp_data, top_level_interpreter_data): Delete.
12646 * mi/mi-common.h: Include interps.h.
12647 (class mi_interp): Inherit from interp. Define a ctor. Declare
12648 init, resume, suspect, exec, interp_ui_out, set_logging and
12649 pre_command_loop methods.
12650 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12651 (mi_interpreter_init): Rename to ...
12652 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12653 bool, return void and make extern. Adjust.
12654 (mi_interpreter_resume): ... Rename to ...
12655 (mi_interp::resume): ... this. Remove the 'data' parameter,
12656 return void and make extern. Adjust.
12657 (mi_interpreter_suspend): ... Rename to ...
12658 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12659 return void and make extern. Adjust.
12660 (mi_interpreter_exec): ... Rename to ...
12661 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12662 extern. Adjust.
12663 (mi_interpreter_pre_command_loop): ... Rename to ...
12664 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12665 parameter and make extern.
12666 (mi_on_normal_stop_1): Adjust.
12667 (mi_ui_out): Rename to ...
12668 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12669 parameter and make extern. Adjust.
12670 (mi_set_logging): Rename to ...
12671 (mi_interp::set_logging): ... this. Remove the 'interp'
12672 parameter and make extern. Adjust.
12673 (mi_interp_procs): Delete.
12674 (mi_interp_factory): Adjust to use 'new'.
12675 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12676 (mi_print_exception, mi_execute_command, mi_load_progress):
12677 Adjust.
12678 * tui/tui-interp.c (tui_interp): New class.
12679 (as_tui_interp): Return a tui_interp pointer.
12680 (tui_on_normal_stop, tui_on_signal_received)
12681 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12682 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12683 to use interp::interp_ui_out.
12684 (tui_init): Rename to ...
12685 (tui_interp::init): ... this. Remove the 'self' parameter, use
12686 bool, return void and make extern. Adjust.
12687 (tui_resume): Rename to ...
12688 (tui_interp::resume): ... this. Remove the 'data' parameter,
12689 return void and make extern. Adjust.
12690 (tui_suspend): Rename to ...
12691 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12692 return void and make extern. Adjust.
12693 (tui_ui_out): Rename to ...
12694 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12695 parameter, and make extern. Adjust.
12696 (tui_exec): Rename to ...
12697 (tui_interp::exec): ... this. Remove the 'data' parameter and
12698 make extern.
12699 (tui_interp_procs): Delete.
12700 (tui_interp_factory): Use "new".
12701
65c40c95
TT
127022017-02-02 Tom Tromey <tom@tromey.com>
12703
12704 * rust-exp.y (ends_raw_string, space_then_number)
12705 (rust_identifier_start_p): Return bool.
12706 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12707 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12708 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12709 (rust_chartype_p): Return bool.
12710 (val_print_struct, rust_print_struct_def, rust_print_type):
12711 Update.
12712 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12713 Return bool.
12714
b50f188d
TT
127152017-02-02 Tom Tromey <tom@tromey.com>
12716
12717 * rust-lang.c: Reindent.
12718
03c85b11
TT
127192017-02-02 Tom Tromey <tom@tromey.com>
12720
12721 * rust-lang.h (rust_crate_for_block): Update.
12722 * rust-lang.c (rust_crate_for_block): Return std::string.
12723 (rust_get_disr_info): Use std:;string, not
12724 gdb::unique_xmalloc_ptr.
12725 * rust-exp.y (crate_name): Update.
12726
9b6da501
PA
127272017-02-02 Pedro Alves <palves@redhat.com>
12728
12729 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12730 field out of gdb_disassembler_test and make it static.
12731
ec4cb20b
PA
127322017-02-02 Pedro Alves <palves@redhat.com>
12733
12734 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12735 mi1_interp and mi_interp fields.
12736
5be5dbf0
PA
127372017-02-02 Pedro Alves <palves@redhat.com>
12738
616268b6
PA
12739 * cli/cli-interp.c (struct saved_output_files, saved_output):
12740 Moved from cli/cli-logging.c.
12741 (cli_set_logging): New function.
12742 (cli_interp_procs): Install cli_set_logging.
12743 * cli/cli-interp.h (make_logging_output, cli_set_logging):
12744 Declare.
12745 * cli/cli-logging.c (struct saved_output_files, saved_output):
12746 Moved to cli/cli-interp.c.
12747 (pop_output_files): Don't save outputs here.
12748 (make_logging_output): New function.
12749 (handle_redirections): Don't build tee nor save previous outputs
12750 here.
12751 * interps.c (current_interp_set_logging): Change prototype.
12752 Assume there's always a set_logging_proc method installed.
12753 * interps.h (interp_set_logging_ftype): Change prototype.
12754 (current_interp_set_logging): Change prototype and adjust comment.
12755 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
12756 use make_logging_output.
12757 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
127582017-02-02 Pedro Alves <palves@redhat.com>
12759
5be5dbf0
PA
12760 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
12761 from ...
12762 (set_logging_overwrite): ... here.
12763 (logging_no_redirect_file): Delete.
12764 (set_logging_redirect): Don't handle redirection on the fly.
12765 Instead warn that "logging off" / "logging on" is necessary.
12766 (pop_output_files): Delete references to logging_no_redirect_file.
12767 (show_logging_command): Always speak in terms of what will happen
12768 once logging is reenabled.
12769
c99cc448
PA
127702017-02-02 Pedro Alves <palves@redhat.com>
12771
12772 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
12773
8b172ce7
PA
127742017-02-02 Pedro Alves <palves@redhat.com>
12775
12776 * disasm.c (gdb_pretty_print_insn): Rename to ...
12777 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
12778 Remove gdbarch parameter. Adapt to clear the object's buffers
12779 instead of allocating new buffers, and to print using the object's
12780 gdb_disassembler instead of calling gdb_print_insn.
12781 (dump_insns): Use gdb_pretty_print_disassembler.
12782 * disasm.h (gdb_pretty_print_insn): Delete declaration.
12783 (gdb_pretty_print_disassembler): New class.
12784 * record-btrace.c (btrace_insn_history): Use
12785 gdb_pretty_print_disassembler.
12786
d7e74731
PA
127872017-02-02 Pedro Alves <palves@redhat.com>
12788
12789 * ada-lang.c (type_as_string): Use string_file.
12790 * ada-valprint.c (ada_print_floating): Use string_file.
12791 * ada-varobj.c (ada_varobj_scalar_image)
12792 (ada_varobj_get_value_image): Use string_file.
12793 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
12794 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
12795 * breakpoint.c (update_inserted_breakpoint_locations)
12796 (insert_breakpoint_locations, reattach_breakpoints)
12797 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
12798 (print_it_watchpoint): Use string_file.
12799 (save_breakpoints): Use stdio_file.
12800 * c-exp.y (oper): Use string_file.
12801 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
12802 tee_file.
12803 (pop_output_files): Use delete.
12804 (handle_redirections): Use stdio_file and tee_file.
12805 * cli/cli-setshow.c (do_show_command): Use string_file.
12806 * compile/compile-c-support.c (c_compute_program): Use
12807 string_file.
12808 * compile/compile-c-symbols.c (generate_vla_size): Take a
12809 'string_file &' instead of a 'ui_file *'.
12810 (generate_c_for_for_one_variable): Take a 'string_file &' instead
12811 of a 'ui_file *'. Use string_file.
12812 (generate_c_for_variable_locations): Take a 'string_file &'
12813 instead of a 'ui_file *'.
12814 * compile/compile-internal.h (generate_c_for_for_one_variable):
12815 Take a 'string_file &' instead of a 'ui_file *'.
12816 * compile/compile-loc2c.c (push, pushf, unary, binary)
12817 (print_label, pushf_register_address, pushf_register)
12818 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
12819 'ui_file *'. Adjust.
12820 * compile/compile.c (compile_to_object): Use string_file.
12821 * compile/compile.h (compile_dwarf_expr_to_c)
12822 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
12823 'ui_file *'.
12824 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
12825 (replace_typedefs_qualified_name): Use string_file and
12826 obstack_copy0.
12827 * disasm.c (gdb_pretty_print_insn): Use string_file.
12828 (gdb_disassembly): Adjust reference the null_stream global.
12829 (do_ui_file_delete): Delete.
12830 (gdb_insn_length): Use null_stream.
12831 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
12832 * dwarf2loc.c (dwarf2_compile_property_to_c)
12833 (locexpr_generate_c_location, loclist_generate_c_location): Take a
12834 'string_file &' instead of a 'ui_file *'.
12835 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
12836 * dwarf2read.c (do_ui_file_peek_last): Delete.
12837 (dwarf2_compute_name): Use string_file.
12838 * event-top.c (gdb_setup_readline): Use stdio_file.
12839 * gdbarch.sh (verify_gdbarch): Use string_file.
12840 * gdbtypes.c (safe_parse_type): Use null_stream.
12841 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
12842 string_file.
12843 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
12844 'string_file *' instead of a 'ui_file *'.
12845 (gdbscm_arch_disassemble): Use string_file.
12846 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
12847 * guile/scm-ports.c (class ioscm_file_port): Now a class that
12848 inherits from ui_file.
12849 (ioscm_file_port_delete, ioscm_file_port_rewind)
12850 (ioscm_file_port_put): Delete.
12851 (ioscm_file_port_write): Rename to ...
12852 (ioscm_file_port::write): ... this. Remove file_port_magic
12853 checks.
12854 (ioscm_file_port_new): Delete.
12855 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
12856 ui_file_up.
12857 * guile/scm-type.c (tyscm_type_name): Use string_file.
12858 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
12859 Use string_file.
12860 * infcmd.c (print_return_value_1): Use string_file.
12861 * infrun.c (print_target_wait_results): Use string_file.
12862 * language.c (add_language): Use string_file.
12863 * location.c (explicit_to_string_internal): Use string_file.
12864 * main.c (captured_main_1): Use null_file.
12865 * maint.c (maintenance_print_architecture): Use stdio_file.
12866 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
12867 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
12868 event_channel>: Change type to mi_console_file pointer.
12869 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
12870 (mi_console_file_delete): Delete.
12871 (struct mi_console_file): Delete.
12872 (mi_console_file_magic): Delete.
12873 (mi_console_file_new): Delete.
12874 (mi_console_file::mi_console_file): New.
12875 (mi_console_file_delete): Delete.
12876 (mi_console_file_fputs): Delete.
12877 (mi_console_file::write): New.
12878 (mi_console_raw_packet): Delete.
12879 (mi_console_file::flush): New.
12880 (mi_console_file_flush): Delete.
12881 (mi_console_set_raw): Rename to ...
12882 (mi_console_file::set_raw): ... this.
12883 * mi/mi-console.h (class mi_console_file): New class.
12884 (mi_console_file_new, mi_console_set_raw): Delete.
12885 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
12886 (mi_set_logging): Use delete and tee_file. Adjust.
12887 * mi/mi-main.c (output_register): Use string_file.
12888 (mi_cmd_data_evaluate_expression): Use string_file.
12889 (mi_cmd_data_read_memory): Use string_file.
12890 (mi_cmd_execute, print_variable_or_computed): Use string_file.
12891 * mi/mi-out.c (mi_ui_out::main_stream): New.
12892 (mi_ui_out::rewind): Use main_stream and
12893 string_file.
12894 (mi_ui_out::put): Use main_stream and string_file.
12895 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12896 Allocate a 'string_file' instead.
12897 (mi_out_new): Don't allocate a mem_fileopen stream here.
12898 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12899 (mi_ui_out::main_stream): Declare method.
12900 * printcmd.c (eval_command): Use string_file.
12901 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
12902 * python/py-arch.c (archpy_disassemble): Use string_file.
12903 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
12904 * python/py-frame.c (frapy_str): Use string_file.
12905 * python/py-framefilter.c (py_print_type, py_print_single_arg):
12906 Use string_file.
12907 * python/py-type.c (typy_str): Use string_file.
12908 * python/py-unwind.c (unwind_infopy_str): Use string_file.
12909 * python/py-value.c (valpy_str): Use string_file.
12910 * record-btrace.c (btrace_insn_history): Use string_file.
12911 * regcache.c (regcache_print): Use stdio_file.
12912 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
12913 * remote.c (escape_buffer): Use string_file.
12914 * rust-lang.c (rust_get_disr_info): Use string_file.
12915 * serial.c (serial_open_ops_1): Use stdio_file.
12916 (do_serial_close): Use delete.
12917 * stack.c (print_frame_arg): Use string_file.
12918 (print_frame_args): Remove local mem_fileopen stream, not used.
12919 (print_frame): Use string_file.
12920 * symmisc.c (maintenance_print_symbols): Use stdio_file.
12921 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
12922 Take a 'string_file *' instead of a 'ui_file *'.
12923 * top.c (new_ui): Use stdio_file and stderr_file.
12924 (free_ui): Use delete.
12925 (execute_command_to_string): Use string_file.
12926 (quit_confirm): Use string_file.
12927 * tracepoint.c (collection_list::append_exp): Use string_file.
12928 * tui/tui-disasm.c (tui_disassemble): Use string_file.
12929 * tui/tui-file.c: Don't include "ui-file.h".
12930 (enum streamtype, struct tui_stream): Delete.
12931 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
12932 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
12933 (tui_file::tui_file): New method.
12934 (tui_file_fputs): Delete.
12935 (tui_file_get_strbuf): Delete.
12936 (tui_file::puts): New method.
12937 (tui_file_adjust_strbuf): Delete.
12938 (tui_file_flush): Delete.
12939 (tui_file::flush): New method.
12940 * tui/tui-file.h: Tweak intro comment.
12941 Include ui-file.h.
12942 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
12943 (tui_file_adjust_strbuf): Delete declarations.
12944 (class tui_file): New class.
12945 * tui/tui-io.c (tui_initialize_io): Use tui_file.
12946 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
12947 (tui_register_format): Use string_stream.
12948 * tui/tui-stack.c (tui_make_status_line): Use string_file.
12949 (tui_get_function_from_frame): Use string_file.
12950 * typeprint.c (type_to_string): Use string_file.
12951 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
12952 (null_stream): New global.
12953 (ui_file_delete): Delete.
12954 (ui_file::ui_file): New.
12955 (null_file_isatty): Delete.
12956 (ui_file::~ui_file): New.
12957 (null_file_rewind): Delete.
12958 (ui_file::printf): New.
12959 (null_file_put): Delete.
12960 (null_file_flush): Delete.
12961 (ui_file::putstr): New.
12962 (null_file_write): Delete.
12963 (ui_file::putstrn): New.
12964 (null_file_read): Delete.
12965 (ui_file::putc): New.
12966 (null_file_fputs): Delete.
12967 (null_file_write_async_safe): Delete.
12968 (ui_file::vprintf): New.
12969 (null_file_delete): Delete.
12970 (null_file::write): New.
12971 (null_file_fseek): Delete.
12972 (null_file::puts): New.
12973 (ui_file_data): Delete.
12974 (null_file::write_async_safe): New.
12975 (gdb_flush, ui_file_isatty): Adjust.
12976 (ui_file_put, ui_file_rewind): Delete.
12977 (ui_file_write): Adjust.
12978 (ui_file_write_for_put): Delete.
12979 (ui_file_write_async_safe, ui_file_read): Adjust.
12980 (ui_file_fseek): Delete.
12981 (fputs_unfiltered): Adjust.
12982 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
12983 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
12984 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
12985 (set_ui_file_data): Delete.
12986 (string_file::~string_file, string_file::write)
12987 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
12988 (do_ui_file_as_string, ui_file_as_string): Delete.
12989 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
12990 (struct mem_file): Delete.
12991 (mem_file_new): Delete.
12992 (stdio_file::stdio_file): New.
12993 (mem_file_delete): Delete.
12994 (stdio_file::stdio_file): New.
12995 (mem_fileopen): Delete.
12996 (stdio_file::~stdio_file): New.
12997 (mem_file_rewind): Delete.
12998 (stdio_file::set_stream): New.
12999 (mem_file_put): Delete.
13000 (stdio_file::open): New.
13001 (mem_file_write): Delete.
13002 (stdio_file_magic, struct stdio_file): Delete.
13003 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13004 (stdio_file::flush): New.
13005 (stdio_file_read): Rename to ...
13006 (stdio_file::read): ... this. Adjust.
13007 (stdio_file_write): Rename to ...
13008 (stdio_file::write): ... this. Adjust.
13009 (stdio_file_write_async_safe): Rename to ...
13010 (stdio_file::write_async_safe) ... this. Adjust.
13011 (stdio_file_fputs): Rename to ...
13012 (stdio_file::puts) ... this. Adjust.
13013 (stdio_file_isatty): Delete.
13014 (stdio_file_fseek): Delete.
13015 (stdio_file::isatty): New.
13016 (stderr_file_write): Rename to ...
13017 (stderr_file::write) ... this. Adjust.
13018 (stderr_file_fputs): Rename to ...
13019 (stderr_file::puts) ... this. Adjust.
13020 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13021 (stderr_file::stderr_file): New.
13022 (tee_file_magic): Delete.
13023 (struct tee_file): Delete.
13024 (tee_file::tee_file): New.
13025 (tee_file_new): Delete.
13026 (tee_file::~tee_file): New.
13027 (tee_file_delete): Delete.
13028 (tee_file_flush): Rename to ...
13029 (tee_file::flush): ... this. Adjust.
13030 (tee_file_write): Rename to ...
13031 (tee_file::write): ... this. Adjust.
13032 (tee_file::write_async_safe): New.
13033 (tee_file_fputs): Rename to ...
13034 (tee_file::puts): ... this. Adjust.
13035 (tee_file_isatty): Rename to ...
13036 (tee_file::isatty): ... this. Adjust.
13037 * ui-file.h (struct obstack, struct ui_file): Don't
13038 forward-declare.
13039 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13040 (ui_file_write_ftype)
13041 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13042 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13043 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13044 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13045 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13046 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13047 (set_ui_file_fseek): Delete.
13048 (ui_file_data, ui_file_delete, ui_file_rewind)
13049 (struct ui_file): New.
13050 (ui_file_up): New.
13051 (class null_file): New.
13052 (null_stream): Declare.
13053 (ui_file_write_for_put, ui_file_put): Delete.
13054 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13055 Delete.
13056 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13057 (gdb_fopen, tee_file_new): Delete.
13058 (struct string_file): New.
13059 (struct stdio_file): New.
13060 (stdio_file_up): New.
13061 (struct stderr_file): New.
13062 (class tee_file): New.
13063 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13064 of a 'ui_file *'. Adjust.
13065 * ui-out.h (class ui_out) <field_stream>: Likewise.
13066 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13067 (null_stream): Delete.
13068 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13069 Adjust.
13070 * utils.h (struct ui_file): Delete forward declaration..
13071 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13072 (error_stream): Take a 'string_file &' instead of a
13073 'ui_file *'.
13074 * varobj.c (varobj_value_get_print_value): Use string_file.
13075 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13076 * gdbarch.c: Regenerate.
13077
187808b0
PA
130782017-02-02 Pedro Alves <palves@redhat.com>
13079
13080 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13081 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13082 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13083 Adjust to call gdb_print_insn instead of
13084 gdb_disassembler::print_insn.
13085 (dump_insns, do_mixed_source_and_assembly_deprecated)
13086 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13087 'gdbarch' parameter. Remove gdb_disassembler parameter.
13088 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13089 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13090 declaration.
13091 (gdb_pretty_print_insn): Re-add declaration.
13092 * record-btrace.c (btrace_insn_history): Don't allocate a
13093 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13094
7a8eb317
SM
130952017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13096
13097 * disasm.h (gdb_disassembly): Remove file_string parameter.
13098 * disasm.c (gdb_disassembly): Likewise.
13099 * cli/cli-cmds.c (print_disassembly): Adapt.
13100 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13101 * stack.c (do_gdb_disassembly): Likewise.
13102
7346ef59
AA
131032017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13104
13105 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13106 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13107 targets. And if the implicit value is longer than needed, extract
13108 the first bytes instead of the "least significant" ones.
13109
cd4007e4
MM
131102017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13111
13112 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13113 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13114 (btrace_fetch): Assert can_access_registers_ptid.
13115 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13116 validate_registers_access.
13117
cf77c34e
MM
131182017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13119
13120 * gdbthread.h (can_access_registers_ptid): New.
13121 * thread.c (can_access_registers_ptid): New.
13122
be85ce7d
PA
131232017-02-01 Pedro Alves <palves@redhat.com>
13124
13125 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13126
29b0b251
PA
131272017-01-31 Pedro Alves <palves@redhat.com>
13128
13129 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13130 Fix typos.
13131
289b5b24
PA
131322017-01-31 Pedro Alves <palves@redhat.com>
13133
13134 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13135 not used.
13136
b47413b4
PA
131372017-01-31 Pedro Alves <palves@redhat.com>
13138
13139 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13140
60adb36c
PA
131412017-01-31 Pedro Alves <palves@redhat.com>
13142
13143 * common/scoped_restore.h
13144 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13145 change the value's parameter type to T2.
13146 (make_scoped_restore): Likewise.
13147
2735833d
WT
131482017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13149 Richard Henderson <rth@redhat.com>
13150
13151 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13152 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13153 GS_BASE for older kernels.
13154 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13155 GS_BASE for older kernels.
13156 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13157 and GS_BASE to the offset table.
13158 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13159 system register group.
13160 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13161 for older kernels.
13162 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13163 amd64 ABI.
13164 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13165 AMD64_GSBASE_REGNUM.
13166 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13167 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13168 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13169 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13170 i386/64bit-segments.xml in those rules.
13171 * features/i386/64bit-segments.xml: New file.
13172 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13173 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13174 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13175 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13176 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13177 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13178 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13179 * features/i386/amd64-avx-linux.c: Regenerated.
13180 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13181 * features/i386/amd64-avx-mpx.c: Regenerated.
13182 * features/i386/amd64-avx512-linux.c: Regenerated.
13183 * features/i386/amd64-linux.c: Regenerated.
13184 * features/i386/amd64-mpx-linux.c: Regenerated.
13185 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13186 * features/i386/i386-avx-mpx.c: Regenerated.
13187 * features/i386/x32-avx-linux.c: Regenerated.
13188 * features/i386/x32-avx512-linux.c: Regenerated.
13189 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13190 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13191 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13192 * regformats/i386/amd64-linux.dat: Regenerated.
13193 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13194 * regformats/i386/x32-avx-linux.dat: Regenerated.
13195 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13196 * regformats/i386/x32-linux.dat: Regenerated.
13197
8884e97e
WT
131982017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13199
13200 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13201 Set to AMD64_NUM_REGS.
13202
7005d26a
WT
132032017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13204
13205 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13206 that checks validity of a register number.
13207
4bd2e1b2
KC
132082017-01-27 Kees Cook <keescook@google.com>
13209
13210 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13211 fetch_fpregs if target has fpa registers.
13212 (arm_linux_store_inferior_registers): Call store_fpregs if target
13213 has fpa registers.
13214
7cf1de6c
AA
132152017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13216
13217 * cris-tdep.c (cris_gdbarch_init): Remove check for
13218 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13219
874a1c8c
AT
132202017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13221
13222 * corelow.c (get_core_register_section): Check for regset
13223 existence before checking for REGSET_VARIABLE_SIZE.
13224
d8b49cf0
YQ
132252017-01-26 Yao Qi <yao.qi@linaro.org>
13226 Pedro Alves <palves@redhat.com>
13227
13228 PR gdb/20939
13229 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13230 call memory_error, save memaddr instead.
13231 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13232 negative, cal memory_error.
13233 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13234
658ca58c
YQ
132352017-01-26 Yao Qi <yao.qi@linaro.org>
13236
13237 * disasm-selftests.c (memory_error_test): New function.
13238 (_initialize_disasm_selftests): Register memory_error_test.
13239
79843d45
YQ
132402017-01-26 Yao Qi <yao.qi@linaro.org>
13241
13242 * Makefile.in (SFILES): Add disasm-selftests.c and
13243 selftest-arch.c.
13244 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13245 * disasm-selftests.c: New file.
13246 * selftest-arch.c: New file.
13247 * selftest-arch.h: New file.
13248
8cafda32
YQ
132492017-01-26 Yao Qi <yao.qi@linaro.org>
13250
13251 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13252 to bfd_arch_mep. Don't return 0 if section is not
13253 found. Call print_insn_mep.
13254
e47ad6c0
YQ
132552017-01-26 Pedro Alves <palves@redhat.com>
13256 Yao Qi <yao.qi@linaro.org>
13257
13258 * arm-tdep.c: Include "disasm.h".
13259 (gdb_print_insn_arm): Update code to get gdbarch.
13260 * disasm.c (dis_asm_read_memory): Change it to
13261 gdb_disassembler::dis_asm_read_memory.
13262 (dis_asm_memory_error): Likewise.
13263 (dis_asm_print_address): Likewise.
13264 (gdb_pretty_print_insn): Change it to
13265 gdb_disassembler::pretty_print_insn.
13266 (dump_insns): Add one argument gdb_disassemlber. All
13267 callers updated.
13268 (do_mixed_source_and_assembly_deprecated): Likewise.
13269 (do_mixed_source_and_assembly): Likewise.
13270 (do_assembly_only): Likewise.
13271 (gdb_disassembler::gdb_disassembler): New.
13272 (gdb_disassembler::print_insn): New.
13273 * disasm.h (class gdb_disassembler): New.
13274 (gdb_pretty_print_insn): Remove declaration.
13275 (gdb_disassemble_info): Likewise.
13276 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13277 (gdbscm_disasm_read_memory_worker): Update.
13278 (gdbscm_disasm_read_memory): Update.
13279 (gdbscm_disasm_memory_error): Remove.
13280 (gdbscm_disasm_print_address): Remove.
13281 (gdbscm_disassembler::gdbscm_disassembler): New.
13282 (gdbscm_print_insn_from_port): Update.
13283 * mips-tdep.c: Include disasm.h.
13284 (gdb_print_insn_mips): Update code to get gdbarch.
13285 * record-btrace.c (btrace_insn_history): Update.
13286 * spu-tdep.c: Include disasm.h.
13287 (struct spu_dis_asm_data): Remove.
13288 (struct spu_dis_asm_info): New.
13289 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13290 SPU id.
13291 (gdb_print_insn_spu): Cast disassemble_info to
13292 spu_dis_asm_info.
13293
80d75874
YQ
132942017-01-26 Yao Qi <yao.qi@linaro.org>
13295
13296 * disasm.c (do_ui_file_delete): Delete.
13297 (gdb_insn_length): Move code creating stream to ...
13298 * utils.c (null_stream): ... here. New function.
13299 * utils.h (null_stream): Declare.
13300
60685cd0
SM
133012017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13302
13303 * python/py-inferior.c (find_thread_object): Return directly
13304 from the loop. Remove "found" variable.
13305
eb1cdb62
JB
133062017-01-21 Joel Brobecker <brobecker@adacore.com>
13307
13308 GDB 7.12.1 released.
13309
b1ce6568
SM
133102017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13311
13312 * python/py-function.c (fnpy_call): Reorder declarations to have
13313 the gdbpy_enter object declared first.
13314 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13315
6f8b0407
SM
133162017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13317
fec93fb1 13318 PR python/21068
6f8b0407
SM
13319 * python/python-internal.h (PyMem_RawMalloc): Define for
13320 Python < 3.4.
13321 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13322 PyMem_RawMalloc instead of PyMem_Malloc.
13323
78cbbba8
LM
133242017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13325 Luis Machado <lgustavo@codesourcery.com>
13326
13327 * NEWS (New commands): Mention flash-erase.
13328 (New MI commands): Mention target-flash-erase.
13329 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13330 command.
13331 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13332 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13333 * target.c (flash_erase_command): New function.
13334 (initialize_targets): Add new flash-erase command.
13335 * target.h (flash_erase_command): New declaration.
13336
2132fe85
JB
133372017-01-20 Joel Brobecker <brobecker@adacore.com>
13338
13339 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13340 HAVE_SYS_PROCFS_H is defined.
13341
d1dff226
AH
133422017-01-18 Alan Hayward <alan.hayward@arm.com>
13343
13344 * remote.c (struct cached_reg): Change data into a pointer.
13345 * (stop_reply_dtr): Free data pointers before deleting vector.
13346 (process_stop_reply): Likewise.
13347 (remote_parse_stop_reply): Allocate space for data
13348
9890e433
AH
133492017-01-18 Alan Hayward <alan.hayward@arm.com>
13350
13351 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13352 MAX_REGISTER_SIZE.
13353 (amd64_pseudo_register_read_value): Likewise.
13354 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13355 (store_register_using_P): Likewise.
13356 * regcache.c (regcache_xfer_part): Likewise.
13357
7a36499a
IR
133582017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13359
13360 Split real and pseudo registers.
13361 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13362 (sparc32_pseudo_regnum): New enum.
13363 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13364 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13365 (SPARC32_CP0_REGISTERS): New macro.
13366 (sparc32_pseudo_register_name): New function.
13367 (sparc32_register_name): Use sparc32_pseudo_register_name.
13368 (sparc32_pseudo_register_type): New function.
13369 (sparc32_register_type): Use sparc32_pseudo_register_type.
13370 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13371 pseudo register numbers.
13372 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13373 (SPARC64_CP0_REGISTERS): New macro.
13374 (sparc64_pseudo_register_name): New function.
13375 (sparc64_register_name): Use sparc64_pseudo_register_name.
13376 (sparc64_pseudo_register_type): New function.
13377 (sparc64_register_type): Use sparc64_pseudo_register_type.
13378 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13379 pseudo register numbers.
13380 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13381 sparc64_store_arguments): Handle pseudo register numbers.
13382
6f8976bf
YQ
133832017-01-13 Yao Qi <yao.qi@linaro.org>
13384
13385 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13386 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13387 output.
13388 (getpkt_or_notif_sane_1): Likewise.
13389
e4241ace
YQ
133902017-01-13 Yao Qi <yao.qi@linaro.org>
13391
13392 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13393 of CC. Pass "-x c++-header" instead of "-x c".
13394
3015c064
SM
133952017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13396
13397 * remote.c (remote_can_async_p): Update comment.
13398
fde1b17d
SM
133992017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13400
13401 * linux-nat.c (linux_nat_can_async_p): Update comment.
13402
ca1ca08b
SM
134032017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13404
13405 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13406
4ad2da73
SM
134072017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13408
13409 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13410
c8b23b3f
TT
134112017-01-10 Tom Tromey <tom@tromey.com>
13412
13413 * python/py-type.c (typy_legacy_template_argument): Update.
13414 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13415 ~demangle_parse_info): Declare new members.
13416 (cp_demangled_name_to_comp): Return unique_ptr.
13417 (cp_demangled_name_parse_free)
13418 (make_cleanup_cp_demangled_name_parse_free)
13419 (cp_new_demangle_parse_info): Remove.
13420 * cp-support.c (do_demangled_name_parse_free_cleanup)
13421 (make_cleanup_cp_demangled_name_parse_free): Remove.
13422 (inspect_type, cp_canonicalize_string_full)
13423 (cp_canonicalize_string): Update.
13424 (mangled_name_to_comp): Change return type.
13425 (cp_class_name_from_physname, method_name_from_physname)
13426 (cp_func_name, cp_remove_params): Update.
13427 * cp-name-parser.y (demangle_parse_info): New constructor, from
13428 cp_new_demangle_parse_info.
13429 (~demangle_parse_info): New destructor, from
13430 cp_demangled_name_parse_free.
13431 (cp_merge_demangle_parse_infos): Update.
13432 (cp_demangled_name_to_comp): Change return type.
13433
1ac32117
TT
134342017-01-10 Tom Tromey <tom@tromey.com>
13435
13436 * top.c (prevent_dont_repeat): Change return type.
13437 * python/python.c (execute_gdb_command): Use std::string.
13438 Update.
13439 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13440 * command.h (prevent_dont_repeat): Change return type.
13441 * breakpoint.c (bpstat_do_actions_1): Update.
13442
0cf08227
TT
134432017-01-10 Tom Tromey <tom@tromey.com>
13444
13445 * value.h (scoped_value_mark::~scoped_value_mark): Call
13446 free_to_mark.
13447 (scoped_value_mark::free_to_mark): New method.
13448 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13449 scoped_value_mark.
13450
eb115069
TT
134512017-01-10 Tom Tromey <tom@tromey.com>
13452
13453 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13454 (valpy_reference_value, valpy_const_value, valpy_get_address)
13455 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13456 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13457 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13458 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13459 scoped_value_mark.
13460 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13461 * value.h (scoped_value_mark): New class.
13462
906768f9
TT
134632017-01-10 Tom Tromey <tom@tromey.com>
13464
13465 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13466 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13467 * psymtab.c (discard_psymtabs_upto): Remove.
13468 (make_cleanup_discard_psymtabs): Remove.
13469 (struct psymtab_state): Remove.
13470
bef155c3
TT
134712017-01-10 Tom Tromey <tom@tromey.com>
13472
13473 * record-full.c (record_full_save_cleanups): Remove.
13474 (record_full_save): Use gdb::unlinker.
13475 * gcore.c (do_bfd_delete_cleanup): Remove.
13476 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13477 cleanups.
13478 * dwarf2read.c (unlink_if_set): Remove.
13479 (write_psymtabs_to_index): Use gdb::unlinker.
13480 * common/gdb_unlinker.h: New file.
13481
192b62ce
TT
134822017-01-10 Tom Tromey <tom@tromey.com>
13483
13484 * windows-tdep.c (windows_xfer_shared_library): Update.
13485 * windows-nat.c (windows_make_so): Update.
13486 * utils.h (make_cleanup_bfd_unref): Remove.
13487 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13488 * symfile.h (symfile_bfd_open)
13489 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13490 * symfile.c (read_symbols, symbol_file_add)
13491 (separate_debug_file_exists): Update.
13492 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13493 (generic_load, reread_symbols): Update.
13494 * symfile-mem.c (symbol_file_add_from_memory): Update.
13495 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13496 (spu_symbol_file_add_from_memory): Update.
13497 * solist.h (struct target_so_ops) <bfd_open>: Return
13498 gdb_bfd_ref_ptr.
13499 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13500 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13501 gdb_bfd_ref_ptr.
13502 (solib_map_sections, reload_shared_libraries_1): Update.
13503 * solib-svr4.c (enable_break): Update.
13504 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13505 * solib-frv.c (enable_break2): Update.
13506 * solib-dsbt.c (enable_break): Update.
13507 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13508 gdb_bfd_ref_ptr.
13509 (darwin_solib_get_all_image_info_addr_at_init): Update.
13510 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13511 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13512 * record-full.c (record_full_save): Update.
13513 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13514 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13515 * minidebug.c (find_separate_debug_file_in_section): Return
13516 gdb_bfd_ref_ptr.
13517 * machoread.c (macho_add_oso_symfile): Change abfd to
13518 gdb_bfd_ref_ptr.
13519 (macho_symfile_read_all_oso): Update.
13520 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13521 (macho_symfile_read): Update.
13522 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13523 (jit_bfd_try_read_symtab): Update.
13524 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13525 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13526 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13527 gdb_bfd_ref_ptr.
13528 (gdb_bfd_ref_policy): New struct.
13529 (gdb_bfd_ref_ptr): New typedef.
13530 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13531 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13532 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13533 gdb_bfd_ref_ptr.
13534 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13535 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13536 (gcore_command): Update.
13537 * exec.c (exec_file_attach): Update.
13538 * elfread.c (elf_symfile_read): Update.
13539 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13540 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13541 (open_and_init_dwo_file): Update.
13542 (open_dwp_file): Return gdb_bfd_ref_ptr.
13543 (open_and_init_dwp_file): Update.
13544 * corelow.c (core_open): Update.
13545 * compile/compile-object-load.c (compile_object_load): Update.
13546 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13547 * coffread.c (coff_symfile_read): Update.
13548 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13549 gdb_bfd_ref_ptr. Rename.
13550 (dump_bfd_file, restore_command): Update.
13551 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13552 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13553 (find_separate_debug_file_by_buildid): Update.
13554
50315b21
TT
135552017-01-10 Tom Tromey <tom@tromey.com>
13556
13557 * common/gdb_ref_ptr.h: New file.
13558 * python/py-ref.h (struct gdbpy_ref_policy): New.
13559 (gdbpy_ref): Now a typedef.
13560
fc4007c9
TT
135612017-01-10 Tom Tromey <tom@tromey.com>
13562
13563 * utils.h (make_cleanup_htab_delete): Don't declare.
13564 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13565 Remove.
13566 * linespec.c (decode_compound_collector): Add constructor,
13567 destructor.
13568 (lookup_prefix_sym): Remove cleanup.
13569 (symtab_collector): Add constructor, destructor.
13570 (collect_symtabs_from_filename): Remove cleanup.
13571 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13572 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13573 Use htab_up.
13574 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13575 * dwarf2read.c (dw2_expand_symtabs_matching)
13576 (dw2_map_symbol_filenames, dwarf_decode_macros)
13577 (write_psymtabs_to_index): Use htab_up.
13578 * dwarf2loc.c (func_verify_no_selftailcall)
13579 (call_site_find_chain_1, func_verify_no_selftailcall)
13580 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13581 std::vector, gdb::unique_xmalloc_ptr.
13582 (call_sitep): Remove typedef.
13583 (dwarf2_locexpr_baton_eval): Remove unused variable.
13584
8dbcee67
TT
135852017-01-10 Tom Tromey <tom@tromey.com>
13586
13587 * python/python-internal.h (make_cleanup_py_decref)
13588 (make_cleanup_py_xdecref): Don't declare.
13589 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13590 (py_xdecref, make_cleanup_py_xdecref): Remove.
13591
13df46cc
TT
135922017-01-10 Tom Tromey <tom@tromey.com>
13593
13594 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13595 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13596
06fc9bf7
TT
135972017-01-10 Tom Tromey <tom@tromey.com>
13598
13599 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13600
830a4934
TT
136012017-01-10 Tom Tromey <tom@tromey.com>
13602
13603 * python/py-utils.c (unicode_to_encoded_string)
13604 (python_string_to_target_string)
13605 (python_string_to_target_python_string)
13606 (python_string_to_host_string, gdbpy_obj_to_string)
13607 (get_addr_from_python): Use gdbpy_ref.
13608
4586d543
TT
136092017-01-10 Tom Tromey <tom@tromey.com>
13610
13611 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13612 gdbpy_ref.
13613
59876f8f
TT
136142017-01-10 Tom Tromey <tom@tromey.com>
13615
13616 * python/python.c (eval_python_command, gdbpy_decode_line)
13617 (gdbpy_run_events, gdbpy_start_type_printers)
13618 (gdbpy_apply_type_printers): Use gdbpy_ref.
13619
97d83487
TT
136202017-01-10 Tom Tromey <tom@tromey.com>
13621
13622 * python/py-param.c (get_doc_string, compute_enum_values): Use
13623 gdbpy_ref.
13624
9205649a
TT
136252017-01-10 Tom Tromey <tom@tromey.com>
13626
13627 * python/py-inferior.c (find_thread_object, build_inferior_list):
13628 Use gdbpy_ref.
13629
74c49d45
TT
136302017-01-10 Tom Tromey <tom@tromey.com>
13631
13632 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13633
16361ffb
TT
136342017-01-10 Tom Tromey <tom@tromey.com>
13635
13636 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13637 gdbpy_ref.
13638
905f2cca
TT
136392017-01-10 Tom Tromey <tom@tromey.com>
13640
13641 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13642 extra incref.
13643 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13644 Use gdbpy_ref.
13645
64081434
TT
136462017-01-10 Tom Tromey <tom@tromey.com>
13647
13648 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13649 gdbpy_ref.
13650
59e9e831
TT
136512017-01-10 Tom Tromey <tom@tromey.com>
13652
13653 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13654 decref results of PyArg_ParseTupleAndKeywords.
13655
9de10f6d
TT
136562017-01-10 Tom Tromey <tom@tromey.com>
13657
13658 * python/python.c (python_run_simple_file): Use
13659 unique_xmalloc_ptr, gdbpy_ref.
13660
2bd5759d
TT
136612017-01-10 Tom Tromey <tom@tromey.com>
13662
13663 * python/py-prettyprint.c (print_stack_unless_memory_error)
13664 (print_string_repr, print_children): Use gdbpy_ref.
13665 (dummy_python_frame): New class.
13666 (dummy_python_frame::dummy_python_frame): Rename from
13667 push_dummy_python_frame.
13668 (py_restore_tstate): Remove.
13669
3b4e0e01
TT
136702017-01-10 Tom Tromey <tom@tromey.com>
13671
13672 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13673
17a22718
TT
136742017-01-10 Tom Tromey <tom@tromey.com>
13675
13676 * python/python.c (ensure_python_env, restore_python_env):
13677 Remove.
13678 * python/python-internal.h (ensure_python_env): Don't declare.
13679 * varobj.h (varobj_ensure_python_env): Don't declare.
13680 * varobj.c (varobj_ensure_python_env): Remove.
13681
68cdc557
TT
136822017-01-10 Tom Tromey <tom@tromey.com>
13683
13684 * varobj.c (varobj_value_get_print_value): Use
13685 gdbpy_enter_varobj.
13686
1eba6383
TT
136872017-01-10 Tom Tromey <tom@tromey.com>
13688
13689 * python/py-prettyprint.c (print_string_repr, print_children):
13690 Update.
13691 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13692 of "encoding".
13693 * varobj.c (varobj_value_get_print_value): Update.
13694 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13695
bde7b3e3
TT
136962017-01-10 Tom Tromey <tom@tromey.com>
13697
13698 * varobj.c (varobj_get_display_hint)
13699 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13700 (varobj_set_visualizer, free_variable): Use
13701 gdbpy_enter_varobj.
13702
a7785f8c
TT
137032017-01-10 Tom Tromey <tom@tromey.com>
13704
13705 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13706 (do_finish_initialization): New function. Use gdbpy_ref.
13707 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13708 do_finish_initialization.
13709
2865bfce
TT
137102017-01-10 Tom Tromey <tom@tromey.com>
13711
13712 * python/py-param.c (get_set_value, get_show_value): Use
13713 gdbpy_enter, gdbpy_ref.
13714
0e9dcc75
TT
137152017-01-10 Tom Tromey <tom@tromey.com>
13716
13717 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13718
12a5cedd
TT
137192017-01-10 Tom Tromey <tom@tromey.com>
13720
13721 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13722
788f2586
TT
137232017-01-10 Tom Tromey <tom@tromey.com>
13724
13725 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13726 Use gdbpy_enter_varobj.
13727
6cd67bea
TT
137282017-01-10 Tom Tromey <tom@tromey.com>
13729
13730 * varobj.c (gdbpy_enter_varobj): New constructor.
13731 * python/python-internal.h (gdbpy_enter_varobj): New class.
13732 * python/py-varobj.c (py_varobj_get_iterator): Use
13733 gdbpy_enter_varobj.
13734
14b122bf
TT
137352017-01-10 Tom Tromey <tom@tromey.com>
13736
13737 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
13738 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13739 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
13740 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
13741 unique_xmalloc_ptr.
13742 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
13743
bf1ca3b9
TT
137442017-01-10 Tom Tromey <tom@tromey.com>
13745
13746 * python/py-xmethods.c (invoke_match_method): Use
13747 gdbpy_ref.
13748
572a5524
TT
137492017-01-10 Tom Tromey <tom@tromey.com>
13750
13751 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
13752 gdbpy_enter, gdbpy_ref.
13753
396a78b6
TT
137542017-01-10 Tom Tromey <tom@tromey.com>
13755
13756 * python/python.c (python_interactive_command): Use gdbpy_enter.
13757
a88b13c7
TT
137582017-01-10 Tom Tromey <tom@tromey.com>
13759
13760 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
13761 gdbpy_ref.
13762
e9f0c363
TT
137632017-01-10 Tom Tromey <tom@tromey.com>
13764
13765 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
13766 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13767
6349f452
TT
137682017-01-10 Tom Tromey <tom@tromey.com>
13769
13770 * utils.h (htab_deleter): New struct.
13771 (htab_up): New typedef.
13772 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
13773 gdbpy_enter, gdbpy_ref, htab_up.
13774
c0171de6
TT
137752017-01-10 Tom Tromey <tom@tromey.com>
13776
13777 * python/py-unwind.c (pending_frame_invalidate): Remove.
13778 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
13779
f18e226f
TT
137802017-01-10 Tom Tromey <tom@tromey.com>
13781
13782 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
13783 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
13784
c57af3f1
TT
137852017-01-10 Tom Tromey <tom@tromey.com>
13786
13787 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
13788
60e600ec
TT
137892017-01-10 Tom Tromey <tom@tromey.com>
13790
13791 * python/python.c (gdbpy_eval_from_control_command)
13792 (gdbpy_source_script, gdbpy_run_events)
13793 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
13794 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
13795 gdbpy_enter.
13796
bf7da5b0
TT
137972017-01-10 Tom Tromey <tom@tromey.com>
13798
13799 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
13800
2d38bced
TT
138012017-01-10 Tom Tromey <tom@tromey.com>
13802
13803 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
13804
07bc7329
TT
138052017-01-10 Tom Tromey <tom@tromey.com>
13806
13807 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
13808 (python_on_inferior_call_pre, python_on_inferior_call_post)
13809 (python_on_memory_change, python_on_register_change)
13810 (python_inferior_exit, python_new_objfile, add_thread_object)
13811 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
13812
6e7c365e
TT
138132017-01-10 Tom Tromey <tom@tromey.com>
13814
13815 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
13816 (bpfinishpy_handle_exit): Use gdbpy_enter.
13817
6ba0cd40
TT
138182017-01-10 Tom Tromey <tom@tromey.com>
13819
13820 * python/py-cmd.c (cmdpy_destroyer)
13821 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
13822 gdbpy_enter.
13823
de2dc875
TT
138242017-01-10 Tom Tromey <tom@tromey.com>
13825
13826 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13827 gdbpy_enter.
13828 (gdbpy_breakpoint_has_cond): Likewise.
13829
4ecee2c4
TT
138302017-01-10 Tom Tromey <tom@tromey.com>
13831
13832 * python/python.c (gdbpy_enter): New constructor.
13833 (~gdbpy_enter): New destructor.
13834 (restore_python_env, ensure_python_env): Rewrite.
13835 * python/python-internal.h (gdbpy_enter): New class.
13836
37fce74f
TT
138372017-01-10 Tom Tromey <tom@tromey.com>
13838
13839 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
13840
53a0cca3
TT
138412017-01-10 Tom Tromey <tom@tromey.com>
13842
13843 * python/py-value.c (value_has_field, get_field_flag)
13844 (get_field_type, valpy_getitem, convert_value_from_python): Use
13845 gdbpy_ref.
13846
ff3724f5
TT
138472017-01-10 Tom Tromey <tom@tromey.com>
13848
13849 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
13850 gdbpy_ref.
13851
0700aea5
TT
138522017-01-10 Tom Tromey <tom@tromey.com>
13853
13854 * python/py-prettyprint.c (search_pp_list)
13855 (find_pretty_printer_from_objfiles)
13856 (find_pretty_printer_from_progspace)
13857 (find_pretty_printer_from_gdb, find_pretty_printer)
13858 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
13859 gdbpy_ref.
13860
1bb44c9f
TT
138612017-01-10 Tom Tromey <tom@tromey.com>
13862
13863 * python/py-param.c (call_doc_function): Use gdbpy_ref.
13864
87ce03fd
TT
138652017-01-10 Tom Tromey <tom@tromey.com>
13866
13867 * python/py-linetable.c (build_line_table_tuple_from_pcs)
13868 (ltpy_get_all_source_lines): Use gdbpy_ref.
13869
ee0a3fb8
TT
138702017-01-10 Tom Tromey <tom@tromey.com>
13871
13872 * python/py-framefilter.c (extract_sym, extract_value)
13873 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
13874 gdbpy_ref.
13875
bf2a52fa
TT
138762017-01-10 Tom Tromey <tom@tromey.com>
13877
13878 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
13879
f59fe7f8
TT
138802017-01-10 Tom Tromey <tom@tromey.com>
13881
13882 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
13883
80bd970a
TT
138842017-01-10 Tom Tromey <tom@tromey.com>
13885
13886 * python/py-function.c (convert_values_to_python, fnpy_init): Use
13887 gdbpy_ref.
13888
d1b3de2e
TT
138892017-01-10 Tom Tromey <tom@tromey.com>
13890
13891 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
13892
3bb43384
TT
138932017-01-10 Tom Tromey <tom@tromey.com>
13894
13895 * python/py-type.c (convert_field, make_fielditem, typy_fields)
13896 (typy_range): Use gdbpy_ref.
13897
abf5651e
TT
138982017-01-10 Tom Tromey <tom@tromey.com>
13899
13900 * python/py-threadevent.c (create_thread_event_object): Use
13901 gdbpy_ref.
13902 * python/py-stopevent.c (create_stop_event_object): Simplify.
13903 (emit_stop_event): Use gdbpy_ref.
13904 * python/py-signalevent.c (create_signal_event_object): Use
13905 gdbpy_ref.
13906 * python/py-newobjfileevent.c (create_new_objfile_event_object)
13907 (emit_new_objfile_event, create_clear_objfiles_event_object)
13908 (emit_clear_objfiles_event): Use gdbpy_ref.
13909 * python/py-infevents.c (create_inferior_call_event_object)
13910 (create_register_changed_event_object)
13911 (create_memory_changed_event_object, emit_inferior_call_event)
13912 (emit_memory_changed_event, emit_register_changed_event): Use
13913 gdbpy_ref.
13914 * python/py-exitedevent.c (create_exited_event_object)
13915 (emit_exited_event): Use gdbpy_ref.
13916 * python/py-event.h (evpy_emit_event): Remove
13917 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
13918 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
13919 * python/py-continueevent.c (emit_continue_event): Use
13920 gdbpy_ref.
13921 * python/py-breakpoint.c (gdbpy_breakpoint_created)
13922 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
13923 gdbpy_ref.
13924 * python/py-bpevent.c (create_breakpoint_event_object): Use
13925 gdbpy_ref.
13926
a68ff33e
TT
139272017-01-10 Tom Tromey <tom@tromey.com>
13928
13929 * python/py-ref.h: New file.
13930
7becfd03
SM
139312017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13932
13933 * cli-out.c (cli_ui_out::do_redirect): Change return type to
13934 void.
13935 * cli-out.h (cli_ui_out::do_redirect): Likewise.
13936 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
13937 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
13938 * ui-out.c (ui_out::redirect): Likewise.
13939 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
13940 * cli/cli-logging.c (set_logging_redirect): Update call site of
13941 ui_out::redirect.
13942 (handle_redirections): Likewise.
13943 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
13944 * top.c (execute_command_to_string): Likewise.
13945 * utils.c (do_ui_out_redirect_pop): Likewise.
13946
df294654
SM
139472017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13948
13949 * stack.c (_initialize_stack): Update "frame" command help message.
13950
f5e6296e
IB
139512017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
13952
13953 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
13954
0e2d6fa6
YQ
139552017-01-06 Yao Qi <yao.qi@linaro.org>
13956
13957 * x86-linux-nat.h: Include gdb_proc_service.h.
13958
44d6d3f9
YQ
139592017-01-06 Yao Qi <yao.qi@linaro.org>
13960
13961 * ser-base.h: Include serial.h.
13962
656731fe
YQ
139632017-01-06 Yao Qi <yao.qi@linaro.org>
13964
13965 * ppc-linux-tdep.h: Include ppc-tdep.h.
13966
1ca8f924
YQ
139672017-01-06 Yao Qi <yao.qi@linaro.org>
13968
13969 * nat/amd64-linux-siginfo.h: Include signal.h.
13970
bc3008c4
YQ
139712017-01-06 Yao Qi <yao.qi@linaro.org>
13972
13973 * nat/aarch64-linux-hw-point.h: Include break-common.h.
13974
66c80d03
YQ
139752017-01-06 Yao Qi <yao.qi@linaro.org>
13976
13977 * mi/mi-parse.h: Include mi-cmds.h.
13978
051d2dda
YQ
139792017-01-06 Yao Qi <yao.qi@linaro.org>
13980
13981 * inf-loop.c: Don't include "target.h".
13982 * inf-loop.h: Include it here.
13983
8018d34f
YQ
139842017-01-06 Yao Qi <yao.qi@linaro.org>
13985
13986 * dfp.h: Include "dboulest.h" and "expression.h".
13987
c0b8369c
YQ
139882017-01-06 Yao Qi <yao.qi@linaro.org>
13989
13990 * ax-gdb.h: Include "ax.h".
13991
ad5cba2a
YQ
139922017-01-06 Yao Qi <yao.qi@linaro.org>
13993
13994 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
13995 with nat/gdb_ptrace.h.
13996
1c33cd7f
YQ
139972017-01-05 Yao Qi <yao.qi@linaro.org>
13998
13999 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14000 new line.
14001 (mips64_fbsd_sigframe_init): Likewise.
14002
c988ac1d
JB
140032017-01-04 John Baldwin <jhb@FreeBSD.org>
14004
14005 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14006 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14007
b268007c
JB
140082017-01-04 John Baldwin <jhb@FreeBSD.org>
14009
14010 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14011 * NEWS: Mention new FreeBSD/mips native configuration.
14012 * config/mips/fbsd.mh: New file.
14013 * configure.host: Add mips*-*-freebsd*.
14014 * mips-fbsd-nat.c: New file.
14015
387360da
JB
140162017-01-04 John Baldwin <jhb@FreeBSD.org>
14017
14018 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14019 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14020 * NEWS: Mention new FreeBSD/mips target.
14021 * configure.tgt: Add mips*-*-freebsd*.
14022 * mips-fbsd-tdep.c: New file.
14023 * mips-fbsd-tdep.h: New file.
14024
2aaaf250
YQ
140252017-01-04 Yao Qi <yao.qi@linaro.org>
14026
14027 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14028 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14029
61baf725
JB
140302017-01-01 Joel Brobecker <brobecker@adacore.com>
14031
6dbb839a 14032 Update copyright year range in all GDB files.
61baf725 14033
c113e7ff 140342017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14035
c113e7ff 14036 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14037
c113e7ff 14038For older changes see ChangeLog-2016.
c906108c
SS
14039\f
14040Local Variables:
14041mode: change-log
14042left-margin: 8
14043fill-column: 74
14044version-control: never
57da7796 14045coding: utf-8
c906108c 14046End:
This page took 3.606203 seconds and 4 git commands to generate.