1 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3 * symfile.c (filename_language): Make struct, not typedef. Add
5 <ext>: Change type to std::string.
6 (DEF_VEC_O (filename_language)): Remove.
7 (filename_language_table): Change type to std::vector.
8 (add_filename_language): Adjust.
9 (set_ext_lang_command): Adjust.
10 (info_ext_lang_command): Adjust.
11 (deduce_language_from_filename): Adjust.
12 (class scoped_restore_filename_language_table): Remove.
13 (test_filename_language): Use scoped_restore.
14 (test_set_ext_lang_command): Use scoped_restore, adjust to
17 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
19 * symfile.c: Include selftest.h.
20 (class scoped_restore_filename_language_table): New.
21 (test_filename_language): New test.
22 (test_set_ext_lang_command): New test.
23 (_initialize_symfile): Register tests.
25 2017-10-27 Keith Seitz <keiths@redhat.com>
27 * breakpoint.c (print_breakpoint_location): Use the symbol saved
28 in the bp_location, falling back to find_pc_sect_function when
30 (add_location_to_breakpoint): Save sal->symbol.
31 * breakpoint.h (struct bp_location) <symbol>: New field.
32 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
33 * symtab.h (struct symtab_and_line) <symbol>: New field.
35 2017-10-26 Patrick Frants <osscontribute@gmail.com>
38 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
41 2017-10-26 Pedro Alves <palves@redhat.com>
43 * remote.c (remote_async_terminal_ours_p): Delete.
44 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
45 Remove references to 'remote_async_terminal_ours_p'.
47 2017-10-26 Yao Qi <yao.qi@linaro.org>
49 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
51 2017-10-26 Yao Qi <yao.qi@linaro.org>
53 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
55 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
57 * breakpoint.c (bpstat_check_location): Remove cast.
58 (breakpoint_hit_catch_fork): Make aspce const.
59 (breakpoint_hit_catch_solib): Likewise.
60 (breakpoint_hit_catch_exec): Likewise.
61 (breakpoint_hit_ranged_breakpoint): Likewise.
62 (breakpoint_hit_watchpoint): Likewise.
63 (base_breakpoint_breakpoint_hit): Likewise.
64 (bkpt_breakpoint_hit): Likewise.
65 (dprintf_breakpoint_hit): Likewise.
66 (tracepoint_breakpoint_hit): Likewise.
67 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
69 2017-10-26 Yao Qi <yao.qi@linaro.org>
71 * breakpoint.c (breakpoint_location_address_match): Change
72 "struct address_space *" to "const address_space".
73 (breakpoint_location_address_range_overlap): Likewise.
74 (breakpoint_here_p): Likewise.
75 (breakpoint_in_range_p): Likewise.
76 (moribund_breakpoint_here_p): Likewise.
77 (bp_location_inserted_here_p): Likewise.
78 (software_breakpoint_inserted_here_p): Likewise.
79 (hardware_breakpoint_inserted_here_p): Likewise.
80 (hardware_watchpoint_inserted_in_range): Likewise.
81 (bpstat_check_location): Likewise.
82 (bpstat_stop_status): Likewise.
83 (breakpoint_address_match): Likewise.
84 (breakpoint_address_match_range): Likewise.
85 (breakpoint_location_address_match): Likewise.
86 (breakpoint_location_address_range_overlap): Likewise.
87 (insert_single_step_breakpoint): Likewise.
88 (breakpoint_has_location_inserted_here): Likewise.
89 (single_step_breakpoint_inserted_here_p): Likewise.
90 (pc_at_non_inline_function): Likewise.
91 * breakpoint.h (bpstat_stop_status): Update declaration.
92 (breakpoint_here_p): Likewise.
93 (breakpoint_in_range_p): Likewise.
94 (moribund_breakpoint_here_p): Likewise.
95 (breakpoint_inserted_here_p): Likewise.
96 (software_breakpoint_inserted_here_p): Likewise.
97 (hardware_breakpoint_inserted_here_p): Likewise.
98 (breakpoint_has_location_inserted_here): Likewise.
99 (single_step_breakpoint_inserted_here_p): Likewise.
100 (hardware_watchpoint_inserted_in_range): Likewise.
101 (breakpoint_address_match): Likewise.
102 (insert_single_step_breakpoint): Likewise.
103 (pc_at_non_inline_function): Likewise.
104 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
105 * record.c (record_check_stopped_by_breakpoint): Likewise.
106 * record.h (record_check_stopped_by_breakpoint): Likewise.
107 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
109 2017-10-25 Yao Qi <yao.qi@linaro.org>
111 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
112 regcache->arch () instead get_regcache_arch.
113 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
115 (aarch64_fbsd_store_inferior_registers): Likewise.
116 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
117 (store_gregs_to_thread): Likewise.
118 (fetch_fpregs_from_thread): Likewise.
119 (store_fpregs_to_thread): Likewise.
120 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
121 (aarch64_store_return_value): Likewise.
122 (aarch64_software_single_step): Likewise.
123 * aix-thread.c (aix_thread_wait): Likewise.
124 (supply_reg32): Likewise.
125 (supply_sprs64): Likewise.
126 (supply_sprs32): Likewise.
127 (fill_gprs64): Likewise.
128 (fill_gprs32): Likewise.
129 (fill_sprs64): Likewise.
130 (fill_sprs32): Likewise.
131 (store_regs_user_thread): Likewise.
132 (store_regs_kernel_thread): Likewise.
133 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
134 (alphabsd_store_inferior_registers): Likewise.
135 * alpha-tdep.c (alpha_extract_return_value): Likewise.
136 (alpha_store_return_value): Likewise.
137 (alpha_deal_with_atomic_sequence): Likewise.
138 (alpha_next_pc): Likewise.
139 (alpha_software_single_step): Likewise.
140 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
141 (amd64bsd_store_inferior_registers): Likewise.
142 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
144 (amd64_linux_store_inferior_registers): Likewise.
145 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
146 (amd64_collect_native_gregset): Likewise.
147 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
148 (amd64obsd_collect_uthread): Likewise.
149 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
150 (amd64_collect_fpregset): Likewise.
151 (amd64_supply_fxsave): Likewise.
152 (amd64_supply_xsave): Likewise.
153 (amd64_collect_fxsave): Likewise.
154 (amd64_collect_xsave): Likewise.
155 * arc-tdep.c (arc_write_pc): Likewise.
156 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
157 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
158 (arm_fbsd_store_inferior_registers): Likewise.
159 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
160 (store_vfp_regs): Likewise.
161 (arm_linux_fetch_inferior_registers): Likewise.
162 (arm_linux_store_inferior_registers): Likewise.
163 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
164 (arm_linux_sigreturn_next_pc): Likewise.
165 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
166 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
167 (fetch_register): Likewise.
168 (store_register): Likewise.
169 * arm-tdep.c (arm_is_thumb): Likewise.
170 (displaced_in_arm_mode): Likewise.
171 (bx_write_pc): Likewise.
172 (arm_get_next_pcs_addr_bits_remove): Likewise.
173 (arm_software_single_step): Likewise.
174 (arm_extract_return_value): Likewise.
175 (arm_store_return_value): Likewise.
176 (arm_write_pc): Likewise.
177 * bfin-tdep.c (bfin_extract_return_value): Likewise.
178 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
179 (bsd_uthread_store_registers): Likewise.
180 * core-regset.c (fetch_core_registers): Likewise.
181 * corelow.c (get_core_registers): Likewise.
182 * cris-tdep.c (cris_store_return_value): Likewise.
183 (cris_extract_return_value): Likewise.
184 (find_step_target): Likewise.
185 (find_step_target): Likewise.
186 (cris_software_single_step): Likewise.
187 * ctf.c (ctf_fetch_registers): Likewise.
188 * darwin-nat.c (cancel_breakpoint): Likewise.
189 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
190 * frv-tdep.c (frv_extract_return_value): Likewise.
191 * ft32-tdep.c (ft32_store_return_value): Likewise.
192 (ft32_extract_return_value): Likewise.
193 * go32-nat.c (fetch_register): Likewise.
194 (go32_fetch_registers): Likewise.
195 (go32_store_registers): Likewise.
196 (store_register): Likewise.
197 * h8300-tdep.c (h8300_extract_return_value): Likewise.
198 (h8300_store_return_value): Likewise.
199 * hppa-linux-nat.c (fetch_register): Likewise.
200 (store_register): Likewise.
201 (hppa_linux_fetch_inferior_registers): Likewise.
202 (hppa_linux_store_inferior_registers): Likewise.
203 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
204 (i386_darwin_store_inferior_registers): Likewise.
205 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
206 (gnu_store_registers): Likewise.
207 * i386-linux-nat.c (fetch_register): Likewise.
208 (store_register): Likewise.
209 (supply_gregset): Likewise.
210 (fill_gregset): Likewise.
211 (i386_linux_fetch_inferior_registers): Likewise.
212 (i386_linux_store_inferior_registers): Likewise.
213 (i386_linux_resume): Likewise.
214 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
216 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
217 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
218 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
219 (i386obsd_collect_uthread): Likewise.
220 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
221 (i386_supply_gregset): Likewise.
222 (i386_collect_gregset): Likewise.
223 (i386_supply_fpregset): Likewise.
224 (i386_collect_fpregset): Likewise.
225 (i386_mpx_bd_base): Likewise.
226 * i386-v4-nat.c (supply_fpregset): Likewise.
227 (fill_fpregset): Likewise.
228 * i387-tdep.c (i387_supply_fsave): Likewise.
229 (i387_collect_fsave): Likewise.
230 (i387_supply_fxsave): Likewise.
231 (i387_collect_fxsave): Likewise.
232 (i387_supply_xsave): Likewise.
233 (i387_collect_xsave): Likewise.
234 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
235 (ia64_linux_store_registers): Likewise.
236 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
237 (ia64_extract_return_value): Likewise.
238 (ia64_store_return_value): Likewise.
239 (find_func_descr): Likewise.
240 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
241 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
242 (inf_ptrace_store_registers): Likewise.
243 * infrun.c (use_displaced_stepping): Likewise.
244 (displaced_step_prepare_throw): Likewise.
247 (do_target_wait): Likewise.
248 (adjust_pc_after_break): Likewise.
249 (handle_inferior_event_1): Likewise.
250 (handle_signal_stop): Likewise.
251 (save_infcall_suspend_state): Likewise.
252 (restore_infcall_suspend_state): Likewise.
253 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
254 * jit.c (jit_frame_prev_register): Likewise.
255 * linux-nat.c (save_stop_reason): Likewise.
256 (linux_nat_wait_1): Likewise.
257 (resume_stopped_resumed_lwps): Likewise.
258 * linux-record.c (record_linux_sockaddr): Likewise.
259 (record_linux_msghdr): Likewise.
260 (record_linux_system_call): Likewise.
261 * linux-tdep.c (linux_collect_thread_registers): Likewise.
262 * lm32-tdep.c (lm32_extract_return_value): Likewise.
263 (lm32_store_return_value): Likewise.
264 * m32c-tdep.c (m32c_read_flg): Likewise.
265 (m32c_pseudo_register_read): Likewise.
266 (m32c_pseudo_register_write): Likewise.
267 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
268 (m32r_linux_collect_gregset): Likewise.
269 * m32r-tdep.c (m32r_store_return_value): Likewise.
270 (m32r_extract_return_value): Likewise.
271 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
272 (m68kbsd_collect_fpregset): Likewise.
273 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
274 * m68k-linux-nat.c (fetch_register): Likewise.
275 (old_fetch_inferior_registers): Likewise.
276 (old_store_inferior_registers): Likewise.
277 (store_regs): Likewise.
278 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
279 (m68k_svr4_store_return_value): Likewise.
280 * m88k-tdep.c (m88k_store_arguments): Likewise.
281 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
282 (mi_cmd_data_write_register_values): Likewise.
283 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
284 (mips_fbsd_store_inferior_registers): Likewise.
285 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
286 (mips_fbsd_supply_gregs): Likewise.
287 (mips_fbsd_collect_fpregs): Likewise.
288 (mips_fbsd_collect_gregs): Likewise.
289 (mips_fbsd_supply_fpregset): Likewise.
290 (mips_fbsd_collect_fpregset): Likewise.
291 (mips_fbsd_supply_gregset): Likewise.
292 (mips_fbsd_collect_gregset): Likewise.
293 * mips-linux-nat.c (supply_gregset): Likewise.
294 (fill_gregset): Likewise.
295 (supply_fpregset): Likewise.
296 (fill_fpregset): Likewise.
297 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
298 (mips_fill_gregset): Likewise.
299 (mips_supply_fpregset): Likewise.
300 (mips_fill_fpregset): Likewise.
301 (mips64_supply_gregset): Likewise.
302 (micromips_linux_sigframe_validate): Likewise.
303 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
304 (mipsnbsd_fetch_inferior_registers): Likewise.
305 (mipsnbsd_store_inferior_registers): Likewise.
306 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
307 (mipsnbsd_supply_gregset): Likewise.
308 (mipsnbsd_iterate_over_regset_sections): Likewise.
309 (mipsnbsd_supply_reg): Likewise.
310 (mipsnbsd_supply_fpreg): Likewise.
311 * mips-tdep.c (mips_in_frame_stub): Likewise.
312 (mips_dummy_id): Likewise.
313 (is_octeon_bbit_op): Likewise.
314 (micromips_bc1_pc): Likewise.
315 (extended_mips16_next_pc): Likewise.
316 (mips16_next_pc): Likewise.
317 (deal_with_atomic_sequence): Likewise.
318 * moxie-tdep.c (moxie_process_readu): Likewise.
319 * nios2-tdep.c (nios2_get_next_pc): Likewise.
320 * nto-procfs.c (procfs_store_registers): Likewise.
321 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
322 (ppcfbsd_store_inferior_registers): Likewise.
323 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
324 (fetch_altivec_register): Likewise.
325 (get_spe_registers): Likewise.
326 (fetch_spe_register): Likewise.
327 (fetch_altivec_registers): Likewise.
328 (fetch_all_gp_regs): Likewise.
329 (fetch_all_fp_regs): Likewise.
330 (store_vsx_register): Likewise.
331 (store_altivec_register): Likewise.
332 (set_spe_registers): Likewise.
333 (store_spe_register): Likewise.
334 (store_altivec_registers): Likewise.
335 (store_all_gp_regs): Likewise.
336 (store_all_fp_regs): Likewise.
337 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
338 (ppc_linux_collect_gregset): Likewise.
339 (ppc_canonicalize_syscall): Likewise.
340 (ppc_linux_record_signal): Likewise.
341 (ppu2spu_prev_register): Likewise.
342 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
343 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
344 (ppcobsd_store_registers): Likewise.
345 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
347 (ppc_ravenscar_generic_store_registers): Likewise.
348 * procfs.c (procfs_fetch_registers): Likewise.
349 (procfs_store_registers): Likewise.
350 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
351 (ravenscar_store_registers): Likewise.
352 (ravenscar_prepare_to_store): Likewise.
353 * record-btrace.c (record_btrace_fetch_registers): Likewise.
354 * record-full.c (record_full_wait_1): Likewise.
355 (record_full_registers_change): Likewise.
356 (record_full_store_registers): Likewise.
357 (record_full_core_fetch_registers): Likewise.
358 (record_full_save): Likewise.
359 (record_full_goto_insn): Likewise.
360 * regcache.c (regcache_register_size): Likewise.
361 (get_regcache_arch): Remove.
362 (regcache_read_pc): Likewise.
363 * regcache.h (get_regcache_arch): Remove.
364 * remote-sim.c (gdbsim_fetch_register): Likewise.
365 (gdbsim_store_register): Likewise.
366 * remote.c (fetch_register_using_p): Likewise.
367 (send_g_packet): Likewise.
368 (remote_prepare_to_store): Likewise.
369 (store_registers_using_G): Likewise.
370 * reverse.c (save_bookmark_command): Likewise.
371 (goto_bookmark_command): Likewise.
372 * rs6000-aix-tdep.c (branch_dest): Likewise.
373 * rs6000-nat.c (rs6000_ptrace64): Likewise.
374 (fetch_register): Likewise.
375 * rs6000-tdep.c (ppc_supply_reg): Likewise.
376 (ppc_collect_reg): Likewise.
377 (ppc_collect_gregset): Likewise.
378 (ppc_collect_fpregset): Likewise.
379 (ppc_collect_vsxregset): Likewise.
380 (ppc_collect_vrregset): Likewise.
381 (ppc_displaced_step_hw_singlestep): Likewise.
382 (rs6000_pseudo_register_read): Likewise.
383 (rs6000_pseudo_register_write): Likewise.
384 * s390-linux-nat.c (supply_gregset): Likewise.
385 (fill_gregset): Likewise.
386 (s390_linux_fetch_inferior_registers): Likewise.
387 * s390-linux-tdep.c (s390_write_pc): Likewise.
388 (s390_software_single_step): Likewise.
389 (s390_all_but_pc_registers_record): Likewise.
390 (s390_linux_syscall_record): Likewise.
391 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
392 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
393 (shnbsd_store_inferior_registers): Likewise.
394 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
395 (sh_extract_return_value_fpu): Likewise.
396 (sh_store_return_value_nofpu): Likewise.
397 (sh_corefile_supply_regset): Likewise.
398 (sh_corefile_collect_regset): Likewise.
399 * sh64-tdep.c (sh64_extract_return_value): Likewise.
400 (sh64_store_return_value): Likewise.
401 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
402 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
403 (sparc_store_inferior_registers): Likewise.
404 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
405 (sparc_ravenscar_prepare_to_store): Likewise.
406 * sparc-tdep.c (sparc32_store_arguments): Likewise.
407 (sparc_analyze_control_transfer): Likewise.
408 (sparc_step_trap): Likewise.
409 (sparc_software_single_step): Likewise.
410 (sparc32_gdbarch_init): Likewise.
411 (sparc_supply_rwindow): Likewise.
412 (sparc_collect_rwindow): Likewise.
413 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
414 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
415 (sparc64nbsd_collect_gregset): Likewise.
416 (sparc64nbsd_supply_fpregset): Likewise.
417 (sparc64nbsd_collect_fpregset): Likewise.
418 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
419 (sparc64_supply_gregset): Likewise.
420 (sparc64_collect_gregset): Likewise.
421 (sparc64_supply_fpregset): Likewise.
422 (sparc64_collect_fpregset): Likewise.
423 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
424 * spu-tdep.c (spu_unwind_sp): Likewise.
425 (spu2ppu_prev_register): Likewise.
426 (spu_memory_remove_breakpoint): Likewise.
427 * stack.c (return_command): Likewise.
428 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
429 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
430 * tracefile.c (trace_save_ctf): Likewise.
431 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
432 (do_windows_store_inferior_registers): Likewise.
433 (windows_resume): Likewise.
434 * xtensa-linux-nat.c (fill_gregset): Likewise.
435 (supply_gregset_reg): Likewise.
436 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
437 (xtensa_register_read_masked): Likewise.
438 (xtensa_supply_gregset): Likewise.
439 (xtensa_extract_return_value): Likewise.
440 (xtensa_store_return_value): Likewise.
442 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
444 * doublest.c (floatformat_from_string): New function.
445 * doublest.h (floatformat_from_string): Add prototype.
447 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
448 (OP_FLOAT): ... this.
449 * expression.h: Do not include "doublest.h".
450 (union exp_element): Replace doubleconst and decfloatconst by
451 new element floatconst.
452 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
453 (ada_evaluate_subexp): Likewise.
454 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
455 OP_DOUBLE and OP_DECFLOAT.
456 * expprint.c (print_subexp_standard): Likewise.
457 (dump_subexp_body_standard): Likewise.
458 * breakpoint.c (watchpoint_exp_is_const): Likewise.
460 * parse.c: Include "dfp.h".
461 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
462 (write_exp_elt_floatcst): New function.
463 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
465 (operator_check_standard): Likewise.
466 (parse_float): Do not accept suffix. Take type as input. Return bool.
467 Return target format buffer instead of host DOUBLEST.
468 Use floatformat_from_string and decimal_from_string to parse
469 either binary or decimal floating-point types.
470 (parse_c_float): Remove.
471 * parser-defs.h: Do not include "doublest.h".
472 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
473 (write_exp_elt_floatcst): Add prototype.
474 (parse_float): Update prototype.
475 (parse_c_float): Remove.
477 * c-exp.y: Do not include "dfp.h".
478 (typed_val_float): Use byte buffer instead of DOUBLEST.
479 (typed_val_decfloat): Remove.
481 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
482 (parse_number): Update to new parse_float interface.
483 Parse suffixes and determine type before calling parse_float.
484 Handle decimal and binary FP types the same way.
486 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
487 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
488 (parse_number): Update to new parse_float interface.
489 Parse suffixes and determine type before calling parse_float.
491 * f-exp.y: Replace dval by typed_val_float.
492 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
493 (parse_number): Use parse_float instead of atof.
495 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
496 (parse_go_float): Remove.
497 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
498 (parse_number): Call parse_float instead of parse_go_float.
499 Parse suffixes and determine type before calling parse_float.
501 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
502 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
503 (parse_number): Update to new parse_float interface.
504 Parse suffixes and determine type before calling parse_float.
506 * m2-exp.y: Replace dval by byte buffer val.
507 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
508 (parse_number): Call parse_float instead of atof.
510 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
511 (lex_number): Call parse_float instead of strtod.
512 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
513 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
514 Use write_exp_elt_floatcst.
515 (unit_testing): Remove static variable.
516 (rust_type): Do not check unit_testing.
517 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
519 * ada-exp.y (type_float, type_double): Remove.
520 (typed_val_float): Use byte buffer instead of DOUBLEST.
521 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
522 * ada-lex.l (processReal): Use parse_float instead of sscanf.
524 2017-10-25 Alan Hayward <alan.hayward@arm.com>
526 * aarch64-tdep.h (enum aarch64_regnum): Remove.
527 * arch/aarch64.h: New file.
529 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
531 * dfp.h (decimal_from_string): Use const reference for argument.
532 * dfp.c (decimal_from_string): Likewise.
534 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
536 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
537 * sh64-tdep.c (sh64_do_fp_register): Likewise.
538 * mips-tdep.c (mips_print_fp_register): Likewise.
540 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
542 * common/format.h (enum argclass): Replace decfloat_arg by
543 dec32float_arg, dec64float_arg, and dec128float_arg.
544 * common/format.c (parse_format_string): Update to return
545 new decimal float argument classes.
547 * printcmd.c (printf_decfloat): Rename to ...
548 (printf_floating): ... this. Add argclass argument, and use it
549 instead of parsing the format string again. Add support for
550 binary floating-point values, using floatformat_to_string.
551 Convert value to the target format if it doesn't already match.
552 (ui_printf): Call printf_floating instead of printf_decfloat,
553 also for double_arg / long_double_arg. Pass argclass.
555 * dfp.c (decimal_to_string): Add format string argument.
556 * dfp.h (decimal_to_string): Likewise.
558 * doublest.c (floatformat_to_string): Add format string argument.
559 * doublest.h (floatformat_to_string): Likewise.
561 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
563 * doublest.c (floatformat_precision): New routine.
564 (floatformat_to_string): Likewise.
565 * doublest.c (floatformat_to_string): Add prototype.
567 * printcmd.c (print_scalar_formatted): Only call print_floating
568 on floating-point types.
569 * valprint.c: Do not include "floatformat.h".
570 (generic_val_print_decfloat): Remove.
571 (generic_val_print): Call generic_val_print_float for both
572 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
573 (print_floating): Use floatformat_to_string. Handle decimal float.
574 (print_decimal_floating): Remove, merge into floatformat_to_string.
575 * value.h (print_decimal_floating): Remove.
577 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
579 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
581 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
583 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
585 * memattr.h: Don't include vec.h.
586 (struct mem_attrib): Initialize fields.
587 <unknown>: New static method.
588 (struct mem_region): Add constructors, operator<, initialize
590 * memattr.c: Include algorithm.
591 (default_mem_attrib, unknown_mem_attrib): Remove.
592 (user_mem_region_list): New global.
593 (target_mem_region_list, mem_region_list): Change type to
594 std::vector<mem_region>.
595 (mem_use_target): Now a function.
596 (target_mem_regions_valid): Change type to bool.
597 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
598 (require_user_regions): Adjust.
599 (require_target_regions): Adjust.
600 (create_mem_region): Adjust.
601 (lookup_mem_region): Adjust.
602 (invalidate_target_mem_regions): Adjust.
603 (mem_clear): Rename to...
604 (user_mem_clear): ... this, and adjust.
605 (mem_command): Adjust.
606 (info_mem_command): Adjust.
607 (mem_enable, enable_mem_command, mem_disable,
608 disable_mem_command): Adjust.
609 (mem_delete): Adjust.
610 (delete_mem_command): Adjust.
611 * memory-map.h (parse_memory_map): Return an std::vector.
612 * memory-map.c (parse_memory_map): Likewise.
613 (struct memory_map_parsing_data): Add constructor.
614 <memory_map>: Point to std::vector.
615 (memory_map_start_memory): Adjust.
616 (memory_map_end_memory): Adjust.
617 (memory_map_end_property): Adjust.
618 (clear_result): Remove.
619 * remote.c (remote_memory_map): Return an std::vector.
620 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
622 (target_debug_print_mem_region_vector): New.
623 * target-delegates.c: Regenerate.
624 * target.h (mem_region_vector): New typedef.
625 (to_memory_map): Return mem_region_vector.
626 (target_memory_map): Return an std::vector.
627 * target.c (target_memory_map): Return an std::vector.
628 (flash_erase_command): Adjust.
630 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
632 * memory-map.c (struct memory_map_parsing_data) <property_name>:
633 Change type to std::string.
634 (memory_map_start_property): Adjust.
635 (memory_map_end_property): Adjust.
637 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
639 * infrun.h: Include common/byte-vector.h.
640 (struct displaced_step_closure): New struct.
641 (struct buf_displaced_step_closure): New struct.
642 * infrun.c (displaced_step_closure::~displaced_step_closure):
643 Provide default implementation.
644 (displaced_step_clear): Deallocate step closure with delete.
645 * aarch64-tdep.c (displaced_step_closure): Rename to ...
646 (aarch64_displaced_step_closure): ... this, extend
647 displaced_step_closure.
648 (aarch64_displaced_step_data) <dsc>: Change type to
649 aarch64_displaced_step_closure.
650 (aarch64_displaced_step_copy_insn): Adjust to type change, use
652 (aarch64_displaced_step_fixup): Add cast for displaced step
654 * amd64-tdep.c (displaced_step_closure): Rename to ...
655 (amd64_displaced_step_closure): ... this, extend
656 displaced_step_closure.
657 <insn_buf>: Change type to std::vector<gdb_byte>.
659 (fixup_riprel): Change type of DSC parameter, adjust to type
661 (fixup_displaced_copy): Change type of DSC parameter.
662 (amd64_displaced_step_copy_insn): Instantiate
663 amd64_displaced_step_closure.
664 (amd64_displaced_step_fixup): Add cast for closure type, adjust
665 to type change of insn_buf.
666 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
668 (arm_linux_copy_svc): Likewise.
669 (cleanup_kernel_helper_return): Likewise.
670 (arm_catch_kernel_helper_return): Likewise.
671 (arm_linux_displaced_step_copy_insn): Instantiate
672 arm_displaced_step_closure.
673 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
674 (displaced_read_reg): Change type of parameter DSC.
675 (branch_write_pc): Likewise.
676 (load_write_pc): Likewise.
677 (alu_write_pc): Likewise.
678 (displaced_write_reg): Likewise.
679 (arm_copy_unmodified): Likewise.
680 (thumb_copy_unmodified_32bit): Likewise.
681 (thumb_copy_unmodified_16bit): Likewise.
682 (cleanup_preload): Likewise.
683 (install_preload): Likewise.
684 (arm_copy_preload): Likewise.
685 (thumb2_copy_preload): Likewise.
686 (install_preload_reg): Likewise.
687 (arm_copy_preload_reg): Likewise.
688 (cleanup_copro_load_store): Likewise.
689 (install_copro_load_store): Likewise.
690 (arm_copy_copro_load_store) Likewise.
691 (thumb2_copy_copro_load_store): Likewise.
692 (cleanup_branch): Likewise.
693 (install_b_bl_blx): Likewise.
694 (arm_copy_b_bl_blx): Likewise.
695 (thumb2_copy_b_bl_blx): Likewise.
696 (thumb_copy_b): Likewise.
697 (install_bx_blx_reg): Likewise.
698 (arm_copy_bx_blx_reg): Likewise.
699 (thumb_copy_bx_blx_reg): Likewise.
700 (cleanup_alu_imm): Likewise.
701 (arm_copy_alu_imm): Likewise.
702 (thumb2_copy_alu_imm): Likewise.
703 (cleanup_alu_reg): Likewise.
704 (install_alu_reg): Likewise.
705 (arm_copy_alu_reg): Likewise.
706 (thumb_copy_alu_reg): Likewise.
707 (cleanup_alu_shifted_reg): Likewise.
708 (install_alu_shifted_reg): Likewise.
709 (arm_copy_alu_shifted_reg): Likewise.
710 (cleanup_load): Likewise.
711 (cleanup_store): Likewise.
712 (arm_copy_extra_ld_st): Likewise.
713 (install_load_store): Likewise.
714 (thumb2_copy_load_literal): Likewise.
715 (thumb2_copy_load_reg_imm): Likewise.
716 (arm_copy_ldr_str_ldrb_strb): Likewise.
717 (cleanup_block_load_all): Likewise.
718 (cleanup_block_store_pc): Likewise.
719 (cleanup_block_load_pc): Likewise.
720 (arm_copy_block_xfer): Likewise.
721 (thumb2_copy_block_xfer): Likewise.
722 (cleanup_svc): Likewise.
723 (install_svc): Likewise.
724 (arm_copy_svc): Likewise.
725 (thumb_copy_svc): Likewise.
726 (arm_copy_undef): Likewise.
727 (thumb_32bit_copy_undef): Likewise.
728 (arm_copy_unpred): Likewise.
729 (arm_decode_misc_memhint_neon): Likewise.
730 (arm_decode_unconditional): Likewise.
731 (arm_decode_miscellaneous): Likewise.
732 (arm_decode_dp_misc): Likewise.
733 (arm_decode_ld_st_word_ubyte): Likewise.
734 (arm_decode_media): Likewise.
735 (arm_decode_b_bl_ldmstm): Likewise.
736 (arm_decode_ext_reg_ld_st): Likewise.
737 (thumb2_decode_dp_shift_reg): Likewise.
738 (thumb2_decode_ext_reg_ld_st): Likewise.
739 (arm_decode_svc_copro): Likewise.
740 (thumb2_decode_svc_copro): Likewise.
741 (install_pc_relative): Likewise.
742 (thumb_copy_pc_relative_16bit): Likewise.
743 (thumb_decode_pc_relative_16bit): Likewise.
744 (thumb_copy_pc_relative_32bit): Likewise.
745 (thumb_copy_16bit_ldr_literal): Likewise.
746 (thumb_copy_cbnz_cbz): Likewise.
747 (thumb2_copy_table_branch): Likewise.
748 (cleanup_pop_pc_16bit_all): Likewise.
749 (thumb_copy_pop_pc_16bit): Likewise.
750 (thumb_process_displaced_16bit_insn): Likewise.
751 (decode_thumb_32bit_ld_mem_hints): Likewise.
752 (thumb_process_displaced_32bit_insn): Likewise.
753 (thumb_process_displaced_insn): Likewise.
754 (arm_process_displaced_insn): Likewise.
755 (arm_displaced_init_closure): Likewise.
756 (arm_displaced_step_fixup): Add cast for closure.
757 * arm-tdep.h: Include infrun.h.
758 (displaced_step_closure): Rename to ...
759 (arm_displaced_step_closure): ... this, extend
760 displaced_step_closure.
761 <u::svc::copy_svc_os>: Change type of parameter DSC.
763 (arm_process_displaced_insn): Likewise.
764 (arm_displaced_init_closure): Likewise.
765 (displaced_read_reg): Likewise.
766 (displaced_write_reg): Likewise.
767 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
769 * i386-tdep.h: Include infrun.h.
770 (i386_displaced_step_closure): New typedef.
771 * i386-tdep.c (i386_displaced_step_copy_insn): Use
772 i386_displaced_step_closure.
773 (i386_displaced_step_fixup): Adjust.
774 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
775 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
777 (ppc_displaced_step_fixup): Adjust.
778 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
779 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
781 (s390_displaced_step_fixup): Adjust.
783 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
785 * interps.h (interp_resume, interp_suspend, interp_set_temp):
788 2017-10-20 Tom Tromey <tom@tromey.com>
790 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
792 (gdb_bfd_record_inclusion): Update.
793 (bfdp): Remove typedef.
795 2017-10-20 Tom Tromey <tom@tromey.com>
797 * gdb_bfd.c (gdb_bfd_ref): Use new.
798 (struct gdb_bfd_data): Add constructor, destructor, and member
800 (gdb_bfd_unref): Use delete.
802 2017-10-20 Tom Tromey <tom@tromey.com>
804 * exec.c (exec_file_attach): Use new_bfd_ref.
805 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
806 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
807 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
809 * gdb_bfd.h (new_bfd_ref): New function.
811 2017-10-20 Pedro Alves <palves@redhat.com>
813 * main.c (captured_command_loop): Add attribute noinline.
815 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
817 * interps.c (struct interp_factory): Add constructor.
818 (interp_factory_p): Remove typedef.
819 (DEF_VEC_P(interp_factory_p)): Remove.
820 (interpreter_factories): Change type to std::vector.
821 (interp_factory_register): Adjust.
822 (interp_lookup): Adjust.
823 (interpreter_completer): Adjust.
825 2017-10-19 Tom Tromey <tom@tromey.com>
827 * break-catch-syscall.c (catch_syscall_completer): Use
828 std::string, gdb::unique_xmalloc_ptr.
830 2017-10-19 Tom Tromey <tom@tromey.com>
832 * infcall.c (call_function_by_hand_dummy): Use std::string.
834 2017-10-19 Tom Tromey <tom@tromey.com>
836 * mi/mi-main.c (mi_cmd_execute): Update.
837 * top.h (prepare_execute_command): Return scoped_value_mark.
838 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
839 Add move constructor.
840 * top.c (prepare_execute_command): Return scoped_value_mark.
841 (execute_command): Update.
843 2017-10-19 Pedro Alves <palves@redhat.com>
845 * xml-support.c (xml_fetch_content_from_file): Check fread's
848 2017-10-19 Pedro Alves <palves@redhat.com>
850 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
852 (handle_error_fd): New function.
853 (ser_base_async): Add/delete an event loop file handler for
856 2017-10-19 Pedro Alves <palves@redhat.com>
858 * xml-support.c (xml_fetch_content_from_file): Don't read in
859 chunks. Instead use fseek to determine the file's size, and read
862 2017-11-18 Keith Seitz <keiths@redhat.com>
864 * c-exp.y (oper): Canonicalize conversion operators of user-defined
866 Add whitespace to front of type name.
868 2017-10-18 Keith Seitz <keiths@redhat.com>
870 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
873 2017-10-18 Yao Qi <yao.qi@linaro.org>
875 * features/tic6x-c62x-linux.c: Remove.
877 2017-10-17 Tom Tromey <tom@tromey.com>
879 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
880 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
881 (do_mixed_source_and_assembly): Likewise.
883 2017-10-17 Tom Tromey <tom@tromey.com>
885 * regcache.c (regcache::xfer_part): Remove assertion.
887 2017-10-17 Pedro Alves <palves@redhat.com>
889 * xml-support.c (xml_fetch_content_from_file): Call
890 unique_ptr::release() instead unique_ptr::get() when passing
893 2017-10-17 Yao Qi <yao.qi@linaro.org>
895 * regcache.c (regcache::xfer_part): Remove parameters read and
896 write, add parameter is_raw. All callers are updated.
898 2017-10-16 Keith Seitz <keiths@redhat.com>
900 * c-typeprint.c (enum access_specifier): Moved here from
902 (output_access_specifier): New function.
903 (c_type_print_base): Consider typedefs when assessing
904 whether access labels are needed.
905 Use output_access_specifier as needed.
906 Output access specifier for typedefs, if needed.
907 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
908 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
910 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
913 2017-10-16 Tom Tromey <tom@tromey.com>
915 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
916 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
917 * target.c (target_fileio_read_stralloc): Update.
918 * sparc64-tdep.c (adi_is_addr_mapped): Update.
919 * target.h (target_fileio_read_stralloc): Return
922 2017-10-16 Tom Tromey <tom@tromey.com>
924 * xml-syscall.c (xml_init_syscalls_info): Update.
925 * xml-support.c (xinclude_start_include): Update.
926 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
927 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
928 (xml_fetch_content_from_file): Likewise.
929 * osdata.c (get_osdata): Update.
930 * target.h (target_read_stralloc, target_get_osdata): Return
932 * solib-aix.c (solib_aix_get_library_list): Update.
933 * solib-target.c (solib_target_current_sos): Update.
934 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
935 * xml-tdesc.c (fetch_available_features_from_target): Update.
936 (target_fetch_description_xml): Update.
937 (file_read_description_xml): Update.
938 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
939 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
940 (remote_pid_to_exec_file): Update.
941 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
942 (target_get_osdata): Likewise.
944 2017-10-16 Tom Tromey <tom@tromey.com>
946 * remote.c (remote_register_number_and_offset): Use std::vector.
947 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
948 (putpkt_binary): Use gdb::def_vector.
949 (compare_sections_command): Use gdb::byte_vector.
951 2017-10-16 Tom Tromey <tom@tromey.com>
953 * ppc-linux-nat.c (hwdebug_insert_point): Use
954 gdb::unique_xmalloc_ptr, XDUP.
956 2017-10-16 Tom Tromey <tom@tromey.com>
958 * probe.c (parse_probes): Use std::string.
959 (info_probes_for_ops, enable_probes_command)
960 (disable_probes_command): Remove cleanups.
962 2017-10-16 Tom Tromey <tom@tromey.com>
964 * buildsym.c (block_compar): Remove.
965 (end_symtab_get_static_block): Use std::vector.
967 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
969 * memrange.h (struct mem_range): Define operator< and operator==.
970 (mem_range_s): Remove.
971 (DEF_VEC_O (mem_range_s)): Remove.
972 (normalize_mem_ranges): Change parameter type to std::vector.
973 * memrange.c (compare_mem_ranges): Remove.
974 (normalize_mem_ranges): Change parameter type to std::vector,
975 adjust to vector change.
976 * exec.c (section_table_available_memory): Return vector, remove
978 (section_table_read_available_memory): Adjust to std::vector
980 * remote.c (remote_read_bytes): Adjust to std::vector
982 * tracepoint.h (traceframe_available_memory): Change parameter
984 * tracepoint.c (traceframe_available_memory): Change parameter
985 type to std::vector, adjust.
986 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
988 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
989 unittests/memrange-selftests.c.
990 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
991 * gdb/unittests/memrange-selftests.c: New file.
993 2017-10-16 Pedro Alves <palves@redhat.com>
995 * elfread.c (probe_key_free): Rename range-for variable.
996 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
997 (find_probe_by_pc, collect_probes): Rename range-for variable.
999 2017-10-16 Yao Qi <yao.qi@linaro.org>
1001 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1002 * features/tic6x-c62x.c: Remove.
1003 * features/tic6x-c64x-linux.c: Remove.
1004 * features/tic6x-c64x.c: Remove.
1005 * features/tic6x-c64xp-linux.c: Remove.
1006 * features/tic6x-c64xp.c: Remove.
1007 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1008 initialize_tdesc_tic6x_*_linux functions.
1009 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1010 initialize_tdesc_tic6x_* functions.
1012 2017-10-16 Yao Qi <yao.qi@linaro.org>
1014 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1016 * regformats/tic6x-c62x.dat: Remove.
1017 * regformats/tic6x-c64x.dat: Remove.
1018 * regformats/tic6x-c64xp.dat: Remove.
1020 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1022 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1023 (the !HAVE_LIBEXPAT version).
1025 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1027 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1030 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1032 * target.h: Include tracepoint.h.
1033 (enum trace_find_type): Move to tracepoint.h.
1034 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1035 * tracepoint.h: Don't include target.h
1036 (enum trace_find_type): Move from target.h.
1037 (parse_traceframe_info): Return a unique ptr.
1038 * tracepoint.c (current_traceframe_info): Change type to unique
1040 (free_traceframe_info): Remove.
1041 (clear_traceframe_info): Don't manually free
1042 current_traceframe_info.
1043 (free_result): Remove.
1044 (parse_traceframe_info): Return a unique ptr.
1045 (get_traceframe_info): Adjust to unique ptr.
1046 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1047 * remote.c (remote_traceframe_info): Return a unique ptr.
1048 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1050 * target-debug.h (target_debug_print_traceframe_info_up): New
1052 * target-delegates.c: Regenerate.
1054 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1056 * memrange.h (struct mem_range): Add constructors.
1057 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1058 std::vector<mem_range>.
1059 * tracepoint.c (free_traceframe_info): Don't manually free
1061 (traceframe_info_start_memory): Adjust to vector change.
1062 (traceframe_available_memory): Likewise.
1063 * tracefile-tfile.c (build_traceframe_info): Likewise.
1064 * ctf.c (ctf_traceframe_info): Likewise.
1066 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1068 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1070 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1071 (traceframe_info_start_tvar): Adjust to vector change.
1072 (parse_traceframe_info): Allocate with new.
1073 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1075 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1077 tfile_traceframe_info): Allocate with new.
1078 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1081 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1083 * tracepoint.c (traceframe_info): Rename to...
1084 (current_traceframe_info): ...this.
1085 (clear_traceframe_info): Adjust.
1086 (get_traceframe_info): Adjust.
1088 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1090 * nat/linux-osdata.c: Include algorithm.
1091 (compare_processes): Remove.
1092 (struct pid_pgid_entry): New struct.
1093 (linux_xfer_osdata_processgroups): Use std::vector instead of
1096 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1098 * objfiles.h: Don't include symfile.h.
1099 (struct partial_symbol): Remove forward-declaration.
1100 (struct objfile) <global_psymbols, static_psymbols>: Change type
1101 to std::vector<partial_symbol *>.
1102 * objfiles.c (objfile::objfile): Don't memset those fields.
1103 (objfile::~objfile): Don't free those fields.
1104 * psympriv.h (struct psymbol_allocation_list): Remove
1105 forward-declaration.
1106 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1108 (start_psymtab_common): Change parameters to std::vector.
1109 * psymtab.c: Include algorithm.
1110 (require_partial_symbols): Call shrink_to_fit.
1111 (find_pc_sect_psymbol): Adjust to vector change.
1112 (match_partial_symbol): Likewise.
1113 (lookup_partial_symbol): Likewise.
1114 (psym_relocate): Likewise.
1115 (dump_psymtab): Likewise.
1116 (recursively_search_psymtabs): Likewise.
1117 (compare_psymbols): Remove.
1118 (sort_pst_symbols): Adjust to vector change.
1119 (start_psymtab_common): Likewise.
1120 (end_psymtab_common): Likewise.
1121 (psymbol_bcache_full): De-constify return value.
1122 (add_psymbol_to_bcache): Likewise.
1123 (extend_psymbol_list): Remove.
1124 (append_psymbol_to_list): Adjust to vector change.
1125 (add_psymbol_to_list): Likewise.
1126 (init_psymbol_list): Likewise.
1127 (maintenance_info_psymtabs): Likewise.
1128 (maintenance_check_psymtabs): Likewise.
1129 * symfile.h (struct psymbol_allocation_list): Remove.
1130 * symfile.c (reread_symbols): Adjust to vector change.
1131 * dbxread.c (start_psymtab): Change type of parameters.
1132 (dbx_symfile_read): Adjust to vector change.
1133 (read_dbx_symtab): Likewise.
1134 (start_psymtab): Change type of parameters.
1135 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1136 (create_partial_symtab): Likewise.
1137 (add_partial_symbol): Likewise.
1138 (write_one_signatured_type): Likewise.
1139 (recursively_write_psymbols): Likewise.
1140 * mdebugread.c (parse_partial_symbols): Likewise.
1141 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1142 (scan_xcoff_symtab): Adjust to vector change.
1143 (xcoff_initial_scan): Likewise.
1145 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1147 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1149 2017-10-13 Yao Qi <yao.qi@linaro.org>
1151 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1152 Remove s390x-*-expedite, add s390x-expedite.
1154 2017-10-13 Yao Qi <yao.qi@linaro.org>
1156 * features/s390-gs-linux64.c: Regenerated.
1157 * features/s390x-gs-linux64.c: Regenerated.
1159 2017-10-13 Tom Tromey <tom@tromey.com>
1161 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1162 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1164 * symfile.c (symbol_file_add_with_addrs): Use new.
1165 (symbol_file_add_separate): Update comment.
1166 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1167 * jit.c (jit_object_close_impl): Use new.
1168 (jit_unregister_code): Use delete.
1169 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1170 (~objfile): Rename from free_objfile.
1171 (free_objfile_separate_debug, do_free_objfile_cleanup)
1172 (free_all_objfiles, objfile_purge_solibs): Use delete.
1173 * objfiles.h (struct objfile): Add constructor and destructor.
1174 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1175 (allocate_objfile, free_objfile): Don't declare.
1176 (struct objstats): Add initializers.
1178 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1180 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1181 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1182 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1183 * gdbarch.h: Regenerate.
1184 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1186 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1187 (i386_displaced_step_fixup): Adjust comment.
1188 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1190 2017-10-12 Tom Tromey <tom@tromey.com>
1192 * prologue-value.h (pv_area::store_would_trash): Return bool.
1193 (pv_area::find_reg): Likewise.
1194 * prologue-value.c (pv_area::store_would_trash): Return bool.
1195 (pv_area::find_reg): Likewise.
1197 2017-10-12 Tom Tromey <tom@tromey.com>
1199 * s390-linux-tdep.c (s390_store, s390_load)
1200 (s390_check_for_saved, s390_analyze_prologue): Update.
1201 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1202 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1203 * prologue-value.h (class pv_area): Move from prologue-value.c.
1204 Change names of members. Add constructor, destructor, member
1206 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1207 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1208 (pv_area_fetch, pv_area_scan): Don't declare.
1209 * prologue-value.c (struct pv_area::area_entry): Now member of
1211 (struct pv_area): Move to prologue-value.h.
1212 (pv_area::pv_area): Rename from make_pv_area.
1213 (pv_area::~pv_area): Rename from free_pv_area.
1214 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1215 (clear_entries, find_entry, overlaps, store_would_trash, store)
1216 (fetch, find_reg, scan): Now member of pv_area.
1217 Remove "area" argument. Update.
1218 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1220 * mn10300-tdep.c (push_reg, check_for_saved)
1221 (mn10300_analyze_prologue): Update.
1222 * mep-tdep.c (is_arg_spill, check_for_saved)
1223 (mep_analyze_prologue): Update.
1224 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1225 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1226 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1227 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1229 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1230 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1232 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1234 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1235 * linux-nat.c (linux_nat_delete_thread): New variable.
1236 (lwp_free): Invoke linux_nat_delete_thread if set.
1237 (linux_nat_set_delete_thread): New function.
1238 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1239 thread delete callback.
1240 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1241 (_initialize_arm_linux_nat): Assign thread delete callback.
1242 * s390-linux-nat.c (s390_delete_thread): New function.
1243 (_initialize_s390_nat): Assign thread delete callback.
1244 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1245 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1247 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1249 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1250 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1252 2017-10-09 Tom Tromey <tom@tromey.com>
1254 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1256 * tui/tui-layout.c (enum tui_status): Use std::string.
1258 2017-10-11 Tom Tromey <tom@tromey.com>
1260 * gdbthread.h (thread_command): Constify.
1261 * inferior.h (detach_command): Constify.
1262 * top.h (set_history, show_history): Constify.
1263 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1264 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1265 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1266 * printcmd.c (set_command): Constify.
1267 (non_const_set_command): New function.
1268 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1269 * breakpoint.c (enable_command, disable_command, delete_command)
1270 (catch_command, tcatch_command, set_breakpoint_cmd)
1271 (show_breakpoint_cmd): Constify.
1272 * macrocmd.c (macro_command): Constify.
1273 * infcmd.c (unset_command, kill_command, detach_command)
1274 (info_proc_cmd): Constify.
1275 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1276 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1277 (info_auto_load_cmd): Constify.
1278 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1279 (unset_tdesc_cmd): Constify.
1280 * ada-lang.c (set_ada_command, show_ada_command)
1281 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1282 * guile/guile.c (set_guile_command, show_guile_command)
1283 (info_guile_command): Constify.
1284 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1286 * skip.c (skip_command): Constify.
1287 * compile/compile.c (_initialize_compile): Constify.
1288 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1289 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1290 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1291 (maint_btrace_pt_show_cmd): Constify.
1292 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1294 * python/python.c (user_show_python, user_set_python): Constify.
1295 * mips-tdep.c (set_mips_command, show_mips_command)
1296 (set_mipsfpu_command): Constify.
1297 * record-btrace.c (cmd_record_btrace_start)
1298 (cmd_set_record_btrace, cmd_show_record_btrace)
1299 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1300 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1301 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1303 * symfile.c (overlay_command): Constify.
1304 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1305 * cli/cli-logging.c (set_logging_command, show_logging_command):
1307 * cli/cli-dump.c (dump_command, append_command)
1308 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1309 (tekhex_dump_command, binary_dump_command)
1310 (binary_append_command): Constify.
1311 * cli/cli-decode.c (struct cmd_list_element): Change type of
1313 * cli/cli-cmds.c (info_command, show_command, set_debug)
1314 (show_debug): Constify.
1315 (show_command): Add non-const overload.
1316 * top.c (set_history, show_history): Constify.
1317 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1318 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1319 * target.c (target_command): Constify.
1320 * sparc64-tdep.c (info_adi_command): Constify.
1321 * record-full.c (cmd_record_full_start): Constify.
1322 (set_record_full_command): Constify. Fix typo.
1323 (show_record_full_command): Constify.
1324 * thread.c (thread_command, thread_apply_command): Constify.
1325 * memattr.c (dummy_cmd): Constify.
1326 * value.c (function_command): Constify.
1327 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1328 * probe.c (info_probes_command): Constify.
1329 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1330 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1331 (show_thread_cmd, set_thread_default_cmd)
1332 (show_thread_default_cmd): Constify.
1333 (check_empty): Constify.
1334 * tracepoint.c (tfind_command): Constify.
1335 * cp-support.c (maint_cplus_command): Constify.
1336 * windows-tdep.c (info_w32_command): Constify.
1337 * record.c (cmd_record_start, set_record_command)
1338 (show_record_command, info_record_command, cmd_record_goto):
1340 * ravenscar-thread.c (set_ravenscar_command)
1341 (show_ravenscar_command): Constify.
1342 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1344 (add_internal_problem_command): Remove casts.
1345 * arc-tdep.c (maintenance_print_arc_command): Constify.
1346 * valprint.c (set_print, show_print, set_print_raw)
1347 (show_print_raw): Constify.
1348 * maint.c (maintenance_command, maintenance_info_command)
1349 (maintenance_print_command, maintenance_set_cmd)
1350 (maintenance_show_cmd, set_per_command_cmd)
1351 (show_per_command_cmd, maintenance_check_command): Constify.
1352 * language.c (set_check, show_check): Constify.
1353 * typeprint.c (show_print_type, set_print_type): Constify.
1354 * go32-nat.c (go32_info_dos_command): Constify.
1356 2017-10-11 Tom Tromey <tom@tromey.com>
1358 * breakpoint.c (prepare_re_set_context): Remove.
1359 (breakpoint_re_set_one): Update. Don't use cleanups.
1360 (breakpoint_re_set): Use scoped_restore, std::string, and
1361 scoped_restore_current_language.
1363 2017-10-11 Tom Tromey <tom@tromey.com>
1365 * breakpoint.c (commands_command_1): Use std::string.
1366 (cleanup_executing_breakpoints): Remove.
1367 (bpstat_do_actions_1): Use scoped_restore.
1368 (bpstat_check_watchpoint): Use std::string.
1369 (decode_static_tracepoint_spec): Likewise.
1370 (break_range_command): Likewise.
1371 (watch_command_1): Likewise.
1372 (compare_breakpoints): Change argument types.
1373 (clear_command): Use std::vector.
1374 (cleanup_executing_breakpoints): Remove.
1375 (update_global_location_list): Use unique_xmalloc_ptr.
1376 (strace_command): Remove unused declaration.
1378 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1380 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1381 * NEWS: Mention new FreeBSD/arm native configuration.
1382 * configure.host: Add arm*-*-freebsd*.
1383 * configure.nat: Likewise.
1384 * arm-fbsd-nat.c: New file.
1386 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1388 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1389 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1390 * NEWS: Mention new FreeBSD/arm target.
1391 * configure.tgt: Add arm*-*-freebsd*.
1392 * arm-fbsd-tdep.c: New file.
1393 * arm-fbsd-tdep.h: New file.
1395 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1397 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1398 `gdbarch_elfcore_write_linux_prpsinfo'.
1399 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1401 (elf_internal_linux_prpsinfo): Remove declaration.
1402 * gdbarch.h: Regenerate.
1403 * gdbarch.c: Regenerate.
1405 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1407 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1408 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1410 2017-10-11 Pedro Alves <palves@redhat.com>
1412 * breakpoint.c (reattach_breakpoints): Delete.
1413 * breakpoint.h (reattach_breakpoints): Delete.
1415 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1417 * symfile.c (registered_sym_fns): Make struct, not typedef.
1418 (DEF_VEC_O (registered_sym_fns)): Remove.
1419 (symtab_fns): Change type to std::vector.
1420 (add_symtab_fns): Adjust.
1421 (find_sym_fns): Adjust.
1423 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1425 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1426 * arc-tdep.h (arc_arch_is_em): New function.
1427 (arc_arch_is_hs): Likewise.
1429 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1431 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1432 parentheses in the declaration.
1433 (macro_lookup_inclusion): Likewise.
1434 (macro_lookup_definition): Likewise.
1435 * p-lang.h (pascal_builtin_types): Likewise.
1436 * tui/tui-data.c (tui_win_list): Likewise.
1437 * tui/tui-data.h (tui_win_list): Likewise.
1438 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1440 2017-10-11 Mark Rages <markrages@gmail.com>
1442 * target-memory.c (block_boundaries): Fix for block address not
1443 aligned on block size.
1445 2017-10-10 Pedro Alves <palves@redhat.com>
1446 Tom Tromey <tom@tromey.com>
1448 * breakpoint.c (struct captured_breakpoint_query_args)
1449 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1450 (print_breakpoint): New.
1451 * breakpoint.h (print_breakpoint): Declare.
1452 * common/common-exceptions.h (enum return_reason): Remove
1453 references to catch_exceptions.
1454 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1456 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1457 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1459 * gdbthread.h (thread_select): Declare.
1460 * mi/mi-cmd-break.c: Don't include gdb.h.
1461 (breakpoint_notify): Use print_breakpoint.
1462 * mi/mi-cmd-catch.c: Don't include gdb.h.
1463 * mi/mi-interp.c: Don't include gdb.h.
1464 (mi_print_breakpoint_for_event): New.
1465 (mi_breakpoint_created, mi_breakpoint_modified): Use
1466 mi_print_breakpoint_for_event.
1467 * mi/mi-main.c: Don't include gdb.h.
1468 (mi_cmd_thread_select): Parse the global thread ID here. Use
1469 thread_select instead of gdb_thread_select.
1470 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1471 of using gdb_list_thread_ids.
1472 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1474 (remote_fileio_request): Use TRY/CATCH instead of
1476 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1477 (symbol_file_add_from_memory_wrapper): Delete.
1478 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1479 * thread.c: Don't include gdb.h.
1480 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1481 (thread_alive): Use thread_select.
1482 (do_captured_thread_select): Delete, parts salvaged as ...
1483 (thread_select): ... this new function.
1484 (gdb_thread_select): Delete.
1486 2017-10-10 Pedro Alves <palves@redhat.com>
1487 Tom Tromey <tom@tromey.com>
1489 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1491 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1492 No longer macros. Instead ...
1493 (enum wp_check_result): They're now values of this new
1495 (watchpoint_check): Change return type to wp_check_result and
1496 parameter type to bpstat.
1497 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1498 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1499 catch_errors. Reverse logic of watchpoint_check call.
1500 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1501 pointer as parameter.
1502 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1503 * common/common-exceptions.c (throw_exception_sjlj): Update
1504 comments to avoid mentioning catch_errors.
1505 * exceptions.c (catch_errors): Delete.
1506 * exceptions.h: Update comments to avoid mentioning catch_errors.
1507 (catch_errors_ftype, catch_errors): Delete.
1508 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1509 (hook_stop_stub): Delete.
1510 (restore_selected_frame): Change return type to void, and
1511 parameter type to const frame_id &.
1512 (restore_infcall_control_state): Use TRY/CATCH instead of
1514 * main.c (captured_command_loop): Return void and remove
1515 parameter. Remove references to catch_errors.
1516 (captured_main): Use TRY/CATCH instead of catch_errors.
1517 * objc-lang.c (objc_submethod_helper_data)
1518 (find_objc_msgcall_submethod_helper): Delete.
1519 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1521 * record-full.c (record_full_message): Return void.
1522 (record_full_message_args, record_full_message_wrapper): Delete.
1523 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1524 instead of catch_errors.
1525 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1526 parameter type to int.
1527 * solib-darwin.c (open_symbol_file_object): Ditto.
1528 * solib-dsbt.c (open_symbol_file_object): Ditto.
1529 * solib-frv.c (open_symbol_file_object): Ditto.
1530 * solib-svr4.c (open_symbol_file_object): Ditto.
1531 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1532 * solib.c (update_solib_list): Use TRY/CATCH instead of
1534 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1536 * symmisc.c (struct print_symbol_args): Remove.
1537 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1538 (print_symbol): Change type.
1539 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1540 and remove parameters.
1541 (catch_errors): New.
1542 (get_windows_debug_event): Adjust.
1544 2017-10-09 Tom Tromey <tom@tromey.com>
1546 * mi/mi-main.c (free_splay_tree): Remove.
1547 (list_available_thread_groups): Use splay_tree_up.
1548 * common/gdb_splay_tree.h: New file.
1550 2017-10-09 Tom Tromey <tom@tromey.com>
1552 * mi/mi-main.c (do_nothing): Remove.
1553 (list_available_thread_groups): Update.
1555 2017-10-09 Pedro Alves <palves@redhat.com>
1557 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1558 reading registers when switching context.
1560 2017-10-09 John Baldwin <jhb@FreeBSD.org>
1562 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1563 (fbsd_convert_siginfo): Likewise.
1564 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1566 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1568 * configure.ac (try_guile_versions): Remove guile-2.2.
1569 * configure: Regenerate.
1571 2017-10-09 Tom Tromey <tom@tromey.com>
1573 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1574 (COMPILE.pre): Use $(CXX).
1576 2017-10-09 Pedro Alves <palves@redhat.com>
1578 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1580 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1581 * cp-support.h (cp_remove_params): Now returns a
1582 gdb::unique_xmalloc_ptr.
1583 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1584 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1585 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1586 returning a gdb::unique_xmalloc_ptr.
1587 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1588 * stack.c (find_frame_funname): Adjust to cp_remove_params
1589 returning a gdb::unique_xmalloc_ptr.
1591 2017-10-08 Tom Tromey <tom@tromey.com>
1593 * dwarf2read.c (dwarf2_get_dwz_file): Use
1594 gdb::unique_xmalloc_ptr.
1595 (find_slot_in_mapped_hash): Likewise.
1596 (dwarf2_physname): Likewise.
1597 (create_dwo_unit_in_dwp_v1): Use std::string.
1598 (create_dwo_unit_in_dwp_v2): Likewise.
1599 (lookup_dwo_cutu): Likewise.
1600 (inherit_abstract_dies): Use std::vector.
1601 (read_array_type): Likewise.
1602 (dwarf_decode_macros): Remove unused declaration.
1603 (unsigned_int_compar): Remove.
1604 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1605 (psymtabs_addrmap_cleanup): Remove.
1607 2017-10-08 Tom Tromey <tom@tromey.com>
1609 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1610 * frame.h (frame_cleanup_after_sniffer): Declare.
1611 (frame_prepare_for_sniffer): Return void.
1612 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1614 (frame_prepare_for_sniffer): Return void.
1616 2017-10-08 Tom Tromey <tom@tromey.com>
1618 * utils.h (make_cleanup_value_free): Remove.
1619 * utils.c (do_value_free, struct cleanup): Remove.
1620 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1622 * value.h (struct value_deleter): New.
1623 (gdb_value_up): New typedef.
1625 2017-10-08 Tom Tromey <tom@tromey.com>
1627 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1628 (make_cleanup_free_search_symbols): Remove.
1629 (search_symbols): Return std::vector.
1630 (symbol_search::compare_search_syms): Now member of
1631 symbol_search. Change arguments.
1632 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1633 (symtab_symbol_info, rbreak_command): Update.
1634 * symtab.h (struct symbol_search) <next>: Remove.
1636 (symbol_search::operator<): New function.
1637 (symbol_search::operator==): New function.
1638 (search_symbols): Remove std::vector.
1639 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1640 (symbol_search::compare_search_syms): Declare.
1642 2017-10-06 Yao Qi <yao.qi@linaro.org>
1644 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1645 arch/aarch64-insn.o.
1647 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1649 2017-10-06 Yao Qi <yao.qi@linaro.org>
1651 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1652 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1653 arch/arm-linux.o respectively.
1654 * configure.tgt: Likewise.
1656 2017-10-06 Yao Qi <yao.qi@linaro.org>
1658 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1659 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1661 2017-10-06 Pedro Alves <palves@redhat.com>
1663 * windows-nat.c: Include <algorithm>.
1665 2017-10-06 Yao Qi <yao.qi@linaro.org>
1667 * configure.tgt (i386_tobjs): New variable.
1668 (amd64_tobjs): New variable.
1669 Set $cpu_obs and $os_obs.
1671 2017-10-06 Yao Qi <yao.qi@linaro.org>
1673 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1674 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1675 (clean): Remove object files and dependency files.
1676 (distclean): Remove the directory.
1677 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1678 * configure: Re-generated.
1679 * configure.tgt: Replace amd64.o with arch/amd64.o.
1681 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1684 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1687 2017-10-05 Pedro Alves <palves@redhat.com>
1689 * linux-nat.c (linux_child_follow_fork): When following the parent
1690 and detaching the child, consult the parent thread's architecture
1691 instead of the child's.
1693 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1695 * ax.h: Do not include "doublest.h".
1696 (union agent_val): Remove.
1698 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1700 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1701 (decimal_to_string): Return std::string object.
1702 (decimal_from_string): Accept std::string object. Return bool.
1703 (decimal_from_integral, decimal_from_doublest): Remove.
1704 (decimal_from_longest): Add prototype.
1705 (decimal_from_ulongest): Likewise.
1706 (decimal_to_longest): Likewise.
1707 (decimal_from_doublest): Likewise.
1708 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1709 (MAX_DECIMAL_STRING): Move here.
1710 (decimal_to_string): Return std::string object.
1711 (decimal_from_string): Accept std::string object. Return bool.
1712 (decimal_from_integral): Remove, replace by ...
1713 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1714 (decimal_to_longest): New function.
1715 (decimal_from_floating): Remove, replace by ...
1716 (decimal_from_doublest): ... this new function.
1717 (decimal_to_doublest): Update to new decimal_to_string interface.
1719 * value.c (unpack_long): Use decimal_to_longest.
1720 * valops.c (value_cast): Use decimal_from_doublest instead of
1721 decimal_from_floating. Use decimal_from_[u]longest isntead of
1722 decimal_from_integral.
1723 * valarith.c (value_args_as_decimal): Likewise.
1724 * valprint.c (print_decimal_floating): Update to new
1725 decimal_to_string interface.
1726 * printcmd.c (printf_decfloat): Likewise.
1727 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1729 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1731 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1732 * gdbtypes.c: Include "floatformat.h".
1733 * value.c: Likewise.
1734 * m68k-tdep.c: Likewise.
1736 * findvar.c: Do not include "floatformat.h".
1737 * amd64-darwin-tdep.c: Likewise.
1738 * arm-linux-tdep.c: Likewise.
1739 * i386-darwin-tdep.c: Likewise.
1740 * i387-tdep.c: Likewise.
1741 * m68k-linux-tdep.c: Likewise.
1742 * mep-tdep.c: Likewise.
1743 * mips-tdep.c: Likewise.
1744 * nios2-tdep.c: Likewise.
1745 * s390-linux-tdep.c: Likewise.
1746 * sparc-obsd-tdep.c: Likewise.
1747 * sparc-tdep.c: Likewise.
1748 * sparc64-tdep.c: Likewise.
1749 * spu-tdep.c: Likewise.
1750 * tic6x-tdep.c: Likewise.
1751 * tilegx-tdep.c: Likewise.
1752 * vax-tdep.c: Likewise.
1753 * xstormy16-tdep.c: Likewise.
1754 * xtensa-tdep.c: Likewise.
1756 * top.c: Do not include "doublest.h".
1757 * aarch64-tdep.c: Likewise.
1758 * alpha-tdep.c: Likewise.
1759 * arm-linux-tdep.c: Likewise.
1760 * m68k-linux-tdep.c: Likewise.
1761 * tilegx-tdep.c: Likewise.
1762 * xstormy16-tdep.c: Likewise.
1764 2017-10-05 John Baldwin <jhb@FreeBSD.org>
1766 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1767 (mipsn32_fbsd_sigframe): Define.
1768 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1769 for FreeBSD/mipsn32.
1771 2017-10-05 John Baldwin <jhb@FreeBSD.org>
1773 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1776 2017-10-05 Tristan Gingold <tgingold@free.fr>
1778 * MAINTAINERS (Misc): Update my email address.
1780 2017-10-04 Pedro Alves <palves@redhat.com>
1782 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1783 it instead of target_gdbarch.
1784 (get_remote_state, get_remote_packet_size): Adjust
1785 get_remote_arch_state calls, passing down target_gdbarch
1787 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
1788 'gdbarch' and use it instead of target_gdbarch.
1789 (get_memory_packet_size): Adjust get_remote_arch_state calls,
1790 passing down target_gdbarch explicitly.
1791 (struct stop_reply) <arch>: New field.
1792 (remote_parse_stop_reply): Use the stopped thread's architecture,
1793 not the current inferior's. Save the architecture in the
1795 (process_stop_reply): Use the stop reply's architecture.
1796 (process_g_packet, remote_fetch_registers)
1797 (remote_prepare_to_store, store_registers_using_G)
1798 (remote_store_registers): Adjust get_remote_arch_state calls,
1799 using the regcache's architecture.
1800 (remote_get_trace_status): Adjust get_remote_arch_state calls,
1801 passing down target_gdbarch explicitly.
1802 * spu-multiarch.c (spu_thread_architecture): Defer to the target
1803 beneath instead of calling target_gdbarch.
1804 * target.c (default_thread_architecture): Use the specified
1805 inferior's architecture, instead of the current inferior's
1806 architecture (via target_gdbarch).
1808 2017-10-04 Pedro Alves <palves@redhat.com>
1810 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
1812 (regcache_print): Handle !target_has_registers here instead.
1814 2017-10-04 Pedro Alves <palves@redhat.com>
1816 * frame.c (create_test_frame): Delete.
1817 * frame.h (create_test_frame): Delete.
1818 * gdbarch-selftests.c: Include gdbthread.h and target.h.
1819 (class regcache_test): Delete.
1820 (test_target_has_registers, test_target_has_stack)
1821 (test_target_has_memory, test_target_prepare_to_store)
1822 (test_target_store_registers): New functions.
1823 (test_target_ops): New class.
1824 (register_to_value_test): Error out if there's already a
1825 process_stratum (or higher) target pushed. Create a fuller mock
1826 environment, with mock target_ops, inferior, address space, thread
1828 * progspace.c (struct address_space): Move to ...
1829 * progspace.h (struct address_space): ... here.
1830 * regcache.h (regcache::~regcache, regcache::raw_write)
1831 [GDB_SELF_TEST]: No longer virtual.
1833 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
1835 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
1837 2017-10-04 Pedro Alves <palves@redhat.com>
1839 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
1840 out of 'between TRY and CATCH'.
1842 2017-10-04 Pedro Alves <palves@redhat.com>
1844 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
1845 * common/common-exceptions.h (TRY): Open an outermost scope.
1846 Expand intro comment.
1848 (END_CATCH): Close the outermost scope.
1849 * completer.c (complete_line_internal): Add missing END_CATCH.
1851 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1853 * NEWS (Changes since GDB 8.0): Add entry about new
1854 'set-cwd-on-gdbserver' feature.
1855 (New remote packets): Add entry for QSetWorkingDir.
1856 * common/common-inferior.h (set_inferior_cwd): New prototype.
1857 * infcmd.c (set_inferior_cwd): Remove "static".
1858 (show_cwd_command): Expand text to include remote debugging.
1859 * remote.c: Add PACKET_QSetWorkingDir.
1860 (remote_protocol_features) <QSetWorkingDir>: New entry for
1861 PACKET_QSetWorkingDir.
1862 (extended_remote_set_inferior_cwd): New function.
1863 (extended_remote_create_inferior): Call
1864 "extended_remote_set_inferior_cwd".
1865 (_initialize_remote): Call "add_packet_config_cmd" for
1868 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1870 * NEWS (New commands): Mention "set/show cwd".
1871 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
1872 "cd" command's help text.
1873 * common/common-inferior.h (get_inferior_cwd): New prototype.
1874 * infcmd.c (inferior_cwd_scratch): New global variable.
1875 (set_inferior_cwd): New function.
1876 (get_inferior_cwd): Likewise.
1877 (set_cwd_command): Likewise.
1878 (show_cwd_command): Likewise.
1879 (_initialize_infcmd): Add "set/show cwd" commands.
1880 * inferior.h (class inferior) <cwd>: New field.
1881 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
1882 (fork_inferior): Change inferior's cwd before its execution.
1883 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
1886 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1888 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
1889 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
1890 (COMMON_OBS): Add gdb_tilde_expand.o.
1891 * common/gdb_tilde_expand.c: New file.
1892 * common/gdb_tilde_expand.h: Likewise.
1894 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
1896 * gdbarch.sh (objfile): Remove duplicate declaration.
1897 * gdbarch.h: Regenerate.
1899 2017-10-03 Tom Tromey <tom@tromey.com>
1901 * utils.c (internal_vproblem): Use string_vprintf.
1903 2017-10-03 Tom Tromey <tom@tromey.com>
1905 * printcmd.c (info_symbol_command): Use std::string.
1907 2017-10-03 Tom Tromey <tom@tromey.com>
1909 * top.c (gdb_safe_append_history): Use std::string.
1911 2017-10-03 Tom Tromey <tom@tromey.com>
1913 * event-top.c (stdin_event_handler): Update.
1914 * main.c (captured_main_1): Update.
1915 * top.h (make_delete_ui_cleanup): Remove.
1916 (struct ui): Add constructor and destructor.
1917 (new_ui, delete_ui): Remove.
1918 * top.c (make_delete_ui_cleanup): Remove.
1919 (new_ui_command): Use std::unique_ptr.
1920 (delete_ui_cleanup): Remove.
1921 (ui::ui): Rename from new_ui. Update.
1923 (ui::~ui): Rename from delete_ui. Update.
1925 2017-10-03 Tom Tromey <tom@tromey.com>
1927 * symfile.c (load_progress): Use gdb::byte_vector.
1929 2017-10-03 Tom Tromey <tom@tromey.com>
1931 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
1933 * printcmd.c (x_command): Remove unused declaration.
1934 * symfile.c (symbol_file_command): Remove unused declaration.
1936 2017-10-03 Tom Tromey <tom@tromey.com>
1938 * utils.c (internal_vproblem): Use std::string.
1939 (defaulted_query): Likewise.
1941 2017-10-03 Tom Tromey <tom@tromey.com>
1943 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
1944 * top.c (execute_command_to_string): Update.
1945 * utils.c (make_cleanup_restore_page_info): Remove.
1946 (do_restore_page_info_cleanup): Remove.
1947 (set_batch_flag_and_restore_page_info):
1949 (make_cleanup_restore_page_info): Remove.
1950 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1951 (~set_batch_flag_and_restore_page_info): New
1952 (make_cleanup_restore_uinteger): Remove.
1953 (make_cleanup_restore_integer): Remove.
1954 (struct restore_integer_closure): Remove.
1955 (restore_integer): Remove.
1956 * utils.h (struct set_batch_flag_and_restore_page_info): New
1958 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1959 (make_cleanup_restore_page_info): Remove.
1960 (make_cleanup_restore_uinteger) Remove.
1961 (make_cleanup_restore_integer) Remove.
1963 2017-10-03 Tom Tromey <tom@tromey.com>
1965 * record-full.h (record_full_gdb_operation_disable_set): Return
1966 scoped_restore_tmpl<int>.
1967 * infrun.c (adjust_pc_after_break): Update.
1968 (handle_signal_stop): Update.
1969 * record-full.c (record_full_gdb_operation_disable_set): Return
1970 scoped_restore_tmpl<int>.
1971 (record_full_wait_1, record_full_insert_breakpoint)
1972 (record_full_remove_breakpoint, record_full_save)
1973 (record_full_goto_insn): Update.
1975 2017-10-02 Tom Tromey <tom@tromey.com>
1978 * rust-lang.c (rust_val_print_str): New function.
1979 (val_print_struct): Call it.
1980 (rust_subscript): Preserve name of slice type.
1982 2017-10-02 Tom Tromey <tom@tromey.com>
1984 * rust-lang.c (rust_subscript): Handle slices in
1985 EVAL_AVOID_SIDE_EFFECTS case.
1987 2017-10-02 Tom Tromey <tom@tromey.com>
1989 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
1991 2017-10-02 Tom Tromey <tom@tromey.com>
1993 * rust-lang.h (rust_slice_type): Add "extern".
1995 2017-10-02 Tom Tromey <tom@tromey.com>
1996 Pedro Alves <palves@redhat.com>
1998 * ada-lang.h (ada_exc_info::operator<): Make const.
1999 (ada_exc_info::operator==): Make const.
2000 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2003 2017-09-29 Tom Tromey <tom@tromey.com>
2005 * target.c (read_whatever_is_readable): Change type of "result".
2007 (free_memory_read_result_vector): Remove.
2008 (read_memory_robust): Change return type. Update.
2009 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2010 bin2hex, std::string.
2011 * target.h (memory_read_result_s): Remove typedef.
2012 (free_memory_read_result_vector): Remove.
2013 (read_memory_robust): Return std::vector.
2015 2017-09-29 Tom Tromey <tom@tromey.com>
2017 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2019 2017-09-29 Tom Tromey <tom@tromey.com>
2021 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2022 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2023 operator< and operator==.
2024 (ada_exceptions_list): Return a std::vector.
2025 * ada-lang.c (ada_exc_info::operator<): Rename from
2026 compare_ada_exception_info.
2027 (ada_exc_info::operator==): New.
2028 (sort_remove_dups_ada_exceptions_list): Change type of
2030 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2031 (ada_add_global_exceptions): Likewise.
2032 (ada_exceptions_list_1): Return a std::vector.
2033 (ada_exceptions_list): Likewise.
2035 2017-09-29 Tom Tromey <tom@tromey.com>
2037 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2039 (print_one_inferior): Update.
2040 (free_vector_of_ints): Remove.
2041 (list_available_thread_groups): Change "ids" to std::set.
2042 (mi_cmd_list_thread_groups): Update.
2043 (struct collect_cores_data) <core>: Now a std::set.
2044 (collect_cores): Update.
2046 (print_one_inferior): Update.
2048 2017-09-29 Tom Tromey <tom@tromey.com>
2050 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2051 (mi_execute_async_cli_command): Likewise.
2052 (mi_cmd_trace_frame_collected): Use field_fmt.
2054 2017-09-29 Tom Tromey <tom@tromey.com>
2056 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2059 2017-09-29 Tom Tromey <tom@tromey.com>
2061 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2063 2017-09-29 Tom Tromey <tom@tromey.com>
2065 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2067 2017-09-29 Tom Tromey <tom@tromey.com>
2069 * varobj.h (varobj_gen_name): Return std::string.
2070 * varobj.c (varobj_gen_name): Return std::string.
2071 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2072 (mi_cmd_var_delete): Don't copy "name".
2074 2017-09-29 Tom Tromey <tom@tromey.com>
2076 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2077 (mi_cmd_break_insert_1): Update.
2079 2017-09-29 Tom Tromey <tom@tromey.com>
2081 * target.h (make_scoped_defer_target_commit_resume): Update.
2082 * target.c (make_scoped_defer_target_commit_resume): Rename from
2083 make_cleanup_defer_target_commit_resume. Return a
2085 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2087 2017-09-29 Tom Tromey <tom@tromey.com>
2089 * main.c (captured_main_1): Remove unused declaration.
2090 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2092 2017-09-29 Tom Tromey <tom@tromey.com>
2094 * symtab.c (search_symbols): Remove unused outer cleanup.
2095 (make_source_files_completion_list): Remove unused declaration.
2097 2017-09-29 Tom Tromey <tom@tromey.com>
2099 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2101 2017-09-29 Tom Tromey <tom@tromey.com>
2103 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2106 2017-09-29 Tom Tromey <tom@tromey.com>
2108 * complaints.c (vcomplaint): Use std::string.
2110 2017-09-29 Tom Tromey <tom@tromey.com>
2112 * tracepoint.c (trace_variable_command): Use std::string.
2113 (encode_actions_1): Remove unused declarations.
2114 (create_tsv_from_upload): Use std::string.
2116 2017-09-29 Tom Tromey <tom@tromey.com>
2118 * cp-support.c (gdb_demangle): Use std::string.
2120 2017-09-29 Tom Tromey <tom@tromey.com>
2122 * stack.c (parse_frame_specification): Use std::string
2123 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2125 2017-09-29 Tom Tromey <tom@tromey.com>
2127 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2129 2017-09-29 Tom Tromey <tom@tromey.com>
2131 * utils.c (vfprintf_maybe_filtered): Use std::string.
2132 (vfprintf_unfiltered): Likewise.
2134 2017-09-29 Tom Tromey <tom@tromey.com>
2136 * event-top.c (top_level_prompt): Return std::string.
2137 (display_gdb_prompt): Update.
2139 2017-09-29 Tom Tromey <tom@tromey.com>
2141 * unittests/common-utils-selftests.c (format): New function.
2142 (string_vprintf_tests): New function.
2143 (_initialize_common_utils_selftests): Register new tests.
2144 * common/common-utils.c (string_vprintf): New function.
2145 * common/common-utils.h (string_vprintf): Declare.
2147 2017-09-29 Pedro Alves <palves@redhat.com>
2149 * common/rsp-low.c (unpack_varlen_hex): Constify.
2150 * common/rsp-low.h (unpack_varlen_hex): Constify.
2151 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2153 * remote.c (remote_set_permissions, read_ptid)
2154 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2155 (remote_static_tracepoint_marker_at)
2156 (remote_static_tracepoint_markers_by_strid)
2157 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2158 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2159 (parse_tracepoint_definition, parse_tsv_definition)
2160 (parse_static_tracepoint_marker_definition): Constify.
2161 * tracepoint.h (parse_static_tracepoint_marker_definition)
2162 (parse_trace_status, parse_tracepoint_status)
2163 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2165 2017-09-29 Pedro Alves <palves@redhat.com>
2167 * remote.c (target_buf, target_buf_size): Delete.
2168 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2169 Use the connection's packet buffer instead.
2170 All callers adjusted.
2171 (_initialize_remote): Remove references to target_buf and
2174 2017-09-28 Pedro Alves <palves@redhat.com>
2176 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2177 unittests/common-utils-selftests.c.
2178 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2179 (COMMON_OBS): Remove utils-selftests.o.
2180 * utils-selftests.c: Move to ...
2181 * unittests/common-utils-selftests.c: ... here and rename self
2182 test to "string_printf".
2184 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2186 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2187 having NULL cus or tus.
2189 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2191 * arm-tdep.c: (convert_from_extended): Remove.
2192 (convert_to_extended): Likewise.
2193 (arm_extract_return_value): Use convert_typed_floating.
2194 (arm_store_return_value): Likewise.
2196 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2197 * sh-tdep.c: Do not include "floatformat.h".
2198 (sh_littlebyte_bigword_type): New function.
2199 (sh_register_convert_to_virtual): Use convert_typed_floating.
2200 (sh_register_convert_to_raw): Likewise.
2201 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2202 (sh64_littlebyte_bigword_type): New function.
2203 (sh64_extract_return_value): Use convert_typed_floating.
2204 (sh64_register_convert_to_virtual): Likewise.
2205 (sh64_register_convert_to_raw): Likewise.
2207 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2209 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2210 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2212 * gdbtypes.h (union type_specific): Make field floatformat hold
2213 just a single struct floatformat, not an array.
2214 (floatformat_from_type): Move here.
2215 * gdbtypes.c (floatformat_from_type): Move here. Update to
2216 changed TYPE_FLOATFORMAT definition.
2217 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2218 (recursive_dump_type): Likewise.
2219 (init_float_type): Install correct floatformat for byte order.
2220 (arch_float_type): Likewise.
2222 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2224 * gdbtypes.c (init_type): Change incoming argument from
2225 length-in-bytes to length-in-bits. Assert length is a
2226 multiple of TARGET_CHAR_BITS.
2227 (arch_type, arch_flags_type): Likewise.
2228 (init_integer_type): Update call to init_type.
2229 (init_character_type): Likewise.
2230 (init_boolean_type): Likewise.
2231 (init_float_type): Likewise.
2232 (init_decfloat_type): Likewise.
2233 (init_complex_type): Likewise.
2234 (init_pointer_type): Likewise.
2235 (objfile_type): Likewise.
2236 (arch_integer_type): Update call to arch_type.
2237 (arch_character_type): Likewise.
2238 (arch_boolean_type): Likewise.
2239 (arch_float_type): Likewise.
2240 (arch_decfloat_type): Likewise.
2241 (arch_complex_type): Likewise.
2242 (arch_pointer_type): Likewise.
2243 (gdbtypes_post_init): Likewise.
2245 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2246 (read_base_type): Likewise.
2247 * mdebugread.c (basic_type): Likewise.
2248 * stabsread.c (dbx_init_float_type): Likewise.
2249 (rs6000_builtin_type): Likewise.
2250 (read_range_type): Likewise. Also, fix call to init_integer_type
2251 with erroneous length argument.
2253 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2254 * d-lang.c (build_d_types): Likewise.
2255 * f-lang.c (build_fortran_types): Likewise.
2256 * go-lang.c (build_go_types): Likewise.
2257 * opencl-lang.c (build_opencl_types): Likewise.
2258 * jit.c (finalize_symtab): Likewise.
2259 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2260 (build_std_type_info_type): Likewise.
2261 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2262 update call to arch_flags_type.
2264 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2266 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2267 * windows-tdep.c (windows_get_tlb_type): Likewise.
2269 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2270 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2271 * m32c-tdep.c (make_types): Likewise.
2272 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2273 (rl78_psw_type): Update call to arch_flags_type.
2274 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2275 * rx-tdep.c (rx_psw_type): Likewise.
2276 (rx_fpsw_type): Likewise.
2277 * sparc-tdep.c (sparc_psr_type): Likewise.
2278 (sparc_fsr_type): Likewise.
2279 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2280 (sparc64_ccr_type): Likewise.
2281 (sparc64_fsr_type): Likewise.
2282 (sparc64_fprs_type): Likewise.
2284 2017-09-27 Tom Tromey <tom@tromey.com>
2286 * findcmd.c (find_command): Constify.
2288 2017-09-27 Tom Tromey <tom@tromey.com>
2290 * ada-tasks.c (task_command_1, task_command): Constify.
2292 2017-09-27 Tom Tromey <tom@tromey.com>
2294 * symtab.c (maintenance_print_symbol_cache)
2295 (maintenance_flush_symbol_cache)
2296 (maintenance_print_symbol_cache_statistics): Constify.
2298 2017-09-27 Tom Tromey <tom@tromey.com>
2300 * inferior.c (detach_inferior_command, kill_inferior_command)
2301 (inferior_command): Constify.
2303 2017-09-27 Tom Tromey <tom@tromey.com>
2305 * regcache.c (regcache_print, maintenance_print_registers)
2306 (maintenance_print_raw_registers)
2307 (maintenance_print_cooked_registers)
2308 (maintenance_print_register_groups)
2309 (maintenance_print_remote_registers): Constify.
2311 2017-09-27 Tom Tromey <tom@tromey.com>
2313 * printcmd.c (map_display_numbers, undisplay_command)
2314 (enable_disable_display_command, enable_display_command)
2315 (disable_display_command): Constify.
2317 2017-09-27 Tom Tromey <tom@tromey.com>
2319 * breakpoint.h (delete_command): Don't declare.
2320 * breakpoint.c (delete_command, enable_once_command)
2321 (enable_count_command, enable_delete_command, breakpoint_1)
2322 (maintenance_info_breakpoints, stopin_command, stopat_command)
2323 (delete_command, delete_trace_command, save_breakpoints)
2324 (save_breakpoints_command, save_tracepoints_command): Constify.
2326 2017-09-27 Tom Tromey <tom@tromey.com>
2328 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2329 (skip_ws, extract_identifier, macro_define_command)
2330 (macro_undef_command, macro_list_command): Constify.
2332 2017-09-27 Tom Tromey <tom@tromey.com>
2334 * infcmd.c (environment_info, set_environment_command)
2335 (unset_environment_command, path_info, info_proc_cmd_1)
2336 (info_proc_cmd_mappings, info_proc_cmd_stat)
2337 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2338 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2340 2017-09-27 Tom Tromey <tom@tromey.com>
2342 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2345 2017-09-27 Tom Tromey <tom@tromey.com>
2347 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2349 2017-09-27 Tom Tromey <tom@tromey.com>
2351 * demangle.c (demangle_command): Constify.
2353 2017-09-27 Tom Tromey <tom@tromey.com>
2355 * progspace.c (maintenance_info_program_spaces_command):
2358 2017-09-27 Tom Tromey <tom@tromey.com>
2360 * compile/compile.c (check_raw_argument, compile_file_command)
2361 (compile_code_command, compile_print_command): Constify.
2363 2017-09-27 Tom Tromey <tom@tromey.com>
2365 * reggroups.c (maintenance_print_reggroups): Constify.
2367 2017-09-27 Tom Tromey <tom@tromey.com>
2369 * dwarf2read.c (save_gdb_index_command): Constify.
2371 2017-09-27 Tom Tromey <tom@tromey.com>
2373 * stap-probe.c (info_probes_stap_command): Constify.
2375 2017-09-27 Tom Tromey <tom@tromey.com>
2377 * fork-child.c (unset_exec_wrapper_command): Constify.
2379 2017-09-27 Tom Tromey <tom@tromey.com>
2381 * btrace.c (get_uint, get_context_size, no_chunk)
2382 (maint_btrace_packet_history_cmd)
2383 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2384 (maint_info_btrace_cmd): Constify.
2386 2017-09-27 Tom Tromey <tom@tromey.com>
2388 * reverse.c (delete_bookmark_command): Constify.
2390 2017-09-27 Tom Tromey <tom@tromey.com>
2392 * remote.c (set_memory_packet_size)
2393 (set_memory_write_packet_size, show_memory_write_packet_size)
2394 (set_memory_read_packet_size, show_memory_read_packet_size)
2395 (compare_sections_command, packet_command, remote_put_command)
2396 (remote_get_command, remote_delete_command): Constify.
2398 2017-09-27 Tom Tromey <tom@tromey.com>
2400 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2401 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2402 (set_mipsfpu_auto_command): Constify.
2404 2017-09-27 Tom Tromey <tom@tromey.com>
2406 * cli/cli-cmds.h (cd_command): Constify.
2407 * cli/cli-cmds.c (cd_command): Constify.
2409 2017-09-27 Tom Tromey <tom@tromey.com>
2411 * thread.c (thread_name_command, thread_find_command): Constify.
2413 2017-09-27 Tom Tromey <tom@tromey.com>
2415 * probe.c (enable_probes_command, disable_probes_command):
2418 2017-09-27 Tom Tromey <tom@tromey.com>
2420 * symfile.c (symbol_file_command): Constify.
2421 * gdbcore.h (deprecated_file_changed_hook): Constify.
2422 * exec.c (deprecated_file_changed_hook, exec_file_command)
2423 (file_command): Constify.
2424 * defs.h (symbol_file_command): Constify.
2426 2017-09-27 Tom Tromey <tom@tromey.com>
2428 * remote-fileio.c (set_system_call_allowed)
2429 (show_system_call_allowed): Constify.
2431 2017-09-27 Tom Tromey <tom@tromey.com>
2433 * tracepoint.c (delete_trace_variable_command)
2434 (tfind_end_command, tfind_start_command, tfind_pc_command)
2435 (tfind_tracepoint_command, tfind_line_command)
2436 (tfind_range_command, tfind_outside_command): Constify.
2438 2017-09-27 Tom Tromey <tom@tromey.com>
2440 * ax-gdb.c (maint_agent_printf_command, agent_command)
2441 (agent_eval_command): Constify.
2443 2017-09-27 Tom Tromey <tom@tromey.com>
2445 * tracepoint.c (info_scope_command): Constify.
2446 * python/python.c (gdbpy_decode_line): Constify.
2447 * python/py-breakpoint.c (bppy_init): Constify.
2448 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2449 * location.h: (new_linespec_location)
2450 (string_to_event_location_basic, string_to_event_location):
2452 * location.c (new_linespec_location)
2453 (string_to_event_location_basic, string_to_event_location):
2455 * linespec.h (decode_line_with_current_source)
2456 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2457 * linespec.c (linespec_lex_to_end)
2458 (decode_line_with_current_source)
2459 (decode_line_with_last_displayed): Constify.
2460 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2462 * cli/cli-cmds.c (edit_command, list_command): Constify.
2463 * breakpoint.h (until_break_command, watch_command_wrapper)
2464 (awatch_command_wrapper, rwatch_command_wrapper)
2465 (init_ada_exception_breakpoint): Constify.
2466 * breakpoint.c (break_command_1, dprintf_command)
2467 (break_range_command, watch_command_wrapper)
2468 (rwatch_command_wrapper, awatch_command_wrapper)
2469 (until_break_command, init_ada_exception_breakpoint)
2470 (strace_marker_create_sals_from_location, trace_command)
2471 (ftrace_command, strace_command, struct tracepoint): Constify.
2472 * ax-gdb.c (agent_command_1): Constify.
2473 * ada-lang.c (ada_exception_sal): Constify.
2475 2017-09-27 Tom Tromey <tom@tromey.com>
2477 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2478 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2479 (get_context_size, no_chunk, get_insn_history_modifiers)
2480 (cmd_record_insn_history, get_call_history_modifiers)
2481 (cmd_record_call_history): Constify.
2483 2017-09-27 Tom Tromey <tom@tromey.com>
2485 * source.c (show_substitute_path_command)
2486 (unset_substitute_path_command, set_substitute_path_command):
2489 2017-09-27 Tom Tromey <tom@tromey.com>
2491 * typeprint.c (maintenance_print_type): Constify.
2492 * maint.c (maintenance_dump_me, maintenance_demangle)
2493 (maintenance_time_display, maintenance_info_sections)
2494 (maintenance_print_statistics, maintenance_deprecate)
2495 (maintenance_undeprecate): Constify.
2496 (maintenance_do_deprecate): Constify. Use std::string.
2497 (maintenance_selftest): Constify.
2498 * gdbtypes.h (maintenance_print_type): Constify.
2500 2017-09-27 Tom Tromey <tom@tromey.com>
2502 * hppa-tdep.c (unwind_command): Constify.
2504 2017-09-27 Tom Tromey <tom@tromey.com>
2506 * target-descriptions.c (unset_tdesc_filename_cmd)
2507 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2510 2017-09-27 Tom Tromey <tom@tromey.com>
2512 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2514 2017-09-27 Tom Tromey <tom@tromey.com>
2516 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2518 2017-09-27 Tom Tromey <tom@tromey.com>
2520 * tui/tui-regs.c (tui_reg_command): Constify.
2522 2017-09-27 Tom Tromey <tom@tromey.com>
2524 * skip.c (skip_file_command, skip_function_command)
2525 (skip_enable_command, skip_disable_command, skip_delete_command):
2528 2017-09-27 Tom Tromey <tom@tromey.com>
2530 * record-btrace.c (cmd_record_btrace_bts_start)
2531 (cmd_record_btrace_pt_start): Constify.
2533 2017-09-27 Tom Tromey <tom@tromey.com>
2535 * symmisc.c (maintenance_print_symbols)
2536 (maintenance_print_msymbols, maintenance_print_objfiles)
2537 (maintenance_info_symtabs, maintenance_check_symtabs)
2538 (maintenance_expand_symtabs, maintenance_info_line_tables):
2541 2017-09-27 Tom Tromey <tom@tromey.com>
2543 * top.c (new_ui_command): Constify.
2545 2017-09-27 Tom Tromey <tom@tromey.com>
2547 * symfile.c (add_symbol_file_command)
2548 (remove_symbol_file_command, list_overlays_command)
2549 (map_overlay_command, unmap_overlay_command)
2550 (overlay_auto_command, overlay_manual_command)
2551 (overlay_off_command, overlay_load_command): Constify.
2553 2017-09-27 Tom Tromey <tom@tromey.com>
2555 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2556 (info_spu_mailbox_command, info_spu_dma_command)
2557 (info_spu_proxydma_command): Constify.
2559 2017-09-27 Tom Tromey <tom@tromey.com>
2561 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2563 2017-09-27 Tom Tromey <tom@tromey.com>
2565 * cli/cli-script.c (user_defined_command): Constify.
2567 2017-09-27 Tom Tromey <tom@tromey.com>
2569 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2570 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2571 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2572 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2573 (dump_binary_value, append_binary_memory, append_binary_value):
2575 (struct dump_context) <func>: Constify.
2576 (add_dump_command): Update.
2578 2017-09-27 Tom Tromey <tom@tromey.com>
2580 * cli/cli-cmds.c (show_version, show_configuration)
2581 (source_command, show_user): Constify.
2583 2017-09-27 Tom Tromey <tom@tromey.com>
2585 * target.c (maintenance_print_target_stack): Constify.
2587 2017-09-27 Tom Tromey <tom@tromey.com>
2589 * interps.c (interpreter_exec_cmd): Constify.
2591 2017-09-27 Tom Tromey <tom@tromey.com>
2593 * record-full.c (cmd_record_full_restore): Constify.
2595 2017-09-27 Tom Tromey <tom@tromey.com>
2597 * memattr.c (enable_mem_command, disable_mem_command)
2598 (delete_mem_command): Constify.
2600 2017-09-27 Tom Tromey <tom@tromey.com>
2602 * value.c (show_convenience): Constify.
2604 2017-09-27 Tom Tromey <tom@tromey.com>
2606 * gdbcore.h (core_file_command): Update.
2607 * corefile.c (core_file_command): Constify.
2609 2017-09-27 Tom Tromey <tom@tromey.com>
2611 * user-regs.c (maintenance_print_user_registers): Constify.
2613 2017-09-27 Tom Tromey <tom@tromey.com>
2615 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2617 2017-09-27 Tom Tromey <tom@tromey.com>
2619 * cp-support.c (first_component_command): Constify.
2621 2017-09-27 Tom Tromey <tom@tromey.com>
2623 * psymtab.c (maintenance_print_psymbols)
2624 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2627 2017-09-27 Tom Tromey <tom@tromey.com>
2629 * windows-tdep.c (display_tib): Constify.
2631 2017-09-27 Tom Tromey <tom@tromey.com>
2633 * linux-fork.c (delete_checkpoint_command)
2634 (detach_checkpoint_command): Constify.
2636 2017-09-27 Tom Tromey <tom@tromey.com>
2638 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2640 2017-09-27 Tom Tromey <tom@tromey.com>
2642 * arc-tdep.c (dump_arc_instruction_command): Constify.
2644 2017-09-27 Tom Tromey <tom@tromey.com>
2646 * valprint.c (set_radix, show_radix): Constify.
2648 2017-09-27 Tom Tromey <tom@tromey.com>
2650 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2652 2017-09-27 Tom Tromey <tom@tromey.com>
2654 * command.h (not_just_help_class_command): Update.
2655 * cli/cli-decode.h (not_just_help_class_command): Update.
2656 * cli/cli-decode.c (not_just_help_class_command): Constify.
2658 2017-09-27 Tom Tromey <tom@tromey.com>
2660 * gdb_bfd.c (maintenance_info_bfds): Constify.
2662 2017-09-27 Tom Tromey <tom@tromey.com>
2664 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2666 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2667 (do_const_cfunc): New function.
2668 (cmd_cfunc_eq): New overload.
2669 (cli_user_command_p): Check do_const_cfunc.
2670 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2672 * command.h (add_cmd): Add const overload and no-function
2674 (set_cmd_cfunc): Add const overload.
2675 (cmd_const_cfunc_ftype): Declare.
2676 (cmd_cfunc_eq): Add const overload.
2677 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2678 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2681 2017-09-27 Tom Tromey <tom@tromey.com>
2683 * macroexp.c (get_next_token_for_substitution): New function.
2684 (substitute_args): Call it. Check for __VA_OPT__.
2686 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2687 Pedro Alves <palves@redhat.com>
2689 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2690 producer_is_icc_lt_14.
2691 (producer_is_icc_lt_14): New function.
2692 (check_producer): Add code for checking version of ICC.
2693 (producer_is_icc): Move to producer.c.
2694 (read_structure_type): Restrict ICC workaround to ICC<14.
2695 * producer.c: Include selftest.h.
2696 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2698 * producer.h (producer_is_icc): New declaration.
2700 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2702 * Makefile.in (SFILES): Add producer.c.
2703 (COMMON_OBS): Add producer.o
2704 * amd64-tdep.c (producer.h): Add new include.
2705 * dwarf2read.c (producer.h): Add new include.
2706 * producer.c: New file.
2707 * producer.h: New file.
2708 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2710 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2713 2017-09-26 Matthias Klose <doko@ubuntu.com>
2715 * configure.ac: Search ncursesw before ncurses.
2716 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2717 * gdb_curses.h: Include <ncursesw/ncurses.h>
2718 * config.in, configure: Regenerate.
2720 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2723 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2725 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2726 Remove i386sol2 support.
2727 * configure.nat <i386sol2>: Remove.
2728 <sol2-64>: Fold into ...
2730 Move common settings to default section.
2732 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2733 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2734 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2735 <i[34567]86-*-solaris*>: Remove.
2736 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2738 * configure.ac: Remove wctype in libw check.
2739 (_MSE_INT_H): Don't define on Solaris 7-9.
2740 <solaris*>: Remove libthread_db.so.1 check.
2741 * configure: Regenerate.
2742 * config.in: Regenerate.
2744 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2745 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2746 (gdb_ps_size_t): Remove.
2747 Use base types in users.
2748 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2750 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2752 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2755 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2756 (adi_is_addr_mapped): Likewise.
2757 (PSR_ICC): Don't redefine.
2758 (PSR_IMPL): Likewise.
2760 2017-09-25 Tom Tromey <tom@tromey.com>
2762 * regcache.c (regcache::dump): Use string_printf.
2764 2017-09-25 Tom Tromey <tom@tromey.com>
2766 * regcache.c (class regcache_invalidator): New.
2767 (struct register_to_invalidate): Remove.
2768 (make_cleanup_regcache_invalidate): Remove.
2769 (regcache::raw_write): Use regcache_invalidator.
2771 2017-09-25 Tom Tromey <tom@tromey.com>
2773 * spu-tdep.c (spu2ppu_sniffer): Update.
2774 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2775 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2777 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2778 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2779 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2780 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2781 (frame_pop): Update.
2783 2017-09-25 Tom Tromey <tom@tromey.com>
2785 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
2786 * regcache.h (regcache_xfree): Don't declare.
2787 * regcache.c (regcache_xfree): Remove.
2788 (do_regcache_xfree): Use delete.
2789 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
2790 * linux-fork.c (free_fork): Use delete.
2791 (fork_save_infrun_state): Likewise.
2792 * jit.c (jit_dealloc_cache): Use delete.
2793 * infrun.c (discard_infcall_suspend_state): Use delete.
2795 2017-09-25 Tom Tromey <tom@tromey.com>
2797 * regcache.h (regcache_xmalloc): Don't declare.
2798 (regcache_raw_set_cached_value): Update comment.
2799 * regcache.c (regcache_xmalloc): Remove.
2800 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
2801 * jit.c (jit_frame_sniffer): Use new.
2802 * frame.c (frame_save_as_regcache): Use new.
2804 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2806 * NEWS: Advertise support for guarded-storage registers on IBM z.
2808 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2810 * s390-linux-nat.c (have_regset_gs): New static variable.
2811 (s390_linux_fetch_inferior_registers): Handle guarded-storage
2812 control block and guarded-storage broadcast control regsets.
2813 (s390_read_description): Detect whether the target has
2814 guarded-storage support, return appropriate tdesc.
2815 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
2816 (features/s390x-gs-linux64.c): Likewise.
2817 (struct gdbarch_tdep) <have_gs>: New field.
2818 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
2819 (s390_gsbc_regset): New variables.
2820 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
2821 and s390_gsbc_regset, if applicable.
2822 (s390_core_read_description): Check whether core file was from a
2823 target with guarded-storage support; include appropriate regsets.
2824 (s390_gdbarch_init): Add registers for guarded-storage support.
2825 (_initialize_s390_tdep): Initialize new target descriptions that
2826 include registers for guarded-storage support.
2827 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
2828 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
2829 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
2830 (S390_NUM_REGS): Adjust macro definition.
2831 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
2832 (tdesc_s390x_gs_linux64): New declarations.
2834 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2836 * features/s390-gs-linux64.xml: New file.
2837 * features/s390-gs.xml: New file.
2838 * features/s390-gsbc.xml: New file.
2839 * features/s390x-gs-linux64.xml: New file.
2840 * features/Makefile (WHICH): Add s390-gs-linux64 and
2842 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
2843 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
2844 * features/s390-gs-linux64.c: New generated file.
2845 * features/s390x-gs-linux64.c: New file.
2846 * regformats/s390-gs-linux64.dat: New file.
2847 * regformats/s390x-gs-linux64.dat: New file.
2849 2017-09-23 Tom Tromey <tom@tromey.com>
2851 * defs.h (make_cleanup_override_quit_handler): Don't declare.
2853 2017-09-22 Tom Tromey <tom@tromey.com>
2855 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
2856 type to scoped_restore_tmpl.
2857 <scoped_input_handler>: Initialize m_quit_handler directly.
2859 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2861 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
2862 (cd_command): Likewise. Free "current_directory" before
2864 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
2865 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
2866 * top.c (gdb_dirbuf): Remove global declaration.
2867 * top.h (gdb_dirbuf): Likewise.
2869 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2871 * gnulib/aclocal.m4: Regenerate.
2872 * gnulib/config.in: Regenerate.
2873 * gnulib/configure: Regenerate.
2874 * gnulib/import/Makefile.am: Regenerate.
2875 * gnulib/import/Makefile.in: Regenerate.
2876 * gnulib/import/assure.h: New file.
2877 * gnulib/import/at-func.c: Likewise
2878 * gnulib/import/chdir-long.c: New file.
2879 * gnulib/import/chdir-long.h: New file.
2880 * gnulib/import/cloexec.c: New file.
2881 * gnulib/import/cloexec.h: New file.
2882 * gnulib/import/close.c: New file.
2883 * gnulib/import/closedir.c: New file.
2884 * gnulib/import/dirent-private.h: New file.
2885 * gnulib/import/dup-safer.c: New file.
2886 * gnulib/import/dup.c: New file.
2887 * gnulib/import/dup2.c: New file.
2888 * gnulib/import/error.c: New file.
2889 * gnulib/import/error.h: New file.
2890 * gnulib/import/exitfail.c: New file.
2891 * gnulib/import/exitfail.h: New file.
2892 * gnulib/import/fchdir.c: New file.
2893 * gnulib/import/fcntl.c: New file.
2894 * gnulib/import/fcntl.in.h: New file.
2895 * gnulib/import/fd-hook.c: New file.
2896 * gnulib/import/fd-hook.h: New file.
2897 * gnulib/import/fd-safer.c: New file.
2898 * gnulib/import/fdopendir.c: New file.
2899 * gnulib/import/filename.h: New file.
2900 * gnulib/import/filenamecat-lgpl.c: New file.
2901 * gnulib/import/filenamecat.h: New file.
2902 * gnulib/import/fstat.c: New file.
2903 * gnulib/import/fstatat.c: New file.
2904 * gnulib/import/getcwd-lgpl.c: New file.
2905 * gnulib/import/getcwd.c: New file.
2906 * gnulib/import/getdtablesize.c: New file.
2907 * gnulib/import/getlogin_r.c: New file.
2908 * gnulib/import/getprogname.c: New file.
2909 * gnulib/import/getprogname.h: New file.
2910 * gnulib/import/gettext.h: New file.
2911 * gnulib/import/glob-libc.h: New file.
2912 * gnulib/import/glob.c: New file.
2913 * gnulib/import/glob.in.h: New file.
2914 * gnulib/import/intprops.h: New file.
2915 * gnulib/import/m4/chdir-long.m4: New file.
2916 * gnulib/import/m4/close.m4: New file.
2917 * gnulib/import/m4/closedir.m4: New file.
2918 * gnulib/import/m4/d-ino.m4: New file.
2919 * gnulib/import/m4/d-type.m4: New file.
2920 * gnulib/import/m4/dup.m4: New file.
2921 * gnulib/import/m4/dup2.m4: New file.
2922 * gnulib/import/m4/error.m4: New file.
2923 * gnulib/import/m4/fchdir.m4: New file.
2924 * gnulib/import/m4/fcntl.m4: New file.
2925 * gnulib/import/m4/fcntl_h.m4: New file.
2926 * gnulib/import/m4/fdopendir.m4: New file.
2927 * gnulib/import/m4/filenamecat.m4: New file.
2928 * gnulib/import/m4/fstat.m4: New file.
2929 * gnulib/import/m4/fstatat.m4: New file.
2930 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
2931 * gnulib/import/m4/getcwd-path-max.m4: New file.
2932 * gnulib/import/m4/getcwd.m4: New file.
2933 * gnulib/import/m4/getdtablesize.m4: New file.
2934 * gnulib/import/m4/getlogin_r.m4: New file.
2935 * gnulib/import/m4/getprogname.m4: New file.
2936 * gnulib/import/m4/glob.m4: New file.
2937 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2938 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2939 * gnulib/import/m4/mempcpy.m4: New file.
2940 * gnulib/import/m4/memrchr.m4: New file.
2941 * gnulib/import/m4/mode_t.m4: New file.
2942 * gnulib/import/m4/msvc-inval.m4: New file.
2943 * gnulib/import/m4/msvc-nothrow.m4: New file.
2944 * gnulib/import/m4/open.m4: New file.
2945 * gnulib/import/m4/openat.m4: New file.
2946 * gnulib/import/m4/opendir.m4: New file.
2947 * gnulib/import/m4/readdir.m4: New file.
2948 * gnulib/import/m4/realloc.m4: New file.
2949 * gnulib/import/m4/rewinddir.m4: New file.
2950 * gnulib/import/m4/save-cwd.m4: New file.
2951 * gnulib/import/m4/strdup.m4: New file.
2952 * gnulib/import/m4/strerror.m4: New file.
2953 * gnulib/import/m4/unistd-safer.m4: New file.
2954 * gnulib/import/mempcpy.c: New file.
2955 * gnulib/import/memrchr.c: New file.
2956 * gnulib/import/msvc-inval.c: New file.
2957 * gnulib/import/msvc-inval.h: New file.
2958 * gnulib/import/msvc-nothrow.c: New file.
2959 * gnulib/import/msvc-nothrow.h: New file.
2960 * gnulib/import/open.c: New file.
2961 * gnulib/import/openat-die.c: New file.
2962 * gnulib/import/openat-priv.h: New file.
2963 * gnulib/import/openat-proc.c: New file.
2964 * gnulib/import/openat.c: New file.
2965 * gnulib/import/openat.h: New file.
2966 * gnulib/import/opendir.c: New file.
2967 * gnulib/import/pipe-safer.c: New file.
2968 * gnulib/import/readdir.c: New file.
2969 * gnulib/import/realloc.c: New file.
2970 * gnulib/import/rewinddir.c: New file.
2971 * gnulib/import/save-cwd.c: New file.
2972 * gnulib/import/save-cwd.h: New file.
2973 * gnulib/import/strdup.c: New file.
2974 * gnulib/import/strerror-override.c: New file.
2975 * gnulib/import/strerror-override.h: New file.
2976 * gnulib/import/strerror.c: New file.
2977 * gnulib/import/unistd--.h: New file.
2978 * gnulib/import/unistd-safer.h: New file.
2979 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2980 "getcwd" and "glob".
2981 * ser-tcp.c: Undefine "close" before redefining it.
2983 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2985 * guile/scm-value.c (gdbscm_value_address): Initialize address,
2988 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2990 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
2991 <sol2,sparc>: Likewise.
2992 <sol2-64,i386>: Likewise.
2994 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
2995 -Wdeprecated-declarations on *-*-solaris*.
2996 * configure: Regenerate.
2998 * procfs.c: Include "nat/inferior.h".
2999 (procfs_info_proc): Fix typo.
3001 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3003 * remote.c (vector): Include.
3004 (struct private_thread_info): Add field, thread_handle.
3005 (free_private_thread_info): Deallocate storage associated with
3007 (get_private_info_thread): Initialize `thread_handle' field.
3008 (struct thread_item): Add field, thread_handle.
3009 (clear_threads_listing_context): Deallocate storage associated
3011 (start_thread): Add support for "handle" attribute.
3012 (thread_attributes): Add "handle".
3013 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3015 (remote_update_thread_list): Update thread_handle.
3016 (remote_thread_handle_to_thread_info): New function.
3017 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3019 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3021 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3023 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3024 * python/python-internal.h (thread_object_type): Declare.
3026 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3028 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3029 (target_thread_handle_to_thread_info): Declare.
3030 * target.c (target_thread_handle_to_thread_info): New function.
3031 * target-delegates.c: Regenerate.
3032 * gdbthread.h (find_thread_by_handle): Declare.
3033 * thread.c (find_thread_by_handle): New function.
3034 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3036 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3038 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3040 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3042 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3044 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3046 2017-09-21 Yao Qi <yao.qi@linaro.org>
3048 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3051 2017-09-20 Tom Tromey <tom@tromey.com>
3053 * breakpoint.c (struct counted_command_line): Remove.
3054 (breakpoint_commands): Update.
3055 (alloc_counted_command_line, incref_counted_command_line)
3056 (decref_counted_command_line, do_cleanup_counted_command_line)
3057 (make_cleanup_decref_counted_command_line): Remove.
3058 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3059 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3060 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3061 (save_breakpoints): Update.
3062 * breakpoint.h (counted_command_line): Now a typedef to
3064 (struct breakpoint) <commands>: Now a counted_command_line.
3065 (struct bpstats) <command>: Likewise.
3067 2017-09-20 Tom Tromey <tom@tromey.com>
3069 * breakpoint.c (struct commands_info, do_map_commands_command):
3071 (commands_command_1): Update.
3072 (iterate_over_related_breakpoints): Take a function_view.
3073 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3074 (delete_command): Update.
3075 (map_breakpoint_numbers): Take a function_view.
3076 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3077 (disable_command): Update.
3078 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3079 (enable_command): Update.
3080 (struct disp_data, do_enable_breakpoint_disp)
3081 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3082 (do_map_enable_delete_breakpoint): Remove.
3083 (enable_once_command, enable_count_command, enable_delete_command)
3084 (delete_trace_variable_command): Update.
3086 2017-09-20 Tom Tromey <tom@tromey.com>
3088 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3089 (bpstat_clear): Use delete.
3090 (bpstats): New constructors.
3091 (bpstat_copy, bpstat_stop_status): Use new.
3092 (dprintf_after_condition_true): Update.
3093 * breakpoint.h (bpstats::bpstats): Add constructors.
3094 (bpstats::~bpstats): Add destructor.
3096 2017-09-20 Pedro Alves <palves@redhat.com>
3098 * eval.c (make_params): Delete, refactored as ...
3099 (class fake_method): ... this new type's ctor.
3100 (fake_method::~fake_method): New.
3101 (evaluate_subexp_standard): Use 'fake_method'.
3103 2017-09-20 Tom Tromey <tom@tromey.com>
3105 * windows-nat.c (get_windows_debug_event, windows_wait)
3106 (do_initial_windows_stuff, windows_attach): Update.
3107 * utils.c (vwarning, internal_vproblem): Update.
3108 (ui_unregister_input_event_handler_cleanup)
3109 (prepare_to_handle_input): Remove.
3110 (class scoped_input_handler): New.
3111 (defaulted_query, prompt_for_continue): Update.
3112 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3114 * top.c (undo_terminal_modifications_before_exit): Update.
3115 * target/target.h (target_terminal_init, target_terminal_inferior)
3116 (target_terminal_ours): Don't declare.
3117 (class target_terminal): New.
3118 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3119 (target_terminal_ours_for_output)
3120 (make_cleanup_restore_target_terminal): Don't declare.
3121 (target_terminal_info): Remove.
3122 * target.c (enum terminal_state, terminal_state): Remove.
3123 (target_terminal::terminal_state): Define.
3124 (target_terminal::init): Rename from target_terminal_init.
3125 (target_terminal::inferior): Rename from
3126 target_terminal_inferior.
3127 (target_terminal::ours): Rename from target_terminal_ours.
3128 (target_terminal::ours_for_output): Rename from
3129 target_terminal_ours_for_output.
3130 (target_terminal::info): New method.
3131 (cleanup_restore_target_terminal)
3132 (make_cleanup_restore_target_terminal): Remove.
3133 * solib.c (handle_solib_event): Update.
3134 * remote.c (remote_serial_quit_handler): Update.
3135 (remote_terminal_inferior, remote_wait_as): Update.
3136 * record-full.c (record_full_wait_1): Update.
3137 * nto-procfs.c (procfs_create_inferior): Update.
3138 * nat/fork-inferior.c (startup_inferior): Update.
3139 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3140 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3141 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3142 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3143 (mi_breakpoint_created, mi_breakpoint_deleted)
3144 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3145 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3146 (mi_user_selected_context_changed, report_initial_inferior):
3148 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3149 (linux_nat_terminal_inferior): Update.
3150 * infrun.c (follow_fork_inferior)
3151 (handle_vfork_child_exec_or_exit, do_target_resume)
3152 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3153 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3155 * inflow.c (child_terminal_init, info_terminal_command): Update.
3156 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3157 (attach_command): Update.
3158 * infcall.c (call_thread_fsm_should_stop): Update.
3159 * gnu-nat.c (gnu_attach): Update.
3160 * extension.c (struct active_ext_lang_state)
3161 (restore_active_ext_lang): Update.
3162 * exceptions.c (print_flush): Update.
3163 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3164 (struct quit_handler_cleanup_data, restore_quit_handler)
3165 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3167 * cp-support.c (gdb_demangle): Update.
3168 * breakpoint.c (update_inserted_breakpoint_locations)
3169 (insert_breakpoint_locations, handle_jit_event)
3170 (disable_breakpoints_in_unloaded_shlib): Update.
3171 * annotate.c (annotate_breakpoints_invalid)
3172 (annotate_frames_invalid): Update.
3174 2017-09-20 Tom Tromey <tom@tromey.com>
3176 * main.c (catch_command_errors): Rename from
3177 catch_command_errors_const.
3178 (captured_main_1): Update.
3180 2017-09-20 Pedro Alves <palves@redhat.com>
3182 * cli/cli-cmds.c (list_command): Use print_sal_location.
3183 (print_sal_location): New function.
3184 (ambiguous_line_spec): Use print_sal_location.
3185 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3186 * symtab.c (find_function_start_sal): Likewise.
3187 * symtab.h (symtab_and_line::symbol): New field.
3189 2017-09-20 Pedro Alves <palves@redhat.com>
3191 * linespec.c (minsym_found): Handle non-text minsyms.
3192 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3194 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3196 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3199 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3201 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3202 vmovups instead vmovaps.
3203 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3205 2017-09-19 John Baldwin <jhb@FreeBSD.org>
3207 * NEWS (Changes since GDB 8.0): Add starti.
3208 * infcmd.c (enum run_break): New.
3209 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3211 (run_command): Use enum run_how.
3212 (start_command): Likewise.
3213 (starti_command): New function.
3214 (RUN_ARGS_HELP): New macro.
3215 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3216 commands. Add starti command.
3218 2017-09-19 Yao Qi <yao.qi@linaro.org>
3220 * Makefile.in (monitor.o): Remove the rule.
3222 2017-09-19 Yao Qi <yao.qi@linaro.org>
3224 * annotate.h (struct annotate_arg_emitter): Use
3225 DISABLE_COPY_AND_ASSIGN.
3226 * common/refcounted-object.h (refcounted_object): Likewise.
3227 * completer.h (struct completion_result): Likewise.
3228 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3229 * filename-seen-cache.h (filename_seen_cache): Likewise.
3230 * gdbcore.h (thread_section_name): Likewise.
3231 * gdb_regex.h (compiled_regex): Likewise.
3232 * gdbthread.h (scoped_restore_current_thread): Likewise.
3233 * inferior.h (scoped_restore_current_inferior): Likewise.
3234 * jit.c (jit_reader): Likewise.
3235 * linespec.h (struct linespec_result): Likewise.
3236 * mi/mi-parse.h (struct mi_parse): Likewise.
3237 * nat/fork-inferior.c (execv_argv): Likewise.
3238 * progspace.h (scoped_restore_current_program_space): Likewise.
3239 * python/python-internal.h (class gdbpy_enter): Likewise.
3240 * regcache.h (regcache): Likewise.
3241 * target-descriptions.c (struct tdesc_reg): Likewise.
3242 (struct tdesc_type): Likewise.
3243 (struct tdesc_feature): Likewise.
3244 * ui-out.h (ui_out_emit_type): Likewise.
3246 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3248 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3249 label abort_expression.
3251 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3253 * common/buffer.c (buffer_xml_printf): Adjust.
3254 * common/xml-utils.c (xml_escape_text): Change return type to
3255 std::string, update code accordingly.
3256 * common/xml-utils.h (xml_escape_text): Change return type to
3258 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3259 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3260 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3263 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3265 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3266 (SUBDIR_UNITTESTS_OBS): Add new object file.
3267 * unittests/xml-utils-selftests.c: New file.
3269 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3271 * common/selftest.h (selftest): New struct/interface.
3272 (register_test): Add name parameter, add new overload.
3273 (run_tests): Add filter parameter.
3274 (for_each_selftest_ftype): New typedef.
3275 (for_each_selftest): New declaration.
3276 * common/selftest.c (tests): Change type to
3277 map<string, unique_ptr<selftest>>.
3278 (simple_selftest): New struct.
3279 (register_test): New function.
3280 (register_test): Add name parameter and use it.
3281 (run_tests): Add filter parameter and use it. Add prints.
3282 Adjust to vector -> map change.
3283 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3284 registering selftests.
3285 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3286 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3287 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3288 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3289 * findvar.c (_initialize_findvar): Likewise.
3290 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3291 * maint.c (maintenance_selftest): Update call to run_tests.
3292 (maintenance_info_selftests): New function.
3293 (_initialize_maint_cmds): Register "maintenance info selftests"
3294 command. Update "maintenance selftest" doc.
3295 * regcache.c (_initialize_regcache): Add names when registering
3297 * rust-exp.y (_initialize_rust_exp): Likewise.
3298 * selftest-arch.c (gdbarch_selftest): New struct.
3299 (gdbarch_tests): Remove.
3300 (register_test_foreach_arch): Add name parameter. Call
3302 (tests_with_arch): Remove, move most content to
3303 gdbarch_selftest::operator().
3304 (_initialize_selftests_foreach_arch): Remove.
3305 * selftest-arch.h (register_test_foreach_arch): Add name
3307 (run_tests_with_arch): New declaration.
3308 * utils-selftests.c (_initialize_utils_selftests): Add names
3309 when registering selftests.
3310 * utils.c (_initialize_utils): Likewise.
3311 * unittests/array-view-selftests.c
3312 (_initialize_array_view_selftests): Likewise.
3313 * unittests/environ-selftests.c (_initialize_environ_selftests):
3315 * unittests/function-view-selftests.c
3316 (_initialize_function_view_selftests): Likewise.
3317 * unittests/offset-type-selftests.c
3318 (_initialize_offset_type_selftests): Likewise.
3319 * unittests/optional-selftests.c
3320 (_initialize_optional_selftests): Likewise.
3321 * unittests/scoped_restore-selftests.c
3322 (_initialize_scoped_restore_selftests): Likewise.
3323 * NEWS: Document "maintenance selftest" and "maint info
3326 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3328 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3331 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3333 * mi/mi-main.c (mi_load_progress): Make uiout variable
3336 2017-09-15 Pedro Alves <palves@redhat.com>
3338 * compile/compile-c-types.c (convert_enum, convert_int)
3339 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3341 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3343 * dwarf2read.c (copy_string): Remove.
3344 (parse_macro_definition): Replace copy_string with savestring.
3346 2017-09-15 Yao Qi <yao.qi@linaro.org>
3348 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3350 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3352 (i[34567]86-*-linux*): Likewise.
3354 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3356 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3357 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3358 <stack>: Change type to std::vector.
3359 <stack_len, stack_allocated>: Remove.
3360 <grow_stack>: Remove.
3361 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3362 (dwarf_expr_context::~dwarf_expr_context): Remove.
3363 (dwarf_expr_context::grow_stack): Remove.
3364 (dwarf_expr_context::push): Adjust.
3365 (dwarf_expr_context::pop): Adjust.
3366 (dwarf_expr_context::fetch): Adjust.
3367 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3368 (dwarf_expr_context::stack_empty_p): Adjust.
3369 (dwarf_expr_context::execute_stack_op): Adjust.
3371 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3373 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3374 return type to bool.
3375 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3377 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3379 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3380 Change type to bool.
3381 (dwarf_stack_value) <in_stack_memory>: Likewise.
3382 (dwarf_expr_context) <push_address>: Change parameter type to
3384 <fetch_in_stack_memory>: Change return type to bool.
3385 <push>: Change parameter type to bool.
3386 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3388 (dwarf_expr_context::push_address): Likewise.
3389 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3391 (dwarf_expr_context::execute_stack_op): Adjust.
3392 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3394 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3396 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3397 (struct dwarf_expr_context) <n_pieces>: Remove.
3398 <pieces>: Change type to std::vector.
3399 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3400 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3402 (dwarf_expr_context::add_piece): Adjust.
3403 * dwarf2loc.c (struct piece_closure): Initialize fields.
3405 <pieces>: Change type to std::vector.
3406 (allocate_piece_closure): Adjust, change parameter to
3407 std::vector rvalue and std::move it to piece_closure.
3408 (rw_pieced_value): Adjust.
3409 (check_pieced_synthetic_pointer): Adjust.
3410 (indirect_synthetic_pointer): Adjust.
3411 (coerce_pieced_ref): Adjust.
3412 (free_pieced_value_closure): Adjust. Use delete to free
3414 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3415 to allocate_piece_closure.
3416 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3418 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3420 * probe.h (probe_ops_cp): Remove typedef.
3421 (DEF_VEC_P (probe_ops_cp)): Remove.
3422 (all_probe_ops): Change type to std::vector.
3423 * probe.c (info_probes_for_ops): Adjust to vector change.
3424 (probe_linespec_to_ops): Likewise.
3425 (all_probe_ops): Change type to std::vector.
3426 (_initialize_probe): Adjust to vector change.
3427 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3428 * elfread.c (elf_get_probes): Likewise.
3429 * stap-probe.c (_initialize_stap_probe): Likewise.
3431 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3433 * probe.h (struct bound_probe): Define constructors.
3434 * probe.c (bound_probe_s): Remove typedef.
3435 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3436 (collect_probes): Change return type to std::vector, remove
3438 (compare_probes): Return bool, change parameter type. Change
3439 semantic to "less than".
3440 (gen_ui_out_table_header_info): Change parameter to std::vector
3442 (exists_probe_with_pops): Likewise.
3443 (info_probes_for_ops): Update to std::vector change.
3444 (enable_probes_command): Likewise.
3445 (disable_probes_command): Likewise.
3447 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3449 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3451 * probe.c (parse_probes_in_pspace): Update.
3452 (find_probes_in_objfile): Update.
3453 (find_probe_by_pc): Update.
3454 (collect_probes): Update.
3455 (probe_any_get_probes): Update.
3456 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3457 return type to reference to std::vector.
3458 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3459 std::vector and update.
3460 (dtrace_process_dof): Likewise.
3461 (dtrace_get_probes): Likewise.
3462 * elfread.c (elf_get_probes): Change return type to std::vector,
3463 store an std::vector in bfd_data.
3464 (probe_key_free): Update to std::vector.
3465 * stap-probe.c (handle_stap_probe): Change parameter to
3466 std::vector and update.
3467 (stap_get_probes): Likewise.
3468 * symfile-debug.c (debug_sym_get_probes): Change return type to
3469 std::vector and update.
3471 2017-09-11 Tom Tromey <tom@tromey.com>
3473 * breakpoint.c (program_breakpoint_here_p): Update.
3474 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3475 from make_show_memory_breakpoints_cleanup. Return a
3476 scoped_restore_tmpl<int>.
3477 (restore_show_memory_breakpoints): Remove.
3478 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3479 * mem-break.c (memory_validate_breakpoint): Update.
3480 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3481 (ia64_memory_remove_breakpoint): Update.
3482 (ia64_breakpoint_from_pc): Update.
3483 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3484 from make_show_memory_breakpoints_cleanup.
3486 2017-09-11 Tom Tromey <tom@tromey.com>
3488 * d-namespace.c (d_lookup_symbol): Use std::string.
3489 (find_symbol_in_baseclass): Likewise.
3491 2017-09-11 Tom Tromey <tom@tromey.com>
3493 * ctf.c (ctf_start): Use std::string.
3495 2017-09-11 Tom Tromey <tom@tromey.com>
3497 * ada-lang.c (is_known_support_routine): Update.
3498 (ada_unhandled_exception_name_addr_from_raise): Update.
3499 * guile/scm-frame.c (gdbscm_frame_name): Update.
3500 * python/py-frame.c (frapy_name): Update.
3501 (frapy_function): Update.
3502 * stack.h (find_frame_funname): Update.
3503 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3504 (print_frame): Update.
3506 2017-09-11 Tom Tromey <tom@tromey.com>
3508 * findcmd.c (put_bits): Take a gdb::byte_vector.
3509 (parse_find_args): Return gdb::byte_vector. "args" now const.
3510 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3512 (find_command): Update.
3514 2017-09-11 Tom Tromey <tom@tromey.com>
3516 * cli/cli-script.c (class scoped_restore_hook_in): New.
3517 (clear_hook_in_cleanup): Remove.
3518 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3519 scoped_restore_hook_in.
3521 2017-09-11 Tom Tromey <tom@tromey.com>
3523 * cli/cli-script.c (restore_interp): Remove.
3524 (read_command_lines): Use scoped_restore_interp.
3525 * interps.c (scoped_restore_interp::set_temp): Rename from
3527 * interps.h (class scoped_restore_interp): New.
3528 (interp_set_temp): Remove.
3530 2017-09-11 Tom Tromey <tom@tromey.com>
3532 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3533 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3534 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3536 (mi_cmd_break_insert_1): Update.
3537 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3540 2017-09-11 Tom Tromey <tom@tromey.com>
3542 * demangle.c (demangle_command): Update.
3543 * breakpoint.c (disable_command): Update.
3544 (enable_command): Update.
3545 (find_location_by_number): Make "number" const. Use
3547 * cli/cli-utils.c (extract_arg): Return std::string.
3548 * probe.c (parse_probe_linespec): Update. Change types.
3549 (collect_probes): Take string arguments.
3550 (parse_probe_linespec): Likewise.
3551 (info_probes_for_ops): Update.
3552 (enable_probes_command): Update.
3553 (disable_probes_command): Update.
3554 * break-catch-sig.c (catch_signal_split_args): Update.
3555 * mi/mi-parse.c (mi_parse): Update.
3557 2017-09-11 Tom Tromey <tom@tromey.com>
3559 * language.h (language_enum): Make argument const.
3560 * language.c (language_enum): Make argument const.
3562 2017-09-11 Tom Tromey <tom@tromey.com>
3564 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3566 (skip_to_space): Rename from skip_to_space_const.
3567 * common/common-utils.c (skip_to_space): New function.
3568 (skip_to_space): Rename from skip_to_space_const.
3569 * cli/cli-utils.h (get_number): Rename from get_number_const.
3570 (extract_arg): Rename from extract_arg_const.
3571 * cli/cli-utils.c (get_number): Rename from get_number_const.
3572 (extract_arg): Rename from extract_arg_const.
3573 (number_or_range_parser::get_number): Use ::get_number.
3574 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3575 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3576 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3577 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3578 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3579 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3580 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3581 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3583 2017-09-11 Tom Tromey <tom@tromey.com>
3585 * python/python.c (do_start_initialization): Use
3586 py-event-types.def to initialize types.
3587 Define all object type structures.
3588 * python/python-internal.h: Don't declare event initialization
3590 * python/py-threadevent.c (thread_event_object_type): Don't
3592 * python/py-stopevent.c (stop_event_object_type): Don't define.
3593 * python/py-signalevent.c (signal_event_object_type): Don't
3595 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3596 (clear_objfiles_event_object_type): Don't declare or define.
3597 * python/py-infevents.c (inferior_call_pre_event_object_type)
3598 (inferior_call_post_event_object_type)
3599 (register_changed_event_object_type)
3600 (memory_changed_event_object_type): Don't declare or define.
3601 * python/py-inferior.c (new_thread_event_object_type)
3602 (new_inferior_event_object_type)
3603 (inferior_deleted_event_object_type): Don't declare or define.
3604 * python/py-exitedevent.c (exited_event_object_type): Don't
3606 * python/py-evts.c (gdbpy_initialize_py_events): Use
3608 * python/py-events.h (thread_event_object_type): Don't declare.
3609 (events_object): Use py-all-events.def.
3610 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3612 * python/py-event-types.def: New file.
3613 * python/py-continueevent.c (create_continue_event_object): Don't
3615 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3617 * python/py-all-events.def: New file.
3619 2017-09-11 Tom Tromey <tom@tromey.com>
3621 * python/py-threadevent.c (create_thread_event_object): Return
3623 * python/py-stopevent.h (create_stop_event_object)
3624 (create_breakpoint_event_object, create_signal_event_object):
3626 * python/py-stopevent.c (create_stop_event_object): Return
3628 (emit_stop_event): Update.
3629 * python/py-signalevent.c (create_signal_event_object): Return
3631 * python/py-infevents.c (create_inferior_call_event_object):
3633 * python/py-event.h (create_event_object)
3634 (create_thread_event_object): Update.
3635 * python/py-event.c (create_event_object): Return gdbpy_ref.
3636 * python/py-continueevent.c: Return gdbpy_ref.
3637 * python/py-bpevent.c (create_breakpoint_event_object): Return
3640 2017-09-11 Tom Tromey <tom@tromey.com>
3644 * python/python.c (do_start_initialization): Initialize new event
3646 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3647 (gdbpy_initialize_inferior_deleted_event)
3648 (gdbpy_initialize_new_thread_event): Declare.
3649 * python/py-threadevent.c (create_thread_event_object): Add option
3651 * python/py-inferior.c (new_thread_event_object_type)
3652 (new_inferior_event_object_type)
3653 (inferior_deleted_event_object_type): Declare.
3654 (python_new_inferior, python_inferior_deleted): New functions.
3655 (add_thread_object): Emit new_thread event.
3656 (gdbpy_initialize_inferior): Attach new functions to corresponding
3658 (new_thread, new_inferior, inferior_deleted): Define new event
3660 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3662 * python/py-events.h (events_object) <new_inferior,
3663 inferior_deleted, new_thread>: New fields.
3664 * python/py-event.h (create_thread_event_breakpoint): Add optional
3667 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3669 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3670 check current_ui instead.
3671 (internal_vproblem): Likewise.
3673 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3675 * thread.c (print_thread_info_1): Remove unnecessary calls to
3676 uiout->is_mi_like_p.
3678 2017-09-09 Tom Tromey <tom@tromey.com>
3680 * namespace.h (add_using_directive): Update.
3681 * namespace.c (add_using_directive): Change type of excludes to
3683 * dwarf2read.c (read_import_statement): Use std::vector.
3684 (read_namespace): Update.
3685 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3687 2017-09-09 Tom Tromey <tom@tromey.com>
3689 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3691 2017-09-09 Tom Tromey <tom@tromey.com>
3693 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3695 2017-09-09 Tom Tromey <tom@tromey.com>
3697 * stack.c (func_command): Use gdb::def_vector.
3699 2017-09-09 Tom Tromey <tom@tromey.com>
3701 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3702 ui_out_emit_list, ui_out_emit_tuple.
3703 (mi_cmd_var_update): Likewise.
3705 2017-09-09 Tom Tromey <tom@tromey.com>
3707 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3708 ui_out_redirect_pop.
3709 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3710 ui_out_redirect_pop.
3711 * utils.c (do_ui_out_redirect_pop)
3712 (make_cleanup_ui_out_redirect_pop): Remove.
3713 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3714 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3715 * ui-out.h (ui_out_redirect_pop): New class.
3717 2017-09-09 Tom Tromey <tom@tromey.com>
3719 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3720 (list_available_thread_groups, mi_cmd_list_thread_groups)
3721 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3722 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3725 2017-09-09 Tom Tromey <tom@tromey.com>
3727 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3730 2017-09-09 Tom Tromey <tom@tromey.com>
3732 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3733 * stack.c (print_frame): Use ui_out_emit_tuple.
3734 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3735 (info_spu_mailbox_command, info_spu_dma_command)
3736 (info_spu_proxydma_command): Likewise.
3737 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3738 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3739 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3741 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3743 2017-09-09 Tom Tromey <tom@tromey.com>
3745 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3746 (class ui_out_emit_table): Update comment.
3747 * ui-out.c (do_cleanup_table_end)
3748 (make_cleanup_ui_out_table_begin_end): Remove.
3749 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3750 (info_spu_dma_cmdlist): Likewise.
3751 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3752 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3755 2017-09-09 Tom Tromey <tom@tromey.com>
3757 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3758 ui_out_emit_list, gdb::optional.
3760 2017-09-09 John Baldwin <jhb@FreeBSD.org>
3762 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3764 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3766 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3768 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3769 * ada-exp.y: Remove _initialize_ada_exp prototype.
3770 * ada-lang.c: Remove _initialize_ada_language prototype.
3771 * ada-tasks.c: Remove _initialize_tasks prototype.
3772 * addrmap.c: Remove _initialize_addrmap prototype.
3773 * agent.c: Remove _initialize_agent prototype.
3774 * aix-thread.c: Remove _initialize_aix_thread prototype.
3775 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3776 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3777 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3779 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3780 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3781 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3782 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3784 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
3786 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
3787 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
3788 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
3789 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
3791 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
3792 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
3793 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
3794 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
3795 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3796 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
3797 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
3799 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
3801 * annotate.c: Remove _initialize_annotate prototype.
3802 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
3803 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
3804 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
3805 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
3806 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
3807 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
3808 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
3809 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
3811 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
3812 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
3813 * auto-load.c: Remove _initialize_auto_load prototype.
3814 * auxv.c: Remove _initialize_auxv prototype.
3815 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
3816 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
3817 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
3818 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
3819 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
3820 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
3822 * break-catch-throw.c: Remove _initialize_break_catch_throw
3824 * breakpoint.c: Remove _initialize_breakpoint prototype.
3825 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
3826 * btrace.c: Remove _initialize_btrace prototype.
3827 * charset.c: Remove _initialize_charset prototype.
3828 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
3829 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
3830 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
3831 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
3832 * cli/cli-script.c: Remove _initialize_cli_script prototype.
3833 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
3834 * coffread.c: Remove _initialize_coffread prototype.
3835 * compile/compile.c: Remove _initialize_compile prototype.
3836 * complaints.c: Remove _initialize_complaints prototype.
3837 * completer.c: Remove _initialize_completer prototype.
3838 * copying.awk: Remove _initialize_copying prototype.
3839 * copying.c: Regenerate.
3840 * core-regset.c: Remove _initialize_core_regset prototype.
3841 * corefile.c: Remove _initialize_core prototype.
3842 * corelow.c: Remove _initialize_corelow prototype.
3843 * cp-abi.c: Remove _initialize_cp_abi prototype.
3844 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
3845 * cp-support.c: Remove _initialize_cp_support prototype.
3846 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
3847 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
3848 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
3849 * ctf.c: Remove _initialize_ctf prototype.
3850 * d-lang.c: Remove _initialize_d_language prototype.
3851 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
3853 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
3854 * dbxread.c: Remove _initialize_dbxread prototype.
3855 * dcache.c: Remove _initialize_dcache prototype.
3856 * demangle.c: Remove _initialize_demangler prototype.
3857 * disasm-selftests.c: Remove _initialize_disasm_selftests
3859 * disasm.c: Remove _initialize_disasm prototype.
3860 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
3861 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
3862 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
3864 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
3865 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
3866 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
3867 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
3868 * elfread.c: Remove _initialize_elfread prototype.
3869 * exec.c: Remove _initialize_exec prototype.
3870 * extension.c: Remove _initialize_extension prototype.
3871 * f-lang.c: Remove _initialize_f_language prototype.
3872 * f-valprint.c: Remove _initialize_f_valprint prototype.
3873 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
3874 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
3875 * filesystem.c: Remove _initialize_filesystem prototype.
3876 * findcmd.c: Remove _initialize_mem_search prototype.
3877 * fork-child.c: Remove _initialize_fork_child prototype.
3878 * frame-base.c: Remove _initialize_frame_base prototype.
3879 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
3880 * frame.c: Remove _initialize_frame prototype.
3881 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
3882 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
3883 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
3884 * gcore.c: Remove _initialize_gcore prototype.
3885 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
3886 * gdbarch.c: Regenerate.
3887 * gdbarch.sh: Remove _initialize_gdbarch prototype.
3888 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
3889 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
3890 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
3891 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
3892 * go-lang.c: Remove _initialize_go_language prototype.
3893 * go32-nat.c: Remove _initialize_go32_nat prototype.
3894 * guile/guile.c: Remove _initialize_guile prototype.
3895 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
3896 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
3897 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
3898 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
3899 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
3900 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
3901 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
3902 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
3903 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
3904 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
3906 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
3908 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
3909 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
3910 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
3911 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
3912 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
3913 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
3914 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
3915 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
3916 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
3917 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
3918 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
3919 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
3920 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
3921 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3922 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
3923 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
3925 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
3927 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
3928 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
3929 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
3930 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
3931 * infcall.c: Remove _initialize_infcall prototype.
3932 * infcmd.c: Remove _initialize_infcmd prototype.
3933 * inferior.c: Remove _initialize_inferiors prototype.
3934 * inflow.c: Remove _initialize_inflow prototype.
3935 * infrun.c: Remove _initialize_infrun prototype.
3936 * interps.c: Remove _initialize_interpreter prototype.
3937 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
3938 * jit.c: Remove _initialize_jit prototype.
3939 * language.c: Remove _initialize_language prototype.
3940 * linux-fork.c: Remove _initialize_linux_fork prototype.
3941 * linux-nat.c: Remove _initialize_linux_nat prototype.
3942 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
3943 * linux-thread-db.c: Remove _initialize_thread_db prototype.
3944 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
3945 * m2-lang.c: Remove _initialize_m2_language prototype.
3946 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
3947 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
3948 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
3949 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
3950 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
3951 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3952 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3953 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
3954 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
3955 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
3956 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3957 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3958 * machoread.c: Remove _initialize_machoread prototype.
3959 * macrocmd.c: Remove _initialize_macrocmd prototype.
3960 * macroscope.c: Remove _initialize_macroscope prototype.
3961 * maint.c: Remove _initialize_maint_cmds prototype.
3962 * mdebugread.c: Remove _initialize_mdebugread prototype.
3963 * memattr.c: Remove _initialize_mem prototype.
3964 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
3965 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
3966 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
3967 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
3968 * mi/mi-main.c: Remove _initialize_mi_main prototype.
3969 * microblaze-linux-tdep.c: Remove
3970 _initialize_microblaze_linux_tdep prototype.
3971 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
3972 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
3973 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
3974 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
3975 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
3976 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
3977 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
3978 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
3979 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
3980 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
3981 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
3983 * mipsread.c: Remove _initialize_mipsread prototype.
3984 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
3986 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
3987 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
3988 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
3989 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
3990 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
3991 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
3993 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
3994 * nto-procfs.c: Remove _initialize_procfs prototype.
3995 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
3996 * objc-lang.c: Remove _initialize_objc_language prototype.
3997 * objfiles.c: Remove _initialize_objfiles prototype.
3998 * observer.c: Remove observer_test_first_notification_function,
3999 observer_test_second_notification_function,
4000 observer_test_third_notification_function, and
4001 _initialize_observer prototypes.
4002 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4003 * osabi.c: Remove _initialize_gdb_osabi prototype.
4004 * osdata.c: Remove _initialize_osdata prototype.
4005 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4006 * parse.c: Remove _initialize_parse prototype.
4007 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4008 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4009 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4010 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4011 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4012 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4013 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4014 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4015 * printcmd.c: Remove _initialize_printcmd prototype.
4016 * probe.c: Remove _initialize_probe prototype.
4017 * proc-api.c: Remove _initialize_proc_api prototype.
4018 * proc-events.c: Remove _initialize_proc_events prototype.
4019 * proc-service.c: Remove _initialize_proc_service prototype.
4020 * procfs.c: Remove _initialize_procfs prototype.
4021 * psymtab.c: Remove _initialize_psymtab prototype.
4022 * python/python.c: Remove _initialize_python prototype.
4023 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4024 * record-btrace.c: Remove _initialize_record_btrace prototype.
4025 * record-full.c: Remove _initialize_record_full prototype.
4026 * record.c: Remove _initialize_record prototype.
4027 * regcache.c: Remove _initialize_regcache prototype.
4028 * reggroups.c: Remove _initialize_reggroup prototype.
4029 * remote-notif.c: Remove _initialize_notif prototype.
4030 * remote-sim.c: Remove _initialize_remote_sim prototype.
4031 * remote.c: Remove _initialize_remote prototype.
4032 * reverse.c: Remove _initialize_reverse prototype.
4033 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4034 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4035 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4037 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4038 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4039 * rust-exp.y: Remove _initialize_rust_exp prototype.
4040 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4041 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4042 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4043 * score-tdep.c: Remove _initialize_score_tdep prototype.
4044 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4046 * ser-go32.c: Remove _initialize_ser_dos prototype.
4047 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4048 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4049 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4050 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4051 * serial.c: Remove _initialize_serial prototype.
4052 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4053 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4054 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4055 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4056 * skip.c: Remove _initialize_step_skip prototype.
4057 * sol-thread.c: Remove _initialize_sol_thread prototype.
4058 * solib-aix.c: Remove _initialize_solib_aix prototype.
4059 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4060 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4061 * solib-frv.c: Remove _initialize_frv_solib prototype.
4062 * solib-spu.c: Remove _initialize_spu_solib prototype.
4063 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4064 * solib-target.c: Remove _initialize_solib_target prototype.
4065 * solib.c: Remove _initialize_solib prototype.
4066 * source.c: Remove _initialize_source prototype.
4067 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4068 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4070 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4071 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4072 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4073 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4075 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4076 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4077 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4078 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4080 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4082 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4084 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4086 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4087 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4089 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4091 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4093 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4095 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4097 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4098 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4099 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4100 * stabsread.c: Remove _initialize_stabsread prototype.
4101 * stack.c: Remove _initialize_stack prototype.
4102 * stap-probe.c: Remove _initialize_stap_probe prototype.
4103 * std-regs.c: Remove _initialize_frame_reg prototype.
4104 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4105 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4106 * symfile.c: Remove _initialize_symfile prototype.
4107 * symmisc.c: Remove _initialize_symmisc prototype.
4108 * symtab.c: Remove _initialize_symtab prototype.
4109 * target-dcache.c: Remove _initialize_target_dcache prototype.
4110 * target-descriptions.c: Remove _initialize_target_descriptions
4112 * thread.c: Remove _initialize_thread prototype.
4113 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4115 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4116 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4117 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4119 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4120 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4121 * tracefile.c: Remove _initialize_tracefile prototype.
4122 * tracepoint.c: Remove _initialize_tracepoint prototype.
4123 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4124 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4125 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4126 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4127 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4128 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4129 * tui/tui.c: Remove _initialize_tui prototype.
4130 * typeprint.c: Remove _initialize_typeprint prototype.
4131 * user-regs.c: Remove _initialize_user_regs prototype.
4132 * utils.c: Remove _initialize_utils prototype.
4133 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4134 * valarith.c: Remove _initialize_valarith prototype.
4135 * valops.c: Remove _initialize_valops prototype.
4136 * valprint.c: Remove _initialize_valprint prototype.
4137 * value.c: Remove _initialize_values prototype.
4138 * varobj.c: Remove _initialize_varobj prototype.
4139 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4140 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4141 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4142 * windows-nat.c: Remove _initialize_windows_nat,
4143 _initialize_check_for_gdb_ini, and _initialize_loadable
4145 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4146 * xcoffread.c: Remove _initialize_xcoffread prototype.
4147 * xml-support.c: Remove _initialize_xml_support prototype.
4148 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4149 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4151 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4153 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4155 2017-09-08 Keith Seitz <keiths@redhat.com>
4157 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4160 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4162 * f-valprint.c (f_val_print): Remove check for one byte
4163 sized integers. Remove printing of character type.
4165 2017-09-08 Frank Penczek <frank.penczek@intel.com>
4166 Christoph Weinmann <christoph.t.weinmann@intel.com>
4167 Bernhard Heckel <bernhard.heckel@intel.com>
4169 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4170 to maintain proper indentation when printing pointers/refs.
4172 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4176 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4178 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4180 2017-09-05 Tom Tromey <tom@tromey.com>
4182 * parse.c (funcall_chain): Now a std::vector.
4183 (start_arglist, end_arglist): Simplify.
4184 (free_funcalls): Remove.
4185 (parse_exp_in_context_1): Remove cleanup.
4187 2017-09-05 Tom Tromey <tom@tromey.com>
4189 * go-exp.y (go_parse): Don't create a cleanup.
4191 2017-09-05 Tom Tromey <tom@tromey.com>
4193 * d-exp.y (PrimaryExpression): Use std::string.
4194 (d_parse): Don't create a cleanup.
4196 2017-09-05 Tom Tromey <tom@tromey.com>
4198 * utils.c (do_clear_parser_state): Remove.
4199 (make_cleanup_clear_parser_state): Remove.
4200 * p-exp.y (pascal_parse): Use scoped_restore.
4201 * m2-exp.y (m2_parse): Use scoped_restore.
4202 * f-exp.y (f_parse): Use scoped_restore.
4203 * d-exp.y (d_parse): Use scoped_restore.
4204 * c-exp.y (c_parse): Use scoped_restore.
4205 * ada-exp.y (ada_parse): Use scoped_restore.
4206 * utils.h (make_cleanup_clear_parser_state): Remove.
4208 2017-09-06 Keith Seitz <keiths@redhat.com>
4210 * dwarf2read.c (dw2_linkage_name_attr): New function.
4211 (dw2_linkage_name): New function.
4212 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4213 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4214 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4216 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4218 * config/djgpp/djconfig.sh: Correct shell portability issue.
4220 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4222 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4224 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4226 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4227 * NEWS: Mention new FreeBSD/mips native configuration.
4228 * configure.host: Add aarch64*-*-freebsd*.
4229 * configure.nat: Likewise.
4230 * aarch64-fbsd-nat.c: New file.
4232 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4234 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4235 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4236 * NEWS: Mention new FreeBSD/aarch64 target.
4237 * configure.tgt: Add aarch64*-*-freebsd*.
4238 * aarch64-fbsd-tdep.c: New file.
4239 * aarch64-fbsd-tdep.h: New file.
4241 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4243 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4245 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4247 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4250 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4252 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4255 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4257 * infrun.c (follow_exec): Call add_thread after
4258 target_find_description.
4260 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4262 * infrun.c (handle_inferior_event_1): When exec'ing, read
4263 stop_pc after follow_exec.
4265 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4267 * remote.c (process_g_packet): Update error message.
4269 2017-09-05 Yao Qi <yao.qi@linaro.org>
4271 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4274 2017-09-05 Pedro Alves <palves@redhat.com>
4276 * eval.c (eval_call, evaluate_funcall): New functions, factored
4278 (evaluate_subexp_standard): ... this.
4280 2017-09-05 Yao Qi <yao.qi@linaro.org>
4282 * amd64-tdep.c (amd64_target_description): Create target
4284 (_initialize_amd64_tdep): Don't call functions
4285 initialize_tdesc_amd64_*. Add self tests.
4286 * arch/amd64.c (amd64_create_target_description): Add parameter
4287 is_linux. Call set_tdesc_osabi if is_linux is true.
4288 * arch/amd64.h (amd64_create_target_description): Update the
4290 * arch/i386.c (i386_create_target_description): Add parameter
4291 is_linux. Call set_tdesc_osabi if is_linux is true.
4292 * arch/i386.h (i386_create_target_description): Update
4294 * configure.tgt: Add i386.o to gdb_target_obs.
4295 * features/Makefile (XMLTOC): Remove i386/*.xml.
4296 * features/i386/amd64-avx-avx512.c: Remove.
4297 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4298 * features/i386/amd64-avx-mpx.c: Remove.
4299 * features/i386/amd64-avx.c: Remove.
4300 * features/i386/amd64-mpx.c: Remove.
4301 * features/i386/amd64.c: Remove.
4302 * features/i386/i386-avx-avx512.c: Remove.
4303 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4304 * features/i386/i386-avx-mpx.c: Remove.
4305 * features/i386/i386-avx.c: Remove.
4306 * features/i386/i386-mmx.c: Remove.
4307 * features/i386/i386-mpx.c: Remove.
4308 * features/i386/i386.c: Remove.
4309 * i386-tdep.c: Don't include features/i386/i386*.c., include
4310 target-descriptions.h and arch/i386.h.
4311 (i386_target_description): Create target descriptions.
4312 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4313 functions. Do self tests.
4315 2017-09-05 Yao Qi <yao.qi@linaro.org>
4317 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4318 * features/i386/amd64-avx-avx512-linux.c: Removed.
4319 * features/i386/amd64-avx-linux.c: Removed.
4320 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4321 * features/i386/amd64-avx-mpx-linux.c: Removed.
4322 * features/i386/amd64-linux.c: Removed.
4323 * features/i386/amd64-mpx-linux.c: Removed.
4324 * features/i386/x32-avx-avx512-linux.c: Removed.
4325 * features/i386/x32-avx-linux.c: Removed.
4326 * features/i386/x32-linux.c: Removed.
4328 2017-09-05 Yao Qi <yao.qi@linaro.org>
4330 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4332 (amd64_linux_read_description): Call
4333 amd64_create_target_description.
4334 * arch/amd64.c: New file.
4335 * arch/amd64.h: New file.
4336 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4337 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4339 2017-09-05 Yao Qi <yao.qi@linaro.org>
4341 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4342 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4343 (amd64_linux_read_description): Create target descriptions.
4344 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4345 functions. Add unit tests.
4346 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4348 * features/i386/64bit-avx.c: Generated.
4349 * features/i386/64bit-avx512.c: Generated.
4350 * features/i386/64bit-core.c: Generated.
4351 * features/i386/64bit-linux.c: Generated.
4352 * features/i386/64bit-mpx.c: Generated.
4353 * features/i386/64bit-pkeys.c: Generated.
4354 * features/i386/64bit-segments.c: Generated.
4355 * features/i386/64bit-sse.c: Generated.
4356 * features/i386/x32-core.c: Generated.
4357 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4358 c files for amd64-linux and x32-linux.
4360 2017-09-05 Yao Qi <yao.qi@linaro.org>
4362 * amd64-linux-tdep.c (amd64_linux_read_description): New
4364 (amd64_linux_core_read_description): Call
4365 amd64_linux_read_description.
4366 (amd64_linux_init_abi): Likewise.
4367 (amd64_x32_linux_init_abi): Likewise.
4368 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4369 * x86-linux-nat.c (x86_linux_read_description): Call
4370 amd64_linux_read_description.
4372 2017-09-05 Yao Qi <yao.qi@linaro.org>
4374 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4377 2017-09-05 Yao Qi <yao.qi@linaro.org>
4379 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4380 * features/i386/i386-avx-avx512-linux.c: Remove.
4381 * features/i386/i386-avx-linux.c: Remove.
4382 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4383 * features/i386/i386-avx-mpx-linux.c: Remove.
4384 * features/i386/i386-linux.c: Remove.
4385 * features/i386/i386-mmx-linux.c: Remove.
4386 * features/i386/i386-mpx-linux.c: Remove.
4388 2017-09-05 Yao Qi <yao.qi@linaro.org>
4390 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4391 (SFILES): Add arch/i386.c.
4392 (HFILES_NO_SRCDIR): Add arch/i386.h.
4393 * arch/i386.c: New file.
4394 * arch/i386.h: New file.
4395 * arch/tdesc.h (allocate_target_description): Declare.
4396 (set_tdesc_architecture): Declare.
4397 (set_tdesc_osabi): Declare.
4398 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4399 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4400 include arch/i386.h.
4401 (i386_linux_read_description): Remove code and call
4402 i386_create_target_description.
4403 (set_tdesc_architecture): New function.
4404 (set_tdesc_osabi): New function.
4405 * target-descriptions.h (allocate_target_description): Remove.
4407 2017-09-05 Yao Qi <yao.qi@linaro.org>
4409 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4410 * target-descriptions.c (tdesc_create_feature): Likewise, and
4412 * features/i386/32bit-avx.c: Re-generated.
4413 * features/i386/32bit-avx512.c: Re-generated.
4414 * features/i386/32bit-core.c: Re-generated.
4415 * features/i386/32bit-linux.c: Re-generated.
4416 * features/i386/32bit-mpx.c: Re-generated.
4417 * features/i386/32bit-pkeys.c: Re-generated.
4418 * features/i386/32bit-sse.c: Re-generated.
4420 2017-09-05 Yao Qi <yao.qi@linaro.org>
4422 * regformats/regdef.h (struct reg): Override operator == and !=.
4424 2017-09-05 Yao Qi <yao.qi@linaro.org>
4426 * arch/tdesc.h: New file.
4427 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4428 * target-descriptions.c: Update comments.
4429 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4431 * features/i386/32bit-avx.c: Re-generated.
4432 * features/i386/32bit-avx512.c: Re-generated.
4433 * features/i386/32bit-core.c: Re-generated.
4434 * features/i386/32bit-linux.c: Re-generated.
4435 * features/i386/32bit-mpx.c: Re-generated.
4436 * features/i386/32bit-pkeys.c: Re-generated.
4437 * features/i386/32bit-sse.c: Re-generated.
4439 2017-09-05 Yao Qi <yao.qi@linaro.org>
4441 * regformats/regdat.sh: Update generated code.
4443 2017-09-05 Yao Qi <yao.qi@linaro.org>
4445 * regformats/regdat.sh: Adjust code order.
4447 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4449 * expprint.c (dump_subexp_body_standard): Use constant format
4450 string in fprintf_filtered call.
4452 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4454 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4456 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4458 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4460 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4462 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4464 * bsd-kvm.o: Define _KMEMUSER.
4465 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4466 * configure: Regenerate.
4468 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4470 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4471 * i386-fbsd-nat.c: Likewise.
4473 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4475 * unittests/array-view-selftests.c: Add include of <array>.
4477 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4479 * spu-tdep.c (flush_ea_cache): Add missing argument to
4480 call_function_by_hand.
4482 2017-09-04 Pedro Alves <palves@redhat.com>
4484 * NEWS (Safer support for debugging with no debug info): New.
4486 2017-09-04 Pedro Alves <palves@redhat.com>
4488 * c-exp.y (function_method, function_method_void): Add current
4489 instance flags to TYPE_INSTANCE.
4490 * dwarf2read.c (check_modifier): New.
4491 (compute_delayed_physnames): Assert that only C++ adds delayed
4492 physnames. Mark fn_fields as const/volatile depending on
4494 * eval.c (make_params): New type_instance_flags parameter. Use
4495 it as the new type's instance flags.
4496 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4497 flags element and pass it to make_params.
4498 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4499 instance flags element.
4500 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4501 * gdbtypes.h: Include "enum-flags.h".
4502 (type_instance_flags): New enum-flags type.
4503 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4504 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4505 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4506 (follow_type_instance_flags): New function.
4507 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4508 * parser-defs.h (follow_type_instance_flags): Declare.
4509 * valops.c (value_struct_elt_for_reference): const/volatile must
4512 2017-09-04 Pedro Alves <palves@redhat.com>
4514 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4515 function/method scopes; lookup the nested name as a function local
4518 2017-09-04 Pedro Alves <palves@redhat.com>
4520 (%type <voidval>): Add function_method.
4521 * c-exp.y (exp): New production for calls with no arguments.
4522 (function_method, function_method_void_or_typelist): New
4524 (exp): New production for "method()::static_var".
4525 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4526 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4527 Handle OP_FUNC_STATIC_VAR.
4528 * parse.c (operator_length_standard):
4529 Handle OP_FUNC_STATIC_VAR.
4531 2017-09-04 Pedro Alves <palves@redhat.com>
4533 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4535 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4537 * parse.c (operator_length_standard, operator_check_standard):
4539 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4541 2017-09-04 Pedro Alves <palves@redhat.com>
4543 * ax-gdb.c: Include "typeprint.h".
4544 (gen_expr_for_cast): New function.
4545 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4546 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4548 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4549 nodebug_data_symbol.
4550 * eval.c: Include "typeprint.h".
4551 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4552 Error out if symbol has unknown type.
4553 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4554 evaluate_subexp_for_cast.
4555 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4557 (evaluate_subexp_for_cast): New function.
4558 * gdbtypes.c (init_nodebug_var_type): New function.
4559 (objfile_type): Use it to initialize types of variables with no
4561 * typeprint.c (error_unknown_type): New.
4562 * typeprint.h (error_unknown_type): New declaration.
4563 * compile/compile-c-types.c (convert_type_basic): Handle
4564 TYPE_CODE_ERROR; warn and fallback to int for variables with
4567 2017-09-04 Pedro Alves <palves@redhat.com>
4569 * eval.c (evaluate_var_value): New function, factored out from ...
4570 (evaluate_subexp_standard): ... here.
4572 2017-09-04 Pedro Alves <palves@redhat.com>
4574 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4575 Remove useless assignments to 'op'.
4577 2017-09-04 Pedro Alves <palves@redhat.com>
4579 * eval.c (eval_skip_value): New function.
4580 (evaluate_subexp_standard): Use it.
4582 2017-09-04 Pedro Alves <palves@redhat.com>
4584 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4585 function name from symbol/minsym and pass it to
4586 error_call_unknown_return_type.
4588 2017-09-04 Pedro Alves <palves@redhat.com>
4590 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4591 * ax-gdb.c (gen_msym_var_ref): New function.
4592 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4593 * eval.c (evaluate_var_msym_value): New function.
4594 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4595 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4596 to call_function_by_hand.
4597 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4598 Handle OP_VAR_MSYM_VALUE.
4599 (union exp_element) <msymbol>: New field.
4600 * minsyms.h (struct type): Forward declare.
4601 (find_minsym_type_and_address): Declare.
4602 * parse.c (write_exp_elt_msym): New function.
4603 (write_exp_msymbol): Delete, refactored as ...
4604 (find_minsym_type_and_address): ... this new function.
4605 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4606 (operator_length_standard, operator_check_standard): Handle
4608 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4610 2017-09-04 Pedro Alves <palves@redhat.com>
4612 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4613 TYPE_GNU_IFUNC specially here. Throw error if return type is
4615 * ada-typeprint.c (print_func_type): Handle functions with unknown
4617 * c-typeprint.c (c_type_print_base): Handle functions and methods
4618 with unknown return type.
4619 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4620 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4621 * compile/compile-c-types.c: Include "objfiles.h".
4622 (convert_func): For functions with unknown return type, warn and
4624 * compile/compile-object-run.c (compile_object_run): Adjust call
4625 to call_function_by_hand_dummy.
4626 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4627 call_function_by_hand.
4628 * eval.c (evaluate_subexp_standard): Adjust calls to
4629 call_function_by_hand. Handle functions and methods with unknown
4630 return type. Pass expect_type to call_function_by_hand.
4631 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4633 * gcore.c (call_target_sbrk): Adjust call to
4634 call_function_by_hand.
4635 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4636 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4637 an integer address type instead of nodebug.
4638 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4639 call_function_by_hand.
4640 * infcall.c (error_call_unknown_return_type): New function.
4641 (call_function_by_hand): New "default_return_type" parameter.
4643 (call_function_by_hand_dummy): New "default_return_type"
4644 parameter. Use it instead of defaulting to int. If there's no
4645 default and the return type is unknown, throw an error. If
4646 there's a default return type, and the called function has no
4647 debug info, then assume the function is prototyped.
4648 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4649 New "default_return_type" parameter.
4650 (error_call_unknown_return_type): New declaration.
4651 * linux-fork.c (call_lseek): Cast return type of lseek.
4652 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4653 call_function_by_hand.
4654 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4655 calls to call_function_by_hand.
4656 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4658 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4659 (value_nsstring, print_object_command): Adjust calls to
4660 call_function_by_hand.
4661 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4662 functions with unknown return type.
4663 (pascal_type_print_func_varspec_suffix): New function.
4664 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4665 TYPE_CODE_METHOD>: Use it.
4666 * python/py-value.c (valpy_call): Adjust call to
4667 call_function_by_hand.
4668 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4669 call_function_by_hand.
4670 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4671 call_function_by_hand.
4672 * valops.c (value_allocate_space_in_inferior): Adjust call to
4673 call_function_by_hand.
4674 * typeprint.c (type_print_unknown_return_type): New function.
4675 * typeprint.h (type_print_unknown_return_type): New declaration.
4677 2017-09-04 Pedro Alves <palves@redhat.com>
4679 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4680 types with more than one parameter as prototyped.
4682 2017-09-04 Pedro Alves <palves@redhat.com>
4684 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4685 (disassemble_command): Use gdb_disassembly_flags instead of bare
4687 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4688 (dump_insns, do_mixed_source_and_assembly_deprecated)
4689 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4690 Use gdb_disassembly_flags instead of bare int.
4691 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4692 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4693 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4694 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4695 (enum gdb_disassembly_flag): ... values of this new enumeration.
4696 (gdb_disassembly_flags): Define.
4698 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4699 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4700 gdb_disassembly_flags instead of bare int.
4701 * record-btrace.c (btrace_insn_history)
4702 (record_btrace_insn_history, record_btrace_insn_history_range)
4703 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4704 instead of bare int.
4705 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4706 Use gdb_disassembly_flags instead of bare int.
4707 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4709 * target-delegates.c: Regenerate.
4710 * target.c (target_insn_history, target_insn_history_from)
4711 (target_insn_history_range): Use gdb_disassembly_flags instead of
4713 * target.h: Include "disasm.h".
4714 (struct target_ops) <to_insn_history, to_insn_history_from,
4715 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4717 (target_insn_history, target_insn_history_from)
4718 (target_insn_history_range): Use gdb_disassembly_flags instead of
4721 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4723 * cli/cli-script.c (build_command_line): For if/while commands,
4724 check whether args is empty.
4726 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4728 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4729 (enum command_control_type): Likewise.
4730 (struct command_line): Likewise.
4731 (free_command_lines): Likewise.
4732 (struct command_lines_deleter): Likewise.
4733 (command_line_up): Likewise.
4734 (read_command_lines): Likewise.
4735 (read_command_lines_1): Likewise.
4736 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4737 (enum command_control_type): Likewise.
4738 (struct command_line): Likewise.
4739 (free_command_lines): Likewise.
4740 (struct command_lines_deleter): Likewise.
4741 (command_line_up): Likewise.
4742 (read_command_lines): Likewise.
4743 (read_command_lines_1): Likewise.
4744 * breakpoint.h: Include cli/cli-script.h.
4745 * extension-priv.h: Likewise.
4746 * gdbcmd.h: Likewise.
4748 2017-09-04 Pedro Alves <palves@redhat.com>
4750 * ada-lang.c (is_known_support_routine): Move sal declaration to
4751 where it is initialized.
4752 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4753 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4754 (clear_command, update_static_tracepoint): Remove init_sal
4755 references. Move declarations closer to initializations.
4756 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4758 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4759 references. Move sal declarations closer to initializations.
4760 * frame.c (find_frame_sal): Return a symtab_and_line via function
4761 return instead of output parameter. Remove init_sal references.
4762 * frame.h (find_frame_sal): Return a symtab_and_line via function
4763 return instead of output parameter.
4764 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4765 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4767 (gdbscm_find_pc_line): Remove init_sal reference.
4768 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4769 references. Move declarations closer to initializations.
4770 * infcmd.c (set_step_frame): Update. Move declarations closer to
4772 (finish_backward): Remove init_sal references. Move declarations
4773 closer to initializations.
4774 * infrun.c (process_event_stop_test, handle_step_into_function)
4775 (insert_hp_step_resume_breakpoint_at_frame)
4776 (insert_step_resume_breakpoint_at_caller): Likewise.
4777 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4778 (symbol_to_sal): Likewise.
4779 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4780 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4781 to its initialization.
4782 * reverse.c (save_bookmark_command): Use new/delete. Remove
4783 init_sal references. Move declarations closer to initializations.
4784 * source.c (get_current_source_symtab_and_line): Remove brace
4786 (set_current_source_symtab_and_line): Now takes the sal by const
4787 reference. Remove brace initialization.
4788 (line_info): Remove init_sal reference.
4789 * source.h (set_current_source_symtab_and_line): Now takes a
4790 symtab_and_line via const reference.
4791 * stack.c (set_current_sal_from_frame): Adjust.
4792 (print_frame_info): Adjust.
4793 (get_last_displayed_sal): Return the sal via function return
4794 instead of via output parameter. Simplify.
4795 (frame_info): Adjust.
4796 * stack.h (get_last_displayed_sal): Return the sal via function
4797 return instead of via output parameter.
4798 * symtab.c (init_sal): Delete.
4799 (find_pc_sect_line): Remove init_sal references. Move
4800 declarations closer to initializations.
4801 (find_function_start_sal): Remove init_sal references. Move
4802 declarations closer to initializations.
4803 * symtab.h (struct symtab_and_line): In-class initialize all
4805 * tracepoint.c (set_traceframe_context)
4806 (print_one_static_tracepoint_marker): Remove init_sal references.
4807 Move declarations closer to initializations.
4808 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
4809 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
4810 declarations closer to initializations.
4811 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
4812 init_sal references. Adjust.
4814 2017-09-04 Pedro Alves <palves@redhat.com>
4816 * ax-gdb.c (agent_command_1): Use range-for.
4817 * break-catch-throw.c (re_set_exception_catchpoint): Update.
4818 * breakpoint.c: Include "common/array-view.h".
4819 (init_breakpoint_sal, create_breakpoint_sal): Change sals
4820 parameter from struct symtabs_and_lines to
4821 array_view<symtab_and_line>. Adjust. Use range-for. Update.
4822 (breakpoint_sals_to_pc): Change sals parameter from struct
4823 symtabs_and_lines to std::vector reference.
4824 (check_fast_tracepoint_sals): Change sals parameter from struct
4825 symtabs_and_lines to std::array_view. Use range-for.
4826 (decode_static_tracepoint_spec): Return a std::vector instead of
4827 symtabs_and_lines. Update.
4828 (create_breakpoint): Update.
4829 (break_range_command, until_break_command, clear_command): Update.
4830 (base_breakpoint_decode_location, bkpt_decode_location)
4831 (bkpt_probe_create_sals_from_location)
4832 (bkpt_probe_decode_location, tracepoint_decode_location)
4833 (tracepoint_probe_decode_location)
4834 (strace_marker_create_sals_from_location): Return a std::vector
4835 instead of symtabs_and_lines.
4836 (strace_marker_create_breakpoints_sal): Update.
4837 (strace_marker_decode_location): Return a std::vector instead of
4838 symtabs_and_lines. Update.
4839 (update_breakpoint_locations): Change struct symtabs_and_lines
4840 parameters to gdb::array_view. Adjust.
4841 (location_to_sals): Return a std::vector instead of
4842 symtabs_and_lines. Update.
4843 (breakpoint_re_set_default): Use std::vector instead of struct
4845 (decode_location_default): Return a std::vector instead of
4846 symtabs_and_lines. Update.
4847 * breakpoint.h: Include "common/array-view.h".
4848 (struct breakpoint_ops) <decode_location>: Now returns a
4849 std::vector instead of returning a symtabs_and_lines via output
4851 (update_breakpoint_locations): Change sals parameters to use
4853 * cli/cli-cmds.c (edit_command, list_command): Update to use
4854 std::vector and gdb::array_view.
4855 (ambiguous_line_spec): Adjust to use gdb::array_view and
4857 (compare_symtabs): Rename to ...
4858 (cmp_symtabs): ... this. Change parameters to symtab_and_line
4859 const reference and adjust.
4860 (filter_sals): Rewrite using std::vector and standard algorithms.
4861 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
4862 (jump_command): Update to use std::vector.
4863 * linespec.c (struct linespec_state) <canonical_names>: Update
4865 (add_sal_to_sals_basic): Delete.
4866 (add_sal_to_sals, filter_results, convert_results_to_lsals)
4867 (decode_line_2, create_sals_line_offset)
4868 (convert_address_location_to_sals, convert_linespec_to_sals)
4869 (convert_explicit_location_to_sals, parse_linespec)
4870 (event_location_to_sals, decode_line_full, decode_line_1)
4871 (decode_line_with_current_source)
4872 (decode_line_with_last_displayed, decode_objc)
4873 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
4874 (linespec_result::~linespec_result): Adjust to use std::vector
4875 instead of symtabs_and_lines.
4876 * linespec.h (linespec_sals::sals): Now a std::vector.
4877 (struct linespec_result): Use std::vector, bool, and in-class
4879 (decode_line_1, decode_line_with_current_source)
4880 (decode_line_with_last_displayed): Return std::vector.
4881 * macrocmd.c (info_macros_command): Use std::vector.
4882 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
4883 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
4885 * probe.h (parse_probes): Return a std::vector.
4886 * python/python.c (gdbpy_decode_line): Use std::vector and
4888 * source.c (select_source_symtab, line_info): Use std::vector.
4889 * stack.c (func_command): Use std::vector.
4890 * symtab.h (struct symtabs_and_lines): Delete.
4891 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
4893 2017-09-04 Pedro Alves <palves@redhat.com>
4895 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4896 unittests/array-view-selftests.c.
4897 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
4898 * common/array-view.h: New file.
4899 * unittests/array-view-selftests.c: New file.
4901 2017-09-04 Pedro Alves <palves@redhat.com>
4903 * cli/cli-cmds.c (edit_command): Pass message to
4904 ambiguous_line_spec.
4905 (list_command): Pass message to ambiguous_line_spec. Say
4906 "first"/"last" instead of "start" and "end" to be consistent with
4908 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
4909 them to print formatted message.
4911 2017-09-04 Pedro Alves <palves@redhat.com>
4913 * btrace.c (ftrace_add_pt): Pass btrace_insn to
4914 ftrace_update_insns by reference instead of pointer.
4916 2017-09-04 Yao Qi <yao.qi@linaro.org>
4918 * i386-go32-tdep.c: Include x86-xstate.h.
4919 (i386_go32_init_abi): Call i386_target_description.
4920 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
4921 if xcr0 is X86_XSTATE_X87_MASK.
4922 * i386-tdep.h (tdesc_i386): Remove the declaration.
4923 (tdesc_i386_mmx): Likewise.
4925 2017-09-04 Yao Qi <yao.qi@linaro.org>
4927 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
4928 X86_XSTATE_SSE_MASK instead of 0.
4930 2017-09-04 Yao Qi <yao.qi@linaro.org>
4932 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
4933 i386_target_description.
4934 * i386-fbsd-nat.c (i386fbsd_read_description): Call
4935 i386_target_description.
4936 * i386-tdep.c (i386_gdbarch_init): Likewise.
4938 2017-09-04 Yao Qi <yao.qi@linaro.org>
4940 * amd64-darwin-tdep.c: Include "x86-xstate.h".
4941 (x86_darwin_init_abi_64): Call amd64_target_description.
4942 * amd64-dicos-tdep.c: Likewise.
4943 * amd64-fbsd-nat.c: Likewise.
4944 * amd64-fbsd-tdep.c: Likewise.
4945 * amd64-nbsd-tdep.c: Likewise.
4946 * amd64-obsd-tdep.c: Likewise.
4947 * amd64-sol2-tdep.c: Likewise.
4948 * amd64-windows-tdep.c: Likewise.
4949 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
4951 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4953 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
4954 (btrace_function) <insn>: Change type to use std::vector.
4955 * btrace.c (ftrace_debug, ftrace_call_num_insn,
4956 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
4957 ftrace_update_insns, ftrace_compute_global_level_offset,
4958 btrace_stitch_bts, btrace_clear, btrace_insn_get,
4959 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
4960 change to std::vector.
4961 (ftrace_update_insns): Adjust to change to std::vector, change
4962 type of INSN parameter.
4963 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
4964 * record-btrace.c (btrace_call_history_insn_range,
4965 btrace_compute_src_line_range,
4966 record_btrace_frame_prev_register): Adjust to change to
4968 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
4969 to change to std::vector.
4971 2017-09-03 Tom Tromey <tom@tromey.com>
4973 * corefile.c (reopen_exec_file): Use std::string.
4975 2017-09-03 Tom Tromey <tom@tromey.com>
4977 * compile/compile.c (compile_register_name_mangled): Return
4979 * compile/compile-loc2c.c (pushf_register_address): Update.
4980 (pushf_register): Update.
4981 * compile/compile-c-types.c (convert_array): Update.
4982 * compile/compile-c-symbols.c (generate_vla_size): Update.
4983 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
4984 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
4985 (convert_one_symbol): Update.
4986 (generate_c_for_for_one_variable): Update.
4987 * compile/compile-c-support.c (c_get_range_decl_name): Return a
4989 (generate_register_struct): Update.
4990 * compile/compile-internal.h (c_get_range_decl_name): Return a
4992 (compile_register_name_mangled): Return std::string.
4994 2017-09-03 Tom Tromey <tom@tromey.com>
4996 * utils.c (perror_string): Return a std::string.
4997 (throw_perror_with_name, perror_warning_with_name): Update.
4999 2017-09-03 Tom Tromey <tom@tromey.com>
5001 * demangle.c (demangle_command): Use std::string,
5004 2017-09-03 Tom Tromey <tom@tromey.com>
5006 * cli/cli-setshow.c (do_set_command): Use std::string.
5008 2017-09-03 Tom Tromey <tom@tromey.com>
5010 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5012 2017-09-03 Tom Tromey <tom@tromey.com>
5014 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5016 2017-09-03 Tom Tromey <tom@tromey.com>
5018 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5019 gdb::unique_xmalloc_ptr.
5021 2017-09-03 Tom Tromey <tom@tromey.com>
5023 * thread.c (print_thread_info_1): Use string_printf.
5024 (thread_apply_command, thread_apply_all_command): Use
5027 2017-09-03 Tom Tromey <tom@tromey.com>
5029 * valprint.c (val_print_string): Update.
5030 * gdbcore.h (memory_error_message): Return std::string.
5031 * corefile.c (memory_error_message): Return std::string.
5032 (memory_error): Update.
5033 * breakpoint.c (insert_bp_location): Update.
5035 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5037 * target/waitstatus.h (target_waitstatus_to_string): Change
5038 return type to std::string.
5039 * target/waitstatus.c (target_waitstatus_to_string): Return
5041 * target.h (target_waitstatus_to_string): Remove declaration.
5042 * infrun.c (resume, clear_proceed_status_thread,
5043 print_target_wait_results, do_target_wait, save_waitstatus,
5044 stop_all_threads): Adjust.
5045 * record-btrace.c (record_btrace_wait): Adjust.
5047 (target_debug_print_struct_target_waitstatus_p): Adjust.
5049 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5052 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5055 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5057 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5058 for setting/unsetting environment variables on the remote target.
5059 (New remote packets): Add entries for QEnvironmentHexEncoded,
5060 QEnvironmentUnset and QEnvironmentReset.
5061 * common/environ.c (gdb_environ::operator=): Extend method to
5062 handle m_user_set_env_list and m_user_unset_env_list.
5063 (gdb_environ::clear): Likewise.
5064 (match_var_in_string): Change type of first parameter from 'char
5065 *' to 'const char *'.
5066 (gdb_environ::set): Extend method to handle
5067 m_user_set_env_list and m_user_unset_env_list.
5068 (gdb_environ::unset): Likewise.
5069 (gdb_environ::clear_user_set_env): New method.
5070 (gdb_environ::user_set_envp): Likewise.
5071 (gdb_environ::user_unset_envp): Likewise.
5072 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5073 m_user_unset_env_list on move constructor/assignment.
5074 (unset): Add new default parameter 'update_unset_list = true'.
5075 (clear_user_set_env): New method.
5076 (user_set_envp): Likewise.
5077 (user_unset_envp): Likewise.
5078 (m_user_set_env_list): New std::set.
5079 (m_user_unset_env_list): Likewise.
5080 * common/rsp-low.c (hex2str): New function.
5081 (bin2hex): New overload for bin2hex function.
5082 * common/rsp-low.c (hex2str): New prototype.
5083 (str2hex): New overload prototype.
5084 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5085 QEnvironmentUnset and QEnvironmentReset.
5086 (remote_protocol_features): Add QEnvironmentHexEncoded,
5087 QEnvironmentUnset and QEnvironmentReset packets.
5088 (send_environment_packet): New function.
5089 (extended_remote_environment_support): Likewise.
5090 (extended_remote_create_inferior): Call
5091 extended_remote_environment_support.
5092 (_initialize_remote): Add QEnvironmentHexEncoded,
5093 QEnvironmentUnset and QEnvironmentReset packet configs.
5094 * unittests/environ-selftests.c (gdb_selftest_env_var):
5096 (test_vector_initialization): New function.
5097 (test_init_from_host_environ): Likewise.
5098 (test_reinit_from_host_environ): Likewise.
5099 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5101 (test_unset_set_empty_vector): Likewise.
5102 (test_vector_clear): Likewise.
5103 (test_std_move): Likewise.
5104 (test_move_constructor):
5105 (test_self_move): Likewise.
5106 (test_set_unset_reset): Likewise.
5107 (run_tests): Rewrite in terms of the functions above.
5109 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
5111 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5112 (adi_available): Use a temp variable of type CORE_ADDR as argument
5113 3 when calling target_auxv_search.
5114 (adi_normalize_address): Use masks and xor operators to calculate
5116 (adi_read_versions, adi_write_versions, adi_print_versions)
5117 (do_examine, do_assign): Use paddress.
5119 2017-08-29 John Baldwin <jhb@FreeBSD.org>
5121 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5122 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5123 out of loop and add supply of FIR.
5124 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5127 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5130 * cli/cli-script.c (define_command): Don't convert command name
5133 2017-08-25 Joel Brobecker <brobecker@adacore.com>
5135 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5136 Update all callers accordingly. Remove all code blocks handling
5137 the case where DISPP is not NULL.
5139 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5142 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5143 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5144 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5146 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5148 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5149 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5150 (read_comp_units_from_section): New parameter abbrev_section, use
5151 read_and_check_comp_unit_head, allocate signatured_type if needed.
5152 (create_all_comp_units): Update read_comp_units_from_section caller.
5154 2017-08-23 Pedro Alves <palves@redhat.com>
5157 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5158 to null_ptid and switch to thread without reading the registers
5159 after adding the inferior.
5161 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5163 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5165 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5166 (compile_to_object): Implement compile_gcc.
5167 (_initialize_compile): Install "set compile-gcc". Initialize
5170 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5172 * compile/compile.c (compile_to_object): Conditionally call
5173 set_verbose. Conditionally call compile or compile_v0.
5175 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
5177 * sparc64-tdep.h: (adi_normalize_address): New export.
5178 * sparc-nat.h: (open_adi_tag_fd): New export.
5179 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5180 * sparc64-linux-tdep.c:
5181 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5182 (sparc64_linux_handle_segmentation_fault): New function.
5183 (sparc64_linux_init_abi): Register
5184 sparc64_linux_handle_segmentation_fault
5185 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5186 (sparc64_addr_bits_remove): New function.
5187 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5188 (MAX_PROC_NAME_SIZE): New macro.
5189 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5190 (sparc64adilist): New variable.
5191 (adi_proc_list): New variable.
5192 (find_adi_info): New function.
5193 (add_adi_info): New function.
5194 (get_adi_info_proc): New function.
5195 (get_adi_info): New function.
5196 (info_adi_command): New function.
5197 (read_maps_entry): New function.
5198 (adi_available): New function.
5199 (adi_normalize_address): New function.
5200 (adi_align_address): New function.
5201 (adi_convert_byte_count): New function.
5202 (adi_tag_fd): New function.
5203 (adi_is_addr_mapped): New function.
5204 (adi_read_versions): New function.
5205 (adi_write_versions): New function.
5206 (adi_print_versions): New function.
5207 (do_examine): New function.
5208 (do_assign): New function.
5209 (adi_examine_command): New function.
5210 (adi_assign_command): New function.
5211 (_initialize_sparc64_adi_tdep): New function.
5213 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5215 * breakpoint.c (breakpoints_info): Rename to ...
5216 (info_breakpoints_command): ... this.
5217 (watchpoints_info): Rename to ...
5218 (info_watchpoints_command): ... this.
5219 (tracepoints_info): Rename to ...
5220 (info_tracepoints_command): ... this.
5221 (_initialize_breakpoint): Adjust.
5222 * dcache.c (dcache_info): Rename to ...
5223 (info_display_command): ... this.
5224 (_initialize_dcache): Adjust.
5225 * frame.h (args_info): Rename to ...
5226 (info_args_command): ... this.
5227 (locals_info): Rename to ...
5228 (info_locals_command): ... this.
5229 * infcmd.c (nofp_registers_info): Rename to ...
5230 (info_registers_command): ... this.
5231 (float_info): Rename to ...
5232 (info_float_command): ... this.
5233 (program_info): Rename to ...
5234 (info_program_command): ... this.
5235 (all_registers_info): Rename to ...
5236 (info_all_registers_command): ... this.
5237 (vector_info): Rename to ...
5238 (info_vector_command): ... this.
5239 (float_info): Rename to ...
5240 (info_float_command): ... this.
5241 (_initialize_infcmd): Adjust.
5242 * inferior.h (term_info): Rename to ...
5243 (info_terminal_command): ... this.
5244 * inflow.c (term_info): Rename to ...
5245 (info_terminal_command): ... this.
5246 (_initialize_inflow): Adjust.
5247 * infrun.c (signals_info): Rename to ...
5248 (info_signals_command): ... this.
5249 (_initialize_infrun): Adjust.
5250 * objc-lang.c (classes_info): Rename to ...
5251 (info_classes_command): ... this.
5252 (selectors_info): Rename to ...
5253 (info_selectors_command): ... this.
5254 (_initialize_objc_language): Adjust.
5255 * printcmd.c (sym_info): Rename to ...
5256 (info_symbol_command): ... this.
5257 (address_info): Rename to ...
5258 (info_address_command): ... this.
5259 (display_info): Rename to ...
5260 (info_display_command): ... this.
5261 (_initialize_printcmd): Adjust.
5262 * reverse.c (bookmarks_info): Rename to ...
5263 (info_breakpoints_command): ... this.
5264 (_initialize_reverse): Adjust.
5265 * ser-go32.c (dos_info): Rename to ...
5266 (info_serial_command): ... this.
5267 (_initialize_ser_dos): Adjust.
5268 * skip.c (skip_info): Rename to ...
5269 (info_skip_command): ... this.
5270 (_initialize_step_skip): Adjust.
5271 * source.c (line_info): Rename to ...
5272 (info_line_command): ... this.
5273 (source_info): Rename to ...
5274 (info_source_command)
5275 * stack.c (frame_info): Rename to ...
5276 (info_frame_command): ... this.
5277 (locals_info): Rename to ...
5278 (info_locals_command): ... this.
5279 (args_info): Rename to ...
5280 (info_args_command): ... this.
5281 (_initialize_stack): Adjust.
5282 * symtab.c (sources_info): Rename to ...
5283 (info_sources_command): ... this.
5284 (variables_info): Rename to ...
5285 (info_variables_command): ... this.
5286 (functions_info): Rename to ...
5287 (info_functions_command): ... this.
5288 (types_info): Rename to ...
5289 (info_types_command): ... this.
5290 (_initialize_symtab): Adjust.
5291 * target.c (target_info): Rename to ...
5292 (info_target_command): ... this.
5293 (initialize_targets): Adjust.
5294 * tracepoint.c (tvariables_info): Rename to ...
5295 (info_tvariables_command): ... this.
5296 (scope_info): Rename to ...
5297 (info_scope_command): ... this.
5298 (trace_dump_actions): Adjust.
5299 (_initialize_tracepoint): Adjust.
5301 2017-08-22 Tom Tromey <tom@tromey.com>
5303 * breakpoint.h (install_breakpoint): Update.
5304 * breakpoint.c (add_solib_catchpoint): Update.
5305 (install_breakpoint): Change argument to a std::unique_ptr.
5306 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5307 (create_breakpoint_sal, create_breakpoint): Update.
5308 (watch_command_1, catch_exec_command_1)
5309 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5310 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5311 Return the breakpoint.
5312 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5313 (new_single_step_breakpoint): Update.
5314 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5316 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5318 * break-catch-sig.c (create_signal_catchpoint): Use
5320 * ada-lang.c (create_ada_exception_catchpoint): Use
5323 2017-08-22 Tom Tromey <tom@tromey.com>
5325 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5327 2017-08-22 Tom Tromey <tom@tromey.com>
5329 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5330 (lookup_partial_symbol): Update.
5332 2017-08-22 Tom Tromey <tom@tromey.com>
5334 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5335 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5336 (find_and_open_source, symtab_to_fullname): Update.
5337 * psymtab.c (psymtab_to_fullname): Update.
5339 2017-08-22 Tom Tromey <tom@tromey.com>
5341 * exec.c (exec_file_attach): Update.
5342 * linux-thread-db.c (try_thread_db_load): Update.
5343 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5344 * utils.c (gdb_realpath): Change return type.
5345 (gdb_realpath_keepfile): Update.
5346 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5347 (_initialize_utils): Register the new self test.
5348 * source.c (openp): Update.
5349 (find_and_open_source): Update.
5350 * nto-tdep.c (nto_find_and_open_solib): Update.
5351 * main.c (set_gdb_data_directory): Update.
5352 (captured_main_1): Update.
5353 * dwarf2read.c (dwarf2_get_dwz_file): Update
5354 (dw2_map_symbol_filenames): Update.
5355 * auto-load.c (auto_load_safe_path_vec_update): Update.
5356 (filename_is_in_auto_load_safe_path_vec): Change type of
5358 (auto_load_objfile_script): Update.
5359 (file_is_auto_load_safe): Update. Use std::string.
5360 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5362 2017-08-22 Tom Tromey <tom@tromey.com>
5364 * utils.c (gdb_realpath_keepfile): Return a
5365 gdb::unique_xmalloc_ptr.
5366 * exec.c (exec_file_attach): Update.
5367 * utils.h (gdb_realpath_keepfile): Return a
5368 gdb::unique_xmalloc_ptr.
5370 2017-08-22 Tom Tromey <tom@tromey.com>
5372 * compile/compile.c (compile_file_command): Use
5373 gdb::unique_xmalloc_ptr, std::string.
5374 * utils.c (gdb_abspath): Change return type.
5375 * source.c (openp): Update.
5376 * objfiles.c (allocate_objfile): Update.
5377 * main.c (set_gdb_data_directory): Update.
5378 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5380 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5382 * cli-cmds.c (list_commands): List actual code around more than
5385 2017-08-21 John Baldwin <jhb@FreeBSD.org>
5387 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5389 2017-08-21 Pedro Alves <palves@redhat.com>
5392 * c-exp.y (variable production): Handle function aliases.
5393 * minsyms.c (msymbol_is_text): New function.
5394 * minsyms.h (msymbol_is_text): Declare.
5395 * symtab.c (find_function_alias_target): New function.
5396 * symtab.h (find_function_alias_target): Declare.
5398 2017-08-21 Pedro Alves <palves@redhat.com>
5400 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5402 * typeprint.c (whatis_exp): If handling "whatis", and expression
5403 is OP_TYPE, strip one typedef level. Otherwise don't strip
5405 * valops.c (value_cast): Save "to" type before resolving
5406 stubs/typedefs. Use that type as resulting value's type.
5408 2017-08-18 Tom Tromey <tom@tromey.com>
5409 Pedro Alves <palves@redhat.com>
5411 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5412 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5413 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5414 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5415 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5416 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5417 (linux_get_siginfo_data): Add "thread" argument. Use
5419 * linux-nat.c (linux_child_follow_fork)
5420 (check_stopped_by_watchpoint): Use scoped_restore.
5421 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5422 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5423 (restore_inferior_ptid, save_inferior_ptid): Remove.
5424 * btrace.c (btrace_fetch): Use scoped_restore.
5425 * bsd-uthread.c (bsd_uthread_fetch_registers)
5426 (bsd_uthread_store_registers): Use scoped_restore.
5427 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5429 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5430 (aix_thread_xfer_partial): Use scoped_restore.
5431 * inferior.h (save_inferior_ptid): Remove.
5433 2017-08-18 Yao Qi <yao.qi@linaro.org>
5436 * arm-tdep.c (gdb_print_insn_arm): Mark
5437 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5439 2017-08-18 Yao Qi <yao.qi@linaro.org>
5441 * NEWS: Mention GDBserver's new option "--selftest".
5442 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5443 * selftest.c: Move it to common/selftest.c.
5444 * selftest.h: Move it to common/selftest.h.
5445 * selftest-arch.c (reset): New function.
5446 (tests_with_arch): Call reset.
5448 2017-08-18 Yao Qi <yao.qi@linaro.org>
5450 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5451 instead of exception_fprintf and printf_filtered.
5453 2017-08-18 Yao Qi <yao.qi@linaro.org>
5455 * selftest.c (register_self_test): Rename it to
5456 selftests::register_test.
5457 (run_self_tests): selftest::run_tests.
5458 * selftest.h: Update declarations.
5459 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5460 selftests::register_test_foreach_arch.
5461 * selftest-arch.h: Update declaration.
5462 * aarch64-tdep.c: Update.
5463 * arm-tdep.c: Likewise.
5464 * disasm-selftests.c: Likewise.
5465 * dwarf2loc.c: Likewise.
5466 * dwarf2-frame.c: Likewise.
5467 * findvar.c: Likewise.
5468 * gdbarch-selftests.c: Likewise.
5469 * maint.c (maintenance_selftest): Likewise.
5470 * regcache.c: Likewise.
5471 * rust-exp.y: Likewise.
5472 * selftest-arch.c: Likewise.
5473 * unittests/environ-selftests.c: Likewise.
5474 * unittests/function-view-selftests.c: Likewise.
5475 * unittests/offset-type-selftests.c: Likewise.
5476 * unittests/optional-selftests.c: Likewise.
5477 * unittests/scoped_restore-selftests.c: Likewise.
5478 * utils-selftests.c: Likewise.
5480 2017-08-17 Pedro Alves <palves@redhat.com>
5482 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5485 2017-08-17 Pedro Alves <palves@redhat.com>
5487 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5489 (reset_die_in_process): Delete, replaced by ...
5490 (process_die_scope): ... this new class. Make it responsible for
5491 freeing cu->line_header too.
5492 (process_die): Use process_die_scope.
5493 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5494 cu->line_header_die_owner. Don't release the line header if it's
5496 (setup_type_unit_groups): Make the CU/DIE own the line header.
5497 Don't release the line header here.
5499 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5501 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5503 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5505 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5508 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5510 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5513 2017-08-15 Stafford Horne <shorne@gmail.com>
5515 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5517 2017-08-15 Stafford Horne <shorne@gmail.com>
5519 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5521 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5524 * infcmd.c (unset_environment_command): Use the 'clear' method on
5525 the environment instead of resetting it.
5527 2017-08-15 John Baldwin <jhb@FreeBSD.org>
5529 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5532 2017-08-14 Tom Tromey <tom@tromey.com>
5534 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5535 (print_binary_chars): Likewise.
5536 (BITS_IN_BYTES): Remove.
5538 2017-08-14 Tom Tromey <tom@tromey.com>
5541 * valprint.c (LOW_ZERO): Change value to 034.
5542 (print_octal_chars): Add static_asserts for octal constants.
5543 * printcmd.c (print_scalar_formatted): Add 'd' case.
5545 2017-08-11 Tom Tromey <tom@tromey.com>
5547 * symfile.c (add_symbol_file_command): Use std::vector.
5549 2017-08-14 Tom Tromey <tom@tromey.com>
5551 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5552 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5554 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5556 2017-08-11 Pedro Alves <palves@redhat.com>
5558 * infrun.c (process_event_stop_test): Adjust
5559 function_name_is_marked_for_skip call.
5560 * skip.c: Include <list>.
5561 (skiplist_entry): Make it a class with private fields, and
5563 (skiplist_entry_chain): Delete.
5564 (skiplist_entries): New.
5565 (skiplist_entry_count): Delete.
5566 (highest_skiplist_entry_num): New.
5567 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5568 (add_skiplist_entry): Delete.
5569 (skiplist_entry::skiplist_entry): New.
5570 (skiplist_entry::add_entry): New.
5571 (skip_file_command, skip_function): Adjust.
5572 (compile_skip_regexp): Delete.
5573 (skip_command): Don't compile regexp here. Adjust to use
5574 skiplist_entry::add_entry.
5575 (skip_info): Adjust to use range-for and getters.
5576 (skip_enable_command, skip_disable_command): Adjust to use
5577 range-for and setters.
5578 (skip_delete_command): Adjust to use std::list.
5579 (add_skiplist_entry): Delete.
5580 (skip_file_p): Delete, refactored as ...
5581 (skiplist_entry::do_skip_file_p): ... this new method.
5582 (skip_gfile_p): Delete, refactored as ...
5583 (skiplist_entry::do_gskip_file_p): ... this new method.
5584 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5585 (skiplist_entry::skip_function_p): ... this new method.
5586 (function_name_is_marked_for_skip): Now returns bool, and takes
5587 the function sal by const reference. Adjust to use range-for and
5588 skiplist_entry methods.
5589 (_initialize_step_skip): Remove references to
5590 skiplist_entry_chain, skiplist_entry_count.
5591 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5592 takes the function sal by const reference.
5594 2017-08-11 Yao Qi <yao.qi@linaro.org>
5596 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5597 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5598 (dwarf2_frame_cache):
5599 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5600 RETURN_MASK_ALL and set *this_case to NULL.
5601 * frame-unwind.h: Update comments.
5603 2017-08-11 Yao Qi <yao.qi@linaro.org>
5605 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5606 (dwarf2_frame_state_copy_regs): Remove.
5607 (dwarf2_frame_state_free_regs): Remove.
5608 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5609 (dwarf2_restore_rule): Call method .alloc_regs instead of
5610 dwarf2_frame_state_alloc_regs.
5611 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5612 constructor. Call std::move.
5613 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5614 (dwarf2_frame_cache): Likewise.
5616 [GDB_SELF_TEST]: Include selftest.h and
5618 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5619 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5620 execute_cfa_program_test.
5622 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5623 copy ctor, assignment operator, move assignment.
5624 <alloc_regs>: New method.
5626 (struct dwarf2_frame_state): Delete dtor.
5627 (dwarf2_frame_state_alloc_regs): Remove declaration.
5628 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5629 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5631 2017-08-11 Yao Qi <yao.qi@linaro.org>
5633 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5634 (dwarf2_frame_state::dwarf2_frame_state): New.
5635 (dwarf2_frame_state::~dwarf2_frame_state): New.
5636 (dwarf2_fetch_cfa_info): Update.
5637 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5638 rather than a pointer. Update code.
5639 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5641 <data_align, code_align, retaddr_column>: Change them to const.
5642 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5645 2017-08-11 Yao Qi <yao.qi@linaro.org>
5647 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5648 <loc.exp>: New field.
5649 * dwarf2-frame.c (execute_cfa_program): Update.
5650 (dwarf2_frame_prev_register): Update.
5652 2017-08-10 Pedro Alves <palves@redhat.com>
5654 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5656 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5658 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5659 (fbsd_pending_children): Use std::list.
5660 (fbsd_remember_child): Likewise.
5661 (fbsd_is_child_pending): Likewise.
5662 (fbsd_pending_vfork_done): Use std::forward_list.
5663 (fbsd_add_vfork_done): Likewise.
5664 (fbsd_is_vfork_done_pending): Likewise.
5665 (fbsd_next_vfork_done): Likewise.
5667 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5669 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5670 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5671 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5673 (fbsd_xfer_partial): Use gdb::byte_vector.
5674 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
5676 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5678 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5680 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5682 2017-08-09 Tom Tromey <tom@tromey.com>
5684 * skip.c (skiplist_entry): New constructor.
5685 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5686 (skiplist_entry::file_is_glob): Now bool.
5687 (skiplist_entry::file, skiplist_entry::function): Now
5689 (make_skip_entry): Return a unique_ptr. Use new.
5690 (free_skiplist_entry, free_skiplist_entry_cleanup)
5691 (make_free_skiplist_entry_cleanup): Remove.
5692 (skip_command, skip_disable_command, add_skiplist_entry)
5693 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5694 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5695 (function_name_is_marked_for_skip): Update.
5696 (skip_delete_command): Update. Use delete.
5698 2017-08-09 Jiong Wang <jiong.wang@arm.com>
5700 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5701 (aarch64_linux_core_read_description): New function.
5702 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5704 2017-08-09 Pedro Alves <palves@redhat.com>
5706 * cp-name-parser.y (cp_comp_to_string): Return a
5707 gdb::unique_xmalloc_ptr<char>.
5708 * cp-support.c (replace_typedefs_qualified_name)
5709 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5710 (cp_canonicalize_string_full): Use op= instead of explicit
5712 (cp_class_name_from_physname, method_name_from_physname)
5713 (cp_func_name, cp_remove_params): Adjust to use
5714 gdb::unique_xmalloc_ptr<char>.
5715 * cp-support.h (cp_comp_to_string): Return a
5716 gdb::unique_xmalloc_ptr<char>.
5717 * python/py-type.c (typy_lookup_type): Adjust to use
5718 gdb::unique_xmalloc_ptr<char>.
5720 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5722 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5724 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5725 Yao Qi <yao.qi@linaro.org>
5727 * cp-support.c (cp_canonicalize_string_full): Use
5728 gdb::unique_xmalloc_ptr<char>.
5729 (cp_canonicalize_string): Likewise.
5731 2017-08-09 Yao Qi <yao.qi@linaro.org>
5733 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5734 * regformats/i386/amd64-avx-avx512.dat: Remove.
5735 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5736 * regformats/i386/amd64-avx-mpx.dat:Remove.
5737 * regformats/i386/amd64-avx.dat: Remove.
5738 * regformats/i386/amd64-mpx.dat: Remove.
5739 * regformats/i386/i386-avx-avx512.dat: Remove.
5740 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5741 * regformats/i386/i386-avx-mpx.dat: Remove.
5742 * regformats/i386/i386-mmx.dat: Remove.
5743 * regformats/i386/i386-mpx.dat: Remove.
5745 2017-08-09 Yao Qi <yao.qi@linaro.org>
5747 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5748 * amd64-tdep.c: Don't include features/i386/x32*.c.
5749 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5751 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5752 and i386/x32-avx-avx512.
5753 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5755 * features/i386/x32-avx-avx512.c: Removed.
5756 * features/i386/x32-avx-avx512.xml: Removed.
5757 * features/i386/x32-avx.c: Removed.
5758 * features/i386/x32-avx.xml: Removed.
5759 * features/i386/x32.c: Removed.
5760 * features/i386/x32.xml: Removed.
5761 * regformats/i386/x32-avx-avx512.dat: Removed.
5762 * regformats/i386/x32-avx.dat: Removed.
5763 * regformats/i386/x32.dat: Removed.
5765 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5767 PR breakpoints/21886
5768 * mem-break.c (default_memory_insert_breakpoint): Use
5769 `->placed_address' rather than `->reqstd_address' for the
5770 breakpoint location.
5772 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5774 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5777 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5779 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5780 a union of `tdep_info', `tdesc_data' and `id'.
5781 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5782 rather than `info.tdep_info'.
5783 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
5784 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5785 * i386-tdep.c (i386_gdbarch_init): Likewise.
5786 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
5787 * mips-tdep.c (mips_gdbarch_init): Likewise.
5788 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5789 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5790 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
5792 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
5794 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5795 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
5797 * spu-tdep.c (spu_gdbarch_init): Likewise.
5798 * gdbarch.h: Regenerate.
5800 2017-08-07 Leszek Swirski <leszeks@google.com>
5803 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
5805 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
5807 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
5808 (gdbsim_open): Rename gdb_argv args object to argv.
5810 2017-08-05 Tom Tromey <tom@tromey.com>
5812 * compile/compile-object-load.c (compile_object_load): Use
5813 gdb::unique_xmalloc_ptr.
5814 * cli/cli-dump.c (scan_filename): Rename from
5815 scan_filename_with_cleanup. Change return type.
5816 (scan_expression): Rename from scan_expression_with_cleanup.
5818 (dump_memory_to_file, dump_value_to_file, restore_command):
5819 Use gdb::unique_xmalloc_ptr. Update.
5820 * cli/cli-cmds.c (find_and_open_script): Use
5821 gdb::unique_xmalloc_ptr.
5822 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
5823 * symmisc.c (maintenance_print_symbols)
5824 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
5825 * symfile.c (symfile_bfd_open, generic_load)
5826 (add_symbol_file_command, remove_symbol_file_command): Use
5827 gdb::unique_xmalloc_ptr.
5828 * source.c (openp): Use gdb::unique_xmalloc_ptr.
5829 * psymtab.c (maintenance_print_psymbols): Use
5830 gdb::unique_xmalloc_ptr.
5831 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
5832 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
5833 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
5834 (reload_shared_libraries_1): Likewise.
5836 2017-08-05 Tom Tromey <tom@tromey.com>
5838 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
5839 (rust_op_vector, rust_set_vector): New typedefs.
5840 (current_parser): New global.
5841 (work_obstack): Change to pointer type. Update all users.
5842 (rust_ast, pstate): Remove globals.
5843 (struct rust_parser): New.
5844 (%union) <params, field_inits>: Change type.
5845 (start, tuple_expr, unit_expr, struct_expr_list, literal)
5846 (field_expr, expr_list, maybe_expr_list, type_list): Update.
5847 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
5848 (convert_params_to_types, convert_params_to_expression): Change
5850 (ast_string): Change type of "fields".
5851 (rust_parse): Make a rust_parser. Remove cleanups.
5852 (rust_lex_tests): Make and install an auto_obstack.
5854 2017-08-04 Yao Qi <yao.qi@linaro.org>
5856 * configure.srv (ipa_x32_linux_regobj): New.
5857 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
5858 instead of X86_TDESC_AVX512.
5859 (initialize_low_tracepoint): Call
5860 init_registers_x32_avx_avx512_linux.
5862 2017-08-04 Yao Qi <yao.qi@linaro.org>
5864 * utils.h (gdb_argv): Add namespace std for nullptr_t.
5866 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
5868 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
5870 2017-08-03 Tom Tromey <tom@tromey.com>
5872 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
5874 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
5876 2017-08-03 Tom Tromey <tom@tromey.com>
5878 * python/py-param.c (compute_enum_values): Use gdb_argv.
5880 2017-08-03 Tom Tromey <tom@tromey.com>
5882 * utils.h (struct gdb_argv_deleter): New.
5883 (gdb_argv): New class.
5884 * utils.c (gdb_argv::reset): New method.
5885 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
5886 * tracefile.c (tsave_command): Use gdb_argv.
5887 * top.c (new_ui_command): Use gdb_argv.
5888 * symmisc.c (maintenance_print_symbols)
5889 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
5890 * symfile.c (symbol_file_command, generic_load)
5891 (remove_symbol_file_command): Use gdb_argv.
5892 * stack.c (backtrace_command): Use gdb_argv.
5893 * source.c (add_path, show_substitute_path_command)
5894 (unset_substitute_path_command, set_substitute_path_command):
5896 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
5897 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
5898 * remote.c (extended_remote_run, remote_put_command)
5899 (remote_get_command, remote_delete_command): Use gdb_argv.
5900 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
5901 (gdbsim_open): Use gdb_argv.
5902 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
5903 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
5904 * procfs.c (procfs_info_proc): Use gdb_argv.
5905 * interps.c (interpreter_exec_cmd): Use gdb_argv.
5906 * infrun.c (handle_command): Use gdb_argv.
5907 * inferior.c (add_inferior_command, clone_inferior_command):
5909 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
5910 * exec.c (exec_file_command): Use gdb_argv.
5911 * cli/cli-cmds.c (alias_command): Use gdb_argv.
5912 * compile/compile.c (build_argc_argv): Use gdb_argv.
5914 2017-08-03 Tom Tromey <tom@tromey.com>
5916 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
5918 2017-08-03 Tom Tromey <tom@tromey.com>
5920 * python/python.c (compute_python_string): Return std::string.
5921 (gdbpy_eval_from_control_command): Update.
5922 (do_start_initialization): Use std::string.
5923 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
5925 * python/py-breakpoint.c (local_setattro): Use string_printf, not
5928 2017-08-03 Tom Tromey <tom@tromey.com>
5930 * top.h (do_restore_instream_cleanup): Remove.
5931 * top.c (do_restore_instream_cleanup): Remove.
5932 (read_command_file): Use scoped_restore.
5933 * cli/cli-script.c (execute_user_command): Use scoped_restore.
5935 2017-08-03 Tom Tromey <tom@tromey.com>
5937 * cli/cli-script.c (execute_user_command)
5938 (execute_control_command): Use scoped_restore.
5940 2017-08-03 Tom Tromey <tom@tromey.com>
5942 * cli/cli-script.c (do_restore_user_call_depth): Remove.
5943 (execute_user_command): Remove user_call_depth; use
5944 user_args_stack's size instead.
5946 2017-08-03 Tom Tromey <tom@tromey.com>
5948 * top.h (in_user_command): Remove.
5949 * top.c (in_user_command): Remove.
5950 * cli/cli-script.c (do_restore_user_call_depth)
5951 (execute_user_command): Update.
5953 2017-08-03 Tom Tromey <tom@tromey.com>
5955 * valops.c (search_struct_method): Use gdb::byte_vector.
5956 * valarith.c (value_concat): Use std::vector.
5957 * target.c (memory_xfer_partial): Use gdb::byte_vector.
5958 (simple_search_memory): Likewise.
5959 * printcmd.c (find_string_backward): Use gdb::byte_vector.
5960 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
5961 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
5962 * elfread.c (elf_rel_plt_read): Use std::string.
5963 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
5964 * cli/cli-dump.c (restore_section_callback): Use
5967 2017-08-03 Tom Tromey <tom@tromey.com>
5969 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
5971 2017-08-03 Tom Tromey <tom@tromey.com>
5973 * tui/tui-regs.c (tui_restore_gdbout): Remove.
5974 (tui_register_format): Use scoped_restore.
5976 2017-08-03 Tom Tromey <tom@tromey.com>
5978 * reverse.c (exec_direction_default): Remove.
5979 (exec_reverse_once): Use scoped_restore.
5980 * remote.c (restore_remote_timeout): Remove.
5981 (remote_flash_erase, remote_flash_write, remote_flash_done)
5982 (readchar, remote_serial_write): Use scoped_restore.
5983 * cli/cli-script.c (struct source_cleanup_lines_args)
5984 (source_cleanup_lines): Remove.
5985 (script_from_file): Use scoped_restore.
5986 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
5987 (source_command): Use scoped_restore.
5989 2017-08-03 Tom Tromey <tom@tromey.com>
5991 * utils.h (make_cleanup_free_so): Remove.
5992 * utils.c (do_free_so, make_cleanup_free_so): Remove.
5993 * solist.h (struct so_deleter): New.
5994 (so_list_up): New typedef.
5995 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
5997 2017-08-03 Tom Tromey <tom@tromey.com>
5999 * utils.h (make_cleanup_restore_current_language): Remove.
6000 * utils.c (do_restore_current_language)
6001 (make_cleanup_restore_current_language): Remove.
6002 * parse.c (parse_exp_in_context_1)
6003 (parse_expression_with_language): Use
6004 scoped_restore_current_language.
6005 * mi/mi-main.c (mi_cmd_execute): Use
6006 scoped_restore_current_language.
6007 * language.h (scoped_restore_current_language): New class.
6009 2017-08-03 Tom Tromey <tom@tromey.com>
6011 * compile/compile.c (cleanup_unlink_file): Remove.
6012 (compile_to_object): Use gdb::unlinker.
6013 (eval_compile_command): Likewise.
6015 2017-08-03 Tom Tromey <tom@tromey.com>
6017 * utils.h (make_cleanup_fclose): Remove.
6018 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6020 2017-08-03 Tom Tromey <tom@tromey.com>
6022 * top.c (open_terminal_stream): Return gdb_file_up.
6023 (new_ui_command): Update.
6025 2017-08-03 Tom Tromey <tom@tromey.com>
6027 * source.c (print_source_lines_base, forward_search_command)
6028 (reverse_search_command): Use gdb_file_up.
6030 2017-08-03 Tom Tromey <tom@tromey.com>
6032 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6034 2017-08-03 Tom Tromey <tom@tromey.com>
6036 * cli/cli-cmds.c (find_and_open_script): Change return type.
6037 Remove "streamp" and "full_path" parameters.
6038 (source_script_with_search): Update.
6039 * auto-load.c (source_script_file): Update.
6040 * cli/cli-cmds.h (find_and_open_script): Change type.
6041 (open_script): New struct.
6043 2017-08-03 Tom Tromey <tom@tromey.com>
6045 * xml-support.c (xml_fetch_content_from_file): Update.
6046 * ui-file.c (stdio_file::open): Update.
6047 * tracefile-tfile.c (tfile_start): Update.
6048 * remote.c (remote_file_put, remote_file_get): Update.
6049 * nat/linux-procfs.c (linux_proc_get_int)
6050 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6051 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6052 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6053 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6054 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6055 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6056 * linux-nat.c (linux_proc_pending_signals): Update.
6057 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6058 (file_closer): Remove.
6059 * compile/compile.c (compile_to_object): Update.
6060 * common/filestuff.h (struct gdb_file_deleter): New.
6061 (gdb_file_up): New typedef.
6062 (gdb_fopen_cloexec): Change return type.
6063 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6064 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6065 (dump_binary_file, restore_binary_file): Update.
6066 * auto-load.c (auto_load_objfile_script_1): Update.
6068 2017-08-03 Tom Tromey <tom@tromey.com>
6070 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6071 (info_static_tracepoint_markers_command): Likewise.
6072 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6073 * skip.c (skip_info): Use ui_out_emit_table.
6074 * progspace.c (print_program_space): Use ui_out_emit_table.
6075 * osdata.c (info_osdata): Use ui_out_emit_table.
6076 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6078 * linux-thread-db.c (info_auto_load_libthread_db): Use
6080 * inferior.c (print_inferior): Use ui_out_emit_table.
6081 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6082 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6083 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6084 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6085 * ui-out.h (class ui_out_emit_table): New.
6087 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6089 * mips-tdep.c (mips_fpu_type_str): New function.
6090 (mips_dump_tdep): Call it.
6092 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6094 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6097 2017-07-31 Xavier Roirand <roirand@adacore.com>
6099 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6101 2017-07-27 Xavier Roirand <roirand@adacore.com>
6103 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6105 2017-07-26 Yao Qi <yao.qi@linaro.org>
6107 * cli/cli-cmds.c (maintenancechecklist): New variable.
6108 * gdbcmd.h (maintenancechecklist): Declare it.
6109 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6110 Call i386_linux_read_description with different masks.
6111 * maint.c (maintenance_check_command): New function.
6112 (_initialize_maint_cmds): Call add_prefix_cmd.
6113 * target-descriptions.c (tdesc_reg): override operator != and ==.
6114 (tdesc_type): Likewise.
6115 (tdesc_feature): Likewise.
6116 (target_desc): Likewise.
6117 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6118 (maintenance_check_xml_descriptions): New function.
6119 (_initialize_target_descriptions) Add command "xml-descriptions".
6120 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6122 2017-07-26 Yao Qi <yao.qi@linaro.org>
6124 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6125 Include features/i386/32bit-*.c.
6126 (i386_linux_read_description): Generate target description if it
6128 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6130 * features/i386/32bit-linux.c: Re-generated.
6131 * features/i386/32bit-sse.c: Likewise.
6132 * target-descriptions.c (print_c_feature::visit): Print code to
6133 set register number if needed.
6134 (print_c_feature) <m_next_regnum>: New field.
6136 2017-07-26 Yao Qi <yao.qi@linaro.org>
6138 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6139 (FEATURE_XMLFILES): New.
6140 (FEATURE_CFILES): New.
6142 (clean-cfiles): Remove generated c files.
6143 * features/i386/32bit-avx.c: Generated.
6144 * features/i386/32bit-avx512.c: Generated.
6145 * features/i386/32bit-core.c: Generated.
6146 * features/i386/32bit-linux.c: Generated.
6147 * features/i386/32bit-mpx.c: Generated.
6148 * features/i386/32bit-pkeys.c: Generated.
6149 * features/i386/32bit-sse.c: Generated.
6150 * target-descriptions.c: Include algorithm.
6151 (tdesc_element_visitor): Add method visit_end.
6152 (print_c_tdesc): Implement visit_end.
6153 (print_c_tdesc:: m_filename_after_features): Move it to
6155 (print_c_feature): New class.
6156 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6157 name starts with "i386/32bit-".
6159 2017-07-26 Yao Qi <yao.qi@linaro.org>
6161 * target-descriptions.c (tdesc_element_visitor): New class.
6162 (tdesc_element): New class.
6163 (tdesc_reg): Inherit from tdesc_element.
6164 (tdesc_reg::accept): New function.
6165 (tdesc_type): Inherit from tdesc_element.
6166 (tdesc_type::accept): New function.
6167 (tdesc_feature): Inherit from tdesc_element.
6168 (tdesc_feature::accept): New function.
6169 (target_desc): Inherit from tdesc_element.
6170 (target_desc::target_desc): New.
6171 (target_desc::~target_desc): New.
6172 (target_desc::accept): New.
6173 (allocate_target_description): Use new.
6174 (free_target_description): Use delete.
6175 (print_c_tdesc): New class.
6176 (maint_print_c_tdesc_cmd): Adjust.
6178 * features/aarch64.c: Re-generated.
6179 * features/arc-arcompact.c: Re-generated.
6180 * features/arc-v2.c: Re-generated.
6181 * features/arm/arm-with-iwmmxt.c: Re-generated.
6182 * features/arm/arm-with-m.c: Re-generated.
6183 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6184 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6185 * features/arm/arm-with-neon.c: Re-generated.
6186 * features/arm/arm-with-vfpv2.c: Re-generated.
6187 * features/arm/arm-with-vfpv3.c: Re-generated.
6188 * features/i386/amd64-avx-avx512.c: Re-generated.
6189 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6190 * features/i386/amd64-avx.c: Re-generated.
6191 * features/i386/amd64-avx-linux.c: Re-generated.
6192 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6193 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6194 * features/i386/amd64-avx-mpx.c: Re-generated.
6195 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6196 * features/i386/amd64.c: Re-generated.
6197 * features/i386/amd64-linux.c: Re-generated.
6198 * features/i386/amd64-mpx.c: Re-generated.
6199 * features/i386/amd64-mpx-linux.c: Re-generated.
6200 * features/i386/i386-avx-avx512.c: Re-generated.
6201 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6202 * features/i386/i386-avx.c: Re-generated.
6203 * features/i386/i386-avx-linux.c: Re-generated.
6204 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6205 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6206 * features/i386/i386-avx-mpx.c: Re-generated.
6207 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6208 * features/i386/i386.c: Re-generated.
6209 * features/i386/i386-linux.c: Re-generated.
6210 * features/i386/i386-mmx.c: Re-generated.
6211 * features/i386/i386-mmx-linux.c: Re-generated.
6212 * features/i386/i386-mpx.c: Re-generated.
6213 * features/i386/i386-mpx-linux.c: Re-generated.
6214 * features/i386/x32-avx-avx512.c: Re-generated.
6215 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6216 * features/i386/x32-avx.c: Re-generated.
6217 * features/i386/x32-avx-linux.c: Re-generated.
6218 * features/i386/x32.c: Re-generated.
6219 * features/i386/x32-linux.c: Re-generated.
6220 * features/microblaze.c: Re-generated.
6221 * features/microblaze-with-stack-protect.c: Re-generated.
6222 * features/mips64-dsp-linux.c: Re-generated.
6223 * features/mips64-linux.c: Re-generated.
6224 * features/mips-dsp-linux.c: Re-generated.
6225 * features/mips-linux.c: Re-generated.
6226 * features/nds32.c: Re-generated.
6227 * features/nios2.c: Re-generated.
6228 * features/nios2-linux.c: Re-generated.
6229 * features/rs6000/powerpc-32.c: Re-generated.
6230 * features/rs6000/powerpc-32l.c: Re-generated.
6231 * features/rs6000/powerpc-403.c: Re-generated.
6232 * features/rs6000/powerpc-403gc.c : Re-generated.
6233 * features/rs6000/powerpc-405.c: Re-generated.
6234 * features/rs6000/powerpc-505.c: Re-generated.
6235 * features/rs6000/powerpc-601.c: Re-generated.
6236 * features/rs6000/powerpc-602.c: Re-generated.
6237 * features/rs6000/powerpc-603.c: Re-generated.
6238 * features/rs6000/powerpc-604.c: Re-generated.
6239 * features/rs6000/powerpc-64.c: Re-generated.
6240 * features/rs6000/powerpc-64l.c: Re-generated.
6241 * features/rs6000/powerpc-7400.c: Re-generated.
6242 * features/rs6000/powerpc-750.c: Re-generated.
6243 * features/rs6000/powerpc-860.c: Re-generated.
6244 * features/rs6000/powerpc-altivec32.c: Re-generated.
6245 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6246 * features/rs6000/powerpc-altivec64.c: Re-generated.
6247 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6248 * features/rs6000/powerpc-cell32l.c: Re-generated.
6249 * features/rs6000/powerpc-cell64l.c: Re-generated.
6250 * features/rs6000/powerpc-e500.c: Re-generated.
6251 * features/rs6000/powerpc-e500l.c: Re-generated.
6252 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6253 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6254 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6255 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6256 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6257 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6258 * features/rs6000/powerpc-vsx32.c: Re-generated.
6259 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6260 * features/rs6000/powerpc-vsx64.c: Re-generated.
6261 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6262 * features/rs6000/rs6000.c: Re-generated.
6263 * features/s390-linux32.c: Re-generated.
6264 * features/s390-linux32v1.c: Re-generated.
6265 * features/s390-linux32v2.c: Re-generated.
6266 * features/s390-linux64.c: Re-generated.
6267 * features/s390-linux64v1.c: Re-generated.
6268 * features/s390-linux64v2.c: Re-generated.
6269 * features/s390-te-linux64.c: Re-generated.
6270 * features/s390-tevx-linux64.c: Re-generated.
6271 * features/s390-vx-linux64.c: Re-generated.
6272 * features/s390x-linux64.c: Re-generated.
6273 * features/s390x-linux64v1.c: Re-generated.
6274 * features/s390x-linux64v2.c: Re-generated.
6275 * features/s390x-te-linux64.c: Re-generated.
6276 * features/s390x-tevx-linux64.c: Re-generated.
6277 * features/s390x-vx-linux64.c: Re-generated.
6278 * features/sparc/sparc32-solaris.c: Re-generated.
6279 * features/sparc/sparc64-solaris.c: Re-generated.
6280 * features/tic6x-c62x.c: Re-generated.
6281 * features/tic6x-c62x-linux.c: Re-generated.
6282 * features/tic6x-c64x.c: Re-generated.
6283 * features/tic6x-c64x-linux.c: Re-generated.
6284 * features/tic6x-c64xp.c: Re-generated.
6285 * features/tic6x-c64xp-linux.c: Re-generated.
6287 2017-07-26 Yao Qi <yao.qi@linaro.org>
6289 * i386-linux-tdep.c (i386_linux_read_description): New function.
6290 (i386_linux_core_read_description): Call
6291 i386_linux_read_description.
6292 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6293 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6294 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6295 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6296 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6297 * x86-linux-nat.c (x86_linux_read_description): Call
6298 i386_linux_read_description.
6300 2017-07-26 Yao Qi <yao.qi@linaro.org>
6303 * features/Makefile (%.c: %.xml): Pass the xml file name to
6304 command "maint print c-tdesc".
6305 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6308 2017-07-26 Yao Qi <yao.qi@linaro.org>
6310 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6311 in-class initialization.
6312 (tdesc_create_feature): Call new instead of XCNEW.
6313 (free_target_description): Ue delete.
6315 2017-07-25 John Baldwin <jhb@FreeBSD.org>
6317 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6319 2017-07-25 Yao Qi <yao.qi@linaro.org>
6321 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6323 (amd64_x32_init_abi): Likewise.
6324 * amd64-tdep.h (amd64_init_abi): Update declaration.
6325 (amd64_x32_init_abi): Likewise.
6327 2017-07-25 Yao Qi <yao.qi@linaro.org>
6330 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6331 condition for FPSCR.
6332 (arm_linux_store_inferior_registers): Likewise.
6334 2017-07-22 Tom Tromey <tom@tromey.com>
6336 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6337 <syscalls_counts>: Now a std::vector.
6338 (get_catch_syscall_inferior_data): Use "new".
6339 (catch_syscall_inferior_data_cleanup): Use "delete".
6340 (insert_catch_syscall, remove_catch_syscall)
6341 (clear_syscall_counts): Update.
6343 2017-07-22 Tom Tromey <tom@tromey.com>
6345 * break-catch-syscall.c (syscall_catchpoint)
6346 <syscalls_to_be_caught>: Now a std::vector<int>
6347 (~syscall_catchpoint): Remove.
6348 (insert_catch_syscall, remove_catch_syscall)
6349 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6350 (print_mention_catch_syscall, print_recreate_catch_syscall):
6352 (create_syscall_event_catchpoint): Change type of "filter"
6354 (catch_syscall_split_args): Return a std::vector.
6355 (catch_syscall_command_1, catching_syscall_number_1): Update.
6357 2017-07-22 Tom Tromey <tom@tromey.com>
6359 * break-catch-throw.c (struct exception_catchpoint)
6360 <exception_rx>: Now a std::string.
6361 (~exception_catchpoint): Remove.
6362 (print_one_detail_exception_catchpoint): Update.
6363 (handle_gnu_v3_exceptions): Change type of except_rx.
6364 (extract_exception_regexp): Return a std::string.
6365 (catch_exception_command_1): Update.
6367 2017-07-22 Tom Tromey <tom@tromey.com>
6369 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6370 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6372 <catch_all>: Now a bool.
6373 (~signal_catchpoint): Remove.
6374 (signal_catchpoint_insert_location)
6375 (signal_catchpoint_remove_location)
6376 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6377 (signal_catchpoint_print_mention)
6378 (signal_catchpoint_print_recreate)
6379 (signal_catchpoint_explains_signal): Update.
6380 (create_signal_catchpoint): Change type of "filter" and
6382 (catch_signal_split_args): Return a std::vector. Change type of
6384 (catch_signal_command): Update.
6386 2017-07-20 Pedro Alves <palves@redhat.com>
6388 * ada-lang.c (ada_language_defn): Make extern.
6389 (_initialize_ada_language): Remove add_language call.
6390 * c-lang.c (c_language_defn, cplus_language_defn)
6391 (asm_language_defn, minimal_language_defn): Make extern.
6392 (_initialize_c_language): Delete.
6393 * completer.c (compare_cstrings): Delete, moved to utils.h.
6394 * d-lang.c (d_language_defn): Make extern.
6395 (_initialize_d_language): Remove add_language calls.
6396 * defs.h (enum language): Add comment.
6397 * f-lang.c (f_language_defn): Make extern.
6398 (_initialize_f_language): Remove add_language call.
6399 * go-lang.c (go_language_defn): Make extern.
6400 (_initialize_go_language): Remove add_language call.
6401 * language.c: Include <algorithm>.
6402 (languages): Redefine as const array.
6403 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6404 (set_language_command): Handle "local". Use for-range loop.
6405 (set_language): Remove loop.
6406 (language_enum): Rewrite.
6407 (language_def, language_str): Remove loops.
6408 (add_language): Delete.
6409 (add_set_language_command): New, based on add_languages.
6410 (skip_language_trampoline): Adjust.
6411 (local_language_defn): Delete.
6412 (language_gdbarch_post_init): Adjust.
6413 (_initialize_language): Remove add_language calls. Call
6414 add_set_language_command.
6415 * language.h (add_language): Delete.
6416 (auto_language_defn)
6417 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6418 (asm_language_defn, c_language_defn, cplus_language_defn)
6419 (d_language_defn, f_language_defn, go_language_defn)
6420 (m2_language_defn, objc_language_defn, opencl_language_defn)
6421 (pascal_language_defn, rust_language_defn): Declare.
6422 * m2-lang.c (m2_language_defn): Make extern.
6423 (_initialize_m2_language): Remove add_language call.
6424 * objc-lang.c (objc_language_defn): Make extern.
6425 (_initialize_objc_language): Remove add_language call.
6426 * opencl-lang.c (opencl_language_defn): Make extern.
6427 (_initialize_opencl_language): Remove add_language call.
6428 * p-lang.c (pascal_language_defn): Make extern.
6429 (_initialize_pascal_language): Delete.
6430 * rust-lang.c (rust_language_defn): Make extern.
6431 (_initialize_rust_language): Delete.
6432 * utils.h (compare_cstrings): New static inline function.
6434 2017-07-20 Pedro Alves <palves@redhat.com>
6436 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6437 (get_var_value): Constify parameters.
6438 (get_int_var_value): Change prototype.
6439 (to_fixed_range_type): Adjust.
6440 * ada-lang.h (get_int_var_value): Change prototype.
6442 2017-07-20 Pedro Alves <palves@redhat.com>
6444 * dwarf2read.c (dw2_lookup_symbol): Use
6445 SYMBOL_MATCHES_SEARCH_NAME.
6446 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6448 2017-07-20 Pedro Alves <palves@redhat.com>
6450 * block.c (block_iter_name_step, block_iter_name_first)
6451 (block_iter_name_next): Delete.
6452 (block_lookup_symbol_primary): Adjust to use
6453 dict_iter_match_first/dict_iter_match_next.
6454 * block.h (block_iter_name_first, block_iter_name_next): Delete
6456 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6457 dict_iter_match_first/dict_iter_match_next.
6459 2017-07-20 Pedro Alves <palves@redhat.com>
6461 * cp-support.c (cp_find_first_component_aux): Add missing case for
6464 2017-07-18 David Blaikie <dblaikie@gmail.com>
6466 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6467 of dwo_cu's dwo_file.
6469 2017-07-18 Yao Qi <yao.qi@linaro.org>
6471 * remote.c (store_registers_using_G): Remove one line comment.
6473 2017-07-18 Yao Qi <yao.qi@linaro.org>
6475 * regcache.c (regcache_cpy): Simplify it.
6476 (regcache::cpy_no_passthrough): Remove it.
6477 * regcache.h (cpy_no_passthrough): Remove it.
6478 (regcache_dup, regcache_cpy): Update comments.
6480 2017-07-18 Pedro Alves <palves@redhat.com>
6482 * remote-sim.c (sim_command_completer): Adjust to work with a
6483 completion_tracker instead of a VEC.
6485 2017-07-17 Pedro Alves <palves@redhat.com>
6487 * completer.c (complete_source_filenames): New function.
6488 (complete_address_and_linespec_locations): New function.
6489 (location_completer): Use complete_address_and_linespec_locations.
6490 (completion_tracker::build_completion_result): Honor the tracker's
6491 request to suppress append.
6492 * completer.h (completion_tracker::suppress_append_ws)
6493 (completion_tracker::set_suppress_append_ws): New methods.
6494 (completion_tracker::m_suppress_append_ws): New field.
6495 (complete_source_filenames): New declaration.
6496 * linespec.c (linespec_complete_what): New.
6497 (struct ls_parser) <complete_what, completion_word,
6498 completion_quote_char, completion_quote_end, completion_tracker>:
6500 (string_find_incomplete_keyword_at_end): New.
6501 (linespec_lexer_lex_string): Record quote char. If in completion
6503 (linespec_lexer_consume_token): Advance the completion word point.
6504 (linespec_lexer_peek_token): Save/restore completion info.
6505 (save_stream_and_consume_token): New.
6506 (set_completion_after_number): New.
6507 (linespec_parse_basic): Set what to complete next depending on
6508 token. Handle function and label completions specially.
6509 (parse_linespec): Disable objc shortcut in completion mode. Set
6510 what to complete next depending on token type. Skip keyword if in
6512 (complete_linespec_component, linespec_complete): New.
6513 * linespec.h (linespec_complete): Declare.
6515 2017-07-17 Pedro Alves <palves@redhat.com>
6517 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6518 Handle 'operator<' / 'operator<<'.
6520 2017-07-17 Pedro Alves <palves@redhat.com>
6522 * completer.c (collect_explicit_location_matches): Handle
6524 (convert_explicit_location_to_linespec): New, factored out from
6526 (convert_explicit_location_to_sals): ... this.
6527 (complete_label): New.
6528 (linespec_complete_label, find_label_symbols_in_block): New.
6529 (find_label_symbols): Add completion_mode parameter and adjust to
6530 call find_label_symbols_in_block.
6531 * linespec.h (linespec_complete_label): Declare.
6533 2017-07-17 Pedro Alves <palves@redhat.com>
6535 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6536 complete_symbol_mode parameter.
6537 * cli/cli-cmds.c (complete_command): Get the completion result out
6538 of the handle_brkchars tracker if used a custom word point.
6539 * completer.c: Include "linespec.h".
6540 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6541 (advance_to_expression_complete_word_point): New.
6542 (completion_tracker::completes_to_completion_word): New.
6543 (complete_files_symbols): Pass down
6544 complete_symbol_mode::EXPRESSION.
6545 (explicit_options, probe_options): New.
6546 (collect_explicit_location_matches): Complete on the
6547 explictit_loc->foo instead of word. Use
6548 linespec_complete_function. Handle MATCH_LINE. Handle offering
6549 keyword and options completions.
6550 (backup_text_ptr): Delete.
6551 (skip_keyword): New.
6552 (complete_explicit_location): Remove 'word' parameter. Add
6553 language, quoted_arg_start and quoted_arg_end parameters.
6554 Rewrite, parsing left to right.
6555 (location_completer): Rewrite.
6556 (location_completer_handle_brkchars): New function.
6557 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6558 (enum complete_line_internal_reason): Adjust comments.
6559 (completion_tracker::discard_completions): New.
6560 (completer_handle_brkchars_func_for_completer): Handle
6562 (gdb_custom_word_point_brkchars)
6563 (gdb_org_rl_basic_quote_characters): New.
6564 (gdb_completion_word_break_characters_throw)
6565 (completion_find_completion_word): Handle trackers that use a
6567 (completion_tracker::advance_custom_word_point_by): New.
6568 (completion_tracker::build_completion_result): Don't rely on
6569 readline appending the quote char.
6570 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6571 use a custom word point.
6572 (gdb_rl_attempted_completion_function): Restore
6573 rl_basic_quote_characters.
6574 * completer.h (class completion_tracker): Extend intro comment.
6575 (completion_tracker::set_quote_char)
6576 (completion_tracker::quote_char)
6577 (completion_tracker::set_use_custom_word_point)
6578 (completion_tracker::use_custom_word_point)
6579 (completion_tracker::custom_word_point)
6580 (completion_tracker::set_custom_word_point)
6581 (completion_tracker::advance_custom_word_point_by)
6582 (completion_tracker::completes_to_completion_word)
6583 (completion_tracker::discard_completions): New methods.
6584 (completion_tracker::m_quote_char)
6585 (completion_tracker::m_use_custom_word_point)
6586 (completion_tracker::m_custom_word_point): New fields.
6587 (advance_to_expression_complete_word_point): Declare.
6588 * f-lang.c (f_collect_symbol_completion_matches): Add
6589 complete_symbol_mode parameter.
6590 * language.h (struct language_defn)
6591 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6593 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6594 (linespec_complete_function): New function.
6595 (linespec_lexer_lex_keyword): Adjust.
6596 * linespec.h (linespec_keywords, linespec_complete_function): New
6598 * location.c (find_end_quote): New function.
6599 (explicit_location_lex_one): Add explicit_completion_info
6600 parameter. Save quoting info. Don't throw if being called for
6601 completion. Don't handle Ada operators here.
6602 (is_cp_operator, skip_op_false_positives, first_of)
6603 (explicit_location_lex_one_function): New function.
6604 (string_to_explicit_location): Replace 'dont_throw' parameter with
6605 an explicit_completion_info pointer parameter. Handle it. Don't
6606 use explicit_location_lex_one to lex function names. Use
6607 explicit_location_lex_one_function instead.
6608 * location.h (struct explicit_completion_info): New.
6609 (string_to_explicit_location): Replace 'dont_throw' parameter with
6610 an explicit_completion_info pointer parameter.
6611 * symtab.c (default_collect_symbol_completion_matches_break_on):
6612 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6613 (default_collect_symbol_completion_matches)
6614 (collect_symbol_completion_matches): Add complete_symbol_mode
6616 (collect_symbol_completion_matches_type): Pass down
6617 complete_symbol_mode::EXPRESSION.
6618 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6619 parameter. Handle LINESPEC mode.
6620 * symtab.h (complete_symbol_mode): New.
6621 (default_collect_symbol_completion_matches_break_on)
6622 (default_collect_symbol_completion_matches)
6623 (collect_symbol_completion_matches)
6624 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6627 2017-07-17 Pedro Alves <palves@redhat.com>
6629 * utils.c (enum class strncmp_iw_mode): New.
6630 (strcmp_iw): Rename to ...
6631 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6632 parameters. Handle them.
6634 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6635 * utils.h (strncmp_iw): Declare.
6636 (strcmp_iw): Move describing comments here.
6638 2017-07-17 Pedro Alves <palves@redhat.com>
6640 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6642 * c-typeprint.c (is_type_conversion_operator): Use
6644 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6645 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6647 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6648 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6649 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6650 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6652 * location.c: Include "cp-support.h".
6653 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6655 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6658 2017-07-17 Pedro Alves <palves@redhat.com>
6660 * cli/cli-cmds.c (complete_command): Use a completion tracker
6661 along with completion_find_completion_word for handle_brkchars
6663 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6664 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6665 (struct gdb_rl_completion_word_info): New.
6666 (gdb_rl_find_completion_word): New.
6667 (completion_find_completion_word): New.
6668 * completer.h (completion_find_completion_word): Declare.
6670 2017-07-17 Pedro Alves <palves@redhat.com>
6672 * ada-lang.c (symbol_completion_match): Adjust comments.
6673 (symbol_completion_add): Replace vector parameter with
6674 completion_tracker parameter. Use it.
6675 (ada_make_symbol_completion_list): Rename to...
6676 (ada_collect_symbol_completion_matches): ... this. Add
6677 completion_tracker parameter and use it.
6678 (ada_language_defn): Adjust.
6679 * break-catch-syscall.c (catch_syscall_completer): Adjust
6680 prototype and work with completion_tracker instead of VEC.
6681 * breakpoint.c (condition_completer): Adjust prototype and work
6682 with completion_tracker instead of VEC.
6683 * c-lang.c (c_language_defn, cplus_language_defn)
6684 (asm_language_defn, minimal_language_defn): Adjust to renames.
6685 * cli/cli-cmds.c (complete_command): Rework using
6686 completion_tracker. Catch exceptions when completing.
6687 * cli/cli-decode.c (integer_unlimited_completer)
6688 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6689 with completion_tracker instead of VEC.
6690 * command.h (struct completion_tracker): Forward declare.
6691 (completer_ftype, completer_handle_brkchars_ftype): Change
6693 (complete_on_cmdlist, complete_on_enum): Adjust.
6694 * completer.c: Include <algorithm>.
6695 (struct gdb_completer_state): New.
6696 (current_completion): New global.
6697 (readline_line_completion_function): Delete.
6698 (noop_completer, filename_completer)
6699 (filename_completer_handle_brkchars, complete_files_symbols)
6700 (linespec_location_completer): Adjust to work with a
6701 completion_tracker instead of a VEC.
6702 (string_or_empty): New.
6703 (collect_explicit_location_matches): Adjust to work with a
6704 completion_tracker instead of a VEC.
6705 (explicit_location_completer): Rename to ...
6706 (complete_explicit_location): ... this and adjust to work with a
6707 completion_tracker instead of a VEC.
6708 (location_completer): Adjust to work with a completion_tracker
6710 (add_struct_fields): Adjust to work with a completion_list instead
6712 (expression_completer): Rename to ...
6713 (complete_expression): ... this and adjust to work with a
6714 completion_tracker instead of a VEC. Use complete_files_symbols.
6715 (expression_completer): Reimplement on top of complete_expression.
6716 (symbol_completer): Adjust to work with a completion_tracker
6718 (enum complete_line_internal_reason): Add describing comments.
6719 (complete_line_internal_normal_command): Adjust to work with a
6720 completion_tracker instead of a VEC.
6721 (complete_line_internal): Rename to ...
6722 (complete_line_internal_1): ... this and adjust to work with a
6723 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6724 handle_brkchars phase.
6725 (new_completion_tracker): Delete.
6726 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6727 complete_line_internal_1.
6728 (free_completion_tracker): Delete.
6729 (INITIAL_COMPLETION_HTAB_SIZE): New.
6730 (completion_tracker::completion_tracker)
6731 (completion_tracker::~completion_tracker): New.
6732 (maybe_add_completion): Delete.
6733 (completion_tracker::maybe_add_completion)
6734 (completion_tracker::add_completion)
6735 (completion_tracker::add_completions): New.
6736 (throw_max_completions_reached_error): Delete.
6737 (complete_line): Adjust to work with a completion_tracker instead
6738 of a VEC. Don't create a completion_tracker_t or check for max
6740 (command_completer, command_completer_handle_brkchars)
6741 (signal_completer, reg_or_group_completer_1)
6742 (reg_or_group_completer, default_completer_handle_brkchars):
6743 Adjust to work with a completion_tracker.
6744 (gdb_completion_word_break_characters_throw): New.
6745 (gdb_completion_word_break_characters): Reimplement.
6746 (line_completion_function): Delete.
6747 (completion_tracker::recompute_lowest_common_denominator)
6748 (expand_preserving_ws)
6749 (completion_tracker::build_completion_result)
6750 (completion_result::completion_result)
6751 (completion_result::completion_result)
6752 (completion_result::~completion_result)
6753 (completion_result::completion_result)
6754 (completion_result::release_match_list, compare_cstrings)
6755 (completion_result::sort_match_list)
6756 (completion_result::reset_match_list)
6757 (gdb_rl_attempted_completion_function_throw)
6758 (gdb_rl_attempted_completion_function): New.
6759 * completer.h (completion_list, struct completion_result)
6760 (class completion_tracker): New.
6761 (complete_line): Add completion_tracker parameter.
6762 (readline_line_completion_function): Delete.
6763 (gdb_rl_attempted_completion_function): New.
6764 (noop_completer, filename_completer, expression_completer)
6765 (location_completer, symbol_completer, command_completer)
6766 (signal_completer, reg_or_group_completer): Update prototypes.
6767 (completion_tracker_t, new_completion_tracker)
6768 (make_cleanup_free_completion_tracker): Delete.
6769 (enum maybe_add_completion_enum): Delete.
6770 (maybe_add_completion): Delete.
6771 (throw_max_completions_reached_error): Delete.
6772 * corefile.c (complete_set_gnutarget): Adjust to work with a
6773 completion_tracker instead of a VEC.
6774 * cp-abi.c (cp_abi_completer): Adjust to work with a
6775 completion_tracker instead of a VEC.
6776 * d-lang.c (d_language_defn): Adjust.
6777 * disasm.c (disassembler_options_completer): Adjust to work with a
6778 completion_tracker instead of a VEC.
6779 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6780 (f_collect_symbol_completion_matches): ... this. Adjust to work
6781 with a completion_tracker instead of a VEC.
6782 (f_language_defn): Adjust.
6783 * go-lang.c (go_language_defn): Adjust.
6784 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
6785 Adjust to work with a completion_tracker instead of a VEC.
6786 * infrun.c (handle_completer): Likewise.
6787 * interps.c (interpreter_completer): Likewise.
6788 * interps.h (interpreter_completer): Likewise.
6789 * language.c (unknown_language_defn, auto_language_defn)
6790 (local_language_defn): Adjust.
6791 * language.h (language_defn::la_make_symbol_completion_list):
6793 (language_defn::la_collect_symbol_completion_matches): ... this
6794 and adjust to work with a completion_tracker instead of a VEC.
6795 * m2-lang.c (m2_language_defn): Adjust.
6796 * objc-lang.c (objc_language_defn): Adjust.
6797 * opencl-lang.c (opencl_language_defn): Adjust.
6798 * p-lang.c (pascal_language_defn): Adjust.
6799 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
6800 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
6801 with a completion_tracker.
6802 * rust-lang.c (rust_language_defn): Adjust.
6803 * symtab.c (free_completion_list, do_free_completion_list)
6804 (return_val, completion_tracker): Delete.
6805 (completion_list_add_name, completion_list_add_symbol)
6806 (completion_list_add_msymbol, completion_list_objc_symbol)
6807 (completion_list_add_fields, add_symtab_completions): Add
6808 completion_tracker parameter and use it.
6809 (default_make_symbol_completion_list_break_on_1): Rename to...
6810 (default_collect_symbol_completion_matches_break_on): ... this.
6811 Add completion_tracker parameter and use it instead of allocating
6812 a completion tracker here.
6813 (default_make_symbol_completion_list_break_on): Delete old
6815 (default_make_symbol_completion_list): Delete.
6816 (default_collect_symbol_completion_matches): New.
6817 (make_symbol_completion_list): Delete.
6818 (collect_symbol_completion_matches): New.
6819 (make_symbol_completion_type): Rename to ...
6820 (collect_symbol_completion_matches_type): ... this. Add
6821 completion_tracker parameter and use it instead of VEC.
6822 (make_file_symbol_completion_list_1): Rename to...
6823 (collect_file_symbol_completion_matches): ... this. Add
6824 completion_tracker parameter and use it instead of VEC.
6825 (make_file_symbol_completion_list): Delete.
6826 (add_filename_to_list): Use completion_list instead of a VEC.
6827 (add_partial_filename_data::list): Now a completion_list.
6828 (make_source_files_completion_list): Work with a completion_list
6830 * symtab.h: Include "completer.h".
6831 (default_make_symbol_completion_list_break_on)
6832 (default_make_symbol_completion_list, make_symbol_completion_list)
6833 (make_symbol_completion_type, make_file_symbol_completion_list)
6834 (make_source_files_completion_list): Delete.
6835 (default_collect_symbol_completion_matches_break_on)
6836 (default_collect_symbol_completion_matches)
6837 (collect_symbol_completion_matches)
6838 (collect_symbol_completion_matches_type)
6839 (collect_file_symbol_completion_matches)
6840 (make_source_files_completion_list): New.
6841 * top.c (init_main): Don't install a rl_completion_entry_function
6842 hook. Install a rl_attempted_completion_function hook instead.
6843 * tui/tui-layout.c (layout_completer): Adjust to work with a
6845 * tui/tui-regs.c (tui_reggroup_completer):
6846 * tui/tui-win.c (window_name_completer, focus_completer)
6847 (winheight_completer): Adjust to work with a completion_tracker.
6848 * value.c: Include "completer.h".
6849 (complete_internalvar): Adjust to work with a completion_tracker.
6850 * value.h (complete_internalvar): Likewise.
6852 2017-07-17 Pedro Alves <palves@redhat.com>
6854 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
6856 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
6857 comments to completer_ftype's declaration.
6858 <completer_handle_brkchars>: Change type to
6859 completer_handle_brkchars_ftype.
6860 * command.h (completer_ftype): Add describing comment and give
6861 names to parameters.
6862 (completer_ftype_void): Rename to ...
6863 (completer_handle_brkchars_ftype) ... this. Add describing comment.
6864 (set_cmd_completer_handle_brkchars): Adjust.
6865 * completer.c (filename_completer_handle_brkchars): New function.
6866 (complete_line_internal_normal_command): New function, factored
6868 (complete_line_internal): ... here.
6869 (command_completer_handle_brkchars)
6870 (default_completer_handle_brkchars)
6871 (completer_handle_brkchars_func_for_completer): New functions.
6872 * completer.h (set_gdb_completion_word_break_characters): Delete
6874 (completer_handle_brkchars_func_for_completer): New declaration.
6875 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
6876 completer_handle_brkchars_func_for_completer.
6878 2017-07-17 Pedro Alves <palves@redhat.com>
6880 * completer.c (symbol_completer): New function, based on
6881 make_symbol_completion_list_fn.
6882 * completer.h (symbol_completer): New declaration.
6883 * guile/scm-cmd.c (cmdscm_completers): Adjust.
6884 * python/py-cmd.c (completers): Adjust.
6885 * symtab.c (make_symbol_completion_list_fn): Delete.
6886 * symtab.h (make_symbol_completion_list_fn): Delete.
6887 * cli/cli-decode.c (add_cmd): Adjust.
6889 2017-07-17 Pedro Alves <palves@redhat.com>
6891 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
6892 * dwarf2read.c: Include "filename-seen-cache.h".
6893 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
6894 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
6895 * filename-seen-cache.c: New file.
6896 * filename-seen-cache.h: New file.
6897 * symtab.c: Include "filename-seen-cache.h".
6898 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
6899 (create_filename_seen_cache, clear_filename_seen_cache)
6900 (delete_filename_seen_cache, filename_seen): Delete, parts moved
6901 to filename-seen-cache.h/filename-seen-cache.c.
6902 (output_source_filename, sources_info)
6903 (maybe_add_partial_symtab_filename)
6904 (make_source_files_completion_list): Adjust to use
6905 filename_seen_cache.
6907 2017-07-17 Pedro Alves <palves@redhat.com>
6909 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
6911 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
6912 dwarf2_debug_sections*)): New.
6913 (dwarf2_per_objfile::dwarf2_per_objfile(const
6914 dwarf2_per_objfile&)): Declare as deleted.
6915 (dwarf2_per_objfile::operator=): Declare as deleted.
6916 (dwarf2_per_objfile::dwarf2_per_objfile)
6917 (dwarf2_per_objfile::~dwarf2_per_objfile)
6918 (dwarf2_per_objfile::free_cached_comp_units): New.
6919 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
6920 ctor. Call dwarf2_per_objfile's ctor manually.
6921 (dwarf2_locate_sections): Deleted/refactored as ...
6922 (dwarf2_per_objfile::locate_sections): ... this new method.
6923 (free_cached_comp_units): Defer to
6924 dwarf2_per_objfile::free_cached_comp_units.
6925 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
6927 2017-07-14 Tom Tromey <tom@tromey.com>
6930 * rust-exp.y (convert_ast_to_expression): Add "want_type"
6932 <UNOP_SIZEOF>: Split into separate case.
6933 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
6935 2017-07-14 Tom Tromey <tom@tromey.com>
6938 * symtab.c (symbol_matches_domain): Add language_rust to special
6940 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
6941 treat LOC_TYPEDEF symbols as variables.
6943 2017-07-14 Pedro Alves <palves@redhat.com>
6945 * symtab.c (make_file_symbol_completion_list_1): Iterate over
6946 symtabs matching all symtabs with SRCFILE as file name instead of
6947 only considering the first hit, with lookup_symtab.
6949 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6951 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
6952 operator_name parameters.
6953 (gen_expr): Update function call.
6955 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6957 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
6959 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
6961 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
6962 parameter, use agent_expr::gdbarch instead, update function
6964 (locexpr_tracepoint_var_ref): Likewise.
6965 (loclist_tracepoint_var_ref): Likewise.
6966 * ax-gdb.c (gen_trace_static_fields): Likewise.
6967 (gen_traced_pop): Likewise.
6968 (gen_frame_args_address): Likewise.
6969 (gen_frame_locals_address): Likewise.
6970 (gen_var_ref): Likewise.
6971 (gen_struct_ref_recursive): Likewise.
6972 (gen_static_field): Likewise.
6973 (gen_maybe_namespace_elt): Likewise.
6974 (gen_expr): Likewise.
6975 (gen_trace_for_var): Likewise.
6976 (gen_trace_for_expr): Likewise.
6977 (gen_trace_for_return_address): Likewise.
6979 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6981 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
6983 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
6985 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6987 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
6988 from ax, update calls.
6989 (gen_usual_arithmetic): Likewise.
6990 (gen_integral_promotions): Likewise.
6991 (gen_bitfield_ref): Likewise.
6992 (gen_primitive_field): Likewise.
6993 (gen_struct_ref_recursive): Likewise.
6994 (gen_struct_ref): Likewise.
6995 (gen_maybe_namespace_elt): Likewise.
6996 (gen_struct_elt_for_reference): Likewise.
6997 (gen_namespace_elt): Likewise.
6998 (gen_aggregate_elt_ref): Likewise.
6999 (gen_expr): Get gdbarch from ax, update calls.
7000 (gen_expr_binop_rest): Likewise.
7002 2017-07-13 Pedro Alves <palves@redhat.com>
7004 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7006 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7007 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7008 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7009 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7011 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7012 Get final tdesc from the tdep.
7013 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7015 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7016 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7017 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7018 Use it as default tdesc.
7019 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7020 down to amd_init_abi. No longer handle fallback tdesc here.
7021 * amd64-tdep.h (tdesc_x32): Declare.
7022 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7024 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7027 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7029 * s390-linux-tdep.c (s390_process_record): Add support for
7030 instructions new in arch12.
7032 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7034 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7035 PT_GETFSBASE and PT_GETGSBASE.
7036 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7039 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7041 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7042 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7043 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7045 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7046 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7047 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7048 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7049 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7050 * features/i386/amd64.xml: Add 64bit-segments.xml.
7051 * features/i386/amd64-avx-avx512.c: Regenerated.
7052 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7053 * features/i386/amd64-avx-mpx.c: Regenerated.
7054 * features/i386/amd64-avx.c: Regenerated.
7055 * features/i386/amd64-mpx.c: Regenerated.
7056 * features/i386/amd64.c: Regenerated.
7057 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7058 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7059 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7060 * regformats/i386/amd64-avx.dat: Regenerated.
7061 * regformats/i386/amd64-mpx.dat: Regenerated.
7062 * regformats/i386/amd64.dat: Regenerated.
7064 2017-07-10 Yao Qi <yao.qi@linaro.org>
7066 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7067 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7069 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7071 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7073 * gnulib/aclocal.m4: Regenerate.
7074 * gnulib/config.in: Regenerate.
7075 * gnulib/configure: Regenerate.
7076 * gnulib/import/Makefile.am: Regenerate.
7077 * gnulib/import/Makefile.in: Regenerate.
7078 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7079 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7080 * gnulib/import/m4/environ.m4: New file.
7081 * gnulib/import/m4/setenv.m4: New file.
7082 * gnulib/import/setenv.c: New file.
7083 * gnulib/import/unsetenv.c: New file.
7085 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7087 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7088 address when op is DW_OP_addr.
7090 2017-07-09 Tom Tromey <tom@tromey.com>
7092 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7093 check and apply to outer type.
7095 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7097 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7098 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7099 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7100 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7102 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7104 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7106 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7108 * corelow.c (get_core_siginfo): Remove.
7109 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7110 instead of get_core_siginfo.
7111 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7112 * gdbarch.h: Re-generate.
7113 * gdbarch.c: Re-generate.
7114 * linux-tdep.c (linux_core_xfer_siginfo): New.
7115 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7117 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7119 * corelow.c (thread_section_name): Move to ...
7120 * gdbcore.h (thread_section_name): ... here.
7122 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7124 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7125 (struct siginfo32): New.
7126 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7127 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7128 via ptrace(PT_LWPINFO).
7130 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7132 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7133 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7134 (fbsd_get_siginfo_type): New.
7135 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7136 (_initialize_fbsd_tdep): New.
7138 2017-07-06 David Blaikie <dblaikie@gmail.com>
7140 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7141 a singular dwo_unit*) to support multiple CUs in the same way that
7142 multiple TUs are supported.
7143 (create_cus_hash_table): Replace create_dwo_cu with a function for
7144 parsing multiple CUs from a DWO file.
7145 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7147 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7148 htab_find, rather than comparing the signature to a singleton CU in
7151 2017-07-06 Pedro Alves <palves@redhat.com>
7153 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7155 2017-07-04 Pedro Alves <palves@redhat.com>
7157 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7158 * gdbtypes.h (TYPE_STATIC): Delete.
7159 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7160 is_synchronized, is_native>: Delete.
7162 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7163 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7164 (TYPE_FN_FIELD_ABSTRACT): Delete.
7166 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7168 * buffer.h (buffer_finish): Fix spelling mistakes.
7170 2017-07-01 Eli Zaretskii <eliz@gnu.org>
7172 * .dir-locals.el: Automatically switch to C-style comments in
7173 versions of Emacs that support the feature.
7175 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7176 Pedro Alves <palves@redhat.com>
7179 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7180 (process_next_line): New variable 'inline_cmd'.
7181 Adjust 'if' clauses for "python", "compile" and "guile" to use
7182 'command_name_equals' and check for '!inline_cmd'.
7184 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7187 * cli/cli-script.c (command_name_equals_not_inline): New function.
7188 (process_next_line): Adjust 'if' clauses for "python", "compile"
7189 and "guile" to use command_name_equals_not_inline.
7191 2017-06-29 Pedro Alves <palves@redhat.com>
7193 * completer.c (expression_completer): Call
7194 linespec_location_completer instead of location_completer.
7196 2017-06-29 Pedro Alves <palves@redhat.com>
7198 * completer.c (expression_completer): Remove code that recomputes
7201 2017-06-29 Yao Qi <yao.qi@linaro.org>
7203 * regformats/regdat.sh: Generate code with
7204 "ifndef IN_PROCESS_AGENT".
7206 2017-06-28 Pedro Alves <palves@redhat.com>
7208 * command.h: Include "common/scoped_restore.h".
7210 2017-06-28 Yao Qi <yao.qi@linaro.org>
7212 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7213 instead of obstack_grow.
7215 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7218 * symfile.c (reread_symbols): Call objfiles_changed just before
7221 2017-06-27 Pedro Alves <palves@redhat.com>
7223 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7224 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7225 (completion_list_add_symbol, completion_list_add_msymbol):
7226 ... these new functions.
7227 (add_symtab_completions)
7228 (default_make_symbol_completion_list_break_on_1): Adjust.
7230 2017-06-27 Pedro Alves <palves@redhat.com>
7232 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7233 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7234 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7236 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7237 'storage_obstack' field an auto_obstack. In-class initialize all
7238 non-bitfield fields. Make minsyms_read bool.
7239 * symfile.c (read_symbols): Adjust.
7241 2017-06-27 Alan Hayward <alan.hayward@arm.com>
7243 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7244 (gdbsim_store_register): Likewise.
7246 2017-06-27 Pedro Alves <palves@redhat.com>
7248 * c-exp.y (name_obstack): Now an auto_obstack.
7249 (yylex): Use auto_obstack::clear.
7250 (c_parse): Use auto_obstack::clear instead of reinitializing and
7251 freeing the obstack.
7252 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7253 * d-exp.y (name_obstack): Now an auto_obstack.
7254 (yylex): Use auto_obstack::clear.
7255 (d_parse): Use auto_obstack::clear instead of reinitializing and
7256 freeing the obstack.
7257 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7259 * dwarf2read.c (create_addrmap_from_index)
7260 (dwarf2_build_psymtabs_hard)
7261 (update_enumeration_type_from_children): Likewise.
7262 * gdb_obstack.h (auto_obstack): New type.
7263 * go-exp.y (name_obstack): Now an auto_obstack.
7264 (build_packaged_name): Use auto_obstack::clear.
7265 (go_parse): Use auto_obstack::clear instead of reinitializing and
7266 freeing the obstack.
7267 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7269 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7270 * rust-exp.y (work_obstack): Now an auto_obstack.
7271 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7272 reinitializing and freeing the obstack.
7273 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7274 (host_char_to_target): Use auto_obstack.
7275 * utils.h (make_cleanup_obstack_free): Delete declaration.
7276 * valprint.c (generic_emit_char, generic_printstr): Use
7279 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7281 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7283 (darwin_init_thread_list): Don't update dummy thread.
7284 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7286 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7288 * record-full.c (netorder16): Remove.
7290 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7292 * common/diagnostics.h: Define macros for GCC.
7293 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7294 * common/vec.h: Include diagnostics.h.
7295 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7296 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7299 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7301 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7303 * ada-lex.l: Ignore deprecated register warnings.
7305 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7307 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7308 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7310 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7312 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7315 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7317 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7319 2017-06-23 Alan Hayward <alan.hayward@arm.com>
7321 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7322 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7323 (xtensa_register_read_masked): Likewise.
7325 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7327 * common/environ.c (gdb_environ::unset): Update comment.
7329 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7331 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7334 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7336 * record-full.c (record_full_exec_insn): Use byte_vector.
7338 2017-06-22 Yao Qi <yao.qi@linaro.org>
7340 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7341 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7343 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7345 * remote.c (cached_reg): Move from here...
7346 * regcache.h (cached_reg): ...to here.
7347 * python/py-unwind.c (struct reg_info): Remove.
7348 (cached_frame_info): Use cached_reg_t.
7349 (pyuw_prev_register): Likewise.
7350 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7351 (pyuw_dealloc_cache): Free all registers.
7353 2017-06-22 Pedro Alves <palves@redhat.com>
7354 Simon Marchi <simon.marchi@ericsson.com>
7356 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7358 * common/diagnostics.h: New file.
7360 2017-06-22 Pedro Alves <palves@redhat.com>
7362 * common/agent.h: Add include guards.
7364 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7366 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7367 talk about addressable units instead of bytes.
7369 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7371 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7372 of '::const_iterator'.
7374 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7376 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7377 'unittests/environ-selftests.c'.
7378 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7379 * charset.c (find_charset_names): Declare object 'iconv_env'.
7380 Update code to use 'iconv_env' object. Remove call to
7382 * common/environ.c: Include <utility>.
7383 (make_environ): Delete function.
7384 (free_environ): Delete function.
7385 (gdb_environ::clear): New function.
7386 (gdb_environ::operator=): New function.
7387 (gdb_environ::get): Likewise.
7388 (environ_vector): Delete function.
7389 (set_in_environ): Delete function.
7390 (gdb_environ::set): New function.
7391 (unset_in_environ): Delete function.
7392 (gdb_environ::unset): New function.
7393 (gdb_environ::envp): Likewise.
7394 * common/environ.h: Include <vector>.
7395 (struct gdb_environ): Delete; transform into...
7396 (class gdb_environ): ... this class.
7397 (free_environ): Delete prototype.
7398 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7399 environ_vector): Likewise.
7400 * infcmd.c (run_command_1): Update code to call
7401 'envp' from 'gdb_environ' class.
7402 (environment_info): Update code to call methods from 'gdb_environ'
7404 (unset_environment_command): Likewise.
7405 (path_info): Likewise.
7406 (path_command): Likewise.
7407 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7408 (inferior::inferior): Initialize 'environment' using the host's
7410 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7411 Include "environ.h".
7412 (class inferior) <environment>: Change type from 'struct
7413 gdb_environ' to 'gdb_environ'.
7414 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7415 methods from 'gdb_environ' class.
7416 * solib.c (solib_find_1): Likewise
7417 * unittests/environ-selftests.c: New file.
7419 2017-06-20 Yao Qi <yao.qi@linaro.org>
7421 * features/i386/i386-linux.xml: Exchange the order of including
7422 32bit-linux.xml and 32bit-sse.xml.
7423 * features/i386/i386-linux.c: Regenerated.
7425 2017-06-20 Yao Qi <yao.qi@linaro.org>
7427 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7428 Delete copy ctor and assignment operator.
7429 (tdesc_type): Likewise.
7430 (tdesc_feature): Likewise.
7431 (tdesc_free_reg): Remove.
7432 (tdesc_create_reg): Use new.
7433 (tdesc_free_type): Remove.
7434 (tdesc_create_vector): Use new.
7435 (tdesc_create_union): Likewise.
7436 (tdesc_create_flags): Likewise.
7437 (tdesc_create_enum): Likewise.
7438 (tdesc_free_feature): Delete.
7439 (free_target_description): Use delete.
7441 2017-06-19 John Baldwin <jhb@FreeBSD.org>
7443 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7446 2017-06-19 Pedro Alves <palves@redhat.com>
7448 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7449 after gdb::unlinker.
7451 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7453 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7454 gdb_environ to access an environment variable.
7456 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7458 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7461 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7463 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7465 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7467 * configure: Re-generate.
7468 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7470 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7472 * configure: Re-generate.
7473 * warning.m4: Pass -Werror to compiler when checking for
7474 supported warning flags.
7476 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7478 * Makefile.in (COMPILE.pre): Add "-x c++".
7480 2017-06-16 Alan Hayward <alan.hayward@arm.com>
7481 Pedro Alves <palves@redhat.com>
7482 Yao Qi <yao.qi@linaro.org>
7484 * defs.h (RequireLongest): New.
7485 (extract_integer): Declare function template.
7486 (extract_signed_integer): Remove the declaration, but define it
7488 (extract_unsigned_integer): Likewise.
7489 (store_integer): Declare function template.
7490 (store_signed_integer): Remove the declaration, but define it
7492 (store_unsigned_integer): Likewise.
7493 * findvar.c (extract_integer): New function template.
7494 (extract_signed_integer): Remove.
7495 (extract_unsigned_integer): Remove.
7496 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7498 (store_integer): New function template.
7499 (store_signed_integer): Remove.
7500 (store_unsigned_integer): Remove.
7501 (store_integer): Explicit instantiations.
7502 * regcache.c (regcache_raw_read_signed): Update.
7503 (regcache::raw_read): New function.
7504 (regcache::raw_read_signed): Remove.
7505 (regcache::raw_read_unsigned): Remove.
7506 (regcache_raw_read_unsigned): Update.
7507 (regcache_raw_write_unsigned): Update.
7508 (regcache::raw_write_signed): Remove.
7509 (regcache::raw_write): New function.
7510 (regcache_cooked_read_signed): Update.
7511 (regcache::raw_write_unsigned): Remove.
7512 (regcache::cooked_read_signed): Remove.
7513 (regcache_cooked_read_unsigned): Update.
7514 (regcache::cooked_read_unsigned): Remove.
7515 (regcache_cooked_write_signed): Update.
7516 (regcache_cooked_write_unsigned): Update.
7517 * regcache.h (regcache) <raw_read_signed>: Remove.
7518 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7519 <raw_read, raw_write>: New.
7520 <cooked_read_signed, cooked_write_signed>: Remove.
7521 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7522 <cooked_read, cooked_write>: New.
7523 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7524 (sh64_pseudo_register_write): Update.
7526 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7528 * arc-tdep.c (arc_disassembler_options): New variable.
7529 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7530 of default_print_insn.
7531 (arc_delayed_print_insn): Set info->section when needed,
7532 use default_print_insn to retrieve a disassembler.
7534 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7537 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7538 to mention $SHELL and startup-with-shell.
7540 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7542 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7544 2017-06-14 Yao Qi <yao.qi@linaro.org>
7546 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7547 default_print_insn instead of print_insn_aarch64.
7548 * arm-tdep.c (gdb_print_insn_arm): Call
7549 default_print_insn instead of print_insn_big_arm
7550 and print_insn_little_arm.
7551 * i386-tdep.c (i386_print_insn): Call default_print_insn
7552 instead of print_insn_i386.
7553 * ia64-tdep.c (ia64_print_insn): Call
7554 default_print_insn instead of print_insn_ia64.
7555 * mips-tdep.c (gdb_print_insn_mips): Call
7556 default_print_insn instead of print_insn_big_mips
7557 and print_insn_little_mips.
7558 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7559 instead of print_insn_spu.
7561 2017-06-14 Pedro Alves <palves@redhat.com>
7563 * ada-lang.c: Include "common/byte-vector.h".
7564 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7565 * charset.c (wchar_iterator::iterate): Resize the vector instead
7567 * common/byte-vector.h: Include "common/def-vector.h".
7568 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7569 * cli/cli-dump.c: Include "common/byte-vector.h".
7570 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7571 * common/byte-vector.h: New file.
7572 * common/def-vector.h: New file.
7573 * common/default-init-alloc.h: New file.
7574 * dwarf2loc.c: Include "common/byte-vector.h".
7575 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7576 instead of reserving it.
7577 * dwarf2read.c: Include "common/byte-vector.h".
7578 (data_buf::m_vec): Now a gdb::byte_vector.
7579 * gdb_regex.c: Include "common/def-vector.h".
7580 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7581 * mi/mi-main.c: Include "common/byte-vector.h".
7582 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7583 * printcmd.c: Include "common/byte-vector.h".
7584 (print_scalar_formatted): Use gdb::byte_vector.
7585 * valprint.c: Include "common/byte-vector.h".
7586 (maybe_negate_by_bytes, print_decimal_chars): Use
7589 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7591 * darwin-nat.c: Include "nat/fork-inferior.h".
7593 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7595 * configure.nat: Factor out Darwin bits that are not
7596 architecture-specific. Add fork-inferior.o.
7598 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7600 * configure.nat: Factor out AIX bits that are not
7601 architecture-specific. Add fork-inferior.o.
7603 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7605 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7606 (read_pieced_value, write_pieced_value): ...here. Reduce to
7607 wrappers that just call rw_pieced_value.
7609 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7611 * dwarf2loc.c (write_pieced_value): When writing the data for a
7612 memory piece, use write_memory_with_notification instead of
7615 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7617 * valops.c (read_value_memory): Change embedded_offset to
7618 represent a bit offset instead of a byte offset.
7619 * value.h (read_value_memory): Adjust comment.
7621 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7623 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7624 dest_offset_bits and source_offset_bits.
7625 (write_pieced_value): Likewise.
7627 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7629 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7630 given by DW_OP_bit_piece.
7631 (write_pieced_value): Likewise.
7633 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7635 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7636 some other preparations to the places where sufficient information
7638 (write_pieced_value): Likewise.
7640 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7642 * dwarf2loc.c (bits_to_bytes): New function.
7643 (read_pieced_value): Fix offset calculations for register pieces
7644 on big-endian targets.
7645 (write_pieced_value): Likewise.
7647 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7649 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7650 (write_pieced_value): Likewise.
7652 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7654 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7655 transfer the source value's least significant bits, instead of its
7656 lowest-addressed ones. Rename type_len to max_offset.
7657 (read_pieced_value): Mirror above changes to write_pieced_value as
7660 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7662 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7663 truncate full bytes from dest_offset_bits before using it as an
7664 offset into the buffer.
7666 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7668 * dwarf2loc.c (write_pieced_value): Include transfer size in
7671 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7673 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7674 calculation of this_size.
7676 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7678 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7679 when targeting a bit-field.
7680 (write_pieced_value): Likewise.
7682 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7684 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7685 (allocate_piece_closure): Drop addr_size parameter.
7686 (dwarf2_evaluate_loc_desc_full): Adjust call to
7687 allocate_piece_closure.
7689 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7692 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7693 the LSB end, independent of endianness.
7695 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7697 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7700 2017-06-13 Yao Qi <yao.qi@linaro.org>
7702 * mips-linux-nat.c: Move include features/mips*-linux.c to
7704 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7705 to mips-linux-tdep.c.
7706 * mips-linux-tdep.c: Include features/mips*-linux.c
7707 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7709 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7710 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7711 (tdesc_mips64_dsp_linux): Declare.
7713 2017-06-12 Tom Tromey <tom@tromey.com>
7715 * valprint.h (val_print_type_code_int): Remove.
7716 * valprint.c (generic_val_print_int): Always call
7717 val_print_scalar_formatted.
7718 (val_print_type_code_int): Remove.
7719 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7720 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7721 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7722 * ada-valprint.c (ada_val_print_num): Use
7723 val_print_scalar_formatted.
7725 2017-06-12 Tom Tromey <tom@tromey.com>
7727 * printcmd.c (print_scalar_formatted): Unify the two switches.
7728 Don't convert scalars to LONGEST.
7730 2017-06-12 Tom Tromey <tom@tromey.com>
7733 * valprint.h (print_decimal_chars): Update.
7734 * valprint.c (maybe_negate_by_bytes): New function.
7735 (print_decimal_chars): Add "is_signed" argument.
7736 * printcmd.c (print_scalar_formatted): Update.
7738 2017-06-12 Tom Tromey <tom@tromey.com>
7741 * valprint.h (print_binary_chars, print_hex_chars): Update.
7742 * valprint.c (val_print_type_code_int): Update.
7743 (print_binary_chars): Add "zero_pad" argument.
7744 (emit_octal_digit): New function.
7745 (print_octal_chars): Don't zero-pad.
7746 (print_decimal_chars): Likewise.
7747 (print_hex_chars): Add "zero_pad" argument.
7748 * sh64-tdep.c (sh64_do_fp_register): Update.
7749 * regcache.c (regcache::dump): Update.
7750 * printcmd.c (print_scalar_formatted): Update.
7751 * infcmd.c (default_print_one_register_info): Update.
7753 2017-06-12 Pedro Alves <palves@redhat.com>
7754 Alan Hayward <alan.hayward@arm.com>
7756 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7757 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7758 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7759 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7760 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7762 2017-06-12 Pedro Alves <palves@redhat.com>
7764 * dwarf2read.c (mapped_symtab::data): Now a vector of
7765 symtab_index_entry instead of vector of
7766 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7767 whether an element's name is NULL instead of checking whether the
7768 element itself is NULL.
7769 (find_slot): Change return type. Adjust.
7770 (hash_expand, , add_index_entry, uniquify_cu_indices)
7771 (write_hash_table): Adjust.
7773 2017-06-12 Pedro Alves <palves@redhat.com>
7775 * dwarf2read.c (recursively_count_psymbols): New function.
7776 (write_psymtabs_to_index): Call it to compute number of psyms and
7777 pass estimate size of psyms_seen to unordered_set's ctor.
7779 2017-06-12 Pedro Alves <palves@redhat.com>
7781 * dwarf2read.c (write_hash_table): Check if key already exists
7784 2017-06-12 Pedro Alves <palves@redhat.com>
7786 * dwarf2read.c (data_buf::append_space): Rename to...
7787 (data_buf::grow): ... this, and make private. Adjust all callers.
7788 (data_buf::append_uint): New method.
7789 (add_address_entry, write_one_signatured_type)
7790 (write_psymtabs_to_index): Use it.
7792 2017-06-12 Pedro Alves <palves@redhat.com>
7794 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
7795 (file_write (FILE *, const std::vector<Elem>&)): Delete.
7796 (data_buf::file_write): Call ::fwrite directly.
7798 2017-06-12 Pedro Alves <palves@redhat.com>
7800 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
7803 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7805 Code cleanup: C++ify .gdb_index producer.
7806 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
7807 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
7808 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
7809 (create_strtab, add_string): Remove.
7810 (file_write, data_buf): New.
7811 (struct symtab_index_entry): Use std::vector for cu_indices.
7812 (struct mapped_symtab): Use std::vector for data.
7813 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
7814 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
7816 (find_slot): Change return type. Update it to the new data structures.
7817 (hash_expand, add_index_entry): Update it to the new data structures.
7818 (offset_type_compare): Remove.
7819 (uniquify_cu_indices): Update it to the new data structures.
7820 (c_str_view, c_str_view_hasher, vector_hasher): New.
7821 (add_indices_to_cpool): Remove.
7822 (write_hash_table): Update it to the new data structures.
7823 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
7824 (eq_psymtab_cu_index): Remove.
7825 (psym_index_map): New typedef.
7826 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
7827 reference and std::unordered_map for cu_index_htab.
7828 (add_address_entry, add_address_entry_worker, write_address_map)
7829 (write_psymbols): Update it to the new data structures.
7830 (write_obstack): Remove.
7831 (struct signatured_type_index_data): Change types_list to a data_buf
7832 reference and psyms_seen to a std::unordered_set reference.
7833 (write_one_signatured_type, recursively_write_psymbols)
7834 (write_psymtabs_to_index): Update it to the new data structures.
7836 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
7838 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
7839 separate-debug-file commands.
7840 * symfile.h (separate_debug_file_debug): New global.
7841 * symfile.c (separate_debug_file_debug): New global.
7842 (separate_debug_file_exists, find_separate_debug_file): Add
7844 (_initialize_symfile): Add "set debug separate-debug-file"
7846 * build-id.c (build_id_to_debug_bfd,
7847 find_separate_debug_file_by_buildid): Add debug output.
7849 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7851 * gdbarch.sh (displaced_step_free_closure): Remove.
7852 * gdbarch.h, gdbarch.c: Re-generate.
7853 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
7854 displaced_step_free_closure.
7855 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7856 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7857 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7858 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7859 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7860 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7861 * arch-utils.h (simple_displaced_step_free_closure): Remove.
7862 * arch-utils.c (simple_displaced_step_free_closure): Remove.
7863 * infrun.c (displaced_step_clear): Call xfree instead of
7864 gdbarch_displaced_step_free_closure.
7866 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
7868 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
7871 2017-06-08 Alan Hayward <alan.hayward@arm.com>
7873 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
7874 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
7875 (mn10300_push_dummy_call): Likewise.
7877 2017-06-08 Alan Hayward <alan.hayward@arm.com>
7879 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
7881 2017-06-08 Alan Hayward <alan.hayward@arm.com>
7883 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
7885 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7887 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
7888 able to start inferiors using a shell.
7889 (New remote packets): Announce new packet "QStartupWithShell".
7890 * remote.c: Add PACKET_QStartupWithShell.
7891 (extended_remote_create_inferior): Handle new
7892 PACKET_QStartupWithShell.
7893 (remote_protocol_features) <QStartupWithShell>: New entry for
7894 PACKET_QStartupWithShell.
7895 (_initialize_remote): Call "add_packet_config_cmd" for
7898 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7899 Pedro Alves <palves@redhat.com>
7901 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
7902 and "nat/fork-inferior.h".
7903 * common/common-inferior.h: New file, with contents from
7905 * commom/common-utils.c: Include "common-utils.h".
7906 (stringify_argv): New function.
7907 * common/common-utils.h (stringify_argv): New prototype.
7908 * configure.nat: Add "fork-inferior.o" as a dependency for
7909 "*linux*", "fbsd*" and "nbsd*" hosts.
7910 * corefile.c (get_exec_file): Update comment.
7911 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
7912 instead of "startup_inferior".
7913 (darwin_create_inferior): Call "add_thread_silent" after
7915 * fork-child.c: Cleanup unnecessary includes.
7916 (SHELL_FILE): Move to "common/common-fork-child.c".
7917 (environ): Likewise.
7918 (exec_wrapper): Initialize.
7919 (get_exec_wrapper): New function.
7920 (breakup_args): Move to "common/common-fork-child.c"; rename to
7921 "breakup_args_for_exec".
7922 (escape_bang_in_quoted_argument): Move to
7923 "common/common-fork-child.c".
7924 (saved_ui): New variable.
7925 (prefork_hook): New function.
7926 (postfork_hook): Likewise.
7927 (postfork_child_hook): Likewise.
7928 (gdb_startup_inferior): Likewise.
7929 (fork_inferior): Move to "common/common-fork-child.c". Update
7930 function to support gdbserver.
7931 (startup_inferior): Likewise.
7932 * gdbcore.h (get_exec_file): Remove declaration.
7933 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
7934 instead of "startup_inferior". Call "add_thread_silent" after
7936 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
7937 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
7938 instead of "startup_inferior". Call "add_thread_silent" after
7940 * inferior.h: Include "common-inferior.h".
7941 (trace_start_error): Move to "common/common-utils.h".
7942 (trace_start_error_with_name): Likewise.
7943 (fork_inferior): Move prototype to "nat/fork-inferior.h".
7944 (startup_inferior): Likewise.
7945 (gdb_startup_inferior): New prototype.
7946 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
7947 * nat/fork-inferior.h: New file.
7948 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
7949 instead of "startup_inferior". Call "add_thread_silent" after
7951 * target.h (target_terminal_init): Move prototype to
7953 (target_terminal_inferior): Likewise.
7954 (target_terminal_ours): Likewise.
7955 * target/target.h (target_terminal_init): New prototype, moved
7957 (target_terminal_inferior): Likewise.
7958 (target_terminal_ours): Likewise.
7959 * utils.c (gdb_flush_out_err): New function.
7961 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7963 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
7964 * common/common-gdbthread.h: New file, with parts from
7966 * gdbthread.h: Include "common-gdbthread.h".
7967 (switch_to_thread): Moved to "common/common-gdbthread.h".
7969 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7971 * Makefile.in (SFILES): Add "common/job-control.c".
7972 (HFILES_NO_SRCDIR): Add "common/job-control.h".
7973 (COMMON_OBS): Add "job-control.o".
7974 * common/job-control.c: New file, with contents from
7976 * common/job-control.h: New file, with contents from "terminal.h".
7977 * fork-child.c: Include "job-control.h".
7978 * inflow.c: Include "job-control.h".
7979 (gdb_setpgid): Move to "common/common-inflow.c".
7980 (_initialize_inflow): Move setting of "job_control" to
7981 "handle_job_control".
7982 * terminal.h (job_control): Moved to "common/common-terminal.h".
7983 (gdb_setpgid): Likewise.
7984 * top.c: Include "job_control.h".
7985 * utils.c: Likewise.
7986 (job_control): Moved to "job-control.c".
7988 2017-06-07 Pedro Alves <palves@redhat.com>
7990 * Makefile.in (SFILES): Add gdb_regex.c.
7991 (COMMON_OBS): Add gdb_regex.o.
7992 * ada-lang.c (ada_add_standard_exceptions)
7993 (ada_add_exceptions_from_frame, name_matches_regex)
7994 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
7995 parameter type to compiled_regex. Adjust.
7996 (ada_exceptions_list): Use compiled_regex.
7997 * break-catch-throw.c (exception_catchpoint::pattern): Now a
7998 std::unique_ptr<compiled_regex>.
7999 (exception_catchpoint::~exception_catchpoint): Remove regfree
8001 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8002 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8003 * breakpoint.c (solib_catchpoint::compiled): Now a
8004 std::unique_ptr<compiled_regex>.
8005 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8006 (check_status_catch_solib): Adjust to use compiled_regex.
8007 (add_solib_catchpoint): Adjust to use compiled_regex.
8008 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8009 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8010 compiled_regex reference. Adjust to use it.
8011 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8012 declaration. Include "gdb_regex.h".
8013 (apropos_cmd): Change regex parameter to compiled_regex reference.
8014 * gdb_regex.c: New file.
8015 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8017 (class compiled_regex): New.
8018 * linux-tdep.c: Include "common/gdb_optional.h".
8019 (struct mapping_regexes): New, factored out from
8020 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8021 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8022 gdb::optional and remove cleanups. Adjust to compiled_regex.
8023 * probe.c: Include "common/gdb_optional.h".
8024 (collect_probes): Use compiled_regex and gdb::optional and remove
8026 * skip.c: Include "common/gdb_optional.h".
8027 (skiplist_entry::compiled_function_regexp): Now a
8028 gdb::optional<compiled_regex>.
8029 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8030 (free_skiplist_entry): Remove regfree call.
8031 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8032 compiled_regex and gdb::optional.
8033 * symtab.c: Include "common/gdb_optional.h".
8034 (search_symbols): Use compiled_regex and gdb::optional.
8035 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8036 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8039 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8041 * regcache.c (regcache::save): Avoid buffer use.
8042 (regcache::dump): Likewise.
8044 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8046 * sh-tdep.c (sh_pseudo_register_read): Remove
8048 (sh_pseudo_register_write): Likewise.
8049 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8050 (sh64_pseudo_register_write): Likewise
8052 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8054 * aarch64-tdep.c (aarch64_store_return_value): Use
8056 (aarch64_pseudo_read_value): Likewise.
8057 (aarch64_pseudo_write): Likewise.
8059 2017-06-06 Yao Qi <yao.qi@linaro.org>
8061 * regformats/regdef.h (set_register_cache): Remove the
8064 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8066 * frame.c (frame_unwind_register_signed): Use
8067 frame_unwind_register_value.
8069 2017-06-06 Pedro Alves <palves@redhat.com>
8071 PR breakpoints/21553
8072 * breakpoint.c (create_breakpoints_sal_default)
8073 (init_breakpoint_sal, create_breakpoint_sal): Use
8074 gdb::unique_xmalloc_ptr for string parameters.
8075 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8076 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8077 (base_breakpoint_create_breakpoints_sal)
8078 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8079 (strace_marker_create_breakpoints_sal)
8080 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8082 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8083 gdb::unique_xmalloc_ptr for string parameters.
8084 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8087 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8089 * alpha-tdep.c (alpha_register_to_value): Use
8090 get_frame_register_value.
8091 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8093 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8095 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8096 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8097 (ia64_value_to_register): Likewise.
8098 (ia64_extract_return_value): Likewise.
8099 (ia64_store_return_value): Likewise.
8100 (ia64_push_dummy_call): Likewise.
8102 2017-06-04 Joel Brobecker <brobecker@adacore.com>
8106 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8108 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8110 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8112 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8114 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8116 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8118 * event-loop.c (poll_timers): Unallocate timer using delete
8121 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8123 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8124 (struct breakpoint) <~breakpoint>: New.
8125 (struct watchpoint): Inherit from breakpoint.
8128 (struct tracepoint): Inherit from breakpoint.
8130 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8131 (struct longjmp_breakpoint): Inherit from breakpoint.
8132 <~longjmp_breakpoint>: New.
8134 (new_breakpoint_from_type): Remove casts.
8135 (watchpoint_in_thread_scope): Remove reference to base field.
8136 (watchpoint_del_at_next_stop): Likewise.
8137 (update_watchpoint): Likewise.
8138 (watchpoint_check): Likewise.
8139 (bpstat_check_watchpoint): Likewise.
8140 (set_longjmp_breakpoint): Likewise.
8141 (struct fork_catchpoint): Inherit from breakpoint.
8143 (struct solib_catchpoint): Inherit from breakpoint.
8144 <~solib_catchpoint>: New.
8146 (dtor_catch_solib): Change to ...
8147 (solib_catchpoint::~solib_catchpoint): ... this.
8148 (breakpoint_hit_catch_solib): Remove reference to base field.
8149 (add_solib_catchpoint): Likewise.
8150 (create_fork_vfork_event_catchpoint): Likewise.
8151 (struct exec_catchpoint): Inherit from breakpoint.
8152 <~exec_catchpoint>: New.
8154 (dtor_catch_exec): Change to ...
8155 (exec_catchpoint::~exec_catchpoint): ... this.
8156 (dtor_watchpoint): Change to ...
8157 (watchpoint::~watchpoint): ... this.
8158 (watch_command_1): Remove reference to base field.
8159 (catch_exec_command_1): Likewise.
8160 (base_breakpoint_dtor): Change to ...
8161 (breakpoint::~breakpoint): ... this.
8162 (base_breakpoint_ops): Remove dtor field value.
8163 (longjmp_bkpt_dtor): Change to ...
8164 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8165 (strace_marker_create_breakpoints_sal): Remove reference to base
8167 (delete_breakpoint): Don't manually call breakpoint destructor.
8168 (create_tracepoint_from_upload): Remove reference to base field.
8169 (trace_pass_set_count): Likewise.
8170 (initialize_breakpoint_ops): Don't initialize
8171 momentary_breakpoint_ops, don't set dtors.
8172 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8173 <~ada_catchpoint>: New.
8175 (create_excep_cond_exprs): Remove reference to base field.
8176 (dtor_exception): Change to ...
8177 (ada_catchpoint::~ada_catchpoint): ... this.
8178 (dtor_catch_exception): Remove.
8179 (dtor_catch_exception_unhandled): Remove.
8180 (dtor_catch_assert): Remove.
8181 (create_ada_exception_catchpoint): Remove reference to base
8183 (initialize_ada_catchpoint_ops): Don't set dtors.
8184 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8186 <~signal_catchpoint>: New.
8188 (signal_catchpoint_dtor): Change to ...
8189 (signal_catchpoint::~signal_catchpoint): ... this.
8190 (create_signal_catchpoint): Remove reference to base field.
8191 (initialize_signal_catchpoint_ops): Don't set dtor.
8192 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8194 <~syscall_catchpoint>: New.
8196 (dtor_catch_syscall): Change to ...
8197 (syscall_catchpoint::~syscall_catchpoint): ... this.
8198 (create_syscall_event_catchpoint): Remove reference to base
8200 (initialize_syscall_catchpoint_ops): Don't set dtor.
8201 * break-catch-throw.c (struct exception_catchpoint): Inherit
8203 <~exception_catchpoint>: New.
8205 (dtor_exception_catchpoint): Change to ...
8206 (exception_catchpoint::~exception_catchpoint): ... this.
8207 (handle_gnu_v3_exceptions): Remove reference to base field.
8208 (initialize_throw_catchpoint_ops): Don't set dtor.
8209 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8211 * remote.c (remote_get_tracepoint_status): Likewise.
8212 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8213 * tracefile.c (tracefile_fetch_registers): Likewise.
8214 * tracepoint.c (actions_command): Likewise.
8215 (validate_actionline): Likewise.
8216 (tfind_1): Likewise.
8217 (get_traceframe_location): Likewise.
8218 (find_matching_tracepoint_location): Likewise.
8219 (parse_tracepoint_status): Likewise.
8220 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8222 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8224 * breakpoint.c (struct longjmp_breakpoint): New struct.
8225 (is_tracepoint_type): Change return type to bool.
8226 (is_longjmp_type): New function.
8227 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8228 (set_raw_breakpoint_without_location): Use
8229 new_breakpoint_from_type.
8230 (set_raw_breakpoint): Likewise.
8232 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8234 * breakpoint.c (new_breakpoint_from_type): New function.
8235 (create_breakpoint_sal): Use new_breakpoint_from_type and
8237 (create_breakpoint): Likewise.
8239 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8241 * memattr.c (mem_info_command): Rename to ...
8242 (info_mem_command): ... this.
8243 (mem_enable_command): Rename to ...
8244 (enable_mem_command): ... this.
8245 (mem_disable_command): Rename to ...
8246 (disable_mem_command): ... this.
8247 (mem_delete_command): Rename to ...
8248 (delete_mem_command): ... this.
8249 (_initialize_mem): Adjust function names.
8251 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8253 * btrace.c (handle_pt_insn_events): New.
8254 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8255 STATUS. Split into this and ...
8256 (handle_pt_insn_event_flags): ... this.
8258 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8260 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8261 and struct pt_insn.resynced.
8262 * configure: Regenerated.
8263 * config.in: Regenerated.
8265 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8267 * btrace.c (ftrace_find_call_by_number): New function.
8268 (ftrace_new_function): Store objects, not pointers.
8269 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8270 ftrace_new_gap, ftrace_update_function,
8271 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8272 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8273 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8274 btrace_ends_with_single_insn, btrace_call_get): Account for
8275 btrace_thread_info::functions now storing objects.
8276 * btrace.h (struct btrace_thread_info): Add constructor.
8277 (struct btrace_thread_info) <functions>: Make std::vector.
8278 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8279 Initialize with default values.
8280 * record-btrace.c (record_btrace_frame_sniffer): Account for
8281 btrace_thread_info::functions now storing objects.
8283 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8285 * btrace.c: Remove typedef bfun_s.
8286 (ftrace_new_gap): Directly add gaps to the list of gaps.
8287 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8288 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8289 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8292 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8294 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8295 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8296 with btrace_thread_info::next_segment and
8297 btrace_thread_info::prev_segment.
8298 * btrace.h: Remove struct btrace_func_link.
8299 (struct btrace_function): Replace pair of function segment pointers
8300 with pair of indices.
8301 * python/py-record-btrace.c (btpy_call_prev_sibling,
8302 btpy_call_next_sibling): Replace references to
8303 btrace_thread_info::segment with btrace_thread_info::next_segment and
8304 btrace_thread_info::prev_segment.
8305 * record-btrace.c (record_btrace_frame_this_id): Use
8306 btrace_find_call_by_number.
8308 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8310 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8311 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8312 btrace_insn_next, btrace_insn_prev): Remove references to
8313 btrace_thread_info::flow.
8314 * btrace.h (struct btrace_function): Remove FLOW.
8316 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8318 * btrace.c (ftrace_find_call_by_number): New function.
8319 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8320 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8321 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8322 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8324 * btrace.h (struct btrace_function): Turn UP into an index.
8325 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8327 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8328 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8329 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8331 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8333 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8334 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8335 ftrace_update_function, ftrace_compute_global_level_offset,
8336 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8337 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8338 btrace_insn_end, btrace_is_empty): Remove references to
8339 btrace_thread_info::begin and btrace_thread_info::end.
8340 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8341 (struct btrace_thread_info) <functions>: Adjust comment.
8342 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8343 btrace_thread_info::begin.
8345 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8347 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8348 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8349 ftrace_update_function): Remove arguments that implicitly were always
8351 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8352 Don't pass BTINFO->END.
8354 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8356 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8357 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8358 btrace_find_insn_by_number): Replace function segment pointer with
8360 (btrace_insn_cmp): Simplify.
8361 * btrace.h: (struct btrace_insn_iterator) Rename index to
8362 insn_index. Replace function segment pointer with index into function
8364 * record-btrace.c (record_btrace_call_history): Replace function
8365 segment pointer use with index.
8366 (record_btrace_frame_sniffer): Retrieve function call segment through
8368 (record_btrace_set_replay): Remove defunc't safety check.
8370 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8372 * btrace.c (btrace_ends_with_single_insn): New function.
8373 (btrace_call_get, btrace_call_number, btrace_call_begin,
8374 btrace_call_end, btrace_call_next, btrace_call_prev,
8375 btrace_find_call_by_number): Use index into call segment vector
8377 (btrace_call_cmp): Simplify.
8378 * btrace.h (struct btrace_call_iterator): Replace function call segment
8379 pointer with index into vector.
8380 * record-btrace.c (record_btrace_call_history): Use index instead of
8383 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8385 * btrace.c (btrace_insn_begin, btrace_insn_end,
8386 btrace_find_insn_by_number): Add btinfo to iterator.
8387 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8389 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8391 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8392 and save pointers directly.
8393 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8394 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8395 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8396 changed signature of functions.
8397 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8398 (btrace_fetch): Remove code that adds btrace_function pointers to
8399 vector of btrace_functions.
8400 (btrace_clear): Simplify freeing vector of btrace_functions.
8402 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8404 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8405 Replace VEC_* with std::vector functions.
8406 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8407 (struct btrace_thread_info)<functions>: Change type to std::vector.
8409 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8411 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8412 "Removed targets and native configurations" up. Merge duplicate
8413 "New commands" sub-sections. Add "New options" sub-sections.
8415 2017-05-26 Alan Hayward <alan.hayward@arm.com>
8417 * defs.h (copy_integer_to_size): New declaration.
8418 * findvar.c (copy_integer_to_size): New function.
8419 (do_cint_test): New selftest function.
8420 (copy_integer_to_size_test): Likewise.
8421 (_initialize_findvar): Likewise.
8422 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8423 (mips_fbsd_collect_reg): Use raw_collect_integer.
8424 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8425 (mips64_fill_gregset): Use raw_collect_integer
8426 (mips64_fill_fpregset): Use raw_supply_integer.
8427 * regcache.c (regcache::raw_supply_integer): New function.
8428 (regcache::raw_collect_integer): Likewise.
8429 * regcache.h: (regcache::raw_supply_integer): New declaration.
8430 (regcache::raw_collect_integer): Likewise.
8432 2017-05-24 Yao Qi <yao.qi@linaro.org>
8434 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8435 (COMMON_OBS): Add gdbarch-selftests.o.
8436 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8437 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8438 * gdbarch-selftests.c: New file.
8439 * regcache.h (regcache) <~regcache>: Mark it virtual if
8441 <raw_write>: Likewise.
8443 2017-05-24 Yao Qi <yao.qi@linaro.org>
8445 * regcache.c (current_regcache): Change it to
8446 regcache::current_regcache.
8447 (regcache_observer_target_changed): Update.
8448 (regcache_thread_ptid_changed): Make it a regcache static
8450 (regcache_thread_ptid_changed): Update.
8451 (class regcache_access): New.
8452 (current_regcache_test): Update.
8453 (_initialize_regcache): Update.
8454 * regcache.h: Include forward_list.
8455 (regcache): Declare regcache_thread_ptid_changed and declare
8456 registers_changed_ptid as friend.
8458 2017-05-24 Yao Qi <yao.qi@linaro.org>
8460 * i387-tdep.c (i387_register_to_value): Use register_size
8461 instead of TYPE_LENGTH.
8462 * m68k-tdep.c (m68k_register_to_value): Likewise.
8464 2017-05-24 Yao Qi <yao.qi@linaro.org>
8466 * i387-tdep.c (i387_convert_register_p): Return false if type
8467 code isn't TYPE_CODE_FLT.
8469 2017-05-24 Yao Qi <yao.qi@linaro.org>
8471 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8473 (alpha_register_to_value): Remove type length check.
8474 (alpha_value_to_register): Likewise.
8476 2017-05-24 Yao Qi <yao.qi@linaro.org>
8478 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8481 2017-05-24 Yao Qi <yao.qi@linaro.org>
8483 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8484 TYPE_CODE_FLT or not.
8486 2017-05-24 Yao Qi <yao.qi@linaro.org>
8488 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8489 * avr-tdep.c (avr_gdbarch_init): Likewise.
8490 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8491 * cris-tdep.c (cris_gdbarch_init): Likewise.
8492 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8493 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8494 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8496 * mep-tdep.c (mep_gdbarch_init): Likewise.
8497 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8498 * mips-tdep.c (mips_gdbarch_init): Likewise.
8499 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8500 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8501 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8502 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8503 * v850-tdep.c (v850_gdbarch_init): Likewise.
8505 2017-05-24 Yao Qi <yao.qi@linaro.org>
8507 * selftest-arch.c (tests_with_arch): Call registers_changed
8508 and reinit_frame_cache.
8509 * selftest.c (run_self_tests): Likewise.
8511 2017-05-24 Yao Qi <yao.qi@linaro.org>
8513 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8514 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8516 2017-05-24 Yao Qi <yao.qi@linaro.org>
8518 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8519 set_gdbarch_print_insn.
8521 2017-05-24 Yao Qi <yao.qi@linaro.org>
8523 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8524 set_gdbarch_print_insn.
8526 2017-05-24 Yao Qi <yao.qi@linaro.org>
8528 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8529 set_gdbarch_print_insn.
8530 * arc-tdep.c (arc_gdbarch_init): Likewise.
8531 * arch-utils.c: include dis-asm.h.
8532 (default_print_insn): New function.
8533 * arch-utils.h (default_print_insn): Declare.
8534 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8535 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8536 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8537 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8538 * frv-tdep.c (frv_gdbarch_init): Likewise.
8539 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8540 * gdbarch.sh (print_insn): Use default_print_insn.
8541 * gdbarch.c: Regenerated.
8542 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8543 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8544 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8545 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8546 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8547 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8548 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8549 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8550 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8551 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8552 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8553 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8554 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8555 * mt-tdep.c (mt_gdbarch_init): Likewise.
8556 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8557 * nios2-tdep.c (nios2_print_insn): Remove.
8558 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8559 * rx-tdep.c (rx_gdbarch_init): Likewise.
8560 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8561 * score-tdep.c (score_print_insn): Remove.
8562 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8563 * sh-tdep.c (sh_gdbarch_init): Likewise.
8564 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8565 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8566 * tic6x-tdep.c (tic6x_print_insn): Remove.
8567 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8568 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8569 * v850-tdep.c (v850_gdbarch_init): Likewise.
8570 * vax-tdep.c (vax_gdbarch_init): Likewise.
8571 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8572 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8574 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8576 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8577 (MIPS_FP0_REGNUM): Remove.
8578 (MIPS_FSR_REGNUM): Remove.
8579 (mips_fbsd_supply_fpregs): Use mips_regnum.
8580 (mips_fbsd_supply_gregs): Likewise.
8581 (mips_fbsd_collect_fpregs): Likewise.
8582 (mips_fbsd_collect_gregs): Likewise.
8584 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8586 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8587 (getpfpregs_supplies): New function.
8588 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8590 (mips_fbsd_store_inferior_registers): Likewise.
8592 2017-05-22 Pedro Alves <palves@redhat.com>
8594 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8597 2017-05-22 Alan Hayward <alan.hayward@arm.com>
8599 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8600 (store_register): Likewise.
8601 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8602 (get_decimal_float_return_value): Likewise.
8603 (do_ppc_sysv_return_value): Likewise.
8604 (ppc64_sysv_abi_push_integer): Likewise.
8605 (ppc64_sysv_abi_push_freg): Likewise.
8606 (ppc64_sysv_abi_return_value_base): Likewise.
8607 (ppc64_sysv_abi_return_value): Likewise.
8608 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8609 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8610 * rs6000-nat.c: Likewise.
8611 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8612 (rs6000_value_to_register): Likewise.
8613 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8615 2017-05-21 Tom Tromey <tom@tromey.com>
8618 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8619 arrays as "[T]", not "[T; ]".
8621 2017-05-19 Tom Tromey <tom@tromey.com>
8624 * rust-lang.c (exp_descriptor_rust): New function.
8625 (rust_language_defn): Use it.
8626 * p-lang.c (pascal_language_defn): Update.
8627 * opencl-lang.c (opencl_language_defn): Update.
8628 * objc-lang.c (objc_language_defn): Update.
8629 * m2-lang.c (m2_language_defn): Update.
8630 * language.h (struct language_defn)
8631 <la_watch_location_expression>: New member.
8632 * language.c (unknown_language_defn, auto_language_defn)
8633 (local_language_defn): Update.
8634 * go-lang.c (go_language_defn): Update.
8635 * f-lang.c (f_language_defn): Update.
8636 * d-lang.c (d_language_defn): Update.
8637 * c-lang.h (c_watch_location_expression): Declare.
8638 * c-lang.c (c_watch_location_expression): New function.
8639 (c_language_defn, cplus_language_defn, asm_language_defn)
8640 (minimal_language_defn): Use it.
8641 * breakpoint.c (watch_command_1): Call
8642 la_watch_location_expression.
8643 * ada-lang.c (ada_language_defn): Update.
8645 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8648 * gdb_curses.h (NOMACROS): Define.
8649 (NCURSES_NOMACROS): Define.
8651 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8654 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8656 * tui/tui-wingeneral.c (box_win): Likewise.
8657 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8658 (tui_show_source_line): Likewise.
8659 (tui_show_exec_info_content): Likewise.
8661 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8663 * sparc-tdep.c (sparc_structure_return_p)
8664 (sparc_arg_on_registers_p): New functions.
8665 (sparc32_store_arguments): Use them.
8666 * sparc64-tdep.c (sparc64_16_byte_align_p)
8667 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8668 Handle TYPE_CODE_ARRAY.
8670 2017-05-17 Yao Qi <yao.qi@linaro.org>
8672 * cli/cli-decode.c (add_alias_cmd): New function.
8673 * command.h (add_alias_cmd): Declare.
8674 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8675 instead call add_alias_cmd.
8677 2017-05-17 Pedro Alves <palves@redhat.com>
8679 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8680 (nat_makefile_frag): ... this. All references updated.
8681 * configure.ac: Likewise.
8682 * configure.nat: Likewise. Enhance comments.
8683 * configure: Regenerate.
8685 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8687 * procfs.c (procfs_create_inferior): Change prototype to match
8690 2017-05-13 Eli Zaretskii <eliz@gnu.org>
8692 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8693 C++ compiler warning.
8695 2017-05-12 Tom Tromey <tom@tromey.com>
8698 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8699 recurse, just call value_struct_elt directly.
8701 2017-05-12 Tom Tromey <tom@tromey.com>
8703 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8704 OP_RUST_ARRAY>: Fix.
8706 2017-05-12 Tom Tromey <tom@tromey.com>
8708 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8710 2017-05-09 Yao Qi <yao.qi@linaro.org>
8712 * regcache.c: Include <forward_list>.
8713 (struct regcache_list): Remove.
8714 (current_regcache): Update.
8715 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8716 (regcache_thread_ptid_changed): Likewise.
8717 (registers_changed_ptid): Likewise.
8718 (current_regcache_size): Likewise.
8720 2017-05-09 Yao Qi <yao.qi@linaro.org>
8722 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8723 (current_regcache_size): New function.
8724 (current_regcache_test): New function.
8725 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8727 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8729 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8730 (print_gp_register_row): Use get_frame_register_value.
8732 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8734 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8735 (mips_supply_fpregset): Likewise.
8736 (mips64_supply_gregset): Likewise.
8738 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8740 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8741 regcache->raw_supply_zeroed.
8743 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8745 * configure.nat: Rearrange 'case' statements to match
8748 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8750 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8751 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8752 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8753 "@nat_extra_makefile_frag@".
8754 (Makefile): Remove dependency on "@frags@".
8755 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8756 (data-directory/Makefile): Likewise.
8757 * config/aarch64/linux.mh: Deleted; moved contents to
8758 "gdb/configure.nat".
8759 * config/alpha/alpha-linux.mh: Likewise.
8760 * config/alpha/nbsd.mh: Likewise.
8761 * config/arm/linux.mh: Likewise.
8762 * config/arm/nbsdelf.mh: Likewise.
8763 * config/i386/cygwin.mh: Likewise.
8764 * config/i386/cygwin64.mh: Likewise.
8765 * config/i386/darwin.mh: Likewise.
8766 * config/i386/fbsd.mh: Likewise.
8767 * config/i386/fbsd64.mh: Likewise.
8768 * config/i386/go32.mh: Likewise.
8769 * config/i386/i386gnu.mh: Likewise.
8770 * config/i386/i386sol2.mh: Likewise.
8771 * config/i386/linux.mh: Likewise.
8772 * config/i386/linux64.mh: Likewise.
8773 * config/i386/mingw.mh: Likewise.
8774 * config/i386/mingw64.mh: Likewise.
8775 * config/i386/nbsd64.mh: Likewise.
8776 * config/i386/nbsdelf.mh: Likewise.
8777 * config/i386/nto.mh: Likewise.
8778 * config/i386/obsd.mh: Likewise.
8779 * config/i386/obsd64.mh: Likewise.
8780 * config/i386/sol2-64.mh: Likewise.
8781 * config/ia64/linux.mh: Likewise.
8782 * config/m32r/linux.mh: Likewise.
8783 * config/m68k/linux.mh: Likewise.
8784 * config/m68k/nbsdelf.mh: Likewise.
8785 * config/m68k/obsd.mh: Likewise.
8786 * config/m88k/obsd.mh: Likewise.
8787 * config/mips/fbsd.mh: Likewise.
8788 * config/mips/linux.mh: Likewise.
8789 * config/mips/nbsd.mh: Likewise.
8790 * config/mips/obsd64.mh: Likewise.
8791 * config/pa/linux.mh: Likewise.
8792 * config/pa/nbsd.mh: Likewise.
8793 * config/pa/obsd.mh: Likewise.
8794 * config/powerpc/aix.mh: Likewise.
8795 * config/powerpc/fbsd.mh: Likewise.
8796 * config/powerpc/linux.mh: Likewise.
8797 * config/powerpc/nbsd.mh: Likewise.
8798 * config/powerpc/obsd.mh: Likewise.
8799 * config/powerpc/ppc64-linux.mh: Likewise.
8800 * config/powerpc/spu-linux.mh: Likewise.
8801 * config/s390/linux.mh: Likewise.
8802 * config/sh/nbsd.mh: Likewise.
8803 * config/sparc/fbsd.mh: Likewise.
8804 * config/sparc/linux.mh: Likewise.
8805 * config/sparc/linux64.mh: Likewise.
8806 * config/sparc/nbsd64.mh: Likewise.
8807 * config/sparc/nbsdelf.mh: Likewise.
8808 * config/sparc/obsd64.mh: Likewise.
8809 * config/sparc/sol2.mh: Likewise.
8810 * config/tilegx/linux.mh: Likewise.
8811 * config/vax/nbsdelf.mh: Likewise.
8812 * config/vax/obsd.mh: Likewise.
8813 * config/xtensa/linux.mh: Likewise.
8814 * config/i386/i386gnu.mn: New file, with excerpts from
8815 "config/i386/i386gnu.mh".
8816 * configure: Regenerate.
8817 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
8818 *.mh files under "gdb/config".
8819 * configure.nat: New file, with contents from the
8820 "gdb/config/*/*.mh" files.
8822 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
8824 * btrace.c (btrace_clear): Free insn vector.
8826 2017-05-05 Pedro Alves <palves@redhat.com>
8828 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
8829 * configure: Regenerate.
8831 2017-05-04 Pedro Alves <palves@redhat.com>
8833 * Makefile.in (SFILES): Add progspace-and-thread.c.
8834 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
8835 (COMMON_OBS): Add progspace-and-thread.o.
8836 * breakpoint.c: Include "progspace-and-thread.h".
8837 (update_inserted_breakpoint_locations)
8838 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
8839 Use scoped_restore_current_pspace_and_thread.
8840 (create_std_terminate_master_breakpoint): Use
8841 scoped_restore_current_program_space.
8842 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
8843 (print_breakpoint_location): Use
8844 scoped_restore_current_program_space.
8845 (bp_loc_is_permanent): Use
8846 scoped_restore_current_pspace_and_thread.
8847 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
8848 (download_tracepoint_locations): Use
8849 scoped_restore_current_pspace_and_thread.
8850 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
8851 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
8852 (enum step_over_calls_kind): Moved from inferior.h.
8853 (class scoped_restore_current_thread): New class.
8854 * gdbthread.h (make_cleanup_restore_current_thread): Delete
8856 (scoped_restore_current_thread): New class.
8857 * infcmd.c: Include "common/gdb_optional.h".
8858 (continue_1, proceed_after_attach): Use
8859 scoped_restore_current_thread.
8860 (notice_new_inferior): Use scoped_restore_current_thread.
8861 * inferior.c: Include "progspace-and-thread.h".
8862 (restore_inferior, save_current_inferior): Delete.
8863 (add_inferior_command, clone_inferior_command): Use
8864 scoped_restore_current_pspace_and_thread.
8865 * inferior.h (scoped_restore_current_inferior): New class.
8866 * infrun.c: Include "progspace-and-thread.h" and
8867 "common/gdb_optional.h".
8868 (follow_fork_inferior): Use
8869 scoped_restore_current_pspace_and_thread.
8870 (scoped_restore_exited_inferior): New class.
8871 (handle_vfork_child_exec_or_exit): Use
8872 scoped_restore_exited_inferior,
8873 scoped_restore_current_pspace_and_thread,
8874 scoped_restore_current_thread and scoped_restore.
8875 (fetch_inferior_event): Use scoped_restore_current_thread.
8876 * linespec.c (decode_line_full, decode_line_1): Use
8877 scoped_restore_current_program_space.
8878 * mi/mi-main.c: Include "progspace-and-thread.h".
8879 (exec_continue): Use scoped_restore_current_thread.
8880 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
8881 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
8882 * proc-service.c (ps_pglobal_lookup): Use
8883 scoped_restore_current_program_space.
8884 * progspace-and-thread.c: New file.
8885 * progspace-and-thread.h: New file.
8886 * progspace.c (release_program_space, clone_program_space): Use
8887 scoped_restore_current_program_space.
8888 (restore_program_space, save_current_program_space)
8889 (save_current_space_and_thread): Delete.
8890 (switch_to_program_space_and_thread): Moved to
8891 progspace-and-thread.c.
8892 * progspace.h (save_current_program_space)
8893 (save_current_space_and_thread): Delete declarations.
8894 (scoped_restore_current_program_space): New class.
8895 * remote.c (remote_btrace_maybe_reopen): Use
8896 scoped_restore_current_thread.
8897 * symtab.c: Include "progspace-and-thread.h".
8898 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
8899 * thread.c (print_thread_info_1): Use
8900 scoped_restore_current_thread.
8901 (struct current_thread_cleanup): Delete.
8902 (do_restore_current_thread_cleanup)
8903 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
8904 (scoped_restore_current_thread::~scoped_restore_current_thread):
8906 (make_cleanup_restore_current_thread): Rename/convert to ...
8907 (scoped_restore_current_thread::scoped_restore_current_thread):
8909 (thread_apply_all_command): Use scoped_restore_current_thread.
8910 (thread_apply_command): Use scoped_restore_current_thread.
8911 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
8912 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
8914 2017-05-04 Pedro Alves <palves@redhat.com>
8916 * thread.c (make_cleanup_restore_current_thread): Move
8917 find_thread_ptid call before the is_stopped call. Assert that the
8918 thread is found. Replace is_stopped call by checking the thread's
8919 state directly. Remove unnecessary NULL-thread check.
8921 2017-05-04 Pedro Alves <palves@redhat.com>
8923 * corelow.c (thread_section_name): New class.
8924 (get_core_register_section, get_core_siginfo): Use it.
8926 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8928 * corelow.c (sniff_core_bfd): Remove extra semicolon.
8929 (get_core_register_section): Remove xfree of NULL pointer.
8931 2017-05-03 Alan Hayward <alan.hayward@arm.com>
8933 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
8934 * regcache.c (regcache::raw_supply_zeroed): New function.
8935 * regcache.h (regcache::raw_supply_zeroed): New declaration.
8937 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
8939 * gdbarch.sh: Remove commented out definition of
8941 * gdbarch.h: Re-generate.
8943 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
8945 * configure: Regenerate.
8947 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
8949 * solib-target.c (solib_target_relocate_section_addresses):
8950 Remove num_section_bases, num_bases, segment_bases variables.
8952 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8954 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
8956 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8958 * solib-target.c: Include <vector>
8959 (struct lm_info_target) <~lm_info_target>: Remove.
8960 <segment_bases, section_bases>: Change type to
8961 std::vector<CORE_ADDR>.
8962 (library_list_start_segment, library_list_start_section,
8963 library_list_end_library,
8964 solib_target_relocate_section_addresses): Adjust.
8966 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8968 * gdbarch.sh (software_single_step): Change return type to
8969 std::vector<CORE_ADDR>.
8970 * gdbarch.c, gdbarch.h: Re-generate.
8971 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
8973 (arm_deal_with_atomic_sequence_raw): Adjust.
8974 (thumb_get_next_pcs_raw): Adjust.
8975 (arm_get_next_pcs_raw): Adjust.
8976 (arm_get_next_pcs): Adjust.
8977 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
8978 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
8979 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
8980 (alpha_software_single_step): Adjust.
8981 * alpha-tdep.h (alpha_software_single_step): Adjust.
8982 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
8983 * arm-tdep.c (arm_software_single_step): Adjust.
8984 (arm_breakpoint_kind_from_current_state): Adjust.
8985 * arm-tdep.h (arm_software_single_step): Adjust.
8986 * breakpoint.c (insert_single_step_breakpoint): Adjust.
8987 * cris-tdep.c (cris_software_single_step): Adjust.
8988 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
8989 (micromips_deal_with_atomic_sequence): Adjust.
8990 (deal_with_atomic_sequence): Adjust.
8991 (mips_software_single_step): Adjust.
8992 * mips-tdep.h (mips_software_single_step): Adjust.
8993 * moxie-tdep.c (moxie_software_single_step): Adjust.
8994 * nios2-tdep.c (nios2_software_single_step): Adjust.
8995 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
8996 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
8997 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
8998 * s390-linux-tdep.c (s390_software_single_step): Adjust.
8999 * sparc-tdep.c (sparc_software_single_step): Adjust.
9000 * spu-tdep.c (spu_software_single_step): Adjust.
9001 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9003 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9005 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9006 * gdbarch.h: Re-generate.
9008 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9010 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9011 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9012 * python/py-instruction.c, python/py-instruction.h: New file.
9013 * python/py-record.c: Add py-instruction.h include.
9014 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9015 gdb.RecordInstruction.
9016 * python/python-internal.h: Add gdbpy_initialize_instruction
9018 * python/python.c (do_start_initialization): Add
9019 gdbpy_initialize_instruction.
9021 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9023 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9025 (btrace_func_from_recpy_func): New function.
9026 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9027 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9028 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9029 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9030 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9031 Also, use new helper functions.
9032 (btpy_list_item): Use new helper functions.
9033 (recpy_bt_function_call_history): Use new type name.
9034 (btpy_call_getset): Remove.
9035 (gdbpy_initialize_btrace): Remove code to initialize
9036 gdb.BtraceFunctionCall.
9037 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9038 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9039 recpy_bt_func_prev, recpy_bt_func_next): New export.
9040 * python/py-record.c (recpy_func_type): New static object.
9041 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9042 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9043 recpy_func_next): New function.
9044 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9045 (recpy_func_getset): New static object.
9046 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9047 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9049 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9051 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9052 (btpy_object, btpy_insn_type, btpy_new): Remove.
9053 (btpy_list_object): Use gdb.RecordInstruction type instead of
9054 gdb.BtraceInstruction type.
9055 (btrace_insn_from_recpy_insn): New function.
9056 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9058 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9059 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9060 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9061 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9062 instead of btpy_object.
9063 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9064 btpy_insn_data, btpy_insn_decode): Rename to ...
9065 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9066 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9067 recpy_bt_insn_decode): This. Also, use new helper functions.
9068 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9070 (btpy_insn_getset): Remove.
9071 (gdbpy_initialize_btrace): Remove code to initialize
9072 gdb.BtraceInstruction. Use recpy_element_object.
9073 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9074 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9075 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9076 * python/py-record.c (recpy_insn_type): New static object.
9077 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9078 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9079 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9081 (recpy_insn_getset): New static object.
9082 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9083 * python/py-record.h (recpy_element_object): New typedef.
9084 (recpy_insn_type, recpy_insn_new): New export.
9086 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9088 * py-record-btrace.c (btpy_insn_new): Removed.
9089 (btpy_insn_or_gap_new): New function.
9090 (btpy_insn_error): Removed.
9091 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9092 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9093 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9094 btpy_insn_or_gap_new instead of btpy_insn_new.
9095 (btpy_insn_getset): Remove btpy_insn_error.
9096 * py-record.c (recpy_gap_type): New static object.
9097 (recpy_gap_object): New typedef.
9098 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9099 recpy_gap_reason_string): New function.
9100 (recpy_gap_getset): New static object.
9101 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9102 * py-record.h (recpy_gap_new): New export.
9104 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9106 * python/py-record.c (recpy_ptid): Remove.
9107 (recpy_record_getset): Remove recpy_ptid.
9109 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9111 * btrace.c (btrace_fetch): Set inferior_ptid.
9112 * python/py-record-btrace.c: Add "py-record.h" include.
9113 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9114 recpy_bt_end, recpy_bt_instruction_history,
9115 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9116 in gdb.Record object instead of current ptid.
9117 * python/py-record.c: Include new "py-record.h" file.
9118 (recpy_record_object): Moved to py-record.h.
9119 * python/py-record.h: New file.
9121 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9123 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9124 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9127 2017-05-01 Joel Brobecker <brobecker@adacore.com>
9129 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9130 the past maintainers section.
9132 2017-04-28 Yao Qi <yao.qi@linaro.org>
9134 * infcmd.c (get_return_value): Use regcache ctor, and remove
9137 2017-04-28 Yao Qi <yao.qi@linaro.org>
9138 Pedro Alves <palves@redhat.com>
9140 * regcache.c (regcache::regcache): New tag dispatch ctor.
9141 (do_cooked_read): Moved above.
9142 (regcache_dup): Use the tag dispatch ctor..
9143 * regcache.h (regcache): Declare ctor, delete copy ctor and
9144 assignment operator, remove friend regcache_dup.
9146 2017-04-28 Yao Qi <yao.qi@linaro.org>
9148 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9149 call method save instead of regcache_cpy.
9150 * regcache.h (struct regcache): Make regcache_dup a friend.
9152 2017-04-28 Yao Qi <yao.qi@linaro.org>
9154 * regcache.c (struct regcache): Move to regcache.h
9155 (regcache::arch): New method.
9156 (regcache_get_ptid): Update.
9157 (get_regcache_arch): Call arch method.
9158 (get_regcache_aspace): Call method aspace.
9159 (register_buffer): Change it to method.
9160 (regcache_save): Change it to regcache::save.
9161 (regcache_restore): Likewise.
9162 (regcache_cpy_no_passthrough): Remove the declaration.
9163 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9164 (regcache_cpy_no_passthrough): Change it to method
9166 (regcache_register_status): Change it to method
9167 get_register_status.
9168 (regcache_invalidate): Change it to method invalidate.
9169 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9170 (regcache_raw_update): Change it to method raw_update.
9171 (regcache_raw_read): Likewise.
9172 (regcache_raw_read_signed): Likewise.
9173 (regcache_raw_read_unsigned): Likewise.
9174 (regcache_raw_write_signed): Likewise.
9175 (regcache_raw_write_unsigned): Likewise.
9176 (regcache_cooked_read): Likewise.
9177 (regcache_cooked_read_value): Likewise.
9178 (regcache_cooked_read_signed): Likewise.
9179 (regcache_cooked_read_unsigned): Likewise.
9180 (regcache_cooked_write_signed): Likewise.
9181 (regcache_cooked_write_unsigned): Likewise.
9182 (regcache_raw_set_cached_value): Likewise.
9183 (regcache_raw_write): Likewise.
9184 (regcache_cooked_write): Likewise.
9185 (regcache_xfer_part): Likewise.
9186 (regcache_raw_read_part): Likewise.
9187 (regcache_raw_write_part): Likewise.
9188 (regcache_cooked_read_part): Likewise.
9189 (regcache_cooked_write_part): Likewise.
9190 (regcache_raw_supply): Likewise.
9191 (regcache_raw_collect): Likewise.
9192 (regcache_transfer_regset): Likewise.
9193 (regcache_supply_regset): Likewise.
9194 (regcache_collect_regset): Likewise.
9195 (regcache_debug_print_register): Likewise.
9196 (enum regcache_dump_what): Move it to regcache.h.
9197 (regcache_dump): Change it to method dump.
9198 * regcache.h (enum regcache_dump_what): New.
9199 (class regcache): New.
9200 * target.c (target_fetch_registers): Call method
9201 debug_print_register.
9202 (target_store_registers): Likewise.
9204 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9206 * windows-nat.c (struct lm_info_windows): Initialize field.
9207 (windows_make_so): Allocate lm_info_windows with new.
9208 (windows_free_so): Free lm_info_windows with delete.
9210 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9212 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9213 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9215 (darwin_free_so): Free lm_info_darwin with delete.
9217 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9219 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9220 <l_addr_p>: Change type to bool.
9221 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9222 (svr4_free_so): Free lm_info_svr4 with delete.
9223 (svr4_copy_library_list): Replace memcpy with call to copy
9225 (library_list_start_library, svr4_default_sos): Allocate
9226 lm_info_svr4 with new.
9228 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9230 * solib-target.c (struct lm_info_target): Add destructor,
9232 <name>: Change type to std::string.
9233 (library_list_start_library): Allocate lm_info_target with new.
9234 (solib_target_free_library_list): Free lm_info_target with
9236 (solib_target_current_sos): Adapt to std::string.
9237 (solib_target_free_so): Free lm_info_target with delete.
9239 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9241 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9243 (frv_current_sos): Allocate lm_info_frv with new.
9244 (frv_relocate_main_executable): Free lm_info_frv with delete,
9246 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9248 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9250 * solib-frv.c (struct lm_info_frv): Fix indentation.
9252 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9254 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9256 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9257 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9258 and allocate with new.
9259 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9261 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9263 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9264 <filename, member_name>: Change type to std::string.
9265 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9266 (library_list_start_library): Allocate lm_info_aix with new.
9267 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9268 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9269 with copy constructor.
9271 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9273 * solist.h (struct lm_info): Remove.
9274 (struct lm_info_base): New class.
9275 (struct so_list) <lm_info>: Change type to lm_info_base *.
9276 * nto-tdep.c (struct lm_info): Remove.
9278 * solib-aix.c (struct lm_info): Rename to ...
9279 (struct lm_info_aix): ... this. Extend lm_info_base.
9280 (lm_info_p): Rename to ...
9281 (lm_info_aix_p): ... this, and adjust.
9282 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9283 solib_aix_parse_libraries, library_list_start_library,
9284 solib_aix_free_library_list, solib_aix_parse_libraries,
9285 solib_aix_get_library_list,
9286 solib_aix_relocate_section_addresses, solib_aix_free_so,
9287 solib_aix_get_section_offsets,
9288 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9290 (struct solib_aix_inferior_data) <library_list>: Adjust.
9291 * solib-darwin.c (struct lm_info): Rename to ...
9292 (struct lm_info_darwin): ... this. Extend lm_info_base.
9293 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9294 * solib-dsbt.c (struct lm_info): Rename to ...
9295 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9296 (struct dsbt_info) <main_executable_lm_info): Adjust.
9297 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9298 dsbt_relocate_section_addresses): Adjust.
9299 * solib-frv.c (struct lm_info): Rename to ...
9300 (struct lm_info_frv): ... this. Extend lm_info_base.
9301 (main_executable_lm_info): Adjust.
9302 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9303 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9304 find_canonical_descriptor_in_load_object,
9305 frv_fdpic_find_canonical_descriptor): Adjust.
9306 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9308 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9309 svr4_clear_so, svr4_copy_library_list,
9310 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9311 svr4_current_sos, svr4_fetch_objfile_link_map,
9312 solist_update_incremental): Adjust.
9313 * solib-svr4.h (struct lm_info_svr4): Move here from
9315 * solib-target.c (struct lm_info): Rename to ...
9316 (struct lm_info_target): ... this. Extend lm_info_base.
9317 (lm_info_p): Rename to ...
9318 (lm_info_target_p): ... this.
9319 (solib_target_parse_libraries, library_list_start_segment,
9320 library_list_start_section, library_list_start_library,
9321 library_list_end_library, solib_target_free_library_list,
9322 solib_target_current_sos, solib_target_free_so,
9323 solib_target_relocate_section_addresses): Adjust.
9324 * windows-nat.c (struct lm_info): Rename to ...
9325 (struct lm_info_windows): ... this. Extend lm_info_base.
9326 (windows_make_so, handle_load_dll, handle_unload_dll,
9327 windows_xfer_shared_libraries): Adjust.
9329 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9331 * solib-darwin.c (struct darwin_so_list): Remove.
9332 (darwin_current_sos): Allocate an so_list object instead of a
9333 darwin_so_list, separately allocate an lm_info object.
9334 (darwin_free_so): Free lm_info.
9336 2017-04-28 John Baldwin <jhb@FreeBSD.org>
9338 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9339 with fprintf_filtered.
9341 2017-04-28 Yao Qi <yao.qi@linaro.org>
9343 * regcache.c (regcache::regcache): New function.
9344 (regcache::~regcache): New function.
9345 (regcache_xmalloc_1): Remove.
9346 (regcache_xmalloc): Call new regcache.
9347 (regcache_xfree): Call delete regcache.
9348 (get_thread_arch_aspace_regcache): Call new regcache.
9350 2017-04-28 Yao Qi <yao.qi@linaro.org>
9352 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9353 lwp instead of ptid_get_lwp.
9355 2017-04-28 Yao Qi <yao.qi@linaro.org>
9357 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9358 lwp_info instead of getting from inferior_ptid.
9360 2017-04-27 Keith Seitz <keiths@redhat.com>
9362 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9363 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9364 (CV_CONVERSION_BADNESS): Define.
9365 (rank_one_type): Remove overly restrictive rvalue reference
9367 Add cv-qualifier checks and subranks for type equality.
9368 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9369 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9370 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9372 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9374 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9375 count when creating the object.
9377 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9378 Ulrich Weigand <uweigand@de.ibm.com>
9380 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9381 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9383 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9384 (process_xcoff_symbol): Likewise.
9385 (scan_xcoff_symtab): Likewise.
9387 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9389 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9390 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9391 (ia64_access_reg): Use get_frame_register_unsigned.
9392 (ia64_access_rse_reg): Likewise.
9393 (ia64_libunwind_frame_prev_register): Likewise.
9395 2017-04-26 Jiong Wang <jiong.wang@arm.com>
9397 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9398 * gdbarch.c: Regenerated.
9399 * gdbarch.h: Regenerated.
9400 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9401 visibility external.
9402 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9403 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9404 (enum cfa_how_kind): Move to ...
9405 (struct dwarf2_frame_state_reg_info): Likewise.
9406 (struct dwarf2_frame_state): Likewise.
9407 * dwarf2-frame.h: ... here.
9408 (dwarf2_frame_state_alloc_regs): New declaration.
9409 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9410 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9412 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9414 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9415 regcache_raw_read_unsigned.
9416 (xtensa_pseudo_register_write): Likewise.
9418 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9420 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9421 (nds32_pseudo_register_write): Likewise.
9423 2017-04-25 Yao Qi <yao.qi@linaro.org>
9425 * regcache.c (struct regcache) <readonly_p>: Change its type
9427 (regcache_xmalloc_1): Update parameter type and callers update.
9429 2017-04-25 Yao Qi <yao.qi@linaro.org>
9431 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9432 set_gdbarch_wchar_bit.
9433 * arm-tdep.c (arm_gdbarch_init): Likewise.
9435 2017-04-25 Pedro Alves <palves@redhat.com>
9437 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9438 (BothAreRelocatable, memcopy, memmove): Don't define.
9439 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9442 2017-04-25 Pedro Alves <palves@redhat.com>
9444 * common/common-defs.h: Include "common/poison.h".
9445 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9447 * common/poison.h: New file.
9448 * common/traits.h: Include <type_traits>.
9449 (Not, Or, Requires): New, moved from common/function-view.h.
9451 2017-04-25 Pedro Alves <palves@redhat.com>
9453 * breakpoint.h (struct breakpoint): In-class initialize all
9454 fields. Make boolean fields "bool".
9455 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9456 memset call and initializations no longer necessary.
9458 2017-04-25 Pedro Alves <palves@redhat.com>
9460 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9462 (pt_btrace_insn): New function.
9463 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9465 2017-04-25 Pedro Alves <palves@redhat.com>
9467 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9468 "base" field and inherit from "bp_location" instead. Add
9470 (allocate_location_exception): Use new non-default ctor.
9471 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9472 (init_bp_location): Convert to ...
9473 (bp_location::bp_location): ... this new ctor, and remove memset
9475 (base_breakpoint_allocate_location): Use the new non-default ctor.
9476 * breakpoint.h (bp_location): Now a class. Declare default and
9477 non-default ctors. In-class initialize all members.
9478 (init_bp_location): Remove declaration.
9480 2017-04-25 Pedro Alves <palves@redhat.com>
9482 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9483 assignment operator.
9485 2017-04-24 Yao Qi <yao.qi@linaro.org>
9487 * doublest.c (convert_doublest_to_floatformat): Call
9488 floatformat_totalsize_bytes.
9490 2017-04-22 Tom Tromey <tom@tromey.com>
9492 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9494 * stack.c (print_frame): Use ui_out_emit_list.
9495 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9497 * mi/mi-main.c (print_one_inferior)
9498 (mi_cmd_data_list_register_names)
9499 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9500 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9502 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9503 (mi_output_solib_attribs): Use ui_out_emit_list,
9505 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9506 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9507 (mi_cmd_stack_list_args, list_args_or_locals): Use
9509 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9510 * breakpoint.c (print_solib_event, output_thread_groups): Use
9513 2017-04-22 Tom Tromey <tom@tromey.com>
9515 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9516 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9517 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9519 2017-04-22 Tom Tromey <tom@tromey.com>
9521 * tracepoint.c (tvariables_info_1)
9522 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9524 2017-04-22 Tom Tromey <tom@tromey.com>
9526 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9527 annotate_arg_emitter.
9528 * breakpoint.c (print_mention_watchpoint)
9529 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9530 * annotate.h (struct annotate_arg_emitter): New.
9532 2017-04-22 Tom Tromey <tom@tromey.com>
9534 * record-btrace.c (record_btrace_insn_history)
9535 (record_btrace_insn_history_range, record_btrace_call_history)
9536 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9537 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9539 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9540 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9541 * skip.c (skip_info): Use ui_out_emit_tuple.
9542 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9543 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9544 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9545 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9546 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9548 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9549 (output_register, mi_cmd_data_read_memory)
9550 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9551 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9552 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9553 Use ui_out_emit_tuple.
9554 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9556 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9557 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9558 * linux-thread-db.c (info_auto_load_libthread_db): Use
9560 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9561 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9562 * disasm.c (do_mixed_source_and_assembly_deprecated)
9563 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9564 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9565 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9566 * breakpoint.c (print_one_breakpoint_location)
9567 (print_one_breakpoint): Use ui_out_emit_tuple.
9568 * auto-load.c (print_script, info_auto_load_cmd): Use
9570 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9572 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9574 * thread.c (print_thread_info_1): Remove dead code.
9576 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9578 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9580 * arm-tdep.c (selftests::arm_record_test): Likewise.
9582 2017-04-21 Yao Qi <yao.qi@linaro.org>
9584 * regcache.c (regcache_restore): Remove argument 2. Replace
9585 argument 3 with regcache. Get register status from
9586 src->register_status and get register contents from
9587 register_buffer (src, regnum).
9588 (regcache_cpy): Update.
9590 2017-04-19 Pedro Alves <palves@redhat.com>
9592 * gdbthread.h (thread): Add missing closing parenthesis in
9595 2017-04-19 Pedro Alves <palves@redhat.com>
9597 * common/refcounted-object.h: New file.
9598 * gdbthread.h: Include "common/refcounted-object.h".
9599 (thread_info): Inherit from refcounted_object and add comments.
9600 (thread_info::incref, thread_info::decref)
9601 (thread_info::m_refcount): Delete.
9602 (thread_info::deletable): Use the refcounted_object::refcount()
9604 * inferior.c (current_inferior_): Add comment.
9605 (set_current_inferior): Increment/decrement refcounts.
9606 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9607 not-deletable instead of comparing with the current inferior.
9608 (initialize_inferiors): Increment the initial inferior's refcount.
9609 * inferior.h (struct inferior): Forward declare.
9610 Include "common/refcounted-object.h".
9611 (current_inferior, set_current_inferior): Move declaration to
9612 before struct inferior's definition, and fix comment.
9613 (inferior): Inherit from refcounted_object. Add comments.
9614 * thread.c (switch_to_thread_no_regs): Reference the thread's
9615 inferior pointer directly instead of doing a ptid lookup.
9616 (switch_to_no_thread): New function.
9617 (switch_to_thread(thread_info *)): New function, factored out
9619 (switch_to_thread(ptid_t)): ... this.
9620 (restore_current_thread): Delete.
9621 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9622 fields, and add 'inf' field.
9623 (do_restore_current_thread_cleanup): Check whether old->inf is
9624 alive instead of looking up an inferior by ptid. Use
9625 switch_to_thread and switch_to_no_thread.
9626 (restore_current_thread_cleanup_dtor): Use old->inf directly
9627 instead of lookup up an inferior by id. Decref the inferior.
9628 Don't restore 'removable'.
9629 (make_cleanup_restore_current_thread): Same the inferior pointer
9630 in old, instead of the inferior number. Incref the inferior.
9631 Don't save/clear 'removable'.
9633 2017-04-19 Pedro Alves <palves@redhat.com>
9635 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9636 unittests/scoped_restore-selftests.c.
9637 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9638 * common/scoped_restore.h (scoped_restore_base): Make "class".
9639 (scoped_restore_base::release): New public method.
9640 (scoped_restore_base::scoped_restore_base): New protected ctor.
9641 (scoped_restore_base::m_saved_var): New protected field.
9642 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9643 scoped_restore_base base class instead of m_saved_var directly.
9644 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9645 (scoped_restore_tmpl::scoped_restore_tmpl(const
9646 scoped_restore_tmpl<T>&)): Likewise.
9647 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9649 (scoped_restore_tmpl::saved_var): New method.
9650 (scoped_restore_tmpl::m_saved_var): Delete.
9651 * inferior.h (inferior::detaching): Now a bool.
9652 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9654 * unittests/scoped_restore-selftests.c: New file.
9656 2017-04-19 Pedro Alves <palves@redhat.com>
9658 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9659 Re-sort in alphabetic order.
9661 2017-04-18 Pedro Alves <palves@redhat.com>
9663 * xml-support.c (obstack_xml_printf): Delete.
9664 * xml-support.h (obstack_xml_printf): Delete.
9666 2017-04-18 Pedro Alves <palves@redhat.com>
9668 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9669 vdebug, verror, body_text, start_element, end_element, name,
9670 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9671 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9672 is_xinclude>: Make private and add m_ prefix.
9673 (gdb_xml_parser::body_text): New method, based on ...
9674 (gdb_xml_body_text): ... this. Adjust.
9675 (gdb_xml_parser::vdebug): New method, based on ...
9676 (gdb_xml_debug): ... this. Adjust.
9677 (gdb_xml_parser::verror): New method, based on ...
9678 (gdb_xml_error): ... this. Adjust.
9679 (gdb_xml_parser::start_element): New method, based on ...
9680 (gdb_xml_start_element): ... this. Adjust.
9681 (gdb_xml_start_element_wrapper): Defer to
9682 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9683 (gdb_xml_parser::end_element): New method, based on ...
9684 (gdb_xml_end_element_wrapper): ... this. Adjust.
9685 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9686 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9687 (gdb_xml_parser::use_dtd): New method, based on ...
9688 (gdb_xml_use_dtd): ... this. Adjust.
9689 (gdb_xml_parser::parse): New method, based on ...
9690 (gdb_xml_parse): ... this. Adjust.
9691 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9692 (xinclude_start_include): Adjust to call the parser's name method.
9693 (xml_xinclude_default, xml_xinclude_start_doctype)
9694 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9696 (xml_process_xincludes): Adjust to call parser methods.
9697 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9700 2017-04-18 Pedro Alves <palves@redhat.com>
9702 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9703 gdb::optional<std::string>.
9704 * xml-support.c: Include <string>.
9705 (scope_level::scope_level(scope_level &&))
9706 (scope_level::~scope_level): Delete.
9707 (scope_level::body): Now a std::string.
9708 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9709 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9711 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9712 (xinclude_parsing_data::output): Now a std::string reference.
9713 (xinclude_start_include): Adjust.
9714 (xml_xinclude_default): Adjust.
9715 (xml_process_xincludes): Add 'output' parameter, and return bool.
9716 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9718 * xml-tdesc.c: Include <unordered_map> and <string>.
9719 (tdesc_xml_cache): Delete.
9720 (tdesc_xml_cache_s): Delete.
9721 (xml_cache): Now an std::unordered_map.
9722 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9723 (target_fetch_description_xml): Change return type to
9724 gdb::optional<std::string>, and adjust.
9725 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9726 (target_fetch_description_xml): Change return type to
9727 gdb::optional<std::string>.
9729 2017-04-18 Pedro Alves <palves@redhat.com>
9731 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9732 unittests/optional-selftests.c.
9733 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9734 * unittests/optional-selftests.c: New file.
9735 * unittests/optional/assignment/1.cc: New file.
9736 * unittests/optional/assignment/2.cc: New file.
9737 * unittests/optional/assignment/3.cc: New file.
9738 * unittests/optional/assignment/4.cc: New file.
9739 * unittests/optional/assignment/5.cc: New file.
9740 * unittests/optional/assignment/6.cc: New file.
9741 * unittests/optional/assignment/7.cc: New file.
9742 * unittests/optional/cons/copy.cc: New file.
9743 * unittests/optional/cons/default.cc: New file.
9744 * unittests/optional/cons/move.cc: New file.
9745 * unittests/optional/cons/value.cc: New file.
9746 * unittests/optional/in_place.cc: New file.
9747 * unittests/optional/observers/1.cc: New file.
9748 * unittests/optional/observers/2.cc: New file.
9750 2017-04-18 Pedro Alves <palves@redhat.com>
9752 * common/gdb_optional.h: Include common/traits.h.
9753 (in_place_t): New type.
9754 (in_place): New constexpr variable.
9755 (optional::optional): Remove member initialization of
9757 (optional::optional(in_place_t...)): New constructor.
9758 (optional::~optional): Use reset.
9759 (optional::optional(const optional&)): New.
9760 (optional::optional(const optional&&)): New.
9761 (optional::optional(T &)): New.
9762 (optional::optional(T &&)): New.
9763 (operator::operator=(const optional &)): New.
9764 (operator::operator=(optional &&)): New.
9765 (operator::operator= (const T &))
9766 (operator::operator= (T &&))
9767 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9768 (operator::reset): New.
9769 (operator::m_instantiated):: Add in-class initializer.
9770 * common/traits.h: Include <type_traits>.
9771 (struct And): New types.
9773 2017-04-18 Pedro Alves <palves@redhat.com>
9775 * xml-support.c: Include <vector>.
9776 (scope_level::scope_level(const gdb_xml_element *))
9777 (scope_level::scope_level(scope_level&&)): New.
9778 (scope_level::~scope_level): New.
9779 (scope_level_s): Delete.
9780 (gdb_xml_parser::scopes): Now a std::vector.
9781 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9783 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
9785 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
9786 of the scopes member. Use std::vector::emplace_back.
9788 2017-04-18 Pedro Alves <palves@redhat.com>
9790 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
9792 (gdb_xml_end_element): Change type of first parameter.
9793 (gdb_xml_cleanup): Rename to ...
9794 (gdb_xml_parser::~gdb_xml_parser): ... this.
9795 (gdb_xml_create_parser_and_cleanup): Delete with ...
9796 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
9798 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
9799 using gdb_xml_create_parser_and_cleanup.
9800 (xinclude_parsing_data): Add ctor/dtor.
9801 (xml_xinclude_cleanup): Delete.
9802 (xml_process_xincludes): Create a local xinclude_parsing_data
9803 instead of heap-allocating one. Create a local gdb_xml_parser
9804 instead of heap-allocating one with
9805 gdb_xml_create_parser_and_cleanup.
9807 2017-04-18 John Baldwin <jhb@FreeBSD.org>
9810 * fbsd-nat.c (resume_one_thread_cb): Remove.
9811 (resume_all_threads_cb): Remove.
9812 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
9813 iterate_over_threads.
9815 2017-04-17 Joel Brobecker <brobecker@adacore.com>
9817 * NEWS: Create a new section for the next release branch.
9818 Rename the section of the current branch, now that it has
9821 2017-04-17 Joel Brobecker <brobecker@adacore.com>
9823 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
9824 * version.in: Bump version to 8.0.50.DATE-git.
9826 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
9829 * windows-nat.c (windows_create_inferior): Declare 'allargs'
9830 independently of the host, and fix build breakage on Cygwin.
9832 2017-04-13 Pedro Alves <palves@redhat.com>
9834 * inferior.c (free_inferior): Convert to ...
9835 (inferior::~inferior): ... this dtor.
9836 (inferior::inferior): New ctor, factored out from ...
9837 (add_inferior_silent): ... here. Allocate the inferior with a new
9839 (delete_inferior): Call delete instead of free_inferior.
9840 * inferior.h (gdb_environ, continuation): Forward declare.
9841 (inferior): Now a class. Add in-class initialization to all
9842 members. Make boolean fields bool, except 'detaching'.
9843 (inferior::inferior): New explicit ctor.
9844 (inferior::~inferior): New.
9846 2017-04-13 Pedro Alves <palves@redhat.com>
9848 * inferior.c (init_inferior_list): Delete.
9849 * inferior.h (init_inferior_list): Delete.
9851 2017-04-13 Pedro Alves <palves@redhat.com>
9854 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
9855 (top level): Call it twice, with different thread sets.
9857 2017-04-13 Pedro Alves <palves@redhat.com>
9859 * thread.c: Include <algorithm>.
9860 (thread_array_cleanup): Delete.
9861 (scoped_inc_dec_ref): New class.
9862 (live_threads_count): New function.
9863 (set_thread_refcount): Delete.
9864 (tp_array_compar_ascending): Now a bool.
9865 (tp_array_compar): Convert to a std::sort comparison function.
9866 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
9867 and live_threads_count.
9869 2017-04-13 Pedro Alves <palves@redhat.com>
9871 * infrun.c (follow_fork_inferior): Also switch the current
9874 2017-04-13 Pedro Alves <palves@redhat.com>
9876 * breakpoint.c (watch_command_1): Save watchpoint-frame info
9877 before calling create_internal_breakpoint.
9879 2017-04-13 Pedro Alves <palves@redhat.com>
9881 * fork-child.c (execv_argv): New class.
9882 (breakup_args): Refactored as ...
9883 (execv_argv::init_for_no_shell): .. this method of execv_argv.
9884 Copy arguments to storage and replace separators with NULL
9885 terminators in place.
9886 (escape_bang_in_quoted_argument): Adjust to return bool.
9887 (execv_argv::execv_argv): New ctor.
9888 (execv_argv::init_for_shell): New method, factored out from
9889 fork_inferior. Don't strdup strings into the vector.
9890 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
9891 Remove free_vector_argv call.
9893 2017-04-13 Yao Qi <yao.qi@linaro.org>
9895 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
9898 2017-04-13 Yao Qi <yao.qi@linaro.org>
9900 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
9901 * rx-tdep.c (rx_gdbarch_init): Likewise.
9903 2017-04-13 Pedro Alves <palves@redhat.com>
9905 * breakpoint.h (struct breakpoint): Reindent.
9907 2017-04-13 Pedro Alves <palves@redhat.com>
9909 * breakpoint.c (bp_location): Rename to ...
9910 (bp_locations): ... this. All references updated.
9911 (bp_location_count): Rename to ...
9912 (bp_locations_count): ... this. All references updated.
9913 (bp_location_placed_address_before_address_max): Rename to ...
9914 (bp_locations_placed_address_before_address_max): ... this. All
9916 (bp_location_shadow_len_after_address_max): Rename to ...
9917 (bp_locations_shadow_len_after_address_max): ... this. All
9919 (bp_location_compare_addrs): Rename to ...
9920 (bp_locations_compare_addrs): ... this. All references updated.
9921 (bp_location_compare):Rename to ...
9922 (bp_locations_compare): ... this. All references updated.
9923 (bp_location_target_extensions_update): Rename to ...
9924 (bp_locations_target_extensions_update): ... this. All references
9927 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9929 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
9930 * common/common.m4: Check headers 'termios.h', 'termio.h' and
9932 * common/gdb_termios.h: New file, with parts of "terminal.h".
9933 * inflow.c: Include "gdb_termios.h".
9934 * ser-unix.c: Include "gdb_termios.h".
9935 * terminal.h: Move terminal-related defines to
9936 "common/gdb_termios.h".
9938 2017-04-12 Tom Tromey <tom@tromey.com>
9940 * probe.c (parse_probes): Update.
9941 * location.h (delete_event_location): Don't declare.
9942 (event_location_deleter::operator()): Update.
9943 * location.c (event_location_deleter::operator()): Rename from
9944 delete_event_location.
9945 * linespec.h (linespec_result) <location>: Change type to
9947 * linespec.c (canonicalize_linespec, event_location_to_sals)
9948 (decode_objc): Update.
9949 (linespec_result): Don't call delete_event_location.
9950 * breakpoint.c (create_breakpoints_sal)
9951 (bkpt_probe_create_sals_from_location)
9952 (strace_marker_create_sals_from_location): Update.
9954 2017-04-12 Tom Tromey <tom@tromey.com>
9956 * linespec.h (struct linespec_result): Add constructor and
9958 (init_linespec_result, destroy_linespec_result)
9959 (make_cleanup_destroy_linespec_result): Don't declare.
9960 * linespec.c (init_linespec_result): Remove.
9961 (linespec_result::~linespec_result): Rename from
9962 destroy_linespec_result. Update.
9963 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
9965 * breakpoint.c (create_breakpoint, break_range_command)
9966 (decode_location_default): Update.
9967 * ax-gdb.c (agent_command_1): Update.
9969 2017-04-12 Tom Tromey <tom@tromey.com>
9971 * remote.c (remote_download_tracepoint): Update.
9972 * python/py-breakpoint.c (bppy_get_location): Update.
9973 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
9974 (gdbscm_breakpoint_location): Update.
9975 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
9976 * breakpoint.h (struct breakpoint) <location, location_range_end>:
9977 Change type to event_location_up.
9978 * breakpoint.c (create_overlay_event_breakpoint)
9979 (create_longjmp_master_breakpoint)
9980 (create_std_terminate_master_breakpoint)
9981 (create_exception_master_breakpoint)
9982 (breakpoint_event_location_empty_p, print_breakpoint_location)
9983 (print_one_breakpoint_location, create_thread_event_breakpoint)
9984 (init_breakpoint_sal, create_breakpoint)
9985 (print_recreate_ranged_breakpoint, break_range_command)
9986 (init_ada_exception_breakpoint, say_where): Update.
9987 (base_breakpoint_dtor): Don't call delete_event_location.
9988 (bkpt_print_recreate, tracepoint_print_recreate)
9989 (dprintf_print_recreate, update_static_tracepoint)
9990 (breakpoint_re_set_default): Update.
9992 2017-04-12 Tom Tromey <tom@tromey.com>
9994 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
9995 type of "to_do". Update.
9996 (compute_stack_depth): Use std::vector.
9998 2017-04-12 Tom Tromey <tom@tromey.com>
10000 * printcmd.c (find_instruction_backward): Use std::vector.
10002 2017-04-12 Tom Tromey <tom@tromey.com>
10004 * symfile.c (objfilep): Remove typedef.
10005 (reread_symbols): Use a std::vector.
10007 2017-04-12 Tom Tromey <tom@tromey.com>
10009 * mi/mi-main.c (exec_direction_forward): Remove.
10010 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10011 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10013 * guile/guile.c (guile_repl_command, guile_command)
10014 (gdbscm_execute_gdb_command): Use scoped_restore.
10015 * go-exp.y (go_parse): Use scoped_restore.
10016 * d-exp.y (d_parse): Use scoped_restore.
10017 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10018 * c-exp.y (c_parse): Use scoped_restore.
10020 2017-04-12 Tom Tromey <tom@tromey.com>
10022 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10023 (mi_parse): Update return type.
10024 (mi_parse_free): Remove.
10025 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10026 (mi_parse::~mi_parse): Rename from mi_parse_free.
10027 (mi_parse_cleanup): Remove.
10028 (mi_parse): Return a unique_ptr. Use new.
10029 * mi/mi-main.c (mi_execute_command): Update.
10031 2017-04-12 Tom Tromey <tom@tromey.com>
10033 * location.c (explicit_location_lex_one): Return a
10034 unique_xmalloc_ptr.
10035 (string_to_explicit_location): Update. Remove cleanups.
10037 2017-04-12 Tom Tromey <tom@tromey.com>
10039 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10040 (compare_value_and_voffset): Change type. Update.
10041 (compute_vtable_size): Change type of "offset_vec".
10042 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10043 (gnuv3_get_typeid): Remove extraneous declaration.
10045 2017-04-12 Tom Tromey <tom@tromey.com>
10047 * charset.h (wchar_iterator): Fix comment.
10049 2017-04-12 Tom Tromey <tom@tromey.com>
10051 * charset.c (iconv_wrapper): New class.
10052 (cleanup_iconv): Remove.
10053 (convert_between_encodings): Use it.
10055 2017-04-12 Tom Tromey <tom@tromey.com>
10057 * symfile.h (increment_reading_symtab): Update type.
10058 * symfile.c (decrement_reading_symtab): Remove.
10059 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10060 * psymtab.c (psymtab_to_symtab): Update.
10061 * dwarf2read.c (dw2_instantiate_symtab): Update.
10063 2017-04-12 Tom Tromey <tom@tromey.com>
10065 * jit.c (struct jit_reader): Declare separately. Add constructor
10066 and destructor. Change type of "handle".
10067 (loaded_jit_reader): Define separately.
10068 (jit_reader_load): Update. New "new".
10069 (jit_reader_unload_command): Use "delete".
10070 * gdb-dlfcn.h (struct dlclose_deleter): New.
10071 (gdb_dlhandle_up): New typedef.
10072 (gdb_dlopen, gdb_dlsym): Update types.
10073 (gdb_dlclose): Remove.
10074 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10075 (gdb_dlsym): Change type of "handle".
10076 (make_cleanup_dlclose): Remove.
10077 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10078 * compile/compile-c-support.c (load_libcc): Update.
10080 2017-04-12 Tom Tromey <tom@tromey.com>
10082 * symtab.h (find_pcs_for_symtab_line): Change return type.
10083 * symtab.c (find_pcs_for_symtab_line): Change return type.
10084 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10085 type of "vec". Update.
10086 (ltpy_get_pcs_for_line): Update.
10087 * linespec.c (decode_digits_ordinary): Update.
10089 2017-04-12 Tom Tromey <tom@tromey.com>
10091 * tracepoint.c (actions_command): Update.
10092 * python/python.c (python_command, python_interactive_command):
10094 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10095 * guile/guile.c (guile_command): Update.
10096 * defs.h (read_command_lines, read_command_lines_1): Return
10098 (command_lines_deleter): New struct.
10099 (command_line_up): New typedef.
10100 * compile/compile.c (compile_code_command)
10101 (compile_print_command): Update.
10102 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10104 (make_cleanup_free_command_lines): Remove.
10105 * cli/cli-script.c (get_command_line, read_command_lines_1)
10106 (copy_command_lines): Return command_line_up.
10107 (while_command, if_command, read_command_lines, define_command)
10108 (document_command): Update.
10109 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10111 * breakpoint.h (breakpoint_set_commands): Change type of
10113 * breakpoint.c (breakpoint_set_commands): Change type of
10114 "commands". Update.
10115 (do_map_commands_command, update_dprintf_command_list)
10116 (create_tracepoint_from_upload): Update.
10118 2017-04-12 Tom Tromey <tom@tromey.com>
10120 * tracepoint.c (scope_info): Update.
10121 * spu-tdep.c (spu_catch_start): Update.
10122 * python/python.c (gdbpy_decode_line): Update.
10123 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10124 * python/py-breakpoint.c (bppy_init): Update.
10125 * probe.c (parse_probes): Update.
10126 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10127 * location.h (event_location_deleter): New struct.
10128 (event_location_up): New typedef.
10129 (new_linespec_location, new_address_location, new_probe_location)
10130 (new_explicit_location, copy_event_location)
10131 (string_to_event_location, string_to_event_location_basic)
10132 (string_to_explicit_location): Update return type.
10133 (make_cleanup_delete_event_location): Remove.
10134 * location.c (new_linespec_location, new_address_location)
10135 (new_probe_location, new_explicit_location, copy_event_location):
10136 Return event_location_up.
10137 (delete_event_location_cleanup)
10138 (make_cleanup_delete_event_location): Remove.
10139 (string_to_explicit_location, string_to_event_location_basic)
10140 (string_to_event_location): Return event_location_up.
10141 * linespec.c (canonicalize_linespec, event_location_to_sals)
10142 (decode_line_with_current_source)
10143 (decode_line_with_last_displayed, decode_objc): Update.
10144 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10145 * completer.c (location_completer): Update.
10146 * cli/cli-cmds.c (edit_command, list_command): Update.
10147 * breakpoint.c (create_overlay_event_breakpoint)
10148 (create_longjmp_master_breakpoint)
10149 (create_std_terminate_master_breakpoint)
10150 (create_exception_master_breakpoint)
10151 (create_thread_event_breakpoint): Update.
10152 (init_breakpoint_sal): Update. Remove some dead code.
10153 (create_breakpoint_sal): Change type of "location". Update.
10154 (create_breakpoints_sal, create_breakpoint, break_command_1)
10155 (dprintf_command, break_range_command, until_break_command)
10156 (init_ada_exception_breakpoint)
10157 (strace_marker_create_sals_from_location)
10158 (update_static_tracepoint, trace_command, ftrace_command)
10159 (strace_command, create_tracepoint_from_upload): Update.
10160 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10161 * ax-gdb.c (agent_command_1): Update.
10163 2017-04-12 Pedro Alves <palves@redhat.com>
10165 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10166 * configure.tgt: Handle i[34567]86-*-go32* and
10167 i[34567]86-*-msdosdjgpp*.
10168 * i386-tdep.c (i386_svr4_reg_to_regnum):
10170 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10172 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10173 * i386-go32-tdep.c: New file.
10174 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10177 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10179 * aix-thread.c (pd_status2str): Change return type to const char *.
10181 2017-04-12 Pedro Alves <palves@redhat.com>
10183 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10184 calls to set_gdbarch_gnu_triplet_regexp.
10186 2017-04-12 Pedro Alves <palves@redhat.com>
10189 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10191 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10192 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10193 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10194 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10195 * gdbarch.h, gdbarch.c: Regenerate.
10196 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10197 gdbarch_wchar_bit and gdbarch_wchar_signed.
10198 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10199 * arm-tdep.c (arm_gdbarch_init): Likewise.
10200 * avr-tdep.c (avr_gdbarch_init): Likewise.
10201 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10202 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10203 * i386-tdep.c (i386_go32_init_abi): Likewise.
10204 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10205 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10206 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10207 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10208 * sh-tdep.c (sh_gdbarch_init): Likewise.
10209 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10210 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10211 * windows-tdep.c (windows_init_abi): Likewise.
10212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10214 2017-04-12 Pedro Alves <palves@redhat.com>
10217 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10218 cplus_primitive_type_char32_t>: New enum values.
10219 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10220 and cplus_primitive_type_char32_t.
10221 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10222 32, use the archtecture's built-in type for char16_t and char32_t,
10223 respectively. Otherwise, fallback to init_integer_type as before,
10224 but make the type unsigned, and issue a complaint.
10225 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10227 2017-04-12 Alan Hayward <alan.hayward@arm.com>
10229 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
10230 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10232 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10234 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10237 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10239 * common/common-utils.c (free_vector_argv): New function.
10240 * common/common-utils.h: Include <vector>.
10241 (free_vector_argv): New prototype.
10242 * darwin-nat.c (darwin_create_inferior): Rewrite function
10243 prototype in order to constify "exec_file" and accept a
10244 "std::string" for "allargs".
10245 * fork-child.c: Include <vector>.
10246 (breakup_args): Rewrite function, using C++.
10247 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10248 and accept "std::string" for "allargs". Update the code to
10249 calculate "argv" based on "allargs". Update calls to "exec_fun"
10251 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10252 order to constify "exec_file" and accept a "std::string" for
10254 * go32-nat.c (go32_create_inferior): Likewise.
10255 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10256 * infcmd.c (run_command_1): Constify "exec_file". Use
10257 "std::string" for inferior arguments.
10258 * inferior.h (fork_inferior): Update prototype.
10259 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10260 prototype in order to constify "exec_file" and accept a
10261 "std::string" for "allargs".
10262 * nto-procfs.c (procfs_create_inferior): Likewise.
10263 * procfs.c (procfs_create_inferior): Likewise.
10264 * remote-sim.c (gdbsim_create_inferior): Likewise.
10265 * remote.c (extended_remote_run): Update code to accept
10266 "std::string" as argument.
10267 (extended_remote_create_inferior): Rewrite function prototype in
10268 order to constify "exec_file" and accept a "std::string" for
10270 * rs6000-nat.c (super_create_inferior): Likewise.
10271 (rs6000_create_inferior): Likewise.
10272 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10273 * windows-nat.c (windows_create_inferior): Likewise.
10275 2017-04-11 Pedro Alves <palves@redhat.com>
10277 * thread.c: Fix whitespace throughout.
10279 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10281 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10283 2017-04-11 Alan Hayward <alan.hayward@arm.com>
10285 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10287 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10290 * osdata.c (info_osdata): Check if 'type' is an empty string
10293 2017-04-10 Pedro Alves <palves@redhat.com>
10295 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10296 (ptid_to_global_thread_id, in_thread_list)
10297 (do_captured_list_thread_ids, set_resumed, set_running)
10298 (set_executing, set_stop_requested, finish_thread_state)
10299 (validate_registers_access, can_access_registers_ptid)
10300 (print_thread_info_1, switch_to_thread)
10301 (do_restore_current_thread_cleanup)
10302 (make_cleanup_restore_current_thread, thread_command)
10303 (thread_name_command): Use operator== instead of ptid_equal.
10305 2017-04-10 Pedro Alves <palves@redhat.com>
10307 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10308 (current_thread_cleanup_chain): Delete.
10309 (restore_current_thread_cleanup_dtor)
10310 (make_cleanup_restore_current_thread): Remove references to
10311 current_thread_cleanup_chain.
10313 2017-04-10 Alan Hayward <alan.hayward@arm.com>
10315 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10318 2017-04-10 Yao Qi <yao.qi@linaro.org>
10321 * gdbthread.h (thread_info::deletable): New method.
10322 (thread_info::incref): New method.
10323 (thread_info::decref): New method.
10324 (thread_info::refcount): Move it to private.
10325 * infrun.c (save_stop_context): Call inc_refcount.
10326 (release_stop_context_cleanup): Likewise.
10327 * thread.c (set_thread_exited): New function.
10328 (init_thread_list): Delete "tp" only it is deletable, otherwise
10329 call set_thread_exited.
10330 (delete_thread_1): Call set_thread_exited.
10331 (current_thread_cleanup) <inferior_pid>: Remove.
10332 <thread>: New field.
10333 (restore_current_thread_ptid_changed): Removed.
10334 (do_restore_current_thread_cleanup): Adjust.
10335 (restore_current_thread_cleanup_dtor): Don't call
10337 (set_thread_refcount): Use dec_refcount.
10338 (make_cleanup_restore_current_thread): Adjust.
10339 (thread_apply_all_command): Call inc_refcount.
10340 (_initialize_thread): Don't call
10341 observer_attach_thread_ptid_changed.
10343 2017-04-10 Yao Qi <yao.qi@linaro.org>
10345 * thread.c (delete_thread_1): Hoist code on marking thread as
10348 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10350 * windows-nat.c (windows_detach): Initialize ptid with
10353 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10355 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10357 2017-04-07 Alan Hayward <alan.hayward@arm.com>
10359 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10360 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10361 (bfin_pseudo_register_write): Likewise
10363 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10365 * common/ptid.h (struct ptid): Change to...
10366 (class ptid_t): ... this.
10367 <ptid_t>: New constructors.
10368 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10369 matches>: New methods.
10370 <make_null, make_minus_one>: New static methods.
10371 <pid>: Rename to...
10373 <lwp>: Rename to...
10375 <tid>: Rename to...
10377 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10378 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10379 as references, move comment to class ptid_t.
10380 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10381 ptid_t static methods.
10382 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10383 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10384 Take ptid arguments as references, implement using ptid_t methods.
10385 * unittests/ptid-selftests.c: New file.
10386 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10387 unittests/ptid-selftests.c.
10388 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10390 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10392 * python/python.c (python_run_simple_file): Cast mode literal to
10393 non-const char pointer as expected by PyFile_FromString.
10395 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10397 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10398 minus_one_ptid and null_ptid.
10400 2017-04-05 Pedro Alves <palves@redhat.com>
10402 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10403 * configure: Regenerate.
10405 2017-04-05 Pedro Alves <palves@redhat.com>
10407 * ada-exp.y (yyerror): Constify.
10408 * ada-lang.c (bound_name, get_selections)
10409 (ada_variant_discrim_type)
10410 (ada_variant_discrim_name, ada_value_struct_elt)
10411 (ada_lookup_struct_elt_type, is_unchecked_variant)
10412 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10413 (catch_ada_exception_command_split)
10414 (catch_ada_assert_command_split, catch_assert_command)
10415 (ada_op_name): Constify.
10416 * ada-lang.h (ada_yyerror, get_selections)
10417 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10418 * arc-tdep.c (arc_print_frame_cache): Constify.
10419 * arm-tdep.c (arm_skip_stub): Constify.
10420 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10421 (gen_aggregate_elt_ref): Constify.
10422 * bcache.c (print_bcache_statistics): Constify.
10423 * bcache.h (print_bcache_statistics): Constify.
10424 * break-catch-throw.c (catch_exception_command_1):
10425 * breakpoint.c (struct ep_type_description::description):
10427 (add_solib_catchpoint): Constify.
10428 (catch_fork_command_1): Add cast.
10429 (add_catch_command): Constify.
10430 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10432 * bsd-uthread.c (bsd_uthread_state): Constify.
10433 * buildsym.c (patch_subfile_names): Constify.
10434 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10436 * c-exp.y (yyerror): Constify.
10437 (token::oper): Constify.
10438 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10439 * c-varobj.c (cplus_describe_child): Constify.
10440 * charset.c (find_charset_names): Add cast.
10441 (find_charset_names): Constify array and add const_cast.
10442 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10443 (edit_command): Constify.
10444 * cli/cli-decode.c (lookup_cmd): Constify.
10445 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10447 (struct dump_context): Constify.
10448 (add_dump_command, restore_command): Constify.
10449 * cli/cli-script.c (get_command_line): Constify.
10450 * cli/cli-script.h (get_command_line): Constify.
10451 * cli/cli-utils.c (check_for_argument): Constify.
10452 * cli/cli-utils.h (check_for_argument): Constify.
10453 * coff-pe-read.c (struct read_pe_section_data): Constify.
10454 * command.h (lookup_cmd): Constify.
10455 * common/print-utils.c (decimal2str): Constify.
10456 * completer.c (gdb_print_filename): Constify.
10457 * corefile.c (set_gnutarget): Constify.
10458 * cp-name-parser.y (yyerror): Constify.
10459 * cp-valprint.c (cp_print_class_member): Constify.
10460 * cris-tdep.c (cris_register_name, crisv32_register_name):
10462 * d-exp.y (yyerror): Constify.
10463 (struct token::oper): Constify.
10464 * d-lang.h (d_yyerror): Constify.
10465 * dbxread.c (struct header_file_location::name): Constify.
10466 (add_old_header_file, add_new_header_file, last_function_name)
10467 (dbx_next_symbol_text, add_bincl_to_list)
10468 (find_corresponding_bincl_psymtab, set_namestring)
10469 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10470 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10471 * defs.h (command_line_input, print_address_symbolic)
10472 (deprecated_readline_begin_hook): Constify.
10473 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10475 * event-top.c (handle_line_of_input): Constify and add cast.
10476 * exceptions.c (catch_errors): Constify.
10477 * exceptions.h (catch_errors): Constify.
10478 * expprint.c (print_subexp_standard, op_string, op_name)
10479 (op_name_standard, dump_raw_expression, dump_raw_expression):
10480 * expression.h (op_name, op_string, dump_raw_expression):
10482 * f-exp.y (yyerror): Constify.
10483 (struct token::oper): Constify.
10484 (struct f77_boolean_val::name): Constify.
10485 * f-lang.c (f_word_break_characters): Constify.
10486 * f-lang.h (f_yyerror): Constify.
10487 * fork-child.c (fork_inferior): Add cast.
10488 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10489 (new_variant): Constify.
10490 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10491 * gdbarch.c: Regenerate.
10492 * gdbcore.h (set_gnutarget): Constify.
10493 * go-exp.y (yyerror): Constify.
10494 (token::oper): Constify.
10495 * go-lang.h (go_yyerror): Constify.
10496 * go32-nat.c (go32_sysinfo): Constify.
10497 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10498 * guile/scm-cmd.c (cmdscm_function): Constify.
10499 * guile/scm-param.c (pascm_param_value): Constify.
10500 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10501 (h8300sx_register_name): Constify.
10502 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10504 * ia64-tdep.c (ia64_register_names): Constify.
10505 * infcmd.c (construct_inferior_arguments): Constify.
10506 (path_command, attach_post_wait): Constify.
10507 * language.c (show_range_command, show_case_command)
10508 (unk_lang_error): Constify.
10509 * language.h (language_defn::la_error)
10510 (language_defn::la_name_of_this): Constify.
10511 * linespec.c (decode_line_2): Constify.
10512 * linux-thread-db.c (thread_db_err_str): Constify.
10513 * lm32-tdep.c (lm32_register_name): Constify.
10514 * m2-exp.y (yyerror): Constify.
10515 * m2-lang.h (m2_yyerror): Constify.
10516 * m32r-tdep.c (m32r_register_names): Constify and make static.
10517 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10518 * m88k-tdep.c (m88k_register_name): Constify.
10519 * macroexp.c (appendmem): Constify.
10520 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10521 (upgrade_type, parse_external, parse_partial_symbols)
10522 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10523 (new_symbol): Constify.
10524 * memattr.c (mem_info_command): Constify.
10525 * mep-tdep.c (register_name_from_keyword): Constify.
10526 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10528 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10529 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10530 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10532 (mi_execute_async_cli_command): Constify.
10533 * mips-tdep.c (mips_register_name): Constify.
10534 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10535 (am33_register_name, am33_2_register_name)
10536 * moxie-tdep.c (moxie_register_names): Constify.
10537 * nat/linux-osdata.c (osdata_type): Constify fields.
10538 * nto-tdep.c (nto_parse_redirection): Constify.
10539 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10540 (lookup_child_selector): Constify.
10541 (objc_methcall::name): Constify.
10542 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10543 (lookup_struct_typedef): Constify.
10544 * objfiles.c (pc_in_section): Constify.
10545 * objfiles.h (pc_in_section): Constify.
10546 * p-exp.y (struct token::oper): Constify.
10547 (yyerror): Constify.
10548 * p-lang.h (pascal_yyerror): Constify.
10549 * parser-defs.h (op_name_standard): Constify.
10550 (op_print::string): Constify.
10551 (exp_descriptor::op_name): Constify.
10552 * printcmd.c (print_address_symbolic): Constify.
10553 * psymtab.c (print_partial_symbols): Constify.
10554 * python/py-breakpoint.c (stop_func): Constify.
10555 (bppy_get_expression): Constify.
10556 * python/py-cmd.c (cmdpy_completer::name): Constify.
10557 (cmdpy_function): Constify.
10558 * python/py-event.c (evpy_add_attribute)
10559 (gdbpy_initialize_event_generic): Constify.
10560 * python/py-event.h (evpy_add_attribute)
10561 (gdbpy_initialize_event_generic): Constify.
10562 * python/py-evts.c (add_new_registry): Constify.
10563 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10564 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10565 * python/py-inferior.c (get_buffer): Add cast.
10566 * python/py-param.c (parm_constant::name): Constify.
10567 * python/py-unwind.c (fprint_frame_id): Constify.
10568 * python/python.c (gdbpy_parameter_value): Constify.
10569 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10570 * remote.c (memory_packet_config::name): Constify.
10571 (show_packet_config_cmd, remote_write_bytes)
10572 (remote_buffer_add_string):
10573 * reverse.c (exec_reverse_once): Constify.
10574 * rs6000-tdep.c (variant::name, variant::description): Constify.
10575 * rust-exp.y (rustyyerror): Constify.
10576 * rust-lang.c (rust_op_name): Constify.
10577 * rust-lang.h (rustyyerror): Constify.
10578 * serial.h (serial_ops::name): Constify.
10579 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10580 (sh_sh3e_register_name, sh_sh2e_register_name)
10581 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10582 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10583 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10584 (sh_sh4al_dsp_register_name): Constify.
10585 * sh64-tdep.c (sh64_register_name): Constify.
10586 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10587 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10588 * stabsread.c (patch_block_stabs, read_type_number)
10589 (ref_map::stabs, ref_add, process_reference)
10590 (symbol_reference_defined, define_symbol, define_symbol)
10591 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10592 (read_one_struct_field, read_struct_fields, read_baseclasses)
10593 (read_tilde_fields, read_struct_type, read_array_type)
10594 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10595 (read_huge_number, read_range_type, read_args, common_block_start)
10596 (find_name_end): Constify.
10597 * stabsread.h (common_block_start, define_symbol)
10598 (process_one_symbol, symbol_reference_defined, ref_add):
10599 * symfile.c (get_section_index, add_symbol_file_command):
10600 * symfile.h (get_section_index): Constify.
10601 * target-descriptions.c (tdesc_type::name): Constify.
10602 (tdesc_free_type): Add cast.
10603 * target.c (find_default_run_target):
10604 (add_deprecated_target_alias, find_default_run_target)
10605 (target_announce_detach): Constify.
10606 (do_option): Constify.
10607 * target.h (add_deprecated_target_alias): Constify.
10608 * thread.c (print_thread_info_1): Constify.
10609 * top.c (deprecated_readline_begin_hook, command_line_input):
10611 (init_main): Add casts.
10612 * top.h (handle_line_of_input): Constify.
10613 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10614 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10615 (tfind_command): Rename to ...
10616 (tfind_command_1): ... this and constify.
10617 (tfind_command): New function.
10618 (tfind_end_command, tfind_start_command): Adjust.
10619 (encode_source_string): Constify.
10620 * tracepoint.h (encode_source_string): Constify.
10621 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10622 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10623 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10624 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10625 * tui/tui-win.c (parse_scrolling_args): Constify.
10626 * tui/tui-windata.c (tui_erase_data_content): Constify.
10627 * tui/tui-windata.h (tui_erase_data_content): Constify.
10628 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10629 * tui/tui.c (tui_enable): Add cast.
10630 * utils.c (defaulted_query): Constify.
10631 (init_page_info): Add cast.
10632 (puts_debug, subset_compare): Constify.
10633 * utils.h (subset_compare): Constify.
10634 * varobj.c (varobj_format_string): Constify.
10635 * varobj.h (varobj_format_string): Constify.
10636 * vax-tdep.c (vax_register_name): Constify.
10637 * windows-nat.c (windows_detach): Constify.
10638 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10639 * xml-support.c (gdb_xml_end_element): Constify.
10640 * xml-tdesc.c (tdesc_start_reg): Constify.
10641 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10642 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10643 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10645 2017-04-05 Pedro Alves <palves@redhat.com>
10647 * proc-api.c (struct trans): Constify.
10648 (procfs_note): Constify.
10649 * proc-events.c (struct trans, syscall_table):
10650 * proc-flags.c (struct trans): Constify.
10651 * proc-utils.h (procfs_note): Constify.
10652 * proc-why.c (struct trans): Constify.
10653 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10654 (procfs_detach): Constify.
10655 * sol-thread.c (struct string_map): Constify.
10656 (td_err_string, td_state_string): Constify.
10658 2017-04-05 Pedro Alves <palves@redhat.com>
10660 * proc-api.c (procfs_filename): Don't initialize
10662 (prepare_to_trace): Assume procfs_filename is non-NULL.
10663 (_initialize_proc_api): Give procfs_filename a default value here.
10665 2017-04-05 Pedro Alves <palves@redhat.com>
10667 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10668 'cond_string' parameter.
10669 (extract_exception_regexp): Constify 'string' parameter.
10670 (catch_exception_command_1): Constify.
10671 * breakpoint.c (init_catchpoint)
10672 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10674 (ep_parse_optional_if_clause, catch_fork_command_1)
10675 (catch_exec_command_1): Constify.
10676 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10678 (ep_parse_optional_if_clause): Constify.
10679 * cli/cli-utils.c (remove_trailing_whitespace)
10680 (check_for_argument): Constify.
10681 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10682 non-const overload.
10683 (check_for_argument): Likewise.
10685 2017-04-05 Pedro Alves <palves@redhat.com>
10687 * event-top.c (command_line_handler): Add cast to execute_command
10689 * record-btrace.c (cmd_record_btrace_bts_start)
10690 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10691 (cmd_record_btrace_start): Add cast to execute_command call.
10692 * record-full.c (record_full_goto_insn):
10693 * record.c (record_start, record_stop): Add cast to
10694 execute_command_to_string calls.
10695 (cmd_record_start): Add cast to execute_command calls.
10697 2017-04-05 Pedro Alves <palves@redhat.com>
10699 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10700 static inline function.
10701 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10702 array and use gdb_PyArg_ParseTupleAndKeywords.
10703 * python/py-cmd.c (cmdpy_init): Likewise.
10704 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10705 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10706 (infpy_search_memory): Likewise.
10707 * python/py-objfile.c (objfpy_add_separate_debug_file)
10708 (gdbpy_lookup_objfile): Likewise.
10709 * python/py-symbol.c (gdbpy_lookup_symbol)
10710 (gdbpy_lookup_global_symbol): Likewise.
10711 * python/py-type.c (gdbpy_lookup_type): Likewise.
10712 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10713 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10716 2017-04-05 Pedro Alves <palves@redhat.com>
10718 * python/python-internal.h (gdb_PyGetSetDef): New type.
10719 * python/py-block.c (block_object_getset)
10720 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10721 * python/py-event.c (event_object_getset)
10722 (finish_breakpoint_object_getset): Likewise.
10723 * python/py-inferior.c (inferior_object_getset): Likewise.
10724 * python/py-infthread.c (thread_object_getset): Likewise.
10725 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10726 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10727 * python/py-objfile.c (objfile_getset): Likewise.
10728 * python/py-progspace.c (pspace_getset): Likewise.
10729 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10731 * python/py-record.c (recpy_record_getset): Likewise.
10732 * python/py-symbol.c (symbol_object_getset): Likewise.
10733 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10735 * python/py-type.c (type_object_getset, field_object_getset):
10737 * python/py-value.c (value_object_getset): Likewise.
10739 2017-04-05 Pedro Alves <palves@redhat.com>
10741 * python/python-internal.h (gdb_PyObject_CallMethod)
10742 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10744 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10745 (PySys_GetObject, PySys_SetPath): New macros.
10747 2017-04-05 Pedro Alves <palves@redhat.com>
10749 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10750 info_osdata_command.
10751 * osdata.c (info_osdata_command): Rename to ...
10752 (info_osdata): ... this. Constify 'type' parameter, and remove
10753 the 'from_tty' parameter. Accept NULL TYPE.
10754 (info_osdata_command): New function.
10755 * osdata.h (info_osdata_command): Remove declaration.
10756 (info_osdata): New declaration.
10758 2017-04-05 Pedro Alves <palves@redhat.com>
10760 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10761 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10762 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10764 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10765 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10766 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10768 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10769 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10770 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10771 (mi_cmd_file_list_exec_source_files)
10772 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10773 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10774 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10776 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10777 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10778 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10779 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10780 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10781 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10782 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10783 'command' parameter.
10784 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
10785 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
10786 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
10787 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
10788 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
10789 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
10790 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
10791 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
10792 (mi_cmd_var_set_update_range): Constify 'command' parameter.
10793 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
10794 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
10796 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
10797 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
10798 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
10799 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
10800 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
10801 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
10802 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
10803 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
10804 (mi_cmd_data_list_changed_registers)
10805 (mi_cmd_data_write_register_values)
10806 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
10807 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
10808 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
10809 (mi_cmd_list_features, mi_cmd_list_target_features)
10810 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
10811 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
10812 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
10813 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
10814 (mi_cmd_trace_frame_collected): Constify 'command'
10816 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
10817 'command' parameter.
10819 2017-04-05 Pedro Alves <palves@redhat.com>
10821 * ada-lang.c (ada_completer_word_break_characters): Now a const
10823 (ada_get_gdb_completer_word_break_characters): Constify.
10824 * completer.c (gdb_completer_command_word_break_characters)
10825 (gdb_completer_file_name_break_characters)
10826 (gdb_completer_quote_characters): Now const arrays.
10827 (get_gdb_completer_quote_characters): Constify.
10828 (set_rl_completer_word_break_characters): New function.
10829 (set_gdb_completion_word_break_characters)
10830 (complete_line_internal): Use it.
10831 * completer.h (get_gdb_completer_quote_characters): Constify.
10832 (set_rl_completer_word_break_characters): Declare.
10833 * f-lang.c (f_word_break_characters): Constify.
10834 * language.c (default_word_break_characters): Constify.
10835 * language.h (language_defn::la_word_break_characters): Constify.
10836 (default_word_break_characters): Constify.
10837 * top.c (init_main): Use set_rl_completer_word_break_characters.
10839 2017-04-05 Pedro Alves <palves@redhat.com>
10841 * aix-thread.c (aix_thread_pid_to_str)
10842 (aix_thread_extra_thread_info): Constify.
10843 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
10844 * bsd-uthread.c (bsd_uthread_extra_thread_info)
10845 (bsd_uthread_pid_to_str): Constify.
10846 * corelow.c (core_pid_to_str): Constify.
10847 * darwin-nat.c (darwin_pid_to_str): Constify.
10848 * fbsd-nat.c (fbsd_pid_to_str): Constify.
10849 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
10851 * gnu-nat.c (gnu_pid_to_str): Constify.
10852 * go32-nat.c (go32_pid_to_str): Constify.
10853 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
10854 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
10855 * inferior.c (inferior_pid_to_str): Constify.
10856 * linux-nat.c (linux_nat_pid_to_str): Constify.
10857 * linux-tdep.c (linux_core_pid_to_str): Constify.
10858 * linux-thread-db.c (thread_db_pid_to_str)
10859 (thread_db_extra_thread_info): Constify.
10860 * nto-tdep.c (nto_extra_thread_info): Constify.
10861 * nto-tdep.h (nto_extra_thread_info): Constify.
10862 * obsd-nat.c (obsd_pid_to_str): Constify.
10863 * procfs.c (procfs_pid_to_str): Constify.
10864 * ravenscar-thread.c (ravenscar_extra_thread_info)
10865 (ravenscar_pid_to_str): Constify.
10866 * remote-sim.c (gdbsim_pid_to_str): Constify.
10867 * remote.c (remote_threads_extra_info, remote_pid_to_str):
10869 * sol-thread.c (solaris_pid_to_str): Constify.
10870 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
10871 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
10872 * target.c (default_pid_to_str, target_pid_to_str)
10873 (normal_pid_to_str, default_pid_to_str): Constify.
10874 * target.h (target_ops::to_pid_to_str)
10875 (target_ops::to_extra_thread_info): Constify.
10876 (target_pid_to_str, normal_pid_to_str): Constify.
10877 * windows-nat.c (windows_pid_to_str): Constify.
10878 * gdbarch.sh (core_pid_to_str): Constify.
10879 * target-delegates.c: Regenerate.
10880 * gdbarch.h, gdbarch.c: Regenerate.
10882 2017-04-05 Pedro Alves <palves@redhat.com>
10884 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
10885 the memory of the temporary warning_pre_print override.
10886 * utils.c (warning_pre_print): Constify.
10887 * utils.h (warning_pre_print): Constify.
10889 2017-04-05 Pedro Alves <palves@redhat.com>
10891 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
10892 (shell_command): New function.
10893 (make_command): Use std::string.
10894 (init_cli_cmds): Register shell_command instead of shell_escape.
10896 2017-04-05 Pedro Alves <palves@redhat.com>
10898 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
10899 * tracepoint.c (default_collect): Don't initialize.
10901 2017-04-05 Pedro Alves <palves@redhat.com>
10903 * macroexp.c (macro_buffer::shared): Now a bool.
10904 (init_buffer): Update.
10905 (init_shared_buffer): Constify 'addr' parameter.
10906 (substitute_args, expand, macro_expand, macro_expand_next): Remove
10909 2017-04-05 Pedro Alves <palves@redhat.com>
10911 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
10912 * disasm.c (set_disassembler_options): Constify local.
10913 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
10915 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
10918 * tracefile.c (tsave_command): Fix argument parsing for '-r'
10921 2017-04-05 Yao Qi <yao.qi@linaro.org>
10923 * frame.c (frame_unwind_register_unsigned): Call
10924 frame_unwind_register_value.
10926 2017-04-05 Yao Qi <yao.qi@linaro.org>
10928 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
10929 Use gdb_test_multiple, and don't match anchor.
10931 2017-04-05 Pedro Alves <palves@redhat.com>
10933 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
10934 (Write After Approval): Remove Simon Marchi.
10936 2017-04-05 Pedro Alves <palves@redhat.com>
10938 * common/gdb_optional.h (optional::optional): Make constexpr and
10939 initialize m_dummy.
10941 2017-04-04 John Baldwin <jhb@FreeBSD.org>
10943 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10944 (amd64fbsd_jmp_buf_reg_offset): Remove.
10945 (amd64fbsd_supply_uthread): Remove function.
10946 (amd64fbsd_collect_uthread): Remove function.
10947 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
10948 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
10949 (x86_64-*-freebsd*): Remove bsd-uthread.o.
10950 (fbsd-nat.c): Update comment.
10951 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10952 (i386fbsd_jmp_buf_reg_offset): Remove.
10953 (i386fbsd_supply_uthread): Remove function.
10954 (i386fbsd_collect_uthread): Remove function.
10955 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
10957 2017-04-04 John Baldwin <jhb@FreeBSD.org>
10959 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
10960 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
10961 * NEWS: Mention that support for FreeBSD/alpha was removed.
10962 * alpha-fbsd-tdep.c: Delete file.
10963 * config/alpha/fbsd.mh: Delete file.
10964 * configure.host: Delete alpha*-*-freebsd* and
10965 alpha*-*-kfreebsd*-gnu.
10966 * configure.tgt: Delete alpha*-*-freebsd* and
10967 alpha*-*-kfreebsd*-gnu.
10969 2017-04-04 John Baldwin <jhb@FreeBSD.org>
10971 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
10972 amd64bsd_store_inferior_registers): Use ptid from regcache.
10974 2017-04-04 Pedro Alves <palves@redhat.com>
10976 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
10977 data fields, make them private and add "m_" prefixes.
10978 (lnp_state_machine::lnp_state_machine): New ctor.
10979 (record_line, check_line_address, handle_set_discriminator)
10980 (handle_set_address, handle_advance_pc, handle_special_opcode)
10981 (handle_advance_line, handle_set_file, handle_negate_stmt)
10982 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
10983 (end_sequence, advance_line): New methods.
10984 (m_gdbarch, m_record_lines_p): New fields.
10985 (lnp_reader_state): Delete.
10986 (dwarf_record_line): Rename to ...
10987 (lnp_state_machine::record_line): ... adjust.
10988 (init_lnp_state_machine): Delete.
10989 (lnp_state_machine::lnp_state_machine): New.
10990 (check_line_address): Rename to ...
10991 (lnp_state_machine::check_line_address): This.
10992 (dwarf_decode_lines_1): Remove reference to "reader_state".
10993 Adjust lnp_state_machine having a non-default ctor. Use bool.
10994 State machine internal state manipulation moved to
10995 lnp_state_machine methods.
10997 2017-04-04 Pedro Alves <palves@redhat.com>
10999 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11000 unittests/offset-type-selftests.c.
11001 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11002 * common/offset-type.h: New file.
11003 * common/preprocessor.h: New file.
11004 * common/traits.h: New file.
11005 * common/valid-expr.h: New file.
11006 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11007 sect_offset and cu_offset strong typedefs throughout.
11008 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11009 typedefs throughout.
11010 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11011 sect_offset and cu_offset strong typedefs throughout.
11012 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11013 typedefs throughout.
11014 * gdbtypes.h: Include "common/offset-type.h".
11015 (cu_offset): Now an offset type (strong typedef) instead of a
11017 (sect_offset): Likewise.
11018 (union call_site_parameter_u): Rename "param_offset" field to
11020 * unittests/offset-type-selftests.c: New file.
11022 2017-04-04 Pedro Alves <palves@redhat.com>
11024 * common/underlying.h: New file.
11025 * dwarf2read.c: Include "common/gdb_optional.h" and
11026 "common/underlying.h".
11027 (dir_index, file_name_index): New types.
11028 (file_entry): Use them.
11029 (file_entry::include): Use to_underlying.
11030 (line_header::add_file_name): Use dir_index.
11031 (read_formatted_entries): Use gdb::optional. Read form before
11032 writting to file_entry.
11033 (dwarf_decode_line_header): Use dir_index.
11034 (lnp_state_machine::current_file): Use to_underlying.
11035 (lnp_state_machine::file): Change type to file_name_index.
11036 (dwarf_record_line): Use to_underlying.
11037 (init_lnp_state_machine): Use file_name_index.
11038 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11040 2017-04-04 Pedro Alves <palves@redhat.com>
11042 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11043 operator bool, has_value and get methods.
11045 2017-04-04 Pedro Alves <palves@redhat.com>
11047 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11049 (line_header): Initialize all data fields. Change type of
11050 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11051 Change type of include_dirs to std::vector<const char *>. Remove
11052 num_include_dirs, include_dirs_size. Change type of file_names to
11053 std::vector<file_entry>. Remove num_file_names, file_names_size.
11054 (line_header::line_header): New.
11055 (line_header::add_include_dir, line_header::add_file_name): New
11057 (line_header::include_dir_at): Remove NULL check.
11058 (line_header::file_name_at): Add const overload.
11059 (line_header_up): New unique_ptr typedef.
11060 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11061 std::vector. Remove free_line_header call.
11062 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11063 free_line_header call.
11064 (free_cu_line_header): Delete.
11065 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11066 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11067 Adjust to use std::vector.
11068 (free_line_header): Delete.
11069 (free_line_header_voidp): Use delete.
11070 (add_include_dir): Replace with ...
11071 (line_header::add_include_dir): ... this method. Use std::vector.
11072 (add_file_name): Replace with ...
11073 (line_header::add_file_name): ... this method. Use std::vector.
11074 (add_include_dir_stub): Delete.
11075 (read_formatted_entries): Remove memset.
11076 (dwarf_decode_line_header): Return a line_header_up instead of a
11077 raw pointer. Remove cleanup handling. Pass lambdas to
11078 read_formatted_entries. Adjust to use line_header methods.
11079 (dwarf_decode_lines_1): Adjust to use line_header methods.
11080 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11083 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11085 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11086 instead of struct ptid.
11088 2017-05-04 Alan Hayward <alan.hayward@arm.com>
11090 * frame.c (get_frame_register_bytes): Unwind using value.
11091 (put_frame_register_bytes): Likewise.
11093 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11095 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11098 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11100 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11102 2017-03-29 Yao Qi <yao.qi@linaro.org>
11104 * gdbthread.h (struct thread_info): Declare constructor and
11105 destructor. Add some in-class member initializers.
11106 * thread.c (free_thread): Remove.
11107 (init_thread_list): Call delete instead of free_thread.
11108 (new_thread): Call thread_info constructor.
11109 (thread_info::thread_info): New function.
11110 (thread_info::~thread_info): New function.
11111 (delete_thread_1): Call delete instead of free_thread.
11112 (make_cleanup_restore_current_thread): Move tp and frame to
11115 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11117 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11118 (arc_skip_prologue): Likewise.
11119 (arc_make_frame_cache): Likewise.
11120 (arc_pv_get_operand): New function.
11121 (arc_is_in_prologue): Likewise.
11122 (arc_analyze_prologue): Likewise.
11123 (arc_print_frame_cache): Likewise.
11124 (MAX_PROLOGUE_LENGTH): New constant.
11126 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11128 * configure.tgt: Add arc-insn.o.
11129 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11130 (dump_arc_instruction_command): New function.
11131 (arc_fprintf_disasm): Likewise.
11132 (arc_disassemble_info): Likewise.
11133 (arc_insn_get_operand_value): Likewise.
11134 (arc_insn_get_operand_value_signed): Likewise.
11135 (arc_insn_get_memory_base_reg): Likewise.
11136 (arc_insn_get_memory_offset): Likewise.
11137 (arc_insn_get_branch_target): Likewise.
11138 (arc_insn_dump): Likewise.
11139 (arc_insn_get_linear_next_pc): Likewise.
11140 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11141 (arc_disassemble_info): Likewise.
11142 (arc_insn_get_branch_target): Likewise.
11143 (arc_insn_get_linear_next_pc): Likewise.
11144 * NEWS: Mention new "maint print arc arc-instruction".
11146 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11148 * arc-tdep (maintenance_print_arc_list): New variable.
11149 (maintenance_print_arc_command): New function.
11151 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11153 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11154 Add "limm" and "reserved".
11155 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11156 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11157 * arc-tdep.h (arc_regnum): Likewise.
11159 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11161 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11162 for THREADPTR register.
11163 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11165 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11166 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11167 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11169 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11171 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11172 registers above gdbarch_num_regs (gdbarch) as privileged in
11175 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11177 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11178 for a single specified register or for all registers in
11179 a0_base..a0_base + C0_NREGS range.
11180 (supply_gregset_reg): Call regcache_raw_supply for a single
11181 specified register or for all registers in a0_base..a0_base +
11184 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11186 * arch/xtensa.h (C0_NREGS): Add definition.
11187 * xtensa-tdep.c (C0_NREGS): Remove definition.
11189 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11191 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11192 Drop xtensa_default_isa initialization.
11193 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11195 2017-03-27 Pedro Alves <palves@redhat.com>
11197 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11198 (file_entry::include_dir): New method.
11199 (line_header::include_dir_at, line_header::file_name_at): New
11201 (setup_type_unit_groups, setup_type_unit_groups)
11202 (psymtab_include_file_name): Simplify using the new methods.
11203 (lnp_state_machine) <the_line_header>: New field.
11204 <file>: Add comment.
11205 (lnp_state_machine::current_file): New method.
11206 (dwarf_record_line): Simplify using the new methods.
11207 (init_lnp_state_machine): Initialize the "the_line_header" field.
11208 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11209 Simplify using the new methods.
11211 2017-03-27 Pedro Alves <palves@redhat.com>
11213 * cp-name-parser.y (make_empty): Delete.
11214 (demangler_special, nested_name, ptr_operator, array_indicator)
11215 (direct_declarator, declarator_1): Use fill_comp instead of
11218 2017-03-27 Pedro Alves <palves@redhat.com>
11220 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11221 to ATTRIBUTE_PRINTF.
11222 * solib-target.c (library_list_start_list): Print "string" not
11224 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11225 gdb_xml_error call.
11227 2017-03-27 Pedro Alves <palves@redhat.com>
11229 * dwarf2read.c (struct file_and_directory): New.
11230 (dwarf2_get_dwz_file): Adjust to use std::string.
11231 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11232 (find_file_and_directory): Adjust to return a file_and_directory
11234 (read_file_scope): Adjust to use file_and_directory. Remove
11235 make_cleanup/do_cleanups calls.
11236 (open_and_init_dwp_file): Adjust to use std::string. Remove
11237 make_cleanup/do_cleanups calls.
11238 * python/python.c (do_start_initialization): Adjust to ldirname
11239 returning a std::string.
11240 * utils.c (ldirname): Now returns a std::string.
11241 * utils.h (ldirname): Change return type to std::string.
11242 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11243 returning a std::string.
11244 * xml-tdesc.c (file_read_description_xml): Likewise.
11246 2017-03-24 Alan Hayward <alan.hayward@arm.com>
11248 * regcache.c (regcache_debug_print_register): New function.
11249 * regcache.h (regcache_debug_print_register): New declaration.
11250 * target.c (debug_print_register): Remove.
11251 (target_fetch_registers): Call regcache_debug_print_register.
11252 (target_store_registers): Likewise.
11254 2017-03-24 Pádraig Brady <pbrady@fb.com>
11256 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11257 reference beyond the 'lh->include_dirs' array before accessing to
11259 (psymtab_include_file_name): Likewise.
11260 (dwarf_decode_lines_1): Likewise.
11261 (dwarf_decode_lines): Likewise.
11262 (file_file_name): Likewise.
11264 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11266 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11268 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11269 ps_lsetfpregs): Likewise.
11270 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11271 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11272 ps_lsetfpregs): Likewise.
11273 * target.c (target_fetch_registers, target_store_registers):
11276 2017-03-23 Alan Hayward <alan.hayward@arm.com>
11278 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11280 2017-03-23 Yao Qi <yao.qi@linaro.org>
11282 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11283 (_initialize_aarch64_tdep): Register it.
11284 (aarch64_record_load_store): Handle PRFM instruction.
11285 (aarch64_process_record_test): New function.
11287 2017-03-23 Yao Qi <yao.qi@linaro.org>
11289 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11292 2017-03-23 Yao Qi <yao.qi@linaro.org>
11294 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11296 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11298 python/python.c (do_start_initialization): Fix memory leak.
11300 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11302 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11303 using get_ptrace_pid.
11304 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11306 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11307 inferior_ptid instead of pid.
11309 2017-03-22 Yao Qi <yao.qi@linaro.org>
11311 * aarch64-tdep.c: Wrap locally used classes in anonymous
11313 * arm-tdep.c: Likewise.
11314 * linespec.c: Likewise.
11315 * ui-out.c: Likewise.
11317 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
11320 * python/lib/gdb/printer/bound_registers.py: Import sys.
11322 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11324 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11325 windows_thread_info parameter and use it instead of
11327 (windows_fetch_inferior_registers): Don't set current_thread,
11328 pass the thread to do_windows_fetch_inferior_registers. Use
11329 ptid from regcache instead of inferior_ptid.
11330 (do_windows_store_inferior_registers): Add windows_thread_info
11331 parameter and use it instead of current_thread.
11332 (windows_store_inferior_registers): Don't set current_thread,
11333 pass the thread to do_windows_store_inferior_registers. Use
11334 ptid from regcache instead of inferior_ptid.
11336 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11338 * ser-mingw.c (ser_windows_raw): Remove reference to
11339 struct serial::current_timeout.
11341 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11344 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11345 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11346 (sparc64_fsr_type): Fix %fsr decoding.
11348 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11350 * python/py-record-btrace.c (btpy_insn_data): Change return type
11353 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11355 * spu-linux-nat.c (spu_fetch_inferior_registers,
11356 spu_store_inferior_registers): Use ptid from regcache, set and
11357 restore inferior_ptid.
11358 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11361 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11363 * i386-linux-nat.c (fetch_register, store_register,
11364 i386_linux_fetch_inferior_registers,
11365 i386_linux_store_inferior_registers): Use ptid from regcache.
11366 * ia64-linux-nat.c (ia64_linux_fetch_register,
11367 ia64_linux_store_register): Likewise.
11368 * inf-ptrace.c (inf_ptrace_fetch_register,
11369 inf_ptrace_store_register): Likewise.
11370 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11371 m32r_linux_store_inferior_registers): Likewise.
11372 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11373 m68kbsd_store_inferior_registers): Likewise.
11374 * m68k-linux-nat.c (fetch_register, store_register,
11375 m68k_linux_fetch_inferior_registers,
11376 m68k_linux_store_inferior_registers): Likewise.
11377 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11378 m88kbsd_store_inferior_registers): Likewise.
11379 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11380 mips_fbsd_store_inferior_registers): Likewise.
11381 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11382 mips64_linux_regsets_store_registers): Likewise.
11383 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11384 mipsnbsd_store_inferior_registers): Likewise.
11385 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11386 mips64obsd_store_inferior_registers): Likewise.
11387 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11389 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11390 ppcfbsd_store_inferior_registers): Likewise.
11391 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11392 ppc_linux_store_inferior_registers): Likewise.
11393 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11394 ppcnbsd_store_inferior_registers): Likewise.
11395 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11396 ppcobsd_store_registers): Likewise.
11397 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11399 * ravenscar-thread.c (ravenscar_fetch_registers,
11400 ravenscar_store_registers, ravenscar_prepare_to_store):
11402 * record-btrace.c (record_btrace_fetch_registers,
11403 record_btrace_store_registers, record_btrace_prepare_to_store):
11405 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11406 Lookup inferior using ptid from regcache, instead of
11408 * remote.c (remote_fetch_registers, remote_store_registers): Use
11409 ptid from regcache.
11410 * rs6000-nat.c (fetch_register, store_register): Likewise.
11411 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11412 s390_linux_store_inferior_registers): Likewise.
11413 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11414 shnbsd_store_inferior_registers): Likewise.
11415 * sol-thread.c (sol_thread_fetch_registers,
11416 sol_thread_store_registers): Likewise.
11417 * sparc-nat.c (sparc_fetch_inferior_registers,
11418 sparc_store_inferior_registers): Likewise.
11419 * tilegx-linux-nat.c (fetch_inferior_registers,
11420 store_inferior_registers): Likewise.
11421 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11422 vaxbsd_store_inferior_registers): Likewise.
11423 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11424 store_xtregs): Likewise.
11426 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11429 * NEWS: Mention support for rvalue references in GDB and python.
11430 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11431 supports both lvalue and rvalue references.
11433 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11436 * gdbtypes.c (rank_one_type): Implement overloading
11437 resolution rules regarding rvalue references.
11439 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11442 * aarch64-tdep.c (aarch64_type_align)
11443 (aarch64_extract_return_value, aarch64_store_return_value): Change
11444 lvalue reference type checks to general reference type checks.
11445 * amd64-tdep.c (amd64_classify): Likewise.
11446 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11448 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11449 (arm_store_return_value): Likewise.
11450 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11451 * c-typeprint.c (c_print_type): Likewise.
11452 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11453 (cplus_number_of_children, cplus_describe_child): Likewise.
11454 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11455 * completer.c (expression_completer): Likewise.
11456 * cp-support.c (make_symbol_overload_list_adl_namespace):
11458 * darwin-nat-info.c (info_mach_region_command): Likewise.
11459 * dwarf2loc.c (entry_data_value_coerce_ref)
11460 (value_of_dwarf_reg_entry): Likewise.
11461 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11462 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11464 * findvar.c (extract_typed_address, store_typed_address):
11466 * gdbtypes.c (rank_one_type): Likewise.
11467 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11468 * infcall.c (value_arg_coerce): Likewise.
11469 * language.c (pointer_type): Likewise.
11470 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11472 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11473 * mn10300-tdep.c (mn10300_type_align): Likewise.
11474 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11475 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11476 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11478 * printcmd.c (print_formatted, x_command): Likewise.
11479 * python/py-type.c (typy_get_composite, typy_template_argument):
11481 * python/py-value.c (valpy_referenced_value)
11482 (valpy_get_dynamic_type, value_has_field): Likewise.
11483 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11484 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11485 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11486 * spu-tdep.c (spu_scalar_value_p): Likewise.
11487 * symtab.c (lookup_symbol_aux): Likewise.
11488 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11489 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11491 * valops.c (value_cast_pointers, value_cast)
11492 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11493 (value_struct_elt, value_struct_elt_bitpos)
11494 (value_find_oload_method_list, find_overload_match)
11495 (value_rtti_indirect_type): Likewise.
11496 * valprint.c (val_print_scalar_type_p, generic_val_print):
11498 * value.c (value_actual_type, value_as_address, unpack_long)
11499 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11500 (coerce_ref): Likewise.
11501 * varobj.c (varobj_get_value_type): Likewise.
11503 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11506 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11507 table of constants.
11508 * python/lib/gdb/command/explore.py: Support exploring values
11509 of rvalue reference types.
11510 * python/lib/gdb/types.py: Implement get_basic_type() for
11511 rvalue reference types.
11512 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11514 * python/py-value.c (valpy_getitem): Add an rvalue reference
11516 (valpy_reference_value): Add new parameter "refcode".
11517 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11518 New wrappers for valpy_reference_value().
11519 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11520 (gdbpy_invoke_xmethod): Likewise.
11522 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11525 * dwarf2read.c (process_die, read_type_die_1): Handle the
11526 DW_TAG_rvalue_reference_type DIE.
11527 (read_tag_reference_type): Add new parameter "refcode".
11529 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11532 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11533 (c_type_print_modifier, c_type_print_varspec_suffix)
11534 (c_type_print_base): Support printing rvalue reference types.
11535 * c-valprint.c (c_val_print, c_value_print): Support printing
11536 rvalue reference values.
11538 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11541 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11543 * cp-support.c (replace_typedefs): Handle
11544 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11545 * python/py-type.c (typy_lookup_type): Likewise.
11547 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11550 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11551 * parse.c (insert_type): Change assert statement.
11552 (follow_types): Handle rvalue reference types.
11553 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11556 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11559 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11560 value_ref() interface.
11561 * c-valprint.c (c_value_print): Likewise.
11562 * infcall.c (value_arg_coerce): Likewise.
11563 * python/py-value.c (valpy_reference_value): Likewise.
11564 * valops.c (value_cast, value_reinterpret_cast)
11565 (value_dynamic_cast, typecmp): Likewise.
11566 (value_ref): Parameterize by kind of return value reference type.
11567 * value.h (value_ref): Add new parameter "refcode".
11569 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11572 * dwarf2read.c (read_tag_reference_type): Use
11573 lookup_lvalue_reference_type() instead of lookup_reference_type().
11574 * eval.c (evaluate_subexp_standard): Likewise.
11575 * f-exp.y: Likewise.
11576 * gdbtypes.c (make_reference_type, lookup_reference_type):
11577 Generalize with rvalue reference types.
11578 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11579 convenience wrappers for lookup_reference_type().
11580 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11581 reference kind parameter.
11582 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11583 wrappers for lookup_reference_type().
11584 * guile/scm-type.c (gdbscm_type_reference): Use
11585 lookup_lvalue_reference_type() instead of lookup_reference_type().
11586 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11587 * parse.c (follow_types): Likewise.
11588 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11589 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11591 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11592 (gdbpy_invoke_xmethod): Likewise.
11593 * stabsread.c: Provide extra argument to make_reference_type()
11595 * valops.c (value_ref, value_rtti_indirect_type): Use
11596 lookup_lvalue_reference_type() instead of lookup_reference_type().
11598 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11601 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11602 (TYPE_IS_REFERENCE): New macro.
11603 (struct type): Add rvalue_reference_type field.
11604 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11606 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11608 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11609 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11610 New function definition.
11611 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11612 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11613 New function declaration.
11614 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11615 * mi/mi-interp.h: New file.
11616 * solib.c (info_sharedlibrary_command): Replace for loop with
11618 * solib.h (update_solib_list): New function declaration.
11619 (so_list_head): Move macro.
11620 * solist.h (ALL_SO_LIBS): New macro.
11622 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11624 * infcmd.c (post_create_inferior): Remove unused argument in
11626 * remote.c (remote_start_remote): Likewise.
11627 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11628 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11629 (enable_break): Likewise.
11630 * solib.c (update_solib_list): Remove unused target argument
11631 and its documentation.
11632 (solib_add): Remove unused target argument. Remove unused
11633 argument in call to update_solib_list.
11634 (info_sharedlibrary_command): Remove unused argument in call
11635 to update_solib_list.
11636 (sharedlibrary_command): Remove unused argument in call to
11638 (handle_solib_event): Likewise.
11639 (reload_shared_libraries): Likewise.
11640 * solib.h (solib_add): Remove unused target argument.
11642 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11644 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11645 (s390_displaced_step_fixup): Cover relative branches with the
11646 default fixup handling. This fixes lack of support for some
11647 relative branch instructions.
11649 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11651 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11652 ptid from regcache.
11654 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11656 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11657 i386_darwin_store_inferior_registers): Use ptid from regcache.
11659 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11661 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11662 i386bsd_store_inferior_registers): Use ptid from regcache.
11664 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11666 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11667 hppaobsd_store_registers): Use ptid from regcache.
11669 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11671 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11672 hppanbsd_store_registers): Use ptid from regcache.
11674 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11676 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11677 from regcache. Use get_ptrace_pid.
11679 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11681 * corelow.c (get_core_register_section): Use ptid from regcache,
11684 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11686 * bsd-uthread.c (bsd_uthread_fetch_registers,
11687 bsd_uthread_store_registers): Use ptid from regcache, set and
11688 restore inferior_ptid.
11690 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11692 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11693 fetch_fp_regs, store_register, store_regs, store_fp_register,
11694 store_fp_regs): Use ptid from regcache.
11696 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11698 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11699 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11700 store_vfp_regs): Use ptid from regcache.
11702 2017-03-17 Pedro Alves <palves@redhat.com>
11705 * ser-base.c (ser_base_wait_for): Add comment.
11706 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11708 * ser-unix.c (hardwire_raw): Remove reference to
11709 scb->current_timeout.
11710 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11711 (hardwire_ops): Install ser_base_readchar instead of
11713 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11716 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
11719 * python/lib/gdb/printer/bound_registers.py: Add support for
11722 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11724 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11725 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11726 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11727 byte_offset to subobj_byte_offset. Fix the handling of
11728 DWARF_VALUE_STACK on big-endian targets when coming via an
11730 (dwarf2_evaluate_loc_desc): Adjust call to
11731 dwarf2_evaluate_loc_desc_full.
11732 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11733 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11735 2017-03-16 Yao Qi <yao.qi@linaro.org>
11737 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11738 and REVSH instructions.
11740 2017-03-16 Yao Qi <yao.qi@linaro.org>
11742 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11743 (arm_record_test): Declare.
11744 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11745 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11746 align with the manual.
11747 (thumb_record_misc): Adjust the code order to align with the
11749 (thumb2_record_decode_insn_handler): Fix instruction matching.
11750 (instruction_reader_thumb): New class.
11751 (arm_record_test): New function.
11753 2017-03-16 Yao Qi <yao.qi@linaro.org>
11755 * arm-tdep.c (abstract_memory_reader): New class.
11756 (instruction_reader): New class.
11757 (extract_arm_insn): Add argument 'reader'. Callers updated.
11758 (decode_insn): Likewise.
11760 2017-03-16 Doug Evans <dje@google.com>
11762 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11763 member. Change type of TYPE member to SCM. All uses updated.
11764 (lsscm_make_lazy_string_smob): Add assert.
11765 (lsscm_make_lazy_string): Flag bad length values.
11766 (lsscm_elt_type): New function.
11767 (gdbscm_lazy_string_to_value): Rewrite to use
11768 lsscm_safe_lazy_string_to_value.
11769 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11770 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11771 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11773 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11774 * guile/scm-type.c (tyscm_scm_to_type): New function.
11776 2017-03-15 Doug Evans <dje@google.com>
11778 PR python/17728, python/18439, python/18779
11779 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11780 member. Change type of TYPE member to PyObject *. All uses updated.
11781 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11782 (gdbpy_create_lazy_string_object): Flag bad length values.
11783 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
11784 Handle typedefs in incoming type.
11785 (stpy_lazy_string_elt_type): New function.
11786 (gdbpy_extract_lazy_string): Call it.
11787 * python/py-value.c (valpy_lazy_string): Flag bad length values.
11788 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
11789 typedefs in incoming type.
11791 2017-03-16 Doug Evans <dje@google.com>
11793 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11794 * guile/scm-type.c (tyscm_scm_to_type): New function.
11796 2017-03-16 Jiong Wang <jiong.wang@arm.com>
11798 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
11799 "ULONGEST" for "skip".
11801 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11804 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
11805 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
11806 (inf_ptrace_peek_poke): ...here. New function. Now also loop
11807 over ptrace peek/poke until end of buffer or error.
11809 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
11811 * parse.c (length_of_subexp): Make static.
11812 * parser-defs.h (length_of_subexp): Remove.
11814 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11816 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
11819 2017-03-14 Pedro Alves <palves@redhat.com>
11821 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
11822 (main): Use std::unique_ptr. Remove calls to
11823 cp_demangled_name_parse_free.
11825 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11827 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
11828 alphabsd_store_inferior_registers): Use regcache->ptid instead
11831 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11833 * aix-thread.c (aix_thread_fetch_registers,
11834 aix_thread_store_registers): Use regcache->ptid instead of
11837 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11839 * aarch64-linux-nat.c (fetch_gregs_from_thread,
11840 store_gregs_to_thread, fetch_fpregs_from_thread,
11841 store_fpregs_to_thread): Use regcache->ptid instead of
11844 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11846 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
11847 amd64_linux_fetch_inferior_registers): Use regcache->ptid
11848 instead of inferior_ptid.
11850 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11852 * target.c (target_fetch_registers, target_store_registers): Add
11855 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11857 * regcache.h (regcache_get_ptid): New function.
11858 * regcache.c (regcache_get_ptid): New function.
11860 2017-03-13 Mark Wielaard <mark@klomp.org>
11862 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
11864 2017-03-10 Keith Seitz <keiths@redhat.com>
11867 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
11869 2017-03-08 Pedro Alves <palves@redhat.com>
11872 * infrun.c (start_step_over, do_target_resume, resume)
11873 (restart_threads): Assert we're not resuming a thread that is
11874 meant to be stopped.
11875 (infrun_thread_stop_requested_callback): Delete.
11876 (infrun_thread_stop_requested): If the thread is internally
11877 stopped, queue a pending stop event and clear the thread's
11878 inline-frame state.
11879 (handle_stop_requested): New function.
11880 (handle_syscall_event, handle_inferior_event_1): Use
11881 handle_stop_requested.
11882 (handle_stop_requested): New function.
11883 (handle_signal_stop): Set the thread's stop_signal here instead of
11885 (finish_step_over): Clear step over info unconditionally.
11886 (handle_signal_stop): If the user had interrupted the event
11887 thread, consider the stop a random signal.
11888 (handle_signal_stop) <signal arrived while stepping over
11889 breakpoint>: Don't restart threads here.
11890 (stop_waiting): Don't clear step-over info here.
11892 2017-03-08 Pedro Alves <palves@redhat.com>
11895 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
11896 goes to argument 2, not 1.
11898 2017-03-08 Pedro Alves <palves@redhat.com>
11901 * top.c (gdb_readline_wrapper): Avoid passing NULL to
11902 display_gdb_prompt.
11903 (command_line_input): Add comment.
11905 2017-03-08 Pedro Alves <palves@redhat.com>
11908 * tui/tui-file.c (tui_file::write): New.
11909 * tui/tui-file.h (tui_file): Override "write".
11910 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
11911 factored out from ...
11912 (tui_puts): ... here.
11913 (tui_putc): Use them.
11914 (tui_write): New function.
11915 * tui/tui-io.h (tui_write): Declare.
11917 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
11919 * Makefile.in (SFILES): Replace "environ.c" with
11920 "common/environ.c".
11921 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
11922 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
11924 * common/environ.c: ... here.
11925 * environ.h: Moved to...
11926 * common/environ.h: ... here.
11928 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11930 * gdbarch.sh (pstring_ptr): New static function.
11931 (gdbarch_disassembler_options): Use it.
11932 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
11933 not valid_disassembler_option->name.
11934 * gdbarch.c: Regenerate.
11936 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
11938 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
11940 2017-03-07 Pedro Alves <palves@redhat.com>
11942 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
11944 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
11946 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
11947 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
11948 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
11949 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
11951 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
11953 * xtensa-linux-nat.c (fetch_gregs): Remove const.
11955 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
11957 * remote.c (remote_add_target_side_commands): Use range-based
11960 2017-03-03 Yao Qi <yao.qi@linaro.org>
11963 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
11965 * valprint.c (common_val_print): Likewise.
11967 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
11969 * NEWS: Mention new set/show disassembler-options commands.
11970 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
11971 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
11972 (prospective_options): New static variable.
11973 (gdb_disassembler::gdb_disassembler): Initialize
11974 m_di.disassembler_options.
11975 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
11976 (get_disassembler_options): New function.
11977 (set_disassembler_options): Likewise.
11978 (set_disassembler_options_sfunc): Likewise.
11979 (show_disassembler_options_sfunc): Likewise.
11980 (disassembler_options_completer): Likewise.
11981 (_initialize_disasm): Likewise.
11982 * disasm.h (get_disassembler_options): New prototype.
11983 (set_disassembler_options): Likewise.
11984 * gdbarch.sh (gdbarch_disassembler_options): New variable.
11985 (gdbarch_verify_disassembler_options): Likewise.
11986 * gdbarch.c: Regenerate.
11987 * gdbarch.h: Likewise.
11988 * arm-tdep.c (num_disassembly_options): Delete.
11989 (set_disassembly_style): Likewise.
11990 (arm_disassembler_options): New static variable.
11991 (set_disassembly_style_sfunc): Convert short style name into long
11992 option name. Call set_disassembler_options.
11993 (show_disassembly_style_sfunc): New function.
11994 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
11995 set_gdbarch_verify_disassembler_options.
11996 (_initialize_arm_tdep): Delete regnames variable and update callers.
11997 (arm_disassembler_options): Initialize.
11998 (disasm_options): New variable.
11999 (num_disassembly_options): Rename from this...
12000 (num_disassembly_styles): ...to this. Compute by scanning through
12002 (valid_disassembly_styles): Initialize using disasm_options.
12003 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12004 set_arm_regname_option.
12005 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12006 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12007 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12008 set_gdbarch_verify_disassembler_options.
12009 * s390-tdep.c (s390_disassembler_options): New static variable.
12010 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12011 set_gdbarch_verify_disassembler_options.
12013 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12015 * remote.c (remote_add_target_side_condition): Remove "struct"
12016 keyword from range-based for loop.
12018 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12020 * remote.c (remote_add_target_side_condition): Use range-based
12021 for loop. Update comment.
12023 2017-02-27 Yao Qi <yao.qi@linaro.org>
12025 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12027 2017-02-26 Alan Hayward <alan.hayward@arm.com>
12029 * regcache.c (regcache_raw_update): New function.
12030 (regcache_raw_read): Move code to regcache_raw_update.
12031 * regcache.h (regcache_raw_update): New declaration.
12032 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12034 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12036 * dwarf2read.c (create_debug_type_hash_table): Initialize
12037 header.signature and header.type_offset_in_tu.
12039 2017-02-24 Pedro Alves <palves@redhat.com>
12041 * symtab.c (make_file_symbol_completion_list_1): Use
12042 add_symtab_completions.
12044 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12046 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12048 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12050 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12051 I386_MAX_REGISTER_SIZE.
12052 (i386_pseudo_register_write): Likewise.
12053 (i386_process_record): Likewise.
12054 * i387-tdep.c (i387_supply_xsave): Likewise.
12055 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12056 (store_register): Likewise.
12058 2017-02-23 Pedro Alves <palves@redhat.com>
12060 * ada-lang.c: Include "common/function-view.h".
12061 (ada_iterate_over_symbols): Adjust to use function_view as
12063 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12064 (ada_make_symbol_completion_list): Use a lambda.
12065 (ada_exc_search_name_matches): Delete.
12066 (name_matches_regex): New.
12067 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12068 * compile/compile-c-support.c: Include "common/function-view.h".
12069 (print_one_macro): Change prototype to accept a ui_file pointer.
12070 (write_macro_definitions): Use a lambda.
12071 * dwarf2read.c: Include "common/function-view.h".
12072 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12073 (dw2_expand_symtabs_matching): Adjust to use function_view as
12075 * language.h: Include "common/function-view.h".
12076 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12077 function_view as callback type.
12078 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12079 * linespec.c: Include "common/function-view.h".
12080 (collect_info::add_symbol): New method.
12081 (struct symbol_and_data_callback, iterate_inline_only, struct
12082 symbol_matcher_data, iterate_name_matcher): Delete.
12083 (iterate_over_all_matching_symtabs): Adjust to use function_view
12084 as callback type and lambdas.
12085 (iterate_over_file_blocks): Adjust to use function_view as
12087 (decode_compound_collector): Now a class with private fields.
12088 (decode_compound_collector::release_symbols): New method.
12089 (collect_one_symbol): Rename to...
12090 (decode_compound_collector::operator()): ... this and adjust.
12091 (lookup_prefix_sym): decode_compound_collector construction bits
12092 move to decode_compound_collector ctor. Pass the
12093 decode_compound_collector object directly as callback. Remove
12094 cleanups and use decode_compound_collector::release_symbols
12096 (symtab_collector): Now a class with private fields.
12097 (symtab_collector::release_symtabs): New method.
12098 (add_symtabs_to_list): Rename to...
12099 (symtab_collector::operator()): ... this and adjust.
12100 (collect_symtabs_from_filename): symtab_collector construction
12101 bits move to symtab_collector ctor. Pass the symtab_collector
12102 object directly as callback. Remove cleanups and use
12103 symtab_collector::release_symtabs instead.
12104 (collect_symbols): Delete.
12105 (add_matching_symbols_to_info): Use lambdas.
12106 * macrocmd.c (print_macro_callback): Delete.
12107 (info_macro_command): Use a lambda.
12108 (info_macros_command): Pass print_macro_definition as callable
12110 (print_one_macro): Remove 'ignore' parameter.
12111 (macro_list_command): Adjust.
12112 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12113 (macro_for_each_data::user_data): Delete field.
12114 (foreach_macro): Adjust to call the function_view.
12115 (macro_for_each): Adjust to use function_view as callback type.
12116 (foreach_macro_in_scope): Adjust to call the function_view.
12117 (macro_for_each_in_scope): Adjust to use function_view as callback
12119 * macrotab.h: Include "common/function-view.h".
12120 (macro_callback_fn): Declare a prototype instead of a pointer.
12121 Remove "user_data" parameter.
12122 (macro_for_each, macro_for_each_in_scope): Adjust to use
12123 function_view as callback type.
12124 * psymtab.c (partial_map_expand_apply)
12125 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12126 Adjust to use function_view as callback type and to return bool.
12127 (psym_expand_symtabs_matching): Adjust to use function_view as
12129 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12130 to use function_view as callback type and to return bool.
12131 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12133 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12135 * symfile.h: Include "common/function-view.h".
12136 (expand_symtabs_file_matcher_ftype)
12137 (expand_symtabs_symbol_matcher_ftype)
12138 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12140 (quick_symbol_functions::map_symtabs_matching_filename)
12141 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12142 function_view as callback type and return bool.
12143 (expand_symtabs_matching): Adjust to use function_view as callback
12145 (maintenance_expand_name_matcher)
12146 (maintenance_expand_file_matcher): Delete.
12147 (maintenance_expand_symtabs): Use lambdas.
12148 * symtab.c (iterate_over_some_symtabs): Adjust to use
12149 function_view as callback types and return bool.
12150 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12152 (lookup_symtab_callback): Delete.
12153 (lookup_symtab): Use a lambda.
12154 (iterate_over_symbols): Adjust to use function_view as callback
12156 (struct search_symbols_data, search_symbols_file_matches)
12157 (search_symbols_name_matches): Delete.
12158 (search_symbols): Use a pair of lambdas.
12159 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12160 (symtab_expansion_callback): Delete.
12161 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12162 * symtab.h: Include "common/function-view.h".
12163 (iterate_over_some_symtabs): Adjust to use function_view as
12164 callback type and return bool.
12165 (iterate_over_symtabs): Adjust to use function_view as callback
12167 (symbol_found_callback_ftype): Remove 'data' parameter and return
12169 (iterate_over_symbols): Adjust to use function_view as callback
12172 2017-02-23 Pedro Alves <palves@redhat.com>
12174 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12175 (%.o) <unittests/%.c>: New pattern.
12176 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12177 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12178 * common/function-view.h: New file.
12179 * unittests/function-view-selftests.c: New file.
12180 * configure: Regenerate.
12182 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12184 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12186 * go32-nat.c (go32_thread_alive): Likewise.
12188 2017-02-23 Yao Qi <yao.qi@linaro.org>
12190 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12193 2017-02-23 Yao Qi <yao.qi@linaro.org>
12195 * varobj.c (varobj_clear_saved_item): Use delete instead of
12197 (update_dynamic_varobj_children): Likewise.
12199 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12201 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12203 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12205 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12206 m_enum_value to 0 in default constructor.
12208 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12210 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12211 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12212 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12213 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12214 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12215 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12216 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12217 IS_STORE_CONDITIONAL_INSN.
12219 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12221 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12223 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12225 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12227 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12229 * dwarf2read.c (skip_one_die, read_attribute_value)
12230 (dwarf2_const_value_attr, dump_die_shallow)
12231 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12232 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12234 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12236 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12237 (dwarf_parse_macro_header): Accept DWARF version 5.
12238 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12240 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12242 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12244 * common/common-exceptions.h (enum errors): Likewise.
12245 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12246 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12247 (dwarf_expr_context::execute_stack_op): Likewise.
12248 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12250 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12251 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12252 (show_entry_values_debug, call_site_to_target_addr)
12253 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12254 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12255 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12256 (value_of_dwarf_block_entry, indirect_pieced_value)
12257 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12258 (disassemble_dwarf_expression): Likewise.
12259 * dwarf2read.c (process_die, inherit_abstract_dies)
12260 (read_call_site_scope): Likewise.
12261 * gdbtypes.h (struct func_type, struct call_site_parameter)
12262 (struct call_site): Likewise.
12263 * stack.c (read_frame_arg): Likewise.
12264 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12266 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12268 * defs.h (read_unsigned_leb128): New declaration.
12269 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12270 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12271 (dwarf2_find_location_expression): Call also
12272 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12273 * dwarf2loc.h (dwarf2_version): New declaration.
12274 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12276 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12278 (struct dwop_section_names): Add loclists_dwo.
12279 (dwop_section_names): Add .debug_loclists.dwo.
12280 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12281 (struct dwarf2_per_cu_data): Add dwarf_version.
12282 (struct dwo_sections): Add loclists.
12283 (struct attr_abbrev): Add implicit_const.
12284 (read_indirect_line_string): New declaration.
12285 (read_unsigned_leb128): Delete declaration.
12286 (rcuh_kind): New definition.
12287 (read_and_check_comp_unit_head): Change parameter
12288 is_debug_types_section to section_kind.
12289 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12290 (read_comp_unit_head): Change parameter abfd to section, add parameter
12291 section_kind. Handle DWARF-5.
12292 (error_check_comp_unit_head): Accept also DWARF version 5.
12293 (read_and_check_comp_unit_head): Change parameter
12294 is_debug_types_section to section_kind.
12295 (read_and_check_type_unit_head): Delete function.
12296 (read_abbrev_offset): Handle DWARF-5.
12297 (create_debug_type_hash_table): Add parameter section_kind. Process
12298 only DW_UT_type. Use signature and type_offset_in_tu from struct
12300 (create_debug_types_hash_table): Update create_debug_type_hash_table
12302 (create_all_type_units): Call create_debug_type_hash_table.
12303 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12304 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12306 (skip_one_die): Handle DW_FORM_implicit_const.
12307 (dwarf2_rnglists_process): New function.
12308 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12309 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12310 (read_attribute_value): Handle DW_FORM_implicit_const,
12312 (read_attribute): Handle DW_FORM_implicit_const.
12313 (read_indirect_string_at_offset_from): New function from
12314 read_indirect_string_at_offset.
12315 (read_indirect_string_at_offset): Call
12316 read_indirect_string_at_offset_from.
12317 (read_indirect_line_string_at_offset): New function.
12318 (read_indirect_string): New function comment.
12319 (read_indirect_line_string): New function.
12320 (read_unsigned_leb128): Make it global.
12321 (dwarf2_string_attr): Handle DWARF-5.
12322 (add_include_dir_stub, read_formatted_entries): New functions.
12323 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12325 (per_cu_header_read_in): Update read_comp_unit_head caller.
12326 (dwarf2_version): New function.
12327 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12329 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12332 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12334 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12336 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12338 * dwarf2read.c (dwarf2_ranges_process): New function from
12339 dwarf2_ranges_read.
12340 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12341 dwarf2_ranges_process.
12343 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12345 * dwarf2read.c (create_debug_type_hash_table): New function from
12346 create_debug_types_hash_table.
12347 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12348 (create_all_type_units, open_and_init_dwo_file): Update
12349 create_debug_types_hash_table callers.
12351 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12354 * fork-child.c (trace_start_error): Fix thinko. va_end should
12355 refer to 'ap', not 'args'.
12357 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12358 Pedro Alves <palves@redhat.com>
12361 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12363 * fork-child.c (trace_start_error): New function.
12364 (trace_start_error_with_name): Likewise.
12365 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12366 * inf-ptrace.c (inf_ptrace_me): Likewise.
12367 * inferior.h (trace_start_error): New prototype.
12368 (trace_start_error_with_name): Likewise.
12370 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12373 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12374 NULL before using it.
12375 * symmisc.c (maintenance_print_symbols): Likewise.
12376 (maintenance_print_msymbols): Likewise.
12378 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12380 * NEWS: Add record Python bindings entry.
12382 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12384 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12386 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12387 * python/py-record-btrace.c, python/py-record-btrace.h,
12388 python/py-record-full.c, python/py-record-full.h: New file.
12389 * python/py-record.c: Add include for py-record-btrace.h and
12391 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12392 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12393 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12394 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12396 (gdbpy_initialize_btrace): New export.
12397 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12399 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12401 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12402 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12403 * python/py-record.c: New file.
12404 * python/python-internal.h (gdbpy_start_recording,
12405 gdbpy_current_recording, gdpy_stop_recording,
12406 gdbpy_initialize_record): New export.
12407 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12408 (python_GdbMethods): Add gdbpy_start_recording,
12409 gdbpy_current_recording and gdbpy_stop_recording.
12411 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12413 * record-btrace.c (record_btrace_record_method): New function.
12414 (init_record_btrace_ops): Initialize to_record_method.
12415 * record-full.c (record_full_record_method): New function.
12416 (init_record_full_ops, init_record_full_core_ops): Add
12417 record_full_record_method.
12418 * record.h (enum record_method): New enum.
12419 * target-debug.h (target_debug_print_enum_record_method: New define.
12420 * target-delegates.c: Regenerate.
12421 * target.c (target_record_method): New function.
12422 * target.h: Include record.h.
12423 (struct target_ops) <to_record_method>: New field.
12424 (target_record_method): New export.
12426 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12428 * record.h (record_start, record_stop): New export.
12429 * record.c (record_start, record_stop): New function.
12431 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12433 * btrace.c (btrace_fetch): Copy function call segments pointer
12435 (btrace_clear): Clear the vector.
12436 (btrace_find_insn_by_number): Use binary search to find the correct
12437 function call segment.
12438 * btrace.h (brace_fun_p): New typedef.
12439 (struct btrace_thread_info) <functions>: New field.
12441 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12443 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12444 * btrace.c (btrace_decode_error): ... here. New function.
12445 * btrace.h (btrace_decode_error): New export.
12447 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12449 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12450 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12451 btrace_find_insn_by_number): Remove special case for gaps.
12452 * btrace.h (btrace_insn_get_error): New export.
12453 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12454 * record-btrace.c (btrace_insn_history): Print number for gaps.
12455 (record_btrace_info, record_btrace_goto): Handle gaps.
12457 2017-02-14 Tom Tromey <tom@tromey.com>
12460 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12462 * python/py-evts.c (gdbpy_initialize_py_events): Add
12463 before_prompt registry.
12464 * python/py-events.h (events_object) <before_prompt>: New field.
12466 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12468 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12470 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
12472 * symfile (_initialize_symfile): Add usage text to the load command's
12475 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12477 * utils.c (defaulted_query): Don't query on secondary UIs.
12479 2017-02-10 Tom Tromey <tom@tromey.com>
12481 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12483 2017-02-10 Tom Tromey <tom@tromey.com>
12485 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12487 * python/py-type.c (typy_legacy_template_argument): Remove
12488 unnecessary "cleanup" local.
12490 2017-02-10 Tom Tromey <tom@tromey.com>
12492 * python/python.c (do_start_initialization): New function, from
12493 _initialize_python.
12494 (_initialize_python): Call do_start_initialization.
12495 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12498 2017-02-10 Tom Tromey <tom@tromey.com>
12500 * python/py-prettyprint.c (pretty_print_one_value): Use
12503 2017-02-10 Tom Tromey <tom@tromey.com>
12505 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12506 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12508 * python/py-type.c (field_new): Use gdbpy_ref.
12509 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12511 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12512 (py_free_pspace): Likewise.
12513 (pspace_to_pspace_object): Likewise.
12514 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12515 (py_free_objfile): Likewise.
12516 (objfile_to_objfile_object): Likewise.
12517 * python/py-inferior.c (delete_thread_object): Use
12519 (infpy_read_memory): Likewise.
12520 (py_free_inferior): Likewise.
12521 * python/py-evtregistry.c (create_eventregistry_object): Use
12523 * python/py-event.c (create_event_object): Use gdbpy_ref.
12525 2017-02-10 Tom Tromey <tom@tromey.com>
12527 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12528 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12530 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12531 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12532 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12533 python/py-framefilter.c, python/py-function.c,
12534 python/py-inferior.c, python/py-infevents.c,
12535 python/py-linetable.c, python/py-newobjfileevent.c,
12536 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12537 python/py-signalevent.c, python/py-stopevent.c,
12538 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12539 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12540 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12541 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12543 2017-02-10 Tom Tromey <tom@tromey.com>
12545 * ui-out.h (ui_out_emit_type): New class.
12546 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12547 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12548 and ui_out_emit_tuple.
12549 (enumerate_locals): Likewise.
12550 (py_mi_print_variables, py_print_locals, py_print_args): Use
12552 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12554 * common/gdb_optional.h: New file.
12556 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12558 * MAINTAINERS (Write After Approval): Update my e-mail address.
12560 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12563 * breakpoint.c (_initialize_breakpoint): Update the help description
12564 of the 'commands' command to indicate that it takes a list argument.
12566 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12568 * interps.c (current_interp_set_logging): Remove "return".
12570 2017-02-09 Gary Benson <gbenson@redhat.com>
12572 * symtab.c (add_symtab_completions): Prevent NULL pointer
12575 2017-02-08 Pedro Alves <palves@redhat.com>
12577 * interps.c (interp::interp): Remove reference to quiet_p.
12578 (interp_set): Make static. Remove dead "Switching to" output
12580 (interp_quiet_p, interp_set_quiet): Delete.
12581 (interpreter_exec_cmd): Don't set the interpreter quiet.
12582 * interps.h (interp_quiet_p): Make static.
12583 (class interp) <quiet_p>: Remove field
12585 2017-02-08 Jerome Guitton <guitton@adacore.com>
12587 * cli/cli-decode.c (find_command_name_length): Make it extern.
12588 * cli/cli-decode.h (find_command_name_length): Declare.
12589 * cli/cli-script.c (command_name_equals, line_first_arg):
12591 (process_next_line): Use cli-decode to parse command names.
12592 (build_command_line): Make args a constant pointer.
12594 2017-02-08 Jerome Guitton <guitton@adacore.com>
12596 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12597 Remove case-insensitive search.
12599 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12601 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12602 at the end of the line. Avoids an ARI warning.
12604 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
12606 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12607 rdseed instructions.
12608 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12610 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12613 Provide and use sparc32 and sparc64 target description XML files.
12614 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12615 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12616 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12617 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12618 * features/sparc/sparc32-solaris.xml: New file.
12619 * features/sparc/sparc64-solaris.xml: New file.
12620 * features/sparc/sparc32-solaris.c: Generated.
12621 * features/sparc/sparc64-solaris.c: Generated.
12622 * sparc-tdep.h: Account for differences in target descriptions.
12623 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12624 (sparc32_register_type): Use target provided registers.
12625 (validate_tdesc_registers): New function.
12626 (sparc32_gdbarch_init): Use tdesc_has_registers.
12627 Set pseudoregister functions.
12628 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12629 (sparc64_register_type): Use target provided registers.
12630 (sparc64_init_abi): Set pseudoregister functions.
12632 2017-02-03 Tom Tromey <tom@tromey.com>
12635 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12636 with a single member.
12638 2017-02-03 Pedro Alves <palves@redhat.com>
12640 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12641 (cli_interp_base::~cli_interp_base): New.
12642 (cli_interp): New struct.
12643 (as_cli_interp): Cast the interp itself to cli_interp.
12644 (cli_interpreter_pre_command_loop): Rename to ...
12645 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12647 (cli_interpreter_init): Rename to ...
12648 (cli_interp::init): ... this. Remove 'self' parameter. Use
12649 boolean. Make extern.
12650 (cli_interpreter_resume): Rename to ...
12651 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12653 (cli_interpreter_suspend): Rename to ...
12654 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12656 (cli_interpreter_exec): Rename to ...
12657 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12659 (cli_interpreter_supports_command_editing): Rename to ...
12660 (cli_interp_base::supports_command_editing): ... this. Remove
12661 'interp' parameter. Make extern.
12662 (cli_ui_out): Rename to ...
12663 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12665 (cli_set_logging): Rename to ...
12666 (cli_interp_base::set_logging): ... this. Remove 'interp'
12667 parameter. Make extern.
12668 (cli_interp_procs): Delete.
12669 (cli_interp_factory): Adjust to use "new".
12670 * cli/cli-interp.h: Include "interps.h".
12671 (struct cli_interp_base): New struct.
12672 * interps.c (struct interp): Delete. Fields moved to interps.h.
12673 (interp_new): Delete.
12674 (interp::interp, interp::~interp): New.
12675 (interp_set): Use bool, and return void. Assume the interpreter
12676 has suspend, init and resume methods, and that the all return
12678 (set_top_level_interpreter): interp_set returns void.
12679 (interp_ui_out): Adapt.
12680 (current_interp_set_logging): Adapt.
12681 (interp_data): Delete.
12682 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12683 (interp_exec): Adapt.
12684 (top_level_interpreter_data): Delete.
12685 * interps.h (interp_init_ftype, interp_resume_ftype)
12686 (interp_suspend_ftype, interp_exec_ftype)
12687 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12688 (class interp): New.
12689 (interp_new): Delete.
12690 (interp_set): Now returns void. Use bool.
12691 (interp_data, top_level_interpreter_data): Delete.
12692 * mi/mi-common.h: Include interps.h.
12693 (class mi_interp): Inherit from interp. Define a ctor. Declare
12694 init, resume, suspect, exec, interp_ui_out, set_logging and
12695 pre_command_loop methods.
12696 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12697 (mi_interpreter_init): Rename to ...
12698 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12699 bool, return void and make extern. Adjust.
12700 (mi_interpreter_resume): ... Rename to ...
12701 (mi_interp::resume): ... this. Remove the 'data' parameter,
12702 return void and make extern. Adjust.
12703 (mi_interpreter_suspend): ... Rename to ...
12704 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12705 return void and make extern. Adjust.
12706 (mi_interpreter_exec): ... Rename to ...
12707 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12709 (mi_interpreter_pre_command_loop): ... Rename to ...
12710 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12711 parameter and make extern.
12712 (mi_on_normal_stop_1): Adjust.
12713 (mi_ui_out): Rename to ...
12714 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12715 parameter and make extern. Adjust.
12716 (mi_set_logging): Rename to ...
12717 (mi_interp::set_logging): ... this. Remove the 'interp'
12718 parameter and make extern. Adjust.
12719 (mi_interp_procs): Delete.
12720 (mi_interp_factory): Adjust to use 'new'.
12721 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12722 (mi_print_exception, mi_execute_command, mi_load_progress):
12724 * tui/tui-interp.c (tui_interp): New class.
12725 (as_tui_interp): Return a tui_interp pointer.
12726 (tui_on_normal_stop, tui_on_signal_received)
12727 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12728 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12729 to use interp::interp_ui_out.
12730 (tui_init): Rename to ...
12731 (tui_interp::init): ... this. Remove the 'self' parameter, use
12732 bool, return void and make extern. Adjust.
12733 (tui_resume): Rename to ...
12734 (tui_interp::resume): ... this. Remove the 'data' parameter,
12735 return void and make extern. Adjust.
12736 (tui_suspend): Rename to ...
12737 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12738 return void and make extern. Adjust.
12739 (tui_ui_out): Rename to ...
12740 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12741 parameter, and make extern. Adjust.
12742 (tui_exec): Rename to ...
12743 (tui_interp::exec): ... this. Remove the 'data' parameter and
12745 (tui_interp_procs): Delete.
12746 (tui_interp_factory): Use "new".
12748 2017-02-02 Tom Tromey <tom@tromey.com>
12750 * rust-exp.y (ends_raw_string, space_then_number)
12751 (rust_identifier_start_p): Return bool.
12752 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12753 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12754 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12755 (rust_chartype_p): Return bool.
12756 (val_print_struct, rust_print_struct_def, rust_print_type):
12758 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12761 2017-02-02 Tom Tromey <tom@tromey.com>
12763 * rust-lang.c: Reindent.
12765 2017-02-02 Tom Tromey <tom@tromey.com>
12767 * rust-lang.h (rust_crate_for_block): Update.
12768 * rust-lang.c (rust_crate_for_block): Return std::string.
12769 (rust_get_disr_info): Use std:;string, not
12770 gdb::unique_xmalloc_ptr.
12771 * rust-exp.y (crate_name): Update.
12773 2017-02-02 Pedro Alves <palves@redhat.com>
12775 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12776 field out of gdb_disassembler_test and make it static.
12778 2017-02-02 Pedro Alves <palves@redhat.com>
12780 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12781 mi1_interp and mi_interp fields.
12783 2017-02-02 Pedro Alves <palves@redhat.com>
12785 * cli/cli-interp.c (struct saved_output_files, saved_output):
12786 Moved from cli/cli-logging.c.
12787 (cli_set_logging): New function.
12788 (cli_interp_procs): Install cli_set_logging.
12789 * cli/cli-interp.h (make_logging_output, cli_set_logging):
12791 * cli/cli-logging.c (struct saved_output_files, saved_output):
12792 Moved to cli/cli-interp.c.
12793 (pop_output_files): Don't save outputs here.
12794 (make_logging_output): New function.
12795 (handle_redirections): Don't build tee nor save previous outputs
12797 * interps.c (current_interp_set_logging): Change prototype.
12798 Assume there's always a set_logging_proc method installed.
12799 * interps.h (interp_set_logging_ftype): Change prototype.
12800 (current_interp_set_logging): Change prototype and adjust comment.
12801 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
12802 use make_logging_output.
12803 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
12804 2017-02-02 Pedro Alves <palves@redhat.com>
12806 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
12808 (set_logging_overwrite): ... here.
12809 (logging_no_redirect_file): Delete.
12810 (set_logging_redirect): Don't handle redirection on the fly.
12811 Instead warn that "logging off" / "logging on" is necessary.
12812 (pop_output_files): Delete references to logging_no_redirect_file.
12813 (show_logging_command): Always speak in terms of what will happen
12814 once logging is reenabled.
12816 2017-02-02 Pedro Alves <palves@redhat.com>
12818 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
12820 2017-02-02 Pedro Alves <palves@redhat.com>
12822 * disasm.c (gdb_pretty_print_insn): Rename to ...
12823 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
12824 Remove gdbarch parameter. Adapt to clear the object's buffers
12825 instead of allocating new buffers, and to print using the object's
12826 gdb_disassembler instead of calling gdb_print_insn.
12827 (dump_insns): Use gdb_pretty_print_disassembler.
12828 * disasm.h (gdb_pretty_print_insn): Delete declaration.
12829 (gdb_pretty_print_disassembler): New class.
12830 * record-btrace.c (btrace_insn_history): Use
12831 gdb_pretty_print_disassembler.
12833 2017-02-02 Pedro Alves <palves@redhat.com>
12835 * ada-lang.c (type_as_string): Use string_file.
12836 * ada-valprint.c (ada_print_floating): Use string_file.
12837 * ada-varobj.c (ada_varobj_scalar_image)
12838 (ada_varobj_get_value_image): Use string_file.
12839 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
12840 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
12841 * breakpoint.c (update_inserted_breakpoint_locations)
12842 (insert_breakpoint_locations, reattach_breakpoints)
12843 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
12844 (print_it_watchpoint): Use string_file.
12845 (save_breakpoints): Use stdio_file.
12846 * c-exp.y (oper): Use string_file.
12847 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
12849 (pop_output_files): Use delete.
12850 (handle_redirections): Use stdio_file and tee_file.
12851 * cli/cli-setshow.c (do_show_command): Use string_file.
12852 * compile/compile-c-support.c (c_compute_program): Use
12854 * compile/compile-c-symbols.c (generate_vla_size): Take a
12855 'string_file &' instead of a 'ui_file *'.
12856 (generate_c_for_for_one_variable): Take a 'string_file &' instead
12857 of a 'ui_file *'. Use string_file.
12858 (generate_c_for_variable_locations): Take a 'string_file &'
12859 instead of a 'ui_file *'.
12860 * compile/compile-internal.h (generate_c_for_for_one_variable):
12861 Take a 'string_file &' instead of a 'ui_file *'.
12862 * compile/compile-loc2c.c (push, pushf, unary, binary)
12863 (print_label, pushf_register_address, pushf_register)
12864 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
12865 'ui_file *'. Adjust.
12866 * compile/compile.c (compile_to_object): Use string_file.
12867 * compile/compile.h (compile_dwarf_expr_to_c)
12868 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
12870 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
12871 (replace_typedefs_qualified_name): Use string_file and
12873 * disasm.c (gdb_pretty_print_insn): Use string_file.
12874 (gdb_disassembly): Adjust reference the null_stream global.
12875 (do_ui_file_delete): Delete.
12876 (gdb_insn_length): Use null_stream.
12877 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
12878 * dwarf2loc.c (dwarf2_compile_property_to_c)
12879 (locexpr_generate_c_location, loclist_generate_c_location): Take a
12880 'string_file &' instead of a 'ui_file *'.
12881 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
12882 * dwarf2read.c (do_ui_file_peek_last): Delete.
12883 (dwarf2_compute_name): Use string_file.
12884 * event-top.c (gdb_setup_readline): Use stdio_file.
12885 * gdbarch.sh (verify_gdbarch): Use string_file.
12886 * gdbtypes.c (safe_parse_type): Use null_stream.
12887 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
12889 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
12890 'string_file *' instead of a 'ui_file *'.
12891 (gdbscm_arch_disassemble): Use string_file.
12892 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
12893 * guile/scm-ports.c (class ioscm_file_port): Now a class that
12894 inherits from ui_file.
12895 (ioscm_file_port_delete, ioscm_file_port_rewind)
12896 (ioscm_file_port_put): Delete.
12897 (ioscm_file_port_write): Rename to ...
12898 (ioscm_file_port::write): ... this. Remove file_port_magic
12900 (ioscm_file_port_new): Delete.
12901 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
12903 * guile/scm-type.c (tyscm_type_name): Use string_file.
12904 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
12906 * infcmd.c (print_return_value_1): Use string_file.
12907 * infrun.c (print_target_wait_results): Use string_file.
12908 * language.c (add_language): Use string_file.
12909 * location.c (explicit_to_string_internal): Use string_file.
12910 * main.c (captured_main_1): Use null_file.
12911 * maint.c (maintenance_print_architecture): Use stdio_file.
12912 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
12913 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
12914 event_channel>: Change type to mi_console_file pointer.
12915 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
12916 (mi_console_file_delete): Delete.
12917 (struct mi_console_file): Delete.
12918 (mi_console_file_magic): Delete.
12919 (mi_console_file_new): Delete.
12920 (mi_console_file::mi_console_file): New.
12921 (mi_console_file_delete): Delete.
12922 (mi_console_file_fputs): Delete.
12923 (mi_console_file::write): New.
12924 (mi_console_raw_packet): Delete.
12925 (mi_console_file::flush): New.
12926 (mi_console_file_flush): Delete.
12927 (mi_console_set_raw): Rename to ...
12928 (mi_console_file::set_raw): ... this.
12929 * mi/mi-console.h (class mi_console_file): New class.
12930 (mi_console_file_new, mi_console_set_raw): Delete.
12931 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
12932 (mi_set_logging): Use delete and tee_file. Adjust.
12933 * mi/mi-main.c (output_register): Use string_file.
12934 (mi_cmd_data_evaluate_expression): Use string_file.
12935 (mi_cmd_data_read_memory): Use string_file.
12936 (mi_cmd_execute, print_variable_or_computed): Use string_file.
12937 * mi/mi-out.c (mi_ui_out::main_stream): New.
12938 (mi_ui_out::rewind): Use main_stream and
12940 (mi_ui_out::put): Use main_stream and string_file.
12941 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12942 Allocate a 'string_file' instead.
12943 (mi_out_new): Don't allocate a mem_fileopen stream here.
12944 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
12945 (mi_ui_out::main_stream): Declare method.
12946 * printcmd.c (eval_command): Use string_file.
12947 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
12948 * python/py-arch.c (archpy_disassemble): Use string_file.
12949 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
12950 * python/py-frame.c (frapy_str): Use string_file.
12951 * python/py-framefilter.c (py_print_type, py_print_single_arg):
12953 * python/py-type.c (typy_str): Use string_file.
12954 * python/py-unwind.c (unwind_infopy_str): Use string_file.
12955 * python/py-value.c (valpy_str): Use string_file.
12956 * record-btrace.c (btrace_insn_history): Use string_file.
12957 * regcache.c (regcache_print): Use stdio_file.
12958 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
12959 * remote.c (escape_buffer): Use string_file.
12960 * rust-lang.c (rust_get_disr_info): Use string_file.
12961 * serial.c (serial_open_ops_1): Use stdio_file.
12962 (do_serial_close): Use delete.
12963 * stack.c (print_frame_arg): Use string_file.
12964 (print_frame_args): Remove local mem_fileopen stream, not used.
12965 (print_frame): Use string_file.
12966 * symmisc.c (maintenance_print_symbols): Use stdio_file.
12967 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
12968 Take a 'string_file *' instead of a 'ui_file *'.
12969 * top.c (new_ui): Use stdio_file and stderr_file.
12970 (free_ui): Use delete.
12971 (execute_command_to_string): Use string_file.
12972 (quit_confirm): Use string_file.
12973 * tracepoint.c (collection_list::append_exp): Use string_file.
12974 * tui/tui-disasm.c (tui_disassemble): Use string_file.
12975 * tui/tui-file.c: Don't include "ui-file.h".
12976 (enum streamtype, struct tui_stream): Delete.
12977 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
12978 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
12979 (tui_file::tui_file): New method.
12980 (tui_file_fputs): Delete.
12981 (tui_file_get_strbuf): Delete.
12982 (tui_file::puts): New method.
12983 (tui_file_adjust_strbuf): Delete.
12984 (tui_file_flush): Delete.
12985 (tui_file::flush): New method.
12986 * tui/tui-file.h: Tweak intro comment.
12988 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
12989 (tui_file_adjust_strbuf): Delete declarations.
12990 (class tui_file): New class.
12991 * tui/tui-io.c (tui_initialize_io): Use tui_file.
12992 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
12993 (tui_register_format): Use string_stream.
12994 * tui/tui-stack.c (tui_make_status_line): Use string_file.
12995 (tui_get_function_from_frame): Use string_file.
12996 * typeprint.c (type_to_string): Use string_file.
12997 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
12998 (null_stream): New global.
12999 (ui_file_delete): Delete.
13000 (ui_file::ui_file): New.
13001 (null_file_isatty): Delete.
13002 (ui_file::~ui_file): New.
13003 (null_file_rewind): Delete.
13004 (ui_file::printf): New.
13005 (null_file_put): Delete.
13006 (null_file_flush): Delete.
13007 (ui_file::putstr): New.
13008 (null_file_write): Delete.
13009 (ui_file::putstrn): New.
13010 (null_file_read): Delete.
13011 (ui_file::putc): New.
13012 (null_file_fputs): Delete.
13013 (null_file_write_async_safe): Delete.
13014 (ui_file::vprintf): New.
13015 (null_file_delete): Delete.
13016 (null_file::write): New.
13017 (null_file_fseek): Delete.
13018 (null_file::puts): New.
13019 (ui_file_data): Delete.
13020 (null_file::write_async_safe): New.
13021 (gdb_flush, ui_file_isatty): Adjust.
13022 (ui_file_put, ui_file_rewind): Delete.
13023 (ui_file_write): Adjust.
13024 (ui_file_write_for_put): Delete.
13025 (ui_file_write_async_safe, ui_file_read): Adjust.
13026 (ui_file_fseek): Delete.
13027 (fputs_unfiltered): Adjust.
13028 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13029 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13030 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13031 (set_ui_file_data): Delete.
13032 (string_file::~string_file, string_file::write)
13033 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13034 (do_ui_file_as_string, ui_file_as_string): Delete.
13035 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13036 (struct mem_file): Delete.
13037 (mem_file_new): Delete.
13038 (stdio_file::stdio_file): New.
13039 (mem_file_delete): Delete.
13040 (stdio_file::stdio_file): New.
13041 (mem_fileopen): Delete.
13042 (stdio_file::~stdio_file): New.
13043 (mem_file_rewind): Delete.
13044 (stdio_file::set_stream): New.
13045 (mem_file_put): Delete.
13046 (stdio_file::open): New.
13047 (mem_file_write): Delete.
13048 (stdio_file_magic, struct stdio_file): Delete.
13049 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13050 (stdio_file::flush): New.
13051 (stdio_file_read): Rename to ...
13052 (stdio_file::read): ... this. Adjust.
13053 (stdio_file_write): Rename to ...
13054 (stdio_file::write): ... this. Adjust.
13055 (stdio_file_write_async_safe): Rename to ...
13056 (stdio_file::write_async_safe) ... this. Adjust.
13057 (stdio_file_fputs): Rename to ...
13058 (stdio_file::puts) ... this. Adjust.
13059 (stdio_file_isatty): Delete.
13060 (stdio_file_fseek): Delete.
13061 (stdio_file::isatty): New.
13062 (stderr_file_write): Rename to ...
13063 (stderr_file::write) ... this. Adjust.
13064 (stderr_file_fputs): Rename to ...
13065 (stderr_file::puts) ... this. Adjust.
13066 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13067 (stderr_file::stderr_file): New.
13068 (tee_file_magic): Delete.
13069 (struct tee_file): Delete.
13070 (tee_file::tee_file): New.
13071 (tee_file_new): Delete.
13072 (tee_file::~tee_file): New.
13073 (tee_file_delete): Delete.
13074 (tee_file_flush): Rename to ...
13075 (tee_file::flush): ... this. Adjust.
13076 (tee_file_write): Rename to ...
13077 (tee_file::write): ... this. Adjust.
13078 (tee_file::write_async_safe): New.
13079 (tee_file_fputs): Rename to ...
13080 (tee_file::puts): ... this. Adjust.
13081 (tee_file_isatty): Rename to ...
13082 (tee_file::isatty): ... this. Adjust.
13083 * ui-file.h (struct obstack, struct ui_file): Don't
13085 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13086 (ui_file_write_ftype)
13087 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13088 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13089 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13090 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13091 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13092 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13093 (set_ui_file_fseek): Delete.
13094 (ui_file_data, ui_file_delete, ui_file_rewind)
13095 (struct ui_file): New.
13097 (class null_file): New.
13098 (null_stream): Declare.
13099 (ui_file_write_for_put, ui_file_put): Delete.
13100 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13102 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13103 (gdb_fopen, tee_file_new): Delete.
13104 (struct string_file): New.
13105 (struct stdio_file): New.
13106 (stdio_file_up): New.
13107 (struct stderr_file): New.
13108 (class tee_file): New.
13109 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13110 of a 'ui_file *'. Adjust.
13111 * ui-out.h (class ui_out) <field_stream>: Likewise.
13112 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13113 (null_stream): Delete.
13114 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13116 * utils.h (struct ui_file): Delete forward declaration..
13117 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13118 (error_stream): Take a 'string_file &' instead of a
13120 * varobj.c (varobj_value_get_print_value): Use string_file.
13121 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13122 * gdbarch.c: Regenerate.
13124 2017-02-02 Pedro Alves <palves@redhat.com>
13126 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13127 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13128 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13129 Adjust to call gdb_print_insn instead of
13130 gdb_disassembler::print_insn.
13131 (dump_insns, do_mixed_source_and_assembly_deprecated)
13132 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13133 'gdbarch' parameter. Remove gdb_disassembler parameter.
13134 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13135 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13137 (gdb_pretty_print_insn): Re-add declaration.
13138 * record-btrace.c (btrace_insn_history): Don't allocate a
13139 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13141 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13143 * disasm.h (gdb_disassembly): Remove file_string parameter.
13144 * disasm.c (gdb_disassembly): Likewise.
13145 * cli/cli-cmds.c (print_disassembly): Adapt.
13146 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13147 * stack.c (do_gdb_disassembly): Likewise.
13149 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13151 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13152 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13153 targets. And if the implicit value is longer than needed, extract
13154 the first bytes instead of the "least significant" ones.
13156 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13158 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13159 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13160 (btrace_fetch): Assert can_access_registers_ptid.
13161 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13162 validate_registers_access.
13164 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13166 * gdbthread.h (can_access_registers_ptid): New.
13167 * thread.c (can_access_registers_ptid): New.
13169 2017-02-01 Pedro Alves <palves@redhat.com>
13171 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13173 2017-01-31 Pedro Alves <palves@redhat.com>
13175 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13178 2017-01-31 Pedro Alves <palves@redhat.com>
13180 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13183 2017-01-31 Pedro Alves <palves@redhat.com>
13185 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13187 2017-01-31 Pedro Alves <palves@redhat.com>
13189 * common/scoped_restore.h
13190 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13191 change the value's parameter type to T2.
13192 (make_scoped_restore): Likewise.
13194 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13195 Richard Henderson <rth@redhat.com>
13197 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13198 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13199 GS_BASE for older kernels.
13200 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13201 GS_BASE for older kernels.
13202 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13203 and GS_BASE to the offset table.
13204 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13205 system register group.
13206 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13208 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13210 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13211 AMD64_GSBASE_REGNUM.
13212 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13213 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13214 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13215 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13216 i386/64bit-segments.xml in those rules.
13217 * features/i386/64bit-segments.xml: New file.
13218 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13219 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13220 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13221 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13222 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13223 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13224 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13225 * features/i386/amd64-avx-linux.c: Regenerated.
13226 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13227 * features/i386/amd64-avx-mpx.c: Regenerated.
13228 * features/i386/amd64-avx512-linux.c: Regenerated.
13229 * features/i386/amd64-linux.c: Regenerated.
13230 * features/i386/amd64-mpx-linux.c: Regenerated.
13231 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13232 * features/i386/i386-avx-mpx.c: Regenerated.
13233 * features/i386/x32-avx-linux.c: Regenerated.
13234 * features/i386/x32-avx512-linux.c: Regenerated.
13235 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13236 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13237 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13238 * regformats/i386/amd64-linux.dat: Regenerated.
13239 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13240 * regformats/i386/x32-avx-linux.dat: Regenerated.
13241 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13242 * regformats/i386/x32-linux.dat: Regenerated.
13244 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13246 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13247 Set to AMD64_NUM_REGS.
13249 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13251 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13252 that checks validity of a register number.
13254 2017-01-27 Kees Cook <keescook@google.com>
13256 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13257 fetch_fpregs if target has fpa registers.
13258 (arm_linux_store_inferior_registers): Call store_fpregs if target
13261 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13263 * cris-tdep.c (cris_gdbarch_init): Remove check for
13264 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13266 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13268 * corelow.c (get_core_register_section): Check for regset
13269 existence before checking for REGSET_VARIABLE_SIZE.
13271 2017-01-26 Yao Qi <yao.qi@linaro.org>
13272 Pedro Alves <palves@redhat.com>
13275 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13276 call memory_error, save memaddr instead.
13277 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13278 negative, cal memory_error.
13279 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13281 2017-01-26 Yao Qi <yao.qi@linaro.org>
13283 * disasm-selftests.c (memory_error_test): New function.
13284 (_initialize_disasm_selftests): Register memory_error_test.
13286 2017-01-26 Yao Qi <yao.qi@linaro.org>
13288 * Makefile.in (SFILES): Add disasm-selftests.c and
13290 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13291 * disasm-selftests.c: New file.
13292 * selftest-arch.c: New file.
13293 * selftest-arch.h: New file.
13295 2017-01-26 Yao Qi <yao.qi@linaro.org>
13297 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13298 to bfd_arch_mep. Don't return 0 if section is not
13299 found. Call print_insn_mep.
13301 2017-01-26 Pedro Alves <palves@redhat.com>
13302 Yao Qi <yao.qi@linaro.org>
13304 * arm-tdep.c: Include "disasm.h".
13305 (gdb_print_insn_arm): Update code to get gdbarch.
13306 * disasm.c (dis_asm_read_memory): Change it to
13307 gdb_disassembler::dis_asm_read_memory.
13308 (dis_asm_memory_error): Likewise.
13309 (dis_asm_print_address): Likewise.
13310 (gdb_pretty_print_insn): Change it to
13311 gdb_disassembler::pretty_print_insn.
13312 (dump_insns): Add one argument gdb_disassemlber. All
13314 (do_mixed_source_and_assembly_deprecated): Likewise.
13315 (do_mixed_source_and_assembly): Likewise.
13316 (do_assembly_only): Likewise.
13317 (gdb_disassembler::gdb_disassembler): New.
13318 (gdb_disassembler::print_insn): New.
13319 * disasm.h (class gdb_disassembler): New.
13320 (gdb_pretty_print_insn): Remove declaration.
13321 (gdb_disassemble_info): Likewise.
13322 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13323 (gdbscm_disasm_read_memory_worker): Update.
13324 (gdbscm_disasm_read_memory): Update.
13325 (gdbscm_disasm_memory_error): Remove.
13326 (gdbscm_disasm_print_address): Remove.
13327 (gdbscm_disassembler::gdbscm_disassembler): New.
13328 (gdbscm_print_insn_from_port): Update.
13329 * mips-tdep.c: Include disasm.h.
13330 (gdb_print_insn_mips): Update code to get gdbarch.
13331 * record-btrace.c (btrace_insn_history): Update.
13332 * spu-tdep.c: Include disasm.h.
13333 (struct spu_dis_asm_data): Remove.
13334 (struct spu_dis_asm_info): New.
13335 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13337 (gdb_print_insn_spu): Cast disassemble_info to
13340 2017-01-26 Yao Qi <yao.qi@linaro.org>
13342 * disasm.c (do_ui_file_delete): Delete.
13343 (gdb_insn_length): Move code creating stream to ...
13344 * utils.c (null_stream): ... here. New function.
13345 * utils.h (null_stream): Declare.
13347 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13349 * python/py-inferior.c (find_thread_object): Return directly
13350 from the loop. Remove "found" variable.
13352 2017-01-21 Joel Brobecker <brobecker@adacore.com>
13354 GDB 7.12.1 released.
13356 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13358 * python/py-function.c (fnpy_call): Reorder declarations to have
13359 the gdbpy_enter object declared first.
13360 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13362 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13365 * python/python-internal.h (PyMem_RawMalloc): Define for
13367 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13368 PyMem_RawMalloc instead of PyMem_Malloc.
13370 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13371 Luis Machado <lgustavo@codesourcery.com>
13373 * NEWS (New commands): Mention flash-erase.
13374 (New MI commands): Mention target-flash-erase.
13375 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13377 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13378 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13379 * target.c (flash_erase_command): New function.
13380 (initialize_targets): Add new flash-erase command.
13381 * target.h (flash_erase_command): New declaration.
13383 2017-01-20 Joel Brobecker <brobecker@adacore.com>
13385 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13386 HAVE_SYS_PROCFS_H is defined.
13388 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13390 * remote.c (struct cached_reg): Change data into a pointer.
13391 * (stop_reply_dtr): Free data pointers before deleting vector.
13392 (process_stop_reply): Likewise.
13393 (remote_parse_stop_reply): Allocate space for data
13395 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13397 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13399 (amd64_pseudo_register_read_value): Likewise.
13400 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13401 (store_register_using_P): Likewise.
13402 * regcache.c (regcache_xfer_part): Likewise.
13404 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13406 Split real and pseudo registers.
13407 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13408 (sparc32_pseudo_regnum): New enum.
13409 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13410 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13411 (SPARC32_CP0_REGISTERS): New macro.
13412 (sparc32_pseudo_register_name): New function.
13413 (sparc32_register_name): Use sparc32_pseudo_register_name.
13414 (sparc32_pseudo_register_type): New function.
13415 (sparc32_register_type): Use sparc32_pseudo_register_type.
13416 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13417 pseudo register numbers.
13418 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13419 (SPARC64_CP0_REGISTERS): New macro.
13420 (sparc64_pseudo_register_name): New function.
13421 (sparc64_register_name): Use sparc64_pseudo_register_name.
13422 (sparc64_pseudo_register_type): New function.
13423 (sparc64_register_type): Use sparc64_pseudo_register_type.
13424 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13425 pseudo register numbers.
13426 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13427 sparc64_store_arguments): Handle pseudo register numbers.
13429 2017-01-13 Yao Qi <yao.qi@linaro.org>
13431 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13432 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13434 (getpkt_or_notif_sane_1): Likewise.
13436 2017-01-13 Yao Qi <yao.qi@linaro.org>
13438 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13439 of CC. Pass "-x c++-header" instead of "-x c".
13441 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13443 * remote.c (remote_can_async_p): Update comment.
13445 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13447 * linux-nat.c (linux_nat_can_async_p): Update comment.
13449 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13451 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13453 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13455 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13457 2017-01-10 Tom Tromey <tom@tromey.com>
13459 * python/py-type.c (typy_legacy_template_argument): Update.
13460 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13461 ~demangle_parse_info): Declare new members.
13462 (cp_demangled_name_to_comp): Return unique_ptr.
13463 (cp_demangled_name_parse_free)
13464 (make_cleanup_cp_demangled_name_parse_free)
13465 (cp_new_demangle_parse_info): Remove.
13466 * cp-support.c (do_demangled_name_parse_free_cleanup)
13467 (make_cleanup_cp_demangled_name_parse_free): Remove.
13468 (inspect_type, cp_canonicalize_string_full)
13469 (cp_canonicalize_string): Update.
13470 (mangled_name_to_comp): Change return type.
13471 (cp_class_name_from_physname, method_name_from_physname)
13472 (cp_func_name, cp_remove_params): Update.
13473 * cp-name-parser.y (demangle_parse_info): New constructor, from
13474 cp_new_demangle_parse_info.
13475 (~demangle_parse_info): New destructor, from
13476 cp_demangled_name_parse_free.
13477 (cp_merge_demangle_parse_infos): Update.
13478 (cp_demangled_name_to_comp): Change return type.
13480 2017-01-10 Tom Tromey <tom@tromey.com>
13482 * top.c (prevent_dont_repeat): Change return type.
13483 * python/python.c (execute_gdb_command): Use std::string.
13485 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13486 * command.h (prevent_dont_repeat): Change return type.
13487 * breakpoint.c (bpstat_do_actions_1): Update.
13489 2017-01-10 Tom Tromey <tom@tromey.com>
13491 * value.h (scoped_value_mark::~scoped_value_mark): Call
13493 (scoped_value_mark::free_to_mark): New method.
13494 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13497 2017-01-10 Tom Tromey <tom@tromey.com>
13499 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13500 (valpy_reference_value, valpy_const_value, valpy_get_address)
13501 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13502 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13503 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13504 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13506 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13507 * value.h (scoped_value_mark): New class.
13509 2017-01-10 Tom Tromey <tom@tromey.com>
13511 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13512 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13513 * psymtab.c (discard_psymtabs_upto): Remove.
13514 (make_cleanup_discard_psymtabs): Remove.
13515 (struct psymtab_state): Remove.
13517 2017-01-10 Tom Tromey <tom@tromey.com>
13519 * record-full.c (record_full_save_cleanups): Remove.
13520 (record_full_save): Use gdb::unlinker.
13521 * gcore.c (do_bfd_delete_cleanup): Remove.
13522 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13524 * dwarf2read.c (unlink_if_set): Remove.
13525 (write_psymtabs_to_index): Use gdb::unlinker.
13526 * common/gdb_unlinker.h: New file.
13528 2017-01-10 Tom Tromey <tom@tromey.com>
13530 * windows-tdep.c (windows_xfer_shared_library): Update.
13531 * windows-nat.c (windows_make_so): Update.
13532 * utils.h (make_cleanup_bfd_unref): Remove.
13533 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13534 * symfile.h (symfile_bfd_open)
13535 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13536 * symfile.c (read_symbols, symbol_file_add)
13537 (separate_debug_file_exists): Update.
13538 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13539 (generic_load, reread_symbols): Update.
13540 * symfile-mem.c (symbol_file_add_from_memory): Update.
13541 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13542 (spu_symbol_file_add_from_memory): Update.
13543 * solist.h (struct target_so_ops) <bfd_open>: Return
13545 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13546 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13548 (solib_map_sections, reload_shared_libraries_1): Update.
13549 * solib-svr4.c (enable_break): Update.
13550 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13551 * solib-frv.c (enable_break2): Update.
13552 * solib-dsbt.c (enable_break): Update.
13553 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13555 (darwin_solib_get_all_image_info_addr_at_init): Update.
13556 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13557 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13558 * record-full.c (record_full_save): Update.
13559 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13560 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13561 * minidebug.c (find_separate_debug_file_in_section): Return
13563 * machoread.c (macho_add_oso_symfile): Change abfd to
13565 (macho_symfile_read_all_oso): Update.
13566 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13567 (macho_symfile_read): Update.
13568 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13569 (jit_bfd_try_read_symtab): Update.
13570 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13571 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13572 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13574 (gdb_bfd_ref_policy): New struct.
13575 (gdb_bfd_ref_ptr): New typedef.
13576 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13577 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13578 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13580 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13581 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13582 (gcore_command): Update.
13583 * exec.c (exec_file_attach): Update.
13584 * elfread.c (elf_symfile_read): Update.
13585 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13586 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13587 (open_and_init_dwo_file): Update.
13588 (open_dwp_file): Return gdb_bfd_ref_ptr.
13589 (open_and_init_dwp_file): Update.
13590 * corelow.c (core_open): Update.
13591 * compile/compile-object-load.c (compile_object_load): Update.
13592 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13593 * coffread.c (coff_symfile_read): Update.
13594 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13595 gdb_bfd_ref_ptr. Rename.
13596 (dump_bfd_file, restore_command): Update.
13597 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13598 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13599 (find_separate_debug_file_by_buildid): Update.
13601 2017-01-10 Tom Tromey <tom@tromey.com>
13603 * common/gdb_ref_ptr.h: New file.
13604 * python/py-ref.h (struct gdbpy_ref_policy): New.
13605 (gdbpy_ref): Now a typedef.
13607 2017-01-10 Tom Tromey <tom@tromey.com>
13609 * utils.h (make_cleanup_htab_delete): Don't declare.
13610 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13612 * linespec.c (decode_compound_collector): Add constructor,
13614 (lookup_prefix_sym): Remove cleanup.
13615 (symtab_collector): Add constructor, destructor.
13616 (collect_symtabs_from_filename): Remove cleanup.
13617 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13618 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13620 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13621 * dwarf2read.c (dw2_expand_symtabs_matching)
13622 (dw2_map_symbol_filenames, dwarf_decode_macros)
13623 (write_psymtabs_to_index): Use htab_up.
13624 * dwarf2loc.c (func_verify_no_selftailcall)
13625 (call_site_find_chain_1, func_verify_no_selftailcall)
13626 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13627 std::vector, gdb::unique_xmalloc_ptr.
13628 (call_sitep): Remove typedef.
13629 (dwarf2_locexpr_baton_eval): Remove unused variable.
13631 2017-01-10 Tom Tromey <tom@tromey.com>
13633 * python/python-internal.h (make_cleanup_py_decref)
13634 (make_cleanup_py_xdecref): Don't declare.
13635 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13636 (py_xdecref, make_cleanup_py_xdecref): Remove.
13638 2017-01-10 Tom Tromey <tom@tromey.com>
13640 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13641 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13643 2017-01-10 Tom Tromey <tom@tromey.com>
13645 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13647 2017-01-10 Tom Tromey <tom@tromey.com>
13649 * python/py-utils.c (unicode_to_encoded_string)
13650 (python_string_to_target_string)
13651 (python_string_to_target_python_string)
13652 (python_string_to_host_string, gdbpy_obj_to_string)
13653 (get_addr_from_python): Use gdbpy_ref.
13655 2017-01-10 Tom Tromey <tom@tromey.com>
13657 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13660 2017-01-10 Tom Tromey <tom@tromey.com>
13662 * python/python.c (eval_python_command, gdbpy_decode_line)
13663 (gdbpy_run_events, gdbpy_start_type_printers)
13664 (gdbpy_apply_type_printers): Use gdbpy_ref.
13666 2017-01-10 Tom Tromey <tom@tromey.com>
13668 * python/py-param.c (get_doc_string, compute_enum_values): Use
13671 2017-01-10 Tom Tromey <tom@tromey.com>
13673 * python/py-inferior.c (find_thread_object, build_inferior_list):
13676 2017-01-10 Tom Tromey <tom@tromey.com>
13678 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13680 2017-01-10 Tom Tromey <tom@tromey.com>
13682 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13685 2017-01-10 Tom Tromey <tom@tromey.com>
13687 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13689 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13692 2017-01-10 Tom Tromey <tom@tromey.com>
13694 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13697 2017-01-10 Tom Tromey <tom@tromey.com>
13699 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13700 decref results of PyArg_ParseTupleAndKeywords.
13702 2017-01-10 Tom Tromey <tom@tromey.com>
13704 * python/python.c (python_run_simple_file): Use
13705 unique_xmalloc_ptr, gdbpy_ref.
13707 2017-01-10 Tom Tromey <tom@tromey.com>
13709 * python/py-prettyprint.c (print_stack_unless_memory_error)
13710 (print_string_repr, print_children): Use gdbpy_ref.
13711 (dummy_python_frame): New class.
13712 (dummy_python_frame::dummy_python_frame): Rename from
13713 push_dummy_python_frame.
13714 (py_restore_tstate): Remove.
13716 2017-01-10 Tom Tromey <tom@tromey.com>
13718 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13720 2017-01-10 Tom Tromey <tom@tromey.com>
13722 * python/python.c (ensure_python_env, restore_python_env):
13724 * python/python-internal.h (ensure_python_env): Don't declare.
13725 * varobj.h (varobj_ensure_python_env): Don't declare.
13726 * varobj.c (varobj_ensure_python_env): Remove.
13728 2017-01-10 Tom Tromey <tom@tromey.com>
13730 * varobj.c (varobj_value_get_print_value): Use
13731 gdbpy_enter_varobj.
13733 2017-01-10 Tom Tromey <tom@tromey.com>
13735 * python/py-prettyprint.c (print_string_repr, print_children):
13737 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13739 * varobj.c (varobj_value_get_print_value): Update.
13740 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13742 2017-01-10 Tom Tromey <tom@tromey.com>
13744 * varobj.c (varobj_get_display_hint)
13745 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13746 (varobj_set_visualizer, free_variable): Use
13747 gdbpy_enter_varobj.
13749 2017-01-10 Tom Tromey <tom@tromey.com>
13751 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13752 (do_finish_initialization): New function. Use gdbpy_ref.
13753 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13754 do_finish_initialization.
13756 2017-01-10 Tom Tromey <tom@tromey.com>
13758 * python/py-param.c (get_set_value, get_show_value): Use
13759 gdbpy_enter, gdbpy_ref.
13761 2017-01-10 Tom Tromey <tom@tromey.com>
13763 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13765 2017-01-10 Tom Tromey <tom@tromey.com>
13767 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13769 2017-01-10 Tom Tromey <tom@tromey.com>
13771 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13772 Use gdbpy_enter_varobj.
13774 2017-01-10 Tom Tromey <tom@tromey.com>
13776 * varobj.c (gdbpy_enter_varobj): New constructor.
13777 * python/python-internal.h (gdbpy_enter_varobj): New class.
13778 * python/py-varobj.c (py_varobj_get_iterator): Use
13779 gdbpy_enter_varobj.
13781 2017-01-10 Tom Tromey <tom@tromey.com>
13783 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
13784 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13785 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
13786 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
13787 unique_xmalloc_ptr.
13788 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
13790 2017-01-10 Tom Tromey <tom@tromey.com>
13792 * python/py-xmethods.c (invoke_match_method): Use
13795 2017-01-10 Tom Tromey <tom@tromey.com>
13797 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
13798 gdbpy_enter, gdbpy_ref.
13800 2017-01-10 Tom Tromey <tom@tromey.com>
13802 * python/python.c (python_interactive_command): Use gdbpy_enter.
13804 2017-01-10 Tom Tromey <tom@tromey.com>
13806 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
13809 2017-01-10 Tom Tromey <tom@tromey.com>
13811 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
13812 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13814 2017-01-10 Tom Tromey <tom@tromey.com>
13816 * utils.h (htab_deleter): New struct.
13817 (htab_up): New typedef.
13818 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
13819 gdbpy_enter, gdbpy_ref, htab_up.
13821 2017-01-10 Tom Tromey <tom@tromey.com>
13823 * python/py-unwind.c (pending_frame_invalidate): Remove.
13824 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
13826 2017-01-10 Tom Tromey <tom@tromey.com>
13828 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
13829 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
13831 2017-01-10 Tom Tromey <tom@tromey.com>
13833 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
13835 2017-01-10 Tom Tromey <tom@tromey.com>
13837 * python/python.c (gdbpy_eval_from_control_command)
13838 (gdbpy_source_script, gdbpy_run_events)
13839 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
13840 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
13843 2017-01-10 Tom Tromey <tom@tromey.com>
13845 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
13847 2017-01-10 Tom Tromey <tom@tromey.com>
13849 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
13851 2017-01-10 Tom Tromey <tom@tromey.com>
13853 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
13854 (python_on_inferior_call_pre, python_on_inferior_call_post)
13855 (python_on_memory_change, python_on_register_change)
13856 (python_inferior_exit, python_new_objfile, add_thread_object)
13857 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
13859 2017-01-10 Tom Tromey <tom@tromey.com>
13861 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
13862 (bpfinishpy_handle_exit): Use gdbpy_enter.
13864 2017-01-10 Tom Tromey <tom@tromey.com>
13866 * python/py-cmd.c (cmdpy_destroyer)
13867 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
13870 2017-01-10 Tom Tromey <tom@tromey.com>
13872 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13874 (gdbpy_breakpoint_has_cond): Likewise.
13876 2017-01-10 Tom Tromey <tom@tromey.com>
13878 * python/python.c (gdbpy_enter): New constructor.
13879 (~gdbpy_enter): New destructor.
13880 (restore_python_env, ensure_python_env): Rewrite.
13881 * python/python-internal.h (gdbpy_enter): New class.
13883 2017-01-10 Tom Tromey <tom@tromey.com>
13885 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
13887 2017-01-10 Tom Tromey <tom@tromey.com>
13889 * python/py-value.c (value_has_field, get_field_flag)
13890 (get_field_type, valpy_getitem, convert_value_from_python): Use
13893 2017-01-10 Tom Tromey <tom@tromey.com>
13895 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
13898 2017-01-10 Tom Tromey <tom@tromey.com>
13900 * python/py-prettyprint.c (search_pp_list)
13901 (find_pretty_printer_from_objfiles)
13902 (find_pretty_printer_from_progspace)
13903 (find_pretty_printer_from_gdb, find_pretty_printer)
13904 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
13907 2017-01-10 Tom Tromey <tom@tromey.com>
13909 * python/py-param.c (call_doc_function): Use gdbpy_ref.
13911 2017-01-10 Tom Tromey <tom@tromey.com>
13913 * python/py-linetable.c (build_line_table_tuple_from_pcs)
13914 (ltpy_get_all_source_lines): Use gdbpy_ref.
13916 2017-01-10 Tom Tromey <tom@tromey.com>
13918 * python/py-framefilter.c (extract_sym, extract_value)
13919 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
13922 2017-01-10 Tom Tromey <tom@tromey.com>
13924 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
13926 2017-01-10 Tom Tromey <tom@tromey.com>
13928 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
13930 2017-01-10 Tom Tromey <tom@tromey.com>
13932 * python/py-function.c (convert_values_to_python, fnpy_init): Use
13935 2017-01-10 Tom Tromey <tom@tromey.com>
13937 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
13939 2017-01-10 Tom Tromey <tom@tromey.com>
13941 * python/py-type.c (convert_field, make_fielditem, typy_fields)
13942 (typy_range): Use gdbpy_ref.
13944 2017-01-10 Tom Tromey <tom@tromey.com>
13946 * python/py-threadevent.c (create_thread_event_object): Use
13948 * python/py-stopevent.c (create_stop_event_object): Simplify.
13949 (emit_stop_event): Use gdbpy_ref.
13950 * python/py-signalevent.c (create_signal_event_object): Use
13952 * python/py-newobjfileevent.c (create_new_objfile_event_object)
13953 (emit_new_objfile_event, create_clear_objfiles_event_object)
13954 (emit_clear_objfiles_event): Use gdbpy_ref.
13955 * python/py-infevents.c (create_inferior_call_event_object)
13956 (create_register_changed_event_object)
13957 (create_memory_changed_event_object, emit_inferior_call_event)
13958 (emit_memory_changed_event, emit_register_changed_event): Use
13960 * python/py-exitedevent.c (create_exited_event_object)
13961 (emit_exited_event): Use gdbpy_ref.
13962 * python/py-event.h (evpy_emit_event): Remove
13963 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
13964 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
13965 * python/py-continueevent.c (emit_continue_event): Use
13967 * python/py-breakpoint.c (gdbpy_breakpoint_created)
13968 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
13970 * python/py-bpevent.c (create_breakpoint_event_object): Use
13973 2017-01-10 Tom Tromey <tom@tromey.com>
13975 * python/py-ref.h: New file.
13977 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13979 * cli-out.c (cli_ui_out::do_redirect): Change return type to
13981 * cli-out.h (cli_ui_out::do_redirect): Likewise.
13982 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
13983 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
13984 * ui-out.c (ui_out::redirect): Likewise.
13985 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
13986 * cli/cli-logging.c (set_logging_redirect): Update call site of
13988 (handle_redirections): Likewise.
13989 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
13990 * top.c (execute_command_to_string): Likewise.
13991 * utils.c (do_ui_out_redirect_pop): Likewise.
13993 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13995 * stack.c (_initialize_stack): Update "frame" command help message.
13997 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
13999 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14001 2017-01-06 Yao Qi <yao.qi@linaro.org>
14003 * x86-linux-nat.h: Include gdb_proc_service.h.
14005 2017-01-06 Yao Qi <yao.qi@linaro.org>
14007 * ser-base.h: Include serial.h.
14009 2017-01-06 Yao Qi <yao.qi@linaro.org>
14011 * ppc-linux-tdep.h: Include ppc-tdep.h.
14013 2017-01-06 Yao Qi <yao.qi@linaro.org>
14015 * nat/amd64-linux-siginfo.h: Include signal.h.
14017 2017-01-06 Yao Qi <yao.qi@linaro.org>
14019 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14021 2017-01-06 Yao Qi <yao.qi@linaro.org>
14023 * mi/mi-parse.h: Include mi-cmds.h.
14025 2017-01-06 Yao Qi <yao.qi@linaro.org>
14027 * inf-loop.c: Don't include "target.h".
14028 * inf-loop.h: Include it here.
14030 2017-01-06 Yao Qi <yao.qi@linaro.org>
14032 * dfp.h: Include "dboulest.h" and "expression.h".
14034 2017-01-06 Yao Qi <yao.qi@linaro.org>
14036 * ax-gdb.h: Include "ax.h".
14038 2017-01-06 Yao Qi <yao.qi@linaro.org>
14040 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14041 with nat/gdb_ptrace.h.
14043 2017-01-05 Yao Qi <yao.qi@linaro.org>
14045 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14047 (mips64_fbsd_sigframe_init): Likewise.
14049 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14051 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14052 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14054 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14056 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14057 * NEWS: Mention new FreeBSD/mips native configuration.
14058 * config/mips/fbsd.mh: New file.
14059 * configure.host: Add mips*-*-freebsd*.
14060 * mips-fbsd-nat.c: New file.
14062 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14064 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14065 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14066 * NEWS: Mention new FreeBSD/mips target.
14067 * configure.tgt: Add mips*-*-freebsd*.
14068 * mips-fbsd-tdep.c: New file.
14069 * mips-fbsd-tdep.h: New file.
14071 2017-01-04 Yao Qi <yao.qi@linaro.org>
14073 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14074 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14076 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14078 Update copyright year range in all GDB files.
14080 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14082 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
14084 For older changes see ChangeLog-2016.
14090 version-control: never