]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Add tests for filename_language
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
32fa66eb
SM
12017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2
3 * symfile.c: Include selftest.h.
4 (class scoped_restore_filename_language_table): New.
5 (test_filename_language): New test.
6 (test_set_ext_lang_command): New test.
7 (_initialize_symfile): Register tests.
8
4a27f119
KS
92017-10-27 Keith Seitz <keiths@redhat.com>
10
11 * breakpoint.c (print_breakpoint_location): Use the symbol saved
12 in the bp_location, falling back to find_pc_sect_function when
13 needed.
14 (add_location_to_breakpoint): Save sal->symbol.
15 * breakpoint.h (struct bp_location) <symbol>: New field.
16 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
17 * symtab.h (struct symtab_and_line) <symbol>: New field.
18
a43f3893
PF
192017-10-26 Patrick Frants <osscontribute@gmail.com>
20
7453e6b2 21 PR gdb/13669
a43f3893
PF
22 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
23 to rewind obstack.
24
23cc4e1b
PA
252017-10-26 Pedro Alves <palves@redhat.com>
26
27 * remote.c (remote_async_terminal_ours_p): Delete.
28 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
29 Remove references to 'remote_async_terminal_ours_p'.
30
6abc18bb
YQ
312017-10-26 Yao Qi <yao.qi@linaro.org>
32
33 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
34
bd522513
YQ
352017-10-26 Yao Qi <yao.qi@linaro.org>
36
37 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
38 aspace const.
39 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
40 Likewise.
41 * breakpoint.c (bpstat_check_location): Remove cast.
42 (breakpoint_hit_catch_fork): Make aspce const.
43 (breakpoint_hit_catch_solib): Likewise.
44 (breakpoint_hit_catch_exec): Likewise.
45 (breakpoint_hit_ranged_breakpoint): Likewise.
46 (breakpoint_hit_watchpoint): Likewise.
47 (base_breakpoint_breakpoint_hit): Likewise.
48 (bkpt_breakpoint_hit): Likewise.
49 (dprintf_breakpoint_hit): Likewise.
50 (tracepoint_breakpoint_hit): Likewise.
51 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
52
accd0bcd
YQ
532017-10-26 Yao Qi <yao.qi@linaro.org>
54
55 * breakpoint.c (breakpoint_location_address_match): Change
56 "struct address_space *" to "const address_space".
57 (breakpoint_location_address_range_overlap): Likewise.
58 (breakpoint_here_p): Likewise.
59 (breakpoint_in_range_p): Likewise.
60 (moribund_breakpoint_here_p): Likewise.
61 (bp_location_inserted_here_p): Likewise.
62 (software_breakpoint_inserted_here_p): Likewise.
63 (hardware_breakpoint_inserted_here_p): Likewise.
64 (hardware_watchpoint_inserted_in_range): Likewise.
65 (bpstat_check_location): Likewise.
66 (bpstat_stop_status): Likewise.
67 (breakpoint_address_match): Likewise.
68 (breakpoint_address_match_range): Likewise.
69 (breakpoint_location_address_match): Likewise.
70 (breakpoint_location_address_range_overlap): Likewise.
71 (insert_single_step_breakpoint): Likewise.
72 (breakpoint_has_location_inserted_here): Likewise.
73 (single_step_breakpoint_inserted_here_p): Likewise.
74 (pc_at_non_inline_function): Likewise.
75 * breakpoint.h (bpstat_stop_status): Update declaration.
76 (breakpoint_here_p): Likewise.
77 (breakpoint_in_range_p): Likewise.
78 (moribund_breakpoint_here_p): Likewise.
79 (breakpoint_inserted_here_p): Likewise.
80 (software_breakpoint_inserted_here_p): Likewise.
81 (hardware_breakpoint_inserted_here_p): Likewise.
82 (breakpoint_has_location_inserted_here): Likewise.
83 (single_step_breakpoint_inserted_here_p): Likewise.
84 (hardware_watchpoint_inserted_in_range): Likewise.
85 (breakpoint_address_match): Likewise.
86 (insert_single_step_breakpoint): Likewise.
87 (pc_at_non_inline_function): Likewise.
88 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
89 * record.c (record_check_stopped_by_breakpoint): Likewise.
90 * record.h (record_check_stopped_by_breakpoint): Likewise.
91 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
92
ac7936df
YQ
932017-10-25 Yao Qi <yao.qi@linaro.org>
94
95 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
96 regcache->arch () instead get_regcache_arch.
97 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
98 Likewise.
99 (aarch64_fbsd_store_inferior_registers): Likewise.
100 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
101 (store_gregs_to_thread): Likewise.
102 (fetch_fpregs_from_thread): Likewise.
103 (store_fpregs_to_thread): Likewise.
104 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
105 (aarch64_store_return_value): Likewise.
106 (aarch64_software_single_step): Likewise.
107 * aix-thread.c (aix_thread_wait): Likewise.
108 (supply_reg32): Likewise.
109 (supply_sprs64): Likewise.
110 (supply_sprs32): Likewise.
111 (fill_gprs64): Likewise.
112 (fill_gprs32): Likewise.
113 (fill_sprs64): Likewise.
114 (fill_sprs32): Likewise.
115 (store_regs_user_thread): Likewise.
116 (store_regs_kernel_thread): Likewise.
117 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
118 (alphabsd_store_inferior_registers): Likewise.
119 * alpha-tdep.c (alpha_extract_return_value): Likewise.
120 (alpha_store_return_value): Likewise.
121 (alpha_deal_with_atomic_sequence): Likewise.
122 (alpha_next_pc): Likewise.
123 (alpha_software_single_step): Likewise.
124 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
125 (amd64bsd_store_inferior_registers): Likewise.
126 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
127 Likewise.
128 (amd64_linux_store_inferior_registers): Likewise.
129 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
130 (amd64_collect_native_gregset): Likewise.
131 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
132 (amd64obsd_collect_uthread): Likewise.
133 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
134 (amd64_collect_fpregset): Likewise.
135 (amd64_supply_fxsave): Likewise.
136 (amd64_supply_xsave): Likewise.
137 (amd64_collect_fxsave): Likewise.
138 (amd64_collect_xsave): Likewise.
139 * arc-tdep.c (arc_write_pc): Likewise.
140 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
141 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
142 (arm_fbsd_store_inferior_registers): Likewise.
143 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
144 (store_vfp_regs): Likewise.
145 (arm_linux_fetch_inferior_registers): Likewise.
146 (arm_linux_store_inferior_registers): Likewise.
147 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
148 (arm_linux_sigreturn_next_pc): Likewise.
149 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
150 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
151 (fetch_register): Likewise.
152 (store_register): Likewise.
153 * arm-tdep.c (arm_is_thumb): Likewise.
154 (displaced_in_arm_mode): Likewise.
155 (bx_write_pc): Likewise.
156 (arm_get_next_pcs_addr_bits_remove): Likewise.
157 (arm_software_single_step): Likewise.
158 (arm_extract_return_value): Likewise.
159 (arm_store_return_value): Likewise.
160 (arm_write_pc): Likewise.
161 * bfin-tdep.c (bfin_extract_return_value): Likewise.
162 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
163 (bsd_uthread_store_registers): Likewise.
164 * core-regset.c (fetch_core_registers): Likewise.
165 * corelow.c (get_core_registers): Likewise.
166 * cris-tdep.c (cris_store_return_value): Likewise.
167 (cris_extract_return_value): Likewise.
168 (find_step_target): Likewise.
169 (find_step_target): Likewise.
170 (cris_software_single_step): Likewise.
171 * ctf.c (ctf_fetch_registers): Likewise.
172 * darwin-nat.c (cancel_breakpoint): Likewise.
173 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
174 * frv-tdep.c (frv_extract_return_value): Likewise.
175 * ft32-tdep.c (ft32_store_return_value): Likewise.
176 (ft32_extract_return_value): Likewise.
177 * go32-nat.c (fetch_register): Likewise.
178 (go32_fetch_registers): Likewise.
179 (go32_store_registers): Likewise.
180 (store_register): Likewise.
181 * h8300-tdep.c (h8300_extract_return_value): Likewise.
182 (h8300_store_return_value): Likewise.
183 * hppa-linux-nat.c (fetch_register): Likewise.
184 (store_register): Likewise.
185 (hppa_linux_fetch_inferior_registers): Likewise.
186 (hppa_linux_store_inferior_registers): Likewise.
187 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
188 (i386_darwin_store_inferior_registers): Likewise.
189 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
190 (gnu_store_registers): Likewise.
191 * i386-linux-nat.c (fetch_register): Likewise.
192 (store_register): Likewise.
193 (supply_gregset): Likewise.
194 (fill_gregset): Likewise.
195 (i386_linux_fetch_inferior_registers): Likewise.
196 (i386_linux_store_inferior_registers): Likewise.
197 (i386_linux_resume): Likewise.
198 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
199 Likewise.
200 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
201 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
202 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
203 (i386obsd_collect_uthread): Likewise.
204 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
205 (i386_supply_gregset): Likewise.
206 (i386_collect_gregset): Likewise.
207 (i386_supply_fpregset): Likewise.
208 (i386_collect_fpregset): Likewise.
209 (i386_mpx_bd_base): Likewise.
210 * i386-v4-nat.c (supply_fpregset): Likewise.
211 (fill_fpregset): Likewise.
212 * i387-tdep.c (i387_supply_fsave): Likewise.
213 (i387_collect_fsave): Likewise.
214 (i387_supply_fxsave): Likewise.
215 (i387_collect_fxsave): Likewise.
216 (i387_supply_xsave): Likewise.
217 (i387_collect_xsave): Likewise.
218 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
219 (ia64_linux_store_registers): Likewise.
220 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
221 (ia64_extract_return_value): Likewise.
222 (ia64_store_return_value): Likewise.
223 (find_func_descr): Likewise.
224 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
225 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
226 (inf_ptrace_store_registers): Likewise.
227 * infrun.c (use_displaced_stepping): Likewise.
228 (displaced_step_prepare_throw): Likewise.
229 (resume): Likewise.
230 (proceed): Likewise.
231 (do_target_wait): Likewise.
232 (adjust_pc_after_break): Likewise.
233 (handle_inferior_event_1): Likewise.
234 (handle_signal_stop): Likewise.
235 (save_infcall_suspend_state): Likewise.
236 (restore_infcall_suspend_state): Likewise.
237 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
238 * jit.c (jit_frame_prev_register): Likewise.
239 * linux-nat.c (save_stop_reason): Likewise.
240 (linux_nat_wait_1): Likewise.
241 (resume_stopped_resumed_lwps): Likewise.
242 * linux-record.c (record_linux_sockaddr): Likewise.
243 (record_linux_msghdr): Likewise.
244 (record_linux_system_call): Likewise.
245 * linux-tdep.c (linux_collect_thread_registers): Likewise.
246 * lm32-tdep.c (lm32_extract_return_value): Likewise.
247 (lm32_store_return_value): Likewise.
248 * m32c-tdep.c (m32c_read_flg): Likewise.
249 (m32c_pseudo_register_read): Likewise.
250 (m32c_pseudo_register_write): Likewise.
251 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
252 (m32r_linux_collect_gregset): Likewise.
253 * m32r-tdep.c (m32r_store_return_value): Likewise.
254 (m32r_extract_return_value): Likewise.
255 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
256 (m68kbsd_collect_fpregset): Likewise.
257 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
258 * m68k-linux-nat.c (fetch_register): Likewise.
259 (old_fetch_inferior_registers): Likewise.
260 (old_store_inferior_registers): Likewise.
261 (store_regs): Likewise.
262 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
263 (m68k_svr4_store_return_value): Likewise.
264 * m88k-tdep.c (m88k_store_arguments): Likewise.
265 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
266 (mi_cmd_data_write_register_values): Likewise.
267 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
268 (mips_fbsd_store_inferior_registers): Likewise.
269 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
270 (mips_fbsd_supply_gregs): Likewise.
271 (mips_fbsd_collect_fpregs): Likewise.
272 (mips_fbsd_collect_gregs): Likewise.
273 (mips_fbsd_supply_fpregset): Likewise.
274 (mips_fbsd_collect_fpregset): Likewise.
275 (mips_fbsd_supply_gregset): Likewise.
276 (mips_fbsd_collect_gregset): Likewise.
277 * mips-linux-nat.c (supply_gregset): Likewise.
278 (fill_gregset): Likewise.
279 (supply_fpregset): Likewise.
280 (fill_fpregset): Likewise.
281 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
282 (mips_fill_gregset): Likewise.
283 (mips_supply_fpregset): Likewise.
284 (mips_fill_fpregset): Likewise.
285 (mips64_supply_gregset): Likewise.
286 (micromips_linux_sigframe_validate): Likewise.
287 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
288 (mipsnbsd_fetch_inferior_registers): Likewise.
289 (mipsnbsd_store_inferior_registers): Likewise.
290 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
291 (mipsnbsd_supply_gregset): Likewise.
292 (mipsnbsd_iterate_over_regset_sections): Likewise.
293 (mipsnbsd_supply_reg): Likewise.
294 (mipsnbsd_supply_fpreg): Likewise.
295 * mips-tdep.c (mips_in_frame_stub): Likewise.
296 (mips_dummy_id): Likewise.
297 (is_octeon_bbit_op): Likewise.
298 (micromips_bc1_pc): Likewise.
299 (extended_mips16_next_pc): Likewise.
300 (mips16_next_pc): Likewise.
301 (deal_with_atomic_sequence): Likewise.
302 * moxie-tdep.c (moxie_process_readu): Likewise.
303 * nios2-tdep.c (nios2_get_next_pc): Likewise.
304 * nto-procfs.c (procfs_store_registers): Likewise.
305 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
306 (ppcfbsd_store_inferior_registers): Likewise.
307 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
308 (fetch_altivec_register): Likewise.
309 (get_spe_registers): Likewise.
310 (fetch_spe_register): Likewise.
311 (fetch_altivec_registers): Likewise.
312 (fetch_all_gp_regs): Likewise.
313 (fetch_all_fp_regs): Likewise.
314 (store_vsx_register): Likewise.
315 (store_altivec_register): Likewise.
316 (set_spe_registers): Likewise.
317 (store_spe_register): Likewise.
318 (store_altivec_registers): Likewise.
319 (store_all_gp_regs): Likewise.
320 (store_all_fp_regs): Likewise.
321 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
322 (ppc_linux_collect_gregset): Likewise.
323 (ppc_canonicalize_syscall): Likewise.
324 (ppc_linux_record_signal): Likewise.
325 (ppu2spu_prev_register): Likewise.
326 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
327 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
328 (ppcobsd_store_registers): Likewise.
329 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
330 Likewise.
331 (ppc_ravenscar_generic_store_registers): Likewise.
332 * procfs.c (procfs_fetch_registers): Likewise.
333 (procfs_store_registers): Likewise.
334 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
335 (ravenscar_store_registers): Likewise.
336 (ravenscar_prepare_to_store): Likewise.
337 * record-btrace.c (record_btrace_fetch_registers): Likewise.
338 * record-full.c (record_full_wait_1): Likewise.
339 (record_full_registers_change): Likewise.
340 (record_full_store_registers): Likewise.
341 (record_full_core_fetch_registers): Likewise.
342 (record_full_save): Likewise.
343 (record_full_goto_insn): Likewise.
344 * regcache.c (regcache_register_size): Likewise.
345 (get_regcache_arch): Remove.
346 (regcache_read_pc): Likewise.
347 * regcache.h (get_regcache_arch): Remove.
348 * remote-sim.c (gdbsim_fetch_register): Likewise.
349 (gdbsim_store_register): Likewise.
350 * remote.c (fetch_register_using_p): Likewise.
351 (send_g_packet): Likewise.
352 (remote_prepare_to_store): Likewise.
353 (store_registers_using_G): Likewise.
354 * reverse.c (save_bookmark_command): Likewise.
355 (goto_bookmark_command): Likewise.
356 * rs6000-aix-tdep.c (branch_dest): Likewise.
357 * rs6000-nat.c (rs6000_ptrace64): Likewise.
358 (fetch_register): Likewise.
359 * rs6000-tdep.c (ppc_supply_reg): Likewise.
360 (ppc_collect_reg): Likewise.
361 (ppc_collect_gregset): Likewise.
362 (ppc_collect_fpregset): Likewise.
363 (ppc_collect_vsxregset): Likewise.
364 (ppc_collect_vrregset): Likewise.
365 (ppc_displaced_step_hw_singlestep): Likewise.
366 (rs6000_pseudo_register_read): Likewise.
367 (rs6000_pseudo_register_write): Likewise.
368 * s390-linux-nat.c (supply_gregset): Likewise.
369 (fill_gregset): Likewise.
370 (s390_linux_fetch_inferior_registers): Likewise.
371 * s390-linux-tdep.c (s390_write_pc): Likewise.
372 (s390_software_single_step): Likewise.
373 (s390_all_but_pc_registers_record): Likewise.
374 (s390_linux_syscall_record): Likewise.
375 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
376 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
377 (shnbsd_store_inferior_registers): Likewise.
378 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
379 (sh_extract_return_value_fpu): Likewise.
380 (sh_store_return_value_nofpu): Likewise.
381 (sh_corefile_supply_regset): Likewise.
382 (sh_corefile_collect_regset): Likewise.
383 * sh64-tdep.c (sh64_extract_return_value): Likewise.
384 (sh64_store_return_value): Likewise.
385 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
386 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
387 (sparc_store_inferior_registers): Likewise.
388 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
389 (sparc_ravenscar_prepare_to_store): Likewise.
390 * sparc-tdep.c (sparc32_store_arguments): Likewise.
391 (sparc_analyze_control_transfer): Likewise.
392 (sparc_step_trap): Likewise.
393 (sparc_software_single_step): Likewise.
394 (sparc32_gdbarch_init): Likewise.
395 (sparc_supply_rwindow): Likewise.
396 (sparc_collect_rwindow): Likewise.
397 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
398 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
399 (sparc64nbsd_collect_gregset): Likewise.
400 (sparc64nbsd_supply_fpregset): Likewise.
401 (sparc64nbsd_collect_fpregset): Likewise.
402 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
403 (sparc64_supply_gregset): Likewise.
404 (sparc64_collect_gregset): Likewise.
405 (sparc64_supply_fpregset): Likewise.
406 (sparc64_collect_fpregset): Likewise.
407 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
408 * spu-tdep.c (spu_unwind_sp): Likewise.
409 (spu2ppu_prev_register): Likewise.
410 (spu_memory_remove_breakpoint): Likewise.
411 * stack.c (return_command): Likewise.
412 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
413 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
414 * tracefile.c (trace_save_ctf): Likewise.
415 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
416 (do_windows_store_inferior_registers): Likewise.
417 (windows_resume): Likewise.
418 * xtensa-linux-nat.c (fill_gregset): Likewise.
419 (supply_gregset_reg): Likewise.
420 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
421 (xtensa_register_read_masked): Likewise.
422 (xtensa_supply_gregset): Likewise.
423 (xtensa_extract_return_value): Likewise.
424 (xtensa_store_return_value): Likewise.
425
edd079d9
UW
4262017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
427
428 * doublest.c (floatformat_from_string): New function.
429 * doublest.h (floatformat_from_string): Add prototype.
430
431 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
432 (OP_FLOAT): ... this.
433 * expression.h: Do not include "doublest.h".
434 (union exp_element): Replace doubleconst and decfloatconst by
435 new element floatconst.
436 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
437 (ada_evaluate_subexp): Likewise.
438 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
439 OP_DOUBLE and OP_DECFLOAT.
440 * expprint.c (print_subexp_standard): Likewise.
441 (dump_subexp_body_standard): Likewise.
442 * breakpoint.c (watchpoint_exp_is_const): Likewise.
443
444 * parse.c: Include "dfp.h".
445 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
446 (write_exp_elt_floatcst): New function.
447 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
448 and OP_DECFLOAT.
449 (operator_check_standard): Likewise.
450 (parse_float): Do not accept suffix. Take type as input. Return bool.
451 Return target format buffer instead of host DOUBLEST.
452 Use floatformat_from_string and decimal_from_string to parse
453 either binary or decimal floating-point types.
454 (parse_c_float): Remove.
455 * parser-defs.h: Do not include "doublest.h".
456 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
457 (write_exp_elt_floatcst): Add prototype.
458 (parse_float): Update prototype.
459 (parse_c_float): Remove.
460
461 * c-exp.y: Do not include "dfp.h".
462 (typed_val_float): Use byte buffer instead of DOUBLEST.
463 (typed_val_decfloat): Remove.
464 (DECFLOAT): Remove.
465 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
466 (parse_number): Update to new parse_float interface.
467 Parse suffixes and determine type before calling parse_float.
468 Handle decimal and binary FP types the same way.
469
470 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
471 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
472 (parse_number): Update to new parse_float interface.
473 Parse suffixes and determine type before calling parse_float.
474
475 * f-exp.y: Replace dval by typed_val_float.
476 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
477 (parse_number): Use parse_float instead of atof.
478
479 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
480 (parse_go_float): Remove.
481 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
482 (parse_number): Call parse_float instead of parse_go_float.
483 Parse suffixes and determine type before calling parse_float.
484
485 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
486 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
487 (parse_number): Update to new parse_float interface.
488 Parse suffixes and determine type before calling parse_float.
489
490 * m2-exp.y: Replace dval by byte buffer val.
491 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
492 (parse_number): Call parse_float instead of atof.
493
494 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
495 (lex_number): Call parse_float instead of strtod.
496 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
497 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
498 Use write_exp_elt_floatcst.
499 (unit_testing): Remove static variable.
500 (rust_type): Do not check unit_testing.
501 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
502
503 * ada-exp.y (type_float, type_double): Remove.
504 (typed_val_float): Use byte buffer instead of DOUBLEST.
505 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
506 * ada-lex.l (processReal): Use parse_float instead of sscanf.
507
cc628f3d
AH
5082017-10-25 Alan Hayward <alan.hayward@arm.com>
509
510 * aarch64-tdep.h (enum aarch64_regnum): Remove.
511 * arch/aarch64.h: New file.
512
09a7c6aa
UW
5132017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
514
515 * dfp.h (decimal_from_string): Use const reference for argument.
516 * dfp.c (decimal_from_string): Likewise.
517
8ba0dd51
UW
5182017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
519
520 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
521 * sh64-tdep.c (sh64_do_fp_register): Likewise.
522 * mips-tdep.c (mips_print_fp_register): Likewise.
523
16e812b2
UW
5242017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
525
526 * common/format.h (enum argclass): Replace decfloat_arg by
527 dec32float_arg, dec64float_arg, and dec128float_arg.
528 * common/format.c (parse_format_string): Update to return
529 new decimal float argument classes.
530
531 * printcmd.c (printf_decfloat): Rename to ...
532 (printf_floating): ... this. Add argclass argument, and use it
533 instead of parsing the format string again. Add support for
534 binary floating-point values, using floatformat_to_string.
535 Convert value to the target format if it doesn't already match.
536 (ui_printf): Call printf_floating instead of printf_decfloat,
537 also for double_arg / long_double_arg. Pass argclass.
538
539 * dfp.c (decimal_to_string): Add format string argument.
540 * dfp.h (decimal_to_string): Likewise.
541
542 * doublest.c (floatformat_to_string): Add format string argument.
543 * doublest.h (floatformat_to_string): Likewise.
544
fdf0cbc2
UW
5452017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
546
547 * doublest.c (floatformat_precision): New routine.
548 (floatformat_to_string): Likewise.
549 * doublest.c (floatformat_to_string): Add prototype.
550
551 * printcmd.c (print_scalar_formatted): Only call print_floating
552 on floating-point types.
553 * valprint.c: Do not include "floatformat.h".
554 (generic_val_print_decfloat): Remove.
555 (generic_val_print): Call generic_val_print_float for both
556 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
557 (print_floating): Use floatformat_to_string. Handle decimal float.
558 (print_decimal_floating): Remove, merge into floatformat_to_string.
559 * value.h (print_decimal_floating): Remove.
560
561 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
562
5033013f
UW
5632017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
564
565 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
566
a664f67e
SM
5672017-10-21 Simon Marchi <simon.marchi@ericsson.com>
568
569 * memattr.h: Don't include vec.h.
570 (struct mem_attrib): Initialize fields.
571 <unknown>: New static method.
572 (struct mem_region): Add constructors, operator<, initialize
573 fields.
574 * memattr.c: Include algorithm.
575 (default_mem_attrib, unknown_mem_attrib): Remove.
576 (user_mem_region_list): New global.
577 (target_mem_region_list, mem_region_list): Change type to
578 std::vector<mem_region>.
579 (mem_use_target): Now a function.
580 (target_mem_regions_valid): Change type to bool.
581 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
582 (require_user_regions): Adjust.
583 (require_target_regions): Adjust.
584 (create_mem_region): Adjust.
585 (lookup_mem_region): Adjust.
586 (invalidate_target_mem_regions): Adjust.
587 (mem_clear): Rename to...
588 (user_mem_clear): ... this, and adjust.
589 (mem_command): Adjust.
590 (info_mem_command): Adjust.
591 (mem_enable, enable_mem_command, mem_disable,
592 disable_mem_command): Adjust.
593 (mem_delete): Adjust.
594 (delete_mem_command): Adjust.
595 * memory-map.h (parse_memory_map): Return an std::vector.
596 * memory-map.c (parse_memory_map): Likewise.
597 (struct memory_map_parsing_data): Add constructor.
598 <memory_map>: Point to std::vector.
599 (memory_map_start_memory): Adjust.
600 (memory_map_end_memory): Adjust.
601 (memory_map_end_property): Adjust.
602 (clear_result): Remove.
603 * remote.c (remote_memory_map): Return an std::vector.
604 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
605 Remove.
606 (target_debug_print_mem_region_vector): New.
607 * target-delegates.c: Regenerate.
608 * target.h (mem_region_vector): New typedef.
609 (to_memory_map): Return mem_region_vector.
610 (target_memory_map): Return an std::vector.
611 * target.c (target_memory_map): Return an std::vector.
612 (flash_erase_command): Adjust.
613
6e17c565
SM
6142017-10-21 Simon Marchi <simon.marchi@ericsson.com>
615
616 * memory-map.c (struct memory_map_parsing_data) <property_name>:
617 Change type to std::string.
618 (memory_map_start_property): Adjust.
619 (memory_map_end_property): Adjust.
620
cfba9872
SM
6212017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
622
623 * infrun.h: Include common/byte-vector.h.
624 (struct displaced_step_closure): New struct.
625 (struct buf_displaced_step_closure): New struct.
626 * infrun.c (displaced_step_closure::~displaced_step_closure):
627 Provide default implementation.
628 (displaced_step_clear): Deallocate step closure with delete.
629 * aarch64-tdep.c (displaced_step_closure): Rename to ...
630 (aarch64_displaced_step_closure): ... this, extend
631 displaced_step_closure.
632 (aarch64_displaced_step_data) <dsc>: Change type to
633 aarch64_displaced_step_closure.
634 (aarch64_displaced_step_copy_insn): Adjust to type change, use
635 unique_ptr.
636 (aarch64_displaced_step_fixup): Add cast for displaced step
637 closure.
638 * amd64-tdep.c (displaced_step_closure): Rename to ...
639 (amd64_displaced_step_closure): ... this, extend
640 displaced_step_closure.
641 <insn_buf>: Change type to std::vector<gdb_byte>.
642 <max_len>: Remove.
643 (fixup_riprel): Change type of DSC parameter, adjust to type
644 change of insn_buf.
645 (fixup_displaced_copy): Change type of DSC parameter.
646 (amd64_displaced_step_copy_insn): Instantiate
647 amd64_displaced_step_closure.
648 (amd64_displaced_step_fixup): Add cast for closure type, adjust
649 to type change of insn_buf.
650 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
651 parameter DSC.
652 (arm_linux_copy_svc): Likewise.
653 (cleanup_kernel_helper_return): Likewise.
654 (arm_catch_kernel_helper_return): Likewise.
655 (arm_linux_displaced_step_copy_insn): Instantiate
656 arm_displaced_step_closure.
657 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
658 (displaced_read_reg): Change type of parameter DSC.
659 (branch_write_pc): Likewise.
660 (load_write_pc): Likewise.
661 (alu_write_pc): Likewise.
662 (displaced_write_reg): Likewise.
663 (arm_copy_unmodified): Likewise.
664 (thumb_copy_unmodified_32bit): Likewise.
665 (thumb_copy_unmodified_16bit): Likewise.
666 (cleanup_preload): Likewise.
667 (install_preload): Likewise.
668 (arm_copy_preload): Likewise.
669 (thumb2_copy_preload): Likewise.
670 (install_preload_reg): Likewise.
671 (arm_copy_preload_reg): Likewise.
672 (cleanup_copro_load_store): Likewise.
673 (install_copro_load_store): Likewise.
674 (arm_copy_copro_load_store) Likewise.
675 (thumb2_copy_copro_load_store): Likewise.
676 (cleanup_branch): Likewise.
677 (install_b_bl_blx): Likewise.
678 (arm_copy_b_bl_blx): Likewise.
679 (thumb2_copy_b_bl_blx): Likewise.
680 (thumb_copy_b): Likewise.
681 (install_bx_blx_reg): Likewise.
682 (arm_copy_bx_blx_reg): Likewise.
683 (thumb_copy_bx_blx_reg): Likewise.
684 (cleanup_alu_imm): Likewise.
685 (arm_copy_alu_imm): Likewise.
686 (thumb2_copy_alu_imm): Likewise.
687 (cleanup_alu_reg): Likewise.
688 (install_alu_reg): Likewise.
689 (arm_copy_alu_reg): Likewise.
690 (thumb_copy_alu_reg): Likewise.
691 (cleanup_alu_shifted_reg): Likewise.
692 (install_alu_shifted_reg): Likewise.
693 (arm_copy_alu_shifted_reg): Likewise.
694 (cleanup_load): Likewise.
695 (cleanup_store): Likewise.
696 (arm_copy_extra_ld_st): Likewise.
697 (install_load_store): Likewise.
698 (thumb2_copy_load_literal): Likewise.
699 (thumb2_copy_load_reg_imm): Likewise.
700 (arm_copy_ldr_str_ldrb_strb): Likewise.
701 (cleanup_block_load_all): Likewise.
702 (cleanup_block_store_pc): Likewise.
703 (cleanup_block_load_pc): Likewise.
704 (arm_copy_block_xfer): Likewise.
705 (thumb2_copy_block_xfer): Likewise.
706 (cleanup_svc): Likewise.
707 (install_svc): Likewise.
708 (arm_copy_svc): Likewise.
709 (thumb_copy_svc): Likewise.
710 (arm_copy_undef): Likewise.
711 (thumb_32bit_copy_undef): Likewise.
712 (arm_copy_unpred): Likewise.
713 (arm_decode_misc_memhint_neon): Likewise.
714 (arm_decode_unconditional): Likewise.
715 (arm_decode_miscellaneous): Likewise.
716 (arm_decode_dp_misc): Likewise.
717 (arm_decode_ld_st_word_ubyte): Likewise.
718 (arm_decode_media): Likewise.
719 (arm_decode_b_bl_ldmstm): Likewise.
720 (arm_decode_ext_reg_ld_st): Likewise.
721 (thumb2_decode_dp_shift_reg): Likewise.
722 (thumb2_decode_ext_reg_ld_st): Likewise.
723 (arm_decode_svc_copro): Likewise.
724 (thumb2_decode_svc_copro): Likewise.
725 (install_pc_relative): Likewise.
726 (thumb_copy_pc_relative_16bit): Likewise.
727 (thumb_decode_pc_relative_16bit): Likewise.
728 (thumb_copy_pc_relative_32bit): Likewise.
729 (thumb_copy_16bit_ldr_literal): Likewise.
730 (thumb_copy_cbnz_cbz): Likewise.
731 (thumb2_copy_table_branch): Likewise.
732 (cleanup_pop_pc_16bit_all): Likewise.
733 (thumb_copy_pop_pc_16bit): Likewise.
734 (thumb_process_displaced_16bit_insn): Likewise.
735 (decode_thumb_32bit_ld_mem_hints): Likewise.
736 (thumb_process_displaced_32bit_insn): Likewise.
737 (thumb_process_displaced_insn): Likewise.
738 (arm_process_displaced_insn): Likewise.
739 (arm_displaced_init_closure): Likewise.
740 (arm_displaced_step_fixup): Add cast for closure.
741 * arm-tdep.h: Include infrun.h.
742 (displaced_step_closure): Rename to ...
743 (arm_displaced_step_closure): ... this, extend
744 displaced_step_closure.
745 <u::svc::copy_svc_os>: Change type of parameter DSC.
746 <cleanup>: Likewise.
747 (arm_process_displaced_insn): Likewise.
748 (arm_displaced_init_closure): Likewise.
749 (displaced_read_reg): Likewise.
750 (displaced_write_reg): Likewise.
751 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
752 Adjust.
753 * i386-tdep.h: Include infrun.h.
754 (i386_displaced_step_closure): New typedef.
755 * i386-tdep.c (i386_displaced_step_copy_insn): Use
756 i386_displaced_step_closure.
757 (i386_displaced_step_fixup): Adjust.
758 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
759 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
760 and unique_ptr.
761 (ppc_displaced_step_fixup): Adjust.
762 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
763 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
764 and unique_ptr.
765 (s390_displaced_step_fixup): Adjust.
766
b392b304
SM
7672017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
768
769 * interps.h (interp_resume, interp_suspend, interp_set_temp):
770 Remove declarations.
771
d5833c62
TT
7722017-10-20 Tom Tromey <tom@tromey.com>
773
774 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
775 std::vector.
776 (gdb_bfd_record_inclusion): Update.
777 (bfdp): Remove typedef.
778
06d5bbc8
TT
7792017-10-20 Tom Tromey <tom@tromey.com>
780
781 * gdb_bfd.c (gdb_bfd_ref): Use new.
782 (struct gdb_bfd_data): Add constructor, destructor, and member
783 initializers.
784 (gdb_bfd_unref): Use delete.
785
2712ce2e
TT
7862017-10-20 Tom Tromey <tom@tromey.com>
787
788 * exec.c (exec_file_attach): Use new_bfd_ref.
789 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
790 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
791 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
792 new_bfd_ref.
793 * gdb_bfd.h (new_bfd_ref): New function.
794
fcc8fb2f
PA
7952017-10-20 Pedro Alves <palves@redhat.com>
796
797 * main.c (captured_command_loop): Add attribute noinline.
798
4c2287b0
SM
7992017-10-19 Simon Marchi <simon.marchi@ericsson.com>
800
801 * interps.c (struct interp_factory): Add constructor.
802 (interp_factory_p): Remove typedef.
803 (DEF_VEC_P(interp_factory_p)): Remove.
804 (interpreter_factories): Change type to std::vector.
805 (interp_factory_register): Adjust.
806 (interp_lookup): Adjust.
807 (interpreter_completer): Adjust.
808
3d415c26
TT
8092017-10-19 Tom Tromey <tom@tromey.com>
810
811 * break-catch-syscall.c (catch_syscall_completer): Use
812 std::string, gdb::unique_xmalloc_ptr.
813
395423c4
TT
8142017-10-19 Tom Tromey <tom@tromey.com>
815
816 * infcall.c (call_function_by_hand_dummy): Use std::string.
817
54f70bc1
TT
8182017-10-19 Tom Tromey <tom@tromey.com>
819
820 * mi/mi-main.c (mi_cmd_execute): Update.
821 * top.h (prepare_execute_command): Return scoped_value_mark.
822 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
823 Add move constructor.
824 * top.c (prepare_execute_command): Return scoped_value_mark.
825 (execute_command): Update.
826
63929e84
PA
8272017-10-19 Pedro Alves <palves@redhat.com>
828
829 * xml-support.c (xml_fetch_content_from_file): Check fread's
830 return.
831
a75868f5
PA
8322017-10-19 Pedro Alves <palves@redhat.com>
833
834 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
835 async.
836 (handle_error_fd): New function.
837 (ser_base_async): Add/delete an event loop file handler for
838 error_fd.
839
2edf834e
PA
8402017-10-19 Pedro Alves <palves@redhat.com>
841
842 * xml-support.c (xml_fetch_content_from_file): Don't read in
843 chunks. Instead use fseek to determine the file's size, and read
844 it in one go.
845
c8ba13ad
KS
8462017-11-18 Keith Seitz <keiths@redhat.com>
847
848 * c-exp.y (oper): Canonicalize conversion operators of user-defined
849 types.
850 Add whitespace to front of type name.
851
37534686
KS
8522017-10-18 Keith Seitz <keiths@redhat.com>
853
854 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
855 DW_AT_accessibility.
856
28c7c158
YQ
8572017-10-18 Yao Qi <yao.qi@linaro.org>
858
859 * features/tic6x-c62x-linux.c: Remove.
860
30f0b101
TT
8612017-10-17 Tom Tromey <tom@tromey.com>
862
863 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
864 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
865 (do_mixed_source_and_assembly): Likewise.
866
57e12da9
TT
8672017-10-17 Tom Tromey <tom@tromey.com>
868
869 * regcache.c (regcache::xfer_part): Remove assertion.
870
7b700999
PA
8712017-10-17 Pedro Alves <palves@redhat.com>
872
873 * xml-support.c (xml_fetch_content_from_file): Call
874 unique_ptr::release() instead unique_ptr::get() when passing
875 through xrealloc.
876
d3037ba6
YQ
8772017-10-17 Yao Qi <yao.qi@linaro.org>
878
879 * regcache.c (regcache::xfer_part): Remove parameters read and
880 write, add parameter is_raw. All callers are updated.
881
83d5a34d
KS
8822017-10-16 Keith Seitz <keiths@redhat.com>
883
884 * c-typeprint.c (enum access_specifier): Moved here from
885 c_type_print_base.
886 (output_access_specifier): New function.
887 (c_type_print_base): Consider typedefs when assessing
888 whether access labels are needed.
889 Use output_access_specifier as needed.
890 Output access specifier for typedefs, if needed.
891 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
892 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
893 fields.
894 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
895 accessor macros.
896
87028b87
TT
8972017-10-16 Tom Tromey <tom@tromey.com>
898
899 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
900 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
901 * target.c (target_fileio_read_stralloc): Update.
902 * sparc64-tdep.c (adi_is_addr_mapped): Update.
903 * target.h (target_fileio_read_stralloc): Return
904 unique_xmalloc_ptr.
905
b7b030ad
TT
9062017-10-16 Tom Tromey <tom@tromey.com>
907
908 * xml-syscall.c (xml_init_syscalls_info): Update.
909 * xml-support.c (xinclude_start_include): Update.
910 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
911 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
912 (xml_fetch_content_from_file): Likewise.
913 * osdata.c (get_osdata): Update.
914 * target.h (target_read_stralloc, target_get_osdata): Return
915 unique_xmalloc_ptr.
916 * solib-aix.c (solib_aix_get_library_list): Update.
917 * solib-target.c (solib_target_current_sos): Update.
918 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
919 * xml-tdesc.c (fetch_available_features_from_target): Update.
920 (target_fetch_description_xml): Update.
921 (file_read_description_xml): Update.
922 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
923 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
924 (remote_pid_to_exec_file): Update.
925 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
926 (target_get_osdata): Likewise.
927
b80406ac
TT
9282017-10-16 Tom Tromey <tom@tromey.com>
929
930 * remote.c (remote_register_number_and_offset): Use std::vector.
931 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
932 (putpkt_binary): Use gdb::def_vector.
933 (compare_sections_command): Use gdb::byte_vector.
934
a90ecff8
TT
9352017-10-16 Tom Tromey <tom@tromey.com>
936
937 * ppc-linux-nat.c (hwdebug_insert_point): Use
938 gdb::unique_xmalloc_ptr, XDUP.
939
2dc0e219
TT
9402017-10-16 Tom Tromey <tom@tromey.com>
941
942 * probe.c (parse_probes): Use std::string.
943 (info_probes_for_ops, enable_probes_command)
944 (disable_probes_command): Remove cleanups.
945
b05628f0
TT
9462017-10-16 Tom Tromey <tom@tromey.com>
947
948 * buildsym.c (block_compar): Remove.
949 (end_symtab_get_static_block): Use std::vector.
950
a79b1bc6
SM
9512017-10-16 Simon Marchi <simon.marchi@ericsson.com>
952
953 * memrange.h (struct mem_range): Define operator< and operator==.
954 (mem_range_s): Remove.
955 (DEF_VEC_O (mem_range_s)): Remove.
956 (normalize_mem_ranges): Change parameter type to std::vector.
957 * memrange.c (compare_mem_ranges): Remove.
958 (normalize_mem_ranges): Change parameter type to std::vector,
959 adjust to vector change.
960 * exec.c (section_table_available_memory): Return vector, remove
961 parameter.
962 (section_table_read_available_memory): Adjust to std::vector
963 change.
964 * remote.c (remote_read_bytes): Adjust to std::vector
965 change.
966 * tracepoint.h (traceframe_available_memory): Change parameter
967 type to std::vector.
968 * tracepoint.c (traceframe_available_memory): Change parameter
969 type to std::vector, adjust.
970 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
971 std::vector change.
972 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
973 unittests/memrange-selftests.c.
974 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
975 * gdb/unittests/memrange-selftests.c: New file.
976
63f0e930
PA
9772017-10-16 Pedro Alves <palves@redhat.com>
978
979 * elfread.c (probe_key_free): Rename range-for variable.
980 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
981 (find_probe_by_pc, collect_probes): Rename range-for variable.
982
c40c7bfc
YQ
9832017-10-16 Yao Qi <yao.qi@linaro.org>
984
985 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
986 * features/tic6x-c62x.c: Remove.
987 * features/tic6x-c64x-linux.c: Remove.
988 * features/tic6x-c64x.c: Remove.
989 * features/tic6x-c64xp-linux.c: Remove.
990 * features/tic6x-c64xp.c: Remove.
991 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
992 initialize_tdesc_tic6x_*_linux functions.
993 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
994 initialize_tdesc_tic6x_* functions.
995
df27ae6a
YQ
9962017-10-16 Yao Qi <yao.qi@linaro.org>
997
998 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
999 tic6x-c62x.
1000 * regformats/tic6x-c62x.dat: Remove.
1001 * regformats/tic6x-c64x.dat: Remove.
1002 * regformats/tic6x-c64xp.dat: Remove.
1003
86766165
SM
10042017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1005
1006 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1007 (the !HAVE_LIBEXPAT version).
1008
824dfcc3
SM
10092017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1010
1011 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1012 const.
1013
2098b393
SM
10142017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1015
1016 * target.h: Include tracepoint.h.
1017 (enum trace_find_type): Move to tracepoint.h.
1018 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1019 * tracepoint.h: Don't include target.h
1020 (enum trace_find_type): Move from target.h.
1021 (parse_traceframe_info): Return a unique ptr.
1022 * tracepoint.c (current_traceframe_info): Change type to unique
1023 ptr.
1024 (free_traceframe_info): Remove.
1025 (clear_traceframe_info): Don't manually free
1026 current_traceframe_info.
1027 (free_result): Remove.
1028 (parse_traceframe_info): Return a unique ptr.
1029 (get_traceframe_info): Adjust to unique ptr.
1030 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1031 * remote.c (remote_traceframe_info): Return a unique ptr.
1032 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1033 ptr.
1034 * target-debug.h (target_debug_print_traceframe_info_up): New
1035 macro.
1036 * target-delegates.c: Regenerate.
1037
4cdd21a8
SM
10382017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * memrange.h (struct mem_range): Add constructors.
1041 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1042 std::vector<mem_range>.
1043 * tracepoint.c (free_traceframe_info): Don't manually free
1044 vector.
1045 (traceframe_info_start_memory): Adjust to vector change.
1046 (traceframe_available_memory): Likewise.
1047 * tracefile-tfile.c (build_traceframe_info): Likewise.
1048 * ctf.c (ctf_traceframe_info): Likewise.
1049
d0d292a2
SM
10502017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1053 std::vector<int>.
1054 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1055 (traceframe_info_start_tvar): Adjust to vector change.
1056 (parse_traceframe_info): Allocate with new.
1057 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1058 vector change.
1059 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1060 change.
1061 tfile_traceframe_info): Allocate with new.
1062 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1063 change.
1064
8d3c73ef
SM
10652017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1066
1067 * tracepoint.c (traceframe_info): Rename to...
1068 (current_traceframe_info): ...this.
1069 (clear_traceframe_info): Adjust.
1070 (get_traceframe_info): Adjust.
1071
b129dcac
SM
10722017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1073
1074 * nat/linux-osdata.c: Include algorithm.
1075 (compare_processes): Remove.
1076 (struct pid_pgid_entry): New struct.
1077 (linux_xfer_osdata_processgroups): Use std::vector instead of
1078 XNEWVEC.
1079
af5bf4ad
SM
10802017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1081
1082 * objfiles.h: Don't include symfile.h.
1083 (struct partial_symbol): Remove forward-declaration.
1084 (struct objfile) <global_psymbols, static_psymbols>: Change type
1085 to std::vector<partial_symbol *>.
1086 * objfiles.c (objfile::objfile): Don't memset those fields.
1087 (objfile::~objfile): Don't free those fields.
1088 * psympriv.h (struct psymbol_allocation_list): Remove
1089 forward-declaration.
1090 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1091 to std::vector.
1092 (start_psymtab_common): Change parameters to std::vector.
1093 * psymtab.c: Include algorithm.
1094 (require_partial_symbols): Call shrink_to_fit.
1095 (find_pc_sect_psymbol): Adjust to vector change.
1096 (match_partial_symbol): Likewise.
1097 (lookup_partial_symbol): Likewise.
1098 (psym_relocate): Likewise.
1099 (dump_psymtab): Likewise.
1100 (recursively_search_psymtabs): Likewise.
1101 (compare_psymbols): Remove.
1102 (sort_pst_symbols): Adjust to vector change.
1103 (start_psymtab_common): Likewise.
1104 (end_psymtab_common): Likewise.
1105 (psymbol_bcache_full): De-constify return value.
1106 (add_psymbol_to_bcache): Likewise.
1107 (extend_psymbol_list): Remove.
1108 (append_psymbol_to_list): Adjust to vector change.
1109 (add_psymbol_to_list): Likewise.
1110 (init_psymbol_list): Likewise.
1111 (maintenance_info_psymtabs): Likewise.
1112 (maintenance_check_psymtabs): Likewise.
1113 * symfile.h (struct psymbol_allocation_list): Remove.
1114 * symfile.c (reread_symbols): Adjust to vector change.
1115 * dbxread.c (start_psymtab): Change type of parameters.
1116 (dbx_symfile_read): Adjust to vector change.
1117 (read_dbx_symtab): Likewise.
1118 (start_psymtab): Change type of parameters.
1119 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1120 (create_partial_symtab): Likewise.
1121 (add_partial_symbol): Likewise.
1122 (write_one_signatured_type): Likewise.
1123 (recursively_write_psymbols): Likewise.
1124 * mdebugread.c (parse_partial_symbols): Likewise.
1125 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1126 (scan_xcoff_symtab): Adjust to vector change.
1127 (xcoff_initial_scan): Likewise.
1128
3ec5942f
SM
11292017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1130
1131 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1132
2399fe6a
YQ
11332017-10-13 Yao Qi <yao.qi@linaro.org>
1134
1135 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1136 Remove s390x-*-expedite, add s390x-expedite.
1137
4bf3f4a8
YQ
11382017-10-13 Yao Qi <yao.qi@linaro.org>
1139
1140 * features/s390-gs-linux64.c: Regenerated.
1141 * features/s390x-gs-linux64.c: Regenerated.
1142
9e86da07
TT
11432017-10-13 Tom Tromey <tom@tromey.com>
1144
1145 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1146 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1147 delete.
1148 * symfile.c (symbol_file_add_with_addrs): Use new.
1149 (symbol_file_add_separate): Update comment.
1150 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1151 * jit.c (jit_object_close_impl): Use new.
1152 (jit_unregister_code): Use delete.
1153 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1154 (~objfile): Rename from free_objfile.
1155 (free_objfile_separate_debug, do_free_objfile_cleanup)
1156 (free_all_objfiles, objfile_purge_solibs): Use delete.
1157 * objfiles.h (struct objfile): Add constructor and destructor.
1158 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1159 (allocate_objfile, free_objfile): Don't declare.
1160 (struct objstats): Add initializers.
1161
c2508e90
SM
11622017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1163
1164 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1165 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1166 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1167 * gdbarch.h: Regenerate.
1168 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1169 Adjust comment.
1170 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1171 (i386_displaced_step_fixup): Adjust comment.
1172 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1173
a900ff72
TT
11742017-10-12 Tom Tromey <tom@tromey.com>
1175
1176 * prologue-value.h (pv_area::store_would_trash): Return bool.
1177 (pv_area::find_reg): Likewise.
1178 * prologue-value.c (pv_area::store_would_trash): Return bool.
1179 (pv_area::find_reg): Likewise.
1180
f7b7ed97
TT
11812017-10-12 Tom Tromey <tom@tromey.com>
1182
1183 * s390-linux-tdep.c (s390_store, s390_load)
1184 (s390_check_for_saved, s390_analyze_prologue): Update.
1185 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1186 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1187 * prologue-value.h (class pv_area): Move from prologue-value.c.
1188 Change names of members. Add constructor, destructor, member
1189 functions.
1190 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1191 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1192 (pv_area_fetch, pv_area_scan): Don't declare.
1193 * prologue-value.c (struct pv_area::area_entry): Now member of
1194 pv_area.
1195 (struct pv_area): Move to prologue-value.h.
1196 (pv_area::pv_area): Rename from make_pv_area.
1197 (pv_area::~pv_area): Rename from free_pv_area.
1198 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1199 (clear_entries, find_entry, overlaps, store_would_trash, store)
1200 (fetch, find_reg, scan): Now member of pv_area.
1201 Remove "area" argument. Update.
1202 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1203 Update.
1204 * mn10300-tdep.c (push_reg, check_for_saved)
1205 (mn10300_analyze_prologue): Update.
1206 * mep-tdep.c (is_arg_spill, check_for_saved)
1207 (mep_analyze_prologue): Update.
1208 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1209 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1210 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1211 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1212 Update.
1213 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1214 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1215
466eecee
SM
12162017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1217
1218 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1219 * linux-nat.c (linux_nat_delete_thread): New variable.
1220 (lwp_free): Invoke linux_nat_delete_thread if set.
1221 (linux_nat_set_delete_thread): New function.
1222 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1223 thread delete callback.
1224 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1225 (_initialize_arm_linux_nat): Assign thread delete callback.
1226 * s390-linux-nat.c (s390_delete_thread): New function.
1227 (_initialize_s390_nat): Assign thread delete callback.
1228 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1229 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1230 function.
1231 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1232 declaration.
1233 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1234 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1235
f71c8822
TT
12362017-10-09 Tom Tromey <tom@tromey.com>
1237
1238 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1239 std::string.
1240 * tui/tui-layout.c (enum tui_status): Use std::string.
1241
981a3fb3
TT
12422017-10-11 Tom Tromey <tom@tromey.com>
1243
1244 * gdbthread.h (thread_command): Constify.
1245 * inferior.h (detach_command): Constify.
1246 * top.h (set_history, show_history): Constify.
1247 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1248 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1249 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1250 * printcmd.c (set_command): Constify.
1251 (non_const_set_command): New function.
1252 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1253 * breakpoint.c (enable_command, disable_command, delete_command)
1254 (catch_command, tcatch_command, set_breakpoint_cmd)
1255 (show_breakpoint_cmd): Constify.
1256 * macrocmd.c (macro_command): Constify.
1257 * infcmd.c (unset_command, kill_command, detach_command)
1258 (info_proc_cmd): Constify.
1259 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1260 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1261 (info_auto_load_cmd): Constify.
1262 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1263 (unset_tdesc_cmd): Constify.
1264 * ada-lang.c (set_ada_command, show_ada_command)
1265 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1266 * guile/guile.c (set_guile_command, show_guile_command)
1267 (info_guile_command): Constify.
1268 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1269 Constify.
1270 * skip.c (skip_command): Constify.
1271 * compile/compile.c (_initialize_compile): Constify.
1272 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1273 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1274 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1275 (maint_btrace_pt_show_cmd): Constify.
1276 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1277 Constify.
1278 * python/python.c (user_show_python, user_set_python): Constify.
1279 * mips-tdep.c (set_mips_command, show_mips_command)
1280 (set_mipsfpu_command): Constify.
1281 * record-btrace.c (cmd_record_btrace_start)
1282 (cmd_set_record_btrace, cmd_show_record_btrace)
1283 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1284 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1285 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1286 Constify.
1287 * symfile.c (overlay_command): Constify.
1288 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1289 * cli/cli-logging.c (set_logging_command, show_logging_command):
1290 Constify.
1291 * cli/cli-dump.c (dump_command, append_command)
1292 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1293 (tekhex_dump_command, binary_dump_command)
1294 (binary_append_command): Constify.
1295 * cli/cli-decode.c (struct cmd_list_element): Change type of
1296 "fun".
1297 * cli/cli-cmds.c (info_command, show_command, set_debug)
1298 (show_debug): Constify.
1299 (show_command): Add non-const overload.
1300 * top.c (set_history, show_history): Constify.
1301 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1302 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1303 * target.c (target_command): Constify.
1304 * sparc64-tdep.c (info_adi_command): Constify.
1305 * record-full.c (cmd_record_full_start): Constify.
1306 (set_record_full_command): Constify. Fix typo.
1307 (show_record_full_command): Constify.
1308 * thread.c (thread_command, thread_apply_command): Constify.
1309 * memattr.c (dummy_cmd): Constify.
1310 * value.c (function_command): Constify.
1311 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1312 * probe.c (info_probes_command): Constify.
1313 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1314 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1315 (show_thread_cmd, set_thread_default_cmd)
1316 (show_thread_default_cmd): Constify.
1317 (check_empty): Constify.
1318 * tracepoint.c (tfind_command): Constify.
1319 * cp-support.c (maint_cplus_command): Constify.
1320 * windows-tdep.c (info_w32_command): Constify.
1321 * record.c (cmd_record_start, set_record_command)
1322 (show_record_command, info_record_command, cmd_record_goto):
1323 Constify.
1324 * ravenscar-thread.c (set_ravenscar_command)
1325 (show_ravenscar_command): Constify.
1326 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1327 Constify.
1328 (add_internal_problem_command): Remove casts.
1329 * arc-tdep.c (maintenance_print_arc_command): Constify.
1330 * valprint.c (set_print, show_print, set_print_raw)
1331 (show_print_raw): Constify.
1332 * maint.c (maintenance_command, maintenance_info_command)
1333 (maintenance_print_command, maintenance_set_cmd)
1334 (maintenance_show_cmd, set_per_command_cmd)
1335 (show_per_command_cmd, maintenance_check_command): Constify.
1336 * language.c (set_check, show_check): Constify.
1337 * typeprint.c (show_print_type, set_print_type): Constify.
1338 * go32-nat.c (go32_info_dos_command): Constify.
1339
fdf44873
TT
13402017-10-11 Tom Tromey <tom@tromey.com>
1341
1342 * breakpoint.c (prepare_re_set_context): Remove.
1343 (breakpoint_re_set_one): Update. Don't use cleanups.
1344 (breakpoint_re_set): Use scoped_restore, std::string, and
1345 scoped_restore_current_language.
1346
81b1e71c
TT
13472017-10-11 Tom Tromey <tom@tromey.com>
1348
1349 * breakpoint.c (commands_command_1): Use std::string.
1350 (cleanup_executing_breakpoints): Remove.
1351 (bpstat_do_actions_1): Use scoped_restore.
1352 (bpstat_check_watchpoint): Use std::string.
1353 (decode_static_tracepoint_spec): Likewise.
1354 (break_range_command): Likewise.
1355 (watch_command_1): Likewise.
1356 (compare_breakpoints): Change argument types.
1357 (clear_command): Use std::vector.
1358 (cleanup_executing_breakpoints): Remove.
1359 (update_global_location_list): Use unique_xmalloc_ptr.
1360 (strace_command): Remove unused declaration.
1361
4f9d9906
JB
13622017-10-11 John Baldwin <jhb@FreeBSD.org>
1363
1364 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1365 * NEWS: Mention new FreeBSD/arm native configuration.
1366 * configure.host: Add arm*-*-freebsd*.
1367 * configure.nat: Likewise.
1368 * arm-fbsd-nat.c: New file.
1369
7176dfd2
JB
13702017-10-11 John Baldwin <jhb@FreeBSD.org>
1371
1372 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1373 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1374 * NEWS: Mention new FreeBSD/arm target.
1375 * configure.tgt: Add arm*-*-freebsd*.
1376 * arm-fbsd-tdep.c: New file.
1377 * arm-fbsd-tdep.h: New file.
1378
fe220226
MR
13792017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1380
1381 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1382 `gdbarch_elfcore_write_linux_prpsinfo'.
1383 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1384 method.
1385 (elf_internal_linux_prpsinfo): Remove declaration.
1386 * gdbarch.h: Regenerate.
1387 * gdbarch.c: Regenerate.
1388
a2f63b2e
MR
13892017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1390
1391 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1392 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1393
458ca1d0
PA
13942017-10-11 Pedro Alves <palves@redhat.com>
1395
1396 * breakpoint.c (reattach_breakpoints): Delete.
1397 * breakpoint.h (reattach_breakpoints): Delete.
1398
905014d7
SM
13992017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1400
1401 * symfile.c (registered_sym_fns): Make struct, not typedef.
1402 (DEF_VEC_O (registered_sym_fns)): Remove.
1403 (symtab_fns): Change type to std::vector.
1404 (add_symtab_fns): Adjust.
1405 (find_sym_fns): Adjust.
1406
56d704da
AK
14072017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1408
1409 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1410 * arc-tdep.h (arc_arch_is_em): New function.
1411 (arc_arch_is_hs): Likewise.
1412
7fa29be9
EB
14132017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1414
1415 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1416 parentheses in the declaration.
1417 (macro_lookup_inclusion): Likewise.
1418 (macro_lookup_definition): Likewise.
1419 * p-lang.h (pascal_builtin_types): Likewise.
1420 * tui/tui-data.c (tui_win_list): Likewise.
1421 * tui/tui-data.h (tui_win_list): Likewise.
1422 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1423
d9b477e3
KB
14242017-10-11 Mark Rages <markrages@gmail.com>
1425
1426 * target-memory.c (block_boundaries): Fix for block address not
1427 aligned on block size.
1428
65630365
PA
14292017-10-10 Pedro Alves <palves@redhat.com>
1430 Tom Tromey <tom@tromey.com>
1431
1432 * breakpoint.c (struct captured_breakpoint_query_args)
1433 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1434 (print_breakpoint): New.
1435 * breakpoint.h (print_breakpoint): Declare.
1436 * common/common-exceptions.h (enum return_reason): Remove
1437 references to catch_exceptions.
1438 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1439 Delete.
1440 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1441 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1442 * gdb.h: Delete.
1443 * gdbthread.h (thread_select): Declare.
1444 * mi/mi-cmd-break.c: Don't include gdb.h.
1445 (breakpoint_notify): Use print_breakpoint.
1446 * mi/mi-cmd-catch.c: Don't include gdb.h.
1447 * mi/mi-interp.c: Don't include gdb.h.
1448 (mi_print_breakpoint_for_event): New.
1449 (mi_breakpoint_created, mi_breakpoint_modified): Use
1450 mi_print_breakpoint_for_event.
1451 * mi/mi-main.c: Don't include gdb.h.
1452 (mi_cmd_thread_select): Parse the global thread ID here. Use
1453 thread_select instead of gdb_thread_select.
1454 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1455 of using gdb_list_thread_ids.
1456 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1457 FILEIO_ENOSYS here.
1458 (remote_fileio_request): Use TRY/CATCH instead of
1459 catch_exceptions.
1460 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1461 (symbol_file_add_from_memory_wrapper): Delete.
1462 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1463 * thread.c: Don't include gdb.h.
1464 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1465 (thread_alive): Use thread_select.
1466 (do_captured_thread_select): Delete, parts salvaged as ...
1467 (thread_select): ... this new function.
1468 (gdb_thread_select): Delete.
1469
bf469271
PA
14702017-10-10 Pedro Alves <palves@redhat.com>
1471 Tom Tromey <tom@tromey.com>
1472
1473 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1474 and reverse logic.
1475 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1476 No longer macros. Instead ...
1477 (enum wp_check_result): They're now values of this new
1478 enumeration.
1479 (watchpoint_check): Change return type to wp_check_result and
1480 parameter type to bpstat.
1481 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1482 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1483 catch_errors. Reverse logic of watchpoint_check call.
1484 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1485 pointer as parameter.
1486 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1487 * common/common-exceptions.c (throw_exception_sjlj): Update
1488 comments to avoid mentioning catch_errors.
1489 * exceptions.c (catch_errors): Delete.
1490 * exceptions.h: Update comments to avoid mentioning catch_errors.
1491 (catch_errors_ftype, catch_errors): Delete.
1492 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1493 (hook_stop_stub): Delete.
1494 (restore_selected_frame): Change return type to void, and
1495 parameter type to const frame_id &.
1496 (restore_infcall_control_state): Use TRY/CATCH instead of
1497 catch_errors.
1498 * main.c (captured_command_loop): Return void and remove
1499 parameter. Remove references to catch_errors.
1500 (captured_main): Use TRY/CATCH instead of catch_errors.
1501 * objc-lang.c (objc_submethod_helper_data)
1502 (find_objc_msgcall_submethod_helper): Delete.
1503 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1504 catch_errors.
1505 * record-full.c (record_full_message): Return void.
1506 (record_full_message_args, record_full_message_wrapper): Delete.
1507 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1508 instead of catch_errors.
1509 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1510 parameter type to int.
1511 * solib-darwin.c (open_symbol_file_object): Ditto.
1512 * solib-dsbt.c (open_symbol_file_object): Ditto.
1513 * solib-frv.c (open_symbol_file_object): Ditto.
1514 * solib-svr4.c (open_symbol_file_object): Ditto.
1515 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1516 * solib.c (update_solib_list): Use TRY/CATCH instead of
1517 catch_errors.
1518 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1519 Change type.
1520 * symmisc.c (struct print_symbol_args): Remove.
1521 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1522 (print_symbol): Change type.
1523 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1524 and remove parameters.
1525 (catch_errors): New.
1526 (get_windows_debug_event): Adjust.
1527
1a56bfa5
TT
15282017-10-09 Tom Tromey <tom@tromey.com>
1529
1530 * mi/mi-main.c (free_splay_tree): Remove.
1531 (list_available_thread_groups): Use splay_tree_up.
1532 * common/gdb_splay_tree.h: New file.
1533
0c478e2d
TT
15342017-10-09 Tom Tromey <tom@tromey.com>
1535
1536 * mi/mi-main.c (do_nothing): Remove.
1537 (list_available_thread_groups): Update.
1538
cbd2b4e3
PA
15392017-10-09 Pedro Alves <palves@redhat.com>
1540
1541 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1542 reading registers when switching context.
1543
a181c0bf
JB
15442017-10-09 John Baldwin <jhb@FreeBSD.org>
1545
1546 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1547 (fbsd_convert_siginfo): Likewise.
1548 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1549
6e66f753
SM
15502017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1551
1552 * configure.ac (try_guile_versions): Remove guile-2.2.
1553 * configure: Regenerate.
1554
890e9790
TT
15552017-10-09 Tom Tromey <tom@tromey.com>
1556
1557 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1558 (COMPILE.pre): Use $(CXX).
1559
109483d9
PA
15602017-10-09 Pedro Alves <palves@redhat.com>
1561
1562 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1563 Use bool.
1564 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1565 * cp-support.h (cp_remove_params): Now returns a
1566 gdb::unique_xmalloc_ptr.
1567 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1568 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1569 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1570 returning a gdb::unique_xmalloc_ptr.
1571 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1572 * stack.c (find_frame_funname): Adjust to cp_remove_params
1573 returning a gdb::unique_xmalloc_ptr.
1574
791afaa2
TT
15752017-10-08 Tom Tromey <tom@tromey.com>
1576
1577 * dwarf2read.c (dwarf2_get_dwz_file): Use
1578 gdb::unique_xmalloc_ptr.
1579 (find_slot_in_mapped_hash): Likewise.
1580 (dwarf2_physname): Likewise.
1581 (create_dwo_unit_in_dwp_v1): Use std::string.
1582 (create_dwo_unit_in_dwp_v2): Likewise.
1583 (lookup_dwo_cutu): Likewise.
1584 (inherit_abstract_dies): Use std::vector.
1585 (read_array_type): Likewise.
1586 (dwarf_decode_macros): Remove unused declaration.
1587 (unsigned_int_compar): Remove.
1588 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1589 (psymtabs_addrmap_cleanup): Remove.
1590
30a9c02f
TT
15912017-10-08 Tom Tromey <tom@tromey.com>
1592
1593 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1594 * frame.h (frame_cleanup_after_sniffer): Declare.
1595 (frame_prepare_for_sniffer): Return void.
1596 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1597 type of argument.
1598 (frame_prepare_for_sniffer): Return void.
1599
757325a3
TT
16002017-10-08 Tom Tromey <tom@tromey.com>
1601
1602 * utils.h (make_cleanup_value_free): Remove.
1603 * utils.c (do_value_free, struct cleanup): Remove.
1604 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1605 Use gdb_value_up.
1606 * value.h (struct value_deleter): New.
1607 (gdb_value_up): New typedef.
1608
b9c04fb2
TT
16092017-10-08 Tom Tromey <tom@tromey.com>
1610
1611 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1612 (make_cleanup_free_search_symbols): Remove.
1613 (search_symbols): Return std::vector.
1614 (symbol_search::compare_search_syms): Now member of
1615 symbol_search. Change arguments.
1616 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1617 (symtab_symbol_info, rbreak_command): Update.
1618 * symtab.h (struct symbol_search) <next>: Remove.
1619 Add constructors.
1620 (symbol_search::operator<): New function.
1621 (symbol_search::operator==): New function.
1622 (search_symbols): Remove std::vector.
1623 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1624 (symbol_search::compare_search_syms): Declare.
1625
0d28b0a5
YQ
16262017-10-06 Yao Qi <yao.qi@linaro.org>
1627
1628 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1629 arch/aarch64-insn.o.
1630 Remove one rule.
1631 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1632
71917808
YQ
16332017-10-06 Yao Qi <yao.qi@linaro.org>
1634
1635 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1636 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1637 arch/arm-linux.o respectively.
1638 * configure.tgt: Likewise.
1639
2081b2b2
YQ
16402017-10-06 Yao Qi <yao.qi@linaro.org>
1641
1642 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1643 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1644
a1b85d28
PA
16452017-10-06 Pedro Alves <palves@redhat.com>
1646
1647 * windows-nat.c: Include <algorithm>.
1648
d97987e2
YQ
16492017-10-06 Yao Qi <yao.qi@linaro.org>
1650
1651 * configure.tgt (i386_tobjs): New variable.
1652 (amd64_tobjs): New variable.
1653 Set $cpu_obs and $os_obs.
1654
f38307f5
YQ
16552017-10-06 Yao Qi <yao.qi@linaro.org>
1656
1657 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1658 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1659 (clean): Remove object files and dependency files.
1660 (distclean): Remove the directory.
1661 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1662 * configure: Re-generated.
1663 * configure.tgt: Replace amd64.o with arch/amd64.o.
1664
2f924de6
JM
16652017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1666
1667 PR build/22188
1668 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1669 and SETEND.
1670
2fd9d7ca
PA
16712017-10-05 Pedro Alves <palves@redhat.com>
1672
1673 * linux-nat.c (linux_child_follow_fork): When following the parent
1674 and detaching the child, consult the parent thread's architecture
1675 instead of the child's.
1676
d13b8493
UW
16772017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1678
1679 * ax.h: Do not include "doublest.h".
1680 (union agent_val): Remove.
1681
3b4b2f16
UW
16822017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1683
1684 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1685 (decimal_to_string): Return std::string object.
1686 (decimal_from_string): Accept std::string object. Return bool.
1687 (decimal_from_integral, decimal_from_doublest): Remove.
1688 (decimal_from_longest): Add prototype.
1689 (decimal_from_ulongest): Likewise.
1690 (decimal_to_longest): Likewise.
1691 (decimal_from_doublest): Likewise.
1692 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1693 (MAX_DECIMAL_STRING): Move here.
1694 (decimal_to_string): Return std::string object.
1695 (decimal_from_string): Accept std::string object. Return bool.
1696 (decimal_from_integral): Remove, replace by ...
1697 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1698 (decimal_to_longest): New function.
1699 (decimal_from_floating): Remove, replace by ...
1700 (decimal_from_doublest): ... this new function.
1701 (decimal_to_doublest): Update to new decimal_to_string interface.
1702
1703 * value.c (unpack_long): Use decimal_to_longest.
1704 * valops.c (value_cast): Use decimal_from_doublest instead of
1705 decimal_from_floating. Use decimal_from_[u]longest isntead of
1706 decimal_from_integral.
1707 * valarith.c (value_args_as_decimal): Likewise.
1708 * valprint.c (print_decimal_floating): Update to new
1709 decimal_to_string interface.
1710 * printcmd.c (printf_decfloat): Likewise.
1711 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1712
1841ee5d
UW
17132017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1714
1715 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1716 * gdbtypes.c: Include "floatformat.h".
1717 * value.c: Likewise.
1718 * m68k-tdep.c: Likewise.
1719
1720 * findvar.c: Do not include "floatformat.h".
1721 * amd64-darwin-tdep.c: Likewise.
1722 * arm-linux-tdep.c: Likewise.
1723 * i386-darwin-tdep.c: Likewise.
1724 * i387-tdep.c: Likewise.
1725 * m68k-linux-tdep.c: Likewise.
1726 * mep-tdep.c: Likewise.
1727 * mips-tdep.c: Likewise.
1728 * nios2-tdep.c: Likewise.
1729 * s390-linux-tdep.c: Likewise.
1730 * sparc-obsd-tdep.c: Likewise.
1731 * sparc-tdep.c: Likewise.
1732 * sparc64-tdep.c: Likewise.
1733 * spu-tdep.c: Likewise.
1734 * tic6x-tdep.c: Likewise.
1735 * tilegx-tdep.c: Likewise.
1736 * vax-tdep.c: Likewise.
1737 * xstormy16-tdep.c: Likewise.
1738 * xtensa-tdep.c: Likewise.
1739
1740 * top.c: Do not include "doublest.h".
1741 * aarch64-tdep.c: Likewise.
1742 * alpha-tdep.c: Likewise.
1743 * arm-linux-tdep.c: Likewise.
1744 * m68k-linux-tdep.c: Likewise.
1745 * tilegx-tdep.c: Likewise.
1746 * xstormy16-tdep.c: Likewise.
1747
a80a6471
JB
17482017-10-05 John Baldwin <jhb@FreeBSD.org>
1749
1750 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1751 (mipsn32_fbsd_sigframe): Define.
1752 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1753 for FreeBSD/mipsn32.
1754
12c4bd7f
JB
17552017-10-05 John Baldwin <jhb@FreeBSD.org>
1756
1757 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1758 AT_HWCAP.
1759
c91933e9
TG
17602017-10-05 Tristan Gingold <tgingold@free.fr>
1761
1762 * MAINTAINERS (Misc): Update my email address.
1763
5cd63fda
PA
17642017-10-04 Pedro Alves <palves@redhat.com>
1765
1766 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1767 it instead of target_gdbarch.
1768 (get_remote_state, get_remote_packet_size): Adjust
1769 get_remote_arch_state calls, passing down target_gdbarch
1770 explicitly.
1771 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
1772 'gdbarch' and use it instead of target_gdbarch.
1773 (get_memory_packet_size): Adjust get_remote_arch_state calls,
1774 passing down target_gdbarch explicitly.
1775 (struct stop_reply) <arch>: New field.
1776 (remote_parse_stop_reply): Use the stopped thread's architecture,
1777 not the current inferior's. Save the architecture in the
1778 stop_reply.
1779 (process_stop_reply): Use the stop reply's architecture.
1780 (process_g_packet, remote_fetch_registers)
1781 (remote_prepare_to_store, store_registers_using_G)
1782 (remote_store_registers): Adjust get_remote_arch_state calls,
1783 using the regcache's architecture.
1784 (remote_get_trace_status): Adjust get_remote_arch_state calls,
1785 passing down target_gdbarch explicitly.
1786 * spu-multiarch.c (spu_thread_architecture): Defer to the target
1787 beneath instead of calling target_gdbarch.
1788 * target.c (default_thread_architecture): Use the specified
1789 inferior's architecture, instead of the current inferior's
1790 architecture (via target_gdbarch).
1791
ed4227b7
PA
17922017-10-04 Pedro Alves <palves@redhat.com>
1793
1794 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
1795 case.
1796 (regcache_print): Handle !target_has_registers here instead.
1797
55b11ddf
PA
17982017-10-04 Pedro Alves <palves@redhat.com>
1799
1800 * frame.c (create_test_frame): Delete.
1801 * frame.h (create_test_frame): Delete.
1802 * gdbarch-selftests.c: Include gdbthread.h and target.h.
1803 (class regcache_test): Delete.
1804 (test_target_has_registers, test_target_has_stack)
1805 (test_target_has_memory, test_target_prepare_to_store)
1806 (test_target_store_registers): New functions.
1807 (test_target_ops): New class.
1808 (register_to_value_test): Error out if there's already a
1809 process_stratum (or higher) target pushed. Create a fuller mock
1810 environment, with mock target_ops, inferior, address space, thread
1811 and inferior_ptid.
1812 * progspace.c (struct address_space): Move to ...
1813 * progspace.h (struct address_space): ... here.
1814 * regcache.h (regcache::~regcache, regcache::raw_write)
1815 [GDB_SELF_TEST]: No longer virtual.
1816
4c71c105
SM
18172017-10-04 Simon Marchi <simon.marchi@ericsson.com>
1818
1819 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
1820
73dcd72d
PA
18212017-10-04 Pedro Alves <palves@redhat.com>
1822
1823 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
1824 out of 'between TRY and CATCH'.
1825
44704526
PA
18262017-10-04 Pedro Alves <palves@redhat.com>
1827
1828 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
1829 * common/common-exceptions.h (TRY): Open an outermost scope.
1830 Expand intro comment.
1831 (CATCH): Reindent.
1832 (END_CATCH): Close the outermost scope.
1833 * completer.c (complete_line_internal): Add missing END_CATCH.
1834
bc3b087d
SDJ
18352017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1836
1837 * NEWS (Changes since GDB 8.0): Add entry about new
1838 'set-cwd-on-gdbserver' feature.
1839 (New remote packets): Add entry for QSetWorkingDir.
1840 * common/common-inferior.h (set_inferior_cwd): New prototype.
1841 * infcmd.c (set_inferior_cwd): Remove "static".
1842 (show_cwd_command): Expand text to include remote debugging.
1843 * remote.c: Add PACKET_QSetWorkingDir.
1844 (remote_protocol_features) <QSetWorkingDir>: New entry for
1845 PACKET_QSetWorkingDir.
1846 (extended_remote_set_inferior_cwd): New function.
1847 (extended_remote_create_inferior): Call
1848 "extended_remote_set_inferior_cwd".
1849 (_initialize_remote): Call "add_packet_config_cmd" for
1850 QSetWorkingDir.
1851
d092c5a2
SDJ
18522017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1853
1854 * NEWS (New commands): Mention "set/show cwd".
1855 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
1856 "cd" command's help text.
1857 * common/common-inferior.h (get_inferior_cwd): New prototype.
1858 * infcmd.c (inferior_cwd_scratch): New global variable.
1859 (set_inferior_cwd): New function.
1860 (get_inferior_cwd): Likewise.
1861 (set_cwd_command): Likewise.
1862 (show_cwd_command): Likewise.
1863 (_initialize_infcmd): Add "set/show cwd" commands.
1864 * inferior.h (class inferior) <cwd>: New field.
1865 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
1866 (fork_inferior): Change inferior's cwd before its execution.
1867 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
1868 to CreateProcess.
1869
7da0a886
SDJ
18702017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1871
1872 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
1873 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
1874 (COMMON_OBS): Add gdb_tilde_expand.o.
1875 * common/gdb_tilde_expand.c: New file.
1876 * common/gdb_tilde_expand.h: Likewise.
1877
db8dd160
MR
18782017-10-03 Maciej W. Rozycki <macro@imgtec.com>
1879
1880 * gdbarch.sh (objfile): Remove duplicate declaration.
1881 * gdbarch.h: Regenerate.
1882
f8bfbf22
TT
18832017-10-03 Tom Tromey <tom@tromey.com>
1884
1885 * utils.c (internal_vproblem): Use string_vprintf.
1886
5178ed48
TT
18872017-10-03 Tom Tromey <tom@tromey.com>
1888
1889 * printcmd.c (info_symbol_command): Use std::string.
1890
8cff8730
TT
18912017-10-03 Tom Tromey <tom@tromey.com>
1892
1893 * top.c (gdb_safe_append_history): Use std::string.
1894
895b8f30
TT
18952017-10-03 Tom Tromey <tom@tromey.com>
1896
1897 * event-top.c (stdin_event_handler): Update.
1898 * main.c (captured_main_1): Update.
1899 * top.h (make_delete_ui_cleanup): Remove.
1900 (struct ui): Add constructor and destructor.
1901 (new_ui, delete_ui): Remove.
1902 * top.c (make_delete_ui_cleanup): Remove.
1903 (new_ui_command): Use std::unique_ptr.
1904 (delete_ui_cleanup): Remove.
1905 (ui::ui): Rename from new_ui. Update.
1906 (free_ui): Remove.
1907 (ui::~ui): Rename from delete_ui. Update.
1908
0efef640
TT
19092017-10-03 Tom Tromey <tom@tromey.com>
1910
1911 * symfile.c (load_progress): Use gdb::byte_vector.
1912
245ad7d3
TT
19132017-10-03 Tom Tromey <tom@tromey.com>
1914
1915 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
1916 declaration.
1917 * printcmd.c (x_command): Remove unused declaration.
1918 * symfile.c (symbol_file_command): Remove unused declaration.
1919
e05550d7
TT
19202017-10-03 Tom Tromey <tom@tromey.com>
1921
1922 * utils.c (internal_vproblem): Use std::string.
1923 (defaulted_query): Likewise.
1924
b95de2b7
TT
19252017-10-03 Tom Tromey <tom@tromey.com>
1926
1927 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
1928 * top.c (execute_command_to_string): Update.
1929 * utils.c (make_cleanup_restore_page_info): Remove.
1930 (do_restore_page_info_cleanup): Remove.
1931 (set_batch_flag_and_restore_page_info):
1932 New.
1933 (make_cleanup_restore_page_info): Remove.
1934 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1935 (~set_batch_flag_and_restore_page_info): New
1936 (make_cleanup_restore_uinteger): Remove.
1937 (make_cleanup_restore_integer): Remove.
1938 (struct restore_integer_closure): Remove.
1939 (restore_integer): Remove.
1940 * utils.h (struct set_batch_flag_and_restore_page_info): New
1941 class.
1942 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1943 (make_cleanup_restore_page_info): Remove.
1944 (make_cleanup_restore_uinteger) Remove.
1945 (make_cleanup_restore_integer) Remove.
1946
07036511
TT
19472017-10-03 Tom Tromey <tom@tromey.com>
1948
1949 * record-full.h (record_full_gdb_operation_disable_set): Return
1950 scoped_restore_tmpl<int>.
1951 * infrun.c (adjust_pc_after_break): Update.
1952 (handle_signal_stop): Update.
1953 * record-full.c (record_full_gdb_operation_disable_set): Return
1954 scoped_restore_tmpl<int>.
1955 (record_full_wait_1, record_full_insert_breakpoint)
1956 (record_full_remove_breakpoint, record_full_save)
1957 (record_full_goto_insn): Update.
1958
45320ffa
TT
19592017-10-02 Tom Tromey <tom@tromey.com>
1960
1961 PR rust/22236:
1962 * rust-lang.c (rust_val_print_str): New function.
1963 (val_print_struct): Call it.
1964 (rust_subscript): Preserve name of slice type.
1965
b3e3859b
TT
19662017-10-02 Tom Tromey <tom@tromey.com>
1967
1968 * rust-lang.c (rust_subscript): Handle slices in
1969 EVAL_AVOID_SIDE_EFFECTS case.
1970
01af5e0d
TT
19712017-10-02 Tom Tromey <tom@tromey.com>
1972
1973 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
1974
888e3ddb
TT
19752017-10-02 Tom Tromey <tom@tromey.com>
1976
1977 * rust-lang.h (rust_slice_type): Add "extern".
1978
cc536b21
PA
19792017-10-02 Tom Tromey <tom@tromey.com>
1980 Pedro Alves <palves@redhat.com>
1981
1982 * ada-lang.h (ada_exc_info::operator<): Make const.
1983 (ada_exc_info::operator==): Make const.
1984 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
1985 Make const.
1986
386c8614
TT
19872017-09-29 Tom Tromey <tom@tromey.com>
1988
1989 * target.c (read_whatever_is_readable): Change type of "result".
1990 Update.
1991 (free_memory_read_result_vector): Remove.
1992 (read_memory_robust): Change return type. Update.
1993 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
1994 bin2hex, std::string.
1995 * target.h (memory_read_result_s): Remove typedef.
1996 (free_memory_read_result_vector): Remove.
1997 (read_memory_robust): Return std::vector.
1998
789c4b5e
TT
19992017-09-29 Tom Tromey <tom@tromey.com>
2000
2001 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2002
ab816a27
TT
20032017-09-29 Tom Tromey <tom@tromey.com>
2004
2005 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2006 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2007 operator< and operator==.
2008 (ada_exceptions_list): Return a std::vector.
2009 * ada-lang.c (ada_exc_info::operator<): Rename from
2010 compare_ada_exception_info.
2011 (ada_exc_info::operator==): New.
2012 (sort_remove_dups_ada_exceptions_list): Change type of
2013 "exceptions".
2014 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2015 (ada_add_global_exceptions): Likewise.
2016 (ada_exceptions_list_1): Return a std::vector.
2017 (ada_exceptions_list): Likewise.
2018
52f9abe4
TT
20192017-09-29 Tom Tromey <tom@tromey.com>
2020
2021 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2022 'std::set *'.
2023 (print_one_inferior): Update.
2024 (free_vector_of_ints): Remove.
2025 (list_available_thread_groups): Change "ids" to std::set.
2026 (mi_cmd_list_thread_groups): Update.
2027 (struct collect_cores_data) <core>: Now a std::set.
2028 (collect_cores): Update.
2029 (unique): Remove.
2030 (print_one_inferior): Update.
2031
dcd5ddcc
TT
20322017-09-29 Tom Tromey <tom@tromey.com>
2033
2034 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2035 (mi_execute_async_cli_command): Likewise.
2036 (mi_cmd_trace_frame_collected): Use field_fmt.
2037
45d288cc
TT
20382017-09-29 Tom Tromey <tom@tromey.com>
2039
2040 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2041 gdb::byte_vector.
2042
6afe2f4a
TT
20432017-09-29 Tom Tromey <tom@tromey.com>
2044
2045 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2046
9813429a
TT
20472017-09-29 Tom Tromey <tom@tromey.com>
2048
2049 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2050
2d6960b4
TT
20512017-09-29 Tom Tromey <tom@tromey.com>
2052
2053 * varobj.h (varobj_gen_name): Return std::string.
2054 * varobj.c (varobj_gen_name): Return std::string.
2055 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2056 (mi_cmd_var_delete): Don't copy "name".
2057
784c453a
TT
20582017-09-29 Tom Tromey <tom@tromey.com>
2059
2060 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2061 (mi_cmd_break_insert_1): Update.
2062
a9bc57b9
TT
20632017-09-29 Tom Tromey <tom@tromey.com>
2064
2065 * target.h (make_scoped_defer_target_commit_resume): Update.
2066 * target.c (make_scoped_defer_target_commit_resume): Rename from
2067 make_cleanup_defer_target_commit_resume. Return a
2068 scoped_restore.
2069 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2070
9754d8c4
TT
20712017-09-29 Tom Tromey <tom@tromey.com>
2072
2073 * main.c (captured_main_1): Remove unused declaration.
2074 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2075
99ef965c
TT
20762017-09-29 Tom Tromey <tom@tromey.com>
2077
2078 * symtab.c (search_symbols): Remove unused outer cleanup.
2079 (make_source_files_completion_list): Remove unused declaration.
2080
42518ba7
TT
20812017-09-29 Tom Tromey <tom@tromey.com>
2082
2083 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2084
726b2169
TT
20852017-09-29 Tom Tromey <tom@tromey.com>
2086
2087 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2088 gdb::byte_vector.
2089
55b06432
TT
20902017-09-29 Tom Tromey <tom@tromey.com>
2091
2092 * complaints.c (vcomplaint): Use std::string.
2093
8abcee91
TT
20942017-09-29 Tom Tromey <tom@tromey.com>
2095
2096 * tracepoint.c (trace_variable_command): Use std::string.
2097 (encode_actions_1): Remove unused declarations.
2098 (create_tsv_from_upload): Use std::string.
2099
6ad94bc7
TT
21002017-09-29 Tom Tromey <tom@tromey.com>
2101
2102 * cp-support.c (gdb_demangle): Use std::string.
2103
2003f3d8
TT
21042017-09-29 Tom Tromey <tom@tromey.com>
2105
2106 * stack.c (parse_frame_specification): Use std::string
2107 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2108
8f8accb5
TT
21092017-09-29 Tom Tromey <tom@tromey.com>
2110
2111 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2112
200aa7b1
TT
21132017-09-29 Tom Tromey <tom@tromey.com>
2114
2115 * utils.c (vfprintf_maybe_filtered): Use std::string.
2116 (vfprintf_unfiltered): Likewise.
2117
606aae8a
TT
21182017-09-29 Tom Tromey <tom@tromey.com>
2119
2120 * event-top.c (top_level_prompt): Return std::string.
2121 (display_gdb_prompt): Update.
2122
bd413795
TT
21232017-09-29 Tom Tromey <tom@tromey.com>
2124
2125 * unittests/common-utils-selftests.c (format): New function.
2126 (string_vprintf_tests): New function.
2127 (_initialize_common_utils_selftests): Register new tests.
2128 * common/common-utils.c (string_vprintf): New function.
2129 * common/common-utils.h (string_vprintf): Declare.
2130
256642e8
PA
21312017-09-29 Pedro Alves <palves@redhat.com>
2132
2133 * common/rsp-low.c (unpack_varlen_hex): Constify.
2134 * common/rsp-low.h (unpack_varlen_hex): Constify.
2135 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2136 Constify.
2137 * remote.c (remote_set_permissions, read_ptid)
2138 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2139 (remote_static_tracepoint_marker_at)
2140 (remote_static_tracepoint_markers_by_strid)
2141 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2142 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2143 (parse_tracepoint_definition, parse_tsv_definition)
2144 (parse_static_tracepoint_marker_definition): Constify.
2145 * tracepoint.h (parse_static_tracepoint_marker_definition)
2146 (parse_trace_status, parse_tracepoint_status)
2147 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2148
b6bb3468
PA
21492017-09-29 Pedro Alves <palves@redhat.com>
2150
2151 * remote.c (target_buf, target_buf_size): Delete.
2152 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2153 Use the connection's packet buffer instead.
2154 All callers adjusted.
2155 (_initialize_remote): Remove references to target_buf and
2156 target_buf_size.
2157
b2f8eb7a
PA
21582017-09-28 Pedro Alves <palves@redhat.com>
2159
2160 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2161 unittests/common-utils-selftests.c.
2162 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2163 (COMMON_OBS): Remove utils-selftests.o.
2164 * utils-selftests.c: Move to ...
2165 * unittests/common-utils-selftests.c: ... here and rename self
2166 test to "string_printf".
2167
08302ed2
DE
21682017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2169
2170 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2171 having NULL cus or tus.
2172
96a5a1d3
UW
21732017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2174
2175 * arm-tdep.c: (convert_from_extended): Remove.
2176 (convert_to_extended): Likewise.
2177 (arm_extract_return_value): Use convert_typed_floating.
2178 (arm_store_return_value): Likewise.
2179
2180 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2181 * sh-tdep.c: Do not include "floatformat.h".
2182 (sh_littlebyte_bigword_type): New function.
2183 (sh_register_convert_to_virtual): Use convert_typed_floating.
2184 (sh_register_convert_to_raw): Likewise.
2185 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2186 (sh64_littlebyte_bigword_type): New function.
2187 (sh64_extract_return_value): Use convert_typed_floating.
2188 (sh64_register_convert_to_virtual): Likewise.
2189 (sh64_register_convert_to_raw): Likewise.
2190
0db7851f
UW
21912017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2192
2193 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2194 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2195
2196 * gdbtypes.h (union type_specific): Make field floatformat hold
2197 just a single struct floatformat, not an array.
2198 (floatformat_from_type): Move here.
2199 * gdbtypes.c (floatformat_from_type): Move here. Update to
2200 changed TYPE_FLOATFORMAT definition.
2201 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2202 (recursive_dump_type): Likewise.
2203 (init_float_type): Install correct floatformat for byte order.
2204 (arch_float_type): Likewise.
2205
77b7c781
UW
22062017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2207
2208 * gdbtypes.c (init_type): Change incoming argument from
2209 length-in-bytes to length-in-bits. Assert length is a
2210 multiple of TARGET_CHAR_BITS.
2211 (arch_type, arch_flags_type): Likewise.
2212 (init_integer_type): Update call to init_type.
2213 (init_character_type): Likewise.
2214 (init_boolean_type): Likewise.
2215 (init_float_type): Likewise.
2216 (init_decfloat_type): Likewise.
2217 (init_complex_type): Likewise.
2218 (init_pointer_type): Likewise.
2219 (objfile_type): Likewise.
2220 (arch_integer_type): Update call to arch_type.
2221 (arch_character_type): Likewise.
2222 (arch_boolean_type): Likewise.
2223 (arch_float_type): Likewise.
2224 (arch_decfloat_type): Likewise.
2225 (arch_complex_type): Likewise.
2226 (arch_pointer_type): Likewise.
2227 (gdbtypes_post_init): Likewise.
2228
2229 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2230 (read_base_type): Likewise.
2231 * mdebugread.c (basic_type): Likewise.
2232 * stabsread.c (dbx_init_float_type): Likewise.
2233 (rs6000_builtin_type): Likewise.
2234 (read_range_type): Likewise. Also, fix call to init_integer_type
2235 with erroneous length argument.
2236
2237 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2238 * d-lang.c (build_d_types): Likewise.
2239 * f-lang.c (build_fortran_types): Likewise.
2240 * go-lang.c (build_go_types): Likewise.
2241 * opencl-lang.c (build_opencl_types): Likewise.
2242 * jit.c (finalize_symtab): Likewise.
2243 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2244 (build_std_type_info_type): Likewise.
2245 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2246 update call to arch_flags_type.
2247
2248 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2249 arch_type.
2250 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2251 * windows-tdep.c (windows_get_tlb_type): Likewise.
2252
2253 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2254 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2255 * m32c-tdep.c (make_types): Likewise.
2256 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2257 (rl78_psw_type): Update call to arch_flags_type.
2258 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2259 * rx-tdep.c (rx_psw_type): Likewise.
2260 (rx_fpsw_type): Likewise.
2261 * sparc-tdep.c (sparc_psr_type): Likewise.
2262 (sparc_fsr_type): Likewise.
2263 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2264 (sparc64_ccr_type): Likewise.
2265 (sparc64_fsr_type): Likewise.
2266 (sparc64_fprs_type): Likewise.
2267
f21b4d5c
TT
22682017-09-27 Tom Tromey <tom@tromey.com>
2269
2270 * findcmd.c (find_command): Constify.
2271
643c2ffa
TT
22722017-09-27 Tom Tromey <tom@tromey.com>
2273
2274 * ada-tasks.c (task_command_1, task_command): Constify.
2275
510e5e56
TT
22762017-09-27 Tom Tromey <tom@tromey.com>
2277
2278 * symtab.c (maintenance_print_symbol_cache)
2279 (maintenance_flush_symbol_cache)
2280 (maintenance_print_symbol_cache_statistics): Constify.
2281
e503b191
TT
22822017-09-27 Tom Tromey <tom@tromey.com>
2283
2284 * inferior.c (detach_inferior_command, kill_inferior_command)
2285 (inferior_command): Constify.
2286
4e001312
TT
22872017-09-27 Tom Tromey <tom@tromey.com>
2288
2289 * regcache.c (regcache_print, maintenance_print_registers)
2290 (maintenance_print_raw_registers)
2291 (maintenance_print_cooked_registers)
2292 (maintenance_print_register_groups)
2293 (maintenance_print_remote_registers): Constify.
2294
77763700
TT
22952017-09-27 Tom Tromey <tom@tromey.com>
2296
2297 * printcmd.c (map_display_numbers, undisplay_command)
2298 (enable_disable_display_command, enable_display_command)
2299 (disable_display_command): Constify.
2300
4495129a
TT
23012017-09-27 Tom Tromey <tom@tromey.com>
2302
2303 * breakpoint.h (delete_command): Don't declare.
2304 * breakpoint.c (delete_command, enable_once_command)
2305 (enable_count_command, enable_delete_command, breakpoint_1)
2306 (maintenance_info_breakpoints, stopin_command, stopat_command)
2307 (delete_command, delete_trace_command, save_breakpoints)
2308 (save_breakpoints_command, save_tracepoints_command): Constify.
2309
3088cf40
TT
23102017-09-27 Tom Tromey <tom@tromey.com>
2311
2312 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2313 (skip_ws, extract_identifier, macro_define_command)
2314 (macro_undef_command, macro_list_command): Constify.
2315
69f476a3
TT
23162017-09-27 Tom Tromey <tom@tromey.com>
2317
2318 * infcmd.c (environment_info, set_environment_command)
2319 (unset_environment_command, path_info, info_proc_cmd_1)
2320 (info_proc_cmd_mappings, info_proc_cmd_stat)
2321 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2322 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2323
c4a3e68e
TT
23242017-09-27 Tom Tromey <tom@tromey.com>
2325
2326 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2327 Constify.
2328
c9d31bd6
TT
23292017-09-27 Tom Tromey <tom@tromey.com>
2330
2331 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2332
1f3f85eb
TT
23332017-09-27 Tom Tromey <tom@tromey.com>
2334
2335 * demangle.c (demangle_command): Constify.
2336
9c504b5d
TT
23372017-09-27 Tom Tromey <tom@tromey.com>
2338
2339 * progspace.c (maintenance_info_program_spaces_command):
2340 Constify.
2341
6663cf91
TT
23422017-09-27 Tom Tromey <tom@tromey.com>
2343
2344 * compile/compile.c (check_raw_argument, compile_file_command)
2345 (compile_code_command, compile_print_command): Constify.
2346
34e5fa26
TT
23472017-09-27 Tom Tromey <tom@tromey.com>
2348
2349 * reggroups.c (maintenance_print_reggroups): Constify.
2350
8384c356
TT
23512017-09-27 Tom Tromey <tom@tromey.com>
2352
2353 * dwarf2read.c (save_gdb_index_command): Constify.
2354
884beb0c
TT
23552017-09-27 Tom Tromey <tom@tromey.com>
2356
2357 * stap-probe.c (info_probes_stap_command): Constify.
2358
e0b2930c
TT
23592017-09-27 Tom Tromey <tom@tromey.com>
2360
2361 * fork-child.c (unset_exec_wrapper_command): Constify.
2362
f938677d
TT
23632017-09-27 Tom Tromey <tom@tromey.com>
2364
2365 * btrace.c (get_uint, get_context_size, no_chunk)
2366 (maint_btrace_packet_history_cmd)
2367 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2368 (maint_info_btrace_cmd): Constify.
2369
8949cb87
TT
23702017-09-27 Tom Tromey <tom@tromey.com>
2371
2372 * reverse.c (delete_bookmark_command): Constify.
2373
ac88e2de
TT
23742017-09-27 Tom Tromey <tom@tromey.com>
2375
2376 * remote.c (set_memory_packet_size)
2377 (set_memory_write_packet_size, show_memory_write_packet_size)
2378 (set_memory_read_packet_size, show_memory_read_packet_size)
2379 (compare_sections_command, packet_command, remote_put_command)
2380 (remote_get_command, remote_delete_command): Constify.
2381
bd4c9dfe
TT
23822017-09-27 Tom Tromey <tom@tromey.com>
2383
2384 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2385 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2386 (set_mipsfpu_auto_command): Constify.
2387
5e93d4c6
TT
23882017-09-27 Tom Tromey <tom@tromey.com>
2389
2390 * cli/cli-cmds.h (cd_command): Constify.
2391 * cli/cli-cmds.c (cd_command): Constify.
2392
fc41a75b
TT
23932017-09-27 Tom Tromey <tom@tromey.com>
2394
2395 * thread.c (thread_name_command, thread_find_command): Constify.
2396
67810076
TT
23972017-09-27 Tom Tromey <tom@tromey.com>
2398
2399 * probe.c (enable_probes_command, disable_probes_command):
2400 Constify.
2401
1d8b34a7
TT
24022017-09-27 Tom Tromey <tom@tromey.com>
2403
2404 * symfile.c (symbol_file_command): Constify.
2405 * gdbcore.h (deprecated_file_changed_hook): Constify.
2406 * exec.c (deprecated_file_changed_hook, exec_file_command)
2407 (file_command): Constify.
2408 * defs.h (symbol_file_command): Constify.
2409
442019e1
TT
24102017-09-27 Tom Tromey <tom@tromey.com>
2411
2412 * remote-fileio.c (set_system_call_allowed)
2413 (show_system_call_allowed): Constify.
2414
2983f7cb
TT
24152017-09-27 Tom Tromey <tom@tromey.com>
2416
2417 * tracepoint.c (delete_trace_variable_command)
2418 (tfind_end_command, tfind_start_command, tfind_pc_command)
2419 (tfind_tracepoint_command, tfind_line_command)
2420 (tfind_range_command, tfind_outside_command): Constify.
2421
4fd41b24
TT
24222017-09-27 Tom Tromey <tom@tromey.com>
2423
2424 * ax-gdb.c (maint_agent_printf_command, agent_command)
2425 (agent_eval_command): Constify.
2426
f2fc3015
TT
24272017-09-27 Tom Tromey <tom@tromey.com>
2428
2429 * tracepoint.c (info_scope_command): Constify.
2430 * python/python.c (gdbpy_decode_line): Constify.
2431 * python/py-breakpoint.c (bppy_init): Constify.
2432 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2433 * location.h: (new_linespec_location)
2434 (string_to_event_location_basic, string_to_event_location):
2435 Constify.
2436 * location.c (new_linespec_location)
2437 (string_to_event_location_basic, string_to_event_location):
2438 Constify.
2439 * linespec.h (decode_line_with_current_source)
2440 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2441 * linespec.c (linespec_lex_to_end)
2442 (decode_line_with_current_source)
2443 (decode_line_with_last_displayed): Constify.
2444 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2445 Constify.
2446 * cli/cli-cmds.c (edit_command, list_command): Constify.
2447 * breakpoint.h (until_break_command, watch_command_wrapper)
2448 (awatch_command_wrapper, rwatch_command_wrapper)
2449 (init_ada_exception_breakpoint): Constify.
2450 * breakpoint.c (break_command_1, dprintf_command)
2451 (break_range_command, watch_command_wrapper)
2452 (rwatch_command_wrapper, awatch_command_wrapper)
2453 (until_break_command, init_ada_exception_breakpoint)
2454 (strace_marker_create_sals_from_location, trace_command)
2455 (ftrace_command, strace_command, struct tracepoint): Constify.
2456 * ax-gdb.c (agent_command_1): Constify.
2457 * ada-lang.c (ada_exception_sal): Constify.
2458
8c2f95f4
TT
24592017-09-27 Tom Tromey <tom@tromey.com>
2460
2461 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2462 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2463 (get_context_size, no_chunk, get_insn_history_modifiers)
2464 (cmd_record_insn_history, get_call_history_modifiers)
2465 (cmd_record_call_history): Constify.
2466
a0d65762
TT
24672017-09-27 Tom Tromey <tom@tromey.com>
2468
2469 * source.c (show_substitute_path_command)
2470 (unset_substitute_path_command, set_substitute_path_command):
2471 Constify.
2472
58971144
TT
24732017-09-27 Tom Tromey <tom@tromey.com>
2474
2475 * typeprint.c (maintenance_print_type): Constify.
2476 * maint.c (maintenance_dump_me, maintenance_demangle)
2477 (maintenance_time_display, maintenance_info_sections)
2478 (maintenance_print_statistics, maintenance_deprecate)
2479 (maintenance_undeprecate): Constify.
2480 (maintenance_do_deprecate): Constify. Use std::string.
2481 (maintenance_selftest): Constify.
2482 * gdbtypes.h (maintenance_print_type): Constify.
2483
c482f52c
TT
24842017-09-27 Tom Tromey <tom@tromey.com>
2485
2486 * hppa-tdep.c (unwind_command): Constify.
2487
e100df1a
TT
24882017-09-27 Tom Tromey <tom@tromey.com>
2489
2490 * target-descriptions.c (unset_tdesc_filename_cmd)
2491 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2492 Constify.
2493
31d56ade
TT
24942017-09-27 Tom Tromey <tom@tromey.com>
2495
2496 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2497
b961da0b
TT
24982017-09-27 Tom Tromey <tom@tromey.com>
2499
2500 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2501
e2d8ae16
TT
25022017-09-27 Tom Tromey <tom@tromey.com>
2503
2504 * tui/tui-regs.c (tui_reg_command): Constify.
2505
863779b0
TT
25062017-09-27 Tom Tromey <tom@tromey.com>
2507
2508 * skip.c (skip_file_command, skip_function_command)
2509 (skip_enable_command, skip_disable_command, skip_delete_command):
2510 Constify.
2511
cdb34d4a
TT
25122017-09-27 Tom Tromey <tom@tromey.com>
2513
2514 * record-btrace.c (cmd_record_btrace_bts_start)
2515 (cmd_record_btrace_pt_start): Constify.
2516
e99c83e7
TT
25172017-09-27 Tom Tromey <tom@tromey.com>
2518
2519 * symmisc.c (maintenance_print_symbols)
2520 (maintenance_print_msymbols, maintenance_print_objfiles)
2521 (maintenance_info_symtabs, maintenance_check_symtabs)
2522 (maintenance_expand_symtabs, maintenance_info_line_tables):
2523 Constify.
2524
32faf971
TT
25252017-09-27 Tom Tromey <tom@tromey.com>
2526
2527 * top.c (new_ui_command): Constify.
2528
2cf311eb
TT
25292017-09-27 Tom Tromey <tom@tromey.com>
2530
2531 * symfile.c (add_symbol_file_command)
2532 (remove_symbol_file_command, list_overlays_command)
2533 (map_overlay_command, unmap_overlay_command)
2534 (overlay_auto_command, overlay_manual_command)
2535 (overlay_off_command, overlay_load_command): Constify.
2536
e6738699
TT
25372017-09-27 Tom Tromey <tom@tromey.com>
2538
2539 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2540 (info_spu_mailbox_command, info_spu_dma_command)
2541 (info_spu_proxydma_command): Constify.
2542
aa360cd5
TT
25432017-09-27 Tom Tromey <tom@tromey.com>
2544
2545 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2546
898241a5
TT
25472017-09-27 Tom Tromey <tom@tromey.com>
2548
2549 * cli/cli-script.c (user_defined_command): Constify.
2550
2d0ac106
TT
25512017-09-27 Tom Tromey <tom@tromey.com>
2552
2553 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2554 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2555 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2556 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2557 (dump_binary_value, append_binary_memory, append_binary_value):
2558 Constify.
2559 (struct dump_context) <func>: Constify.
2560 (add_dump_command): Update.
2561
dede02ce
TT
25622017-09-27 Tom Tromey <tom@tromey.com>
2563
2564 * cli/cli-cmds.c (show_version, show_configuration)
2565 (source_command, show_user): Constify.
2566
d3cb6b99
TT
25672017-09-27 Tom Tromey <tom@tromey.com>
2568
2569 * target.c (maintenance_print_target_stack): Constify.
2570
1970a12f
TT
25712017-09-27 Tom Tromey <tom@tromey.com>
2572
2573 * interps.c (interpreter_exec_cmd): Constify.
2574
41243651
TT
25752017-09-27 Tom Tromey <tom@tromey.com>
2576
2577 * record-full.c (cmd_record_full_restore): Constify.
2578
4465d9db
TT
25792017-09-27 Tom Tromey <tom@tromey.com>
2580
2581 * memattr.c (enable_mem_command, disable_mem_command)
2582 (delete_mem_command): Constify.
2583
ad25e423
TT
25842017-09-27 Tom Tromey <tom@tromey.com>
2585
2586 * value.c (show_convenience): Constify.
2587
d64097b1
TT
25882017-09-27 Tom Tromey <tom@tromey.com>
2589
2590 * gdbcore.h (core_file_command): Update.
2591 * corefile.c (core_file_command): Constify.
2592
4d4589ef
TT
25932017-09-27 Tom Tromey <tom@tromey.com>
2594
2595 * user-regs.c (maintenance_print_user_registers): Constify.
2596
32a7bf17
TT
25972017-09-27 Tom Tromey <tom@tromey.com>
2598
2599 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2600
4a475551
TT
26012017-09-27 Tom Tromey <tom@tromey.com>
2602
2603 * cp-support.c (first_component_command): Constify.
2604
990b9f9f
TT
26052017-09-27 Tom Tromey <tom@tromey.com>
2606
2607 * psymtab.c (maintenance_print_psymbols)
2608 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2609 Constify.
2610
c281872e
TT
26112017-09-27 Tom Tromey <tom@tromey.com>
2612
2613 * windows-tdep.c (display_tib): Constify.
2614
5b64bf74
TT
26152017-09-27 Tom Tromey <tom@tromey.com>
2616
2617 * linux-fork.c (delete_checkpoint_command)
2618 (detach_checkpoint_command): Constify.
2619
4ada038f
TT
26202017-09-27 Tom Tromey <tom@tromey.com>
2621
2622 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2623
57f5a81b
TT
26242017-09-27 Tom Tromey <tom@tromey.com>
2625
2626 * arc-tdep.c (dump_arc_instruction_command): Constify.
2627
b0a8e6c4
TT
26282017-09-27 Tom Tromey <tom@tromey.com>
2629
2630 * valprint.c (set_radix, show_radix): Constify.
2631
8d97dc1c
TT
26322017-09-27 Tom Tromey <tom@tromey.com>
2633
2634 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2635
eb7c454d
TT
26362017-09-27 Tom Tromey <tom@tromey.com>
2637
2638 * command.h (not_just_help_class_command): Update.
2639 * cli/cli-decode.h (not_just_help_class_command): Update.
2640 * cli/cli-decode.c (not_just_help_class_command): Constify.
2641
e4e33335
TT
26422017-09-27 Tom Tromey <tom@tromey.com>
2643
2644 * gdb_bfd.c (maintenance_info_bfds): Constify.
2645
0450cc4c
TT
26462017-09-27 Tom Tromey <tom@tromey.com>
2647
2648 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2649 overloads.
2650 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2651 (do_const_cfunc): New function.
2652 (cmd_cfunc_eq): New overload.
2653 (cli_user_command_p): Check do_const_cfunc.
2654 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2655 const_cfunc.
2656 * command.h (add_cmd): Add const overload and no-function
2657 overload.
2658 (set_cmd_cfunc): Add const overload.
2659 (cmd_const_cfunc_ftype): Declare.
2660 (cmd_cfunc_eq): Add const overload.
2661 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2662 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2663 overload.
2664
a9bbfbd8
TT
26652017-09-27 Tom Tromey <tom@tromey.com>
2666
2667 * macroexp.c (get_next_token_for_substitution): New function.
2668 (substitute_args): Call it. Check for __VA_OPT__.
2669
5230b05a
WT
26702017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2671 Pedro Alves <palves@redhat.com>
2672
2673 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2674 producer_is_icc_lt_14.
2675 (producer_is_icc_lt_14): New function.
2676 (check_producer): Add code for checking version of ICC.
2677 (producer_is_icc): Move to producer.c.
2678 (read_structure_type): Restrict ICC workaround to ICC<14.
2679 * producer.c: Include selftest.h.
2680 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2681 New functions.
2682 * producer.h (producer_is_icc): New declaration.
2683
b32b108a
WT
26842017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2685
2686 * Makefile.in (SFILES): Add producer.c.
2687 (COMMON_OBS): Add producer.o
2688 * amd64-tdep.c (producer.h): Add new include.
2689 * dwarf2read.c (producer.h): Add new include.
2690 * producer.c: New file.
2691 * producer.h: New file.
2692 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2693 producer.c.
2694 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2695 producer.h.
2696
5007d765
MK
26972017-09-26 Matthias Klose <doko@ubuntu.com>
2698
2699 * configure.ac: Search ncursesw before ncurses.
2700 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2701 * gdb_curses.h: Include <ncursesw/ncurses.h>
2702 * config.in, configure: Regenerate.
2703
281c4447
RO
27042017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2705
2706 PR gdb/22185
2707 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2708 obsolete.
2709 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2710 Remove i386sol2 support.
2711 * configure.nat <i386sol2>: Remove.
2712 <sol2-64>: Fold into ...
2713 <sol2>: ... this.
2714 Move common settings to default section.
2715 Add sol-thread.o.
2716 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2717 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2718 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2719 <i[34567]86-*-solaris*>: Remove.
2720 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2721
2722 * configure.ac: Remove wctype in libw check.
2723 (_MSE_INT_H): Don't define on Solaris 7-9.
2724 <solaris*>: Remove libthread_db.so.1 check.
2725 * configure: Regenerate.
2726 * config.in: Regenerate.
2727
2728 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2729 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2730 (gdb_ps_size_t): Remove.
2731 Use base types in users.
2732 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2733
2734 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2735
39b06c20
RO
27362017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2737
2738 PR build/22206
2739 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2740 (adi_is_addr_mapped): Likewise.
2741 (PSR_ICC): Don't redefine.
2742 (PSR_IMPL): Likewise.
2743
6c3e20f1
TT
27442017-09-25 Tom Tromey <tom@tromey.com>
2745
2746 * regcache.c (regcache::dump): Use string_printf.
2747
b292235f
TT
27482017-09-25 Tom Tromey <tom@tromey.com>
2749
2750 * regcache.c (class regcache_invalidator): New.
2751 (struct register_to_invalidate): Remove.
2752 (make_cleanup_regcache_invalidate): Remove.
2753 (regcache::raw_write): Use regcache_invalidator.
2754
9ac86b52
TT
27552017-09-25 Tom Tromey <tom@tromey.com>
2756
2757 * spu-tdep.c (spu2ppu_sniffer): Update.
2758 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2759 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2760 Remove.
2761 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2762 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2763 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2764 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2765 (frame_pop): Update.
2766
c0e383c6
TT
27672017-09-25 Tom Tromey <tom@tromey.com>
2768
2769 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
2770 * regcache.h (regcache_xfree): Don't declare.
2771 * regcache.c (regcache_xfree): Remove.
2772 (do_regcache_xfree): Use delete.
2773 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
2774 * linux-fork.c (free_fork): Use delete.
2775 (fork_save_infrun_state): Likewise.
2776 * jit.c (jit_dealloc_cache): Use delete.
2777 * infrun.c (discard_infcall_suspend_state): Use delete.
2778
791199cc
TT
27792017-09-25 Tom Tromey <tom@tromey.com>
2780
2781 * regcache.h (regcache_xmalloc): Don't declare.
2782 (regcache_raw_set_cached_value): Update comment.
2783 * regcache.c (regcache_xmalloc): Remove.
2784 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
2785 * jit.c (jit_frame_sniffer): Use new.
2786 * frame.c (frame_save_as_regcache): Use new.
2787
289e23aa
AA
27882017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2789
2790 * NEWS: Advertise support for guarded-storage registers on IBM z.
2791
1b63490c
AA
27922017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2793
2794 * s390-linux-nat.c (have_regset_gs): New static variable.
2795 (s390_linux_fetch_inferior_registers): Handle guarded-storage
2796 control block and guarded-storage broadcast control regsets.
2797 (s390_read_description): Detect whether the target has
2798 guarded-storage support, return appropriate tdesc.
2799 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
2800 (features/s390x-gs-linux64.c): Likewise.
2801 (struct gdbarch_tdep) <have_gs>: New field.
2802 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
2803 (s390_gsbc_regset): New variables.
2804 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
2805 and s390_gsbc_regset, if applicable.
2806 (s390_core_read_description): Check whether core file was from a
2807 target with guarded-storage support; include appropriate regsets.
2808 (s390_gdbarch_init): Add registers for guarded-storage support.
2809 (_initialize_s390_tdep): Initialize new target descriptions that
2810 include registers for guarded-storage support.
2811 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
2812 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
2813 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
2814 (S390_NUM_REGS): Adjust macro definition.
2815 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
2816 (tdesc_s390x_gs_linux64): New declarations.
2817
96235dc1
AA
28182017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2819
2820 * features/s390-gs-linux64.xml: New file.
2821 * features/s390-gs.xml: New file.
2822 * features/s390-gsbc.xml: New file.
2823 * features/s390x-gs-linux64.xml: New file.
2824 * features/Makefile (WHICH): Add s390-gs-linux64 and
2825 s390x-gs-linux64.
2826 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
2827 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
2828 * features/s390-gs-linux64.c: New generated file.
2829 * features/s390x-gs-linux64.c: New file.
2830 * regformats/s390-gs-linux64.dat: New file.
2831 * regformats/s390x-gs-linux64.dat: New file.
2832
b4a7c699
TT
28332017-09-23 Tom Tromey <tom@tromey.com>
2834
2835 * defs.h (make_cleanup_override_quit_handler): Don't declare.
2836
c2f97536
TT
28372017-09-22 Tom Tromey <tom@tromey.com>
2838
2839 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
2840 type to scoped_restore_tmpl.
2841 <scoped_input_handler>: Initialize m_quit_handler directly.
2842
43573013
SDJ
28432017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2844
2845 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
2846 (cd_command): Likewise. Free "current_directory" before
2847 assigning to it.
2848 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
2849 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
2850 * top.c (gdb_dirbuf): Remove global declaration.
2851 * top.h (gdb_dirbuf): Likewise.
2852
6ec2e0f5
SDJ
28532017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2854
2855 * gnulib/aclocal.m4: Regenerate.
2856 * gnulib/config.in: Regenerate.
2857 * gnulib/configure: Regenerate.
2858 * gnulib/import/Makefile.am: Regenerate.
2859 * gnulib/import/Makefile.in: Regenerate.
2860 * gnulib/import/assure.h: New file.
2861 * gnulib/import/at-func.c: Likewise
2862 * gnulib/import/chdir-long.c: New file.
2863 * gnulib/import/chdir-long.h: New file.
2864 * gnulib/import/cloexec.c: New file.
2865 * gnulib/import/cloexec.h: New file.
2866 * gnulib/import/close.c: New file.
2867 * gnulib/import/closedir.c: New file.
2868 * gnulib/import/dirent-private.h: New file.
2869 * gnulib/import/dup-safer.c: New file.
2870 * gnulib/import/dup.c: New file.
2871 * gnulib/import/dup2.c: New file.
2872 * gnulib/import/error.c: New file.
2873 * gnulib/import/error.h: New file.
2874 * gnulib/import/exitfail.c: New file.
2875 * gnulib/import/exitfail.h: New file.
2876 * gnulib/import/fchdir.c: New file.
2877 * gnulib/import/fcntl.c: New file.
2878 * gnulib/import/fcntl.in.h: New file.
2879 * gnulib/import/fd-hook.c: New file.
2880 * gnulib/import/fd-hook.h: New file.
2881 * gnulib/import/fd-safer.c: New file.
2882 * gnulib/import/fdopendir.c: New file.
2883 * gnulib/import/filename.h: New file.
2884 * gnulib/import/filenamecat-lgpl.c: New file.
2885 * gnulib/import/filenamecat.h: New file.
2886 * gnulib/import/fstat.c: New file.
2887 * gnulib/import/fstatat.c: New file.
2888 * gnulib/import/getcwd-lgpl.c: New file.
2889 * gnulib/import/getcwd.c: New file.
2890 * gnulib/import/getdtablesize.c: New file.
2891 * gnulib/import/getlogin_r.c: New file.
2892 * gnulib/import/getprogname.c: New file.
2893 * gnulib/import/getprogname.h: New file.
2894 * gnulib/import/gettext.h: New file.
2895 * gnulib/import/glob-libc.h: New file.
2896 * gnulib/import/glob.c: New file.
2897 * gnulib/import/glob.in.h: New file.
2898 * gnulib/import/intprops.h: New file.
2899 * gnulib/import/m4/chdir-long.m4: New file.
2900 * gnulib/import/m4/close.m4: New file.
2901 * gnulib/import/m4/closedir.m4: New file.
2902 * gnulib/import/m4/d-ino.m4: New file.
2903 * gnulib/import/m4/d-type.m4: New file.
2904 * gnulib/import/m4/dup.m4: New file.
2905 * gnulib/import/m4/dup2.m4: New file.
2906 * gnulib/import/m4/error.m4: New file.
2907 * gnulib/import/m4/fchdir.m4: New file.
2908 * gnulib/import/m4/fcntl.m4: New file.
2909 * gnulib/import/m4/fcntl_h.m4: New file.
2910 * gnulib/import/m4/fdopendir.m4: New file.
2911 * gnulib/import/m4/filenamecat.m4: New file.
2912 * gnulib/import/m4/fstat.m4: New file.
2913 * gnulib/import/m4/fstatat.m4: New file.
2914 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
2915 * gnulib/import/m4/getcwd-path-max.m4: New file.
2916 * gnulib/import/m4/getcwd.m4: New file.
2917 * gnulib/import/m4/getdtablesize.m4: New file.
2918 * gnulib/import/m4/getlogin_r.m4: New file.
2919 * gnulib/import/m4/getprogname.m4: New file.
2920 * gnulib/import/m4/glob.m4: New file.
2921 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2922 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2923 * gnulib/import/m4/mempcpy.m4: New file.
2924 * gnulib/import/m4/memrchr.m4: New file.
2925 * gnulib/import/m4/mode_t.m4: New file.
2926 * gnulib/import/m4/msvc-inval.m4: New file.
2927 * gnulib/import/m4/msvc-nothrow.m4: New file.
2928 * gnulib/import/m4/open.m4: New file.
2929 * gnulib/import/m4/openat.m4: New file.
2930 * gnulib/import/m4/opendir.m4: New file.
2931 * gnulib/import/m4/readdir.m4: New file.
2932 * gnulib/import/m4/realloc.m4: New file.
2933 * gnulib/import/m4/rewinddir.m4: New file.
2934 * gnulib/import/m4/save-cwd.m4: New file.
2935 * gnulib/import/m4/strdup.m4: New file.
2936 * gnulib/import/m4/strerror.m4: New file.
2937 * gnulib/import/m4/unistd-safer.m4: New file.
2938 * gnulib/import/mempcpy.c: New file.
2939 * gnulib/import/memrchr.c: New file.
2940 * gnulib/import/msvc-inval.c: New file.
2941 * gnulib/import/msvc-inval.h: New file.
2942 * gnulib/import/msvc-nothrow.c: New file.
2943 * gnulib/import/msvc-nothrow.h: New file.
2944 * gnulib/import/open.c: New file.
2945 * gnulib/import/openat-die.c: New file.
2946 * gnulib/import/openat-priv.h: New file.
2947 * gnulib/import/openat-proc.c: New file.
2948 * gnulib/import/openat.c: New file.
2949 * gnulib/import/openat.h: New file.
2950 * gnulib/import/opendir.c: New file.
2951 * gnulib/import/pipe-safer.c: New file.
2952 * gnulib/import/readdir.c: New file.
2953 * gnulib/import/realloc.c: New file.
2954 * gnulib/import/rewinddir.c: New file.
2955 * gnulib/import/save-cwd.c: New file.
2956 * gnulib/import/save-cwd.h: New file.
2957 * gnulib/import/strdup.c: New file.
2958 * gnulib/import/strerror-override.c: New file.
2959 * gnulib/import/strerror-override.h: New file.
2960 * gnulib/import/strerror.c: New file.
2961 * gnulib/import/unistd--.h: New file.
2962 * gnulib/import/unistd-safer.h: New file.
2963 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2964 "getcwd" and "glob".
2965 * ser-tcp.c: Undefine "close" before redefining it.
2966
432ae719
SM
29672017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2968
2969 * guile/scm-value.c (gdbscm_value_address): Initialize address,
2970 get rid of res_val.
2971
4fa7574e
RO
29722017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2973
2974 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
2975 <sol2,sparc>: Likewise.
2976 <sol2-64,i386>: Likewise.
2977
2978 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
2979 -Wdeprecated-declarations on *-*-solaris*.
2980 * configure: Regenerate.
2981
2982 * procfs.c: Include "nat/inferior.h".
2983 (procfs_info_proc): Fix typo.
2984
f6327dcb
KB
29852017-09-21 Kevin Buettner <kevinb@redhat.com>
2986
2987 * remote.c (vector): Include.
2988 (struct private_thread_info): Add field, thread_handle.
2989 (free_private_thread_info): Deallocate storage associated with
2990 thread handle.
2991 (get_private_info_thread): Initialize `thread_handle' field.
2992 (struct thread_item): Add field, thread_handle.
2993 (clear_threads_listing_context): Deallocate storage associated
2994 with thread handle.
2995 (start_thread): Add support for "handle" attribute.
2996 (thread_attributes): Add "handle".
2997 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
2998 field.
2999 (remote_update_thread_list): Update thread_handle.
3000 (remote_thread_handle_to_thread_info): New function.
3001 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3002
fbbe5337
KB
30032017-09-21 Kevin Buettner <kevinb@redhat.com>
3004
3005 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3006 function.
3007 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3008 * python/python-internal.h (thread_object_type): Declare.
3009
e04ee09e
KB
30102017-09-21 Kevin Buettner <kevinb@redhat.com>
3011
3012 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3013 (target_thread_handle_to_thread_info): Declare.
3014 * target.c (target_thread_handle_to_thread_info): New function.
3015 * target-delegates.c: Regenerate.
3016 * gdbthread.h (find_thread_by_handle): Declare.
3017 * thread.c (find_thread_by_handle): New function.
3018 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3019 function.
3020 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3021
1e5b66ed
SM
30222017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3023
3024 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3025
ebe48ba0
SM
30262017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3027
3028 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3029
0a0bf5dc
YQ
30302017-09-21 Yao Qi <yao.qi@linaro.org>
3031
3032 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3033 to gdb_target_obs.
3034
d1b0a7bf
TT
30352017-09-20 Tom Tromey <tom@tromey.com>
3036
3037 * breakpoint.c (struct counted_command_line): Remove.
3038 (breakpoint_commands): Update.
3039 (alloc_counted_command_line, incref_counted_command_line)
3040 (decref_counted_command_line, do_cleanup_counted_command_line)
3041 (make_cleanup_decref_counted_command_line): Remove.
3042 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3043 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3044 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3045 (save_breakpoints): Update.
3046 * breakpoint.h (counted_command_line): Now a typedef to
3047 shared_ptr.
3048 (struct breakpoint) <commands>: Now a counted_command_line.
3049 (struct bpstats) <command>: Likewise.
3050
48649e1b
TT
30512017-09-20 Tom Tromey <tom@tromey.com>
3052
3053 * breakpoint.c (struct commands_info, do_map_commands_command):
3054 Remove.
3055 (commands_command_1): Update.
3056 (iterate_over_related_breakpoints): Take a function_view.
3057 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3058 (delete_command): Update.
3059 (map_breakpoint_numbers): Take a function_view.
3060 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3061 (disable_command): Update.
3062 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3063 (enable_command): Update.
3064 (struct disp_data, do_enable_breakpoint_disp)
3065 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3066 (do_map_enable_delete_breakpoint): Remove.
3067 (enable_once_command, enable_count_command, enable_delete_command)
3068 (delete_trace_variable_command): Update.
3069
04afa70c
TT
30702017-09-20 Tom Tromey <tom@tromey.com>
3071
3072 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3073 (bpstat_clear): Use delete.
3074 (bpstats): New constructors.
3075 (bpstat_copy, bpstat_stop_status): Use new.
3076 (dprintf_after_condition_true): Update.
3077 * breakpoint.h (bpstats::bpstats): Add constructors.
3078 (bpstats::~bpstats): Add destructor.
3079
c83833f4
PA
30802017-09-20 Pedro Alves <palves@redhat.com>
3081
3082 * eval.c (make_params): Delete, refactored as ...
3083 (class fake_method): ... this new type's ctor.
3084 (fake_method::~fake_method): New.
3085 (evaluate_subexp_standard): Use 'fake_method'.
3086
223ffa71
TT
30872017-09-20 Tom Tromey <tom@tromey.com>
3088
3089 * windows-nat.c (get_windows_debug_event, windows_wait)
3090 (do_initial_windows_stuff, windows_attach): Update.
3091 * utils.c (vwarning, internal_vproblem): Update.
3092 (ui_unregister_input_event_handler_cleanup)
3093 (prepare_to_handle_input): Remove.
3094 (class scoped_input_handler): New.
3095 (defaulted_query, prompt_for_continue): Update.
3096 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3097 Update.
3098 * top.c (undo_terminal_modifications_before_exit): Update.
3099 * target/target.h (target_terminal_init, target_terminal_inferior)
3100 (target_terminal_ours): Don't declare.
3101 (class target_terminal): New.
3102 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3103 (target_terminal_ours_for_output)
3104 (make_cleanup_restore_target_terminal): Don't declare.
3105 (target_terminal_info): Remove.
3106 * target.c (enum terminal_state, terminal_state): Remove.
3107 (target_terminal::terminal_state): Define.
3108 (target_terminal::init): Rename from target_terminal_init.
3109 (target_terminal::inferior): Rename from
3110 target_terminal_inferior.
3111 (target_terminal::ours): Rename from target_terminal_ours.
3112 (target_terminal::ours_for_output): Rename from
3113 target_terminal_ours_for_output.
3114 (target_terminal::info): New method.
3115 (cleanup_restore_target_terminal)
3116 (make_cleanup_restore_target_terminal): Remove.
3117 * solib.c (handle_solib_event): Update.
3118 * remote.c (remote_serial_quit_handler): Update.
3119 (remote_terminal_inferior, remote_wait_as): Update.
3120 * record-full.c (record_full_wait_1): Update.
3121 * nto-procfs.c (procfs_create_inferior): Update.
3122 * nat/fork-inferior.c (startup_inferior): Update.
3123 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3124 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3125 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3126 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3127 (mi_breakpoint_created, mi_breakpoint_deleted)
3128 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3129 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3130 (mi_user_selected_context_changed, report_initial_inferior):
3131 Update.
3132 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3133 (linux_nat_terminal_inferior): Update.
3134 * infrun.c (follow_fork_inferior)
3135 (handle_vfork_child_exec_or_exit, do_target_resume)
3136 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3137 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3138 Update.
3139 * inflow.c (child_terminal_init, info_terminal_command): Update.
3140 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3141 (attach_command): Update.
3142 * infcall.c (call_thread_fsm_should_stop): Update.
3143 * gnu-nat.c (gnu_attach): Update.
3144 * extension.c (struct active_ext_lang_state)
3145 (restore_active_ext_lang): Update.
3146 * exceptions.c (print_flush): Update.
3147 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3148 (struct quit_handler_cleanup_data, restore_quit_handler)
3149 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3150 Remove.
3151 * cp-support.c (gdb_demangle): Update.
3152 * breakpoint.c (update_inserted_breakpoint_locations)
3153 (insert_breakpoint_locations, handle_jit_event)
3154 (disable_breakpoints_in_unloaded_shlib): Update.
3155 * annotate.c (annotate_breakpoints_invalid)
3156 (annotate_frames_invalid): Update.
3157
013af3fc
TT
31582017-09-20 Tom Tromey <tom@tromey.com>
3159
3160 * main.c (catch_command_errors): Rename from
3161 catch_command_errors_const.
3162 (captured_main_1): Update.
3163
06871ae8
PA
31642017-09-20 Pedro Alves <palves@redhat.com>
3165
3166 * cli/cli-cmds.c (list_command): Use print_sal_location.
3167 (print_sal_location): New function.
3168 (ambiguous_line_spec): Use print_sal_location.
3169 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3170 * symtab.c (find_function_start_sal): Likewise.
3171 * symtab.h (symtab_and_line::symbol): New field.
3172
e5f25bc5
PA
31732017-09-20 Pedro Alves <palves@redhat.com>
3174
3175 * linespec.c (minsym_found): Handle non-text minsyms.
3176 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3177
1b7fa39e
WT
31782017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3179
3180 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3181 backslash.
3182
37dd0825
WT
31832017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3184
3185 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3186 vmovups instead vmovaps.
3187 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3188
4e5a4f58
JB
31892017-09-19 John Baldwin <jhb@FreeBSD.org>
3190
3191 * NEWS (Changes since GDB 8.0): Add starti.
3192 * infcmd.c (enum run_break): New.
3193 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3194 case.
3195 (run_command): Use enum run_how.
3196 (start_command): Likewise.
3197 (starti_command): New function.
3198 (RUN_ARGS_HELP): New macro.
3199 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3200 commands. Add starti command.
3201
aa70c9f1
YQ
32022017-09-19 Yao Qi <yao.qi@linaro.org>
3203
3204 * Makefile.in (monitor.o): Remove the rule.
3205
d6541620
YQ
32062017-09-19 Yao Qi <yao.qi@linaro.org>
3207
3208 * annotate.h (struct annotate_arg_emitter): Use
3209 DISABLE_COPY_AND_ASSIGN.
3210 * common/refcounted-object.h (refcounted_object): Likewise.
3211 * completer.h (struct completion_result): Likewise.
3212 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3213 * filename-seen-cache.h (filename_seen_cache): Likewise.
3214 * gdbcore.h (thread_section_name): Likewise.
3215 * gdb_regex.h (compiled_regex): Likewise.
3216 * gdbthread.h (scoped_restore_current_thread): Likewise.
3217 * inferior.h (scoped_restore_current_inferior): Likewise.
3218 * jit.c (jit_reader): Likewise.
3219 * linespec.h (struct linespec_result): Likewise.
3220 * mi/mi-parse.h (struct mi_parse): Likewise.
3221 * nat/fork-inferior.c (execv_argv): Likewise.
3222 * progspace.h (scoped_restore_current_program_space): Likewise.
3223 * python/python-internal.h (class gdbpy_enter): Likewise.
3224 * regcache.h (regcache): Likewise.
3225 * target-descriptions.c (struct tdesc_reg): Likewise.
3226 (struct tdesc_type): Likewise.
3227 (struct tdesc_feature): Likewise.
3228 * ui-out.h (ui_out_emit_type): Likewise.
3229
0615127c
SM
32302017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3231
3232 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3233 label abort_expression.
3234
5e187554
SM
32352017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3236
3237 * common/buffer.c (buffer_xml_printf): Adjust.
3238 * common/xml-utils.c (xml_escape_text): Change return type to
3239 std::string, update code accordingly.
3240 * common/xml-utils.h (xml_escape_text): Change return type to
3241 std::string.
3242 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3243 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3244 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3245 Adjust.
3246
c3d7b541
SM
32472017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3248
3249 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3250 (SUBDIR_UNITTESTS_OBS): Add new object file.
3251 * unittests/xml-utils-selftests.c: New file.
3252
1526853e
SM
32532017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3254
3255 * common/selftest.h (selftest): New struct/interface.
3256 (register_test): Add name parameter, add new overload.
3257 (run_tests): Add filter parameter.
3258 (for_each_selftest_ftype): New typedef.
3259 (for_each_selftest): New declaration.
3260 * common/selftest.c (tests): Change type to
3261 map<string, unique_ptr<selftest>>.
3262 (simple_selftest): New struct.
3263 (register_test): New function.
3264 (register_test): Add name parameter and use it.
3265 (run_tests): Add filter parameter and use it. Add prints.
3266 Adjust to vector -> map change.
3267 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3268 registering selftests.
3269 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3270 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3271 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3272 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3273 * findvar.c (_initialize_findvar): Likewise.
3274 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3275 * maint.c (maintenance_selftest): Update call to run_tests.
3276 (maintenance_info_selftests): New function.
3277 (_initialize_maint_cmds): Register "maintenance info selftests"
3278 command. Update "maintenance selftest" doc.
3279 * regcache.c (_initialize_regcache): Add names when registering
3280 selftests.
3281 * rust-exp.y (_initialize_rust_exp): Likewise.
3282 * selftest-arch.c (gdbarch_selftest): New struct.
3283 (gdbarch_tests): Remove.
3284 (register_test_foreach_arch): Add name parameter. Call
3285 register_test.
3286 (tests_with_arch): Remove, move most content to
3287 gdbarch_selftest::operator().
3288 (_initialize_selftests_foreach_arch): Remove.
3289 * selftest-arch.h (register_test_foreach_arch): Add name
3290 parameter.
3291 (run_tests_with_arch): New declaration.
3292 * utils-selftests.c (_initialize_utils_selftests): Add names
3293 when registering selftests.
3294 * utils.c (_initialize_utils): Likewise.
3295 * unittests/array-view-selftests.c
3296 (_initialize_array_view_selftests): Likewise.
3297 * unittests/environ-selftests.c (_initialize_environ_selftests):
3298 Likewise.
3299 * unittests/function-view-selftests.c
3300 (_initialize_function_view_selftests): Likewise.
3301 * unittests/offset-type-selftests.c
3302 (_initialize_offset_type_selftests): Likewise.
3303 * unittests/optional-selftests.c
3304 (_initialize_optional_selftests): Likewise.
3305 * unittests/scoped_restore-selftests.c
3306 (_initialize_scoped_restore_selftests): Likewise.
3307 * NEWS: Document "maintenance selftest" and "maint info
3308 selftests".
3309
5846367a
SM
33102017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3311
3312 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3313 scoped_restore.
3314
bd77e8ff
SM
33152017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3316
3317 * mi/mi-main.c (mi_load_progress): Make uiout variable
3318 a unique_ptr.
3319
26a67918
PA
33202017-09-15 Pedro Alves <palves@redhat.com>
3321
3322 * compile/compile-c-types.c (convert_enum, convert_int)
3323 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3324
3f8a7804
SM
33252017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3326
3327 * dwarf2read.c (copy_string): Remove.
3328 (parse_macro_definition): Replace copy_string with savestring.
3329
8d200706
YQ
33302017-09-15 Yao Qi <yao.qi@linaro.org>
3331
3332 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3333 gdb_target_obs.
3334 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3335 Likewise.
3336 (i[34567]86-*-linux*): Likewise.
3337
d185219d
SM
33382017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3339
3340 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3341 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3342 <stack>: Change type to std::vector.
3343 <stack_len, stack_allocated>: Remove.
3344 <grow_stack>: Remove.
3345 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3346 (dwarf_expr_context::~dwarf_expr_context): Remove.
3347 (dwarf_expr_context::grow_stack): Remove.
3348 (dwarf_expr_context::push): Adjust.
3349 (dwarf_expr_context::pop): Adjust.
3350 (dwarf_expr_context::fetch): Adjust.
3351 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3352 (dwarf_expr_context::stack_empty_p): Adjust.
3353 (dwarf_expr_context::execute_stack_op): Adjust.
3354
eccd80d6
SM
33552017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3356
3357 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3358 return type to bool.
3359 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3360
69009882
SM
33612017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3362
3363 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3364 Change type to bool.
3365 (dwarf_stack_value) <in_stack_memory>: Likewise.
3366 (dwarf_expr_context) <push_address>: Change parameter type to
3367 bool.
3368 <fetch_in_stack_memory>: Change return type to bool.
3369 <push>: Change parameter type to bool.
3370 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3371 to bool.
3372 (dwarf_expr_context::push_address): Likewise.
3373 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3374 to bool.
3375 (dwarf_expr_context::execute_stack_op): Adjust.
3376 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3377
1e467161
SM
33782017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3379
3380 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3381 (struct dwarf_expr_context) <n_pieces>: Remove.
3382 <pieces>: Change type to std::vector.
3383 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3384 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3385 pieces.
3386 (dwarf_expr_context::add_piece): Adjust.
3387 * dwarf2loc.c (struct piece_closure): Initialize fields.
3388 <n_pieces>: Remove.
3389 <pieces>: Change type to std::vector.
3390 (allocate_piece_closure): Adjust, change parameter to
3391 std::vector rvalue and std::move it to piece_closure.
3392 (rw_pieced_value): Adjust.
3393 (check_pieced_synthetic_pointer): Adjust.
3394 (indirect_synthetic_pointer): Adjust.
3395 (coerce_pieced_ref): Adjust.
3396 (free_pieced_value_closure): Adjust. Use delete to free
3397 piece_closure.
3398 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3399 to allocate_piece_closure.
3400 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3401
0782db84
SM
34022017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3403
3404 * probe.h (probe_ops_cp): Remove typedef.
3405 (DEF_VEC_P (probe_ops_cp)): Remove.
3406 (all_probe_ops): Change type to std::vector.
3407 * probe.c (info_probes_for_ops): Adjust to vector change.
3408 (probe_linespec_to_ops): Likewise.
3409 (all_probe_ops): Change type to std::vector.
3410 (_initialize_probe): Adjust to vector change.
3411 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3412 * elfread.c (elf_get_probes): Likewise.
3413 * stap-probe.c (_initialize_stap_probe): Likewise.
3414
1eac6bea
SM
34152017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3416
3417 * probe.h (struct bound_probe): Define constructors.
3418 * probe.c (bound_probe_s): Remove typedef.
3419 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3420 (collect_probes): Change return type to std::vector, remove
3421 cleanup.
3422 (compare_probes): Return bool, change parameter type. Change
3423 semantic to "less than".
3424 (gen_ui_out_table_header_info): Change parameter to std::vector
3425 and update.
3426 (exists_probe_with_pops): Likewise.
3427 (info_probes_for_ops): Update to std::vector change.
3428 (enable_probes_command): Likewise.
3429 (disable_probes_command): Likewise.
3430
aaa63a31
SM
34312017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3432
3433 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3434 vec to std::vector.
3435 * probe.c (parse_probes_in_pspace): Update.
3436 (find_probes_in_objfile): Update.
3437 (find_probe_by_pc): Update.
3438 (collect_probes): Update.
3439 (probe_any_get_probes): Update.
3440 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3441 return type to reference to std::vector.
3442 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3443 std::vector and update.
3444 (dtrace_process_dof): Likewise.
3445 (dtrace_get_probes): Likewise.
3446 * elfread.c (elf_get_probes): Change return type to std::vector,
3447 store an std::vector in bfd_data.
3448 (probe_key_free): Update to std::vector.
3449 * stap-probe.c (handle_stap_probe): Change parameter to
3450 std::vector and update.
3451 (stap_get_probes): Likewise.
3452 * symfile-debug.c (debug_sym_get_probes): Change return type to
3453 std::vector and update.
3454
cb85b21b
TT
34552017-09-11 Tom Tromey <tom@tromey.com>
3456
3457 * breakpoint.c (program_breakpoint_here_p): Update.
3458 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3459 from make_show_memory_breakpoints_cleanup. Return a
3460 scoped_restore_tmpl<int>.
3461 (restore_show_memory_breakpoints): Remove.
3462 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3463 * mem-break.c (memory_validate_breakpoint): Update.
3464 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3465 (ia64_memory_remove_breakpoint): Update.
3466 (ia64_breakpoint_from_pc): Update.
3467 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3468 from make_show_memory_breakpoints_cleanup.
3469
8fbc99ef
TT
34702017-09-11 Tom Tromey <tom@tromey.com>
3471
3472 * d-namespace.c (d_lookup_symbol): Use std::string.
3473 (find_symbol_in_baseclass): Likewise.
3474
50feb4bd
TT
34752017-09-11 Tom Tromey <tom@tromey.com>
3476
3477 * ctf.c (ctf_start): Use std::string.
3478
c6dc63a1
TT
34792017-09-11 Tom Tromey <tom@tromey.com>
3480
3481 * ada-lang.c (is_known_support_routine): Update.
3482 (ada_unhandled_exception_name_addr_from_raise): Update.
3483 * guile/scm-frame.c (gdbscm_frame_name): Update.
3484 * python/py-frame.c (frapy_name): Update.
3485 (frapy_function): Update.
3486 * stack.h (find_frame_funname): Update.
3487 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3488 (print_frame): Update.
3489
d6b9b80f
TT
34902017-09-11 Tom Tromey <tom@tromey.com>
3491
3492 * findcmd.c (put_bits): Take a gdb::byte_vector.
3493 (parse_find_args): Return gdb::byte_vector. "args" now const.
3494 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3495 cleanups.
3496 (find_command): Update.
3497
a9921622
TT
34982017-09-11 Tom Tromey <tom@tromey.com>
3499
3500 * cli/cli-script.c (class scoped_restore_hook_in): New.
3501 (clear_hook_in_cleanup): Remove.
3502 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3503 scoped_restore_hook_in.
3504
be0d7abb
TT
35052017-09-11 Tom Tromey <tom@tromey.com>
3506
3507 * cli/cli-script.c (restore_interp): Remove.
3508 (read_command_lines): Use scoped_restore_interp.
3509 * interps.c (scoped_restore_interp::set_temp): Rename from
3510 interp_set_temp.
3511 * interps.h (class scoped_restore_interp): New.
3512 (interp_set_temp): Remove.
3513
00f675ff
TT
35142017-09-11 Tom Tromey <tom@tromey.com>
3515
3516 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3517 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3518 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3519 scoped_restore.
3520 (mi_cmd_break_insert_1): Update.
3521 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3522 scoped_restore.
3523
cb791d59
TT
35242017-09-11 Tom Tromey <tom@tromey.com>
3525
3526 * demangle.c (demangle_command): Update.
3527 * breakpoint.c (disable_command): Update.
3528 (enable_command): Update.
3529 (find_location_by_number): Make "number" const. Use
3530 get_number_trailer.
3531 * cli/cli-utils.c (extract_arg): Return std::string.
3532 * probe.c (parse_probe_linespec): Update. Change types.
3533 (collect_probes): Take string arguments.
3534 (parse_probe_linespec): Likewise.
3535 (info_probes_for_ops): Update.
3536 (enable_probes_command): Update.
3537 (disable_probes_command): Update.
3538 * break-catch-sig.c (catch_signal_split_args): Update.
3539 * mi/mi-parse.c (mi_parse): Update.
3540
2039bd9f
TT
35412017-09-11 Tom Tromey <tom@tromey.com>
3542
3543 * language.h (language_enum): Make argument const.
3544 * language.c (language_enum): Make argument const.
3545
f1735a53
TT
35462017-09-11 Tom Tromey <tom@tromey.com>
3547
3548 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3549 as function.
3550 (skip_to_space): Rename from skip_to_space_const.
3551 * common/common-utils.c (skip_to_space): New function.
3552 (skip_to_space): Rename from skip_to_space_const.
3553 * cli/cli-utils.h (get_number): Rename from get_number_const.
3554 (extract_arg): Rename from extract_arg_const.
3555 * cli/cli-utils.c (get_number): Rename from get_number_const.
3556 (extract_arg): Rename from extract_arg_const.
3557 (number_or_range_parser::get_number): Use ::get_number.
3558 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3559 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3560 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3561 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3562 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3563 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3564 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3565 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3566
7d221d74
TT
35672017-09-11 Tom Tromey <tom@tromey.com>
3568
3569 * python/python.c (do_start_initialization): Use
3570 py-event-types.def to initialize types.
3571 Define all object type structures.
3572 * python/python-internal.h: Don't declare event initialization
3573 functions.
3574 * python/py-threadevent.c (thread_event_object_type): Don't
3575 define.
3576 * python/py-stopevent.c (stop_event_object_type): Don't define.
3577 * python/py-signalevent.c (signal_event_object_type): Don't
3578 declare or define.
3579 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3580 (clear_objfiles_event_object_type): Don't declare or define.
3581 * python/py-infevents.c (inferior_call_pre_event_object_type)
3582 (inferior_call_post_event_object_type)
3583 (register_changed_event_object_type)
3584 (memory_changed_event_object_type): Don't declare or define.
3585 * python/py-inferior.c (new_thread_event_object_type)
3586 (new_inferior_event_object_type)
3587 (inferior_deleted_event_object_type): Don't declare or define.
3588 * python/py-exitedevent.c (exited_event_object_type): Don't
3589 declare or define.
3590 * python/py-evts.c (gdbpy_initialize_py_events): Use
3591 py-all-events.def.
3592 * python/py-events.h (thread_event_object_type): Don't declare.
3593 (events_object): Use py-all-events.def.
3594 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3595 py-event-types.def.
3596 * python/py-event-types.def: New file.
3597 * python/py-continueevent.c (create_continue_event_object): Don't
3598 declare or define.
3599 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3600 declare or define.
3601 * python/py-all-events.def: New file.
3602
35c61a1d
TT
36032017-09-11 Tom Tromey <tom@tromey.com>
3604
3605 * python/py-threadevent.c (create_thread_event_object): Return
3606 gdbpy_ref.
3607 * python/py-stopevent.h (create_stop_event_object)
3608 (create_breakpoint_event_object, create_signal_event_object):
3609 Update.
3610 * python/py-stopevent.c (create_stop_event_object): Return
3611 gdbpy_ref.
3612 (emit_stop_event): Update.
3613 * python/py-signalevent.c (create_signal_event_object): Return
3614 gdbpy_ref.
3615 * python/py-infevents.c (create_inferior_call_event_object):
3616 Update.
3617 * python/py-event.h (create_event_object)
3618 (create_thread_event_object): Update.
3619 * python/py-event.c (create_event_object): Return gdbpy_ref.
3620 * python/py-continueevent.c: Return gdbpy_ref.
3621 * python/py-bpevent.c (create_breakpoint_event_object): Return
3622 gdbpy_ref.
3623
7c96f8c1
TT
36242017-09-11 Tom Tromey <tom@tromey.com>
3625
3626 PR python/15622:
3627 * NEWS: Add entry.
3628 * python/python.c (do_start_initialization): Initialize new event
3629 types.
3630 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3631 (gdbpy_initialize_inferior_deleted_event)
3632 (gdbpy_initialize_new_thread_event): Declare.
3633 * python/py-threadevent.c (create_thread_event_object): Add option
3634 "thread" parameter.
3635 * python/py-inferior.c (new_thread_event_object_type)
3636 (new_inferior_event_object_type)
3637 (inferior_deleted_event_object_type): Declare.
3638 (python_new_inferior, python_inferior_deleted): New functions.
3639 (add_thread_object): Emit new_thread event.
3640 (gdbpy_initialize_inferior): Attach new functions to corresponding
3641 observers.
3642 (new_thread, new_inferior, inferior_deleted): Define new event
3643 types.
3644 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3645 registries.
3646 * python/py-events.h (events_object) <new_inferior,
3647 inferior_deleted, new_thread>: New fields.
3648 * python/py-event.h (create_thread_event_breakpoint): Add optional
3649 "thread" parameter.
3650
72542b8e
AB
36512017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3652
3653 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3654 check current_ui instead.
3655 (internal_vproblem): Likewise.
3656
0d64823e
SM
36572017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3658
3659 * thread.c (print_thread_info_1): Remove unnecessary calls to
3660 uiout->is_mi_like_p.
3661
eb1e02fd
TT
36622017-09-09 Tom Tromey <tom@tromey.com>
3663
3664 * namespace.h (add_using_directive): Update.
3665 * namespace.c (add_using_directive): Change type of excludes to
3666 std::vector.
3667 * dwarf2read.c (read_import_statement): Use std::vector.
3668 (read_namespace): Update.
3669 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3670
0fc21fd8
TT
36712017-09-09 Tom Tromey <tom@tromey.com>
3672
3673 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3674
49663d05
TT
36752017-09-09 Tom Tromey <tom@tromey.com>
3676
3677 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3678
0b868b60
TT
36792017-09-09 Tom Tromey <tom@tromey.com>
3680
3681 * stack.c (func_command): Use gdb::def_vector.
3682
c0470d48
TT
36832017-09-09 Tom Tromey <tom@tromey.com>
3684
3685 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3686 ui_out_emit_list, ui_out_emit_tuple.
3687 (mi_cmd_var_update): Likewise.
3688
ca5909c7
TT
36892017-09-09 Tom Tromey <tom@tromey.com>
3690
3691 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3692 ui_out_redirect_pop.
3693 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3694 ui_out_redirect_pop.
3695 * utils.c (do_ui_out_redirect_pop)
3696 (make_cleanup_ui_out_redirect_pop): Remove.
3697 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3698 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3699 * ui-out.h (ui_out_redirect_pop): New class.
3700
e6a2252a
TT
37012017-09-09 Tom Tromey <tom@tromey.com>
3702
3703 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3704 (list_available_thread_groups, mi_cmd_list_thread_groups)
3705 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3706 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3707 Likewise.
3708
393702cd
TT
37092017-09-09 Tom Tromey <tom@tromey.com>
3710
3711 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3712 ui_out_emit_tuple.
3713
76f9c9cf
TT
37142017-09-09 Tom Tromey <tom@tromey.com>
3715
3716 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3717 * stack.c (print_frame): Use ui_out_emit_tuple.
3718 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3719 (info_spu_mailbox_command, info_spu_dma_command)
3720 (info_spu_proxydma_command): Likewise.
3721 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3722 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3723 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3724 ui_out_emit_tuple.
3725 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3726
dc9fe180
TT
37272017-09-09 Tom Tromey <tom@tromey.com>
3728
3729 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3730 (class ui_out_emit_table): Update comment.
3731 * ui-out.c (do_cleanup_table_end)
3732 (make_cleanup_ui_out_table_begin_end): Remove.
3733 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3734 (info_spu_dma_cmdlist): Likewise.
3735 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3736 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3737 ui_out_emit_table.
3738
f8cc3da6
TT
37392017-09-09 Tom Tromey <tom@tromey.com>
3740
3741 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3742 ui_out_emit_list, gdb::optional.
3743
481695ed
JB
37442017-09-09 John Baldwin <jhb@FreeBSD.org>
3745
3746 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3747 prototype.
3748 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3749 prototype.
3750 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3751 prototype.
3752 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3753 * ada-exp.y: Remove _initialize_ada_exp prototype.
3754 * ada-lang.c: Remove _initialize_ada_language prototype.
3755 * ada-tasks.c: Remove _initialize_tasks prototype.
3756 * addrmap.c: Remove _initialize_addrmap prototype.
3757 * agent.c: Remove _initialize_agent prototype.
3758 * aix-thread.c: Remove _initialize_aix_thread prototype.
3759 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3760 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3761 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3762 prototype.
3763 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3764 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3765 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3766 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3767 prototype.
3768 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
3769 prototype.
3770 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
3771 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
3772 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
3773 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
3774 prototype.
3775 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
3776 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
3777 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
3778 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
3779 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3780 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
3781 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
3782 prototype.
3783 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
3784 prototype.
3785 * annotate.c: Remove _initialize_annotate prototype.
3786 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
3787 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
3788 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
3789 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
3790 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
3791 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
3792 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
3793 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
3794 prototype.
3795 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
3796 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
3797 * auto-load.c: Remove _initialize_auto_load prototype.
3798 * auxv.c: Remove _initialize_auxv prototype.
3799 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
3800 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
3801 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
3802 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
3803 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
3804 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
3805 prototype.
3806 * break-catch-throw.c: Remove _initialize_break_catch_throw
3807 prototype.
3808 * breakpoint.c: Remove _initialize_breakpoint prototype.
3809 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
3810 * btrace.c: Remove _initialize_btrace prototype.
3811 * charset.c: Remove _initialize_charset prototype.
3812 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
3813 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
3814 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
3815 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
3816 * cli/cli-script.c: Remove _initialize_cli_script prototype.
3817 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
3818 * coffread.c: Remove _initialize_coffread prototype.
3819 * compile/compile.c: Remove _initialize_compile prototype.
3820 * complaints.c: Remove _initialize_complaints prototype.
3821 * completer.c: Remove _initialize_completer prototype.
3822 * copying.awk: Remove _initialize_copying prototype.
3823 * copying.c: Regenerate.
3824 * core-regset.c: Remove _initialize_core_regset prototype.
3825 * corefile.c: Remove _initialize_core prototype.
3826 * corelow.c: Remove _initialize_corelow prototype.
3827 * cp-abi.c: Remove _initialize_cp_abi prototype.
3828 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
3829 * cp-support.c: Remove _initialize_cp_support prototype.
3830 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
3831 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
3832 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
3833 * ctf.c: Remove _initialize_ctf prototype.
3834 * d-lang.c: Remove _initialize_d_language prototype.
3835 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
3836 prototype.
3837 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
3838 * dbxread.c: Remove _initialize_dbxread prototype.
3839 * dcache.c: Remove _initialize_dcache prototype.
3840 * demangle.c: Remove _initialize_demangler prototype.
3841 * disasm-selftests.c: Remove _initialize_disasm_selftests
3842 prototype.
3843 * disasm.c: Remove _initialize_disasm prototype.
3844 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
3845 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
3846 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
3847 prototype.
3848 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
3849 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
3850 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
3851 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
3852 * elfread.c: Remove _initialize_elfread prototype.
3853 * exec.c: Remove _initialize_exec prototype.
3854 * extension.c: Remove _initialize_extension prototype.
3855 * f-lang.c: Remove _initialize_f_language prototype.
3856 * f-valprint.c: Remove _initialize_f_valprint prototype.
3857 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
3858 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
3859 * filesystem.c: Remove _initialize_filesystem prototype.
3860 * findcmd.c: Remove _initialize_mem_search prototype.
3861 * fork-child.c: Remove _initialize_fork_child prototype.
3862 * frame-base.c: Remove _initialize_frame_base prototype.
3863 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
3864 * frame.c: Remove _initialize_frame prototype.
3865 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
3866 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
3867 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
3868 * gcore.c: Remove _initialize_gcore prototype.
3869 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
3870 * gdbarch.c: Regenerate.
3871 * gdbarch.sh: Remove _initialize_gdbarch prototype.
3872 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
3873 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
3874 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
3875 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
3876 * go-lang.c: Remove _initialize_go_language prototype.
3877 * go32-nat.c: Remove _initialize_go32_nat prototype.
3878 * guile/guile.c: Remove _initialize_guile prototype.
3879 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
3880 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
3881 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
3882 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
3883 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
3884 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
3885 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
3886 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
3887 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
3888 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
3889 prototype.
3890 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
3891 prototype.
3892 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
3893 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
3894 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
3895 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
3896 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
3897 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
3898 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
3899 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
3900 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
3901 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
3902 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
3903 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
3904 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
3905 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3906 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
3907 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
3908 prototype.
3909 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
3910 prototype.
3911 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
3912 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
3913 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
3914 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
3915 * infcall.c: Remove _initialize_infcall prototype.
3916 * infcmd.c: Remove _initialize_infcmd prototype.
3917 * inferior.c: Remove _initialize_inferiors prototype.
3918 * inflow.c: Remove _initialize_inflow prototype.
3919 * infrun.c: Remove _initialize_infrun prototype.
3920 * interps.c: Remove _initialize_interpreter prototype.
3921 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
3922 * jit.c: Remove _initialize_jit prototype.
3923 * language.c: Remove _initialize_language prototype.
3924 * linux-fork.c: Remove _initialize_linux_fork prototype.
3925 * linux-nat.c: Remove _initialize_linux_nat prototype.
3926 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
3927 * linux-thread-db.c: Remove _initialize_thread_db prototype.
3928 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
3929 * m2-lang.c: Remove _initialize_m2_language prototype.
3930 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
3931 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
3932 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
3933 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
3934 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
3935 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3936 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3937 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
3938 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
3939 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
3940 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3941 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3942 * machoread.c: Remove _initialize_machoread prototype.
3943 * macrocmd.c: Remove _initialize_macrocmd prototype.
3944 * macroscope.c: Remove _initialize_macroscope prototype.
3945 * maint.c: Remove _initialize_maint_cmds prototype.
3946 * mdebugread.c: Remove _initialize_mdebugread prototype.
3947 * memattr.c: Remove _initialize_mem prototype.
3948 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
3949 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
3950 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
3951 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
3952 * mi/mi-main.c: Remove _initialize_mi_main prototype.
3953 * microblaze-linux-tdep.c: Remove
3954 _initialize_microblaze_linux_tdep prototype.
3955 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
3956 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
3957 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
3958 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
3959 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
3960 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
3961 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
3962 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
3963 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
3964 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
3965 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
3966 prototype.
3967 * mipsread.c: Remove _initialize_mipsread prototype.
3968 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
3969 prototype.
3970 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
3971 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
3972 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
3973 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
3974 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
3975 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
3976 prototype.
3977 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
3978 * nto-procfs.c: Remove _initialize_procfs prototype.
3979 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
3980 * objc-lang.c: Remove _initialize_objc_language prototype.
3981 * objfiles.c: Remove _initialize_objfiles prototype.
3982 * observer.c: Remove observer_test_first_notification_function,
3983 observer_test_second_notification_function,
3984 observer_test_third_notification_function, and
3985 _initialize_observer prototypes.
3986 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
3987 * osabi.c: Remove _initialize_gdb_osabi prototype.
3988 * osdata.c: Remove _initialize_osdata prototype.
3989 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
3990 * parse.c: Remove _initialize_parse prototype.
3991 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
3992 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
3993 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
3994 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
3995 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
3996 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
3997 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
3998 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
3999 * printcmd.c: Remove _initialize_printcmd prototype.
4000 * probe.c: Remove _initialize_probe prototype.
4001 * proc-api.c: Remove _initialize_proc_api prototype.
4002 * proc-events.c: Remove _initialize_proc_events prototype.
4003 * proc-service.c: Remove _initialize_proc_service prototype.
4004 * procfs.c: Remove _initialize_procfs prototype.
4005 * psymtab.c: Remove _initialize_psymtab prototype.
4006 * python/python.c: Remove _initialize_python prototype.
4007 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4008 * record-btrace.c: Remove _initialize_record_btrace prototype.
4009 * record-full.c: Remove _initialize_record_full prototype.
4010 * record.c: Remove _initialize_record prototype.
4011 * regcache.c: Remove _initialize_regcache prototype.
4012 * reggroups.c: Remove _initialize_reggroup prototype.
4013 * remote-notif.c: Remove _initialize_notif prototype.
4014 * remote-sim.c: Remove _initialize_remote_sim prototype.
4015 * remote.c: Remove _initialize_remote prototype.
4016 * reverse.c: Remove _initialize_reverse prototype.
4017 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4018 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4019 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4020 prototype.
4021 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4022 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4023 * rust-exp.y: Remove _initialize_rust_exp prototype.
4024 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4025 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4026 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4027 * score-tdep.c: Remove _initialize_score_tdep prototype.
4028 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4029 prototype.
4030 * ser-go32.c: Remove _initialize_ser_dos prototype.
4031 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4032 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4033 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4034 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4035 * serial.c: Remove _initialize_serial prototype.
4036 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4037 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4038 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4039 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4040 * skip.c: Remove _initialize_step_skip prototype.
4041 * sol-thread.c: Remove _initialize_sol_thread prototype.
4042 * solib-aix.c: Remove _initialize_solib_aix prototype.
4043 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4044 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4045 * solib-frv.c: Remove _initialize_frv_solib prototype.
4046 * solib-spu.c: Remove _initialize_spu_solib prototype.
4047 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4048 * solib-target.c: Remove _initialize_solib_target prototype.
4049 * solib.c: Remove _initialize_solib prototype.
4050 * source.c: Remove _initialize_source prototype.
4051 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4052 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4053 prototype.
4054 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4055 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4056 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4057 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4058 prototype.
4059 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4060 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4061 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4062 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4063 prototype.
4064 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4065 prototype.
4066 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4067 prototype.
4068 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4069 prototype.
4070 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4071 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4072 prototype.
4073 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4074 prototype.
4075 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4076 prototype.
4077 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4078 prototype.
4079 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4080 prototype.
4081 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4082 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4083 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4084 * stabsread.c: Remove _initialize_stabsread prototype.
4085 * stack.c: Remove _initialize_stack prototype.
4086 * stap-probe.c: Remove _initialize_stap_probe prototype.
4087 * std-regs.c: Remove _initialize_frame_reg prototype.
4088 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4089 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4090 * symfile.c: Remove _initialize_symfile prototype.
4091 * symmisc.c: Remove _initialize_symmisc prototype.
4092 * symtab.c: Remove _initialize_symtab prototype.
4093 * target-dcache.c: Remove _initialize_target_dcache prototype.
4094 * target-descriptions.c: Remove _initialize_target_descriptions
4095 prototype.
4096 * thread.c: Remove _initialize_thread prototype.
4097 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4098 prototype.
4099 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4100 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4101 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4102 prototype.
4103 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4104 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4105 * tracefile.c: Remove _initialize_tracefile prototype.
4106 * tracepoint.c: Remove _initialize_tracepoint prototype.
4107 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4108 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4109 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4110 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4111 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4112 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4113 * tui/tui.c: Remove _initialize_tui prototype.
4114 * typeprint.c: Remove _initialize_typeprint prototype.
4115 * user-regs.c: Remove _initialize_user_regs prototype.
4116 * utils.c: Remove _initialize_utils prototype.
4117 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4118 * valarith.c: Remove _initialize_valarith prototype.
4119 * valops.c: Remove _initialize_valops prototype.
4120 * valprint.c: Remove _initialize_valprint prototype.
4121 * value.c: Remove _initialize_values prototype.
4122 * varobj.c: Remove _initialize_varobj prototype.
4123 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4124 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4125 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4126 * windows-nat.c: Remove _initialize_windows_nat,
4127 _initialize_check_for_gdb_ini, and _initialize_loadable
4128 prototypes.
4129 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4130 * xcoffread.c: Remove _initialize_xcoffread prototype.
4131 * xml-support.c: Remove _initialize_xml_support prototype.
4132 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4133 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4134 prototype.
4135 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4136 prototype.
4137 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4138
a611b5cb
KS
41392017-09-08 Keith Seitz <keiths@redhat.com>
4140
4141 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4142 field.
4143
469412dd
CW
41442017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4145
4146 * f-valprint.c (f_val_print): Remove check for one byte
4147 sized integers. Remove printing of character type.
4148
a5ad232b
FP
41492017-09-08 Frank Penczek <frank.penczek@intel.com>
4150 Christoph Weinmann <christoph.t.weinmann@intel.com>
4151 Bernhard Heckel <bernhard.heckel@intel.com>
4152
4153 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4154 to maintain proper indentation when printing pointers/refs.
4155
e5014227
JB
41562017-09-07 Joel Brobecker <brobecker@adacore.com>
4157
4158 GDB 8.0.1 released.
4159
63c99141
JB
41602017-09-07 Joel Brobecker <brobecker@adacore.com>
4161
4162 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4163
69c1e056
TT
41642017-09-05 Tom Tromey <tom@tromey.com>
4165
4166 * parse.c (funcall_chain): Now a std::vector.
4167 (start_arglist, end_arglist): Simplify.
4168 (free_funcalls): Remove.
4169 (parse_exp_in_context_1): Remove cleanup.
4170
fef704bf
TT
41712017-09-05 Tom Tromey <tom@tromey.com>
4172
4173 * go-exp.y (go_parse): Don't create a cleanup.
4174
5613c585
TT
41752017-09-05 Tom Tromey <tom@tromey.com>
4176
4177 * d-exp.y (PrimaryExpression): Use std::string.
4178 (d_parse): Don't create a cleanup.
4179
eae49211
TT
41802017-09-05 Tom Tromey <tom@tromey.com>
4181
4182 * utils.c (do_clear_parser_state): Remove.
4183 (make_cleanup_clear_parser_state): Remove.
4184 * p-exp.y (pascal_parse): Use scoped_restore.
4185 * m2-exp.y (m2_parse): Use scoped_restore.
4186 * f-exp.y (f_parse): Use scoped_restore.
4187 * d-exp.y (d_parse): Use scoped_restore.
4188 * c-exp.y (c_parse): Use scoped_restore.
4189 * ada-exp.y (ada_parse): Use scoped_restore.
4190 * utils.h (make_cleanup_clear_parser_state): Remove.
4191
73b9be8b
KS
41922017-09-06 Keith Seitz <keiths@redhat.com>
4193
4194 * dwarf2read.c (dw2_linkage_name_attr): New function.
4195 (dw2_linkage_name): New function.
4196 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4197 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4198 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4199
a102602b
KR
42002017-09-06 Kamil Rytarowski <n54@gmx.com>
4201
4202 * config/djgpp/djconfig.sh: Correct shell portability issue.
4203
28ad437d
KR
42042017-09-06 Kamil Rytarowski <n54@gmx.com>
4205
4206 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4207
351787dd
JB
42082017-09-06 John Baldwin <jhb@FreeBSD.org>
4209
4210 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4211 * NEWS: Mention new FreeBSD/mips native configuration.
4212 * configure.host: Add aarch64*-*-freebsd*.
4213 * configure.nat: Likewise.
4214 * aarch64-fbsd-nat.c: New file.
4215
c0f84956
JB
42162017-09-06 John Baldwin <jhb@FreeBSD.org>
4217
4218 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4219 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4220 * NEWS: Mention new FreeBSD/aarch64 target.
4221 * configure.tgt: Add aarch64*-*-freebsd*.
4222 * aarch64-fbsd-tdep.c: New file.
4223 * aarch64-fbsd-tdep.h: New file.
4224
7610297a
KR
42252017-09-06 Kamil Rytarowski <n54@gmx.com>
4226
4227 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4228
fbd1b771
JK
42292017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4230
4231 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4232 of TLS symbols.
4233
5ca79eae
PW
42342017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4235
4236 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4237 call.
4238
bf93d7ba
SM
42392017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4240
4241 * infrun.c (follow_exec): Call add_thread after
4242 target_find_description.
4243
1bb7c059
SM
42442017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4245
4246 * infrun.c (handle_inferior_event_1): When exec'ing, read
4247 stop_pc after follow_exec.
4248
fc809827
SM
42492017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4250
4251 * remote.c (process_g_packet): Update error message.
4252
d2fcdd85
YQ
42532017-09-05 Yao Qi <yao.qi@linaro.org>
4254
4255 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4256 targets.
4257
e69570ee
PA
42582017-09-05 Pedro Alves <palves@redhat.com>
4259
4260 * eval.c (eval_call, evaluate_funcall): New functions, factored
4261 out from ...
4262 (evaluate_subexp_standard): ... this.
4263
22916b07
YQ
42642017-09-05 Yao Qi <yao.qi@linaro.org>
4265
4266 * amd64-tdep.c (amd64_target_description): Create target
4267 descriptions.
4268 (_initialize_amd64_tdep): Don't call functions
4269 initialize_tdesc_amd64_*. Add self tests.
4270 * arch/amd64.c (amd64_create_target_description): Add parameter
4271 is_linux. Call set_tdesc_osabi if is_linux is true.
4272 * arch/amd64.h (amd64_create_target_description): Update the
4273 declaration.
4274 * arch/i386.c (i386_create_target_description): Add parameter
4275 is_linux. Call set_tdesc_osabi if is_linux is true.
4276 * arch/i386.h (i386_create_target_description): Update
4277 declaration.
4278 * configure.tgt: Add i386.o to gdb_target_obs.
4279 * features/Makefile (XMLTOC): Remove i386/*.xml.
4280 * features/i386/amd64-avx-avx512.c: Remove.
4281 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4282 * features/i386/amd64-avx-mpx.c: Remove.
4283 * features/i386/amd64-avx.c: Remove.
4284 * features/i386/amd64-mpx.c: Remove.
4285 * features/i386/amd64.c: Remove.
4286 * features/i386/i386-avx-avx512.c: Remove.
4287 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4288 * features/i386/i386-avx-mpx.c: Remove.
4289 * features/i386/i386-avx.c: Remove.
4290 * features/i386/i386-mmx.c: Remove.
4291 * features/i386/i386-mpx.c: Remove.
4292 * features/i386/i386.c: Remove.
4293 * i386-tdep.c: Don't include features/i386/i386*.c., include
4294 target-descriptions.h and arch/i386.h.
4295 (i386_target_description): Create target descriptions.
4296 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4297 functions. Do self tests.
4298
0854b7b1
YQ
42992017-09-05 Yao Qi <yao.qi@linaro.org>
4300
4301 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4302 * features/i386/amd64-avx-avx512-linux.c: Removed.
4303 * features/i386/amd64-avx-linux.c: Removed.
4304 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4305 * features/i386/amd64-avx-mpx-linux.c: Removed.
4306 * features/i386/amd64-linux.c: Removed.
4307 * features/i386/amd64-mpx-linux.c: Removed.
4308 * features/i386/x32-avx-avx512-linux.c: Removed.
4309 * features/i386/x32-avx-linux.c: Removed.
4310 * features/i386/x32-linux.c: Removed.
4311
b4570e4b
YQ
43122017-09-05 Yao Qi <yao.qi@linaro.org>
4313
4314 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4315 features/i386/*.c.
4316 (amd64_linux_read_description): Call
4317 amd64_create_target_description.
4318 * arch/amd64.c: New file.
4319 * arch/amd64.h: New file.
4320 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4321 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4322
6c73f67f
YQ
43232017-09-05 Yao Qi <yao.qi@linaro.org>
4324
4325 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4326 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4327 (amd64_linux_read_description): Create target descriptions.
4328 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4329 functions. Add unit tests.
4330 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4331 x32-core.xml.
4332 * features/i386/64bit-avx.c: Generated.
4333 * features/i386/64bit-avx512.c: Generated.
4334 * features/i386/64bit-core.c: Generated.
4335 * features/i386/64bit-linux.c: Generated.
4336 * features/i386/64bit-mpx.c: Generated.
4337 * features/i386/64bit-pkeys.c: Generated.
4338 * features/i386/64bit-segments.c: Generated.
4339 * features/i386/64bit-sse.c: Generated.
4340 * features/i386/x32-core.c: Generated.
4341 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4342 c files for amd64-linux and x32-linux.
4343
9d3d478b
YQ
43442017-09-05 Yao Qi <yao.qi@linaro.org>
4345
4346 * amd64-linux-tdep.c (amd64_linux_read_description): New
4347 function.
4348 (amd64_linux_core_read_description): Call
4349 amd64_linux_read_description.
4350 (amd64_linux_init_abi): Likewise.
4351 (amd64_x32_linux_init_abi): Likewise.
4352 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4353 * x86-linux-nat.c (x86_linux_read_description): Call
4354 amd64_linux_read_description.
4355
b9f1d50f
YQ
43562017-09-05 Yao Qi <yao.qi@linaro.org>
4357
4358 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4359 comments.
4360
188c9e6d
YQ
43612017-09-05 Yao Qi <yao.qi@linaro.org>
4362
4363 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4364 * features/i386/i386-avx-avx512-linux.c: Remove.
4365 * features/i386/i386-avx-linux.c: Remove.
4366 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4367 * features/i386/i386-avx-mpx-linux.c: Remove.
4368 * features/i386/i386-linux.c: Remove.
4369 * features/i386/i386-mmx-linux.c: Remove.
4370 * features/i386/i386-mpx-linux.c: Remove.
4371
5f035c07
YQ
43722017-09-05 Yao Qi <yao.qi@linaro.org>
4373
4374 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4375 (SFILES): Add arch/i386.c.
4376 (HFILES_NO_SRCDIR): Add arch/i386.h.
4377 * arch/i386.c: New file.
4378 * arch/i386.h: New file.
4379 * arch/tdesc.h (allocate_target_description): Declare.
4380 (set_tdesc_architecture): Declare.
4381 (set_tdesc_osabi): Declare.
4382 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4383 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4384 include arch/i386.h.
4385 (i386_linux_read_description): Remove code and call
4386 i386_create_target_description.
4387 (set_tdesc_architecture): New function.
4388 (set_tdesc_osabi): New function.
4389 * target-descriptions.h (allocate_target_description): Remove.
4390
0abe8a89
YQ
43912017-09-05 Yao Qi <yao.qi@linaro.org>
4392
4393 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4394 * target-descriptions.c (tdesc_create_feature): Likewise, and
4395 adjust code.
4396 * features/i386/32bit-avx.c: Re-generated.
4397 * features/i386/32bit-avx512.c: Re-generated.
4398 * features/i386/32bit-core.c: Re-generated.
4399 * features/i386/32bit-linux.c: Re-generated.
4400 * features/i386/32bit-mpx.c: Re-generated.
4401 * features/i386/32bit-pkeys.c: Re-generated.
4402 * features/i386/32bit-sse.c: Re-generated.
4403
0a188386
YQ
44042017-09-05 Yao Qi <yao.qi@linaro.org>
4405
4406 * regformats/regdef.h (struct reg): Override operator == and !=.
4407
f49ff000
YQ
44082017-09-05 Yao Qi <yao.qi@linaro.org>
4409
4410 * arch/tdesc.h: New file.
4411 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4412 * target-descriptions.c: Update comments.
4413 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4414 declarations.
4415 * features/i386/32bit-avx.c: Re-generated.
4416 * features/i386/32bit-avx512.c: Re-generated.
4417 * features/i386/32bit-core.c: Re-generated.
4418 * features/i386/32bit-linux.c: Re-generated.
4419 * features/i386/32bit-mpx.c: Re-generated.
4420 * features/i386/32bit-pkeys.c: Re-generated.
4421 * features/i386/32bit-sse.c: Re-generated.
4422
f7000548
YQ
44232017-09-05 Yao Qi <yao.qi@linaro.org>
4424
4425 * regformats/regdat.sh: Update generated code.
4426
c9a5e2a5
YQ
44272017-09-05 Yao Qi <yao.qi@linaro.org>
4428
4429 * regformats/regdat.sh: Adjust code order.
4430
d6b687ac
SM
44312017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4432
4433 * expprint.c (dump_subexp_body_standard): Use constant format
4434 string in fprintf_filtered call.
4435
a379bfd0
JB
44362017-09-04 John Baldwin <jhb@FreeBSD.org>
4437
4438 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4439 NetBSD/i386.
4440 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4441
f7efc967
JB
44422017-09-04 John Baldwin <jhb@FreeBSD.org>
4443
4444 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4445
c49fbc6c
JB
44462017-09-04 John Baldwin <jhb@FreeBSD.org>
4447
4448 * bsd-kvm.o: Define _KMEMUSER.
4449 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4450 * configure: Regenerate.
4451
26562e73
JB
44522017-09-04 John Baldwin <jhb@FreeBSD.org>
4453
4454 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4455 * i386-fbsd-nat.c: Likewise.
4456
31cf1487
JB
44572017-09-04 John Baldwin <jhb@FreeBSD.org>
4458
4459 * unittests/array-view-selftests.c: Add include of <array>.
4460
5b9f8a7c
JB
44612017-09-04 John Baldwin <jhb@FreeBSD.org>
4462
4463 * spu-tdep.c (flush_ea_cache): Add missing argument to
4464 call_function_by_hand.
4465
d69cf9b2
PA
44662017-09-04 Pedro Alves <palves@redhat.com>
4467
4468 * NEWS (Safer support for debugging with no debug info): New.
4469
3693fdb3
PA
44702017-09-04 Pedro Alves <palves@redhat.com>
4471
4472 * c-exp.y (function_method, function_method_void): Add current
4473 instance flags to TYPE_INSTANCE.
4474 * dwarf2read.c (check_modifier): New.
4475 (compute_delayed_physnames): Assert that only C++ adds delayed
4476 physnames. Mark fn_fields as const/volatile depending on
4477 physname.
4478 * eval.c (make_params): New type_instance_flags parameter. Use
4479 it as the new type's instance flags.
4480 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4481 flags element and pass it to make_params.
4482 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4483 instance flags element.
4484 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4485 * gdbtypes.h: Include "enum-flags.h".
4486 (type_instance_flags): New enum-flags type.
4487 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4488 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4489 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4490 (follow_type_instance_flags): New function.
4491 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4492 * parser-defs.h (follow_type_instance_flags): Declare.
4493 * valops.c (value_struct_elt_for_reference): const/volatile must
4494 match too.
4495
e68cb8e0
PA
44962017-09-04 Pedro Alves <palves@redhat.com>
4497
4498 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4499 function/method scopes; lookup the nested name as a function local
4500 static variable.
4501
858be34c
PA
45022017-09-04 Pedro Alves <palves@redhat.com>
4503
4504 (%type <voidval>): Add function_method.
4505 * c-exp.y (exp): New production for calls with no arguments.
4506 (function_method, function_method_void_or_typelist): New
4507 productions.
4508 (exp): New production for "method()::static_var".
4509 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4510 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4511 Handle OP_FUNC_STATIC_VAR.
4512 * parse.c (operator_length_standard):
4513 Handle OP_FUNC_STATIC_VAR.
4514
dd5901a6
PA
45152017-09-04 Pedro Alves <palves@redhat.com>
4516
4517 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4518 handling.
4519 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4520 Ditto.
4521 * parse.c (operator_length_standard, operator_check_standard):
4522 Ditto.
4523 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4524
46a4882b
PA
45252017-09-04 Pedro Alves <palves@redhat.com>
4526
4527 * ax-gdb.c: Include "typeprint.h".
4528 (gen_expr_for_cast): New function.
4529 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4530 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4531 type is unknown.
4532 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4533 nodebug_data_symbol.
4534 * eval.c: Include "typeprint.h".
4535 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4536 Error out if symbol has unknown type.
4537 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4538 evaluate_subexp_for_cast.
4539 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4540 OP_VAR_MSYM_VALUE.
4541 (evaluate_subexp_for_cast): New function.
4542 * gdbtypes.c (init_nodebug_var_type): New function.
4543 (objfile_type): Use it to initialize types of variables with no
4544 debug info.
4545 * typeprint.c (error_unknown_type): New.
4546 * typeprint.h (error_unknown_type): New declaration.
4547 * compile/compile-c-types.c (convert_type_basic): Handle
4548 TYPE_CODE_ERROR; warn and fallback to int for variables with
4549 unknown type.
4550
fe13dfec
PA
45512017-09-04 Pedro Alves <palves@redhat.com>
4552
4553 * eval.c (evaluate_var_value): New function, factored out from ...
4554 (evaluate_subexp_standard): ... here.
4555
d008ee21
PA
45562017-09-04 Pedro Alves <palves@redhat.com>
4557
4558 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4559 Remove useless assignments to 'op'.
4560
827d0c51
PA
45612017-09-04 Pedro Alves <palves@redhat.com>
4562
4563 * eval.c (eval_skip_value): New function.
4564 (evaluate_subexp_standard): Use it.
4565
2c5a2be1
PA
45662017-09-04 Pedro Alves <palves@redhat.com>
4567
4568 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4569 function name from symbol/minsym and pass it to
4570 error_call_unknown_return_type.
4571
74ea4be4
PA
45722017-09-04 Pedro Alves <palves@redhat.com>
4573
4574 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4575 * ax-gdb.c (gen_msym_var_ref): New function.
4576 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4577 * eval.c (evaluate_var_msym_value): New function.
4578 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4579 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4580 to call_function_by_hand.
4581 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4582 Handle OP_VAR_MSYM_VALUE.
4583 (union exp_element) <msymbol>: New field.
4584 * minsyms.h (struct type): Forward declare.
4585 (find_minsym_type_and_address): Declare.
4586 * parse.c (write_exp_elt_msym): New function.
4587 (write_exp_msymbol): Delete, refactored as ...
4588 (find_minsym_type_and_address): ... this new function.
4589 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4590 (operator_length_standard, operator_check_standard): Handle
4591 OP_VAR_MSYM_VALUE.
4592 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4593
7022349d
PA
45942017-09-04 Pedro Alves <palves@redhat.com>
4595
4596 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4597 TYPE_GNU_IFUNC specially here. Throw error if return type is
4598 unknown.
4599 * ada-typeprint.c (print_func_type): Handle functions with unknown
4600 return type.
4601 * c-typeprint.c (c_type_print_base): Handle functions and methods
4602 with unknown return type.
4603 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4604 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4605 * compile/compile-c-types.c: Include "objfiles.h".
4606 (convert_func): For functions with unknown return type, warn and
4607 default to int.
4608 * compile/compile-object-run.c (compile_object_run): Adjust call
4609 to call_function_by_hand_dummy.
4610 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4611 call_function_by_hand.
4612 * eval.c (evaluate_subexp_standard): Adjust calls to
4613 call_function_by_hand. Handle functions and methods with unknown
4614 return type. Pass expect_type to call_function_by_hand.
4615 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4616 return type.
4617 * gcore.c (call_target_sbrk): Adjust call to
4618 call_function_by_hand.
4619 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4620 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4621 an integer address type instead of nodebug.
4622 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4623 call_function_by_hand.
4624 * infcall.c (error_call_unknown_return_type): New function.
4625 (call_function_by_hand): New "default_return_type" parameter.
4626 Pass it down.
4627 (call_function_by_hand_dummy): New "default_return_type"
4628 parameter. Use it instead of defaulting to int. If there's no
4629 default and the return type is unknown, throw an error. If
4630 there's a default return type, and the called function has no
4631 debug info, then assume the function is prototyped.
4632 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4633 New "default_return_type" parameter.
4634 (error_call_unknown_return_type): New declaration.
4635 * linux-fork.c (call_lseek): Cast return type of lseek.
4636 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4637 call_function_by_hand.
4638 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4639 calls to call_function_by_hand.
4640 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4641 return type.
4642 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4643 (value_nsstring, print_object_command): Adjust calls to
4644 call_function_by_hand.
4645 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4646 functions with unknown return type.
4647 (pascal_type_print_func_varspec_suffix): New function.
4648 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4649 TYPE_CODE_METHOD>: Use it.
4650 * python/py-value.c (valpy_call): Adjust call to
4651 call_function_by_hand.
4652 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4653 call_function_by_hand.
4654 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4655 call_function_by_hand.
4656 * valops.c (value_allocate_space_in_inferior): Adjust call to
4657 call_function_by_hand.
4658 * typeprint.c (type_print_unknown_return_type): New function.
4659 * typeprint.h (type_print_unknown_return_type): New declaration.
4660
54990598
PA
46612017-09-04 Pedro Alves <palves@redhat.com>
4662
4663 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4664 types with more than one parameter as prototyped.
4665
9a24775b
PA
46662017-09-04 Pedro Alves <palves@redhat.com>
4667
4668 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4669 (disassemble_command): Use gdb_disassembly_flags instead of bare
4670 int.
4671 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4672 (dump_insns, do_mixed_source_and_assembly_deprecated)
4673 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4674 Use gdb_disassembly_flags instead of bare int.
4675 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4676 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4677 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4678 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4679 (enum gdb_disassembly_flag): ... values of this new enumeration.
4680 (gdb_disassembly_flags): Define.
4681 (gdb_disassembly)
4682 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4683 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4684 gdb_disassembly_flags instead of bare int.
4685 * record-btrace.c (btrace_insn_history)
4686 (record_btrace_insn_history, record_btrace_insn_history_range)
4687 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4688 instead of bare int.
4689 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4690 Use gdb_disassembly_flags instead of bare int.
4691 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4692 Define.
4693 * target-delegates.c: Regenerate.
4694 * target.c (target_insn_history, target_insn_history_from)
4695 (target_insn_history_range): Use gdb_disassembly_flags instead of
4696 bare int.
4697 * target.h: Include "disasm.h".
4698 (struct target_ops) <to_insn_history, to_insn_history_from,
4699 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4700 int.
4701 (target_insn_history, target_insn_history_from)
4702 (target_insn_history_range): Use gdb_disassembly_flags instead of
4703 bare int.
4704
80a65e9b
SM
47052017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4706
4707 * cli/cli-script.c (build_command_line): For if/while commands,
4708 check whether args is empty.
4709
6b66338c
SM
47102017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4711
4712 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4713 (enum command_control_type): Likewise.
4714 (struct command_line): Likewise.
4715 (free_command_lines): Likewise.
4716 (struct command_lines_deleter): Likewise.
4717 (command_line_up): Likewise.
4718 (read_command_lines): Likewise.
4719 (read_command_lines_1): Likewise.
4720 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4721 (enum command_control_type): Likewise.
4722 (struct command_line): Likewise.
4723 (free_command_lines): Likewise.
4724 (struct command_lines_deleter): Likewise.
4725 (command_line_up): Likewise.
4726 (read_command_lines): Likewise.
4727 (read_command_lines_1): Likewise.
4728 * breakpoint.h: Include cli/cli-script.h.
4729 * extension-priv.h: Likewise.
4730 * gdbcmd.h: Likewise.
4731
51abb421
PA
47322017-09-04 Pedro Alves <palves@redhat.com>
4733
4734 * ada-lang.c (is_known_support_routine): Move sal declaration to
4735 where it is initialized.
4736 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4737 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4738 (clear_command, update_static_tracepoint): Remove init_sal
4739 references. Move declarations closer to initializations.
4740 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4741 initializations.
4742 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4743 references. Move sal declarations closer to initializations.
4744 * frame.c (find_frame_sal): Return a symtab_and_line via function
4745 return instead of output parameter. Remove init_sal references.
4746 * frame.h (find_frame_sal): Return a symtab_and_line via function
4747 return instead of output parameter.
4748 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4749 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4750 instead of memset.
4751 (gdbscm_find_pc_line): Remove init_sal reference.
4752 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4753 references. Move declarations closer to initializations.
4754 * infcmd.c (set_step_frame): Update. Move declarations closer to
4755 initializations.
4756 (finish_backward): Remove init_sal references. Move declarations
4757 closer to initializations.
4758 * infrun.c (process_event_stop_test, handle_step_into_function)
4759 (insert_hp_step_resume_breakpoint_at_frame)
4760 (insert_step_resume_breakpoint_at_caller): Likewise.
4761 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4762 (symbol_to_sal): Likewise.
4763 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4764 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4765 to its initialization.
4766 * reverse.c (save_bookmark_command): Use new/delete. Remove
4767 init_sal references. Move declarations closer to initializations.
4768 * source.c (get_current_source_symtab_and_line): Remove brace
4769 initialization.
4770 (set_current_source_symtab_and_line): Now takes the sal by const
4771 reference. Remove brace initialization.
4772 (line_info): Remove init_sal reference.
4773 * source.h (set_current_source_symtab_and_line): Now takes a
4774 symtab_and_line via const reference.
4775 * stack.c (set_current_sal_from_frame): Adjust.
4776 (print_frame_info): Adjust.
4777 (get_last_displayed_sal): Return the sal via function return
4778 instead of via output parameter. Simplify.
4779 (frame_info): Adjust.
4780 * stack.h (get_last_displayed_sal): Return the sal via function
4781 return instead of via output parameter.
4782 * symtab.c (init_sal): Delete.
4783 (find_pc_sect_line): Remove init_sal references. Move
4784 declarations closer to initializations.
4785 (find_function_start_sal): Remove init_sal references. Move
4786 declarations closer to initializations.
4787 * symtab.h (struct symtab_and_line): In-class initialize all
4788 fields.
4789 * tracepoint.c (set_traceframe_context)
4790 (print_one_static_tracepoint_marker): Remove init_sal references.
4791 Move declarations closer to initializations.
4792 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
4793 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
4794 declarations closer to initializations.
4795 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
4796 init_sal references. Adjust.
4797
6c5b2ebe
PA
47982017-09-04 Pedro Alves <palves@redhat.com>
4799
4800 * ax-gdb.c (agent_command_1): Use range-for.
4801 * break-catch-throw.c (re_set_exception_catchpoint): Update.
4802 * breakpoint.c: Include "common/array-view.h".
4803 (init_breakpoint_sal, create_breakpoint_sal): Change sals
4804 parameter from struct symtabs_and_lines to
4805 array_view<symtab_and_line>. Adjust. Use range-for. Update.
4806 (breakpoint_sals_to_pc): Change sals parameter from struct
4807 symtabs_and_lines to std::vector reference.
4808 (check_fast_tracepoint_sals): Change sals parameter from struct
4809 symtabs_and_lines to std::array_view. Use range-for.
4810 (decode_static_tracepoint_spec): Return a std::vector instead of
4811 symtabs_and_lines. Update.
4812 (create_breakpoint): Update.
4813 (break_range_command, until_break_command, clear_command): Update.
4814 (base_breakpoint_decode_location, bkpt_decode_location)
4815 (bkpt_probe_create_sals_from_location)
4816 (bkpt_probe_decode_location, tracepoint_decode_location)
4817 (tracepoint_probe_decode_location)
4818 (strace_marker_create_sals_from_location): Return a std::vector
4819 instead of symtabs_and_lines.
4820 (strace_marker_create_breakpoints_sal): Update.
4821 (strace_marker_decode_location): Return a std::vector instead of
4822 symtabs_and_lines. Update.
4823 (update_breakpoint_locations): Change struct symtabs_and_lines
4824 parameters to gdb::array_view. Adjust.
4825 (location_to_sals): Return a std::vector instead of
4826 symtabs_and_lines. Update.
4827 (breakpoint_re_set_default): Use std::vector instead of struct
4828 symtabs_and_lines.
4829 (decode_location_default): Return a std::vector instead of
4830 symtabs_and_lines. Update.
4831 * breakpoint.h: Include "common/array-view.h".
4832 (struct breakpoint_ops) <decode_location>: Now returns a
4833 std::vector instead of returning a symtabs_and_lines via output
4834 parameter.
4835 (update_breakpoint_locations): Change sals parameters to use
4836 gdb::array_view.
4837 * cli/cli-cmds.c (edit_command, list_command): Update to use
4838 std::vector and gdb::array_view.
4839 (ambiguous_line_spec): Adjust to use gdb::array_view and
4840 range-for.
4841 (compare_symtabs): Rename to ...
4842 (cmp_symtabs): ... this. Change parameters to symtab_and_line
4843 const reference and adjust.
4844 (filter_sals): Rewrite using std::vector and standard algorithms.
4845 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
4846 (jump_command): Update to use std::vector.
4847 * linespec.c (struct linespec_state) <canonical_names>: Update
4848 comment.
4849 (add_sal_to_sals_basic): Delete.
4850 (add_sal_to_sals, filter_results, convert_results_to_lsals)
4851 (decode_line_2, create_sals_line_offset)
4852 (convert_address_location_to_sals, convert_linespec_to_sals)
4853 (convert_explicit_location_to_sals, parse_linespec)
4854 (event_location_to_sals, decode_line_full, decode_line_1)
4855 (decode_line_with_current_source)
4856 (decode_line_with_last_displayed, decode_objc)
4857 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
4858 (linespec_result::~linespec_result): Adjust to use std::vector
4859 instead of symtabs_and_lines.
4860 * linespec.h (linespec_sals::sals): Now a std::vector.
4861 (struct linespec_result): Use std::vector, bool, and in-class
4862 initialization.
4863 (decode_line_1, decode_line_with_current_source)
4864 (decode_line_with_last_displayed): Return std::vector.
4865 * macrocmd.c (info_macros_command): Use std::vector.
4866 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
4867 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
4868 std::vector.
4869 * probe.h (parse_probes): Return a std::vector.
4870 * python/python.c (gdbpy_decode_line): Use std::vector and
4871 gdb::array_view.
4872 * source.c (select_source_symtab, line_info): Use std::vector.
4873 * stack.c (func_command): Use std::vector.
4874 * symtab.h (struct symtabs_and_lines): Delete.
4875 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
4876
7c44b49c
PA
48772017-09-04 Pedro Alves <palves@redhat.com>
4878
4879 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4880 unittests/array-view-selftests.c.
4881 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
4882 * common/array-view.h: New file.
4883 * unittests/array-view-selftests.c: New file.
4884
e439fa14
PA
48852017-09-04 Pedro Alves <palves@redhat.com>
4886
4887 * cli/cli-cmds.c (edit_command): Pass message to
4888 ambiguous_line_spec.
4889 (list_command): Pass message to ambiguous_line_spec. Say
4890 "first"/"last" instead of "start" and "end" to be consistent with
4891 the manual.
4892 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
4893 them to print formatted message.
4894
7525b645
PA
48952017-09-04 Pedro Alves <palves@redhat.com>
4896
4897 * btrace.c (ftrace_add_pt): Pass btrace_insn to
4898 ftrace_update_insns by reference instead of pointer.
4899
badc0020
YQ
49002017-09-04 Yao Qi <yao.qi@linaro.org>
4901
4902 * i386-go32-tdep.c: Include x86-xstate.h.
4903 (i386_go32_init_abi): Call i386_target_description.
4904 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
4905 if xcr0 is X86_XSTATE_X87_MASK.
4906 * i386-tdep.h (tdesc_i386): Remove the declaration.
4907 (tdesc_i386_mmx): Likewise.
4908
d78bdb54
YQ
49092017-09-04 Yao Qi <yao.qi@linaro.org>
4910
4911 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
4912 X86_XSTATE_SSE_MASK instead of 0.
4913
ca1fa5ee
YQ
49142017-09-04 Yao Qi <yao.qi@linaro.org>
4915
4916 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
4917 i386_target_description.
4918 * i386-fbsd-nat.c (i386fbsd_read_description): Call
4919 i386_target_description.
4920 * i386-tdep.c (i386_gdbarch_init): Likewise.
4921
2434b019
YQ
49222017-09-04 Yao Qi <yao.qi@linaro.org>
4923
4924 * amd64-darwin-tdep.c: Include "x86-xstate.h".
4925 (x86_darwin_init_abi_64): Call amd64_target_description.
4926 * amd64-dicos-tdep.c: Likewise.
4927 * amd64-fbsd-nat.c: Likewise.
4928 * amd64-fbsd-tdep.c: Likewise.
4929 * amd64-nbsd-tdep.c: Likewise.
4930 * amd64-obsd-tdep.c: Likewise.
4931 * amd64-sol2-tdep.c: Likewise.
4932 * amd64-windows-tdep.c: Likewise.
4933 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
4934
0860c437
SM
49352017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4936
4937 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
4938 (btrace_function) <insn>: Change type to use std::vector.
4939 * btrace.c (ftrace_debug, ftrace_call_num_insn,
4940 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
4941 ftrace_update_insns, ftrace_compute_global_level_offset,
4942 btrace_stitch_bts, btrace_clear, btrace_insn_get,
4943 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
4944 change to std::vector.
4945 (ftrace_update_insns): Adjust to change to std::vector, change
4946 type of INSN parameter.
4947 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
4948 * record-btrace.c (btrace_call_history_insn_range,
4949 btrace_compute_src_line_range,
4950 record_btrace_frame_prev_register): Adjust to change to
4951 std::vector.
4952 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
4953 to change to std::vector.
4954
0638b7f9
TT
49552017-09-03 Tom Tromey <tom@tromey.com>
4956
4957 * corefile.c (reopen_exec_file): Use std::string.
4958
8f84fb0e
TT
49592017-09-03 Tom Tromey <tom@tromey.com>
4960
4961 * compile/compile.c (compile_register_name_mangled): Return
4962 std::string.
4963 * compile/compile-loc2c.c (pushf_register_address): Update.
4964 (pushf_register): Update.
4965 * compile/compile-c-types.c (convert_array): Update.
4966 * compile/compile-c-symbols.c (generate_vla_size): Update.
4967 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
4968 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
4969 (convert_one_symbol): Update.
4970 (generate_c_for_for_one_variable): Update.
4971 * compile/compile-c-support.c (c_get_range_decl_name): Return a
4972 std::string.
4973 (generate_register_struct): Update.
4974 * compile/compile-internal.h (c_get_range_decl_name): Return a
4975 std::string.
4976 (compile_register_name_mangled): Return std::string.
4977
18e9961f
TT
49782017-09-03 Tom Tromey <tom@tromey.com>
4979
4980 * utils.c (perror_string): Return a std::string.
4981 (throw_perror_with_name, perror_warning_with_name): Update.
4982
45343786
TT
49832017-09-03 Tom Tromey <tom@tromey.com>
4984
4985 * demangle.c (demangle_command): Use std::string,
4986 unique_xmalloc_ptr.
4987
b57af503
TT
49882017-09-03 Tom Tromey <tom@tromey.com>
4989
4990 * cli/cli-setshow.c (do_set_command): Use std::string.
4991
6eecf35f
TT
49922017-09-03 Tom Tromey <tom@tromey.com>
4993
4994 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
4995
56496dd4
TT
49962017-09-03 Tom Tromey <tom@tromey.com>
4997
4998 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
4999
e91a1fa7
TT
50002017-09-03 Tom Tromey <tom@tromey.com>
5001
5002 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5003 gdb::unique_xmalloc_ptr.
5004
7ffd83d7
TT
50052017-09-03 Tom Tromey <tom@tromey.com>
5006
5007 * thread.c (print_thread_info_1): Use string_printf.
5008 (thread_apply_command, thread_apply_all_command): Use
5009 std::string.
5010
1ccbe998
TT
50112017-09-03 Tom Tromey <tom@tromey.com>
5012
5013 * valprint.c (val_print_string): Update.
5014 * gdbcore.h (memory_error_message): Return std::string.
5015 * corefile.c (memory_error_message): Return std::string.
5016 (memory_error): Update.
5017 * breakpoint.c (insert_bp_location): Update.
5018
23fdd69e
SM
50192017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5020
5021 * target/waitstatus.h (target_waitstatus_to_string): Change
5022 return type to std::string.
5023 * target/waitstatus.c (target_waitstatus_to_string): Return
5024 std::string.
5025 * target.h (target_waitstatus_to_string): Remove declaration.
5026 * infrun.c (resume, clear_proceed_status_thread,
5027 print_target_wait_results, do_target_wait, save_waitstatus,
5028 stop_all_threads): Adjust.
5029 * record-btrace.c (record_btrace_wait): Adjust.
5030 * target-debug.h
5031 (target_debug_print_struct_target_waitstatus_p): Adjust.
5032
5c811d30
JK
50332017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5034
5035 PR gdb/22046
5036 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5037 detection.
5038
0a2dde4a
SDJ
50392017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5040
5041 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5042 for setting/unsetting environment variables on the remote target.
5043 (New remote packets): Add entries for QEnvironmentHexEncoded,
5044 QEnvironmentUnset and QEnvironmentReset.
5045 * common/environ.c (gdb_environ::operator=): Extend method to
5046 handle m_user_set_env_list and m_user_unset_env_list.
5047 (gdb_environ::clear): Likewise.
5048 (match_var_in_string): Change type of first parameter from 'char
5049 *' to 'const char *'.
5050 (gdb_environ::set): Extend method to handle
5051 m_user_set_env_list and m_user_unset_env_list.
5052 (gdb_environ::unset): Likewise.
5053 (gdb_environ::clear_user_set_env): New method.
5054 (gdb_environ::user_set_envp): Likewise.
5055 (gdb_environ::user_unset_envp): Likewise.
5056 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5057 m_user_unset_env_list on move constructor/assignment.
5058 (unset): Add new default parameter 'update_unset_list = true'.
5059 (clear_user_set_env): New method.
5060 (user_set_envp): Likewise.
5061 (user_unset_envp): Likewise.
5062 (m_user_set_env_list): New std::set.
5063 (m_user_unset_env_list): Likewise.
5064 * common/rsp-low.c (hex2str): New function.
5065 (bin2hex): New overload for bin2hex function.
5066 * common/rsp-low.c (hex2str): New prototype.
5067 (str2hex): New overload prototype.
5068 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5069 QEnvironmentUnset and QEnvironmentReset.
5070 (remote_protocol_features): Add QEnvironmentHexEncoded,
5071 QEnvironmentUnset and QEnvironmentReset packets.
5072 (send_environment_packet): New function.
5073 (extended_remote_environment_support): Likewise.
5074 (extended_remote_create_inferior): Call
5075 extended_remote_environment_support.
5076 (_initialize_remote): Add QEnvironmentHexEncoded,
5077 QEnvironmentUnset and QEnvironmentReset packet configs.
5078 * unittests/environ-selftests.c (gdb_selftest_env_var):
5079 New variable.
5080 (test_vector_initialization): New function.
5081 (test_init_from_host_environ): Likewise.
5082 (test_reinit_from_host_environ): Likewise.
5083 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5084 Likewise.
5085 (test_unset_set_empty_vector): Likewise.
5086 (test_vector_clear): Likewise.
5087 (test_std_move): Likewise.
5088 (test_move_constructor):
5089 (test_self_move): Likewise.
5090 (test_set_unset_reset): Likewise.
5091 (run_tests): Rewrite in terms of the functions above.
5092
654670a4
WP
50932017-08-31 Weimin Pan <weimin.pan@oracle.com>
5094
5095 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5096 (adi_available): Use a temp variable of type CORE_ADDR as argument
5097 3 when calling target_auxv_search.
5098 (adi_normalize_address): Use masks and xor operators to calculate
5099 normalized address.
5100 (adi_read_versions, adi_write_versions, adi_print_versions)
5101 (do_examine, do_assign): Use paddress.
5102
7755ddb7
JB
51032017-08-29 John Baldwin <jhb@FreeBSD.org>
5104
5105 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5106 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5107 out of loop and add supply of FIR.
5108 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5109 add collect of FIR.
5110
fd437cbc
SM
51112017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5112
3804a343 5113 PR gdb/21827
fd437cbc
SM
5114 * cli/cli-script.c (define_command): Don't convert command name
5115 to lower case.
5116
988f6b3d
JB
51172017-08-25 Joel Brobecker <brobecker@adacore.com>
5118
5119 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5120 Update all callers accordingly. Remove all code blocks handling
5121 the case where DISPP is not NULL.
5122
663c44ac
JK
51232017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5124
5125 PR symtab/22003
5126 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5127 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5128 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5129
f1902523
JK
51302017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5131
5132 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5133 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5134 (read_comp_units_from_section): New parameter abbrev_section, use
5135 read_and_check_comp_unit_head, allocate signatured_type if needed.
5136 (create_all_comp_units): Update read_comp_units_from_section caller.
5137
87215ad1
SDJ
51382017-08-23 Pedro Alves <palves@redhat.com>
5139
5140 PR remote/21852
5141 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5142 to null_ptid and switch to thread without reading the registers
5143 after adding the inferior.
5144
6e41ddec
JK
51452017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5146
5147 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5148 compile-gcc.
5149 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5150 (compile_to_object): Implement compile_gcc.
5151 (_initialize_compile): Install "set compile-gcc". Initialize
5152 compile_gcc.
5153
e68c32d5
JK
51542017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5155
5156 * compile/compile.c (compile_to_object): Conditionally call
5157 set_verbose. Conditionally call compile or compile_v0.
5158
58afddc6
WP
51592017-08-07 Weimin Pan <weimin.pan@oracle.com>
5160
5161 * sparc64-tdep.h: (adi_normalize_address): New export.
5162 * sparc-nat.h: (open_adi_tag_fd): New export.
5163 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5164 * sparc64-linux-tdep.c:
5165 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5166 (sparc64_linux_handle_segmentation_fault): New function.
5167 (sparc64_linux_init_abi): Register
5168 sparc64_linux_handle_segmentation_fault
5169 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5170 (sparc64_addr_bits_remove): New function.
5171 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5172 (MAX_PROC_NAME_SIZE): New macro.
5173 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5174 (sparc64adilist): New variable.
5175 (adi_proc_list): New variable.
5176 (find_adi_info): New function.
5177 (add_adi_info): New function.
5178 (get_adi_info_proc): New function.
5179 (get_adi_info): New function.
5180 (info_adi_command): New function.
5181 (read_maps_entry): New function.
5182 (adi_available): New function.
5183 (adi_normalize_address): New function.
5184 (adi_align_address): New function.
5185 (adi_convert_byte_count): New function.
5186 (adi_tag_fd): New function.
5187 (adi_is_addr_mapped): New function.
5188 (adi_read_versions): New function.
5189 (adi_write_versions): New function.
5190 (adi_print_versions): New function.
5191 (do_examine): New function.
5192 (do_assign): New function.
5193 (adi_examine_command): New function.
5194 (adi_assign_command): New function.
5195 (_initialize_sparc64_adi_tdep): New function.
5196
11db9430
SM
51972017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5198
5199 * breakpoint.c (breakpoints_info): Rename to ...
5200 (info_breakpoints_command): ... this.
5201 (watchpoints_info): Rename to ...
5202 (info_watchpoints_command): ... this.
5203 (tracepoints_info): Rename to ...
5204 (info_tracepoints_command): ... this.
5205 (_initialize_breakpoint): Adjust.
5206 * dcache.c (dcache_info): Rename to ...
5207 (info_display_command): ... this.
5208 (_initialize_dcache): Adjust.
5209 * frame.h (args_info): Rename to ...
5210 (info_args_command): ... this.
5211 (locals_info): Rename to ...
5212 (info_locals_command): ... this.
5213 * infcmd.c (nofp_registers_info): Rename to ...
5214 (info_registers_command): ... this.
5215 (float_info): Rename to ...
5216 (info_float_command): ... this.
5217 (program_info): Rename to ...
5218 (info_program_command): ... this.
5219 (all_registers_info): Rename to ...
5220 (info_all_registers_command): ... this.
5221 (vector_info): Rename to ...
5222 (info_vector_command): ... this.
5223 (float_info): Rename to ...
5224 (info_float_command): ... this.
5225 (_initialize_infcmd): Adjust.
5226 * inferior.h (term_info): Rename to ...
5227 (info_terminal_command): ... this.
5228 * inflow.c (term_info): Rename to ...
5229 (info_terminal_command): ... this.
5230 (_initialize_inflow): Adjust.
5231 * infrun.c (signals_info): Rename to ...
5232 (info_signals_command): ... this.
5233 (_initialize_infrun): Adjust.
5234 * objc-lang.c (classes_info): Rename to ...
5235 (info_classes_command): ... this.
5236 (selectors_info): Rename to ...
5237 (info_selectors_command): ... this.
5238 (_initialize_objc_language): Adjust.
5239 * printcmd.c (sym_info): Rename to ...
5240 (info_symbol_command): ... this.
5241 (address_info): Rename to ...
5242 (info_address_command): ... this.
5243 (display_info): Rename to ...
5244 (info_display_command): ... this.
5245 (_initialize_printcmd): Adjust.
5246 * reverse.c (bookmarks_info): Rename to ...
5247 (info_breakpoints_command): ... this.
5248 (_initialize_reverse): Adjust.
5249 * ser-go32.c (dos_info): Rename to ...
5250 (info_serial_command): ... this.
5251 (_initialize_ser_dos): Adjust.
5252 * skip.c (skip_info): Rename to ...
5253 (info_skip_command): ... this.
5254 (_initialize_step_skip): Adjust.
5255 * source.c (line_info): Rename to ...
5256 (info_line_command): ... this.
5257 (source_info): Rename to ...
5258 (info_source_command)
5259 * stack.c (frame_info): Rename to ...
5260 (info_frame_command): ... this.
5261 (locals_info): Rename to ...
5262 (info_locals_command): ... this.
5263 (args_info): Rename to ...
5264 (info_args_command): ... this.
5265 (_initialize_stack): Adjust.
5266 * symtab.c (sources_info): Rename to ...
5267 (info_sources_command): ... this.
5268 (variables_info): Rename to ...
5269 (info_variables_command): ... this.
5270 (functions_info): Rename to ...
5271 (info_functions_command): ... this.
5272 (types_info): Rename to ...
5273 (info_types_command): ... this.
5274 (_initialize_symtab): Adjust.
5275 * target.c (target_info): Rename to ...
5276 (info_target_command): ... this.
5277 (initialize_targets): Adjust.
5278 * tracepoint.c (tvariables_info): Rename to ...
5279 (info_tvariables_command): ... this.
5280 (scope_info): Rename to ...
5281 (info_scope_command): ... this.
5282 (trace_dump_actions): Adjust.
5283 (_initialize_tracepoint): Adjust.
5284
b270e6f9
TT
52852017-08-22 Tom Tromey <tom@tromey.com>
5286
5287 * breakpoint.h (install_breakpoint): Update.
5288 * breakpoint.c (add_solib_catchpoint): Update.
5289 (install_breakpoint): Change argument to a std::unique_ptr.
5290 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5291 (create_breakpoint_sal, create_breakpoint): Update.
5292 (watch_command_1, catch_exec_command_1)
5293 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5294 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5295 Return the breakpoint.
5296 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5297 (new_single_step_breakpoint): Update.
5298 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5299 std::unique_ptr.
5300 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5301 std::unique_ptr.
5302 * break-catch-sig.c (create_signal_catchpoint): Use
5303 std::unique_ptr.
5304 * ada-lang.c (create_ada_exception_catchpoint): Use
5305 std::unique_ptr.
5306
36bd8eaa
TT
53072017-08-22 Tom Tromey <tom@tromey.com>
5308
5309 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5310
56f37645
TT
53112017-08-22 Tom Tromey <tom@tromey.com>
5312
5313 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5314 (lookup_partial_symbol): Update.
5315
0b581c69
TT
53162017-08-22 Tom Tromey <tom@tromey.com>
5317
5318 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5319 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5320 (find_and_open_source, symtab_to_fullname): Update.
5321 * psymtab.c (psymtab_to_fullname): Update.
5322
14278e1f
TT
53232017-08-22 Tom Tromey <tom@tromey.com>
5324
5325 * exec.c (exec_file_attach): Update.
5326 * linux-thread-db.c (try_thread_db_load): Update.
5327 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5328 * utils.c (gdb_realpath): Change return type.
5329 (gdb_realpath_keepfile): Update.
5330 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5331 (_initialize_utils): Register the new self test.
5332 * source.c (openp): Update.
5333 (find_and_open_source): Update.
5334 * nto-tdep.c (nto_find_and_open_solib): Update.
5335 * main.c (set_gdb_data_directory): Update.
5336 (captured_main_1): Update.
5337 * dwarf2read.c (dwarf2_get_dwz_file): Update
5338 (dw2_map_symbol_filenames): Update.
5339 * auto-load.c (auto_load_safe_path_vec_update): Update.
5340 (filename_is_in_auto_load_safe_path_vec): Change type of
5341 "filename_realp".
5342 (auto_load_objfile_script): Update.
5343 (file_is_auto_load_safe): Update. Use std::string.
5344 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5345
4971c9a7
TT
53462017-08-22 Tom Tromey <tom@tromey.com>
5347
5348 * utils.c (gdb_realpath_keepfile): Return a
5349 gdb::unique_xmalloc_ptr.
5350 * exec.c (exec_file_attach): Update.
5351 * utils.h (gdb_realpath_keepfile): Return a
5352 gdb::unique_xmalloc_ptr.
5353
e3e41d58
TT
53542017-08-22 Tom Tromey <tom@tromey.com>
5355
5356 * compile/compile.c (compile_file_command): Use
5357 gdb::unique_xmalloc_ptr, std::string.
5358 * utils.c (gdb_abspath): Change return type.
5359 * source.c (openp): Update.
5360 * objfiles.c (allocate_objfile): Update.
5361 * main.c (set_gdb_data_directory): Update.
5362 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5363
0d999a6e
ZZ
53642017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5365
5366 * cli-cmds.c (list_commands): List actual code around more than
5367 one location.
5368
329d5e7e
JB
53692017-08-21 John Baldwin <jhb@FreeBSD.org>
5370
5371 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5372
bf223d3e
PA
53732017-08-21 Pedro Alves <palves@redhat.com>
5374
5375 PR gdb/19487
5376 * c-exp.y (variable production): Handle function aliases.
5377 * minsyms.c (msymbol_is_text): New function.
5378 * minsyms.h (msymbol_is_text): Declare.
5379 * symtab.c (find_function_alias_target): New function.
5380 * symtab.h (find_function_alias_target): Declare.
5381
c973d0aa
PA
53822017-08-21 Pedro Alves <palves@redhat.com>
5383
5384 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5385 typedefs.
5386 * typeprint.c (whatis_exp): If handling "whatis", and expression
5387 is OP_TYPE, strip one typedef level. Otherwise don't strip
5388 typedefs here.
5389 * valops.c (value_cast): Save "to" type before resolving
5390 stubs/typedefs. Use that type as resulting value's type.
5391
2989a365
TT
53922017-08-18 Tom Tromey <tom@tromey.com>
5393 Pedro Alves <palves@redhat.com>
5394
5395 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5396 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5397 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5398 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5399 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5400 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5401 (linux_get_siginfo_data): Add "thread" argument. Use
5402 scoped_restore.
5403 * linux-nat.c (linux_child_follow_fork)
5404 (check_stopped_by_watchpoint): Use scoped_restore.
5405 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5406 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5407 (restore_inferior_ptid, save_inferior_ptid): Remove.
5408 * btrace.c (btrace_fetch): Use scoped_restore.
5409 * bsd-uthread.c (bsd_uthread_fetch_registers)
5410 (bsd_uthread_store_registers): Use scoped_restore.
5411 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5412 scoped_restore.
5413 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5414 (aix_thread_xfer_partial): Use scoped_restore.
5415 * inferior.h (save_inferior_ptid): Remove.
5416
e60eb288
YQ
54172017-08-18 Yao Qi <yao.qi@linaro.org>
5418
5419 PR tdep/21818
5420 * arm-tdep.c (gdb_print_insn_arm): Mark
5421 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5422
6d580b63
YQ
54232017-08-18 Yao Qi <yao.qi@linaro.org>
5424
5425 * NEWS: Mention GDBserver's new option "--selftest".
5426 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5427 * selftest.c: Move it to common/selftest.c.
5428 * selftest.h: Move it to common/selftest.h.
5429 * selftest-arch.c (reset): New function.
5430 (tests_with_arch): Call reset.
5431
86dcbf50
YQ
54322017-08-18 Yao Qi <yao.qi@linaro.org>
5433
5434 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5435 instead of exception_fprintf and printf_filtered.
5436
7649770c
YQ
54372017-08-18 Yao Qi <yao.qi@linaro.org>
5438
5439 * selftest.c (register_self_test): Rename it to
5440 selftests::register_test.
5441 (run_self_tests): selftest::run_tests.
5442 * selftest.h: Update declarations.
5443 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5444 selftests::register_test_foreach_arch.
5445 * selftest-arch.h: Update declaration.
5446 * aarch64-tdep.c: Update.
5447 * arm-tdep.c: Likewise.
5448 * disasm-selftests.c: Likewise.
5449 * dwarf2loc.c: Likewise.
5450 * dwarf2-frame.c: Likewise.
5451 * findvar.c: Likewise.
5452 * gdbarch-selftests.c: Likewise.
5453 * maint.c (maintenance_selftest): Likewise.
5454 * regcache.c: Likewise.
5455 * rust-exp.y: Likewise.
5456 * selftest-arch.c: Likewise.
5457 * unittests/environ-selftests.c: Likewise.
5458 * unittests/function-view-selftests.c: Likewise.
5459 * unittests/offset-type-selftests.c: Likewise.
5460 * unittests/optional-selftests.c: Likewise.
5461 * unittests/scoped_restore-selftests.c: Likewise.
5462 * utils-selftests.c: Likewise.
5463
b0cba12e
PA
54642017-08-17 Pedro Alves <palves@redhat.com>
5465
5466 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5467 local.
5468
4c8aa72d
PA
54692017-08-17 Pedro Alves <palves@redhat.com>
5470
5471 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5472 field.
5473 (reset_die_in_process): Delete, replaced by ...
5474 (process_die_scope): ... this new class. Make it responsible for
5475 freeing cu->line_header too.
5476 (process_die): Use process_die_scope.
5477 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5478 cu->line_header_die_owner. Don't release the line header if it's
5479 owned by the CU.
5480 (setup_type_unit_groups): Make the CU/DIE own the line header.
5481 Don't release the line header here.
5482
ba713918
AL
54832017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5484
5485 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5486
44d0fb3a
RK
54872017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5488
5489 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5490 Single-Key mode
5491
a5afdb16
RK
54922017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5493
5494 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5495 mode command list.
5496
47613aeb
SH
54972017-08-15 Stafford Horne <shorne@gmail.com>
5498
5499 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5500
9c3cc999
SH
55012017-08-15 Stafford Horne <shorne@gmail.com>
5502
5503 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5504
206726fb
SDJ
55052017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5506
5507 PR gdb/21954
5508 * infcmd.c (unset_environment_command): Use the 'clear' method on
5509 the environment instead of resetting it.
5510
0335ac6d
JB
55112017-08-15 John Baldwin <jhb@FreeBSD.org>
5512
5513 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5514 platforms.
5515
d3abe1c8
TT
55162017-08-14 Tom Tromey <tom@tromey.com>
5517
5518 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5519 (print_binary_chars): Likewise.
5520 (BITS_IN_BYTES): Remove.
5521
d6382fff
TT
55222017-08-14 Tom Tromey <tom@tromey.com>
5523
5524 PR gdb/21675
5525 * valprint.c (LOW_ZERO): Change value to 034.
5526 (print_octal_chars): Add static_asserts for octal constants.
5527 * printcmd.c (print_scalar_formatted): Add 'd' case.
5528
f978cb06
TT
55292017-08-11 Tom Tromey <tom@tromey.com>
5530
5531 * symfile.c (add_symbol_file_command): Use std::vector.
5532
2f5404b3
TT
55332017-08-14 Tom Tromey <tom@tromey.com>
5534
5535 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5536 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5537 std::move.
5538 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5539
de7985c3
PA
55402017-08-11 Pedro Alves <palves@redhat.com>
5541
5542 * infrun.c (process_event_stop_test): Adjust
5543 function_name_is_marked_for_skip call.
5544 * skip.c: Include <list>.
5545 (skiplist_entry): Make it a class with private fields, and
5546 getters/setters.
5547 (skiplist_entry_chain): Delete.
5548 (skiplist_entries): New.
5549 (skiplist_entry_count): Delete.
5550 (highest_skiplist_entry_num): New.
5551 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5552 (add_skiplist_entry): Delete.
5553 (skiplist_entry::skiplist_entry): New.
5554 (skiplist_entry::add_entry): New.
5555 (skip_file_command, skip_function): Adjust.
5556 (compile_skip_regexp): Delete.
5557 (skip_command): Don't compile regexp here. Adjust to use
5558 skiplist_entry::add_entry.
5559 (skip_info): Adjust to use range-for and getters.
5560 (skip_enable_command, skip_disable_command): Adjust to use
5561 range-for and setters.
5562 (skip_delete_command): Adjust to use std::list.
5563 (add_skiplist_entry): Delete.
5564 (skip_file_p): Delete, refactored as ...
5565 (skiplist_entry::do_skip_file_p): ... this new method.
5566 (skip_gfile_p): Delete, refactored as ...
5567 (skiplist_entry::do_gskip_file_p): ... this new method.
5568 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5569 (skiplist_entry::skip_function_p): ... this new method.
5570 (function_name_is_marked_for_skip): Now returns bool, and takes
5571 the function sal by const reference. Adjust to use range-for and
5572 skiplist_entry methods.
5573 (_initialize_step_skip): Remove references to
5574 skiplist_entry_chain, skiplist_entry_count.
5575 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5576 takes the function sal by const reference.
5577
be7d3cd5
YQ
55782017-08-11 Yao Qi <yao.qi@linaro.org>
5579
5580 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5581 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5582 (dwarf2_frame_cache):
5583 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5584 RETURN_MASK_ALL and set *this_case to NULL.
5585 * frame-unwind.h: Update comments.
5586
1c90d9f0
YQ
55872017-08-11 Yao Qi <yao.qi@linaro.org>
5588
5589 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5590 (dwarf2_frame_state_copy_regs): Remove.
5591 (dwarf2_frame_state_free_regs): Remove.
5592 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5593 (dwarf2_restore_rule): Call method .alloc_regs instead of
5594 dwarf2_frame_state_alloc_regs.
5595 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5596 constructor. Call std::move.
5597 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5598 (dwarf2_frame_cache): Likewise.
5599
5600 [GDB_SELF_TEST]: Include selftest.h and
5601 selftest-arch.h.
5602 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5603 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5604 execute_cfa_program_test.
5605
5606 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5607 copy ctor, assignment operator, move assignment.
5608 <alloc_regs>: New method.
5609 <swap>: New method.
5610 (struct dwarf2_frame_state): Delete dtor.
5611 (dwarf2_frame_state_alloc_regs): Remove declaration.
5612 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5613 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5614
afe37d6b
YQ
56152017-08-11 Yao Qi <yao.qi@linaro.org>
5616
5617 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5618 (dwarf2_frame_state::dwarf2_frame_state): New.
5619 (dwarf2_frame_state::~dwarf2_frame_state): New.
5620 (dwarf2_fetch_cfa_info): Update.
5621 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5622 rather than a pointer. Update code.
5623 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5624 dtor.
5625 <data_align, code_align, retaddr_column>: Change them to const.
5626 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5627 to bool.
5628
b348037f
YQ
56292017-08-11 Yao Qi <yao.qi@linaro.org>
5630
5631 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5632 <loc.exp>: New field.
5633 * dwarf2-frame.c (execute_cfa_program): Update.
5634 (dwarf2_frame_prev_register): Update.
5635
e7c9de26
PA
56362017-08-10 Pedro Alves <palves@redhat.com>
5637
5638 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5639
e8c6b620
JB
56402017-08-09 John Baldwin <jhb@FreeBSD.org>
5641
5642 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5643 (fbsd_pending_children): Use std::list.
5644 (fbsd_remember_child): Likewise.
5645 (fbsd_is_child_pending): Likewise.
5646 (fbsd_pending_vfork_done): Use std::forward_list.
5647 (fbsd_add_vfork_done): Likewise.
5648 (fbsd_is_vfork_done_pending): Likewise.
5649 (fbsd_next_vfork_done): Likewise.
5650
e4a26669
JB
56512017-08-09 John Baldwin <jhb@FreeBSD.org>
5652
5653 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5654 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5655 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5656 for `mapfilename'.
5657 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 5658 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 5659
142311d3
JB
56602017-08-09 John Baldwin <jhb@FreeBSD.org>
5661
5662 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5663 "filestuff.h".
5664 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5665
42fa2e0e
TT
56662017-08-09 Tom Tromey <tom@tromey.com>
5667
5668 * skip.c (skiplist_entry): New constructor.
5669 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5670 (skiplist_entry::file_is_glob): Now bool.
5671 (skiplist_entry::file, skiplist_entry::function): Now
5672 std::string.
5673 (make_skip_entry): Return a unique_ptr. Use new.
5674 (free_skiplist_entry, free_skiplist_entry_cleanup)
5675 (make_free_skiplist_entry_cleanup): Remove.
5676 (skip_command, skip_disable_command, add_skiplist_entry)
5677 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5678 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5679 (function_name_is_marked_for_skip): Update.
5680 (skip_delete_command): Update. Use delete.
5681
cd3af38d
JW
56822017-08-09 Jiong Wang <jiong.wang@arm.com>
5683
5684 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5685 (aarch64_linux_core_read_description): New function.
5686 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5687
29592bde
PA
56882017-08-09 Pedro Alves <palves@redhat.com>
5689
5690 * cp-name-parser.y (cp_comp_to_string): Return a
5691 gdb::unique_xmalloc_ptr<char>.
5692 * cp-support.c (replace_typedefs_qualified_name)
5693 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5694 (cp_canonicalize_string_full): Use op= instead of explicit
5695 convertion.
5696 (cp_class_name_from_physname, method_name_from_physname)
5697 (cp_func_name, cp_remove_params): Adjust to use
5698 gdb::unique_xmalloc_ptr<char>.
5699 * cp-support.h (cp_comp_to_string): Return a
5700 gdb::unique_xmalloc_ptr<char>.
5701 * python/py-type.c (typy_lookup_type): Adjust to use
5702 gdb::unique_xmalloc_ptr<char>.
5703
b3340438
L
57042017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5705
5706 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5707
e88e8651
YQ
57082017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5709 Yao Qi <yao.qi@linaro.org>
5710
5711 * cp-support.c (cp_canonicalize_string_full): Use
5712 gdb::unique_xmalloc_ptr<char>.
5713 (cp_canonicalize_string): Likewise.
5714
f5a29eb0
YQ
57152017-08-09 Yao Qi <yao.qi@linaro.org>
5716
5717 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5718 * regformats/i386/amd64-avx-avx512.dat: Remove.
5719 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5720 * regformats/i386/amd64-avx-mpx.dat:Remove.
5721 * regformats/i386/amd64-avx.dat: Remove.
5722 * regformats/i386/amd64-mpx.dat: Remove.
5723 * regformats/i386/i386-avx-avx512.dat: Remove.
5724 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5725 * regformats/i386/i386-avx-mpx.dat: Remove.
5726 * regformats/i386/i386-mmx.dat: Remove.
5727 * regformats/i386/i386-mpx.dat: Remove.
5728
57757c2f
YQ
57292017-08-09 Yao Qi <yao.qi@linaro.org>
5730
5731 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5732 * amd64-tdep.c: Don't include features/i386/x32*.c.
5733 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5734 functions.
5735 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5736 and i386/x32-avx-avx512.
5737 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5738 and i386/x32.xml.
5739 * features/i386/x32-avx-avx512.c: Removed.
5740 * features/i386/x32-avx-avx512.xml: Removed.
5741 * features/i386/x32-avx.c: Removed.
5742 * features/i386/x32-avx.xml: Removed.
5743 * features/i386/x32.c: Removed.
5744 * features/i386/x32.xml: Removed.
5745 * regformats/i386/x32-avx-avx512.dat: Removed.
5746 * regformats/i386/x32-avx.dat: Removed.
5747 * regformats/i386/x32.dat: Removed.
5748
ba7b109b
MR
57492017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5750
5751 PR breakpoints/21886
5752 * mem-break.c (default_memory_insert_breakpoint): Use
5753 `->placed_address' rather than `->reqstd_address' for the
5754 breakpoint location.
5755
e347efc3
MR
57562017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5757
5758 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5759 assertions.
5760
0dba2a6c
MR
57612017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5762
5763 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5764 a union of `tdep_info', `tdesc_data' and `id'.
5765 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5766 rather than `info.tdep_info'.
5767 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
5768 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5769 * i386-tdep.c (i386_gdbarch_init): Likewise.
5770 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
5771 * mips-tdep.c (mips_gdbarch_init): Likewise.
5772 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5773 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5774 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
5775 `info.tdep_info'.
5776 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
5777 `info.tdep_info'.
5778 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5779 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
5780 `info.tdep_info'.
5781 * spu-tdep.c (spu_gdbarch_init): Likewise.
5782 * gdbarch.h: Regenerate.
5783
16eb6b2d
LS
57842017-08-07 Leszek Swirski <leszeks@google.com>
5785
7b005726 5786 PR symtab/20899
16eb6b2d
LS
5787 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
5788
74cbb09e
SM
57892017-08-07 Simon Marchi <simon.marchi@ericsson.com>
5790
5791 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
5792 (gdbsim_open): Rename gdb_argv args object to argv.
5793
ee0c3293
TT
57942017-08-05 Tom Tromey <tom@tromey.com>
5795
5796 * compile/compile-object-load.c (compile_object_load): Use
5797 gdb::unique_xmalloc_ptr.
5798 * cli/cli-dump.c (scan_filename): Rename from
5799 scan_filename_with_cleanup. Change return type.
5800 (scan_expression): Rename from scan_expression_with_cleanup.
5801 Change return type.
5802 (dump_memory_to_file, dump_value_to_file, restore_command):
5803 Use gdb::unique_xmalloc_ptr. Update.
5804 * cli/cli-cmds.c (find_and_open_script): Use
5805 gdb::unique_xmalloc_ptr.
5806 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
5807 * symmisc.c (maintenance_print_symbols)
5808 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
5809 * symfile.c (symfile_bfd_open, generic_load)
5810 (add_symbol_file_command, remove_symbol_file_command): Use
5811 gdb::unique_xmalloc_ptr.
5812 * source.c (openp): Use gdb::unique_xmalloc_ptr.
5813 * psymtab.c (maintenance_print_psymbols): Use
5814 gdb::unique_xmalloc_ptr.
5815 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
5816 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
5817 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
5818 (reload_shared_libraries_1): Likewise.
5819
3232fabd
TT
58202017-08-05 Tom Tromey <tom@tromey.com>
5821
5822 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
5823 (rust_op_vector, rust_set_vector): New typedefs.
5824 (current_parser): New global.
5825 (work_obstack): Change to pointer type. Update all users.
5826 (rust_ast, pstate): Remove globals.
5827 (struct rust_parser): New.
5828 (%union) <params, field_inits>: Change type.
5829 (start, tuple_expr, unit_expr, struct_expr_list, literal)
5830 (field_expr, expr_list, maybe_expr_list, type_list): Update.
5831 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
5832 (convert_params_to_types, convert_params_to_expression): Change
5833 type of "params".
5834 (ast_string): Change type of "fields".
5835 (rust_parse): Make a rust_parser. Remove cleanups.
5836 (rust_lex_tests): Make and install an auto_obstack.
5837
f02fd774
YQ
58382017-08-04 Yao Qi <yao.qi@linaro.org>
5839
5840 * configure.srv (ipa_x32_linux_regobj): New.
5841 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
5842 instead of X86_TDESC_AVX512.
5843 (initialize_low_tracepoint): Call
5844 init_registers_x32_avx_avx512_linux.
5845
91975afd
YQ
58462017-08-04 Yao Qi <yao.qi@linaro.org>
5847
5848 * utils.h (gdb_argv): Add namespace std for nullptr_t.
5849
2331fa3a
RK
58502017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
5851
5852 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
5853
744e4fe1
TT
58542017-08-03 Tom Tromey <tom@tromey.com>
5855
5856 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
5857 Remove.
5858 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
5859
1c034b67
TT
58602017-08-03 Tom Tromey <tom@tromey.com>
5861
5862 * python/py-param.c (compute_enum_values): Use gdb_argv.
5863
773a1edc
TT
58642017-08-03 Tom Tromey <tom@tromey.com>
5865
5866 * utils.h (struct gdb_argv_deleter): New.
5867 (gdb_argv): New class.
5868 * utils.c (gdb_argv::reset): New method.
5869 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
5870 * tracefile.c (tsave_command): Use gdb_argv.
5871 * top.c (new_ui_command): Use gdb_argv.
5872 * symmisc.c (maintenance_print_symbols)
5873 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
5874 * symfile.c (symbol_file_command, generic_load)
5875 (remove_symbol_file_command): Use gdb_argv.
5876 * stack.c (backtrace_command): Use gdb_argv.
5877 * source.c (add_path, show_substitute_path_command)
5878 (unset_substitute_path_command, set_substitute_path_command):
5879 Use gdb_argv.
5880 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
5881 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
5882 * remote.c (extended_remote_run, remote_put_command)
5883 (remote_get_command, remote_delete_command): Use gdb_argv.
5884 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
5885 (gdbsim_open): Use gdb_argv.
5886 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
5887 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
5888 * procfs.c (procfs_info_proc): Use gdb_argv.
5889 * interps.c (interpreter_exec_cmd): Use gdb_argv.
5890 * infrun.c (handle_command): Use gdb_argv.
5891 * inferior.c (add_inferior_command, clone_inferior_command):
5892 Use gdb_argv.
5893 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
5894 * exec.c (exec_file_command): Use gdb_argv.
5895 * cli/cli-cmds.c (alias_command): Use gdb_argv.
5896 * compile/compile.c (build_argc_argv): Use gdb_argv.
5897
0d50bde3
TT
58982017-08-03 Tom Tromey <tom@tromey.com>
5899
5900 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
5901
7f968c89
TT
59022017-08-03 Tom Tromey <tom@tromey.com>
5903
5904 * python/python.c (compute_python_string): Return std::string.
5905 (gdbpy_eval_from_control_command): Update.
5906 (do_start_initialization): Use std::string.
5907 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
5908 xstrprintf.
5909 * python/py-breakpoint.c (local_setattro): Use string_printf, not
5910 xstrprintf.
5911
3c9ebddd
TT
59122017-08-03 Tom Tromey <tom@tromey.com>
5913
5914 * top.h (do_restore_instream_cleanup): Remove.
5915 * top.c (do_restore_instream_cleanup): Remove.
5916 (read_command_file): Use scoped_restore.
5917 * cli/cli-script.c (execute_user_command): Use scoped_restore.
5918
b51b225e
TT
59192017-08-03 Tom Tromey <tom@tromey.com>
5920
5921 * cli/cli-script.c (execute_user_command)
5922 (execute_control_command): Use scoped_restore.
5923
ac991630
TT
59242017-08-03 Tom Tromey <tom@tromey.com>
5925
5926 * cli/cli-script.c (do_restore_user_call_depth): Remove.
5927 (execute_user_command): Remove user_call_depth; use
5928 user_args_stack's size instead.
5929
898e0c8e
TT
59302017-08-03 Tom Tromey <tom@tromey.com>
5931
5932 * top.h (in_user_command): Remove.
5933 * top.c (in_user_command): Remove.
5934 * cli/cli-script.c (do_restore_user_call_depth)
5935 (execute_user_command): Update.
5936
26fcd5d7
TT
59372017-08-03 Tom Tromey <tom@tromey.com>
5938
5939 * valops.c (search_struct_method): Use gdb::byte_vector.
5940 * valarith.c (value_concat): Use std::vector.
5941 * target.c (memory_xfer_partial): Use gdb::byte_vector.
5942 (simple_search_memory): Likewise.
5943 * printcmd.c (find_string_backward): Use gdb::byte_vector.
5944 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
5945 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
5946 * elfread.c (elf_rel_plt_read): Use std::string.
5947 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
5948 * cli/cli-dump.c (restore_section_callback): Use
5949 gdb::byte_vector.
5950
7c218e6c
TT
59512017-08-03 Tom Tromey <tom@tromey.com>
5952
5953 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
5954
31b68d4a
TT
59552017-08-03 Tom Tromey <tom@tromey.com>
5956
5957 * tui/tui-regs.c (tui_restore_gdbout): Remove.
5958 (tui_register_format): Use scoped_restore.
5959
2ec845e7
TT
59602017-08-03 Tom Tromey <tom@tromey.com>
5961
5962 * reverse.c (exec_direction_default): Remove.
5963 (exec_reverse_once): Use scoped_restore.
5964 * remote.c (restore_remote_timeout): Remove.
5965 (remote_flash_erase, remote_flash_write, remote_flash_done)
5966 (readchar, remote_serial_write): Use scoped_restore.
5967 * cli/cli-script.c (struct source_cleanup_lines_args)
5968 (source_cleanup_lines): Remove.
5969 (script_from_file): Use scoped_restore.
5970 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
5971 (source_command): Use scoped_restore.
5972
b3bc8453
TT
59732017-08-03 Tom Tromey <tom@tromey.com>
5974
5975 * utils.h (make_cleanup_free_so): Remove.
5976 * utils.c (do_free_so, make_cleanup_free_so): Remove.
5977 * solist.h (struct so_deleter): New.
5978 (so_list_up): New typedef.
5979 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
5980
e3ad2841
TT
59812017-08-03 Tom Tromey <tom@tromey.com>
5982
5983 * utils.h (make_cleanup_restore_current_language): Remove.
5984 * utils.c (do_restore_current_language)
5985 (make_cleanup_restore_current_language): Remove.
5986 * parse.c (parse_exp_in_context_1)
5987 (parse_expression_with_language): Use
5988 scoped_restore_current_language.
5989 * mi/mi-main.c (mi_cmd_execute): Use
5990 scoped_restore_current_language.
5991 * language.h (scoped_restore_current_language): New class.
5992
b80cf838
TT
59932017-08-03 Tom Tromey <tom@tromey.com>
5994
5995 * compile/compile.c (cleanup_unlink_file): Remove.
5996 (compile_to_object): Use gdb::unlinker.
5997 (eval_compile_command): Likewise.
5998
fad0444a
TT
59992017-08-03 Tom Tromey <tom@tromey.com>
6000
6001 * utils.h (make_cleanup_fclose): Remove.
6002 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6003
6e7bc05c
TT
60042017-08-03 Tom Tromey <tom@tromey.com>
6005
6006 * top.c (open_terminal_stream): Return gdb_file_up.
6007 (new_ui_command): Update.
6008
4a45905b
TT
60092017-08-03 Tom Tromey <tom@tromey.com>
6010
6011 * source.c (print_source_lines_base, forward_search_command)
6012 (reverse_search_command): Use gdb_file_up.
6013
7cd06d6e
TT
60142017-08-03 Tom Tromey <tom@tromey.com>
6015
6016 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6017
ed166945
TT
60182017-08-03 Tom Tromey <tom@tromey.com>
6019
6020 * cli/cli-cmds.c (find_and_open_script): Change return type.
6021 Remove "streamp" and "full_path" parameters.
6022 (source_script_with_search): Update.
6023 * auto-load.c (source_script_file): Update.
6024 * cli/cli-cmds.h (find_and_open_script): Change type.
6025 (open_script): New struct.
6026
d419f42d
TT
60272017-08-03 Tom Tromey <tom@tromey.com>
6028
6029 * xml-support.c (xml_fetch_content_from_file): Update.
6030 * ui-file.c (stdio_file::open): Update.
6031 * tracefile-tfile.c (tfile_start): Update.
6032 * remote.c (remote_file_put, remote_file_get): Update.
6033 * nat/linux-procfs.c (linux_proc_get_int)
6034 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6035 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6036 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6037 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6038 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6039 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6040 * linux-nat.c (linux_proc_pending_signals): Update.
6041 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6042 (file_closer): Remove.
6043 * compile/compile.c (compile_to_object): Update.
6044 * common/filestuff.h (struct gdb_file_deleter): New.
6045 (gdb_file_up): New typedef.
6046 (gdb_fopen_cloexec): Change return type.
6047 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6048 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6049 (dump_binary_file, restore_binary_file): Update.
6050 * auto-load.c (auto_load_objfile_script_1): Update.
6051
4a2b031d
TT
60522017-08-03 Tom Tromey <tom@tromey.com>
6053
6054 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6055 (info_static_tracepoint_markers_command): Likewise.
6056 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6057 * skip.c (skip_info): Use ui_out_emit_table.
6058 * progspace.c (print_program_space): Use ui_out_emit_table.
6059 * osdata.c (info_osdata): Use ui_out_emit_table.
6060 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6061 ui_out_emit_table.
6062 * linux-thread-db.c (info_auto_load_libthread_db): Use
6063 ui_out_emit_table.
6064 * inferior.c (print_inferior): Use ui_out_emit_table.
6065 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6066 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6067 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6068 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6069 * ui-out.h (class ui_out_emit_table): New.
6070
a4f320fd
MR
60712017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6072
6073 * mips-tdep.c (mips_fpu_type_str): New function.
6074 (mips_dump_tdep): Call it.
6075
a2f1f308
MR
60762017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6077
6078 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6079 `->mips_fpu_type'.
6080
7e5ed83b
XR
60812017-07-31 Xavier Roirand <roirand@adacore.com>
6082
6083 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6084
4c9dc811
XR
60852017-07-27 Xavier Roirand <roirand@adacore.com>
6086
6087 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6088
27d41eac
YQ
60892017-07-26 Yao Qi <yao.qi@linaro.org>
6090
6091 * cli/cli-cmds.c (maintenancechecklist): New variable.
6092 * gdbcmd.h (maintenancechecklist): Declare it.
6093 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6094 Call i386_linux_read_description with different masks.
6095 * maint.c (maintenance_check_command): New function.
6096 (_initialize_maint_cmds): Call add_prefix_cmd.
6097 * target-descriptions.c (tdesc_reg): override operator != and ==.
6098 (tdesc_type): Likewise.
6099 (tdesc_feature): Likewise.
6100 (target_desc): Likewise.
6101 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6102 (maintenance_check_xml_descriptions): New function.
6103 (_initialize_target_descriptions) Add command "xml-descriptions".
6104 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6105
ea03d0d3
YQ
61062017-07-26 Yao Qi <yao.qi@linaro.org>
6107
6108 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6109 Include features/i386/32bit-*.c.
6110 (i386_linux_read_description): Generate target description if it
6111 doesn't exist.
6112 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6113 functions.
6114 * features/i386/32bit-linux.c: Re-generated.
6115 * features/i386/32bit-sse.c: Likewise.
6116 * target-descriptions.c (print_c_feature::visit): Print code to
6117 set register number if needed.
6118 (print_c_feature) <m_next_regnum>: New field.
6119
25aa13e5
YQ
61202017-07-26 Yao Qi <yao.qi@linaro.org>
6121
6122 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6123 (FEATURE_XMLFILES): New.
6124 (FEATURE_CFILES): New.
6125 New rules.
6126 (clean-cfiles): Remove generated c files.
6127 * features/i386/32bit-avx.c: Generated.
6128 * features/i386/32bit-avx512.c: Generated.
6129 * features/i386/32bit-core.c: Generated.
6130 * features/i386/32bit-linux.c: Generated.
6131 * features/i386/32bit-mpx.c: Generated.
6132 * features/i386/32bit-pkeys.c: Generated.
6133 * features/i386/32bit-sse.c: Generated.
6134 * target-descriptions.c: Include algorithm.
6135 (tdesc_element_visitor): Add method visit_end.
6136 (print_c_tdesc): Implement visit_end.
6137 (print_c_tdesc:: m_filename_after_features): Move it to
6138 protected.
6139 (print_c_feature): New class.
6140 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6141 name starts with "i386/32bit-".
6142
6eb1e6a8
YQ
61432017-07-26 Yao Qi <yao.qi@linaro.org>
6144
6145 * target-descriptions.c (tdesc_element_visitor): New class.
6146 (tdesc_element): New class.
6147 (tdesc_reg): Inherit from tdesc_element.
6148 (tdesc_reg::accept): New function.
6149 (tdesc_type): Inherit from tdesc_element.
6150 (tdesc_type::accept): New function.
6151 (tdesc_feature): Inherit from tdesc_element.
6152 (tdesc_feature::accept): New function.
6153 (target_desc): Inherit from tdesc_element.
6154 (target_desc::target_desc): New.
6155 (target_desc::~target_desc): New.
6156 (target_desc::accept): New.
6157 (allocate_target_description): Use new.
6158 (free_target_description): Use delete.
6159 (print_c_tdesc): New class.
6160 (maint_print_c_tdesc_cmd): Adjust.
6161
6162 * features/aarch64.c: Re-generated.
6163 * features/arc-arcompact.c: Re-generated.
6164 * features/arc-v2.c: Re-generated.
6165 * features/arm/arm-with-iwmmxt.c: Re-generated.
6166 * features/arm/arm-with-m.c: Re-generated.
6167 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6168 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6169 * features/arm/arm-with-neon.c: Re-generated.
6170 * features/arm/arm-with-vfpv2.c: Re-generated.
6171 * features/arm/arm-with-vfpv3.c: Re-generated.
6172 * features/i386/amd64-avx-avx512.c: Re-generated.
6173 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6174 * features/i386/amd64-avx.c: Re-generated.
6175 * features/i386/amd64-avx-linux.c: Re-generated.
6176 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6177 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6178 * features/i386/amd64-avx-mpx.c: Re-generated.
6179 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6180 * features/i386/amd64.c: Re-generated.
6181 * features/i386/amd64-linux.c: Re-generated.
6182 * features/i386/amd64-mpx.c: Re-generated.
6183 * features/i386/amd64-mpx-linux.c: Re-generated.
6184 * features/i386/i386-avx-avx512.c: Re-generated.
6185 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6186 * features/i386/i386-avx.c: Re-generated.
6187 * features/i386/i386-avx-linux.c: Re-generated.
6188 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6189 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6190 * features/i386/i386-avx-mpx.c: Re-generated.
6191 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6192 * features/i386/i386.c: Re-generated.
6193 * features/i386/i386-linux.c: Re-generated.
6194 * features/i386/i386-mmx.c: Re-generated.
6195 * features/i386/i386-mmx-linux.c: Re-generated.
6196 * features/i386/i386-mpx.c: Re-generated.
6197 * features/i386/i386-mpx-linux.c: Re-generated.
6198 * features/i386/x32-avx-avx512.c: Re-generated.
6199 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6200 * features/i386/x32-avx.c: Re-generated.
6201 * features/i386/x32-avx-linux.c: Re-generated.
6202 * features/i386/x32.c: Re-generated.
6203 * features/i386/x32-linux.c: Re-generated.
6204 * features/microblaze.c: Re-generated.
6205 * features/microblaze-with-stack-protect.c: Re-generated.
6206 * features/mips64-dsp-linux.c: Re-generated.
6207 * features/mips64-linux.c: Re-generated.
6208 * features/mips-dsp-linux.c: Re-generated.
6209 * features/mips-linux.c: Re-generated.
6210 * features/nds32.c: Re-generated.
6211 * features/nios2.c: Re-generated.
6212 * features/nios2-linux.c: Re-generated.
6213 * features/rs6000/powerpc-32.c: Re-generated.
6214 * features/rs6000/powerpc-32l.c: Re-generated.
6215 * features/rs6000/powerpc-403.c: Re-generated.
6216 * features/rs6000/powerpc-403gc.c : Re-generated.
6217 * features/rs6000/powerpc-405.c: Re-generated.
6218 * features/rs6000/powerpc-505.c: Re-generated.
6219 * features/rs6000/powerpc-601.c: Re-generated.
6220 * features/rs6000/powerpc-602.c: Re-generated.
6221 * features/rs6000/powerpc-603.c: Re-generated.
6222 * features/rs6000/powerpc-604.c: Re-generated.
6223 * features/rs6000/powerpc-64.c: Re-generated.
6224 * features/rs6000/powerpc-64l.c: Re-generated.
6225 * features/rs6000/powerpc-7400.c: Re-generated.
6226 * features/rs6000/powerpc-750.c: Re-generated.
6227 * features/rs6000/powerpc-860.c: Re-generated.
6228 * features/rs6000/powerpc-altivec32.c: Re-generated.
6229 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6230 * features/rs6000/powerpc-altivec64.c: Re-generated.
6231 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6232 * features/rs6000/powerpc-cell32l.c: Re-generated.
6233 * features/rs6000/powerpc-cell64l.c: Re-generated.
6234 * features/rs6000/powerpc-e500.c: Re-generated.
6235 * features/rs6000/powerpc-e500l.c: Re-generated.
6236 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6237 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6238 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6239 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6240 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6241 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6242 * features/rs6000/powerpc-vsx32.c: Re-generated.
6243 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6244 * features/rs6000/powerpc-vsx64.c: Re-generated.
6245 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6246 * features/rs6000/rs6000.c: Re-generated.
6247 * features/s390-linux32.c: Re-generated.
6248 * features/s390-linux32v1.c: Re-generated.
6249 * features/s390-linux32v2.c: Re-generated.
6250 * features/s390-linux64.c: Re-generated.
6251 * features/s390-linux64v1.c: Re-generated.
6252 * features/s390-linux64v2.c: Re-generated.
6253 * features/s390-te-linux64.c: Re-generated.
6254 * features/s390-tevx-linux64.c: Re-generated.
6255 * features/s390-vx-linux64.c: Re-generated.
6256 * features/s390x-linux64.c: Re-generated.
6257 * features/s390x-linux64v1.c: Re-generated.
6258 * features/s390x-linux64v2.c: Re-generated.
6259 * features/s390x-te-linux64.c: Re-generated.
6260 * features/s390x-tevx-linux64.c: Re-generated.
6261 * features/s390x-vx-linux64.c: Re-generated.
6262 * features/sparc/sparc32-solaris.c: Re-generated.
6263 * features/sparc/sparc64-solaris.c: Re-generated.
6264 * features/tic6x-c62x.c: Re-generated.
6265 * features/tic6x-c62x-linux.c: Re-generated.
6266 * features/tic6x-c64x.c: Re-generated.
6267 * features/tic6x-c64x-linux.c: Re-generated.
6268 * features/tic6x-c64xp.c: Re-generated.
6269 * features/tic6x-c64xp-linux.c: Re-generated.
6270
35b4818d
YQ
62712017-07-26 Yao Qi <yao.qi@linaro.org>
6272
6273 * i386-linux-tdep.c (i386_linux_read_description): New function.
6274 (i386_linux_core_read_description): Call
6275 i386_linux_read_description.
6276 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6277 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6278 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6279 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6280 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6281 * x86-linux-nat.c (x86_linux_read_description): Call
6282 i386_linux_read_description.
6283
8e2141c6
YQ
62842017-07-26 Yao Qi <yao.qi@linaro.org>
6285
6286 * NEWS: Mention it.
6287 * features/Makefile (%.c: %.xml): Pass the xml file name to
6288 command "maint print c-tdesc".
6289 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6290 name from 'arg'.
6291
b468ff4c
YQ
62922017-07-26 Yao Qi <yao.qi@linaro.org>
6293
6294 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6295 in-class initialization.
6296 (tdesc_create_feature): Call new instead of XCNEW.
6297 (free_target_description): Ue delete.
6298
b9c0e1b4
JB
62992017-07-25 John Baldwin <jhb@FreeBSD.org>
6300
6301 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6302
a04b5337
YQ
63032017-07-25 Yao Qi <yao.qi@linaro.org>
6304
6305 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6306 constant.
6307 (amd64_x32_init_abi): Likewise.
6308 * amd64-tdep.h (amd64_init_abi): Update declaration.
6309 (amd64_x32_init_abi): Likewise.
6310
02ad7fc2
YQ
63112017-07-25 Yao Qi <yao.qi@linaro.org>
6312
6313 PR tdep/21717
6314 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6315 condition for FPSCR.
6316 (arm_linux_store_inferior_registers): Likewise.
6317
b6f48cb0
TT
63182017-07-22 Tom Tromey <tom@tromey.com>
6319
6320 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6321 <syscalls_counts>: Now a std::vector.
6322 (get_catch_syscall_inferior_data): Use "new".
6323 (catch_syscall_inferior_data_cleanup): Use "delete".
6324 (insert_catch_syscall, remove_catch_syscall)
6325 (clear_syscall_counts): Update.
6326
e12c9b7a
TT
63272017-07-22 Tom Tromey <tom@tromey.com>
6328
6329 * break-catch-syscall.c (syscall_catchpoint)
6330 <syscalls_to_be_caught>: Now a std::vector<int>
6331 (~syscall_catchpoint): Remove.
6332 (insert_catch_syscall, remove_catch_syscall)
6333 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6334 (print_mention_catch_syscall, print_recreate_catch_syscall):
6335 Update.
6336 (create_syscall_event_catchpoint): Change type of "filter"
6337 parameter.
6338 (catch_syscall_split_args): Return a std::vector.
6339 (catch_syscall_command_1, catching_syscall_number_1): Update.
6340
4fa8aeac
TT
63412017-07-22 Tom Tromey <tom@tromey.com>
6342
6343 * break-catch-throw.c (struct exception_catchpoint)
6344 <exception_rx>: Now a std::string.
6345 (~exception_catchpoint): Remove.
6346 (print_one_detail_exception_catchpoint): Update.
6347 (handle_gnu_v3_exceptions): Change type of except_rx.
6348 (extract_exception_regexp): Return a std::string.
6349 (catch_exception_command_1): Update.
6350
f746a154
TT
63512017-07-22 Tom Tromey <tom@tromey.com>
6352
6353 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6354 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6355 std::vector.
6356 <catch_all>: Now a bool.
6357 (~signal_catchpoint): Remove.
6358 (signal_catchpoint_insert_location)
6359 (signal_catchpoint_remove_location)
6360 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6361 (signal_catchpoint_print_mention)
6362 (signal_catchpoint_print_recreate)
6363 (signal_catchpoint_explains_signal): Update.
6364 (create_signal_catchpoint): Change type of "filter" and
6365 "catch_all".
6366 (catch_signal_split_args): Return a std::vector. Change type of
6367 "catch_all".
6368 (catch_signal_command): Update.
6369
47e77640
PA
63702017-07-20 Pedro Alves <palves@redhat.com>
6371
6372 * ada-lang.c (ada_language_defn): Make extern.
6373 (_initialize_ada_language): Remove add_language call.
6374 * c-lang.c (c_language_defn, cplus_language_defn)
6375 (asm_language_defn, minimal_language_defn): Make extern.
6376 (_initialize_c_language): Delete.
6377 * completer.c (compare_cstrings): Delete, moved to utils.h.
6378 * d-lang.c (d_language_defn): Make extern.
6379 (_initialize_d_language): Remove add_language calls.
6380 * defs.h (enum language): Add comment.
6381 * f-lang.c (f_language_defn): Make extern.
6382 (_initialize_f_language): Remove add_language call.
6383 * go-lang.c (go_language_defn): Make extern.
6384 (_initialize_go_language): Remove add_language call.
6385 * language.c: Include <algorithm>.
6386 (languages): Redefine as const array.
6387 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6388 (set_language_command): Handle "local". Use for-range loop.
6389 (set_language): Remove loop.
6390 (language_enum): Rewrite.
6391 (language_def, language_str): Remove loops.
6392 (add_language): Delete.
6393 (add_set_language_command): New, based on add_languages.
6394 (skip_language_trampoline): Adjust.
6395 (local_language_defn): Delete.
6396 (language_gdbarch_post_init): Adjust.
6397 (_initialize_language): Remove add_language calls. Call
6398 add_set_language_command.
6399 * language.h (add_language): Delete.
6400 (auto_language_defn)
6401 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6402 (asm_language_defn, c_language_defn, cplus_language_defn)
6403 (d_language_defn, f_language_defn, go_language_defn)
6404 (m2_language_defn, objc_language_defn, opencl_language_defn)
6405 (pascal_language_defn, rust_language_defn): Declare.
6406 * m2-lang.c (m2_language_defn): Make extern.
6407 (_initialize_m2_language): Remove add_language call.
6408 * objc-lang.c (objc_language_defn): Make extern.
6409 (_initialize_objc_language): Remove add_language call.
6410 * opencl-lang.c (opencl_language_defn): Make extern.
6411 (_initialize_opencl_language): Remove add_language call.
6412 * p-lang.c (pascal_language_defn): Make extern.
6413 (_initialize_pascal_language): Delete.
6414 * rust-lang.c (rust_language_defn): Make extern.
6415 (_initialize_rust_language): Delete.
6416 * utils.h (compare_cstrings): New static inline function.
6417
edb0c9cb
PA
64182017-07-20 Pedro Alves <palves@redhat.com>
6419
6420 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6421 (get_var_value): Constify parameters.
6422 (get_int_var_value): Change prototype.
6423 (to_fixed_range_type): Adjust.
6424 * ada-lang.h (get_int_var_value): Change prototype.
6425
a778f165
PA
64262017-07-20 Pedro Alves <palves@redhat.com>
6427
6428 * dwarf2read.c (dw2_lookup_symbol): Use
6429 SYMBOL_MATCHES_SEARCH_NAME.
6430 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6431
42edd901
PA
64322017-07-20 Pedro Alves <palves@redhat.com>
6433
6434 * block.c (block_iter_name_step, block_iter_name_first)
6435 (block_iter_name_next): Delete.
6436 (block_lookup_symbol_primary): Adjust to use
6437 dict_iter_match_first/dict_iter_match_next.
6438 * block.h (block_iter_name_first, block_iter_name_next): Delete
6439 declarations.
6440 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6441 dict_iter_match_first/dict_iter_match_next.
6442
cf325299
PA
64432017-07-20 Pedro Alves <palves@redhat.com>
6444
6445 * cp-support.c (cp_find_first_component_aux): Add missing case for
6446 end of string.
6447
c5ed0576
DB
64482017-07-18 David Blaikie <dblaikie@gmail.com>
6449
6450 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6451 of dwo_cu's dwo_file.
6452
27841e76
YQ
64532017-07-18 Yao Qi <yao.qi@linaro.org>
6454
6455 * remote.c (store_registers_using_G): Remove one line comment.
6456
cfb7e58b
YQ
64572017-07-18 Yao Qi <yao.qi@linaro.org>
6458
6459 * regcache.c (regcache_cpy): Simplify it.
6460 (regcache::cpy_no_passthrough): Remove it.
6461 * regcache.h (cpy_no_passthrough): Remove it.
6462 (regcache_dup, regcache_cpy): Update comments.
6463
386535dd
PA
64642017-07-18 Pedro Alves <palves@redhat.com>
6465
6466 * remote-sim.c (sim_command_completer): Adjust to work with a
6467 completion_tracker instead of a VEC.
6468
c45ec17c
PA
64692017-07-17 Pedro Alves <palves@redhat.com>
6470
6471 * completer.c (complete_source_filenames): New function.
6472 (complete_address_and_linespec_locations): New function.
6473 (location_completer): Use complete_address_and_linespec_locations.
6474 (completion_tracker::build_completion_result): Honor the tracker's
6475 request to suppress append.
6476 * completer.h (completion_tracker::suppress_append_ws)
6477 (completion_tracker::set_suppress_append_ws): New methods.
6478 (completion_tracker::m_suppress_append_ws): New field.
6479 (complete_source_filenames): New declaration.
6480 * linespec.c (linespec_complete_what): New.
6481 (struct ls_parser) <complete_what, completion_word,
6482 completion_quote_char, completion_quote_end, completion_tracker>:
6483 New fields.
6484 (string_find_incomplete_keyword_at_end): New.
6485 (linespec_lexer_lex_string): Record quote char. If in completion
6486 mode, don't throw.
6487 (linespec_lexer_consume_token): Advance the completion word point.
6488 (linespec_lexer_peek_token): Save/restore completion info.
6489 (save_stream_and_consume_token): New.
6490 (set_completion_after_number): New.
6491 (linespec_parse_basic): Set what to complete next depending on
6492 token. Handle function and label completions specially.
6493 (parse_linespec): Disable objc shortcut in completion mode. Set
6494 what to complete next depending on token type. Skip keyword if in
6495 completion mode.
6496 (complete_linespec_component, linespec_complete): New.
6497 * linespec.h (linespec_complete): Declare.
6498
be966d42
PA
64992017-07-17 Pedro Alves <palves@redhat.com>
6500
6501 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6502 Handle 'operator<' / 'operator<<'.
6503
a2459270
PA
65042017-07-17 Pedro Alves <palves@redhat.com>
6505
6506 * completer.c (collect_explicit_location_matches): Handle
6507 MATCH_LABEL.
6508 (convert_explicit_location_to_linespec): New, factored out from
6509 ...
6510 (convert_explicit_location_to_sals): ... this.
6511 (complete_label): New.
6512 (linespec_complete_label, find_label_symbols_in_block): New.
6513 (find_label_symbols): Add completion_mode parameter and adjust to
6514 call find_label_symbols_in_block.
6515 * linespec.h (linespec_complete_label): Declare.
6516
c6756f62
PA
65172017-07-17 Pedro Alves <palves@redhat.com>
6518
6519 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6520 complete_symbol_mode parameter.
6521 * cli/cli-cmds.c (complete_command): Get the completion result out
6522 of the handle_brkchars tracker if used a custom word point.
6523 * completer.c: Include "linespec.h".
6524 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6525 (advance_to_expression_complete_word_point): New.
6526 (completion_tracker::completes_to_completion_word): New.
6527 (complete_files_symbols): Pass down
6528 complete_symbol_mode::EXPRESSION.
6529 (explicit_options, probe_options): New.
6530 (collect_explicit_location_matches): Complete on the
6531 explictit_loc->foo instead of word. Use
6532 linespec_complete_function. Handle MATCH_LINE. Handle offering
6533 keyword and options completions.
6534 (backup_text_ptr): Delete.
6535 (skip_keyword): New.
6536 (complete_explicit_location): Remove 'word' parameter. Add
6537 language, quoted_arg_start and quoted_arg_end parameters.
6538 Rewrite, parsing left to right.
6539 (location_completer): Rewrite.
6540 (location_completer_handle_brkchars): New function.
6541 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6542 (enum complete_line_internal_reason): Adjust comments.
6543 (completion_tracker::discard_completions): New.
6544 (completer_handle_brkchars_func_for_completer): Handle
6545 location_completer.
6546 (gdb_custom_word_point_brkchars)
6547 (gdb_org_rl_basic_quote_characters): New.
6548 (gdb_completion_word_break_characters_throw)
6549 (completion_find_completion_word): Handle trackers that use a
6550 custom word point.
6551 (completion_tracker::advance_custom_word_point_by): New.
6552 (completion_tracker::build_completion_result): Don't rely on
6553 readline appending the quote char.
6554 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6555 use a custom word point.
6556 (gdb_rl_attempted_completion_function): Restore
6557 rl_basic_quote_characters.
6558 * completer.h (class completion_tracker): Extend intro comment.
6559 (completion_tracker::set_quote_char)
6560 (completion_tracker::quote_char)
6561 (completion_tracker::set_use_custom_word_point)
6562 (completion_tracker::use_custom_word_point)
6563 (completion_tracker::custom_word_point)
6564 (completion_tracker::set_custom_word_point)
6565 (completion_tracker::advance_custom_word_point_by)
6566 (completion_tracker::completes_to_completion_word)
6567 (completion_tracker::discard_completions): New methods.
6568 (completion_tracker::m_quote_char)
6569 (completion_tracker::m_use_custom_word_point)
6570 (completion_tracker::m_custom_word_point): New fields.
6571 (advance_to_expression_complete_word_point): Declare.
6572 * f-lang.c (f_collect_symbol_completion_matches): Add
6573 complete_symbol_mode parameter.
6574 * language.h (struct language_defn)
6575 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6576 parameter.
6577 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6578 (linespec_complete_function): New function.
6579 (linespec_lexer_lex_keyword): Adjust.
6580 * linespec.h (linespec_keywords, linespec_complete_function): New
6581 declarations.
6582 * location.c (find_end_quote): New function.
6583 (explicit_location_lex_one): Add explicit_completion_info
6584 parameter. Save quoting info. Don't throw if being called for
6585 completion. Don't handle Ada operators here.
6586 (is_cp_operator, skip_op_false_positives, first_of)
6587 (explicit_location_lex_one_function): New function.
6588 (string_to_explicit_location): Replace 'dont_throw' parameter with
6589 an explicit_completion_info pointer parameter. Handle it. Don't
6590 use explicit_location_lex_one to lex function names. Use
6591 explicit_location_lex_one_function instead.
6592 * location.h (struct explicit_completion_info): New.
6593 (string_to_explicit_location): Replace 'dont_throw' parameter with
6594 an explicit_completion_info pointer parameter.
6595 * symtab.c (default_collect_symbol_completion_matches_break_on):
6596 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6597 (default_collect_symbol_completion_matches)
6598 (collect_symbol_completion_matches): Add complete_symbol_mode
6599 parameter.
6600 (collect_symbol_completion_matches_type): Pass down
6601 complete_symbol_mode::EXPRESSION.
6602 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6603 parameter. Handle LINESPEC mode.
6604 * symtab.h (complete_symbol_mode): New.
6605 (default_collect_symbol_completion_matches_break_on)
6606 (default_collect_symbol_completion_matches)
6607 (collect_symbol_completion_matches)
6608 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6609 parameter.
6610
1d550c82
PA
66112017-07-17 Pedro Alves <palves@redhat.com>
6612
6613 * utils.c (enum class strncmp_iw_mode): New.
6614 (strcmp_iw): Rename to ...
6615 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6616 parameters. Handle them.
6617 (strncmp_iw): New.
6618 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6619 * utils.h (strncmp_iw): Declare.
6620 (strcmp_iw): Move describing comments here.
6621
8090b426
PA
66222017-07-17 Pedro Alves <palves@redhat.com>
6623
6624 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6625 CP_OPERATOR_STR.
6626 * c-typeprint.c (is_type_conversion_operator): Use
6627 CP_OPERATOR_STR.
6628 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6629 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6630 CP_OPERATOR_LEN.
6631 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6632 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6633 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6634 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6635 CP_OPERATOR_STR.
6636 * location.c: Include "cp-support.h".
6637 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6638 CP_OPERATOR_STR.
6639 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6640 CP_OPERATOR_LEN.
6641
6a2c1b87
PA
66422017-07-17 Pedro Alves <palves@redhat.com>
6643
6644 * cli/cli-cmds.c (complete_command): Use a completion tracker
6645 along with completion_find_completion_word for handle_brkchars
6646 phase.
6647 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6648 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6649 (struct gdb_rl_completion_word_info): New.
6650 (gdb_rl_find_completion_word): New.
6651 (completion_find_completion_word): New.
6652 * completer.h (completion_find_completion_word): Declare.
6653
eb3ff9a5
PA
66542017-07-17 Pedro Alves <palves@redhat.com>
6655
6656 * ada-lang.c (symbol_completion_match): Adjust comments.
6657 (symbol_completion_add): Replace vector parameter with
6658 completion_tracker parameter. Use it.
6659 (ada_make_symbol_completion_list): Rename to...
6660 (ada_collect_symbol_completion_matches): ... this. Add
6661 completion_tracker parameter and use it.
6662 (ada_language_defn): Adjust.
6663 * break-catch-syscall.c (catch_syscall_completer): Adjust
6664 prototype and work with completion_tracker instead of VEC.
6665 * breakpoint.c (condition_completer): Adjust prototype and work
6666 with completion_tracker instead of VEC.
6667 * c-lang.c (c_language_defn, cplus_language_defn)
6668 (asm_language_defn, minimal_language_defn): Adjust to renames.
6669 * cli/cli-cmds.c (complete_command): Rework using
6670 completion_tracker. Catch exceptions when completing.
6671 * cli/cli-decode.c (integer_unlimited_completer)
6672 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6673 with completion_tracker instead of VEC.
6674 * command.h (struct completion_tracker): Forward declare.
6675 (completer_ftype, completer_handle_brkchars_ftype): Change
6676 types.
6677 (complete_on_cmdlist, complete_on_enum): Adjust.
6678 * completer.c: Include <algorithm>.
6679 (struct gdb_completer_state): New.
6680 (current_completion): New global.
6681 (readline_line_completion_function): Delete.
6682 (noop_completer, filename_completer)
6683 (filename_completer_handle_brkchars, complete_files_symbols)
6684 (linespec_location_completer): Adjust to work with a
6685 completion_tracker instead of a VEC.
6686 (string_or_empty): New.
6687 (collect_explicit_location_matches): Adjust to work with a
6688 completion_tracker instead of a VEC.
6689 (explicit_location_completer): Rename to ...
6690 (complete_explicit_location): ... this and adjust to work with a
6691 completion_tracker instead of a VEC.
6692 (location_completer): Adjust to work with a completion_tracker
6693 instead of a VEC.
6694 (add_struct_fields): Adjust to work with a completion_list instead
6695 of VEC.
6696 (expression_completer): Rename to ...
6697 (complete_expression): ... this and adjust to work with a
6698 completion_tracker instead of a VEC. Use complete_files_symbols.
6699 (expression_completer): Reimplement on top of complete_expression.
6700 (symbol_completer): Adjust to work with a completion_tracker
6701 instead of a VEC.
6702 (enum complete_line_internal_reason): Add describing comments.
6703 (complete_line_internal_normal_command): Adjust to work with a
6704 completion_tracker instead of a VEC.
6705 (complete_line_internal): Rename to ...
6706 (complete_line_internal_1): ... this and adjust to work with a
6707 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6708 handle_brkchars phase.
6709 (new_completion_tracker): Delete.
6710 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6711 complete_line_internal_1.
6712 (free_completion_tracker): Delete.
6713 (INITIAL_COMPLETION_HTAB_SIZE): New.
6714 (completion_tracker::completion_tracker)
6715 (completion_tracker::~completion_tracker): New.
6716 (maybe_add_completion): Delete.
6717 (completion_tracker::maybe_add_completion)
6718 (completion_tracker::add_completion)
6719 (completion_tracker::add_completions): New.
6720 (throw_max_completions_reached_error): Delete.
6721 (complete_line): Adjust to work with a completion_tracker instead
6722 of a VEC. Don't create a completion_tracker_t or check for max
6723 completions here.
6724 (command_completer, command_completer_handle_brkchars)
6725 (signal_completer, reg_or_group_completer_1)
6726 (reg_or_group_completer, default_completer_handle_brkchars):
6727 Adjust to work with a completion_tracker.
6728 (gdb_completion_word_break_characters_throw): New.
6729 (gdb_completion_word_break_characters): Reimplement.
6730 (line_completion_function): Delete.
6731 (completion_tracker::recompute_lowest_common_denominator)
6732 (expand_preserving_ws)
6733 (completion_tracker::build_completion_result)
6734 (completion_result::completion_result)
6735 (completion_result::completion_result)
6736 (completion_result::~completion_result)
6737 (completion_result::completion_result)
6738 (completion_result::release_match_list, compare_cstrings)
6739 (completion_result::sort_match_list)
6740 (completion_result::reset_match_list)
6741 (gdb_rl_attempted_completion_function_throw)
6742 (gdb_rl_attempted_completion_function): New.
6743 * completer.h (completion_list, struct completion_result)
6744 (class completion_tracker): New.
6745 (complete_line): Add completion_tracker parameter.
6746 (readline_line_completion_function): Delete.
6747 (gdb_rl_attempted_completion_function): New.
6748 (noop_completer, filename_completer, expression_completer)
6749 (location_completer, symbol_completer, command_completer)
6750 (signal_completer, reg_or_group_completer): Update prototypes.
6751 (completion_tracker_t, new_completion_tracker)
6752 (make_cleanup_free_completion_tracker): Delete.
6753 (enum maybe_add_completion_enum): Delete.
6754 (maybe_add_completion): Delete.
6755 (throw_max_completions_reached_error): Delete.
6756 * corefile.c (complete_set_gnutarget): Adjust to work with a
6757 completion_tracker instead of a VEC.
6758 * cp-abi.c (cp_abi_completer): Adjust to work with a
6759 completion_tracker instead of a VEC.
6760 * d-lang.c (d_language_defn): Adjust.
6761 * disasm.c (disassembler_options_completer): Adjust to work with a
6762 completion_tracker instead of a VEC.
6763 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6764 (f_collect_symbol_completion_matches): ... this. Adjust to work
6765 with a completion_tracker instead of a VEC.
6766 (f_language_defn): Adjust.
6767 * go-lang.c (go_language_defn): Adjust.
6768 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
6769 Adjust to work with a completion_tracker instead of a VEC.
6770 * infrun.c (handle_completer): Likewise.
6771 * interps.c (interpreter_completer): Likewise.
6772 * interps.h (interpreter_completer): Likewise.
6773 * language.c (unknown_language_defn, auto_language_defn)
6774 (local_language_defn): Adjust.
6775 * language.h (language_defn::la_make_symbol_completion_list):
6776 Rename to ...
6777 (language_defn::la_collect_symbol_completion_matches): ... this
6778 and adjust to work with a completion_tracker instead of a VEC.
6779 * m2-lang.c (m2_language_defn): Adjust.
6780 * objc-lang.c (objc_language_defn): Adjust.
6781 * opencl-lang.c (opencl_language_defn): Adjust.
6782 * p-lang.c (pascal_language_defn): Adjust.
6783 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
6784 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
6785 with a completion_tracker.
6786 * rust-lang.c (rust_language_defn): Adjust.
6787 * symtab.c (free_completion_list, do_free_completion_list)
6788 (return_val, completion_tracker): Delete.
6789 (completion_list_add_name, completion_list_add_symbol)
6790 (completion_list_add_msymbol, completion_list_objc_symbol)
6791 (completion_list_add_fields, add_symtab_completions): Add
6792 completion_tracker parameter and use it.
6793 (default_make_symbol_completion_list_break_on_1): Rename to...
6794 (default_collect_symbol_completion_matches_break_on): ... this.
6795 Add completion_tracker parameter and use it instead of allocating
6796 a completion tracker here.
6797 (default_make_symbol_completion_list_break_on): Delete old
6798 implementation.
6799 (default_make_symbol_completion_list): Delete.
6800 (default_collect_symbol_completion_matches): New.
6801 (make_symbol_completion_list): Delete.
6802 (collect_symbol_completion_matches): New.
6803 (make_symbol_completion_type): Rename to ...
6804 (collect_symbol_completion_matches_type): ... this. Add
6805 completion_tracker parameter and use it instead of VEC.
6806 (make_file_symbol_completion_list_1): Rename to...
6807 (collect_file_symbol_completion_matches): ... this. Add
6808 completion_tracker parameter and use it instead of VEC.
6809 (make_file_symbol_completion_list): Delete.
6810 (add_filename_to_list): Use completion_list instead of a VEC.
6811 (add_partial_filename_data::list): Now a completion_list.
6812 (make_source_files_completion_list): Work with a completion_list
6813 instead of a VEC.
6814 * symtab.h: Include "completer.h".
6815 (default_make_symbol_completion_list_break_on)
6816 (default_make_symbol_completion_list, make_symbol_completion_list)
6817 (make_symbol_completion_type, make_file_symbol_completion_list)
6818 (make_source_files_completion_list): Delete.
6819 (default_collect_symbol_completion_matches_break_on)
6820 (default_collect_symbol_completion_matches)
6821 (collect_symbol_completion_matches)
6822 (collect_symbol_completion_matches_type)
6823 (collect_file_symbol_completion_matches)
6824 (make_source_files_completion_list): New.
6825 * top.c (init_main): Don't install a rl_completion_entry_function
6826 hook. Install a rl_attempted_completion_function hook instead.
6827 * tui/tui-layout.c (layout_completer): Adjust to work with a
6828 completion_tracker.
6829 * tui/tui-regs.c (tui_reggroup_completer):
6830 * tui/tui-win.c (window_name_completer, focus_completer)
6831 (winheight_completer): Adjust to work with a completion_tracker.
6832 * value.c: Include "completer.h".
6833 (complete_internalvar): Adjust to work with a completion_tracker.
6834 * value.h (complete_internalvar): Likewise.
6835
6e1dbf8c
PA
68362017-07-17 Pedro Alves <palves@redhat.com>
6837
6838 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
6839 renames.
6840 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
6841 comments to completer_ftype's declaration.
6842 <completer_handle_brkchars>: Change type to
6843 completer_handle_brkchars_ftype.
6844 * command.h (completer_ftype): Add describing comment and give
6845 names to parameters.
6846 (completer_ftype_void): Rename to ...
6847 (completer_handle_brkchars_ftype) ... this. Add describing comment.
6848 (set_cmd_completer_handle_brkchars): Adjust.
6849 * completer.c (filename_completer_handle_brkchars): New function.
6850 (complete_line_internal_normal_command): New function, factored
6851 out from ...
6852 (complete_line_internal): ... here.
6853 (command_completer_handle_brkchars)
6854 (default_completer_handle_brkchars)
6855 (completer_handle_brkchars_func_for_completer): New functions.
6856 * completer.h (set_gdb_completion_word_break_characters): Delete
6857 declaration.
6858 (completer_handle_brkchars_func_for_completer): New declaration.
6859 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
6860 completer_handle_brkchars_func_for_completer.
6861
78b13106
PA
68622017-07-17 Pedro Alves <palves@redhat.com>
6863
6864 * completer.c (symbol_completer): New function, based on
6865 make_symbol_completion_list_fn.
6866 * completer.h (symbol_completer): New declaration.
6867 * guile/scm-cmd.c (cmdscm_completers): Adjust.
6868 * python/py-cmd.c (completers): Adjust.
6869 * symtab.c (make_symbol_completion_list_fn): Delete.
6870 * symtab.h (make_symbol_completion_list_fn): Delete.
6871 * cli/cli-decode.c (add_cmd): Adjust.
6872
bbf2f4df
PA
68732017-07-17 Pedro Alves <palves@redhat.com>
6874
6875 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
6876 * dwarf2read.c: Include "filename-seen-cache.h".
6877 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
6878 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
6879 * filename-seen-cache.c: New file.
6880 * filename-seen-cache.h: New file.
6881 * symtab.c: Include "filename-seen-cache.h".
6882 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
6883 (create_filename_seen_cache, clear_filename_seen_cache)
6884 (delete_filename_seen_cache, filename_seen): Delete, parts moved
6885 to filename-seen-cache.h/filename-seen-cache.c.
6886 (output_source_filename, sources_info)
6887 (maybe_add_partial_symtab_filename)
6888 (make_source_files_completion_list): Adjust to use
6889 filename_seen_cache.
6890
330cdd98
PA
68912017-07-17 Pedro Alves <palves@redhat.com>
6892
6893 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
6894 fields.
6895 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
6896 dwarf2_debug_sections*)): New.
6897 (dwarf2_per_objfile::dwarf2_per_objfile(const
6898 dwarf2_per_objfile&)): Declare as deleted.
6899 (dwarf2_per_objfile::operator=): Declare as deleted.
6900 (dwarf2_per_objfile::dwarf2_per_objfile)
6901 (dwarf2_per_objfile::~dwarf2_per_objfile)
6902 (dwarf2_per_objfile::free_cached_comp_units): New.
6903 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
6904 ctor. Call dwarf2_per_objfile's ctor manually.
6905 (dwarf2_locate_sections): Deleted/refactored as ...
6906 (dwarf2_per_objfile::locate_sections): ... this new method.
6907 (free_cached_comp_units): Defer to
6908 dwarf2_per_objfile::free_cached_comp_units.
6909 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
6910
8880f2a9
TT
69112017-07-14 Tom Tromey <tom@tromey.com>
6912
6913 PR rust/21764:
6914 * rust-exp.y (convert_ast_to_expression): Add "want_type"
6915 parameter.
6916 <UNOP_SIZEOF>: Split into separate case.
6917 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
6918
65547233
TT
69192017-07-14 Tom Tromey <tom@tromey.com>
6920
6921 PR rust/21763:
6922 * symtab.c (symbol_matches_domain): Add language_rust to special
6923 case.
6924 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
6925 treat LOC_TYPEDEF symbols as variables.
6926
8f14146e
PA
69272017-07-14 Pedro Alves <palves@redhat.com>
6928
6929 * symtab.c (make_file_symbol_completion_list_1): Iterate over
6930 symtabs matching all symtabs with SRCFILE as file name instead of
6931 only considering the first hit, with lookup_symtab.
6932
2347965c
SM
69332017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6934
6935 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
6936 operator_name parameters.
6937 (gen_expr): Update function call.
6938
40f4af28
SM
69392017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6940
6941 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
6942 parameter.
6943 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
6944 Likewise.
6945 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
6946 parameter, use agent_expr::gdbarch instead, update function
6947 calls.
6948 (locexpr_tracepoint_var_ref): Likewise.
6949 (loclist_tracepoint_var_ref): Likewise.
6950 * ax-gdb.c (gen_trace_static_fields): Likewise.
6951 (gen_traced_pop): Likewise.
6952 (gen_frame_args_address): Likewise.
6953 (gen_frame_locals_address): Likewise.
6954 (gen_var_ref): Likewise.
6955 (gen_struct_ref_recursive): Likewise.
6956 (gen_static_field): Likewise.
6957 (gen_maybe_namespace_elt): Likewise.
6958 (gen_expr): Likewise.
6959 (gen_trace_for_var): Likewise.
6960 (gen_trace_for_expr): Likewise.
6961 (gen_trace_for_return_address): Likewise.
6962
053f8057
SM
69632017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6964
6965 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
6966 parameter.
6967 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
6968
6661ad48
SM
69692017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6970
6971 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
6972 from ax, update calls.
6973 (gen_usual_arithmetic): Likewise.
6974 (gen_integral_promotions): Likewise.
6975 (gen_bitfield_ref): Likewise.
6976 (gen_primitive_field): Likewise.
6977 (gen_struct_ref_recursive): Likewise.
6978 (gen_struct_ref): Likewise.
6979 (gen_maybe_namespace_elt): Likewise.
6980 (gen_struct_elt_for_reference): Likewise.
6981 (gen_namespace_elt): Likewise.
6982 (gen_aggregate_elt_ref): Likewise.
6983 (gen_expr): Get gdbarch from ax, update calls.
6984 (gen_expr_binop_rest): Likewise.
6985
c55a47e7
PA
69862017-07-13 Pedro Alves <palves@redhat.com>
6987
6988 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
6989 as default tdesc.
6990 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
6991 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
6992 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
6993 tdesc_amd64_linux as default tdesc. Get final tdesc from the
6994 tdep.
6995 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
6996 Get final tdesc from the tdep.
6997 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
6998 default tdesc.
6999 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7000 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7001 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7002 Use it as default tdesc.
7003 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7004 down to amd_init_abi. No longer handle fallback tdesc here.
7005 * amd64-tdep.h (tdesc_x32): Declare.
7006 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7007 parameter.
7008 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7009 as default tdesc.
7010
55efceab
AA
70112017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7012
7013 * s390-linux-tdep.c (s390_process_record): Add support for
7014 instructions new in arch12.
7015
0aa37b65
JB
70162017-07-11 John Baldwin <jhb@FreeBSD.org>
7017
7018 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7019 PT_GETFSBASE and PT_GETGSBASE.
7020 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7021 PT_SETGSBASE.
7022
48aeef91
JB
70232017-07-11 John Baldwin <jhb@FreeBSD.org>
7024
7025 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7026 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7027 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7028 those rules.
7029 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7030 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7031 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7032 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7033 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7034 * features/i386/amd64.xml: Add 64bit-segments.xml.
7035 * features/i386/amd64-avx-avx512.c: Regenerated.
7036 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7037 * features/i386/amd64-avx-mpx.c: Regenerated.
7038 * features/i386/amd64-avx.c: Regenerated.
7039 * features/i386/amd64-mpx.c: Regenerated.
7040 * features/i386/amd64.c: Regenerated.
7041 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7042 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7043 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7044 * regformats/i386/amd64-avx.dat: Regenerated.
7045 * regformats/i386/amd64-mpx.dat: Regenerated.
7046 * regformats/i386/amd64.dat: Regenerated.
7047
77c501bc
YQ
70482017-07-10 Yao Qi <yao.qi@linaro.org>
7049
7050 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7051 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7052
6dc8d757
AK
70532017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7054
7055 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7056 unsetenv.
7057 * gnulib/aclocal.m4: Regenerate.
7058 * gnulib/config.in: Regenerate.
7059 * gnulib/configure: Regenerate.
7060 * gnulib/import/Makefile.am: Regenerate.
7061 * gnulib/import/Makefile.in: Regenerate.
7062 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7063 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7064 * gnulib/import/m4/environ.m4: New file.
7065 * gnulib/import/m4/setenv.m4: New file.
7066 * gnulib/import/setenv.c: New file.
7067 * gnulib/import/unsetenv.c: New file.
7068
266934d1
SM
70692017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7070
7071 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7072 address when op is DW_OP_addr.
7073
03278692
TT
70742017-07-09 Tom Tromey <tom@tromey.com>
7075
7076 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7077 check and apply to outer type.
7078
4b654465
JB
70792017-07-07 John Baldwin <jhb@FreeBSD.org>
7080
7081 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7082 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7083 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7084 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7085
2af9fc44
JB
70862017-07-07 John Baldwin <jhb@FreeBSD.org>
7087
7088 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7089
382b69bb
JB
70902017-07-07 John Baldwin <jhb@FreeBSD.org>
7091
7092 * corelow.c (get_core_siginfo): Remove.
7093 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7094 instead of get_core_siginfo.
7095 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7096 * gdbarch.h: Re-generate.
7097 * gdbarch.c: Re-generate.
7098 * linux-tdep.c (linux_core_xfer_siginfo): New.
7099 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7100
6e5eab33
JB
71012017-07-07 John Baldwin <jhb@FreeBSD.org>
7102
7103 * corelow.c (thread_section_name): Move to ...
7104 * gdbcore.h (thread_section_name): ... here.
7105
929edea9
JB
71062017-07-07 John Baldwin <jhb@FreeBSD.org>
7107
7108 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7109 (struct siginfo32): New.
7110 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7111 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7112 via ptrace(PT_LWPINFO).
7113
762c974a
JB
71142017-07-07 John Baldwin <jhb@FreeBSD.org>
7115
7116 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7117 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7118 (fbsd_get_siginfo_type): New.
7119 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7120 (_initialize_fbsd_tdep): New.
7121
33c5cd75
DB
71222017-07-06 David Blaikie <dblaikie@gmail.com>
7123
7124 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7125 a singular dwo_unit*) to support multiple CUs in the same way that
7126 multiple TUs are supported.
7127 (create_cus_hash_table): Replace create_dwo_cu with a function for
7128 parsing multiple CUs from a DWO file.
7129 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7130 create_dwo_cu.
7131 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7132 htab_find, rather than comparing the signature to a singleton CU in
7133 the dwo_file.
7134
8455d262
PA
71352017-07-06 Pedro Alves <palves@redhat.com>
7136
7137 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7138
4da3eb35
PA
71392017-07-04 Pedro Alves <palves@redhat.com>
7140
7141 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7142 * gdbtypes.h (TYPE_STATIC): Delete.
7143 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7144 is_synchronized, is_native>: Delete.
7145 <dummy>: Bump.
7146 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7147 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7148 (TYPE_FN_FIELD_ABSTRACT): Delete.
7149
5bfd255c
SM
71502017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7151
7152 * buffer.h (buffer_finish): Fix spelling mistakes.
7153
25c54127
EZ
71542017-07-01 Eli Zaretskii <eliz@gnu.org>
7155
7156 * .dir-locals.el: Automatically switch to C-style comments in
7157 versions of Emacs that support the feature.
7158
dc4bde35
SDJ
71592017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7160 Pedro Alves <palves@redhat.com>
7161
7162 PR cli/21688
7163 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7164 (process_next_line): New variable 'inline_cmd'.
7165 Adjust 'if' clauses for "python", "compile" and "guile" to use
7166 'command_name_equals' and check for '!inline_cmd'.
7167
51ed89aa
SDJ
71682017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7169
7170 PR cli/21688
7171 * cli/cli-script.c (command_name_equals_not_inline): New function.
7172 (process_next_line): Adjust 'if' clauses for "python", "compile"
7173 and "guile" to use command_name_equals_not_inline.
7174
eb17d413
PA
71752017-06-29 Pedro Alves <palves@redhat.com>
7176
7177 * completer.c (expression_completer): Call
7178 linespec_location_completer instead of location_completer.
7179
195bcdd5
PA
71802017-06-29 Pedro Alves <palves@redhat.com>
7181
7182 * completer.c (expression_completer): Remove code that recomputes
7183 'text' from 'word'.
7184
adc764e7
YQ
71852017-06-29 Yao Qi <yao.qi@linaro.org>
7186
7187 * regformats/regdat.sh: Generate code with
7188 "ifndef IN_PROCESS_AGENT".
7189
6e75794e
PA
71902017-06-28 Pedro Alves <palves@redhat.com>
7191
7192 * command.h: Include "common/scoped_restore.h".
7193
bc491f2e
YQ
71942017-06-28 Yao Qi <yao.qi@linaro.org>
7195
7196 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7197 instead of obstack_grow.
7198
41664b45
DG
71992017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7200
7201 PR gdb/21337
7202 * symfile.c (reread_symbols): Call objfiles_changed just before
7203 read_symbols.
7204
6da67eb1
PA
72052017-06-27 Pedro Alves <palves@redhat.com>
7206
7207 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7208 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7209 (completion_list_add_symbol, completion_list_add_msymbol):
7210 ... these new functions.
7211 (add_symtab_completions)
7212 (default_make_symbol_completion_list_break_on_1): Adjust.
7213
23732b1e
PA
72142017-06-27 Pedro Alves <palves@redhat.com>
7215
7216 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7217 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7218 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7219 dtor.
7220 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7221 'storage_obstack' field an auto_obstack. In-class initialize all
7222 non-bitfield fields. Make minsyms_read bool.
7223 * symfile.c (read_symbols): Adjust.
7224
a4d1e79a
AH
72252017-06-27 Alan Hayward <alan.hayward@arm.com>
7226
7227 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7228 (gdbsim_store_register): Likewise.
7229
8268c778
PA
72302017-06-27 Pedro Alves <palves@redhat.com>
7231
7232 * c-exp.y (name_obstack): Now an auto_obstack.
7233 (yylex): Use auto_obstack::clear.
7234 (c_parse): Use auto_obstack::clear instead of reinitializing and
7235 freeing the obstack.
7236 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7237 * d-exp.y (name_obstack): Now an auto_obstack.
7238 (yylex): Use auto_obstack::clear.
7239 (d_parse): Use auto_obstack::clear instead of reinitializing and
7240 freeing the obstack.
7241 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7242 auto_obstack.
7243 * dwarf2read.c (create_addrmap_from_index)
7244 (dwarf2_build_psymtabs_hard)
7245 (update_enumeration_type_from_children): Likewise.
7246 * gdb_obstack.h (auto_obstack): New type.
7247 * go-exp.y (name_obstack): Now an auto_obstack.
7248 (build_packaged_name): Use auto_obstack::clear.
7249 (go_parse): Use auto_obstack::clear instead of reinitializing and
7250 freeing the obstack.
7251 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7252 auto_obstack.
7253 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7254 * rust-exp.y (work_obstack): Now an auto_obstack.
7255 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7256 reinitializing and freeing the obstack.
7257 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7258 (host_char_to_target): Use auto_obstack.
7259 * utils.h (make_cleanup_obstack_free): Delete declaration.
7260 * valprint.c (generic_emit_char, generic_printstr): Use
7261 auto_obstack.
7262
db665f42
SM
72632017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7264
7265 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7266 thread.
7267 (darwin_init_thread_list): Don't update dummy thread.
7268 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7269
873c0814
SM
72702017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7271
7272 * record-full.c (netorder16): Remove.
7273
8b5a7a6e
SM
72742017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7275
7276 * common/diagnostics.h: Define macros for GCC.
7277 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7278 * common/vec.h: Include diagnostics.h.
7279 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7280 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7281 warning.
7282
d1435379
SM
72832017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7284
7285 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7286 New macro.
7287 * ada-lex.l: Ignore deprecated register warnings.
7288
cc75e0fd
SM
72892017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7290
7291 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7292 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7293
07809eaf
SM
72942017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7295
7296 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7297 its own line.
7298
f076f034
SM
72992017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7300
7301 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7302
0dd5cbc5
AH
73032017-06-23 Alan Hayward <alan.hayward@arm.com>
7304
7305 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7306 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7307 (xtensa_register_read_masked): Likewise.
7308
d4c6ce5b
SDJ
73092017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7310
7311 * common/environ.c (gdb_environ::unset): Update comment.
7312
16892a03
AH
73132017-06-22 Alan Hayward <alan.hayward@arm.com>
7314
7315 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7316 registers.
7317
d7dcbefc
AH
73182017-06-22 Alan Hayward <alan.hayward@arm.com>
7319
7320 * record-full.c (record_full_exec_insn): Use byte_vector.
7321
b30ff123
YQ
73222017-06-22 Yao Qi <yao.qi@linaro.org>
7323
7324 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7325 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7326
4fa847d7
AH
73272017-06-22 Alan Hayward <alan.hayward@arm.com>
7328
7329 * remote.c (cached_reg): Move from here...
7330 * regcache.h (cached_reg): ...to here.
7331 * python/py-unwind.c (struct reg_info): Remove.
7332 (cached_frame_info): Use cached_reg_t.
7333 (pyuw_prev_register): Likewise.
7334 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7335 (pyuw_dealloc_cache): Free all registers.
7336
f4906a9a
PA
73372017-06-22 Pedro Alves <palves@redhat.com>
7338 Simon Marchi <simon.marchi@ericsson.com>
7339
7340 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7341 warning.
7342 * common/diagnostics.h: New file.
7343
b45a1208
PA
73442017-06-22 Pedro Alves <palves@redhat.com>
7345
7346 * common/agent.h: Add include guards.
7347
e4da2c61
SM
73482017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7349
7350 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7351 talk about addressable units instead of bytes.
7352
96160d60
SDJ
73532017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7354
7355 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7356 of '::const_iterator'.
7357
9a6c7d9c
SDJ
73582017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7359
7360 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7361 'unittests/environ-selftests.c'.
7362 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7363 * charset.c (find_charset_names): Declare object 'iconv_env'.
7364 Update code to use 'iconv_env' object. Remove call to
7365 'free_environ'.
7366 * common/environ.c: Include <utility>.
7367 (make_environ): Delete function.
7368 (free_environ): Delete function.
7369 (gdb_environ::clear): New function.
7370 (gdb_environ::operator=): New function.
7371 (gdb_environ::get): Likewise.
7372 (environ_vector): Delete function.
7373 (set_in_environ): Delete function.
7374 (gdb_environ::set): New function.
7375 (unset_in_environ): Delete function.
7376 (gdb_environ::unset): New function.
7377 (gdb_environ::envp): Likewise.
7378 * common/environ.h: Include <vector>.
7379 (struct gdb_environ): Delete; transform into...
7380 (class gdb_environ): ... this class.
7381 (free_environ): Delete prototype.
7382 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7383 environ_vector): Likewise.
7384 * infcmd.c (run_command_1): Update code to call
7385 'envp' from 'gdb_environ' class.
7386 (environment_info): Update code to call methods from 'gdb_environ'
7387 class.
7388 (unset_environment_command): Likewise.
7389 (path_info): Likewise.
7390 (path_command): Likewise.
7391 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7392 (inferior::inferior): Initialize 'environment' using the host's
7393 information.
7394 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7395 Include "environ.h".
7396 (class inferior) <environment>: Change type from 'struct
7397 gdb_environ' to 'gdb_environ'.
7398 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7399 methods from 'gdb_environ' class.
7400 * solib.c (solib_find_1): Likewise
7401 * unittests/environ-selftests.c: New file.
7402
75c554cf
YQ
74032017-06-20 Yao Qi <yao.qi@linaro.org>
7404
7405 * features/i386/i386-linux.xml: Exchange the order of including
7406 32bit-linux.xml and 32bit-sse.xml.
7407 * features/i386/i386-linux.c: Regenerated.
7408
72ddacb7
YQ
74092017-06-20 Yao Qi <yao.qi@linaro.org>
7410
7411 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7412 Delete copy ctor and assignment operator.
7413 (tdesc_type): Likewise.
7414 (tdesc_feature): Likewise.
7415 (tdesc_free_reg): Remove.
7416 (tdesc_create_reg): Use new.
7417 (tdesc_free_type): Remove.
7418 (tdesc_create_vector): Use new.
7419 (tdesc_create_union): Likewise.
7420 (tdesc_create_flags): Likewise.
7421 (tdesc_create_enum): Likewise.
7422 (tdesc_free_feature): Delete.
7423 (free_target_description): Use delete.
7424
325c9fd4
JB
74252017-06-19 John Baldwin <jhb@FreeBSD.org>
7426
7427 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7428 registers.
7429
16b7a719
PA
74302017-06-19 Pedro Alves <palves@redhat.com>
7431
7432 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7433 after gdb::unlinker.
7434
1c8e01c9
SDJ
74352017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7436
7437 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7438 gdb_environ to access an environment variable.
7439
ffce45d2
TP
74402017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7441
7442 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7443 gdb_byte*.
7444
1d4fbac9
SM
74452017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7446
7447 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7448
8465943a
SM
74492017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7450
7451 * configure: Re-generate.
7452 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7453
3e019bdc
SM
74542017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7455
7456 * configure: Re-generate.
7457 * warning.m4: Pass -Werror to compiler when checking for
7458 supported warning flags.
7459
cf0dd6f0
SM
74602017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7461
7462 * Makefile.in (COMPILE.pre): Add "-x c++".
7463
6f98355c
YQ
74642017-06-16 Alan Hayward <alan.hayward@arm.com>
7465 Pedro Alves <palves@redhat.com>
7466 Yao Qi <yao.qi@linaro.org>
7467
7468 * defs.h (RequireLongest): New.
7469 (extract_integer): Declare function template.
7470 (extract_signed_integer): Remove the declaration, but define it
7471 static inline.
7472 (extract_unsigned_integer): Likewise.
7473 (store_integer): Declare function template.
7474 (store_signed_integer): Remove the declaration, but define it
7475 static inline.
7476 (store_unsigned_integer): Likewise.
7477 * findvar.c (extract_integer): New function template.
7478 (extract_signed_integer): Remove.
7479 (extract_unsigned_integer): Remove.
7480 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7481 instantiations.
7482 (store_integer): New function template.
7483 (store_signed_integer): Remove.
7484 (store_unsigned_integer): Remove.
7485 (store_integer): Explicit instantiations.
7486 * regcache.c (regcache_raw_read_signed): Update.
7487 (regcache::raw_read): New function.
7488 (regcache::raw_read_signed): Remove.
7489 (regcache::raw_read_unsigned): Remove.
7490 (regcache_raw_read_unsigned): Update.
7491 (regcache_raw_write_unsigned): Update.
7492 (regcache::raw_write_signed): Remove.
7493 (regcache::raw_write): New function.
7494 (regcache_cooked_read_signed): Update.
7495 (regcache::raw_write_unsigned): Remove.
7496 (regcache::cooked_read_signed): Remove.
7497 (regcache_cooked_read_unsigned): Update.
7498 (regcache::cooked_read_unsigned): Remove.
7499 (regcache_cooked_write_signed): Update.
7500 (regcache_cooked_write_unsigned): Update.
7501 * regcache.h (regcache) <raw_read_signed>: Remove.
7502 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7503 <raw_read, raw_write>: New.
7504 <cooked_read_signed, cooked_write_signed>: Remove.
7505 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7506 <cooked_read, cooked_write>: New.
7507 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7508 (sh64_pseudo_register_write): Update.
7509
a87dc45a
AK
75102017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7511
7512 * arc-tdep.c (arc_disassembler_options): New variable.
7513 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7514 of default_print_insn.
7515 (arc_delayed_print_insn): Set info->section when needed,
7516 use default_print_insn to retrieve a disassembler.
7517
45159d6a
SDJ
75182017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7519
7520 PR gdb/21574
7521 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7522 to mention $SHELL and startup-with-shell.
7523
b46c4cf0
MF
75242017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7525
7526 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7527
6394c606
YQ
75282017-06-14 Yao Qi <yao.qi@linaro.org>
7529
7530 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7531 default_print_insn instead of print_insn_aarch64.
7532 * arm-tdep.c (gdb_print_insn_arm): Call
7533 default_print_insn instead of print_insn_big_arm
7534 and print_insn_little_arm.
7535 * i386-tdep.c (i386_print_insn): Call default_print_insn
7536 instead of print_insn_i386.
7537 * ia64-tdep.c (ia64_print_insn): Call
7538 default_print_insn instead of print_insn_ia64.
7539 * mips-tdep.c (gdb_print_insn_mips): Call
7540 default_print_insn instead of print_insn_big_mips
7541 and print_insn_little_mips.
7542 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7543 instead of print_insn_spu.
7544
d5722aa2
PA
75452017-06-14 Pedro Alves <palves@redhat.com>
7546
7547 * ada-lang.c: Include "common/byte-vector.h".
7548 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7549 * charset.c (wchar_iterator::iterate): Resize the vector instead
7550 of reserving it.
7551 * common/byte-vector.h: Include "common/def-vector.h".
7552 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7553 * cli/cli-dump.c: Include "common/byte-vector.h".
7554 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7555 * common/byte-vector.h: New file.
7556 * common/def-vector.h: New file.
7557 * common/default-init-alloc.h: New file.
7558 * dwarf2loc.c: Include "common/byte-vector.h".
7559 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7560 instead of reserving it.
7561 * dwarf2read.c: Include "common/byte-vector.h".
7562 (data_buf::m_vec): Now a gdb::byte_vector.
7563 * gdb_regex.c: Include "common/def-vector.h".
7564 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7565 * mi/mi-main.c: Include "common/byte-vector.h".
7566 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7567 * printcmd.c: Include "common/byte-vector.h".
7568 (print_scalar_formatted): Use gdb::byte_vector.
7569 * valprint.c: Include "common/byte-vector.h".
7570 (maybe_negate_by_bytes, print_decimal_chars): Use
7571 gdb::byte_vector.
7572
01ec7a27
SM
75732017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7574
7575 * darwin-nat.c: Include "nat/fork-inferior.h".
7576
848d9074
SM
75772017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7578
7579 * configure.nat: Factor out Darwin bits that are not
7580 architecture-specific. Add fork-inferior.o.
7581
3b912944
SM
75822017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7583
7584 * configure.nat: Factor out AIX bits that are not
7585 architecture-specific. Add fork-inferior.o.
7586
55acdf22
AA
75872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7588
7589 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7590 (read_pieced_value, write_pieced_value): ...here. Reduce to
7591 wrappers that just call rw_pieced_value.
7592
f65e2044
AA
75932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7594
7595 * dwarf2loc.c (write_pieced_value): When writing the data for a
7596 memory piece, use write_memory_with_notification instead of
7597 write_memory.
7598
23f945bf
AA
75992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7600
7601 * valops.c (read_value_memory): Change embedded_offset to
7602 represent a bit offset instead of a byte offset.
7603 * value.h (read_value_memory): Adjust comment.
7604
f236533e
AA
76052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7606
7607 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7608 dest_offset_bits and source_offset_bits.
7609 (write_pieced_value): Likewise.
7610
65d84b76
AA
76112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7612
7613 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7614 given by DW_OP_bit_piece.
7615 (write_pieced_value): Likewise.
7616
242d31ab
AA
76172017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7618
7619 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7620 some other preparations to the places where sufficient information
7621 is available.
7622 (write_pieced_value): Likewise.
7623
03c8af18
AA
76242017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7625
7626 * dwarf2loc.c (bits_to_bytes): New function.
7627 (read_pieced_value): Fix offset calculations for register pieces
7628 on big-endian targets.
7629 (write_pieced_value): Likewise.
7630
840989c1
AA
76312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7632
7633 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7634 (write_pieced_value): Likewise.
7635
359b19bb
AA
76362017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7637
7638 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7639 transfer the source value's least significant bits, instead of its
7640 lowest-addressed ones. Rename type_len to max_offset.
7641 (read_pieced_value): Mirror above changes to write_pieced_value as
7642 applicable.
7643
07c9ca3b
AA
76442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7645
7646 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7647 truncate full bytes from dest_offset_bits before using it as an
7648 offset into the buffer.
7649
f1cc9874
AA
76502017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7651
7652 * dwarf2loc.c (write_pieced_value): Include transfer size in
7653 byte-wise check.
7654
cdaac320
AA
76552017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7656
7657 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7658 calculation of this_size.
7659
af547a96
AA
76602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7661
7662 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7663 when targeting a bit-field.
7664 (write_pieced_value): Likewise.
7665
ddd7882a
AA
76662017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7667
7668 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7669 (allocate_piece_closure): Drop addr_size parameter.
7670 (dwarf2_evaluate_loc_desc_full): Adjust call to
7671 allocate_piece_closure.
7672
e9352324
AA
76732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7674
7675 PR gdb/21226
7676 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7677 the LSB end, independent of endianness.
7678
d5d1163e
AA
76792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7680
7681 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7682 size capping.
7683
032bb6ea
YQ
76842017-06-13 Yao Qi <yao.qi@linaro.org>
7685
7686 * mips-linux-nat.c: Move include features/mips*-linux.c to
7687 mips-linux-tdep.c.
7688 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7689 to mips-linux-tdep.c.
7690 * mips-linux-tdep.c: Include features/mips*-linux.c
7691 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7692 functions.
7693 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7694 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7695 (tdesc_mips64_dsp_linux): Declare.
7696
f12f6bad
TT
76972017-06-12 Tom Tromey <tom@tromey.com>
7698
7699 * valprint.h (val_print_type_code_int): Remove.
7700 * valprint.c (generic_val_print_int): Always call
7701 val_print_scalar_formatted.
7702 (val_print_type_code_int): Remove.
7703 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7704 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7705 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7706 * ada-valprint.c (ada_val_print_num): Use
7707 val_print_scalar_formatted.
7708
d9109c80
TT
77092017-06-12 Tom Tromey <tom@tromey.com>
7710
7711 * printcmd.c (print_scalar_formatted): Unify the two switches.
7712 Don't convert scalars to LONGEST.
7713
4ac0cb1c
TT
77142017-06-12 Tom Tromey <tom@tromey.com>
7715
7716 PR exp/16225:
7717 * valprint.h (print_decimal_chars): Update.
7718 * valprint.c (maybe_negate_by_bytes): New function.
7719 (print_decimal_chars): Add "is_signed" argument.
7720 * printcmd.c (print_scalar_formatted): Update.
7721
30a25466
TT
77222017-06-12 Tom Tromey <tom@tromey.com>
7723
7724 PR exp/16225:
7725 * valprint.h (print_binary_chars, print_hex_chars): Update.
7726 * valprint.c (val_print_type_code_int): Update.
7727 (print_binary_chars): Add "zero_pad" argument.
7728 (emit_octal_digit): New function.
7729 (print_octal_chars): Don't zero-pad.
7730 (print_decimal_chars): Likewise.
7731 (print_hex_chars): Add "zero_pad" argument.
7732 * sh64-tdep.c (sh64_do_fp_register): Update.
7733 * regcache.c (regcache::dump): Update.
7734 * printcmd.c (print_scalar_formatted): Update.
7735 * infcmd.c (default_print_one_register_info): Update.
7736
b3464d03
PA
77372017-06-12 Pedro Alves <palves@redhat.com>
7738 Alan Hayward <alan.hayward@arm.com>
7739
7740 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7741 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7742 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7743 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7744 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7745
4b76cda9
PA
77462017-06-12 Pedro Alves <palves@redhat.com>
7747
7748 * dwarf2read.c (mapped_symtab::data): Now a vector of
7749 symtab_index_entry instead of vector of
7750 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7751 whether an element's name is NULL instead of checking whether the
7752 element itself is NULL.
7753 (find_slot): Change return type. Adjust.
7754 (hash_expand, , add_index_entry, uniquify_cu_indices)
7755 (write_hash_table): Adjust.
7756
e8f8bcb3
PA
77572017-06-12 Pedro Alves <palves@redhat.com>
7758
7759 * dwarf2read.c (recursively_count_psymbols): New function.
7760 (write_psymtabs_to_index): Call it to compute number of psyms and
7761 pass estimate size of psyms_seen to unordered_set's ctor.
7762
70a1152b
PA
77632017-06-12 Pedro Alves <palves@redhat.com>
7764
7765 * dwarf2read.c (write_hash_table): Check if key already exists
7766 before emplacing.
7767
c2f134ac
PA
77682017-06-12 Pedro Alves <palves@redhat.com>
7769
7770 * dwarf2read.c (data_buf::append_space): Rename to...
7771 (data_buf::grow): ... this, and make private. Adjust all callers.
7772 (data_buf::append_uint): New method.
7773 (add_address_entry, write_one_signatured_type)
7774 (write_psymtabs_to_index): Use it.
7775
a81e6d4d
PA
77762017-06-12 Pedro Alves <palves@redhat.com>
7777
7778 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
7779 (file_write (FILE *, const std::vector<Elem>&)): Delete.
7780 (data_buf::file_write): Call ::fwrite directly.
7781
6fd931f2
PA
77822017-06-12 Pedro Alves <palves@redhat.com>
7783
7784 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
7785 std::vector::erase.
7786
bc8f2430
JK
77872017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7788
7789 Code cleanup: C++ify .gdb_index producer.
7790 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
7791 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
7792 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
7793 (create_strtab, add_string): Remove.
7794 (file_write, data_buf): New.
7795 (struct symtab_index_entry): Use std::vector for cu_indices.
7796 (struct mapped_symtab): Use std::vector for data.
7797 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
7798 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
7799 Remove.
7800 (find_slot): Change return type. Update it to the new data structures.
7801 (hash_expand, add_index_entry): Update it to the new data structures.
7802 (offset_type_compare): Remove.
7803 (uniquify_cu_indices): Update it to the new data structures.
7804 (c_str_view, c_str_view_hasher, vector_hasher): New.
7805 (add_indices_to_cpool): Remove.
7806 (write_hash_table): Update it to the new data structures.
7807 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
7808 (eq_psymtab_cu_index): Remove.
7809 (psym_index_map): New typedef.
7810 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
7811 reference and std::unordered_map for cu_index_htab.
7812 (add_address_entry, add_address_entry_worker, write_address_map)
7813 (write_psymbols): Update it to the new data structures.
7814 (write_obstack): Remove.
7815 (struct signatured_type_index_data): Change types_list to a data_buf
7816 reference and psyms_seen to a std::unordered_set reference.
7817 (write_one_signatured_type, recursively_write_psymbols)
7818 (write_psymtabs_to_index): Update it to the new data structures.
7819
c4dcb155
SM
78202017-06-11 Simon Marchi <simon.marchi@ericsson.com>
7821
7822 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
7823 separate-debug-file commands.
7824 * symfile.h (separate_debug_file_debug): New global.
7825 * symfile.c (separate_debug_file_debug): New global.
7826 (separate_debug_file_exists, find_separate_debug_file): Add
7827 debug output.
7828 (_initialize_symfile): Add "set debug separate-debug-file"
7829 command.
7830 * build-id.c (build_id_to_debug_bfd,
7831 find_separate_debug_file_by_buildid): Add debug output.
7832
6d45d4b4
SM
78332017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7834
7835 * gdbarch.sh (displaced_step_free_closure): Remove.
7836 * gdbarch.h, gdbarch.c: Re-generate.
7837 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
7838 displaced_step_free_closure.
7839 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7840 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7841 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7842 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7843 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7844 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7845 * arch-utils.h (simple_displaced_step_free_closure): Remove.
7846 * arch-utils.c (simple_displaced_step_free_closure): Remove.
7847 * infrun.c (displaced_step_clear): Call xfree instead of
7848 gdbarch_displaced_step_free_closure.
7849
2f91880f
SDJ
78502017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
7851
7852 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
7853 NULL".
7854
b8b6e72f
AH
78552017-06-08 Alan Hayward <alan.hayward@arm.com>
7856
7857 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
7858 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
7859 (mn10300_push_dummy_call): Likewise.
7860
5369082e
AH
78612017-06-08 Alan Hayward <alan.hayward@arm.com>
7862
7863 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
7864
ff4ca5ac
AH
78652017-06-08 Alan Hayward <alan.hayward@arm.com>
7866
7867 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
7868
aefd8b33
SDJ
78692017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7870
7871 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
7872 able to start inferiors using a shell.
7873 (New remote packets): Announce new packet "QStartupWithShell".
7874 * remote.c: Add PACKET_QStartupWithShell.
7875 (extended_remote_create_inferior): Handle new
7876 PACKET_QStartupWithShell.
7877 (remote_protocol_features) <QStartupWithShell>: New entry for
7878 PACKET_QStartupWithShell.
7879 (_initialize_remote): Call "add_packet_config_cmd" for
7880 QStartupShell.
7881
2090129c
SDJ
78822017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7883 Pedro Alves <palves@redhat.com>
7884
7885 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
7886 and "nat/fork-inferior.h".
7887 * common/common-inferior.h: New file, with contents from
7888 "gdb/inferior.h".
7889 * commom/common-utils.c: Include "common-utils.h".
7890 (stringify_argv): New function.
7891 * common/common-utils.h (stringify_argv): New prototype.
7892 * configure.nat: Add "fork-inferior.o" as a dependency for
7893 "*linux*", "fbsd*" and "nbsd*" hosts.
7894 * corefile.c (get_exec_file): Update comment.
7895 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
7896 instead of "startup_inferior".
7897 (darwin_create_inferior): Call "add_thread_silent" after
7898 "fork_inferior".
7899 * fork-child.c: Cleanup unnecessary includes.
7900 (SHELL_FILE): Move to "common/common-fork-child.c".
7901 (environ): Likewise.
7902 (exec_wrapper): Initialize.
7903 (get_exec_wrapper): New function.
7904 (breakup_args): Move to "common/common-fork-child.c"; rename to
7905 "breakup_args_for_exec".
7906 (escape_bang_in_quoted_argument): Move to
7907 "common/common-fork-child.c".
7908 (saved_ui): New variable.
7909 (prefork_hook): New function.
7910 (postfork_hook): Likewise.
7911 (postfork_child_hook): Likewise.
7912 (gdb_startup_inferior): Likewise.
7913 (fork_inferior): Move to "common/common-fork-child.c". Update
7914 function to support gdbserver.
7915 (startup_inferior): Likewise.
7916 * gdbcore.h (get_exec_file): Remove declaration.
7917 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
7918 instead of "startup_inferior". Call "add_thread_silent" after
7919 "fork_inferior".
7920 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
7921 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
7922 instead of "startup_inferior". Call "add_thread_silent" after
7923 "fork_inferior".
7924 * inferior.h: Include "common-inferior.h".
7925 (trace_start_error): Move to "common/common-utils.h".
7926 (trace_start_error_with_name): Likewise.
7927 (fork_inferior): Move prototype to "nat/fork-inferior.h".
7928 (startup_inferior): Likewise.
7929 (gdb_startup_inferior): New prototype.
7930 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
7931 * nat/fork-inferior.h: New file.
7932 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
7933 instead of "startup_inferior". Call "add_thread_silent" after
7934 "fork_inferior".
7935 * target.h (target_terminal_init): Move prototype to
7936 "target/target.h".
7937 (target_terminal_inferior): Likewise.
7938 (target_terminal_ours): Likewise.
7939 * target/target.h (target_terminal_init): New prototype, moved
7940 from "target.h".
7941 (target_terminal_inferior): Likewise.
7942 (target_terminal_ours): Likewise.
7943 * utils.c (gdb_flush_out_err): New function.
7944
043a4934
SDJ
79452017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7946
7947 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
7948 * common/common-gdbthread.h: New file, with parts from
7949 "gdb/gdbthread.h".
7950 * gdbthread.h: Include "common-gdbthread.h".
7951 (switch_to_thread): Moved to "common/common-gdbthread.h".
7952
15652511
SDJ
79532017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7954
7955 * Makefile.in (SFILES): Add "common/job-control.c".
7956 (HFILES_NO_SRCDIR): Add "common/job-control.h".
7957 (COMMON_OBS): Add "job-control.o".
7958 * common/job-control.c: New file, with contents from
7959 "gdb/inflow.c".
7960 * common/job-control.h: New file, with contents from "terminal.h".
7961 * fork-child.c: Include "job-control.h".
7962 * inflow.c: Include "job-control.h".
7963 (gdb_setpgid): Move to "common/common-inflow.c".
7964 (_initialize_inflow): Move setting of "job_control" to
7965 "handle_job_control".
7966 * terminal.h (job_control): Moved to "common/common-terminal.h".
7967 (gdb_setpgid): Likewise.
7968 * top.c: Include "job_control.h".
7969 * utils.c: Likewise.
7970 (job_control): Moved to "job-control.c".
7971
2d7cc5c7
PA
79722017-06-07 Pedro Alves <palves@redhat.com>
7973
7974 * Makefile.in (SFILES): Add gdb_regex.c.
7975 (COMMON_OBS): Add gdb_regex.o.
7976 * ada-lang.c (ada_add_standard_exceptions)
7977 (ada_add_exceptions_from_frame, name_matches_regex)
7978 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
7979 parameter type to compiled_regex. Adjust.
7980 (ada_exceptions_list): Use compiled_regex.
7981 * break-catch-throw.c (exception_catchpoint::pattern): Now a
7982 std::unique_ptr<compiled_regex>.
7983 (exception_catchpoint::~exception_catchpoint): Remove regfree
7984 call.
7985 (check_status_exception_catchpoint): Adjust to use compiled_regex.
7986 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
7987 * breakpoint.c (solib_catchpoint::compiled): Now a
7988 std::unique_ptr<compiled_regex>.
7989 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
7990 (check_status_catch_solib): Adjust to use compiled_regex.
7991 (add_solib_catchpoint): Adjust to use compiled_regex.
7992 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
7993 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
7994 compiled_regex reference. Adjust to use it.
7995 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
7996 declaration. Include "gdb_regex.h".
7997 (apropos_cmd): Change regex parameter to compiled_regex reference.
7998 * gdb_regex.c: New file.
7999 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8000 declarations.
8001 (class compiled_regex): New.
8002 * linux-tdep.c: Include "common/gdb_optional.h".
8003 (struct mapping_regexes): New, factored out from
8004 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8005 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8006 gdb::optional and remove cleanups. Adjust to compiled_regex.
8007 * probe.c: Include "common/gdb_optional.h".
8008 (collect_probes): Use compiled_regex and gdb::optional and remove
8009 cleanups.
8010 * skip.c: Include "common/gdb_optional.h".
8011 (skiplist_entry::compiled_function_regexp): Now a
8012 gdb::optional<compiled_regex>.
8013 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8014 (free_skiplist_entry): Remove regfree call.
8015 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8016 compiled_regex and gdb::optional.
8017 * symtab.c: Include "common/gdb_optional.h".
8018 (search_symbols): Use compiled_regex and gdb::optional.
8019 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8020 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8021 to gdb_regex.c.
8022
50d6adef
AH
80232017-06-07 Alan Hayward <alan.hayward@arm.com>
8024
8025 * regcache.c (regcache::save): Avoid buffer use.
8026 (regcache::dump): Likewise.
8027
4a8a33c8
AH
80282017-06-07 Alan Hayward <alan.hayward@arm.com>
8029
8030 * sh-tdep.c (sh_pseudo_register_read): Remove
8031 MAX_REGISTER_SIZE.
8032 (sh_pseudo_register_write): Likewise.
8033 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8034 (sh64_pseudo_register_write): Likewise
8035
d1be909e
AH
80362017-06-07 Alan Hayward <alan.hayward@arm.com>
8037
8038 * aarch64-tdep.c (aarch64_store_return_value): Use
8039 V_REGISTER_SIZE.
8040 (aarch64_pseudo_read_value): Likewise.
8041 (aarch64_pseudo_write): Likewise.
8042
f4a65042
YQ
80432017-06-06 Yao Qi <yao.qi@linaro.org>
8044
8045 * regformats/regdef.h (set_register_cache): Remove the
8046 declaration.
8047
9f7fb0aa
AH
80482017-06-06 Alan Hayward <alan.hayward@arm.com>
8049
8050 * frame.c (frame_unwind_register_signed): Use
8051 frame_unwind_register_value.
8052
e1e01040
PA
80532017-06-06 Pedro Alves <palves@redhat.com>
8054
8055 PR breakpoints/21553
8056 * breakpoint.c (create_breakpoints_sal_default)
8057 (init_breakpoint_sal, create_breakpoint_sal): Use
8058 gdb::unique_xmalloc_ptr for string parameters.
8059 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8060 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8061 (base_breakpoint_create_breakpoints_sal)
8062 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8063 (strace_marker_create_breakpoints_sal)
8064 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8065 string parameters.
8066 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8067 gdb::unique_xmalloc_ptr for string parameters.
8068 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8069 parameters.
8070
fbe654c8
AH
80712017-06-06 Alan Hayward <alan.hayward@arm.com>
8072
8073 * alpha-tdep.c (alpha_register_to_value): Use
8074 get_frame_register_value.
8075 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8076
ae0d01d6
AH
80772017-06-06 Alan Hayward <alan.hayward@arm.com>
8078
8079 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8080 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8081 (ia64_value_to_register): Likewise.
8082 (ia64_extract_return_value): Likewise.
8083 (ia64_store_return_value): Likewise.
8084 (ia64_push_dummy_call): Likewise.
8085
49cf576c
JB
80862017-06-04 Joel Brobecker <brobecker@adacore.com>
8087
8088 GDB 8.0 released.
8089
26b6a6ab
SM
80902017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8091
8092 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8093
22827c51
SM
80942017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8095
8096 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8097 parameter.
8098 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8099
0e05cf3a
SM
81002017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8101
8102 * event-loop.c (poll_timers): Unallocate timer using delete
8103 instead of xfree.
8104
c1fc2657
SM
81052017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8106
8107 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8108 (struct breakpoint) <~breakpoint>: New.
8109 (struct watchpoint): Inherit from breakpoint.
8110 <~watchpoint>: New.
8111 <base>: Remove.
8112 (struct tracepoint): Inherit from breakpoint.
8113 <base>: Remove.
8114 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8115 (struct longjmp_breakpoint): Inherit from breakpoint.
8116 <~longjmp_breakpoint>: New.
8117 <base>: Remove.
8118 (new_breakpoint_from_type): Remove casts.
8119 (watchpoint_in_thread_scope): Remove reference to base field.
8120 (watchpoint_del_at_next_stop): Likewise.
8121 (update_watchpoint): Likewise.
8122 (watchpoint_check): Likewise.
8123 (bpstat_check_watchpoint): Likewise.
8124 (set_longjmp_breakpoint): Likewise.
8125 (struct fork_catchpoint): Inherit from breakpoint.
8126 <base>: Remove.
8127 (struct solib_catchpoint): Inherit from breakpoint.
8128 <~solib_catchpoint>: New.
8129 <base>: Remove.
8130 (dtor_catch_solib): Change to ...
8131 (solib_catchpoint::~solib_catchpoint): ... this.
8132 (breakpoint_hit_catch_solib): Remove reference to base field.
8133 (add_solib_catchpoint): Likewise.
8134 (create_fork_vfork_event_catchpoint): Likewise.
8135 (struct exec_catchpoint): Inherit from breakpoint.
8136 <~exec_catchpoint>: New.
8137 <base>: Remove.
8138 (dtor_catch_exec): Change to ...
8139 (exec_catchpoint::~exec_catchpoint): ... this.
8140 (dtor_watchpoint): Change to ...
8141 (watchpoint::~watchpoint): ... this.
8142 (watch_command_1): Remove reference to base field.
8143 (catch_exec_command_1): Likewise.
8144 (base_breakpoint_dtor): Change to ...
8145 (breakpoint::~breakpoint): ... this.
8146 (base_breakpoint_ops): Remove dtor field value.
8147 (longjmp_bkpt_dtor): Change to ...
8148 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8149 (strace_marker_create_breakpoints_sal): Remove reference to base
8150 field.
8151 (delete_breakpoint): Don't manually call breakpoint destructor.
8152 (create_tracepoint_from_upload): Remove reference to base field.
8153 (trace_pass_set_count): Likewise.
8154 (initialize_breakpoint_ops): Don't initialize
8155 momentary_breakpoint_ops, don't set dtors.
8156 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8157 <~ada_catchpoint>: New.
8158 <base>: Remove.
8159 (create_excep_cond_exprs): Remove reference to base field.
8160 (dtor_exception): Change to ...
8161 (ada_catchpoint::~ada_catchpoint): ... this.
8162 (dtor_catch_exception): Remove.
8163 (dtor_catch_exception_unhandled): Remove.
8164 (dtor_catch_assert): Remove.
8165 (create_ada_exception_catchpoint): Remove reference to base
8166 field.
8167 (initialize_ada_catchpoint_ops): Don't set dtors.
8168 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8169 breakpoint.
8170 <~signal_catchpoint>: New.
8171 <base>: Remove.
8172 (signal_catchpoint_dtor): Change to ...
8173 (signal_catchpoint::~signal_catchpoint): ... this.
8174 (create_signal_catchpoint): Remove reference to base field.
8175 (initialize_signal_catchpoint_ops): Don't set dtor.
8176 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8177 from breakpoint.
8178 <~syscall_catchpoint>: New.
8179 <base>: Remove.
8180 (dtor_catch_syscall): Change to ...
8181 (syscall_catchpoint::~syscall_catchpoint): ... this.
8182 (create_syscall_event_catchpoint): Remove reference to base
8183 field.
8184 (initialize_syscall_catchpoint_ops): Don't set dtor.
8185 * break-catch-throw.c (struct exception_catchpoint): Inherit
8186 from breakpoint.
8187 <~exception_catchpoint>: New.
8188 <base>: Remove.
8189 (dtor_exception_catchpoint): Change to ...
8190 (exception_catchpoint::~exception_catchpoint): ... this.
8191 (handle_gnu_v3_exceptions): Remove reference to base field.
8192 (initialize_throw_catchpoint_ops): Don't set dtor.
8193 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8194 field.
8195 * remote.c (remote_get_tracepoint_status): Likewise.
8196 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8197 * tracefile.c (tracefile_fetch_registers): Likewise.
8198 * tracepoint.c (actions_command): Likewise.
8199 (validate_actionline): Likewise.
8200 (tfind_1): Likewise.
8201 (get_traceframe_location): Likewise.
8202 (find_matching_tracepoint_location): Likewise.
8203 (parse_tracepoint_status): Likewise.
8204 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8205
3b0871f4
SM
82062017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8207
8208 * breakpoint.c (struct longjmp_breakpoint): New struct.
8209 (is_tracepoint_type): Change return type to bool.
8210 (is_longjmp_type): New function.
8211 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8212 (set_raw_breakpoint_without_location): Use
8213 new_breakpoint_from_type.
8214 (set_raw_breakpoint): Likewise.
8215
a5e364af
SM
82162017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8217
8218 * breakpoint.c (new_breakpoint_from_type): New function.
8219 (create_breakpoint_sal): Use new_breakpoint_from_type and
8220 unique_ptr.
8221 (create_breakpoint): Likewise.
8222
ae3b3f34
SM
82232017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8224
8225 * memattr.c (mem_info_command): Rename to ...
8226 (info_mem_command): ... this.
8227 (mem_enable_command): Rename to ...
8228 (enable_mem_command): ... this.
8229 (mem_disable_command): Rename to ...
8230 (disable_mem_command): ... this.
8231 (mem_delete_command): Rename to ...
8232 (delete_mem_command): ... this.
8233 (_initialize_mem): Adjust function names.
8234
13ace077
MM
82352017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8236
8237 * btrace.c (handle_pt_insn_events): New.
8238 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8239 STATUS. Split into this and ...
8240 (handle_pt_insn_event_flags): ... this.
8241
c56ccc05
MM
82422017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8243
8244 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8245 and struct pt_insn.resynced.
8246 * configure: Regenerated.
8247 * config.in: Regenerated.
8248
08c3f6d2
TW
82492017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8250
8251 * btrace.c (ftrace_find_call_by_number): New function.
8252 (ftrace_new_function): Store objects, not pointers.
8253 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8254 ftrace_new_gap, ftrace_update_function,
8255 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8256 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8257 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8258 btrace_ends_with_single_insn, btrace_call_get): Account for
8259 btrace_thread_info::functions now storing objects.
8260 * btrace.h (struct btrace_thread_info): Add constructor.
8261 (struct btrace_thread_info) <functions>: Make std::vector.
8262 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8263 Initialize with default values.
8264 * record-btrace.c (record_btrace_frame_sniffer): Account for
8265 btrace_thread_info::functions now storing objects.
8266
8ffd39f2
TW
82672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8268
8269 * btrace.c: Remove typedef bfun_s.
8270 (ftrace_new_gap): Directly add gaps to the list of gaps.
8271 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8272 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8273 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8274 instead of gdb VEC.
8275
4aeb0dfc
TW
82762017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8277
8278 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8279 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8280 with btrace_thread_info::next_segment and
8281 btrace_thread_info::prev_segment.
8282 * btrace.h: Remove struct btrace_func_link.
8283 (struct btrace_function): Replace pair of function segment pointers
8284 with pair of indices.
8285 * python/py-record-btrace.c (btpy_call_prev_sibling,
8286 btpy_call_next_sibling): Replace references to
8287 btrace_thread_info::segment with btrace_thread_info::next_segment and
8288 btrace_thread_info::prev_segment.
8289 * record-btrace.c (record_btrace_frame_this_id): Use
8290 btrace_find_call_by_number.
8291
eb8f2b9c
TW
82922017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8293
8294 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8295 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8296 btrace_insn_next, btrace_insn_prev): Remove references to
8297 btrace_thread_info::flow.
8298 * btrace.h (struct btrace_function): Remove FLOW.
8299
42bfe59e
TW
83002017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8301
8302 * btrace.c (ftrace_find_call_by_number): New function.
8303 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8304 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8305 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8306 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8307 index.
8308 * btrace.h (struct btrace_function): Turn UP into an index.
8309 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8310 as an index.
8311 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8312 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8313 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8314
b54b03bd
TW
83152017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8316
8317 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8318 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8319 ftrace_update_function, ftrace_compute_global_level_offset,
8320 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8321 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8322 btrace_insn_end, btrace_is_empty): Remove references to
8323 btrace_thread_info::begin and btrace_thread_info::end.
8324 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8325 (struct btrace_thread_info) <functions>: Adjust comment.
8326 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8327 btrace_thread_info::begin.
8328
8286623c
TW
83292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8330
8331 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8332 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8333 ftrace_update_function): Remove arguments that implicitly were always
8334 BTINFO->END.
8335 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8336 Don't pass BTINFO->END.
8337
a0f1b963
TW
83382017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8339
8340 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8341 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8342 btrace_find_insn_by_number): Replace function segment pointer with
8343 index.
8344 (btrace_insn_cmp): Simplify.
8345 * btrace.h: (struct btrace_insn_iterator) Rename index to
8346 insn_index. Replace function segment pointer with index into function
8347 segment vector.
8348 * record-btrace.c (record_btrace_call_history): Replace function
8349 segment pointer use with index.
8350 (record_btrace_frame_sniffer): Retrieve function call segment through
8351 vector.
8352 (record_btrace_set_replay): Remove defunc't safety check.
8353
f158f208
TW
83542017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8355
8356 * btrace.c (btrace_ends_with_single_insn): New function.
8357 (btrace_call_get, btrace_call_number, btrace_call_begin,
8358 btrace_call_end, btrace_call_next, btrace_call_prev,
8359 btrace_find_call_by_number): Use index into call segment vector
8360 instead of pointer.
8361 (btrace_call_cmp): Simplify.
8362 * btrace.h (struct btrace_call_iterator): Replace function call segment
8363 pointer with index into vector.
8364 * record-btrace.c (record_btrace_call_history): Use index instead of
8365 pointer.
8366
521103fd
TW
83672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8368
8369 * btrace.c (btrace_insn_begin, btrace_insn_end,
8370 btrace_find_insn_by_number): Add btinfo to iterator.
8371 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8372
17b89b34
TW
83732017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8374
8375 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8376 and save pointers directly.
8377 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8378 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8379 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8380 changed signature of functions.
8381 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8382 (btrace_fetch): Remove code that adds btrace_function pointers to
8383 vector of btrace_functions.
8384 (btrace_clear): Simplify freeing vector of btrace_functions.
8385
2b51eddc
TW
83862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8387
8388 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8389 Replace VEC_* with std::vector functions.
8390 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8391 (struct btrace_thread_info)<functions>: Change type to std::vector.
8392
db6be0d5
SM
83932017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8394
8395 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8396 "Removed targets and native configurations" up. Merge duplicate
8397 "New commands" sub-sections. Add "New options" sub-sections.
8398
b057297a
AH
83992017-05-26 Alan Hayward <alan.hayward@arm.com>
8400
8401 * defs.h (copy_integer_to_size): New declaration.
8402 * findvar.c (copy_integer_to_size): New function.
8403 (do_cint_test): New selftest function.
8404 (copy_integer_to_size_test): Likewise.
8405 (_initialize_findvar): Likewise.
8406 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8407 (mips_fbsd_collect_reg): Use raw_collect_integer.
8408 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8409 (mips64_fill_gregset): Use raw_collect_integer
8410 (mips64_fill_fpregset): Use raw_supply_integer.
8411 * regcache.c (regcache::raw_supply_integer): New function.
8412 (regcache::raw_collect_integer): Likewise.
8413 * regcache.h: (regcache::raw_supply_integer): New declaration.
8414 (regcache::raw_collect_integer): Likewise.
8415
b77b02a5
YQ
84162017-05-24 Yao Qi <yao.qi@linaro.org>
8417
8418 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8419 (COMMON_OBS): Add gdbarch-selftests.o.
8420 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8421 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8422 * gdbarch-selftests.c: New file.
8423 * regcache.h (regcache) <~regcache>: Mark it virtual if
8424 GDB_SELF_TEST.
8425 <raw_write>: Likewise.
8426
e521e87e
YQ
84272017-05-24 Yao Qi <yao.qi@linaro.org>
8428
8429 * regcache.c (current_regcache): Change it to
8430 regcache::current_regcache.
8431 (regcache_observer_target_changed): Update.
8432 (regcache_thread_ptid_changed): Make it a regcache static
8433 method.
8434 (regcache_thread_ptid_changed): Update.
8435 (class regcache_access): New.
8436 (current_regcache_test): Update.
8437 (_initialize_regcache): Update.
8438 * regcache.h: Include forward_list.
8439 (regcache): Declare regcache_thread_ptid_changed and declare
8440 registers_changed_ptid as friend.
8441
d8e07dda
YQ
84422017-05-24 Yao Qi <yao.qi@linaro.org>
8443
8444 * i387-tdep.c (i387_register_to_value): Use register_size
8445 instead of TYPE_LENGTH.
8446 * m68k-tdep.c (m68k_register_to_value): Likewise.
8447
8c8f9122
YQ
84482017-05-24 Yao Qi <yao.qi@linaro.org>
8449
8450 * i387-tdep.c (i387_convert_register_p): Return false if type
8451 code isn't TYPE_CODE_FLT.
8452
68fce50f
YQ
84532017-05-24 Yao Qi <yao.qi@linaro.org>
8454
8455 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8456 length is 4.
8457 (alpha_register_to_value): Remove type length check.
8458 (alpha_value_to_register): Likewise.
8459
88954b49
YQ
84602017-05-24 Yao Qi <yao.qi@linaro.org>
8461
8462 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8463 TYPE_CODE_FLT.
8464
e3ec9b69
YQ
84652017-05-24 Yao Qi <yao.qi@linaro.org>
8466
8467 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8468 TYPE_CODE_FLT or not.
8469
cdd238da
YQ
84702017-05-24 Yao Qi <yao.qi@linaro.org>
8471
8472 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8473 * avr-tdep.c (avr_gdbarch_init): Likewise.
8474 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8475 * cris-tdep.c (cris_gdbarch_init): Likewise.
8476 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8477 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8478 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8480 * mep-tdep.c (mep_gdbarch_init): Likewise.
8481 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8482 * mips-tdep.c (mips_gdbarch_init): Likewise.
8483 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8484 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8485 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8486 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8487 * v850-tdep.c (v850_gdbarch_init): Likewise.
8488
7a3929c4
YQ
84892017-05-24 Yao Qi <yao.qi@linaro.org>
8490
8491 * selftest-arch.c (tests_with_arch): Call registers_changed
8492 and reinit_frame_cache.
8493 * selftest.c (run_self_tests): Likewise.
8494
f4985dba
YQ
84952017-05-24 Yao Qi <yao.qi@linaro.org>
8496
8497 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8498 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8499
ab20fa4a
YQ
85002017-05-24 Yao Qi <yao.qi@linaro.org>
8501
8502 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8503 set_gdbarch_print_insn.
8504
f532ab94
YQ
85052017-05-24 Yao Qi <yao.qi@linaro.org>
8506
8507 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8508 set_gdbarch_print_insn.
8509
39503f82
YQ
85102017-05-24 Yao Qi <yao.qi@linaro.org>
8511
8512 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8513 set_gdbarch_print_insn.
8514 * arc-tdep.c (arc_gdbarch_init): Likewise.
8515 * arch-utils.c: include dis-asm.h.
8516 (default_print_insn): New function.
8517 * arch-utils.h (default_print_insn): Declare.
8518 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8519 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8520 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8521 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8522 * frv-tdep.c (frv_gdbarch_init): Likewise.
8523 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8524 * gdbarch.sh (print_insn): Use default_print_insn.
8525 * gdbarch.c: Regenerated.
8526 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8527 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8528 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8529 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8530 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8531 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8532 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8533 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8534 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8535 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8536 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8537 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8538 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8539 * mt-tdep.c (mt_gdbarch_init): Likewise.
8540 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8541 * nios2-tdep.c (nios2_print_insn): Remove.
8542 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8543 * rx-tdep.c (rx_gdbarch_init): Likewise.
8544 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8545 * score-tdep.c (score_print_insn): Remove.
8546 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8547 * sh-tdep.c (sh_gdbarch_init): Likewise.
8548 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8549 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8550 * tic6x-tdep.c (tic6x_print_insn): Remove.
8551 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8552 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8553 * v850-tdep.c (v850_gdbarch_init): Likewise.
8554 * vax-tdep.c (vax_gdbarch_init): Likewise.
8555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8556 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8557
f7241d4f
JB
85582017-05-23 John Baldwin <jhb@FreeBSD.org>
8559
8560 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8561 (MIPS_FP0_REGNUM): Remove.
8562 (MIPS_FSR_REGNUM): Remove.
8563 (mips_fbsd_supply_fpregs): Use mips_regnum.
8564 (mips_fbsd_supply_gregs): Likewise.
8565 (mips_fbsd_collect_fpregs): Likewise.
8566 (mips_fbsd_collect_gregs): Likewise.
8567
d489d81d
JB
85682017-05-23 John Baldwin <jhb@FreeBSD.org>
8569
8570 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8571 (getpfpregs_supplies): New function.
8572 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8573 getfpregs_supplies.
8574 (mips_fbsd_store_inferior_registers): Likewise.
8575
e11b3cdc
PA
85762017-05-22 Pedro Alves <palves@redhat.com>
8577
8578 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8579 maintainer.
8580
0f068fb5
AH
85812017-05-22 Alan Hayward <alan.hayward@arm.com>
8582
8583 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8584 (store_register): Likewise.
8585 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8586 (get_decimal_float_return_value): Likewise.
8587 (do_ppc_sysv_return_value): Likewise.
8588 (ppc64_sysv_abi_push_integer): Likewise.
8589 (ppc64_sysv_abi_push_freg): Likewise.
8590 (ppc64_sysv_abi_return_value_base): Likewise.
8591 (ppc64_sysv_abi_return_value): Likewise.
8592 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8593 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8594 * rs6000-nat.c: Likewise.
8595 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8596 (rs6000_value_to_register): Likewise.
8597 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8598
e6cf65f2
TT
85992017-05-21 Tom Tromey <tom@tromey.com>
8600
8601 PR rust/21466:
8602 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8603 arrays as "[T]", not "[T; ]".
8604
43cc5389
TT
86052017-05-19 Tom Tromey <tom@tromey.com>
8606
8607 PR rust/21484:
8608 * rust-lang.c (exp_descriptor_rust): New function.
8609 (rust_language_defn): Use it.
8610 * p-lang.c (pascal_language_defn): Update.
8611 * opencl-lang.c (opencl_language_defn): Update.
8612 * objc-lang.c (objc_language_defn): Update.
8613 * m2-lang.c (m2_language_defn): Update.
8614 * language.h (struct language_defn)
8615 <la_watch_location_expression>: New member.
8616 * language.c (unknown_language_defn, auto_language_defn)
8617 (local_language_defn): Update.
8618 * go-lang.c (go_language_defn): Update.
8619 * f-lang.c (f_language_defn): Update.
8620 * d-lang.c (d_language_defn): Update.
8621 * c-lang.h (c_watch_location_expression): Declare.
8622 * c-lang.c (c_watch_location_expression): New function.
8623 (c_language_defn, cplus_language_defn, asm_language_defn)
8624 (minimal_language_defn): Use it.
8625 * breakpoint.c (watch_command_1): Call
8626 la_watch_location_expression.
8627 * ada-lang.c (ada_language_defn): Update.
8628
7a6e7fcc
RO
86292017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8630
6e7e1744
RO
8631 PR tui/21482
8632 * gdb_curses.h (NOMACROS): Define.
8633 (NCURSES_NOMACROS): Define.
8634
86352017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8636
8637 PR tui/21482
7a6e7fcc
RO
8638 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8639 arg to char *.
8640 * tui/tui-wingeneral.c (box_win): Likewise.
8641 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8642 (tui_show_source_line): Likewise.
8643 (tui_show_exec_info_content): Likewise.
8644
1933fd8e
VM
86452017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8646
8647 * sparc-tdep.c (sparc_structure_return_p)
8648 (sparc_arg_on_registers_p): New functions.
8649 (sparc32_store_arguments): Use them.
8650 * sparc64-tdep.c (sparc64_16_byte_align_p)
8651 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8652 Handle TYPE_CODE_ARRAY.
8653
21873064
YQ
86542017-05-17 Yao Qi <yao.qi@linaro.org>
8655
8656 * cli/cli-decode.c (add_alias_cmd): New function.
8657 * command.h (add_alias_cmd): Declare.
8658 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8659 instead call add_alias_cmd.
8660
2b351b19
PA
86612017-05-17 Pedro Alves <palves@redhat.com>
8662
8663 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8664 (nat_makefile_frag): ... this. All references updated.
8665 * configure.ac: Likewise.
8666 * configure.nat: Likewise. Enhance comments.
8667 * configure: Regenerate.
8668
5f2ad7a3
RO
86692017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8670
8671 * procfs.c (procfs_create_inferior): Change prototype to match
8672 definition.
8673
adf3dde5
EZ
86742017-05-13 Eli Zaretskii <eliz@gnu.org>
8675
8676 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8677 C++ compiler warning.
8678
6830f270
TT
86792017-05-12 Tom Tromey <tom@tromey.com>
8680
8681 PR rust/21483:
8682 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8683 recurse, just call value_struct_elt directly.
8684
68f2f2e3
TT
86852017-05-12 Tom Tromey <tom@tromey.com>
8686
8687 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8688 OP_RUST_ARRAY>: Fix.
8689
256afbc2
TT
86902017-05-12 Tom Tromey <tom@tromey.com>
8691
8692 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8693
94bb8dfe
YQ
86942017-05-09 Yao Qi <yao.qi@linaro.org>
8695
8696 * regcache.c: Include <forward_list>.
8697 (struct regcache_list): Remove.
8698 (current_regcache): Update.
8699 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8700 (regcache_thread_ptid_changed): Likewise.
8701 (registers_changed_ptid): Likewise.
8702 (current_regcache_size): Likewise.
8703
8248946c
YQ
87042017-05-09 Yao Qi <yao.qi@linaro.org>
8705
8706 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8707 (current_regcache_size): New function.
8708 (current_regcache_test): New function.
8709 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8710
313c5961
AH
87112017-05-08 Alan Hayward <alan.hayward@arm.com>
8712
8713 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8714 (print_gp_register_row): Use get_frame_register_value.
8715
27bfc1d1
AH
87162017-05-08 Alan Hayward <alan.hayward@arm.com>
8717
8718 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8719 (mips_supply_fpregset): Likewise.
8720 (mips64_supply_gregset): Likewise.
8721
146e6c5c
AH
87222017-05-08 Alan Hayward <alan.hayward@arm.com>
8723
8724 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8725 regcache->raw_supply_zeroed.
8726
e50f25ec
SDJ
87272017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8728
8729 * configure.nat: Rearrange 'case' statements to match
8730 host before cpu.
8731
21ea5acd
SDJ
87322017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8733
8734 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8735 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8736 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8737 "@nat_extra_makefile_frag@".
8738 (Makefile): Remove dependency on "@frags@".
8739 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8740 (data-directory/Makefile): Likewise.
8741 * config/aarch64/linux.mh: Deleted; moved contents to
8742 "gdb/configure.nat".
8743 * config/alpha/alpha-linux.mh: Likewise.
8744 * config/alpha/nbsd.mh: Likewise.
8745 * config/arm/linux.mh: Likewise.
8746 * config/arm/nbsdelf.mh: Likewise.
8747 * config/i386/cygwin.mh: Likewise.
8748 * config/i386/cygwin64.mh: Likewise.
8749 * config/i386/darwin.mh: Likewise.
8750 * config/i386/fbsd.mh: Likewise.
8751 * config/i386/fbsd64.mh: Likewise.
8752 * config/i386/go32.mh: Likewise.
8753 * config/i386/i386gnu.mh: Likewise.
8754 * config/i386/i386sol2.mh: Likewise.
8755 * config/i386/linux.mh: Likewise.
8756 * config/i386/linux64.mh: Likewise.
8757 * config/i386/mingw.mh: Likewise.
8758 * config/i386/mingw64.mh: Likewise.
8759 * config/i386/nbsd64.mh: Likewise.
8760 * config/i386/nbsdelf.mh: Likewise.
8761 * config/i386/nto.mh: Likewise.
8762 * config/i386/obsd.mh: Likewise.
8763 * config/i386/obsd64.mh: Likewise.
8764 * config/i386/sol2-64.mh: Likewise.
8765 * config/ia64/linux.mh: Likewise.
8766 * config/m32r/linux.mh: Likewise.
8767 * config/m68k/linux.mh: Likewise.
8768 * config/m68k/nbsdelf.mh: Likewise.
8769 * config/m68k/obsd.mh: Likewise.
8770 * config/m88k/obsd.mh: Likewise.
8771 * config/mips/fbsd.mh: Likewise.
8772 * config/mips/linux.mh: Likewise.
8773 * config/mips/nbsd.mh: Likewise.
8774 * config/mips/obsd64.mh: Likewise.
8775 * config/pa/linux.mh: Likewise.
8776 * config/pa/nbsd.mh: Likewise.
8777 * config/pa/obsd.mh: Likewise.
8778 * config/powerpc/aix.mh: Likewise.
8779 * config/powerpc/fbsd.mh: Likewise.
8780 * config/powerpc/linux.mh: Likewise.
8781 * config/powerpc/nbsd.mh: Likewise.
8782 * config/powerpc/obsd.mh: Likewise.
8783 * config/powerpc/ppc64-linux.mh: Likewise.
8784 * config/powerpc/spu-linux.mh: Likewise.
8785 * config/s390/linux.mh: Likewise.
8786 * config/sh/nbsd.mh: Likewise.
8787 * config/sparc/fbsd.mh: Likewise.
8788 * config/sparc/linux.mh: Likewise.
8789 * config/sparc/linux64.mh: Likewise.
8790 * config/sparc/nbsd64.mh: Likewise.
8791 * config/sparc/nbsdelf.mh: Likewise.
8792 * config/sparc/obsd64.mh: Likewise.
8793 * config/sparc/sol2.mh: Likewise.
8794 * config/tilegx/linux.mh: Likewise.
8795 * config/vax/nbsdelf.mh: Likewise.
8796 * config/vax/obsd.mh: Likewise.
8797 * config/xtensa/linux.mh: Likewise.
8798 * config/i386/i386gnu.mn: New file, with excerpts from
8799 "config/i386/i386gnu.mh".
8800 * configure: Regenerate.
8801 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
8802 *.mh files under "gdb/config".
8803 * configure.nat: New file, with contents from the
8804 "gdb/config/*/*.mh" files.
8805
7ed1acaf
TW
88062017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
8807
8808 * btrace.c (btrace_clear): Free insn vector.
8809
e13cb306
PA
88102017-05-05 Pedro Alves <palves@redhat.com>
8811
8812 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
8813 * configure: Regenerate.
8814
5ed8105e
PA
88152017-05-04 Pedro Alves <palves@redhat.com>
8816
8817 * Makefile.in (SFILES): Add progspace-and-thread.c.
8818 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
8819 (COMMON_OBS): Add progspace-and-thread.o.
8820 * breakpoint.c: Include "progspace-and-thread.h".
8821 (update_inserted_breakpoint_locations)
8822 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
8823 Use scoped_restore_current_pspace_and_thread.
8824 (create_std_terminate_master_breakpoint): Use
8825 scoped_restore_current_program_space.
8826 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
8827 (print_breakpoint_location): Use
8828 scoped_restore_current_program_space.
8829 (bp_loc_is_permanent): Use
8830 scoped_restore_current_pspace_and_thread.
8831 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
8832 (download_tracepoint_locations): Use
8833 scoped_restore_current_pspace_and_thread.
8834 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
8835 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
8836 (enum step_over_calls_kind): Moved from inferior.h.
8837 (class scoped_restore_current_thread): New class.
8838 * gdbthread.h (make_cleanup_restore_current_thread): Delete
8839 declaration.
8840 (scoped_restore_current_thread): New class.
8841 * infcmd.c: Include "common/gdb_optional.h".
8842 (continue_1, proceed_after_attach): Use
8843 scoped_restore_current_thread.
8844 (notice_new_inferior): Use scoped_restore_current_thread.
8845 * inferior.c: Include "progspace-and-thread.h".
8846 (restore_inferior, save_current_inferior): Delete.
8847 (add_inferior_command, clone_inferior_command): Use
8848 scoped_restore_current_pspace_and_thread.
8849 * inferior.h (scoped_restore_current_inferior): New class.
8850 * infrun.c: Include "progspace-and-thread.h" and
8851 "common/gdb_optional.h".
8852 (follow_fork_inferior): Use
8853 scoped_restore_current_pspace_and_thread.
8854 (scoped_restore_exited_inferior): New class.
8855 (handle_vfork_child_exec_or_exit): Use
8856 scoped_restore_exited_inferior,
8857 scoped_restore_current_pspace_and_thread,
8858 scoped_restore_current_thread and scoped_restore.
8859 (fetch_inferior_event): Use scoped_restore_current_thread.
8860 * linespec.c (decode_line_full, decode_line_1): Use
8861 scoped_restore_current_program_space.
8862 * mi/mi-main.c: Include "progspace-and-thread.h".
8863 (exec_continue): Use scoped_restore_current_thread.
8864 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
8865 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
8866 * proc-service.c (ps_pglobal_lookup): Use
8867 scoped_restore_current_program_space.
8868 * progspace-and-thread.c: New file.
8869 * progspace-and-thread.h: New file.
8870 * progspace.c (release_program_space, clone_program_space): Use
8871 scoped_restore_current_program_space.
8872 (restore_program_space, save_current_program_space)
8873 (save_current_space_and_thread): Delete.
8874 (switch_to_program_space_and_thread): Moved to
8875 progspace-and-thread.c.
8876 * progspace.h (save_current_program_space)
8877 (save_current_space_and_thread): Delete declarations.
8878 (scoped_restore_current_program_space): New class.
8879 * remote.c (remote_btrace_maybe_reopen): Use
8880 scoped_restore_current_thread.
8881 * symtab.c: Include "progspace-and-thread.h".
8882 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
8883 * thread.c (print_thread_info_1): Use
8884 scoped_restore_current_thread.
8885 (struct current_thread_cleanup): Delete.
8886 (do_restore_current_thread_cleanup)
8887 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
8888 (scoped_restore_current_thread::~scoped_restore_current_thread):
8889 ... this new dtor.
8890 (make_cleanup_restore_current_thread): Rename/convert to ...
8891 (scoped_restore_current_thread::scoped_restore_current_thread):
8892 ... this new ctor.
8893 (thread_apply_all_command): Use scoped_restore_current_thread.
8894 (thread_apply_command): Use scoped_restore_current_thread.
8895 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
8896 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
8897
f6223dbb
PA
88982017-05-04 Pedro Alves <palves@redhat.com>
8899
8900 * thread.c (make_cleanup_restore_current_thread): Move
8901 find_thread_ptid call before the is_stopped call. Assert that the
8902 thread is found. Replace is_stopped call by checking the thread's
8903 state directly. Remove unnecessary NULL-thread check.
8904
3c3ae77e
PA
89052017-05-04 Pedro Alves <palves@redhat.com>
8906
8907 * corelow.c (thread_section_name): New class.
8908 (get_core_register_section, get_core_siginfo): Use it.
8909
45eba0ab
AA
89102017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8911
8912 * corelow.c (sniff_core_bfd): Remove extra semicolon.
8913 (get_core_register_section): Remove xfree of NULL pointer.
8914
f81fdd35
AH
89152017-05-03 Alan Hayward <alan.hayward@arm.com>
8916
8917 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
8918 * regcache.c (regcache::raw_supply_zeroed): New function.
8919 * regcache.h (regcache::raw_supply_zeroed): New declaration.
8920
35837774
SM
89212017-05-03 Simon Marchi <simon.marchi@ericsson.com>
8922
8923 * gdbarch.sh: Remove commented out definition of
8924 TARGET_CHAR_BIT.
8925 * gdbarch.h: Re-generate.
8926
c94fee56
SDJ
89272017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
8928
8929 * configure: Regenerate.
8930
d17f7b36
SM
89312017-05-02 Simon Marchi <simon.marchi@ericsson.com>
8932
8933 * solib-target.c (solib_target_relocate_section_addresses):
8934 Remove num_section_bases, num_bases, segment_bases variables.
8935
b560ebd6
SM
89362017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8937
8938 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
8939
f2f46dfc
SM
89402017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8941
8942 * solib-target.c: Include <vector>
8943 (struct lm_info_target) <~lm_info_target>: Remove.
8944 <segment_bases, section_bases>: Change type to
8945 std::vector<CORE_ADDR>.
8946 (library_list_start_segment, library_list_start_section,
8947 library_list_end_library,
8948 solib_target_relocate_section_addresses): Adjust.
8949
a0ff9e1a
SM
89502017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8951
8952 * gdbarch.sh (software_single_step): Change return type to
8953 std::vector<CORE_ADDR>.
8954 * gdbarch.c, gdbarch.h: Re-generate.
8955 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
8956 Adjust.
8957 (arm_deal_with_atomic_sequence_raw): Adjust.
8958 (thumb_get_next_pcs_raw): Adjust.
8959 (arm_get_next_pcs_raw): Adjust.
8960 (arm_get_next_pcs): Adjust.
8961 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
8962 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
8963 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
8964 (alpha_software_single_step): Adjust.
8965 * alpha-tdep.h (alpha_software_single_step): Adjust.
8966 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
8967 * arm-tdep.c (arm_software_single_step): Adjust.
8968 (arm_breakpoint_kind_from_current_state): Adjust.
8969 * arm-tdep.h (arm_software_single_step): Adjust.
8970 * breakpoint.c (insert_single_step_breakpoint): Adjust.
8971 * cris-tdep.c (cris_software_single_step): Adjust.
8972 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
8973 (micromips_deal_with_atomic_sequence): Adjust.
8974 (deal_with_atomic_sequence): Adjust.
8975 (mips_software_single_step): Adjust.
8976 * mips-tdep.h (mips_software_single_step): Adjust.
8977 * moxie-tdep.c (moxie_software_single_step): Adjust.
8978 * nios2-tdep.c (nios2_software_single_step): Adjust.
8979 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
8980 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
8981 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
8982 * s390-linux-tdep.c (s390_software_single_step): Adjust.
8983 * sparc-tdep.c (sparc_software_single_step): Adjust.
8984 * spu-tdep.c (spu_software_single_step): Adjust.
8985 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
8986
ea480a30
SM
89872017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8988
8989 * gdbarch.sh: Use semi-colon as field separator instead of colon.
8990 * gdbarch.h: Re-generate.
8991
d050f7d7
TW
89922017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8993
8994 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
8995 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
8996 * python/py-instruction.c, python/py-instruction.h: New file.
8997 * python/py-record.c: Add py-instruction.h include.
8998 (gdbpy_initialize_record): Make gdb.Instruction a super class of
8999 gdb.RecordInstruction.
9000 * python/python-internal.h: Add gdbpy_initialize_instruction
9001 declaration.
9002 * python/python.c (do_start_initialization): Add
9003 gdbpy_initialize_instruction.
9004
14f819c8
TW
90052017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9006
9007 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9008 Remove.
9009 (btrace_func_from_recpy_func): New function.
9010 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9011 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9012 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9013 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9014 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9015 Also, use new helper functions.
9016 (btpy_list_item): Use new helper functions.
9017 (recpy_bt_function_call_history): Use new type name.
9018 (btpy_call_getset): Remove.
9019 (gdbpy_initialize_btrace): Remove code to initialize
9020 gdb.BtraceFunctionCall.
9021 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9022 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9023 recpy_bt_func_prev, recpy_bt_func_next): New export.
9024 * python/py-record.c (recpy_func_type): New static object.
9025 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9026 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9027 recpy_func_next): New function.
9028 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9029 (recpy_func_getset): New static object.
9030 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9031 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9032
0ed5da75
TW
90332017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9034
9035 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9036 (btpy_object, btpy_insn_type, btpy_new): Remove.
9037 (btpy_list_object): Use gdb.RecordInstruction type instead of
9038 gdb.BtraceInstruction type.
9039 (btrace_insn_from_recpy_insn): New function.
9040 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9041 btpy_new.
9042 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9043 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9044 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9045 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9046 instead of btpy_object.
9047 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9048 btpy_insn_data, btpy_insn_decode): Rename to ...
9049 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9050 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9051 recpy_bt_insn_decode): This. Also, use new helper functions.
9052 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9053 recpy_insn_type.
9054 (btpy_insn_getset): Remove.
9055 (gdbpy_initialize_btrace): Remove code to initialize
9056 gdb.BtraceInstruction. Use recpy_element_object.
9057 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9058 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9059 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9060 * python/py-record.c (recpy_insn_type): New static object.
9061 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9062 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9063 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9064 New function.
9065 (recpy_insn_getset): New static object.
9066 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9067 * python/py-record.h (recpy_element_object): New typedef.
9068 (recpy_insn_type, recpy_insn_new): New export.
9069
913aeadd
TW
90702017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9071
9072 * py-record-btrace.c (btpy_insn_new): Removed.
9073 (btpy_insn_or_gap_new): New function.
9074 (btpy_insn_error): Removed.
9075 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9076 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9077 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9078 btpy_insn_or_gap_new instead of btpy_insn_new.
9079 (btpy_insn_getset): Remove btpy_insn_error.
9080 * py-record.c (recpy_gap_type): New static object.
9081 (recpy_gap_object): New typedef.
9082 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9083 recpy_gap_reason_string): New function.
9084 (recpy_gap_getset): New static object.
9085 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9086 * py-record.h (recpy_gap_new): New export.
9087
a3be24ad
TW
90882017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9089
9090 * python/py-record.c (recpy_ptid): Remove.
9091 (recpy_record_getset): Remove recpy_ptid.
9092
ae20e79a
TW
90932017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9094
9095 * btrace.c (btrace_fetch): Set inferior_ptid.
9096 * python/py-record-btrace.c: Add "py-record.h" include.
9097 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9098 recpy_bt_end, recpy_bt_instruction_history,
9099 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9100 in gdb.Record object instead of current ptid.
9101 * python/py-record.c: Include new "py-record.h" file.
9102 (recpy_record_object): Moved to py-record.h.
9103 * python/py-record.h: New file.
9104
8d0050ea
TW
91052017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9106
9107 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9108 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9109 indentation.
9110
3f380b50
JB
91112017-05-01 Joel Brobecker <brobecker@adacore.com>
9112
9113 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9114 the past maintainers section.
9115
07495424
YQ
91162017-04-28 Yao Qi <yao.qi@linaro.org>
9117
9118 * infcmd.c (get_return_value): Use regcache ctor, and remove
9119 cleanup.
9120
deb1fa3e
YQ
91212017-04-28 Yao Qi <yao.qi@linaro.org>
9122 Pedro Alves <palves@redhat.com>
9123
9124 * regcache.c (regcache::regcache): New tag dispatch ctor.
9125 (do_cooked_read): Moved above.
9126 (regcache_dup): Use the tag dispatch ctor..
9127 * regcache.h (regcache): Declare ctor, delete copy ctor and
9128 assignment operator, remove friend regcache_dup.
9129
b421c83c
YQ
91302017-04-28 Yao Qi <yao.qi@linaro.org>
9131
9132 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9133 call method save instead of regcache_cpy.
9134 * regcache.h (struct regcache): Make regcache_dup a friend.
9135
ef79d9a3
YQ
91362017-04-28 Yao Qi <yao.qi@linaro.org>
9137
9138 * regcache.c (struct regcache): Move to regcache.h
9139 (regcache::arch): New method.
9140 (regcache_get_ptid): Update.
9141 (get_regcache_arch): Call arch method.
9142 (get_regcache_aspace): Call method aspace.
9143 (register_buffer): Change it to method.
9144 (regcache_save): Change it to regcache::save.
9145 (regcache_restore): Likewise.
9146 (regcache_cpy_no_passthrough): Remove the declaration.
9147 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9148 (regcache_cpy_no_passthrough): Change it to method
9149 cpy_no_passthrough.
9150 (regcache_register_status): Change it to method
9151 get_register_status.
9152 (regcache_invalidate): Change it to method invalidate.
9153 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9154 (regcache_raw_update): Change it to method raw_update.
9155 (regcache_raw_read): Likewise.
9156 (regcache_raw_read_signed): Likewise.
9157 (regcache_raw_read_unsigned): Likewise.
9158 (regcache_raw_write_signed): Likewise.
9159 (regcache_raw_write_unsigned): Likewise.
9160 (regcache_cooked_read): Likewise.
9161 (regcache_cooked_read_value): Likewise.
9162 (regcache_cooked_read_signed): Likewise.
9163 (regcache_cooked_read_unsigned): Likewise.
9164 (regcache_cooked_write_signed): Likewise.
9165 (regcache_cooked_write_unsigned): Likewise.
9166 (regcache_raw_set_cached_value): Likewise.
9167 (regcache_raw_write): Likewise.
9168 (regcache_cooked_write): Likewise.
9169 (regcache_xfer_part): Likewise.
9170 (regcache_raw_read_part): Likewise.
9171 (regcache_raw_write_part): Likewise.
9172 (regcache_cooked_read_part): Likewise.
9173 (regcache_cooked_write_part): Likewise.
9174 (regcache_raw_supply): Likewise.
9175 (regcache_raw_collect): Likewise.
9176 (regcache_transfer_regset): Likewise.
9177 (regcache_supply_regset): Likewise.
9178 (regcache_collect_regset): Likewise.
9179 (regcache_debug_print_register): Likewise.
9180 (enum regcache_dump_what): Move it to regcache.h.
9181 (regcache_dump): Change it to method dump.
9182 * regcache.h (enum regcache_dump_what): New.
9183 (class regcache): New.
9184 * target.c (target_fetch_registers): Call method
9185 debug_print_register.
9186 (target_store_registers): Likewise.
9187
f8fdb78e
SM
91882017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9189
9190 * windows-nat.c (struct lm_info_windows): Initialize field.
9191 (windows_make_so): Allocate lm_info_windows with new.
9192 (windows_free_so): Free lm_info_windows with delete.
9193
9ccbfd7b
SM
91942017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9195
9196 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9197 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9198 cleanup.
9199 (darwin_free_so): Free lm_info_darwin with delete.
9200
76e75227
SM
92012017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9202
9203 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9204 <l_addr_p>: Change type to bool.
9205 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9206 (svr4_free_so): Free lm_info_svr4 with delete.
9207 (svr4_copy_library_list): Replace memcpy with call to copy
9208 constructor.
9209 (library_list_start_library, svr4_default_sos): Allocate
9210 lm_info_svr4 with new.
9211
51046d9e
SM
92122017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9213
9214 * solib-target.c (struct lm_info_target): Add destructor,
9215 initialize fields.
9216 <name>: Change type to std::string.
9217 (library_list_start_library): Allocate lm_info_target with new.
9218 (solib_target_free_library_list): Free lm_info_target with
9219 delete.
9220 (solib_target_current_sos): Adapt to std::string.
9221 (solib_target_free_so): Free lm_info_target with delete.
9222
4023ae76
SM
92232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9224
9225 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9226 fields.
9227 (frv_current_sos): Allocate lm_info_frv with new.
9228 (frv_relocate_main_executable): Free lm_info_frv with delete,
9229 allocate with new.
9230 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9231
af43057b
SM
92322017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9233
9234 * solib-frv.c (struct lm_info_frv): Fix indentation.
9235
b0911207
SM
92362017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9237
9238 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9239 map field.
9240 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9241 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9242 and allocate with new.
9243 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9244
6c401f72
SM
92452017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9246
9247 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9248 <filename, member_name>: Change type to std::string.
9249 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9250 (library_list_start_library): Allocate lm_info_aix with new.
9251 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9252 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9253 with copy constructor.
9254
d0e449a1
SM
92552017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9256
9257 * solist.h (struct lm_info): Remove.
9258 (struct lm_info_base): New class.
9259 (struct so_list) <lm_info>: Change type to lm_info_base *.
9260 * nto-tdep.c (struct lm_info): Remove.
9261 (lm_addr): Adjust.
9262 * solib-aix.c (struct lm_info): Rename to ...
9263 (struct lm_info_aix): ... this. Extend lm_info_base.
9264 (lm_info_p): Rename to ...
9265 (lm_info_aix_p): ... this, and adjust.
9266 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9267 solib_aix_parse_libraries, library_list_start_library,
9268 solib_aix_free_library_list, solib_aix_parse_libraries,
9269 solib_aix_get_library_list,
9270 solib_aix_relocate_section_addresses, solib_aix_free_so,
9271 solib_aix_get_section_offsets,
9272 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9273 Adjust.
9274 (struct solib_aix_inferior_data) <library_list>: Adjust.
9275 * solib-darwin.c (struct lm_info): Rename to ...
9276 (struct lm_info_darwin): ... this. Extend lm_info_base.
9277 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9278 * solib-dsbt.c (struct lm_info): Rename to ...
9279 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9280 (struct dsbt_info) <main_executable_lm_info): Adjust.
9281 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9282 dsbt_relocate_section_addresses): Adjust.
9283 * solib-frv.c (struct lm_info): Rename to ...
9284 (struct lm_info_frv): ... this. Extend lm_info_base.
9285 (main_executable_lm_info): Adjust.
9286 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9287 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9288 find_canonical_descriptor_in_load_object,
9289 frv_fdpic_find_canonical_descriptor): Adjust.
9290 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9291 to lm_info_svr4.
9292 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9293 svr4_clear_so, svr4_copy_library_list,
9294 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9295 svr4_current_sos, svr4_fetch_objfile_link_map,
9296 solist_update_incremental): Adjust.
9297 * solib-svr4.h (struct lm_info_svr4): Move here from
9298 solib-svr4.c.
9299 * solib-target.c (struct lm_info): Rename to ...
9300 (struct lm_info_target): ... this. Extend lm_info_base.
9301 (lm_info_p): Rename to ...
9302 (lm_info_target_p): ... this.
9303 (solib_target_parse_libraries, library_list_start_segment,
9304 library_list_start_section, library_list_start_library,
9305 library_list_end_library, solib_target_free_library_list,
9306 solib_target_current_sos, solib_target_free_so,
9307 solib_target_relocate_section_addresses): Adjust.
9308 * windows-nat.c (struct lm_info): Rename to ...
9309 (struct lm_info_windows): ... this. Extend lm_info_base.
9310 (windows_make_so, handle_load_dll, handle_unload_dll,
9311 windows_xfer_shared_libraries): Adjust.
9312
434a4023
SM
93132017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9314
9315 * solib-darwin.c (struct darwin_so_list): Remove.
9316 (darwin_current_sos): Allocate an so_list object instead of a
9317 darwin_so_list, separately allocate an lm_info object.
9318 (darwin_free_so): Free lm_info.
9319
428544e8
JB
93202017-04-28 John Baldwin <jhb@FreeBSD.org>
9321
9322 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9323 with fprintf_filtered.
9324
4621115f
YQ
93252017-04-28 Yao Qi <yao.qi@linaro.org>
9326
9327 * regcache.c (regcache::regcache): New function.
9328 (regcache::~regcache): New function.
9329 (regcache_xmalloc_1): Remove.
9330 (regcache_xmalloc): Call new regcache.
9331 (regcache_xfree): Call delete regcache.
9332 (get_thread_arch_aspace_regcache): Call new regcache.
9333
339053c2
YQ
93342017-04-28 Yao Qi <yao.qi@linaro.org>
9335
9336 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9337 lwp instead of ptid_get_lwp.
9338
7974a605
YQ
93392017-04-28 Yao Qi <yao.qi@linaro.org>
9340
9341 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9342 lwp_info instead of getting from inferior_ptid.
9343
e15c3eb4
KS
93442017-04-27 Keith Seitz <keiths@redhat.com>
9345
9346 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9347 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9348 (CV_CONVERSION_BADNESS): Define.
9349 (rank_one_type): Remove overly restrictive rvalue reference
9350 rank checks.
9351 Add cv-qualifier checks and subranks for type equality.
9352 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9353 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9354 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9355
72bc1d24
SM
93562017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9357
9358 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9359 count when creating the object.
9360
55bcecda
UW
93612017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9362 Ulrich Weigand <uweigand@de.ibm.com>
9363
9364 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9365 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9366 is used in AIX.
9367 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9368 (process_xcoff_symbol): Likewise.
9369 (scan_xcoff_symtab): Likewise.
9370
5c99fcf8
AH
93712017-04-26 Alan Hayward <alan.hayward@arm.com>
9372
9373 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9374 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9375 (ia64_access_reg): Use get_frame_register_unsigned.
9376 (ia64_access_rse_reg): Likewise.
9377 (ia64_libunwind_frame_prev_register): Likewise.
9378
b41c5a85
JW
93792017-04-26 Jiong Wang <jiong.wang@arm.com>
9380
9381 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9382 * gdbarch.c: Regenerated.
9383 * gdbarch.h: Regenerated.
9384 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9385 visibility external.
9386 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9387 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9388 (enum cfa_how_kind): Move to ...
9389 (struct dwarf2_frame_state_reg_info): Likewise.
9390 (struct dwarf2_frame_state): Likewise.
9391 * dwarf2-frame.h: ... here.
9392 (dwarf2_frame_state_alloc_regs): New declaration.
9393 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9394 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9395
c185f580
AH
93962017-04-26 Alan Hayward <alan.hayward@arm.com>
9397
9398 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9399 regcache_raw_read_unsigned.
9400 (xtensa_pseudo_register_write): Likewise.
9401
19c45594
AH
94022017-04-26 Alan Hayward <alan.hayward@arm.com>
9403
9404 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9405 (nds32_pseudo_register_write): Likewise.
9406
4658f12e
YQ
94072017-04-25 Yao Qi <yao.qi@linaro.org>
9408
9409 * regcache.c (struct regcache) <readonly_p>: Change its type
9410 to bool.
9411 (regcache_xmalloc_1): Update parameter type and callers update.
9412
d581dda8
YQ
94132017-04-25 Yao Qi <yao.qi@linaro.org>
9414
9415 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9416 set_gdbarch_wchar_bit.
9417 * arm-tdep.c (arm_gdbarch_init): Likewise.
9418
debed3db
PA
94192017-04-25 Pedro Alves <palves@redhat.com>
9420
9421 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9422 (BothAreRelocatable, memcopy, memmove): Don't define.
9423 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9424 macros.
9425
b0b92aeb
PA
94262017-04-25 Pedro Alves <palves@redhat.com>
9427
9428 * common/common-defs.h: Include "common/poison.h".
9429 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9430 and adjust.
9431 * common/poison.h: New file.
9432 * common/traits.h: Include <type_traits>.
9433 (Not, Or, Requires): New, moved from common/function-view.h.
9434
16c4d54a
PA
94352017-04-25 Pedro Alves <palves@redhat.com>
9436
9437 * breakpoint.h (struct breakpoint): In-class initialize all
9438 fields. Make boolean fields "bool".
9439 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9440 memset call and initializations no longer necessary.
9441
b5c36682
PA
94422017-04-25 Pedro Alves <palves@redhat.com>
9443
9444 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9445 reference.
9446 (pt_btrace_insn): New function.
9447 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9448
5625a286
PA
94492017-04-25 Pedro Alves <palves@redhat.com>
9450
9451 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9452 "base" field and inherit from "bp_location" instead. Add
9453 non-default ctor.
9454 (allocate_location_exception): Use new non-default ctor.
9455 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9456 (init_bp_location): Convert to ...
9457 (bp_location::bp_location): ... this new ctor, and remove memset
9458 call.
9459 (base_breakpoint_allocate_location): Use the new non-default ctor.
9460 * breakpoint.h (bp_location): Now a class. Declare default and
9461 non-default ctors. In-class initialize all members.
9462 (init_bp_location): Remove declaration.
9463
23bcc18f
PA
94642017-04-25 Pedro Alves <palves@redhat.com>
9465
9466 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9467 assignment operator.
9468
e1ba3053
YQ
94692017-04-24 Yao Qi <yao.qi@linaro.org>
9470
9471 * doublest.c (convert_doublest_to_floatformat): Call
9472 floatformat_totalsize_bytes.
9473
10f489e5
TT
94742017-04-22 Tom Tromey <tom@tromey.com>
9475
9476 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9477 ui_out_emit_list.
9478 * stack.c (print_frame): Use ui_out_emit_list.
9479 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9480 ui_out_emit_list.
9481 * mi/mi-main.c (print_one_inferior)
9482 (mi_cmd_data_list_register_names)
9483 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9484 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9485 ui_out_emit_list.
9486 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9487 (mi_output_solib_attribs): Use ui_out_emit_list,
9488 ui_out_emit_tuple.
9489 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9490 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9491 (mi_cmd_stack_list_args, list_args_or_locals): Use
9492 ui_out_emit_list.
9493 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9494 * breakpoint.c (print_solib_event, output_thread_groups): Use
9495 ui_out_emit_list.
9496
0092b74d
TT
94972017-04-22 Tom Tromey <tom@tromey.com>
9498
9499 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9500 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9501 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9502
a14a62dd
TT
95032017-04-22 Tom Tromey <tom@tromey.com>
9504
9505 * tracepoint.c (tvariables_info_1)
9506 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9507
46b9c129
TT
95082017-04-22 Tom Tromey <tom@tromey.com>
9509
9510 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9511 annotate_arg_emitter.
9512 * breakpoint.c (print_mention_watchpoint)
9513 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9514 * annotate.h (struct annotate_arg_emitter): New.
9515
2e783024
TT
95162017-04-22 Tom Tromey <tom@tromey.com>
9517
9518 * record-btrace.c (record_btrace_insn_history)
9519 (record_btrace_insn_history_range, record_btrace_call_history)
9520 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9521 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9522 ui_out_emit_tuple.
9523 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9524 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9525 * skip.c (skip_info): Use ui_out_emit_tuple.
9526 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9527 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9528 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9529 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9530 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9531 ui_out_emit_tuple.
9532 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9533 (output_register, mi_cmd_data_read_memory)
9534 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9535 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9536 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9537 Use ui_out_emit_tuple.
9538 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9539 ui_out_emit_tuple.
9540 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9541 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9542 * linux-thread-db.c (info_auto_load_libthread_db): Use
9543 ui_out_emit_tuple.
9544 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9545 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9546 * disasm.c (do_mixed_source_and_assembly_deprecated)
9547 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9548 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9549 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9550 * breakpoint.c (print_one_breakpoint_location)
9551 (print_one_breakpoint): Use ui_out_emit_tuple.
9552 * auto-load.c (print_script, info_auto_load_cmd): Use
9553 ui_out_emit_tuple.
9554 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9555
9be21bb4
SM
95562017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9557
9558 * thread.c (print_thread_info_1): Remove dead code.
9559
0d4c07af
JK
95602017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9561
9562 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9563 GDB_SELF_TEST.
9564 * arm-tdep.c (selftests::arm_record_test): Likewise.
9565
4daf993d
YQ
95662017-04-21 Yao Qi <yao.qi@linaro.org>
9567
9568 * regcache.c (regcache_restore): Remove argument 2. Replace
9569 argument 3 with regcache. Get register status from
9570 src->register_status and get register contents from
9571 register_buffer (src, regnum).
9572 (regcache_cpy): Update.
9573
a6c21d4a
PA
95742017-04-19 Pedro Alves <palves@redhat.com>
9575
9576 * gdbthread.h (thread): Add missing closing parenthesis in
9577 comment.
9578
3a3fd0fd
PA
95792017-04-19 Pedro Alves <palves@redhat.com>
9580
9581 * common/refcounted-object.h: New file.
9582 * gdbthread.h: Include "common/refcounted-object.h".
9583 (thread_info): Inherit from refcounted_object and add comments.
9584 (thread_info::incref, thread_info::decref)
9585 (thread_info::m_refcount): Delete.
9586 (thread_info::deletable): Use the refcounted_object::refcount()
9587 method.
9588 * inferior.c (current_inferior_): Add comment.
9589 (set_current_inferior): Increment/decrement refcounts.
9590 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9591 not-deletable instead of comparing with the current inferior.
9592 (initialize_inferiors): Increment the initial inferior's refcount.
9593 * inferior.h (struct inferior): Forward declare.
9594 Include "common/refcounted-object.h".
9595 (current_inferior, set_current_inferior): Move declaration to
9596 before struct inferior's definition, and fix comment.
9597 (inferior): Inherit from refcounted_object. Add comments.
9598 * thread.c (switch_to_thread_no_regs): Reference the thread's
9599 inferior pointer directly instead of doing a ptid lookup.
9600 (switch_to_no_thread): New function.
9601 (switch_to_thread(thread_info *)): New function, factored out
9602 from ...
9603 (switch_to_thread(ptid_t)): ... this.
9604 (restore_current_thread): Delete.
9605 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9606 fields, and add 'inf' field.
9607 (do_restore_current_thread_cleanup): Check whether old->inf is
9608 alive instead of looking up an inferior by ptid. Use
9609 switch_to_thread and switch_to_no_thread.
9610 (restore_current_thread_cleanup_dtor): Use old->inf directly
9611 instead of lookup up an inferior by id. Decref the inferior.
9612 Don't restore 'removable'.
9613 (make_cleanup_restore_current_thread): Same the inferior pointer
9614 in old, instead of the inferior number. Incref the inferior.
9615 Don't save/clear 'removable'.
9616
9bcb1f16
PA
96172017-04-19 Pedro Alves <palves@redhat.com>
9618
9619 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9620 unittests/scoped_restore-selftests.c.
9621 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9622 * common/scoped_restore.h (scoped_restore_base): Make "class".
9623 (scoped_restore_base::release): New public method.
9624 (scoped_restore_base::scoped_restore_base): New protected ctor.
9625 (scoped_restore_base::m_saved_var): New protected field.
9626 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9627 scoped_restore_base base class instead of m_saved_var directly.
9628 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9629 (scoped_restore_tmpl::scoped_restore_tmpl(const
9630 scoped_restore_tmpl<T>&)): Likewise.
9631 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9632 method.
9633 (scoped_restore_tmpl::saved_var): New method.
9634 (scoped_restore_tmpl::m_saved_var): Delete.
9635 * inferior.h (inferior::detaching): Now a bool.
9636 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9637 cleanup.
9638 * unittests/scoped_restore-selftests.c: New file.
9639
26fcd539
PA
96402017-04-19 Pedro Alves <palves@redhat.com>
9641
9642 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9643 Re-sort in alphabetic order.
9644
fdd243b0
PA
96452017-04-18 Pedro Alves <palves@redhat.com>
9646
9647 * xml-support.c (obstack_xml_printf): Delete.
9648 * xml-support.h (obstack_xml_printf): Delete.
9649
4895cde2
PA
96502017-04-18 Pedro Alves <palves@redhat.com>
9651
9652 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9653 vdebug, verror, body_text, start_element, end_element, name,
9654 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9655 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9656 is_xinclude>: Make private and add m_ prefix.
9657 (gdb_xml_parser::body_text): New method, based on ...
9658 (gdb_xml_body_text): ... this. Adjust.
9659 (gdb_xml_parser::vdebug): New method, based on ...
9660 (gdb_xml_debug): ... this. Adjust.
9661 (gdb_xml_parser::verror): New method, based on ...
9662 (gdb_xml_error): ... this. Adjust.
9663 (gdb_xml_parser::start_element): New method, based on ...
9664 (gdb_xml_start_element): ... this. Adjust.
9665 (gdb_xml_start_element_wrapper): Defer to
9666 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9667 (gdb_xml_parser::end_element): New method, based on ...
9668 (gdb_xml_end_element_wrapper): ... this. Adjust.
9669 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9670 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9671 (gdb_xml_parser::use_dtd): New method, based on ...
9672 (gdb_xml_use_dtd): ... this. Adjust.
9673 (gdb_xml_parser::parse): New method, based on ...
9674 (gdb_xml_parse): ... this. Adjust.
9675 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9676 (xinclude_start_include): Adjust to call the parser's name method.
9677 (xml_xinclude_default, xml_xinclude_start_doctype)
9678 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9679 method.
9680 (xml_process_xincludes): Adjust to call parser methods.
9681 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9682 declarations.
9683
bd8a901f
PA
96842017-04-18 Pedro Alves <palves@redhat.com>
9685
9686 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9687 gdb::optional<std::string>.
9688 * xml-support.c: Include <string>.
9689 (scope_level::scope_level(scope_level &&))
9690 (scope_level::~scope_level): Delete.
9691 (scope_level::body): Now a std::string.
9692 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9693 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9694 parameter.
9695 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9696 (xinclude_parsing_data::output): Now a std::string reference.
9697 (xinclude_start_include): Adjust.
9698 (xml_xinclude_default): Adjust.
9699 (xml_process_xincludes): Add 'output' parameter, and return bool.
9700 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9701 and return bool.
9702 * xml-tdesc.c: Include <unordered_map> and <string>.
9703 (tdesc_xml_cache): Delete.
9704 (tdesc_xml_cache_s): Delete.
9705 (xml_cache): Now an std::unordered_map.
9706 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9707 (target_fetch_description_xml): Change return type to
9708 gdb::optional<std::string>, and adjust.
9709 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9710 (target_fetch_description_xml): Change return type to
9711 gdb::optional<std::string>.
9712
d35d1958
PA
97132017-04-18 Pedro Alves <palves@redhat.com>
9714
9715 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9716 unittests/optional-selftests.c.
9717 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9718 * unittests/optional-selftests.c: New file.
9719 * unittests/optional/assignment/1.cc: New file.
9720 * unittests/optional/assignment/2.cc: New file.
9721 * unittests/optional/assignment/3.cc: New file.
9722 * unittests/optional/assignment/4.cc: New file.
9723 * unittests/optional/assignment/5.cc: New file.
9724 * unittests/optional/assignment/6.cc: New file.
9725 * unittests/optional/assignment/7.cc: New file.
9726 * unittests/optional/cons/copy.cc: New file.
9727 * unittests/optional/cons/default.cc: New file.
9728 * unittests/optional/cons/move.cc: New file.
9729 * unittests/optional/cons/value.cc: New file.
9730 * unittests/optional/in_place.cc: New file.
9731 * unittests/optional/observers/1.cc: New file.
9732 * unittests/optional/observers/2.cc: New file.
9733
22796e97
PA
97342017-04-18 Pedro Alves <palves@redhat.com>
9735
9736 * common/gdb_optional.h: Include common/traits.h.
9737 (in_place_t): New type.
9738 (in_place): New constexpr variable.
9739 (optional::optional): Remove member initialization of
9740 m_instantiated.
9741 (optional::optional(in_place_t...)): New constructor.
9742 (optional::~optional): Use reset.
9743 (optional::optional(const optional&)): New.
9744 (optional::optional(const optional&&)): New.
9745 (optional::optional(T &)): New.
9746 (optional::optional(T &&)): New.
9747 (operator::operator=(const optional &)): New.
9748 (operator::operator=(optional &&)): New.
9749 (operator::operator= (const T &))
9750 (operator::operator= (T &&))
9751 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9752 (operator::reset): New.
9753 (operator::m_instantiated):: Add in-class initializer.
9754 * common/traits.h: Include <type_traits>.
9755 (struct And): New types.
9756
a7fc9b61
PA
97572017-04-18 Pedro Alves <palves@redhat.com>
9758
9759 * xml-support.c: Include <vector>.
9760 (scope_level::scope_level(const gdb_xml_element *))
9761 (scope_level::scope_level(scope_level&&)): New.
9762 (scope_level::~scope_level): New.
9763 (scope_level_s): Delete.
9764 (gdb_xml_parser::scopes): Now a std::vector.
9765 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9766 Use std::vector.
9767 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
9768 scope cleanup code.
9769 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
9770 of the scopes member. Use std::vector::emplace_back.
9771
010151c9
PA
97722017-04-18 Pedro Alves <palves@redhat.com>
9773
9774 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
9775 a bool.
9776 (gdb_xml_end_element): Change type of first parameter.
9777 (gdb_xml_cleanup): Rename to ...
9778 (gdb_xml_parser::~gdb_xml_parser): ... this.
9779 (gdb_xml_create_parser_and_cleanup): Delete with ...
9780 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
9781 to this new ctor.
9782 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
9783 using gdb_xml_create_parser_and_cleanup.
9784 (xinclude_parsing_data): Add ctor/dtor.
9785 (xml_xinclude_cleanup): Delete.
9786 (xml_process_xincludes): Create a local xinclude_parsing_data
9787 instead of heap-allocating one. Create a local gdb_xml_parser
9788 instead of heap-allocating one with
9789 gdb_xml_create_parser_and_cleanup.
9790
d56060f0
JB
97912017-04-18 John Baldwin <jhb@FreeBSD.org>
9792
9793 PR threads/20743
9794 * fbsd-nat.c (resume_one_thread_cb): Remove.
9795 (resume_all_threads_cb): Remove.
9796 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
9797 iterate_over_threads.
9798
305d16a9
JB
97992017-04-17 Joel Brobecker <brobecker@adacore.com>
9800
9801 * NEWS: Create a new section for the next release branch.
9802 Rename the section of the current branch, now that it has
9803 been cut.
9804
8bb57231
JB
98052017-04-17 Joel Brobecker <brobecker@adacore.com>
9806
9807 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
9808 * version.in: Bump version to 8.0.50.DATE-git.
9809
096c92dd
SDJ
98102017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
9811
9812 PR gdb/21385
9813 * windows-nat.c (windows_create_inferior): Declare 'allargs'
9814 independently of the host, and fix build breakage on Cygwin.
9815
0550c955
PA
98162017-04-13 Pedro Alves <palves@redhat.com>
9817
9818 * inferior.c (free_inferior): Convert to ...
9819 (inferior::~inferior): ... this dtor.
9820 (inferior::inferior): New ctor, factored out from ...
9821 (add_inferior_silent): ... here. Allocate the inferior with a new
9822 expression.
9823 (delete_inferior): Call delete instead of free_inferior.
9824 * inferior.h (gdb_environ, continuation): Forward declare.
9825 (inferior): Now a class. Add in-class initialization to all
9826 members. Make boolean fields bool, except 'detaching'.
9827 (inferior::inferior): New explicit ctor.
9828 (inferior::~inferior): New.
9829
e3d60dfc
PA
98302017-04-13 Pedro Alves <palves@redhat.com>
9831
9832 * inferior.c (init_inferior_list): Delete.
9833 * inferior.h (init_inferior_list): Delete.
9834
5fd69d0a
PA
98352017-04-13 Pedro Alves <palves@redhat.com>
9836
9837 PR threads/13217
9838 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
9839 (top level): Call it twice, with different thread sets.
9840
c6609450
PA
98412017-04-13 Pedro Alves <palves@redhat.com>
9842
9843 * thread.c: Include <algorithm>.
9844 (thread_array_cleanup): Delete.
9845 (scoped_inc_dec_ref): New class.
9846 (live_threads_count): New function.
9847 (set_thread_refcount): Delete.
9848 (tp_array_compar_ascending): Now a bool.
9849 (tp_array_compar): Convert to a std::sort comparison function.
9850 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
9851 and live_threads_count.
9852
2a00d7ce
PA
98532017-04-13 Pedro Alves <palves@redhat.com>
9854
9855 * infrun.c (follow_fork_inferior): Also switch the current
9856 inferior.
9857
441d7c93
PA
98582017-04-13 Pedro Alves <palves@redhat.com>
9859
9860 * breakpoint.c (watch_command_1): Save watchpoint-frame info
9861 before calling create_internal_breakpoint.
9862
808480f6
PA
98632017-04-13 Pedro Alves <palves@redhat.com>
9864
9865 * fork-child.c (execv_argv): New class.
9866 (breakup_args): Refactored as ...
9867 (execv_argv::init_for_no_shell): .. this method of execv_argv.
9868 Copy arguments to storage and replace separators with NULL
9869 terminators in place.
9870 (escape_bang_in_quoted_argument): Adjust to return bool.
9871 (execv_argv::execv_argv): New ctor.
9872 (execv_argv::init_for_shell): New method, factored out from
9873 fork_inferior. Don't strdup strings into the vector.
9874 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
9875 Remove free_vector_argv call.
9876
ad3d022a
YQ
98772017-04-13 Yao Qi <yao.qi@linaro.org>
9878
9879 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
9880 tdep->rx_psw_type.
9881
e6ddc3bf
YQ
98822017-04-13 Yao Qi <yao.qi@linaro.org>
9883
9884 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
9885 * rx-tdep.c (rx_gdbarch_init): Likewise.
9886
bfb8cf90
PA
98872017-04-13 Pedro Alves <palves@redhat.com>
9888
9889 * breakpoint.h (struct breakpoint): Reindent.
9890
f5336ca5
PA
98912017-04-13 Pedro Alves <palves@redhat.com>
9892
9893 * breakpoint.c (bp_location): Rename to ...
9894 (bp_locations): ... this. All references updated.
9895 (bp_location_count): Rename to ...
9896 (bp_locations_count): ... this. All references updated.
9897 (bp_location_placed_address_before_address_max): Rename to ...
9898 (bp_locations_placed_address_before_address_max): ... this. All
9899 references updated.
9900 (bp_location_shadow_len_after_address_max): Rename to ...
9901 (bp_locations_shadow_len_after_address_max): ... this. All
9902 references updated.
9903 (bp_location_compare_addrs): Rename to ...
9904 (bp_locations_compare_addrs): ... this. All references updated.
9905 (bp_location_compare):Rename to ...
9906 (bp_locations_compare): ... this. All references updated.
9907 (bp_location_target_extensions_update): Rename to ...
9908 (bp_locations_target_extensions_update): ... this. All references
9909 updated.
9910
be628ab8
SDJ
99112017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9912
9913 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
9914 * common/common.m4: Check headers 'termios.h', 'termio.h' and
9915 'sgtty.h'.
9916 * common/gdb_termios.h: New file, with parts of "terminal.h".
9917 * inflow.c: Include "gdb_termios.h".
9918 * ser-unix.c: Include "gdb_termios.h".
9919 * terminal.h: Move terminal-related defines to
9920 "common/gdb_termios.h".
9921
8e9e35b1
TT
99222017-04-12 Tom Tromey <tom@tromey.com>
9923
9924 * probe.c (parse_probes): Update.
9925 * location.h (delete_event_location): Don't declare.
9926 (event_location_deleter::operator()): Update.
9927 * location.c (event_location_deleter::operator()): Rename from
9928 delete_event_location.
9929 * linespec.h (linespec_result) <location>: Change type to
9930 event_location_up.
9931 * linespec.c (canonicalize_linespec, event_location_to_sals)
9932 (decode_objc): Update.
9933 (linespec_result): Don't call delete_event_location.
9934 * breakpoint.c (create_breakpoints_sal)
9935 (bkpt_probe_create_sals_from_location)
9936 (strace_marker_create_sals_from_location): Update.
9937
16e802b9
TT
99382017-04-12 Tom Tromey <tom@tromey.com>
9939
9940 * linespec.h (struct linespec_result): Add constructor and
9941 destructor.
9942 (init_linespec_result, destroy_linespec_result)
9943 (make_cleanup_destroy_linespec_result): Don't declare.
9944 * linespec.c (init_linespec_result): Remove.
9945 (linespec_result::~linespec_result): Rename from
9946 destroy_linespec_result. Update.
9947 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
9948 Remove.
9949 * breakpoint.c (create_breakpoint, break_range_command)
9950 (decode_location_default): Update.
9951 * ax-gdb.c (agent_command_1): Update.
9952
d28cd78a
TT
99532017-04-12 Tom Tromey <tom@tromey.com>
9954
9955 * remote.c (remote_download_tracepoint): Update.
9956 * python/py-breakpoint.c (bppy_get_location): Update.
9957 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
9958 (gdbscm_breakpoint_location): Update.
9959 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
9960 * breakpoint.h (struct breakpoint) <location, location_range_end>:
9961 Change type to event_location_up.
9962 * breakpoint.c (create_overlay_event_breakpoint)
9963 (create_longjmp_master_breakpoint)
9964 (create_std_terminate_master_breakpoint)
9965 (create_exception_master_breakpoint)
9966 (breakpoint_event_location_empty_p, print_breakpoint_location)
9967 (print_one_breakpoint_location, create_thread_event_breakpoint)
9968 (init_breakpoint_sal, create_breakpoint)
9969 (print_recreate_ranged_breakpoint, break_range_command)
9970 (init_ada_exception_breakpoint, say_where): Update.
9971 (base_breakpoint_dtor): Don't call delete_event_location.
9972 (bkpt_print_recreate, tracepoint_print_recreate)
9973 (dprintf_print_recreate, update_static_tracepoint)
9974 (breakpoint_re_set_default): Update.
9975
711799d5
TT
99762017-04-12 Tom Tromey <tom@tromey.com>
9977
9978 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
9979 type of "to_do". Update.
9980 (compute_stack_depth): Use std::vector.
9981
52d214d3
TT
99822017-04-12 Tom Tromey <tom@tromey.com>
9983
9984 * printcmd.c (find_instruction_backward): Use std::vector.
9985
4c404b8b
TT
99862017-04-12 Tom Tromey <tom@tromey.com>
9987
9988 * symfile.c (objfilep): Remove typedef.
9989 (reread_symbols): Use a std::vector.
9990
156d9eab
TT
99912017-04-12 Tom Tromey <tom@tromey.com>
9992
9993 * mi/mi-main.c (exec_direction_forward): Remove.
9994 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
9995 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
9996 scoped_restore.
9997 * guile/guile.c (guile_repl_command, guile_command)
9998 (gdbscm_execute_gdb_command): Use scoped_restore.
9999 * go-exp.y (go_parse): Use scoped_restore.
10000 * d-exp.y (d_parse): Use scoped_restore.
10001 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10002 * c-exp.y (c_parse): Use scoped_restore.
10003
4d89769a
TT
100042017-04-12 Tom Tromey <tom@tromey.com>
10005
10006 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10007 (mi_parse): Update return type.
10008 (mi_parse_free): Remove.
10009 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10010 (mi_parse::~mi_parse): Rename from mi_parse_free.
10011 (mi_parse_cleanup): Remove.
10012 (mi_parse): Return a unique_ptr. Use new.
10013 * mi/mi-main.c (mi_execute_command): Update.
10014
4b217cc7
TT
100152017-04-12 Tom Tromey <tom@tromey.com>
10016
10017 * location.c (explicit_location_lex_one): Return a
10018 unique_xmalloc_ptr.
10019 (string_to_explicit_location): Update. Remove cleanups.
10020
59d3651b
TT
100212017-04-12 Tom Tromey <tom@tromey.com>
10022
10023 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10024 (compare_value_and_voffset): Change type. Update.
10025 (compute_vtable_size): Change type of "offset_vec".
10026 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10027 (gnuv3_get_typeid): Remove extraneous declaration.
10028
b24b0d6c
TT
100292017-04-12 Tom Tromey <tom@tromey.com>
10030
10031 * charset.h (wchar_iterator): Fix comment.
10032
80a3b8c5
TT
100332017-04-12 Tom Tromey <tom@tromey.com>
10034
10035 * charset.c (iconv_wrapper): New class.
10036 (cleanup_iconv): Remove.
10037 (convert_between_encodings): Use it.
10038
c83dd867
TT
100392017-04-12 Tom Tromey <tom@tromey.com>
10040
10041 * symfile.h (increment_reading_symtab): Update type.
10042 * symfile.c (decrement_reading_symtab): Remove.
10043 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10044 * psymtab.c (psymtab_to_symtab): Update.
10045 * dwarf2read.c (dw2_instantiate_symtab): Update.
10046
0e8621a0
TT
100472017-04-12 Tom Tromey <tom@tromey.com>
10048
10049 * jit.c (struct jit_reader): Declare separately. Add constructor
10050 and destructor. Change type of "handle".
10051 (loaded_jit_reader): Define separately.
10052 (jit_reader_load): Update. New "new".
10053 (jit_reader_unload_command): Use "delete".
10054 * gdb-dlfcn.h (struct dlclose_deleter): New.
10055 (gdb_dlhandle_up): New typedef.
10056 (gdb_dlopen, gdb_dlsym): Update types.
10057 (gdb_dlclose): Remove.
10058 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10059 (gdb_dlsym): Change type of "handle".
10060 (make_cleanup_dlclose): Remove.
10061 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10062 * compile/compile-c-support.c (load_libcc): Update.
10063
67d89901
TT
100642017-04-12 Tom Tromey <tom@tromey.com>
10065
10066 * symtab.h (find_pcs_for_symtab_line): Change return type.
10067 * symtab.c (find_pcs_for_symtab_line): Change return type.
10068 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10069 type of "vec". Update.
10070 (ltpy_get_pcs_for_line): Update.
10071 * linespec.c (decode_digits_ordinary): Update.
10072
93921405
TT
100732017-04-12 Tom Tromey <tom@tromey.com>
10074
10075 * tracepoint.c (actions_command): Update.
10076 * python/python.c (python_command, python_interactive_command):
10077 Update.
10078 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10079 * guile/guile.c (guile_command): Update.
10080 * defs.h (read_command_lines, read_command_lines_1): Return
10081 command_line_up.
10082 (command_lines_deleter): New struct.
10083 (command_line_up): New typedef.
10084 * compile/compile.c (compile_code_command)
10085 (compile_print_command): Update.
10086 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10087 command_line_up.
10088 (make_cleanup_free_command_lines): Remove.
10089 * cli/cli-script.c (get_command_line, read_command_lines_1)
10090 (copy_command_lines): Return command_line_up.
10091 (while_command, if_command, read_command_lines, define_command)
10092 (document_command): Update.
10093 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10094 Remove.
10095 * breakpoint.h (breakpoint_set_commands): Change type of
10096 "commands".
10097 * breakpoint.c (breakpoint_set_commands): Change type of
10098 "commands". Update.
10099 (do_map_commands_command, update_dprintf_command_list)
10100 (create_tracepoint_from_upload): Update.
10101
ffc2605c
TT
101022017-04-12 Tom Tromey <tom@tromey.com>
10103
10104 * tracepoint.c (scope_info): Update.
10105 * spu-tdep.c (spu_catch_start): Update.
10106 * python/python.c (gdbpy_decode_line): Update.
10107 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10108 * python/py-breakpoint.c (bppy_init): Update.
10109 * probe.c (parse_probes): Update.
10110 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10111 * location.h (event_location_deleter): New struct.
10112 (event_location_up): New typedef.
10113 (new_linespec_location, new_address_location, new_probe_location)
10114 (new_explicit_location, copy_event_location)
10115 (string_to_event_location, string_to_event_location_basic)
10116 (string_to_explicit_location): Update return type.
10117 (make_cleanup_delete_event_location): Remove.
10118 * location.c (new_linespec_location, new_address_location)
10119 (new_probe_location, new_explicit_location, copy_event_location):
10120 Return event_location_up.
10121 (delete_event_location_cleanup)
10122 (make_cleanup_delete_event_location): Remove.
10123 (string_to_explicit_location, string_to_event_location_basic)
10124 (string_to_event_location): Return event_location_up.
10125 * linespec.c (canonicalize_linespec, event_location_to_sals)
10126 (decode_line_with_current_source)
10127 (decode_line_with_last_displayed, decode_objc): Update.
10128 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10129 * completer.c (location_completer): Update.
10130 * cli/cli-cmds.c (edit_command, list_command): Update.
10131 * breakpoint.c (create_overlay_event_breakpoint)
10132 (create_longjmp_master_breakpoint)
10133 (create_std_terminate_master_breakpoint)
10134 (create_exception_master_breakpoint)
10135 (create_thread_event_breakpoint): Update.
10136 (init_breakpoint_sal): Update. Remove some dead code.
10137 (create_breakpoint_sal): Change type of "location". Update.
10138 (create_breakpoints_sal, create_breakpoint, break_command_1)
10139 (dprintf_command, break_range_command, until_break_command)
10140 (init_ada_exception_breakpoint)
10141 (strace_marker_create_sals_from_location)
10142 (update_static_tracepoint, trace_command, ftrace_command)
10143 (strace_command, create_tracepoint_from_upload): Update.
10144 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10145 * ax-gdb.c (agent_command_1): Update.
10146
8f10c932
PA
101472017-04-12 Pedro Alves <palves@redhat.com>
10148
10149 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10150 * configure.tgt: Handle i[34567]86-*-go32* and
10151 i[34567]86-*-msdosdjgpp*.
10152 * i386-tdep.c (i386_svr4_reg_to_regnum):
10153 Make extern.
10154 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10155 i386-go32-tdep.c.
10156 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10157 * i386-go32-tdep.c: New file.
10158 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10159 declarations.
10160
0a31ccfb
SM
101612017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10162
10163 * aix-thread.c (pd_status2str): Change return type to const char *.
10164
e9bb3fbb
PA
101652017-04-12 Pedro Alves <palves@redhat.com>
10166
10167 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10168 calls to set_gdbarch_gnu_triplet_regexp.
10169
53375380
PA
101702017-04-12 Pedro Alves <palves@redhat.com>
10171
10172 PR gdb/21323
10173 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10174 New enum value.
10175 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10176 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10177 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10178 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10179 * gdbarch.h, gdbarch.c: Regenerate.
10180 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10181 gdbarch_wchar_bit and gdbarch_wchar_signed.
10182 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10183 * arm-tdep.c (arm_gdbarch_init): Likewise.
10184 * avr-tdep.c (avr_gdbarch_init): Likewise.
10185 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10186 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10187 * i386-tdep.c (i386_go32_init_abi): Likewise.
10188 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10189 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10190 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10191 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10192 * sh-tdep.c (sh_gdbarch_init): Likewise.
10193 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10194 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10195 * windows-tdep.c (windows_init_abi): Likewise.
10196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10197
53e710ac
PA
101982017-04-12 Pedro Alves <palves@redhat.com>
10199
10200 PR c++/21323
10201 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10202 cplus_primitive_type_char32_t>: New enum values.
10203 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10204 and cplus_primitive_type_char32_t.
10205 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10206 32, use the archtecture's built-in type for char16_t and char32_t,
10207 respectively. Otherwise, fallback to init_integer_type as before,
10208 but make the type unsigned, and issue a complaint.
10209 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10210
ab0538b8
AH
102112017-04-12 Alan Hayward <alan.hayward@arm.com>
10212
5e0e0422 10213 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10214 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10215
5430098f
SDJ
102162017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10217
10218 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10219 'const char *'.
10220
7c5ded6a
SDJ
102212017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10222
10223 * common/common-utils.c (free_vector_argv): New function.
10224 * common/common-utils.h: Include <vector>.
10225 (free_vector_argv): New prototype.
10226 * darwin-nat.c (darwin_create_inferior): Rewrite function
10227 prototype in order to constify "exec_file" and accept a
10228 "std::string" for "allargs".
10229 * fork-child.c: Include <vector>.
10230 (breakup_args): Rewrite function, using C++.
10231 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10232 and accept "std::string" for "allargs". Update the code to
10233 calculate "argv" based on "allargs". Update calls to "exec_fun"
10234 and "execvp".
10235 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10236 order to constify "exec_file" and accept a "std::string" for
10237 "allargs".
10238 * go32-nat.c (go32_create_inferior): Likewise.
10239 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10240 * infcmd.c (run_command_1): Constify "exec_file". Use
10241 "std::string" for inferior arguments.
10242 * inferior.h (fork_inferior): Update prototype.
10243 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10244 prototype in order to constify "exec_file" and accept a
10245 "std::string" for "allargs".
10246 * nto-procfs.c (procfs_create_inferior): Likewise.
10247 * procfs.c (procfs_create_inferior): Likewise.
10248 * remote-sim.c (gdbsim_create_inferior): Likewise.
10249 * remote.c (extended_remote_run): Update code to accept
10250 "std::string" as argument.
10251 (extended_remote_create_inferior): Rewrite function prototype in
10252 order to constify "exec_file" and accept a "std::string" for
10253 "allargs".
10254 * rs6000-nat.c (super_create_inferior): Likewise.
10255 (rs6000_create_inferior): Likewise.
10256 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10257 * windows-nat.c (windows_create_inferior): Likewise.
10258
ae0eee42
PA
102592017-04-11 Pedro Alves <palves@redhat.com>
10260
10261 * thread.c: Fix whitespace throughout.
10262
a6acac06
PR
102632017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10264
10265 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10266
64403bd1
AH
102672017-04-11 Alan Hayward <alan.hayward@arm.com>
10268
10269 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10270
a5bef50f
SDJ
102712017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10272
10273 PR gdb/21364
10274 * osdata.c (info_osdata): Check if 'type' is an empty string
10275 instead of NULL.
10276
9295a5a9
PA
102772017-04-10 Pedro Alves <palves@redhat.com>
10278
10279 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10280 (ptid_to_global_thread_id, in_thread_list)
10281 (do_captured_list_thread_ids, set_resumed, set_running)
10282 (set_executing, set_stop_requested, finish_thread_state)
10283 (validate_registers_access, can_access_registers_ptid)
10284 (print_thread_info_1, switch_to_thread)
10285 (do_restore_current_thread_cleanup)
10286 (make_cleanup_restore_current_thread, thread_command)
10287 (thread_name_command): Use operator== instead of ptid_equal.
10288
996812e3
PA
102892017-04-10 Pedro Alves <palves@redhat.com>
10290
10291 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10292 (current_thread_cleanup_chain): Delete.
10293 (restore_current_thread_cleanup_dtor)
10294 (make_cleanup_restore_current_thread): Remove references to
10295 current_thread_cleanup_chain.
10296
845b344f
AH
102972017-04-10 Alan Hayward <alan.hayward@arm.com>
10298
10299 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10300 REG_UNKNOWN.
10301
803bdfe4
YQ
103022017-04-10 Yao Qi <yao.qi@linaro.org>
10303
10304 PR gdb/19942
10305 * gdbthread.h (thread_info::deletable): New method.
10306 (thread_info::incref): New method.
10307 (thread_info::decref): New method.
10308 (thread_info::refcount): Move it to private.
10309 * infrun.c (save_stop_context): Call inc_refcount.
10310 (release_stop_context_cleanup): Likewise.
10311 * thread.c (set_thread_exited): New function.
10312 (init_thread_list): Delete "tp" only it is deletable, otherwise
10313 call set_thread_exited.
10314 (delete_thread_1): Call set_thread_exited.
10315 (current_thread_cleanup) <inferior_pid>: Remove.
10316 <thread>: New field.
10317 (restore_current_thread_ptid_changed): Removed.
10318 (do_restore_current_thread_cleanup): Adjust.
10319 (restore_current_thread_cleanup_dtor): Don't call
10320 find_thread_ptid.
10321 (set_thread_refcount): Use dec_refcount.
10322 (make_cleanup_restore_current_thread): Adjust.
10323 (thread_apply_all_command): Call inc_refcount.
10324 (_initialize_thread): Don't call
10325 observer_attach_thread_ptid_changed.
10326
8c25b497
YQ
103272017-04-10 Yao Qi <yao.qi@linaro.org>
10328
10329 * thread.c (delete_thread_1): Hoist code on marking thread as
10330 exited.
10331
8473b447
SM
103322017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10333
10334 * windows-nat.c (windows_detach): Initialize ptid with
10335 minus_one_ptid.
10336
6670ec13
SM
103372017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10338
10339 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10340
ba2f91bb
AH
103412017-04-07 Alan Hayward <alan.hayward@arm.com>
10342
10343 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10344 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10345 (bfin_pseudo_register_write): Likewise
10346
436252de
SM
103472017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10348
10349 * common/ptid.h (struct ptid): Change to...
10350 (class ptid_t): ... this.
10351 <ptid_t>: New constructors.
10352 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10353 matches>: New methods.
10354 <make_null, make_minus_one>: New static methods.
10355 <pid>: Rename to...
10356 <m_pid>: ...this.
10357 <lwp>: Rename to...
10358 <m_lwp>: ...this.
10359 <tid>: Rename to...
10360 <m_tid>: ...this.
10361 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10362 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10363 as references, move comment to class ptid_t.
10364 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10365 ptid_t static methods.
10366 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10367 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10368 Take ptid arguments as references, implement using ptid_t methods.
10369 * unittests/ptid-selftests.c: New file.
10370 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10371 unittests/ptid-selftests.c.
10372 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10373
0dedf377
TP
103742017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10375
10376 * python/python.c (python_run_simple_file): Cast mode literal to
10377 non-const char pointer as expected by PyFile_FromString.
10378
4e9868d4
SM
103792017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10380
10381 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10382 minus_one_ptid and null_ptid.
10383
9bf2a700
PA
103842017-04-05 Pedro Alves <palves@redhat.com>
10385
10386 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10387 * configure: Regenerate.
10388
a121b7c1
PA
103892017-04-05 Pedro Alves <palves@redhat.com>
10390
10391 * ada-exp.y (yyerror): Constify.
10392 * ada-lang.c (bound_name, get_selections)
10393 (ada_variant_discrim_type)
10394 (ada_variant_discrim_name, ada_value_struct_elt)
10395 (ada_lookup_struct_elt_type, is_unchecked_variant)
10396 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10397 (catch_ada_exception_command_split)
10398 (catch_ada_assert_command_split, catch_assert_command)
10399 (ada_op_name): Constify.
10400 * ada-lang.h (ada_yyerror, get_selections)
10401 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10402 * arc-tdep.c (arc_print_frame_cache): Constify.
10403 * arm-tdep.c (arm_skip_stub): Constify.
10404 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10405 (gen_aggregate_elt_ref): Constify.
10406 * bcache.c (print_bcache_statistics): Constify.
10407 * bcache.h (print_bcache_statistics): Constify.
10408 * break-catch-throw.c (catch_exception_command_1):
10409 * breakpoint.c (struct ep_type_description::description):
10410 Constify.
10411 (add_solib_catchpoint): Constify.
10412 (catch_fork_command_1): Add cast.
10413 (add_catch_command): Constify.
10414 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10415 Constify.
10416 * bsd-uthread.c (bsd_uthread_state): Constify.
10417 * buildsym.c (patch_subfile_names): Constify.
10418 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10419 Constify.
10420 * c-exp.y (yyerror): Constify.
10421 (token::oper): Constify.
10422 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10423 * c-varobj.c (cplus_describe_child): Constify.
10424 * charset.c (find_charset_names): Add cast.
10425 (find_charset_names): Constify array and add const_cast.
10426 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10427 (edit_command): Constify.
10428 * cli/cli-decode.c (lookup_cmd): Constify.
10429 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10430 Constify.
10431 (struct dump_context): Constify.
10432 (add_dump_command, restore_command): Constify.
10433 * cli/cli-script.c (get_command_line): Constify.
10434 * cli/cli-script.h (get_command_line): Constify.
10435 * cli/cli-utils.c (check_for_argument): Constify.
10436 * cli/cli-utils.h (check_for_argument): Constify.
10437 * coff-pe-read.c (struct read_pe_section_data): Constify.
10438 * command.h (lookup_cmd): Constify.
10439 * common/print-utils.c (decimal2str): Constify.
10440 * completer.c (gdb_print_filename): Constify.
10441 * corefile.c (set_gnutarget): Constify.
10442 * cp-name-parser.y (yyerror): Constify.
10443 * cp-valprint.c (cp_print_class_member): Constify.
10444 * cris-tdep.c (cris_register_name, crisv32_register_name):
10445 Constify.
10446 * d-exp.y (yyerror): Constify.
10447 (struct token::oper): Constify.
10448 * d-lang.h (d_yyerror): Constify.
10449 * dbxread.c (struct header_file_location::name): Constify.
10450 (add_old_header_file, add_new_header_file, last_function_name)
10451 (dbx_next_symbol_text, add_bincl_to_list)
10452 (find_corresponding_bincl_psymtab, set_namestring)
10453 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10454 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10455 * defs.h (command_line_input, print_address_symbolic)
10456 (deprecated_readline_begin_hook): Constify.
10457 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10458 Constify.
10459 * event-top.c (handle_line_of_input): Constify and add cast.
10460 * exceptions.c (catch_errors): Constify.
10461 * exceptions.h (catch_errors): Constify.
10462 * expprint.c (print_subexp_standard, op_string, op_name)
10463 (op_name_standard, dump_raw_expression, dump_raw_expression):
10464 * expression.h (op_name, op_string, dump_raw_expression):
10465 Constify.
10466 * f-exp.y (yyerror): Constify.
10467 (struct token::oper): Constify.
10468 (struct f77_boolean_val::name): Constify.
10469 * f-lang.c (f_word_break_characters): Constify.
10470 * f-lang.h (f_yyerror): Constify.
10471 * fork-child.c (fork_inferior): Add cast.
10472 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10473 (new_variant): Constify.
10474 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10475 * gdbarch.c: Regenerate.
10476 * gdbcore.h (set_gnutarget): Constify.
10477 * go-exp.y (yyerror): Constify.
10478 (token::oper): Constify.
10479 * go-lang.h (go_yyerror): Constify.
10480 * go32-nat.c (go32_sysinfo): Constify.
10481 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10482 * guile/scm-cmd.c (cmdscm_function): Constify.
10483 * guile/scm-param.c (pascm_param_value): Constify.
10484 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10485 (h8300sx_register_name): Constify.
10486 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10487 Constify.
10488 * ia64-tdep.c (ia64_register_names): Constify.
10489 * infcmd.c (construct_inferior_arguments): Constify.
10490 (path_command, attach_post_wait): Constify.
10491 * language.c (show_range_command, show_case_command)
10492 (unk_lang_error): Constify.
10493 * language.h (language_defn::la_error)
10494 (language_defn::la_name_of_this): Constify.
10495 * linespec.c (decode_line_2): Constify.
10496 * linux-thread-db.c (thread_db_err_str): Constify.
10497 * lm32-tdep.c (lm32_register_name): Constify.
10498 * m2-exp.y (yyerror): Constify.
10499 * m2-lang.h (m2_yyerror): Constify.
10500 * m32r-tdep.c (m32r_register_names): Constify and make static.
10501 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10502 * m88k-tdep.c (m88k_register_name): Constify.
10503 * macroexp.c (appendmem): Constify.
10504 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10505 (upgrade_type, parse_external, parse_partial_symbols)
10506 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10507 (new_symbol): Constify.
10508 * memattr.c (mem_info_command): Constify.
10509 * mep-tdep.c (register_name_from_keyword): Constify.
10510 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10511 Constify.
10512 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10513 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10514 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10515 cast.
10516 (mi_execute_async_cli_command): Constify.
10517 * mips-tdep.c (mips_register_name): Constify.
10518 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10519 (am33_register_name, am33_2_register_name)
10520 * moxie-tdep.c (moxie_register_names): Constify.
10521 * nat/linux-osdata.c (osdata_type): Constify fields.
10522 * nto-tdep.c (nto_parse_redirection): Constify.
10523 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10524 (lookup_child_selector): Constify.
10525 (objc_methcall::name): Constify.
10526 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10527 (lookup_struct_typedef): Constify.
10528 * objfiles.c (pc_in_section): Constify.
10529 * objfiles.h (pc_in_section): Constify.
10530 * p-exp.y (struct token::oper): Constify.
10531 (yyerror): Constify.
10532 * p-lang.h (pascal_yyerror): Constify.
10533 * parser-defs.h (op_name_standard): Constify.
10534 (op_print::string): Constify.
10535 (exp_descriptor::op_name): Constify.
10536 * printcmd.c (print_address_symbolic): Constify.
10537 * psymtab.c (print_partial_symbols): Constify.
10538 * python/py-breakpoint.c (stop_func): Constify.
10539 (bppy_get_expression): Constify.
10540 * python/py-cmd.c (cmdpy_completer::name): Constify.
10541 (cmdpy_function): Constify.
10542 * python/py-event.c (evpy_add_attribute)
10543 (gdbpy_initialize_event_generic): Constify.
10544 * python/py-event.h (evpy_add_attribute)
10545 (gdbpy_initialize_event_generic): Constify.
10546 * python/py-evts.c (add_new_registry): Constify.
10547 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10548 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10549 * python/py-inferior.c (get_buffer): Add cast.
10550 * python/py-param.c (parm_constant::name): Constify.
10551 * python/py-unwind.c (fprint_frame_id): Constify.
10552 * python/python.c (gdbpy_parameter_value): Constify.
10553 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10554 * remote.c (memory_packet_config::name): Constify.
10555 (show_packet_config_cmd, remote_write_bytes)
10556 (remote_buffer_add_string):
10557 * reverse.c (exec_reverse_once): Constify.
10558 * rs6000-tdep.c (variant::name, variant::description): Constify.
10559 * rust-exp.y (rustyyerror): Constify.
10560 * rust-lang.c (rust_op_name): Constify.
10561 * rust-lang.h (rustyyerror): Constify.
10562 * serial.h (serial_ops::name): Constify.
10563 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10564 (sh_sh3e_register_name, sh_sh2e_register_name)
10565 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10566 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10567 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10568 (sh_sh4al_dsp_register_name): Constify.
10569 * sh64-tdep.c (sh64_register_name): Constify.
10570 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10571 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10572 * stabsread.c (patch_block_stabs, read_type_number)
10573 (ref_map::stabs, ref_add, process_reference)
10574 (symbol_reference_defined, define_symbol, define_symbol)
10575 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10576 (read_one_struct_field, read_struct_fields, read_baseclasses)
10577 (read_tilde_fields, read_struct_type, read_array_type)
10578 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10579 (read_huge_number, read_range_type, read_args, common_block_start)
10580 (find_name_end): Constify.
10581 * stabsread.h (common_block_start, define_symbol)
10582 (process_one_symbol, symbol_reference_defined, ref_add):
10583 * symfile.c (get_section_index, add_symbol_file_command):
10584 * symfile.h (get_section_index): Constify.
10585 * target-descriptions.c (tdesc_type::name): Constify.
10586 (tdesc_free_type): Add cast.
10587 * target.c (find_default_run_target):
10588 (add_deprecated_target_alias, find_default_run_target)
10589 (target_announce_detach): Constify.
10590 (do_option): Constify.
10591 * target.h (add_deprecated_target_alias): Constify.
10592 * thread.c (print_thread_info_1): Constify.
10593 * top.c (deprecated_readline_begin_hook, command_line_input):
10594 Constify.
10595 (init_main): Add casts.
10596 * top.h (handle_line_of_input): Constify.
10597 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10598 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10599 (tfind_command): Rename to ...
10600 (tfind_command_1): ... this and constify.
10601 (tfind_command): New function.
10602 (tfind_end_command, tfind_start_command): Adjust.
10603 (encode_source_string): Constify.
10604 * tracepoint.h (encode_source_string): Constify.
10605 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10606 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10607 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10608 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10609 * tui/tui-win.c (parse_scrolling_args): Constify.
10610 * tui/tui-windata.c (tui_erase_data_content): Constify.
10611 * tui/tui-windata.h (tui_erase_data_content): Constify.
10612 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10613 * tui/tui.c (tui_enable): Add cast.
10614 * utils.c (defaulted_query): Constify.
10615 (init_page_info): Add cast.
10616 (puts_debug, subset_compare): Constify.
10617 * utils.h (subset_compare): Constify.
10618 * varobj.c (varobj_format_string): Constify.
10619 * varobj.h (varobj_format_string): Constify.
10620 * vax-tdep.c (vax_register_name): Constify.
10621 * windows-nat.c (windows_detach): Constify.
10622 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10623 * xml-support.c (gdb_xml_end_element): Constify.
10624 * xml-tdesc.c (tdesc_start_reg): Constify.
10625 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10626 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10627 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10628
995816ba
PA
106292017-04-05 Pedro Alves <palves@redhat.com>
10630
10631 * proc-api.c (struct trans): Constify.
10632 (procfs_note): Constify.
10633 * proc-events.c (struct trans, syscall_table):
10634 * proc-flags.c (struct trans): Constify.
10635 * proc-utils.h (procfs_note): Constify.
10636 * proc-why.c (struct trans): Constify.
10637 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10638 (procfs_detach): Constify.
10639 * sol-thread.c (struct string_map): Constify.
10640 (td_err_string, td_state_string): Constify.
10641
3e83a920
PA
106422017-04-05 Pedro Alves <palves@redhat.com>
10643
10644 * proc-api.c (procfs_filename): Don't initialize
10645 procfs_filename.
10646 (prepare_to_trace): Assume procfs_filename is non-NULL.
10647 (_initialize_proc_api): Give procfs_filename a default value here.
10648
63160a43
PA
106492017-04-05 Pedro Alves <palves@redhat.com>
10650
10651 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10652 'cond_string' parameter.
10653 (extract_exception_regexp): Constify 'string' parameter.
10654 (catch_exception_command_1): Constify.
10655 * breakpoint.c (init_catchpoint)
10656 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10657 parameter.
10658 (ep_parse_optional_if_clause, catch_fork_command_1)
10659 (catch_exec_command_1): Constify.
10660 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10661 parameter.
10662 (ep_parse_optional_if_clause): Constify.
10663 * cli/cli-utils.c (remove_trailing_whitespace)
10664 (check_for_argument): Constify.
10665 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10666 non-const overload.
10667 (check_for_argument): Likewise.
10668
9b2eba3d
PA
106692017-04-05 Pedro Alves <palves@redhat.com>
10670
10671 * event-top.c (command_line_handler): Add cast to execute_command
10672 call.
10673 * record-btrace.c (cmd_record_btrace_bts_start)
10674 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10675 (cmd_record_btrace_start): Add cast to execute_command call.
10676 * record-full.c (record_full_goto_insn):
10677 * record.c (record_start, record_stop): Add cast to
10678 execute_command_to_string calls.
10679 (cmd_record_start): Add cast to execute_command calls.
10680
2adadf51
PA
106812017-04-05 Pedro Alves <palves@redhat.com>
10682
10683 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10684 static inline function.
10685 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10686 array and use gdb_PyArg_ParseTupleAndKeywords.
10687 * python/py-cmd.c (cmdpy_init): Likewise.
10688 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10689 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10690 (infpy_search_memory): Likewise.
10691 * python/py-objfile.c (objfpy_add_separate_debug_file)
10692 (gdbpy_lookup_objfile): Likewise.
10693 * python/py-symbol.c (gdbpy_lookup_symbol)
10694 (gdbpy_lookup_global_symbol): Likewise.
10695 * python/py-type.c (gdbpy_lookup_type): Likewise.
10696 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10697 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10698 Likewise.
10699
0d1f4ceb
PA
107002017-04-05 Pedro Alves <palves@redhat.com>
10701
10702 * python/python-internal.h (gdb_PyGetSetDef): New type.
10703 * python/py-block.c (block_object_getset)
10704 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10705 * python/py-event.c (event_object_getset)
10706 (finish_breakpoint_object_getset): Likewise.
10707 * python/py-inferior.c (inferior_object_getset): Likewise.
10708 * python/py-infthread.c (thread_object_getset): Likewise.
10709 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10710 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10711 * python/py-objfile.c (objfile_getset): Likewise.
10712 * python/py-progspace.c (pspace_getset): Likewise.
10713 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10714 Likewise.
10715 * python/py-record.c (recpy_record_getset): Likewise.
10716 * python/py-symbol.c (symbol_object_getset): Likewise.
10717 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10718 Likewise.
10719 * python/py-type.c (type_object_getset, field_object_getset):
10720 Likewise.
10721 * python/py-value.c (value_object_getset): Likewise.
10722
4d759979
PA
107232017-04-05 Pedro Alves <palves@redhat.com>
10724
10725 * python/python-internal.h (gdb_PyObject_CallMethod)
10726 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10727 New functions.
10728 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10729 (PySys_GetObject, PySys_SetPath): New macros.
10730
fdf9e36f
PA
107312017-04-05 Pedro Alves <palves@redhat.com>
10732
10733 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10734 info_osdata_command.
10735 * osdata.c (info_osdata_command): Rename to ...
10736 (info_osdata): ... this. Constify 'type' parameter, and remove
10737 the 'from_tty' parameter. Accept NULL TYPE.
10738 (info_osdata_command): New function.
10739 * osdata.h (info_osdata_command): Remove declaration.
10740 (info_osdata): New declaration.
10741
9f33b8b7
PA
107422017-04-05 Pedro Alves <palves@redhat.com>
10743
10744 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10745 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10746 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10747 parameter.
10748 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10749 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10750 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10751 parameter.
10752 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10753 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10754 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10755 (mi_cmd_file_list_exec_source_files)
10756 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10757 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10758 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10759 parameter.
10760 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10761 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10762 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10763 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10764 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10765 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10766 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10767 'command' parameter.
10768 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
10769 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
10770 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
10771 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
10772 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
10773 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
10774 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
10775 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
10776 (mi_cmd_var_set_update_range): Constify 'command' parameter.
10777 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
10778 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
10779 parameter.
10780 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
10781 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
10782 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
10783 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
10784 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
10785 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
10786 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
10787 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
10788 (mi_cmd_data_list_changed_registers)
10789 (mi_cmd_data_write_register_values)
10790 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
10791 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
10792 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
10793 (mi_cmd_list_features, mi_cmd_list_target_features)
10794 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
10795 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
10796 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
10797 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
10798 (mi_cmd_trace_frame_collected): Constify 'command'
10799 parameter.
10800 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
10801 'command' parameter.
10802
67cb5b2d
PA
108032017-04-05 Pedro Alves <palves@redhat.com>
10804
10805 * ada-lang.c (ada_completer_word_break_characters): Now a const
10806 array.
10807 (ada_get_gdb_completer_word_break_characters): Constify.
10808 * completer.c (gdb_completer_command_word_break_characters)
10809 (gdb_completer_file_name_break_characters)
10810 (gdb_completer_quote_characters): Now const arrays.
10811 (get_gdb_completer_quote_characters): Constify.
10812 (set_rl_completer_word_break_characters): New function.
10813 (set_gdb_completion_word_break_characters)
10814 (complete_line_internal): Use it.
10815 * completer.h (get_gdb_completer_quote_characters): Constify.
10816 (set_rl_completer_word_break_characters): Declare.
10817 * f-lang.c (f_word_break_characters): Constify.
10818 * language.c (default_word_break_characters): Constify.
10819 * language.h (language_defn::la_word_break_characters): Constify.
10820 (default_word_break_characters): Constify.
10821 * top.c (init_main): Use set_rl_completer_word_break_characters.
10822
7a114964
PA
108232017-04-05 Pedro Alves <palves@redhat.com>
10824
10825 * aix-thread.c (aix_thread_pid_to_str)
10826 (aix_thread_extra_thread_info): Constify.
10827 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
10828 * bsd-uthread.c (bsd_uthread_extra_thread_info)
10829 (bsd_uthread_pid_to_str): Constify.
10830 * corelow.c (core_pid_to_str): Constify.
10831 * darwin-nat.c (darwin_pid_to_str): Constify.
10832 * fbsd-nat.c (fbsd_pid_to_str): Constify.
10833 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
10834 Constify.
10835 * gnu-nat.c (gnu_pid_to_str): Constify.
10836 * go32-nat.c (go32_pid_to_str): Constify.
10837 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
10838 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
10839 * inferior.c (inferior_pid_to_str): Constify.
10840 * linux-nat.c (linux_nat_pid_to_str): Constify.
10841 * linux-tdep.c (linux_core_pid_to_str): Constify.
10842 * linux-thread-db.c (thread_db_pid_to_str)
10843 (thread_db_extra_thread_info): Constify.
10844 * nto-tdep.c (nto_extra_thread_info): Constify.
10845 * nto-tdep.h (nto_extra_thread_info): Constify.
10846 * obsd-nat.c (obsd_pid_to_str): Constify.
10847 * procfs.c (procfs_pid_to_str): Constify.
10848 * ravenscar-thread.c (ravenscar_extra_thread_info)
10849 (ravenscar_pid_to_str): Constify.
10850 * remote-sim.c (gdbsim_pid_to_str): Constify.
10851 * remote.c (remote_threads_extra_info, remote_pid_to_str):
10852 Constify.
10853 * sol-thread.c (solaris_pid_to_str): Constify.
10854 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
10855 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
10856 * target.c (default_pid_to_str, target_pid_to_str)
10857 (normal_pid_to_str, default_pid_to_str): Constify.
10858 * target.h (target_ops::to_pid_to_str)
10859 (target_ops::to_extra_thread_info): Constify.
10860 (target_pid_to_str, normal_pid_to_str): Constify.
10861 * windows-nat.c (windows_pid_to_str): Constify.
10862 * gdbarch.sh (core_pid_to_str): Constify.
10863 * target-delegates.c: Regenerate.
10864 * gdbarch.h, gdbarch.c: Regenerate.
10865
69bbf465
PA
108662017-04-05 Pedro Alves <palves@redhat.com>
10867
10868 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
10869 the memory of the temporary warning_pre_print override.
10870 * utils.c (warning_pre_print): Constify.
10871 * utils.h (warning_pre_print): Constify.
10872
be47f9e8
PA
108732017-04-05 Pedro Alves <palves@redhat.com>
10874
10875 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
10876 (shell_command): New function.
10877 (make_command): Use std::string.
10878 (init_cli_cmds): Register shell_command instead of shell_escape.
10879
bde6261a
PA
108802017-04-05 Pedro Alves <palves@redhat.com>
10881
10882 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
10883 * tracepoint.c (default_collect): Don't initialize.
10884
b38ef47f
PA
108852017-04-05 Pedro Alves <palves@redhat.com>
10886
10887 * macroexp.c (macro_buffer::shared): Now a bool.
10888 (init_buffer): Update.
10889 (init_shared_buffer): Constify 'addr' parameter.
10890 (substitute_args, expand, macro_expand, macro_expand_next): Remove
10891 casts.
10892
f995bbe8
PA
108932017-04-05 Pedro Alves <palves@redhat.com>
10894
10895 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
10896 * disasm.c (set_disassembler_options): Constify local.
10897 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
10898
4a596fe2
SDJ
108992017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
10900
10901 PR gdb/21352
10902 * tracefile.c (tsave_command): Fix argument parsing for '-r'
10903 option.
10904
2cad08ea
YQ
109052017-04-05 Yao Qi <yao.qi@linaro.org>
10906
10907 * frame.c (frame_unwind_register_unsigned): Call
10908 frame_unwind_register_value.
10909
55a98976
YQ
109102017-04-05 Yao Qi <yao.qi@linaro.org>
10911
10912 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
10913 Use gdb_test_multiple, and don't match anchor.
10914
4ac40124
PA
109152017-04-05 Pedro Alves <palves@redhat.com>
10916
10917 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
10918 (Write After Approval): Remove Simon Marchi.
10919
c053b654
PA
109202017-04-05 Pedro Alves <palves@redhat.com>
10921
10922 * common/gdb_optional.h (optional::optional): Make constexpr and
10923 initialize m_dummy.
10924
4c7bf4f9
JB
109252017-04-04 John Baldwin <jhb@FreeBSD.org>
10926
10927 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10928 (amd64fbsd_jmp_buf_reg_offset): Remove.
10929 (amd64fbsd_supply_uthread): Remove function.
10930 (amd64fbsd_collect_uthread): Remove function.
10931 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
10932 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
10933 (x86_64-*-freebsd*): Remove bsd-uthread.o.
10934 (fbsd-nat.c): Update comment.
10935 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10936 (i386fbsd_jmp_buf_reg_offset): Remove.
10937 (i386fbsd_supply_uthread): Remove function.
10938 (i386fbsd_collect_uthread): Remove function.
10939 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
10940
1e1a8bef
JB
109412017-04-04 John Baldwin <jhb@FreeBSD.org>
10942
10943 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
10944 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
10945 * NEWS: Mention that support for FreeBSD/alpha was removed.
10946 * alpha-fbsd-tdep.c: Delete file.
10947 * config/alpha/fbsd.mh: Delete file.
10948 * configure.host: Delete alpha*-*-freebsd* and
10949 alpha*-*-kfreebsd*-gnu.
10950 * configure.tgt: Delete alpha*-*-freebsd* and
10951 alpha*-*-kfreebsd*-gnu.
10952
49907934
JB
109532017-04-04 John Baldwin <jhb@FreeBSD.org>
10954
10955 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
10956 amd64bsd_store_inferior_registers): Use ptid from regcache.
10957
6f77053d
PA
109582017-04-04 Pedro Alves <palves@redhat.com>
10959
10960 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
10961 data fields, make them private and add "m_" prefixes.
10962 (lnp_state_machine::lnp_state_machine): New ctor.
10963 (record_line, check_line_address, handle_set_discriminator)
10964 (handle_set_address, handle_advance_pc, handle_special_opcode)
10965 (handle_advance_line, handle_set_file, handle_negate_stmt)
10966 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
10967 (end_sequence, advance_line): New methods.
10968 (m_gdbarch, m_record_lines_p): New fields.
10969 (lnp_reader_state): Delete.
10970 (dwarf_record_line): Rename to ...
10971 (lnp_state_machine::record_line): ... adjust.
10972 (init_lnp_state_machine): Delete.
10973 (lnp_state_machine::lnp_state_machine): New.
10974 (check_line_address): Rename to ...
10975 (lnp_state_machine::check_line_address): This.
10976 (dwarf_decode_lines_1): Remove reference to "reader_state".
10977 Adjust lnp_state_machine having a non-default ctor. Use bool.
10978 State machine internal state manipulation moved to
10979 lnp_state_machine methods.
10980
9c541725
PA
109812017-04-04 Pedro Alves <palves@redhat.com>
10982
10983 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10984 unittests/offset-type-selftests.c.
10985 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
10986 * common/offset-type.h: New file.
10987 * common/preprocessor.h: New file.
10988 * common/traits.h: New file.
10989 * common/valid-expr.h: New file.
10990 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
10991 sect_offset and cu_offset strong typedefs throughout.
10992 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
10993 typedefs throughout.
10994 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
10995 sect_offset and cu_offset strong typedefs throughout.
10996 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
10997 typedefs throughout.
10998 * gdbtypes.h: Include "common/offset-type.h".
10999 (cu_offset): Now an offset type (strong typedef) instead of a
11000 struct.
11001 (sect_offset): Likewise.
11002 (union call_site_parameter_u): Rename "param_offset" field to
11003 "param_cu_off".
11004 * unittests/offset-type-selftests.c: New file.
11005
ecfb656c
PA
110062017-04-04 Pedro Alves <palves@redhat.com>
11007
11008 * common/underlying.h: New file.
11009 * dwarf2read.c: Include "common/gdb_optional.h" and
11010 "common/underlying.h".
11011 (dir_index, file_name_index): New types.
11012 (file_entry): Use them.
11013 (file_entry::include): Use to_underlying.
11014 (line_header::add_file_name): Use dir_index.
11015 (read_formatted_entries): Use gdb::optional. Read form before
11016 writting to file_entry.
11017 (dwarf_decode_line_header): Use dir_index.
11018 (lnp_state_machine::current_file): Use to_underlying.
11019 (lnp_state_machine::file): Change type to file_name_index.
11020 (dwarf_record_line): Use to_underlying.
11021 (init_lnp_state_machine): Use file_name_index.
11022 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11023
d194f1fe
PA
110242017-04-04 Pedro Alves <palves@redhat.com>
11025
11026 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11027 operator bool, has_value and get methods.
11028
fff8551c
PA
110292017-04-04 Pedro Alves <palves@redhat.com>
11030
11031 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11032 fields.
11033 (line_header): Initialize all data fields. Change type of
11034 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11035 Change type of include_dirs to std::vector<const char *>. Remove
11036 num_include_dirs, include_dirs_size. Change type of file_names to
11037 std::vector<file_entry>. Remove num_file_names, file_names_size.
11038 (line_header::line_header): New.
11039 (line_header::add_include_dir, line_header::add_file_name): New
11040 methods.
11041 (line_header::include_dir_at): Remove NULL check.
11042 (line_header::file_name_at): Add const overload.
11043 (line_header_up): New unique_ptr typedef.
11044 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11045 std::vector. Remove free_line_header call.
11046 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11047 free_line_header call.
11048 (free_cu_line_header): Delete.
11049 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11050 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11051 Adjust to use std::vector.
11052 (free_line_header): Delete.
11053 (free_line_header_voidp): Use delete.
11054 (add_include_dir): Replace with ...
11055 (line_header::add_include_dir): ... this method. Use std::vector.
11056 (add_file_name): Replace with ...
11057 (line_header::add_file_name): ... this method. Use std::vector.
11058 (add_include_dir_stub): Delete.
11059 (read_formatted_entries): Remove memset.
11060 (dwarf_decode_line_header): Return a line_header_up instead of a
11061 raw pointer. Remove cleanup handling. Pass lambdas to
11062 read_formatted_entries. Adjust to use line_header methods.
11063 (dwarf_decode_lines_1): Adjust to use line_header methods.
11064 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11065 use std::vector.
11066
d62a8ae2
SM
110672017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11068
11069 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11070 instead of struct ptid.
11071
db3a1dc7
AH
110722017-05-04 Alan Hayward <alan.hayward@arm.com>
11073
11074 * frame.c (get_frame_register_bytes): Unwind using value.
11075 (put_frame_register_bytes): Likewise.
11076
b1b45502
IB
110772017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11078
11079 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11080 aggregate-like.
11081
ec13808e
JK
110822017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11083
11084 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11085
12316564
YQ
110862017-03-29 Yao Qi <yao.qi@linaro.org>
11087
11088 * gdbthread.h (struct thread_info): Declare constructor and
11089 destructor. Add some in-class member initializers.
11090 * thread.c (free_thread): Remove.
11091 (init_thread_list): Call delete instead of free_thread.
11092 (new_thread): Call thread_info constructor.
11093 (thread_info::thread_info): New function.
11094 (thread_info::~thread_info): New function.
11095 (delete_thread_1): Call delete instead of free_thread.
11096 (make_cleanup_restore_current_thread): Move tp and frame to
11097 inner block.
11098
fe5f7374
AK
110992017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11100
11101 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11102 (arc_skip_prologue): Likewise.
11103 (arc_make_frame_cache): Likewise.
11104 (arc_pv_get_operand): New function.
11105 (arc_is_in_prologue): Likewise.
11106 (arc_analyze_prologue): Likewise.
11107 (arc_print_frame_cache): Likewise.
11108 (MAX_PROLOGUE_LENGTH): New constant.
11109
eea78757
AK
111102017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11111
11112 * configure.tgt: Add arc-insn.o.
11113 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11114 (dump_arc_instruction_command): New function.
11115 (arc_fprintf_disasm): Likewise.
11116 (arc_disassemble_info): Likewise.
11117 (arc_insn_get_operand_value): Likewise.
11118 (arc_insn_get_operand_value_signed): Likewise.
11119 (arc_insn_get_memory_base_reg): Likewise.
11120 (arc_insn_get_memory_offset): Likewise.
11121 (arc_insn_get_branch_target): Likewise.
11122 (arc_insn_dump): Likewise.
11123 (arc_insn_get_linear_next_pc): Likewise.
11124 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11125 (arc_disassemble_info): Likewise.
11126 (arc_insn_get_branch_target): Likewise.
11127 (arc_insn_get_linear_next_pc): Likewise.
11128 * NEWS: Mention new "maint print arc arc-instruction".
11129
3be78afd
AK
111302017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11131
11132 * arc-tdep (maintenance_print_arc_list): New variable.
11133 (maintenance_print_arc_command): New function.
11134
296ec4fa
AK
111352017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11136
11137 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11138 Add "limm" and "reserved".
11139 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11140 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11141 * arc-tdep.h (arc_regnum): Likewise.
11142
f74f865e
MF
111432017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11144
11145 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11146 for THREADPTR register.
11147 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11148 register.
11149 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11150 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11151 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11152
0d0bf81a
MF
111532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11154
11155 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11156 registers above gdbarch_num_regs (gdbarch) as privileged in
11157 call0 ABI.
11158
0ce4291e
MF
111592017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11160
11161 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11162 for a single specified register or for all registers in
11163 a0_base..a0_base + C0_NREGS range.
11164 (supply_gregset_reg): Call regcache_raw_supply for a single
11165 specified register or for all registers in a0_base..a0_base +
11166 C0_NREGS range.
11167
c56054f9
MF
111682017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11169
11170 * arch/xtensa.h (C0_NREGS): Add definition.
11171 * xtensa-tdep.c (C0_NREGS): Remove definition.
11172
a4398628
MF
111732017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11174
11175 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11176 Drop xtensa_default_isa initialization.
11177 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11178
8c43009f
PA
111792017-03-27 Pedro Alves <palves@redhat.com>
11180
11181 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11182 (file_entry::include_dir): New method.
11183 (line_header::include_dir_at, line_header::file_name_at): New
11184 methods.
11185 (setup_type_unit_groups, setup_type_unit_groups)
11186 (psymtab_include_file_name): Simplify using the new methods.
11187 (lnp_state_machine) <the_line_header>: New field.
11188 <file>: Add comment.
11189 (lnp_state_machine::current_file): New method.
11190 (dwarf_record_line): Simplify using the new methods.
11191 (init_lnp_state_machine): Initialize the "the_line_header" field.
11192 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11193 Simplify using the new methods.
11194
a7e80b9e
PA
111952017-03-27 Pedro Alves <palves@redhat.com>
11196
11197 * cp-name-parser.y (make_empty): Delete.
11198 (demangler_special, nested_name, ptr_operator, array_indicator)
11199 (direct_declarator, declarator_1): Use fill_comp instead of
11200 make_empty.
11201
21047726
PA
112022017-03-27 Pedro Alves <palves@redhat.com>
11203
11204 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11205 to ATTRIBUTE_PRINTF.
11206 * solib-target.c (library_list_start_list): Print "string" not
11207 "version".
11208 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11209 gdb_xml_error call.
11210
d721ba37
PA
112112017-03-27 Pedro Alves <palves@redhat.com>
11212
11213 * dwarf2read.c (struct file_and_directory): New.
11214 (dwarf2_get_dwz_file): Adjust to use std::string.
11215 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11216 (find_file_and_directory): Adjust to return a file_and_directory
11217 object.
11218 (read_file_scope): Adjust to use file_and_directory. Remove
11219 make_cleanup/do_cleanups calls.
11220 (open_and_init_dwp_file): Adjust to use std::string. Remove
11221 make_cleanup/do_cleanups calls.
11222 * python/python.c (do_start_initialization): Adjust to ldirname
11223 returning a std::string.
11224 * utils.c (ldirname): Now returns a std::string.
11225 * utils.h (ldirname): Change return type to std::string.
11226 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11227 returning a std::string.
11228 * xml-tdesc.c (file_read_description_xml): Likewise.
11229
ed771251
AH
112302017-03-24 Alan Hayward <alan.hayward@arm.com>
11231
11232 * regcache.c (regcache_debug_print_register): New function.
11233 * regcache.h (regcache_debug_print_register): New declaration.
11234 * target.c (debug_print_register): Remove.
11235 (target_fetch_registers): Call regcache_debug_print_register.
11236 (target_store_registers): Likewise.
11237
568c1b9f
PB
112382017-03-24 Pádraig Brady <pbrady@fb.com>
11239
11240 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11241 reference beyond the 'lh->include_dirs' array before accessing to
11242 it.
11243 (psymtab_include_file_name): Likewise.
11244 (dwarf_decode_lines_1): Likewise.
11245 (dwarf_decode_lines): Likewise.
11246 (file_file_name): Likewise.
11247
3e00d44f
SM
112482017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11249
11250 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11251 inferior_ptid.
11252 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11253 ps_lsetfpregs): Likewise.
11254 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11255 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11256 ps_lsetfpregs): Likewise.
11257 * target.c (target_fetch_registers, target_store_registers):
11258 Remove asserts.
11259
077ae656
AH
112602017-03-23 Alan Hayward <alan.hayward@arm.com>
11261
11262 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11263
1e2b521d
YQ
112642017-03-23 Yao Qi <yao.qi@linaro.org>
11265
11266 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11267 (_initialize_aarch64_tdep): Register it.
11268 (aarch64_record_load_store): Handle PRFM instruction.
11269 (aarch64_process_record_test): New function.
11270
33877125
YQ
112712017-03-23 Yao Qi <yao.qi@linaro.org>
11272
11273 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11274 indentation.
11275
a0eef940
YQ
112762017-03-23 Yao Qi <yao.qi@linaro.org>
11277
11278 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11279
3f2a3564
PR
112802017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11281
11282 python/python.c (do_start_initialization): Fix memory leak.
11283
b67aeab0
SM
112842017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11285
11286 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11287 using get_ptrace_pid.
11288 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11289 inferior_ptid.
11290 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11291 inferior_ptid instead of pid.
11292
ffdbe864
YQ
112932017-03-22 Yao Qi <yao.qi@linaro.org>
11294
11295 * aarch64-tdep.c: Wrap locally used classes in anonymous
11296 namespace.
11297 * arm-tdep.c: Likewise.
11298 * linespec.c: Likewise.
11299 * ui-out.c: Likewise.
11300
9d736fbf
JG
113012017-03-22 Jonah Graham <jonah@kichwacoders.com>
11302
11303 PR gdb/19637
11304 * python/lib/gdb/printer/bound_registers.py: Import sys.
11305
3de88e9a
SM
113062017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11307
11308 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11309 windows_thread_info parameter and use it instead of
11310 current_thread.
11311 (windows_fetch_inferior_registers): Don't set current_thread,
11312 pass the thread to do_windows_fetch_inferior_registers. Use
11313 ptid from regcache instead of inferior_ptid.
11314 (do_windows_store_inferior_registers): Add windows_thread_info
11315 parameter and use it instead of current_thread.
11316 (windows_store_inferior_registers): Don't set current_thread,
11317 pass the thread to do_windows_store_inferior_registers. Use
11318 ptid from regcache instead of inferior_ptid.
11319
0e7b8f61
SM
113202017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11321
11322 * ser-mingw.c (ser_windows_raw): Remove reference to
11323 struct serial::current_timeout.
11324
5badf10a
IR
113252017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11326
11327 PR tdep/20928
11328 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11329 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11330 (sparc64_fsr_type): Fix %fsr decoding.
11331
cee59b3f
TW
113322017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11333
11334 * python/py-record-btrace.c (btpy_insn_data): Change return type
11335 for Python 2.
11336
639a9038
SM
113372017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11338
11339 * spu-linux-nat.c (spu_fetch_inferior_registers,
11340 spu_store_inferior_registers): Use ptid from regcache, set and
11341 restore inferior_ptid.
11342 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11343 Likewise.
11344
bcc0c096
SM
113452017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11346
11347 * i386-linux-nat.c (fetch_register, store_register,
11348 i386_linux_fetch_inferior_registers,
11349 i386_linux_store_inferior_registers): Use ptid from regcache.
11350 * ia64-linux-nat.c (ia64_linux_fetch_register,
11351 ia64_linux_store_register): Likewise.
11352 * inf-ptrace.c (inf_ptrace_fetch_register,
11353 inf_ptrace_store_register): Likewise.
11354 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11355 m32r_linux_store_inferior_registers): Likewise.
11356 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11357 m68kbsd_store_inferior_registers): Likewise.
11358 * m68k-linux-nat.c (fetch_register, store_register,
11359 m68k_linux_fetch_inferior_registers,
11360 m68k_linux_store_inferior_registers): Likewise.
11361 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11362 m88kbsd_store_inferior_registers): Likewise.
11363 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11364 mips_fbsd_store_inferior_registers): Likewise.
11365 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11366 mips64_linux_regsets_store_registers): Likewise.
11367 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11368 mipsnbsd_store_inferior_registers): Likewise.
11369 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11370 mips64obsd_store_inferior_registers): Likewise.
11371 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11372 Likewise.
11373 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11374 ppcfbsd_store_inferior_registers): Likewise.
11375 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11376 ppc_linux_store_inferior_registers): Likewise.
11377 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11378 ppcnbsd_store_inferior_registers): Likewise.
11379 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11380 ppcobsd_store_registers): Likewise.
11381 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11382 Likewise.
11383 * ravenscar-thread.c (ravenscar_fetch_registers,
11384 ravenscar_store_registers, ravenscar_prepare_to_store):
11385 Likewise.
11386 * record-btrace.c (record_btrace_fetch_registers,
11387 record_btrace_store_registers, record_btrace_prepare_to_store):
11388 Likewise.
11389 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11390 Lookup inferior using ptid from regcache, instead of
11391 current_inferior.
11392 * remote.c (remote_fetch_registers, remote_store_registers): Use
11393 ptid from regcache.
11394 * rs6000-nat.c (fetch_register, store_register): Likewise.
11395 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11396 s390_linux_store_inferior_registers): Likewise.
11397 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11398 shnbsd_store_inferior_registers): Likewise.
11399 * sol-thread.c (sol_thread_fetch_registers,
11400 sol_thread_store_registers): Likewise.
11401 * sparc-nat.c (sparc_fetch_inferior_registers,
11402 sparc_store_inferior_registers): Likewise.
11403 * tilegx-linux-nat.c (fetch_inferior_registers,
11404 store_inferior_registers): Likewise.
11405 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11406 vaxbsd_store_inferior_registers): Likewise.
11407 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11408 store_xtregs): Likewise.
11409
c0f55cc6
AV
114102017-03-20 Artemiy Volkov <artemiyv@acm.org>
11411
11412 PR gdb/14441
11413 * NEWS: Mention support for rvalue references in GDB and python.
11414 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11415 supports both lvalue and rvalue references.
11416
15c0a2a9
AV
114172017-03-20 Artemiy Volkov <artemiyv@acm.org>
11418
11419 PR gdb/14441
11420 * gdbtypes.c (rank_one_type): Implement overloading
11421 resolution rules regarding rvalue references.
11422
aa006118
AV
114232017-03-20 Artemiy Volkov <artemiyv@acm.org>
11424
11425 PR gdb/14441
11426 * aarch64-tdep.c (aarch64_type_align)
11427 (aarch64_extract_return_value, aarch64_store_return_value): Change
11428 lvalue reference type checks to general reference type checks.
11429 * amd64-tdep.c (amd64_classify): Likewise.
11430 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11431 Likewise.
11432 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11433 (arm_store_return_value): Likewise.
11434 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11435 * c-typeprint.c (c_print_type): Likewise.
11436 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11437 (cplus_number_of_children, cplus_describe_child): Likewise.
11438 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11439 * completer.c (expression_completer): Likewise.
11440 * cp-support.c (make_symbol_overload_list_adl_namespace):
11441 Likewise.
11442 * darwin-nat-info.c (info_mach_region_command): Likewise.
11443 * dwarf2loc.c (entry_data_value_coerce_ref)
11444 (value_of_dwarf_reg_entry): Likewise.
11445 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11446 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11447 Likewise.
11448 * findvar.c (extract_typed_address, store_typed_address):
11449 Likewise.
11450 * gdbtypes.c (rank_one_type): Likewise.
11451 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11452 * infcall.c (value_arg_coerce): Likewise.
11453 * language.c (pointer_type): Likewise.
11454 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11455 Likewise.
11456 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11457 * mn10300-tdep.c (mn10300_type_align): Likewise.
11458 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11459 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11460 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11461 Likewise.
11462 * printcmd.c (print_formatted, x_command): Likewise.
11463 * python/py-type.c (typy_get_composite, typy_template_argument):
11464 Likewise.
11465 * python/py-value.c (valpy_referenced_value)
11466 (valpy_get_dynamic_type, value_has_field): Likewise.
11467 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11468 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11469 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11470 * spu-tdep.c (spu_scalar_value_p): Likewise.
11471 * symtab.c (lookup_symbol_aux): Likewise.
11472 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11473 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11474 Likewise.
11475 * valops.c (value_cast_pointers, value_cast)
11476 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11477 (value_struct_elt, value_struct_elt_bitpos)
11478 (value_find_oload_method_list, find_overload_match)
11479 (value_rtti_indirect_type): Likewise.
11480 * valprint.c (val_print_scalar_type_p, generic_val_print):
11481 Likewise.
11482 * value.c (value_actual_type, value_as_address, unpack_long)
11483 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11484 (coerce_ref): Likewise.
11485 * varobj.c (varobj_get_value_type): Likewise.
11486
3fcf899d
AV
114872017-03-20 Artemiy Volkov <artemiyv@acm.org>
11488
11489 PR gdb/14441
11490 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11491 table of constants.
11492 * python/lib/gdb/command/explore.py: Support exploring values
11493 of rvalue reference types.
11494 * python/lib/gdb/types.py: Implement get_basic_type() for
11495 rvalue reference types.
11496 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11497 constant.
11498 * python/py-value.c (valpy_getitem): Add an rvalue reference
11499 check.
11500 (valpy_reference_value): Add new parameter "refcode".
11501 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11502 New wrappers for valpy_reference_value().
11503 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11504 (gdbpy_invoke_xmethod): Likewise.
11505
4297a3f0
AV
115062017-03-20 Artemiy Volkov <artemiyv@acm.org>
11507
11508 PR gdb/14441
11509 * dwarf2read.c (process_die, read_type_die_1): Handle the
11510 DW_TAG_rvalue_reference_type DIE.
11511 (read_tag_reference_type): Add new parameter "refcode".
11512
e1cb3213
AV
115132017-03-20 Artemiy Volkov <artemiyv@acm.org>
11514
11515 PR gdb/14441
11516 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11517 (c_type_print_modifier, c_type_print_varspec_suffix)
11518 (c_type_print_base): Support printing rvalue reference types.
11519 * c-valprint.c (c_val_print, c_value_print): Support printing
11520 rvalue reference values.
11521
e4347c89
AV
115222017-03-20 Artemiy Volkov <artemiyv@acm.org>
11523
11524 PR gdb/14441
11525 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11526 typename.
11527 * cp-support.c (replace_typedefs): Handle
11528 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11529 * python/py-type.c (typy_lookup_type): Likewise.
11530
53cc15f5
AV
115312017-03-20 Artemiy Volkov <artemiyv@acm.org>
11532
11533 PR gdb/14441
11534 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11535 * parse.c (insert_type): Change assert statement.
11536 (follow_types): Handle rvalue reference types.
11537 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11538 constant.
11539
a65cfae5
AV
115402017-03-20 Artemiy Volkov <artemiyv@acm.org>
11541
11542 PR gdb/14441
11543 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11544 value_ref() interface.
11545 * c-valprint.c (c_value_print): Likewise.
11546 * infcall.c (value_arg_coerce): Likewise.
11547 * python/py-value.c (valpy_reference_value): Likewise.
11548 * valops.c (value_cast, value_reinterpret_cast)
11549 (value_dynamic_cast, typecmp): Likewise.
11550 (value_ref): Parameterize by kind of return value reference type.
11551 * value.h (value_ref): Add new parameter "refcode".
11552
3b224330
AV
115532017-03-20 Artemiy Volkov <artemiyv@acm.org>
11554
11555 PR gdb/14441
11556 * dwarf2read.c (read_tag_reference_type): Use
11557 lookup_lvalue_reference_type() instead of lookup_reference_type().
11558 * eval.c (evaluate_subexp_standard): Likewise.
11559 * f-exp.y: Likewise.
11560 * gdbtypes.c (make_reference_type, lookup_reference_type):
11561 Generalize with rvalue reference types.
11562 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11563 convenience wrappers for lookup_reference_type().
11564 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11565 reference kind parameter.
11566 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11567 wrappers for lookup_reference_type().
11568 * guile/scm-type.c (gdbscm_type_reference): Use
11569 lookup_lvalue_reference_type() instead of lookup_reference_type().
11570 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11571 * parse.c (follow_types): Likewise.
11572 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11573 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11574 Likewise.
11575 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11576 (gdbpy_invoke_xmethod): Likewise.
11577 * stabsread.c: Provide extra argument to make_reference_type()
11578 call.
11579 * valops.c (value_ref, value_rtti_indirect_type): Use
11580 lookup_lvalue_reference_type() instead of lookup_reference_type().
11581
f9aeb8d4
AV
115822017-03-20 Artemiy Volkov <artemiyv@acm.org>
11583
11584 PR gdb/14441
11585 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11586 (TYPE_IS_REFERENCE): New macro.
11587 (struct type): Add rvalue_reference_type field.
11588 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11589
51457a05
MAL
115902017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11591
11592 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11593 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11594 New function definition.
11595 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11596 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11597 New function declaration.
11598 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11599 * mi/mi-interp.h: New file.
11600 * solib.c (info_sharedlibrary_command): Replace for loop with
11601 ALL_SO_LIBS macro
11602 * solib.h (update_solib_list): New function declaration.
11603 (so_list_head): Move macro.
11604 * solist.h (ALL_SO_LIBS): New macro.
11605
e696b3ad
MAL
116062017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11607
11608 * infcmd.c (post_create_inferior): Remove unused argument in
11609 call to solib_add.
11610 * remote.c (remote_start_remote): Likewise.
11611 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11612 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11613 (enable_break): Likewise.
11614 * solib.c (update_solib_list): Remove unused target argument
11615 and its documentation.
11616 (solib_add): Remove unused target argument. Remove unused
11617 argument in call to update_solib_list.
11618 (info_sharedlibrary_command): Remove unused argument in call
11619 to update_solib_list.
11620 (sharedlibrary_command): Remove unused argument in call to
11621 solib_add.
11622 (handle_solib_event): Likewise.
11623 (reload_shared_libraries): Likewise.
11624 * solib.h (solib_add): Remove unused target argument.
11625
dcb84eda
AA
116262017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11627
11628 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11629 (s390_displaced_step_fixup): Cover relative branches with the
11630 default fixup handling. This fixes lack of support for some
11631 relative branch instructions.
11632
d9cb6cdc
SM
116332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11634
11635 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11636 ptid from regcache.
11637
1afaf9f4
SM
116382017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11639
11640 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11641 i386_darwin_store_inferior_registers): Use ptid from regcache.
11642
aac12e24
SM
116432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11644
11645 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11646 i386bsd_store_inferior_registers): Use ptid from regcache.
11647
bbe1eef1
SM
116482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11649
11650 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11651 hppaobsd_store_registers): Use ptid from regcache.
11652
10799020
SM
116532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11654
11655 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11656 hppanbsd_store_registers): Use ptid from regcache.
11657
00204cf7
SM
116582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11659
11660 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11661 from regcache. Use get_ptrace_pid.
11662
11a33714
SM
116632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11664
11665 * corelow.c (get_core_register_section): Use ptid from regcache,
11666 update doc.
11667
317cd492
SM
116682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11669
11670 * bsd-uthread.c (bsd_uthread_fetch_registers,
11671 bsd_uthread_store_registers): Use ptid from regcache, set and
11672 restore inferior_ptid.
11673
9ac8a7c2
SM
116742017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11675
11676 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11677 fetch_fp_regs, store_register, store_regs, store_fp_register,
11678 store_fp_regs): Use ptid from regcache.
11679
4ac4bb6a
SM
116802017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11681
11682 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11683 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11684 store_vfp_regs): Use ptid from regcache.
11685
9bcbdca8
PA
116862017-03-17 Pedro Alves <palves@redhat.com>
11687
11688 PR remote/21188
11689 * ser-base.c (ser_base_wait_for): Add comment.
11690 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11691 version.
11692 * ser-unix.c (hardwire_raw): Remove reference to
11693 scb->current_timeout.
11694 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11695 (hardwire_ops): Install ser_base_readchar instead of
11696 hardwire_readchar.
11697 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11698 Remove fields.
11699
7503099f
JG
117002017-03-17 Jonah Graham <jonah@kichwacoders.com>
11701
11702 PR gdb/19637
11703 * python/lib/gdb/printer/bound_registers.py: Add support for
11704 Python 3.
11705
7942e96e
AA
117062017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11707
11708 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11709 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11710 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11711 byte_offset to subobj_byte_offset. Fix the handling of
11712 DWARF_VALUE_STACK on big-endian targets when coming via an
11713 implicit pointer.
11714 (dwarf2_evaluate_loc_desc): Adjust call to
11715 dwarf2_evaluate_loc_desc_full.
11716 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11717 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11718
ba14f379
YQ
117192017-03-16 Yao Qi <yao.qi@linaro.org>
11720
11721 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11722 and REVSH instructions.
11723
b121eeb9
YQ
117242017-03-16 Yao Qi <yao.qi@linaro.org>
11725
11726 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11727 (arm_record_test): Declare.
11728 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11729 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11730 align with the manual.
11731 (thumb_record_misc): Adjust the code order to align with the
11732 manual.
11733 (thumb2_record_decode_insn_handler): Fix instruction matching.
11734 (instruction_reader_thumb): New class.
11735 (arm_record_test): New function.
11736
728a7913
YQ
117372017-03-16 Yao Qi <yao.qi@linaro.org>
11738
11739 * arm-tdep.c (abstract_memory_reader): New class.
11740 (instruction_reader): New class.
11741 (extract_arm_insn): Add argument 'reader'. Callers updated.
11742 (decode_insn): Likewise.
11743
34b43320
DE
117442017-03-16 Doug Evans <dje@google.com>
11745
a7c0469f
DE
11746 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11747 member. Change type of TYPE member to SCM. All uses updated.
11748 (lsscm_make_lazy_string_smob): Add assert.
11749 (lsscm_make_lazy_string): Flag bad length values.
11750 (lsscm_elt_type): New function.
11751 (gdbscm_lazy_string_to_value): Rewrite to use
11752 lsscm_safe_lazy_string_to_value.
11753 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11754 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11755 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11756 in incoming type.
11757 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11758 * guile/scm-type.c (tyscm_scm_to_type): New function.
11759
117602017-03-15 Doug Evans <dje@google.com>
11761
34b43320
DE
11762 PR python/17728, python/18439, python/18779
11763 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11764 member. Change type of TYPE member to PyObject *. All uses updated.
11765 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11766 (gdbpy_create_lazy_string_object): Flag bad length values.
11767 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
11768 Handle typedefs in incoming type.
11769 (stpy_lazy_string_elt_type): New function.
11770 (gdbpy_extract_lazy_string): Call it.
11771 * python/py-value.c (valpy_lazy_string): Flag bad length values.
11772 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
11773 typedefs in incoming type.
11774
a3a5fecc
DE
117752017-03-16 Doug Evans <dje@google.com>
11776
11777 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11778 * guile/scm-type.c (tyscm_scm_to_type): New function.
11779
28f1c605
JW
117802017-03-16 Jiong Wang <jiong.wang@arm.com>
11781
11782 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
11783 "ULONGEST" for "skip".
11784
87c336f6
AA
117852017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11786
11787 PR gdb/21220
11788 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
11789 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
11790 (inf_ptrace_peek_poke): ...here. New function. Now also loop
11791 over ptrace peek/poke until end of buffer or error.
11792
cf81cf60
SM
117932017-03-14 Simon Marchi <simon.marchi@ericsson.com>
11794
11795 * parse.c (length_of_subexp): Make static.
11796 * parser-defs.h (length_of_subexp): Remove.
11797
a379284a
AA
117982017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11799
11800 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
11801 as well.
11802
8a6200ba
PA
118032017-03-14 Pedro Alves <palves@redhat.com>
11804
11805 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
11806 (main): Use std::unique_ptr. Remove calls to
11807 cp_demangled_name_parse_free.
11808
f79ec206
SM
118092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11810
11811 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
11812 alphabsd_store_inferior_registers): Use regcache->ptid instead
11813 of inferior_ptid.
11814
edb5fb00
SM
118152017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11816
11817 * aix-thread.c (aix_thread_fetch_registers,
11818 aix_thread_store_registers): Use regcache->ptid instead of
11819 inferior_ptid.
11820
55119686
SM
118212017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11822
11823 * aarch64-linux-nat.c (fetch_gregs_from_thread,
11824 store_gregs_to_thread, fetch_fpregs_from_thread,
11825 store_fpregs_to_thread): Use regcache->ptid instead of
11826 inferior_ptid.
11827
6a06fbb7
SM
118282017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11829
11830 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
11831 amd64_linux_fetch_inferior_registers): Use regcache->ptid
11832 instead of inferior_ptid.
11833
c6386875
SM
118342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11835
11836 * target.c (target_fetch_registers, target_store_registers): Add
11837 assert.
11838
ddaaf0fb
SM
118392017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11840
11841 * regcache.h (regcache_get_ptid): New function.
11842 * regcache.c (regcache_get_ptid): New function.
11843
b9da89d1 118442017-03-13 Mark Wielaard <mark@klomp.org>
11845
11846 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
11847
5f4d1085
KS
118482017-03-10 Keith Seitz <keiths@redhat.com>
11849
11850 PR c++/8218
11851 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
11852
c65d6b55
PA
118532017-03-08 Pedro Alves <palves@redhat.com>
11854
11855 PR gdb/18360
11856 * infrun.c (start_step_over, do_target_resume, resume)
11857 (restart_threads): Assert we're not resuming a thread that is
11858 meant to be stopped.
11859 (infrun_thread_stop_requested_callback): Delete.
11860 (infrun_thread_stop_requested): If the thread is internally
11861 stopped, queue a pending stop event and clear the thread's
11862 inline-frame state.
11863 (handle_stop_requested): New function.
11864 (handle_syscall_event, handle_inferior_event_1): Use
11865 handle_stop_requested.
11866 (handle_stop_requested): New function.
11867 (handle_signal_stop): Set the thread's stop_signal here instead of
11868 at caller.
11869 (finish_step_over): Clear step over info unconditionally.
11870 (handle_signal_stop): If the user had interrupted the event
11871 thread, consider the stop a random signal.
11872 (handle_signal_stop) <signal arrived while stepping over
11873 breakpoint>: Don't restart threads here.
11874 (stop_waiting): Don't clear step-over info here.
11875
15c22686
PA
118762017-03-08 Pedro Alves <palves@redhat.com>
11877
11878 PR 21206
11879 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
11880 goes to argument 2, not 1.
11881
6e5d74e7
PA
118822017-03-08 Pedro Alves <palves@redhat.com>
11883
11884 PR cli/21218
11885 * top.c (gdb_readline_wrapper): Avoid passing NULL to
11886 display_gdb_prompt.
11887 (command_line_input): Add comment.
11888
9753a2f6
PA
118892017-03-08 Pedro Alves <palves@redhat.com>
11890
11891 PR tui/21216
11892 * tui/tui-file.c (tui_file::write): New.
11893 * tui/tui-file.h (tui_file): Override "write".
11894 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
11895 factored out from ...
11896 (tui_puts): ... here.
11897 (tui_putc): Use them.
11898 (tui_write): New function.
11899 * tui/tui-io.h (tui_write): Declare.
11900
1672e0d9
SDJ
119012017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
11902
11903 * Makefile.in (SFILES): Replace "environ.c" with
11904 "common/environ.c".
11905 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
11906 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
11907 to...
11908 * common/environ.c: ... here.
11909 * environ.h: Moved to...
11910 * common/environ.h: ... here.
11911
f7bb4e3a
PB
119122017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11913
11914 * gdbarch.sh (pstring_ptr): New static function.
11915 (gdbarch_disassembler_options): Use it.
11916 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
11917 not valid_disassembler_option->name.
11918 * gdbarch.c: Regenerate.
11919
e45ced6c
PB
119202017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11921
11922 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
11923
5f6fd321
PA
119242017-03-07 Pedro Alves <palves@redhat.com>
11925
11926 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
11927
6dbb839a 119282017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
11929
11930 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
11931 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
11932 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 11933 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 11934
d274ecf4
SM
119352017-03-06 Simon Marchi <simon.marchi@ericsson.com>
11936
11937 * xtensa-linux-nat.c (fetch_gregs): Remove const.
11938
df97be55
SM
119392017-03-03 Simon Marchi <simon.marchi@ericsson.com>
11940
11941 * remote.c (remote_add_target_side_commands): Use range-based
11942 for loop.
11943
7d45f3df
YQ
119442017-03-03 Yao Qi <yao.qi@linaro.org>
11945
11946 PR gdb/21165
11947 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
11948 value is lazy.
11949 * valprint.c (common_val_print): Likewise.
11950
65b48a81
PB
119512017-02-28 Peter Bergner <bergner@vnet.ibm.com>
11952
11953 * NEWS: Mention new set/show disassembler-options commands.
11954 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
11955 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
11956 (prospective_options): New static variable.
11957 (gdb_disassembler::gdb_disassembler): Initialize
11958 m_di.disassembler_options.
11959 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
11960 (get_disassembler_options): New function.
11961 (set_disassembler_options): Likewise.
11962 (set_disassembler_options_sfunc): Likewise.
11963 (show_disassembler_options_sfunc): Likewise.
11964 (disassembler_options_completer): Likewise.
11965 (_initialize_disasm): Likewise.
11966 * disasm.h (get_disassembler_options): New prototype.
11967 (set_disassembler_options): Likewise.
11968 * gdbarch.sh (gdbarch_disassembler_options): New variable.
11969 (gdbarch_verify_disassembler_options): Likewise.
11970 * gdbarch.c: Regenerate.
11971 * gdbarch.h: Likewise.
11972 * arm-tdep.c (num_disassembly_options): Delete.
11973 (set_disassembly_style): Likewise.
11974 (arm_disassembler_options): New static variable.
11975 (set_disassembly_style_sfunc): Convert short style name into long
11976 option name. Call set_disassembler_options.
11977 (show_disassembly_style_sfunc): New function.
11978 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
11979 set_gdbarch_verify_disassembler_options.
11980 (_initialize_arm_tdep): Delete regnames variable and update callers.
11981 (arm_disassembler_options): Initialize.
11982 (disasm_options): New variable.
11983 (num_disassembly_options): Rename from this...
11984 (num_disassembly_styles): ...to this. Compute by scanning through
11985 disasm_options.
11986 (valid_disassembly_styles): Initialize using disasm_options.
11987 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
11988 set_arm_regname_option.
11989 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
11990 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
11991 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
11992 set_gdbarch_verify_disassembler_options.
11993 * s390-tdep.c (s390_disassembler_options): New static variable.
11994 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
11995 set_gdbarch_verify_disassembler_options.
11996
d538e36d
SM
119972017-02-27 Simon Marchi <simon.marchi@ericsson.com>
11998
11999 * remote.c (remote_add_target_side_condition): Remove "struct"
12000 keyword from range-based for loop.
12001
83621223
SM
120022017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12003
12004 * remote.c (remote_add_target_side_condition): Use range-based
12005 for loop. Update comment.
12006
2123df0e
YQ
120072017-02-27 Yao Qi <yao.qi@linaro.org>
12008
12009 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12010
8e368124
AH
120112017-02-26 Alan Hayward <alan.hayward@arm.com>
12012
12013 * regcache.c (regcache_raw_update): New function.
12014 (regcache_raw_read): Move code to regcache_raw_update.
12015 * regcache.h (regcache_raw_update): New declaration.
12016 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12017
a49dd8dd
JK
120182017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12019
12020 * dwarf2read.c (create_debug_type_hash_table): Initialize
12021 header.signature and header.type_offset_in_tu.
12022
34e4bae9
PA
120232017-02-24 Pedro Alves <palves@redhat.com>
12024
12025 * symtab.c (make_file_symbol_completion_list_1): Use
12026 add_symtab_completions.
12027
b0e4b369
AH
120282017-02-24 Alan Hayward <alan.hayward@arm.com>
12029
12030 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12031
975c21ab
AH
120322017-02-24 Alan Hayward <alan.hayward@arm.com>
12033
12034 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12035 I386_MAX_REGISTER_SIZE.
12036 (i386_pseudo_register_write): Likewise.
12037 (i386_process_record): Likewise.
12038 * i387-tdep.c (i387_supply_xsave): Likewise.
12039 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12040 (store_register): Likewise.
12041
14bc53a8
PA
120422017-02-23 Pedro Alves <palves@redhat.com>
12043
12044 * ada-lang.c: Include "common/function-view.h".
12045 (ada_iterate_over_symbols): Adjust to use function_view as
12046 callback type.
12047 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12048 (ada_make_symbol_completion_list): Use a lambda.
12049 (ada_exc_search_name_matches): Delete.
12050 (name_matches_regex): New.
12051 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12052 * compile/compile-c-support.c: Include "common/function-view.h".
12053 (print_one_macro): Change prototype to accept a ui_file pointer.
12054 (write_macro_definitions): Use a lambda.
12055 * dwarf2read.c: Include "common/function-view.h".
12056 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12057 (dw2_expand_symtabs_matching): Adjust to use function_view as
12058 callback type.
12059 * language.h: Include "common/function-view.h".
12060 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12061 function_view as callback type.
12062 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12063 * linespec.c: Include "common/function-view.h".
12064 (collect_info::add_symbol): New method.
12065 (struct symbol_and_data_callback, iterate_inline_only, struct
12066 symbol_matcher_data, iterate_name_matcher): Delete.
12067 (iterate_over_all_matching_symtabs): Adjust to use function_view
12068 as callback type and lambdas.
12069 (iterate_over_file_blocks): Adjust to use function_view as
12070 callback type.
12071 (decode_compound_collector): Now a class with private fields.
12072 (decode_compound_collector::release_symbols): New method.
12073 (collect_one_symbol): Rename to...
12074 (decode_compound_collector::operator()): ... this and adjust.
12075 (lookup_prefix_sym): decode_compound_collector construction bits
12076 move to decode_compound_collector ctor. Pass the
12077 decode_compound_collector object directly as callback. Remove
12078 cleanups and use decode_compound_collector::release_symbols
12079 instead.
12080 (symtab_collector): Now a class with private fields.
12081 (symtab_collector::release_symtabs): New method.
12082 (add_symtabs_to_list): Rename to...
12083 (symtab_collector::operator()): ... this and adjust.
12084 (collect_symtabs_from_filename): symtab_collector construction
12085 bits move to symtab_collector ctor. Pass the symtab_collector
12086 object directly as callback. Remove cleanups and use
12087 symtab_collector::release_symtabs instead.
12088 (collect_symbols): Delete.
12089 (add_matching_symbols_to_info): Use lambdas.
12090 * macrocmd.c (print_macro_callback): Delete.
12091 (info_macro_command): Use a lambda.
12092 (info_macros_command): Pass print_macro_definition as callable
12093 directly.
12094 (print_one_macro): Remove 'ignore' parameter.
12095 (macro_list_command): Adjust.
12096 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12097 (macro_for_each_data::user_data): Delete field.
12098 (foreach_macro): Adjust to call the function_view.
12099 (macro_for_each): Adjust to use function_view as callback type.
12100 (foreach_macro_in_scope): Adjust to call the function_view.
12101 (macro_for_each_in_scope): Adjust to use function_view as callback
12102 type.
12103 * macrotab.h: Include "common/function-view.h".
12104 (macro_callback_fn): Declare a prototype instead of a pointer.
12105 Remove "user_data" parameter.
12106 (macro_for_each, macro_for_each_in_scope): Adjust to use
12107 function_view as callback type.
12108 * psymtab.c (partial_map_expand_apply)
12109 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12110 Adjust to use function_view as callback type and to return bool.
12111 (psym_expand_symtabs_matching): Adjust to use function_view as
12112 callback types.
12113 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12114 to use function_view as callback type and to return bool.
12115 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12116 callback types.
12117 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12118 as callback types.
12119 * symfile.h: Include "common/function-view.h".
12120 (expand_symtabs_file_matcher_ftype)
12121 (expand_symtabs_symbol_matcher_ftype)
12122 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12123 return bool.
12124 (quick_symbol_functions::map_symtabs_matching_filename)
12125 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12126 function_view as callback type and return bool.
12127 (expand_symtabs_matching): Adjust to use function_view as callback
12128 type.
12129 (maintenance_expand_name_matcher)
12130 (maintenance_expand_file_matcher): Delete.
12131 (maintenance_expand_symtabs): Use lambdas.
12132 * symtab.c (iterate_over_some_symtabs): Adjust to use
12133 function_view as callback types and return bool.
12134 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12135 of a cleanup.
12136 (lookup_symtab_callback): Delete.
12137 (lookup_symtab): Use a lambda.
12138 (iterate_over_symbols): Adjust to use function_view as callback
12139 type.
12140 (struct search_symbols_data, search_symbols_file_matches)
12141 (search_symbols_name_matches): Delete.
12142 (search_symbols): Use a pair of lambdas.
12143 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12144 (symtab_expansion_callback): Delete.
12145 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12146 * symtab.h: Include "common/function-view.h".
12147 (iterate_over_some_symtabs): Adjust to use function_view as
12148 callback type and return bool.
12149 (iterate_over_symtabs): Adjust to use function_view as callback
12150 type.
12151 (symbol_found_callback_ftype): Remove 'data' parameter and return
12152 bool.
12153 (iterate_over_symbols): Adjust to use function_view as callback
12154 type.
12155
07e253aa
PA
121562017-02-23 Pedro Alves <palves@redhat.com>
12157
12158 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12159 (%.o) <unittests/%.c>: New pattern.
12160 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12161 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12162 * common/function-view.h: New file.
12163 * unittests/function-view-selftests.c: New file.
12164 * configure: Regenerate.
12165
8eaf5320
SM
121662017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12167
12168 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12169 inferior_ptid.
12170 * go32-nat.c (go32_thread_alive): Likewise.
12171
38768751
YQ
121722017-02-23 Yao Qi <yao.qi@linaro.org>
12173
12174 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12175 delete.
12176
0a8beaba
YQ
121772017-02-23 Yao Qi <yao.qi@linaro.org>
12178
12179 * varobj.c (varobj_clear_saved_item): Use delete instead of
12180 xfree.
12181 (update_dynamic_varobj_children): Likewise.
12182
58fdfd2c
JK
121832017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12184
12185 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12186
1b90b139
SM
121872017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12188
12189 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12190 m_enum_value to 0 in default constructor.
12191
2039d74e
EBM
121922017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12193
12194 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12195 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12196 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12197 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12198 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12199 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12200 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12201 IS_STORE_CONDITIONAL_INSN.
12202
7814882a
JK
122032017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12204
12205 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12206
0ae60b63
JK
122072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12208
12209 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12210
0224619f
JK
122112017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12212
12213 * dwarf2read.c (skip_one_die, read_attribute_value)
12214 (dwarf2_const_value_attr, dump_die_shallow)
12215 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12216 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12217
0af92d60
JK
122182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12219
12220 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12221 (dwarf_parse_macro_header): Accept DWARF version 5.
12222 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12223
216f72a1
JK
122242017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12225
12226 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12227 DW_AT_GNU_*.
12228 * common/common-exceptions.h (enum errors): Likewise.
12229 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12230 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12231 (dwarf_expr_context::execute_stack_op): Likewise.
12232 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12233 Likewise.
12234 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12235 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12236 (show_entry_values_debug, call_site_to_target_addr)
12237 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12238 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12239 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12240 (value_of_dwarf_block_entry, indirect_pieced_value)
12241 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12242 (disassemble_dwarf_expression): Likewise.
12243 * dwarf2read.c (process_die, inherit_abstract_dies)
12244 (read_call_site_scope): Likewise.
12245 * gdbtypes.h (struct func_type, struct call_site_parameter)
12246 (struct call_site): Likewise.
12247 * stack.c (read_frame_arg): Likewise.
12248 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12249
43988095
JK
122502017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12251
12252 * defs.h (read_unsigned_leb128): New declaration.
12253 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12254 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12255 (dwarf2_find_location_expression): Call also
12256 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12257 * dwarf2loc.h (dwarf2_version): New declaration.
12258 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12259 rnglists.
12260 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12261 .debug_rnglists.
12262 (struct dwop_section_names): Add loclists_dwo.
12263 (dwop_section_names): Add .debug_loclists.dwo.
12264 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12265 (struct dwarf2_per_cu_data): Add dwarf_version.
12266 (struct dwo_sections): Add loclists.
12267 (struct attr_abbrev): Add implicit_const.
12268 (read_indirect_line_string): New declaration.
12269 (read_unsigned_leb128): Delete declaration.
12270 (rcuh_kind): New definition.
12271 (read_and_check_comp_unit_head): Change parameter
12272 is_debug_types_section to section_kind.
12273 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12274 (read_comp_unit_head): Change parameter abfd to section, add parameter
12275 section_kind. Handle DWARF-5.
12276 (error_check_comp_unit_head): Accept also DWARF version 5.
12277 (read_and_check_comp_unit_head): Change parameter
12278 is_debug_types_section to section_kind.
12279 (read_and_check_type_unit_head): Delete function.
12280 (read_abbrev_offset): Handle DWARF-5.
12281 (create_debug_type_hash_table): Add parameter section_kind. Process
12282 only DW_UT_type. Use signature and type_offset_in_tu from struct
12283 comp_unit_head.
12284 (create_debug_types_hash_table): Update create_debug_type_hash_table
12285 caller.
12286 (create_all_type_units): Call create_debug_type_hash_table.
12287 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12288 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12289 caller.
12290 (skip_one_die): Handle DW_FORM_implicit_const.
12291 (dwarf2_rnglists_process): New function.
12292 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12293 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12294 (read_attribute_value): Handle DW_FORM_implicit_const,
12295 DW_FORM_line_strp.
12296 (read_attribute): Handle DW_FORM_implicit_const.
12297 (read_indirect_string_at_offset_from): New function from
12298 read_indirect_string_at_offset.
12299 (read_indirect_string_at_offset): Call
12300 read_indirect_string_at_offset_from.
12301 (read_indirect_line_string_at_offset): New function.
12302 (read_indirect_string): New function comment.
12303 (read_indirect_line_string): New function.
12304 (read_unsigned_leb128): Make it global.
12305 (dwarf2_string_attr): Handle DWARF-5.
12306 (add_include_dir_stub, read_formatted_entries): New functions.
12307 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12308 Handle DWARF-5.
12309 (per_cu_header_read_in): Update read_comp_unit_head caller.
12310 (dwarf2_version): New function.
12311 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12312 rnglists.
12313 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12314 fields.
12315
22d2f3ab
JK
123162017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12317
12318 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12319
5f46c5a5
JK
123202017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12321
12322 * dwarf2read.c (dwarf2_ranges_process): New function from
12323 dwarf2_ranges_read.
12324 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12325 dwarf2_ranges_process.
12326
78d4d2c5
JK
123272017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12328
12329 * dwarf2read.c (create_debug_type_hash_table): New function from
12330 create_debug_types_hash_table.
12331 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12332 (create_all_type_units, open_and_init_dwo_file): Update
12333 create_debug_types_hash_table callers.
12334
1b076f25
SDJ
123352017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12336
12337 PR gdb/16188
12338 * fork-child.c (trace_start_error): Fix thinko. va_end should
12339 refer to 'ap', not 'args'.
12340
0db8980c
SDJ
123412017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12342 Pedro Alves <palves@redhat.com>
12343
12344 PR gdb/16188
12345 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12346 calls succeeded.
12347 * fork-child.c (trace_start_error): New function.
12348 (trace_start_error_with_name): Likewise.
12349 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12350 * inf-ptrace.c (inf_ptrace_me): Likewise.
12351 * inferior.h (trace_start_error): New prototype.
12352 (trace_start_error_with_name): Likewise.
12353
99e8a4f9
SDJ
123542017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12355
12356 PR gdb/21164
12357 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12358 NULL before using it.
12359 * symmisc.c (maintenance_print_symbols): Likewise.
12360 (maintenance_print_msymbols): Likewise.
12361
4e746bb6
TW
123622017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12363
12364 * NEWS: Add record Python bindings entry.
12365
123662017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12367
12368 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12369 py-record-full.o.
12370 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12371 * python/py-record-btrace.c, python/py-record-btrace.h,
12372 python/py-record-full.c, python/py-record-full.h: New file.
12373 * python/py-record.c: Add include for py-record-btrace.h and
12374 py-record-full.h.
12375 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12376 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12377 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12378 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12379 New definition.
12380 (gdbpy_initialize_btrace): New export.
12381 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12382
123832017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12384
12385 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12386 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12387 * python/py-record.c: New file.
12388 * python/python-internal.h (gdbpy_start_recording,
12389 gdbpy_current_recording, gdpy_stop_recording,
12390 gdbpy_initialize_record): New export.
12391 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12392 (python_GdbMethods): Add gdbpy_start_recording,
12393 gdbpy_current_recording and gdbpy_stop_recording.
12394
123952017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12396
12397 * record-btrace.c (record_btrace_record_method): New function.
12398 (init_record_btrace_ops): Initialize to_record_method.
12399 * record-full.c (record_full_record_method): New function.
12400 (init_record_full_ops, init_record_full_core_ops): Add
12401 record_full_record_method.
12402 * record.h (enum record_method): New enum.
12403 * target-debug.h (target_debug_print_enum_record_method: New define.
12404 * target-delegates.c: Regenerate.
12405 * target.c (target_record_method): New function.
12406 * target.h: Include record.h.
12407 (struct target_ops) <to_record_method>: New field.
12408 (target_record_method): New export.
12409
124102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12411
12412 * record.h (record_start, record_stop): New export.
12413 * record.c (record_start, record_stop): New function.
12414
124152017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12416
12417 * btrace.c (btrace_fetch): Copy function call segments pointer
12418 into a vector.
12419 (btrace_clear): Clear the vector.
12420 (btrace_find_insn_by_number): Use binary search to find the correct
12421 function call segment.
12422 * btrace.h (brace_fun_p): New typedef.
12423 (struct btrace_thread_info) <functions>: New field.
12424
124252017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12426
12427 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12428 * btrace.c (btrace_decode_error): ... here. New function.
12429 * btrace.h (btrace_decode_error): New export.
12430
124312017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12432
12433 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12434 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12435 btrace_find_insn_by_number): Remove special case for gaps.
12436 * btrace.h (btrace_insn_get_error): New export.
12437 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12438 * record-btrace.c (btrace_insn_history): Print number for gaps.
12439 (record_btrace_info, record_btrace_goto): Handle gaps.
12440
3f77c769
TT
124412017-02-14 Tom Tromey <tom@tromey.com>
12442
12443 PR python/13598:
12444 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12445 event.
12446 * python/py-evts.c (gdbpy_initialize_py_events): Add
12447 before_prompt registry.
12448 * python/py-events.h (events_object) <before_prompt>: New field.
12449
4c2c7ac6
MM
124502017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12451
12452 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12453
5cf30ebf
LM
124542017-02-13 Luis Machado <lgustavo@codesourcery.com>
12455
12456 * symfile (_initialize_symfile): Add usage text to the load command's
12457 help text.
12458
26a06916
SM
124592017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12460
12461 * utils.c (defaulted_query): Don't query on secondary UIs.
12462
0b145e37
TT
124632017-02-10 Tom Tromey <tom@tromey.com>
12464
12465 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12466
2d8365c4
TT
124672017-02-10 Tom Tromey <tom@tromey.com>
12468
12469 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12470 "cleanup" local.
12471 * python/py-type.c (typy_legacy_template_argument): Remove
12472 unnecessary "cleanup" local.
12473
2bb8f231
TT
124742017-02-10 Tom Tromey <tom@tromey.com>
12475
12476 * python/python.c (do_start_initialization): New function, from
12477 _initialize_python.
12478 (_initialize_python): Call do_start_initialization.
12479 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12480 goto.
12481
1bdfaf42
TT
124822017-02-10 Tom Tromey <tom@tromey.com>
12483
12484 * python/py-prettyprint.c (pretty_print_one_value): Use
12485 gdbpy_ref.
12486
88b6faea
TT
124872017-02-10 Tom Tromey <tom@tromey.com>
12488
12489 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12490 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12491 gdbpy_ref.
12492 * python/py-type.c (field_new): Use gdbpy_ref.
12493 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12494 gdbpy_ref.
12495 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12496 (py_free_pspace): Likewise.
12497 (pspace_to_pspace_object): Likewise.
12498 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12499 (py_free_objfile): Likewise.
12500 (objfile_to_objfile_object): Likewise.
12501 * python/py-inferior.c (delete_thread_object): Use
12502 gdbpy_ref.
12503 (infpy_read_memory): Likewise.
12504 (py_free_inferior): Likewise.
12505 * python/py-evtregistry.c (create_eventregistry_object): Use
12506 gdbpy_ref.
12507 * python/py-event.c (create_event_object): Use gdbpy_ref.
12508
7780f186
TT
125092017-02-10 Tom Tromey <tom@tromey.com>
12510
12511 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12512 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12513 used.
12514 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12515 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12516 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12517 python/py-framefilter.c, python/py-function.c,
12518 python/py-inferior.c, python/py-infevents.c,
12519 python/py-linetable.c, python/py-newobjfileevent.c,
12520 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12521 python/py-signalevent.c, python/py-stopevent.c,
12522 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12523 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12524 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12525 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12526
d4b0bb18
TT
125272017-02-10 Tom Tromey <tom@tromey.com>
12528
12529 * ui-out.h (ui_out_emit_type): New class.
12530 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12531 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12532 and ui_out_emit_tuple.
12533 (enumerate_locals): Likewise.
12534 (py_mi_print_variables, py_print_locals, py_print_args): Use
12535 ui_out_emit_list.
12536 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12537 ui_out_emit_list.
12538 * common/gdb_optional.h: New file.
12539
f67f945c
MG
125402017-02-10 Martin Galvan <martingalvan@sourceware.org>
12541
12542 * MAINTAINERS (Write After Approval): Update my e-mail address.
12543
18da0c51
MG
125442017-02-10 Martin Galvan <martingalvan@sourceware.org>
12545
12546 PR gdb/21122
12547 * breakpoint.c (_initialize_breakpoint): Update the help description
12548 of the 'commands' command to indicate that it takes a list argument.
12549
62c14536
SM
125502017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12551
12552 * interps.c (current_interp_set_logging): Remove "return".
12553
ff6fa247
GB
125542017-02-09 Gary Benson <gbenson@redhat.com>
12555
12556 * symtab.c (add_symtab_completions): Prevent NULL pointer
12557 dereference.
12558
a474bd8e
PA
125592017-02-08 Pedro Alves <palves@redhat.com>
12560
12561 * interps.c (interp::interp): Remove reference to quiet_p.
12562 (interp_set): Make static. Remove dead "Switching to" output
12563 code.
12564 (interp_quiet_p, interp_set_quiet): Delete.
12565 (interpreter_exec_cmd): Don't set the interpreter quiet.
12566 * interps.h (interp_quiet_p): Make static.
12567 (class interp) <quiet_p>: Remove field
12568
3d7b173c
JG
125692017-02-08 Jerome Guitton <guitton@adacore.com>
12570
604c4576
JG
12571 * cli/cli-decode.c (find_command_name_length): Make it extern.
12572 * cli/cli-decode.h (find_command_name_length): Declare.
12573 * cli/cli-script.c (command_name_equals, line_first_arg):
12574 New functions.
12575 (process_next_line): Use cli-decode to parse command names.
12576 (build_command_line): Make args a constant pointer.
12577
125782017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12579
3d7b173c
JG
12580 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12581 Remove case-insensitive search.
12582
1291063d
JM
125832017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12584
12585 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12586 at the end of the line. Avoids an ARI warning.
12587
20b477a7
LM
125882017-02-06 Luis Machado <lgustavo@codesourcery.com>
12589
12590 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12591 rdseed instructions.
12592 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12593
3f7b46f2
IR
125942017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12595
12596 PR tdep/20936
12597 Provide and use sparc32 and sparc64 target description XML files.
12598 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12599 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12600 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12601 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12602 * features/sparc/sparc32-solaris.xml: New file.
12603 * features/sparc/sparc64-solaris.xml: New file.
12604 * features/sparc/sparc32-solaris.c: Generated.
12605 * features/sparc/sparc64-solaris.c: Generated.
12606 * sparc-tdep.h: Account for differences in target descriptions.
12607 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12608 (sparc32_register_type): Use target provided registers.
12609 (validate_tdesc_registers): New function.
12610 (sparc32_gdbarch_init): Use tdesc_has_registers.
12611 Set pseudoregister functions.
12612 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12613 (sparc64_register_type): Use target provided registers.
12614 (sparc64_init_abi): Set pseudoregister functions.
12615
f0fd41c1
TT
126162017-02-03 Tom Tromey <tom@tromey.com>
12617
12618 PR rust/21097:
12619 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12620 with a single member.
12621
d6f9b0fb
PA
126222017-02-03 Pedro Alves <palves@redhat.com>
12623
12624 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12625 (cli_interp_base::~cli_interp_base): New.
12626 (cli_interp): New struct.
12627 (as_cli_interp): Cast the interp itself to cli_interp.
12628 (cli_interpreter_pre_command_loop): Rename to ...
12629 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12630 parameter.
12631 (cli_interpreter_init): Rename to ...
12632 (cli_interp::init): ... this. Remove 'self' parameter. Use
12633 boolean. Make extern.
12634 (cli_interpreter_resume): Rename to ...
12635 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12636 extern.
12637 (cli_interpreter_suspend): Rename to ...
12638 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12639 extern.
12640 (cli_interpreter_exec): Rename to ...
12641 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12642 extern.
12643 (cli_interpreter_supports_command_editing): Rename to ...
12644 (cli_interp_base::supports_command_editing): ... this. Remove
12645 'interp' parameter. Make extern.
12646 (cli_ui_out): Rename to ...
12647 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12648 Make extern.
12649 (cli_set_logging): Rename to ...
12650 (cli_interp_base::set_logging): ... this. Remove 'interp'
12651 parameter. Make extern.
12652 (cli_interp_procs): Delete.
12653 (cli_interp_factory): Adjust to use "new".
12654 * cli/cli-interp.h: Include "interps.h".
12655 (struct cli_interp_base): New struct.
12656 * interps.c (struct interp): Delete. Fields moved to interps.h.
12657 (interp_new): Delete.
12658 (interp::interp, interp::~interp): New.
12659 (interp_set): Use bool, and return void. Assume the interpreter
12660 has suspend, init and resume methods, and that the all return
12661 void.
12662 (set_top_level_interpreter): interp_set returns void.
12663 (interp_ui_out): Adapt.
12664 (current_interp_set_logging): Adapt.
12665 (interp_data): Delete.
12666 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12667 (interp_exec): Adapt.
12668 (top_level_interpreter_data): Delete.
12669 * interps.h (interp_init_ftype, interp_resume_ftype)
12670 (interp_suspend_ftype, interp_exec_ftype)
12671 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12672 (class interp): New.
12673 (interp_new): Delete.
12674 (interp_set): Now returns void. Use bool.
12675 (interp_data, top_level_interpreter_data): Delete.
12676 * mi/mi-common.h: Include interps.h.
12677 (class mi_interp): Inherit from interp. Define a ctor. Declare
12678 init, resume, suspect, exec, interp_ui_out, set_logging and
12679 pre_command_loop methods.
12680 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12681 (mi_interpreter_init): Rename to ...
12682 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12683 bool, return void and make extern. Adjust.
12684 (mi_interpreter_resume): ... Rename to ...
12685 (mi_interp::resume): ... this. Remove the 'data' parameter,
12686 return void and make extern. Adjust.
12687 (mi_interpreter_suspend): ... Rename to ...
12688 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12689 return void and make extern. Adjust.
12690 (mi_interpreter_exec): ... Rename to ...
12691 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12692 extern. Adjust.
12693 (mi_interpreter_pre_command_loop): ... Rename to ...
12694 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12695 parameter and make extern.
12696 (mi_on_normal_stop_1): Adjust.
12697 (mi_ui_out): Rename to ...
12698 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12699 parameter and make extern. Adjust.
12700 (mi_set_logging): Rename to ...
12701 (mi_interp::set_logging): ... this. Remove the 'interp'
12702 parameter and make extern. Adjust.
12703 (mi_interp_procs): Delete.
12704 (mi_interp_factory): Adjust to use 'new'.
12705 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12706 (mi_print_exception, mi_execute_command, mi_load_progress):
12707 Adjust.
12708 * tui/tui-interp.c (tui_interp): New class.
12709 (as_tui_interp): Return a tui_interp pointer.
12710 (tui_on_normal_stop, tui_on_signal_received)
12711 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12712 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12713 to use interp::interp_ui_out.
12714 (tui_init): Rename to ...
12715 (tui_interp::init): ... this. Remove the 'self' parameter, use
12716 bool, return void and make extern. Adjust.
12717 (tui_resume): Rename to ...
12718 (tui_interp::resume): ... this. Remove the 'data' parameter,
12719 return void and make extern. Adjust.
12720 (tui_suspend): Rename to ...
12721 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12722 return void and make extern. Adjust.
12723 (tui_ui_out): Rename to ...
12724 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12725 parameter, and make extern. Adjust.
12726 (tui_exec): Rename to ...
12727 (tui_interp::exec): ... this. Remove the 'data' parameter and
12728 make extern.
12729 (tui_interp_procs): Delete.
12730 (tui_interp_factory): Use "new".
12731
65c40c95
TT
127322017-02-02 Tom Tromey <tom@tromey.com>
12733
12734 * rust-exp.y (ends_raw_string, space_then_number)
12735 (rust_identifier_start_p): Return bool.
12736 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12737 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12738 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12739 (rust_chartype_p): Return bool.
12740 (val_print_struct, rust_print_struct_def, rust_print_type):
12741 Update.
12742 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12743 Return bool.
12744
b50f188d
TT
127452017-02-02 Tom Tromey <tom@tromey.com>
12746
12747 * rust-lang.c: Reindent.
12748
03c85b11
TT
127492017-02-02 Tom Tromey <tom@tromey.com>
12750
12751 * rust-lang.h (rust_crate_for_block): Update.
12752 * rust-lang.c (rust_crate_for_block): Return std::string.
12753 (rust_get_disr_info): Use std:;string, not
12754 gdb::unique_xmalloc_ptr.
12755 * rust-exp.y (crate_name): Update.
12756
9b6da501
PA
127572017-02-02 Pedro Alves <palves@redhat.com>
12758
12759 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12760 field out of gdb_disassembler_test and make it static.
12761
ec4cb20b
PA
127622017-02-02 Pedro Alves <palves@redhat.com>
12763
12764 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12765 mi1_interp and mi_interp fields.
12766
5be5dbf0
PA
127672017-02-02 Pedro Alves <palves@redhat.com>
12768
616268b6
PA
12769 * cli/cli-interp.c (struct saved_output_files, saved_output):
12770 Moved from cli/cli-logging.c.
12771 (cli_set_logging): New function.
12772 (cli_interp_procs): Install cli_set_logging.
12773 * cli/cli-interp.h (make_logging_output, cli_set_logging):
12774 Declare.
12775 * cli/cli-logging.c (struct saved_output_files, saved_output):
12776 Moved to cli/cli-interp.c.
12777 (pop_output_files): Don't save outputs here.
12778 (make_logging_output): New function.
12779 (handle_redirections): Don't build tee nor save previous outputs
12780 here.
12781 * interps.c (current_interp_set_logging): Change prototype.
12782 Assume there's always a set_logging_proc method installed.
12783 * interps.h (interp_set_logging_ftype): Change prototype.
12784 (current_interp_set_logging): Change prototype and adjust comment.
12785 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
12786 use make_logging_output.
12787 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
127882017-02-02 Pedro Alves <palves@redhat.com>
12789
5be5dbf0
PA
12790 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
12791 from ...
12792 (set_logging_overwrite): ... here.
12793 (logging_no_redirect_file): Delete.
12794 (set_logging_redirect): Don't handle redirection on the fly.
12795 Instead warn that "logging off" / "logging on" is necessary.
12796 (pop_output_files): Delete references to logging_no_redirect_file.
12797 (show_logging_command): Always speak in terms of what will happen
12798 once logging is reenabled.
12799
c99cc448
PA
128002017-02-02 Pedro Alves <palves@redhat.com>
12801
12802 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
12803
8b172ce7
PA
128042017-02-02 Pedro Alves <palves@redhat.com>
12805
12806 * disasm.c (gdb_pretty_print_insn): Rename to ...
12807 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
12808 Remove gdbarch parameter. Adapt to clear the object's buffers
12809 instead of allocating new buffers, and to print using the object's
12810 gdb_disassembler instead of calling gdb_print_insn.
12811 (dump_insns): Use gdb_pretty_print_disassembler.
12812 * disasm.h (gdb_pretty_print_insn): Delete declaration.
12813 (gdb_pretty_print_disassembler): New class.
12814 * record-btrace.c (btrace_insn_history): Use
12815 gdb_pretty_print_disassembler.
12816
d7e74731
PA
128172017-02-02 Pedro Alves <palves@redhat.com>
12818
12819 * ada-lang.c (type_as_string): Use string_file.
12820 * ada-valprint.c (ada_print_floating): Use string_file.
12821 * ada-varobj.c (ada_varobj_scalar_image)
12822 (ada_varobj_get_value_image): Use string_file.
12823 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
12824 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
12825 * breakpoint.c (update_inserted_breakpoint_locations)
12826 (insert_breakpoint_locations, reattach_breakpoints)
12827 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
12828 (print_it_watchpoint): Use string_file.
12829 (save_breakpoints): Use stdio_file.
12830 * c-exp.y (oper): Use string_file.
12831 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
12832 tee_file.
12833 (pop_output_files): Use delete.
12834 (handle_redirections): Use stdio_file and tee_file.
12835 * cli/cli-setshow.c (do_show_command): Use string_file.
12836 * compile/compile-c-support.c (c_compute_program): Use
12837 string_file.
12838 * compile/compile-c-symbols.c (generate_vla_size): Take a
12839 'string_file &' instead of a 'ui_file *'.
12840 (generate_c_for_for_one_variable): Take a 'string_file &' instead
12841 of a 'ui_file *'. Use string_file.
12842 (generate_c_for_variable_locations): Take a 'string_file &'
12843 instead of a 'ui_file *'.
12844 * compile/compile-internal.h (generate_c_for_for_one_variable):
12845 Take a 'string_file &' instead of a 'ui_file *'.
12846 * compile/compile-loc2c.c (push, pushf, unary, binary)
12847 (print_label, pushf_register_address, pushf_register)
12848 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
12849 'ui_file *'. Adjust.
12850 * compile/compile.c (compile_to_object): Use string_file.
12851 * compile/compile.h (compile_dwarf_expr_to_c)
12852 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
12853 'ui_file *'.
12854 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
12855 (replace_typedefs_qualified_name): Use string_file and
12856 obstack_copy0.
12857 * disasm.c (gdb_pretty_print_insn): Use string_file.
12858 (gdb_disassembly): Adjust reference the null_stream global.
12859 (do_ui_file_delete): Delete.
12860 (gdb_insn_length): Use null_stream.
12861 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
12862 * dwarf2loc.c (dwarf2_compile_property_to_c)
12863 (locexpr_generate_c_location, loclist_generate_c_location): Take a
12864 'string_file &' instead of a 'ui_file *'.
12865 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
12866 * dwarf2read.c (do_ui_file_peek_last): Delete.
12867 (dwarf2_compute_name): Use string_file.
12868 * event-top.c (gdb_setup_readline): Use stdio_file.
12869 * gdbarch.sh (verify_gdbarch): Use string_file.
12870 * gdbtypes.c (safe_parse_type): Use null_stream.
12871 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
12872 string_file.
12873 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
12874 'string_file *' instead of a 'ui_file *'.
12875 (gdbscm_arch_disassemble): Use string_file.
12876 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
12877 * guile/scm-ports.c (class ioscm_file_port): Now a class that
12878 inherits from ui_file.
12879 (ioscm_file_port_delete, ioscm_file_port_rewind)
12880 (ioscm_file_port_put): Delete.
12881 (ioscm_file_port_write): Rename to ...
12882 (ioscm_file_port::write): ... this. Remove file_port_magic
12883 checks.
12884 (ioscm_file_port_new): Delete.
12885 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
12886 ui_file_up.
12887 * guile/scm-type.c (tyscm_type_name): Use string_file.
12888 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
12889 Use string_file.
12890 * infcmd.c (print_return_value_1): Use string_file.
12891 * infrun.c (print_target_wait_results): Use string_file.
12892 * language.c (add_language): Use string_file.
12893 * location.c (explicit_to_string_internal): Use string_file.
12894 * main.c (captured_main_1): Use null_file.
12895 * maint.c (maintenance_print_architecture): Use stdio_file.
12896 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
12897 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
12898 event_channel>: Change type to mi_console_file pointer.
12899 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
12900 (mi_console_file_delete): Delete.
12901 (struct mi_console_file): Delete.
12902 (mi_console_file_magic): Delete.
12903 (mi_console_file_new): Delete.
12904 (mi_console_file::mi_console_file): New.
12905 (mi_console_file_delete): Delete.
12906 (mi_console_file_fputs): Delete.
12907 (mi_console_file::write): New.
12908 (mi_console_raw_packet): Delete.
12909 (mi_console_file::flush): New.
12910 (mi_console_file_flush): Delete.
12911 (mi_console_set_raw): Rename to ...
12912 (mi_console_file::set_raw): ... this.
12913 * mi/mi-console.h (class mi_console_file): New class.
12914 (mi_console_file_new, mi_console_set_raw): Delete.
12915 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
12916 (mi_set_logging): Use delete and tee_file. Adjust.
12917 * mi/mi-main.c (output_register): Use string_file.
12918 (mi_cmd_data_evaluate_expression): Use string_file.
12919 (mi_cmd_data_read_memory): Use string_file.
12920 (mi_cmd_execute, print_variable_or_computed): Use string_file.
12921 * mi/mi-out.c (mi_ui_out::main_stream): New.
12922 (mi_ui_out::rewind): Use main_stream and
12923 string_file.
12924 (mi_ui_out::put): Use main_stream and string_file.
12925 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12926 Allocate a 'string_file' instead.
12927 (mi_out_new): Don't allocate a mem_fileopen stream here.
12928 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12929 (mi_ui_out::main_stream): Declare method.
12930 * printcmd.c (eval_command): Use string_file.
12931 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
12932 * python/py-arch.c (archpy_disassemble): Use string_file.
12933 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
12934 * python/py-frame.c (frapy_str): Use string_file.
12935 * python/py-framefilter.c (py_print_type, py_print_single_arg):
12936 Use string_file.
12937 * python/py-type.c (typy_str): Use string_file.
12938 * python/py-unwind.c (unwind_infopy_str): Use string_file.
12939 * python/py-value.c (valpy_str): Use string_file.
12940 * record-btrace.c (btrace_insn_history): Use string_file.
12941 * regcache.c (regcache_print): Use stdio_file.
12942 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
12943 * remote.c (escape_buffer): Use string_file.
12944 * rust-lang.c (rust_get_disr_info): Use string_file.
12945 * serial.c (serial_open_ops_1): Use stdio_file.
12946 (do_serial_close): Use delete.
12947 * stack.c (print_frame_arg): Use string_file.
12948 (print_frame_args): Remove local mem_fileopen stream, not used.
12949 (print_frame): Use string_file.
12950 * symmisc.c (maintenance_print_symbols): Use stdio_file.
12951 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
12952 Take a 'string_file *' instead of a 'ui_file *'.
12953 * top.c (new_ui): Use stdio_file and stderr_file.
12954 (free_ui): Use delete.
12955 (execute_command_to_string): Use string_file.
12956 (quit_confirm): Use string_file.
12957 * tracepoint.c (collection_list::append_exp): Use string_file.
12958 * tui/tui-disasm.c (tui_disassemble): Use string_file.
12959 * tui/tui-file.c: Don't include "ui-file.h".
12960 (enum streamtype, struct tui_stream): Delete.
12961 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
12962 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
12963 (tui_file::tui_file): New method.
12964 (tui_file_fputs): Delete.
12965 (tui_file_get_strbuf): Delete.
12966 (tui_file::puts): New method.
12967 (tui_file_adjust_strbuf): Delete.
12968 (tui_file_flush): Delete.
12969 (tui_file::flush): New method.
12970 * tui/tui-file.h: Tweak intro comment.
12971 Include ui-file.h.
12972 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
12973 (tui_file_adjust_strbuf): Delete declarations.
12974 (class tui_file): New class.
12975 * tui/tui-io.c (tui_initialize_io): Use tui_file.
12976 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
12977 (tui_register_format): Use string_stream.
12978 * tui/tui-stack.c (tui_make_status_line): Use string_file.
12979 (tui_get_function_from_frame): Use string_file.
12980 * typeprint.c (type_to_string): Use string_file.
12981 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
12982 (null_stream): New global.
12983 (ui_file_delete): Delete.
12984 (ui_file::ui_file): New.
12985 (null_file_isatty): Delete.
12986 (ui_file::~ui_file): New.
12987 (null_file_rewind): Delete.
12988 (ui_file::printf): New.
12989 (null_file_put): Delete.
12990 (null_file_flush): Delete.
12991 (ui_file::putstr): New.
12992 (null_file_write): Delete.
12993 (ui_file::putstrn): New.
12994 (null_file_read): Delete.
12995 (ui_file::putc): New.
12996 (null_file_fputs): Delete.
12997 (null_file_write_async_safe): Delete.
12998 (ui_file::vprintf): New.
12999 (null_file_delete): Delete.
13000 (null_file::write): New.
13001 (null_file_fseek): Delete.
13002 (null_file::puts): New.
13003 (ui_file_data): Delete.
13004 (null_file::write_async_safe): New.
13005 (gdb_flush, ui_file_isatty): Adjust.
13006 (ui_file_put, ui_file_rewind): Delete.
13007 (ui_file_write): Adjust.
13008 (ui_file_write_for_put): Delete.
13009 (ui_file_write_async_safe, ui_file_read): Adjust.
13010 (ui_file_fseek): Delete.
13011 (fputs_unfiltered): Adjust.
13012 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13013 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13014 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13015 (set_ui_file_data): Delete.
13016 (string_file::~string_file, string_file::write)
13017 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13018 (do_ui_file_as_string, ui_file_as_string): Delete.
13019 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13020 (struct mem_file): Delete.
13021 (mem_file_new): Delete.
13022 (stdio_file::stdio_file): New.
13023 (mem_file_delete): Delete.
13024 (stdio_file::stdio_file): New.
13025 (mem_fileopen): Delete.
13026 (stdio_file::~stdio_file): New.
13027 (mem_file_rewind): Delete.
13028 (stdio_file::set_stream): New.
13029 (mem_file_put): Delete.
13030 (stdio_file::open): New.
13031 (mem_file_write): Delete.
13032 (stdio_file_magic, struct stdio_file): Delete.
13033 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13034 (stdio_file::flush): New.
13035 (stdio_file_read): Rename to ...
13036 (stdio_file::read): ... this. Adjust.
13037 (stdio_file_write): Rename to ...
13038 (stdio_file::write): ... this. Adjust.
13039 (stdio_file_write_async_safe): Rename to ...
13040 (stdio_file::write_async_safe) ... this. Adjust.
13041 (stdio_file_fputs): Rename to ...
13042 (stdio_file::puts) ... this. Adjust.
13043 (stdio_file_isatty): Delete.
13044 (stdio_file_fseek): Delete.
13045 (stdio_file::isatty): New.
13046 (stderr_file_write): Rename to ...
13047 (stderr_file::write) ... this. Adjust.
13048 (stderr_file_fputs): Rename to ...
13049 (stderr_file::puts) ... this. Adjust.
13050 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13051 (stderr_file::stderr_file): New.
13052 (tee_file_magic): Delete.
13053 (struct tee_file): Delete.
13054 (tee_file::tee_file): New.
13055 (tee_file_new): Delete.
13056 (tee_file::~tee_file): New.
13057 (tee_file_delete): Delete.
13058 (tee_file_flush): Rename to ...
13059 (tee_file::flush): ... this. Adjust.
13060 (tee_file_write): Rename to ...
13061 (tee_file::write): ... this. Adjust.
13062 (tee_file::write_async_safe): New.
13063 (tee_file_fputs): Rename to ...
13064 (tee_file::puts): ... this. Adjust.
13065 (tee_file_isatty): Rename to ...
13066 (tee_file::isatty): ... this. Adjust.
13067 * ui-file.h (struct obstack, struct ui_file): Don't
13068 forward-declare.
13069 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13070 (ui_file_write_ftype)
13071 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13072 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13073 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13074 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13075 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13076 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13077 (set_ui_file_fseek): Delete.
13078 (ui_file_data, ui_file_delete, ui_file_rewind)
13079 (struct ui_file): New.
13080 (ui_file_up): New.
13081 (class null_file): New.
13082 (null_stream): Declare.
13083 (ui_file_write_for_put, ui_file_put): Delete.
13084 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13085 Delete.
13086 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13087 (gdb_fopen, tee_file_new): Delete.
13088 (struct string_file): New.
13089 (struct stdio_file): New.
13090 (stdio_file_up): New.
13091 (struct stderr_file): New.
13092 (class tee_file): New.
13093 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13094 of a 'ui_file *'. Adjust.
13095 * ui-out.h (class ui_out) <field_stream>: Likewise.
13096 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13097 (null_stream): Delete.
13098 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13099 Adjust.
13100 * utils.h (struct ui_file): Delete forward declaration..
13101 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13102 (error_stream): Take a 'string_file &' instead of a
13103 'ui_file *'.
13104 * varobj.c (varobj_value_get_print_value): Use string_file.
13105 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13106 * gdbarch.c: Regenerate.
13107
187808b0
PA
131082017-02-02 Pedro Alves <palves@redhat.com>
13109
13110 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13111 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13112 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13113 Adjust to call gdb_print_insn instead of
13114 gdb_disassembler::print_insn.
13115 (dump_insns, do_mixed_source_and_assembly_deprecated)
13116 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13117 'gdbarch' parameter. Remove gdb_disassembler parameter.
13118 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13119 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13120 declaration.
13121 (gdb_pretty_print_insn): Re-add declaration.
13122 * record-btrace.c (btrace_insn_history): Don't allocate a
13123 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13124
7a8eb317
SM
131252017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13126
13127 * disasm.h (gdb_disassembly): Remove file_string parameter.
13128 * disasm.c (gdb_disassembly): Likewise.
13129 * cli/cli-cmds.c (print_disassembly): Adapt.
13130 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13131 * stack.c (do_gdb_disassembly): Likewise.
13132
7346ef59
AA
131332017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13134
13135 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13136 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13137 targets. And if the implicit value is longer than needed, extract
13138 the first bytes instead of the "least significant" ones.
13139
cd4007e4
MM
131402017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13141
13142 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13143 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13144 (btrace_fetch): Assert can_access_registers_ptid.
13145 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13146 validate_registers_access.
13147
cf77c34e
MM
131482017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13149
13150 * gdbthread.h (can_access_registers_ptid): New.
13151 * thread.c (can_access_registers_ptid): New.
13152
be85ce7d
PA
131532017-02-01 Pedro Alves <palves@redhat.com>
13154
13155 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13156
29b0b251
PA
131572017-01-31 Pedro Alves <palves@redhat.com>
13158
13159 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13160 Fix typos.
13161
289b5b24
PA
131622017-01-31 Pedro Alves <palves@redhat.com>
13163
13164 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13165 not used.
13166
b47413b4
PA
131672017-01-31 Pedro Alves <palves@redhat.com>
13168
13169 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13170
60adb36c
PA
131712017-01-31 Pedro Alves <palves@redhat.com>
13172
13173 * common/scoped_restore.h
13174 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13175 change the value's parameter type to T2.
13176 (make_scoped_restore): Likewise.
13177
2735833d
WT
131782017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13179 Richard Henderson <rth@redhat.com>
13180
13181 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13182 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13183 GS_BASE for older kernels.
13184 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13185 GS_BASE for older kernels.
13186 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13187 and GS_BASE to the offset table.
13188 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13189 system register group.
13190 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13191 for older kernels.
13192 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13193 amd64 ABI.
13194 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13195 AMD64_GSBASE_REGNUM.
13196 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13197 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13198 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13199 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13200 i386/64bit-segments.xml in those rules.
13201 * features/i386/64bit-segments.xml: New file.
13202 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13203 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13204 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13205 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13206 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13207 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13208 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13209 * features/i386/amd64-avx-linux.c: Regenerated.
13210 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13211 * features/i386/amd64-avx-mpx.c: Regenerated.
13212 * features/i386/amd64-avx512-linux.c: Regenerated.
13213 * features/i386/amd64-linux.c: Regenerated.
13214 * features/i386/amd64-mpx-linux.c: Regenerated.
13215 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13216 * features/i386/i386-avx-mpx.c: Regenerated.
13217 * features/i386/x32-avx-linux.c: Regenerated.
13218 * features/i386/x32-avx512-linux.c: Regenerated.
13219 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13220 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13221 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13222 * regformats/i386/amd64-linux.dat: Regenerated.
13223 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13224 * regformats/i386/x32-avx-linux.dat: Regenerated.
13225 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13226 * regformats/i386/x32-linux.dat: Regenerated.
13227
8884e97e
WT
132282017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13229
13230 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13231 Set to AMD64_NUM_REGS.
13232
7005d26a
WT
132332017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13234
13235 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13236 that checks validity of a register number.
13237
4bd2e1b2
KC
132382017-01-27 Kees Cook <keescook@google.com>
13239
13240 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13241 fetch_fpregs if target has fpa registers.
13242 (arm_linux_store_inferior_registers): Call store_fpregs if target
13243 has fpa registers.
13244
7cf1de6c
AA
132452017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13246
13247 * cris-tdep.c (cris_gdbarch_init): Remove check for
13248 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13249
874a1c8c
AT
132502017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13251
13252 * corelow.c (get_core_register_section): Check for regset
13253 existence before checking for REGSET_VARIABLE_SIZE.
13254
d8b49cf0
YQ
132552017-01-26 Yao Qi <yao.qi@linaro.org>
13256 Pedro Alves <palves@redhat.com>
13257
13258 PR gdb/20939
13259 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13260 call memory_error, save memaddr instead.
13261 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13262 negative, cal memory_error.
13263 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13264
658ca58c
YQ
132652017-01-26 Yao Qi <yao.qi@linaro.org>
13266
13267 * disasm-selftests.c (memory_error_test): New function.
13268 (_initialize_disasm_selftests): Register memory_error_test.
13269
79843d45
YQ
132702017-01-26 Yao Qi <yao.qi@linaro.org>
13271
13272 * Makefile.in (SFILES): Add disasm-selftests.c and
13273 selftest-arch.c.
13274 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13275 * disasm-selftests.c: New file.
13276 * selftest-arch.c: New file.
13277 * selftest-arch.h: New file.
13278
8cafda32
YQ
132792017-01-26 Yao Qi <yao.qi@linaro.org>
13280
13281 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13282 to bfd_arch_mep. Don't return 0 if section is not
13283 found. Call print_insn_mep.
13284
e47ad6c0
YQ
132852017-01-26 Pedro Alves <palves@redhat.com>
13286 Yao Qi <yao.qi@linaro.org>
13287
13288 * arm-tdep.c: Include "disasm.h".
13289 (gdb_print_insn_arm): Update code to get gdbarch.
13290 * disasm.c (dis_asm_read_memory): Change it to
13291 gdb_disassembler::dis_asm_read_memory.
13292 (dis_asm_memory_error): Likewise.
13293 (dis_asm_print_address): Likewise.
13294 (gdb_pretty_print_insn): Change it to
13295 gdb_disassembler::pretty_print_insn.
13296 (dump_insns): Add one argument gdb_disassemlber. All
13297 callers updated.
13298 (do_mixed_source_and_assembly_deprecated): Likewise.
13299 (do_mixed_source_and_assembly): Likewise.
13300 (do_assembly_only): Likewise.
13301 (gdb_disassembler::gdb_disassembler): New.
13302 (gdb_disassembler::print_insn): New.
13303 * disasm.h (class gdb_disassembler): New.
13304 (gdb_pretty_print_insn): Remove declaration.
13305 (gdb_disassemble_info): Likewise.
13306 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13307 (gdbscm_disasm_read_memory_worker): Update.
13308 (gdbscm_disasm_read_memory): Update.
13309 (gdbscm_disasm_memory_error): Remove.
13310 (gdbscm_disasm_print_address): Remove.
13311 (gdbscm_disassembler::gdbscm_disassembler): New.
13312 (gdbscm_print_insn_from_port): Update.
13313 * mips-tdep.c: Include disasm.h.
13314 (gdb_print_insn_mips): Update code to get gdbarch.
13315 * record-btrace.c (btrace_insn_history): Update.
13316 * spu-tdep.c: Include disasm.h.
13317 (struct spu_dis_asm_data): Remove.
13318 (struct spu_dis_asm_info): New.
13319 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13320 SPU id.
13321 (gdb_print_insn_spu): Cast disassemble_info to
13322 spu_dis_asm_info.
13323
80d75874
YQ
133242017-01-26 Yao Qi <yao.qi@linaro.org>
13325
13326 * disasm.c (do_ui_file_delete): Delete.
13327 (gdb_insn_length): Move code creating stream to ...
13328 * utils.c (null_stream): ... here. New function.
13329 * utils.h (null_stream): Declare.
13330
60685cd0
SM
133312017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13332
13333 * python/py-inferior.c (find_thread_object): Return directly
13334 from the loop. Remove "found" variable.
13335
eb1cdb62
JB
133362017-01-21 Joel Brobecker <brobecker@adacore.com>
13337
13338 GDB 7.12.1 released.
13339
b1ce6568
SM
133402017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13341
13342 * python/py-function.c (fnpy_call): Reorder declarations to have
13343 the gdbpy_enter object declared first.
13344 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13345
6f8b0407
SM
133462017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13347
fec93fb1 13348 PR python/21068
6f8b0407
SM
13349 * python/python-internal.h (PyMem_RawMalloc): Define for
13350 Python < 3.4.
13351 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13352 PyMem_RawMalloc instead of PyMem_Malloc.
13353
78cbbba8
LM
133542017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13355 Luis Machado <lgustavo@codesourcery.com>
13356
13357 * NEWS (New commands): Mention flash-erase.
13358 (New MI commands): Mention target-flash-erase.
13359 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13360 command.
13361 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13362 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13363 * target.c (flash_erase_command): New function.
13364 (initialize_targets): Add new flash-erase command.
13365 * target.h (flash_erase_command): New declaration.
13366
2132fe85
JB
133672017-01-20 Joel Brobecker <brobecker@adacore.com>
13368
13369 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13370 HAVE_SYS_PROCFS_H is defined.
13371
d1dff226
AH
133722017-01-18 Alan Hayward <alan.hayward@arm.com>
13373
13374 * remote.c (struct cached_reg): Change data into a pointer.
13375 * (stop_reply_dtr): Free data pointers before deleting vector.
13376 (process_stop_reply): Likewise.
13377 (remote_parse_stop_reply): Allocate space for data
13378
9890e433
AH
133792017-01-18 Alan Hayward <alan.hayward@arm.com>
13380
13381 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13382 MAX_REGISTER_SIZE.
13383 (amd64_pseudo_register_read_value): Likewise.
13384 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13385 (store_register_using_P): Likewise.
13386 * regcache.c (regcache_xfer_part): Likewise.
13387
7a36499a
IR
133882017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13389
13390 Split real and pseudo registers.
13391 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13392 (sparc32_pseudo_regnum): New enum.
13393 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13394 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13395 (SPARC32_CP0_REGISTERS): New macro.
13396 (sparc32_pseudo_register_name): New function.
13397 (sparc32_register_name): Use sparc32_pseudo_register_name.
13398 (sparc32_pseudo_register_type): New function.
13399 (sparc32_register_type): Use sparc32_pseudo_register_type.
13400 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13401 pseudo register numbers.
13402 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13403 (SPARC64_CP0_REGISTERS): New macro.
13404 (sparc64_pseudo_register_name): New function.
13405 (sparc64_register_name): Use sparc64_pseudo_register_name.
13406 (sparc64_pseudo_register_type): New function.
13407 (sparc64_register_type): Use sparc64_pseudo_register_type.
13408 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13409 pseudo register numbers.
13410 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13411 sparc64_store_arguments): Handle pseudo register numbers.
13412
6f8976bf
YQ
134132017-01-13 Yao Qi <yao.qi@linaro.org>
13414
13415 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13416 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13417 output.
13418 (getpkt_or_notif_sane_1): Likewise.
13419
e4241ace
YQ
134202017-01-13 Yao Qi <yao.qi@linaro.org>
13421
13422 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13423 of CC. Pass "-x c++-header" instead of "-x c".
13424
3015c064
SM
134252017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13426
13427 * remote.c (remote_can_async_p): Update comment.
13428
fde1b17d
SM
134292017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13430
13431 * linux-nat.c (linux_nat_can_async_p): Update comment.
13432
ca1ca08b
SM
134332017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13434
13435 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13436
4ad2da73
SM
134372017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13438
13439 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13440
c8b23b3f
TT
134412017-01-10 Tom Tromey <tom@tromey.com>
13442
13443 * python/py-type.c (typy_legacy_template_argument): Update.
13444 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13445 ~demangle_parse_info): Declare new members.
13446 (cp_demangled_name_to_comp): Return unique_ptr.
13447 (cp_demangled_name_parse_free)
13448 (make_cleanup_cp_demangled_name_parse_free)
13449 (cp_new_demangle_parse_info): Remove.
13450 * cp-support.c (do_demangled_name_parse_free_cleanup)
13451 (make_cleanup_cp_demangled_name_parse_free): Remove.
13452 (inspect_type, cp_canonicalize_string_full)
13453 (cp_canonicalize_string): Update.
13454 (mangled_name_to_comp): Change return type.
13455 (cp_class_name_from_physname, method_name_from_physname)
13456 (cp_func_name, cp_remove_params): Update.
13457 * cp-name-parser.y (demangle_parse_info): New constructor, from
13458 cp_new_demangle_parse_info.
13459 (~demangle_parse_info): New destructor, from
13460 cp_demangled_name_parse_free.
13461 (cp_merge_demangle_parse_infos): Update.
13462 (cp_demangled_name_to_comp): Change return type.
13463
1ac32117
TT
134642017-01-10 Tom Tromey <tom@tromey.com>
13465
13466 * top.c (prevent_dont_repeat): Change return type.
13467 * python/python.c (execute_gdb_command): Use std::string.
13468 Update.
13469 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13470 * command.h (prevent_dont_repeat): Change return type.
13471 * breakpoint.c (bpstat_do_actions_1): Update.
13472
0cf08227
TT
134732017-01-10 Tom Tromey <tom@tromey.com>
13474
13475 * value.h (scoped_value_mark::~scoped_value_mark): Call
13476 free_to_mark.
13477 (scoped_value_mark::free_to_mark): New method.
13478 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13479 scoped_value_mark.
13480
eb115069
TT
134812017-01-10 Tom Tromey <tom@tromey.com>
13482
13483 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13484 (valpy_reference_value, valpy_const_value, valpy_get_address)
13485 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13486 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13487 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13488 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13489 scoped_value_mark.
13490 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13491 * value.h (scoped_value_mark): New class.
13492
906768f9
TT
134932017-01-10 Tom Tromey <tom@tromey.com>
13494
13495 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13496 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13497 * psymtab.c (discard_psymtabs_upto): Remove.
13498 (make_cleanup_discard_psymtabs): Remove.
13499 (struct psymtab_state): Remove.
13500
bef155c3
TT
135012017-01-10 Tom Tromey <tom@tromey.com>
13502
13503 * record-full.c (record_full_save_cleanups): Remove.
13504 (record_full_save): Use gdb::unlinker.
13505 * gcore.c (do_bfd_delete_cleanup): Remove.
13506 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13507 cleanups.
13508 * dwarf2read.c (unlink_if_set): Remove.
13509 (write_psymtabs_to_index): Use gdb::unlinker.
13510 * common/gdb_unlinker.h: New file.
13511
192b62ce
TT
135122017-01-10 Tom Tromey <tom@tromey.com>
13513
13514 * windows-tdep.c (windows_xfer_shared_library): Update.
13515 * windows-nat.c (windows_make_so): Update.
13516 * utils.h (make_cleanup_bfd_unref): Remove.
13517 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13518 * symfile.h (symfile_bfd_open)
13519 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13520 * symfile.c (read_symbols, symbol_file_add)
13521 (separate_debug_file_exists): Update.
13522 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13523 (generic_load, reread_symbols): Update.
13524 * symfile-mem.c (symbol_file_add_from_memory): Update.
13525 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13526 (spu_symbol_file_add_from_memory): Update.
13527 * solist.h (struct target_so_ops) <bfd_open>: Return
13528 gdb_bfd_ref_ptr.
13529 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13530 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13531 gdb_bfd_ref_ptr.
13532 (solib_map_sections, reload_shared_libraries_1): Update.
13533 * solib-svr4.c (enable_break): Update.
13534 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13535 * solib-frv.c (enable_break2): Update.
13536 * solib-dsbt.c (enable_break): Update.
13537 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13538 gdb_bfd_ref_ptr.
13539 (darwin_solib_get_all_image_info_addr_at_init): Update.
13540 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13541 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13542 * record-full.c (record_full_save): Update.
13543 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13544 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13545 * minidebug.c (find_separate_debug_file_in_section): Return
13546 gdb_bfd_ref_ptr.
13547 * machoread.c (macho_add_oso_symfile): Change abfd to
13548 gdb_bfd_ref_ptr.
13549 (macho_symfile_read_all_oso): Update.
13550 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13551 (macho_symfile_read): Update.
13552 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13553 (jit_bfd_try_read_symtab): Update.
13554 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13555 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13556 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13557 gdb_bfd_ref_ptr.
13558 (gdb_bfd_ref_policy): New struct.
13559 (gdb_bfd_ref_ptr): New typedef.
13560 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13561 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13562 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13563 gdb_bfd_ref_ptr.
13564 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13565 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13566 (gcore_command): Update.
13567 * exec.c (exec_file_attach): Update.
13568 * elfread.c (elf_symfile_read): Update.
13569 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13570 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13571 (open_and_init_dwo_file): Update.
13572 (open_dwp_file): Return gdb_bfd_ref_ptr.
13573 (open_and_init_dwp_file): Update.
13574 * corelow.c (core_open): Update.
13575 * compile/compile-object-load.c (compile_object_load): Update.
13576 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13577 * coffread.c (coff_symfile_read): Update.
13578 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13579 gdb_bfd_ref_ptr. Rename.
13580 (dump_bfd_file, restore_command): Update.
13581 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13582 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13583 (find_separate_debug_file_by_buildid): Update.
13584
50315b21
TT
135852017-01-10 Tom Tromey <tom@tromey.com>
13586
13587 * common/gdb_ref_ptr.h: New file.
13588 * python/py-ref.h (struct gdbpy_ref_policy): New.
13589 (gdbpy_ref): Now a typedef.
13590
fc4007c9
TT
135912017-01-10 Tom Tromey <tom@tromey.com>
13592
13593 * utils.h (make_cleanup_htab_delete): Don't declare.
13594 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13595 Remove.
13596 * linespec.c (decode_compound_collector): Add constructor,
13597 destructor.
13598 (lookup_prefix_sym): Remove cleanup.
13599 (symtab_collector): Add constructor, destructor.
13600 (collect_symtabs_from_filename): Remove cleanup.
13601 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13602 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13603 Use htab_up.
13604 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13605 * dwarf2read.c (dw2_expand_symtabs_matching)
13606 (dw2_map_symbol_filenames, dwarf_decode_macros)
13607 (write_psymtabs_to_index): Use htab_up.
13608 * dwarf2loc.c (func_verify_no_selftailcall)
13609 (call_site_find_chain_1, func_verify_no_selftailcall)
13610 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13611 std::vector, gdb::unique_xmalloc_ptr.
13612 (call_sitep): Remove typedef.
13613 (dwarf2_locexpr_baton_eval): Remove unused variable.
13614
8dbcee67
TT
136152017-01-10 Tom Tromey <tom@tromey.com>
13616
13617 * python/python-internal.h (make_cleanup_py_decref)
13618 (make_cleanup_py_xdecref): Don't declare.
13619 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13620 (py_xdecref, make_cleanup_py_xdecref): Remove.
13621
13df46cc
TT
136222017-01-10 Tom Tromey <tom@tromey.com>
13623
13624 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13625 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13626
06fc9bf7
TT
136272017-01-10 Tom Tromey <tom@tromey.com>
13628
13629 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13630
830a4934
TT
136312017-01-10 Tom Tromey <tom@tromey.com>
13632
13633 * python/py-utils.c (unicode_to_encoded_string)
13634 (python_string_to_target_string)
13635 (python_string_to_target_python_string)
13636 (python_string_to_host_string, gdbpy_obj_to_string)
13637 (get_addr_from_python): Use gdbpy_ref.
13638
4586d543
TT
136392017-01-10 Tom Tromey <tom@tromey.com>
13640
13641 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13642 gdbpy_ref.
13643
59876f8f
TT
136442017-01-10 Tom Tromey <tom@tromey.com>
13645
13646 * python/python.c (eval_python_command, gdbpy_decode_line)
13647 (gdbpy_run_events, gdbpy_start_type_printers)
13648 (gdbpy_apply_type_printers): Use gdbpy_ref.
13649
97d83487
TT
136502017-01-10 Tom Tromey <tom@tromey.com>
13651
13652 * python/py-param.c (get_doc_string, compute_enum_values): Use
13653 gdbpy_ref.
13654
9205649a
TT
136552017-01-10 Tom Tromey <tom@tromey.com>
13656
13657 * python/py-inferior.c (find_thread_object, build_inferior_list):
13658 Use gdbpy_ref.
13659
74c49d45
TT
136602017-01-10 Tom Tromey <tom@tromey.com>
13661
13662 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13663
16361ffb
TT
136642017-01-10 Tom Tromey <tom@tromey.com>
13665
13666 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13667 gdbpy_ref.
13668
905f2cca
TT
136692017-01-10 Tom Tromey <tom@tromey.com>
13670
13671 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13672 extra incref.
13673 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13674 Use gdbpy_ref.
13675
64081434
TT
136762017-01-10 Tom Tromey <tom@tromey.com>
13677
13678 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13679 gdbpy_ref.
13680
59e9e831
TT
136812017-01-10 Tom Tromey <tom@tromey.com>
13682
13683 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13684 decref results of PyArg_ParseTupleAndKeywords.
13685
9de10f6d
TT
136862017-01-10 Tom Tromey <tom@tromey.com>
13687
13688 * python/python.c (python_run_simple_file): Use
13689 unique_xmalloc_ptr, gdbpy_ref.
13690
2bd5759d
TT
136912017-01-10 Tom Tromey <tom@tromey.com>
13692
13693 * python/py-prettyprint.c (print_stack_unless_memory_error)
13694 (print_string_repr, print_children): Use gdbpy_ref.
13695 (dummy_python_frame): New class.
13696 (dummy_python_frame::dummy_python_frame): Rename from
13697 push_dummy_python_frame.
13698 (py_restore_tstate): Remove.
13699
3b4e0e01
TT
137002017-01-10 Tom Tromey <tom@tromey.com>
13701
13702 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13703
17a22718
TT
137042017-01-10 Tom Tromey <tom@tromey.com>
13705
13706 * python/python.c (ensure_python_env, restore_python_env):
13707 Remove.
13708 * python/python-internal.h (ensure_python_env): Don't declare.
13709 * varobj.h (varobj_ensure_python_env): Don't declare.
13710 * varobj.c (varobj_ensure_python_env): Remove.
13711
68cdc557
TT
137122017-01-10 Tom Tromey <tom@tromey.com>
13713
13714 * varobj.c (varobj_value_get_print_value): Use
13715 gdbpy_enter_varobj.
13716
1eba6383
TT
137172017-01-10 Tom Tromey <tom@tromey.com>
13718
13719 * python/py-prettyprint.c (print_string_repr, print_children):
13720 Update.
13721 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13722 of "encoding".
13723 * varobj.c (varobj_value_get_print_value): Update.
13724 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13725
bde7b3e3
TT
137262017-01-10 Tom Tromey <tom@tromey.com>
13727
13728 * varobj.c (varobj_get_display_hint)
13729 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13730 (varobj_set_visualizer, free_variable): Use
13731 gdbpy_enter_varobj.
13732
a7785f8c
TT
137332017-01-10 Tom Tromey <tom@tromey.com>
13734
13735 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13736 (do_finish_initialization): New function. Use gdbpy_ref.
13737 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13738 do_finish_initialization.
13739
2865bfce
TT
137402017-01-10 Tom Tromey <tom@tromey.com>
13741
13742 * python/py-param.c (get_set_value, get_show_value): Use
13743 gdbpy_enter, gdbpy_ref.
13744
0e9dcc75
TT
137452017-01-10 Tom Tromey <tom@tromey.com>
13746
13747 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13748
12a5cedd
TT
137492017-01-10 Tom Tromey <tom@tromey.com>
13750
13751 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13752
788f2586
TT
137532017-01-10 Tom Tromey <tom@tromey.com>
13754
13755 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13756 Use gdbpy_enter_varobj.
13757
6cd67bea
TT
137582017-01-10 Tom Tromey <tom@tromey.com>
13759
13760 * varobj.c (gdbpy_enter_varobj): New constructor.
13761 * python/python-internal.h (gdbpy_enter_varobj): New class.
13762 * python/py-varobj.c (py_varobj_get_iterator): Use
13763 gdbpy_enter_varobj.
13764
14b122bf
TT
137652017-01-10 Tom Tromey <tom@tromey.com>
13766
13767 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
13768 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13769 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
13770 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
13771 unique_xmalloc_ptr.
13772 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
13773
bf1ca3b9
TT
137742017-01-10 Tom Tromey <tom@tromey.com>
13775
13776 * python/py-xmethods.c (invoke_match_method): Use
13777 gdbpy_ref.
13778
572a5524
TT
137792017-01-10 Tom Tromey <tom@tromey.com>
13780
13781 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
13782 gdbpy_enter, gdbpy_ref.
13783
396a78b6
TT
137842017-01-10 Tom Tromey <tom@tromey.com>
13785
13786 * python/python.c (python_interactive_command): Use gdbpy_enter.
13787
a88b13c7
TT
137882017-01-10 Tom Tromey <tom@tromey.com>
13789
13790 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
13791 gdbpy_ref.
13792
e9f0c363
TT
137932017-01-10 Tom Tromey <tom@tromey.com>
13794
13795 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
13796 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13797
6349f452
TT
137982017-01-10 Tom Tromey <tom@tromey.com>
13799
13800 * utils.h (htab_deleter): New struct.
13801 (htab_up): New typedef.
13802 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
13803 gdbpy_enter, gdbpy_ref, htab_up.
13804
c0171de6
TT
138052017-01-10 Tom Tromey <tom@tromey.com>
13806
13807 * python/py-unwind.c (pending_frame_invalidate): Remove.
13808 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
13809
f18e226f
TT
138102017-01-10 Tom Tromey <tom@tromey.com>
13811
13812 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
13813 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
13814
c57af3f1
TT
138152017-01-10 Tom Tromey <tom@tromey.com>
13816
13817 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
13818
60e600ec
TT
138192017-01-10 Tom Tromey <tom@tromey.com>
13820
13821 * python/python.c (gdbpy_eval_from_control_command)
13822 (gdbpy_source_script, gdbpy_run_events)
13823 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
13824 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
13825 gdbpy_enter.
13826
bf7da5b0
TT
138272017-01-10 Tom Tromey <tom@tromey.com>
13828
13829 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
13830
2d38bced
TT
138312017-01-10 Tom Tromey <tom@tromey.com>
13832
13833 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
13834
07bc7329
TT
138352017-01-10 Tom Tromey <tom@tromey.com>
13836
13837 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
13838 (python_on_inferior_call_pre, python_on_inferior_call_post)
13839 (python_on_memory_change, python_on_register_change)
13840 (python_inferior_exit, python_new_objfile, add_thread_object)
13841 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
13842
6e7c365e
TT
138432017-01-10 Tom Tromey <tom@tromey.com>
13844
13845 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
13846 (bpfinishpy_handle_exit): Use gdbpy_enter.
13847
6ba0cd40
TT
138482017-01-10 Tom Tromey <tom@tromey.com>
13849
13850 * python/py-cmd.c (cmdpy_destroyer)
13851 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
13852 gdbpy_enter.
13853
de2dc875
TT
138542017-01-10 Tom Tromey <tom@tromey.com>
13855
13856 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13857 gdbpy_enter.
13858 (gdbpy_breakpoint_has_cond): Likewise.
13859
4ecee2c4
TT
138602017-01-10 Tom Tromey <tom@tromey.com>
13861
13862 * python/python.c (gdbpy_enter): New constructor.
13863 (~gdbpy_enter): New destructor.
13864 (restore_python_env, ensure_python_env): Rewrite.
13865 * python/python-internal.h (gdbpy_enter): New class.
13866
37fce74f
TT
138672017-01-10 Tom Tromey <tom@tromey.com>
13868
13869 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
13870
53a0cca3
TT
138712017-01-10 Tom Tromey <tom@tromey.com>
13872
13873 * python/py-value.c (value_has_field, get_field_flag)
13874 (get_field_type, valpy_getitem, convert_value_from_python): Use
13875 gdbpy_ref.
13876
ff3724f5
TT
138772017-01-10 Tom Tromey <tom@tromey.com>
13878
13879 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
13880 gdbpy_ref.
13881
0700aea5
TT
138822017-01-10 Tom Tromey <tom@tromey.com>
13883
13884 * python/py-prettyprint.c (search_pp_list)
13885 (find_pretty_printer_from_objfiles)
13886 (find_pretty_printer_from_progspace)
13887 (find_pretty_printer_from_gdb, find_pretty_printer)
13888 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
13889 gdbpy_ref.
13890
1bb44c9f
TT
138912017-01-10 Tom Tromey <tom@tromey.com>
13892
13893 * python/py-param.c (call_doc_function): Use gdbpy_ref.
13894
87ce03fd
TT
138952017-01-10 Tom Tromey <tom@tromey.com>
13896
13897 * python/py-linetable.c (build_line_table_tuple_from_pcs)
13898 (ltpy_get_all_source_lines): Use gdbpy_ref.
13899
ee0a3fb8
TT
139002017-01-10 Tom Tromey <tom@tromey.com>
13901
13902 * python/py-framefilter.c (extract_sym, extract_value)
13903 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
13904 gdbpy_ref.
13905
bf2a52fa
TT
139062017-01-10 Tom Tromey <tom@tromey.com>
13907
13908 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
13909
f59fe7f8
TT
139102017-01-10 Tom Tromey <tom@tromey.com>
13911
13912 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
13913
80bd970a
TT
139142017-01-10 Tom Tromey <tom@tromey.com>
13915
13916 * python/py-function.c (convert_values_to_python, fnpy_init): Use
13917 gdbpy_ref.
13918
d1b3de2e
TT
139192017-01-10 Tom Tromey <tom@tromey.com>
13920
13921 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
13922
3bb43384
TT
139232017-01-10 Tom Tromey <tom@tromey.com>
13924
13925 * python/py-type.c (convert_field, make_fielditem, typy_fields)
13926 (typy_range): Use gdbpy_ref.
13927
abf5651e
TT
139282017-01-10 Tom Tromey <tom@tromey.com>
13929
13930 * python/py-threadevent.c (create_thread_event_object): Use
13931 gdbpy_ref.
13932 * python/py-stopevent.c (create_stop_event_object): Simplify.
13933 (emit_stop_event): Use gdbpy_ref.
13934 * python/py-signalevent.c (create_signal_event_object): Use
13935 gdbpy_ref.
13936 * python/py-newobjfileevent.c (create_new_objfile_event_object)
13937 (emit_new_objfile_event, create_clear_objfiles_event_object)
13938 (emit_clear_objfiles_event): Use gdbpy_ref.
13939 * python/py-infevents.c (create_inferior_call_event_object)
13940 (create_register_changed_event_object)
13941 (create_memory_changed_event_object, emit_inferior_call_event)
13942 (emit_memory_changed_event, emit_register_changed_event): Use
13943 gdbpy_ref.
13944 * python/py-exitedevent.c (create_exited_event_object)
13945 (emit_exited_event): Use gdbpy_ref.
13946 * python/py-event.h (evpy_emit_event): Remove
13947 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
13948 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
13949 * python/py-continueevent.c (emit_continue_event): Use
13950 gdbpy_ref.
13951 * python/py-breakpoint.c (gdbpy_breakpoint_created)
13952 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
13953 gdbpy_ref.
13954 * python/py-bpevent.c (create_breakpoint_event_object): Use
13955 gdbpy_ref.
13956
a68ff33e
TT
139572017-01-10 Tom Tromey <tom@tromey.com>
13958
13959 * python/py-ref.h: New file.
13960
7becfd03
SM
139612017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13962
13963 * cli-out.c (cli_ui_out::do_redirect): Change return type to
13964 void.
13965 * cli-out.h (cli_ui_out::do_redirect): Likewise.
13966 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
13967 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
13968 * ui-out.c (ui_out::redirect): Likewise.
13969 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
13970 * cli/cli-logging.c (set_logging_redirect): Update call site of
13971 ui_out::redirect.
13972 (handle_redirections): Likewise.
13973 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
13974 * top.c (execute_command_to_string): Likewise.
13975 * utils.c (do_ui_out_redirect_pop): Likewise.
13976
df294654
SM
139772017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13978
13979 * stack.c (_initialize_stack): Update "frame" command help message.
13980
f5e6296e
IB
139812017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
13982
13983 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
13984
0e2d6fa6
YQ
139852017-01-06 Yao Qi <yao.qi@linaro.org>
13986
13987 * x86-linux-nat.h: Include gdb_proc_service.h.
13988
44d6d3f9
YQ
139892017-01-06 Yao Qi <yao.qi@linaro.org>
13990
13991 * ser-base.h: Include serial.h.
13992
656731fe
YQ
139932017-01-06 Yao Qi <yao.qi@linaro.org>
13994
13995 * ppc-linux-tdep.h: Include ppc-tdep.h.
13996
1ca8f924
YQ
139972017-01-06 Yao Qi <yao.qi@linaro.org>
13998
13999 * nat/amd64-linux-siginfo.h: Include signal.h.
14000
bc3008c4
YQ
140012017-01-06 Yao Qi <yao.qi@linaro.org>
14002
14003 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14004
66c80d03
YQ
140052017-01-06 Yao Qi <yao.qi@linaro.org>
14006
14007 * mi/mi-parse.h: Include mi-cmds.h.
14008
051d2dda
YQ
140092017-01-06 Yao Qi <yao.qi@linaro.org>
14010
14011 * inf-loop.c: Don't include "target.h".
14012 * inf-loop.h: Include it here.
14013
8018d34f
YQ
140142017-01-06 Yao Qi <yao.qi@linaro.org>
14015
14016 * dfp.h: Include "dboulest.h" and "expression.h".
14017
c0b8369c
YQ
140182017-01-06 Yao Qi <yao.qi@linaro.org>
14019
14020 * ax-gdb.h: Include "ax.h".
14021
ad5cba2a
YQ
140222017-01-06 Yao Qi <yao.qi@linaro.org>
14023
14024 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14025 with nat/gdb_ptrace.h.
14026
1c33cd7f
YQ
140272017-01-05 Yao Qi <yao.qi@linaro.org>
14028
14029 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14030 new line.
14031 (mips64_fbsd_sigframe_init): Likewise.
14032
c988ac1d
JB
140332017-01-04 John Baldwin <jhb@FreeBSD.org>
14034
14035 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14036 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14037
b268007c
JB
140382017-01-04 John Baldwin <jhb@FreeBSD.org>
14039
14040 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14041 * NEWS: Mention new FreeBSD/mips native configuration.
14042 * config/mips/fbsd.mh: New file.
14043 * configure.host: Add mips*-*-freebsd*.
14044 * mips-fbsd-nat.c: New file.
14045
387360da
JB
140462017-01-04 John Baldwin <jhb@FreeBSD.org>
14047
14048 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14049 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14050 * NEWS: Mention new FreeBSD/mips target.
14051 * configure.tgt: Add mips*-*-freebsd*.
14052 * mips-fbsd-tdep.c: New file.
14053 * mips-fbsd-tdep.h: New file.
14054
2aaaf250
YQ
140552017-01-04 Yao Qi <yao.qi@linaro.org>
14056
14057 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14058 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14059
61baf725
JB
140602017-01-01 Joel Brobecker <brobecker@adacore.com>
14061
6dbb839a 14062 Update copyright year range in all GDB files.
61baf725 14063
c113e7ff 140642017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14065
c113e7ff 14066 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14067
c113e7ff 14068For older changes see ChangeLog-2016.
c906108c
SS
14069\f
14070Local Variables:
14071mode: change-log
14072left-margin: 8
14073fill-column: 74
14074version-control: never
57da7796 14075coding: utf-8
c906108c 14076End: