Make gdb.selected_thread().inferior return a new reference
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
2
3 PR python/21213
4 * python/py-infthread.c (thpy_get_inferior): Increment reference
5 of inferior before returning it.
6
7 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
8
9 * unittests/common-utils-selftests.c (format): Add
10 ATTRIBUTE_PRINTF.
11
12 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * xml-syscall.c (struct syscall_desc): Add constructor.
15 <name>: Change type to std::string.
16 (syscall_desc_up): New typedef.
17 (syscall_desc_p): Remove typeder.
18 (DEF_VEC_P(syscall_desc_p)): Remove.
19 (struct syscall_group_desc): Add constructor.
20 <name>: Change type to std::string.
21 <syscalls>: Change type to std::vector.
22 (syscall_group_desc_up): New typedef.
23 (syscall_group_desc_p): Remove typedef.
24 (DEF_VEC_P(syscall_group_desc_p)): Remove.
25 (struct syscalls_info) <syscalls>: Change type to std::vector of
26 unique_ptr.
27 <groups>: Likewise.
28 <my_gdb_datadir>: Change type to std::string.
29 (syscalls_info_up): New typedef.
30 (allocate_syscalls_info): Remove.
31 (syscalls_info_free_syscalls_desc): Remove.
32 (syscalls_info_free_syscall_group_desc): Remove.
33 (free_syscalls_info): Remove.
34 (make_cleanup_free_syscalls_info): Remove.
35 (syscall_group_create_syscall_group_desc): Adjust.
36 (syscall_group_add_syscall): Adjust.
37 (syscall_create_syscall_desc): Adjust.
38 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
39 (init_syscalls_info): Adjust.
40 (syscall_group_get_group_by_name): Adjust.
41 (xml_get_syscall_number): Adjust.
42 (xml_get_syscall_name): Adjust.
43 (xml_list_of_syscalls): Adjust.
44 (xml_list_syscalls_by_group): Adjust.
45 (xml_list_of_groups): Adjust.
46
47 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
48
49 * probe.h: Don't include gdb_vecs.h.
50 (DEF_VEC_P (probe_p)): Remove.
51 (find_probes_in_objfile): Return an std::vector.
52 * probe.c (find_probes_in_objfile): Likewise.
53 * breakpoint.c (breakpoint_objfile_data)
54 <longjmp_probes>: Change type to std::vector.
55 <exception_probes>: Likewise.
56 (free_breakpoint_probes): Don't manually free vectors.
57 (create_longjmp_master_breakpoint): Adjust.
58 (create_exception_master_breakpoint): Adjust.
59 * solib-svr4.c (svr4_create_probe_breakpoints): Change
60 parameter type, adjust.
61 (svr4_create_solib_event_breakpoints): Adjust.
62
63 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
64
65 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
66 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
67 with new.
68 (free_breakpoint_probes): Rename to ...
69 (free_breakpoint_objfile_data): ... this, and call delete on
70 bp_objfile_data..
71
72 2017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
75 (loaded_script_ptr): Remove typedef.
76 (DEF_VEC_P (loaded_script_ptr)): Remove.
77 (struct collect_matching_scripts_data): Add constructor.
78 <scripts_p>: Change type to (pointer to) std::vector.
79 (collect_matching_scripts_data): Adjust.
80 (sort_scripts_by_name): Make suitable for std::sort.
81 (print_scripts): Don't sort vector, adjust to std::vector.
82 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
83
84 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
85
86 * symfile.c (filename_language): Make struct, not typedef. Add
87 constructor.
88 <ext>: Change type to std::string.
89 (DEF_VEC_O (filename_language)): Remove.
90 (filename_language_table): Change type to std::vector.
91 (add_filename_language): Adjust.
92 (set_ext_lang_command): Adjust.
93 (info_ext_lang_command): Adjust.
94 (deduce_language_from_filename): Adjust.
95 (class scoped_restore_filename_language_table): Remove.
96 (test_filename_language): Use scoped_restore.
97 (test_set_ext_lang_command): Use scoped_restore, adjust to
98 std::vector change.
99
100 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
101
102 * symfile.c: Include selftest.h.
103 (class scoped_restore_filename_language_table): New.
104 (test_filename_language): New test.
105 (test_set_ext_lang_command): New test.
106 (_initialize_symfile): Register tests.
107
108 2017-10-27 Keith Seitz <keiths@redhat.com>
109
110 * breakpoint.c (print_breakpoint_location): Use the symbol saved
111 in the bp_location, falling back to find_pc_sect_function when
112 needed.
113 (add_location_to_breakpoint): Save sal->symbol.
114 * breakpoint.h (struct bp_location) <symbol>: New field.
115 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
116 * symtab.h (struct symtab_and_line) <symbol>: New field.
117
118 2017-10-26 Patrick Frants <osscontribute@gmail.com>
119
120 PR gdb/13669
121 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
122 to rewind obstack.
123
124 2017-10-26 Pedro Alves <palves@redhat.com>
125
126 * remote.c (remote_async_terminal_ours_p): Delete.
127 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
128 Remove references to 'remote_async_terminal_ours_p'.
129
130 2017-10-26 Yao Qi <yao.qi@linaro.org>
131
132 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
133
134 2017-10-26 Yao Qi <yao.qi@linaro.org>
135
136 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
137 aspace const.
138 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
139 Likewise.
140 * breakpoint.c (bpstat_check_location): Remove cast.
141 (breakpoint_hit_catch_fork): Make aspce const.
142 (breakpoint_hit_catch_solib): Likewise.
143 (breakpoint_hit_catch_exec): Likewise.
144 (breakpoint_hit_ranged_breakpoint): Likewise.
145 (breakpoint_hit_watchpoint): Likewise.
146 (base_breakpoint_breakpoint_hit): Likewise.
147 (bkpt_breakpoint_hit): Likewise.
148 (dprintf_breakpoint_hit): Likewise.
149 (tracepoint_breakpoint_hit): Likewise.
150 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
151
152 2017-10-26 Yao Qi <yao.qi@linaro.org>
153
154 * breakpoint.c (breakpoint_location_address_match): Change
155 "struct address_space *" to "const address_space".
156 (breakpoint_location_address_range_overlap): Likewise.
157 (breakpoint_here_p): Likewise.
158 (breakpoint_in_range_p): Likewise.
159 (moribund_breakpoint_here_p): Likewise.
160 (bp_location_inserted_here_p): Likewise.
161 (software_breakpoint_inserted_here_p): Likewise.
162 (hardware_breakpoint_inserted_here_p): Likewise.
163 (hardware_watchpoint_inserted_in_range): Likewise.
164 (bpstat_check_location): Likewise.
165 (bpstat_stop_status): Likewise.
166 (breakpoint_address_match): Likewise.
167 (breakpoint_address_match_range): Likewise.
168 (breakpoint_location_address_match): Likewise.
169 (breakpoint_location_address_range_overlap): Likewise.
170 (insert_single_step_breakpoint): Likewise.
171 (breakpoint_has_location_inserted_here): Likewise.
172 (single_step_breakpoint_inserted_here_p): Likewise.
173 (pc_at_non_inline_function): Likewise.
174 * breakpoint.h (bpstat_stop_status): Update declaration.
175 (breakpoint_here_p): Likewise.
176 (breakpoint_in_range_p): Likewise.
177 (moribund_breakpoint_here_p): Likewise.
178 (breakpoint_inserted_here_p): Likewise.
179 (software_breakpoint_inserted_here_p): Likewise.
180 (hardware_breakpoint_inserted_here_p): Likewise.
181 (breakpoint_has_location_inserted_here): Likewise.
182 (single_step_breakpoint_inserted_here_p): Likewise.
183 (hardware_watchpoint_inserted_in_range): Likewise.
184 (breakpoint_address_match): Likewise.
185 (insert_single_step_breakpoint): Likewise.
186 (pc_at_non_inline_function): Likewise.
187 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
188 * record.c (record_check_stopped_by_breakpoint): Likewise.
189 * record.h (record_check_stopped_by_breakpoint): Likewise.
190 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
191
192 2017-10-25 Yao Qi <yao.qi@linaro.org>
193
194 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
195 regcache->arch () instead get_regcache_arch.
196 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
197 Likewise.
198 (aarch64_fbsd_store_inferior_registers): Likewise.
199 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
200 (store_gregs_to_thread): Likewise.
201 (fetch_fpregs_from_thread): Likewise.
202 (store_fpregs_to_thread): Likewise.
203 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
204 (aarch64_store_return_value): Likewise.
205 (aarch64_software_single_step): Likewise.
206 * aix-thread.c (aix_thread_wait): Likewise.
207 (supply_reg32): Likewise.
208 (supply_sprs64): Likewise.
209 (supply_sprs32): Likewise.
210 (fill_gprs64): Likewise.
211 (fill_gprs32): Likewise.
212 (fill_sprs64): Likewise.
213 (fill_sprs32): Likewise.
214 (store_regs_user_thread): Likewise.
215 (store_regs_kernel_thread): Likewise.
216 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
217 (alphabsd_store_inferior_registers): Likewise.
218 * alpha-tdep.c (alpha_extract_return_value): Likewise.
219 (alpha_store_return_value): Likewise.
220 (alpha_deal_with_atomic_sequence): Likewise.
221 (alpha_next_pc): Likewise.
222 (alpha_software_single_step): Likewise.
223 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
224 (amd64bsd_store_inferior_registers): Likewise.
225 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
226 Likewise.
227 (amd64_linux_store_inferior_registers): Likewise.
228 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
229 (amd64_collect_native_gregset): Likewise.
230 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
231 (amd64obsd_collect_uthread): Likewise.
232 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
233 (amd64_collect_fpregset): Likewise.
234 (amd64_supply_fxsave): Likewise.
235 (amd64_supply_xsave): Likewise.
236 (amd64_collect_fxsave): Likewise.
237 (amd64_collect_xsave): Likewise.
238 * arc-tdep.c (arc_write_pc): Likewise.
239 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
240 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
241 (arm_fbsd_store_inferior_registers): Likewise.
242 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
243 (store_vfp_regs): Likewise.
244 (arm_linux_fetch_inferior_registers): Likewise.
245 (arm_linux_store_inferior_registers): Likewise.
246 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
247 (arm_linux_sigreturn_next_pc): Likewise.
248 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
249 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
250 (fetch_register): Likewise.
251 (store_register): Likewise.
252 * arm-tdep.c (arm_is_thumb): Likewise.
253 (displaced_in_arm_mode): Likewise.
254 (bx_write_pc): Likewise.
255 (arm_get_next_pcs_addr_bits_remove): Likewise.
256 (arm_software_single_step): Likewise.
257 (arm_extract_return_value): Likewise.
258 (arm_store_return_value): Likewise.
259 (arm_write_pc): Likewise.
260 * bfin-tdep.c (bfin_extract_return_value): Likewise.
261 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
262 (bsd_uthread_store_registers): Likewise.
263 * core-regset.c (fetch_core_registers): Likewise.
264 * corelow.c (get_core_registers): Likewise.
265 * cris-tdep.c (cris_store_return_value): Likewise.
266 (cris_extract_return_value): Likewise.
267 (find_step_target): Likewise.
268 (find_step_target): Likewise.
269 (cris_software_single_step): Likewise.
270 * ctf.c (ctf_fetch_registers): Likewise.
271 * darwin-nat.c (cancel_breakpoint): Likewise.
272 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
273 * frv-tdep.c (frv_extract_return_value): Likewise.
274 * ft32-tdep.c (ft32_store_return_value): Likewise.
275 (ft32_extract_return_value): Likewise.
276 * go32-nat.c (fetch_register): Likewise.
277 (go32_fetch_registers): Likewise.
278 (go32_store_registers): Likewise.
279 (store_register): Likewise.
280 * h8300-tdep.c (h8300_extract_return_value): Likewise.
281 (h8300_store_return_value): Likewise.
282 * hppa-linux-nat.c (fetch_register): Likewise.
283 (store_register): Likewise.
284 (hppa_linux_fetch_inferior_registers): Likewise.
285 (hppa_linux_store_inferior_registers): Likewise.
286 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
287 (i386_darwin_store_inferior_registers): Likewise.
288 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
289 (gnu_store_registers): Likewise.
290 * i386-linux-nat.c (fetch_register): Likewise.
291 (store_register): Likewise.
292 (supply_gregset): Likewise.
293 (fill_gregset): Likewise.
294 (i386_linux_fetch_inferior_registers): Likewise.
295 (i386_linux_store_inferior_registers): Likewise.
296 (i386_linux_resume): Likewise.
297 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
298 Likewise.
299 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
300 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
301 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
302 (i386obsd_collect_uthread): Likewise.
303 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
304 (i386_supply_gregset): Likewise.
305 (i386_collect_gregset): Likewise.
306 (i386_supply_fpregset): Likewise.
307 (i386_collect_fpregset): Likewise.
308 (i386_mpx_bd_base): Likewise.
309 * i386-v4-nat.c (supply_fpregset): Likewise.
310 (fill_fpregset): Likewise.
311 * i387-tdep.c (i387_supply_fsave): Likewise.
312 (i387_collect_fsave): Likewise.
313 (i387_supply_fxsave): Likewise.
314 (i387_collect_fxsave): Likewise.
315 (i387_supply_xsave): Likewise.
316 (i387_collect_xsave): Likewise.
317 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
318 (ia64_linux_store_registers): Likewise.
319 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
320 (ia64_extract_return_value): Likewise.
321 (ia64_store_return_value): Likewise.
322 (find_func_descr): Likewise.
323 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
324 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
325 (inf_ptrace_store_registers): Likewise.
326 * infrun.c (use_displaced_stepping): Likewise.
327 (displaced_step_prepare_throw): Likewise.
328 (resume): Likewise.
329 (proceed): Likewise.
330 (do_target_wait): Likewise.
331 (adjust_pc_after_break): Likewise.
332 (handle_inferior_event_1): Likewise.
333 (handle_signal_stop): Likewise.
334 (save_infcall_suspend_state): Likewise.
335 (restore_infcall_suspend_state): Likewise.
336 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
337 * jit.c (jit_frame_prev_register): Likewise.
338 * linux-nat.c (save_stop_reason): Likewise.
339 (linux_nat_wait_1): Likewise.
340 (resume_stopped_resumed_lwps): Likewise.
341 * linux-record.c (record_linux_sockaddr): Likewise.
342 (record_linux_msghdr): Likewise.
343 (record_linux_system_call): Likewise.
344 * linux-tdep.c (linux_collect_thread_registers): Likewise.
345 * lm32-tdep.c (lm32_extract_return_value): Likewise.
346 (lm32_store_return_value): Likewise.
347 * m32c-tdep.c (m32c_read_flg): Likewise.
348 (m32c_pseudo_register_read): Likewise.
349 (m32c_pseudo_register_write): Likewise.
350 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
351 (m32r_linux_collect_gregset): Likewise.
352 * m32r-tdep.c (m32r_store_return_value): Likewise.
353 (m32r_extract_return_value): Likewise.
354 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
355 (m68kbsd_collect_fpregset): Likewise.
356 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
357 * m68k-linux-nat.c (fetch_register): Likewise.
358 (old_fetch_inferior_registers): Likewise.
359 (old_store_inferior_registers): Likewise.
360 (store_regs): Likewise.
361 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
362 (m68k_svr4_store_return_value): Likewise.
363 * m88k-tdep.c (m88k_store_arguments): Likewise.
364 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
365 (mi_cmd_data_write_register_values): Likewise.
366 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
367 (mips_fbsd_store_inferior_registers): Likewise.
368 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
369 (mips_fbsd_supply_gregs): Likewise.
370 (mips_fbsd_collect_fpregs): Likewise.
371 (mips_fbsd_collect_gregs): Likewise.
372 (mips_fbsd_supply_fpregset): Likewise.
373 (mips_fbsd_collect_fpregset): Likewise.
374 (mips_fbsd_supply_gregset): Likewise.
375 (mips_fbsd_collect_gregset): Likewise.
376 * mips-linux-nat.c (supply_gregset): Likewise.
377 (fill_gregset): Likewise.
378 (supply_fpregset): Likewise.
379 (fill_fpregset): Likewise.
380 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
381 (mips_fill_gregset): Likewise.
382 (mips_supply_fpregset): Likewise.
383 (mips_fill_fpregset): Likewise.
384 (mips64_supply_gregset): Likewise.
385 (micromips_linux_sigframe_validate): Likewise.
386 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
387 (mipsnbsd_fetch_inferior_registers): Likewise.
388 (mipsnbsd_store_inferior_registers): Likewise.
389 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
390 (mipsnbsd_supply_gregset): Likewise.
391 (mipsnbsd_iterate_over_regset_sections): Likewise.
392 (mipsnbsd_supply_reg): Likewise.
393 (mipsnbsd_supply_fpreg): Likewise.
394 * mips-tdep.c (mips_in_frame_stub): Likewise.
395 (mips_dummy_id): Likewise.
396 (is_octeon_bbit_op): Likewise.
397 (micromips_bc1_pc): Likewise.
398 (extended_mips16_next_pc): Likewise.
399 (mips16_next_pc): Likewise.
400 (deal_with_atomic_sequence): Likewise.
401 * moxie-tdep.c (moxie_process_readu): Likewise.
402 * nios2-tdep.c (nios2_get_next_pc): Likewise.
403 * nto-procfs.c (procfs_store_registers): Likewise.
404 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
405 (ppcfbsd_store_inferior_registers): Likewise.
406 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
407 (fetch_altivec_register): Likewise.
408 (get_spe_registers): Likewise.
409 (fetch_spe_register): Likewise.
410 (fetch_altivec_registers): Likewise.
411 (fetch_all_gp_regs): Likewise.
412 (fetch_all_fp_regs): Likewise.
413 (store_vsx_register): Likewise.
414 (store_altivec_register): Likewise.
415 (set_spe_registers): Likewise.
416 (store_spe_register): Likewise.
417 (store_altivec_registers): Likewise.
418 (store_all_gp_regs): Likewise.
419 (store_all_fp_regs): Likewise.
420 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
421 (ppc_linux_collect_gregset): Likewise.
422 (ppc_canonicalize_syscall): Likewise.
423 (ppc_linux_record_signal): Likewise.
424 (ppu2spu_prev_register): Likewise.
425 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
426 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
427 (ppcobsd_store_registers): Likewise.
428 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
429 Likewise.
430 (ppc_ravenscar_generic_store_registers): Likewise.
431 * procfs.c (procfs_fetch_registers): Likewise.
432 (procfs_store_registers): Likewise.
433 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
434 (ravenscar_store_registers): Likewise.
435 (ravenscar_prepare_to_store): Likewise.
436 * record-btrace.c (record_btrace_fetch_registers): Likewise.
437 * record-full.c (record_full_wait_1): Likewise.
438 (record_full_registers_change): Likewise.
439 (record_full_store_registers): Likewise.
440 (record_full_core_fetch_registers): Likewise.
441 (record_full_save): Likewise.
442 (record_full_goto_insn): Likewise.
443 * regcache.c (regcache_register_size): Likewise.
444 (get_regcache_arch): Remove.
445 (regcache_read_pc): Likewise.
446 * regcache.h (get_regcache_arch): Remove.
447 * remote-sim.c (gdbsim_fetch_register): Likewise.
448 (gdbsim_store_register): Likewise.
449 * remote.c (fetch_register_using_p): Likewise.
450 (send_g_packet): Likewise.
451 (remote_prepare_to_store): Likewise.
452 (store_registers_using_G): Likewise.
453 * reverse.c (save_bookmark_command): Likewise.
454 (goto_bookmark_command): Likewise.
455 * rs6000-aix-tdep.c (branch_dest): Likewise.
456 * rs6000-nat.c (rs6000_ptrace64): Likewise.
457 (fetch_register): Likewise.
458 * rs6000-tdep.c (ppc_supply_reg): Likewise.
459 (ppc_collect_reg): Likewise.
460 (ppc_collect_gregset): Likewise.
461 (ppc_collect_fpregset): Likewise.
462 (ppc_collect_vsxregset): Likewise.
463 (ppc_collect_vrregset): Likewise.
464 (ppc_displaced_step_hw_singlestep): Likewise.
465 (rs6000_pseudo_register_read): Likewise.
466 (rs6000_pseudo_register_write): Likewise.
467 * s390-linux-nat.c (supply_gregset): Likewise.
468 (fill_gregset): Likewise.
469 (s390_linux_fetch_inferior_registers): Likewise.
470 * s390-linux-tdep.c (s390_write_pc): Likewise.
471 (s390_software_single_step): Likewise.
472 (s390_all_but_pc_registers_record): Likewise.
473 (s390_linux_syscall_record): Likewise.
474 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
475 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
476 (shnbsd_store_inferior_registers): Likewise.
477 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
478 (sh_extract_return_value_fpu): Likewise.
479 (sh_store_return_value_nofpu): Likewise.
480 (sh_corefile_supply_regset): Likewise.
481 (sh_corefile_collect_regset): Likewise.
482 * sh64-tdep.c (sh64_extract_return_value): Likewise.
483 (sh64_store_return_value): Likewise.
484 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
485 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
486 (sparc_store_inferior_registers): Likewise.
487 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
488 (sparc_ravenscar_prepare_to_store): Likewise.
489 * sparc-tdep.c (sparc32_store_arguments): Likewise.
490 (sparc_analyze_control_transfer): Likewise.
491 (sparc_step_trap): Likewise.
492 (sparc_software_single_step): Likewise.
493 (sparc32_gdbarch_init): Likewise.
494 (sparc_supply_rwindow): Likewise.
495 (sparc_collect_rwindow): Likewise.
496 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
497 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
498 (sparc64nbsd_collect_gregset): Likewise.
499 (sparc64nbsd_supply_fpregset): Likewise.
500 (sparc64nbsd_collect_fpregset): Likewise.
501 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
502 (sparc64_supply_gregset): Likewise.
503 (sparc64_collect_gregset): Likewise.
504 (sparc64_supply_fpregset): Likewise.
505 (sparc64_collect_fpregset): Likewise.
506 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
507 * spu-tdep.c (spu_unwind_sp): Likewise.
508 (spu2ppu_prev_register): Likewise.
509 (spu_memory_remove_breakpoint): Likewise.
510 * stack.c (return_command): Likewise.
511 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
512 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
513 * tracefile.c (trace_save_ctf): Likewise.
514 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
515 (do_windows_store_inferior_registers): Likewise.
516 (windows_resume): Likewise.
517 * xtensa-linux-nat.c (fill_gregset): Likewise.
518 (supply_gregset_reg): Likewise.
519 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
520 (xtensa_register_read_masked): Likewise.
521 (xtensa_supply_gregset): Likewise.
522 (xtensa_extract_return_value): Likewise.
523 (xtensa_store_return_value): Likewise.
524
525 2017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
526
527 * doublest.c (floatformat_from_string): New function.
528 * doublest.h (floatformat_from_string): Add prototype.
529
530 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
531 (OP_FLOAT): ... this.
532 * expression.h: Do not include "doublest.h".
533 (union exp_element): Replace doubleconst and decfloatconst by
534 new element floatconst.
535 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
536 (ada_evaluate_subexp): Likewise.
537 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
538 OP_DOUBLE and OP_DECFLOAT.
539 * expprint.c (print_subexp_standard): Likewise.
540 (dump_subexp_body_standard): Likewise.
541 * breakpoint.c (watchpoint_exp_is_const): Likewise.
542
543 * parse.c: Include "dfp.h".
544 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
545 (write_exp_elt_floatcst): New function.
546 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
547 and OP_DECFLOAT.
548 (operator_check_standard): Likewise.
549 (parse_float): Do not accept suffix. Take type as input. Return bool.
550 Return target format buffer instead of host DOUBLEST.
551 Use floatformat_from_string and decimal_from_string to parse
552 either binary or decimal floating-point types.
553 (parse_c_float): Remove.
554 * parser-defs.h: Do not include "doublest.h".
555 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
556 (write_exp_elt_floatcst): Add prototype.
557 (parse_float): Update prototype.
558 (parse_c_float): Remove.
559
560 * c-exp.y: Do not include "dfp.h".
561 (typed_val_float): Use byte buffer instead of DOUBLEST.
562 (typed_val_decfloat): Remove.
563 (DECFLOAT): Remove.
564 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
565 (parse_number): Update to new parse_float interface.
566 Parse suffixes and determine type before calling parse_float.
567 Handle decimal and binary FP types the same way.
568
569 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
570 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
571 (parse_number): Update to new parse_float interface.
572 Parse suffixes and determine type before calling parse_float.
573
574 * f-exp.y: Replace dval by typed_val_float.
575 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
576 (parse_number): Use parse_float instead of atof.
577
578 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
579 (parse_go_float): Remove.
580 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
581 (parse_number): Call parse_float instead of parse_go_float.
582 Parse suffixes and determine type before calling parse_float.
583
584 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
585 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
586 (parse_number): Update to new parse_float interface.
587 Parse suffixes and determine type before calling parse_float.
588
589 * m2-exp.y: Replace dval by byte buffer val.
590 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
591 (parse_number): Call parse_float instead of atof.
592
593 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
594 (lex_number): Call parse_float instead of strtod.
595 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
596 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
597 Use write_exp_elt_floatcst.
598 (unit_testing): Remove static variable.
599 (rust_type): Do not check unit_testing.
600 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
601
602 * ada-exp.y (type_float, type_double): Remove.
603 (typed_val_float): Use byte buffer instead of DOUBLEST.
604 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
605 * ada-lex.l (processReal): Use parse_float instead of sscanf.
606
607 2017-10-25 Alan Hayward <alan.hayward@arm.com>
608
609 * aarch64-tdep.h (enum aarch64_regnum): Remove.
610 * arch/aarch64.h: New file.
611
612 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
613
614 * dfp.h (decimal_from_string): Use const reference for argument.
615 * dfp.c (decimal_from_string): Likewise.
616
617 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
618
619 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
620 * sh64-tdep.c (sh64_do_fp_register): Likewise.
621 * mips-tdep.c (mips_print_fp_register): Likewise.
622
623 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
624
625 * common/format.h (enum argclass): Replace decfloat_arg by
626 dec32float_arg, dec64float_arg, and dec128float_arg.
627 * common/format.c (parse_format_string): Update to return
628 new decimal float argument classes.
629
630 * printcmd.c (printf_decfloat): Rename to ...
631 (printf_floating): ... this. Add argclass argument, and use it
632 instead of parsing the format string again. Add support for
633 binary floating-point values, using floatformat_to_string.
634 Convert value to the target format if it doesn't already match.
635 (ui_printf): Call printf_floating instead of printf_decfloat,
636 also for double_arg / long_double_arg. Pass argclass.
637
638 * dfp.c (decimal_to_string): Add format string argument.
639 * dfp.h (decimal_to_string): Likewise.
640
641 * doublest.c (floatformat_to_string): Add format string argument.
642 * doublest.h (floatformat_to_string): Likewise.
643
644 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
645
646 * doublest.c (floatformat_precision): New routine.
647 (floatformat_to_string): Likewise.
648 * doublest.c (floatformat_to_string): Add prototype.
649
650 * printcmd.c (print_scalar_formatted): Only call print_floating
651 on floating-point types.
652 * valprint.c: Do not include "floatformat.h".
653 (generic_val_print_decfloat): Remove.
654 (generic_val_print): Call generic_val_print_float for both
655 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
656 (print_floating): Use floatformat_to_string. Handle decimal float.
657 (print_decimal_floating): Remove, merge into floatformat_to_string.
658 * value.h (print_decimal_floating): Remove.
659
660 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
661
662 2017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
663
664 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
665
666 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
667
668 * memattr.h: Don't include vec.h.
669 (struct mem_attrib): Initialize fields.
670 <unknown>: New static method.
671 (struct mem_region): Add constructors, operator<, initialize
672 fields.
673 * memattr.c: Include algorithm.
674 (default_mem_attrib, unknown_mem_attrib): Remove.
675 (user_mem_region_list): New global.
676 (target_mem_region_list, mem_region_list): Change type to
677 std::vector<mem_region>.
678 (mem_use_target): Now a function.
679 (target_mem_regions_valid): Change type to bool.
680 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
681 (require_user_regions): Adjust.
682 (require_target_regions): Adjust.
683 (create_mem_region): Adjust.
684 (lookup_mem_region): Adjust.
685 (invalidate_target_mem_regions): Adjust.
686 (mem_clear): Rename to...
687 (user_mem_clear): ... this, and adjust.
688 (mem_command): Adjust.
689 (info_mem_command): Adjust.
690 (mem_enable, enable_mem_command, mem_disable,
691 disable_mem_command): Adjust.
692 (mem_delete): Adjust.
693 (delete_mem_command): Adjust.
694 * memory-map.h (parse_memory_map): Return an std::vector.
695 * memory-map.c (parse_memory_map): Likewise.
696 (struct memory_map_parsing_data): Add constructor.
697 <memory_map>: Point to std::vector.
698 (memory_map_start_memory): Adjust.
699 (memory_map_end_memory): Adjust.
700 (memory_map_end_property): Adjust.
701 (clear_result): Remove.
702 * remote.c (remote_memory_map): Return an std::vector.
703 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
704 Remove.
705 (target_debug_print_mem_region_vector): New.
706 * target-delegates.c: Regenerate.
707 * target.h (mem_region_vector): New typedef.
708 (to_memory_map): Return mem_region_vector.
709 (target_memory_map): Return an std::vector.
710 * target.c (target_memory_map): Return an std::vector.
711 (flash_erase_command): Adjust.
712
713 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
714
715 * memory-map.c (struct memory_map_parsing_data) <property_name>:
716 Change type to std::string.
717 (memory_map_start_property): Adjust.
718 (memory_map_end_property): Adjust.
719
720 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
721
722 * infrun.h: Include common/byte-vector.h.
723 (struct displaced_step_closure): New struct.
724 (struct buf_displaced_step_closure): New struct.
725 * infrun.c (displaced_step_closure::~displaced_step_closure):
726 Provide default implementation.
727 (displaced_step_clear): Deallocate step closure with delete.
728 * aarch64-tdep.c (displaced_step_closure): Rename to ...
729 (aarch64_displaced_step_closure): ... this, extend
730 displaced_step_closure.
731 (aarch64_displaced_step_data) <dsc>: Change type to
732 aarch64_displaced_step_closure.
733 (aarch64_displaced_step_copy_insn): Adjust to type change, use
734 unique_ptr.
735 (aarch64_displaced_step_fixup): Add cast for displaced step
736 closure.
737 * amd64-tdep.c (displaced_step_closure): Rename to ...
738 (amd64_displaced_step_closure): ... this, extend
739 displaced_step_closure.
740 <insn_buf>: Change type to std::vector<gdb_byte>.
741 <max_len>: Remove.
742 (fixup_riprel): Change type of DSC parameter, adjust to type
743 change of insn_buf.
744 (fixup_displaced_copy): Change type of DSC parameter.
745 (amd64_displaced_step_copy_insn): Instantiate
746 amd64_displaced_step_closure.
747 (amd64_displaced_step_fixup): Add cast for closure type, adjust
748 to type change of insn_buf.
749 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
750 parameter DSC.
751 (arm_linux_copy_svc): Likewise.
752 (cleanup_kernel_helper_return): Likewise.
753 (arm_catch_kernel_helper_return): Likewise.
754 (arm_linux_displaced_step_copy_insn): Instantiate
755 arm_displaced_step_closure.
756 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
757 (displaced_read_reg): Change type of parameter DSC.
758 (branch_write_pc): Likewise.
759 (load_write_pc): Likewise.
760 (alu_write_pc): Likewise.
761 (displaced_write_reg): Likewise.
762 (arm_copy_unmodified): Likewise.
763 (thumb_copy_unmodified_32bit): Likewise.
764 (thumb_copy_unmodified_16bit): Likewise.
765 (cleanup_preload): Likewise.
766 (install_preload): Likewise.
767 (arm_copy_preload): Likewise.
768 (thumb2_copy_preload): Likewise.
769 (install_preload_reg): Likewise.
770 (arm_copy_preload_reg): Likewise.
771 (cleanup_copro_load_store): Likewise.
772 (install_copro_load_store): Likewise.
773 (arm_copy_copro_load_store) Likewise.
774 (thumb2_copy_copro_load_store): Likewise.
775 (cleanup_branch): Likewise.
776 (install_b_bl_blx): Likewise.
777 (arm_copy_b_bl_blx): Likewise.
778 (thumb2_copy_b_bl_blx): Likewise.
779 (thumb_copy_b): Likewise.
780 (install_bx_blx_reg): Likewise.
781 (arm_copy_bx_blx_reg): Likewise.
782 (thumb_copy_bx_blx_reg): Likewise.
783 (cleanup_alu_imm): Likewise.
784 (arm_copy_alu_imm): Likewise.
785 (thumb2_copy_alu_imm): Likewise.
786 (cleanup_alu_reg): Likewise.
787 (install_alu_reg): Likewise.
788 (arm_copy_alu_reg): Likewise.
789 (thumb_copy_alu_reg): Likewise.
790 (cleanup_alu_shifted_reg): Likewise.
791 (install_alu_shifted_reg): Likewise.
792 (arm_copy_alu_shifted_reg): Likewise.
793 (cleanup_load): Likewise.
794 (cleanup_store): Likewise.
795 (arm_copy_extra_ld_st): Likewise.
796 (install_load_store): Likewise.
797 (thumb2_copy_load_literal): Likewise.
798 (thumb2_copy_load_reg_imm): Likewise.
799 (arm_copy_ldr_str_ldrb_strb): Likewise.
800 (cleanup_block_load_all): Likewise.
801 (cleanup_block_store_pc): Likewise.
802 (cleanup_block_load_pc): Likewise.
803 (arm_copy_block_xfer): Likewise.
804 (thumb2_copy_block_xfer): Likewise.
805 (cleanup_svc): Likewise.
806 (install_svc): Likewise.
807 (arm_copy_svc): Likewise.
808 (thumb_copy_svc): Likewise.
809 (arm_copy_undef): Likewise.
810 (thumb_32bit_copy_undef): Likewise.
811 (arm_copy_unpred): Likewise.
812 (arm_decode_misc_memhint_neon): Likewise.
813 (arm_decode_unconditional): Likewise.
814 (arm_decode_miscellaneous): Likewise.
815 (arm_decode_dp_misc): Likewise.
816 (arm_decode_ld_st_word_ubyte): Likewise.
817 (arm_decode_media): Likewise.
818 (arm_decode_b_bl_ldmstm): Likewise.
819 (arm_decode_ext_reg_ld_st): Likewise.
820 (thumb2_decode_dp_shift_reg): Likewise.
821 (thumb2_decode_ext_reg_ld_st): Likewise.
822 (arm_decode_svc_copro): Likewise.
823 (thumb2_decode_svc_copro): Likewise.
824 (install_pc_relative): Likewise.
825 (thumb_copy_pc_relative_16bit): Likewise.
826 (thumb_decode_pc_relative_16bit): Likewise.
827 (thumb_copy_pc_relative_32bit): Likewise.
828 (thumb_copy_16bit_ldr_literal): Likewise.
829 (thumb_copy_cbnz_cbz): Likewise.
830 (thumb2_copy_table_branch): Likewise.
831 (cleanup_pop_pc_16bit_all): Likewise.
832 (thumb_copy_pop_pc_16bit): Likewise.
833 (thumb_process_displaced_16bit_insn): Likewise.
834 (decode_thumb_32bit_ld_mem_hints): Likewise.
835 (thumb_process_displaced_32bit_insn): Likewise.
836 (thumb_process_displaced_insn): Likewise.
837 (arm_process_displaced_insn): Likewise.
838 (arm_displaced_init_closure): Likewise.
839 (arm_displaced_step_fixup): Add cast for closure.
840 * arm-tdep.h: Include infrun.h.
841 (displaced_step_closure): Rename to ...
842 (arm_displaced_step_closure): ... this, extend
843 displaced_step_closure.
844 <u::svc::copy_svc_os>: Change type of parameter DSC.
845 <cleanup>: Likewise.
846 (arm_process_displaced_insn): Likewise.
847 (arm_displaced_init_closure): Likewise.
848 (displaced_read_reg): Likewise.
849 (displaced_write_reg): Likewise.
850 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
851 Adjust.
852 * i386-tdep.h: Include infrun.h.
853 (i386_displaced_step_closure): New typedef.
854 * i386-tdep.c (i386_displaced_step_copy_insn): Use
855 i386_displaced_step_closure.
856 (i386_displaced_step_fixup): Adjust.
857 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
858 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
859 and unique_ptr.
860 (ppc_displaced_step_fixup): Adjust.
861 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
862 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
863 and unique_ptr.
864 (s390_displaced_step_fixup): Adjust.
865
866 2017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * interps.h (interp_resume, interp_suspend, interp_set_temp):
869 Remove declarations.
870
871 2017-10-20 Tom Tromey <tom@tromey.com>
872
873 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
874 std::vector.
875 (gdb_bfd_record_inclusion): Update.
876 (bfdp): Remove typedef.
877
878 2017-10-20 Tom Tromey <tom@tromey.com>
879
880 * gdb_bfd.c (gdb_bfd_ref): Use new.
881 (struct gdb_bfd_data): Add constructor, destructor, and member
882 initializers.
883 (gdb_bfd_unref): Use delete.
884
885 2017-10-20 Tom Tromey <tom@tromey.com>
886
887 * exec.c (exec_file_attach): Use new_bfd_ref.
888 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
889 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
890 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
891 new_bfd_ref.
892 * gdb_bfd.h (new_bfd_ref): New function.
893
894 2017-10-20 Pedro Alves <palves@redhat.com>
895
896 * main.c (captured_command_loop): Add attribute noinline.
897
898 2017-10-19 Simon Marchi <simon.marchi@ericsson.com>
899
900 * interps.c (struct interp_factory): Add constructor.
901 (interp_factory_p): Remove typedef.
902 (DEF_VEC_P(interp_factory_p)): Remove.
903 (interpreter_factories): Change type to std::vector.
904 (interp_factory_register): Adjust.
905 (interp_lookup): Adjust.
906 (interpreter_completer): Adjust.
907
908 2017-10-19 Tom Tromey <tom@tromey.com>
909
910 * break-catch-syscall.c (catch_syscall_completer): Use
911 std::string, gdb::unique_xmalloc_ptr.
912
913 2017-10-19 Tom Tromey <tom@tromey.com>
914
915 * infcall.c (call_function_by_hand_dummy): Use std::string.
916
917 2017-10-19 Tom Tromey <tom@tromey.com>
918
919 * mi/mi-main.c (mi_cmd_execute): Update.
920 * top.h (prepare_execute_command): Return scoped_value_mark.
921 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
922 Add move constructor.
923 * top.c (prepare_execute_command): Return scoped_value_mark.
924 (execute_command): Update.
925
926 2017-10-19 Pedro Alves <palves@redhat.com>
927
928 * xml-support.c (xml_fetch_content_from_file): Check fread's
929 return.
930
931 2017-10-19 Pedro Alves <palves@redhat.com>
932
933 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
934 async.
935 (handle_error_fd): New function.
936 (ser_base_async): Add/delete an event loop file handler for
937 error_fd.
938
939 2017-10-19 Pedro Alves <palves@redhat.com>
940
941 * xml-support.c (xml_fetch_content_from_file): Don't read in
942 chunks. Instead use fseek to determine the file's size, and read
943 it in one go.
944
945 2017-11-18 Keith Seitz <keiths@redhat.com>
946
947 * c-exp.y (oper): Canonicalize conversion operators of user-defined
948 types.
949 Add whitespace to front of type name.
950
951 2017-10-18 Keith Seitz <keiths@redhat.com>
952
953 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
954 DW_AT_accessibility.
955
956 2017-10-18 Yao Qi <yao.qi@linaro.org>
957
958 * features/tic6x-c62x-linux.c: Remove.
959
960 2017-10-17 Tom Tromey <tom@tromey.com>
961
962 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
963 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
964 (do_mixed_source_and_assembly): Likewise.
965
966 2017-10-17 Tom Tromey <tom@tromey.com>
967
968 * regcache.c (regcache::xfer_part): Remove assertion.
969
970 2017-10-17 Pedro Alves <palves@redhat.com>
971
972 * xml-support.c (xml_fetch_content_from_file): Call
973 unique_ptr::release() instead unique_ptr::get() when passing
974 through xrealloc.
975
976 2017-10-17 Yao Qi <yao.qi@linaro.org>
977
978 * regcache.c (regcache::xfer_part): Remove parameters read and
979 write, add parameter is_raw. All callers are updated.
980
981 2017-10-16 Keith Seitz <keiths@redhat.com>
982
983 * c-typeprint.c (enum access_specifier): Moved here from
984 c_type_print_base.
985 (output_access_specifier): New function.
986 (c_type_print_base): Consider typedefs when assessing
987 whether access labels are needed.
988 Use output_access_specifier as needed.
989 Output access specifier for typedefs, if needed.
990 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
991 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
992 fields.
993 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
994 accessor macros.
995
996 2017-10-16 Tom Tromey <tom@tromey.com>
997
998 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
999 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1000 * target.c (target_fileio_read_stralloc): Update.
1001 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1002 * target.h (target_fileio_read_stralloc): Return
1003 unique_xmalloc_ptr.
1004
1005 2017-10-16 Tom Tromey <tom@tromey.com>
1006
1007 * xml-syscall.c (xml_init_syscalls_info): Update.
1008 * xml-support.c (xinclude_start_include): Update.
1009 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1010 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1011 (xml_fetch_content_from_file): Likewise.
1012 * osdata.c (get_osdata): Update.
1013 * target.h (target_read_stralloc, target_get_osdata): Return
1014 unique_xmalloc_ptr.
1015 * solib-aix.c (solib_aix_get_library_list): Update.
1016 * solib-target.c (solib_target_current_sos): Update.
1017 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1018 * xml-tdesc.c (fetch_available_features_from_target): Update.
1019 (target_fetch_description_xml): Update.
1020 (file_read_description_xml): Update.
1021 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1022 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1023 (remote_pid_to_exec_file): Update.
1024 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1025 (target_get_osdata): Likewise.
1026
1027 2017-10-16 Tom Tromey <tom@tromey.com>
1028
1029 * remote.c (remote_register_number_and_offset): Use std::vector.
1030 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1031 (putpkt_binary): Use gdb::def_vector.
1032 (compare_sections_command): Use gdb::byte_vector.
1033
1034 2017-10-16 Tom Tromey <tom@tromey.com>
1035
1036 * ppc-linux-nat.c (hwdebug_insert_point): Use
1037 gdb::unique_xmalloc_ptr, XDUP.
1038
1039 2017-10-16 Tom Tromey <tom@tromey.com>
1040
1041 * probe.c (parse_probes): Use std::string.
1042 (info_probes_for_ops, enable_probes_command)
1043 (disable_probes_command): Remove cleanups.
1044
1045 2017-10-16 Tom Tromey <tom@tromey.com>
1046
1047 * buildsym.c (block_compar): Remove.
1048 (end_symtab_get_static_block): Use std::vector.
1049
1050 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1051
1052 * memrange.h (struct mem_range): Define operator< and operator==.
1053 (mem_range_s): Remove.
1054 (DEF_VEC_O (mem_range_s)): Remove.
1055 (normalize_mem_ranges): Change parameter type to std::vector.
1056 * memrange.c (compare_mem_ranges): Remove.
1057 (normalize_mem_ranges): Change parameter type to std::vector,
1058 adjust to vector change.
1059 * exec.c (section_table_available_memory): Return vector, remove
1060 parameter.
1061 (section_table_read_available_memory): Adjust to std::vector
1062 change.
1063 * remote.c (remote_read_bytes): Adjust to std::vector
1064 change.
1065 * tracepoint.h (traceframe_available_memory): Change parameter
1066 type to std::vector.
1067 * tracepoint.c (traceframe_available_memory): Change parameter
1068 type to std::vector, adjust.
1069 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1070 std::vector change.
1071 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1072 unittests/memrange-selftests.c.
1073 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1074 * gdb/unittests/memrange-selftests.c: New file.
1075
1076 2017-10-16 Pedro Alves <palves@redhat.com>
1077
1078 * elfread.c (probe_key_free): Rename range-for variable.
1079 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1080 (find_probe_by_pc, collect_probes): Rename range-for variable.
1081
1082 2017-10-16 Yao Qi <yao.qi@linaro.org>
1083
1084 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1085 * features/tic6x-c62x.c: Remove.
1086 * features/tic6x-c64x-linux.c: Remove.
1087 * features/tic6x-c64x.c: Remove.
1088 * features/tic6x-c64xp-linux.c: Remove.
1089 * features/tic6x-c64xp.c: Remove.
1090 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1091 initialize_tdesc_tic6x_*_linux functions.
1092 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1093 initialize_tdesc_tic6x_* functions.
1094
1095 2017-10-16 Yao Qi <yao.qi@linaro.org>
1096
1097 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1098 tic6x-c62x.
1099 * regformats/tic6x-c62x.dat: Remove.
1100 * regformats/tic6x-c64x.dat: Remove.
1101 * regformats/tic6x-c64xp.dat: Remove.
1102
1103 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1104
1105 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1106 (the !HAVE_LIBEXPAT version).
1107
1108 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1109
1110 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1111 const.
1112
1113 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1114
1115 * target.h: Include tracepoint.h.
1116 (enum trace_find_type): Move to tracepoint.h.
1117 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1118 * tracepoint.h: Don't include target.h
1119 (enum trace_find_type): Move from target.h.
1120 (parse_traceframe_info): Return a unique ptr.
1121 * tracepoint.c (current_traceframe_info): Change type to unique
1122 ptr.
1123 (free_traceframe_info): Remove.
1124 (clear_traceframe_info): Don't manually free
1125 current_traceframe_info.
1126 (free_result): Remove.
1127 (parse_traceframe_info): Return a unique ptr.
1128 (get_traceframe_info): Adjust to unique ptr.
1129 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1130 * remote.c (remote_traceframe_info): Return a unique ptr.
1131 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1132 ptr.
1133 * target-debug.h (target_debug_print_traceframe_info_up): New
1134 macro.
1135 * target-delegates.c: Regenerate.
1136
1137 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1138
1139 * memrange.h (struct mem_range): Add constructors.
1140 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1141 std::vector<mem_range>.
1142 * tracepoint.c (free_traceframe_info): Don't manually free
1143 vector.
1144 (traceframe_info_start_memory): Adjust to vector change.
1145 (traceframe_available_memory): Likewise.
1146 * tracefile-tfile.c (build_traceframe_info): Likewise.
1147 * ctf.c (ctf_traceframe_info): Likewise.
1148
1149 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1150
1151 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1152 std::vector<int>.
1153 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1154 (traceframe_info_start_tvar): Adjust to vector change.
1155 (parse_traceframe_info): Allocate with new.
1156 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1157 vector change.
1158 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1159 change.
1160 tfile_traceframe_info): Allocate with new.
1161 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1162 change.
1163
1164 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1165
1166 * tracepoint.c (traceframe_info): Rename to...
1167 (current_traceframe_info): ...this.
1168 (clear_traceframe_info): Adjust.
1169 (get_traceframe_info): Adjust.
1170
1171 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1172
1173 * nat/linux-osdata.c: Include algorithm.
1174 (compare_processes): Remove.
1175 (struct pid_pgid_entry): New struct.
1176 (linux_xfer_osdata_processgroups): Use std::vector instead of
1177 XNEWVEC.
1178
1179 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1180
1181 * objfiles.h: Don't include symfile.h.
1182 (struct partial_symbol): Remove forward-declaration.
1183 (struct objfile) <global_psymbols, static_psymbols>: Change type
1184 to std::vector<partial_symbol *>.
1185 * objfiles.c (objfile::objfile): Don't memset those fields.
1186 (objfile::~objfile): Don't free those fields.
1187 * psympriv.h (struct psymbol_allocation_list): Remove
1188 forward-declaration.
1189 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1190 to std::vector.
1191 (start_psymtab_common): Change parameters to std::vector.
1192 * psymtab.c: Include algorithm.
1193 (require_partial_symbols): Call shrink_to_fit.
1194 (find_pc_sect_psymbol): Adjust to vector change.
1195 (match_partial_symbol): Likewise.
1196 (lookup_partial_symbol): Likewise.
1197 (psym_relocate): Likewise.
1198 (dump_psymtab): Likewise.
1199 (recursively_search_psymtabs): Likewise.
1200 (compare_psymbols): Remove.
1201 (sort_pst_symbols): Adjust to vector change.
1202 (start_psymtab_common): Likewise.
1203 (end_psymtab_common): Likewise.
1204 (psymbol_bcache_full): De-constify return value.
1205 (add_psymbol_to_bcache): Likewise.
1206 (extend_psymbol_list): Remove.
1207 (append_psymbol_to_list): Adjust to vector change.
1208 (add_psymbol_to_list): Likewise.
1209 (init_psymbol_list): Likewise.
1210 (maintenance_info_psymtabs): Likewise.
1211 (maintenance_check_psymtabs): Likewise.
1212 * symfile.h (struct psymbol_allocation_list): Remove.
1213 * symfile.c (reread_symbols): Adjust to vector change.
1214 * dbxread.c (start_psymtab): Change type of parameters.
1215 (dbx_symfile_read): Adjust to vector change.
1216 (read_dbx_symtab): Likewise.
1217 (start_psymtab): Change type of parameters.
1218 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1219 (create_partial_symtab): Likewise.
1220 (add_partial_symbol): Likewise.
1221 (write_one_signatured_type): Likewise.
1222 (recursively_write_psymbols): Likewise.
1223 * mdebugread.c (parse_partial_symbols): Likewise.
1224 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1225 (scan_xcoff_symtab): Adjust to vector change.
1226 (xcoff_initial_scan): Likewise.
1227
1228 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1229
1230 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1231
1232 2017-10-13 Yao Qi <yao.qi@linaro.org>
1233
1234 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1235 Remove s390x-*-expedite, add s390x-expedite.
1236
1237 2017-10-13 Yao Qi <yao.qi@linaro.org>
1238
1239 * features/s390-gs-linux64.c: Regenerated.
1240 * features/s390x-gs-linux64.c: Regenerated.
1241
1242 2017-10-13 Tom Tromey <tom@tromey.com>
1243
1244 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1245 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1246 delete.
1247 * symfile.c (symbol_file_add_with_addrs): Use new.
1248 (symbol_file_add_separate): Update comment.
1249 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1250 * jit.c (jit_object_close_impl): Use new.
1251 (jit_unregister_code): Use delete.
1252 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1253 (~objfile): Rename from free_objfile.
1254 (free_objfile_separate_debug, do_free_objfile_cleanup)
1255 (free_all_objfiles, objfile_purge_solibs): Use delete.
1256 * objfiles.h (struct objfile): Add constructor and destructor.
1257 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1258 (allocate_objfile, free_objfile): Don't declare.
1259 (struct objstats): Add initializers.
1260
1261 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1262
1263 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1264 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1265 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1266 * gdbarch.h: Regenerate.
1267 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1268 Adjust comment.
1269 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1270 (i386_displaced_step_fixup): Adjust comment.
1271 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1272
1273 2017-10-12 Tom Tromey <tom@tromey.com>
1274
1275 * prologue-value.h (pv_area::store_would_trash): Return bool.
1276 (pv_area::find_reg): Likewise.
1277 * prologue-value.c (pv_area::store_would_trash): Return bool.
1278 (pv_area::find_reg): Likewise.
1279
1280 2017-10-12 Tom Tromey <tom@tromey.com>
1281
1282 * s390-linux-tdep.c (s390_store, s390_load)
1283 (s390_check_for_saved, s390_analyze_prologue): Update.
1284 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1285 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1286 * prologue-value.h (class pv_area): Move from prologue-value.c.
1287 Change names of members. Add constructor, destructor, member
1288 functions.
1289 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1290 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1291 (pv_area_fetch, pv_area_scan): Don't declare.
1292 * prologue-value.c (struct pv_area::area_entry): Now member of
1293 pv_area.
1294 (struct pv_area): Move to prologue-value.h.
1295 (pv_area::pv_area): Rename from make_pv_area.
1296 (pv_area::~pv_area): Rename from free_pv_area.
1297 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1298 (clear_entries, find_entry, overlaps, store_would_trash, store)
1299 (fetch, find_reg, scan): Now member of pv_area.
1300 Remove "area" argument. Update.
1301 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1302 Update.
1303 * mn10300-tdep.c (push_reg, check_for_saved)
1304 (mn10300_analyze_prologue): Update.
1305 * mep-tdep.c (is_arg_spill, check_for_saved)
1306 (mep_analyze_prologue): Update.
1307 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1308 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1309 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1310 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1311 Update.
1312 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1313 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1314
1315 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1316
1317 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1318 * linux-nat.c (linux_nat_delete_thread): New variable.
1319 (lwp_free): Invoke linux_nat_delete_thread if set.
1320 (linux_nat_set_delete_thread): New function.
1321 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1322 thread delete callback.
1323 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1324 (_initialize_arm_linux_nat): Assign thread delete callback.
1325 * s390-linux-nat.c (s390_delete_thread): New function.
1326 (_initialize_s390_nat): Assign thread delete callback.
1327 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1328 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1329 function.
1330 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1331 declaration.
1332 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1333 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1334
1335 2017-10-09 Tom Tromey <tom@tromey.com>
1336
1337 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1338 std::string.
1339 * tui/tui-layout.c (enum tui_status): Use std::string.
1340
1341 2017-10-11 Tom Tromey <tom@tromey.com>
1342
1343 * gdbthread.h (thread_command): Constify.
1344 * inferior.h (detach_command): Constify.
1345 * top.h (set_history, show_history): Constify.
1346 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1347 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1348 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1349 * printcmd.c (set_command): Constify.
1350 (non_const_set_command): New function.
1351 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1352 * breakpoint.c (enable_command, disable_command, delete_command)
1353 (catch_command, tcatch_command, set_breakpoint_cmd)
1354 (show_breakpoint_cmd): Constify.
1355 * macrocmd.c (macro_command): Constify.
1356 * infcmd.c (unset_command, kill_command, detach_command)
1357 (info_proc_cmd): Constify.
1358 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1359 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1360 (info_auto_load_cmd): Constify.
1361 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1362 (unset_tdesc_cmd): Constify.
1363 * ada-lang.c (set_ada_command, show_ada_command)
1364 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1365 * guile/guile.c (set_guile_command, show_guile_command)
1366 (info_guile_command): Constify.
1367 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1368 Constify.
1369 * skip.c (skip_command): Constify.
1370 * compile/compile.c (_initialize_compile): Constify.
1371 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1372 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1373 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1374 (maint_btrace_pt_show_cmd): Constify.
1375 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1376 Constify.
1377 * python/python.c (user_show_python, user_set_python): Constify.
1378 * mips-tdep.c (set_mips_command, show_mips_command)
1379 (set_mipsfpu_command): Constify.
1380 * record-btrace.c (cmd_record_btrace_start)
1381 (cmd_set_record_btrace, cmd_show_record_btrace)
1382 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1383 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1384 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1385 Constify.
1386 * symfile.c (overlay_command): Constify.
1387 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1388 * cli/cli-logging.c (set_logging_command, show_logging_command):
1389 Constify.
1390 * cli/cli-dump.c (dump_command, append_command)
1391 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1392 (tekhex_dump_command, binary_dump_command)
1393 (binary_append_command): Constify.
1394 * cli/cli-decode.c (struct cmd_list_element): Change type of
1395 "fun".
1396 * cli/cli-cmds.c (info_command, show_command, set_debug)
1397 (show_debug): Constify.
1398 (show_command): Add non-const overload.
1399 * top.c (set_history, show_history): Constify.
1400 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1401 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1402 * target.c (target_command): Constify.
1403 * sparc64-tdep.c (info_adi_command): Constify.
1404 * record-full.c (cmd_record_full_start): Constify.
1405 (set_record_full_command): Constify. Fix typo.
1406 (show_record_full_command): Constify.
1407 * thread.c (thread_command, thread_apply_command): Constify.
1408 * memattr.c (dummy_cmd): Constify.
1409 * value.c (function_command): Constify.
1410 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1411 * probe.c (info_probes_command): Constify.
1412 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1413 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1414 (show_thread_cmd, set_thread_default_cmd)
1415 (show_thread_default_cmd): Constify.
1416 (check_empty): Constify.
1417 * tracepoint.c (tfind_command): Constify.
1418 * cp-support.c (maint_cplus_command): Constify.
1419 * windows-tdep.c (info_w32_command): Constify.
1420 * record.c (cmd_record_start, set_record_command)
1421 (show_record_command, info_record_command, cmd_record_goto):
1422 Constify.
1423 * ravenscar-thread.c (set_ravenscar_command)
1424 (show_ravenscar_command): Constify.
1425 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1426 Constify.
1427 (add_internal_problem_command): Remove casts.
1428 * arc-tdep.c (maintenance_print_arc_command): Constify.
1429 * valprint.c (set_print, show_print, set_print_raw)
1430 (show_print_raw): Constify.
1431 * maint.c (maintenance_command, maintenance_info_command)
1432 (maintenance_print_command, maintenance_set_cmd)
1433 (maintenance_show_cmd, set_per_command_cmd)
1434 (show_per_command_cmd, maintenance_check_command): Constify.
1435 * language.c (set_check, show_check): Constify.
1436 * typeprint.c (show_print_type, set_print_type): Constify.
1437 * go32-nat.c (go32_info_dos_command): Constify.
1438
1439 2017-10-11 Tom Tromey <tom@tromey.com>
1440
1441 * breakpoint.c (prepare_re_set_context): Remove.
1442 (breakpoint_re_set_one): Update. Don't use cleanups.
1443 (breakpoint_re_set): Use scoped_restore, std::string, and
1444 scoped_restore_current_language.
1445
1446 2017-10-11 Tom Tromey <tom@tromey.com>
1447
1448 * breakpoint.c (commands_command_1): Use std::string.
1449 (cleanup_executing_breakpoints): Remove.
1450 (bpstat_do_actions_1): Use scoped_restore.
1451 (bpstat_check_watchpoint): Use std::string.
1452 (decode_static_tracepoint_spec): Likewise.
1453 (break_range_command): Likewise.
1454 (watch_command_1): Likewise.
1455 (compare_breakpoints): Change argument types.
1456 (clear_command): Use std::vector.
1457 (cleanup_executing_breakpoints): Remove.
1458 (update_global_location_list): Use unique_xmalloc_ptr.
1459 (strace_command): Remove unused declaration.
1460
1461 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1462
1463 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1464 * NEWS: Mention new FreeBSD/arm native configuration.
1465 * configure.host: Add arm*-*-freebsd*.
1466 * configure.nat: Likewise.
1467 * arm-fbsd-nat.c: New file.
1468
1469 2017-10-11 John Baldwin <jhb@FreeBSD.org>
1470
1471 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1472 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1473 * NEWS: Mention new FreeBSD/arm target.
1474 * configure.tgt: Add arm*-*-freebsd*.
1475 * arm-fbsd-tdep.c: New file.
1476 * arm-fbsd-tdep.h: New file.
1477
1478 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1479
1480 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1481 `gdbarch_elfcore_write_linux_prpsinfo'.
1482 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1483 method.
1484 (elf_internal_linux_prpsinfo): Remove declaration.
1485 * gdbarch.h: Regenerate.
1486 * gdbarch.c: Regenerate.
1487
1488 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1489
1490 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1491 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1492
1493 2017-10-11 Pedro Alves <palves@redhat.com>
1494
1495 * breakpoint.c (reattach_breakpoints): Delete.
1496 * breakpoint.h (reattach_breakpoints): Delete.
1497
1498 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1499
1500 * symfile.c (registered_sym_fns): Make struct, not typedef.
1501 (DEF_VEC_O (registered_sym_fns)): Remove.
1502 (symtab_fns): Change type to std::vector.
1503 (add_symtab_fns): Adjust.
1504 (find_sym_fns): Adjust.
1505
1506 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1507
1508 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1509 * arc-tdep.h (arc_arch_is_em): New function.
1510 (arc_arch_is_hs): Likewise.
1511
1512 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1513
1514 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1515 parentheses in the declaration.
1516 (macro_lookup_inclusion): Likewise.
1517 (macro_lookup_definition): Likewise.
1518 * p-lang.h (pascal_builtin_types): Likewise.
1519 * tui/tui-data.c (tui_win_list): Likewise.
1520 * tui/tui-data.h (tui_win_list): Likewise.
1521 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1522
1523 2017-10-11 Mark Rages <markrages@gmail.com>
1524
1525 * target-memory.c (block_boundaries): Fix for block address not
1526 aligned on block size.
1527
1528 2017-10-10 Pedro Alves <palves@redhat.com>
1529 Tom Tromey <tom@tromey.com>
1530
1531 * breakpoint.c (struct captured_breakpoint_query_args)
1532 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1533 (print_breakpoint): New.
1534 * breakpoint.h (print_breakpoint): Declare.
1535 * common/common-exceptions.h (enum return_reason): Remove
1536 references to catch_exceptions.
1537 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1538 Delete.
1539 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1540 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1541 * gdb.h: Delete.
1542 * gdbthread.h (thread_select): Declare.
1543 * mi/mi-cmd-break.c: Don't include gdb.h.
1544 (breakpoint_notify): Use print_breakpoint.
1545 * mi/mi-cmd-catch.c: Don't include gdb.h.
1546 * mi/mi-interp.c: Don't include gdb.h.
1547 (mi_print_breakpoint_for_event): New.
1548 (mi_breakpoint_created, mi_breakpoint_modified): Use
1549 mi_print_breakpoint_for_event.
1550 * mi/mi-main.c: Don't include gdb.h.
1551 (mi_cmd_thread_select): Parse the global thread ID here. Use
1552 thread_select instead of gdb_thread_select.
1553 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1554 of using gdb_list_thread_ids.
1555 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1556 FILEIO_ENOSYS here.
1557 (remote_fileio_request): Use TRY/CATCH instead of
1558 catch_exceptions.
1559 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1560 (symbol_file_add_from_memory_wrapper): Delete.
1561 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1562 * thread.c: Don't include gdb.h.
1563 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1564 (thread_alive): Use thread_select.
1565 (do_captured_thread_select): Delete, parts salvaged as ...
1566 (thread_select): ... this new function.
1567 (gdb_thread_select): Delete.
1568
1569 2017-10-10 Pedro Alves <palves@redhat.com>
1570 Tom Tromey <tom@tromey.com>
1571
1572 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1573 and reverse logic.
1574 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1575 No longer macros. Instead ...
1576 (enum wp_check_result): They're now values of this new
1577 enumeration.
1578 (watchpoint_check): Change return type to wp_check_result and
1579 parameter type to bpstat.
1580 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1581 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1582 catch_errors. Reverse logic of watchpoint_check call.
1583 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1584 pointer as parameter.
1585 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1586 * common/common-exceptions.c (throw_exception_sjlj): Update
1587 comments to avoid mentioning catch_errors.
1588 * exceptions.c (catch_errors): Delete.
1589 * exceptions.h: Update comments to avoid mentioning catch_errors.
1590 (catch_errors_ftype, catch_errors): Delete.
1591 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1592 (hook_stop_stub): Delete.
1593 (restore_selected_frame): Change return type to void, and
1594 parameter type to const frame_id &.
1595 (restore_infcall_control_state): Use TRY/CATCH instead of
1596 catch_errors.
1597 * main.c (captured_command_loop): Return void and remove
1598 parameter. Remove references to catch_errors.
1599 (captured_main): Use TRY/CATCH instead of catch_errors.
1600 * objc-lang.c (objc_submethod_helper_data)
1601 (find_objc_msgcall_submethod_helper): Delete.
1602 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1603 catch_errors.
1604 * record-full.c (record_full_message): Return void.
1605 (record_full_message_args, record_full_message_wrapper): Delete.
1606 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1607 instead of catch_errors.
1608 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1609 parameter type to int.
1610 * solib-darwin.c (open_symbol_file_object): Ditto.
1611 * solib-dsbt.c (open_symbol_file_object): Ditto.
1612 * solib-frv.c (open_symbol_file_object): Ditto.
1613 * solib-svr4.c (open_symbol_file_object): Ditto.
1614 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1615 * solib.c (update_solib_list): Use TRY/CATCH instead of
1616 catch_errors.
1617 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1618 Change type.
1619 * symmisc.c (struct print_symbol_args): Remove.
1620 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1621 (print_symbol): Change type.
1622 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1623 and remove parameters.
1624 (catch_errors): New.
1625 (get_windows_debug_event): Adjust.
1626
1627 2017-10-09 Tom Tromey <tom@tromey.com>
1628
1629 * mi/mi-main.c (free_splay_tree): Remove.
1630 (list_available_thread_groups): Use splay_tree_up.
1631 * common/gdb_splay_tree.h: New file.
1632
1633 2017-10-09 Tom Tromey <tom@tromey.com>
1634
1635 * mi/mi-main.c (do_nothing): Remove.
1636 (list_available_thread_groups): Update.
1637
1638 2017-10-09 Pedro Alves <palves@redhat.com>
1639
1640 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1641 reading registers when switching context.
1642
1643 2017-10-09 John Baldwin <jhb@FreeBSD.org>
1644
1645 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1646 (fbsd_convert_siginfo): Likewise.
1647 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1648
1649 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1650
1651 * configure.ac (try_guile_versions): Remove guile-2.2.
1652 * configure: Regenerate.
1653
1654 2017-10-09 Tom Tromey <tom@tromey.com>
1655
1656 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1657 (COMPILE.pre): Use $(CXX).
1658
1659 2017-10-09 Pedro Alves <palves@redhat.com>
1660
1661 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1662 Use bool.
1663 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1664 * cp-support.h (cp_remove_params): Now returns a
1665 gdb::unique_xmalloc_ptr.
1666 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1667 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1668 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1669 returning a gdb::unique_xmalloc_ptr.
1670 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1671 * stack.c (find_frame_funname): Adjust to cp_remove_params
1672 returning a gdb::unique_xmalloc_ptr.
1673
1674 2017-10-08 Tom Tromey <tom@tromey.com>
1675
1676 * dwarf2read.c (dwarf2_get_dwz_file): Use
1677 gdb::unique_xmalloc_ptr.
1678 (find_slot_in_mapped_hash): Likewise.
1679 (dwarf2_physname): Likewise.
1680 (create_dwo_unit_in_dwp_v1): Use std::string.
1681 (create_dwo_unit_in_dwp_v2): Likewise.
1682 (lookup_dwo_cutu): Likewise.
1683 (inherit_abstract_dies): Use std::vector.
1684 (read_array_type): Likewise.
1685 (dwarf_decode_macros): Remove unused declaration.
1686 (unsigned_int_compar): Remove.
1687 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1688 (psymtabs_addrmap_cleanup): Remove.
1689
1690 2017-10-08 Tom Tromey <tom@tromey.com>
1691
1692 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1693 * frame.h (frame_cleanup_after_sniffer): Declare.
1694 (frame_prepare_for_sniffer): Return void.
1695 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1696 type of argument.
1697 (frame_prepare_for_sniffer): Return void.
1698
1699 2017-10-08 Tom Tromey <tom@tromey.com>
1700
1701 * utils.h (make_cleanup_value_free): Remove.
1702 * utils.c (do_value_free, struct cleanup): Remove.
1703 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1704 Use gdb_value_up.
1705 * value.h (struct value_deleter): New.
1706 (gdb_value_up): New typedef.
1707
1708 2017-10-08 Tom Tromey <tom@tromey.com>
1709
1710 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1711 (make_cleanup_free_search_symbols): Remove.
1712 (search_symbols): Return std::vector.
1713 (symbol_search::compare_search_syms): Now member of
1714 symbol_search. Change arguments.
1715 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1716 (symtab_symbol_info, rbreak_command): Update.
1717 * symtab.h (struct symbol_search) <next>: Remove.
1718 Add constructors.
1719 (symbol_search::operator<): New function.
1720 (symbol_search::operator==): New function.
1721 (search_symbols): Remove std::vector.
1722 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1723 (symbol_search::compare_search_syms): Declare.
1724
1725 2017-10-06 Yao Qi <yao.qi@linaro.org>
1726
1727 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1728 arch/aarch64-insn.o.
1729 Remove one rule.
1730 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1731
1732 2017-10-06 Yao Qi <yao.qi@linaro.org>
1733
1734 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1735 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1736 arch/arm-linux.o respectively.
1737 * configure.tgt: Likewise.
1738
1739 2017-10-06 Yao Qi <yao.qi@linaro.org>
1740
1741 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1742 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1743
1744 2017-10-06 Pedro Alves <palves@redhat.com>
1745
1746 * windows-nat.c: Include <algorithm>.
1747
1748 2017-10-06 Yao Qi <yao.qi@linaro.org>
1749
1750 * configure.tgt (i386_tobjs): New variable.
1751 (amd64_tobjs): New variable.
1752 Set $cpu_obs and $os_obs.
1753
1754 2017-10-06 Yao Qi <yao.qi@linaro.org>
1755
1756 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1757 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1758 (clean): Remove object files and dependency files.
1759 (distclean): Remove the directory.
1760 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1761 * configure: Re-generated.
1762 * configure.tgt: Replace amd64.o with arch/amd64.o.
1763
1764 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1765
1766 PR build/22188
1767 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1768 and SETEND.
1769
1770 2017-10-05 Pedro Alves <palves@redhat.com>
1771
1772 * linux-nat.c (linux_child_follow_fork): When following the parent
1773 and detaching the child, consult the parent thread's architecture
1774 instead of the child's.
1775
1776 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1777
1778 * ax.h: Do not include "doublest.h".
1779 (union agent_val): Remove.
1780
1781 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1782
1783 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1784 (decimal_to_string): Return std::string object.
1785 (decimal_from_string): Accept std::string object. Return bool.
1786 (decimal_from_integral, decimal_from_doublest): Remove.
1787 (decimal_from_longest): Add prototype.
1788 (decimal_from_ulongest): Likewise.
1789 (decimal_to_longest): Likewise.
1790 (decimal_from_doublest): Likewise.
1791 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1792 (MAX_DECIMAL_STRING): Move here.
1793 (decimal_to_string): Return std::string object.
1794 (decimal_from_string): Accept std::string object. Return bool.
1795 (decimal_from_integral): Remove, replace by ...
1796 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1797 (decimal_to_longest): New function.
1798 (decimal_from_floating): Remove, replace by ...
1799 (decimal_from_doublest): ... this new function.
1800 (decimal_to_doublest): Update to new decimal_to_string interface.
1801
1802 * value.c (unpack_long): Use decimal_to_longest.
1803 * valops.c (value_cast): Use decimal_from_doublest instead of
1804 decimal_from_floating. Use decimal_from_[u]longest isntead of
1805 decimal_from_integral.
1806 * valarith.c (value_args_as_decimal): Likewise.
1807 * valprint.c (print_decimal_floating): Update to new
1808 decimal_to_string interface.
1809 * printcmd.c (printf_decfloat): Likewise.
1810 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1811
1812 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1813
1814 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1815 * gdbtypes.c: Include "floatformat.h".
1816 * value.c: Likewise.
1817 * m68k-tdep.c: Likewise.
1818
1819 * findvar.c: Do not include "floatformat.h".
1820 * amd64-darwin-tdep.c: Likewise.
1821 * arm-linux-tdep.c: Likewise.
1822 * i386-darwin-tdep.c: Likewise.
1823 * i387-tdep.c: Likewise.
1824 * m68k-linux-tdep.c: Likewise.
1825 * mep-tdep.c: Likewise.
1826 * mips-tdep.c: Likewise.
1827 * nios2-tdep.c: Likewise.
1828 * s390-linux-tdep.c: Likewise.
1829 * sparc-obsd-tdep.c: Likewise.
1830 * sparc-tdep.c: Likewise.
1831 * sparc64-tdep.c: Likewise.
1832 * spu-tdep.c: Likewise.
1833 * tic6x-tdep.c: Likewise.
1834 * tilegx-tdep.c: Likewise.
1835 * vax-tdep.c: Likewise.
1836 * xstormy16-tdep.c: Likewise.
1837 * xtensa-tdep.c: Likewise.
1838
1839 * top.c: Do not include "doublest.h".
1840 * aarch64-tdep.c: Likewise.
1841 * alpha-tdep.c: Likewise.
1842 * arm-linux-tdep.c: Likewise.
1843 * m68k-linux-tdep.c: Likewise.
1844 * tilegx-tdep.c: Likewise.
1845 * xstormy16-tdep.c: Likewise.
1846
1847 2017-10-05 John Baldwin <jhb@FreeBSD.org>
1848
1849 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1850 (mipsn32_fbsd_sigframe): Define.
1851 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1852 for FreeBSD/mipsn32.
1853
1854 2017-10-05 John Baldwin <jhb@FreeBSD.org>
1855
1856 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1857 AT_HWCAP.
1858
1859 2017-10-05 Tristan Gingold <tgingold@free.fr>
1860
1861 * MAINTAINERS (Misc): Update my email address.
1862
1863 2017-10-04 Pedro Alves <palves@redhat.com>
1864
1865 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1866 it instead of target_gdbarch.
1867 (get_remote_state, get_remote_packet_size): Adjust
1868 get_remote_arch_state calls, passing down target_gdbarch
1869 explicitly.
1870 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
1871 'gdbarch' and use it instead of target_gdbarch.
1872 (get_memory_packet_size): Adjust get_remote_arch_state calls,
1873 passing down target_gdbarch explicitly.
1874 (struct stop_reply) <arch>: New field.
1875 (remote_parse_stop_reply): Use the stopped thread's architecture,
1876 not the current inferior's. Save the architecture in the
1877 stop_reply.
1878 (process_stop_reply): Use the stop reply's architecture.
1879 (process_g_packet, remote_fetch_registers)
1880 (remote_prepare_to_store, store_registers_using_G)
1881 (remote_store_registers): Adjust get_remote_arch_state calls,
1882 using the regcache's architecture.
1883 (remote_get_trace_status): Adjust get_remote_arch_state calls,
1884 passing down target_gdbarch explicitly.
1885 * spu-multiarch.c (spu_thread_architecture): Defer to the target
1886 beneath instead of calling target_gdbarch.
1887 * target.c (default_thread_architecture): Use the specified
1888 inferior's architecture, instead of the current inferior's
1889 architecture (via target_gdbarch).
1890
1891 2017-10-04 Pedro Alves <palves@redhat.com>
1892
1893 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
1894 case.
1895 (regcache_print): Handle !target_has_registers here instead.
1896
1897 2017-10-04 Pedro Alves <palves@redhat.com>
1898
1899 * frame.c (create_test_frame): Delete.
1900 * frame.h (create_test_frame): Delete.
1901 * gdbarch-selftests.c: Include gdbthread.h and target.h.
1902 (class regcache_test): Delete.
1903 (test_target_has_registers, test_target_has_stack)
1904 (test_target_has_memory, test_target_prepare_to_store)
1905 (test_target_store_registers): New functions.
1906 (test_target_ops): New class.
1907 (register_to_value_test): Error out if there's already a
1908 process_stratum (or higher) target pushed. Create a fuller mock
1909 environment, with mock target_ops, inferior, address space, thread
1910 and inferior_ptid.
1911 * progspace.c (struct address_space): Move to ...
1912 * progspace.h (struct address_space): ... here.
1913 * regcache.h (regcache::~regcache, regcache::raw_write)
1914 [GDB_SELF_TEST]: No longer virtual.
1915
1916 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
1917
1918 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
1919
1920 2017-10-04 Pedro Alves <palves@redhat.com>
1921
1922 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
1923 out of 'between TRY and CATCH'.
1924
1925 2017-10-04 Pedro Alves <palves@redhat.com>
1926
1927 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
1928 * common/common-exceptions.h (TRY): Open an outermost scope.
1929 Expand intro comment.
1930 (CATCH): Reindent.
1931 (END_CATCH): Close the outermost scope.
1932 * completer.c (complete_line_internal): Add missing END_CATCH.
1933
1934 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1935
1936 * NEWS (Changes since GDB 8.0): Add entry about new
1937 'set-cwd-on-gdbserver' feature.
1938 (New remote packets): Add entry for QSetWorkingDir.
1939 * common/common-inferior.h (set_inferior_cwd): New prototype.
1940 * infcmd.c (set_inferior_cwd): Remove "static".
1941 (show_cwd_command): Expand text to include remote debugging.
1942 * remote.c: Add PACKET_QSetWorkingDir.
1943 (remote_protocol_features) <QSetWorkingDir>: New entry for
1944 PACKET_QSetWorkingDir.
1945 (extended_remote_set_inferior_cwd): New function.
1946 (extended_remote_create_inferior): Call
1947 "extended_remote_set_inferior_cwd".
1948 (_initialize_remote): Call "add_packet_config_cmd" for
1949 QSetWorkingDir.
1950
1951 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1952
1953 * NEWS (New commands): Mention "set/show cwd".
1954 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
1955 "cd" command's help text.
1956 * common/common-inferior.h (get_inferior_cwd): New prototype.
1957 * infcmd.c (inferior_cwd_scratch): New global variable.
1958 (set_inferior_cwd): New function.
1959 (get_inferior_cwd): Likewise.
1960 (set_cwd_command): Likewise.
1961 (show_cwd_command): Likewise.
1962 (_initialize_infcmd): Add "set/show cwd" commands.
1963 * inferior.h (class inferior) <cwd>: New field.
1964 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
1965 (fork_inferior): Change inferior's cwd before its execution.
1966 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
1967 to CreateProcess.
1968
1969 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
1970
1971 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
1972 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
1973 (COMMON_OBS): Add gdb_tilde_expand.o.
1974 * common/gdb_tilde_expand.c: New file.
1975 * common/gdb_tilde_expand.h: Likewise.
1976
1977 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
1978
1979 * gdbarch.sh (objfile): Remove duplicate declaration.
1980 * gdbarch.h: Regenerate.
1981
1982 2017-10-03 Tom Tromey <tom@tromey.com>
1983
1984 * utils.c (internal_vproblem): Use string_vprintf.
1985
1986 2017-10-03 Tom Tromey <tom@tromey.com>
1987
1988 * printcmd.c (info_symbol_command): Use std::string.
1989
1990 2017-10-03 Tom Tromey <tom@tromey.com>
1991
1992 * top.c (gdb_safe_append_history): Use std::string.
1993
1994 2017-10-03 Tom Tromey <tom@tromey.com>
1995
1996 * event-top.c (stdin_event_handler): Update.
1997 * main.c (captured_main_1): Update.
1998 * top.h (make_delete_ui_cleanup): Remove.
1999 (struct ui): Add constructor and destructor.
2000 (new_ui, delete_ui): Remove.
2001 * top.c (make_delete_ui_cleanup): Remove.
2002 (new_ui_command): Use std::unique_ptr.
2003 (delete_ui_cleanup): Remove.
2004 (ui::ui): Rename from new_ui. Update.
2005 (free_ui): Remove.
2006 (ui::~ui): Rename from delete_ui. Update.
2007
2008 2017-10-03 Tom Tromey <tom@tromey.com>
2009
2010 * symfile.c (load_progress): Use gdb::byte_vector.
2011
2012 2017-10-03 Tom Tromey <tom@tromey.com>
2013
2014 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2015 declaration.
2016 * printcmd.c (x_command): Remove unused declaration.
2017 * symfile.c (symbol_file_command): Remove unused declaration.
2018
2019 2017-10-03 Tom Tromey <tom@tromey.com>
2020
2021 * utils.c (internal_vproblem): Use std::string.
2022 (defaulted_query): Likewise.
2023
2024 2017-10-03 Tom Tromey <tom@tromey.com>
2025
2026 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2027 * top.c (execute_command_to_string): Update.
2028 * utils.c (make_cleanup_restore_page_info): Remove.
2029 (do_restore_page_info_cleanup): Remove.
2030 (set_batch_flag_and_restore_page_info):
2031 New.
2032 (make_cleanup_restore_page_info): Remove.
2033 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2034 (~set_batch_flag_and_restore_page_info): New
2035 (make_cleanup_restore_uinteger): Remove.
2036 (make_cleanup_restore_integer): Remove.
2037 (struct restore_integer_closure): Remove.
2038 (restore_integer): Remove.
2039 * utils.h (struct set_batch_flag_and_restore_page_info): New
2040 class.
2041 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2042 (make_cleanup_restore_page_info): Remove.
2043 (make_cleanup_restore_uinteger) Remove.
2044 (make_cleanup_restore_integer) Remove.
2045
2046 2017-10-03 Tom Tromey <tom@tromey.com>
2047
2048 * record-full.h (record_full_gdb_operation_disable_set): Return
2049 scoped_restore_tmpl<int>.
2050 * infrun.c (adjust_pc_after_break): Update.
2051 (handle_signal_stop): Update.
2052 * record-full.c (record_full_gdb_operation_disable_set): Return
2053 scoped_restore_tmpl<int>.
2054 (record_full_wait_1, record_full_insert_breakpoint)
2055 (record_full_remove_breakpoint, record_full_save)
2056 (record_full_goto_insn): Update.
2057
2058 2017-10-02 Tom Tromey <tom@tromey.com>
2059
2060 PR rust/22236:
2061 * rust-lang.c (rust_val_print_str): New function.
2062 (val_print_struct): Call it.
2063 (rust_subscript): Preserve name of slice type.
2064
2065 2017-10-02 Tom Tromey <tom@tromey.com>
2066
2067 * rust-lang.c (rust_subscript): Handle slices in
2068 EVAL_AVOID_SIDE_EFFECTS case.
2069
2070 2017-10-02 Tom Tromey <tom@tromey.com>
2071
2072 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2073
2074 2017-10-02 Tom Tromey <tom@tromey.com>
2075
2076 * rust-lang.h (rust_slice_type): Add "extern".
2077
2078 2017-10-02 Tom Tromey <tom@tromey.com>
2079 Pedro Alves <palves@redhat.com>
2080
2081 * ada-lang.h (ada_exc_info::operator<): Make const.
2082 (ada_exc_info::operator==): Make const.
2083 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2084 Make const.
2085
2086 2017-09-29 Tom Tromey <tom@tromey.com>
2087
2088 * target.c (read_whatever_is_readable): Change type of "result".
2089 Update.
2090 (free_memory_read_result_vector): Remove.
2091 (read_memory_robust): Change return type. Update.
2092 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2093 bin2hex, std::string.
2094 * target.h (memory_read_result_s): Remove typedef.
2095 (free_memory_read_result_vector): Remove.
2096 (read_memory_robust): Return std::vector.
2097
2098 2017-09-29 Tom Tromey <tom@tromey.com>
2099
2100 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2101
2102 2017-09-29 Tom Tromey <tom@tromey.com>
2103
2104 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2105 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2106 operator< and operator==.
2107 (ada_exceptions_list): Return a std::vector.
2108 * ada-lang.c (ada_exc_info::operator<): Rename from
2109 compare_ada_exception_info.
2110 (ada_exc_info::operator==): New.
2111 (sort_remove_dups_ada_exceptions_list): Change type of
2112 "exceptions".
2113 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2114 (ada_add_global_exceptions): Likewise.
2115 (ada_exceptions_list_1): Return a std::vector.
2116 (ada_exceptions_list): Likewise.
2117
2118 2017-09-29 Tom Tromey <tom@tromey.com>
2119
2120 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2121 'std::set *'.
2122 (print_one_inferior): Update.
2123 (free_vector_of_ints): Remove.
2124 (list_available_thread_groups): Change "ids" to std::set.
2125 (mi_cmd_list_thread_groups): Update.
2126 (struct collect_cores_data) <core>: Now a std::set.
2127 (collect_cores): Update.
2128 (unique): Remove.
2129 (print_one_inferior): Update.
2130
2131 2017-09-29 Tom Tromey <tom@tromey.com>
2132
2133 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2134 (mi_execute_async_cli_command): Likewise.
2135 (mi_cmd_trace_frame_collected): Use field_fmt.
2136
2137 2017-09-29 Tom Tromey <tom@tromey.com>
2138
2139 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2140 gdb::byte_vector.
2141
2142 2017-09-29 Tom Tromey <tom@tromey.com>
2143
2144 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2145
2146 2017-09-29 Tom Tromey <tom@tromey.com>
2147
2148 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2149
2150 2017-09-29 Tom Tromey <tom@tromey.com>
2151
2152 * varobj.h (varobj_gen_name): Return std::string.
2153 * varobj.c (varobj_gen_name): Return std::string.
2154 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2155 (mi_cmd_var_delete): Don't copy "name".
2156
2157 2017-09-29 Tom Tromey <tom@tromey.com>
2158
2159 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2160 (mi_cmd_break_insert_1): Update.
2161
2162 2017-09-29 Tom Tromey <tom@tromey.com>
2163
2164 * target.h (make_scoped_defer_target_commit_resume): Update.
2165 * target.c (make_scoped_defer_target_commit_resume): Rename from
2166 make_cleanup_defer_target_commit_resume. Return a
2167 scoped_restore.
2168 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2169
2170 2017-09-29 Tom Tromey <tom@tromey.com>
2171
2172 * main.c (captured_main_1): Remove unused declaration.
2173 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2174
2175 2017-09-29 Tom Tromey <tom@tromey.com>
2176
2177 * symtab.c (search_symbols): Remove unused outer cleanup.
2178 (make_source_files_completion_list): Remove unused declaration.
2179
2180 2017-09-29 Tom Tromey <tom@tromey.com>
2181
2182 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2183
2184 2017-09-29 Tom Tromey <tom@tromey.com>
2185
2186 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2187 gdb::byte_vector.
2188
2189 2017-09-29 Tom Tromey <tom@tromey.com>
2190
2191 * complaints.c (vcomplaint): Use std::string.
2192
2193 2017-09-29 Tom Tromey <tom@tromey.com>
2194
2195 * tracepoint.c (trace_variable_command): Use std::string.
2196 (encode_actions_1): Remove unused declarations.
2197 (create_tsv_from_upload): Use std::string.
2198
2199 2017-09-29 Tom Tromey <tom@tromey.com>
2200
2201 * cp-support.c (gdb_demangle): Use std::string.
2202
2203 2017-09-29 Tom Tromey <tom@tromey.com>
2204
2205 * stack.c (parse_frame_specification): Use std::string
2206 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2207
2208 2017-09-29 Tom Tromey <tom@tromey.com>
2209
2210 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2211
2212 2017-09-29 Tom Tromey <tom@tromey.com>
2213
2214 * utils.c (vfprintf_maybe_filtered): Use std::string.
2215 (vfprintf_unfiltered): Likewise.
2216
2217 2017-09-29 Tom Tromey <tom@tromey.com>
2218
2219 * event-top.c (top_level_prompt): Return std::string.
2220 (display_gdb_prompt): Update.
2221
2222 2017-09-29 Tom Tromey <tom@tromey.com>
2223
2224 * unittests/common-utils-selftests.c (format): New function.
2225 (string_vprintf_tests): New function.
2226 (_initialize_common_utils_selftests): Register new tests.
2227 * common/common-utils.c (string_vprintf): New function.
2228 * common/common-utils.h (string_vprintf): Declare.
2229
2230 2017-09-29 Pedro Alves <palves@redhat.com>
2231
2232 * common/rsp-low.c (unpack_varlen_hex): Constify.
2233 * common/rsp-low.h (unpack_varlen_hex): Constify.
2234 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2235 Constify.
2236 * remote.c (remote_set_permissions, read_ptid)
2237 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2238 (remote_static_tracepoint_marker_at)
2239 (remote_static_tracepoint_markers_by_strid)
2240 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2241 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2242 (parse_tracepoint_definition, parse_tsv_definition)
2243 (parse_static_tracepoint_marker_definition): Constify.
2244 * tracepoint.h (parse_static_tracepoint_marker_definition)
2245 (parse_trace_status, parse_tracepoint_status)
2246 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2247
2248 2017-09-29 Pedro Alves <palves@redhat.com>
2249
2250 * remote.c (target_buf, target_buf_size): Delete.
2251 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2252 Use the connection's packet buffer instead.
2253 All callers adjusted.
2254 (_initialize_remote): Remove references to target_buf and
2255 target_buf_size.
2256
2257 2017-09-28 Pedro Alves <palves@redhat.com>
2258
2259 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2260 unittests/common-utils-selftests.c.
2261 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2262 (COMMON_OBS): Remove utils-selftests.o.
2263 * utils-selftests.c: Move to ...
2264 * unittests/common-utils-selftests.c: ... here and rename self
2265 test to "string_printf".
2266
2267 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2268
2269 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2270 having NULL cus or tus.
2271
2272 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2273
2274 * arm-tdep.c: (convert_from_extended): Remove.
2275 (convert_to_extended): Likewise.
2276 (arm_extract_return_value): Use convert_typed_floating.
2277 (arm_store_return_value): Likewise.
2278
2279 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2280 * sh-tdep.c: Do not include "floatformat.h".
2281 (sh_littlebyte_bigword_type): New function.
2282 (sh_register_convert_to_virtual): Use convert_typed_floating.
2283 (sh_register_convert_to_raw): Likewise.
2284 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2285 (sh64_littlebyte_bigword_type): New function.
2286 (sh64_extract_return_value): Use convert_typed_floating.
2287 (sh64_register_convert_to_virtual): Likewise.
2288 (sh64_register_convert_to_raw): Likewise.
2289
2290 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2291
2292 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2293 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2294
2295 * gdbtypes.h (union type_specific): Make field floatformat hold
2296 just a single struct floatformat, not an array.
2297 (floatformat_from_type): Move here.
2298 * gdbtypes.c (floatformat_from_type): Move here. Update to
2299 changed TYPE_FLOATFORMAT definition.
2300 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2301 (recursive_dump_type): Likewise.
2302 (init_float_type): Install correct floatformat for byte order.
2303 (arch_float_type): Likewise.
2304
2305 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2306
2307 * gdbtypes.c (init_type): Change incoming argument from
2308 length-in-bytes to length-in-bits. Assert length is a
2309 multiple of TARGET_CHAR_BITS.
2310 (arch_type, arch_flags_type): Likewise.
2311 (init_integer_type): Update call to init_type.
2312 (init_character_type): Likewise.
2313 (init_boolean_type): Likewise.
2314 (init_float_type): Likewise.
2315 (init_decfloat_type): Likewise.
2316 (init_complex_type): Likewise.
2317 (init_pointer_type): Likewise.
2318 (objfile_type): Likewise.
2319 (arch_integer_type): Update call to arch_type.
2320 (arch_character_type): Likewise.
2321 (arch_boolean_type): Likewise.
2322 (arch_float_type): Likewise.
2323 (arch_decfloat_type): Likewise.
2324 (arch_complex_type): Likewise.
2325 (arch_pointer_type): Likewise.
2326 (gdbtypes_post_init): Likewise.
2327
2328 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2329 (read_base_type): Likewise.
2330 * mdebugread.c (basic_type): Likewise.
2331 * stabsread.c (dbx_init_float_type): Likewise.
2332 (rs6000_builtin_type): Likewise.
2333 (read_range_type): Likewise. Also, fix call to init_integer_type
2334 with erroneous length argument.
2335
2336 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2337 * d-lang.c (build_d_types): Likewise.
2338 * f-lang.c (build_fortran_types): Likewise.
2339 * go-lang.c (build_go_types): Likewise.
2340 * opencl-lang.c (build_opencl_types): Likewise.
2341 * jit.c (finalize_symtab): Likewise.
2342 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2343 (build_std_type_info_type): Likewise.
2344 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2345 update call to arch_flags_type.
2346
2347 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2348 arch_type.
2349 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2350 * windows-tdep.c (windows_get_tlb_type): Likewise.
2351
2352 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2353 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2354 * m32c-tdep.c (make_types): Likewise.
2355 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2356 (rl78_psw_type): Update call to arch_flags_type.
2357 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2358 * rx-tdep.c (rx_psw_type): Likewise.
2359 (rx_fpsw_type): Likewise.
2360 * sparc-tdep.c (sparc_psr_type): Likewise.
2361 (sparc_fsr_type): Likewise.
2362 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2363 (sparc64_ccr_type): Likewise.
2364 (sparc64_fsr_type): Likewise.
2365 (sparc64_fprs_type): Likewise.
2366
2367 2017-09-27 Tom Tromey <tom@tromey.com>
2368
2369 * findcmd.c (find_command): Constify.
2370
2371 2017-09-27 Tom Tromey <tom@tromey.com>
2372
2373 * ada-tasks.c (task_command_1, task_command): Constify.
2374
2375 2017-09-27 Tom Tromey <tom@tromey.com>
2376
2377 * symtab.c (maintenance_print_symbol_cache)
2378 (maintenance_flush_symbol_cache)
2379 (maintenance_print_symbol_cache_statistics): Constify.
2380
2381 2017-09-27 Tom Tromey <tom@tromey.com>
2382
2383 * inferior.c (detach_inferior_command, kill_inferior_command)
2384 (inferior_command): Constify.
2385
2386 2017-09-27 Tom Tromey <tom@tromey.com>
2387
2388 * regcache.c (regcache_print, maintenance_print_registers)
2389 (maintenance_print_raw_registers)
2390 (maintenance_print_cooked_registers)
2391 (maintenance_print_register_groups)
2392 (maintenance_print_remote_registers): Constify.
2393
2394 2017-09-27 Tom Tromey <tom@tromey.com>
2395
2396 * printcmd.c (map_display_numbers, undisplay_command)
2397 (enable_disable_display_command, enable_display_command)
2398 (disable_display_command): Constify.
2399
2400 2017-09-27 Tom Tromey <tom@tromey.com>
2401
2402 * breakpoint.h (delete_command): Don't declare.
2403 * breakpoint.c (delete_command, enable_once_command)
2404 (enable_count_command, enable_delete_command, breakpoint_1)
2405 (maintenance_info_breakpoints, stopin_command, stopat_command)
2406 (delete_command, delete_trace_command, save_breakpoints)
2407 (save_breakpoints_command, save_tracepoints_command): Constify.
2408
2409 2017-09-27 Tom Tromey <tom@tromey.com>
2410
2411 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2412 (skip_ws, extract_identifier, macro_define_command)
2413 (macro_undef_command, macro_list_command): Constify.
2414
2415 2017-09-27 Tom Tromey <tom@tromey.com>
2416
2417 * infcmd.c (environment_info, set_environment_command)
2418 (unset_environment_command, path_info, info_proc_cmd_1)
2419 (info_proc_cmd_mappings, info_proc_cmd_stat)
2420 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2421 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2422
2423 2017-09-27 Tom Tromey <tom@tromey.com>
2424
2425 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2426 Constify.
2427
2428 2017-09-27 Tom Tromey <tom@tromey.com>
2429
2430 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2431
2432 2017-09-27 Tom Tromey <tom@tromey.com>
2433
2434 * demangle.c (demangle_command): Constify.
2435
2436 2017-09-27 Tom Tromey <tom@tromey.com>
2437
2438 * progspace.c (maintenance_info_program_spaces_command):
2439 Constify.
2440
2441 2017-09-27 Tom Tromey <tom@tromey.com>
2442
2443 * compile/compile.c (check_raw_argument, compile_file_command)
2444 (compile_code_command, compile_print_command): Constify.
2445
2446 2017-09-27 Tom Tromey <tom@tromey.com>
2447
2448 * reggroups.c (maintenance_print_reggroups): Constify.
2449
2450 2017-09-27 Tom Tromey <tom@tromey.com>
2451
2452 * dwarf2read.c (save_gdb_index_command): Constify.
2453
2454 2017-09-27 Tom Tromey <tom@tromey.com>
2455
2456 * stap-probe.c (info_probes_stap_command): Constify.
2457
2458 2017-09-27 Tom Tromey <tom@tromey.com>
2459
2460 * fork-child.c (unset_exec_wrapper_command): Constify.
2461
2462 2017-09-27 Tom Tromey <tom@tromey.com>
2463
2464 * btrace.c (get_uint, get_context_size, no_chunk)
2465 (maint_btrace_packet_history_cmd)
2466 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2467 (maint_info_btrace_cmd): Constify.
2468
2469 2017-09-27 Tom Tromey <tom@tromey.com>
2470
2471 * reverse.c (delete_bookmark_command): Constify.
2472
2473 2017-09-27 Tom Tromey <tom@tromey.com>
2474
2475 * remote.c (set_memory_packet_size)
2476 (set_memory_write_packet_size, show_memory_write_packet_size)
2477 (set_memory_read_packet_size, show_memory_read_packet_size)
2478 (compare_sections_command, packet_command, remote_put_command)
2479 (remote_get_command, remote_delete_command): Constify.
2480
2481 2017-09-27 Tom Tromey <tom@tromey.com>
2482
2483 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2484 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2485 (set_mipsfpu_auto_command): Constify.
2486
2487 2017-09-27 Tom Tromey <tom@tromey.com>
2488
2489 * cli/cli-cmds.h (cd_command): Constify.
2490 * cli/cli-cmds.c (cd_command): Constify.
2491
2492 2017-09-27 Tom Tromey <tom@tromey.com>
2493
2494 * thread.c (thread_name_command, thread_find_command): Constify.
2495
2496 2017-09-27 Tom Tromey <tom@tromey.com>
2497
2498 * probe.c (enable_probes_command, disable_probes_command):
2499 Constify.
2500
2501 2017-09-27 Tom Tromey <tom@tromey.com>
2502
2503 * symfile.c (symbol_file_command): Constify.
2504 * gdbcore.h (deprecated_file_changed_hook): Constify.
2505 * exec.c (deprecated_file_changed_hook, exec_file_command)
2506 (file_command): Constify.
2507 * defs.h (symbol_file_command): Constify.
2508
2509 2017-09-27 Tom Tromey <tom@tromey.com>
2510
2511 * remote-fileio.c (set_system_call_allowed)
2512 (show_system_call_allowed): Constify.
2513
2514 2017-09-27 Tom Tromey <tom@tromey.com>
2515
2516 * tracepoint.c (delete_trace_variable_command)
2517 (tfind_end_command, tfind_start_command, tfind_pc_command)
2518 (tfind_tracepoint_command, tfind_line_command)
2519 (tfind_range_command, tfind_outside_command): Constify.
2520
2521 2017-09-27 Tom Tromey <tom@tromey.com>
2522
2523 * ax-gdb.c (maint_agent_printf_command, agent_command)
2524 (agent_eval_command): Constify.
2525
2526 2017-09-27 Tom Tromey <tom@tromey.com>
2527
2528 * tracepoint.c (info_scope_command): Constify.
2529 * python/python.c (gdbpy_decode_line): Constify.
2530 * python/py-breakpoint.c (bppy_init): Constify.
2531 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2532 * location.h: (new_linespec_location)
2533 (string_to_event_location_basic, string_to_event_location):
2534 Constify.
2535 * location.c (new_linespec_location)
2536 (string_to_event_location_basic, string_to_event_location):
2537 Constify.
2538 * linespec.h (decode_line_with_current_source)
2539 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2540 * linespec.c (linespec_lex_to_end)
2541 (decode_line_with_current_source)
2542 (decode_line_with_last_displayed): Constify.
2543 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2544 Constify.
2545 * cli/cli-cmds.c (edit_command, list_command): Constify.
2546 * breakpoint.h (until_break_command, watch_command_wrapper)
2547 (awatch_command_wrapper, rwatch_command_wrapper)
2548 (init_ada_exception_breakpoint): Constify.
2549 * breakpoint.c (break_command_1, dprintf_command)
2550 (break_range_command, watch_command_wrapper)
2551 (rwatch_command_wrapper, awatch_command_wrapper)
2552 (until_break_command, init_ada_exception_breakpoint)
2553 (strace_marker_create_sals_from_location, trace_command)
2554 (ftrace_command, strace_command, struct tracepoint): Constify.
2555 * ax-gdb.c (agent_command_1): Constify.
2556 * ada-lang.c (ada_exception_sal): Constify.
2557
2558 2017-09-27 Tom Tromey <tom@tromey.com>
2559
2560 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2561 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2562 (get_context_size, no_chunk, get_insn_history_modifiers)
2563 (cmd_record_insn_history, get_call_history_modifiers)
2564 (cmd_record_call_history): Constify.
2565
2566 2017-09-27 Tom Tromey <tom@tromey.com>
2567
2568 * source.c (show_substitute_path_command)
2569 (unset_substitute_path_command, set_substitute_path_command):
2570 Constify.
2571
2572 2017-09-27 Tom Tromey <tom@tromey.com>
2573
2574 * typeprint.c (maintenance_print_type): Constify.
2575 * maint.c (maintenance_dump_me, maintenance_demangle)
2576 (maintenance_time_display, maintenance_info_sections)
2577 (maintenance_print_statistics, maintenance_deprecate)
2578 (maintenance_undeprecate): Constify.
2579 (maintenance_do_deprecate): Constify. Use std::string.
2580 (maintenance_selftest): Constify.
2581 * gdbtypes.h (maintenance_print_type): Constify.
2582
2583 2017-09-27 Tom Tromey <tom@tromey.com>
2584
2585 * hppa-tdep.c (unwind_command): Constify.
2586
2587 2017-09-27 Tom Tromey <tom@tromey.com>
2588
2589 * target-descriptions.c (unset_tdesc_filename_cmd)
2590 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2591 Constify.
2592
2593 2017-09-27 Tom Tromey <tom@tromey.com>
2594
2595 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2596
2597 2017-09-27 Tom Tromey <tom@tromey.com>
2598
2599 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2600
2601 2017-09-27 Tom Tromey <tom@tromey.com>
2602
2603 * tui/tui-regs.c (tui_reg_command): Constify.
2604
2605 2017-09-27 Tom Tromey <tom@tromey.com>
2606
2607 * skip.c (skip_file_command, skip_function_command)
2608 (skip_enable_command, skip_disable_command, skip_delete_command):
2609 Constify.
2610
2611 2017-09-27 Tom Tromey <tom@tromey.com>
2612
2613 * record-btrace.c (cmd_record_btrace_bts_start)
2614 (cmd_record_btrace_pt_start): Constify.
2615
2616 2017-09-27 Tom Tromey <tom@tromey.com>
2617
2618 * symmisc.c (maintenance_print_symbols)
2619 (maintenance_print_msymbols, maintenance_print_objfiles)
2620 (maintenance_info_symtabs, maintenance_check_symtabs)
2621 (maintenance_expand_symtabs, maintenance_info_line_tables):
2622 Constify.
2623
2624 2017-09-27 Tom Tromey <tom@tromey.com>
2625
2626 * top.c (new_ui_command): Constify.
2627
2628 2017-09-27 Tom Tromey <tom@tromey.com>
2629
2630 * symfile.c (add_symbol_file_command)
2631 (remove_symbol_file_command, list_overlays_command)
2632 (map_overlay_command, unmap_overlay_command)
2633 (overlay_auto_command, overlay_manual_command)
2634 (overlay_off_command, overlay_load_command): Constify.
2635
2636 2017-09-27 Tom Tromey <tom@tromey.com>
2637
2638 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2639 (info_spu_mailbox_command, info_spu_dma_command)
2640 (info_spu_proxydma_command): Constify.
2641
2642 2017-09-27 Tom Tromey <tom@tromey.com>
2643
2644 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2645
2646 2017-09-27 Tom Tromey <tom@tromey.com>
2647
2648 * cli/cli-script.c (user_defined_command): Constify.
2649
2650 2017-09-27 Tom Tromey <tom@tromey.com>
2651
2652 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2653 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2654 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2655 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2656 (dump_binary_value, append_binary_memory, append_binary_value):
2657 Constify.
2658 (struct dump_context) <func>: Constify.
2659 (add_dump_command): Update.
2660
2661 2017-09-27 Tom Tromey <tom@tromey.com>
2662
2663 * cli/cli-cmds.c (show_version, show_configuration)
2664 (source_command, show_user): Constify.
2665
2666 2017-09-27 Tom Tromey <tom@tromey.com>
2667
2668 * target.c (maintenance_print_target_stack): Constify.
2669
2670 2017-09-27 Tom Tromey <tom@tromey.com>
2671
2672 * interps.c (interpreter_exec_cmd): Constify.
2673
2674 2017-09-27 Tom Tromey <tom@tromey.com>
2675
2676 * record-full.c (cmd_record_full_restore): Constify.
2677
2678 2017-09-27 Tom Tromey <tom@tromey.com>
2679
2680 * memattr.c (enable_mem_command, disable_mem_command)
2681 (delete_mem_command): Constify.
2682
2683 2017-09-27 Tom Tromey <tom@tromey.com>
2684
2685 * value.c (show_convenience): Constify.
2686
2687 2017-09-27 Tom Tromey <tom@tromey.com>
2688
2689 * gdbcore.h (core_file_command): Update.
2690 * corefile.c (core_file_command): Constify.
2691
2692 2017-09-27 Tom Tromey <tom@tromey.com>
2693
2694 * user-regs.c (maintenance_print_user_registers): Constify.
2695
2696 2017-09-27 Tom Tromey <tom@tromey.com>
2697
2698 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2699
2700 2017-09-27 Tom Tromey <tom@tromey.com>
2701
2702 * cp-support.c (first_component_command): Constify.
2703
2704 2017-09-27 Tom Tromey <tom@tromey.com>
2705
2706 * psymtab.c (maintenance_print_psymbols)
2707 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2708 Constify.
2709
2710 2017-09-27 Tom Tromey <tom@tromey.com>
2711
2712 * windows-tdep.c (display_tib): Constify.
2713
2714 2017-09-27 Tom Tromey <tom@tromey.com>
2715
2716 * linux-fork.c (delete_checkpoint_command)
2717 (detach_checkpoint_command): Constify.
2718
2719 2017-09-27 Tom Tromey <tom@tromey.com>
2720
2721 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2722
2723 2017-09-27 Tom Tromey <tom@tromey.com>
2724
2725 * arc-tdep.c (dump_arc_instruction_command): Constify.
2726
2727 2017-09-27 Tom Tromey <tom@tromey.com>
2728
2729 * valprint.c (set_radix, show_radix): Constify.
2730
2731 2017-09-27 Tom Tromey <tom@tromey.com>
2732
2733 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2734
2735 2017-09-27 Tom Tromey <tom@tromey.com>
2736
2737 * command.h (not_just_help_class_command): Update.
2738 * cli/cli-decode.h (not_just_help_class_command): Update.
2739 * cli/cli-decode.c (not_just_help_class_command): Constify.
2740
2741 2017-09-27 Tom Tromey <tom@tromey.com>
2742
2743 * gdb_bfd.c (maintenance_info_bfds): Constify.
2744
2745 2017-09-27 Tom Tromey <tom@tromey.com>
2746
2747 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2748 overloads.
2749 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2750 (do_const_cfunc): New function.
2751 (cmd_cfunc_eq): New overload.
2752 (cli_user_command_p): Check do_const_cfunc.
2753 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2754 const_cfunc.
2755 * command.h (add_cmd): Add const overload and no-function
2756 overload.
2757 (set_cmd_cfunc): Add const overload.
2758 (cmd_const_cfunc_ftype): Declare.
2759 (cmd_cfunc_eq): Add const overload.
2760 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2761 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2762 overload.
2763
2764 2017-09-27 Tom Tromey <tom@tromey.com>
2765
2766 * macroexp.c (get_next_token_for_substitution): New function.
2767 (substitute_args): Call it. Check for __VA_OPT__.
2768
2769 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2770 Pedro Alves <palves@redhat.com>
2771
2772 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2773 producer_is_icc_lt_14.
2774 (producer_is_icc_lt_14): New function.
2775 (check_producer): Add code for checking version of ICC.
2776 (producer_is_icc): Move to producer.c.
2777 (read_structure_type): Restrict ICC workaround to ICC<14.
2778 * producer.c: Include selftest.h.
2779 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2780 New functions.
2781 * producer.h (producer_is_icc): New declaration.
2782
2783 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2784
2785 * Makefile.in (SFILES): Add producer.c.
2786 (COMMON_OBS): Add producer.o
2787 * amd64-tdep.c (producer.h): Add new include.
2788 * dwarf2read.c (producer.h): Add new include.
2789 * producer.c: New file.
2790 * producer.h: New file.
2791 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2792 producer.c.
2793 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2794 producer.h.
2795
2796 2017-09-26 Matthias Klose <doko@ubuntu.com>
2797
2798 * configure.ac: Search ncursesw before ncurses.
2799 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2800 * gdb_curses.h: Include <ncursesw/ncurses.h>
2801 * config.in, configure: Regenerate.
2802
2803 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2804
2805 PR gdb/22185
2806 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2807 obsolete.
2808 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2809 Remove i386sol2 support.
2810 * configure.nat <i386sol2>: Remove.
2811 <sol2-64>: Fold into ...
2812 <sol2>: ... this.
2813 Move common settings to default section.
2814 Add sol-thread.o.
2815 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2816 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2817 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2818 <i[34567]86-*-solaris*>: Remove.
2819 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2820
2821 * configure.ac: Remove wctype in libw check.
2822 (_MSE_INT_H): Don't define on Solaris 7-9.
2823 <solaris*>: Remove libthread_db.so.1 check.
2824 * configure: Regenerate.
2825 * config.in: Regenerate.
2826
2827 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2828 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2829 (gdb_ps_size_t): Remove.
2830 Use base types in users.
2831 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2832
2833 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2834
2835 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2836
2837 PR build/22206
2838 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2839 (adi_is_addr_mapped): Likewise.
2840 (PSR_ICC): Don't redefine.
2841 (PSR_IMPL): Likewise.
2842
2843 2017-09-25 Tom Tromey <tom@tromey.com>
2844
2845 * regcache.c (regcache::dump): Use string_printf.
2846
2847 2017-09-25 Tom Tromey <tom@tromey.com>
2848
2849 * regcache.c (class regcache_invalidator): New.
2850 (struct register_to_invalidate): Remove.
2851 (make_cleanup_regcache_invalidate): Remove.
2852 (regcache::raw_write): Use regcache_invalidator.
2853
2854 2017-09-25 Tom Tromey <tom@tromey.com>
2855
2856 * spu-tdep.c (spu2ppu_sniffer): Update.
2857 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2858 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2859 Remove.
2860 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2861 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2862 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2863 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2864 (frame_pop): Update.
2865
2866 2017-09-25 Tom Tromey <tom@tromey.com>
2867
2868 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
2869 * regcache.h (regcache_xfree): Don't declare.
2870 * regcache.c (regcache_xfree): Remove.
2871 (do_regcache_xfree): Use delete.
2872 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
2873 * linux-fork.c (free_fork): Use delete.
2874 (fork_save_infrun_state): Likewise.
2875 * jit.c (jit_dealloc_cache): Use delete.
2876 * infrun.c (discard_infcall_suspend_state): Use delete.
2877
2878 2017-09-25 Tom Tromey <tom@tromey.com>
2879
2880 * regcache.h (regcache_xmalloc): Don't declare.
2881 (regcache_raw_set_cached_value): Update comment.
2882 * regcache.c (regcache_xmalloc): Remove.
2883 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
2884 * jit.c (jit_frame_sniffer): Use new.
2885 * frame.c (frame_save_as_regcache): Use new.
2886
2887 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2888
2889 * NEWS: Advertise support for guarded-storage registers on IBM z.
2890
2891 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2892
2893 * s390-linux-nat.c (have_regset_gs): New static variable.
2894 (s390_linux_fetch_inferior_registers): Handle guarded-storage
2895 control block and guarded-storage broadcast control regsets.
2896 (s390_read_description): Detect whether the target has
2897 guarded-storage support, return appropriate tdesc.
2898 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
2899 (features/s390x-gs-linux64.c): Likewise.
2900 (struct gdbarch_tdep) <have_gs>: New field.
2901 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
2902 (s390_gsbc_regset): New variables.
2903 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
2904 and s390_gsbc_regset, if applicable.
2905 (s390_core_read_description): Check whether core file was from a
2906 target with guarded-storage support; include appropriate regsets.
2907 (s390_gdbarch_init): Add registers for guarded-storage support.
2908 (_initialize_s390_tdep): Initialize new target descriptions that
2909 include registers for guarded-storage support.
2910 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
2911 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
2912 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
2913 (S390_NUM_REGS): Adjust macro definition.
2914 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
2915 (tdesc_s390x_gs_linux64): New declarations.
2916
2917 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2918
2919 * features/s390-gs-linux64.xml: New file.
2920 * features/s390-gs.xml: New file.
2921 * features/s390-gsbc.xml: New file.
2922 * features/s390x-gs-linux64.xml: New file.
2923 * features/Makefile (WHICH): Add s390-gs-linux64 and
2924 s390x-gs-linux64.
2925 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
2926 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
2927 * features/s390-gs-linux64.c: New generated file.
2928 * features/s390x-gs-linux64.c: New file.
2929 * regformats/s390-gs-linux64.dat: New file.
2930 * regformats/s390x-gs-linux64.dat: New file.
2931
2932 2017-09-23 Tom Tromey <tom@tromey.com>
2933
2934 * defs.h (make_cleanup_override_quit_handler): Don't declare.
2935
2936 2017-09-22 Tom Tromey <tom@tromey.com>
2937
2938 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
2939 type to scoped_restore_tmpl.
2940 <scoped_input_handler>: Initialize m_quit_handler directly.
2941
2942 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2943
2944 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
2945 (cd_command): Likewise. Free "current_directory" before
2946 assigning to it.
2947 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
2948 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
2949 * top.c (gdb_dirbuf): Remove global declaration.
2950 * top.h (gdb_dirbuf): Likewise.
2951
2952 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
2953
2954 * gnulib/aclocal.m4: Regenerate.
2955 * gnulib/config.in: Regenerate.
2956 * gnulib/configure: Regenerate.
2957 * gnulib/import/Makefile.am: Regenerate.
2958 * gnulib/import/Makefile.in: Regenerate.
2959 * gnulib/import/assure.h: New file.
2960 * gnulib/import/at-func.c: Likewise
2961 * gnulib/import/chdir-long.c: New file.
2962 * gnulib/import/chdir-long.h: New file.
2963 * gnulib/import/cloexec.c: New file.
2964 * gnulib/import/cloexec.h: New file.
2965 * gnulib/import/close.c: New file.
2966 * gnulib/import/closedir.c: New file.
2967 * gnulib/import/dirent-private.h: New file.
2968 * gnulib/import/dup-safer.c: New file.
2969 * gnulib/import/dup.c: New file.
2970 * gnulib/import/dup2.c: New file.
2971 * gnulib/import/error.c: New file.
2972 * gnulib/import/error.h: New file.
2973 * gnulib/import/exitfail.c: New file.
2974 * gnulib/import/exitfail.h: New file.
2975 * gnulib/import/fchdir.c: New file.
2976 * gnulib/import/fcntl.c: New file.
2977 * gnulib/import/fcntl.in.h: New file.
2978 * gnulib/import/fd-hook.c: New file.
2979 * gnulib/import/fd-hook.h: New file.
2980 * gnulib/import/fd-safer.c: New file.
2981 * gnulib/import/fdopendir.c: New file.
2982 * gnulib/import/filename.h: New file.
2983 * gnulib/import/filenamecat-lgpl.c: New file.
2984 * gnulib/import/filenamecat.h: New file.
2985 * gnulib/import/fstat.c: New file.
2986 * gnulib/import/fstatat.c: New file.
2987 * gnulib/import/getcwd-lgpl.c: New file.
2988 * gnulib/import/getcwd.c: New file.
2989 * gnulib/import/getdtablesize.c: New file.
2990 * gnulib/import/getlogin_r.c: New file.
2991 * gnulib/import/getprogname.c: New file.
2992 * gnulib/import/getprogname.h: New file.
2993 * gnulib/import/gettext.h: New file.
2994 * gnulib/import/glob-libc.h: New file.
2995 * gnulib/import/glob.c: New file.
2996 * gnulib/import/glob.in.h: New file.
2997 * gnulib/import/intprops.h: New file.
2998 * gnulib/import/m4/chdir-long.m4: New file.
2999 * gnulib/import/m4/close.m4: New file.
3000 * gnulib/import/m4/closedir.m4: New file.
3001 * gnulib/import/m4/d-ino.m4: New file.
3002 * gnulib/import/m4/d-type.m4: New file.
3003 * gnulib/import/m4/dup.m4: New file.
3004 * gnulib/import/m4/dup2.m4: New file.
3005 * gnulib/import/m4/error.m4: New file.
3006 * gnulib/import/m4/fchdir.m4: New file.
3007 * gnulib/import/m4/fcntl.m4: New file.
3008 * gnulib/import/m4/fcntl_h.m4: New file.
3009 * gnulib/import/m4/fdopendir.m4: New file.
3010 * gnulib/import/m4/filenamecat.m4: New file.
3011 * gnulib/import/m4/fstat.m4: New file.
3012 * gnulib/import/m4/fstatat.m4: New file.
3013 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3014 * gnulib/import/m4/getcwd-path-max.m4: New file.
3015 * gnulib/import/m4/getcwd.m4: New file.
3016 * gnulib/import/m4/getdtablesize.m4: New file.
3017 * gnulib/import/m4/getlogin_r.m4: New file.
3018 * gnulib/import/m4/getprogname.m4: New file.
3019 * gnulib/import/m4/glob.m4: New file.
3020 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3021 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3022 * gnulib/import/m4/mempcpy.m4: New file.
3023 * gnulib/import/m4/memrchr.m4: New file.
3024 * gnulib/import/m4/mode_t.m4: New file.
3025 * gnulib/import/m4/msvc-inval.m4: New file.
3026 * gnulib/import/m4/msvc-nothrow.m4: New file.
3027 * gnulib/import/m4/open.m4: New file.
3028 * gnulib/import/m4/openat.m4: New file.
3029 * gnulib/import/m4/opendir.m4: New file.
3030 * gnulib/import/m4/readdir.m4: New file.
3031 * gnulib/import/m4/realloc.m4: New file.
3032 * gnulib/import/m4/rewinddir.m4: New file.
3033 * gnulib/import/m4/save-cwd.m4: New file.
3034 * gnulib/import/m4/strdup.m4: New file.
3035 * gnulib/import/m4/strerror.m4: New file.
3036 * gnulib/import/m4/unistd-safer.m4: New file.
3037 * gnulib/import/mempcpy.c: New file.
3038 * gnulib/import/memrchr.c: New file.
3039 * gnulib/import/msvc-inval.c: New file.
3040 * gnulib/import/msvc-inval.h: New file.
3041 * gnulib/import/msvc-nothrow.c: New file.
3042 * gnulib/import/msvc-nothrow.h: New file.
3043 * gnulib/import/open.c: New file.
3044 * gnulib/import/openat-die.c: New file.
3045 * gnulib/import/openat-priv.h: New file.
3046 * gnulib/import/openat-proc.c: New file.
3047 * gnulib/import/openat.c: New file.
3048 * gnulib/import/openat.h: New file.
3049 * gnulib/import/opendir.c: New file.
3050 * gnulib/import/pipe-safer.c: New file.
3051 * gnulib/import/readdir.c: New file.
3052 * gnulib/import/realloc.c: New file.
3053 * gnulib/import/rewinddir.c: New file.
3054 * gnulib/import/save-cwd.c: New file.
3055 * gnulib/import/save-cwd.h: New file.
3056 * gnulib/import/strdup.c: New file.
3057 * gnulib/import/strerror-override.c: New file.
3058 * gnulib/import/strerror-override.h: New file.
3059 * gnulib/import/strerror.c: New file.
3060 * gnulib/import/unistd--.h: New file.
3061 * gnulib/import/unistd-safer.h: New file.
3062 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3063 "getcwd" and "glob".
3064 * ser-tcp.c: Undefine "close" before redefining it.
3065
3066 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3067
3068 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3069 get rid of res_val.
3070
3071 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3072
3073 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3074 <sol2,sparc>: Likewise.
3075 <sol2-64,i386>: Likewise.
3076
3077 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3078 -Wdeprecated-declarations on *-*-solaris*.
3079 * configure: Regenerate.
3080
3081 * procfs.c: Include "nat/inferior.h".
3082 (procfs_info_proc): Fix typo.
3083
3084 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3085
3086 * remote.c (vector): Include.
3087 (struct private_thread_info): Add field, thread_handle.
3088 (free_private_thread_info): Deallocate storage associated with
3089 thread handle.
3090 (get_private_info_thread): Initialize `thread_handle' field.
3091 (struct thread_item): Add field, thread_handle.
3092 (clear_threads_listing_context): Deallocate storage associated
3093 with thread handle.
3094 (start_thread): Add support for "handle" attribute.
3095 (thread_attributes): Add "handle".
3096 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3097 field.
3098 (remote_update_thread_list): Update thread_handle.
3099 (remote_thread_handle_to_thread_info): New function.
3100 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3101
3102 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3103
3104 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3105 function.
3106 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3107 * python/python-internal.h (thread_object_type): Declare.
3108
3109 2017-09-21 Kevin Buettner <kevinb@redhat.com>
3110
3111 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3112 (target_thread_handle_to_thread_info): Declare.
3113 * target.c (target_thread_handle_to_thread_info): New function.
3114 * target-delegates.c: Regenerate.
3115 * gdbthread.h (find_thread_by_handle): Declare.
3116 * thread.c (find_thread_by_handle): New function.
3117 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3118 function.
3119 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3120
3121 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3122
3123 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3124
3125 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3126
3127 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3128
3129 2017-09-21 Yao Qi <yao.qi@linaro.org>
3130
3131 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3132 to gdb_target_obs.
3133
3134 2017-09-20 Tom Tromey <tom@tromey.com>
3135
3136 * breakpoint.c (struct counted_command_line): Remove.
3137 (breakpoint_commands): Update.
3138 (alloc_counted_command_line, incref_counted_command_line)
3139 (decref_counted_command_line, do_cleanup_counted_command_line)
3140 (make_cleanup_decref_counted_command_line): Remove.
3141 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3142 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3143 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3144 (save_breakpoints): Update.
3145 * breakpoint.h (counted_command_line): Now a typedef to
3146 shared_ptr.
3147 (struct breakpoint) <commands>: Now a counted_command_line.
3148 (struct bpstats) <command>: Likewise.
3149
3150 2017-09-20 Tom Tromey <tom@tromey.com>
3151
3152 * breakpoint.c (struct commands_info, do_map_commands_command):
3153 Remove.
3154 (commands_command_1): Update.
3155 (iterate_over_related_breakpoints): Take a function_view.
3156 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3157 (delete_command): Update.
3158 (map_breakpoint_numbers): Take a function_view.
3159 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3160 (disable_command): Update.
3161 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3162 (enable_command): Update.
3163 (struct disp_data, do_enable_breakpoint_disp)
3164 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3165 (do_map_enable_delete_breakpoint): Remove.
3166 (enable_once_command, enable_count_command, enable_delete_command)
3167 (delete_trace_variable_command): Update.
3168
3169 2017-09-20 Tom Tromey <tom@tromey.com>
3170
3171 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3172 (bpstat_clear): Use delete.
3173 (bpstats): New constructors.
3174 (bpstat_copy, bpstat_stop_status): Use new.
3175 (dprintf_after_condition_true): Update.
3176 * breakpoint.h (bpstats::bpstats): Add constructors.
3177 (bpstats::~bpstats): Add destructor.
3178
3179 2017-09-20 Pedro Alves <palves@redhat.com>
3180
3181 * eval.c (make_params): Delete, refactored as ...
3182 (class fake_method): ... this new type's ctor.
3183 (fake_method::~fake_method): New.
3184 (evaluate_subexp_standard): Use 'fake_method'.
3185
3186 2017-09-20 Tom Tromey <tom@tromey.com>
3187
3188 * windows-nat.c (get_windows_debug_event, windows_wait)
3189 (do_initial_windows_stuff, windows_attach): Update.
3190 * utils.c (vwarning, internal_vproblem): Update.
3191 (ui_unregister_input_event_handler_cleanup)
3192 (prepare_to_handle_input): Remove.
3193 (class scoped_input_handler): New.
3194 (defaulted_query, prompt_for_continue): Update.
3195 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3196 Update.
3197 * top.c (undo_terminal_modifications_before_exit): Update.
3198 * target/target.h (target_terminal_init, target_terminal_inferior)
3199 (target_terminal_ours): Don't declare.
3200 (class target_terminal): New.
3201 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3202 (target_terminal_ours_for_output)
3203 (make_cleanup_restore_target_terminal): Don't declare.
3204 (target_terminal_info): Remove.
3205 * target.c (enum terminal_state, terminal_state): Remove.
3206 (target_terminal::terminal_state): Define.
3207 (target_terminal::init): Rename from target_terminal_init.
3208 (target_terminal::inferior): Rename from
3209 target_terminal_inferior.
3210 (target_terminal::ours): Rename from target_terminal_ours.
3211 (target_terminal::ours_for_output): Rename from
3212 target_terminal_ours_for_output.
3213 (target_terminal::info): New method.
3214 (cleanup_restore_target_terminal)
3215 (make_cleanup_restore_target_terminal): Remove.
3216 * solib.c (handle_solib_event): Update.
3217 * remote.c (remote_serial_quit_handler): Update.
3218 (remote_terminal_inferior, remote_wait_as): Update.
3219 * record-full.c (record_full_wait_1): Update.
3220 * nto-procfs.c (procfs_create_inferior): Update.
3221 * nat/fork-inferior.c (startup_inferior): Update.
3222 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3223 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3224 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3225 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3226 (mi_breakpoint_created, mi_breakpoint_deleted)
3227 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3228 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3229 (mi_user_selected_context_changed, report_initial_inferior):
3230 Update.
3231 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3232 (linux_nat_terminal_inferior): Update.
3233 * infrun.c (follow_fork_inferior)
3234 (handle_vfork_child_exec_or_exit, do_target_resume)
3235 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3236 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3237 Update.
3238 * inflow.c (child_terminal_init, info_terminal_command): Update.
3239 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3240 (attach_command): Update.
3241 * infcall.c (call_thread_fsm_should_stop): Update.
3242 * gnu-nat.c (gnu_attach): Update.
3243 * extension.c (struct active_ext_lang_state)
3244 (restore_active_ext_lang): Update.
3245 * exceptions.c (print_flush): Update.
3246 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3247 (struct quit_handler_cleanup_data, restore_quit_handler)
3248 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3249 Remove.
3250 * cp-support.c (gdb_demangle): Update.
3251 * breakpoint.c (update_inserted_breakpoint_locations)
3252 (insert_breakpoint_locations, handle_jit_event)
3253 (disable_breakpoints_in_unloaded_shlib): Update.
3254 * annotate.c (annotate_breakpoints_invalid)
3255 (annotate_frames_invalid): Update.
3256
3257 2017-09-20 Tom Tromey <tom@tromey.com>
3258
3259 * main.c (catch_command_errors): Rename from
3260 catch_command_errors_const.
3261 (captured_main_1): Update.
3262
3263 2017-09-20 Pedro Alves <palves@redhat.com>
3264
3265 * cli/cli-cmds.c (list_command): Use print_sal_location.
3266 (print_sal_location): New function.
3267 (ambiguous_line_spec): Use print_sal_location.
3268 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3269 * symtab.c (find_function_start_sal): Likewise.
3270 * symtab.h (symtab_and_line::symbol): New field.
3271
3272 2017-09-20 Pedro Alves <palves@redhat.com>
3273
3274 * linespec.c (minsym_found): Handle non-text minsyms.
3275 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3276
3277 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3278
3279 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3280 backslash.
3281
3282 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3283
3284 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3285 vmovups instead vmovaps.
3286 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3287
3288 2017-09-19 John Baldwin <jhb@FreeBSD.org>
3289
3290 * NEWS (Changes since GDB 8.0): Add starti.
3291 * infcmd.c (enum run_break): New.
3292 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3293 case.
3294 (run_command): Use enum run_how.
3295 (start_command): Likewise.
3296 (starti_command): New function.
3297 (RUN_ARGS_HELP): New macro.
3298 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3299 commands. Add starti command.
3300
3301 2017-09-19 Yao Qi <yao.qi@linaro.org>
3302
3303 * Makefile.in (monitor.o): Remove the rule.
3304
3305 2017-09-19 Yao Qi <yao.qi@linaro.org>
3306
3307 * annotate.h (struct annotate_arg_emitter): Use
3308 DISABLE_COPY_AND_ASSIGN.
3309 * common/refcounted-object.h (refcounted_object): Likewise.
3310 * completer.h (struct completion_result): Likewise.
3311 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3312 * filename-seen-cache.h (filename_seen_cache): Likewise.
3313 * gdbcore.h (thread_section_name): Likewise.
3314 * gdb_regex.h (compiled_regex): Likewise.
3315 * gdbthread.h (scoped_restore_current_thread): Likewise.
3316 * inferior.h (scoped_restore_current_inferior): Likewise.
3317 * jit.c (jit_reader): Likewise.
3318 * linespec.h (struct linespec_result): Likewise.
3319 * mi/mi-parse.h (struct mi_parse): Likewise.
3320 * nat/fork-inferior.c (execv_argv): Likewise.
3321 * progspace.h (scoped_restore_current_program_space): Likewise.
3322 * python/python-internal.h (class gdbpy_enter): Likewise.
3323 * regcache.h (regcache): Likewise.
3324 * target-descriptions.c (struct tdesc_reg): Likewise.
3325 (struct tdesc_type): Likewise.
3326 (struct tdesc_feature): Likewise.
3327 * ui-out.h (ui_out_emit_type): Likewise.
3328
3329 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3330
3331 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3332 label abort_expression.
3333
3334 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3335
3336 * common/buffer.c (buffer_xml_printf): Adjust.
3337 * common/xml-utils.c (xml_escape_text): Change return type to
3338 std::string, update code accordingly.
3339 * common/xml-utils.h (xml_escape_text): Change return type to
3340 std::string.
3341 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3342 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3343 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3344 Adjust.
3345
3346 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3347
3348 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3349 (SUBDIR_UNITTESTS_OBS): Add new object file.
3350 * unittests/xml-utils-selftests.c: New file.
3351
3352 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3353
3354 * common/selftest.h (selftest): New struct/interface.
3355 (register_test): Add name parameter, add new overload.
3356 (run_tests): Add filter parameter.
3357 (for_each_selftest_ftype): New typedef.
3358 (for_each_selftest): New declaration.
3359 * common/selftest.c (tests): Change type to
3360 map<string, unique_ptr<selftest>>.
3361 (simple_selftest): New struct.
3362 (register_test): New function.
3363 (register_test): Add name parameter and use it.
3364 (run_tests): Add filter parameter and use it. Add prints.
3365 Adjust to vector -> map change.
3366 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3367 registering selftests.
3368 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3369 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3370 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3371 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3372 * findvar.c (_initialize_findvar): Likewise.
3373 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3374 * maint.c (maintenance_selftest): Update call to run_tests.
3375 (maintenance_info_selftests): New function.
3376 (_initialize_maint_cmds): Register "maintenance info selftests"
3377 command. Update "maintenance selftest" doc.
3378 * regcache.c (_initialize_regcache): Add names when registering
3379 selftests.
3380 * rust-exp.y (_initialize_rust_exp): Likewise.
3381 * selftest-arch.c (gdbarch_selftest): New struct.
3382 (gdbarch_tests): Remove.
3383 (register_test_foreach_arch): Add name parameter. Call
3384 register_test.
3385 (tests_with_arch): Remove, move most content to
3386 gdbarch_selftest::operator().
3387 (_initialize_selftests_foreach_arch): Remove.
3388 * selftest-arch.h (register_test_foreach_arch): Add name
3389 parameter.
3390 (run_tests_with_arch): New declaration.
3391 * utils-selftests.c (_initialize_utils_selftests): Add names
3392 when registering selftests.
3393 * utils.c (_initialize_utils): Likewise.
3394 * unittests/array-view-selftests.c
3395 (_initialize_array_view_selftests): Likewise.
3396 * unittests/environ-selftests.c (_initialize_environ_selftests):
3397 Likewise.
3398 * unittests/function-view-selftests.c
3399 (_initialize_function_view_selftests): Likewise.
3400 * unittests/offset-type-selftests.c
3401 (_initialize_offset_type_selftests): Likewise.
3402 * unittests/optional-selftests.c
3403 (_initialize_optional_selftests): Likewise.
3404 * unittests/scoped_restore-selftests.c
3405 (_initialize_scoped_restore_selftests): Likewise.
3406 * NEWS: Document "maintenance selftest" and "maint info
3407 selftests".
3408
3409 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3410
3411 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3412 scoped_restore.
3413
3414 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3415
3416 * mi/mi-main.c (mi_load_progress): Make uiout variable
3417 a unique_ptr.
3418
3419 2017-09-15 Pedro Alves <palves@redhat.com>
3420
3421 * compile/compile-c-types.c (convert_enum, convert_int)
3422 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3423
3424 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3425
3426 * dwarf2read.c (copy_string): Remove.
3427 (parse_macro_definition): Replace copy_string with savestring.
3428
3429 2017-09-15 Yao Qi <yao.qi@linaro.org>
3430
3431 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3432 gdb_target_obs.
3433 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3434 Likewise.
3435 (i[34567]86-*-linux*): Likewise.
3436
3437 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3438
3439 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3440 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3441 <stack>: Change type to std::vector.
3442 <stack_len, stack_allocated>: Remove.
3443 <grow_stack>: Remove.
3444 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3445 (dwarf_expr_context::~dwarf_expr_context): Remove.
3446 (dwarf_expr_context::grow_stack): Remove.
3447 (dwarf_expr_context::push): Adjust.
3448 (dwarf_expr_context::pop): Adjust.
3449 (dwarf_expr_context::fetch): Adjust.
3450 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3451 (dwarf_expr_context::stack_empty_p): Adjust.
3452 (dwarf_expr_context::execute_stack_op): Adjust.
3453
3454 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3455
3456 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3457 return type to bool.
3458 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3459
3460 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3461
3462 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3463 Change type to bool.
3464 (dwarf_stack_value) <in_stack_memory>: Likewise.
3465 (dwarf_expr_context) <push_address>: Change parameter type to
3466 bool.
3467 <fetch_in_stack_memory>: Change return type to bool.
3468 <push>: Change parameter type to bool.
3469 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3470 to bool.
3471 (dwarf_expr_context::push_address): Likewise.
3472 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3473 to bool.
3474 (dwarf_expr_context::execute_stack_op): Adjust.
3475 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3476
3477 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3478
3479 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3480 (struct dwarf_expr_context) <n_pieces>: Remove.
3481 <pieces>: Change type to std::vector.
3482 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3483 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3484 pieces.
3485 (dwarf_expr_context::add_piece): Adjust.
3486 * dwarf2loc.c (struct piece_closure): Initialize fields.
3487 <n_pieces>: Remove.
3488 <pieces>: Change type to std::vector.
3489 (allocate_piece_closure): Adjust, change parameter to
3490 std::vector rvalue and std::move it to piece_closure.
3491 (rw_pieced_value): Adjust.
3492 (check_pieced_synthetic_pointer): Adjust.
3493 (indirect_synthetic_pointer): Adjust.
3494 (coerce_pieced_ref): Adjust.
3495 (free_pieced_value_closure): Adjust. Use delete to free
3496 piece_closure.
3497 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3498 to allocate_piece_closure.
3499 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3500
3501 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3502
3503 * probe.h (probe_ops_cp): Remove typedef.
3504 (DEF_VEC_P (probe_ops_cp)): Remove.
3505 (all_probe_ops): Change type to std::vector.
3506 * probe.c (info_probes_for_ops): Adjust to vector change.
3507 (probe_linespec_to_ops): Likewise.
3508 (all_probe_ops): Change type to std::vector.
3509 (_initialize_probe): Adjust to vector change.
3510 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3511 * elfread.c (elf_get_probes): Likewise.
3512 * stap-probe.c (_initialize_stap_probe): Likewise.
3513
3514 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3515
3516 * probe.h (struct bound_probe): Define constructors.
3517 * probe.c (bound_probe_s): Remove typedef.
3518 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3519 (collect_probes): Change return type to std::vector, remove
3520 cleanup.
3521 (compare_probes): Return bool, change parameter type. Change
3522 semantic to "less than".
3523 (gen_ui_out_table_header_info): Change parameter to std::vector
3524 and update.
3525 (exists_probe_with_pops): Likewise.
3526 (info_probes_for_ops): Update to std::vector change.
3527 (enable_probes_command): Likewise.
3528 (disable_probes_command): Likewise.
3529
3530 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3531
3532 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3533 vec to std::vector.
3534 * probe.c (parse_probes_in_pspace): Update.
3535 (find_probes_in_objfile): Update.
3536 (find_probe_by_pc): Update.
3537 (collect_probes): Update.
3538 (probe_any_get_probes): Update.
3539 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3540 return type to reference to std::vector.
3541 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3542 std::vector and update.
3543 (dtrace_process_dof): Likewise.
3544 (dtrace_get_probes): Likewise.
3545 * elfread.c (elf_get_probes): Change return type to std::vector,
3546 store an std::vector in bfd_data.
3547 (probe_key_free): Update to std::vector.
3548 * stap-probe.c (handle_stap_probe): Change parameter to
3549 std::vector and update.
3550 (stap_get_probes): Likewise.
3551 * symfile-debug.c (debug_sym_get_probes): Change return type to
3552 std::vector and update.
3553
3554 2017-09-11 Tom Tromey <tom@tromey.com>
3555
3556 * breakpoint.c (program_breakpoint_here_p): Update.
3557 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3558 from make_show_memory_breakpoints_cleanup. Return a
3559 scoped_restore_tmpl<int>.
3560 (restore_show_memory_breakpoints): Remove.
3561 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3562 * mem-break.c (memory_validate_breakpoint): Update.
3563 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3564 (ia64_memory_remove_breakpoint): Update.
3565 (ia64_breakpoint_from_pc): Update.
3566 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3567 from make_show_memory_breakpoints_cleanup.
3568
3569 2017-09-11 Tom Tromey <tom@tromey.com>
3570
3571 * d-namespace.c (d_lookup_symbol): Use std::string.
3572 (find_symbol_in_baseclass): Likewise.
3573
3574 2017-09-11 Tom Tromey <tom@tromey.com>
3575
3576 * ctf.c (ctf_start): Use std::string.
3577
3578 2017-09-11 Tom Tromey <tom@tromey.com>
3579
3580 * ada-lang.c (is_known_support_routine): Update.
3581 (ada_unhandled_exception_name_addr_from_raise): Update.
3582 * guile/scm-frame.c (gdbscm_frame_name): Update.
3583 * python/py-frame.c (frapy_name): Update.
3584 (frapy_function): Update.
3585 * stack.h (find_frame_funname): Update.
3586 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3587 (print_frame): Update.
3588
3589 2017-09-11 Tom Tromey <tom@tromey.com>
3590
3591 * findcmd.c (put_bits): Take a gdb::byte_vector.
3592 (parse_find_args): Return gdb::byte_vector. "args" now const.
3593 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3594 cleanups.
3595 (find_command): Update.
3596
3597 2017-09-11 Tom Tromey <tom@tromey.com>
3598
3599 * cli/cli-script.c (class scoped_restore_hook_in): New.
3600 (clear_hook_in_cleanup): Remove.
3601 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3602 scoped_restore_hook_in.
3603
3604 2017-09-11 Tom Tromey <tom@tromey.com>
3605
3606 * cli/cli-script.c (restore_interp): Remove.
3607 (read_command_lines): Use scoped_restore_interp.
3608 * interps.c (scoped_restore_interp::set_temp): Rename from
3609 interp_set_temp.
3610 * interps.h (class scoped_restore_interp): New.
3611 (interp_set_temp): Remove.
3612
3613 2017-09-11 Tom Tromey <tom@tromey.com>
3614
3615 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3616 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3617 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3618 scoped_restore.
3619 (mi_cmd_break_insert_1): Update.
3620 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3621 scoped_restore.
3622
3623 2017-09-11 Tom Tromey <tom@tromey.com>
3624
3625 * demangle.c (demangle_command): Update.
3626 * breakpoint.c (disable_command): Update.
3627 (enable_command): Update.
3628 (find_location_by_number): Make "number" const. Use
3629 get_number_trailer.
3630 * cli/cli-utils.c (extract_arg): Return std::string.
3631 * probe.c (parse_probe_linespec): Update. Change types.
3632 (collect_probes): Take string arguments.
3633 (parse_probe_linespec): Likewise.
3634 (info_probes_for_ops): Update.
3635 (enable_probes_command): Update.
3636 (disable_probes_command): Update.
3637 * break-catch-sig.c (catch_signal_split_args): Update.
3638 * mi/mi-parse.c (mi_parse): Update.
3639
3640 2017-09-11 Tom Tromey <tom@tromey.com>
3641
3642 * language.h (language_enum): Make argument const.
3643 * language.c (language_enum): Make argument const.
3644
3645 2017-09-11 Tom Tromey <tom@tromey.com>
3646
3647 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3648 as function.
3649 (skip_to_space): Rename from skip_to_space_const.
3650 * common/common-utils.c (skip_to_space): New function.
3651 (skip_to_space): Rename from skip_to_space_const.
3652 * cli/cli-utils.h (get_number): Rename from get_number_const.
3653 (extract_arg): Rename from extract_arg_const.
3654 * cli/cli-utils.c (get_number): Rename from get_number_const.
3655 (extract_arg): Rename from extract_arg_const.
3656 (number_or_range_parser::get_number): Use ::get_number.
3657 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3658 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3659 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3660 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3661 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3662 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3663 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3664 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3665
3666 2017-09-11 Tom Tromey <tom@tromey.com>
3667
3668 * python/python.c (do_start_initialization): Use
3669 py-event-types.def to initialize types.
3670 Define all object type structures.
3671 * python/python-internal.h: Don't declare event initialization
3672 functions.
3673 * python/py-threadevent.c (thread_event_object_type): Don't
3674 define.
3675 * python/py-stopevent.c (stop_event_object_type): Don't define.
3676 * python/py-signalevent.c (signal_event_object_type): Don't
3677 declare or define.
3678 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3679 (clear_objfiles_event_object_type): Don't declare or define.
3680 * python/py-infevents.c (inferior_call_pre_event_object_type)
3681 (inferior_call_post_event_object_type)
3682 (register_changed_event_object_type)
3683 (memory_changed_event_object_type): Don't declare or define.
3684 * python/py-inferior.c (new_thread_event_object_type)
3685 (new_inferior_event_object_type)
3686 (inferior_deleted_event_object_type): Don't declare or define.
3687 * python/py-exitedevent.c (exited_event_object_type): Don't
3688 declare or define.
3689 * python/py-evts.c (gdbpy_initialize_py_events): Use
3690 py-all-events.def.
3691 * python/py-events.h (thread_event_object_type): Don't declare.
3692 (events_object): Use py-all-events.def.
3693 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3694 py-event-types.def.
3695 * python/py-event-types.def: New file.
3696 * python/py-continueevent.c (create_continue_event_object): Don't
3697 declare or define.
3698 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3699 declare or define.
3700 * python/py-all-events.def: New file.
3701
3702 2017-09-11 Tom Tromey <tom@tromey.com>
3703
3704 * python/py-threadevent.c (create_thread_event_object): Return
3705 gdbpy_ref.
3706 * python/py-stopevent.h (create_stop_event_object)
3707 (create_breakpoint_event_object, create_signal_event_object):
3708 Update.
3709 * python/py-stopevent.c (create_stop_event_object): Return
3710 gdbpy_ref.
3711 (emit_stop_event): Update.
3712 * python/py-signalevent.c (create_signal_event_object): Return
3713 gdbpy_ref.
3714 * python/py-infevents.c (create_inferior_call_event_object):
3715 Update.
3716 * python/py-event.h (create_event_object)
3717 (create_thread_event_object): Update.
3718 * python/py-event.c (create_event_object): Return gdbpy_ref.
3719 * python/py-continueevent.c: Return gdbpy_ref.
3720 * python/py-bpevent.c (create_breakpoint_event_object): Return
3721 gdbpy_ref.
3722
3723 2017-09-11 Tom Tromey <tom@tromey.com>
3724
3725 PR python/15622:
3726 * NEWS: Add entry.
3727 * python/python.c (do_start_initialization): Initialize new event
3728 types.
3729 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3730 (gdbpy_initialize_inferior_deleted_event)
3731 (gdbpy_initialize_new_thread_event): Declare.
3732 * python/py-threadevent.c (create_thread_event_object): Add option
3733 "thread" parameter.
3734 * python/py-inferior.c (new_thread_event_object_type)
3735 (new_inferior_event_object_type)
3736 (inferior_deleted_event_object_type): Declare.
3737 (python_new_inferior, python_inferior_deleted): New functions.
3738 (add_thread_object): Emit new_thread event.
3739 (gdbpy_initialize_inferior): Attach new functions to corresponding
3740 observers.
3741 (new_thread, new_inferior, inferior_deleted): Define new event
3742 types.
3743 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3744 registries.
3745 * python/py-events.h (events_object) <new_inferior,
3746 inferior_deleted, new_thread>: New fields.
3747 * python/py-event.h (create_thread_event_breakpoint): Add optional
3748 "thread" parameter.
3749
3750 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3751
3752 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3753 check current_ui instead.
3754 (internal_vproblem): Likewise.
3755
3756 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3757
3758 * thread.c (print_thread_info_1): Remove unnecessary calls to
3759 uiout->is_mi_like_p.
3760
3761 2017-09-09 Tom Tromey <tom@tromey.com>
3762
3763 * namespace.h (add_using_directive): Update.
3764 * namespace.c (add_using_directive): Change type of excludes to
3765 std::vector.
3766 * dwarf2read.c (read_import_statement): Use std::vector.
3767 (read_namespace): Update.
3768 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3769
3770 2017-09-09 Tom Tromey <tom@tromey.com>
3771
3772 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3773
3774 2017-09-09 Tom Tromey <tom@tromey.com>
3775
3776 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3777
3778 2017-09-09 Tom Tromey <tom@tromey.com>
3779
3780 * stack.c (func_command): Use gdb::def_vector.
3781
3782 2017-09-09 Tom Tromey <tom@tromey.com>
3783
3784 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3785 ui_out_emit_list, ui_out_emit_tuple.
3786 (mi_cmd_var_update): Likewise.
3787
3788 2017-09-09 Tom Tromey <tom@tromey.com>
3789
3790 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3791 ui_out_redirect_pop.
3792 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3793 ui_out_redirect_pop.
3794 * utils.c (do_ui_out_redirect_pop)
3795 (make_cleanup_ui_out_redirect_pop): Remove.
3796 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3797 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3798 * ui-out.h (ui_out_redirect_pop): New class.
3799
3800 2017-09-09 Tom Tromey <tom@tromey.com>
3801
3802 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3803 (list_available_thread_groups, mi_cmd_list_thread_groups)
3804 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3805 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3806 Likewise.
3807
3808 2017-09-09 Tom Tromey <tom@tromey.com>
3809
3810 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3811 ui_out_emit_tuple.
3812
3813 2017-09-09 Tom Tromey <tom@tromey.com>
3814
3815 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3816 * stack.c (print_frame): Use ui_out_emit_tuple.
3817 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3818 (info_spu_mailbox_command, info_spu_dma_command)
3819 (info_spu_proxydma_command): Likewise.
3820 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3821 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3822 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3823 ui_out_emit_tuple.
3824 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3825
3826 2017-09-09 Tom Tromey <tom@tromey.com>
3827
3828 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3829 (class ui_out_emit_table): Update comment.
3830 * ui-out.c (do_cleanup_table_end)
3831 (make_cleanup_ui_out_table_begin_end): Remove.
3832 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3833 (info_spu_dma_cmdlist): Likewise.
3834 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3835 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3836 ui_out_emit_table.
3837
3838 2017-09-09 Tom Tromey <tom@tromey.com>
3839
3840 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3841 ui_out_emit_list, gdb::optional.
3842
3843 2017-09-09 John Baldwin <jhb@FreeBSD.org>
3844
3845 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3846 prototype.
3847 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3848 prototype.
3849 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3850 prototype.
3851 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3852 * ada-exp.y: Remove _initialize_ada_exp prototype.
3853 * ada-lang.c: Remove _initialize_ada_language prototype.
3854 * ada-tasks.c: Remove _initialize_tasks prototype.
3855 * addrmap.c: Remove _initialize_addrmap prototype.
3856 * agent.c: Remove _initialize_agent prototype.
3857 * aix-thread.c: Remove _initialize_aix_thread prototype.
3858 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3859 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3860 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3861 prototype.
3862 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3863 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3864 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3865 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3866 prototype.
3867 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
3868 prototype.
3869 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
3870 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
3871 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
3872 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
3873 prototype.
3874 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
3875 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
3876 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
3877 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
3878 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3879 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
3880 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
3881 prototype.
3882 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
3883 prototype.
3884 * annotate.c: Remove _initialize_annotate prototype.
3885 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
3886 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
3887 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
3888 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
3889 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
3890 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
3891 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
3892 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
3893 prototype.
3894 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
3895 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
3896 * auto-load.c: Remove _initialize_auto_load prototype.
3897 * auxv.c: Remove _initialize_auxv prototype.
3898 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
3899 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
3900 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
3901 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
3902 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
3903 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
3904 prototype.
3905 * break-catch-throw.c: Remove _initialize_break_catch_throw
3906 prototype.
3907 * breakpoint.c: Remove _initialize_breakpoint prototype.
3908 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
3909 * btrace.c: Remove _initialize_btrace prototype.
3910 * charset.c: Remove _initialize_charset prototype.
3911 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
3912 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
3913 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
3914 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
3915 * cli/cli-script.c: Remove _initialize_cli_script prototype.
3916 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
3917 * coffread.c: Remove _initialize_coffread prototype.
3918 * compile/compile.c: Remove _initialize_compile prototype.
3919 * complaints.c: Remove _initialize_complaints prototype.
3920 * completer.c: Remove _initialize_completer prototype.
3921 * copying.awk: Remove _initialize_copying prototype.
3922 * copying.c: Regenerate.
3923 * core-regset.c: Remove _initialize_core_regset prototype.
3924 * corefile.c: Remove _initialize_core prototype.
3925 * corelow.c: Remove _initialize_corelow prototype.
3926 * cp-abi.c: Remove _initialize_cp_abi prototype.
3927 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
3928 * cp-support.c: Remove _initialize_cp_support prototype.
3929 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
3930 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
3931 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
3932 * ctf.c: Remove _initialize_ctf prototype.
3933 * d-lang.c: Remove _initialize_d_language prototype.
3934 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
3935 prototype.
3936 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
3937 * dbxread.c: Remove _initialize_dbxread prototype.
3938 * dcache.c: Remove _initialize_dcache prototype.
3939 * demangle.c: Remove _initialize_demangler prototype.
3940 * disasm-selftests.c: Remove _initialize_disasm_selftests
3941 prototype.
3942 * disasm.c: Remove _initialize_disasm prototype.
3943 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
3944 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
3945 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
3946 prototype.
3947 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
3948 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
3949 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
3950 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
3951 * elfread.c: Remove _initialize_elfread prototype.
3952 * exec.c: Remove _initialize_exec prototype.
3953 * extension.c: Remove _initialize_extension prototype.
3954 * f-lang.c: Remove _initialize_f_language prototype.
3955 * f-valprint.c: Remove _initialize_f_valprint prototype.
3956 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
3957 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
3958 * filesystem.c: Remove _initialize_filesystem prototype.
3959 * findcmd.c: Remove _initialize_mem_search prototype.
3960 * fork-child.c: Remove _initialize_fork_child prototype.
3961 * frame-base.c: Remove _initialize_frame_base prototype.
3962 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
3963 * frame.c: Remove _initialize_frame prototype.
3964 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
3965 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
3966 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
3967 * gcore.c: Remove _initialize_gcore prototype.
3968 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
3969 * gdbarch.c: Regenerate.
3970 * gdbarch.sh: Remove _initialize_gdbarch prototype.
3971 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
3972 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
3973 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
3974 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
3975 * go-lang.c: Remove _initialize_go_language prototype.
3976 * go32-nat.c: Remove _initialize_go32_nat prototype.
3977 * guile/guile.c: Remove _initialize_guile prototype.
3978 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
3979 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
3980 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
3981 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
3982 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
3983 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
3984 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
3985 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
3986 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
3987 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
3988 prototype.
3989 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
3990 prototype.
3991 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
3992 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
3993 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
3994 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
3995 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
3996 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
3997 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
3998 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
3999 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4000 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4001 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4002 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4003 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4004 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4005 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4006 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4007 prototype.
4008 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4009 prototype.
4010 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4011 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4012 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4013 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4014 * infcall.c: Remove _initialize_infcall prototype.
4015 * infcmd.c: Remove _initialize_infcmd prototype.
4016 * inferior.c: Remove _initialize_inferiors prototype.
4017 * inflow.c: Remove _initialize_inflow prototype.
4018 * infrun.c: Remove _initialize_infrun prototype.
4019 * interps.c: Remove _initialize_interpreter prototype.
4020 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4021 * jit.c: Remove _initialize_jit prototype.
4022 * language.c: Remove _initialize_language prototype.
4023 * linux-fork.c: Remove _initialize_linux_fork prototype.
4024 * linux-nat.c: Remove _initialize_linux_nat prototype.
4025 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4026 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4027 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4028 * m2-lang.c: Remove _initialize_m2_language prototype.
4029 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4030 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4031 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4032 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4033 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4034 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4035 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4036 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4037 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4038 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4039 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4040 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4041 * machoread.c: Remove _initialize_machoread prototype.
4042 * macrocmd.c: Remove _initialize_macrocmd prototype.
4043 * macroscope.c: Remove _initialize_macroscope prototype.
4044 * maint.c: Remove _initialize_maint_cmds prototype.
4045 * mdebugread.c: Remove _initialize_mdebugread prototype.
4046 * memattr.c: Remove _initialize_mem prototype.
4047 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4048 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4049 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4050 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4051 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4052 * microblaze-linux-tdep.c: Remove
4053 _initialize_microblaze_linux_tdep prototype.
4054 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4055 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4056 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4057 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4058 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4059 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4060 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4061 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4062 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4063 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4064 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4065 prototype.
4066 * mipsread.c: Remove _initialize_mipsread prototype.
4067 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4068 prototype.
4069 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4070 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4071 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4072 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4073 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4074 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4075 prototype.
4076 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4077 * nto-procfs.c: Remove _initialize_procfs prototype.
4078 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4079 * objc-lang.c: Remove _initialize_objc_language prototype.
4080 * objfiles.c: Remove _initialize_objfiles prototype.
4081 * observer.c: Remove observer_test_first_notification_function,
4082 observer_test_second_notification_function,
4083 observer_test_third_notification_function, and
4084 _initialize_observer prototypes.
4085 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4086 * osabi.c: Remove _initialize_gdb_osabi prototype.
4087 * osdata.c: Remove _initialize_osdata prototype.
4088 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4089 * parse.c: Remove _initialize_parse prototype.
4090 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4091 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4092 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4093 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4094 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4095 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4096 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4097 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4098 * printcmd.c: Remove _initialize_printcmd prototype.
4099 * probe.c: Remove _initialize_probe prototype.
4100 * proc-api.c: Remove _initialize_proc_api prototype.
4101 * proc-events.c: Remove _initialize_proc_events prototype.
4102 * proc-service.c: Remove _initialize_proc_service prototype.
4103 * procfs.c: Remove _initialize_procfs prototype.
4104 * psymtab.c: Remove _initialize_psymtab prototype.
4105 * python/python.c: Remove _initialize_python prototype.
4106 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4107 * record-btrace.c: Remove _initialize_record_btrace prototype.
4108 * record-full.c: Remove _initialize_record_full prototype.
4109 * record.c: Remove _initialize_record prototype.
4110 * regcache.c: Remove _initialize_regcache prototype.
4111 * reggroups.c: Remove _initialize_reggroup prototype.
4112 * remote-notif.c: Remove _initialize_notif prototype.
4113 * remote-sim.c: Remove _initialize_remote_sim prototype.
4114 * remote.c: Remove _initialize_remote prototype.
4115 * reverse.c: Remove _initialize_reverse prototype.
4116 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4117 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4118 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4119 prototype.
4120 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4121 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4122 * rust-exp.y: Remove _initialize_rust_exp prototype.
4123 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4124 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4125 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4126 * score-tdep.c: Remove _initialize_score_tdep prototype.
4127 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4128 prototype.
4129 * ser-go32.c: Remove _initialize_ser_dos prototype.
4130 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4131 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4132 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4133 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4134 * serial.c: Remove _initialize_serial prototype.
4135 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4136 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4137 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4138 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4139 * skip.c: Remove _initialize_step_skip prototype.
4140 * sol-thread.c: Remove _initialize_sol_thread prototype.
4141 * solib-aix.c: Remove _initialize_solib_aix prototype.
4142 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4143 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4144 * solib-frv.c: Remove _initialize_frv_solib prototype.
4145 * solib-spu.c: Remove _initialize_spu_solib prototype.
4146 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4147 * solib-target.c: Remove _initialize_solib_target prototype.
4148 * solib.c: Remove _initialize_solib prototype.
4149 * source.c: Remove _initialize_source prototype.
4150 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4151 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4152 prototype.
4153 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4154 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4155 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4156 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4157 prototype.
4158 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4159 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4160 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4161 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4162 prototype.
4163 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4164 prototype.
4165 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4166 prototype.
4167 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4168 prototype.
4169 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4170 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4171 prototype.
4172 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4173 prototype.
4174 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4175 prototype.
4176 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4177 prototype.
4178 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4179 prototype.
4180 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4181 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4182 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4183 * stabsread.c: Remove _initialize_stabsread prototype.
4184 * stack.c: Remove _initialize_stack prototype.
4185 * stap-probe.c: Remove _initialize_stap_probe prototype.
4186 * std-regs.c: Remove _initialize_frame_reg prototype.
4187 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4188 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4189 * symfile.c: Remove _initialize_symfile prototype.
4190 * symmisc.c: Remove _initialize_symmisc prototype.
4191 * symtab.c: Remove _initialize_symtab prototype.
4192 * target-dcache.c: Remove _initialize_target_dcache prototype.
4193 * target-descriptions.c: Remove _initialize_target_descriptions
4194 prototype.
4195 * thread.c: Remove _initialize_thread prototype.
4196 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4197 prototype.
4198 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4199 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4200 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4201 prototype.
4202 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4203 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4204 * tracefile.c: Remove _initialize_tracefile prototype.
4205 * tracepoint.c: Remove _initialize_tracepoint prototype.
4206 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4207 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4208 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4209 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4210 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4211 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4212 * tui/tui.c: Remove _initialize_tui prototype.
4213 * typeprint.c: Remove _initialize_typeprint prototype.
4214 * user-regs.c: Remove _initialize_user_regs prototype.
4215 * utils.c: Remove _initialize_utils prototype.
4216 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4217 * valarith.c: Remove _initialize_valarith prototype.
4218 * valops.c: Remove _initialize_valops prototype.
4219 * valprint.c: Remove _initialize_valprint prototype.
4220 * value.c: Remove _initialize_values prototype.
4221 * varobj.c: Remove _initialize_varobj prototype.
4222 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4223 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4224 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4225 * windows-nat.c: Remove _initialize_windows_nat,
4226 _initialize_check_for_gdb_ini, and _initialize_loadable
4227 prototypes.
4228 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4229 * xcoffread.c: Remove _initialize_xcoffread prototype.
4230 * xml-support.c: Remove _initialize_xml_support prototype.
4231 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4232 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4233 prototype.
4234 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4235 prototype.
4236 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4237
4238 2017-09-08 Keith Seitz <keiths@redhat.com>
4239
4240 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4241 field.
4242
4243 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4244
4245 * f-valprint.c (f_val_print): Remove check for one byte
4246 sized integers. Remove printing of character type.
4247
4248 2017-09-08 Frank Penczek <frank.penczek@intel.com>
4249 Christoph Weinmann <christoph.t.weinmann@intel.com>
4250 Bernhard Heckel <bernhard.heckel@intel.com>
4251
4252 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4253 to maintain proper indentation when printing pointers/refs.
4254
4255 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4256
4257 GDB 8.0.1 released.
4258
4259 2017-09-07 Joel Brobecker <brobecker@adacore.com>
4260
4261 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4262
4263 2017-09-05 Tom Tromey <tom@tromey.com>
4264
4265 * parse.c (funcall_chain): Now a std::vector.
4266 (start_arglist, end_arglist): Simplify.
4267 (free_funcalls): Remove.
4268 (parse_exp_in_context_1): Remove cleanup.
4269
4270 2017-09-05 Tom Tromey <tom@tromey.com>
4271
4272 * go-exp.y (go_parse): Don't create a cleanup.
4273
4274 2017-09-05 Tom Tromey <tom@tromey.com>
4275
4276 * d-exp.y (PrimaryExpression): Use std::string.
4277 (d_parse): Don't create a cleanup.
4278
4279 2017-09-05 Tom Tromey <tom@tromey.com>
4280
4281 * utils.c (do_clear_parser_state): Remove.
4282 (make_cleanup_clear_parser_state): Remove.
4283 * p-exp.y (pascal_parse): Use scoped_restore.
4284 * m2-exp.y (m2_parse): Use scoped_restore.
4285 * f-exp.y (f_parse): Use scoped_restore.
4286 * d-exp.y (d_parse): Use scoped_restore.
4287 * c-exp.y (c_parse): Use scoped_restore.
4288 * ada-exp.y (ada_parse): Use scoped_restore.
4289 * utils.h (make_cleanup_clear_parser_state): Remove.
4290
4291 2017-09-06 Keith Seitz <keiths@redhat.com>
4292
4293 * dwarf2read.c (dw2_linkage_name_attr): New function.
4294 (dw2_linkage_name): New function.
4295 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4296 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4297 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4298
4299 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4300
4301 * config/djgpp/djconfig.sh: Correct shell portability issue.
4302
4303 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4304
4305 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4306
4307 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4308
4309 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4310 * NEWS: Mention new FreeBSD/mips native configuration.
4311 * configure.host: Add aarch64*-*-freebsd*.
4312 * configure.nat: Likewise.
4313 * aarch64-fbsd-nat.c: New file.
4314
4315 2017-09-06 John Baldwin <jhb@FreeBSD.org>
4316
4317 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4318 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4319 * NEWS: Mention new FreeBSD/aarch64 target.
4320 * configure.tgt: Add aarch64*-*-freebsd*.
4321 * aarch64-fbsd-tdep.c: New file.
4322 * aarch64-fbsd-tdep.h: New file.
4323
4324 2017-09-06 Kamil Rytarowski <n54@gmx.com>
4325
4326 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4327
4328 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4329
4330 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4331 of TLS symbols.
4332
4333 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4334
4335 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4336 call.
4337
4338 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4339
4340 * infrun.c (follow_exec): Call add_thread after
4341 target_find_description.
4342
4343 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4344
4345 * infrun.c (handle_inferior_event_1): When exec'ing, read
4346 stop_pc after follow_exec.
4347
4348 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4349
4350 * remote.c (process_g_packet): Update error message.
4351
4352 2017-09-05 Yao Qi <yao.qi@linaro.org>
4353
4354 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4355 targets.
4356
4357 2017-09-05 Pedro Alves <palves@redhat.com>
4358
4359 * eval.c (eval_call, evaluate_funcall): New functions, factored
4360 out from ...
4361 (evaluate_subexp_standard): ... this.
4362
4363 2017-09-05 Yao Qi <yao.qi@linaro.org>
4364
4365 * amd64-tdep.c (amd64_target_description): Create target
4366 descriptions.
4367 (_initialize_amd64_tdep): Don't call functions
4368 initialize_tdesc_amd64_*. Add self tests.
4369 * arch/amd64.c (amd64_create_target_description): Add parameter
4370 is_linux. Call set_tdesc_osabi if is_linux is true.
4371 * arch/amd64.h (amd64_create_target_description): Update the
4372 declaration.
4373 * arch/i386.c (i386_create_target_description): Add parameter
4374 is_linux. Call set_tdesc_osabi if is_linux is true.
4375 * arch/i386.h (i386_create_target_description): Update
4376 declaration.
4377 * configure.tgt: Add i386.o to gdb_target_obs.
4378 * features/Makefile (XMLTOC): Remove i386/*.xml.
4379 * features/i386/amd64-avx-avx512.c: Remove.
4380 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4381 * features/i386/amd64-avx-mpx.c: Remove.
4382 * features/i386/amd64-avx.c: Remove.
4383 * features/i386/amd64-mpx.c: Remove.
4384 * features/i386/amd64.c: Remove.
4385 * features/i386/i386-avx-avx512.c: Remove.
4386 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4387 * features/i386/i386-avx-mpx.c: Remove.
4388 * features/i386/i386-avx.c: Remove.
4389 * features/i386/i386-mmx.c: Remove.
4390 * features/i386/i386-mpx.c: Remove.
4391 * features/i386/i386.c: Remove.
4392 * i386-tdep.c: Don't include features/i386/i386*.c., include
4393 target-descriptions.h and arch/i386.h.
4394 (i386_target_description): Create target descriptions.
4395 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4396 functions. Do self tests.
4397
4398 2017-09-05 Yao Qi <yao.qi@linaro.org>
4399
4400 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4401 * features/i386/amd64-avx-avx512-linux.c: Removed.
4402 * features/i386/amd64-avx-linux.c: Removed.
4403 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4404 * features/i386/amd64-avx-mpx-linux.c: Removed.
4405 * features/i386/amd64-linux.c: Removed.
4406 * features/i386/amd64-mpx-linux.c: Removed.
4407 * features/i386/x32-avx-avx512-linux.c: Removed.
4408 * features/i386/x32-avx-linux.c: Removed.
4409 * features/i386/x32-linux.c: Removed.
4410
4411 2017-09-05 Yao Qi <yao.qi@linaro.org>
4412
4413 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4414 features/i386/*.c.
4415 (amd64_linux_read_description): Call
4416 amd64_create_target_description.
4417 * arch/amd64.c: New file.
4418 * arch/amd64.h: New file.
4419 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4420 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4421
4422 2017-09-05 Yao Qi <yao.qi@linaro.org>
4423
4424 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4425 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4426 (amd64_linux_read_description): Create target descriptions.
4427 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4428 functions. Add unit tests.
4429 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4430 x32-core.xml.
4431 * features/i386/64bit-avx.c: Generated.
4432 * features/i386/64bit-avx512.c: Generated.
4433 * features/i386/64bit-core.c: Generated.
4434 * features/i386/64bit-linux.c: Generated.
4435 * features/i386/64bit-mpx.c: Generated.
4436 * features/i386/64bit-pkeys.c: Generated.
4437 * features/i386/64bit-segments.c: Generated.
4438 * features/i386/64bit-sse.c: Generated.
4439 * features/i386/x32-core.c: Generated.
4440 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4441 c files for amd64-linux and x32-linux.
4442
4443 2017-09-05 Yao Qi <yao.qi@linaro.org>
4444
4445 * amd64-linux-tdep.c (amd64_linux_read_description): New
4446 function.
4447 (amd64_linux_core_read_description): Call
4448 amd64_linux_read_description.
4449 (amd64_linux_init_abi): Likewise.
4450 (amd64_x32_linux_init_abi): Likewise.
4451 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4452 * x86-linux-nat.c (x86_linux_read_description): Call
4453 amd64_linux_read_description.
4454
4455 2017-09-05 Yao Qi <yao.qi@linaro.org>
4456
4457 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4458 comments.
4459
4460 2017-09-05 Yao Qi <yao.qi@linaro.org>
4461
4462 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4463 * features/i386/i386-avx-avx512-linux.c: Remove.
4464 * features/i386/i386-avx-linux.c: Remove.
4465 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4466 * features/i386/i386-avx-mpx-linux.c: Remove.
4467 * features/i386/i386-linux.c: Remove.
4468 * features/i386/i386-mmx-linux.c: Remove.
4469 * features/i386/i386-mpx-linux.c: Remove.
4470
4471 2017-09-05 Yao Qi <yao.qi@linaro.org>
4472
4473 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4474 (SFILES): Add arch/i386.c.
4475 (HFILES_NO_SRCDIR): Add arch/i386.h.
4476 * arch/i386.c: New file.
4477 * arch/i386.h: New file.
4478 * arch/tdesc.h (allocate_target_description): Declare.
4479 (set_tdesc_architecture): Declare.
4480 (set_tdesc_osabi): Declare.
4481 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4482 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4483 include arch/i386.h.
4484 (i386_linux_read_description): Remove code and call
4485 i386_create_target_description.
4486 (set_tdesc_architecture): New function.
4487 (set_tdesc_osabi): New function.
4488 * target-descriptions.h (allocate_target_description): Remove.
4489
4490 2017-09-05 Yao Qi <yao.qi@linaro.org>
4491
4492 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4493 * target-descriptions.c (tdesc_create_feature): Likewise, and
4494 adjust code.
4495 * features/i386/32bit-avx.c: Re-generated.
4496 * features/i386/32bit-avx512.c: Re-generated.
4497 * features/i386/32bit-core.c: Re-generated.
4498 * features/i386/32bit-linux.c: Re-generated.
4499 * features/i386/32bit-mpx.c: Re-generated.
4500 * features/i386/32bit-pkeys.c: Re-generated.
4501 * features/i386/32bit-sse.c: Re-generated.
4502
4503 2017-09-05 Yao Qi <yao.qi@linaro.org>
4504
4505 * regformats/regdef.h (struct reg): Override operator == and !=.
4506
4507 2017-09-05 Yao Qi <yao.qi@linaro.org>
4508
4509 * arch/tdesc.h: New file.
4510 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4511 * target-descriptions.c: Update comments.
4512 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4513 declarations.
4514 * features/i386/32bit-avx.c: Re-generated.
4515 * features/i386/32bit-avx512.c: Re-generated.
4516 * features/i386/32bit-core.c: Re-generated.
4517 * features/i386/32bit-linux.c: Re-generated.
4518 * features/i386/32bit-mpx.c: Re-generated.
4519 * features/i386/32bit-pkeys.c: Re-generated.
4520 * features/i386/32bit-sse.c: Re-generated.
4521
4522 2017-09-05 Yao Qi <yao.qi@linaro.org>
4523
4524 * regformats/regdat.sh: Update generated code.
4525
4526 2017-09-05 Yao Qi <yao.qi@linaro.org>
4527
4528 * regformats/regdat.sh: Adjust code order.
4529
4530 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4531
4532 * expprint.c (dump_subexp_body_standard): Use constant format
4533 string in fprintf_filtered call.
4534
4535 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4536
4537 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4538 NetBSD/i386.
4539 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4540
4541 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4542
4543 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4544
4545 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4546
4547 * bsd-kvm.o: Define _KMEMUSER.
4548 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4549 * configure: Regenerate.
4550
4551 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4552
4553 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4554 * i386-fbsd-nat.c: Likewise.
4555
4556 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4557
4558 * unittests/array-view-selftests.c: Add include of <array>.
4559
4560 2017-09-04 John Baldwin <jhb@FreeBSD.org>
4561
4562 * spu-tdep.c (flush_ea_cache): Add missing argument to
4563 call_function_by_hand.
4564
4565 2017-09-04 Pedro Alves <palves@redhat.com>
4566
4567 * NEWS (Safer support for debugging with no debug info): New.
4568
4569 2017-09-04 Pedro Alves <palves@redhat.com>
4570
4571 * c-exp.y (function_method, function_method_void): Add current
4572 instance flags to TYPE_INSTANCE.
4573 * dwarf2read.c (check_modifier): New.
4574 (compute_delayed_physnames): Assert that only C++ adds delayed
4575 physnames. Mark fn_fields as const/volatile depending on
4576 physname.
4577 * eval.c (make_params): New type_instance_flags parameter. Use
4578 it as the new type's instance flags.
4579 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4580 flags element and pass it to make_params.
4581 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4582 instance flags element.
4583 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4584 * gdbtypes.h: Include "enum-flags.h".
4585 (type_instance_flags): New enum-flags type.
4586 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4587 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4588 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4589 (follow_type_instance_flags): New function.
4590 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4591 * parser-defs.h (follow_type_instance_flags): Declare.
4592 * valops.c (value_struct_elt_for_reference): const/volatile must
4593 match too.
4594
4595 2017-09-04 Pedro Alves <palves@redhat.com>
4596
4597 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4598 function/method scopes; lookup the nested name as a function local
4599 static variable.
4600
4601 2017-09-04 Pedro Alves <palves@redhat.com>
4602
4603 (%type <voidval>): Add function_method.
4604 * c-exp.y (exp): New production for calls with no arguments.
4605 (function_method, function_method_void_or_typelist): New
4606 productions.
4607 (exp): New production for "method()::static_var".
4608 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4609 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4610 Handle OP_FUNC_STATIC_VAR.
4611 * parse.c (operator_length_standard):
4612 Handle OP_FUNC_STATIC_VAR.
4613
4614 2017-09-04 Pedro Alves <palves@redhat.com>
4615
4616 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4617 handling.
4618 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4619 Ditto.
4620 * parse.c (operator_length_standard, operator_check_standard):
4621 Ditto.
4622 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4623
4624 2017-09-04 Pedro Alves <palves@redhat.com>
4625
4626 * ax-gdb.c: Include "typeprint.h".
4627 (gen_expr_for_cast): New function.
4628 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4629 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4630 type is unknown.
4631 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4632 nodebug_data_symbol.
4633 * eval.c: Include "typeprint.h".
4634 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4635 Error out if symbol has unknown type.
4636 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4637 evaluate_subexp_for_cast.
4638 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4639 OP_VAR_MSYM_VALUE.
4640 (evaluate_subexp_for_cast): New function.
4641 * gdbtypes.c (init_nodebug_var_type): New function.
4642 (objfile_type): Use it to initialize types of variables with no
4643 debug info.
4644 * typeprint.c (error_unknown_type): New.
4645 * typeprint.h (error_unknown_type): New declaration.
4646 * compile/compile-c-types.c (convert_type_basic): Handle
4647 TYPE_CODE_ERROR; warn and fallback to int for variables with
4648 unknown type.
4649
4650 2017-09-04 Pedro Alves <palves@redhat.com>
4651
4652 * eval.c (evaluate_var_value): New function, factored out from ...
4653 (evaluate_subexp_standard): ... here.
4654
4655 2017-09-04 Pedro Alves <palves@redhat.com>
4656
4657 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4658 Remove useless assignments to 'op'.
4659
4660 2017-09-04 Pedro Alves <palves@redhat.com>
4661
4662 * eval.c (eval_skip_value): New function.
4663 (evaluate_subexp_standard): Use it.
4664
4665 2017-09-04 Pedro Alves <palves@redhat.com>
4666
4667 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4668 function name from symbol/minsym and pass it to
4669 error_call_unknown_return_type.
4670
4671 2017-09-04 Pedro Alves <palves@redhat.com>
4672
4673 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4674 * ax-gdb.c (gen_msym_var_ref): New function.
4675 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4676 * eval.c (evaluate_var_msym_value): New function.
4677 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4678 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4679 to call_function_by_hand.
4680 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4681 Handle OP_VAR_MSYM_VALUE.
4682 (union exp_element) <msymbol>: New field.
4683 * minsyms.h (struct type): Forward declare.
4684 (find_minsym_type_and_address): Declare.
4685 * parse.c (write_exp_elt_msym): New function.
4686 (write_exp_msymbol): Delete, refactored as ...
4687 (find_minsym_type_and_address): ... this new function.
4688 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4689 (operator_length_standard, operator_check_standard): Handle
4690 OP_VAR_MSYM_VALUE.
4691 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4692
4693 2017-09-04 Pedro Alves <palves@redhat.com>
4694
4695 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4696 TYPE_GNU_IFUNC specially here. Throw error if return type is
4697 unknown.
4698 * ada-typeprint.c (print_func_type): Handle functions with unknown
4699 return type.
4700 * c-typeprint.c (c_type_print_base): Handle functions and methods
4701 with unknown return type.
4702 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4703 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4704 * compile/compile-c-types.c: Include "objfiles.h".
4705 (convert_func): For functions with unknown return type, warn and
4706 default to int.
4707 * compile/compile-object-run.c (compile_object_run): Adjust call
4708 to call_function_by_hand_dummy.
4709 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4710 call_function_by_hand.
4711 * eval.c (evaluate_subexp_standard): Adjust calls to
4712 call_function_by_hand. Handle functions and methods with unknown
4713 return type. Pass expect_type to call_function_by_hand.
4714 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4715 return type.
4716 * gcore.c (call_target_sbrk): Adjust call to
4717 call_function_by_hand.
4718 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4719 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4720 an integer address type instead of nodebug.
4721 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4722 call_function_by_hand.
4723 * infcall.c (error_call_unknown_return_type): New function.
4724 (call_function_by_hand): New "default_return_type" parameter.
4725 Pass it down.
4726 (call_function_by_hand_dummy): New "default_return_type"
4727 parameter. Use it instead of defaulting to int. If there's no
4728 default and the return type is unknown, throw an error. If
4729 there's a default return type, and the called function has no
4730 debug info, then assume the function is prototyped.
4731 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4732 New "default_return_type" parameter.
4733 (error_call_unknown_return_type): New declaration.
4734 * linux-fork.c (call_lseek): Cast return type of lseek.
4735 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4736 call_function_by_hand.
4737 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4738 calls to call_function_by_hand.
4739 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4740 return type.
4741 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4742 (value_nsstring, print_object_command): Adjust calls to
4743 call_function_by_hand.
4744 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4745 functions with unknown return type.
4746 (pascal_type_print_func_varspec_suffix): New function.
4747 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4748 TYPE_CODE_METHOD>: Use it.
4749 * python/py-value.c (valpy_call): Adjust call to
4750 call_function_by_hand.
4751 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4752 call_function_by_hand.
4753 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4754 call_function_by_hand.
4755 * valops.c (value_allocate_space_in_inferior): Adjust call to
4756 call_function_by_hand.
4757 * typeprint.c (type_print_unknown_return_type): New function.
4758 * typeprint.h (type_print_unknown_return_type): New declaration.
4759
4760 2017-09-04 Pedro Alves <palves@redhat.com>
4761
4762 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4763 types with more than one parameter as prototyped.
4764
4765 2017-09-04 Pedro Alves <palves@redhat.com>
4766
4767 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4768 (disassemble_command): Use gdb_disassembly_flags instead of bare
4769 int.
4770 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4771 (dump_insns, do_mixed_source_and_assembly_deprecated)
4772 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4773 Use gdb_disassembly_flags instead of bare int.
4774 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4775 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4776 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4777 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4778 (enum gdb_disassembly_flag): ... values of this new enumeration.
4779 (gdb_disassembly_flags): Define.
4780 (gdb_disassembly)
4781 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4782 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4783 gdb_disassembly_flags instead of bare int.
4784 * record-btrace.c (btrace_insn_history)
4785 (record_btrace_insn_history, record_btrace_insn_history_range)
4786 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4787 instead of bare int.
4788 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4789 Use gdb_disassembly_flags instead of bare int.
4790 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4791 Define.
4792 * target-delegates.c: Regenerate.
4793 * target.c (target_insn_history, target_insn_history_from)
4794 (target_insn_history_range): Use gdb_disassembly_flags instead of
4795 bare int.
4796 * target.h: Include "disasm.h".
4797 (struct target_ops) <to_insn_history, to_insn_history_from,
4798 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4799 int.
4800 (target_insn_history, target_insn_history_from)
4801 (target_insn_history_range): Use gdb_disassembly_flags instead of
4802 bare int.
4803
4804 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4805
4806 * cli/cli-script.c (build_command_line): For if/while commands,
4807 check whether args is empty.
4808
4809 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4810
4811 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4812 (enum command_control_type): Likewise.
4813 (struct command_line): Likewise.
4814 (free_command_lines): Likewise.
4815 (struct command_lines_deleter): Likewise.
4816 (command_line_up): Likewise.
4817 (read_command_lines): Likewise.
4818 (read_command_lines_1): Likewise.
4819 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4820 (enum command_control_type): Likewise.
4821 (struct command_line): Likewise.
4822 (free_command_lines): Likewise.
4823 (struct command_lines_deleter): Likewise.
4824 (command_line_up): Likewise.
4825 (read_command_lines): Likewise.
4826 (read_command_lines_1): Likewise.
4827 * breakpoint.h: Include cli/cli-script.h.
4828 * extension-priv.h: Likewise.
4829 * gdbcmd.h: Likewise.
4830
4831 2017-09-04 Pedro Alves <palves@redhat.com>
4832
4833 * ada-lang.c (is_known_support_routine): Move sal declaration to
4834 where it is initialized.
4835 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4836 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4837 (clear_command, update_static_tracepoint): Remove init_sal
4838 references. Move declarations closer to initializations.
4839 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4840 initializations.
4841 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4842 references. Move sal declarations closer to initializations.
4843 * frame.c (find_frame_sal): Return a symtab_and_line via function
4844 return instead of output parameter. Remove init_sal references.
4845 * frame.h (find_frame_sal): Return a symtab_and_line via function
4846 return instead of output parameter.
4847 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4848 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4849 instead of memset.
4850 (gdbscm_find_pc_line): Remove init_sal reference.
4851 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4852 references. Move declarations closer to initializations.
4853 * infcmd.c (set_step_frame): Update. Move declarations closer to
4854 initializations.
4855 (finish_backward): Remove init_sal references. Move declarations
4856 closer to initializations.
4857 * infrun.c (process_event_stop_test, handle_step_into_function)
4858 (insert_hp_step_resume_breakpoint_at_frame)
4859 (insert_step_resume_breakpoint_at_caller): Likewise.
4860 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4861 (symbol_to_sal): Likewise.
4862 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4863 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4864 to its initialization.
4865 * reverse.c (save_bookmark_command): Use new/delete. Remove
4866 init_sal references. Move declarations closer to initializations.
4867 * source.c (get_current_source_symtab_and_line): Remove brace
4868 initialization.
4869 (set_current_source_symtab_and_line): Now takes the sal by const
4870 reference. Remove brace initialization.
4871 (line_info): Remove init_sal reference.
4872 * source.h (set_current_source_symtab_and_line): Now takes a
4873 symtab_and_line via const reference.
4874 * stack.c (set_current_sal_from_frame): Adjust.
4875 (print_frame_info): Adjust.
4876 (get_last_displayed_sal): Return the sal via function return
4877 instead of via output parameter. Simplify.
4878 (frame_info): Adjust.
4879 * stack.h (get_last_displayed_sal): Return the sal via function
4880 return instead of via output parameter.
4881 * symtab.c (init_sal): Delete.
4882 (find_pc_sect_line): Remove init_sal references. Move
4883 declarations closer to initializations.
4884 (find_function_start_sal): Remove init_sal references. Move
4885 declarations closer to initializations.
4886 * symtab.h (struct symtab_and_line): In-class initialize all
4887 fields.
4888 * tracepoint.c (set_traceframe_context)
4889 (print_one_static_tracepoint_marker): Remove init_sal references.
4890 Move declarations closer to initializations.
4891 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
4892 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
4893 declarations closer to initializations.
4894 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
4895 init_sal references. Adjust.
4896
4897 2017-09-04 Pedro Alves <palves@redhat.com>
4898
4899 * ax-gdb.c (agent_command_1): Use range-for.
4900 * break-catch-throw.c (re_set_exception_catchpoint): Update.
4901 * breakpoint.c: Include "common/array-view.h".
4902 (init_breakpoint_sal, create_breakpoint_sal): Change sals
4903 parameter from struct symtabs_and_lines to
4904 array_view<symtab_and_line>. Adjust. Use range-for. Update.
4905 (breakpoint_sals_to_pc): Change sals parameter from struct
4906 symtabs_and_lines to std::vector reference.
4907 (check_fast_tracepoint_sals): Change sals parameter from struct
4908 symtabs_and_lines to std::array_view. Use range-for.
4909 (decode_static_tracepoint_spec): Return a std::vector instead of
4910 symtabs_and_lines. Update.
4911 (create_breakpoint): Update.
4912 (break_range_command, until_break_command, clear_command): Update.
4913 (base_breakpoint_decode_location, bkpt_decode_location)
4914 (bkpt_probe_create_sals_from_location)
4915 (bkpt_probe_decode_location, tracepoint_decode_location)
4916 (tracepoint_probe_decode_location)
4917 (strace_marker_create_sals_from_location): Return a std::vector
4918 instead of symtabs_and_lines.
4919 (strace_marker_create_breakpoints_sal): Update.
4920 (strace_marker_decode_location): Return a std::vector instead of
4921 symtabs_and_lines. Update.
4922 (update_breakpoint_locations): Change struct symtabs_and_lines
4923 parameters to gdb::array_view. Adjust.
4924 (location_to_sals): Return a std::vector instead of
4925 symtabs_and_lines. Update.
4926 (breakpoint_re_set_default): Use std::vector instead of struct
4927 symtabs_and_lines.
4928 (decode_location_default): Return a std::vector instead of
4929 symtabs_and_lines. Update.
4930 * breakpoint.h: Include "common/array-view.h".
4931 (struct breakpoint_ops) <decode_location>: Now returns a
4932 std::vector instead of returning a symtabs_and_lines via output
4933 parameter.
4934 (update_breakpoint_locations): Change sals parameters to use
4935 gdb::array_view.
4936 * cli/cli-cmds.c (edit_command, list_command): Update to use
4937 std::vector and gdb::array_view.
4938 (ambiguous_line_spec): Adjust to use gdb::array_view and
4939 range-for.
4940 (compare_symtabs): Rename to ...
4941 (cmp_symtabs): ... this. Change parameters to symtab_and_line
4942 const reference and adjust.
4943 (filter_sals): Rewrite using std::vector and standard algorithms.
4944 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
4945 (jump_command): Update to use std::vector.
4946 * linespec.c (struct linespec_state) <canonical_names>: Update
4947 comment.
4948 (add_sal_to_sals_basic): Delete.
4949 (add_sal_to_sals, filter_results, convert_results_to_lsals)
4950 (decode_line_2, create_sals_line_offset)
4951 (convert_address_location_to_sals, convert_linespec_to_sals)
4952 (convert_explicit_location_to_sals, parse_linespec)
4953 (event_location_to_sals, decode_line_full, decode_line_1)
4954 (decode_line_with_current_source)
4955 (decode_line_with_last_displayed, decode_objc)
4956 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
4957 (linespec_result::~linespec_result): Adjust to use std::vector
4958 instead of symtabs_and_lines.
4959 * linespec.h (linespec_sals::sals): Now a std::vector.
4960 (struct linespec_result): Use std::vector, bool, and in-class
4961 initialization.
4962 (decode_line_1, decode_line_with_current_source)
4963 (decode_line_with_last_displayed): Return std::vector.
4964 * macrocmd.c (info_macros_command): Use std::vector.
4965 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
4966 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
4967 std::vector.
4968 * probe.h (parse_probes): Return a std::vector.
4969 * python/python.c (gdbpy_decode_line): Use std::vector and
4970 gdb::array_view.
4971 * source.c (select_source_symtab, line_info): Use std::vector.
4972 * stack.c (func_command): Use std::vector.
4973 * symtab.h (struct symtabs_and_lines): Delete.
4974 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
4975
4976 2017-09-04 Pedro Alves <palves@redhat.com>
4977
4978 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4979 unittests/array-view-selftests.c.
4980 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
4981 * common/array-view.h: New file.
4982 * unittests/array-view-selftests.c: New file.
4983
4984 2017-09-04 Pedro Alves <palves@redhat.com>
4985
4986 * cli/cli-cmds.c (edit_command): Pass message to
4987 ambiguous_line_spec.
4988 (list_command): Pass message to ambiguous_line_spec. Say
4989 "first"/"last" instead of "start" and "end" to be consistent with
4990 the manual.
4991 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
4992 them to print formatted message.
4993
4994 2017-09-04 Pedro Alves <palves@redhat.com>
4995
4996 * btrace.c (ftrace_add_pt): Pass btrace_insn to
4997 ftrace_update_insns by reference instead of pointer.
4998
4999 2017-09-04 Yao Qi <yao.qi@linaro.org>
5000
5001 * i386-go32-tdep.c: Include x86-xstate.h.
5002 (i386_go32_init_abi): Call i386_target_description.
5003 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5004 if xcr0 is X86_XSTATE_X87_MASK.
5005 * i386-tdep.h (tdesc_i386): Remove the declaration.
5006 (tdesc_i386_mmx): Likewise.
5007
5008 2017-09-04 Yao Qi <yao.qi@linaro.org>
5009
5010 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5011 X86_XSTATE_SSE_MASK instead of 0.
5012
5013 2017-09-04 Yao Qi <yao.qi@linaro.org>
5014
5015 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5016 i386_target_description.
5017 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5018 i386_target_description.
5019 * i386-tdep.c (i386_gdbarch_init): Likewise.
5020
5021 2017-09-04 Yao Qi <yao.qi@linaro.org>
5022
5023 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5024 (x86_darwin_init_abi_64): Call amd64_target_description.
5025 * amd64-dicos-tdep.c: Likewise.
5026 * amd64-fbsd-nat.c: Likewise.
5027 * amd64-fbsd-tdep.c: Likewise.
5028 * amd64-nbsd-tdep.c: Likewise.
5029 * amd64-obsd-tdep.c: Likewise.
5030 * amd64-sol2-tdep.c: Likewise.
5031 * amd64-windows-tdep.c: Likewise.
5032 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5033
5034 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5035
5036 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5037 (btrace_function) <insn>: Change type to use std::vector.
5038 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5039 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5040 ftrace_update_insns, ftrace_compute_global_level_offset,
5041 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5042 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5043 change to std::vector.
5044 (ftrace_update_insns): Adjust to change to std::vector, change
5045 type of INSN parameter.
5046 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5047 * record-btrace.c (btrace_call_history_insn_range,
5048 btrace_compute_src_line_range,
5049 record_btrace_frame_prev_register): Adjust to change to
5050 std::vector.
5051 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5052 to change to std::vector.
5053
5054 2017-09-03 Tom Tromey <tom@tromey.com>
5055
5056 * corefile.c (reopen_exec_file): Use std::string.
5057
5058 2017-09-03 Tom Tromey <tom@tromey.com>
5059
5060 * compile/compile.c (compile_register_name_mangled): Return
5061 std::string.
5062 * compile/compile-loc2c.c (pushf_register_address): Update.
5063 (pushf_register): Update.
5064 * compile/compile-c-types.c (convert_array): Update.
5065 * compile/compile-c-symbols.c (generate_vla_size): Update.
5066 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5067 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5068 (convert_one_symbol): Update.
5069 (generate_c_for_for_one_variable): Update.
5070 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5071 std::string.
5072 (generate_register_struct): Update.
5073 * compile/compile-internal.h (c_get_range_decl_name): Return a
5074 std::string.
5075 (compile_register_name_mangled): Return std::string.
5076
5077 2017-09-03 Tom Tromey <tom@tromey.com>
5078
5079 * utils.c (perror_string): Return a std::string.
5080 (throw_perror_with_name, perror_warning_with_name): Update.
5081
5082 2017-09-03 Tom Tromey <tom@tromey.com>
5083
5084 * demangle.c (demangle_command): Use std::string,
5085 unique_xmalloc_ptr.
5086
5087 2017-09-03 Tom Tromey <tom@tromey.com>
5088
5089 * cli/cli-setshow.c (do_set_command): Use std::string.
5090
5091 2017-09-03 Tom Tromey <tom@tromey.com>
5092
5093 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5094
5095 2017-09-03 Tom Tromey <tom@tromey.com>
5096
5097 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5098
5099 2017-09-03 Tom Tromey <tom@tromey.com>
5100
5101 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5102 gdb::unique_xmalloc_ptr.
5103
5104 2017-09-03 Tom Tromey <tom@tromey.com>
5105
5106 * thread.c (print_thread_info_1): Use string_printf.
5107 (thread_apply_command, thread_apply_all_command): Use
5108 std::string.
5109
5110 2017-09-03 Tom Tromey <tom@tromey.com>
5111
5112 * valprint.c (val_print_string): Update.
5113 * gdbcore.h (memory_error_message): Return std::string.
5114 * corefile.c (memory_error_message): Return std::string.
5115 (memory_error): Update.
5116 * breakpoint.c (insert_bp_location): Update.
5117
5118 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5119
5120 * target/waitstatus.h (target_waitstatus_to_string): Change
5121 return type to std::string.
5122 * target/waitstatus.c (target_waitstatus_to_string): Return
5123 std::string.
5124 * target.h (target_waitstatus_to_string): Remove declaration.
5125 * infrun.c (resume, clear_proceed_status_thread,
5126 print_target_wait_results, do_target_wait, save_waitstatus,
5127 stop_all_threads): Adjust.
5128 * record-btrace.c (record_btrace_wait): Adjust.
5129 * target-debug.h
5130 (target_debug_print_struct_target_waitstatus_p): Adjust.
5131
5132 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5133
5134 PR gdb/22046
5135 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5136 detection.
5137
5138 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5139
5140 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5141 for setting/unsetting environment variables on the remote target.
5142 (New remote packets): Add entries for QEnvironmentHexEncoded,
5143 QEnvironmentUnset and QEnvironmentReset.
5144 * common/environ.c (gdb_environ::operator=): Extend method to
5145 handle m_user_set_env_list and m_user_unset_env_list.
5146 (gdb_environ::clear): Likewise.
5147 (match_var_in_string): Change type of first parameter from 'char
5148 *' to 'const char *'.
5149 (gdb_environ::set): Extend method to handle
5150 m_user_set_env_list and m_user_unset_env_list.
5151 (gdb_environ::unset): Likewise.
5152 (gdb_environ::clear_user_set_env): New method.
5153 (gdb_environ::user_set_envp): Likewise.
5154 (gdb_environ::user_unset_envp): Likewise.
5155 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5156 m_user_unset_env_list on move constructor/assignment.
5157 (unset): Add new default parameter 'update_unset_list = true'.
5158 (clear_user_set_env): New method.
5159 (user_set_envp): Likewise.
5160 (user_unset_envp): Likewise.
5161 (m_user_set_env_list): New std::set.
5162 (m_user_unset_env_list): Likewise.
5163 * common/rsp-low.c (hex2str): New function.
5164 (bin2hex): New overload for bin2hex function.
5165 * common/rsp-low.c (hex2str): New prototype.
5166 (str2hex): New overload prototype.
5167 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5168 QEnvironmentUnset and QEnvironmentReset.
5169 (remote_protocol_features): Add QEnvironmentHexEncoded,
5170 QEnvironmentUnset and QEnvironmentReset packets.
5171 (send_environment_packet): New function.
5172 (extended_remote_environment_support): Likewise.
5173 (extended_remote_create_inferior): Call
5174 extended_remote_environment_support.
5175 (_initialize_remote): Add QEnvironmentHexEncoded,
5176 QEnvironmentUnset and QEnvironmentReset packet configs.
5177 * unittests/environ-selftests.c (gdb_selftest_env_var):
5178 New variable.
5179 (test_vector_initialization): New function.
5180 (test_init_from_host_environ): Likewise.
5181 (test_reinit_from_host_environ): Likewise.
5182 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5183 Likewise.
5184 (test_unset_set_empty_vector): Likewise.
5185 (test_vector_clear): Likewise.
5186 (test_std_move): Likewise.
5187 (test_move_constructor):
5188 (test_self_move): Likewise.
5189 (test_set_unset_reset): Likewise.
5190 (run_tests): Rewrite in terms of the functions above.
5191
5192 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
5193
5194 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5195 (adi_available): Use a temp variable of type CORE_ADDR as argument
5196 3 when calling target_auxv_search.
5197 (adi_normalize_address): Use masks and xor operators to calculate
5198 normalized address.
5199 (adi_read_versions, adi_write_versions, adi_print_versions)
5200 (do_examine, do_assign): Use paddress.
5201
5202 2017-08-29 John Baldwin <jhb@FreeBSD.org>
5203
5204 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5205 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5206 out of loop and add supply of FIR.
5207 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5208 add collect of FIR.
5209
5210 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5211
5212 PR gdb/21827
5213 * cli/cli-script.c (define_command): Don't convert command name
5214 to lower case.
5215
5216 2017-08-25 Joel Brobecker <brobecker@adacore.com>
5217
5218 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5219 Update all callers accordingly. Remove all code blocks handling
5220 the case where DISPP is not NULL.
5221
5222 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5223
5224 PR symtab/22003
5225 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5226 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5227 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5228
5229 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5230
5231 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5232 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5233 (read_comp_units_from_section): New parameter abbrev_section, use
5234 read_and_check_comp_unit_head, allocate signatured_type if needed.
5235 (create_all_comp_units): Update read_comp_units_from_section caller.
5236
5237 2017-08-23 Pedro Alves <palves@redhat.com>
5238
5239 PR remote/21852
5240 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5241 to null_ptid and switch to thread without reading the registers
5242 after adding the inferior.
5243
5244 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5245
5246 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5247 compile-gcc.
5248 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5249 (compile_to_object): Implement compile_gcc.
5250 (_initialize_compile): Install "set compile-gcc". Initialize
5251 compile_gcc.
5252
5253 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5254
5255 * compile/compile.c (compile_to_object): Conditionally call
5256 set_verbose. Conditionally call compile or compile_v0.
5257
5258 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
5259
5260 * sparc64-tdep.h: (adi_normalize_address): New export.
5261 * sparc-nat.h: (open_adi_tag_fd): New export.
5262 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5263 * sparc64-linux-tdep.c:
5264 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5265 (sparc64_linux_handle_segmentation_fault): New function.
5266 (sparc64_linux_init_abi): Register
5267 sparc64_linux_handle_segmentation_fault
5268 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5269 (sparc64_addr_bits_remove): New function.
5270 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5271 (MAX_PROC_NAME_SIZE): New macro.
5272 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5273 (sparc64adilist): New variable.
5274 (adi_proc_list): New variable.
5275 (find_adi_info): New function.
5276 (add_adi_info): New function.
5277 (get_adi_info_proc): New function.
5278 (get_adi_info): New function.
5279 (info_adi_command): New function.
5280 (read_maps_entry): New function.
5281 (adi_available): New function.
5282 (adi_normalize_address): New function.
5283 (adi_align_address): New function.
5284 (adi_convert_byte_count): New function.
5285 (adi_tag_fd): New function.
5286 (adi_is_addr_mapped): New function.
5287 (adi_read_versions): New function.
5288 (adi_write_versions): New function.
5289 (adi_print_versions): New function.
5290 (do_examine): New function.
5291 (do_assign): New function.
5292 (adi_examine_command): New function.
5293 (adi_assign_command): New function.
5294 (_initialize_sparc64_adi_tdep): New function.
5295
5296 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5297
5298 * breakpoint.c (breakpoints_info): Rename to ...
5299 (info_breakpoints_command): ... this.
5300 (watchpoints_info): Rename to ...
5301 (info_watchpoints_command): ... this.
5302 (tracepoints_info): Rename to ...
5303 (info_tracepoints_command): ... this.
5304 (_initialize_breakpoint): Adjust.
5305 * dcache.c (dcache_info): Rename to ...
5306 (info_display_command): ... this.
5307 (_initialize_dcache): Adjust.
5308 * frame.h (args_info): Rename to ...
5309 (info_args_command): ... this.
5310 (locals_info): Rename to ...
5311 (info_locals_command): ... this.
5312 * infcmd.c (nofp_registers_info): Rename to ...
5313 (info_registers_command): ... this.
5314 (float_info): Rename to ...
5315 (info_float_command): ... this.
5316 (program_info): Rename to ...
5317 (info_program_command): ... this.
5318 (all_registers_info): Rename to ...
5319 (info_all_registers_command): ... this.
5320 (vector_info): Rename to ...
5321 (info_vector_command): ... this.
5322 (float_info): Rename to ...
5323 (info_float_command): ... this.
5324 (_initialize_infcmd): Adjust.
5325 * inferior.h (term_info): Rename to ...
5326 (info_terminal_command): ... this.
5327 * inflow.c (term_info): Rename to ...
5328 (info_terminal_command): ... this.
5329 (_initialize_inflow): Adjust.
5330 * infrun.c (signals_info): Rename to ...
5331 (info_signals_command): ... this.
5332 (_initialize_infrun): Adjust.
5333 * objc-lang.c (classes_info): Rename to ...
5334 (info_classes_command): ... this.
5335 (selectors_info): Rename to ...
5336 (info_selectors_command): ... this.
5337 (_initialize_objc_language): Adjust.
5338 * printcmd.c (sym_info): Rename to ...
5339 (info_symbol_command): ... this.
5340 (address_info): Rename to ...
5341 (info_address_command): ... this.
5342 (display_info): Rename to ...
5343 (info_display_command): ... this.
5344 (_initialize_printcmd): Adjust.
5345 * reverse.c (bookmarks_info): Rename to ...
5346 (info_breakpoints_command): ... this.
5347 (_initialize_reverse): Adjust.
5348 * ser-go32.c (dos_info): Rename to ...
5349 (info_serial_command): ... this.
5350 (_initialize_ser_dos): Adjust.
5351 * skip.c (skip_info): Rename to ...
5352 (info_skip_command): ... this.
5353 (_initialize_step_skip): Adjust.
5354 * source.c (line_info): Rename to ...
5355 (info_line_command): ... this.
5356 (source_info): Rename to ...
5357 (info_source_command)
5358 * stack.c (frame_info): Rename to ...
5359 (info_frame_command): ... this.
5360 (locals_info): Rename to ...
5361 (info_locals_command): ... this.
5362 (args_info): Rename to ...
5363 (info_args_command): ... this.
5364 (_initialize_stack): Adjust.
5365 * symtab.c (sources_info): Rename to ...
5366 (info_sources_command): ... this.
5367 (variables_info): Rename to ...
5368 (info_variables_command): ... this.
5369 (functions_info): Rename to ...
5370 (info_functions_command): ... this.
5371 (types_info): Rename to ...
5372 (info_types_command): ... this.
5373 (_initialize_symtab): Adjust.
5374 * target.c (target_info): Rename to ...
5375 (info_target_command): ... this.
5376 (initialize_targets): Adjust.
5377 * tracepoint.c (tvariables_info): Rename to ...
5378 (info_tvariables_command): ... this.
5379 (scope_info): Rename to ...
5380 (info_scope_command): ... this.
5381 (trace_dump_actions): Adjust.
5382 (_initialize_tracepoint): Adjust.
5383
5384 2017-08-22 Tom Tromey <tom@tromey.com>
5385
5386 * breakpoint.h (install_breakpoint): Update.
5387 * breakpoint.c (add_solib_catchpoint): Update.
5388 (install_breakpoint): Change argument to a std::unique_ptr.
5389 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5390 (create_breakpoint_sal, create_breakpoint): Update.
5391 (watch_command_1, catch_exec_command_1)
5392 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5393 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5394 Return the breakpoint.
5395 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5396 (new_single_step_breakpoint): Update.
5397 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5398 std::unique_ptr.
5399 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5400 std::unique_ptr.
5401 * break-catch-sig.c (create_signal_catchpoint): Use
5402 std::unique_ptr.
5403 * ada-lang.c (create_ada_exception_catchpoint): Use
5404 std::unique_ptr.
5405
5406 2017-08-22 Tom Tromey <tom@tromey.com>
5407
5408 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5409
5410 2017-08-22 Tom Tromey <tom@tromey.com>
5411
5412 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5413 (lookup_partial_symbol): Update.
5414
5415 2017-08-22 Tom Tromey <tom@tromey.com>
5416
5417 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5418 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5419 (find_and_open_source, symtab_to_fullname): Update.
5420 * psymtab.c (psymtab_to_fullname): Update.
5421
5422 2017-08-22 Tom Tromey <tom@tromey.com>
5423
5424 * exec.c (exec_file_attach): Update.
5425 * linux-thread-db.c (try_thread_db_load): Update.
5426 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5427 * utils.c (gdb_realpath): Change return type.
5428 (gdb_realpath_keepfile): Update.
5429 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5430 (_initialize_utils): Register the new self test.
5431 * source.c (openp): Update.
5432 (find_and_open_source): Update.
5433 * nto-tdep.c (nto_find_and_open_solib): Update.
5434 * main.c (set_gdb_data_directory): Update.
5435 (captured_main_1): Update.
5436 * dwarf2read.c (dwarf2_get_dwz_file): Update
5437 (dw2_map_symbol_filenames): Update.
5438 * auto-load.c (auto_load_safe_path_vec_update): Update.
5439 (filename_is_in_auto_load_safe_path_vec): Change type of
5440 "filename_realp".
5441 (auto_load_objfile_script): Update.
5442 (file_is_auto_load_safe): Update. Use std::string.
5443 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5444
5445 2017-08-22 Tom Tromey <tom@tromey.com>
5446
5447 * utils.c (gdb_realpath_keepfile): Return a
5448 gdb::unique_xmalloc_ptr.
5449 * exec.c (exec_file_attach): Update.
5450 * utils.h (gdb_realpath_keepfile): Return a
5451 gdb::unique_xmalloc_ptr.
5452
5453 2017-08-22 Tom Tromey <tom@tromey.com>
5454
5455 * compile/compile.c (compile_file_command): Use
5456 gdb::unique_xmalloc_ptr, std::string.
5457 * utils.c (gdb_abspath): Change return type.
5458 * source.c (openp): Update.
5459 * objfiles.c (allocate_objfile): Update.
5460 * main.c (set_gdb_data_directory): Update.
5461 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5462
5463 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5464
5465 * cli-cmds.c (list_commands): List actual code around more than
5466 one location.
5467
5468 2017-08-21 John Baldwin <jhb@FreeBSD.org>
5469
5470 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5471
5472 2017-08-21 Pedro Alves <palves@redhat.com>
5473
5474 PR gdb/19487
5475 * c-exp.y (variable production): Handle function aliases.
5476 * minsyms.c (msymbol_is_text): New function.
5477 * minsyms.h (msymbol_is_text): Declare.
5478 * symtab.c (find_function_alias_target): New function.
5479 * symtab.h (find_function_alias_target): Declare.
5480
5481 2017-08-21 Pedro Alves <palves@redhat.com>
5482
5483 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5484 typedefs.
5485 * typeprint.c (whatis_exp): If handling "whatis", and expression
5486 is OP_TYPE, strip one typedef level. Otherwise don't strip
5487 typedefs here.
5488 * valops.c (value_cast): Save "to" type before resolving
5489 stubs/typedefs. Use that type as resulting value's type.
5490
5491 2017-08-18 Tom Tromey <tom@tromey.com>
5492 Pedro Alves <palves@redhat.com>
5493
5494 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5495 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5496 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5497 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5498 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5499 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5500 (linux_get_siginfo_data): Add "thread" argument. Use
5501 scoped_restore.
5502 * linux-nat.c (linux_child_follow_fork)
5503 (check_stopped_by_watchpoint): Use scoped_restore.
5504 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5505 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5506 (restore_inferior_ptid, save_inferior_ptid): Remove.
5507 * btrace.c (btrace_fetch): Use scoped_restore.
5508 * bsd-uthread.c (bsd_uthread_fetch_registers)
5509 (bsd_uthread_store_registers): Use scoped_restore.
5510 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5511 scoped_restore.
5512 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5513 (aix_thread_xfer_partial): Use scoped_restore.
5514 * inferior.h (save_inferior_ptid): Remove.
5515
5516 2017-08-18 Yao Qi <yao.qi@linaro.org>
5517
5518 PR tdep/21818
5519 * arm-tdep.c (gdb_print_insn_arm): Mark
5520 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5521
5522 2017-08-18 Yao Qi <yao.qi@linaro.org>
5523
5524 * NEWS: Mention GDBserver's new option "--selftest".
5525 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5526 * selftest.c: Move it to common/selftest.c.
5527 * selftest.h: Move it to common/selftest.h.
5528 * selftest-arch.c (reset): New function.
5529 (tests_with_arch): Call reset.
5530
5531 2017-08-18 Yao Qi <yao.qi@linaro.org>
5532
5533 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5534 instead of exception_fprintf and printf_filtered.
5535
5536 2017-08-18 Yao Qi <yao.qi@linaro.org>
5537
5538 * selftest.c (register_self_test): Rename it to
5539 selftests::register_test.
5540 (run_self_tests): selftest::run_tests.
5541 * selftest.h: Update declarations.
5542 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5543 selftests::register_test_foreach_arch.
5544 * selftest-arch.h: Update declaration.
5545 * aarch64-tdep.c: Update.
5546 * arm-tdep.c: Likewise.
5547 * disasm-selftests.c: Likewise.
5548 * dwarf2loc.c: Likewise.
5549 * dwarf2-frame.c: Likewise.
5550 * findvar.c: Likewise.
5551 * gdbarch-selftests.c: Likewise.
5552 * maint.c (maintenance_selftest): Likewise.
5553 * regcache.c: Likewise.
5554 * rust-exp.y: Likewise.
5555 * selftest-arch.c: Likewise.
5556 * unittests/environ-selftests.c: Likewise.
5557 * unittests/function-view-selftests.c: Likewise.
5558 * unittests/offset-type-selftests.c: Likewise.
5559 * unittests/optional-selftests.c: Likewise.
5560 * unittests/scoped_restore-selftests.c: Likewise.
5561 * utils-selftests.c: Likewise.
5562
5563 2017-08-17 Pedro Alves <palves@redhat.com>
5564
5565 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5566 local.
5567
5568 2017-08-17 Pedro Alves <palves@redhat.com>
5569
5570 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5571 field.
5572 (reset_die_in_process): Delete, replaced by ...
5573 (process_die_scope): ... this new class. Make it responsible for
5574 freeing cu->line_header too.
5575 (process_die): Use process_die_scope.
5576 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5577 cu->line_header_die_owner. Don't release the line header if it's
5578 owned by the CU.
5579 (setup_type_unit_groups): Make the CU/DIE own the line header.
5580 Don't release the line header here.
5581
5582 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5583
5584 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5585
5586 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5587
5588 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5589 Single-Key mode
5590
5591 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5592
5593 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5594 mode command list.
5595
5596 2017-08-15 Stafford Horne <shorne@gmail.com>
5597
5598 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5599
5600 2017-08-15 Stafford Horne <shorne@gmail.com>
5601
5602 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5603
5604 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5605
5606 PR gdb/21954
5607 * infcmd.c (unset_environment_command): Use the 'clear' method on
5608 the environment instead of resetting it.
5609
5610 2017-08-15 John Baldwin <jhb@FreeBSD.org>
5611
5612 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5613 platforms.
5614
5615 2017-08-14 Tom Tromey <tom@tromey.com>
5616
5617 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5618 (print_binary_chars): Likewise.
5619 (BITS_IN_BYTES): Remove.
5620
5621 2017-08-14 Tom Tromey <tom@tromey.com>
5622
5623 PR gdb/21675
5624 * valprint.c (LOW_ZERO): Change value to 034.
5625 (print_octal_chars): Add static_asserts for octal constants.
5626 * printcmd.c (print_scalar_formatted): Add 'd' case.
5627
5628 2017-08-11 Tom Tromey <tom@tromey.com>
5629
5630 * symfile.c (add_symbol_file_command): Use std::vector.
5631
5632 2017-08-14 Tom Tromey <tom@tromey.com>
5633
5634 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5635 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5636 std::move.
5637 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5638
5639 2017-08-11 Pedro Alves <palves@redhat.com>
5640
5641 * infrun.c (process_event_stop_test): Adjust
5642 function_name_is_marked_for_skip call.
5643 * skip.c: Include <list>.
5644 (skiplist_entry): Make it a class with private fields, and
5645 getters/setters.
5646 (skiplist_entry_chain): Delete.
5647 (skiplist_entries): New.
5648 (skiplist_entry_count): Delete.
5649 (highest_skiplist_entry_num): New.
5650 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5651 (add_skiplist_entry): Delete.
5652 (skiplist_entry::skiplist_entry): New.
5653 (skiplist_entry::add_entry): New.
5654 (skip_file_command, skip_function): Adjust.
5655 (compile_skip_regexp): Delete.
5656 (skip_command): Don't compile regexp here. Adjust to use
5657 skiplist_entry::add_entry.
5658 (skip_info): Adjust to use range-for and getters.
5659 (skip_enable_command, skip_disable_command): Adjust to use
5660 range-for and setters.
5661 (skip_delete_command): Adjust to use std::list.
5662 (add_skiplist_entry): Delete.
5663 (skip_file_p): Delete, refactored as ...
5664 (skiplist_entry::do_skip_file_p): ... this new method.
5665 (skip_gfile_p): Delete, refactored as ...
5666 (skiplist_entry::do_gskip_file_p): ... this new method.
5667 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5668 (skiplist_entry::skip_function_p): ... this new method.
5669 (function_name_is_marked_for_skip): Now returns bool, and takes
5670 the function sal by const reference. Adjust to use range-for and
5671 skiplist_entry methods.
5672 (_initialize_step_skip): Remove references to
5673 skiplist_entry_chain, skiplist_entry_count.
5674 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5675 takes the function sal by const reference.
5676
5677 2017-08-11 Yao Qi <yao.qi@linaro.org>
5678
5679 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5680 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5681 (dwarf2_frame_cache):
5682 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5683 RETURN_MASK_ALL and set *this_case to NULL.
5684 * frame-unwind.h: Update comments.
5685
5686 2017-08-11 Yao Qi <yao.qi@linaro.org>
5687
5688 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5689 (dwarf2_frame_state_copy_regs): Remove.
5690 (dwarf2_frame_state_free_regs): Remove.
5691 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5692 (dwarf2_restore_rule): Call method .alloc_regs instead of
5693 dwarf2_frame_state_alloc_regs.
5694 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5695 constructor. Call std::move.
5696 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5697 (dwarf2_frame_cache): Likewise.
5698
5699 [GDB_SELF_TEST]: Include selftest.h and
5700 selftest-arch.h.
5701 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5702 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5703 execute_cfa_program_test.
5704
5705 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5706 copy ctor, assignment operator, move assignment.
5707 <alloc_regs>: New method.
5708 <swap>: New method.
5709 (struct dwarf2_frame_state): Delete dtor.
5710 (dwarf2_frame_state_alloc_regs): Remove declaration.
5711 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5712 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5713
5714 2017-08-11 Yao Qi <yao.qi@linaro.org>
5715
5716 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5717 (dwarf2_frame_state::dwarf2_frame_state): New.
5718 (dwarf2_frame_state::~dwarf2_frame_state): New.
5719 (dwarf2_fetch_cfa_info): Update.
5720 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5721 rather than a pointer. Update code.
5722 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5723 dtor.
5724 <data_align, code_align, retaddr_column>: Change them to const.
5725 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5726 to bool.
5727
5728 2017-08-11 Yao Qi <yao.qi@linaro.org>
5729
5730 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5731 <loc.exp>: New field.
5732 * dwarf2-frame.c (execute_cfa_program): Update.
5733 (dwarf2_frame_prev_register): Update.
5734
5735 2017-08-10 Pedro Alves <palves@redhat.com>
5736
5737 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5738
5739 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5740
5741 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5742 (fbsd_pending_children): Use std::list.
5743 (fbsd_remember_child): Likewise.
5744 (fbsd_is_child_pending): Likewise.
5745 (fbsd_pending_vfork_done): Use std::forward_list.
5746 (fbsd_add_vfork_done): Likewise.
5747 (fbsd_is_vfork_done_pending): Likewise.
5748 (fbsd_next_vfork_done): Likewise.
5749
5750 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5751
5752 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5753 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5754 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5755 for `mapfilename'.
5756 (fbsd_xfer_partial): Use gdb::byte_vector.
5757 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
5758
5759 2017-08-09 John Baldwin <jhb@FreeBSD.org>
5760
5761 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5762 "filestuff.h".
5763 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5764
5765 2017-08-09 Tom Tromey <tom@tromey.com>
5766
5767 * skip.c (skiplist_entry): New constructor.
5768 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5769 (skiplist_entry::file_is_glob): Now bool.
5770 (skiplist_entry::file, skiplist_entry::function): Now
5771 std::string.
5772 (make_skip_entry): Return a unique_ptr. Use new.
5773 (free_skiplist_entry, free_skiplist_entry_cleanup)
5774 (make_free_skiplist_entry_cleanup): Remove.
5775 (skip_command, skip_disable_command, add_skiplist_entry)
5776 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5777 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5778 (function_name_is_marked_for_skip): Update.
5779 (skip_delete_command): Update. Use delete.
5780
5781 2017-08-09 Jiong Wang <jiong.wang@arm.com>
5782
5783 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5784 (aarch64_linux_core_read_description): New function.
5785 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5786
5787 2017-08-09 Pedro Alves <palves@redhat.com>
5788
5789 * cp-name-parser.y (cp_comp_to_string): Return a
5790 gdb::unique_xmalloc_ptr<char>.
5791 * cp-support.c (replace_typedefs_qualified_name)
5792 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5793 (cp_canonicalize_string_full): Use op= instead of explicit
5794 convertion.
5795 (cp_class_name_from_physname, method_name_from_physname)
5796 (cp_func_name, cp_remove_params): Adjust to use
5797 gdb::unique_xmalloc_ptr<char>.
5798 * cp-support.h (cp_comp_to_string): Return a
5799 gdb::unique_xmalloc_ptr<char>.
5800 * python/py-type.c (typy_lookup_type): Adjust to use
5801 gdb::unique_xmalloc_ptr<char>.
5802
5803 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5804
5805 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5806
5807 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5808 Yao Qi <yao.qi@linaro.org>
5809
5810 * cp-support.c (cp_canonicalize_string_full): Use
5811 gdb::unique_xmalloc_ptr<char>.
5812 (cp_canonicalize_string): Likewise.
5813
5814 2017-08-09 Yao Qi <yao.qi@linaro.org>
5815
5816 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5817 * regformats/i386/amd64-avx-avx512.dat: Remove.
5818 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5819 * regformats/i386/amd64-avx-mpx.dat:Remove.
5820 * regformats/i386/amd64-avx.dat: Remove.
5821 * regformats/i386/amd64-mpx.dat: Remove.
5822 * regformats/i386/i386-avx-avx512.dat: Remove.
5823 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5824 * regformats/i386/i386-avx-mpx.dat: Remove.
5825 * regformats/i386/i386-mmx.dat: Remove.
5826 * regformats/i386/i386-mpx.dat: Remove.
5827
5828 2017-08-09 Yao Qi <yao.qi@linaro.org>
5829
5830 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5831 * amd64-tdep.c: Don't include features/i386/x32*.c.
5832 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5833 functions.
5834 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5835 and i386/x32-avx-avx512.
5836 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5837 and i386/x32.xml.
5838 * features/i386/x32-avx-avx512.c: Removed.
5839 * features/i386/x32-avx-avx512.xml: Removed.
5840 * features/i386/x32-avx.c: Removed.
5841 * features/i386/x32-avx.xml: Removed.
5842 * features/i386/x32.c: Removed.
5843 * features/i386/x32.xml: Removed.
5844 * regformats/i386/x32-avx-avx512.dat: Removed.
5845 * regformats/i386/x32-avx.dat: Removed.
5846 * regformats/i386/x32.dat: Removed.
5847
5848 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5849
5850 PR breakpoints/21886
5851 * mem-break.c (default_memory_insert_breakpoint): Use
5852 `->placed_address' rather than `->reqstd_address' for the
5853 breakpoint location.
5854
5855 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5856
5857 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5858 assertions.
5859
5860 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5861
5862 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5863 a union of `tdep_info', `tdesc_data' and `id'.
5864 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5865 rather than `info.tdep_info'.
5866 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
5867 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5868 * i386-tdep.c (i386_gdbarch_init): Likewise.
5869 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
5870 * mips-tdep.c (mips_gdbarch_init): Likewise.
5871 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5872 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5873 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
5874 `info.tdep_info'.
5875 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
5876 `info.tdep_info'.
5877 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5878 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
5879 `info.tdep_info'.
5880 * spu-tdep.c (spu_gdbarch_init): Likewise.
5881 * gdbarch.h: Regenerate.
5882
5883 2017-08-07 Leszek Swirski <leszeks@google.com>
5884
5885 PR symtab/20899
5886 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
5887
5888 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
5889
5890 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
5891 (gdbsim_open): Rename gdb_argv args object to argv.
5892
5893 2017-08-05 Tom Tromey <tom@tromey.com>
5894
5895 * compile/compile-object-load.c (compile_object_load): Use
5896 gdb::unique_xmalloc_ptr.
5897 * cli/cli-dump.c (scan_filename): Rename from
5898 scan_filename_with_cleanup. Change return type.
5899 (scan_expression): Rename from scan_expression_with_cleanup.
5900 Change return type.
5901 (dump_memory_to_file, dump_value_to_file, restore_command):
5902 Use gdb::unique_xmalloc_ptr. Update.
5903 * cli/cli-cmds.c (find_and_open_script): Use
5904 gdb::unique_xmalloc_ptr.
5905 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
5906 * symmisc.c (maintenance_print_symbols)
5907 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
5908 * symfile.c (symfile_bfd_open, generic_load)
5909 (add_symbol_file_command, remove_symbol_file_command): Use
5910 gdb::unique_xmalloc_ptr.
5911 * source.c (openp): Use gdb::unique_xmalloc_ptr.
5912 * psymtab.c (maintenance_print_psymbols): Use
5913 gdb::unique_xmalloc_ptr.
5914 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
5915 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
5916 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
5917 (reload_shared_libraries_1): Likewise.
5918
5919 2017-08-05 Tom Tromey <tom@tromey.com>
5920
5921 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
5922 (rust_op_vector, rust_set_vector): New typedefs.
5923 (current_parser): New global.
5924 (work_obstack): Change to pointer type. Update all users.
5925 (rust_ast, pstate): Remove globals.
5926 (struct rust_parser): New.
5927 (%union) <params, field_inits>: Change type.
5928 (start, tuple_expr, unit_expr, struct_expr_list, literal)
5929 (field_expr, expr_list, maybe_expr_list, type_list): Update.
5930 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
5931 (convert_params_to_types, convert_params_to_expression): Change
5932 type of "params".
5933 (ast_string): Change type of "fields".
5934 (rust_parse): Make a rust_parser. Remove cleanups.
5935 (rust_lex_tests): Make and install an auto_obstack.
5936
5937 2017-08-04 Yao Qi <yao.qi@linaro.org>
5938
5939 * configure.srv (ipa_x32_linux_regobj): New.
5940 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
5941 instead of X86_TDESC_AVX512.
5942 (initialize_low_tracepoint): Call
5943 init_registers_x32_avx_avx512_linux.
5944
5945 2017-08-04 Yao Qi <yao.qi@linaro.org>
5946
5947 * utils.h (gdb_argv): Add namespace std for nullptr_t.
5948
5949 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
5950
5951 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
5952
5953 2017-08-03 Tom Tromey <tom@tromey.com>
5954
5955 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
5956 Remove.
5957 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
5958
5959 2017-08-03 Tom Tromey <tom@tromey.com>
5960
5961 * python/py-param.c (compute_enum_values): Use gdb_argv.
5962
5963 2017-08-03 Tom Tromey <tom@tromey.com>
5964
5965 * utils.h (struct gdb_argv_deleter): New.
5966 (gdb_argv): New class.
5967 * utils.c (gdb_argv::reset): New method.
5968 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
5969 * tracefile.c (tsave_command): Use gdb_argv.
5970 * top.c (new_ui_command): Use gdb_argv.
5971 * symmisc.c (maintenance_print_symbols)
5972 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
5973 * symfile.c (symbol_file_command, generic_load)
5974 (remove_symbol_file_command): Use gdb_argv.
5975 * stack.c (backtrace_command): Use gdb_argv.
5976 * source.c (add_path, show_substitute_path_command)
5977 (unset_substitute_path_command, set_substitute_path_command):
5978 Use gdb_argv.
5979 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
5980 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
5981 * remote.c (extended_remote_run, remote_put_command)
5982 (remote_get_command, remote_delete_command): Use gdb_argv.
5983 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
5984 (gdbsim_open): Use gdb_argv.
5985 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
5986 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
5987 * procfs.c (procfs_info_proc): Use gdb_argv.
5988 * interps.c (interpreter_exec_cmd): Use gdb_argv.
5989 * infrun.c (handle_command): Use gdb_argv.
5990 * inferior.c (add_inferior_command, clone_inferior_command):
5991 Use gdb_argv.
5992 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
5993 * exec.c (exec_file_command): Use gdb_argv.
5994 * cli/cli-cmds.c (alias_command): Use gdb_argv.
5995 * compile/compile.c (build_argc_argv): Use gdb_argv.
5996
5997 2017-08-03 Tom Tromey <tom@tromey.com>
5998
5999 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6000
6001 2017-08-03 Tom Tromey <tom@tromey.com>
6002
6003 * python/python.c (compute_python_string): Return std::string.
6004 (gdbpy_eval_from_control_command): Update.
6005 (do_start_initialization): Use std::string.
6006 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6007 xstrprintf.
6008 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6009 xstrprintf.
6010
6011 2017-08-03 Tom Tromey <tom@tromey.com>
6012
6013 * top.h (do_restore_instream_cleanup): Remove.
6014 * top.c (do_restore_instream_cleanup): Remove.
6015 (read_command_file): Use scoped_restore.
6016 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6017
6018 2017-08-03 Tom Tromey <tom@tromey.com>
6019
6020 * cli/cli-script.c (execute_user_command)
6021 (execute_control_command): Use scoped_restore.
6022
6023 2017-08-03 Tom Tromey <tom@tromey.com>
6024
6025 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6026 (execute_user_command): Remove user_call_depth; use
6027 user_args_stack's size instead.
6028
6029 2017-08-03 Tom Tromey <tom@tromey.com>
6030
6031 * top.h (in_user_command): Remove.
6032 * top.c (in_user_command): Remove.
6033 * cli/cli-script.c (do_restore_user_call_depth)
6034 (execute_user_command): Update.
6035
6036 2017-08-03 Tom Tromey <tom@tromey.com>
6037
6038 * valops.c (search_struct_method): Use gdb::byte_vector.
6039 * valarith.c (value_concat): Use std::vector.
6040 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6041 (simple_search_memory): Likewise.
6042 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6043 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6044 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6045 * elfread.c (elf_rel_plt_read): Use std::string.
6046 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6047 * cli/cli-dump.c (restore_section_callback): Use
6048 gdb::byte_vector.
6049
6050 2017-08-03 Tom Tromey <tom@tromey.com>
6051
6052 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6053
6054 2017-08-03 Tom Tromey <tom@tromey.com>
6055
6056 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6057 (tui_register_format): Use scoped_restore.
6058
6059 2017-08-03 Tom Tromey <tom@tromey.com>
6060
6061 * reverse.c (exec_direction_default): Remove.
6062 (exec_reverse_once): Use scoped_restore.
6063 * remote.c (restore_remote_timeout): Remove.
6064 (remote_flash_erase, remote_flash_write, remote_flash_done)
6065 (readchar, remote_serial_write): Use scoped_restore.
6066 * cli/cli-script.c (struct source_cleanup_lines_args)
6067 (source_cleanup_lines): Remove.
6068 (script_from_file): Use scoped_restore.
6069 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6070 (source_command): Use scoped_restore.
6071
6072 2017-08-03 Tom Tromey <tom@tromey.com>
6073
6074 * utils.h (make_cleanup_free_so): Remove.
6075 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6076 * solist.h (struct so_deleter): New.
6077 (so_list_up): New typedef.
6078 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6079
6080 2017-08-03 Tom Tromey <tom@tromey.com>
6081
6082 * utils.h (make_cleanup_restore_current_language): Remove.
6083 * utils.c (do_restore_current_language)
6084 (make_cleanup_restore_current_language): Remove.
6085 * parse.c (parse_exp_in_context_1)
6086 (parse_expression_with_language): Use
6087 scoped_restore_current_language.
6088 * mi/mi-main.c (mi_cmd_execute): Use
6089 scoped_restore_current_language.
6090 * language.h (scoped_restore_current_language): New class.
6091
6092 2017-08-03 Tom Tromey <tom@tromey.com>
6093
6094 * compile/compile.c (cleanup_unlink_file): Remove.
6095 (compile_to_object): Use gdb::unlinker.
6096 (eval_compile_command): Likewise.
6097
6098 2017-08-03 Tom Tromey <tom@tromey.com>
6099
6100 * utils.h (make_cleanup_fclose): Remove.
6101 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6102
6103 2017-08-03 Tom Tromey <tom@tromey.com>
6104
6105 * top.c (open_terminal_stream): Return gdb_file_up.
6106 (new_ui_command): Update.
6107
6108 2017-08-03 Tom Tromey <tom@tromey.com>
6109
6110 * source.c (print_source_lines_base, forward_search_command)
6111 (reverse_search_command): Use gdb_file_up.
6112
6113 2017-08-03 Tom Tromey <tom@tromey.com>
6114
6115 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6116
6117 2017-08-03 Tom Tromey <tom@tromey.com>
6118
6119 * cli/cli-cmds.c (find_and_open_script): Change return type.
6120 Remove "streamp" and "full_path" parameters.
6121 (source_script_with_search): Update.
6122 * auto-load.c (source_script_file): Update.
6123 * cli/cli-cmds.h (find_and_open_script): Change type.
6124 (open_script): New struct.
6125
6126 2017-08-03 Tom Tromey <tom@tromey.com>
6127
6128 * xml-support.c (xml_fetch_content_from_file): Update.
6129 * ui-file.c (stdio_file::open): Update.
6130 * tracefile-tfile.c (tfile_start): Update.
6131 * remote.c (remote_file_put, remote_file_get): Update.
6132 * nat/linux-procfs.c (linux_proc_get_int)
6133 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6134 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6135 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6136 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6137 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6138 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6139 * linux-nat.c (linux_proc_pending_signals): Update.
6140 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6141 (file_closer): Remove.
6142 * compile/compile.c (compile_to_object): Update.
6143 * common/filestuff.h (struct gdb_file_deleter): New.
6144 (gdb_file_up): New typedef.
6145 (gdb_fopen_cloexec): Change return type.
6146 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6147 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6148 (dump_binary_file, restore_binary_file): Update.
6149 * auto-load.c (auto_load_objfile_script_1): Update.
6150
6151 2017-08-03 Tom Tromey <tom@tromey.com>
6152
6153 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6154 (info_static_tracepoint_markers_command): Likewise.
6155 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6156 * skip.c (skip_info): Use ui_out_emit_table.
6157 * progspace.c (print_program_space): Use ui_out_emit_table.
6158 * osdata.c (info_osdata): Use ui_out_emit_table.
6159 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6160 ui_out_emit_table.
6161 * linux-thread-db.c (info_auto_load_libthread_db): Use
6162 ui_out_emit_table.
6163 * inferior.c (print_inferior): Use ui_out_emit_table.
6164 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6165 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6166 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6167 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6168 * ui-out.h (class ui_out_emit_table): New.
6169
6170 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6171
6172 * mips-tdep.c (mips_fpu_type_str): New function.
6173 (mips_dump_tdep): Call it.
6174
6175 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6176
6177 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6178 `->mips_fpu_type'.
6179
6180 2017-07-31 Xavier Roirand <roirand@adacore.com>
6181
6182 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6183
6184 2017-07-27 Xavier Roirand <roirand@adacore.com>
6185
6186 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6187
6188 2017-07-26 Yao Qi <yao.qi@linaro.org>
6189
6190 * cli/cli-cmds.c (maintenancechecklist): New variable.
6191 * gdbcmd.h (maintenancechecklist): Declare it.
6192 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6193 Call i386_linux_read_description with different masks.
6194 * maint.c (maintenance_check_command): New function.
6195 (_initialize_maint_cmds): Call add_prefix_cmd.
6196 * target-descriptions.c (tdesc_reg): override operator != and ==.
6197 (tdesc_type): Likewise.
6198 (tdesc_feature): Likewise.
6199 (target_desc): Likewise.
6200 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6201 (maintenance_check_xml_descriptions): New function.
6202 (_initialize_target_descriptions) Add command "xml-descriptions".
6203 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6204
6205 2017-07-26 Yao Qi <yao.qi@linaro.org>
6206
6207 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6208 Include features/i386/32bit-*.c.
6209 (i386_linux_read_description): Generate target description if it
6210 doesn't exist.
6211 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6212 functions.
6213 * features/i386/32bit-linux.c: Re-generated.
6214 * features/i386/32bit-sse.c: Likewise.
6215 * target-descriptions.c (print_c_feature::visit): Print code to
6216 set register number if needed.
6217 (print_c_feature) <m_next_regnum>: New field.
6218
6219 2017-07-26 Yao Qi <yao.qi@linaro.org>
6220
6221 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6222 (FEATURE_XMLFILES): New.
6223 (FEATURE_CFILES): New.
6224 New rules.
6225 (clean-cfiles): Remove generated c files.
6226 * features/i386/32bit-avx.c: Generated.
6227 * features/i386/32bit-avx512.c: Generated.
6228 * features/i386/32bit-core.c: Generated.
6229 * features/i386/32bit-linux.c: Generated.
6230 * features/i386/32bit-mpx.c: Generated.
6231 * features/i386/32bit-pkeys.c: Generated.
6232 * features/i386/32bit-sse.c: Generated.
6233 * target-descriptions.c: Include algorithm.
6234 (tdesc_element_visitor): Add method visit_end.
6235 (print_c_tdesc): Implement visit_end.
6236 (print_c_tdesc:: m_filename_after_features): Move it to
6237 protected.
6238 (print_c_feature): New class.
6239 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6240 name starts with "i386/32bit-".
6241
6242 2017-07-26 Yao Qi <yao.qi@linaro.org>
6243
6244 * target-descriptions.c (tdesc_element_visitor): New class.
6245 (tdesc_element): New class.
6246 (tdesc_reg): Inherit from tdesc_element.
6247 (tdesc_reg::accept): New function.
6248 (tdesc_type): Inherit from tdesc_element.
6249 (tdesc_type::accept): New function.
6250 (tdesc_feature): Inherit from tdesc_element.
6251 (tdesc_feature::accept): New function.
6252 (target_desc): Inherit from tdesc_element.
6253 (target_desc::target_desc): New.
6254 (target_desc::~target_desc): New.
6255 (target_desc::accept): New.
6256 (allocate_target_description): Use new.
6257 (free_target_description): Use delete.
6258 (print_c_tdesc): New class.
6259 (maint_print_c_tdesc_cmd): Adjust.
6260
6261 * features/aarch64.c: Re-generated.
6262 * features/arc-arcompact.c: Re-generated.
6263 * features/arc-v2.c: Re-generated.
6264 * features/arm/arm-with-iwmmxt.c: Re-generated.
6265 * features/arm/arm-with-m.c: Re-generated.
6266 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6267 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6268 * features/arm/arm-with-neon.c: Re-generated.
6269 * features/arm/arm-with-vfpv2.c: Re-generated.
6270 * features/arm/arm-with-vfpv3.c: Re-generated.
6271 * features/i386/amd64-avx-avx512.c: Re-generated.
6272 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6273 * features/i386/amd64-avx.c: Re-generated.
6274 * features/i386/amd64-avx-linux.c: Re-generated.
6275 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6276 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6277 * features/i386/amd64-avx-mpx.c: Re-generated.
6278 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6279 * features/i386/amd64.c: Re-generated.
6280 * features/i386/amd64-linux.c: Re-generated.
6281 * features/i386/amd64-mpx.c: Re-generated.
6282 * features/i386/amd64-mpx-linux.c: Re-generated.
6283 * features/i386/i386-avx-avx512.c: Re-generated.
6284 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6285 * features/i386/i386-avx.c: Re-generated.
6286 * features/i386/i386-avx-linux.c: Re-generated.
6287 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6288 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6289 * features/i386/i386-avx-mpx.c: Re-generated.
6290 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6291 * features/i386/i386.c: Re-generated.
6292 * features/i386/i386-linux.c: Re-generated.
6293 * features/i386/i386-mmx.c: Re-generated.
6294 * features/i386/i386-mmx-linux.c: Re-generated.
6295 * features/i386/i386-mpx.c: Re-generated.
6296 * features/i386/i386-mpx-linux.c: Re-generated.
6297 * features/i386/x32-avx-avx512.c: Re-generated.
6298 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6299 * features/i386/x32-avx.c: Re-generated.
6300 * features/i386/x32-avx-linux.c: Re-generated.
6301 * features/i386/x32.c: Re-generated.
6302 * features/i386/x32-linux.c: Re-generated.
6303 * features/microblaze.c: Re-generated.
6304 * features/microblaze-with-stack-protect.c: Re-generated.
6305 * features/mips64-dsp-linux.c: Re-generated.
6306 * features/mips64-linux.c: Re-generated.
6307 * features/mips-dsp-linux.c: Re-generated.
6308 * features/mips-linux.c: Re-generated.
6309 * features/nds32.c: Re-generated.
6310 * features/nios2.c: Re-generated.
6311 * features/nios2-linux.c: Re-generated.
6312 * features/rs6000/powerpc-32.c: Re-generated.
6313 * features/rs6000/powerpc-32l.c: Re-generated.
6314 * features/rs6000/powerpc-403.c: Re-generated.
6315 * features/rs6000/powerpc-403gc.c : Re-generated.
6316 * features/rs6000/powerpc-405.c: Re-generated.
6317 * features/rs6000/powerpc-505.c: Re-generated.
6318 * features/rs6000/powerpc-601.c: Re-generated.
6319 * features/rs6000/powerpc-602.c: Re-generated.
6320 * features/rs6000/powerpc-603.c: Re-generated.
6321 * features/rs6000/powerpc-604.c: Re-generated.
6322 * features/rs6000/powerpc-64.c: Re-generated.
6323 * features/rs6000/powerpc-64l.c: Re-generated.
6324 * features/rs6000/powerpc-7400.c: Re-generated.
6325 * features/rs6000/powerpc-750.c: Re-generated.
6326 * features/rs6000/powerpc-860.c: Re-generated.
6327 * features/rs6000/powerpc-altivec32.c: Re-generated.
6328 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6329 * features/rs6000/powerpc-altivec64.c: Re-generated.
6330 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6331 * features/rs6000/powerpc-cell32l.c: Re-generated.
6332 * features/rs6000/powerpc-cell64l.c: Re-generated.
6333 * features/rs6000/powerpc-e500.c: Re-generated.
6334 * features/rs6000/powerpc-e500l.c: Re-generated.
6335 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6336 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6337 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6338 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6339 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6340 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6341 * features/rs6000/powerpc-vsx32.c: Re-generated.
6342 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6343 * features/rs6000/powerpc-vsx64.c: Re-generated.
6344 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6345 * features/rs6000/rs6000.c: Re-generated.
6346 * features/s390-linux32.c: Re-generated.
6347 * features/s390-linux32v1.c: Re-generated.
6348 * features/s390-linux32v2.c: Re-generated.
6349 * features/s390-linux64.c: Re-generated.
6350 * features/s390-linux64v1.c: Re-generated.
6351 * features/s390-linux64v2.c: Re-generated.
6352 * features/s390-te-linux64.c: Re-generated.
6353 * features/s390-tevx-linux64.c: Re-generated.
6354 * features/s390-vx-linux64.c: Re-generated.
6355 * features/s390x-linux64.c: Re-generated.
6356 * features/s390x-linux64v1.c: Re-generated.
6357 * features/s390x-linux64v2.c: Re-generated.
6358 * features/s390x-te-linux64.c: Re-generated.
6359 * features/s390x-tevx-linux64.c: Re-generated.
6360 * features/s390x-vx-linux64.c: Re-generated.
6361 * features/sparc/sparc32-solaris.c: Re-generated.
6362 * features/sparc/sparc64-solaris.c: Re-generated.
6363 * features/tic6x-c62x.c: Re-generated.
6364 * features/tic6x-c62x-linux.c: Re-generated.
6365 * features/tic6x-c64x.c: Re-generated.
6366 * features/tic6x-c64x-linux.c: Re-generated.
6367 * features/tic6x-c64xp.c: Re-generated.
6368 * features/tic6x-c64xp-linux.c: Re-generated.
6369
6370 2017-07-26 Yao Qi <yao.qi@linaro.org>
6371
6372 * i386-linux-tdep.c (i386_linux_read_description): New function.
6373 (i386_linux_core_read_description): Call
6374 i386_linux_read_description.
6375 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6376 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6377 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6378 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6379 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6380 * x86-linux-nat.c (x86_linux_read_description): Call
6381 i386_linux_read_description.
6382
6383 2017-07-26 Yao Qi <yao.qi@linaro.org>
6384
6385 * NEWS: Mention it.
6386 * features/Makefile (%.c: %.xml): Pass the xml file name to
6387 command "maint print c-tdesc".
6388 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6389 name from 'arg'.
6390
6391 2017-07-26 Yao Qi <yao.qi@linaro.org>
6392
6393 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6394 in-class initialization.
6395 (tdesc_create_feature): Call new instead of XCNEW.
6396 (free_target_description): Ue delete.
6397
6398 2017-07-25 John Baldwin <jhb@FreeBSD.org>
6399
6400 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6401
6402 2017-07-25 Yao Qi <yao.qi@linaro.org>
6403
6404 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6405 constant.
6406 (amd64_x32_init_abi): Likewise.
6407 * amd64-tdep.h (amd64_init_abi): Update declaration.
6408 (amd64_x32_init_abi): Likewise.
6409
6410 2017-07-25 Yao Qi <yao.qi@linaro.org>
6411
6412 PR tdep/21717
6413 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6414 condition for FPSCR.
6415 (arm_linux_store_inferior_registers): Likewise.
6416
6417 2017-07-22 Tom Tromey <tom@tromey.com>
6418
6419 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6420 <syscalls_counts>: Now a std::vector.
6421 (get_catch_syscall_inferior_data): Use "new".
6422 (catch_syscall_inferior_data_cleanup): Use "delete".
6423 (insert_catch_syscall, remove_catch_syscall)
6424 (clear_syscall_counts): Update.
6425
6426 2017-07-22 Tom Tromey <tom@tromey.com>
6427
6428 * break-catch-syscall.c (syscall_catchpoint)
6429 <syscalls_to_be_caught>: Now a std::vector<int>
6430 (~syscall_catchpoint): Remove.
6431 (insert_catch_syscall, remove_catch_syscall)
6432 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6433 (print_mention_catch_syscall, print_recreate_catch_syscall):
6434 Update.
6435 (create_syscall_event_catchpoint): Change type of "filter"
6436 parameter.
6437 (catch_syscall_split_args): Return a std::vector.
6438 (catch_syscall_command_1, catching_syscall_number_1): Update.
6439
6440 2017-07-22 Tom Tromey <tom@tromey.com>
6441
6442 * break-catch-throw.c (struct exception_catchpoint)
6443 <exception_rx>: Now a std::string.
6444 (~exception_catchpoint): Remove.
6445 (print_one_detail_exception_catchpoint): Update.
6446 (handle_gnu_v3_exceptions): Change type of except_rx.
6447 (extract_exception_regexp): Return a std::string.
6448 (catch_exception_command_1): Update.
6449
6450 2017-07-22 Tom Tromey <tom@tromey.com>
6451
6452 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6453 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6454 std::vector.
6455 <catch_all>: Now a bool.
6456 (~signal_catchpoint): Remove.
6457 (signal_catchpoint_insert_location)
6458 (signal_catchpoint_remove_location)
6459 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6460 (signal_catchpoint_print_mention)
6461 (signal_catchpoint_print_recreate)
6462 (signal_catchpoint_explains_signal): Update.
6463 (create_signal_catchpoint): Change type of "filter" and
6464 "catch_all".
6465 (catch_signal_split_args): Return a std::vector. Change type of
6466 "catch_all".
6467 (catch_signal_command): Update.
6468
6469 2017-07-20 Pedro Alves <palves@redhat.com>
6470
6471 * ada-lang.c (ada_language_defn): Make extern.
6472 (_initialize_ada_language): Remove add_language call.
6473 * c-lang.c (c_language_defn, cplus_language_defn)
6474 (asm_language_defn, minimal_language_defn): Make extern.
6475 (_initialize_c_language): Delete.
6476 * completer.c (compare_cstrings): Delete, moved to utils.h.
6477 * d-lang.c (d_language_defn): Make extern.
6478 (_initialize_d_language): Remove add_language calls.
6479 * defs.h (enum language): Add comment.
6480 * f-lang.c (f_language_defn): Make extern.
6481 (_initialize_f_language): Remove add_language call.
6482 * go-lang.c (go_language_defn): Make extern.
6483 (_initialize_go_language): Remove add_language call.
6484 * language.c: Include <algorithm>.
6485 (languages): Redefine as const array.
6486 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6487 (set_language_command): Handle "local". Use for-range loop.
6488 (set_language): Remove loop.
6489 (language_enum): Rewrite.
6490 (language_def, language_str): Remove loops.
6491 (add_language): Delete.
6492 (add_set_language_command): New, based on add_languages.
6493 (skip_language_trampoline): Adjust.
6494 (local_language_defn): Delete.
6495 (language_gdbarch_post_init): Adjust.
6496 (_initialize_language): Remove add_language calls. Call
6497 add_set_language_command.
6498 * language.h (add_language): Delete.
6499 (auto_language_defn)
6500 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6501 (asm_language_defn, c_language_defn, cplus_language_defn)
6502 (d_language_defn, f_language_defn, go_language_defn)
6503 (m2_language_defn, objc_language_defn, opencl_language_defn)
6504 (pascal_language_defn, rust_language_defn): Declare.
6505 * m2-lang.c (m2_language_defn): Make extern.
6506 (_initialize_m2_language): Remove add_language call.
6507 * objc-lang.c (objc_language_defn): Make extern.
6508 (_initialize_objc_language): Remove add_language call.
6509 * opencl-lang.c (opencl_language_defn): Make extern.
6510 (_initialize_opencl_language): Remove add_language call.
6511 * p-lang.c (pascal_language_defn): Make extern.
6512 (_initialize_pascal_language): Delete.
6513 * rust-lang.c (rust_language_defn): Make extern.
6514 (_initialize_rust_language): Delete.
6515 * utils.h (compare_cstrings): New static inline function.
6516
6517 2017-07-20 Pedro Alves <palves@redhat.com>
6518
6519 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6520 (get_var_value): Constify parameters.
6521 (get_int_var_value): Change prototype.
6522 (to_fixed_range_type): Adjust.
6523 * ada-lang.h (get_int_var_value): Change prototype.
6524
6525 2017-07-20 Pedro Alves <palves@redhat.com>
6526
6527 * dwarf2read.c (dw2_lookup_symbol): Use
6528 SYMBOL_MATCHES_SEARCH_NAME.
6529 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6530
6531 2017-07-20 Pedro Alves <palves@redhat.com>
6532
6533 * block.c (block_iter_name_step, block_iter_name_first)
6534 (block_iter_name_next): Delete.
6535 (block_lookup_symbol_primary): Adjust to use
6536 dict_iter_match_first/dict_iter_match_next.
6537 * block.h (block_iter_name_first, block_iter_name_next): Delete
6538 declarations.
6539 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6540 dict_iter_match_first/dict_iter_match_next.
6541
6542 2017-07-20 Pedro Alves <palves@redhat.com>
6543
6544 * cp-support.c (cp_find_first_component_aux): Add missing case for
6545 end of string.
6546
6547 2017-07-18 David Blaikie <dblaikie@gmail.com>
6548
6549 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6550 of dwo_cu's dwo_file.
6551
6552 2017-07-18 Yao Qi <yao.qi@linaro.org>
6553
6554 * remote.c (store_registers_using_G): Remove one line comment.
6555
6556 2017-07-18 Yao Qi <yao.qi@linaro.org>
6557
6558 * regcache.c (regcache_cpy): Simplify it.
6559 (regcache::cpy_no_passthrough): Remove it.
6560 * regcache.h (cpy_no_passthrough): Remove it.
6561 (regcache_dup, regcache_cpy): Update comments.
6562
6563 2017-07-18 Pedro Alves <palves@redhat.com>
6564
6565 * remote-sim.c (sim_command_completer): Adjust to work with a
6566 completion_tracker instead of a VEC.
6567
6568 2017-07-17 Pedro Alves <palves@redhat.com>
6569
6570 * completer.c (complete_source_filenames): New function.
6571 (complete_address_and_linespec_locations): New function.
6572 (location_completer): Use complete_address_and_linespec_locations.
6573 (completion_tracker::build_completion_result): Honor the tracker's
6574 request to suppress append.
6575 * completer.h (completion_tracker::suppress_append_ws)
6576 (completion_tracker::set_suppress_append_ws): New methods.
6577 (completion_tracker::m_suppress_append_ws): New field.
6578 (complete_source_filenames): New declaration.
6579 * linespec.c (linespec_complete_what): New.
6580 (struct ls_parser) <complete_what, completion_word,
6581 completion_quote_char, completion_quote_end, completion_tracker>:
6582 New fields.
6583 (string_find_incomplete_keyword_at_end): New.
6584 (linespec_lexer_lex_string): Record quote char. If in completion
6585 mode, don't throw.
6586 (linespec_lexer_consume_token): Advance the completion word point.
6587 (linespec_lexer_peek_token): Save/restore completion info.
6588 (save_stream_and_consume_token): New.
6589 (set_completion_after_number): New.
6590 (linespec_parse_basic): Set what to complete next depending on
6591 token. Handle function and label completions specially.
6592 (parse_linespec): Disable objc shortcut in completion mode. Set
6593 what to complete next depending on token type. Skip keyword if in
6594 completion mode.
6595 (complete_linespec_component, linespec_complete): New.
6596 * linespec.h (linespec_complete): Declare.
6597
6598 2017-07-17 Pedro Alves <palves@redhat.com>
6599
6600 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6601 Handle 'operator<' / 'operator<<'.
6602
6603 2017-07-17 Pedro Alves <palves@redhat.com>
6604
6605 * completer.c (collect_explicit_location_matches): Handle
6606 MATCH_LABEL.
6607 (convert_explicit_location_to_linespec): New, factored out from
6608 ...
6609 (convert_explicit_location_to_sals): ... this.
6610 (complete_label): New.
6611 (linespec_complete_label, find_label_symbols_in_block): New.
6612 (find_label_symbols): Add completion_mode parameter and adjust to
6613 call find_label_symbols_in_block.
6614 * linespec.h (linespec_complete_label): Declare.
6615
6616 2017-07-17 Pedro Alves <palves@redhat.com>
6617
6618 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6619 complete_symbol_mode parameter.
6620 * cli/cli-cmds.c (complete_command): Get the completion result out
6621 of the handle_brkchars tracker if used a custom word point.
6622 * completer.c: Include "linespec.h".
6623 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6624 (advance_to_expression_complete_word_point): New.
6625 (completion_tracker::completes_to_completion_word): New.
6626 (complete_files_symbols): Pass down
6627 complete_symbol_mode::EXPRESSION.
6628 (explicit_options, probe_options): New.
6629 (collect_explicit_location_matches): Complete on the
6630 explictit_loc->foo instead of word. Use
6631 linespec_complete_function. Handle MATCH_LINE. Handle offering
6632 keyword and options completions.
6633 (backup_text_ptr): Delete.
6634 (skip_keyword): New.
6635 (complete_explicit_location): Remove 'word' parameter. Add
6636 language, quoted_arg_start and quoted_arg_end parameters.
6637 Rewrite, parsing left to right.
6638 (location_completer): Rewrite.
6639 (location_completer_handle_brkchars): New function.
6640 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6641 (enum complete_line_internal_reason): Adjust comments.
6642 (completion_tracker::discard_completions): New.
6643 (completer_handle_brkchars_func_for_completer): Handle
6644 location_completer.
6645 (gdb_custom_word_point_brkchars)
6646 (gdb_org_rl_basic_quote_characters): New.
6647 (gdb_completion_word_break_characters_throw)
6648 (completion_find_completion_word): Handle trackers that use a
6649 custom word point.
6650 (completion_tracker::advance_custom_word_point_by): New.
6651 (completion_tracker::build_completion_result): Don't rely on
6652 readline appending the quote char.
6653 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6654 use a custom word point.
6655 (gdb_rl_attempted_completion_function): Restore
6656 rl_basic_quote_characters.
6657 * completer.h (class completion_tracker): Extend intro comment.
6658 (completion_tracker::set_quote_char)
6659 (completion_tracker::quote_char)
6660 (completion_tracker::set_use_custom_word_point)
6661 (completion_tracker::use_custom_word_point)
6662 (completion_tracker::custom_word_point)
6663 (completion_tracker::set_custom_word_point)
6664 (completion_tracker::advance_custom_word_point_by)
6665 (completion_tracker::completes_to_completion_word)
6666 (completion_tracker::discard_completions): New methods.
6667 (completion_tracker::m_quote_char)
6668 (completion_tracker::m_use_custom_word_point)
6669 (completion_tracker::m_custom_word_point): New fields.
6670 (advance_to_expression_complete_word_point): Declare.
6671 * f-lang.c (f_collect_symbol_completion_matches): Add
6672 complete_symbol_mode parameter.
6673 * language.h (struct language_defn)
6674 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6675 parameter.
6676 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6677 (linespec_complete_function): New function.
6678 (linespec_lexer_lex_keyword): Adjust.
6679 * linespec.h (linespec_keywords, linespec_complete_function): New
6680 declarations.
6681 * location.c (find_end_quote): New function.
6682 (explicit_location_lex_one): Add explicit_completion_info
6683 parameter. Save quoting info. Don't throw if being called for
6684 completion. Don't handle Ada operators here.
6685 (is_cp_operator, skip_op_false_positives, first_of)
6686 (explicit_location_lex_one_function): New function.
6687 (string_to_explicit_location): Replace 'dont_throw' parameter with
6688 an explicit_completion_info pointer parameter. Handle it. Don't
6689 use explicit_location_lex_one to lex function names. Use
6690 explicit_location_lex_one_function instead.
6691 * location.h (struct explicit_completion_info): New.
6692 (string_to_explicit_location): Replace 'dont_throw' parameter with
6693 an explicit_completion_info pointer parameter.
6694 * symtab.c (default_collect_symbol_completion_matches_break_on):
6695 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6696 (default_collect_symbol_completion_matches)
6697 (collect_symbol_completion_matches): Add complete_symbol_mode
6698 parameter.
6699 (collect_symbol_completion_matches_type): Pass down
6700 complete_symbol_mode::EXPRESSION.
6701 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6702 parameter. Handle LINESPEC mode.
6703 * symtab.h (complete_symbol_mode): New.
6704 (default_collect_symbol_completion_matches_break_on)
6705 (default_collect_symbol_completion_matches)
6706 (collect_symbol_completion_matches)
6707 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6708 parameter.
6709
6710 2017-07-17 Pedro Alves <palves@redhat.com>
6711
6712 * utils.c (enum class strncmp_iw_mode): New.
6713 (strcmp_iw): Rename to ...
6714 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6715 parameters. Handle them.
6716 (strncmp_iw): New.
6717 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6718 * utils.h (strncmp_iw): Declare.
6719 (strcmp_iw): Move describing comments here.
6720
6721 2017-07-17 Pedro Alves <palves@redhat.com>
6722
6723 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6724 CP_OPERATOR_STR.
6725 * c-typeprint.c (is_type_conversion_operator): Use
6726 CP_OPERATOR_STR.
6727 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6728 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6729 CP_OPERATOR_LEN.
6730 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6731 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6732 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6733 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6734 CP_OPERATOR_STR.
6735 * location.c: Include "cp-support.h".
6736 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6737 CP_OPERATOR_STR.
6738 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6739 CP_OPERATOR_LEN.
6740
6741 2017-07-17 Pedro Alves <palves@redhat.com>
6742
6743 * cli/cli-cmds.c (complete_command): Use a completion tracker
6744 along with completion_find_completion_word for handle_brkchars
6745 phase.
6746 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6747 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6748 (struct gdb_rl_completion_word_info): New.
6749 (gdb_rl_find_completion_word): New.
6750 (completion_find_completion_word): New.
6751 * completer.h (completion_find_completion_word): Declare.
6752
6753 2017-07-17 Pedro Alves <palves@redhat.com>
6754
6755 * ada-lang.c (symbol_completion_match): Adjust comments.
6756 (symbol_completion_add): Replace vector parameter with
6757 completion_tracker parameter. Use it.
6758 (ada_make_symbol_completion_list): Rename to...
6759 (ada_collect_symbol_completion_matches): ... this. Add
6760 completion_tracker parameter and use it.
6761 (ada_language_defn): Adjust.
6762 * break-catch-syscall.c (catch_syscall_completer): Adjust
6763 prototype and work with completion_tracker instead of VEC.
6764 * breakpoint.c (condition_completer): Adjust prototype and work
6765 with completion_tracker instead of VEC.
6766 * c-lang.c (c_language_defn, cplus_language_defn)
6767 (asm_language_defn, minimal_language_defn): Adjust to renames.
6768 * cli/cli-cmds.c (complete_command): Rework using
6769 completion_tracker. Catch exceptions when completing.
6770 * cli/cli-decode.c (integer_unlimited_completer)
6771 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6772 with completion_tracker instead of VEC.
6773 * command.h (struct completion_tracker): Forward declare.
6774 (completer_ftype, completer_handle_brkchars_ftype): Change
6775 types.
6776 (complete_on_cmdlist, complete_on_enum): Adjust.
6777 * completer.c: Include <algorithm>.
6778 (struct gdb_completer_state): New.
6779 (current_completion): New global.
6780 (readline_line_completion_function): Delete.
6781 (noop_completer, filename_completer)
6782 (filename_completer_handle_brkchars, complete_files_symbols)
6783 (linespec_location_completer): Adjust to work with a
6784 completion_tracker instead of a VEC.
6785 (string_or_empty): New.
6786 (collect_explicit_location_matches): Adjust to work with a
6787 completion_tracker instead of a VEC.
6788 (explicit_location_completer): Rename to ...
6789 (complete_explicit_location): ... this and adjust to work with a
6790 completion_tracker instead of a VEC.
6791 (location_completer): Adjust to work with a completion_tracker
6792 instead of a VEC.
6793 (add_struct_fields): Adjust to work with a completion_list instead
6794 of VEC.
6795 (expression_completer): Rename to ...
6796 (complete_expression): ... this and adjust to work with a
6797 completion_tracker instead of a VEC. Use complete_files_symbols.
6798 (expression_completer): Reimplement on top of complete_expression.
6799 (symbol_completer): Adjust to work with a completion_tracker
6800 instead of a VEC.
6801 (enum complete_line_internal_reason): Add describing comments.
6802 (complete_line_internal_normal_command): Adjust to work with a
6803 completion_tracker instead of a VEC.
6804 (complete_line_internal): Rename to ...
6805 (complete_line_internal_1): ... this and adjust to work with a
6806 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6807 handle_brkchars phase.
6808 (new_completion_tracker): Delete.
6809 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6810 complete_line_internal_1.
6811 (free_completion_tracker): Delete.
6812 (INITIAL_COMPLETION_HTAB_SIZE): New.
6813 (completion_tracker::completion_tracker)
6814 (completion_tracker::~completion_tracker): New.
6815 (maybe_add_completion): Delete.
6816 (completion_tracker::maybe_add_completion)
6817 (completion_tracker::add_completion)
6818 (completion_tracker::add_completions): New.
6819 (throw_max_completions_reached_error): Delete.
6820 (complete_line): Adjust to work with a completion_tracker instead
6821 of a VEC. Don't create a completion_tracker_t or check for max
6822 completions here.
6823 (command_completer, command_completer_handle_brkchars)
6824 (signal_completer, reg_or_group_completer_1)
6825 (reg_or_group_completer, default_completer_handle_brkchars):
6826 Adjust to work with a completion_tracker.
6827 (gdb_completion_word_break_characters_throw): New.
6828 (gdb_completion_word_break_characters): Reimplement.
6829 (line_completion_function): Delete.
6830 (completion_tracker::recompute_lowest_common_denominator)
6831 (expand_preserving_ws)
6832 (completion_tracker::build_completion_result)
6833 (completion_result::completion_result)
6834 (completion_result::completion_result)
6835 (completion_result::~completion_result)
6836 (completion_result::completion_result)
6837 (completion_result::release_match_list, compare_cstrings)
6838 (completion_result::sort_match_list)
6839 (completion_result::reset_match_list)
6840 (gdb_rl_attempted_completion_function_throw)
6841 (gdb_rl_attempted_completion_function): New.
6842 * completer.h (completion_list, struct completion_result)
6843 (class completion_tracker): New.
6844 (complete_line): Add completion_tracker parameter.
6845 (readline_line_completion_function): Delete.
6846 (gdb_rl_attempted_completion_function): New.
6847 (noop_completer, filename_completer, expression_completer)
6848 (location_completer, symbol_completer, command_completer)
6849 (signal_completer, reg_or_group_completer): Update prototypes.
6850 (completion_tracker_t, new_completion_tracker)
6851 (make_cleanup_free_completion_tracker): Delete.
6852 (enum maybe_add_completion_enum): Delete.
6853 (maybe_add_completion): Delete.
6854 (throw_max_completions_reached_error): Delete.
6855 * corefile.c (complete_set_gnutarget): Adjust to work with a
6856 completion_tracker instead of a VEC.
6857 * cp-abi.c (cp_abi_completer): Adjust to work with a
6858 completion_tracker instead of a VEC.
6859 * d-lang.c (d_language_defn): Adjust.
6860 * disasm.c (disassembler_options_completer): Adjust to work with a
6861 completion_tracker instead of a VEC.
6862 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6863 (f_collect_symbol_completion_matches): ... this. Adjust to work
6864 with a completion_tracker instead of a VEC.
6865 (f_language_defn): Adjust.
6866 * go-lang.c (go_language_defn): Adjust.
6867 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
6868 Adjust to work with a completion_tracker instead of a VEC.
6869 * infrun.c (handle_completer): Likewise.
6870 * interps.c (interpreter_completer): Likewise.
6871 * interps.h (interpreter_completer): Likewise.
6872 * language.c (unknown_language_defn, auto_language_defn)
6873 (local_language_defn): Adjust.
6874 * language.h (language_defn::la_make_symbol_completion_list):
6875 Rename to ...
6876 (language_defn::la_collect_symbol_completion_matches): ... this
6877 and adjust to work with a completion_tracker instead of a VEC.
6878 * m2-lang.c (m2_language_defn): Adjust.
6879 * objc-lang.c (objc_language_defn): Adjust.
6880 * opencl-lang.c (opencl_language_defn): Adjust.
6881 * p-lang.c (pascal_language_defn): Adjust.
6882 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
6883 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
6884 with a completion_tracker.
6885 * rust-lang.c (rust_language_defn): Adjust.
6886 * symtab.c (free_completion_list, do_free_completion_list)
6887 (return_val, completion_tracker): Delete.
6888 (completion_list_add_name, completion_list_add_symbol)
6889 (completion_list_add_msymbol, completion_list_objc_symbol)
6890 (completion_list_add_fields, add_symtab_completions): Add
6891 completion_tracker parameter and use it.
6892 (default_make_symbol_completion_list_break_on_1): Rename to...
6893 (default_collect_symbol_completion_matches_break_on): ... this.
6894 Add completion_tracker parameter and use it instead of allocating
6895 a completion tracker here.
6896 (default_make_symbol_completion_list_break_on): Delete old
6897 implementation.
6898 (default_make_symbol_completion_list): Delete.
6899 (default_collect_symbol_completion_matches): New.
6900 (make_symbol_completion_list): Delete.
6901 (collect_symbol_completion_matches): New.
6902 (make_symbol_completion_type): Rename to ...
6903 (collect_symbol_completion_matches_type): ... this. Add
6904 completion_tracker parameter and use it instead of VEC.
6905 (make_file_symbol_completion_list_1): Rename to...
6906 (collect_file_symbol_completion_matches): ... this. Add
6907 completion_tracker parameter and use it instead of VEC.
6908 (make_file_symbol_completion_list): Delete.
6909 (add_filename_to_list): Use completion_list instead of a VEC.
6910 (add_partial_filename_data::list): Now a completion_list.
6911 (make_source_files_completion_list): Work with a completion_list
6912 instead of a VEC.
6913 * symtab.h: Include "completer.h".
6914 (default_make_symbol_completion_list_break_on)
6915 (default_make_symbol_completion_list, make_symbol_completion_list)
6916 (make_symbol_completion_type, make_file_symbol_completion_list)
6917 (make_source_files_completion_list): Delete.
6918 (default_collect_symbol_completion_matches_break_on)
6919 (default_collect_symbol_completion_matches)
6920 (collect_symbol_completion_matches)
6921 (collect_symbol_completion_matches_type)
6922 (collect_file_symbol_completion_matches)
6923 (make_source_files_completion_list): New.
6924 * top.c (init_main): Don't install a rl_completion_entry_function
6925 hook. Install a rl_attempted_completion_function hook instead.
6926 * tui/tui-layout.c (layout_completer): Adjust to work with a
6927 completion_tracker.
6928 * tui/tui-regs.c (tui_reggroup_completer):
6929 * tui/tui-win.c (window_name_completer, focus_completer)
6930 (winheight_completer): Adjust to work with a completion_tracker.
6931 * value.c: Include "completer.h".
6932 (complete_internalvar): Adjust to work with a completion_tracker.
6933 * value.h (complete_internalvar): Likewise.
6934
6935 2017-07-17 Pedro Alves <palves@redhat.com>
6936
6937 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
6938 renames.
6939 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
6940 comments to completer_ftype's declaration.
6941 <completer_handle_brkchars>: Change type to
6942 completer_handle_brkchars_ftype.
6943 * command.h (completer_ftype): Add describing comment and give
6944 names to parameters.
6945 (completer_ftype_void): Rename to ...
6946 (completer_handle_brkchars_ftype) ... this. Add describing comment.
6947 (set_cmd_completer_handle_brkchars): Adjust.
6948 * completer.c (filename_completer_handle_brkchars): New function.
6949 (complete_line_internal_normal_command): New function, factored
6950 out from ...
6951 (complete_line_internal): ... here.
6952 (command_completer_handle_brkchars)
6953 (default_completer_handle_brkchars)
6954 (completer_handle_brkchars_func_for_completer): New functions.
6955 * completer.h (set_gdb_completion_word_break_characters): Delete
6956 declaration.
6957 (completer_handle_brkchars_func_for_completer): New declaration.
6958 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
6959 completer_handle_brkchars_func_for_completer.
6960
6961 2017-07-17 Pedro Alves <palves@redhat.com>
6962
6963 * completer.c (symbol_completer): New function, based on
6964 make_symbol_completion_list_fn.
6965 * completer.h (symbol_completer): New declaration.
6966 * guile/scm-cmd.c (cmdscm_completers): Adjust.
6967 * python/py-cmd.c (completers): Adjust.
6968 * symtab.c (make_symbol_completion_list_fn): Delete.
6969 * symtab.h (make_symbol_completion_list_fn): Delete.
6970 * cli/cli-decode.c (add_cmd): Adjust.
6971
6972 2017-07-17 Pedro Alves <palves@redhat.com>
6973
6974 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
6975 * dwarf2read.c: Include "filename-seen-cache.h".
6976 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
6977 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
6978 * filename-seen-cache.c: New file.
6979 * filename-seen-cache.h: New file.
6980 * symtab.c: Include "filename-seen-cache.h".
6981 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
6982 (create_filename_seen_cache, clear_filename_seen_cache)
6983 (delete_filename_seen_cache, filename_seen): Delete, parts moved
6984 to filename-seen-cache.h/filename-seen-cache.c.
6985 (output_source_filename, sources_info)
6986 (maybe_add_partial_symtab_filename)
6987 (make_source_files_completion_list): Adjust to use
6988 filename_seen_cache.
6989
6990 2017-07-17 Pedro Alves <palves@redhat.com>
6991
6992 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
6993 fields.
6994 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
6995 dwarf2_debug_sections*)): New.
6996 (dwarf2_per_objfile::dwarf2_per_objfile(const
6997 dwarf2_per_objfile&)): Declare as deleted.
6998 (dwarf2_per_objfile::operator=): Declare as deleted.
6999 (dwarf2_per_objfile::dwarf2_per_objfile)
7000 (dwarf2_per_objfile::~dwarf2_per_objfile)
7001 (dwarf2_per_objfile::free_cached_comp_units): New.
7002 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7003 ctor. Call dwarf2_per_objfile's ctor manually.
7004 (dwarf2_locate_sections): Deleted/refactored as ...
7005 (dwarf2_per_objfile::locate_sections): ... this new method.
7006 (free_cached_comp_units): Defer to
7007 dwarf2_per_objfile::free_cached_comp_units.
7008 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7009
7010 2017-07-14 Tom Tromey <tom@tromey.com>
7011
7012 PR rust/21764:
7013 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7014 parameter.
7015 <UNOP_SIZEOF>: Split into separate case.
7016 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7017
7018 2017-07-14 Tom Tromey <tom@tromey.com>
7019
7020 PR rust/21763:
7021 * symtab.c (symbol_matches_domain): Add language_rust to special
7022 case.
7023 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7024 treat LOC_TYPEDEF symbols as variables.
7025
7026 2017-07-14 Pedro Alves <palves@redhat.com>
7027
7028 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7029 symtabs matching all symtabs with SRCFILE as file name instead of
7030 only considering the first hit, with lookup_symtab.
7031
7032 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7033
7034 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7035 operator_name parameters.
7036 (gen_expr): Update function call.
7037
7038 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7039
7040 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7041 parameter.
7042 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7043 Likewise.
7044 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7045 parameter, use agent_expr::gdbarch instead, update function
7046 calls.
7047 (locexpr_tracepoint_var_ref): Likewise.
7048 (loclist_tracepoint_var_ref): Likewise.
7049 * ax-gdb.c (gen_trace_static_fields): Likewise.
7050 (gen_traced_pop): Likewise.
7051 (gen_frame_args_address): Likewise.
7052 (gen_frame_locals_address): Likewise.
7053 (gen_var_ref): Likewise.
7054 (gen_struct_ref_recursive): Likewise.
7055 (gen_static_field): Likewise.
7056 (gen_maybe_namespace_elt): Likewise.
7057 (gen_expr): Likewise.
7058 (gen_trace_for_var): Likewise.
7059 (gen_trace_for_expr): Likewise.
7060 (gen_trace_for_return_address): Likewise.
7061
7062 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7063
7064 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7065 parameter.
7066 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7067
7068 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7069
7070 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7071 from ax, update calls.
7072 (gen_usual_arithmetic): Likewise.
7073 (gen_integral_promotions): Likewise.
7074 (gen_bitfield_ref): Likewise.
7075 (gen_primitive_field): Likewise.
7076 (gen_struct_ref_recursive): Likewise.
7077 (gen_struct_ref): Likewise.
7078 (gen_maybe_namespace_elt): Likewise.
7079 (gen_struct_elt_for_reference): Likewise.
7080 (gen_namespace_elt): Likewise.
7081 (gen_aggregate_elt_ref): Likewise.
7082 (gen_expr): Get gdbarch from ax, update calls.
7083 (gen_expr_binop_rest): Likewise.
7084
7085 2017-07-13 Pedro Alves <palves@redhat.com>
7086
7087 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7088 as default tdesc.
7089 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7090 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7091 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7092 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7093 tdep.
7094 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7095 Get final tdesc from the tdep.
7096 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7097 default tdesc.
7098 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7099 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7100 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7101 Use it as default tdesc.
7102 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7103 down to amd_init_abi. No longer handle fallback tdesc here.
7104 * amd64-tdep.h (tdesc_x32): Declare.
7105 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7106 parameter.
7107 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7108 as default tdesc.
7109
7110 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7111
7112 * s390-linux-tdep.c (s390_process_record): Add support for
7113 instructions new in arch12.
7114
7115 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7116
7117 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7118 PT_GETFSBASE and PT_GETGSBASE.
7119 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7120 PT_SETGSBASE.
7121
7122 2017-07-11 John Baldwin <jhb@FreeBSD.org>
7123
7124 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7125 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7126 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7127 those rules.
7128 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7129 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7130 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7131 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7132 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7133 * features/i386/amd64.xml: Add 64bit-segments.xml.
7134 * features/i386/amd64-avx-avx512.c: Regenerated.
7135 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7136 * features/i386/amd64-avx-mpx.c: Regenerated.
7137 * features/i386/amd64-avx.c: Regenerated.
7138 * features/i386/amd64-mpx.c: Regenerated.
7139 * features/i386/amd64.c: Regenerated.
7140 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7141 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7142 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7143 * regformats/i386/amd64-avx.dat: Regenerated.
7144 * regformats/i386/amd64-mpx.dat: Regenerated.
7145 * regformats/i386/amd64.dat: Regenerated.
7146
7147 2017-07-10 Yao Qi <yao.qi@linaro.org>
7148
7149 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7150 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7151
7152 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7153
7154 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7155 unsetenv.
7156 * gnulib/aclocal.m4: Regenerate.
7157 * gnulib/config.in: Regenerate.
7158 * gnulib/configure: Regenerate.
7159 * gnulib/import/Makefile.am: Regenerate.
7160 * gnulib/import/Makefile.in: Regenerate.
7161 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7162 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7163 * gnulib/import/m4/environ.m4: New file.
7164 * gnulib/import/m4/setenv.m4: New file.
7165 * gnulib/import/setenv.c: New file.
7166 * gnulib/import/unsetenv.c: New file.
7167
7168 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7169
7170 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7171 address when op is DW_OP_addr.
7172
7173 2017-07-09 Tom Tromey <tom@tromey.com>
7174
7175 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7176 check and apply to outer type.
7177
7178 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7179
7180 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7181 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7182 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7183 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7184
7185 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7186
7187 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7188
7189 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7190
7191 * corelow.c (get_core_siginfo): Remove.
7192 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7193 instead of get_core_siginfo.
7194 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7195 * gdbarch.h: Re-generate.
7196 * gdbarch.c: Re-generate.
7197 * linux-tdep.c (linux_core_xfer_siginfo): New.
7198 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7199
7200 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7201
7202 * corelow.c (thread_section_name): Move to ...
7203 * gdbcore.h (thread_section_name): ... here.
7204
7205 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7206
7207 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7208 (struct siginfo32): New.
7209 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7210 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7211 via ptrace(PT_LWPINFO).
7212
7213 2017-07-07 John Baldwin <jhb@FreeBSD.org>
7214
7215 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7216 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7217 (fbsd_get_siginfo_type): New.
7218 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7219 (_initialize_fbsd_tdep): New.
7220
7221 2017-07-06 David Blaikie <dblaikie@gmail.com>
7222
7223 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7224 a singular dwo_unit*) to support multiple CUs in the same way that
7225 multiple TUs are supported.
7226 (create_cus_hash_table): Replace create_dwo_cu with a function for
7227 parsing multiple CUs from a DWO file.
7228 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7229 create_dwo_cu.
7230 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7231 htab_find, rather than comparing the signature to a singleton CU in
7232 the dwo_file.
7233
7234 2017-07-06 Pedro Alves <palves@redhat.com>
7235
7236 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7237
7238 2017-07-04 Pedro Alves <palves@redhat.com>
7239
7240 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7241 * gdbtypes.h (TYPE_STATIC): Delete.
7242 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7243 is_synchronized, is_native>: Delete.
7244 <dummy>: Bump.
7245 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7246 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7247 (TYPE_FN_FIELD_ABSTRACT): Delete.
7248
7249 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7250
7251 * buffer.h (buffer_finish): Fix spelling mistakes.
7252
7253 2017-07-01 Eli Zaretskii <eliz@gnu.org>
7254
7255 * .dir-locals.el: Automatically switch to C-style comments in
7256 versions of Emacs that support the feature.
7257
7258 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7259 Pedro Alves <palves@redhat.com>
7260
7261 PR cli/21688
7262 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7263 (process_next_line): New variable 'inline_cmd'.
7264 Adjust 'if' clauses for "python", "compile" and "guile" to use
7265 'command_name_equals' and check for '!inline_cmd'.
7266
7267 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7268
7269 PR cli/21688
7270 * cli/cli-script.c (command_name_equals_not_inline): New function.
7271 (process_next_line): Adjust 'if' clauses for "python", "compile"
7272 and "guile" to use command_name_equals_not_inline.
7273
7274 2017-06-29 Pedro Alves <palves@redhat.com>
7275
7276 * completer.c (expression_completer): Call
7277 linespec_location_completer instead of location_completer.
7278
7279 2017-06-29 Pedro Alves <palves@redhat.com>
7280
7281 * completer.c (expression_completer): Remove code that recomputes
7282 'text' from 'word'.
7283
7284 2017-06-29 Yao Qi <yao.qi@linaro.org>
7285
7286 * regformats/regdat.sh: Generate code with
7287 "ifndef IN_PROCESS_AGENT".
7288
7289 2017-06-28 Pedro Alves <palves@redhat.com>
7290
7291 * command.h: Include "common/scoped_restore.h".
7292
7293 2017-06-28 Yao Qi <yao.qi@linaro.org>
7294
7295 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7296 instead of obstack_grow.
7297
7298 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7299
7300 PR gdb/21337
7301 * symfile.c (reread_symbols): Call objfiles_changed just before
7302 read_symbols.
7303
7304 2017-06-27 Pedro Alves <palves@redhat.com>
7305
7306 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7307 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7308 (completion_list_add_symbol, completion_list_add_msymbol):
7309 ... these new functions.
7310 (add_symtab_completions)
7311 (default_make_symbol_completion_list_break_on_1): Adjust.
7312
7313 2017-06-27 Pedro Alves <palves@redhat.com>
7314
7315 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7316 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7317 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7318 dtor.
7319 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7320 'storage_obstack' field an auto_obstack. In-class initialize all
7321 non-bitfield fields. Make minsyms_read bool.
7322 * symfile.c (read_symbols): Adjust.
7323
7324 2017-06-27 Alan Hayward <alan.hayward@arm.com>
7325
7326 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7327 (gdbsim_store_register): Likewise.
7328
7329 2017-06-27 Pedro Alves <palves@redhat.com>
7330
7331 * c-exp.y (name_obstack): Now an auto_obstack.
7332 (yylex): Use auto_obstack::clear.
7333 (c_parse): Use auto_obstack::clear instead of reinitializing and
7334 freeing the obstack.
7335 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7336 * d-exp.y (name_obstack): Now an auto_obstack.
7337 (yylex): Use auto_obstack::clear.
7338 (d_parse): Use auto_obstack::clear instead of reinitializing and
7339 freeing the obstack.
7340 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7341 auto_obstack.
7342 * dwarf2read.c (create_addrmap_from_index)
7343 (dwarf2_build_psymtabs_hard)
7344 (update_enumeration_type_from_children): Likewise.
7345 * gdb_obstack.h (auto_obstack): New type.
7346 * go-exp.y (name_obstack): Now an auto_obstack.
7347 (build_packaged_name): Use auto_obstack::clear.
7348 (go_parse): Use auto_obstack::clear instead of reinitializing and
7349 freeing the obstack.
7350 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7351 auto_obstack.
7352 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7353 * rust-exp.y (work_obstack): Now an auto_obstack.
7354 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7355 reinitializing and freeing the obstack.
7356 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7357 (host_char_to_target): Use auto_obstack.
7358 * utils.h (make_cleanup_obstack_free): Delete declaration.
7359 * valprint.c (generic_emit_char, generic_printstr): Use
7360 auto_obstack.
7361
7362 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7363
7364 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7365 thread.
7366 (darwin_init_thread_list): Don't update dummy thread.
7367 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7368
7369 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7370
7371 * record-full.c (netorder16): Remove.
7372
7373 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7374
7375 * common/diagnostics.h: Define macros for GCC.
7376 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7377 * common/vec.h: Include diagnostics.h.
7378 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7379 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7380 warning.
7381
7382 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7383
7384 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7385 New macro.
7386 * ada-lex.l: Ignore deprecated register warnings.
7387
7388 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7389
7390 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7391 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7392
7393 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7394
7395 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7396 its own line.
7397
7398 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7399
7400 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7401
7402 2017-06-23 Alan Hayward <alan.hayward@arm.com>
7403
7404 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7405 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7406 (xtensa_register_read_masked): Likewise.
7407
7408 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7409
7410 * common/environ.c (gdb_environ::unset): Update comment.
7411
7412 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7413
7414 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7415 registers.
7416
7417 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7418
7419 * record-full.c (record_full_exec_insn): Use byte_vector.
7420
7421 2017-06-22 Yao Qi <yao.qi@linaro.org>
7422
7423 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7424 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7425
7426 2017-06-22 Alan Hayward <alan.hayward@arm.com>
7427
7428 * remote.c (cached_reg): Move from here...
7429 * regcache.h (cached_reg): ...to here.
7430 * python/py-unwind.c (struct reg_info): Remove.
7431 (cached_frame_info): Use cached_reg_t.
7432 (pyuw_prev_register): Likewise.
7433 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7434 (pyuw_dealloc_cache): Free all registers.
7435
7436 2017-06-22 Pedro Alves <palves@redhat.com>
7437 Simon Marchi <simon.marchi@ericsson.com>
7438
7439 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7440 warning.
7441 * common/diagnostics.h: New file.
7442
7443 2017-06-22 Pedro Alves <palves@redhat.com>
7444
7445 * common/agent.h: Add include guards.
7446
7447 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7448
7449 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7450 talk about addressable units instead of bytes.
7451
7452 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7453
7454 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7455 of '::const_iterator'.
7456
7457 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7458
7459 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7460 'unittests/environ-selftests.c'.
7461 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7462 * charset.c (find_charset_names): Declare object 'iconv_env'.
7463 Update code to use 'iconv_env' object. Remove call to
7464 'free_environ'.
7465 * common/environ.c: Include <utility>.
7466 (make_environ): Delete function.
7467 (free_environ): Delete function.
7468 (gdb_environ::clear): New function.
7469 (gdb_environ::operator=): New function.
7470 (gdb_environ::get): Likewise.
7471 (environ_vector): Delete function.
7472 (set_in_environ): Delete function.
7473 (gdb_environ::set): New function.
7474 (unset_in_environ): Delete function.
7475 (gdb_environ::unset): New function.
7476 (gdb_environ::envp): Likewise.
7477 * common/environ.h: Include <vector>.
7478 (struct gdb_environ): Delete; transform into...
7479 (class gdb_environ): ... this class.
7480 (free_environ): Delete prototype.
7481 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7482 environ_vector): Likewise.
7483 * infcmd.c (run_command_1): Update code to call
7484 'envp' from 'gdb_environ' class.
7485 (environment_info): Update code to call methods from 'gdb_environ'
7486 class.
7487 (unset_environment_command): Likewise.
7488 (path_info): Likewise.
7489 (path_command): Likewise.
7490 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7491 (inferior::inferior): Initialize 'environment' using the host's
7492 information.
7493 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7494 Include "environ.h".
7495 (class inferior) <environment>: Change type from 'struct
7496 gdb_environ' to 'gdb_environ'.
7497 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7498 methods from 'gdb_environ' class.
7499 * solib.c (solib_find_1): Likewise
7500 * unittests/environ-selftests.c: New file.
7501
7502 2017-06-20 Yao Qi <yao.qi@linaro.org>
7503
7504 * features/i386/i386-linux.xml: Exchange the order of including
7505 32bit-linux.xml and 32bit-sse.xml.
7506 * features/i386/i386-linux.c: Regenerated.
7507
7508 2017-06-20 Yao Qi <yao.qi@linaro.org>
7509
7510 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7511 Delete copy ctor and assignment operator.
7512 (tdesc_type): Likewise.
7513 (tdesc_feature): Likewise.
7514 (tdesc_free_reg): Remove.
7515 (tdesc_create_reg): Use new.
7516 (tdesc_free_type): Remove.
7517 (tdesc_create_vector): Use new.
7518 (tdesc_create_union): Likewise.
7519 (tdesc_create_flags): Likewise.
7520 (tdesc_create_enum): Likewise.
7521 (tdesc_free_feature): Delete.
7522 (free_target_description): Use delete.
7523
7524 2017-06-19 John Baldwin <jhb@FreeBSD.org>
7525
7526 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7527 registers.
7528
7529 2017-06-19 Pedro Alves <palves@redhat.com>
7530
7531 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7532 after gdb::unlinker.
7533
7534 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7535
7536 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7537 gdb_environ to access an environment variable.
7538
7539 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7540
7541 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7542 gdb_byte*.
7543
7544 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7545
7546 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7547
7548 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7549
7550 * configure: Re-generate.
7551 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7552
7553 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7554
7555 * configure: Re-generate.
7556 * warning.m4: Pass -Werror to compiler when checking for
7557 supported warning flags.
7558
7559 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7560
7561 * Makefile.in (COMPILE.pre): Add "-x c++".
7562
7563 2017-06-16 Alan Hayward <alan.hayward@arm.com>
7564 Pedro Alves <palves@redhat.com>
7565 Yao Qi <yao.qi@linaro.org>
7566
7567 * defs.h (RequireLongest): New.
7568 (extract_integer): Declare function template.
7569 (extract_signed_integer): Remove the declaration, but define it
7570 static inline.
7571 (extract_unsigned_integer): Likewise.
7572 (store_integer): Declare function template.
7573 (store_signed_integer): Remove the declaration, but define it
7574 static inline.
7575 (store_unsigned_integer): Likewise.
7576 * findvar.c (extract_integer): New function template.
7577 (extract_signed_integer): Remove.
7578 (extract_unsigned_integer): Remove.
7579 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7580 instantiations.
7581 (store_integer): New function template.
7582 (store_signed_integer): Remove.
7583 (store_unsigned_integer): Remove.
7584 (store_integer): Explicit instantiations.
7585 * regcache.c (regcache_raw_read_signed): Update.
7586 (regcache::raw_read): New function.
7587 (regcache::raw_read_signed): Remove.
7588 (regcache::raw_read_unsigned): Remove.
7589 (regcache_raw_read_unsigned): Update.
7590 (regcache_raw_write_unsigned): Update.
7591 (regcache::raw_write_signed): Remove.
7592 (regcache::raw_write): New function.
7593 (regcache_cooked_read_signed): Update.
7594 (regcache::raw_write_unsigned): Remove.
7595 (regcache::cooked_read_signed): Remove.
7596 (regcache_cooked_read_unsigned): Update.
7597 (regcache::cooked_read_unsigned): Remove.
7598 (regcache_cooked_write_signed): Update.
7599 (regcache_cooked_write_unsigned): Update.
7600 * regcache.h (regcache) <raw_read_signed>: Remove.
7601 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7602 <raw_read, raw_write>: New.
7603 <cooked_read_signed, cooked_write_signed>: Remove.
7604 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7605 <cooked_read, cooked_write>: New.
7606 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7607 (sh64_pseudo_register_write): Update.
7608
7609 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7610
7611 * arc-tdep.c (arc_disassembler_options): New variable.
7612 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7613 of default_print_insn.
7614 (arc_delayed_print_insn): Set info->section when needed,
7615 use default_print_insn to retrieve a disassembler.
7616
7617 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7618
7619 PR gdb/21574
7620 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7621 to mention $SHELL and startup-with-shell.
7622
7623 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7624
7625 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7626
7627 2017-06-14 Yao Qi <yao.qi@linaro.org>
7628
7629 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7630 default_print_insn instead of print_insn_aarch64.
7631 * arm-tdep.c (gdb_print_insn_arm): Call
7632 default_print_insn instead of print_insn_big_arm
7633 and print_insn_little_arm.
7634 * i386-tdep.c (i386_print_insn): Call default_print_insn
7635 instead of print_insn_i386.
7636 * ia64-tdep.c (ia64_print_insn): Call
7637 default_print_insn instead of print_insn_ia64.
7638 * mips-tdep.c (gdb_print_insn_mips): Call
7639 default_print_insn instead of print_insn_big_mips
7640 and print_insn_little_mips.
7641 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7642 instead of print_insn_spu.
7643
7644 2017-06-14 Pedro Alves <palves@redhat.com>
7645
7646 * ada-lang.c: Include "common/byte-vector.h".
7647 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7648 * charset.c (wchar_iterator::iterate): Resize the vector instead
7649 of reserving it.
7650 * common/byte-vector.h: Include "common/def-vector.h".
7651 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7652 * cli/cli-dump.c: Include "common/byte-vector.h".
7653 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7654 * common/byte-vector.h: New file.
7655 * common/def-vector.h: New file.
7656 * common/default-init-alloc.h: New file.
7657 * dwarf2loc.c: Include "common/byte-vector.h".
7658 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7659 instead of reserving it.
7660 * dwarf2read.c: Include "common/byte-vector.h".
7661 (data_buf::m_vec): Now a gdb::byte_vector.
7662 * gdb_regex.c: Include "common/def-vector.h".
7663 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7664 * mi/mi-main.c: Include "common/byte-vector.h".
7665 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7666 * printcmd.c: Include "common/byte-vector.h".
7667 (print_scalar_formatted): Use gdb::byte_vector.
7668 * valprint.c: Include "common/byte-vector.h".
7669 (maybe_negate_by_bytes, print_decimal_chars): Use
7670 gdb::byte_vector.
7671
7672 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7673
7674 * darwin-nat.c: Include "nat/fork-inferior.h".
7675
7676 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7677
7678 * configure.nat: Factor out Darwin bits that are not
7679 architecture-specific. Add fork-inferior.o.
7680
7681 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7682
7683 * configure.nat: Factor out AIX bits that are not
7684 architecture-specific. Add fork-inferior.o.
7685
7686 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7687
7688 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7689 (read_pieced_value, write_pieced_value): ...here. Reduce to
7690 wrappers that just call rw_pieced_value.
7691
7692 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7693
7694 * dwarf2loc.c (write_pieced_value): When writing the data for a
7695 memory piece, use write_memory_with_notification instead of
7696 write_memory.
7697
7698 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7699
7700 * valops.c (read_value_memory): Change embedded_offset to
7701 represent a bit offset instead of a byte offset.
7702 * value.h (read_value_memory): Adjust comment.
7703
7704 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7705
7706 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7707 dest_offset_bits and source_offset_bits.
7708 (write_pieced_value): Likewise.
7709
7710 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7711
7712 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7713 given by DW_OP_bit_piece.
7714 (write_pieced_value): Likewise.
7715
7716 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7717
7718 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7719 some other preparations to the places where sufficient information
7720 is available.
7721 (write_pieced_value): Likewise.
7722
7723 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7724
7725 * dwarf2loc.c (bits_to_bytes): New function.
7726 (read_pieced_value): Fix offset calculations for register pieces
7727 on big-endian targets.
7728 (write_pieced_value): Likewise.
7729
7730 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7731
7732 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7733 (write_pieced_value): Likewise.
7734
7735 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7736
7737 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7738 transfer the source value's least significant bits, instead of its
7739 lowest-addressed ones. Rename type_len to max_offset.
7740 (read_pieced_value): Mirror above changes to write_pieced_value as
7741 applicable.
7742
7743 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7744
7745 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7746 truncate full bytes from dest_offset_bits before using it as an
7747 offset into the buffer.
7748
7749 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7750
7751 * dwarf2loc.c (write_pieced_value): Include transfer size in
7752 byte-wise check.
7753
7754 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7755
7756 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7757 calculation of this_size.
7758
7759 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7760
7761 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7762 when targeting a bit-field.
7763 (write_pieced_value): Likewise.
7764
7765 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7766
7767 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7768 (allocate_piece_closure): Drop addr_size parameter.
7769 (dwarf2_evaluate_loc_desc_full): Adjust call to
7770 allocate_piece_closure.
7771
7772 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7773
7774 PR gdb/21226
7775 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7776 the LSB end, independent of endianness.
7777
7778 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7779
7780 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7781 size capping.
7782
7783 2017-06-13 Yao Qi <yao.qi@linaro.org>
7784
7785 * mips-linux-nat.c: Move include features/mips*-linux.c to
7786 mips-linux-tdep.c.
7787 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7788 to mips-linux-tdep.c.
7789 * mips-linux-tdep.c: Include features/mips*-linux.c
7790 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7791 functions.
7792 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7793 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7794 (tdesc_mips64_dsp_linux): Declare.
7795
7796 2017-06-12 Tom Tromey <tom@tromey.com>
7797
7798 * valprint.h (val_print_type_code_int): Remove.
7799 * valprint.c (generic_val_print_int): Always call
7800 val_print_scalar_formatted.
7801 (val_print_type_code_int): Remove.
7802 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7803 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7804 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7805 * ada-valprint.c (ada_val_print_num): Use
7806 val_print_scalar_formatted.
7807
7808 2017-06-12 Tom Tromey <tom@tromey.com>
7809
7810 * printcmd.c (print_scalar_formatted): Unify the two switches.
7811 Don't convert scalars to LONGEST.
7812
7813 2017-06-12 Tom Tromey <tom@tromey.com>
7814
7815 PR exp/16225:
7816 * valprint.h (print_decimal_chars): Update.
7817 * valprint.c (maybe_negate_by_bytes): New function.
7818 (print_decimal_chars): Add "is_signed" argument.
7819 * printcmd.c (print_scalar_formatted): Update.
7820
7821 2017-06-12 Tom Tromey <tom@tromey.com>
7822
7823 PR exp/16225:
7824 * valprint.h (print_binary_chars, print_hex_chars): Update.
7825 * valprint.c (val_print_type_code_int): Update.
7826 (print_binary_chars): Add "zero_pad" argument.
7827 (emit_octal_digit): New function.
7828 (print_octal_chars): Don't zero-pad.
7829 (print_decimal_chars): Likewise.
7830 (print_hex_chars): Add "zero_pad" argument.
7831 * sh64-tdep.c (sh64_do_fp_register): Update.
7832 * regcache.c (regcache::dump): Update.
7833 * printcmd.c (print_scalar_formatted): Update.
7834 * infcmd.c (default_print_one_register_info): Update.
7835
7836 2017-06-12 Pedro Alves <palves@redhat.com>
7837 Alan Hayward <alan.hayward@arm.com>
7838
7839 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7840 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7841 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7842 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7843 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7844
7845 2017-06-12 Pedro Alves <palves@redhat.com>
7846
7847 * dwarf2read.c (mapped_symtab::data): Now a vector of
7848 symtab_index_entry instead of vector of
7849 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7850 whether an element's name is NULL instead of checking whether the
7851 element itself is NULL.
7852 (find_slot): Change return type. Adjust.
7853 (hash_expand, , add_index_entry, uniquify_cu_indices)
7854 (write_hash_table): Adjust.
7855
7856 2017-06-12 Pedro Alves <palves@redhat.com>
7857
7858 * dwarf2read.c (recursively_count_psymbols): New function.
7859 (write_psymtabs_to_index): Call it to compute number of psyms and
7860 pass estimate size of psyms_seen to unordered_set's ctor.
7861
7862 2017-06-12 Pedro Alves <palves@redhat.com>
7863
7864 * dwarf2read.c (write_hash_table): Check if key already exists
7865 before emplacing.
7866
7867 2017-06-12 Pedro Alves <palves@redhat.com>
7868
7869 * dwarf2read.c (data_buf::append_space): Rename to...
7870 (data_buf::grow): ... this, and make private. Adjust all callers.
7871 (data_buf::append_uint): New method.
7872 (add_address_entry, write_one_signatured_type)
7873 (write_psymtabs_to_index): Use it.
7874
7875 2017-06-12 Pedro Alves <palves@redhat.com>
7876
7877 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
7878 (file_write (FILE *, const std::vector<Elem>&)): Delete.
7879 (data_buf::file_write): Call ::fwrite directly.
7880
7881 2017-06-12 Pedro Alves <palves@redhat.com>
7882
7883 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
7884 std::vector::erase.
7885
7886 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7887
7888 Code cleanup: C++ify .gdb_index producer.
7889 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
7890 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
7891 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
7892 (create_strtab, add_string): Remove.
7893 (file_write, data_buf): New.
7894 (struct symtab_index_entry): Use std::vector for cu_indices.
7895 (struct mapped_symtab): Use std::vector for data.
7896 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
7897 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
7898 Remove.
7899 (find_slot): Change return type. Update it to the new data structures.
7900 (hash_expand, add_index_entry): Update it to the new data structures.
7901 (offset_type_compare): Remove.
7902 (uniquify_cu_indices): Update it to the new data structures.
7903 (c_str_view, c_str_view_hasher, vector_hasher): New.
7904 (add_indices_to_cpool): Remove.
7905 (write_hash_table): Update it to the new data structures.
7906 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
7907 (eq_psymtab_cu_index): Remove.
7908 (psym_index_map): New typedef.
7909 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
7910 reference and std::unordered_map for cu_index_htab.
7911 (add_address_entry, add_address_entry_worker, write_address_map)
7912 (write_psymbols): Update it to the new data structures.
7913 (write_obstack): Remove.
7914 (struct signatured_type_index_data): Change types_list to a data_buf
7915 reference and psyms_seen to a std::unordered_set reference.
7916 (write_one_signatured_type, recursively_write_psymbols)
7917 (write_psymtabs_to_index): Update it to the new data structures.
7918
7919 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
7920
7921 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
7922 separate-debug-file commands.
7923 * symfile.h (separate_debug_file_debug): New global.
7924 * symfile.c (separate_debug_file_debug): New global.
7925 (separate_debug_file_exists, find_separate_debug_file): Add
7926 debug output.
7927 (_initialize_symfile): Add "set debug separate-debug-file"
7928 command.
7929 * build-id.c (build_id_to_debug_bfd,
7930 find_separate_debug_file_by_buildid): Add debug output.
7931
7932 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
7933
7934 * gdbarch.sh (displaced_step_free_closure): Remove.
7935 * gdbarch.h, gdbarch.c: Re-generate.
7936 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
7937 displaced_step_free_closure.
7938 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7939 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7940 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7941 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7942 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7943 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7944 * arch-utils.h (simple_displaced_step_free_closure): Remove.
7945 * arch-utils.c (simple_displaced_step_free_closure): Remove.
7946 * infrun.c (displaced_step_clear): Call xfree instead of
7947 gdbarch_displaced_step_free_closure.
7948
7949 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
7950
7951 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
7952 NULL".
7953
7954 2017-06-08 Alan Hayward <alan.hayward@arm.com>
7955
7956 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
7957 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
7958 (mn10300_push_dummy_call): Likewise.
7959
7960 2017-06-08 Alan Hayward <alan.hayward@arm.com>
7961
7962 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
7963
7964 2017-06-08 Alan Hayward <alan.hayward@arm.com>
7965
7966 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
7967
7968 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7969
7970 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
7971 able to start inferiors using a shell.
7972 (New remote packets): Announce new packet "QStartupWithShell".
7973 * remote.c: Add PACKET_QStartupWithShell.
7974 (extended_remote_create_inferior): Handle new
7975 PACKET_QStartupWithShell.
7976 (remote_protocol_features) <QStartupWithShell>: New entry for
7977 PACKET_QStartupWithShell.
7978 (_initialize_remote): Call "add_packet_config_cmd" for
7979 QStartupShell.
7980
7981 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7982 Pedro Alves <palves@redhat.com>
7983
7984 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
7985 and "nat/fork-inferior.h".
7986 * common/common-inferior.h: New file, with contents from
7987 "gdb/inferior.h".
7988 * commom/common-utils.c: Include "common-utils.h".
7989 (stringify_argv): New function.
7990 * common/common-utils.h (stringify_argv): New prototype.
7991 * configure.nat: Add "fork-inferior.o" as a dependency for
7992 "*linux*", "fbsd*" and "nbsd*" hosts.
7993 * corefile.c (get_exec_file): Update comment.
7994 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
7995 instead of "startup_inferior".
7996 (darwin_create_inferior): Call "add_thread_silent" after
7997 "fork_inferior".
7998 * fork-child.c: Cleanup unnecessary includes.
7999 (SHELL_FILE): Move to "common/common-fork-child.c".
8000 (environ): Likewise.
8001 (exec_wrapper): Initialize.
8002 (get_exec_wrapper): New function.
8003 (breakup_args): Move to "common/common-fork-child.c"; rename to
8004 "breakup_args_for_exec".
8005 (escape_bang_in_quoted_argument): Move to
8006 "common/common-fork-child.c".
8007 (saved_ui): New variable.
8008 (prefork_hook): New function.
8009 (postfork_hook): Likewise.
8010 (postfork_child_hook): Likewise.
8011 (gdb_startup_inferior): Likewise.
8012 (fork_inferior): Move to "common/common-fork-child.c". Update
8013 function to support gdbserver.
8014 (startup_inferior): Likewise.
8015 * gdbcore.h (get_exec_file): Remove declaration.
8016 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8017 instead of "startup_inferior". Call "add_thread_silent" after
8018 "fork_inferior".
8019 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8020 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8021 instead of "startup_inferior". Call "add_thread_silent" after
8022 "fork_inferior".
8023 * inferior.h: Include "common-inferior.h".
8024 (trace_start_error): Move to "common/common-utils.h".
8025 (trace_start_error_with_name): Likewise.
8026 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8027 (startup_inferior): Likewise.
8028 (gdb_startup_inferior): New prototype.
8029 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8030 * nat/fork-inferior.h: New file.
8031 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8032 instead of "startup_inferior". Call "add_thread_silent" after
8033 "fork_inferior".
8034 * target.h (target_terminal_init): Move prototype to
8035 "target/target.h".
8036 (target_terminal_inferior): Likewise.
8037 (target_terminal_ours): Likewise.
8038 * target/target.h (target_terminal_init): New prototype, moved
8039 from "target.h".
8040 (target_terminal_inferior): Likewise.
8041 (target_terminal_ours): Likewise.
8042 * utils.c (gdb_flush_out_err): New function.
8043
8044 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8045
8046 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8047 * common/common-gdbthread.h: New file, with parts from
8048 "gdb/gdbthread.h".
8049 * gdbthread.h: Include "common-gdbthread.h".
8050 (switch_to_thread): Moved to "common/common-gdbthread.h".
8051
8052 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8053
8054 * Makefile.in (SFILES): Add "common/job-control.c".
8055 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8056 (COMMON_OBS): Add "job-control.o".
8057 * common/job-control.c: New file, with contents from
8058 "gdb/inflow.c".
8059 * common/job-control.h: New file, with contents from "terminal.h".
8060 * fork-child.c: Include "job-control.h".
8061 * inflow.c: Include "job-control.h".
8062 (gdb_setpgid): Move to "common/common-inflow.c".
8063 (_initialize_inflow): Move setting of "job_control" to
8064 "handle_job_control".
8065 * terminal.h (job_control): Moved to "common/common-terminal.h".
8066 (gdb_setpgid): Likewise.
8067 * top.c: Include "job_control.h".
8068 * utils.c: Likewise.
8069 (job_control): Moved to "job-control.c".
8070
8071 2017-06-07 Pedro Alves <palves@redhat.com>
8072
8073 * Makefile.in (SFILES): Add gdb_regex.c.
8074 (COMMON_OBS): Add gdb_regex.o.
8075 * ada-lang.c (ada_add_standard_exceptions)
8076 (ada_add_exceptions_from_frame, name_matches_regex)
8077 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8078 parameter type to compiled_regex. Adjust.
8079 (ada_exceptions_list): Use compiled_regex.
8080 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8081 std::unique_ptr<compiled_regex>.
8082 (exception_catchpoint::~exception_catchpoint): Remove regfree
8083 call.
8084 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8085 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8086 * breakpoint.c (solib_catchpoint::compiled): Now a
8087 std::unique_ptr<compiled_regex>.
8088 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8089 (check_status_catch_solib): Adjust to use compiled_regex.
8090 (add_solib_catchpoint): Adjust to use compiled_regex.
8091 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8092 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8093 compiled_regex reference. Adjust to use it.
8094 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8095 declaration. Include "gdb_regex.h".
8096 (apropos_cmd): Change regex parameter to compiled_regex reference.
8097 * gdb_regex.c: New file.
8098 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8099 declarations.
8100 (class compiled_regex): New.
8101 * linux-tdep.c: Include "common/gdb_optional.h".
8102 (struct mapping_regexes): New, factored out from
8103 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8104 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8105 gdb::optional and remove cleanups. Adjust to compiled_regex.
8106 * probe.c: Include "common/gdb_optional.h".
8107 (collect_probes): Use compiled_regex and gdb::optional and remove
8108 cleanups.
8109 * skip.c: Include "common/gdb_optional.h".
8110 (skiplist_entry::compiled_function_regexp): Now a
8111 gdb::optional<compiled_regex>.
8112 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8113 (free_skiplist_entry): Remove regfree call.
8114 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8115 compiled_regex and gdb::optional.
8116 * symtab.c: Include "common/gdb_optional.h".
8117 (search_symbols): Use compiled_regex and gdb::optional.
8118 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8119 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8120 to gdb_regex.c.
8121
8122 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8123
8124 * regcache.c (regcache::save): Avoid buffer use.
8125 (regcache::dump): Likewise.
8126
8127 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8128
8129 * sh-tdep.c (sh_pseudo_register_read): Remove
8130 MAX_REGISTER_SIZE.
8131 (sh_pseudo_register_write): Likewise.
8132 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8133 (sh64_pseudo_register_write): Likewise
8134
8135 2017-06-07 Alan Hayward <alan.hayward@arm.com>
8136
8137 * aarch64-tdep.c (aarch64_store_return_value): Use
8138 V_REGISTER_SIZE.
8139 (aarch64_pseudo_read_value): Likewise.
8140 (aarch64_pseudo_write): Likewise.
8141
8142 2017-06-06 Yao Qi <yao.qi@linaro.org>
8143
8144 * regformats/regdef.h (set_register_cache): Remove the
8145 declaration.
8146
8147 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8148
8149 * frame.c (frame_unwind_register_signed): Use
8150 frame_unwind_register_value.
8151
8152 2017-06-06 Pedro Alves <palves@redhat.com>
8153
8154 PR breakpoints/21553
8155 * breakpoint.c (create_breakpoints_sal_default)
8156 (init_breakpoint_sal, create_breakpoint_sal): Use
8157 gdb::unique_xmalloc_ptr for string parameters.
8158 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8159 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8160 (base_breakpoint_create_breakpoints_sal)
8161 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8162 (strace_marker_create_breakpoints_sal)
8163 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8164 string parameters.
8165 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8166 gdb::unique_xmalloc_ptr for string parameters.
8167 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8168 parameters.
8169
8170 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8171
8172 * alpha-tdep.c (alpha_register_to_value): Use
8173 get_frame_register_value.
8174 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8175
8176 2017-06-06 Alan Hayward <alan.hayward@arm.com>
8177
8178 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8179 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8180 (ia64_value_to_register): Likewise.
8181 (ia64_extract_return_value): Likewise.
8182 (ia64_store_return_value): Likewise.
8183 (ia64_push_dummy_call): Likewise.
8184
8185 2017-06-04 Joel Brobecker <brobecker@adacore.com>
8186
8187 GDB 8.0 released.
8188
8189 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8190
8191 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8192
8193 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8194
8195 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8196 parameter.
8197 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8198
8199 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8200
8201 * event-loop.c (poll_timers): Unallocate timer using delete
8202 instead of xfree.
8203
8204 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8205
8206 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8207 (struct breakpoint) <~breakpoint>: New.
8208 (struct watchpoint): Inherit from breakpoint.
8209 <~watchpoint>: New.
8210 <base>: Remove.
8211 (struct tracepoint): Inherit from breakpoint.
8212 <base>: Remove.
8213 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8214 (struct longjmp_breakpoint): Inherit from breakpoint.
8215 <~longjmp_breakpoint>: New.
8216 <base>: Remove.
8217 (new_breakpoint_from_type): Remove casts.
8218 (watchpoint_in_thread_scope): Remove reference to base field.
8219 (watchpoint_del_at_next_stop): Likewise.
8220 (update_watchpoint): Likewise.
8221 (watchpoint_check): Likewise.
8222 (bpstat_check_watchpoint): Likewise.
8223 (set_longjmp_breakpoint): Likewise.
8224 (struct fork_catchpoint): Inherit from breakpoint.
8225 <base>: Remove.
8226 (struct solib_catchpoint): Inherit from breakpoint.
8227 <~solib_catchpoint>: New.
8228 <base>: Remove.
8229 (dtor_catch_solib): Change to ...
8230 (solib_catchpoint::~solib_catchpoint): ... this.
8231 (breakpoint_hit_catch_solib): Remove reference to base field.
8232 (add_solib_catchpoint): Likewise.
8233 (create_fork_vfork_event_catchpoint): Likewise.
8234 (struct exec_catchpoint): Inherit from breakpoint.
8235 <~exec_catchpoint>: New.
8236 <base>: Remove.
8237 (dtor_catch_exec): Change to ...
8238 (exec_catchpoint::~exec_catchpoint): ... this.
8239 (dtor_watchpoint): Change to ...
8240 (watchpoint::~watchpoint): ... this.
8241 (watch_command_1): Remove reference to base field.
8242 (catch_exec_command_1): Likewise.
8243 (base_breakpoint_dtor): Change to ...
8244 (breakpoint::~breakpoint): ... this.
8245 (base_breakpoint_ops): Remove dtor field value.
8246 (longjmp_bkpt_dtor): Change to ...
8247 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8248 (strace_marker_create_breakpoints_sal): Remove reference to base
8249 field.
8250 (delete_breakpoint): Don't manually call breakpoint destructor.
8251 (create_tracepoint_from_upload): Remove reference to base field.
8252 (trace_pass_set_count): Likewise.
8253 (initialize_breakpoint_ops): Don't initialize
8254 momentary_breakpoint_ops, don't set dtors.
8255 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8256 <~ada_catchpoint>: New.
8257 <base>: Remove.
8258 (create_excep_cond_exprs): Remove reference to base field.
8259 (dtor_exception): Change to ...
8260 (ada_catchpoint::~ada_catchpoint): ... this.
8261 (dtor_catch_exception): Remove.
8262 (dtor_catch_exception_unhandled): Remove.
8263 (dtor_catch_assert): Remove.
8264 (create_ada_exception_catchpoint): Remove reference to base
8265 field.
8266 (initialize_ada_catchpoint_ops): Don't set dtors.
8267 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8268 breakpoint.
8269 <~signal_catchpoint>: New.
8270 <base>: Remove.
8271 (signal_catchpoint_dtor): Change to ...
8272 (signal_catchpoint::~signal_catchpoint): ... this.
8273 (create_signal_catchpoint): Remove reference to base field.
8274 (initialize_signal_catchpoint_ops): Don't set dtor.
8275 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8276 from breakpoint.
8277 <~syscall_catchpoint>: New.
8278 <base>: Remove.
8279 (dtor_catch_syscall): Change to ...
8280 (syscall_catchpoint::~syscall_catchpoint): ... this.
8281 (create_syscall_event_catchpoint): Remove reference to base
8282 field.
8283 (initialize_syscall_catchpoint_ops): Don't set dtor.
8284 * break-catch-throw.c (struct exception_catchpoint): Inherit
8285 from breakpoint.
8286 <~exception_catchpoint>: New.
8287 <base>: Remove.
8288 (dtor_exception_catchpoint): Change to ...
8289 (exception_catchpoint::~exception_catchpoint): ... this.
8290 (handle_gnu_v3_exceptions): Remove reference to base field.
8291 (initialize_throw_catchpoint_ops): Don't set dtor.
8292 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8293 field.
8294 * remote.c (remote_get_tracepoint_status): Likewise.
8295 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8296 * tracefile.c (tracefile_fetch_registers): Likewise.
8297 * tracepoint.c (actions_command): Likewise.
8298 (validate_actionline): Likewise.
8299 (tfind_1): Likewise.
8300 (get_traceframe_location): Likewise.
8301 (find_matching_tracepoint_location): Likewise.
8302 (parse_tracepoint_status): Likewise.
8303 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8304
8305 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8306
8307 * breakpoint.c (struct longjmp_breakpoint): New struct.
8308 (is_tracepoint_type): Change return type to bool.
8309 (is_longjmp_type): New function.
8310 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8311 (set_raw_breakpoint_without_location): Use
8312 new_breakpoint_from_type.
8313 (set_raw_breakpoint): Likewise.
8314
8315 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8316
8317 * breakpoint.c (new_breakpoint_from_type): New function.
8318 (create_breakpoint_sal): Use new_breakpoint_from_type and
8319 unique_ptr.
8320 (create_breakpoint): Likewise.
8321
8322 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8323
8324 * memattr.c (mem_info_command): Rename to ...
8325 (info_mem_command): ... this.
8326 (mem_enable_command): Rename to ...
8327 (enable_mem_command): ... this.
8328 (mem_disable_command): Rename to ...
8329 (disable_mem_command): ... this.
8330 (mem_delete_command): Rename to ...
8331 (delete_mem_command): ... this.
8332 (_initialize_mem): Adjust function names.
8333
8334 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8335
8336 * btrace.c (handle_pt_insn_events): New.
8337 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8338 STATUS. Split into this and ...
8339 (handle_pt_insn_event_flags): ... this.
8340
8341 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8342
8343 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8344 and struct pt_insn.resynced.
8345 * configure: Regenerated.
8346 * config.in: Regenerated.
8347
8348 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8349
8350 * btrace.c (ftrace_find_call_by_number): New function.
8351 (ftrace_new_function): Store objects, not pointers.
8352 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8353 ftrace_new_gap, ftrace_update_function,
8354 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8355 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8356 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8357 btrace_ends_with_single_insn, btrace_call_get): Account for
8358 btrace_thread_info::functions now storing objects.
8359 * btrace.h (struct btrace_thread_info): Add constructor.
8360 (struct btrace_thread_info) <functions>: Make std::vector.
8361 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8362 Initialize with default values.
8363 * record-btrace.c (record_btrace_frame_sniffer): Account for
8364 btrace_thread_info::functions now storing objects.
8365
8366 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8367
8368 * btrace.c: Remove typedef bfun_s.
8369 (ftrace_new_gap): Directly add gaps to the list of gaps.
8370 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8371 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8372 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8373 instead of gdb VEC.
8374
8375 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8376
8377 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8378 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8379 with btrace_thread_info::next_segment and
8380 btrace_thread_info::prev_segment.
8381 * btrace.h: Remove struct btrace_func_link.
8382 (struct btrace_function): Replace pair of function segment pointers
8383 with pair of indices.
8384 * python/py-record-btrace.c (btpy_call_prev_sibling,
8385 btpy_call_next_sibling): Replace references to
8386 btrace_thread_info::segment with btrace_thread_info::next_segment and
8387 btrace_thread_info::prev_segment.
8388 * record-btrace.c (record_btrace_frame_this_id): Use
8389 btrace_find_call_by_number.
8390
8391 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8392
8393 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8394 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8395 btrace_insn_next, btrace_insn_prev): Remove references to
8396 btrace_thread_info::flow.
8397 * btrace.h (struct btrace_function): Remove FLOW.
8398
8399 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8400
8401 * btrace.c (ftrace_find_call_by_number): New function.
8402 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8403 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8404 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8405 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8406 index.
8407 * btrace.h (struct btrace_function): Turn UP into an index.
8408 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8409 as an index.
8410 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8411 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8412 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8413
8414 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8415
8416 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8417 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8418 ftrace_update_function, ftrace_compute_global_level_offset,
8419 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8420 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8421 btrace_insn_end, btrace_is_empty): Remove references to
8422 btrace_thread_info::begin and btrace_thread_info::end.
8423 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8424 (struct btrace_thread_info) <functions>: Adjust comment.
8425 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8426 btrace_thread_info::begin.
8427
8428 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8429
8430 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8431 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8432 ftrace_update_function): Remove arguments that implicitly were always
8433 BTINFO->END.
8434 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8435 Don't pass BTINFO->END.
8436
8437 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8438
8439 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8440 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8441 btrace_find_insn_by_number): Replace function segment pointer with
8442 index.
8443 (btrace_insn_cmp): Simplify.
8444 * btrace.h: (struct btrace_insn_iterator) Rename index to
8445 insn_index. Replace function segment pointer with index into function
8446 segment vector.
8447 * record-btrace.c (record_btrace_call_history): Replace function
8448 segment pointer use with index.
8449 (record_btrace_frame_sniffer): Retrieve function call segment through
8450 vector.
8451 (record_btrace_set_replay): Remove defunc't safety check.
8452
8453 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8454
8455 * btrace.c (btrace_ends_with_single_insn): New function.
8456 (btrace_call_get, btrace_call_number, btrace_call_begin,
8457 btrace_call_end, btrace_call_next, btrace_call_prev,
8458 btrace_find_call_by_number): Use index into call segment vector
8459 instead of pointer.
8460 (btrace_call_cmp): Simplify.
8461 * btrace.h (struct btrace_call_iterator): Replace function call segment
8462 pointer with index into vector.
8463 * record-btrace.c (record_btrace_call_history): Use index instead of
8464 pointer.
8465
8466 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8467
8468 * btrace.c (btrace_insn_begin, btrace_insn_end,
8469 btrace_find_insn_by_number): Add btinfo to iterator.
8470 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8471
8472 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8473
8474 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8475 and save pointers directly.
8476 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8477 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8478 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8479 changed signature of functions.
8480 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8481 (btrace_fetch): Remove code that adds btrace_function pointers to
8482 vector of btrace_functions.
8483 (btrace_clear): Simplify freeing vector of btrace_functions.
8484
8485 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8486
8487 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8488 Replace VEC_* with std::vector functions.
8489 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8490 (struct btrace_thread_info)<functions>: Change type to std::vector.
8491
8492 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8493
8494 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8495 "Removed targets and native configurations" up. Merge duplicate
8496 "New commands" sub-sections. Add "New options" sub-sections.
8497
8498 2017-05-26 Alan Hayward <alan.hayward@arm.com>
8499
8500 * defs.h (copy_integer_to_size): New declaration.
8501 * findvar.c (copy_integer_to_size): New function.
8502 (do_cint_test): New selftest function.
8503 (copy_integer_to_size_test): Likewise.
8504 (_initialize_findvar): Likewise.
8505 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8506 (mips_fbsd_collect_reg): Use raw_collect_integer.
8507 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8508 (mips64_fill_gregset): Use raw_collect_integer
8509 (mips64_fill_fpregset): Use raw_supply_integer.
8510 * regcache.c (regcache::raw_supply_integer): New function.
8511 (regcache::raw_collect_integer): Likewise.
8512 * regcache.h: (regcache::raw_supply_integer): New declaration.
8513 (regcache::raw_collect_integer): Likewise.
8514
8515 2017-05-24 Yao Qi <yao.qi@linaro.org>
8516
8517 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8518 (COMMON_OBS): Add gdbarch-selftests.o.
8519 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8520 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8521 * gdbarch-selftests.c: New file.
8522 * regcache.h (regcache) <~regcache>: Mark it virtual if
8523 GDB_SELF_TEST.
8524 <raw_write>: Likewise.
8525
8526 2017-05-24 Yao Qi <yao.qi@linaro.org>
8527
8528 * regcache.c (current_regcache): Change it to
8529 regcache::current_regcache.
8530 (regcache_observer_target_changed): Update.
8531 (regcache_thread_ptid_changed): Make it a regcache static
8532 method.
8533 (regcache_thread_ptid_changed): Update.
8534 (class regcache_access): New.
8535 (current_regcache_test): Update.
8536 (_initialize_regcache): Update.
8537 * regcache.h: Include forward_list.
8538 (regcache): Declare regcache_thread_ptid_changed and declare
8539 registers_changed_ptid as friend.
8540
8541 2017-05-24 Yao Qi <yao.qi@linaro.org>
8542
8543 * i387-tdep.c (i387_register_to_value): Use register_size
8544 instead of TYPE_LENGTH.
8545 * m68k-tdep.c (m68k_register_to_value): Likewise.
8546
8547 2017-05-24 Yao Qi <yao.qi@linaro.org>
8548
8549 * i387-tdep.c (i387_convert_register_p): Return false if type
8550 code isn't TYPE_CODE_FLT.
8551
8552 2017-05-24 Yao Qi <yao.qi@linaro.org>
8553
8554 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8555 length is 4.
8556 (alpha_register_to_value): Remove type length check.
8557 (alpha_value_to_register): Likewise.
8558
8559 2017-05-24 Yao Qi <yao.qi@linaro.org>
8560
8561 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8562 TYPE_CODE_FLT.
8563
8564 2017-05-24 Yao Qi <yao.qi@linaro.org>
8565
8566 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8567 TYPE_CODE_FLT or not.
8568
8569 2017-05-24 Yao Qi <yao.qi@linaro.org>
8570
8571 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8572 * avr-tdep.c (avr_gdbarch_init): Likewise.
8573 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8574 * cris-tdep.c (cris_gdbarch_init): Likewise.
8575 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8576 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8577 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8578 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8579 * mep-tdep.c (mep_gdbarch_init): Likewise.
8580 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8581 * mips-tdep.c (mips_gdbarch_init): Likewise.
8582 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8583 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8584 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8585 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8586 * v850-tdep.c (v850_gdbarch_init): Likewise.
8587
8588 2017-05-24 Yao Qi <yao.qi@linaro.org>
8589
8590 * selftest-arch.c (tests_with_arch): Call registers_changed
8591 and reinit_frame_cache.
8592 * selftest.c (run_self_tests): Likewise.
8593
8594 2017-05-24 Yao Qi <yao.qi@linaro.org>
8595
8596 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8597 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8598
8599 2017-05-24 Yao Qi <yao.qi@linaro.org>
8600
8601 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8602 set_gdbarch_print_insn.
8603
8604 2017-05-24 Yao Qi <yao.qi@linaro.org>
8605
8606 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8607 set_gdbarch_print_insn.
8608
8609 2017-05-24 Yao Qi <yao.qi@linaro.org>
8610
8611 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8612 set_gdbarch_print_insn.
8613 * arc-tdep.c (arc_gdbarch_init): Likewise.
8614 * arch-utils.c: include dis-asm.h.
8615 (default_print_insn): New function.
8616 * arch-utils.h (default_print_insn): Declare.
8617 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8618 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8619 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8620 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8621 * frv-tdep.c (frv_gdbarch_init): Likewise.
8622 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8623 * gdbarch.sh (print_insn): Use default_print_insn.
8624 * gdbarch.c: Regenerated.
8625 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8626 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8627 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8628 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8629 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8630 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8631 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8632 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8633 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8634 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8635 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8636 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8637 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8638 * mt-tdep.c (mt_gdbarch_init): Likewise.
8639 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8640 * nios2-tdep.c (nios2_print_insn): Remove.
8641 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8642 * rx-tdep.c (rx_gdbarch_init): Likewise.
8643 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8644 * score-tdep.c (score_print_insn): Remove.
8645 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8646 * sh-tdep.c (sh_gdbarch_init): Likewise.
8647 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8648 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8649 * tic6x-tdep.c (tic6x_print_insn): Remove.
8650 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8651 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8652 * v850-tdep.c (v850_gdbarch_init): Likewise.
8653 * vax-tdep.c (vax_gdbarch_init): Likewise.
8654 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8655 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8656
8657 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8658
8659 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8660 (MIPS_FP0_REGNUM): Remove.
8661 (MIPS_FSR_REGNUM): Remove.
8662 (mips_fbsd_supply_fpregs): Use mips_regnum.
8663 (mips_fbsd_supply_gregs): Likewise.
8664 (mips_fbsd_collect_fpregs): Likewise.
8665 (mips_fbsd_collect_gregs): Likewise.
8666
8667 2017-05-23 John Baldwin <jhb@FreeBSD.org>
8668
8669 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8670 (getpfpregs_supplies): New function.
8671 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8672 getfpregs_supplies.
8673 (mips_fbsd_store_inferior_registers): Likewise.
8674
8675 2017-05-22 Pedro Alves <palves@redhat.com>
8676
8677 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8678 maintainer.
8679
8680 2017-05-22 Alan Hayward <alan.hayward@arm.com>
8681
8682 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8683 (store_register): Likewise.
8684 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8685 (get_decimal_float_return_value): Likewise.
8686 (do_ppc_sysv_return_value): Likewise.
8687 (ppc64_sysv_abi_push_integer): Likewise.
8688 (ppc64_sysv_abi_push_freg): Likewise.
8689 (ppc64_sysv_abi_return_value_base): Likewise.
8690 (ppc64_sysv_abi_return_value): Likewise.
8691 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8692 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8693 * rs6000-nat.c: Likewise.
8694 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8695 (rs6000_value_to_register): Likewise.
8696 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8697
8698 2017-05-21 Tom Tromey <tom@tromey.com>
8699
8700 PR rust/21466:
8701 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8702 arrays as "[T]", not "[T; ]".
8703
8704 2017-05-19 Tom Tromey <tom@tromey.com>
8705
8706 PR rust/21484:
8707 * rust-lang.c (exp_descriptor_rust): New function.
8708 (rust_language_defn): Use it.
8709 * p-lang.c (pascal_language_defn): Update.
8710 * opencl-lang.c (opencl_language_defn): Update.
8711 * objc-lang.c (objc_language_defn): Update.
8712 * m2-lang.c (m2_language_defn): Update.
8713 * language.h (struct language_defn)
8714 <la_watch_location_expression>: New member.
8715 * language.c (unknown_language_defn, auto_language_defn)
8716 (local_language_defn): Update.
8717 * go-lang.c (go_language_defn): Update.
8718 * f-lang.c (f_language_defn): Update.
8719 * d-lang.c (d_language_defn): Update.
8720 * c-lang.h (c_watch_location_expression): Declare.
8721 * c-lang.c (c_watch_location_expression): New function.
8722 (c_language_defn, cplus_language_defn, asm_language_defn)
8723 (minimal_language_defn): Use it.
8724 * breakpoint.c (watch_command_1): Call
8725 la_watch_location_expression.
8726 * ada-lang.c (ada_language_defn): Update.
8727
8728 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8729
8730 PR tui/21482
8731 * gdb_curses.h (NOMACROS): Define.
8732 (NCURSES_NOMACROS): Define.
8733
8734 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8735
8736 PR tui/21482
8737 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8738 arg to char *.
8739 * tui/tui-wingeneral.c (box_win): Likewise.
8740 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8741 (tui_show_source_line): Likewise.
8742 (tui_show_exec_info_content): Likewise.
8743
8744 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8745
8746 * sparc-tdep.c (sparc_structure_return_p)
8747 (sparc_arg_on_registers_p): New functions.
8748 (sparc32_store_arguments): Use them.
8749 * sparc64-tdep.c (sparc64_16_byte_align_p)
8750 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8751 Handle TYPE_CODE_ARRAY.
8752
8753 2017-05-17 Yao Qi <yao.qi@linaro.org>
8754
8755 * cli/cli-decode.c (add_alias_cmd): New function.
8756 * command.h (add_alias_cmd): Declare.
8757 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8758 instead call add_alias_cmd.
8759
8760 2017-05-17 Pedro Alves <palves@redhat.com>
8761
8762 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8763 (nat_makefile_frag): ... this. All references updated.
8764 * configure.ac: Likewise.
8765 * configure.nat: Likewise. Enhance comments.
8766 * configure: Regenerate.
8767
8768 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8769
8770 * procfs.c (procfs_create_inferior): Change prototype to match
8771 definition.
8772
8773 2017-05-13 Eli Zaretskii <eliz@gnu.org>
8774
8775 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8776 C++ compiler warning.
8777
8778 2017-05-12 Tom Tromey <tom@tromey.com>
8779
8780 PR rust/21483:
8781 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8782 recurse, just call value_struct_elt directly.
8783
8784 2017-05-12 Tom Tromey <tom@tromey.com>
8785
8786 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8787 OP_RUST_ARRAY>: Fix.
8788
8789 2017-05-12 Tom Tromey <tom@tromey.com>
8790
8791 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8792
8793 2017-05-09 Yao Qi <yao.qi@linaro.org>
8794
8795 * regcache.c: Include <forward_list>.
8796 (struct regcache_list): Remove.
8797 (current_regcache): Update.
8798 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8799 (regcache_thread_ptid_changed): Likewise.
8800 (registers_changed_ptid): Likewise.
8801 (current_regcache_size): Likewise.
8802
8803 2017-05-09 Yao Qi <yao.qi@linaro.org>
8804
8805 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8806 (current_regcache_size): New function.
8807 (current_regcache_test): New function.
8808 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8809
8810 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8811
8812 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8813 (print_gp_register_row): Use get_frame_register_value.
8814
8815 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8816
8817 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8818 (mips_supply_fpregset): Likewise.
8819 (mips64_supply_gregset): Likewise.
8820
8821 2017-05-08 Alan Hayward <alan.hayward@arm.com>
8822
8823 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8824 regcache->raw_supply_zeroed.
8825
8826 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8827
8828 * configure.nat: Rearrange 'case' statements to match
8829 host before cpu.
8830
8831 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8832
8833 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8834 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8835 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8836 "@nat_extra_makefile_frag@".
8837 (Makefile): Remove dependency on "@frags@".
8838 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8839 (data-directory/Makefile): Likewise.
8840 * config/aarch64/linux.mh: Deleted; moved contents to
8841 "gdb/configure.nat".
8842 * config/alpha/alpha-linux.mh: Likewise.
8843 * config/alpha/nbsd.mh: Likewise.
8844 * config/arm/linux.mh: Likewise.
8845 * config/arm/nbsdelf.mh: Likewise.
8846 * config/i386/cygwin.mh: Likewise.
8847 * config/i386/cygwin64.mh: Likewise.
8848 * config/i386/darwin.mh: Likewise.
8849 * config/i386/fbsd.mh: Likewise.
8850 * config/i386/fbsd64.mh: Likewise.
8851 * config/i386/go32.mh: Likewise.
8852 * config/i386/i386gnu.mh: Likewise.
8853 * config/i386/i386sol2.mh: Likewise.
8854 * config/i386/linux.mh: Likewise.
8855 * config/i386/linux64.mh: Likewise.
8856 * config/i386/mingw.mh: Likewise.
8857 * config/i386/mingw64.mh: Likewise.
8858 * config/i386/nbsd64.mh: Likewise.
8859 * config/i386/nbsdelf.mh: Likewise.
8860 * config/i386/nto.mh: Likewise.
8861 * config/i386/obsd.mh: Likewise.
8862 * config/i386/obsd64.mh: Likewise.
8863 * config/i386/sol2-64.mh: Likewise.
8864 * config/ia64/linux.mh: Likewise.
8865 * config/m32r/linux.mh: Likewise.
8866 * config/m68k/linux.mh: Likewise.
8867 * config/m68k/nbsdelf.mh: Likewise.
8868 * config/m68k/obsd.mh: Likewise.
8869 * config/m88k/obsd.mh: Likewise.
8870 * config/mips/fbsd.mh: Likewise.
8871 * config/mips/linux.mh: Likewise.
8872 * config/mips/nbsd.mh: Likewise.
8873 * config/mips/obsd64.mh: Likewise.
8874 * config/pa/linux.mh: Likewise.
8875 * config/pa/nbsd.mh: Likewise.
8876 * config/pa/obsd.mh: Likewise.
8877 * config/powerpc/aix.mh: Likewise.
8878 * config/powerpc/fbsd.mh: Likewise.
8879 * config/powerpc/linux.mh: Likewise.
8880 * config/powerpc/nbsd.mh: Likewise.
8881 * config/powerpc/obsd.mh: Likewise.
8882 * config/powerpc/ppc64-linux.mh: Likewise.
8883 * config/powerpc/spu-linux.mh: Likewise.
8884 * config/s390/linux.mh: Likewise.
8885 * config/sh/nbsd.mh: Likewise.
8886 * config/sparc/fbsd.mh: Likewise.
8887 * config/sparc/linux.mh: Likewise.
8888 * config/sparc/linux64.mh: Likewise.
8889 * config/sparc/nbsd64.mh: Likewise.
8890 * config/sparc/nbsdelf.mh: Likewise.
8891 * config/sparc/obsd64.mh: Likewise.
8892 * config/sparc/sol2.mh: Likewise.
8893 * config/tilegx/linux.mh: Likewise.
8894 * config/vax/nbsdelf.mh: Likewise.
8895 * config/vax/obsd.mh: Likewise.
8896 * config/xtensa/linux.mh: Likewise.
8897 * config/i386/i386gnu.mn: New file, with excerpts from
8898 "config/i386/i386gnu.mh".
8899 * configure: Regenerate.
8900 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
8901 *.mh files under "gdb/config".
8902 * configure.nat: New file, with contents from the
8903 "gdb/config/*/*.mh" files.
8904
8905 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
8906
8907 * btrace.c (btrace_clear): Free insn vector.
8908
8909 2017-05-05 Pedro Alves <palves@redhat.com>
8910
8911 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
8912 * configure: Regenerate.
8913
8914 2017-05-04 Pedro Alves <palves@redhat.com>
8915
8916 * Makefile.in (SFILES): Add progspace-and-thread.c.
8917 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
8918 (COMMON_OBS): Add progspace-and-thread.o.
8919 * breakpoint.c: Include "progspace-and-thread.h".
8920 (update_inserted_breakpoint_locations)
8921 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
8922 Use scoped_restore_current_pspace_and_thread.
8923 (create_std_terminate_master_breakpoint): Use
8924 scoped_restore_current_program_space.
8925 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
8926 (print_breakpoint_location): Use
8927 scoped_restore_current_program_space.
8928 (bp_loc_is_permanent): Use
8929 scoped_restore_current_pspace_and_thread.
8930 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
8931 (download_tracepoint_locations): Use
8932 scoped_restore_current_pspace_and_thread.
8933 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
8934 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
8935 (enum step_over_calls_kind): Moved from inferior.h.
8936 (class scoped_restore_current_thread): New class.
8937 * gdbthread.h (make_cleanup_restore_current_thread): Delete
8938 declaration.
8939 (scoped_restore_current_thread): New class.
8940 * infcmd.c: Include "common/gdb_optional.h".
8941 (continue_1, proceed_after_attach): Use
8942 scoped_restore_current_thread.
8943 (notice_new_inferior): Use scoped_restore_current_thread.
8944 * inferior.c: Include "progspace-and-thread.h".
8945 (restore_inferior, save_current_inferior): Delete.
8946 (add_inferior_command, clone_inferior_command): Use
8947 scoped_restore_current_pspace_and_thread.
8948 * inferior.h (scoped_restore_current_inferior): New class.
8949 * infrun.c: Include "progspace-and-thread.h" and
8950 "common/gdb_optional.h".
8951 (follow_fork_inferior): Use
8952 scoped_restore_current_pspace_and_thread.
8953 (scoped_restore_exited_inferior): New class.
8954 (handle_vfork_child_exec_or_exit): Use
8955 scoped_restore_exited_inferior,
8956 scoped_restore_current_pspace_and_thread,
8957 scoped_restore_current_thread and scoped_restore.
8958 (fetch_inferior_event): Use scoped_restore_current_thread.
8959 * linespec.c (decode_line_full, decode_line_1): Use
8960 scoped_restore_current_program_space.
8961 * mi/mi-main.c: Include "progspace-and-thread.h".
8962 (exec_continue): Use scoped_restore_current_thread.
8963 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
8964 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
8965 * proc-service.c (ps_pglobal_lookup): Use
8966 scoped_restore_current_program_space.
8967 * progspace-and-thread.c: New file.
8968 * progspace-and-thread.h: New file.
8969 * progspace.c (release_program_space, clone_program_space): Use
8970 scoped_restore_current_program_space.
8971 (restore_program_space, save_current_program_space)
8972 (save_current_space_and_thread): Delete.
8973 (switch_to_program_space_and_thread): Moved to
8974 progspace-and-thread.c.
8975 * progspace.h (save_current_program_space)
8976 (save_current_space_and_thread): Delete declarations.
8977 (scoped_restore_current_program_space): New class.
8978 * remote.c (remote_btrace_maybe_reopen): Use
8979 scoped_restore_current_thread.
8980 * symtab.c: Include "progspace-and-thread.h".
8981 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
8982 * thread.c (print_thread_info_1): Use
8983 scoped_restore_current_thread.
8984 (struct current_thread_cleanup): Delete.
8985 (do_restore_current_thread_cleanup)
8986 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
8987 (scoped_restore_current_thread::~scoped_restore_current_thread):
8988 ... this new dtor.
8989 (make_cleanup_restore_current_thread): Rename/convert to ...
8990 (scoped_restore_current_thread::scoped_restore_current_thread):
8991 ... this new ctor.
8992 (thread_apply_all_command): Use scoped_restore_current_thread.
8993 (thread_apply_command): Use scoped_restore_current_thread.
8994 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
8995 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
8996
8997 2017-05-04 Pedro Alves <palves@redhat.com>
8998
8999 * thread.c (make_cleanup_restore_current_thread): Move
9000 find_thread_ptid call before the is_stopped call. Assert that the
9001 thread is found. Replace is_stopped call by checking the thread's
9002 state directly. Remove unnecessary NULL-thread check.
9003
9004 2017-05-04 Pedro Alves <palves@redhat.com>
9005
9006 * corelow.c (thread_section_name): New class.
9007 (get_core_register_section, get_core_siginfo): Use it.
9008
9009 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9010
9011 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9012 (get_core_register_section): Remove xfree of NULL pointer.
9013
9014 2017-05-03 Alan Hayward <alan.hayward@arm.com>
9015
9016 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9017 * regcache.c (regcache::raw_supply_zeroed): New function.
9018 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9019
9020 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9021
9022 * gdbarch.sh: Remove commented out definition of
9023 TARGET_CHAR_BIT.
9024 * gdbarch.h: Re-generate.
9025
9026 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9027
9028 * configure: Regenerate.
9029
9030 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9031
9032 * solib-target.c (solib_target_relocate_section_addresses):
9033 Remove num_section_bases, num_bases, segment_bases variables.
9034
9035 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9036
9037 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9038
9039 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9040
9041 * solib-target.c: Include <vector>
9042 (struct lm_info_target) <~lm_info_target>: Remove.
9043 <segment_bases, section_bases>: Change type to
9044 std::vector<CORE_ADDR>.
9045 (library_list_start_segment, library_list_start_section,
9046 library_list_end_library,
9047 solib_target_relocate_section_addresses): Adjust.
9048
9049 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9050
9051 * gdbarch.sh (software_single_step): Change return type to
9052 std::vector<CORE_ADDR>.
9053 * gdbarch.c, gdbarch.h: Re-generate.
9054 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9055 Adjust.
9056 (arm_deal_with_atomic_sequence_raw): Adjust.
9057 (thumb_get_next_pcs_raw): Adjust.
9058 (arm_get_next_pcs_raw): Adjust.
9059 (arm_get_next_pcs): Adjust.
9060 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9061 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9062 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9063 (alpha_software_single_step): Adjust.
9064 * alpha-tdep.h (alpha_software_single_step): Adjust.
9065 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9066 * arm-tdep.c (arm_software_single_step): Adjust.
9067 (arm_breakpoint_kind_from_current_state): Adjust.
9068 * arm-tdep.h (arm_software_single_step): Adjust.
9069 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9070 * cris-tdep.c (cris_software_single_step): Adjust.
9071 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9072 (micromips_deal_with_atomic_sequence): Adjust.
9073 (deal_with_atomic_sequence): Adjust.
9074 (mips_software_single_step): Adjust.
9075 * mips-tdep.h (mips_software_single_step): Adjust.
9076 * moxie-tdep.c (moxie_software_single_step): Adjust.
9077 * nios2-tdep.c (nios2_software_single_step): Adjust.
9078 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9079 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9080 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9081 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9082 * sparc-tdep.c (sparc_software_single_step): Adjust.
9083 * spu-tdep.c (spu_software_single_step): Adjust.
9084 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9085
9086 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9087
9088 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9089 * gdbarch.h: Re-generate.
9090
9091 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9092
9093 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9094 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9095 * python/py-instruction.c, python/py-instruction.h: New file.
9096 * python/py-record.c: Add py-instruction.h include.
9097 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9098 gdb.RecordInstruction.
9099 * python/python-internal.h: Add gdbpy_initialize_instruction
9100 declaration.
9101 * python/python.c (do_start_initialization): Add
9102 gdbpy_initialize_instruction.
9103
9104 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9105
9106 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9107 Remove.
9108 (btrace_func_from_recpy_func): New function.
9109 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9110 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9111 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9112 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9113 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9114 Also, use new helper functions.
9115 (btpy_list_item): Use new helper functions.
9116 (recpy_bt_function_call_history): Use new type name.
9117 (btpy_call_getset): Remove.
9118 (gdbpy_initialize_btrace): Remove code to initialize
9119 gdb.BtraceFunctionCall.
9120 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9121 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9122 recpy_bt_func_prev, recpy_bt_func_next): New export.
9123 * python/py-record.c (recpy_func_type): New static object.
9124 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9125 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9126 recpy_func_next): New function.
9127 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9128 (recpy_func_getset): New static object.
9129 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9130 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9131
9132 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9133
9134 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9135 (btpy_object, btpy_insn_type, btpy_new): Remove.
9136 (btpy_list_object): Use gdb.RecordInstruction type instead of
9137 gdb.BtraceInstruction type.
9138 (btrace_insn_from_recpy_insn): New function.
9139 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9140 btpy_new.
9141 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9142 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9143 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9144 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9145 instead of btpy_object.
9146 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9147 btpy_insn_data, btpy_insn_decode): Rename to ...
9148 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9149 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9150 recpy_bt_insn_decode): This. Also, use new helper functions.
9151 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9152 recpy_insn_type.
9153 (btpy_insn_getset): Remove.
9154 (gdbpy_initialize_btrace): Remove code to initialize
9155 gdb.BtraceInstruction. Use recpy_element_object.
9156 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9157 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9158 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9159 * python/py-record.c (recpy_insn_type): New static object.
9160 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9161 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9162 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9163 New function.
9164 (recpy_insn_getset): New static object.
9165 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9166 * python/py-record.h (recpy_element_object): New typedef.
9167 (recpy_insn_type, recpy_insn_new): New export.
9168
9169 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9170
9171 * py-record-btrace.c (btpy_insn_new): Removed.
9172 (btpy_insn_or_gap_new): New function.
9173 (btpy_insn_error): Removed.
9174 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9175 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9176 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9177 btpy_insn_or_gap_new instead of btpy_insn_new.
9178 (btpy_insn_getset): Remove btpy_insn_error.
9179 * py-record.c (recpy_gap_type): New static object.
9180 (recpy_gap_object): New typedef.
9181 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9182 recpy_gap_reason_string): New function.
9183 (recpy_gap_getset): New static object.
9184 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9185 * py-record.h (recpy_gap_new): New export.
9186
9187 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9188
9189 * python/py-record.c (recpy_ptid): Remove.
9190 (recpy_record_getset): Remove recpy_ptid.
9191
9192 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9193
9194 * btrace.c (btrace_fetch): Set inferior_ptid.
9195 * python/py-record-btrace.c: Add "py-record.h" include.
9196 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9197 recpy_bt_end, recpy_bt_instruction_history,
9198 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9199 in gdb.Record object instead of current ptid.
9200 * python/py-record.c: Include new "py-record.h" file.
9201 (recpy_record_object): Moved to py-record.h.
9202 * python/py-record.h: New file.
9203
9204 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9205
9206 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9207 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9208 indentation.
9209
9210 2017-05-01 Joel Brobecker <brobecker@adacore.com>
9211
9212 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9213 the past maintainers section.
9214
9215 2017-04-28 Yao Qi <yao.qi@linaro.org>
9216
9217 * infcmd.c (get_return_value): Use regcache ctor, and remove
9218 cleanup.
9219
9220 2017-04-28 Yao Qi <yao.qi@linaro.org>
9221 Pedro Alves <palves@redhat.com>
9222
9223 * regcache.c (regcache::regcache): New tag dispatch ctor.
9224 (do_cooked_read): Moved above.
9225 (regcache_dup): Use the tag dispatch ctor..
9226 * regcache.h (regcache): Declare ctor, delete copy ctor and
9227 assignment operator, remove friend regcache_dup.
9228
9229 2017-04-28 Yao Qi <yao.qi@linaro.org>
9230
9231 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9232 call method save instead of regcache_cpy.
9233 * regcache.h (struct regcache): Make regcache_dup a friend.
9234
9235 2017-04-28 Yao Qi <yao.qi@linaro.org>
9236
9237 * regcache.c (struct regcache): Move to regcache.h
9238 (regcache::arch): New method.
9239 (regcache_get_ptid): Update.
9240 (get_regcache_arch): Call arch method.
9241 (get_regcache_aspace): Call method aspace.
9242 (register_buffer): Change it to method.
9243 (regcache_save): Change it to regcache::save.
9244 (regcache_restore): Likewise.
9245 (regcache_cpy_no_passthrough): Remove the declaration.
9246 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9247 (regcache_cpy_no_passthrough): Change it to method
9248 cpy_no_passthrough.
9249 (regcache_register_status): Change it to method
9250 get_register_status.
9251 (regcache_invalidate): Change it to method invalidate.
9252 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9253 (regcache_raw_update): Change it to method raw_update.
9254 (regcache_raw_read): Likewise.
9255 (regcache_raw_read_signed): Likewise.
9256 (regcache_raw_read_unsigned): Likewise.
9257 (regcache_raw_write_signed): Likewise.
9258 (regcache_raw_write_unsigned): Likewise.
9259 (regcache_cooked_read): Likewise.
9260 (regcache_cooked_read_value): Likewise.
9261 (regcache_cooked_read_signed): Likewise.
9262 (regcache_cooked_read_unsigned): Likewise.
9263 (regcache_cooked_write_signed): Likewise.
9264 (regcache_cooked_write_unsigned): Likewise.
9265 (regcache_raw_set_cached_value): Likewise.
9266 (regcache_raw_write): Likewise.
9267 (regcache_cooked_write): Likewise.
9268 (regcache_xfer_part): Likewise.
9269 (regcache_raw_read_part): Likewise.
9270 (regcache_raw_write_part): Likewise.
9271 (regcache_cooked_read_part): Likewise.
9272 (regcache_cooked_write_part): Likewise.
9273 (regcache_raw_supply): Likewise.
9274 (regcache_raw_collect): Likewise.
9275 (regcache_transfer_regset): Likewise.
9276 (regcache_supply_regset): Likewise.
9277 (regcache_collect_regset): Likewise.
9278 (regcache_debug_print_register): Likewise.
9279 (enum regcache_dump_what): Move it to regcache.h.
9280 (regcache_dump): Change it to method dump.
9281 * regcache.h (enum regcache_dump_what): New.
9282 (class regcache): New.
9283 * target.c (target_fetch_registers): Call method
9284 debug_print_register.
9285 (target_store_registers): Likewise.
9286
9287 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9288
9289 * windows-nat.c (struct lm_info_windows): Initialize field.
9290 (windows_make_so): Allocate lm_info_windows with new.
9291 (windows_free_so): Free lm_info_windows with delete.
9292
9293 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9294
9295 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9296 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9297 cleanup.
9298 (darwin_free_so): Free lm_info_darwin with delete.
9299
9300 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9301
9302 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9303 <l_addr_p>: Change type to bool.
9304 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9305 (svr4_free_so): Free lm_info_svr4 with delete.
9306 (svr4_copy_library_list): Replace memcpy with call to copy
9307 constructor.
9308 (library_list_start_library, svr4_default_sos): Allocate
9309 lm_info_svr4 with new.
9310
9311 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9312
9313 * solib-target.c (struct lm_info_target): Add destructor,
9314 initialize fields.
9315 <name>: Change type to std::string.
9316 (library_list_start_library): Allocate lm_info_target with new.
9317 (solib_target_free_library_list): Free lm_info_target with
9318 delete.
9319 (solib_target_current_sos): Adapt to std::string.
9320 (solib_target_free_so): Free lm_info_target with delete.
9321
9322 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9323
9324 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9325 fields.
9326 (frv_current_sos): Allocate lm_info_frv with new.
9327 (frv_relocate_main_executable): Free lm_info_frv with delete,
9328 allocate with new.
9329 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9330
9331 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9332
9333 * solib-frv.c (struct lm_info_frv): Fix indentation.
9334
9335 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9336
9337 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9338 map field.
9339 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9340 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9341 and allocate with new.
9342 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9343
9344 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9345
9346 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9347 <filename, member_name>: Change type to std::string.
9348 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9349 (library_list_start_library): Allocate lm_info_aix with new.
9350 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9351 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9352 with copy constructor.
9353
9354 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9355
9356 * solist.h (struct lm_info): Remove.
9357 (struct lm_info_base): New class.
9358 (struct so_list) <lm_info>: Change type to lm_info_base *.
9359 * nto-tdep.c (struct lm_info): Remove.
9360 (lm_addr): Adjust.
9361 * solib-aix.c (struct lm_info): Rename to ...
9362 (struct lm_info_aix): ... this. Extend lm_info_base.
9363 (lm_info_p): Rename to ...
9364 (lm_info_aix_p): ... this, and adjust.
9365 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9366 solib_aix_parse_libraries, library_list_start_library,
9367 solib_aix_free_library_list, solib_aix_parse_libraries,
9368 solib_aix_get_library_list,
9369 solib_aix_relocate_section_addresses, solib_aix_free_so,
9370 solib_aix_get_section_offsets,
9371 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9372 Adjust.
9373 (struct solib_aix_inferior_data) <library_list>: Adjust.
9374 * solib-darwin.c (struct lm_info): Rename to ...
9375 (struct lm_info_darwin): ... this. Extend lm_info_base.
9376 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9377 * solib-dsbt.c (struct lm_info): Rename to ...
9378 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9379 (struct dsbt_info) <main_executable_lm_info): Adjust.
9380 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9381 dsbt_relocate_section_addresses): Adjust.
9382 * solib-frv.c (struct lm_info): Rename to ...
9383 (struct lm_info_frv): ... this. Extend lm_info_base.
9384 (main_executable_lm_info): Adjust.
9385 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9386 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9387 find_canonical_descriptor_in_load_object,
9388 frv_fdpic_find_canonical_descriptor): Adjust.
9389 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9390 to lm_info_svr4.
9391 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9392 svr4_clear_so, svr4_copy_library_list,
9393 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9394 svr4_current_sos, svr4_fetch_objfile_link_map,
9395 solist_update_incremental): Adjust.
9396 * solib-svr4.h (struct lm_info_svr4): Move here from
9397 solib-svr4.c.
9398 * solib-target.c (struct lm_info): Rename to ...
9399 (struct lm_info_target): ... this. Extend lm_info_base.
9400 (lm_info_p): Rename to ...
9401 (lm_info_target_p): ... this.
9402 (solib_target_parse_libraries, library_list_start_segment,
9403 library_list_start_section, library_list_start_library,
9404 library_list_end_library, solib_target_free_library_list,
9405 solib_target_current_sos, solib_target_free_so,
9406 solib_target_relocate_section_addresses): Adjust.
9407 * windows-nat.c (struct lm_info): Rename to ...
9408 (struct lm_info_windows): ... this. Extend lm_info_base.
9409 (windows_make_so, handle_load_dll, handle_unload_dll,
9410 windows_xfer_shared_libraries): Adjust.
9411
9412 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9413
9414 * solib-darwin.c (struct darwin_so_list): Remove.
9415 (darwin_current_sos): Allocate an so_list object instead of a
9416 darwin_so_list, separately allocate an lm_info object.
9417 (darwin_free_so): Free lm_info.
9418
9419 2017-04-28 John Baldwin <jhb@FreeBSD.org>
9420
9421 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9422 with fprintf_filtered.
9423
9424 2017-04-28 Yao Qi <yao.qi@linaro.org>
9425
9426 * regcache.c (regcache::regcache): New function.
9427 (regcache::~regcache): New function.
9428 (regcache_xmalloc_1): Remove.
9429 (regcache_xmalloc): Call new regcache.
9430 (regcache_xfree): Call delete regcache.
9431 (get_thread_arch_aspace_regcache): Call new regcache.
9432
9433 2017-04-28 Yao Qi <yao.qi@linaro.org>
9434
9435 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9436 lwp instead of ptid_get_lwp.
9437
9438 2017-04-28 Yao Qi <yao.qi@linaro.org>
9439
9440 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9441 lwp_info instead of getting from inferior_ptid.
9442
9443 2017-04-27 Keith Seitz <keiths@redhat.com>
9444
9445 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9446 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9447 (CV_CONVERSION_BADNESS): Define.
9448 (rank_one_type): Remove overly restrictive rvalue reference
9449 rank checks.
9450 Add cv-qualifier checks and subranks for type equality.
9451 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9452 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9453 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9454
9455 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9456
9457 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9458 count when creating the object.
9459
9460 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9461 Ulrich Weigand <uweigand@de.ibm.com>
9462
9463 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9464 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9465 is used in AIX.
9466 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9467 (process_xcoff_symbol): Likewise.
9468 (scan_xcoff_symtab): Likewise.
9469
9470 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9471
9472 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9473 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9474 (ia64_access_reg): Use get_frame_register_unsigned.
9475 (ia64_access_rse_reg): Likewise.
9476 (ia64_libunwind_frame_prev_register): Likewise.
9477
9478 2017-04-26 Jiong Wang <jiong.wang@arm.com>
9479
9480 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9481 * gdbarch.c: Regenerated.
9482 * gdbarch.h: Regenerated.
9483 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9484 visibility external.
9485 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9486 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9487 (enum cfa_how_kind): Move to ...
9488 (struct dwarf2_frame_state_reg_info): Likewise.
9489 (struct dwarf2_frame_state): Likewise.
9490 * dwarf2-frame.h: ... here.
9491 (dwarf2_frame_state_alloc_regs): New declaration.
9492 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9493 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9494
9495 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9496
9497 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9498 regcache_raw_read_unsigned.
9499 (xtensa_pseudo_register_write): Likewise.
9500
9501 2017-04-26 Alan Hayward <alan.hayward@arm.com>
9502
9503 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9504 (nds32_pseudo_register_write): Likewise.
9505
9506 2017-04-25 Yao Qi <yao.qi@linaro.org>
9507
9508 * regcache.c (struct regcache) <readonly_p>: Change its type
9509 to bool.
9510 (regcache_xmalloc_1): Update parameter type and callers update.
9511
9512 2017-04-25 Yao Qi <yao.qi@linaro.org>
9513
9514 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9515 set_gdbarch_wchar_bit.
9516 * arm-tdep.c (arm_gdbarch_init): Likewise.
9517
9518 2017-04-25 Pedro Alves <palves@redhat.com>
9519
9520 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9521 (BothAreRelocatable, memcopy, memmove): Don't define.
9522 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9523 macros.
9524
9525 2017-04-25 Pedro Alves <palves@redhat.com>
9526
9527 * common/common-defs.h: Include "common/poison.h".
9528 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9529 and adjust.
9530 * common/poison.h: New file.
9531 * common/traits.h: Include <type_traits>.
9532 (Not, Or, Requires): New, moved from common/function-view.h.
9533
9534 2017-04-25 Pedro Alves <palves@redhat.com>
9535
9536 * breakpoint.h (struct breakpoint): In-class initialize all
9537 fields. Make boolean fields "bool".
9538 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9539 memset call and initializations no longer necessary.
9540
9541 2017-04-25 Pedro Alves <palves@redhat.com>
9542
9543 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9544 reference.
9545 (pt_btrace_insn): New function.
9546 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9547
9548 2017-04-25 Pedro Alves <palves@redhat.com>
9549
9550 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9551 "base" field and inherit from "bp_location" instead. Add
9552 non-default ctor.
9553 (allocate_location_exception): Use new non-default ctor.
9554 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9555 (init_bp_location): Convert to ...
9556 (bp_location::bp_location): ... this new ctor, and remove memset
9557 call.
9558 (base_breakpoint_allocate_location): Use the new non-default ctor.
9559 * breakpoint.h (bp_location): Now a class. Declare default and
9560 non-default ctors. In-class initialize all members.
9561 (init_bp_location): Remove declaration.
9562
9563 2017-04-25 Pedro Alves <palves@redhat.com>
9564
9565 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9566 assignment operator.
9567
9568 2017-04-24 Yao Qi <yao.qi@linaro.org>
9569
9570 * doublest.c (convert_doublest_to_floatformat): Call
9571 floatformat_totalsize_bytes.
9572
9573 2017-04-22 Tom Tromey <tom@tromey.com>
9574
9575 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9576 ui_out_emit_list.
9577 * stack.c (print_frame): Use ui_out_emit_list.
9578 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9579 ui_out_emit_list.
9580 * mi/mi-main.c (print_one_inferior)
9581 (mi_cmd_data_list_register_names)
9582 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9583 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9584 ui_out_emit_list.
9585 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9586 (mi_output_solib_attribs): Use ui_out_emit_list,
9587 ui_out_emit_tuple.
9588 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9589 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9590 (mi_cmd_stack_list_args, list_args_or_locals): Use
9591 ui_out_emit_list.
9592 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9593 * breakpoint.c (print_solib_event, output_thread_groups): Use
9594 ui_out_emit_list.
9595
9596 2017-04-22 Tom Tromey <tom@tromey.com>
9597
9598 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9599 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9600 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9601
9602 2017-04-22 Tom Tromey <tom@tromey.com>
9603
9604 * tracepoint.c (tvariables_info_1)
9605 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9606
9607 2017-04-22 Tom Tromey <tom@tromey.com>
9608
9609 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9610 annotate_arg_emitter.
9611 * breakpoint.c (print_mention_watchpoint)
9612 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9613 * annotate.h (struct annotate_arg_emitter): New.
9614
9615 2017-04-22 Tom Tromey <tom@tromey.com>
9616
9617 * record-btrace.c (record_btrace_insn_history)
9618 (record_btrace_insn_history_range, record_btrace_call_history)
9619 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9620 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9621 ui_out_emit_tuple.
9622 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9623 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9624 * skip.c (skip_info): Use ui_out_emit_tuple.
9625 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9626 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9627 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9628 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9629 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9630 ui_out_emit_tuple.
9631 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9632 (output_register, mi_cmd_data_read_memory)
9633 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9634 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9635 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9636 Use ui_out_emit_tuple.
9637 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9638 ui_out_emit_tuple.
9639 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9640 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9641 * linux-thread-db.c (info_auto_load_libthread_db): Use
9642 ui_out_emit_tuple.
9643 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9644 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9645 * disasm.c (do_mixed_source_and_assembly_deprecated)
9646 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9647 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9648 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9649 * breakpoint.c (print_one_breakpoint_location)
9650 (print_one_breakpoint): Use ui_out_emit_tuple.
9651 * auto-load.c (print_script, info_auto_load_cmd): Use
9652 ui_out_emit_tuple.
9653 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9654
9655 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9656
9657 * thread.c (print_thread_info_1): Remove dead code.
9658
9659 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9660
9661 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9662 GDB_SELF_TEST.
9663 * arm-tdep.c (selftests::arm_record_test): Likewise.
9664
9665 2017-04-21 Yao Qi <yao.qi@linaro.org>
9666
9667 * regcache.c (regcache_restore): Remove argument 2. Replace
9668 argument 3 with regcache. Get register status from
9669 src->register_status and get register contents from
9670 register_buffer (src, regnum).
9671 (regcache_cpy): Update.
9672
9673 2017-04-19 Pedro Alves <palves@redhat.com>
9674
9675 * gdbthread.h (thread): Add missing closing parenthesis in
9676 comment.
9677
9678 2017-04-19 Pedro Alves <palves@redhat.com>
9679
9680 * common/refcounted-object.h: New file.
9681 * gdbthread.h: Include "common/refcounted-object.h".
9682 (thread_info): Inherit from refcounted_object and add comments.
9683 (thread_info::incref, thread_info::decref)
9684 (thread_info::m_refcount): Delete.
9685 (thread_info::deletable): Use the refcounted_object::refcount()
9686 method.
9687 * inferior.c (current_inferior_): Add comment.
9688 (set_current_inferior): Increment/decrement refcounts.
9689 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9690 not-deletable instead of comparing with the current inferior.
9691 (initialize_inferiors): Increment the initial inferior's refcount.
9692 * inferior.h (struct inferior): Forward declare.
9693 Include "common/refcounted-object.h".
9694 (current_inferior, set_current_inferior): Move declaration to
9695 before struct inferior's definition, and fix comment.
9696 (inferior): Inherit from refcounted_object. Add comments.
9697 * thread.c (switch_to_thread_no_regs): Reference the thread's
9698 inferior pointer directly instead of doing a ptid lookup.
9699 (switch_to_no_thread): New function.
9700 (switch_to_thread(thread_info *)): New function, factored out
9701 from ...
9702 (switch_to_thread(ptid_t)): ... this.
9703 (restore_current_thread): Delete.
9704 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9705 fields, and add 'inf' field.
9706 (do_restore_current_thread_cleanup): Check whether old->inf is
9707 alive instead of looking up an inferior by ptid. Use
9708 switch_to_thread and switch_to_no_thread.
9709 (restore_current_thread_cleanup_dtor): Use old->inf directly
9710 instead of lookup up an inferior by id. Decref the inferior.
9711 Don't restore 'removable'.
9712 (make_cleanup_restore_current_thread): Same the inferior pointer
9713 in old, instead of the inferior number. Incref the inferior.
9714 Don't save/clear 'removable'.
9715
9716 2017-04-19 Pedro Alves <palves@redhat.com>
9717
9718 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9719 unittests/scoped_restore-selftests.c.
9720 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9721 * common/scoped_restore.h (scoped_restore_base): Make "class".
9722 (scoped_restore_base::release): New public method.
9723 (scoped_restore_base::scoped_restore_base): New protected ctor.
9724 (scoped_restore_base::m_saved_var): New protected field.
9725 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9726 scoped_restore_base base class instead of m_saved_var directly.
9727 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9728 (scoped_restore_tmpl::scoped_restore_tmpl(const
9729 scoped_restore_tmpl<T>&)): Likewise.
9730 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9731 method.
9732 (scoped_restore_tmpl::saved_var): New method.
9733 (scoped_restore_tmpl::m_saved_var): Delete.
9734 * inferior.h (inferior::detaching): Now a bool.
9735 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9736 cleanup.
9737 * unittests/scoped_restore-selftests.c: New file.
9738
9739 2017-04-19 Pedro Alves <palves@redhat.com>
9740
9741 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9742 Re-sort in alphabetic order.
9743
9744 2017-04-18 Pedro Alves <palves@redhat.com>
9745
9746 * xml-support.c (obstack_xml_printf): Delete.
9747 * xml-support.h (obstack_xml_printf): Delete.
9748
9749 2017-04-18 Pedro Alves <palves@redhat.com>
9750
9751 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9752 vdebug, verror, body_text, start_element, end_element, name,
9753 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9754 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9755 is_xinclude>: Make private and add m_ prefix.
9756 (gdb_xml_parser::body_text): New method, based on ...
9757 (gdb_xml_body_text): ... this. Adjust.
9758 (gdb_xml_parser::vdebug): New method, based on ...
9759 (gdb_xml_debug): ... this. Adjust.
9760 (gdb_xml_parser::verror): New method, based on ...
9761 (gdb_xml_error): ... this. Adjust.
9762 (gdb_xml_parser::start_element): New method, based on ...
9763 (gdb_xml_start_element): ... this. Adjust.
9764 (gdb_xml_start_element_wrapper): Defer to
9765 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9766 (gdb_xml_parser::end_element): New method, based on ...
9767 (gdb_xml_end_element_wrapper): ... this. Adjust.
9768 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9769 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9770 (gdb_xml_parser::use_dtd): New method, based on ...
9771 (gdb_xml_use_dtd): ... this. Adjust.
9772 (gdb_xml_parser::parse): New method, based on ...
9773 (gdb_xml_parse): ... this. Adjust.
9774 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9775 (xinclude_start_include): Adjust to call the parser's name method.
9776 (xml_xinclude_default, xml_xinclude_start_doctype)
9777 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9778 method.
9779 (xml_process_xincludes): Adjust to call parser methods.
9780 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9781 declarations.
9782
9783 2017-04-18 Pedro Alves <palves@redhat.com>
9784
9785 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9786 gdb::optional<std::string>.
9787 * xml-support.c: Include <string>.
9788 (scope_level::scope_level(scope_level &&))
9789 (scope_level::~scope_level): Delete.
9790 (scope_level::body): Now a std::string.
9791 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9792 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9793 parameter.
9794 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9795 (xinclude_parsing_data::output): Now a std::string reference.
9796 (xinclude_start_include): Adjust.
9797 (xml_xinclude_default): Adjust.
9798 (xml_process_xincludes): Add 'output' parameter, and return bool.
9799 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9800 and return bool.
9801 * xml-tdesc.c: Include <unordered_map> and <string>.
9802 (tdesc_xml_cache): Delete.
9803 (tdesc_xml_cache_s): Delete.
9804 (xml_cache): Now an std::unordered_map.
9805 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9806 (target_fetch_description_xml): Change return type to
9807 gdb::optional<std::string>, and adjust.
9808 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9809 (target_fetch_description_xml): Change return type to
9810 gdb::optional<std::string>.
9811
9812 2017-04-18 Pedro Alves <palves@redhat.com>
9813
9814 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9815 unittests/optional-selftests.c.
9816 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9817 * unittests/optional-selftests.c: New file.
9818 * unittests/optional/assignment/1.cc: New file.
9819 * unittests/optional/assignment/2.cc: New file.
9820 * unittests/optional/assignment/3.cc: New file.
9821 * unittests/optional/assignment/4.cc: New file.
9822 * unittests/optional/assignment/5.cc: New file.
9823 * unittests/optional/assignment/6.cc: New file.
9824 * unittests/optional/assignment/7.cc: New file.
9825 * unittests/optional/cons/copy.cc: New file.
9826 * unittests/optional/cons/default.cc: New file.
9827 * unittests/optional/cons/move.cc: New file.
9828 * unittests/optional/cons/value.cc: New file.
9829 * unittests/optional/in_place.cc: New file.
9830 * unittests/optional/observers/1.cc: New file.
9831 * unittests/optional/observers/2.cc: New file.
9832
9833 2017-04-18 Pedro Alves <palves@redhat.com>
9834
9835 * common/gdb_optional.h: Include common/traits.h.
9836 (in_place_t): New type.
9837 (in_place): New constexpr variable.
9838 (optional::optional): Remove member initialization of
9839 m_instantiated.
9840 (optional::optional(in_place_t...)): New constructor.
9841 (optional::~optional): Use reset.
9842 (optional::optional(const optional&)): New.
9843 (optional::optional(const optional&&)): New.
9844 (optional::optional(T &)): New.
9845 (optional::optional(T &&)): New.
9846 (operator::operator=(const optional &)): New.
9847 (operator::operator=(optional &&)): New.
9848 (operator::operator= (const T &))
9849 (operator::operator= (T &&))
9850 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9851 (operator::reset): New.
9852 (operator::m_instantiated):: Add in-class initializer.
9853 * common/traits.h: Include <type_traits>.
9854 (struct And): New types.
9855
9856 2017-04-18 Pedro Alves <palves@redhat.com>
9857
9858 * xml-support.c: Include <vector>.
9859 (scope_level::scope_level(const gdb_xml_element *))
9860 (scope_level::scope_level(scope_level&&)): New.
9861 (scope_level::~scope_level): New.
9862 (scope_level_s): Delete.
9863 (gdb_xml_parser::scopes): Now a std::vector.
9864 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9865 Use std::vector.
9866 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
9867 scope cleanup code.
9868 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
9869 of the scopes member. Use std::vector::emplace_back.
9870
9871 2017-04-18 Pedro Alves <palves@redhat.com>
9872
9873 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
9874 a bool.
9875 (gdb_xml_end_element): Change type of first parameter.
9876 (gdb_xml_cleanup): Rename to ...
9877 (gdb_xml_parser::~gdb_xml_parser): ... this.
9878 (gdb_xml_create_parser_and_cleanup): Delete with ...
9879 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
9880 to this new ctor.
9881 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
9882 using gdb_xml_create_parser_and_cleanup.
9883 (xinclude_parsing_data): Add ctor/dtor.
9884 (xml_xinclude_cleanup): Delete.
9885 (xml_process_xincludes): Create a local xinclude_parsing_data
9886 instead of heap-allocating one. Create a local gdb_xml_parser
9887 instead of heap-allocating one with
9888 gdb_xml_create_parser_and_cleanup.
9889
9890 2017-04-18 John Baldwin <jhb@FreeBSD.org>
9891
9892 PR threads/20743
9893 * fbsd-nat.c (resume_one_thread_cb): Remove.
9894 (resume_all_threads_cb): Remove.
9895 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
9896 iterate_over_threads.
9897
9898 2017-04-17 Joel Brobecker <brobecker@adacore.com>
9899
9900 * NEWS: Create a new section for the next release branch.
9901 Rename the section of the current branch, now that it has
9902 been cut.
9903
9904 2017-04-17 Joel Brobecker <brobecker@adacore.com>
9905
9906 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
9907 * version.in: Bump version to 8.0.50.DATE-git.
9908
9909 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
9910
9911 PR gdb/21385
9912 * windows-nat.c (windows_create_inferior): Declare 'allargs'
9913 independently of the host, and fix build breakage on Cygwin.
9914
9915 2017-04-13 Pedro Alves <palves@redhat.com>
9916
9917 * inferior.c (free_inferior): Convert to ...
9918 (inferior::~inferior): ... this dtor.
9919 (inferior::inferior): New ctor, factored out from ...
9920 (add_inferior_silent): ... here. Allocate the inferior with a new
9921 expression.
9922 (delete_inferior): Call delete instead of free_inferior.
9923 * inferior.h (gdb_environ, continuation): Forward declare.
9924 (inferior): Now a class. Add in-class initialization to all
9925 members. Make boolean fields bool, except 'detaching'.
9926 (inferior::inferior): New explicit ctor.
9927 (inferior::~inferior): New.
9928
9929 2017-04-13 Pedro Alves <palves@redhat.com>
9930
9931 * inferior.c (init_inferior_list): Delete.
9932 * inferior.h (init_inferior_list): Delete.
9933
9934 2017-04-13 Pedro Alves <palves@redhat.com>
9935
9936 PR threads/13217
9937 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
9938 (top level): Call it twice, with different thread sets.
9939
9940 2017-04-13 Pedro Alves <palves@redhat.com>
9941
9942 * thread.c: Include <algorithm>.
9943 (thread_array_cleanup): Delete.
9944 (scoped_inc_dec_ref): New class.
9945 (live_threads_count): New function.
9946 (set_thread_refcount): Delete.
9947 (tp_array_compar_ascending): Now a bool.
9948 (tp_array_compar): Convert to a std::sort comparison function.
9949 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
9950 and live_threads_count.
9951
9952 2017-04-13 Pedro Alves <palves@redhat.com>
9953
9954 * infrun.c (follow_fork_inferior): Also switch the current
9955 inferior.
9956
9957 2017-04-13 Pedro Alves <palves@redhat.com>
9958
9959 * breakpoint.c (watch_command_1): Save watchpoint-frame info
9960 before calling create_internal_breakpoint.
9961
9962 2017-04-13 Pedro Alves <palves@redhat.com>
9963
9964 * fork-child.c (execv_argv): New class.
9965 (breakup_args): Refactored as ...
9966 (execv_argv::init_for_no_shell): .. this method of execv_argv.
9967 Copy arguments to storage and replace separators with NULL
9968 terminators in place.
9969 (escape_bang_in_quoted_argument): Adjust to return bool.
9970 (execv_argv::execv_argv): New ctor.
9971 (execv_argv::init_for_shell): New method, factored out from
9972 fork_inferior. Don't strdup strings into the vector.
9973 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
9974 Remove free_vector_argv call.
9975
9976 2017-04-13 Yao Qi <yao.qi@linaro.org>
9977
9978 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
9979 tdep->rx_psw_type.
9980
9981 2017-04-13 Yao Qi <yao.qi@linaro.org>
9982
9983 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
9984 * rx-tdep.c (rx_gdbarch_init): Likewise.
9985
9986 2017-04-13 Pedro Alves <palves@redhat.com>
9987
9988 * breakpoint.h (struct breakpoint): Reindent.
9989
9990 2017-04-13 Pedro Alves <palves@redhat.com>
9991
9992 * breakpoint.c (bp_location): Rename to ...
9993 (bp_locations): ... this. All references updated.
9994 (bp_location_count): Rename to ...
9995 (bp_locations_count): ... this. All references updated.
9996 (bp_location_placed_address_before_address_max): Rename to ...
9997 (bp_locations_placed_address_before_address_max): ... this. All
9998 references updated.
9999 (bp_location_shadow_len_after_address_max): Rename to ...
10000 (bp_locations_shadow_len_after_address_max): ... this. All
10001 references updated.
10002 (bp_location_compare_addrs): Rename to ...
10003 (bp_locations_compare_addrs): ... this. All references updated.
10004 (bp_location_compare):Rename to ...
10005 (bp_locations_compare): ... this. All references updated.
10006 (bp_location_target_extensions_update): Rename to ...
10007 (bp_locations_target_extensions_update): ... this. All references
10008 updated.
10009
10010 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10011
10012 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10013 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10014 'sgtty.h'.
10015 * common/gdb_termios.h: New file, with parts of "terminal.h".
10016 * inflow.c: Include "gdb_termios.h".
10017 * ser-unix.c: Include "gdb_termios.h".
10018 * terminal.h: Move terminal-related defines to
10019 "common/gdb_termios.h".
10020
10021 2017-04-12 Tom Tromey <tom@tromey.com>
10022
10023 * probe.c (parse_probes): Update.
10024 * location.h (delete_event_location): Don't declare.
10025 (event_location_deleter::operator()): Update.
10026 * location.c (event_location_deleter::operator()): Rename from
10027 delete_event_location.
10028 * linespec.h (linespec_result) <location>: Change type to
10029 event_location_up.
10030 * linespec.c (canonicalize_linespec, event_location_to_sals)
10031 (decode_objc): Update.
10032 (linespec_result): Don't call delete_event_location.
10033 * breakpoint.c (create_breakpoints_sal)
10034 (bkpt_probe_create_sals_from_location)
10035 (strace_marker_create_sals_from_location): Update.
10036
10037 2017-04-12 Tom Tromey <tom@tromey.com>
10038
10039 * linespec.h (struct linespec_result): Add constructor and
10040 destructor.
10041 (init_linespec_result, destroy_linespec_result)
10042 (make_cleanup_destroy_linespec_result): Don't declare.
10043 * linespec.c (init_linespec_result): Remove.
10044 (linespec_result::~linespec_result): Rename from
10045 destroy_linespec_result. Update.
10046 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10047 Remove.
10048 * breakpoint.c (create_breakpoint, break_range_command)
10049 (decode_location_default): Update.
10050 * ax-gdb.c (agent_command_1): Update.
10051
10052 2017-04-12 Tom Tromey <tom@tromey.com>
10053
10054 * remote.c (remote_download_tracepoint): Update.
10055 * python/py-breakpoint.c (bppy_get_location): Update.
10056 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10057 (gdbscm_breakpoint_location): Update.
10058 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10059 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10060 Change type to event_location_up.
10061 * breakpoint.c (create_overlay_event_breakpoint)
10062 (create_longjmp_master_breakpoint)
10063 (create_std_terminate_master_breakpoint)
10064 (create_exception_master_breakpoint)
10065 (breakpoint_event_location_empty_p, print_breakpoint_location)
10066 (print_one_breakpoint_location, create_thread_event_breakpoint)
10067 (init_breakpoint_sal, create_breakpoint)
10068 (print_recreate_ranged_breakpoint, break_range_command)
10069 (init_ada_exception_breakpoint, say_where): Update.
10070 (base_breakpoint_dtor): Don't call delete_event_location.
10071 (bkpt_print_recreate, tracepoint_print_recreate)
10072 (dprintf_print_recreate, update_static_tracepoint)
10073 (breakpoint_re_set_default): Update.
10074
10075 2017-04-12 Tom Tromey <tom@tromey.com>
10076
10077 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10078 type of "to_do". Update.
10079 (compute_stack_depth): Use std::vector.
10080
10081 2017-04-12 Tom Tromey <tom@tromey.com>
10082
10083 * printcmd.c (find_instruction_backward): Use std::vector.
10084
10085 2017-04-12 Tom Tromey <tom@tromey.com>
10086
10087 * symfile.c (objfilep): Remove typedef.
10088 (reread_symbols): Use a std::vector.
10089
10090 2017-04-12 Tom Tromey <tom@tromey.com>
10091
10092 * mi/mi-main.c (exec_direction_forward): Remove.
10093 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10094 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10095 scoped_restore.
10096 * guile/guile.c (guile_repl_command, guile_command)
10097 (gdbscm_execute_gdb_command): Use scoped_restore.
10098 * go-exp.y (go_parse): Use scoped_restore.
10099 * d-exp.y (d_parse): Use scoped_restore.
10100 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10101 * c-exp.y (c_parse): Use scoped_restore.
10102
10103 2017-04-12 Tom Tromey <tom@tromey.com>
10104
10105 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10106 (mi_parse): Update return type.
10107 (mi_parse_free): Remove.
10108 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10109 (mi_parse::~mi_parse): Rename from mi_parse_free.
10110 (mi_parse_cleanup): Remove.
10111 (mi_parse): Return a unique_ptr. Use new.
10112 * mi/mi-main.c (mi_execute_command): Update.
10113
10114 2017-04-12 Tom Tromey <tom@tromey.com>
10115
10116 * location.c (explicit_location_lex_one): Return a
10117 unique_xmalloc_ptr.
10118 (string_to_explicit_location): Update. Remove cleanups.
10119
10120 2017-04-12 Tom Tromey <tom@tromey.com>
10121
10122 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10123 (compare_value_and_voffset): Change type. Update.
10124 (compute_vtable_size): Change type of "offset_vec".
10125 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10126 (gnuv3_get_typeid): Remove extraneous declaration.
10127
10128 2017-04-12 Tom Tromey <tom@tromey.com>
10129
10130 * charset.h (wchar_iterator): Fix comment.
10131
10132 2017-04-12 Tom Tromey <tom@tromey.com>
10133
10134 * charset.c (iconv_wrapper): New class.
10135 (cleanup_iconv): Remove.
10136 (convert_between_encodings): Use it.
10137
10138 2017-04-12 Tom Tromey <tom@tromey.com>
10139
10140 * symfile.h (increment_reading_symtab): Update type.
10141 * symfile.c (decrement_reading_symtab): Remove.
10142 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10143 * psymtab.c (psymtab_to_symtab): Update.
10144 * dwarf2read.c (dw2_instantiate_symtab): Update.
10145
10146 2017-04-12 Tom Tromey <tom@tromey.com>
10147
10148 * jit.c (struct jit_reader): Declare separately. Add constructor
10149 and destructor. Change type of "handle".
10150 (loaded_jit_reader): Define separately.
10151 (jit_reader_load): Update. New "new".
10152 (jit_reader_unload_command): Use "delete".
10153 * gdb-dlfcn.h (struct dlclose_deleter): New.
10154 (gdb_dlhandle_up): New typedef.
10155 (gdb_dlopen, gdb_dlsym): Update types.
10156 (gdb_dlclose): Remove.
10157 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10158 (gdb_dlsym): Change type of "handle".
10159 (make_cleanup_dlclose): Remove.
10160 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10161 * compile/compile-c-support.c (load_libcc): Update.
10162
10163 2017-04-12 Tom Tromey <tom@tromey.com>
10164
10165 * symtab.h (find_pcs_for_symtab_line): Change return type.
10166 * symtab.c (find_pcs_for_symtab_line): Change return type.
10167 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10168 type of "vec". Update.
10169 (ltpy_get_pcs_for_line): Update.
10170 * linespec.c (decode_digits_ordinary): Update.
10171
10172 2017-04-12 Tom Tromey <tom@tromey.com>
10173
10174 * tracepoint.c (actions_command): Update.
10175 * python/python.c (python_command, python_interactive_command):
10176 Update.
10177 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10178 * guile/guile.c (guile_command): Update.
10179 * defs.h (read_command_lines, read_command_lines_1): Return
10180 command_line_up.
10181 (command_lines_deleter): New struct.
10182 (command_line_up): New typedef.
10183 * compile/compile.c (compile_code_command)
10184 (compile_print_command): Update.
10185 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10186 command_line_up.
10187 (make_cleanup_free_command_lines): Remove.
10188 * cli/cli-script.c (get_command_line, read_command_lines_1)
10189 (copy_command_lines): Return command_line_up.
10190 (while_command, if_command, read_command_lines, define_command)
10191 (document_command): Update.
10192 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10193 Remove.
10194 * breakpoint.h (breakpoint_set_commands): Change type of
10195 "commands".
10196 * breakpoint.c (breakpoint_set_commands): Change type of
10197 "commands". Update.
10198 (do_map_commands_command, update_dprintf_command_list)
10199 (create_tracepoint_from_upload): Update.
10200
10201 2017-04-12 Tom Tromey <tom@tromey.com>
10202
10203 * tracepoint.c (scope_info): Update.
10204 * spu-tdep.c (spu_catch_start): Update.
10205 * python/python.c (gdbpy_decode_line): Update.
10206 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10207 * python/py-breakpoint.c (bppy_init): Update.
10208 * probe.c (parse_probes): Update.
10209 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10210 * location.h (event_location_deleter): New struct.
10211 (event_location_up): New typedef.
10212 (new_linespec_location, new_address_location, new_probe_location)
10213 (new_explicit_location, copy_event_location)
10214 (string_to_event_location, string_to_event_location_basic)
10215 (string_to_explicit_location): Update return type.
10216 (make_cleanup_delete_event_location): Remove.
10217 * location.c (new_linespec_location, new_address_location)
10218 (new_probe_location, new_explicit_location, copy_event_location):
10219 Return event_location_up.
10220 (delete_event_location_cleanup)
10221 (make_cleanup_delete_event_location): Remove.
10222 (string_to_explicit_location, string_to_event_location_basic)
10223 (string_to_event_location): Return event_location_up.
10224 * linespec.c (canonicalize_linespec, event_location_to_sals)
10225 (decode_line_with_current_source)
10226 (decode_line_with_last_displayed, decode_objc): Update.
10227 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10228 * completer.c (location_completer): Update.
10229 * cli/cli-cmds.c (edit_command, list_command): Update.
10230 * breakpoint.c (create_overlay_event_breakpoint)
10231 (create_longjmp_master_breakpoint)
10232 (create_std_terminate_master_breakpoint)
10233 (create_exception_master_breakpoint)
10234 (create_thread_event_breakpoint): Update.
10235 (init_breakpoint_sal): Update. Remove some dead code.
10236 (create_breakpoint_sal): Change type of "location". Update.
10237 (create_breakpoints_sal, create_breakpoint, break_command_1)
10238 (dprintf_command, break_range_command, until_break_command)
10239 (init_ada_exception_breakpoint)
10240 (strace_marker_create_sals_from_location)
10241 (update_static_tracepoint, trace_command, ftrace_command)
10242 (strace_command, create_tracepoint_from_upload): Update.
10243 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10244 * ax-gdb.c (agent_command_1): Update.
10245
10246 2017-04-12 Pedro Alves <palves@redhat.com>
10247
10248 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10249 * configure.tgt: Handle i[34567]86-*-go32* and
10250 i[34567]86-*-msdosdjgpp*.
10251 * i386-tdep.c (i386_svr4_reg_to_regnum):
10252 Make extern.
10253 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10254 i386-go32-tdep.c.
10255 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10256 * i386-go32-tdep.c: New file.
10257 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10258 declarations.
10259
10260 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10261
10262 * aix-thread.c (pd_status2str): Change return type to const char *.
10263
10264 2017-04-12 Pedro Alves <palves@redhat.com>
10265
10266 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10267 calls to set_gdbarch_gnu_triplet_regexp.
10268
10269 2017-04-12 Pedro Alves <palves@redhat.com>
10270
10271 PR gdb/21323
10272 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10273 New enum value.
10274 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10275 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10276 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10277 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10278 * gdbarch.h, gdbarch.c: Regenerate.
10279 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10280 gdbarch_wchar_bit and gdbarch_wchar_signed.
10281 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10282 * arm-tdep.c (arm_gdbarch_init): Likewise.
10283 * avr-tdep.c (avr_gdbarch_init): Likewise.
10284 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10285 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10286 * i386-tdep.c (i386_go32_init_abi): Likewise.
10287 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10288 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10289 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10290 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10291 * sh-tdep.c (sh_gdbarch_init): Likewise.
10292 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10293 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10294 * windows-tdep.c (windows_init_abi): Likewise.
10295 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10296
10297 2017-04-12 Pedro Alves <palves@redhat.com>
10298
10299 PR c++/21323
10300 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10301 cplus_primitive_type_char32_t>: New enum values.
10302 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10303 and cplus_primitive_type_char32_t.
10304 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10305 32, use the archtecture's built-in type for char16_t and char32_t,
10306 respectively. Otherwise, fallback to init_integer_type as before,
10307 but make the type unsigned, and issue a complaint.
10308 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10309
10310 2017-04-12 Alan Hayward <alan.hayward@arm.com>
10311
10312 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
10313 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10314
10315 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10316
10317 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10318 'const char *'.
10319
10320 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10321
10322 * common/common-utils.c (free_vector_argv): New function.
10323 * common/common-utils.h: Include <vector>.
10324 (free_vector_argv): New prototype.
10325 * darwin-nat.c (darwin_create_inferior): Rewrite function
10326 prototype in order to constify "exec_file" and accept a
10327 "std::string" for "allargs".
10328 * fork-child.c: Include <vector>.
10329 (breakup_args): Rewrite function, using C++.
10330 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10331 and accept "std::string" for "allargs". Update the code to
10332 calculate "argv" based on "allargs". Update calls to "exec_fun"
10333 and "execvp".
10334 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10335 order to constify "exec_file" and accept a "std::string" for
10336 "allargs".
10337 * go32-nat.c (go32_create_inferior): Likewise.
10338 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10339 * infcmd.c (run_command_1): Constify "exec_file". Use
10340 "std::string" for inferior arguments.
10341 * inferior.h (fork_inferior): Update prototype.
10342 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10343 prototype in order to constify "exec_file" and accept a
10344 "std::string" for "allargs".
10345 * nto-procfs.c (procfs_create_inferior): Likewise.
10346 * procfs.c (procfs_create_inferior): Likewise.
10347 * remote-sim.c (gdbsim_create_inferior): Likewise.
10348 * remote.c (extended_remote_run): Update code to accept
10349 "std::string" as argument.
10350 (extended_remote_create_inferior): Rewrite function prototype in
10351 order to constify "exec_file" and accept a "std::string" for
10352 "allargs".
10353 * rs6000-nat.c (super_create_inferior): Likewise.
10354 (rs6000_create_inferior): Likewise.
10355 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10356 * windows-nat.c (windows_create_inferior): Likewise.
10357
10358 2017-04-11 Pedro Alves <palves@redhat.com>
10359
10360 * thread.c: Fix whitespace throughout.
10361
10362 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10363
10364 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10365
10366 2017-04-11 Alan Hayward <alan.hayward@arm.com>
10367
10368 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10369
10370 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10371
10372 PR gdb/21364
10373 * osdata.c (info_osdata): Check if 'type' is an empty string
10374 instead of NULL.
10375
10376 2017-04-10 Pedro Alves <palves@redhat.com>
10377
10378 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10379 (ptid_to_global_thread_id, in_thread_list)
10380 (do_captured_list_thread_ids, set_resumed, set_running)
10381 (set_executing, set_stop_requested, finish_thread_state)
10382 (validate_registers_access, can_access_registers_ptid)
10383 (print_thread_info_1, switch_to_thread)
10384 (do_restore_current_thread_cleanup)
10385 (make_cleanup_restore_current_thread, thread_command)
10386 (thread_name_command): Use operator== instead of ptid_equal.
10387
10388 2017-04-10 Pedro Alves <palves@redhat.com>
10389
10390 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10391 (current_thread_cleanup_chain): Delete.
10392 (restore_current_thread_cleanup_dtor)
10393 (make_cleanup_restore_current_thread): Remove references to
10394 current_thread_cleanup_chain.
10395
10396 2017-04-10 Alan Hayward <alan.hayward@arm.com>
10397
10398 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10399 REG_UNKNOWN.
10400
10401 2017-04-10 Yao Qi <yao.qi@linaro.org>
10402
10403 PR gdb/19942
10404 * gdbthread.h (thread_info::deletable): New method.
10405 (thread_info::incref): New method.
10406 (thread_info::decref): New method.
10407 (thread_info::refcount): Move it to private.
10408 * infrun.c (save_stop_context): Call inc_refcount.
10409 (release_stop_context_cleanup): Likewise.
10410 * thread.c (set_thread_exited): New function.
10411 (init_thread_list): Delete "tp" only it is deletable, otherwise
10412 call set_thread_exited.
10413 (delete_thread_1): Call set_thread_exited.
10414 (current_thread_cleanup) <inferior_pid>: Remove.
10415 <thread>: New field.
10416 (restore_current_thread_ptid_changed): Removed.
10417 (do_restore_current_thread_cleanup): Adjust.
10418 (restore_current_thread_cleanup_dtor): Don't call
10419 find_thread_ptid.
10420 (set_thread_refcount): Use dec_refcount.
10421 (make_cleanup_restore_current_thread): Adjust.
10422 (thread_apply_all_command): Call inc_refcount.
10423 (_initialize_thread): Don't call
10424 observer_attach_thread_ptid_changed.
10425
10426 2017-04-10 Yao Qi <yao.qi@linaro.org>
10427
10428 * thread.c (delete_thread_1): Hoist code on marking thread as
10429 exited.
10430
10431 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10432
10433 * windows-nat.c (windows_detach): Initialize ptid with
10434 minus_one_ptid.
10435
10436 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10437
10438 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10439
10440 2017-04-07 Alan Hayward <alan.hayward@arm.com>
10441
10442 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10443 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10444 (bfin_pseudo_register_write): Likewise
10445
10446 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10447
10448 * common/ptid.h (struct ptid): Change to...
10449 (class ptid_t): ... this.
10450 <ptid_t>: New constructors.
10451 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10452 matches>: New methods.
10453 <make_null, make_minus_one>: New static methods.
10454 <pid>: Rename to...
10455 <m_pid>: ...this.
10456 <lwp>: Rename to...
10457 <m_lwp>: ...this.
10458 <tid>: Rename to...
10459 <m_tid>: ...this.
10460 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10461 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10462 as references, move comment to class ptid_t.
10463 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10464 ptid_t static methods.
10465 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10466 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10467 Take ptid arguments as references, implement using ptid_t methods.
10468 * unittests/ptid-selftests.c: New file.
10469 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10470 unittests/ptid-selftests.c.
10471 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10472
10473 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10474
10475 * python/python.c (python_run_simple_file): Cast mode literal to
10476 non-const char pointer as expected by PyFile_FromString.
10477
10478 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10479
10480 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10481 minus_one_ptid and null_ptid.
10482
10483 2017-04-05 Pedro Alves <palves@redhat.com>
10484
10485 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10486 * configure: Regenerate.
10487
10488 2017-04-05 Pedro Alves <palves@redhat.com>
10489
10490 * ada-exp.y (yyerror): Constify.
10491 * ada-lang.c (bound_name, get_selections)
10492 (ada_variant_discrim_type)
10493 (ada_variant_discrim_name, ada_value_struct_elt)
10494 (ada_lookup_struct_elt_type, is_unchecked_variant)
10495 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10496 (catch_ada_exception_command_split)
10497 (catch_ada_assert_command_split, catch_assert_command)
10498 (ada_op_name): Constify.
10499 * ada-lang.h (ada_yyerror, get_selections)
10500 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10501 * arc-tdep.c (arc_print_frame_cache): Constify.
10502 * arm-tdep.c (arm_skip_stub): Constify.
10503 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10504 (gen_aggregate_elt_ref): Constify.
10505 * bcache.c (print_bcache_statistics): Constify.
10506 * bcache.h (print_bcache_statistics): Constify.
10507 * break-catch-throw.c (catch_exception_command_1):
10508 * breakpoint.c (struct ep_type_description::description):
10509 Constify.
10510 (add_solib_catchpoint): Constify.
10511 (catch_fork_command_1): Add cast.
10512 (add_catch_command): Constify.
10513 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10514 Constify.
10515 * bsd-uthread.c (bsd_uthread_state): Constify.
10516 * buildsym.c (patch_subfile_names): Constify.
10517 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10518 Constify.
10519 * c-exp.y (yyerror): Constify.
10520 (token::oper): Constify.
10521 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10522 * c-varobj.c (cplus_describe_child): Constify.
10523 * charset.c (find_charset_names): Add cast.
10524 (find_charset_names): Constify array and add const_cast.
10525 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10526 (edit_command): Constify.
10527 * cli/cli-decode.c (lookup_cmd): Constify.
10528 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10529 Constify.
10530 (struct dump_context): Constify.
10531 (add_dump_command, restore_command): Constify.
10532 * cli/cli-script.c (get_command_line): Constify.
10533 * cli/cli-script.h (get_command_line): Constify.
10534 * cli/cli-utils.c (check_for_argument): Constify.
10535 * cli/cli-utils.h (check_for_argument): Constify.
10536 * coff-pe-read.c (struct read_pe_section_data): Constify.
10537 * command.h (lookup_cmd): Constify.
10538 * common/print-utils.c (decimal2str): Constify.
10539 * completer.c (gdb_print_filename): Constify.
10540 * corefile.c (set_gnutarget): Constify.
10541 * cp-name-parser.y (yyerror): Constify.
10542 * cp-valprint.c (cp_print_class_member): Constify.
10543 * cris-tdep.c (cris_register_name, crisv32_register_name):
10544 Constify.
10545 * d-exp.y (yyerror): Constify.
10546 (struct token::oper): Constify.
10547 * d-lang.h (d_yyerror): Constify.
10548 * dbxread.c (struct header_file_location::name): Constify.
10549 (add_old_header_file, add_new_header_file, last_function_name)
10550 (dbx_next_symbol_text, add_bincl_to_list)
10551 (find_corresponding_bincl_psymtab, set_namestring)
10552 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10553 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10554 * defs.h (command_line_input, print_address_symbolic)
10555 (deprecated_readline_begin_hook): Constify.
10556 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10557 Constify.
10558 * event-top.c (handle_line_of_input): Constify and add cast.
10559 * exceptions.c (catch_errors): Constify.
10560 * exceptions.h (catch_errors): Constify.
10561 * expprint.c (print_subexp_standard, op_string, op_name)
10562 (op_name_standard, dump_raw_expression, dump_raw_expression):
10563 * expression.h (op_name, op_string, dump_raw_expression):
10564 Constify.
10565 * f-exp.y (yyerror): Constify.
10566 (struct token::oper): Constify.
10567 (struct f77_boolean_val::name): Constify.
10568 * f-lang.c (f_word_break_characters): Constify.
10569 * f-lang.h (f_yyerror): Constify.
10570 * fork-child.c (fork_inferior): Add cast.
10571 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10572 (new_variant): Constify.
10573 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10574 * gdbarch.c: Regenerate.
10575 * gdbcore.h (set_gnutarget): Constify.
10576 * go-exp.y (yyerror): Constify.
10577 (token::oper): Constify.
10578 * go-lang.h (go_yyerror): Constify.
10579 * go32-nat.c (go32_sysinfo): Constify.
10580 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10581 * guile/scm-cmd.c (cmdscm_function): Constify.
10582 * guile/scm-param.c (pascm_param_value): Constify.
10583 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10584 (h8300sx_register_name): Constify.
10585 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10586 Constify.
10587 * ia64-tdep.c (ia64_register_names): Constify.
10588 * infcmd.c (construct_inferior_arguments): Constify.
10589 (path_command, attach_post_wait): Constify.
10590 * language.c (show_range_command, show_case_command)
10591 (unk_lang_error): Constify.
10592 * language.h (language_defn::la_error)
10593 (language_defn::la_name_of_this): Constify.
10594 * linespec.c (decode_line_2): Constify.
10595 * linux-thread-db.c (thread_db_err_str): Constify.
10596 * lm32-tdep.c (lm32_register_name): Constify.
10597 * m2-exp.y (yyerror): Constify.
10598 * m2-lang.h (m2_yyerror): Constify.
10599 * m32r-tdep.c (m32r_register_names): Constify and make static.
10600 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10601 * m88k-tdep.c (m88k_register_name): Constify.
10602 * macroexp.c (appendmem): Constify.
10603 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10604 (upgrade_type, parse_external, parse_partial_symbols)
10605 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10606 (new_symbol): Constify.
10607 * memattr.c (mem_info_command): Constify.
10608 * mep-tdep.c (register_name_from_keyword): Constify.
10609 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10610 Constify.
10611 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10612 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10613 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10614 cast.
10615 (mi_execute_async_cli_command): Constify.
10616 * mips-tdep.c (mips_register_name): Constify.
10617 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10618 (am33_register_name, am33_2_register_name)
10619 * moxie-tdep.c (moxie_register_names): Constify.
10620 * nat/linux-osdata.c (osdata_type): Constify fields.
10621 * nto-tdep.c (nto_parse_redirection): Constify.
10622 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10623 (lookup_child_selector): Constify.
10624 (objc_methcall::name): Constify.
10625 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10626 (lookup_struct_typedef): Constify.
10627 * objfiles.c (pc_in_section): Constify.
10628 * objfiles.h (pc_in_section): Constify.
10629 * p-exp.y (struct token::oper): Constify.
10630 (yyerror): Constify.
10631 * p-lang.h (pascal_yyerror): Constify.
10632 * parser-defs.h (op_name_standard): Constify.
10633 (op_print::string): Constify.
10634 (exp_descriptor::op_name): Constify.
10635 * printcmd.c (print_address_symbolic): Constify.
10636 * psymtab.c (print_partial_symbols): Constify.
10637 * python/py-breakpoint.c (stop_func): Constify.
10638 (bppy_get_expression): Constify.
10639 * python/py-cmd.c (cmdpy_completer::name): Constify.
10640 (cmdpy_function): Constify.
10641 * python/py-event.c (evpy_add_attribute)
10642 (gdbpy_initialize_event_generic): Constify.
10643 * python/py-event.h (evpy_add_attribute)
10644 (gdbpy_initialize_event_generic): Constify.
10645 * python/py-evts.c (add_new_registry): Constify.
10646 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10647 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10648 * python/py-inferior.c (get_buffer): Add cast.
10649 * python/py-param.c (parm_constant::name): Constify.
10650 * python/py-unwind.c (fprint_frame_id): Constify.
10651 * python/python.c (gdbpy_parameter_value): Constify.
10652 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10653 * remote.c (memory_packet_config::name): Constify.
10654 (show_packet_config_cmd, remote_write_bytes)
10655 (remote_buffer_add_string):
10656 * reverse.c (exec_reverse_once): Constify.
10657 * rs6000-tdep.c (variant::name, variant::description): Constify.
10658 * rust-exp.y (rustyyerror): Constify.
10659 * rust-lang.c (rust_op_name): Constify.
10660 * rust-lang.h (rustyyerror): Constify.
10661 * serial.h (serial_ops::name): Constify.
10662 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10663 (sh_sh3e_register_name, sh_sh2e_register_name)
10664 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10665 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10666 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10667 (sh_sh4al_dsp_register_name): Constify.
10668 * sh64-tdep.c (sh64_register_name): Constify.
10669 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10670 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10671 * stabsread.c (patch_block_stabs, read_type_number)
10672 (ref_map::stabs, ref_add, process_reference)
10673 (symbol_reference_defined, define_symbol, define_symbol)
10674 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10675 (read_one_struct_field, read_struct_fields, read_baseclasses)
10676 (read_tilde_fields, read_struct_type, read_array_type)
10677 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10678 (read_huge_number, read_range_type, read_args, common_block_start)
10679 (find_name_end): Constify.
10680 * stabsread.h (common_block_start, define_symbol)
10681 (process_one_symbol, symbol_reference_defined, ref_add):
10682 * symfile.c (get_section_index, add_symbol_file_command):
10683 * symfile.h (get_section_index): Constify.
10684 * target-descriptions.c (tdesc_type::name): Constify.
10685 (tdesc_free_type): Add cast.
10686 * target.c (find_default_run_target):
10687 (add_deprecated_target_alias, find_default_run_target)
10688 (target_announce_detach): Constify.
10689 (do_option): Constify.
10690 * target.h (add_deprecated_target_alias): Constify.
10691 * thread.c (print_thread_info_1): Constify.
10692 * top.c (deprecated_readline_begin_hook, command_line_input):
10693 Constify.
10694 (init_main): Add casts.
10695 * top.h (handle_line_of_input): Constify.
10696 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10697 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10698 (tfind_command): Rename to ...
10699 (tfind_command_1): ... this and constify.
10700 (tfind_command): New function.
10701 (tfind_end_command, tfind_start_command): Adjust.
10702 (encode_source_string): Constify.
10703 * tracepoint.h (encode_source_string): Constify.
10704 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10705 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10706 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10707 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10708 * tui/tui-win.c (parse_scrolling_args): Constify.
10709 * tui/tui-windata.c (tui_erase_data_content): Constify.
10710 * tui/tui-windata.h (tui_erase_data_content): Constify.
10711 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10712 * tui/tui.c (tui_enable): Add cast.
10713 * utils.c (defaulted_query): Constify.
10714 (init_page_info): Add cast.
10715 (puts_debug, subset_compare): Constify.
10716 * utils.h (subset_compare): Constify.
10717 * varobj.c (varobj_format_string): Constify.
10718 * varobj.h (varobj_format_string): Constify.
10719 * vax-tdep.c (vax_register_name): Constify.
10720 * windows-nat.c (windows_detach): Constify.
10721 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10722 * xml-support.c (gdb_xml_end_element): Constify.
10723 * xml-tdesc.c (tdesc_start_reg): Constify.
10724 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10725 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10726 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10727
10728 2017-04-05 Pedro Alves <palves@redhat.com>
10729
10730 * proc-api.c (struct trans): Constify.
10731 (procfs_note): Constify.
10732 * proc-events.c (struct trans, syscall_table):
10733 * proc-flags.c (struct trans): Constify.
10734 * proc-utils.h (procfs_note): Constify.
10735 * proc-why.c (struct trans): Constify.
10736 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10737 (procfs_detach): Constify.
10738 * sol-thread.c (struct string_map): Constify.
10739 (td_err_string, td_state_string): Constify.
10740
10741 2017-04-05 Pedro Alves <palves@redhat.com>
10742
10743 * proc-api.c (procfs_filename): Don't initialize
10744 procfs_filename.
10745 (prepare_to_trace): Assume procfs_filename is non-NULL.
10746 (_initialize_proc_api): Give procfs_filename a default value here.
10747
10748 2017-04-05 Pedro Alves <palves@redhat.com>
10749
10750 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10751 'cond_string' parameter.
10752 (extract_exception_regexp): Constify 'string' parameter.
10753 (catch_exception_command_1): Constify.
10754 * breakpoint.c (init_catchpoint)
10755 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10756 parameter.
10757 (ep_parse_optional_if_clause, catch_fork_command_1)
10758 (catch_exec_command_1): Constify.
10759 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10760 parameter.
10761 (ep_parse_optional_if_clause): Constify.
10762 * cli/cli-utils.c (remove_trailing_whitespace)
10763 (check_for_argument): Constify.
10764 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10765 non-const overload.
10766 (check_for_argument): Likewise.
10767
10768 2017-04-05 Pedro Alves <palves@redhat.com>
10769
10770 * event-top.c (command_line_handler): Add cast to execute_command
10771 call.
10772 * record-btrace.c (cmd_record_btrace_bts_start)
10773 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10774 (cmd_record_btrace_start): Add cast to execute_command call.
10775 * record-full.c (record_full_goto_insn):
10776 * record.c (record_start, record_stop): Add cast to
10777 execute_command_to_string calls.
10778 (cmd_record_start): Add cast to execute_command calls.
10779
10780 2017-04-05 Pedro Alves <palves@redhat.com>
10781
10782 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10783 static inline function.
10784 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10785 array and use gdb_PyArg_ParseTupleAndKeywords.
10786 * python/py-cmd.c (cmdpy_init): Likewise.
10787 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10788 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10789 (infpy_search_memory): Likewise.
10790 * python/py-objfile.c (objfpy_add_separate_debug_file)
10791 (gdbpy_lookup_objfile): Likewise.
10792 * python/py-symbol.c (gdbpy_lookup_symbol)
10793 (gdbpy_lookup_global_symbol): Likewise.
10794 * python/py-type.c (gdbpy_lookup_type): Likewise.
10795 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10796 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10797 Likewise.
10798
10799 2017-04-05 Pedro Alves <palves@redhat.com>
10800
10801 * python/python-internal.h (gdb_PyGetSetDef): New type.
10802 * python/py-block.c (block_object_getset)
10803 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10804 * python/py-event.c (event_object_getset)
10805 (finish_breakpoint_object_getset): Likewise.
10806 * python/py-inferior.c (inferior_object_getset): Likewise.
10807 * python/py-infthread.c (thread_object_getset): Likewise.
10808 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10809 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10810 * python/py-objfile.c (objfile_getset): Likewise.
10811 * python/py-progspace.c (pspace_getset): Likewise.
10812 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10813 Likewise.
10814 * python/py-record.c (recpy_record_getset): Likewise.
10815 * python/py-symbol.c (symbol_object_getset): Likewise.
10816 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10817 Likewise.
10818 * python/py-type.c (type_object_getset, field_object_getset):
10819 Likewise.
10820 * python/py-value.c (value_object_getset): Likewise.
10821
10822 2017-04-05 Pedro Alves <palves@redhat.com>
10823
10824 * python/python-internal.h (gdb_PyObject_CallMethod)
10825 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10826 New functions.
10827 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10828 (PySys_GetObject, PySys_SetPath): New macros.
10829
10830 2017-04-05 Pedro Alves <palves@redhat.com>
10831
10832 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10833 info_osdata_command.
10834 * osdata.c (info_osdata_command): Rename to ...
10835 (info_osdata): ... this. Constify 'type' parameter, and remove
10836 the 'from_tty' parameter. Accept NULL TYPE.
10837 (info_osdata_command): New function.
10838 * osdata.h (info_osdata_command): Remove declaration.
10839 (info_osdata): New declaration.
10840
10841 2017-04-05 Pedro Alves <palves@redhat.com>
10842
10843 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10844 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10845 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10846 parameter.
10847 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10848 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10849 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10850 parameter.
10851 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10852 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10853 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10854 (mi_cmd_file_list_exec_source_files)
10855 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10856 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10857 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10858 parameter.
10859 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10860 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10861 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10862 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10863 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10864 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10865 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10866 'command' parameter.
10867 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
10868 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
10869 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
10870 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
10871 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
10872 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
10873 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
10874 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
10875 (mi_cmd_var_set_update_range): Constify 'command' parameter.
10876 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
10877 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
10878 parameter.
10879 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
10880 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
10881 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
10882 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
10883 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
10884 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
10885 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
10886 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
10887 (mi_cmd_data_list_changed_registers)
10888 (mi_cmd_data_write_register_values)
10889 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
10890 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
10891 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
10892 (mi_cmd_list_features, mi_cmd_list_target_features)
10893 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
10894 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
10895 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
10896 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
10897 (mi_cmd_trace_frame_collected): Constify 'command'
10898 parameter.
10899 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
10900 'command' parameter.
10901
10902 2017-04-05 Pedro Alves <palves@redhat.com>
10903
10904 * ada-lang.c (ada_completer_word_break_characters): Now a const
10905 array.
10906 (ada_get_gdb_completer_word_break_characters): Constify.
10907 * completer.c (gdb_completer_command_word_break_characters)
10908 (gdb_completer_file_name_break_characters)
10909 (gdb_completer_quote_characters): Now const arrays.
10910 (get_gdb_completer_quote_characters): Constify.
10911 (set_rl_completer_word_break_characters): New function.
10912 (set_gdb_completion_word_break_characters)
10913 (complete_line_internal): Use it.
10914 * completer.h (get_gdb_completer_quote_characters): Constify.
10915 (set_rl_completer_word_break_characters): Declare.
10916 * f-lang.c (f_word_break_characters): Constify.
10917 * language.c (default_word_break_characters): Constify.
10918 * language.h (language_defn::la_word_break_characters): Constify.
10919 (default_word_break_characters): Constify.
10920 * top.c (init_main): Use set_rl_completer_word_break_characters.
10921
10922 2017-04-05 Pedro Alves <palves@redhat.com>
10923
10924 * aix-thread.c (aix_thread_pid_to_str)
10925 (aix_thread_extra_thread_info): Constify.
10926 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
10927 * bsd-uthread.c (bsd_uthread_extra_thread_info)
10928 (bsd_uthread_pid_to_str): Constify.
10929 * corelow.c (core_pid_to_str): Constify.
10930 * darwin-nat.c (darwin_pid_to_str): Constify.
10931 * fbsd-nat.c (fbsd_pid_to_str): Constify.
10932 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
10933 Constify.
10934 * gnu-nat.c (gnu_pid_to_str): Constify.
10935 * go32-nat.c (go32_pid_to_str): Constify.
10936 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
10937 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
10938 * inferior.c (inferior_pid_to_str): Constify.
10939 * linux-nat.c (linux_nat_pid_to_str): Constify.
10940 * linux-tdep.c (linux_core_pid_to_str): Constify.
10941 * linux-thread-db.c (thread_db_pid_to_str)
10942 (thread_db_extra_thread_info): Constify.
10943 * nto-tdep.c (nto_extra_thread_info): Constify.
10944 * nto-tdep.h (nto_extra_thread_info): Constify.
10945 * obsd-nat.c (obsd_pid_to_str): Constify.
10946 * procfs.c (procfs_pid_to_str): Constify.
10947 * ravenscar-thread.c (ravenscar_extra_thread_info)
10948 (ravenscar_pid_to_str): Constify.
10949 * remote-sim.c (gdbsim_pid_to_str): Constify.
10950 * remote.c (remote_threads_extra_info, remote_pid_to_str):
10951 Constify.
10952 * sol-thread.c (solaris_pid_to_str): Constify.
10953 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
10954 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
10955 * target.c (default_pid_to_str, target_pid_to_str)
10956 (normal_pid_to_str, default_pid_to_str): Constify.
10957 * target.h (target_ops::to_pid_to_str)
10958 (target_ops::to_extra_thread_info): Constify.
10959 (target_pid_to_str, normal_pid_to_str): Constify.
10960 * windows-nat.c (windows_pid_to_str): Constify.
10961 * gdbarch.sh (core_pid_to_str): Constify.
10962 * target-delegates.c: Regenerate.
10963 * gdbarch.h, gdbarch.c: Regenerate.
10964
10965 2017-04-05 Pedro Alves <palves@redhat.com>
10966
10967 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
10968 the memory of the temporary warning_pre_print override.
10969 * utils.c (warning_pre_print): Constify.
10970 * utils.h (warning_pre_print): Constify.
10971
10972 2017-04-05 Pedro Alves <palves@redhat.com>
10973
10974 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
10975 (shell_command): New function.
10976 (make_command): Use std::string.
10977 (init_cli_cmds): Register shell_command instead of shell_escape.
10978
10979 2017-04-05 Pedro Alves <palves@redhat.com>
10980
10981 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
10982 * tracepoint.c (default_collect): Don't initialize.
10983
10984 2017-04-05 Pedro Alves <palves@redhat.com>
10985
10986 * macroexp.c (macro_buffer::shared): Now a bool.
10987 (init_buffer): Update.
10988 (init_shared_buffer): Constify 'addr' parameter.
10989 (substitute_args, expand, macro_expand, macro_expand_next): Remove
10990 casts.
10991
10992 2017-04-05 Pedro Alves <palves@redhat.com>
10993
10994 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
10995 * disasm.c (set_disassembler_options): Constify local.
10996 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
10997
10998 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
10999
11000 PR gdb/21352
11001 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11002 option.
11003
11004 2017-04-05 Yao Qi <yao.qi@linaro.org>
11005
11006 * frame.c (frame_unwind_register_unsigned): Call
11007 frame_unwind_register_value.
11008
11009 2017-04-05 Yao Qi <yao.qi@linaro.org>
11010
11011 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11012 Use gdb_test_multiple, and don't match anchor.
11013
11014 2017-04-05 Pedro Alves <palves@redhat.com>
11015
11016 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11017 (Write After Approval): Remove Simon Marchi.
11018
11019 2017-04-05 Pedro Alves <palves@redhat.com>
11020
11021 * common/gdb_optional.h (optional::optional): Make constexpr and
11022 initialize m_dummy.
11023
11024 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11025
11026 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11027 (amd64fbsd_jmp_buf_reg_offset): Remove.
11028 (amd64fbsd_supply_uthread): Remove function.
11029 (amd64fbsd_collect_uthread): Remove function.
11030 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11031 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11032 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11033 (fbsd-nat.c): Update comment.
11034 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11035 (i386fbsd_jmp_buf_reg_offset): Remove.
11036 (i386fbsd_supply_uthread): Remove function.
11037 (i386fbsd_collect_uthread): Remove function.
11038 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11039
11040 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11041
11042 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11043 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11044 * NEWS: Mention that support for FreeBSD/alpha was removed.
11045 * alpha-fbsd-tdep.c: Delete file.
11046 * config/alpha/fbsd.mh: Delete file.
11047 * configure.host: Delete alpha*-*-freebsd* and
11048 alpha*-*-kfreebsd*-gnu.
11049 * configure.tgt: Delete alpha*-*-freebsd* and
11050 alpha*-*-kfreebsd*-gnu.
11051
11052 2017-04-04 John Baldwin <jhb@FreeBSD.org>
11053
11054 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11055 amd64bsd_store_inferior_registers): Use ptid from regcache.
11056
11057 2017-04-04 Pedro Alves <palves@redhat.com>
11058
11059 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11060 data fields, make them private and add "m_" prefixes.
11061 (lnp_state_machine::lnp_state_machine): New ctor.
11062 (record_line, check_line_address, handle_set_discriminator)
11063 (handle_set_address, handle_advance_pc, handle_special_opcode)
11064 (handle_advance_line, handle_set_file, handle_negate_stmt)
11065 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11066 (end_sequence, advance_line): New methods.
11067 (m_gdbarch, m_record_lines_p): New fields.
11068 (lnp_reader_state): Delete.
11069 (dwarf_record_line): Rename to ...
11070 (lnp_state_machine::record_line): ... adjust.
11071 (init_lnp_state_machine): Delete.
11072 (lnp_state_machine::lnp_state_machine): New.
11073 (check_line_address): Rename to ...
11074 (lnp_state_machine::check_line_address): This.
11075 (dwarf_decode_lines_1): Remove reference to "reader_state".
11076 Adjust lnp_state_machine having a non-default ctor. Use bool.
11077 State machine internal state manipulation moved to
11078 lnp_state_machine methods.
11079
11080 2017-04-04 Pedro Alves <palves@redhat.com>
11081
11082 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11083 unittests/offset-type-selftests.c.
11084 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11085 * common/offset-type.h: New file.
11086 * common/preprocessor.h: New file.
11087 * common/traits.h: New file.
11088 * common/valid-expr.h: New file.
11089 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11090 sect_offset and cu_offset strong typedefs throughout.
11091 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11092 typedefs throughout.
11093 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11094 sect_offset and cu_offset strong typedefs throughout.
11095 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11096 typedefs throughout.
11097 * gdbtypes.h: Include "common/offset-type.h".
11098 (cu_offset): Now an offset type (strong typedef) instead of a
11099 struct.
11100 (sect_offset): Likewise.
11101 (union call_site_parameter_u): Rename "param_offset" field to
11102 "param_cu_off".
11103 * unittests/offset-type-selftests.c: New file.
11104
11105 2017-04-04 Pedro Alves <palves@redhat.com>
11106
11107 * common/underlying.h: New file.
11108 * dwarf2read.c: Include "common/gdb_optional.h" and
11109 "common/underlying.h".
11110 (dir_index, file_name_index): New types.
11111 (file_entry): Use them.
11112 (file_entry::include): Use to_underlying.
11113 (line_header::add_file_name): Use dir_index.
11114 (read_formatted_entries): Use gdb::optional. Read form before
11115 writting to file_entry.
11116 (dwarf_decode_line_header): Use dir_index.
11117 (lnp_state_machine::current_file): Use to_underlying.
11118 (lnp_state_machine::file): Change type to file_name_index.
11119 (dwarf_record_line): Use to_underlying.
11120 (init_lnp_state_machine): Use file_name_index.
11121 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11122
11123 2017-04-04 Pedro Alves <palves@redhat.com>
11124
11125 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11126 operator bool, has_value and get methods.
11127
11128 2017-04-04 Pedro Alves <palves@redhat.com>
11129
11130 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11131 fields.
11132 (line_header): Initialize all data fields. Change type of
11133 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11134 Change type of include_dirs to std::vector<const char *>. Remove
11135 num_include_dirs, include_dirs_size. Change type of file_names to
11136 std::vector<file_entry>. Remove num_file_names, file_names_size.
11137 (line_header::line_header): New.
11138 (line_header::add_include_dir, line_header::add_file_name): New
11139 methods.
11140 (line_header::include_dir_at): Remove NULL check.
11141 (line_header::file_name_at): Add const overload.
11142 (line_header_up): New unique_ptr typedef.
11143 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11144 std::vector. Remove free_line_header call.
11145 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11146 free_line_header call.
11147 (free_cu_line_header): Delete.
11148 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11149 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11150 Adjust to use std::vector.
11151 (free_line_header): Delete.
11152 (free_line_header_voidp): Use delete.
11153 (add_include_dir): Replace with ...
11154 (line_header::add_include_dir): ... this method. Use std::vector.
11155 (add_file_name): Replace with ...
11156 (line_header::add_file_name): ... this method. Use std::vector.
11157 (add_include_dir_stub): Delete.
11158 (read_formatted_entries): Remove memset.
11159 (dwarf_decode_line_header): Return a line_header_up instead of a
11160 raw pointer. Remove cleanup handling. Pass lambdas to
11161 read_formatted_entries. Adjust to use line_header methods.
11162 (dwarf_decode_lines_1): Adjust to use line_header methods.
11163 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11164 use std::vector.
11165
11166 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11167
11168 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11169 instead of struct ptid.
11170
11171 2017-05-04 Alan Hayward <alan.hayward@arm.com>
11172
11173 * frame.c (get_frame_register_bytes): Unwind using value.
11174 (put_frame_register_bytes): Likewise.
11175
11176 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11177
11178 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11179 aggregate-like.
11180
11181 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11182
11183 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11184
11185 2017-03-29 Yao Qi <yao.qi@linaro.org>
11186
11187 * gdbthread.h (struct thread_info): Declare constructor and
11188 destructor. Add some in-class member initializers.
11189 * thread.c (free_thread): Remove.
11190 (init_thread_list): Call delete instead of free_thread.
11191 (new_thread): Call thread_info constructor.
11192 (thread_info::thread_info): New function.
11193 (thread_info::~thread_info): New function.
11194 (delete_thread_1): Call delete instead of free_thread.
11195 (make_cleanup_restore_current_thread): Move tp and frame to
11196 inner block.
11197
11198 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11199
11200 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11201 (arc_skip_prologue): Likewise.
11202 (arc_make_frame_cache): Likewise.
11203 (arc_pv_get_operand): New function.
11204 (arc_is_in_prologue): Likewise.
11205 (arc_analyze_prologue): Likewise.
11206 (arc_print_frame_cache): Likewise.
11207 (MAX_PROLOGUE_LENGTH): New constant.
11208
11209 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11210
11211 * configure.tgt: Add arc-insn.o.
11212 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11213 (dump_arc_instruction_command): New function.
11214 (arc_fprintf_disasm): Likewise.
11215 (arc_disassemble_info): Likewise.
11216 (arc_insn_get_operand_value): Likewise.
11217 (arc_insn_get_operand_value_signed): Likewise.
11218 (arc_insn_get_memory_base_reg): Likewise.
11219 (arc_insn_get_memory_offset): Likewise.
11220 (arc_insn_get_branch_target): Likewise.
11221 (arc_insn_dump): Likewise.
11222 (arc_insn_get_linear_next_pc): Likewise.
11223 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11224 (arc_disassemble_info): Likewise.
11225 (arc_insn_get_branch_target): Likewise.
11226 (arc_insn_get_linear_next_pc): Likewise.
11227 * NEWS: Mention new "maint print arc arc-instruction".
11228
11229 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11230
11231 * arc-tdep (maintenance_print_arc_list): New variable.
11232 (maintenance_print_arc_command): New function.
11233
11234 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11235
11236 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11237 Add "limm" and "reserved".
11238 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11239 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11240 * arc-tdep.h (arc_regnum): Likewise.
11241
11242 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11243
11244 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11245 for THREADPTR register.
11246 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11247 register.
11248 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11249 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11250 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11251
11252 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11253
11254 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11255 registers above gdbarch_num_regs (gdbarch) as privileged in
11256 call0 ABI.
11257
11258 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11259
11260 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11261 for a single specified register or for all registers in
11262 a0_base..a0_base + C0_NREGS range.
11263 (supply_gregset_reg): Call regcache_raw_supply for a single
11264 specified register or for all registers in a0_base..a0_base +
11265 C0_NREGS range.
11266
11267 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11268
11269 * arch/xtensa.h (C0_NREGS): Add definition.
11270 * xtensa-tdep.c (C0_NREGS): Remove definition.
11271
11272 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11273
11274 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11275 Drop xtensa_default_isa initialization.
11276 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11277
11278 2017-03-27 Pedro Alves <palves@redhat.com>
11279
11280 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11281 (file_entry::include_dir): New method.
11282 (line_header::include_dir_at, line_header::file_name_at): New
11283 methods.
11284 (setup_type_unit_groups, setup_type_unit_groups)
11285 (psymtab_include_file_name): Simplify using the new methods.
11286 (lnp_state_machine) <the_line_header>: New field.
11287 <file>: Add comment.
11288 (lnp_state_machine::current_file): New method.
11289 (dwarf_record_line): Simplify using the new methods.
11290 (init_lnp_state_machine): Initialize the "the_line_header" field.
11291 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11292 Simplify using the new methods.
11293
11294 2017-03-27 Pedro Alves <palves@redhat.com>
11295
11296 * cp-name-parser.y (make_empty): Delete.
11297 (demangler_special, nested_name, ptr_operator, array_indicator)
11298 (direct_declarator, declarator_1): Use fill_comp instead of
11299 make_empty.
11300
11301 2017-03-27 Pedro Alves <palves@redhat.com>
11302
11303 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11304 to ATTRIBUTE_PRINTF.
11305 * solib-target.c (library_list_start_list): Print "string" not
11306 "version".
11307 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11308 gdb_xml_error call.
11309
11310 2017-03-27 Pedro Alves <palves@redhat.com>
11311
11312 * dwarf2read.c (struct file_and_directory): New.
11313 (dwarf2_get_dwz_file): Adjust to use std::string.
11314 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11315 (find_file_and_directory): Adjust to return a file_and_directory
11316 object.
11317 (read_file_scope): Adjust to use file_and_directory. Remove
11318 make_cleanup/do_cleanups calls.
11319 (open_and_init_dwp_file): Adjust to use std::string. Remove
11320 make_cleanup/do_cleanups calls.
11321 * python/python.c (do_start_initialization): Adjust to ldirname
11322 returning a std::string.
11323 * utils.c (ldirname): Now returns a std::string.
11324 * utils.h (ldirname): Change return type to std::string.
11325 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11326 returning a std::string.
11327 * xml-tdesc.c (file_read_description_xml): Likewise.
11328
11329 2017-03-24 Alan Hayward <alan.hayward@arm.com>
11330
11331 * regcache.c (regcache_debug_print_register): New function.
11332 * regcache.h (regcache_debug_print_register): New declaration.
11333 * target.c (debug_print_register): Remove.
11334 (target_fetch_registers): Call regcache_debug_print_register.
11335 (target_store_registers): Likewise.
11336
11337 2017-03-24 Pádraig Brady <pbrady@fb.com>
11338
11339 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11340 reference beyond the 'lh->include_dirs' array before accessing to
11341 it.
11342 (psymtab_include_file_name): Likewise.
11343 (dwarf_decode_lines_1): Likewise.
11344 (dwarf_decode_lines): Likewise.
11345 (file_file_name): Likewise.
11346
11347 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11348
11349 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11350 inferior_ptid.
11351 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11352 ps_lsetfpregs): Likewise.
11353 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11354 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11355 ps_lsetfpregs): Likewise.
11356 * target.c (target_fetch_registers, target_store_registers):
11357 Remove asserts.
11358
11359 2017-03-23 Alan Hayward <alan.hayward@arm.com>
11360
11361 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11362
11363 2017-03-23 Yao Qi <yao.qi@linaro.org>
11364
11365 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11366 (_initialize_aarch64_tdep): Register it.
11367 (aarch64_record_load_store): Handle PRFM instruction.
11368 (aarch64_process_record_test): New function.
11369
11370 2017-03-23 Yao Qi <yao.qi@linaro.org>
11371
11372 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11373 indentation.
11374
11375 2017-03-23 Yao Qi <yao.qi@linaro.org>
11376
11377 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11378
11379 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11380
11381 python/python.c (do_start_initialization): Fix memory leak.
11382
11383 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11384
11385 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11386 using get_ptrace_pid.
11387 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11388 inferior_ptid.
11389 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11390 inferior_ptid instead of pid.
11391
11392 2017-03-22 Yao Qi <yao.qi@linaro.org>
11393
11394 * aarch64-tdep.c: Wrap locally used classes in anonymous
11395 namespace.
11396 * arm-tdep.c: Likewise.
11397 * linespec.c: Likewise.
11398 * ui-out.c: Likewise.
11399
11400 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
11401
11402 PR gdb/19637
11403 * python/lib/gdb/printer/bound_registers.py: Import sys.
11404
11405 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11406
11407 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11408 windows_thread_info parameter and use it instead of
11409 current_thread.
11410 (windows_fetch_inferior_registers): Don't set current_thread,
11411 pass the thread to do_windows_fetch_inferior_registers. Use
11412 ptid from regcache instead of inferior_ptid.
11413 (do_windows_store_inferior_registers): Add windows_thread_info
11414 parameter and use it instead of current_thread.
11415 (windows_store_inferior_registers): Don't set current_thread,
11416 pass the thread to do_windows_store_inferior_registers. Use
11417 ptid from regcache instead of inferior_ptid.
11418
11419 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11420
11421 * ser-mingw.c (ser_windows_raw): Remove reference to
11422 struct serial::current_timeout.
11423
11424 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11425
11426 PR tdep/20928
11427 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11428 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11429 (sparc64_fsr_type): Fix %fsr decoding.
11430
11431 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11432
11433 * python/py-record-btrace.c (btpy_insn_data): Change return type
11434 for Python 2.
11435
11436 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11437
11438 * spu-linux-nat.c (spu_fetch_inferior_registers,
11439 spu_store_inferior_registers): Use ptid from regcache, set and
11440 restore inferior_ptid.
11441 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11442 Likewise.
11443
11444 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11445
11446 * i386-linux-nat.c (fetch_register, store_register,
11447 i386_linux_fetch_inferior_registers,
11448 i386_linux_store_inferior_registers): Use ptid from regcache.
11449 * ia64-linux-nat.c (ia64_linux_fetch_register,
11450 ia64_linux_store_register): Likewise.
11451 * inf-ptrace.c (inf_ptrace_fetch_register,
11452 inf_ptrace_store_register): Likewise.
11453 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11454 m32r_linux_store_inferior_registers): Likewise.
11455 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11456 m68kbsd_store_inferior_registers): Likewise.
11457 * m68k-linux-nat.c (fetch_register, store_register,
11458 m68k_linux_fetch_inferior_registers,
11459 m68k_linux_store_inferior_registers): Likewise.
11460 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11461 m88kbsd_store_inferior_registers): Likewise.
11462 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11463 mips_fbsd_store_inferior_registers): Likewise.
11464 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11465 mips64_linux_regsets_store_registers): Likewise.
11466 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11467 mipsnbsd_store_inferior_registers): Likewise.
11468 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11469 mips64obsd_store_inferior_registers): Likewise.
11470 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11471 Likewise.
11472 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11473 ppcfbsd_store_inferior_registers): Likewise.
11474 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11475 ppc_linux_store_inferior_registers): Likewise.
11476 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11477 ppcnbsd_store_inferior_registers): Likewise.
11478 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11479 ppcobsd_store_registers): Likewise.
11480 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11481 Likewise.
11482 * ravenscar-thread.c (ravenscar_fetch_registers,
11483 ravenscar_store_registers, ravenscar_prepare_to_store):
11484 Likewise.
11485 * record-btrace.c (record_btrace_fetch_registers,
11486 record_btrace_store_registers, record_btrace_prepare_to_store):
11487 Likewise.
11488 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11489 Lookup inferior using ptid from regcache, instead of
11490 current_inferior.
11491 * remote.c (remote_fetch_registers, remote_store_registers): Use
11492 ptid from regcache.
11493 * rs6000-nat.c (fetch_register, store_register): Likewise.
11494 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11495 s390_linux_store_inferior_registers): Likewise.
11496 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11497 shnbsd_store_inferior_registers): Likewise.
11498 * sol-thread.c (sol_thread_fetch_registers,
11499 sol_thread_store_registers): Likewise.
11500 * sparc-nat.c (sparc_fetch_inferior_registers,
11501 sparc_store_inferior_registers): Likewise.
11502 * tilegx-linux-nat.c (fetch_inferior_registers,
11503 store_inferior_registers): Likewise.
11504 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11505 vaxbsd_store_inferior_registers): Likewise.
11506 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11507 store_xtregs): Likewise.
11508
11509 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11510
11511 PR gdb/14441
11512 * NEWS: Mention support for rvalue references in GDB and python.
11513 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11514 supports both lvalue and rvalue references.
11515
11516 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11517
11518 PR gdb/14441
11519 * gdbtypes.c (rank_one_type): Implement overloading
11520 resolution rules regarding rvalue references.
11521
11522 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11523
11524 PR gdb/14441
11525 * aarch64-tdep.c (aarch64_type_align)
11526 (aarch64_extract_return_value, aarch64_store_return_value): Change
11527 lvalue reference type checks to general reference type checks.
11528 * amd64-tdep.c (amd64_classify): Likewise.
11529 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11530 Likewise.
11531 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11532 (arm_store_return_value): Likewise.
11533 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11534 * c-typeprint.c (c_print_type): Likewise.
11535 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11536 (cplus_number_of_children, cplus_describe_child): Likewise.
11537 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11538 * completer.c (expression_completer): Likewise.
11539 * cp-support.c (make_symbol_overload_list_adl_namespace):
11540 Likewise.
11541 * darwin-nat-info.c (info_mach_region_command): Likewise.
11542 * dwarf2loc.c (entry_data_value_coerce_ref)
11543 (value_of_dwarf_reg_entry): Likewise.
11544 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11545 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11546 Likewise.
11547 * findvar.c (extract_typed_address, store_typed_address):
11548 Likewise.
11549 * gdbtypes.c (rank_one_type): Likewise.
11550 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11551 * infcall.c (value_arg_coerce): Likewise.
11552 * language.c (pointer_type): Likewise.
11553 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11554 Likewise.
11555 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11556 * mn10300-tdep.c (mn10300_type_align): Likewise.
11557 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11558 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11559 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11560 Likewise.
11561 * printcmd.c (print_formatted, x_command): Likewise.
11562 * python/py-type.c (typy_get_composite, typy_template_argument):
11563 Likewise.
11564 * python/py-value.c (valpy_referenced_value)
11565 (valpy_get_dynamic_type, value_has_field): Likewise.
11566 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11567 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11568 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11569 * spu-tdep.c (spu_scalar_value_p): Likewise.
11570 * symtab.c (lookup_symbol_aux): Likewise.
11571 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11572 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11573 Likewise.
11574 * valops.c (value_cast_pointers, value_cast)
11575 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11576 (value_struct_elt, value_struct_elt_bitpos)
11577 (value_find_oload_method_list, find_overload_match)
11578 (value_rtti_indirect_type): Likewise.
11579 * valprint.c (val_print_scalar_type_p, generic_val_print):
11580 Likewise.
11581 * value.c (value_actual_type, value_as_address, unpack_long)
11582 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11583 (coerce_ref): Likewise.
11584 * varobj.c (varobj_get_value_type): Likewise.
11585
11586 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11587
11588 PR gdb/14441
11589 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11590 table of constants.
11591 * python/lib/gdb/command/explore.py: Support exploring values
11592 of rvalue reference types.
11593 * python/lib/gdb/types.py: Implement get_basic_type() for
11594 rvalue reference types.
11595 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11596 constant.
11597 * python/py-value.c (valpy_getitem): Add an rvalue reference
11598 check.
11599 (valpy_reference_value): Add new parameter "refcode".
11600 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11601 New wrappers for valpy_reference_value().
11602 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11603 (gdbpy_invoke_xmethod): Likewise.
11604
11605 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11606
11607 PR gdb/14441
11608 * dwarf2read.c (process_die, read_type_die_1): Handle the
11609 DW_TAG_rvalue_reference_type DIE.
11610 (read_tag_reference_type): Add new parameter "refcode".
11611
11612 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11613
11614 PR gdb/14441
11615 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11616 (c_type_print_modifier, c_type_print_varspec_suffix)
11617 (c_type_print_base): Support printing rvalue reference types.
11618 * c-valprint.c (c_val_print, c_value_print): Support printing
11619 rvalue reference values.
11620
11621 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11622
11623 PR gdb/14441
11624 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11625 typename.
11626 * cp-support.c (replace_typedefs): Handle
11627 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11628 * python/py-type.c (typy_lookup_type): Likewise.
11629
11630 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11631
11632 PR gdb/14441
11633 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11634 * parse.c (insert_type): Change assert statement.
11635 (follow_types): Handle rvalue reference types.
11636 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11637 constant.
11638
11639 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11640
11641 PR gdb/14441
11642 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11643 value_ref() interface.
11644 * c-valprint.c (c_value_print): Likewise.
11645 * infcall.c (value_arg_coerce): Likewise.
11646 * python/py-value.c (valpy_reference_value): Likewise.
11647 * valops.c (value_cast, value_reinterpret_cast)
11648 (value_dynamic_cast, typecmp): Likewise.
11649 (value_ref): Parameterize by kind of return value reference type.
11650 * value.h (value_ref): Add new parameter "refcode".
11651
11652 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11653
11654 PR gdb/14441
11655 * dwarf2read.c (read_tag_reference_type): Use
11656 lookup_lvalue_reference_type() instead of lookup_reference_type().
11657 * eval.c (evaluate_subexp_standard): Likewise.
11658 * f-exp.y: Likewise.
11659 * gdbtypes.c (make_reference_type, lookup_reference_type):
11660 Generalize with rvalue reference types.
11661 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11662 convenience wrappers for lookup_reference_type().
11663 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11664 reference kind parameter.
11665 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11666 wrappers for lookup_reference_type().
11667 * guile/scm-type.c (gdbscm_type_reference): Use
11668 lookup_lvalue_reference_type() instead of lookup_reference_type().
11669 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11670 * parse.c (follow_types): Likewise.
11671 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11672 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11673 Likewise.
11674 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11675 (gdbpy_invoke_xmethod): Likewise.
11676 * stabsread.c: Provide extra argument to make_reference_type()
11677 call.
11678 * valops.c (value_ref, value_rtti_indirect_type): Use
11679 lookup_lvalue_reference_type() instead of lookup_reference_type().
11680
11681 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
11682
11683 PR gdb/14441
11684 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11685 (TYPE_IS_REFERENCE): New macro.
11686 (struct type): Add rvalue_reference_type field.
11687 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11688
11689 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11690
11691 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11692 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11693 New function definition.
11694 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11695 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11696 New function declaration.
11697 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11698 * mi/mi-interp.h: New file.
11699 * solib.c (info_sharedlibrary_command): Replace for loop with
11700 ALL_SO_LIBS macro
11701 * solib.h (update_solib_list): New function declaration.
11702 (so_list_head): Move macro.
11703 * solist.h (ALL_SO_LIBS): New macro.
11704
11705 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11706
11707 * infcmd.c (post_create_inferior): Remove unused argument in
11708 call to solib_add.
11709 * remote.c (remote_start_remote): Likewise.
11710 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11711 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11712 (enable_break): Likewise.
11713 * solib.c (update_solib_list): Remove unused target argument
11714 and its documentation.
11715 (solib_add): Remove unused target argument. Remove unused
11716 argument in call to update_solib_list.
11717 (info_sharedlibrary_command): Remove unused argument in call
11718 to update_solib_list.
11719 (sharedlibrary_command): Remove unused argument in call to
11720 solib_add.
11721 (handle_solib_event): Likewise.
11722 (reload_shared_libraries): Likewise.
11723 * solib.h (solib_add): Remove unused target argument.
11724
11725 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11726
11727 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11728 (s390_displaced_step_fixup): Cover relative branches with the
11729 default fixup handling. This fixes lack of support for some
11730 relative branch instructions.
11731
11732 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11733
11734 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11735 ptid from regcache.
11736
11737 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11738
11739 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11740 i386_darwin_store_inferior_registers): Use ptid from regcache.
11741
11742 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11743
11744 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11745 i386bsd_store_inferior_registers): Use ptid from regcache.
11746
11747 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11748
11749 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11750 hppaobsd_store_registers): Use ptid from regcache.
11751
11752 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11753
11754 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11755 hppanbsd_store_registers): Use ptid from regcache.
11756
11757 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11758
11759 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11760 from regcache. Use get_ptrace_pid.
11761
11762 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11763
11764 * corelow.c (get_core_register_section): Use ptid from regcache,
11765 update doc.
11766
11767 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11768
11769 * bsd-uthread.c (bsd_uthread_fetch_registers,
11770 bsd_uthread_store_registers): Use ptid from regcache, set and
11771 restore inferior_ptid.
11772
11773 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11774
11775 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11776 fetch_fp_regs, store_register, store_regs, store_fp_register,
11777 store_fp_regs): Use ptid from regcache.
11778
11779 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11780
11781 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11782 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11783 store_vfp_regs): Use ptid from regcache.
11784
11785 2017-03-17 Pedro Alves <palves@redhat.com>
11786
11787 PR remote/21188
11788 * ser-base.c (ser_base_wait_for): Add comment.
11789 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11790 version.
11791 * ser-unix.c (hardwire_raw): Remove reference to
11792 scb->current_timeout.
11793 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11794 (hardwire_ops): Install ser_base_readchar instead of
11795 hardwire_readchar.
11796 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11797 Remove fields.
11798
11799 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
11800
11801 PR gdb/19637
11802 * python/lib/gdb/printer/bound_registers.py: Add support for
11803 Python 3.
11804
11805 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11806
11807 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11808 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11809 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11810 byte_offset to subobj_byte_offset. Fix the handling of
11811 DWARF_VALUE_STACK on big-endian targets when coming via an
11812 implicit pointer.
11813 (dwarf2_evaluate_loc_desc): Adjust call to
11814 dwarf2_evaluate_loc_desc_full.
11815 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11816 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11817
11818 2017-03-16 Yao Qi <yao.qi@linaro.org>
11819
11820 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11821 and REVSH instructions.
11822
11823 2017-03-16 Yao Qi <yao.qi@linaro.org>
11824
11825 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11826 (arm_record_test): Declare.
11827 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11828 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11829 align with the manual.
11830 (thumb_record_misc): Adjust the code order to align with the
11831 manual.
11832 (thumb2_record_decode_insn_handler): Fix instruction matching.
11833 (instruction_reader_thumb): New class.
11834 (arm_record_test): New function.
11835
11836 2017-03-16 Yao Qi <yao.qi@linaro.org>
11837
11838 * arm-tdep.c (abstract_memory_reader): New class.
11839 (instruction_reader): New class.
11840 (extract_arm_insn): Add argument 'reader'. Callers updated.
11841 (decode_insn): Likewise.
11842
11843 2017-03-16 Doug Evans <dje@google.com>
11844
11845 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11846 member. Change type of TYPE member to SCM. All uses updated.
11847 (lsscm_make_lazy_string_smob): Add assert.
11848 (lsscm_make_lazy_string): Flag bad length values.
11849 (lsscm_elt_type): New function.
11850 (gdbscm_lazy_string_to_value): Rewrite to use
11851 lsscm_safe_lazy_string_to_value.
11852 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11853 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11854 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11855 in incoming type.
11856 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11857 * guile/scm-type.c (tyscm_scm_to_type): New function.
11858
11859 2017-03-15 Doug Evans <dje@google.com>
11860
11861 PR python/17728, python/18439, python/18779
11862 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11863 member. Change type of TYPE member to PyObject *. All uses updated.
11864 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11865 (gdbpy_create_lazy_string_object): Flag bad length values.
11866 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
11867 Handle typedefs in incoming type.
11868 (stpy_lazy_string_elt_type): New function.
11869 (gdbpy_extract_lazy_string): Call it.
11870 * python/py-value.c (valpy_lazy_string): Flag bad length values.
11871 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
11872 typedefs in incoming type.
11873
11874 2017-03-16 Doug Evans <dje@google.com>
11875
11876 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11877 * guile/scm-type.c (tyscm_scm_to_type): New function.
11878
11879 2017-03-16 Jiong Wang <jiong.wang@arm.com>
11880
11881 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
11882 "ULONGEST" for "skip".
11883
11884 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11885
11886 PR gdb/21220
11887 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
11888 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
11889 (inf_ptrace_peek_poke): ...here. New function. Now also loop
11890 over ptrace peek/poke until end of buffer or error.
11891
11892 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
11893
11894 * parse.c (length_of_subexp): Make static.
11895 * parser-defs.h (length_of_subexp): Remove.
11896
11897 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11898
11899 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
11900 as well.
11901
11902 2017-03-14 Pedro Alves <palves@redhat.com>
11903
11904 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
11905 (main): Use std::unique_ptr. Remove calls to
11906 cp_demangled_name_parse_free.
11907
11908 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11909
11910 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
11911 alphabsd_store_inferior_registers): Use regcache->ptid instead
11912 of inferior_ptid.
11913
11914 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11915
11916 * aix-thread.c (aix_thread_fetch_registers,
11917 aix_thread_store_registers): Use regcache->ptid instead of
11918 inferior_ptid.
11919
11920 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11921
11922 * aarch64-linux-nat.c (fetch_gregs_from_thread,
11923 store_gregs_to_thread, fetch_fpregs_from_thread,
11924 store_fpregs_to_thread): Use regcache->ptid instead of
11925 inferior_ptid.
11926
11927 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11928
11929 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
11930 amd64_linux_fetch_inferior_registers): Use regcache->ptid
11931 instead of inferior_ptid.
11932
11933 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11934
11935 * target.c (target_fetch_registers, target_store_registers): Add
11936 assert.
11937
11938 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11939
11940 * regcache.h (regcache_get_ptid): New function.
11941 * regcache.c (regcache_get_ptid): New function.
11942
11943 2017-03-13 Mark Wielaard <mark@klomp.org>
11944
11945 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
11946
11947 2017-03-10 Keith Seitz <keiths@redhat.com>
11948
11949 PR c++/8218
11950 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
11951
11952 2017-03-08 Pedro Alves <palves@redhat.com>
11953
11954 PR gdb/18360
11955 * infrun.c (start_step_over, do_target_resume, resume)
11956 (restart_threads): Assert we're not resuming a thread that is
11957 meant to be stopped.
11958 (infrun_thread_stop_requested_callback): Delete.
11959 (infrun_thread_stop_requested): If the thread is internally
11960 stopped, queue a pending stop event and clear the thread's
11961 inline-frame state.
11962 (handle_stop_requested): New function.
11963 (handle_syscall_event, handle_inferior_event_1): Use
11964 handle_stop_requested.
11965 (handle_stop_requested): New function.
11966 (handle_signal_stop): Set the thread's stop_signal here instead of
11967 at caller.
11968 (finish_step_over): Clear step over info unconditionally.
11969 (handle_signal_stop): If the user had interrupted the event
11970 thread, consider the stop a random signal.
11971 (handle_signal_stop) <signal arrived while stepping over
11972 breakpoint>: Don't restart threads here.
11973 (stop_waiting): Don't clear step-over info here.
11974
11975 2017-03-08 Pedro Alves <palves@redhat.com>
11976
11977 PR 21206
11978 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
11979 goes to argument 2, not 1.
11980
11981 2017-03-08 Pedro Alves <palves@redhat.com>
11982
11983 PR cli/21218
11984 * top.c (gdb_readline_wrapper): Avoid passing NULL to
11985 display_gdb_prompt.
11986 (command_line_input): Add comment.
11987
11988 2017-03-08 Pedro Alves <palves@redhat.com>
11989
11990 PR tui/21216
11991 * tui/tui-file.c (tui_file::write): New.
11992 * tui/tui-file.h (tui_file): Override "write".
11993 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
11994 factored out from ...
11995 (tui_puts): ... here.
11996 (tui_putc): Use them.
11997 (tui_write): New function.
11998 * tui/tui-io.h (tui_write): Declare.
11999
12000 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12001
12002 * Makefile.in (SFILES): Replace "environ.c" with
12003 "common/environ.c".
12004 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12005 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12006 to...
12007 * common/environ.c: ... here.
12008 * environ.h: Moved to...
12009 * common/environ.h: ... here.
12010
12011 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12012
12013 * gdbarch.sh (pstring_ptr): New static function.
12014 (gdbarch_disassembler_options): Use it.
12015 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12016 not valid_disassembler_option->name.
12017 * gdbarch.c: Regenerate.
12018
12019 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12020
12021 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12022
12023 2017-03-07 Pedro Alves <palves@redhat.com>
12024
12025 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12026
12027 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
12028
12029 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12030 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12031 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
12032 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
12033
12034 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12035
12036 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12037
12038 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12039
12040 * remote.c (remote_add_target_side_commands): Use range-based
12041 for loop.
12042
12043 2017-03-03 Yao Qi <yao.qi@linaro.org>
12044
12045 PR gdb/21165
12046 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12047 value is lazy.
12048 * valprint.c (common_val_print): Likewise.
12049
12050 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12051
12052 * NEWS: Mention new set/show disassembler-options commands.
12053 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12054 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12055 (prospective_options): New static variable.
12056 (gdb_disassembler::gdb_disassembler): Initialize
12057 m_di.disassembler_options.
12058 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12059 (get_disassembler_options): New function.
12060 (set_disassembler_options): Likewise.
12061 (set_disassembler_options_sfunc): Likewise.
12062 (show_disassembler_options_sfunc): Likewise.
12063 (disassembler_options_completer): Likewise.
12064 (_initialize_disasm): Likewise.
12065 * disasm.h (get_disassembler_options): New prototype.
12066 (set_disassembler_options): Likewise.
12067 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12068 (gdbarch_verify_disassembler_options): Likewise.
12069 * gdbarch.c: Regenerate.
12070 * gdbarch.h: Likewise.
12071 * arm-tdep.c (num_disassembly_options): Delete.
12072 (set_disassembly_style): Likewise.
12073 (arm_disassembler_options): New static variable.
12074 (set_disassembly_style_sfunc): Convert short style name into long
12075 option name. Call set_disassembler_options.
12076 (show_disassembly_style_sfunc): New function.
12077 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12078 set_gdbarch_verify_disassembler_options.
12079 (_initialize_arm_tdep): Delete regnames variable and update callers.
12080 (arm_disassembler_options): Initialize.
12081 (disasm_options): New variable.
12082 (num_disassembly_options): Rename from this...
12083 (num_disassembly_styles): ...to this. Compute by scanning through
12084 disasm_options.
12085 (valid_disassembly_styles): Initialize using disasm_options.
12086 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12087 set_arm_regname_option.
12088 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12089 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12090 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12091 set_gdbarch_verify_disassembler_options.
12092 * s390-tdep.c (s390_disassembler_options): New static variable.
12093 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12094 set_gdbarch_verify_disassembler_options.
12095
12096 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12097
12098 * remote.c (remote_add_target_side_condition): Remove "struct"
12099 keyword from range-based for loop.
12100
12101 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12102
12103 * remote.c (remote_add_target_side_condition): Use range-based
12104 for loop. Update comment.
12105
12106 2017-02-27 Yao Qi <yao.qi@linaro.org>
12107
12108 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12109
12110 2017-02-26 Alan Hayward <alan.hayward@arm.com>
12111
12112 * regcache.c (regcache_raw_update): New function.
12113 (regcache_raw_read): Move code to regcache_raw_update.
12114 * regcache.h (regcache_raw_update): New declaration.
12115 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12116
12117 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12118
12119 * dwarf2read.c (create_debug_type_hash_table): Initialize
12120 header.signature and header.type_offset_in_tu.
12121
12122 2017-02-24 Pedro Alves <palves@redhat.com>
12123
12124 * symtab.c (make_file_symbol_completion_list_1): Use
12125 add_symtab_completions.
12126
12127 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12128
12129 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12130
12131 2017-02-24 Alan Hayward <alan.hayward@arm.com>
12132
12133 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12134 I386_MAX_REGISTER_SIZE.
12135 (i386_pseudo_register_write): Likewise.
12136 (i386_process_record): Likewise.
12137 * i387-tdep.c (i387_supply_xsave): Likewise.
12138 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12139 (store_register): Likewise.
12140
12141 2017-02-23 Pedro Alves <palves@redhat.com>
12142
12143 * ada-lang.c: Include "common/function-view.h".
12144 (ada_iterate_over_symbols): Adjust to use function_view as
12145 callback type.
12146 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12147 (ada_make_symbol_completion_list): Use a lambda.
12148 (ada_exc_search_name_matches): Delete.
12149 (name_matches_regex): New.
12150 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12151 * compile/compile-c-support.c: Include "common/function-view.h".
12152 (print_one_macro): Change prototype to accept a ui_file pointer.
12153 (write_macro_definitions): Use a lambda.
12154 * dwarf2read.c: Include "common/function-view.h".
12155 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12156 (dw2_expand_symtabs_matching): Adjust to use function_view as
12157 callback type.
12158 * language.h: Include "common/function-view.h".
12159 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12160 function_view as callback type.
12161 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12162 * linespec.c: Include "common/function-view.h".
12163 (collect_info::add_symbol): New method.
12164 (struct symbol_and_data_callback, iterate_inline_only, struct
12165 symbol_matcher_data, iterate_name_matcher): Delete.
12166 (iterate_over_all_matching_symtabs): Adjust to use function_view
12167 as callback type and lambdas.
12168 (iterate_over_file_blocks): Adjust to use function_view as
12169 callback type.
12170 (decode_compound_collector): Now a class with private fields.
12171 (decode_compound_collector::release_symbols): New method.
12172 (collect_one_symbol): Rename to...
12173 (decode_compound_collector::operator()): ... this and adjust.
12174 (lookup_prefix_sym): decode_compound_collector construction bits
12175 move to decode_compound_collector ctor. Pass the
12176 decode_compound_collector object directly as callback. Remove
12177 cleanups and use decode_compound_collector::release_symbols
12178 instead.
12179 (symtab_collector): Now a class with private fields.
12180 (symtab_collector::release_symtabs): New method.
12181 (add_symtabs_to_list): Rename to...
12182 (symtab_collector::operator()): ... this and adjust.
12183 (collect_symtabs_from_filename): symtab_collector construction
12184 bits move to symtab_collector ctor. Pass the symtab_collector
12185 object directly as callback. Remove cleanups and use
12186 symtab_collector::release_symtabs instead.
12187 (collect_symbols): Delete.
12188 (add_matching_symbols_to_info): Use lambdas.
12189 * macrocmd.c (print_macro_callback): Delete.
12190 (info_macro_command): Use a lambda.
12191 (info_macros_command): Pass print_macro_definition as callable
12192 directly.
12193 (print_one_macro): Remove 'ignore' parameter.
12194 (macro_list_command): Adjust.
12195 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12196 (macro_for_each_data::user_data): Delete field.
12197 (foreach_macro): Adjust to call the function_view.
12198 (macro_for_each): Adjust to use function_view as callback type.
12199 (foreach_macro_in_scope): Adjust to call the function_view.
12200 (macro_for_each_in_scope): Adjust to use function_view as callback
12201 type.
12202 * macrotab.h: Include "common/function-view.h".
12203 (macro_callback_fn): Declare a prototype instead of a pointer.
12204 Remove "user_data" parameter.
12205 (macro_for_each, macro_for_each_in_scope): Adjust to use
12206 function_view as callback type.
12207 * psymtab.c (partial_map_expand_apply)
12208 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12209 Adjust to use function_view as callback type and to return bool.
12210 (psym_expand_symtabs_matching): Adjust to use function_view as
12211 callback types.
12212 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12213 to use function_view as callback type and to return bool.
12214 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12215 callback types.
12216 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12217 as callback types.
12218 * symfile.h: Include "common/function-view.h".
12219 (expand_symtabs_file_matcher_ftype)
12220 (expand_symtabs_symbol_matcher_ftype)
12221 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12222 return bool.
12223 (quick_symbol_functions::map_symtabs_matching_filename)
12224 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12225 function_view as callback type and return bool.
12226 (expand_symtabs_matching): Adjust to use function_view as callback
12227 type.
12228 (maintenance_expand_name_matcher)
12229 (maintenance_expand_file_matcher): Delete.
12230 (maintenance_expand_symtabs): Use lambdas.
12231 * symtab.c (iterate_over_some_symtabs): Adjust to use
12232 function_view as callback types and return bool.
12233 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12234 of a cleanup.
12235 (lookup_symtab_callback): Delete.
12236 (lookup_symtab): Use a lambda.
12237 (iterate_over_symbols): Adjust to use function_view as callback
12238 type.
12239 (struct search_symbols_data, search_symbols_file_matches)
12240 (search_symbols_name_matches): Delete.
12241 (search_symbols): Use a pair of lambdas.
12242 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12243 (symtab_expansion_callback): Delete.
12244 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12245 * symtab.h: Include "common/function-view.h".
12246 (iterate_over_some_symtabs): Adjust to use function_view as
12247 callback type and return bool.
12248 (iterate_over_symtabs): Adjust to use function_view as callback
12249 type.
12250 (symbol_found_callback_ftype): Remove 'data' parameter and return
12251 bool.
12252 (iterate_over_symbols): Adjust to use function_view as callback
12253 type.
12254
12255 2017-02-23 Pedro Alves <palves@redhat.com>
12256
12257 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12258 (%.o) <unittests/%.c>: New pattern.
12259 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12260 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12261 * common/function-view.h: New file.
12262 * unittests/function-view-selftests.c: New file.
12263 * configure: Regenerate.
12264
12265 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12266
12267 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12268 inferior_ptid.
12269 * go32-nat.c (go32_thread_alive): Likewise.
12270
12271 2017-02-23 Yao Qi <yao.qi@linaro.org>
12272
12273 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12274 delete.
12275
12276 2017-02-23 Yao Qi <yao.qi@linaro.org>
12277
12278 * varobj.c (varobj_clear_saved_item): Use delete instead of
12279 xfree.
12280 (update_dynamic_varobj_children): Likewise.
12281
12282 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12283
12284 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12285
12286 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12287
12288 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12289 m_enum_value to 0 in default constructor.
12290
12291 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12292
12293 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12294 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12295 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12296 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12297 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12298 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12299 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12300 IS_STORE_CONDITIONAL_INSN.
12301
12302 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12303
12304 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12305
12306 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12307
12308 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12309
12310 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12311
12312 * dwarf2read.c (skip_one_die, read_attribute_value)
12313 (dwarf2_const_value_attr, dump_die_shallow)
12314 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12315 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12316
12317 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12318
12319 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12320 (dwarf_parse_macro_header): Accept DWARF version 5.
12321 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12322
12323 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12324
12325 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12326 DW_AT_GNU_*.
12327 * common/common-exceptions.h (enum errors): Likewise.
12328 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12329 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12330 (dwarf_expr_context::execute_stack_op): Likewise.
12331 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12332 Likewise.
12333 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12334 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12335 (show_entry_values_debug, call_site_to_target_addr)
12336 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12337 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12338 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12339 (value_of_dwarf_block_entry, indirect_pieced_value)
12340 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12341 (disassemble_dwarf_expression): Likewise.
12342 * dwarf2read.c (process_die, inherit_abstract_dies)
12343 (read_call_site_scope): Likewise.
12344 * gdbtypes.h (struct func_type, struct call_site_parameter)
12345 (struct call_site): Likewise.
12346 * stack.c (read_frame_arg): Likewise.
12347 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12348
12349 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12350
12351 * defs.h (read_unsigned_leb128): New declaration.
12352 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12353 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12354 (dwarf2_find_location_expression): Call also
12355 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12356 * dwarf2loc.h (dwarf2_version): New declaration.
12357 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12358 rnglists.
12359 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12360 .debug_rnglists.
12361 (struct dwop_section_names): Add loclists_dwo.
12362 (dwop_section_names): Add .debug_loclists.dwo.
12363 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12364 (struct dwarf2_per_cu_data): Add dwarf_version.
12365 (struct dwo_sections): Add loclists.
12366 (struct attr_abbrev): Add implicit_const.
12367 (read_indirect_line_string): New declaration.
12368 (read_unsigned_leb128): Delete declaration.
12369 (rcuh_kind): New definition.
12370 (read_and_check_comp_unit_head): Change parameter
12371 is_debug_types_section to section_kind.
12372 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12373 (read_comp_unit_head): Change parameter abfd to section, add parameter
12374 section_kind. Handle DWARF-5.
12375 (error_check_comp_unit_head): Accept also DWARF version 5.
12376 (read_and_check_comp_unit_head): Change parameter
12377 is_debug_types_section to section_kind.
12378 (read_and_check_type_unit_head): Delete function.
12379 (read_abbrev_offset): Handle DWARF-5.
12380 (create_debug_type_hash_table): Add parameter section_kind. Process
12381 only DW_UT_type. Use signature and type_offset_in_tu from struct
12382 comp_unit_head.
12383 (create_debug_types_hash_table): Update create_debug_type_hash_table
12384 caller.
12385 (create_all_type_units): Call create_debug_type_hash_table.
12386 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12387 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12388 caller.
12389 (skip_one_die): Handle DW_FORM_implicit_const.
12390 (dwarf2_rnglists_process): New function.
12391 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12392 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12393 (read_attribute_value): Handle DW_FORM_implicit_const,
12394 DW_FORM_line_strp.
12395 (read_attribute): Handle DW_FORM_implicit_const.
12396 (read_indirect_string_at_offset_from): New function from
12397 read_indirect_string_at_offset.
12398 (read_indirect_string_at_offset): Call
12399 read_indirect_string_at_offset_from.
12400 (read_indirect_line_string_at_offset): New function.
12401 (read_indirect_string): New function comment.
12402 (read_indirect_line_string): New function.
12403 (read_unsigned_leb128): Make it global.
12404 (dwarf2_string_attr): Handle DWARF-5.
12405 (add_include_dir_stub, read_formatted_entries): New functions.
12406 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12407 Handle DWARF-5.
12408 (per_cu_header_read_in): Update read_comp_unit_head caller.
12409 (dwarf2_version): New function.
12410 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12411 rnglists.
12412 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12413 fields.
12414
12415 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12416
12417 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12418
12419 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12420
12421 * dwarf2read.c (dwarf2_ranges_process): New function from
12422 dwarf2_ranges_read.
12423 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12424 dwarf2_ranges_process.
12425
12426 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12427
12428 * dwarf2read.c (create_debug_type_hash_table): New function from
12429 create_debug_types_hash_table.
12430 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12431 (create_all_type_units, open_and_init_dwo_file): Update
12432 create_debug_types_hash_table callers.
12433
12434 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12435
12436 PR gdb/16188
12437 * fork-child.c (trace_start_error): Fix thinko. va_end should
12438 refer to 'ap', not 'args'.
12439
12440 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12441 Pedro Alves <palves@redhat.com>
12442
12443 PR gdb/16188
12444 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12445 calls succeeded.
12446 * fork-child.c (trace_start_error): New function.
12447 (trace_start_error_with_name): Likewise.
12448 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12449 * inf-ptrace.c (inf_ptrace_me): Likewise.
12450 * inferior.h (trace_start_error): New prototype.
12451 (trace_start_error_with_name): Likewise.
12452
12453 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12454
12455 PR gdb/21164
12456 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12457 NULL before using it.
12458 * symmisc.c (maintenance_print_symbols): Likewise.
12459 (maintenance_print_msymbols): Likewise.
12460
12461 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12462
12463 * NEWS: Add record Python bindings entry.
12464
12465 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12466
12467 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12468 py-record-full.o.
12469 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12470 * python/py-record-btrace.c, python/py-record-btrace.h,
12471 python/py-record-full.c, python/py-record-full.h: New file.
12472 * python/py-record.c: Add include for py-record-btrace.h and
12473 py-record-full.h.
12474 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12475 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12476 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12477 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12478 New definition.
12479 (gdbpy_initialize_btrace): New export.
12480 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12481
12482 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12483
12484 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12485 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12486 * python/py-record.c: New file.
12487 * python/python-internal.h (gdbpy_start_recording,
12488 gdbpy_current_recording, gdpy_stop_recording,
12489 gdbpy_initialize_record): New export.
12490 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12491 (python_GdbMethods): Add gdbpy_start_recording,
12492 gdbpy_current_recording and gdbpy_stop_recording.
12493
12494 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12495
12496 * record-btrace.c (record_btrace_record_method): New function.
12497 (init_record_btrace_ops): Initialize to_record_method.
12498 * record-full.c (record_full_record_method): New function.
12499 (init_record_full_ops, init_record_full_core_ops): Add
12500 record_full_record_method.
12501 * record.h (enum record_method): New enum.
12502 * target-debug.h (target_debug_print_enum_record_method: New define.
12503 * target-delegates.c: Regenerate.
12504 * target.c (target_record_method): New function.
12505 * target.h: Include record.h.
12506 (struct target_ops) <to_record_method>: New field.
12507 (target_record_method): New export.
12508
12509 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12510
12511 * record.h (record_start, record_stop): New export.
12512 * record.c (record_start, record_stop): New function.
12513
12514 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12515
12516 * btrace.c (btrace_fetch): Copy function call segments pointer
12517 into a vector.
12518 (btrace_clear): Clear the vector.
12519 (btrace_find_insn_by_number): Use binary search to find the correct
12520 function call segment.
12521 * btrace.h (brace_fun_p): New typedef.
12522 (struct btrace_thread_info) <functions>: New field.
12523
12524 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12525
12526 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12527 * btrace.c (btrace_decode_error): ... here. New function.
12528 * btrace.h (btrace_decode_error): New export.
12529
12530 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12531
12532 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12533 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12534 btrace_find_insn_by_number): Remove special case for gaps.
12535 * btrace.h (btrace_insn_get_error): New export.
12536 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12537 * record-btrace.c (btrace_insn_history): Print number for gaps.
12538 (record_btrace_info, record_btrace_goto): Handle gaps.
12539
12540 2017-02-14 Tom Tromey <tom@tromey.com>
12541
12542 PR python/13598:
12543 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12544 event.
12545 * python/py-evts.c (gdbpy_initialize_py_events): Add
12546 before_prompt registry.
12547 * python/py-events.h (events_object) <before_prompt>: New field.
12548
12549 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12550
12551 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12552
12553 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
12554
12555 * symfile (_initialize_symfile): Add usage text to the load command's
12556 help text.
12557
12558 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12559
12560 * utils.c (defaulted_query): Don't query on secondary UIs.
12561
12562 2017-02-10 Tom Tromey <tom@tromey.com>
12563
12564 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12565
12566 2017-02-10 Tom Tromey <tom@tromey.com>
12567
12568 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12569 "cleanup" local.
12570 * python/py-type.c (typy_legacy_template_argument): Remove
12571 unnecessary "cleanup" local.
12572
12573 2017-02-10 Tom Tromey <tom@tromey.com>
12574
12575 * python/python.c (do_start_initialization): New function, from
12576 _initialize_python.
12577 (_initialize_python): Call do_start_initialization.
12578 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12579 goto.
12580
12581 2017-02-10 Tom Tromey <tom@tromey.com>
12582
12583 * python/py-prettyprint.c (pretty_print_one_value): Use
12584 gdbpy_ref.
12585
12586 2017-02-10 Tom Tromey <tom@tromey.com>
12587
12588 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12589 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12590 gdbpy_ref.
12591 * python/py-type.c (field_new): Use gdbpy_ref.
12592 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12593 gdbpy_ref.
12594 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12595 (py_free_pspace): Likewise.
12596 (pspace_to_pspace_object): Likewise.
12597 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12598 (py_free_objfile): Likewise.
12599 (objfile_to_objfile_object): Likewise.
12600 * python/py-inferior.c (delete_thread_object): Use
12601 gdbpy_ref.
12602 (infpy_read_memory): Likewise.
12603 (py_free_inferior): Likewise.
12604 * python/py-evtregistry.c (create_eventregistry_object): Use
12605 gdbpy_ref.
12606 * python/py-event.c (create_event_object): Use gdbpy_ref.
12607
12608 2017-02-10 Tom Tromey <tom@tromey.com>
12609
12610 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12611 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12612 used.
12613 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12614 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12615 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12616 python/py-framefilter.c, python/py-function.c,
12617 python/py-inferior.c, python/py-infevents.c,
12618 python/py-linetable.c, python/py-newobjfileevent.c,
12619 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12620 python/py-signalevent.c, python/py-stopevent.c,
12621 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12622 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12623 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12624 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12625
12626 2017-02-10 Tom Tromey <tom@tromey.com>
12627
12628 * ui-out.h (ui_out_emit_type): New class.
12629 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12630 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12631 and ui_out_emit_tuple.
12632 (enumerate_locals): Likewise.
12633 (py_mi_print_variables, py_print_locals, py_print_args): Use
12634 ui_out_emit_list.
12635 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12636 ui_out_emit_list.
12637 * common/gdb_optional.h: New file.
12638
12639 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12640
12641 * MAINTAINERS (Write After Approval): Update my e-mail address.
12642
12643 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
12644
12645 PR gdb/21122
12646 * breakpoint.c (_initialize_breakpoint): Update the help description
12647 of the 'commands' command to indicate that it takes a list argument.
12648
12649 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12650
12651 * interps.c (current_interp_set_logging): Remove "return".
12652
12653 2017-02-09 Gary Benson <gbenson@redhat.com>
12654
12655 * symtab.c (add_symtab_completions): Prevent NULL pointer
12656 dereference.
12657
12658 2017-02-08 Pedro Alves <palves@redhat.com>
12659
12660 * interps.c (interp::interp): Remove reference to quiet_p.
12661 (interp_set): Make static. Remove dead "Switching to" output
12662 code.
12663 (interp_quiet_p, interp_set_quiet): Delete.
12664 (interpreter_exec_cmd): Don't set the interpreter quiet.
12665 * interps.h (interp_quiet_p): Make static.
12666 (class interp) <quiet_p>: Remove field
12667
12668 2017-02-08 Jerome Guitton <guitton@adacore.com>
12669
12670 * cli/cli-decode.c (find_command_name_length): Make it extern.
12671 * cli/cli-decode.h (find_command_name_length): Declare.
12672 * cli/cli-script.c (command_name_equals, line_first_arg):
12673 New functions.
12674 (process_next_line): Use cli-decode to parse command names.
12675 (build_command_line): Make args a constant pointer.
12676
12677 2017-02-08 Jerome Guitton <guitton@adacore.com>
12678
12679 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12680 Remove case-insensitive search.
12681
12682 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12683
12684 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12685 at the end of the line. Avoids an ARI warning.
12686
12687 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
12688
12689 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12690 rdseed instructions.
12691 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12692
12693 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12694
12695 PR tdep/20936
12696 Provide and use sparc32 and sparc64 target description XML files.
12697 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12698 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12699 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12700 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12701 * features/sparc/sparc32-solaris.xml: New file.
12702 * features/sparc/sparc64-solaris.xml: New file.
12703 * features/sparc/sparc32-solaris.c: Generated.
12704 * features/sparc/sparc64-solaris.c: Generated.
12705 * sparc-tdep.h: Account for differences in target descriptions.
12706 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12707 (sparc32_register_type): Use target provided registers.
12708 (validate_tdesc_registers): New function.
12709 (sparc32_gdbarch_init): Use tdesc_has_registers.
12710 Set pseudoregister functions.
12711 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12712 (sparc64_register_type): Use target provided registers.
12713 (sparc64_init_abi): Set pseudoregister functions.
12714
12715 2017-02-03 Tom Tromey <tom@tromey.com>
12716
12717 PR rust/21097:
12718 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12719 with a single member.
12720
12721 2017-02-03 Pedro Alves <palves@redhat.com>
12722
12723 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12724 (cli_interp_base::~cli_interp_base): New.
12725 (cli_interp): New struct.
12726 (as_cli_interp): Cast the interp itself to cli_interp.
12727 (cli_interpreter_pre_command_loop): Rename to ...
12728 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12729 parameter.
12730 (cli_interpreter_init): Rename to ...
12731 (cli_interp::init): ... this. Remove 'self' parameter. Use
12732 boolean. Make extern.
12733 (cli_interpreter_resume): Rename to ...
12734 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12735 extern.
12736 (cli_interpreter_suspend): Rename to ...
12737 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12738 extern.
12739 (cli_interpreter_exec): Rename to ...
12740 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12741 extern.
12742 (cli_interpreter_supports_command_editing): Rename to ...
12743 (cli_interp_base::supports_command_editing): ... this. Remove
12744 'interp' parameter. Make extern.
12745 (cli_ui_out): Rename to ...
12746 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12747 Make extern.
12748 (cli_set_logging): Rename to ...
12749 (cli_interp_base::set_logging): ... this. Remove 'interp'
12750 parameter. Make extern.
12751 (cli_interp_procs): Delete.
12752 (cli_interp_factory): Adjust to use "new".
12753 * cli/cli-interp.h: Include "interps.h".
12754 (struct cli_interp_base): New struct.
12755 * interps.c (struct interp): Delete. Fields moved to interps.h.
12756 (interp_new): Delete.
12757 (interp::interp, interp::~interp): New.
12758 (interp_set): Use bool, and return void. Assume the interpreter
12759 has suspend, init and resume methods, and that the all return
12760 void.
12761 (set_top_level_interpreter): interp_set returns void.
12762 (interp_ui_out): Adapt.
12763 (current_interp_set_logging): Adapt.
12764 (interp_data): Delete.
12765 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12766 (interp_exec): Adapt.
12767 (top_level_interpreter_data): Delete.
12768 * interps.h (interp_init_ftype, interp_resume_ftype)
12769 (interp_suspend_ftype, interp_exec_ftype)
12770 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12771 (class interp): New.
12772 (interp_new): Delete.
12773 (interp_set): Now returns void. Use bool.
12774 (interp_data, top_level_interpreter_data): Delete.
12775 * mi/mi-common.h: Include interps.h.
12776 (class mi_interp): Inherit from interp. Define a ctor. Declare
12777 init, resume, suspect, exec, interp_ui_out, set_logging and
12778 pre_command_loop methods.
12779 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12780 (mi_interpreter_init): Rename to ...
12781 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12782 bool, return void and make extern. Adjust.
12783 (mi_interpreter_resume): ... Rename to ...
12784 (mi_interp::resume): ... this. Remove the 'data' parameter,
12785 return void and make extern. Adjust.
12786 (mi_interpreter_suspend): ... Rename to ...
12787 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12788 return void and make extern. Adjust.
12789 (mi_interpreter_exec): ... Rename to ...
12790 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12791 extern. Adjust.
12792 (mi_interpreter_pre_command_loop): ... Rename to ...
12793 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12794 parameter and make extern.
12795 (mi_on_normal_stop_1): Adjust.
12796 (mi_ui_out): Rename to ...
12797 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12798 parameter and make extern. Adjust.
12799 (mi_set_logging): Rename to ...
12800 (mi_interp::set_logging): ... this. Remove the 'interp'
12801 parameter and make extern. Adjust.
12802 (mi_interp_procs): Delete.
12803 (mi_interp_factory): Adjust to use 'new'.
12804 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12805 (mi_print_exception, mi_execute_command, mi_load_progress):
12806 Adjust.
12807 * tui/tui-interp.c (tui_interp): New class.
12808 (as_tui_interp): Return a tui_interp pointer.
12809 (tui_on_normal_stop, tui_on_signal_received)
12810 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12811 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12812 to use interp::interp_ui_out.
12813 (tui_init): Rename to ...
12814 (tui_interp::init): ... this. Remove the 'self' parameter, use
12815 bool, return void and make extern. Adjust.
12816 (tui_resume): Rename to ...
12817 (tui_interp::resume): ... this. Remove the 'data' parameter,
12818 return void and make extern. Adjust.
12819 (tui_suspend): Rename to ...
12820 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12821 return void and make extern. Adjust.
12822 (tui_ui_out): Rename to ...
12823 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12824 parameter, and make extern. Adjust.
12825 (tui_exec): Rename to ...
12826 (tui_interp::exec): ... this. Remove the 'data' parameter and
12827 make extern.
12828 (tui_interp_procs): Delete.
12829 (tui_interp_factory): Use "new".
12830
12831 2017-02-02 Tom Tromey <tom@tromey.com>
12832
12833 * rust-exp.y (ends_raw_string, space_then_number)
12834 (rust_identifier_start_p): Return bool.
12835 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12836 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12837 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12838 (rust_chartype_p): Return bool.
12839 (val_print_struct, rust_print_struct_def, rust_print_type):
12840 Update.
12841 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12842 Return bool.
12843
12844 2017-02-02 Tom Tromey <tom@tromey.com>
12845
12846 * rust-lang.c: Reindent.
12847
12848 2017-02-02 Tom Tromey <tom@tromey.com>
12849
12850 * rust-lang.h (rust_crate_for_block): Update.
12851 * rust-lang.c (rust_crate_for_block): Return std::string.
12852 (rust_get_disr_info): Use std:;string, not
12853 gdb::unique_xmalloc_ptr.
12854 * rust-exp.y (crate_name): Update.
12855
12856 2017-02-02 Pedro Alves <palves@redhat.com>
12857
12858 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12859 field out of gdb_disassembler_test and make it static.
12860
12861 2017-02-02 Pedro Alves <palves@redhat.com>
12862
12863 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12864 mi1_interp and mi_interp fields.
12865
12866 2017-02-02 Pedro Alves <palves@redhat.com>
12867
12868 * cli/cli-interp.c (struct saved_output_files, saved_output):
12869 Moved from cli/cli-logging.c.
12870 (cli_set_logging): New function.
12871 (cli_interp_procs): Install cli_set_logging.
12872 * cli/cli-interp.h (make_logging_output, cli_set_logging):
12873 Declare.
12874 * cli/cli-logging.c (struct saved_output_files, saved_output):
12875 Moved to cli/cli-interp.c.
12876 (pop_output_files): Don't save outputs here.
12877 (make_logging_output): New function.
12878 (handle_redirections): Don't build tee nor save previous outputs
12879 here.
12880 * interps.c (current_interp_set_logging): Change prototype.
12881 Assume there's always a set_logging_proc method installed.
12882 * interps.h (interp_set_logging_ftype): Change prototype.
12883 (current_interp_set_logging): Change prototype and adjust comment.
12884 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
12885 use make_logging_output.
12886 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
12887 2017-02-02 Pedro Alves <palves@redhat.com>
12888
12889 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
12890 from ...
12891 (set_logging_overwrite): ... here.
12892 (logging_no_redirect_file): Delete.
12893 (set_logging_redirect): Don't handle redirection on the fly.
12894 Instead warn that "logging off" / "logging on" is necessary.
12895 (pop_output_files): Delete references to logging_no_redirect_file.
12896 (show_logging_command): Always speak in terms of what will happen
12897 once logging is reenabled.
12898
12899 2017-02-02 Pedro Alves <palves@redhat.com>
12900
12901 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
12902
12903 2017-02-02 Pedro Alves <palves@redhat.com>
12904
12905 * disasm.c (gdb_pretty_print_insn): Rename to ...
12906 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
12907 Remove gdbarch parameter. Adapt to clear the object's buffers
12908 instead of allocating new buffers, and to print using the object's
12909 gdb_disassembler instead of calling gdb_print_insn.
12910 (dump_insns): Use gdb_pretty_print_disassembler.
12911 * disasm.h (gdb_pretty_print_insn): Delete declaration.
12912 (gdb_pretty_print_disassembler): New class.
12913 * record-btrace.c (btrace_insn_history): Use
12914 gdb_pretty_print_disassembler.
12915
12916 2017-02-02 Pedro Alves <palves@redhat.com>
12917
12918 * ada-lang.c (type_as_string): Use string_file.
12919 * ada-valprint.c (ada_print_floating): Use string_file.
12920 * ada-varobj.c (ada_varobj_scalar_image)
12921 (ada_varobj_get_value_image): Use string_file.
12922 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
12923 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
12924 * breakpoint.c (update_inserted_breakpoint_locations)
12925 (insert_breakpoint_locations, reattach_breakpoints)
12926 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
12927 (print_it_watchpoint): Use string_file.
12928 (save_breakpoints): Use stdio_file.
12929 * c-exp.y (oper): Use string_file.
12930 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
12931 tee_file.
12932 (pop_output_files): Use delete.
12933 (handle_redirections): Use stdio_file and tee_file.
12934 * cli/cli-setshow.c (do_show_command): Use string_file.
12935 * compile/compile-c-support.c (c_compute_program): Use
12936 string_file.
12937 * compile/compile-c-symbols.c (generate_vla_size): Take a
12938 'string_file &' instead of a 'ui_file *'.
12939 (generate_c_for_for_one_variable): Take a 'string_file &' instead
12940 of a 'ui_file *'. Use string_file.
12941 (generate_c_for_variable_locations): Take a 'string_file &'
12942 instead of a 'ui_file *'.
12943 * compile/compile-internal.h (generate_c_for_for_one_variable):
12944 Take a 'string_file &' instead of a 'ui_file *'.
12945 * compile/compile-loc2c.c (push, pushf, unary, binary)
12946 (print_label, pushf_register_address, pushf_register)
12947 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
12948 'ui_file *'. Adjust.
12949 * compile/compile.c (compile_to_object): Use string_file.
12950 * compile/compile.h (compile_dwarf_expr_to_c)
12951 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
12952 'ui_file *'.
12953 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
12954 (replace_typedefs_qualified_name): Use string_file and
12955 obstack_copy0.
12956 * disasm.c (gdb_pretty_print_insn): Use string_file.
12957 (gdb_disassembly): Adjust reference the null_stream global.
12958 (do_ui_file_delete): Delete.
12959 (gdb_insn_length): Use null_stream.
12960 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
12961 * dwarf2loc.c (dwarf2_compile_property_to_c)
12962 (locexpr_generate_c_location, loclist_generate_c_location): Take a
12963 'string_file &' instead of a 'ui_file *'.
12964 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
12965 * dwarf2read.c (do_ui_file_peek_last): Delete.
12966 (dwarf2_compute_name): Use string_file.
12967 * event-top.c (gdb_setup_readline): Use stdio_file.
12968 * gdbarch.sh (verify_gdbarch): Use string_file.
12969 * gdbtypes.c (safe_parse_type): Use null_stream.
12970 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
12971 string_file.
12972 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
12973 'string_file *' instead of a 'ui_file *'.
12974 (gdbscm_arch_disassemble): Use string_file.
12975 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
12976 * guile/scm-ports.c (class ioscm_file_port): Now a class that
12977 inherits from ui_file.
12978 (ioscm_file_port_delete, ioscm_file_port_rewind)
12979 (ioscm_file_port_put): Delete.
12980 (ioscm_file_port_write): Rename to ...
12981 (ioscm_file_port::write): ... this. Remove file_port_magic
12982 checks.
12983 (ioscm_file_port_new): Delete.
12984 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
12985 ui_file_up.
12986 * guile/scm-type.c (tyscm_type_name): Use string_file.
12987 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
12988 Use string_file.
12989 * infcmd.c (print_return_value_1): Use string_file.
12990 * infrun.c (print_target_wait_results): Use string_file.
12991 * language.c (add_language): Use string_file.
12992 * location.c (explicit_to_string_internal): Use string_file.
12993 * main.c (captured_main_1): Use null_file.
12994 * maint.c (maintenance_print_architecture): Use stdio_file.
12995 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
12996 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
12997 event_channel>: Change type to mi_console_file pointer.
12998 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
12999 (mi_console_file_delete): Delete.
13000 (struct mi_console_file): Delete.
13001 (mi_console_file_magic): Delete.
13002 (mi_console_file_new): Delete.
13003 (mi_console_file::mi_console_file): New.
13004 (mi_console_file_delete): Delete.
13005 (mi_console_file_fputs): Delete.
13006 (mi_console_file::write): New.
13007 (mi_console_raw_packet): Delete.
13008 (mi_console_file::flush): New.
13009 (mi_console_file_flush): Delete.
13010 (mi_console_set_raw): Rename to ...
13011 (mi_console_file::set_raw): ... this.
13012 * mi/mi-console.h (class mi_console_file): New class.
13013 (mi_console_file_new, mi_console_set_raw): Delete.
13014 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13015 (mi_set_logging): Use delete and tee_file. Adjust.
13016 * mi/mi-main.c (output_register): Use string_file.
13017 (mi_cmd_data_evaluate_expression): Use string_file.
13018 (mi_cmd_data_read_memory): Use string_file.
13019 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13020 * mi/mi-out.c (mi_ui_out::main_stream): New.
13021 (mi_ui_out::rewind): Use main_stream and
13022 string_file.
13023 (mi_ui_out::put): Use main_stream and string_file.
13024 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13025 Allocate a 'string_file' instead.
13026 (mi_out_new): Don't allocate a mem_fileopen stream here.
13027 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13028 (mi_ui_out::main_stream): Declare method.
13029 * printcmd.c (eval_command): Use string_file.
13030 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13031 * python/py-arch.c (archpy_disassemble): Use string_file.
13032 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13033 * python/py-frame.c (frapy_str): Use string_file.
13034 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13035 Use string_file.
13036 * python/py-type.c (typy_str): Use string_file.
13037 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13038 * python/py-value.c (valpy_str): Use string_file.
13039 * record-btrace.c (btrace_insn_history): Use string_file.
13040 * regcache.c (regcache_print): Use stdio_file.
13041 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13042 * remote.c (escape_buffer): Use string_file.
13043 * rust-lang.c (rust_get_disr_info): Use string_file.
13044 * serial.c (serial_open_ops_1): Use stdio_file.
13045 (do_serial_close): Use delete.
13046 * stack.c (print_frame_arg): Use string_file.
13047 (print_frame_args): Remove local mem_fileopen stream, not used.
13048 (print_frame): Use string_file.
13049 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13050 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13051 Take a 'string_file *' instead of a 'ui_file *'.
13052 * top.c (new_ui): Use stdio_file and stderr_file.
13053 (free_ui): Use delete.
13054 (execute_command_to_string): Use string_file.
13055 (quit_confirm): Use string_file.
13056 * tracepoint.c (collection_list::append_exp): Use string_file.
13057 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13058 * tui/tui-file.c: Don't include "ui-file.h".
13059 (enum streamtype, struct tui_stream): Delete.
13060 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13061 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13062 (tui_file::tui_file): New method.
13063 (tui_file_fputs): Delete.
13064 (tui_file_get_strbuf): Delete.
13065 (tui_file::puts): New method.
13066 (tui_file_adjust_strbuf): Delete.
13067 (tui_file_flush): Delete.
13068 (tui_file::flush): New method.
13069 * tui/tui-file.h: Tweak intro comment.
13070 Include ui-file.h.
13071 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13072 (tui_file_adjust_strbuf): Delete declarations.
13073 (class tui_file): New class.
13074 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13075 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13076 (tui_register_format): Use string_stream.
13077 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13078 (tui_get_function_from_frame): Use string_file.
13079 * typeprint.c (type_to_string): Use string_file.
13080 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13081 (null_stream): New global.
13082 (ui_file_delete): Delete.
13083 (ui_file::ui_file): New.
13084 (null_file_isatty): Delete.
13085 (ui_file::~ui_file): New.
13086 (null_file_rewind): Delete.
13087 (ui_file::printf): New.
13088 (null_file_put): Delete.
13089 (null_file_flush): Delete.
13090 (ui_file::putstr): New.
13091 (null_file_write): Delete.
13092 (ui_file::putstrn): New.
13093 (null_file_read): Delete.
13094 (ui_file::putc): New.
13095 (null_file_fputs): Delete.
13096 (null_file_write_async_safe): Delete.
13097 (ui_file::vprintf): New.
13098 (null_file_delete): Delete.
13099 (null_file::write): New.
13100 (null_file_fseek): Delete.
13101 (null_file::puts): New.
13102 (ui_file_data): Delete.
13103 (null_file::write_async_safe): New.
13104 (gdb_flush, ui_file_isatty): Adjust.
13105 (ui_file_put, ui_file_rewind): Delete.
13106 (ui_file_write): Adjust.
13107 (ui_file_write_for_put): Delete.
13108 (ui_file_write_async_safe, ui_file_read): Adjust.
13109 (ui_file_fseek): Delete.
13110 (fputs_unfiltered): Adjust.
13111 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13112 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13113 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13114 (set_ui_file_data): Delete.
13115 (string_file::~string_file, string_file::write)
13116 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13117 (do_ui_file_as_string, ui_file_as_string): Delete.
13118 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13119 (struct mem_file): Delete.
13120 (mem_file_new): Delete.
13121 (stdio_file::stdio_file): New.
13122 (mem_file_delete): Delete.
13123 (stdio_file::stdio_file): New.
13124 (mem_fileopen): Delete.
13125 (stdio_file::~stdio_file): New.
13126 (mem_file_rewind): Delete.
13127 (stdio_file::set_stream): New.
13128 (mem_file_put): Delete.
13129 (stdio_file::open): New.
13130 (mem_file_write): Delete.
13131 (stdio_file_magic, struct stdio_file): Delete.
13132 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13133 (stdio_file::flush): New.
13134 (stdio_file_read): Rename to ...
13135 (stdio_file::read): ... this. Adjust.
13136 (stdio_file_write): Rename to ...
13137 (stdio_file::write): ... this. Adjust.
13138 (stdio_file_write_async_safe): Rename to ...
13139 (stdio_file::write_async_safe) ... this. Adjust.
13140 (stdio_file_fputs): Rename to ...
13141 (stdio_file::puts) ... this. Adjust.
13142 (stdio_file_isatty): Delete.
13143 (stdio_file_fseek): Delete.
13144 (stdio_file::isatty): New.
13145 (stderr_file_write): Rename to ...
13146 (stderr_file::write) ... this. Adjust.
13147 (stderr_file_fputs): Rename to ...
13148 (stderr_file::puts) ... this. Adjust.
13149 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13150 (stderr_file::stderr_file): New.
13151 (tee_file_magic): Delete.
13152 (struct tee_file): Delete.
13153 (tee_file::tee_file): New.
13154 (tee_file_new): Delete.
13155 (tee_file::~tee_file): New.
13156 (tee_file_delete): Delete.
13157 (tee_file_flush): Rename to ...
13158 (tee_file::flush): ... this. Adjust.
13159 (tee_file_write): Rename to ...
13160 (tee_file::write): ... this. Adjust.
13161 (tee_file::write_async_safe): New.
13162 (tee_file_fputs): Rename to ...
13163 (tee_file::puts): ... this. Adjust.
13164 (tee_file_isatty): Rename to ...
13165 (tee_file::isatty): ... this. Adjust.
13166 * ui-file.h (struct obstack, struct ui_file): Don't
13167 forward-declare.
13168 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13169 (ui_file_write_ftype)
13170 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13171 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13172 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13173 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13174 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13175 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13176 (set_ui_file_fseek): Delete.
13177 (ui_file_data, ui_file_delete, ui_file_rewind)
13178 (struct ui_file): New.
13179 (ui_file_up): New.
13180 (class null_file): New.
13181 (null_stream): Declare.
13182 (ui_file_write_for_put, ui_file_put): Delete.
13183 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13184 Delete.
13185 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13186 (gdb_fopen, tee_file_new): Delete.
13187 (struct string_file): New.
13188 (struct stdio_file): New.
13189 (stdio_file_up): New.
13190 (struct stderr_file): New.
13191 (class tee_file): New.
13192 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13193 of a 'ui_file *'. Adjust.
13194 * ui-out.h (class ui_out) <field_stream>: Likewise.
13195 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13196 (null_stream): Delete.
13197 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13198 Adjust.
13199 * utils.h (struct ui_file): Delete forward declaration..
13200 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13201 (error_stream): Take a 'string_file &' instead of a
13202 'ui_file *'.
13203 * varobj.c (varobj_value_get_print_value): Use string_file.
13204 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13205 * gdbarch.c: Regenerate.
13206
13207 2017-02-02 Pedro Alves <palves@redhat.com>
13208
13209 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13210 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13211 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13212 Adjust to call gdb_print_insn instead of
13213 gdb_disassembler::print_insn.
13214 (dump_insns, do_mixed_source_and_assembly_deprecated)
13215 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13216 'gdbarch' parameter. Remove gdb_disassembler parameter.
13217 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13218 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13219 declaration.
13220 (gdb_pretty_print_insn): Re-add declaration.
13221 * record-btrace.c (btrace_insn_history): Don't allocate a
13222 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13223
13224 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13225
13226 * disasm.h (gdb_disassembly): Remove file_string parameter.
13227 * disasm.c (gdb_disassembly): Likewise.
13228 * cli/cli-cmds.c (print_disassembly): Adapt.
13229 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13230 * stack.c (do_gdb_disassembly): Likewise.
13231
13232 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13233
13234 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13235 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13236 targets. And if the implicit value is longer than needed, extract
13237 the first bytes instead of the "least significant" ones.
13238
13239 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13240
13241 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13242 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13243 (btrace_fetch): Assert can_access_registers_ptid.
13244 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13245 validate_registers_access.
13246
13247 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13248
13249 * gdbthread.h (can_access_registers_ptid): New.
13250 * thread.c (can_access_registers_ptid): New.
13251
13252 2017-02-01 Pedro Alves <palves@redhat.com>
13253
13254 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13255
13256 2017-01-31 Pedro Alves <palves@redhat.com>
13257
13258 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13259 Fix typos.
13260
13261 2017-01-31 Pedro Alves <palves@redhat.com>
13262
13263 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13264 not used.
13265
13266 2017-01-31 Pedro Alves <palves@redhat.com>
13267
13268 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13269
13270 2017-01-31 Pedro Alves <palves@redhat.com>
13271
13272 * common/scoped_restore.h
13273 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13274 change the value's parameter type to T2.
13275 (make_scoped_restore): Likewise.
13276
13277 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13278 Richard Henderson <rth@redhat.com>
13279
13280 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13281 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13282 GS_BASE for older kernels.
13283 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13284 GS_BASE for older kernels.
13285 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13286 and GS_BASE to the offset table.
13287 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13288 system register group.
13289 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13290 for older kernels.
13291 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13292 amd64 ABI.
13293 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13294 AMD64_GSBASE_REGNUM.
13295 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13296 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13297 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13298 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13299 i386/64bit-segments.xml in those rules.
13300 * features/i386/64bit-segments.xml: New file.
13301 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13302 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13303 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13304 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13305 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13306 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13307 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13308 * features/i386/amd64-avx-linux.c: Regenerated.
13309 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13310 * features/i386/amd64-avx-mpx.c: Regenerated.
13311 * features/i386/amd64-avx512-linux.c: Regenerated.
13312 * features/i386/amd64-linux.c: Regenerated.
13313 * features/i386/amd64-mpx-linux.c: Regenerated.
13314 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13315 * features/i386/i386-avx-mpx.c: Regenerated.
13316 * features/i386/x32-avx-linux.c: Regenerated.
13317 * features/i386/x32-avx512-linux.c: Regenerated.
13318 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13319 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13320 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13321 * regformats/i386/amd64-linux.dat: Regenerated.
13322 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13323 * regformats/i386/x32-avx-linux.dat: Regenerated.
13324 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13325 * regformats/i386/x32-linux.dat: Regenerated.
13326
13327 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13328
13329 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13330 Set to AMD64_NUM_REGS.
13331
13332 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13333
13334 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13335 that checks validity of a register number.
13336
13337 2017-01-27 Kees Cook <keescook@google.com>
13338
13339 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13340 fetch_fpregs if target has fpa registers.
13341 (arm_linux_store_inferior_registers): Call store_fpregs if target
13342 has fpa registers.
13343
13344 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13345
13346 * cris-tdep.c (cris_gdbarch_init): Remove check for
13347 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13348
13349 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13350
13351 * corelow.c (get_core_register_section): Check for regset
13352 existence before checking for REGSET_VARIABLE_SIZE.
13353
13354 2017-01-26 Yao Qi <yao.qi@linaro.org>
13355 Pedro Alves <palves@redhat.com>
13356
13357 PR gdb/20939
13358 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13359 call memory_error, save memaddr instead.
13360 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13361 negative, cal memory_error.
13362 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13363
13364 2017-01-26 Yao Qi <yao.qi@linaro.org>
13365
13366 * disasm-selftests.c (memory_error_test): New function.
13367 (_initialize_disasm_selftests): Register memory_error_test.
13368
13369 2017-01-26 Yao Qi <yao.qi@linaro.org>
13370
13371 * Makefile.in (SFILES): Add disasm-selftests.c and
13372 selftest-arch.c.
13373 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13374 * disasm-selftests.c: New file.
13375 * selftest-arch.c: New file.
13376 * selftest-arch.h: New file.
13377
13378 2017-01-26 Yao Qi <yao.qi@linaro.org>
13379
13380 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13381 to bfd_arch_mep. Don't return 0 if section is not
13382 found. Call print_insn_mep.
13383
13384 2017-01-26 Pedro Alves <palves@redhat.com>
13385 Yao Qi <yao.qi@linaro.org>
13386
13387 * arm-tdep.c: Include "disasm.h".
13388 (gdb_print_insn_arm): Update code to get gdbarch.
13389 * disasm.c (dis_asm_read_memory): Change it to
13390 gdb_disassembler::dis_asm_read_memory.
13391 (dis_asm_memory_error): Likewise.
13392 (dis_asm_print_address): Likewise.
13393 (gdb_pretty_print_insn): Change it to
13394 gdb_disassembler::pretty_print_insn.
13395 (dump_insns): Add one argument gdb_disassemlber. All
13396 callers updated.
13397 (do_mixed_source_and_assembly_deprecated): Likewise.
13398 (do_mixed_source_and_assembly): Likewise.
13399 (do_assembly_only): Likewise.
13400 (gdb_disassembler::gdb_disassembler): New.
13401 (gdb_disassembler::print_insn): New.
13402 * disasm.h (class gdb_disassembler): New.
13403 (gdb_pretty_print_insn): Remove declaration.
13404 (gdb_disassemble_info): Likewise.
13405 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13406 (gdbscm_disasm_read_memory_worker): Update.
13407 (gdbscm_disasm_read_memory): Update.
13408 (gdbscm_disasm_memory_error): Remove.
13409 (gdbscm_disasm_print_address): Remove.
13410 (gdbscm_disassembler::gdbscm_disassembler): New.
13411 (gdbscm_print_insn_from_port): Update.
13412 * mips-tdep.c: Include disasm.h.
13413 (gdb_print_insn_mips): Update code to get gdbarch.
13414 * record-btrace.c (btrace_insn_history): Update.
13415 * spu-tdep.c: Include disasm.h.
13416 (struct spu_dis_asm_data): Remove.
13417 (struct spu_dis_asm_info): New.
13418 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13419 SPU id.
13420 (gdb_print_insn_spu): Cast disassemble_info to
13421 spu_dis_asm_info.
13422
13423 2017-01-26 Yao Qi <yao.qi@linaro.org>
13424
13425 * disasm.c (do_ui_file_delete): Delete.
13426 (gdb_insn_length): Move code creating stream to ...
13427 * utils.c (null_stream): ... here. New function.
13428 * utils.h (null_stream): Declare.
13429
13430 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13431
13432 * python/py-inferior.c (find_thread_object): Return directly
13433 from the loop. Remove "found" variable.
13434
13435 2017-01-21 Joel Brobecker <brobecker@adacore.com>
13436
13437 GDB 7.12.1 released.
13438
13439 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13440
13441 * python/py-function.c (fnpy_call): Reorder declarations to have
13442 the gdbpy_enter object declared first.
13443 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13444
13445 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13446
13447 PR python/21068
13448 * python/python-internal.h (PyMem_RawMalloc): Define for
13449 Python < 3.4.
13450 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13451 PyMem_RawMalloc instead of PyMem_Malloc.
13452
13453 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13454 Luis Machado <lgustavo@codesourcery.com>
13455
13456 * NEWS (New commands): Mention flash-erase.
13457 (New MI commands): Mention target-flash-erase.
13458 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13459 command.
13460 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13461 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13462 * target.c (flash_erase_command): New function.
13463 (initialize_targets): Add new flash-erase command.
13464 * target.h (flash_erase_command): New declaration.
13465
13466 2017-01-20 Joel Brobecker <brobecker@adacore.com>
13467
13468 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13469 HAVE_SYS_PROCFS_H is defined.
13470
13471 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13472
13473 * remote.c (struct cached_reg): Change data into a pointer.
13474 * (stop_reply_dtr): Free data pointers before deleting vector.
13475 (process_stop_reply): Likewise.
13476 (remote_parse_stop_reply): Allocate space for data
13477
13478 2017-01-18 Alan Hayward <alan.hayward@arm.com>
13479
13480 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13481 MAX_REGISTER_SIZE.
13482 (amd64_pseudo_register_read_value): Likewise.
13483 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13484 (store_register_using_P): Likewise.
13485 * regcache.c (regcache_xfer_part): Likewise.
13486
13487 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13488
13489 Split real and pseudo registers.
13490 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13491 (sparc32_pseudo_regnum): New enum.
13492 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13493 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13494 (SPARC32_CP0_REGISTERS): New macro.
13495 (sparc32_pseudo_register_name): New function.
13496 (sparc32_register_name): Use sparc32_pseudo_register_name.
13497 (sparc32_pseudo_register_type): New function.
13498 (sparc32_register_type): Use sparc32_pseudo_register_type.
13499 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13500 pseudo register numbers.
13501 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13502 (SPARC64_CP0_REGISTERS): New macro.
13503 (sparc64_pseudo_register_name): New function.
13504 (sparc64_register_name): Use sparc64_pseudo_register_name.
13505 (sparc64_pseudo_register_type): New function.
13506 (sparc64_register_type): Use sparc64_pseudo_register_type.
13507 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13508 pseudo register numbers.
13509 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13510 sparc64_store_arguments): Handle pseudo register numbers.
13511
13512 2017-01-13 Yao Qi <yao.qi@linaro.org>
13513
13514 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13515 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13516 output.
13517 (getpkt_or_notif_sane_1): Likewise.
13518
13519 2017-01-13 Yao Qi <yao.qi@linaro.org>
13520
13521 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13522 of CC. Pass "-x c++-header" instead of "-x c".
13523
13524 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13525
13526 * remote.c (remote_can_async_p): Update comment.
13527
13528 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13529
13530 * linux-nat.c (linux_nat_can_async_p): Update comment.
13531
13532 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13533
13534 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13535
13536 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13537
13538 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13539
13540 2017-01-10 Tom Tromey <tom@tromey.com>
13541
13542 * python/py-type.c (typy_legacy_template_argument): Update.
13543 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13544 ~demangle_parse_info): Declare new members.
13545 (cp_demangled_name_to_comp): Return unique_ptr.
13546 (cp_demangled_name_parse_free)
13547 (make_cleanup_cp_demangled_name_parse_free)
13548 (cp_new_demangle_parse_info): Remove.
13549 * cp-support.c (do_demangled_name_parse_free_cleanup)
13550 (make_cleanup_cp_demangled_name_parse_free): Remove.
13551 (inspect_type, cp_canonicalize_string_full)
13552 (cp_canonicalize_string): Update.
13553 (mangled_name_to_comp): Change return type.
13554 (cp_class_name_from_physname, method_name_from_physname)
13555 (cp_func_name, cp_remove_params): Update.
13556 * cp-name-parser.y (demangle_parse_info): New constructor, from
13557 cp_new_demangle_parse_info.
13558 (~demangle_parse_info): New destructor, from
13559 cp_demangled_name_parse_free.
13560 (cp_merge_demangle_parse_infos): Update.
13561 (cp_demangled_name_to_comp): Change return type.
13562
13563 2017-01-10 Tom Tromey <tom@tromey.com>
13564
13565 * top.c (prevent_dont_repeat): Change return type.
13566 * python/python.c (execute_gdb_command): Use std::string.
13567 Update.
13568 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13569 * command.h (prevent_dont_repeat): Change return type.
13570 * breakpoint.c (bpstat_do_actions_1): Update.
13571
13572 2017-01-10 Tom Tromey <tom@tromey.com>
13573
13574 * value.h (scoped_value_mark::~scoped_value_mark): Call
13575 free_to_mark.
13576 (scoped_value_mark::free_to_mark): New method.
13577 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13578 scoped_value_mark.
13579
13580 2017-01-10 Tom Tromey <tom@tromey.com>
13581
13582 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13583 (valpy_reference_value, valpy_const_value, valpy_get_address)
13584 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13585 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13586 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13587 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13588 scoped_value_mark.
13589 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13590 * value.h (scoped_value_mark): New class.
13591
13592 2017-01-10 Tom Tromey <tom@tromey.com>
13593
13594 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13595 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13596 * psymtab.c (discard_psymtabs_upto): Remove.
13597 (make_cleanup_discard_psymtabs): Remove.
13598 (struct psymtab_state): Remove.
13599
13600 2017-01-10 Tom Tromey <tom@tromey.com>
13601
13602 * record-full.c (record_full_save_cleanups): Remove.
13603 (record_full_save): Use gdb::unlinker.
13604 * gcore.c (do_bfd_delete_cleanup): Remove.
13605 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13606 cleanups.
13607 * dwarf2read.c (unlink_if_set): Remove.
13608 (write_psymtabs_to_index): Use gdb::unlinker.
13609 * common/gdb_unlinker.h: New file.
13610
13611 2017-01-10 Tom Tromey <tom@tromey.com>
13612
13613 * windows-tdep.c (windows_xfer_shared_library): Update.
13614 * windows-nat.c (windows_make_so): Update.
13615 * utils.h (make_cleanup_bfd_unref): Remove.
13616 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13617 * symfile.h (symfile_bfd_open)
13618 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13619 * symfile.c (read_symbols, symbol_file_add)
13620 (separate_debug_file_exists): Update.
13621 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13622 (generic_load, reread_symbols): Update.
13623 * symfile-mem.c (symbol_file_add_from_memory): Update.
13624 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13625 (spu_symbol_file_add_from_memory): Update.
13626 * solist.h (struct target_so_ops) <bfd_open>: Return
13627 gdb_bfd_ref_ptr.
13628 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13629 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13630 gdb_bfd_ref_ptr.
13631 (solib_map_sections, reload_shared_libraries_1): Update.
13632 * solib-svr4.c (enable_break): Update.
13633 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13634 * solib-frv.c (enable_break2): Update.
13635 * solib-dsbt.c (enable_break): Update.
13636 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13637 gdb_bfd_ref_ptr.
13638 (darwin_solib_get_all_image_info_addr_at_init): Update.
13639 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13640 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13641 * record-full.c (record_full_save): Update.
13642 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13643 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13644 * minidebug.c (find_separate_debug_file_in_section): Return
13645 gdb_bfd_ref_ptr.
13646 * machoread.c (macho_add_oso_symfile): Change abfd to
13647 gdb_bfd_ref_ptr.
13648 (macho_symfile_read_all_oso): Update.
13649 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13650 (macho_symfile_read): Update.
13651 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13652 (jit_bfd_try_read_symtab): Update.
13653 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13654 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13655 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13656 gdb_bfd_ref_ptr.
13657 (gdb_bfd_ref_policy): New struct.
13658 (gdb_bfd_ref_ptr): New typedef.
13659 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13660 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13661 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13662 gdb_bfd_ref_ptr.
13663 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13664 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13665 (gcore_command): Update.
13666 * exec.c (exec_file_attach): Update.
13667 * elfread.c (elf_symfile_read): Update.
13668 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13669 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13670 (open_and_init_dwo_file): Update.
13671 (open_dwp_file): Return gdb_bfd_ref_ptr.
13672 (open_and_init_dwp_file): Update.
13673 * corelow.c (core_open): Update.
13674 * compile/compile-object-load.c (compile_object_load): Update.
13675 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13676 * coffread.c (coff_symfile_read): Update.
13677 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13678 gdb_bfd_ref_ptr. Rename.
13679 (dump_bfd_file, restore_command): Update.
13680 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13681 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13682 (find_separate_debug_file_by_buildid): Update.
13683
13684 2017-01-10 Tom Tromey <tom@tromey.com>
13685
13686 * common/gdb_ref_ptr.h: New file.
13687 * python/py-ref.h (struct gdbpy_ref_policy): New.
13688 (gdbpy_ref): Now a typedef.
13689
13690 2017-01-10 Tom Tromey <tom@tromey.com>
13691
13692 * utils.h (make_cleanup_htab_delete): Don't declare.
13693 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13694 Remove.
13695 * linespec.c (decode_compound_collector): Add constructor,
13696 destructor.
13697 (lookup_prefix_sym): Remove cleanup.
13698 (symtab_collector): Add constructor, destructor.
13699 (collect_symtabs_from_filename): Remove cleanup.
13700 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13701 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13702 Use htab_up.
13703 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13704 * dwarf2read.c (dw2_expand_symtabs_matching)
13705 (dw2_map_symbol_filenames, dwarf_decode_macros)
13706 (write_psymtabs_to_index): Use htab_up.
13707 * dwarf2loc.c (func_verify_no_selftailcall)
13708 (call_site_find_chain_1, func_verify_no_selftailcall)
13709 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13710 std::vector, gdb::unique_xmalloc_ptr.
13711 (call_sitep): Remove typedef.
13712 (dwarf2_locexpr_baton_eval): Remove unused variable.
13713
13714 2017-01-10 Tom Tromey <tom@tromey.com>
13715
13716 * python/python-internal.h (make_cleanup_py_decref)
13717 (make_cleanup_py_xdecref): Don't declare.
13718 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13719 (py_xdecref, make_cleanup_py_xdecref): Remove.
13720
13721 2017-01-10 Tom Tromey <tom@tromey.com>
13722
13723 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13724 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13725
13726 2017-01-10 Tom Tromey <tom@tromey.com>
13727
13728 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13729
13730 2017-01-10 Tom Tromey <tom@tromey.com>
13731
13732 * python/py-utils.c (unicode_to_encoded_string)
13733 (python_string_to_target_string)
13734 (python_string_to_target_python_string)
13735 (python_string_to_host_string, gdbpy_obj_to_string)
13736 (get_addr_from_python): Use gdbpy_ref.
13737
13738 2017-01-10 Tom Tromey <tom@tromey.com>
13739
13740 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13741 gdbpy_ref.
13742
13743 2017-01-10 Tom Tromey <tom@tromey.com>
13744
13745 * python/python.c (eval_python_command, gdbpy_decode_line)
13746 (gdbpy_run_events, gdbpy_start_type_printers)
13747 (gdbpy_apply_type_printers): Use gdbpy_ref.
13748
13749 2017-01-10 Tom Tromey <tom@tromey.com>
13750
13751 * python/py-param.c (get_doc_string, compute_enum_values): Use
13752 gdbpy_ref.
13753
13754 2017-01-10 Tom Tromey <tom@tromey.com>
13755
13756 * python/py-inferior.c (find_thread_object, build_inferior_list):
13757 Use gdbpy_ref.
13758
13759 2017-01-10 Tom Tromey <tom@tromey.com>
13760
13761 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13762
13763 2017-01-10 Tom Tromey <tom@tromey.com>
13764
13765 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13766 gdbpy_ref.
13767
13768 2017-01-10 Tom Tromey <tom@tromey.com>
13769
13770 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13771 extra incref.
13772 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13773 Use gdbpy_ref.
13774
13775 2017-01-10 Tom Tromey <tom@tromey.com>
13776
13777 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13778 gdbpy_ref.
13779
13780 2017-01-10 Tom Tromey <tom@tromey.com>
13781
13782 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13783 decref results of PyArg_ParseTupleAndKeywords.
13784
13785 2017-01-10 Tom Tromey <tom@tromey.com>
13786
13787 * python/python.c (python_run_simple_file): Use
13788 unique_xmalloc_ptr, gdbpy_ref.
13789
13790 2017-01-10 Tom Tromey <tom@tromey.com>
13791
13792 * python/py-prettyprint.c (print_stack_unless_memory_error)
13793 (print_string_repr, print_children): Use gdbpy_ref.
13794 (dummy_python_frame): New class.
13795 (dummy_python_frame::dummy_python_frame): Rename from
13796 push_dummy_python_frame.
13797 (py_restore_tstate): Remove.
13798
13799 2017-01-10 Tom Tromey <tom@tromey.com>
13800
13801 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13802
13803 2017-01-10 Tom Tromey <tom@tromey.com>
13804
13805 * python/python.c (ensure_python_env, restore_python_env):
13806 Remove.
13807 * python/python-internal.h (ensure_python_env): Don't declare.
13808 * varobj.h (varobj_ensure_python_env): Don't declare.
13809 * varobj.c (varobj_ensure_python_env): Remove.
13810
13811 2017-01-10 Tom Tromey <tom@tromey.com>
13812
13813 * varobj.c (varobj_value_get_print_value): Use
13814 gdbpy_enter_varobj.
13815
13816 2017-01-10 Tom Tromey <tom@tromey.com>
13817
13818 * python/py-prettyprint.c (print_string_repr, print_children):
13819 Update.
13820 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13821 of "encoding".
13822 * varobj.c (varobj_value_get_print_value): Update.
13823 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13824
13825 2017-01-10 Tom Tromey <tom@tromey.com>
13826
13827 * varobj.c (varobj_get_display_hint)
13828 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13829 (varobj_set_visualizer, free_variable): Use
13830 gdbpy_enter_varobj.
13831
13832 2017-01-10 Tom Tromey <tom@tromey.com>
13833
13834 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13835 (do_finish_initialization): New function. Use gdbpy_ref.
13836 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13837 do_finish_initialization.
13838
13839 2017-01-10 Tom Tromey <tom@tromey.com>
13840
13841 * python/py-param.c (get_set_value, get_show_value): Use
13842 gdbpy_enter, gdbpy_ref.
13843
13844 2017-01-10 Tom Tromey <tom@tromey.com>
13845
13846 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13847
13848 2017-01-10 Tom Tromey <tom@tromey.com>
13849
13850 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13851
13852 2017-01-10 Tom Tromey <tom@tromey.com>
13853
13854 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13855 Use gdbpy_enter_varobj.
13856
13857 2017-01-10 Tom Tromey <tom@tromey.com>
13858
13859 * varobj.c (gdbpy_enter_varobj): New constructor.
13860 * python/python-internal.h (gdbpy_enter_varobj): New class.
13861 * python/py-varobj.c (py_varobj_get_iterator): Use
13862 gdbpy_enter_varobj.
13863
13864 2017-01-10 Tom Tromey <tom@tromey.com>
13865
13866 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
13867 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13868 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
13869 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
13870 unique_xmalloc_ptr.
13871 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
13872
13873 2017-01-10 Tom Tromey <tom@tromey.com>
13874
13875 * python/py-xmethods.c (invoke_match_method): Use
13876 gdbpy_ref.
13877
13878 2017-01-10 Tom Tromey <tom@tromey.com>
13879
13880 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
13881 gdbpy_enter, gdbpy_ref.
13882
13883 2017-01-10 Tom Tromey <tom@tromey.com>
13884
13885 * python/python.c (python_interactive_command): Use gdbpy_enter.
13886
13887 2017-01-10 Tom Tromey <tom@tromey.com>
13888
13889 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
13890 gdbpy_ref.
13891
13892 2017-01-10 Tom Tromey <tom@tromey.com>
13893
13894 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
13895 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13896
13897 2017-01-10 Tom Tromey <tom@tromey.com>
13898
13899 * utils.h (htab_deleter): New struct.
13900 (htab_up): New typedef.
13901 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
13902 gdbpy_enter, gdbpy_ref, htab_up.
13903
13904 2017-01-10 Tom Tromey <tom@tromey.com>
13905
13906 * python/py-unwind.c (pending_frame_invalidate): Remove.
13907 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
13908
13909 2017-01-10 Tom Tromey <tom@tromey.com>
13910
13911 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
13912 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
13913
13914 2017-01-10 Tom Tromey <tom@tromey.com>
13915
13916 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
13917
13918 2017-01-10 Tom Tromey <tom@tromey.com>
13919
13920 * python/python.c (gdbpy_eval_from_control_command)
13921 (gdbpy_source_script, gdbpy_run_events)
13922 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
13923 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
13924 gdbpy_enter.
13925
13926 2017-01-10 Tom Tromey <tom@tromey.com>
13927
13928 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
13929
13930 2017-01-10 Tom Tromey <tom@tromey.com>
13931
13932 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
13933
13934 2017-01-10 Tom Tromey <tom@tromey.com>
13935
13936 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
13937 (python_on_inferior_call_pre, python_on_inferior_call_post)
13938 (python_on_memory_change, python_on_register_change)
13939 (python_inferior_exit, python_new_objfile, add_thread_object)
13940 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
13941
13942 2017-01-10 Tom Tromey <tom@tromey.com>
13943
13944 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
13945 (bpfinishpy_handle_exit): Use gdbpy_enter.
13946
13947 2017-01-10 Tom Tromey <tom@tromey.com>
13948
13949 * python/py-cmd.c (cmdpy_destroyer)
13950 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
13951 gdbpy_enter.
13952
13953 2017-01-10 Tom Tromey <tom@tromey.com>
13954
13955 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13956 gdbpy_enter.
13957 (gdbpy_breakpoint_has_cond): Likewise.
13958
13959 2017-01-10 Tom Tromey <tom@tromey.com>
13960
13961 * python/python.c (gdbpy_enter): New constructor.
13962 (~gdbpy_enter): New destructor.
13963 (restore_python_env, ensure_python_env): Rewrite.
13964 * python/python-internal.h (gdbpy_enter): New class.
13965
13966 2017-01-10 Tom Tromey <tom@tromey.com>
13967
13968 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
13969
13970 2017-01-10 Tom Tromey <tom@tromey.com>
13971
13972 * python/py-value.c (value_has_field, get_field_flag)
13973 (get_field_type, valpy_getitem, convert_value_from_python): Use
13974 gdbpy_ref.
13975
13976 2017-01-10 Tom Tromey <tom@tromey.com>
13977
13978 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
13979 gdbpy_ref.
13980
13981 2017-01-10 Tom Tromey <tom@tromey.com>
13982
13983 * python/py-prettyprint.c (search_pp_list)
13984 (find_pretty_printer_from_objfiles)
13985 (find_pretty_printer_from_progspace)
13986 (find_pretty_printer_from_gdb, find_pretty_printer)
13987 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
13988 gdbpy_ref.
13989
13990 2017-01-10 Tom Tromey <tom@tromey.com>
13991
13992 * python/py-param.c (call_doc_function): Use gdbpy_ref.
13993
13994 2017-01-10 Tom Tromey <tom@tromey.com>
13995
13996 * python/py-linetable.c (build_line_table_tuple_from_pcs)
13997 (ltpy_get_all_source_lines): Use gdbpy_ref.
13998
13999 2017-01-10 Tom Tromey <tom@tromey.com>
14000
14001 * python/py-framefilter.c (extract_sym, extract_value)
14002 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14003 gdbpy_ref.
14004
14005 2017-01-10 Tom Tromey <tom@tromey.com>
14006
14007 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14008
14009 2017-01-10 Tom Tromey <tom@tromey.com>
14010
14011 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14012
14013 2017-01-10 Tom Tromey <tom@tromey.com>
14014
14015 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14016 gdbpy_ref.
14017
14018 2017-01-10 Tom Tromey <tom@tromey.com>
14019
14020 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14021
14022 2017-01-10 Tom Tromey <tom@tromey.com>
14023
14024 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14025 (typy_range): Use gdbpy_ref.
14026
14027 2017-01-10 Tom Tromey <tom@tromey.com>
14028
14029 * python/py-threadevent.c (create_thread_event_object): Use
14030 gdbpy_ref.
14031 * python/py-stopevent.c (create_stop_event_object): Simplify.
14032 (emit_stop_event): Use gdbpy_ref.
14033 * python/py-signalevent.c (create_signal_event_object): Use
14034 gdbpy_ref.
14035 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14036 (emit_new_objfile_event, create_clear_objfiles_event_object)
14037 (emit_clear_objfiles_event): Use gdbpy_ref.
14038 * python/py-infevents.c (create_inferior_call_event_object)
14039 (create_register_changed_event_object)
14040 (create_memory_changed_event_object, emit_inferior_call_event)
14041 (emit_memory_changed_event, emit_register_changed_event): Use
14042 gdbpy_ref.
14043 * python/py-exitedevent.c (create_exited_event_object)
14044 (emit_exited_event): Use gdbpy_ref.
14045 * python/py-event.h (evpy_emit_event): Remove
14046 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14047 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14048 * python/py-continueevent.c (emit_continue_event): Use
14049 gdbpy_ref.
14050 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14051 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14052 gdbpy_ref.
14053 * python/py-bpevent.c (create_breakpoint_event_object): Use
14054 gdbpy_ref.
14055
14056 2017-01-10 Tom Tromey <tom@tromey.com>
14057
14058 * python/py-ref.h: New file.
14059
14060 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14061
14062 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14063 void.
14064 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14065 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14066 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14067 * ui-out.c (ui_out::redirect): Likewise.
14068 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14069 * cli/cli-logging.c (set_logging_redirect): Update call site of
14070 ui_out::redirect.
14071 (handle_redirections): Likewise.
14072 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14073 * top.c (execute_command_to_string): Likewise.
14074 * utils.c (do_ui_out_redirect_pop): Likewise.
14075
14076 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14077
14078 * stack.c (_initialize_stack): Update "frame" command help message.
14079
14080 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14081
14082 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14083
14084 2017-01-06 Yao Qi <yao.qi@linaro.org>
14085
14086 * x86-linux-nat.h: Include gdb_proc_service.h.
14087
14088 2017-01-06 Yao Qi <yao.qi@linaro.org>
14089
14090 * ser-base.h: Include serial.h.
14091
14092 2017-01-06 Yao Qi <yao.qi@linaro.org>
14093
14094 * ppc-linux-tdep.h: Include ppc-tdep.h.
14095
14096 2017-01-06 Yao Qi <yao.qi@linaro.org>
14097
14098 * nat/amd64-linux-siginfo.h: Include signal.h.
14099
14100 2017-01-06 Yao Qi <yao.qi@linaro.org>
14101
14102 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14103
14104 2017-01-06 Yao Qi <yao.qi@linaro.org>
14105
14106 * mi/mi-parse.h: Include mi-cmds.h.
14107
14108 2017-01-06 Yao Qi <yao.qi@linaro.org>
14109
14110 * inf-loop.c: Don't include "target.h".
14111 * inf-loop.h: Include it here.
14112
14113 2017-01-06 Yao Qi <yao.qi@linaro.org>
14114
14115 * dfp.h: Include "dboulest.h" and "expression.h".
14116
14117 2017-01-06 Yao Qi <yao.qi@linaro.org>
14118
14119 * ax-gdb.h: Include "ax.h".
14120
14121 2017-01-06 Yao Qi <yao.qi@linaro.org>
14122
14123 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14124 with nat/gdb_ptrace.h.
14125
14126 2017-01-05 Yao Qi <yao.qi@linaro.org>
14127
14128 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14129 new line.
14130 (mips64_fbsd_sigframe_init): Likewise.
14131
14132 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14133
14134 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14135 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14136
14137 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14138
14139 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14140 * NEWS: Mention new FreeBSD/mips native configuration.
14141 * config/mips/fbsd.mh: New file.
14142 * configure.host: Add mips*-*-freebsd*.
14143 * mips-fbsd-nat.c: New file.
14144
14145 2017-01-04 John Baldwin <jhb@FreeBSD.org>
14146
14147 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14148 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14149 * NEWS: Mention new FreeBSD/mips target.
14150 * configure.tgt: Add mips*-*-freebsd*.
14151 * mips-fbsd-tdep.c: New file.
14152 * mips-fbsd-tdep.h: New file.
14153
14154 2017-01-04 Yao Qi <yao.qi@linaro.org>
14155
14156 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14157 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14158
14159 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14160
14161 Update copyright year range in all GDB files.
14162
14163 2017-01-01 Joel Brobecker <brobecker@adacore.com>
14164
14165 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
14166
14167 For older changes see ChangeLog-2016.
14168 \f
14169 Local Variables:
14170 mode: change-log
14171 left-margin: 8
14172 fill-column: 74
14173 version-control: never
14174 coding: utf-8
14175 End:
This page took 0.335657 seconds and 4 git commands to generate.